diff --git a/build_odroid/roles/build_clients/files/elm_static/0204f58a80d501469499b37c882ee06c.woff b/build_odroid/roles/build_clients/files/elm_static/0204f58a80d501469499b37c882ee06c.woff new file mode 100644 index 0000000..22e6c97 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/0204f58a80d501469499b37c882ee06c.woff differ diff --git a/build_odroid/roles/build_clients/files/elm_static/0c69418ceacfe225f6245bc7cb35ee9e.woff2 b/build_odroid/roles/build_clients/files/elm_static/0c69418ceacfe225f6245bc7cb35ee9e.woff2 new file mode 100644 index 0000000..8f09e2e Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/0c69418ceacfe225f6245bc7cb35ee9e.woff2 differ diff --git a/build_odroid/roles/build_clients/files/elm_static/1343b7f254fa03f282b84d484e8b1ef0.eot b/build_odroid/roles/build_clients/files/elm_static/1343b7f254fa03f282b84d484e8b1ef0.eot new file mode 100644 index 0000000..03e1dd1 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/1343b7f254fa03f282b84d484e8b1ef0.eot differ diff --git a/build_odroid/roles/build_clients/files/elm_static/1658fb7ff5e46f220397f647753dea0e.eot b/build_odroid/roles/build_clients/files/elm_static/1658fb7ff5e46f220397f647753dea0e.eot new file mode 100644 index 0000000..474eca1 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/1658fb7ff5e46f220397f647753dea0e.eot differ diff --git a/build_odroid/roles/build_clients/files/elm_static/1b2b92e8f347c87e456599e91a79cc2e.ttf b/build_odroid/roles/build_clients/files/elm_static/1b2b92e8f347c87e456599e91a79cc2e.ttf new file mode 100644 index 0000000..7cb17c9 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/1b2b92e8f347c87e456599e91a79cc2e.ttf differ diff --git a/build_odroid/roles/build_clients/files/elm_static/1b2fe31f77652a3ede3ae777071837c2.svg b/build_odroid/roles/build_clients/files/elm_static/1b2fe31f77652a3ede3ae777071837c2.svg new file mode 100644 index 0000000..4a90155 --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/1b2fe31f77652a3ede3ae777071837c2.svg @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build_odroid/roles/build_clients/files/elm_static/1c2236df616e20bd4894a174fb2d5225.woff b/build_odroid/roles/build_clients/files/elm_static/1c2236df616e20bd4894a174fb2d5225.woff new file mode 100644 index 0000000..8abb787 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/1c2236df616e20bd4894a174fb2d5225.woff differ diff --git a/build_odroid/roles/build_clients/files/elm_static/1e2be9ce2b53daa622b1b966214bbbb0.woff2 b/build_odroid/roles/build_clients/files/elm_static/1e2be9ce2b53daa622b1b966214bbbb0.woff2 new file mode 100644 index 0000000..7be7c33 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/1e2be9ce2b53daa622b1b966214bbbb0.woff2 differ diff --git a/build_odroid/roles/build_clients/files/elm_static/1f11fd578571d7ca0f559f550e7831b3.woff2 b/build_odroid/roles/build_clients/files/elm_static/1f11fd578571d7ca0f559f550e7831b3.woff2 new file mode 100644 index 0000000..e5103fe Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/1f11fd578571d7ca0f559f550e7831b3.woff2 differ diff --git a/build_odroid/roles/build_clients/files/elm_static/243a8ea4b8c5d016075ca4afac4da8f0.woff b/build_odroid/roles/build_clients/files/elm_static/243a8ea4b8c5d016075ca4afac4da8f0.woff new file mode 100644 index 0000000..a4891eb Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/243a8ea4b8c5d016075ca4afac4da8f0.woff differ diff --git a/build_odroid/roles/build_clients/files/elm_static/28ca1a3fd68f6ef41723ff921bfc2de8.eot b/build_odroid/roles/build_clients/files/elm_static/28ca1a3fd68f6ef41723ff921bfc2de8.eot new file mode 100644 index 0000000..5936262 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/28ca1a3fd68f6ef41723ff921bfc2de8.eot differ diff --git a/build_odroid/roles/build_clients/files/elm_static/290e6a6c01f4703f351415432980aa2f.svg b/build_odroid/roles/build_clients/files/elm_static/290e6a6c01f4703f351415432980aa2f.svg new file mode 100644 index 0000000..ea86b20 --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/290e6a6c01f4703f351415432980aa2f.svg @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build_odroid/roles/build_clients/files/elm_static/3a1fd68839b6484697eb9be097167eb5.ttf b/build_odroid/roles/build_clients/files/elm_static/3a1fd68839b6484697eb9be097167eb5.ttf new file mode 100644 index 0000000..31e381a Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/3a1fd68839b6484697eb9be097167eb5.ttf differ diff --git a/build_odroid/roles/build_clients/files/elm_static/3d3a53586bd78d1069ae4b89a3b9aa98.svg b/build_odroid/roles/build_clients/files/elm_static/3d3a53586bd78d1069ae4b89a3b9aa98.svg new file mode 100644 index 0000000..ed55c10 --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/3d3a53586bd78d1069ae4b89a3b9aa98.svg @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build_odroid/roles/build_clients/files/elm_static/434e520c656cf117085de8cc4aaa2bc2.woff b/build_odroid/roles/build_clients/files/elm_static/434e520c656cf117085de8cc4aaa2bc2.woff new file mode 100644 index 0000000..4340e8f Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/434e520c656cf117085de8cc4aaa2bc2.woff differ diff --git a/build_odroid/roles/build_clients/files/elm_static/453ee13f0ab2da9315986717468d873d.ttf b/build_odroid/roles/build_clients/files/elm_static/453ee13f0ab2da9315986717468d873d.ttf new file mode 100644 index 0000000..28a6a07 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/453ee13f0ab2da9315986717468d873d.ttf differ diff --git a/build_odroid/roles/build_clients/files/elm_static/59288a767a1c97571b3475982e1e00c2.woff2 b/build_odroid/roles/build_clients/files/elm_static/59288a767a1c97571b3475982e1e00c2.woff2 new file mode 100644 index 0000000..0327d18 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/59288a767a1c97571b3475982e1e00c2.woff2 differ diff --git a/build_odroid/roles/build_clients/files/elm_static/5e8dacb38b60db75a513e6691748ac41.eot b/build_odroid/roles/build_clients/files/elm_static/5e8dacb38b60db75a513e6691748ac41.eot new file mode 100644 index 0000000..8c202df Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/5e8dacb38b60db75a513e6691748ac41.eot differ diff --git a/build_odroid/roles/build_clients/files/elm_static/648c0c9e9baa984377419ef440e9fd76.eot b/build_odroid/roles/build_clients/files/elm_static/648c0c9e9baa984377419ef440e9fd76.eot new file mode 100644 index 0000000..73a0dd1 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/648c0c9e9baa984377419ef440e9fd76.eot differ diff --git a/build_odroid/roles/build_clients/files/elm_static/76ce747879e02ee93c9b83f457ab24ca.woff2 b/build_odroid/roles/build_clients/files/elm_static/76ce747879e02ee93c9b83f457ab24ca.woff2 new file mode 100644 index 0000000..35cf6de Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/76ce747879e02ee93c9b83f457ab24ca.woff2 differ diff --git a/build_odroid/roles/build_clients/files/elm_static/87a79b495a5075c0a81273c2942b04cd.svg b/build_odroid/roles/build_clients/files/elm_static/87a79b495a5075c0a81273c2942b04cd.svg new file mode 100644 index 0000000..609ab9b --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/87a79b495a5075c0a81273c2942b04cd.svg @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build_odroid/roles/build_clients/files/elm_static/96a9bbe5d32f7fe96e844bcbf7b4e05d.svg b/build_odroid/roles/build_clients/files/elm_static/96a9bbe5d32f7fe96e844bcbf7b4e05d.svg new file mode 100644 index 0000000..f384d9c --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/96a9bbe5d32f7fe96e844bcbf7b4e05d.svg @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build_odroid/roles/build_clients/files/elm_static/9723add759ca860091c4960e567bd1fa.woff2 b/build_odroid/roles/build_clients/files/elm_static/9723add759ca860091c4960e567bd1fa.woff2 new file mode 100644 index 0000000..70994a2 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/9723add759ca860091c4960e567bd1fa.woff2 differ diff --git a/build_odroid/roles/build_clients/files/elm_static/a84d4b00b169826c4aea77a8611b1e56.woff b/build_odroid/roles/build_clients/files/elm_static/a84d4b00b169826c4aea77a8611b1e56.woff new file mode 100644 index 0000000..37da772 Binary files /dev/null and b/build_odroid/roles/build_clients/files/elm_static/a84d4b00b169826c4aea77a8611b1e56.woff differ diff --git a/build_odroid/roles/build_clients/files/elm_static/app.admin-styles.css b/build_odroid/roles/build_clients/files/elm_static/app.admin-styles.css new file mode 100644 index 0000000..211d56c --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/app.admin-styles.css @@ -0,0 +1,187 @@ +/* +fonts.css + +The fonts needed for Material Design. + +Generated by: https://google-webfonts-helper.herokuapp.com/fonts/ + +based upon this as the requirement: + + + +*/ + + +/* roboto-regular - latin-ext_latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: url(1658fb7ff5e46f220397f647753dea0e.eot); /* IE9 Compat Modes */ + src: local('Roboto'), local('Roboto-Regular'), + url(1658fb7ff5e46f220397f647753dea0e.eot?#iefix) format('embedded-opentype'), + url(9723add759ca860091c4960e567bd1fa.woff2) format('woff2'), + url(a84d4b00b169826c4aea77a8611b1e56.woff) format('woff'), + url(1b2b92e8f347c87e456599e91a79cc2e.ttf) format('truetype'), + url(3d3a53586bd78d1069ae4b89a3b9aa98.svg#Roboto) format('svg'); /* Legacy iOS */ +} +/* roboto-300italic - latin-ext_latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: url(1343b7f254fa03f282b84d484e8b1ef0.eot); /* IE9 Compat Modes */ + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), + url(1343b7f254fa03f282b84d484e8b1ef0.eot?#iefix) format('embedded-opentype'), + url(0c69418ceacfe225f6245bc7cb35ee9e.woff2) format('woff2'), + url(1c2236df616e20bd4894a174fb2d5225.woff) format('woff'), + url(bbe79cc5c634b8422d2ad1a4a4a6c5f6.ttf) format('truetype'), + url(290e6a6c01f4703f351415432980aa2f.svg#Roboto) format('svg'); /* Legacy iOS */ +} +/* roboto-500 - latin-ext_latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: url(648c0c9e9baa984377419ef440e9fd76.eot); /* IE9 Compat Modes */ + src: local('Roboto Medium'), local('Roboto-Medium'), + url(648c0c9e9baa984377419ef440e9fd76.eot?#iefix) format('embedded-opentype'), + url(1e2be9ce2b53daa622b1b966214bbbb0.woff2) format('woff2'), + url(243a8ea4b8c5d016075ca4afac4da8f0.woff) format('woff'), + url(453ee13f0ab2da9315986717468d873d.ttf) format('truetype'), + url(f1d811cdfaea49c969500d4bbe52251b.svg#Roboto) format('svg'); /* Legacy iOS */ +} + + +/* roboto-mono-regular - latin-ext_latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: url(e001e59a54f1295535fc1031ccc8f999.eot); /* IE9 Compat Modes */ + src: local('Roboto Mono'), local('RobotoMono-Regular'), + url(e001e59a54f1295535fc1031ccc8f999.eot?#iefix) format('embedded-opentype'), + url(59288a767a1c97571b3475982e1e00c2.woff2) format('woff2'), + url(cfc1cd7dec5c84d7ab09a365d6e111df.woff) format('woff'), + url(f9ca3b6f2de069bad0195dfa8cb6a5f1.ttf) format('truetype'), + url(96a9bbe5d32f7fe96e844bcbf7b4e05d.svg#RobotoMono) format('svg'); /* Legacy iOS */ +} + + + +/* roboto-condensed-regular - latin-ext_latin */ +@font-face { + font-family: 'Roboto Condensed'; + font-style: normal; + font-weight: 400; + src: url(5e8dacb38b60db75a513e6691748ac41.eot); /* IE9 Compat Modes */ + src: local('Roboto Condensed'), local('RobotoCondensed-Regular'), + url(5e8dacb38b60db75a513e6691748ac41.eot?#iefix) format('embedded-opentype'), + url(1f11fd578571d7ca0f559f550e7831b3.woff2) format('woff2'), + url(434e520c656cf117085de8cc4aaa2bc2.woff) format('woff'), + url(3a1fd68839b6484697eb9be097167eb5.ttf) format('truetype'), + url(87a79b495a5075c0a81273c2942b04cd.svg#RobotoCondensed) format('svg'); /* Legacy iOS */ +} +/* roboto-condensed-700 - latin-ext_latin */ +@font-face { + font-family: 'Roboto Condensed'; + font-style: normal; + font-weight: 700; + src: url(28ca1a3fd68f6ef41723ff921bfc2de8.eot); /* IE9 Compat Modes */ + src: local('Roboto Condensed Bold'), local('RobotoCondensed-Bold'), + url(28ca1a3fd68f6ef41723ff921bfc2de8.eot?#iefix) format('embedded-opentype'), + url(76ce747879e02ee93c9b83f457ab24ca.woff2) format('woff2'), + url(0204f58a80d501469499b37c882ee06c.woff) format('woff'), + url(fe353925ebc6cb6397f436bd1aaddbf4.ttf) format('truetype'), + url(1b2fe31f77652a3ede3ae777071837c2.svg#RobotoCondensed) format('svg'); /* Legacy iOS */ +} + + + + + + +/* System Log */ +.system-log { + border-top: 2px solid black; + border-bottom: 2px solid black; + border-left: 1px solid #E9E9E9; + border-right: 1px solid #E9E9E9; + height: 300px; + max-height: 300px; + overflow-y: scroll; + margin-left: 0; + padding-left: 0; +} +.system-log-line { + font-weight: bold; + list-style: none; +} +.system-log-line-even { + background-color: #E9E9E9; +} +.system-log-line-odd { + background-color: white; +} + +/* Make labels easier to see. */ +label.mdl-textfield__label { + color: black !important; +} + +/* Warnings and notices */ +.footer-warning-header { + color: white; + font-weight: bold; + padding-bottom: 0.5em; +} + +/* Field level errors/warnings. */ +.error-field { + color: #FF6464; + font-weight: bold; + margin-left: 1em; +} + +/* Allow contents to scroll sideways if necessary. */ +.horizontal-scroll { + overflow-x: auto; +} + +/* Selected background color for list item. */ +.listItem { + border-bottom: 1px solid #999999; +} +.selectedListItem { + background-color: #999999; +} + +/* Background highlight for alternate rows. */ +.altRowBackground { + background-color: #f0f0f0; +} + +/* Padding for a span in a MDL list item. */ +span.bodyItem { + margin-right: 10px; +} + +/* A not too big label. */ +.smallLabel { + color: #666666; + font: 16px; +} +.smallLabelBold { + color: #323232; + font: 16px; + font-weight: bold; +} + +/** + * material-design-lite - Material Design Components in CSS, JS and HTML + * @version v1.2.1 + * @license Apache-2.0 + * @copyright 2015 Google, Inc. + * @link https://github.com/google/material-design-lite + */ +@charset "UTF-8";html{color:rgba(0,0,0,.87)}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}audio,canvas,iframe,img,svg,video{vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.browserupgrade{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.hidden{display:none!important}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}@media print{*,*:before,*:after,*:first-letter{background:transparent!important;color:#000!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href)")"}abbr[title]:after{content:" (" attr(title)")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}a,.mdl-accordion,.mdl-button,.mdl-card,.mdl-checkbox,.mdl-dropdown-menu,.mdl-icon-toggle,.mdl-item,.mdl-radio,.mdl-slider,.mdl-switch,.mdl-tabs__tab{-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:rgba(255,255,255,0)}html{width:100%;height:100%;-ms-touch-action:manipulation;touch-action:manipulation}body{width:100%;min-height:100%}main{display:block}*[hidden]{display:none!important}html,body{font-family:"Helvetica","Arial",sans-serif;font-size:14px;font-weight:400;line-height:20px}h1,h2,h3,h4,h5,h6,p{padding:0}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-family:"Roboto","Helvetica","Arial",sans-serif;font-weight:400;line-height:1.35;letter-spacing:-.02em;opacity:.54;font-size:.6em}h1{font-size:56px;line-height:1.35;letter-spacing:-.02em;margin:24px 0}h1,h2{font-family:"Roboto","Helvetica","Arial",sans-serif;font-weight:400}h2{font-size:45px;line-height:48px}h2,h3{margin:24px 0}h3{font-size:34px;line-height:40px}h3,h4{font-family:"Roboto","Helvetica","Arial",sans-serif;font-weight:400}h4{font-size:24px;line-height:32px;-moz-osx-font-smoothing:grayscale;margin:24px 0 16px}h5{font-size:20px;font-weight:500;line-height:1;letter-spacing:.02em}h5,h6{font-family:"Roboto","Helvetica","Arial",sans-serif;margin:24px 0 16px}h6{font-size:16px;letter-spacing:.04em}h6,p{font-weight:400;line-height:24px}p{font-size:14px;letter-spacing:0;margin:0 0 16px}a{color:rgb(178,255,89);font-weight:500}blockquote{font-family:"Roboto","Helvetica","Arial",sans-serif;position:relative;font-size:24px;font-weight:300;font-style:italic;line-height:1.35;letter-spacing:.08em}blockquote:before{position:absolute;left:-.5em;content:'\201C'}blockquote:after{content:'\201D';margin-left:-.05em}mark{background-color:#f4ff81}dt{font-weight:700}address{font-size:12px;line-height:1;font-style:normal}address,ul,ol{font-weight:400;letter-spacing:0}ul,ol{font-size:14px;line-height:24px}.mdl-typography--display-4,.mdl-typography--display-4-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:112px;font-weight:300;line-height:1;letter-spacing:-.04em}.mdl-typography--display-4-color-contrast{opacity:.54}.mdl-typography--display-3,.mdl-typography--display-3-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:56px;font-weight:400;line-height:1.35;letter-spacing:-.02em}.mdl-typography--display-3-color-contrast{opacity:.54}.mdl-typography--display-2,.mdl-typography--display-2-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:45px;font-weight:400;line-height:48px}.mdl-typography--display-2-color-contrast{opacity:.54}.mdl-typography--display-1,.mdl-typography--display-1-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:34px;font-weight:400;line-height:40px}.mdl-typography--display-1-color-contrast{opacity:.54}.mdl-typography--headline,.mdl-typography--headline-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:24px;font-weight:400;line-height:32px;-moz-osx-font-smoothing:grayscale}.mdl-typography--headline-color-contrast{opacity:.87}.mdl-typography--title,.mdl-typography--title-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:20px;font-weight:500;line-height:1;letter-spacing:.02em}.mdl-typography--title-color-contrast{opacity:.87}.mdl-typography--subhead,.mdl-typography--subhead-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.04em}.mdl-typography--subhead-color-contrast{opacity:.87}.mdl-typography--body-2,.mdl-typography--body-2-color-contrast{font-size:14px;font-weight:700;line-height:24px;letter-spacing:0}.mdl-typography--body-2-color-contrast{opacity:.87}.mdl-typography--body-1,.mdl-typography--body-1-color-contrast{font-size:14px;font-weight:400;line-height:24px;letter-spacing:0}.mdl-typography--body-1-color-contrast{opacity:.87}.mdl-typography--body-2-force-preferred-font,.mdl-typography--body-2-force-preferred-font-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:14px;font-weight:500;line-height:24px;letter-spacing:0}.mdl-typography--body-2-force-preferred-font-color-contrast{opacity:.87}.mdl-typography--body-1-force-preferred-font,.mdl-typography--body-1-force-preferred-font-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:14px;font-weight:400;line-height:24px;letter-spacing:0}.mdl-typography--body-1-force-preferred-font-color-contrast{opacity:.87}.mdl-typography--caption,.mdl-typography--caption-force-preferred-font{font-size:12px;font-weight:400;line-height:1;letter-spacing:0}.mdl-typography--caption-force-preferred-font{font-family:"Roboto","Helvetica","Arial",sans-serif}.mdl-typography--caption-color-contrast,.mdl-typography--caption-force-preferred-font-color-contrast{font-size:12px;font-weight:400;line-height:1;letter-spacing:0;opacity:.54}.mdl-typography--caption-force-preferred-font-color-contrast,.mdl-typography--menu{font-family:"Roboto","Helvetica","Arial",sans-serif}.mdl-typography--menu{font-size:14px;font-weight:500;line-height:1;letter-spacing:0}.mdl-typography--menu-color-contrast{opacity:.87}.mdl-typography--menu-color-contrast,.mdl-typography--button,.mdl-typography--button-color-contrast{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:14px;font-weight:500;line-height:1;letter-spacing:0}.mdl-typography--button,.mdl-typography--button-color-contrast{text-transform:uppercase}.mdl-typography--button-color-contrast{opacity:.87}.mdl-typography--text-left{text-align:left}.mdl-typography--text-right{text-align:right}.mdl-typography--text-center{text-align:center}.mdl-typography--text-justify{text-align:justify}.mdl-typography--text-nowrap{white-space:nowrap}.mdl-typography--text-lowercase{text-transform:lowercase}.mdl-typography--text-uppercase{text-transform:uppercase}.mdl-typography--text-capitalize{text-transform:capitalize}.mdl-typography--font-thin{font-weight:200!important}.mdl-typography--font-light{font-weight:300!important}.mdl-typography--font-regular{font-weight:400!important}.mdl-typography--font-medium{font-weight:500!important}.mdl-typography--font-bold{font-weight:700!important}.mdl-typography--font-black{font-weight:900!important}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;word-wrap:normal;-moz-font-feature-settings:'liga';font-feature-settings:'liga';-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}.mdl-color-text--red{color:#f44336 !important}.mdl-color--red{background-color:#f44336 !important}.mdl-color-text--red-50{color:#ffebee !important}.mdl-color--red-50{background-color:#ffebee !important}.mdl-color-text--red-100{color:#ffcdd2 !important}.mdl-color--red-100{background-color:#ffcdd2 !important}.mdl-color-text--red-200{color:#ef9a9a !important}.mdl-color--red-200{background-color:#ef9a9a !important}.mdl-color-text--red-300{color:#e57373 !important}.mdl-color--red-300{background-color:#e57373 !important}.mdl-color-text--red-400{color:#ef5350 !important}.mdl-color--red-400{background-color:#ef5350 !important}.mdl-color-text--red-500{color:#f44336 !important}.mdl-color--red-500{background-color:#f44336 !important}.mdl-color-text--red-600{color:#e53935 !important}.mdl-color--red-600{background-color:#e53935 !important}.mdl-color-text--red-700{color:#d32f2f !important}.mdl-color--red-700{background-color:#d32f2f !important}.mdl-color-text--red-800{color:#c62828 !important}.mdl-color--red-800{background-color:#c62828 !important}.mdl-color-text--red-900{color:#b71c1c !important}.mdl-color--red-900{background-color:#b71c1c !important}.mdl-color-text--red-A100{color:#ff8a80 !important}.mdl-color--red-A100{background-color:#ff8a80 !important}.mdl-color-text--red-A200{color:#ff5252 !important}.mdl-color--red-A200{background-color:#ff5252 !important}.mdl-color-text--red-A400{color:#ff1744 !important}.mdl-color--red-A400{background-color:#ff1744 !important}.mdl-color-text--red-A700{color:#d50000 !important}.mdl-color--red-A700{background-color:#d50000 !important}.mdl-color-text--pink{color:#e91e63 !important}.mdl-color--pink{background-color:#e91e63 !important}.mdl-color-text--pink-50{color:#fce4ec !important}.mdl-color--pink-50{background-color:#fce4ec !important}.mdl-color-text--pink-100{color:#f8bbd0 !important}.mdl-color--pink-100{background-color:#f8bbd0 !important}.mdl-color-text--pink-200{color:#f48fb1 !important}.mdl-color--pink-200{background-color:#f48fb1 !important}.mdl-color-text--pink-300{color:#f06292 !important}.mdl-color--pink-300{background-color:#f06292 !important}.mdl-color-text--pink-400{color:#ec407a !important}.mdl-color--pink-400{background-color:#ec407a !important}.mdl-color-text--pink-500{color:#e91e63 !important}.mdl-color--pink-500{background-color:#e91e63 !important}.mdl-color-text--pink-600{color:#d81b60 !important}.mdl-color--pink-600{background-color:#d81b60 !important}.mdl-color-text--pink-700{color:#c2185b !important}.mdl-color--pink-700{background-color:#c2185b !important}.mdl-color-text--pink-800{color:#ad1457 !important}.mdl-color--pink-800{background-color:#ad1457 !important}.mdl-color-text--pink-900{color:#880e4f !important}.mdl-color--pink-900{background-color:#880e4f !important}.mdl-color-text--pink-A100{color:#ff80ab !important}.mdl-color--pink-A100{background-color:#ff80ab !important}.mdl-color-text--pink-A200{color:#ff4081 !important}.mdl-color--pink-A200{background-color:#ff4081 !important}.mdl-color-text--pink-A400{color:#f50057 !important}.mdl-color--pink-A400{background-color:#f50057 !important}.mdl-color-text--pink-A700{color:#c51162 !important}.mdl-color--pink-A700{background-color:#c51162 !important}.mdl-color-text--purple{color:#9c27b0 !important}.mdl-color--purple{background-color:#9c27b0 !important}.mdl-color-text--purple-50{color:#f3e5f5 !important}.mdl-color--purple-50{background-color:#f3e5f5 !important}.mdl-color-text--purple-100{color:#e1bee7 !important}.mdl-color--purple-100{background-color:#e1bee7 !important}.mdl-color-text--purple-200{color:#ce93d8 !important}.mdl-color--purple-200{background-color:#ce93d8 !important}.mdl-color-text--purple-300{color:#ba68c8 !important}.mdl-color--purple-300{background-color:#ba68c8 !important}.mdl-color-text--purple-400{color:#ab47bc !important}.mdl-color--purple-400{background-color:#ab47bc !important}.mdl-color-text--purple-500{color:#9c27b0 !important}.mdl-color--purple-500{background-color:#9c27b0 !important}.mdl-color-text--purple-600{color:#8e24aa !important}.mdl-color--purple-600{background-color:#8e24aa !important}.mdl-color-text--purple-700{color:#7b1fa2 !important}.mdl-color--purple-700{background-color:#7b1fa2 !important}.mdl-color-text--purple-800{color:#6a1b9a !important}.mdl-color--purple-800{background-color:#6a1b9a !important}.mdl-color-text--purple-900{color:#4a148c !important}.mdl-color--purple-900{background-color:#4a148c !important}.mdl-color-text--purple-A100{color:#ea80fc !important}.mdl-color--purple-A100{background-color:#ea80fc !important}.mdl-color-text--purple-A200{color:#e040fb !important}.mdl-color--purple-A200{background-color:#e040fb !important}.mdl-color-text--purple-A400{color:#d500f9 !important}.mdl-color--purple-A400{background-color:#d500f9 !important}.mdl-color-text--purple-A700{color:#a0f !important}.mdl-color--purple-A700{background-color:#a0f !important}.mdl-color-text--deep-purple{color:#673ab7 !important}.mdl-color--deep-purple{background-color:#673ab7 !important}.mdl-color-text--deep-purple-50{color:#ede7f6 !important}.mdl-color--deep-purple-50{background-color:#ede7f6 !important}.mdl-color-text--deep-purple-100{color:#d1c4e9 !important}.mdl-color--deep-purple-100{background-color:#d1c4e9 !important}.mdl-color-text--deep-purple-200{color:#b39ddb !important}.mdl-color--deep-purple-200{background-color:#b39ddb !important}.mdl-color-text--deep-purple-300{color:#9575cd !important}.mdl-color--deep-purple-300{background-color:#9575cd !important}.mdl-color-text--deep-purple-400{color:#7e57c2 !important}.mdl-color--deep-purple-400{background-color:#7e57c2 !important}.mdl-color-text--deep-purple-500{color:#673ab7 !important}.mdl-color--deep-purple-500{background-color:#673ab7 !important}.mdl-color-text--deep-purple-600{color:#5e35b1 !important}.mdl-color--deep-purple-600{background-color:#5e35b1 !important}.mdl-color-text--deep-purple-700{color:#512da8 !important}.mdl-color--deep-purple-700{background-color:#512da8 !important}.mdl-color-text--deep-purple-800{color:#4527a0 !important}.mdl-color--deep-purple-800{background-color:#4527a0 !important}.mdl-color-text--deep-purple-900{color:#311b92 !important}.mdl-color--deep-purple-900{background-color:#311b92 !important}.mdl-color-text--deep-purple-A100{color:#b388ff !important}.mdl-color--deep-purple-A100{background-color:#b388ff !important}.mdl-color-text--deep-purple-A200{color:#7c4dff !important}.mdl-color--deep-purple-A200{background-color:#7c4dff !important}.mdl-color-text--deep-purple-A400{color:#651fff !important}.mdl-color--deep-purple-A400{background-color:#651fff !important}.mdl-color-text--deep-purple-A700{color:#6200ea !important}.mdl-color--deep-purple-A700{background-color:#6200ea !important}.mdl-color-text--indigo{color:#3f51b5 !important}.mdl-color--indigo{background-color:#3f51b5 !important}.mdl-color-text--indigo-50{color:#e8eaf6 !important}.mdl-color--indigo-50{background-color:#e8eaf6 !important}.mdl-color-text--indigo-100{color:#c5cae9 !important}.mdl-color--indigo-100{background-color:#c5cae9 !important}.mdl-color-text--indigo-200{color:#9fa8da !important}.mdl-color--indigo-200{background-color:#9fa8da !important}.mdl-color-text--indigo-300{color:#7986cb !important}.mdl-color--indigo-300{background-color:#7986cb !important}.mdl-color-text--indigo-400{color:#5c6bc0 !important}.mdl-color--indigo-400{background-color:#5c6bc0 !important}.mdl-color-text--indigo-500{color:#3f51b5 !important}.mdl-color--indigo-500{background-color:#3f51b5 !important}.mdl-color-text--indigo-600{color:#3949ab !important}.mdl-color--indigo-600{background-color:#3949ab !important}.mdl-color-text--indigo-700{color:#303f9f !important}.mdl-color--indigo-700{background-color:#303f9f !important}.mdl-color-text--indigo-800{color:#283593 !important}.mdl-color--indigo-800{background-color:#283593 !important}.mdl-color-text--indigo-900{color:#1a237e !important}.mdl-color--indigo-900{background-color:#1a237e !important}.mdl-color-text--indigo-A100{color:#8c9eff !important}.mdl-color--indigo-A100{background-color:#8c9eff !important}.mdl-color-text--indigo-A200{color:#536dfe !important}.mdl-color--indigo-A200{background-color:#536dfe !important}.mdl-color-text--indigo-A400{color:#3d5afe !important}.mdl-color--indigo-A400{background-color:#3d5afe !important}.mdl-color-text--indigo-A700{color:#304ffe !important}.mdl-color--indigo-A700{background-color:#304ffe !important}.mdl-color-text--blue{color:#2196f3 !important}.mdl-color--blue{background-color:#2196f3 !important}.mdl-color-text--blue-50{color:#e3f2fd !important}.mdl-color--blue-50{background-color:#e3f2fd !important}.mdl-color-text--blue-100{color:#bbdefb !important}.mdl-color--blue-100{background-color:#bbdefb !important}.mdl-color-text--blue-200{color:#90caf9 !important}.mdl-color--blue-200{background-color:#90caf9 !important}.mdl-color-text--blue-300{color:#64b5f6 !important}.mdl-color--blue-300{background-color:#64b5f6 !important}.mdl-color-text--blue-400{color:#42a5f5 !important}.mdl-color--blue-400{background-color:#42a5f5 !important}.mdl-color-text--blue-500{color:#2196f3 !important}.mdl-color--blue-500{background-color:#2196f3 !important}.mdl-color-text--blue-600{color:#1e88e5 !important}.mdl-color--blue-600{background-color:#1e88e5 !important}.mdl-color-text--blue-700{color:#1976d2 !important}.mdl-color--blue-700{background-color:#1976d2 !important}.mdl-color-text--blue-800{color:#1565c0 !important}.mdl-color--blue-800{background-color:#1565c0 !important}.mdl-color-text--blue-900{color:#0d47a1 !important}.mdl-color--blue-900{background-color:#0d47a1 !important}.mdl-color-text--blue-A100{color:#82b1ff !important}.mdl-color--blue-A100{background-color:#82b1ff !important}.mdl-color-text--blue-A200{color:#448aff !important}.mdl-color--blue-A200{background-color:#448aff !important}.mdl-color-text--blue-A400{color:#2979ff !important}.mdl-color--blue-A400{background-color:#2979ff !important}.mdl-color-text--blue-A700{color:#2962ff !important}.mdl-color--blue-A700{background-color:#2962ff !important}.mdl-color-text--light-blue{color:#03a9f4 !important}.mdl-color--light-blue{background-color:#03a9f4 !important}.mdl-color-text--light-blue-50{color:#e1f5fe !important}.mdl-color--light-blue-50{background-color:#e1f5fe !important}.mdl-color-text--light-blue-100{color:#b3e5fc !important}.mdl-color--light-blue-100{background-color:#b3e5fc !important}.mdl-color-text--light-blue-200{color:#81d4fa !important}.mdl-color--light-blue-200{background-color:#81d4fa !important}.mdl-color-text--light-blue-300{color:#4fc3f7 !important}.mdl-color--light-blue-300{background-color:#4fc3f7 !important}.mdl-color-text--light-blue-400{color:#29b6f6 !important}.mdl-color--light-blue-400{background-color:#29b6f6 !important}.mdl-color-text--light-blue-500{color:#03a9f4 !important}.mdl-color--light-blue-500{background-color:#03a9f4 !important}.mdl-color-text--light-blue-600{color:#039be5 !important}.mdl-color--light-blue-600{background-color:#039be5 !important}.mdl-color-text--light-blue-700{color:#0288d1 !important}.mdl-color--light-blue-700{background-color:#0288d1 !important}.mdl-color-text--light-blue-800{color:#0277bd !important}.mdl-color--light-blue-800{background-color:#0277bd !important}.mdl-color-text--light-blue-900{color:#01579b !important}.mdl-color--light-blue-900{background-color:#01579b !important}.mdl-color-text--light-blue-A100{color:#80d8ff !important}.mdl-color--light-blue-A100{background-color:#80d8ff !important}.mdl-color-text--light-blue-A200{color:#40c4ff !important}.mdl-color--light-blue-A200{background-color:#40c4ff !important}.mdl-color-text--light-blue-A400{color:#00b0ff !important}.mdl-color--light-blue-A400{background-color:#00b0ff !important}.mdl-color-text--light-blue-A700{color:#0091ea !important}.mdl-color--light-blue-A700{background-color:#0091ea !important}.mdl-color-text--cyan{color:#00bcd4 !important}.mdl-color--cyan{background-color:#00bcd4 !important}.mdl-color-text--cyan-50{color:#e0f7fa !important}.mdl-color--cyan-50{background-color:#e0f7fa !important}.mdl-color-text--cyan-100{color:#b2ebf2 !important}.mdl-color--cyan-100{background-color:#b2ebf2 !important}.mdl-color-text--cyan-200{color:#80deea !important}.mdl-color--cyan-200{background-color:#80deea !important}.mdl-color-text--cyan-300{color:#4dd0e1 !important}.mdl-color--cyan-300{background-color:#4dd0e1 !important}.mdl-color-text--cyan-400{color:#26c6da !important}.mdl-color--cyan-400{background-color:#26c6da !important}.mdl-color-text--cyan-500{color:#00bcd4 !important}.mdl-color--cyan-500{background-color:#00bcd4 !important}.mdl-color-text--cyan-600{color:#00acc1 !important}.mdl-color--cyan-600{background-color:#00acc1 !important}.mdl-color-text--cyan-700{color:#0097a7 !important}.mdl-color--cyan-700{background-color:#0097a7 !important}.mdl-color-text--cyan-800{color:#00838f !important}.mdl-color--cyan-800{background-color:#00838f !important}.mdl-color-text--cyan-900{color:#006064 !important}.mdl-color--cyan-900{background-color:#006064 !important}.mdl-color-text--cyan-A100{color:#84ffff !important}.mdl-color--cyan-A100{background-color:#84ffff !important}.mdl-color-text--cyan-A200{color:#18ffff !important}.mdl-color--cyan-A200{background-color:#18ffff !important}.mdl-color-text--cyan-A400{color:#00e5ff !important}.mdl-color--cyan-A400{background-color:#00e5ff !important}.mdl-color-text--cyan-A700{color:#00b8d4 !important}.mdl-color--cyan-A700{background-color:#00b8d4 !important}.mdl-color-text--teal{color:#009688 !important}.mdl-color--teal{background-color:#009688 !important}.mdl-color-text--teal-50{color:#e0f2f1 !important}.mdl-color--teal-50{background-color:#e0f2f1 !important}.mdl-color-text--teal-100{color:#b2dfdb !important}.mdl-color--teal-100{background-color:#b2dfdb !important}.mdl-color-text--teal-200{color:#80cbc4 !important}.mdl-color--teal-200{background-color:#80cbc4 !important}.mdl-color-text--teal-300{color:#4db6ac !important}.mdl-color--teal-300{background-color:#4db6ac !important}.mdl-color-text--teal-400{color:#26a69a !important}.mdl-color--teal-400{background-color:#26a69a !important}.mdl-color-text--teal-500{color:#009688 !important}.mdl-color--teal-500{background-color:#009688 !important}.mdl-color-text--teal-600{color:#00897b !important}.mdl-color--teal-600{background-color:#00897b !important}.mdl-color-text--teal-700{color:#00796b !important}.mdl-color--teal-700{background-color:#00796b !important}.mdl-color-text--teal-800{color:#00695c !important}.mdl-color--teal-800{background-color:#00695c !important}.mdl-color-text--teal-900{color:#004d40 !important}.mdl-color--teal-900{background-color:#004d40 !important}.mdl-color-text--teal-A100{color:#a7ffeb !important}.mdl-color--teal-A100{background-color:#a7ffeb !important}.mdl-color-text--teal-A200{color:#64ffda !important}.mdl-color--teal-A200{background-color:#64ffda !important}.mdl-color-text--teal-A400{color:#1de9b6 !important}.mdl-color--teal-A400{background-color:#1de9b6 !important}.mdl-color-text--teal-A700{color:#00bfa5 !important}.mdl-color--teal-A700{background-color:#00bfa5 !important}.mdl-color-text--green{color:#4caf50 !important}.mdl-color--green{background-color:#4caf50 !important}.mdl-color-text--green-50{color:#e8f5e9 !important}.mdl-color--green-50{background-color:#e8f5e9 !important}.mdl-color-text--green-100{color:#c8e6c9 !important}.mdl-color--green-100{background-color:#c8e6c9 !important}.mdl-color-text--green-200{color:#a5d6a7 !important}.mdl-color--green-200{background-color:#a5d6a7 !important}.mdl-color-text--green-300{color:#81c784 !important}.mdl-color--green-300{background-color:#81c784 !important}.mdl-color-text--green-400{color:#66bb6a !important}.mdl-color--green-400{background-color:#66bb6a !important}.mdl-color-text--green-500{color:#4caf50 !important}.mdl-color--green-500{background-color:#4caf50 !important}.mdl-color-text--green-600{color:#43a047 !important}.mdl-color--green-600{background-color:#43a047 !important}.mdl-color-text--green-700{color:#388e3c !important}.mdl-color--green-700{background-color:#388e3c !important}.mdl-color-text--green-800{color:#2e7d32 !important}.mdl-color--green-800{background-color:#2e7d32 !important}.mdl-color-text--green-900{color:#1b5e20 !important}.mdl-color--green-900{background-color:#1b5e20 !important}.mdl-color-text--green-A100{color:#b9f6ca !important}.mdl-color--green-A100{background-color:#b9f6ca !important}.mdl-color-text--green-A200{color:#69f0ae !important}.mdl-color--green-A200{background-color:#69f0ae !important}.mdl-color-text--green-A400{color:#00e676 !important}.mdl-color--green-A400{background-color:#00e676 !important}.mdl-color-text--green-A700{color:#00c853 !important}.mdl-color--green-A700{background-color:#00c853 !important}.mdl-color-text--light-green{color:#8bc34a !important}.mdl-color--light-green{background-color:#8bc34a !important}.mdl-color-text--light-green-50{color:#f1f8e9 !important}.mdl-color--light-green-50{background-color:#f1f8e9 !important}.mdl-color-text--light-green-100{color:#dcedc8 !important}.mdl-color--light-green-100{background-color:#dcedc8 !important}.mdl-color-text--light-green-200{color:#c5e1a5 !important}.mdl-color--light-green-200{background-color:#c5e1a5 !important}.mdl-color-text--light-green-300{color:#aed581 !important}.mdl-color--light-green-300{background-color:#aed581 !important}.mdl-color-text--light-green-400{color:#9ccc65 !important}.mdl-color--light-green-400{background-color:#9ccc65 !important}.mdl-color-text--light-green-500{color:#8bc34a !important}.mdl-color--light-green-500{background-color:#8bc34a !important}.mdl-color-text--light-green-600{color:#7cb342 !important}.mdl-color--light-green-600{background-color:#7cb342 !important}.mdl-color-text--light-green-700{color:#689f38 !important}.mdl-color--light-green-700{background-color:#689f38 !important}.mdl-color-text--light-green-800{color:#558b2f !important}.mdl-color--light-green-800{background-color:#558b2f !important}.mdl-color-text--light-green-900{color:#33691e !important}.mdl-color--light-green-900{background-color:#33691e !important}.mdl-color-text--light-green-A100{color:#ccff90 !important}.mdl-color--light-green-A100{background-color:#ccff90 !important}.mdl-color-text--light-green-A200{color:#b2ff59 !important}.mdl-color--light-green-A200{background-color:#b2ff59 !important}.mdl-color-text--light-green-A400{color:#76ff03 !important}.mdl-color--light-green-A400{background-color:#76ff03 !important}.mdl-color-text--light-green-A700{color:#64dd17 !important}.mdl-color--light-green-A700{background-color:#64dd17 !important}.mdl-color-text--lime{color:#cddc39 !important}.mdl-color--lime{background-color:#cddc39 !important}.mdl-color-text--lime-50{color:#f9fbe7 !important}.mdl-color--lime-50{background-color:#f9fbe7 !important}.mdl-color-text--lime-100{color:#f0f4c3 !important}.mdl-color--lime-100{background-color:#f0f4c3 !important}.mdl-color-text--lime-200{color:#e6ee9c !important}.mdl-color--lime-200{background-color:#e6ee9c !important}.mdl-color-text--lime-300{color:#dce775 !important}.mdl-color--lime-300{background-color:#dce775 !important}.mdl-color-text--lime-400{color:#d4e157 !important}.mdl-color--lime-400{background-color:#d4e157 !important}.mdl-color-text--lime-500{color:#cddc39 !important}.mdl-color--lime-500{background-color:#cddc39 !important}.mdl-color-text--lime-600{color:#c0ca33 !important}.mdl-color--lime-600{background-color:#c0ca33 !important}.mdl-color-text--lime-700{color:#afb42b !important}.mdl-color--lime-700{background-color:#afb42b !important}.mdl-color-text--lime-800{color:#9e9d24 !important}.mdl-color--lime-800{background-color:#9e9d24 !important}.mdl-color-text--lime-900{color:#827717 !important}.mdl-color--lime-900{background-color:#827717 !important}.mdl-color-text--lime-A100{color:#f4ff81 !important}.mdl-color--lime-A100{background-color:#f4ff81 !important}.mdl-color-text--lime-A200{color:#eeff41 !important}.mdl-color--lime-A200{background-color:#eeff41 !important}.mdl-color-text--lime-A400{color:#c6ff00 !important}.mdl-color--lime-A400{background-color:#c6ff00 !important}.mdl-color-text--lime-A700{color:#aeea00 !important}.mdl-color--lime-A700{background-color:#aeea00 !important}.mdl-color-text--yellow{color:#ffeb3b !important}.mdl-color--yellow{background-color:#ffeb3b !important}.mdl-color-text--yellow-50{color:#fffde7 !important}.mdl-color--yellow-50{background-color:#fffde7 !important}.mdl-color-text--yellow-100{color:#fff9c4 !important}.mdl-color--yellow-100{background-color:#fff9c4 !important}.mdl-color-text--yellow-200{color:#fff59d !important}.mdl-color--yellow-200{background-color:#fff59d !important}.mdl-color-text--yellow-300{color:#fff176 !important}.mdl-color--yellow-300{background-color:#fff176 !important}.mdl-color-text--yellow-400{color:#ffee58 !important}.mdl-color--yellow-400{background-color:#ffee58 !important}.mdl-color-text--yellow-500{color:#ffeb3b !important}.mdl-color--yellow-500{background-color:#ffeb3b !important}.mdl-color-text--yellow-600{color:#fdd835 !important}.mdl-color--yellow-600{background-color:#fdd835 !important}.mdl-color-text--yellow-700{color:#fbc02d !important}.mdl-color--yellow-700{background-color:#fbc02d !important}.mdl-color-text--yellow-800{color:#f9a825 !important}.mdl-color--yellow-800{background-color:#f9a825 !important}.mdl-color-text--yellow-900{color:#f57f17 !important}.mdl-color--yellow-900{background-color:#f57f17 !important}.mdl-color-text--yellow-A100{color:#ffff8d !important}.mdl-color--yellow-A100{background-color:#ffff8d !important}.mdl-color-text--yellow-A200{color:#ff0 !important}.mdl-color--yellow-A200{background-color:#ff0 !important}.mdl-color-text--yellow-A400{color:#ffea00 !important}.mdl-color--yellow-A400{background-color:#ffea00 !important}.mdl-color-text--yellow-A700{color:#ffd600 !important}.mdl-color--yellow-A700{background-color:#ffd600 !important}.mdl-color-text--amber{color:#ffc107 !important}.mdl-color--amber{background-color:#ffc107 !important}.mdl-color-text--amber-50{color:#fff8e1 !important}.mdl-color--amber-50{background-color:#fff8e1 !important}.mdl-color-text--amber-100{color:#ffecb3 !important}.mdl-color--amber-100{background-color:#ffecb3 !important}.mdl-color-text--amber-200{color:#ffe082 !important}.mdl-color--amber-200{background-color:#ffe082 !important}.mdl-color-text--amber-300{color:#ffd54f !important}.mdl-color--amber-300{background-color:#ffd54f !important}.mdl-color-text--amber-400{color:#ffca28 !important}.mdl-color--amber-400{background-color:#ffca28 !important}.mdl-color-text--amber-500{color:#ffc107 !important}.mdl-color--amber-500{background-color:#ffc107 !important}.mdl-color-text--amber-600{color:#ffb300 !important}.mdl-color--amber-600{background-color:#ffb300 !important}.mdl-color-text--amber-700{color:#ffa000 !important}.mdl-color--amber-700{background-color:#ffa000 !important}.mdl-color-text--amber-800{color:#ff8f00 !important}.mdl-color--amber-800{background-color:#ff8f00 !important}.mdl-color-text--amber-900{color:#ff6f00 !important}.mdl-color--amber-900{background-color:#ff6f00 !important}.mdl-color-text--amber-A100{color:#ffe57f !important}.mdl-color--amber-A100{background-color:#ffe57f !important}.mdl-color-text--amber-A200{color:#ffd740 !important}.mdl-color--amber-A200{background-color:#ffd740 !important}.mdl-color-text--amber-A400{color:#ffc400 !important}.mdl-color--amber-A400{background-color:#ffc400 !important}.mdl-color-text--amber-A700{color:#ffab00 !important}.mdl-color--amber-A700{background-color:#ffab00 !important}.mdl-color-text--orange{color:#ff9800 !important}.mdl-color--orange{background-color:#ff9800 !important}.mdl-color-text--orange-50{color:#fff3e0 !important}.mdl-color--orange-50{background-color:#fff3e0 !important}.mdl-color-text--orange-100{color:#ffe0b2 !important}.mdl-color--orange-100{background-color:#ffe0b2 !important}.mdl-color-text--orange-200{color:#ffcc80 !important}.mdl-color--orange-200{background-color:#ffcc80 !important}.mdl-color-text--orange-300{color:#ffb74d !important}.mdl-color--orange-300{background-color:#ffb74d !important}.mdl-color-text--orange-400{color:#ffa726 !important}.mdl-color--orange-400{background-color:#ffa726 !important}.mdl-color-text--orange-500{color:#ff9800 !important}.mdl-color--orange-500{background-color:#ff9800 !important}.mdl-color-text--orange-600{color:#fb8c00 !important}.mdl-color--orange-600{background-color:#fb8c00 !important}.mdl-color-text--orange-700{color:#f57c00 !important}.mdl-color--orange-700{background-color:#f57c00 !important}.mdl-color-text--orange-800{color:#ef6c00 !important}.mdl-color--orange-800{background-color:#ef6c00 !important}.mdl-color-text--orange-900{color:#e65100 !important}.mdl-color--orange-900{background-color:#e65100 !important}.mdl-color-text--orange-A100{color:#ffd180 !important}.mdl-color--orange-A100{background-color:#ffd180 !important}.mdl-color-text--orange-A200{color:#ffab40 !important}.mdl-color--orange-A200{background-color:#ffab40 !important}.mdl-color-text--orange-A400{color:#ff9100 !important}.mdl-color--orange-A400{background-color:#ff9100 !important}.mdl-color-text--orange-A700{color:#ff6d00 !important}.mdl-color--orange-A700{background-color:#ff6d00 !important}.mdl-color-text--deep-orange{color:#ff5722 !important}.mdl-color--deep-orange{background-color:#ff5722 !important}.mdl-color-text--deep-orange-50{color:#fbe9e7 !important}.mdl-color--deep-orange-50{background-color:#fbe9e7 !important}.mdl-color-text--deep-orange-100{color:#ffccbc !important}.mdl-color--deep-orange-100{background-color:#ffccbc !important}.mdl-color-text--deep-orange-200{color:#ffab91 !important}.mdl-color--deep-orange-200{background-color:#ffab91 !important}.mdl-color-text--deep-orange-300{color:#ff8a65 !important}.mdl-color--deep-orange-300{background-color:#ff8a65 !important}.mdl-color-text--deep-orange-400{color:#ff7043 !important}.mdl-color--deep-orange-400{background-color:#ff7043 !important}.mdl-color-text--deep-orange-500{color:#ff5722 !important}.mdl-color--deep-orange-500{background-color:#ff5722 !important}.mdl-color-text--deep-orange-600{color:#f4511e !important}.mdl-color--deep-orange-600{background-color:#f4511e !important}.mdl-color-text--deep-orange-700{color:#e64a19 !important}.mdl-color--deep-orange-700{background-color:#e64a19 !important}.mdl-color-text--deep-orange-800{color:#d84315 !important}.mdl-color--deep-orange-800{background-color:#d84315 !important}.mdl-color-text--deep-orange-900{color:#bf360c !important}.mdl-color--deep-orange-900{background-color:#bf360c !important}.mdl-color-text--deep-orange-A100{color:#ff9e80 !important}.mdl-color--deep-orange-A100{background-color:#ff9e80 !important}.mdl-color-text--deep-orange-A200{color:#ff6e40 !important}.mdl-color--deep-orange-A200{background-color:#ff6e40 !important}.mdl-color-text--deep-orange-A400{color:#ff3d00 !important}.mdl-color--deep-orange-A400{background-color:#ff3d00 !important}.mdl-color-text--deep-orange-A700{color:#dd2c00 !important}.mdl-color--deep-orange-A700{background-color:#dd2c00 !important}.mdl-color-text--brown{color:#795548 !important}.mdl-color--brown{background-color:#795548 !important}.mdl-color-text--brown-50{color:#efebe9 !important}.mdl-color--brown-50{background-color:#efebe9 !important}.mdl-color-text--brown-100{color:#d7ccc8 !important}.mdl-color--brown-100{background-color:#d7ccc8 !important}.mdl-color-text--brown-200{color:#bcaaa4 !important}.mdl-color--brown-200{background-color:#bcaaa4 !important}.mdl-color-text--brown-300{color:#a1887f !important}.mdl-color--brown-300{background-color:#a1887f !important}.mdl-color-text--brown-400{color:#8d6e63 !important}.mdl-color--brown-400{background-color:#8d6e63 !important}.mdl-color-text--brown-500{color:#795548 !important}.mdl-color--brown-500{background-color:#795548 !important}.mdl-color-text--brown-600{color:#6d4c41 !important}.mdl-color--brown-600{background-color:#6d4c41 !important}.mdl-color-text--brown-700{color:#5d4037 !important}.mdl-color--brown-700{background-color:#5d4037 !important}.mdl-color-text--brown-800{color:#4e342e !important}.mdl-color--brown-800{background-color:#4e342e !important}.mdl-color-text--brown-900{color:#3e2723 !important}.mdl-color--brown-900{background-color:#3e2723 !important}.mdl-color-text--grey{color:#9e9e9e !important}.mdl-color--grey{background-color:#9e9e9e !important}.mdl-color-text--grey-50{color:#fafafa !important}.mdl-color--grey-50{background-color:#fafafa !important}.mdl-color-text--grey-100{color:#f5f5f5 !important}.mdl-color--grey-100{background-color:#f5f5f5 !important}.mdl-color-text--grey-200{color:#eee !important}.mdl-color--grey-200{background-color:#eee !important}.mdl-color-text--grey-300{color:#e0e0e0 !important}.mdl-color--grey-300{background-color:#e0e0e0 !important}.mdl-color-text--grey-400{color:#bdbdbd !important}.mdl-color--grey-400{background-color:#bdbdbd !important}.mdl-color-text--grey-500{color:#9e9e9e !important}.mdl-color--grey-500{background-color:#9e9e9e !important}.mdl-color-text--grey-600{color:#757575 !important}.mdl-color--grey-600{background-color:#757575 !important}.mdl-color-text--grey-700{color:#616161 !important}.mdl-color--grey-700{background-color:#616161 !important}.mdl-color-text--grey-800{color:#424242 !important}.mdl-color--grey-800{background-color:#424242 !important}.mdl-color-text--grey-900{color:#212121 !important}.mdl-color--grey-900{background-color:#212121 !important}.mdl-color-text--blue-grey{color:#607d8b !important}.mdl-color--blue-grey{background-color:#607d8b !important}.mdl-color-text--blue-grey-50{color:#eceff1 !important}.mdl-color--blue-grey-50{background-color:#eceff1 !important}.mdl-color-text--blue-grey-100{color:#cfd8dc !important}.mdl-color--blue-grey-100{background-color:#cfd8dc !important}.mdl-color-text--blue-grey-200{color:#b0bec5 !important}.mdl-color--blue-grey-200{background-color:#b0bec5 !important}.mdl-color-text--blue-grey-300{color:#90a4ae !important}.mdl-color--blue-grey-300{background-color:#90a4ae !important}.mdl-color-text--blue-grey-400{color:#78909c !important}.mdl-color--blue-grey-400{background-color:#78909c !important}.mdl-color-text--blue-grey-500{color:#607d8b !important}.mdl-color--blue-grey-500{background-color:#607d8b !important}.mdl-color-text--blue-grey-600{color:#546e7a !important}.mdl-color--blue-grey-600{background-color:#546e7a !important}.mdl-color-text--blue-grey-700{color:#455a64 !important}.mdl-color--blue-grey-700{background-color:#455a64 !important}.mdl-color-text--blue-grey-800{color:#37474f !important}.mdl-color--blue-grey-800{background-color:#37474f !important}.mdl-color-text--blue-grey-900{color:#263238 !important}.mdl-color--blue-grey-900{background-color:#263238 !important}.mdl-color--black{background-color:#000 !important}.mdl-color-text--black{color:#000 !important}.mdl-color--white{background-color:#fff !important}.mdl-color-text--white{color:#fff !important}.mdl-color--primary{background-color:rgb(0,150,136)!important}.mdl-color--primary-contrast{background-color:rgb(255,255,255)!important}.mdl-color--primary-dark{background-color:rgb(0,121,107)!important}.mdl-color--accent{background-color:rgb(178,255,89)!important}.mdl-color--accent-contrast{background-color:rgb(66,66,66)!important}.mdl-color-text--primary{color:rgb(0,150,136)!important}.mdl-color-text--primary-contrast{color:rgb(255,255,255)!important}.mdl-color-text--primary-dark{color:rgb(0,121,107)!important}.mdl-color-text--accent{color:rgb(178,255,89)!important}.mdl-color-text--accent-contrast{color:rgb(66,66,66)!important}.mdl-ripple{background:#000;border-radius:50%;height:50px;left:0;opacity:0;pointer-events:none;position:absolute;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:50px;overflow:hidden}.mdl-ripple.is-animating{transition:transform .3s cubic-bezier(0,0,.2,1),width .3s cubic-bezier(0,0,.2,1),height .3s cubic-bezier(0,0,.2,1),opacity .6s cubic-bezier(0,0,.2,1);transition:transform .3s cubic-bezier(0,0,.2,1),width .3s cubic-bezier(0,0,.2,1),height .3s cubic-bezier(0,0,.2,1),opacity .6s cubic-bezier(0,0,.2,1),-webkit-transform .3s cubic-bezier(0,0,.2,1)}.mdl-ripple.is-visible{opacity:.3}.mdl-animation--default,.mdl-animation--fast-out-slow-in{transition-timing-function:cubic-bezier(.4,0,.2,1)}.mdl-animation--linear-out-slow-in{transition-timing-function:cubic-bezier(0,0,.2,1)}.mdl-animation--fast-out-linear-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.mdl-badge{position:relative;white-space:nowrap;margin-right:24px}.mdl-badge:not([data-badge]){margin-right:auto}.mdl-badge[data-badge]:after{content:attr(data-badge);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute;top:-11px;right:-24px;font-family:"Roboto","Helvetica","Arial",sans-serif;font-weight:600;font-size:12px;width:22px;height:22px;border-radius:50%;background:rgb(178,255,89);color:rgb(66,66,66)}.mdl-button .mdl-badge[data-badge]:after{top:-10px;right:-5px}.mdl-badge.mdl-badge--no-background[data-badge]:after{color:rgb(178,255,89);background:rgba(66,66,66,.2);box-shadow:0 0 1px gray}.mdl-badge.mdl-badge--overlap{margin-right:10px}.mdl-badge.mdl-badge--overlap:after{right:-10px}.mdl-button{background:0 0;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:0;min-width:64px;padding:0 16px;display:inline-block;font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:14px;font-weight:500;text-transform:uppercase;letter-spacing:0;overflow:hidden;will-change:box-shadow;transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.mdl-button::-moz-focus-inner{border:0}.mdl-button:hover{background-color:rgba(158,158,158,.2)}.mdl-button:focus:not(:active){background-color:rgba(0,0,0,.12)}.mdl-button:active{background-color:rgba(158,158,158,.4)}.mdl-button.mdl-button--colored{color:rgb(0,150,136)}.mdl-button.mdl-button--colored:focus:not(:active){background-color:rgba(0,0,0,.12)}input.mdl-button[type="submit"]{-webkit-appearance:none}.mdl-button--raised{background:rgba(158,158,158,.2);box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)}.mdl-button--raised:active{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.2);background-color:rgba(158,158,158,.4)}.mdl-button--raised:focus:not(:active){box-shadow:0 0 8px rgba(0,0,0,.18),0 8px 16px rgba(0,0,0,.36);background-color:rgba(158,158,158,.4)}.mdl-button--raised.mdl-button--colored{background:rgb(0,150,136);color:rgb(255,255,255)}.mdl-button--raised.mdl-button--colored:hover{background-color:rgb(0,150,136)}.mdl-button--raised.mdl-button--colored:active{background-color:rgb(0,150,136)}.mdl-button--raised.mdl-button--colored:focus:not(:active){background-color:rgb(0,150,136)}.mdl-button--raised.mdl-button--colored .mdl-ripple{background:rgb(255,255,255)}.mdl-button--fab{border-radius:50%;font-size:24px;height:56px;margin:auto;min-width:56px;width:56px;padding:0;overflow:hidden;background:rgba(158,158,158,.2);box-shadow:0 1px 1.5px 0 rgba(0,0,0,.12),0 1px 1px 0 rgba(0,0,0,.24);position:relative;line-height:normal}.mdl-button--fab .material-icons{position:absolute;top:50%;left:50%;-webkit-transform:translate(-12px,-12px);transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--fab.mdl-button--mini-fab{height:40px;min-width:40px;width:40px}.mdl-button--fab .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button--fab:active{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.2);background-color:rgba(158,158,158,.4)}.mdl-button--fab:focus:not(:active){box-shadow:0 0 8px rgba(0,0,0,.18),0 8px 16px rgba(0,0,0,.36);background-color:rgba(158,158,158,.4)}.mdl-button--fab.mdl-button--colored{background:rgb(178,255,89);color:rgb(66,66,66)}.mdl-button--fab.mdl-button--colored:hover{background-color:rgb(178,255,89)}.mdl-button--fab.mdl-button--colored:focus:not(:active){background-color:rgb(178,255,89)}.mdl-button--fab.mdl-button--colored:active{background-color:rgb(178,255,89)}.mdl-button--fab.mdl-button--colored .mdl-ripple{background:rgb(66,66,66)}.mdl-button--icon{border-radius:50%;font-size:24px;height:32px;margin-left:0;margin-right:0;min-width:32px;width:32px;padding:0;overflow:hidden;color:inherit;line-height:normal}.mdl-button--icon .material-icons{position:absolute;top:50%;left:50%;-webkit-transform:translate(-12px,-12px);transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon{height:24px;min-width:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon .material-icons{top:0;left:0}.mdl-button--icon .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button__ripple-container{display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:0;overflow:hidden}.mdl-button[disabled] .mdl-button__ripple-container .mdl-ripple,.mdl-button.mdl-button--disabled .mdl-button__ripple-container .mdl-ripple{background-color:transparent}.mdl-button--primary.mdl-button--primary{color:rgb(0,150,136)}.mdl-button--primary.mdl-button--primary .mdl-ripple{background:rgb(255,255,255)}.mdl-button--primary.mdl-button--primary.mdl-button--raised,.mdl-button--primary.mdl-button--primary.mdl-button--fab{color:rgb(255,255,255);background-color:rgb(0,150,136)}.mdl-button--accent.mdl-button--accent{color:rgb(178,255,89)}.mdl-button--accent.mdl-button--accent .mdl-ripple{background:rgb(66,66,66)}.mdl-button--accent.mdl-button--accent.mdl-button--raised,.mdl-button--accent.mdl-button--accent.mdl-button--fab{color:rgb(66,66,66);background-color:rgb(178,255,89)}.mdl-button[disabled][disabled],.mdl-button.mdl-button--disabled.mdl-button--disabled{color:rgba(0,0,0,.26);cursor:default;background-color:transparent}.mdl-button--fab[disabled][disabled],.mdl-button--fab.mdl-button--disabled.mdl-button--disabled{background-color:rgba(0,0,0,.12);color:rgba(0,0,0,.26)}.mdl-button--raised[disabled][disabled],.mdl-button--raised.mdl-button--disabled.mdl-button--disabled{background-color:rgba(0,0,0,.12);color:rgba(0,0,0,.26);box-shadow:none}.mdl-button--colored[disabled][disabled],.mdl-button--colored.mdl-button--disabled.mdl-button--disabled{color:rgba(0,0,0,.26)}.mdl-button .material-icons{vertical-align:middle}.mdl-card{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;font-size:16px;font-weight:400;min-height:200px;overflow:hidden;width:330px;z-index:1;position:relative;background:#fff;border-radius:2px;box-sizing:border-box}.mdl-card__media{background-color:rgb(178,255,89);background-repeat:repeat;background-position:50% 50%;background-size:cover;background-origin:padding-box;background-attachment:scroll;box-sizing:border-box}.mdl-card__title{-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#000;display:block;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch;line-height:normal;padding:16px;-webkit-perspective-origin:165px 56px;perspective-origin:165px 56px;-webkit-transform-origin:165px 56px;transform-origin:165px 56px;box-sizing:border-box}.mdl-card__title.mdl-card--border{border-bottom:1px solid rgba(0,0,0,.1)}.mdl-card__title-text{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;color:inherit;display:block;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:24px;font-weight:300;line-height:normal;overflow:hidden;-webkit-transform-origin:149px 48px;transform-origin:149px 48px;margin:0}.mdl-card__subtitle-text{font-size:14px;color:rgba(0,0,0,.54);margin:0}.mdl-card__supporting-text{color:rgba(0,0,0,.54);font-size:1rem;line-height:18px;overflow:hidden;padding:16px;width:90%}.mdl-card__actions{font-size:16px;line-height:normal;width:100%;background-color:transparent;padding:8px;box-sizing:border-box}.mdl-card__actions.mdl-card--border{border-top:1px solid rgba(0,0,0,.1)}.mdl-card--expand{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.mdl-card__menu{position:absolute;right:16px;top:16px}.mdl-checkbox{position:relative;z-index:1;vertical-align:middle;display:inline-block;box-sizing:border-box;width:100%;height:24px;margin:0;padding:0}.mdl-checkbox.is-upgraded{padding-left:24px}.mdl-checkbox__input{line-height:24px}.mdl-checkbox.is-upgraded .mdl-checkbox__input{position:absolute;width:0;height:0;margin:0;padding:0;opacity:0;-ms-appearance:none;-moz-appearance:none;-webkit-appearance:none;appearance:none;border:none}.mdl-checkbox__box-outline{position:absolute;top:3px;left:0;display:inline-block;box-sizing:border-box;width:16px;height:16px;margin:0;cursor:pointer;overflow:hidden;border:2px solid rgba(0,0,0,.54);border-radius:2px;z-index:2}.mdl-checkbox.is-checked .mdl-checkbox__box-outline{border:2px solid rgb(0,150,136)}fieldset[disabled] .mdl-checkbox .mdl-checkbox__box-outline,.mdl-checkbox.is-disabled .mdl-checkbox__box-outline{border:2px solid rgba(0,0,0,.26);cursor:auto}.mdl-checkbox__focus-helper{position:absolute;top:3px;left:0;display:inline-block;box-sizing:border-box;width:16px;height:16px;border-radius:50%;background-color:transparent}.mdl-checkbox.is-focused .mdl-checkbox__focus-helper{box-shadow:0 0 0 8px rgba(0,0,0,.1);background-color:rgba(0,0,0,.1)}.mdl-checkbox.is-focused.is-checked .mdl-checkbox__focus-helper{box-shadow:0 0 0 8px rgba(0,150,136,.26);background-color:rgba(0,150,136,.26)}.mdl-checkbox__tick-outline{position:absolute;top:0;left:0;height:100%;width:100%;-webkit-mask:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcCI+CiAgICAgIDxwYXRoCiAgICAgICAgIGQ9Ik0gMCwwIDAsMSAxLDEgMSwwIDAsMCB6IE0gMC44NTM0Mzc1LDAuMTY3MTg3NSAwLjk1OTY4NzUsMC4yNzMxMjUgMC40MjkzNzUsMC44MDM0Mzc1IDAuMzIzMTI1LDAuOTA5Njg3NSAwLjIxNzE4NzUsMC44MDM0Mzc1IDAuMDQwMzEyNSwwLjYyNjg3NSAwLjE0NjU2MjUsMC41MjA2MjUgMC4zMjMxMjUsMC42OTc1IDAuODUzNDM3NSwwLjE2NzE4NzUgeiIKICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgICA8bWFzayBpZD0ibWFzayIgbWFza1VuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgbWFza0NvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPgogICAgICA8cGF0aAogICAgICAgICBkPSJNIDAsMCAwLDEgMSwxIDEsMCAwLDAgeiBNIDAuODUzNDM3NSwwLjE2NzE4NzUgMC45NTk2ODc1LDAuMjczMTI1IDAuNDI5Mzc1LDAuODAzNDM3NSAwLjMyMzEyNSwwLjkwOTY4NzUgMC4yMTcxODc1LDAuODAzNDM3NSAwLjA0MDMxMjUsMC42MjY4NzUgMC4xNDY1NjI1LDAuNTIwNjI1IDAuMzIzMTI1LDAuNjk3NSAwLjg1MzQzNzUsMC4xNjcxODc1IHoiCiAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiIC8+CiAgICA8L21hc2s+CiAgPC9kZWZzPgogIDxyZWN0CiAgICAgd2lkdGg9IjEiCiAgICAgaGVpZ2h0PSIxIgogICAgIHg9IjAiCiAgICAgeT0iMCIKICAgICBjbGlwLXBhdGg9InVybCgjY2xpcCkiCiAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KPC9zdmc+Cg==");mask:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcCI+CiAgICAgIDxwYXRoCiAgICAgICAgIGQ9Ik0gMCwwIDAsMSAxLDEgMSwwIDAsMCB6IE0gMC44NTM0Mzc1LDAuMTY3MTg3NSAwLjk1OTY4NzUsMC4yNzMxMjUgMC40MjkzNzUsMC44MDM0Mzc1IDAuMzIzMTI1LDAuOTA5Njg3NSAwLjIxNzE4NzUsMC44MDM0Mzc1IDAuMDQwMzEyNSwwLjYyNjg3NSAwLjE0NjU2MjUsMC41MjA2MjUgMC4zMjMxMjUsMC42OTc1IDAuODUzNDM3NSwwLjE2NzE4NzUgeiIKICAgICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgICA8bWFzayBpZD0ibWFzayIgbWFza1VuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgbWFza0NvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPgogICAgICA8cGF0aAogICAgICAgICBkPSJNIDAsMCAwLDEgMSwxIDEsMCAwLDAgeiBNIDAuODUzNDM3NSwwLjE2NzE4NzUgMC45NTk2ODc1LDAuMjczMTI1IDAuNDI5Mzc1LDAuODAzNDM3NSAwLjMyMzEyNSwwLjkwOTY4NzUgMC4yMTcxODc1LDAuODAzNDM3NSAwLjA0MDMxMjUsMC42MjY4NzUgMC4xNDY1NjI1LDAuNTIwNjI1IDAuMzIzMTI1LDAuNjk3NSAwLjg1MzQzNzUsMC4xNjcxODc1IHoiCiAgICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiIC8+CiAgICA8L21hc2s+CiAgPC9kZWZzPgogIDxyZWN0CiAgICAgd2lkdGg9IjEiCiAgICAgaGVpZ2h0PSIxIgogICAgIHg9IjAiCiAgICAgeT0iMCIKICAgICBjbGlwLXBhdGg9InVybCgjY2xpcCkiCiAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KPC9zdmc+Cg==");background:0 0;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:background}.mdl-checkbox.is-checked .mdl-checkbox__tick-outline{background:rgb(0,150,136)url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")}fieldset[disabled] .mdl-checkbox.is-checked .mdl-checkbox__tick-outline,.mdl-checkbox.is-checked.is-disabled .mdl-checkbox__tick-outline{background:rgba(0,0,0,.26)url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")}.mdl-checkbox__label{position:relative;cursor:pointer;font-size:16px;line-height:24px;margin:0}fieldset[disabled] .mdl-checkbox .mdl-checkbox__label,.mdl-checkbox.is-disabled .mdl-checkbox__label{color:rgba(0,0,0,.26);cursor:auto}.mdl-checkbox__ripple-container{position:absolute;z-index:2;top:-6px;left:-10px;box-sizing:border-box;width:36px;height:36px;border-radius:50%;cursor:pointer;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-checkbox__ripple-container .mdl-ripple{background:rgb(0,150,136)}fieldset[disabled] .mdl-checkbox .mdl-checkbox__ripple-container,.mdl-checkbox.is-disabled .mdl-checkbox__ripple-container{cursor:auto}fieldset[disabled] .mdl-checkbox .mdl-checkbox__ripple-container .mdl-ripple,.mdl-checkbox.is-disabled .mdl-checkbox__ripple-container .mdl-ripple{background:0 0}.mdl-chip{height:32px;font-family:"Roboto","Helvetica","Arial",sans-serif;line-height:32px;padding:0 12px;border:0;border-radius:16px;background-color:#dedede;display:inline-block;color:rgba(0,0,0,.87);margin:2px 0;font-size:0;white-space:nowrap}.mdl-chip__text{font-size:13px;vertical-align:middle;display:inline-block}.mdl-chip__action{height:24px;width:24px;background:0 0;opacity:.54;cursor:pointer;padding:0;margin:0 0 0 4px;font-size:13px;text-decoration:none;color:rgba(0,0,0,.87);border:none;outline:none}.mdl-chip__action,.mdl-chip__contact{display:inline-block;vertical-align:middle;overflow:hidden;text-align:center}.mdl-chip__contact{height:32px;width:32px;border-radius:16px;margin-right:8px;font-size:18px;line-height:32px}.mdl-chip:focus{outline:0;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)}.mdl-chip:active{background-color:#d6d6d6}.mdl-chip--deletable{padding-right:4px}.mdl-chip--contact{padding-left:0}.mdl-data-table{position:relative;border:1px solid rgba(0,0,0,.12);border-collapse:collapse;white-space:nowrap;font-size:13px;background-color:#fff}.mdl-data-table thead{padding-bottom:3px}.mdl-data-table thead .mdl-data-table__select{margin-top:0}.mdl-data-table tbody tr{position:relative;height:48px;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:background-color}.mdl-data-table tbody tr.is-selected{background-color:#e0e0e0}.mdl-data-table tbody tr:hover{background-color:#eee}.mdl-data-table td{text-align:right}.mdl-data-table th{padding:0 18px 12px 18px;text-align:right}.mdl-data-table td:first-of-type,.mdl-data-table th:first-of-type{padding-left:24px}.mdl-data-table td:last-of-type,.mdl-data-table th:last-of-type{padding-right:24px}.mdl-data-table td{position:relative;height:48px;border-top:1px solid rgba(0,0,0,.12);border-bottom:1px solid rgba(0,0,0,.12);padding:12px 18px;box-sizing:border-box}.mdl-data-table td,.mdl-data-table td .mdl-data-table__select{vertical-align:middle}.mdl-data-table th{position:relative;vertical-align:bottom;text-overflow:ellipsis;font-weight:700;line-height:24px;letter-spacing:0;height:48px;font-size:12px;color:rgba(0,0,0,.54);padding-bottom:8px;box-sizing:border-box}.mdl-data-table th.mdl-data-table__header--sorted-ascending,.mdl-data-table th.mdl-data-table__header--sorted-descending{color:rgba(0,0,0,.87)}.mdl-data-table th.mdl-data-table__header--sorted-ascending:before,.mdl-data-table th.mdl-data-table__header--sorted-descending:before{font-family:'Material Icons';font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;word-wrap:normal;-moz-font-feature-settings:'liga';font-feature-settings:'liga';-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased;font-size:16px;content:"\E5D8";margin-right:5px;vertical-align:sub}.mdl-data-table th.mdl-data-table__header--sorted-ascending:hover,.mdl-data-table th.mdl-data-table__header--sorted-descending:hover{cursor:pointer}.mdl-data-table th.mdl-data-table__header--sorted-ascending:hover:before,.mdl-data-table th.mdl-data-table__header--sorted-descending:hover:before{color:rgba(0,0,0,.26)}.mdl-data-table th.mdl-data-table__header--sorted-descending:before{content:"\E5DB"}.mdl-data-table__select{width:16px}.mdl-data-table__cell--non-numeric.mdl-data-table__cell--non-numeric{text-align:left}.mdl-dialog{border:none;box-shadow:0 9px 46px 8px rgba(0,0,0,.14),0 11px 15px -7px rgba(0,0,0,.12),0 24px 38px 3px rgba(0,0,0,.2);width:280px}.mdl-dialog__title{padding:24px 24px 0;margin:0;font-size:2.5rem}.mdl-dialog__actions{padding:8px 8px 8px 24px;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.mdl-dialog__actions>*{margin-right:8px;height:36px}.mdl-dialog__actions>*:first-child{margin-right:0}.mdl-dialog__actions--full-width{padding:0 0 8px}.mdl-dialog__actions--full-width>*{height:48px;-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%;padding-right:16px;margin-right:0;text-align:right}.mdl-dialog__content{padding:20px 24px 24px;color:rgba(0,0,0,.54)}.mdl-mega-footer{padding:16px 40px;color:#9e9e9e;background-color:#424242}.mdl-mega-footer--top-section:after,.mdl-mega-footer--middle-section:after,.mdl-mega-footer--bottom-section:after,.mdl-mega-footer__top-section:after,.mdl-mega-footer__middle-section:after,.mdl-mega-footer__bottom-section:after{content:'';display:block;clear:both}.mdl-mega-footer--left-section,.mdl-mega-footer__left-section,.mdl-mega-footer--right-section,.mdl-mega-footer__right-section{margin-bottom:16px}.mdl-mega-footer--right-section a,.mdl-mega-footer__right-section a{display:block;margin-bottom:16px;color:inherit;text-decoration:none}@media screen and (min-width:760px){.mdl-mega-footer--left-section,.mdl-mega-footer__left-section{float:left}.mdl-mega-footer--right-section,.mdl-mega-footer__right-section{float:right}.mdl-mega-footer--right-section a,.mdl-mega-footer__right-section a{display:inline-block;margin-left:16px;line-height:36px;vertical-align:middle}}.mdl-mega-footer--social-btn,.mdl-mega-footer__social-btn{width:36px;height:36px;padding:0;margin:0;background-color:#9e9e9e;border:none}.mdl-mega-footer--drop-down-section,.mdl-mega-footer__drop-down-section{display:block;position:relative}@media screen and (min-width:760px){.mdl-mega-footer--drop-down-section,.mdl-mega-footer__drop-down-section{width:33%}.mdl-mega-footer--drop-down-section:nth-child(1),.mdl-mega-footer--drop-down-section:nth-child(2),.mdl-mega-footer__drop-down-section:nth-child(1),.mdl-mega-footer__drop-down-section:nth-child(2){float:left}.mdl-mega-footer--drop-down-section:nth-child(3),.mdl-mega-footer__drop-down-section:nth-child(3){float:right}.mdl-mega-footer--drop-down-section:nth-child(3):after,.mdl-mega-footer__drop-down-section:nth-child(3):after{clear:right}.mdl-mega-footer--drop-down-section:nth-child(4),.mdl-mega-footer__drop-down-section:nth-child(4){clear:right;float:right}.mdl-mega-footer--middle-section:after,.mdl-mega-footer__middle-section:after{content:'';display:block;clear:both}.mdl-mega-footer--bottom-section,.mdl-mega-footer__bottom-section{padding-top:0}}@media screen and (min-width:1024px){.mdl-mega-footer--drop-down-section,.mdl-mega-footer--drop-down-section:nth-child(3),.mdl-mega-footer--drop-down-section:nth-child(4),.mdl-mega-footer__drop-down-section,.mdl-mega-footer__drop-down-section:nth-child(3),.mdl-mega-footer__drop-down-section:nth-child(4){width:24%;float:left}}.mdl-mega-footer--heading-checkbox,.mdl-mega-footer__heading-checkbox{position:absolute;width:100%;height:55.8px;padding:32px;margin:-16px 0 0;cursor:pointer;z-index:1;opacity:0}.mdl-mega-footer--heading-checkbox+.mdl-mega-footer--heading:after,.mdl-mega-footer--heading-checkbox+.mdl-mega-footer__heading:after,.mdl-mega-footer__heading-checkbox+.mdl-mega-footer--heading:after,.mdl-mega-footer__heading-checkbox+.mdl-mega-footer__heading:after{font-family:'Material Icons';content:'\E5CE'}.mdl-mega-footer--heading-checkbox:checked~.mdl-mega-footer--link-list,.mdl-mega-footer--heading-checkbox:checked~.mdl-mega-footer__link-list,.mdl-mega-footer--heading-checkbox:checked+.mdl-mega-footer--heading+.mdl-mega-footer--link-list,.mdl-mega-footer--heading-checkbox:checked+.mdl-mega-footer__heading+.mdl-mega-footer__link-list,.mdl-mega-footer__heading-checkbox:checked~.mdl-mega-footer--link-list,.mdl-mega-footer__heading-checkbox:checked~.mdl-mega-footer__link-list,.mdl-mega-footer__heading-checkbox:checked+.mdl-mega-footer--heading+.mdl-mega-footer--link-list,.mdl-mega-footer__heading-checkbox:checked+.mdl-mega-footer__heading+.mdl-mega-footer__link-list{display:none}.mdl-mega-footer--heading-checkbox:checked+.mdl-mega-footer--heading:after,.mdl-mega-footer--heading-checkbox:checked+.mdl-mega-footer__heading:after,.mdl-mega-footer__heading-checkbox:checked+.mdl-mega-footer--heading:after,.mdl-mega-footer__heading-checkbox:checked+.mdl-mega-footer__heading:after{font-family:'Material Icons';content:'\E5CF'}.mdl-mega-footer--heading,.mdl-mega-footer__heading{position:relative;width:100%;padding-right:39.8px;margin-bottom:16px;box-sizing:border-box;font-size:14px;line-height:23.8px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#e0e0e0}.mdl-mega-footer--heading:after,.mdl-mega-footer__heading:after{content:'';position:absolute;top:0;right:0;display:block;width:23.8px;height:23.8px;background-size:cover}.mdl-mega-footer--link-list,.mdl-mega-footer__link-list{list-style:none;padding:0;margin:0 0 32px}.mdl-mega-footer--link-list:after,.mdl-mega-footer__link-list:after{clear:both;display:block;content:''}.mdl-mega-footer--link-list li,.mdl-mega-footer__link-list li{font-size:14px;font-weight:400;letter-spacing:0;line-height:20px}.mdl-mega-footer--link-list a,.mdl-mega-footer__link-list a{color:inherit;text-decoration:none;white-space:nowrap}@media screen and (min-width:760px){.mdl-mega-footer--heading-checkbox,.mdl-mega-footer__heading-checkbox{display:none}.mdl-mega-footer--heading-checkbox+.mdl-mega-footer--heading:after,.mdl-mega-footer--heading-checkbox+.mdl-mega-footer__heading:after,.mdl-mega-footer__heading-checkbox+.mdl-mega-footer--heading:after,.mdl-mega-footer__heading-checkbox+.mdl-mega-footer__heading:after{content:''}.mdl-mega-footer--heading-checkbox:checked~.mdl-mega-footer--link-list,.mdl-mega-footer--heading-checkbox:checked~.mdl-mega-footer__link-list,.mdl-mega-footer--heading-checkbox:checked+.mdl-mega-footer__heading+.mdl-mega-footer__link-list,.mdl-mega-footer--heading-checkbox:checked+.mdl-mega-footer--heading+.mdl-mega-footer--link-list,.mdl-mega-footer__heading-checkbox:checked~.mdl-mega-footer--link-list,.mdl-mega-footer__heading-checkbox:checked~.mdl-mega-footer__link-list,.mdl-mega-footer__heading-checkbox:checked+.mdl-mega-footer__heading+.mdl-mega-footer__link-list,.mdl-mega-footer__heading-checkbox:checked+.mdl-mega-footer--heading+.mdl-mega-footer--link-list{display:block}.mdl-mega-footer--heading-checkbox:checked+.mdl-mega-footer--heading:after,.mdl-mega-footer--heading-checkbox:checked+.mdl-mega-footer__heading:after,.mdl-mega-footer__heading-checkbox:checked+.mdl-mega-footer--heading:after,.mdl-mega-footer__heading-checkbox:checked+.mdl-mega-footer__heading:after{content:''}}.mdl-mega-footer--bottom-section,.mdl-mega-footer__bottom-section{padding-top:16px;margin-bottom:16px}.mdl-logo{margin-bottom:16px;color:#fff}.mdl-mega-footer--bottom-section .mdl-mega-footer--link-list li,.mdl-mega-footer__bottom-section .mdl-mega-footer__link-list li{float:left;margin-bottom:0;margin-right:16px}@media screen and (min-width:760px){.mdl-logo{float:left;margin-bottom:0;margin-right:16px}}.mdl-mini-footer{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:32px 16px;color:#9e9e9e;background-color:#424242}.mdl-mini-footer:after{content:'';display:block}.mdl-mini-footer .mdl-logo{line-height:36px}.mdl-mini-footer--link-list,.mdl-mini-footer__link-list{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row nowrap;-ms-flex-flow:row nowrap;flex-flow:row nowrap;list-style:none;margin:0;padding:0}.mdl-mini-footer--link-list li,.mdl-mini-footer__link-list li{margin-bottom:0;margin-right:16px}@media screen and (min-width:760px){.mdl-mini-footer--link-list li,.mdl-mini-footer__link-list li{line-height:36px}}.mdl-mini-footer--link-list a,.mdl-mini-footer__link-list a{color:inherit;text-decoration:none;white-space:nowrap}.mdl-mini-footer--left-section,.mdl-mini-footer__left-section{display:inline-block;-webkit-order:0;-ms-flex-order:0;order:0}.mdl-mini-footer--right-section,.mdl-mini-footer__right-section{display:inline-block;-webkit-order:1;-ms-flex-order:1;order:1}.mdl-mini-footer--social-btn,.mdl-mini-footer__social-btn{width:36px;height:36px;padding:0;margin:0;background-color:#9e9e9e;border:none}.mdl-icon-toggle{position:relative;z-index:1;vertical-align:middle;display:inline-block;height:32px;margin:0;padding:0}.mdl-icon-toggle__input{line-height:32px}.mdl-icon-toggle.is-upgraded .mdl-icon-toggle__input{position:absolute;width:0;height:0;margin:0;padding:0;opacity:0;-ms-appearance:none;-moz-appearance:none;-webkit-appearance:none;appearance:none;border:none}.mdl-icon-toggle__label{display:inline-block;position:relative;cursor:pointer;height:32px;width:32px;min-width:32px;color:#616161;border-radius:50%;padding:0;margin-left:0;margin-right:0;text-align:center;background-color:transparent;will-change:background-color;transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1)}.mdl-icon-toggle__label.material-icons{line-height:32px;font-size:24px}.mdl-icon-toggle.is-checked .mdl-icon-toggle__label{color:rgb(0,150,136)}.mdl-icon-toggle.is-disabled .mdl-icon-toggle__label{color:rgba(0,0,0,.26);cursor:auto;transition:none}.mdl-icon-toggle.is-focused .mdl-icon-toggle__label{background-color:rgba(0,0,0,.12)}.mdl-icon-toggle.is-focused.is-checked .mdl-icon-toggle__label{background-color:rgba(0,150,136,.26)}.mdl-icon-toggle__ripple-container{position:absolute;z-index:2;top:-2px;left:-2px;box-sizing:border-box;width:36px;height:36px;border-radius:50%;cursor:pointer;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-icon-toggle__ripple-container .mdl-ripple{background:#616161}.mdl-icon-toggle.is-disabled .mdl-icon-toggle__ripple-container{cursor:auto}.mdl-icon-toggle.is-disabled .mdl-icon-toggle__ripple-container .mdl-ripple{background:0 0}.mdl-list{display:block;padding:8px 0;list-style:none}.mdl-list__item{font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:16px;font-weight:400;letter-spacing:.04em;line-height:1;min-height:48px;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding:16px;cursor:default;color:rgba(0,0,0,.87);overflow:hidden}.mdl-list__item,.mdl-list__item .mdl-list__item-primary-content{box-sizing:border-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.mdl-list__item .mdl-list__item-primary-content{-webkit-order:0;-ms-flex-order:0;order:0;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;text-decoration:none}.mdl-list__item .mdl-list__item-primary-content .mdl-list__item-icon{margin-right:32px}.mdl-list__item .mdl-list__item-primary-content .mdl-list__item-avatar{margin-right:16px}.mdl-list__item .mdl-list__item-secondary-content{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;margin-left:16px}.mdl-list__item .mdl-list__item-secondary-content .mdl-list__item-secondary-action label{display:inline}.mdl-list__item .mdl-list__item-secondary-content .mdl-list__item-secondary-info{font-size:12px;font-weight:400;line-height:1;letter-spacing:0;color:rgba(0,0,0,.54)}.mdl-list__item .mdl-list__item-secondary-content .mdl-list__item-sub-header{padding:0 0 0 16px}.mdl-list__item-icon,.mdl-list__item-icon.material-icons{height:24px;width:24px;font-size:24px;box-sizing:border-box;color:#757575}.mdl-list__item-avatar,.mdl-list__item-avatar.material-icons{height:40px;width:40px;box-sizing:border-box;border-radius:50%;background-color:#757575;font-size:40px;color:#fff}.mdl-list__item--two-line{height:72px}.mdl-list__item--two-line .mdl-list__item-primary-content{height:36px;line-height:20px;display:block}.mdl-list__item--two-line .mdl-list__item-primary-content .mdl-list__item-avatar{float:left}.mdl-list__item--two-line .mdl-list__item-primary-content .mdl-list__item-icon{float:left;margin-top:6px}.mdl-list__item--two-line .mdl-list__item-primary-content .mdl-list__item-secondary-content{height:36px}.mdl-list__item--two-line .mdl-list__item-primary-content .mdl-list__item-sub-title{font-size:14px;font-weight:400;letter-spacing:0;line-height:18px;color:rgba(0,0,0,.54);display:block;padding:0}.mdl-list__item--three-line{height:88px}.mdl-list__item--three-line .mdl-list__item-primary-content{height:52px;line-height:20px;display:block}.mdl-list__item--three-line .mdl-list__item-primary-content .mdl-list__item-avatar,.mdl-list__item--three-line .mdl-list__item-primary-content .mdl-list__item-icon{float:left}.mdl-list__item--three-line .mdl-list__item-secondary-content{height:52px}.mdl-list__item--three-line .mdl-list__item-text-body{font-size:14px;font-weight:400;letter-spacing:0;line-height:18px;height:52px;color:rgba(0,0,0,.54);display:block;padding:0}.mdl-menu__container{display:block;margin:0;padding:0;border:none;position:absolute;overflow:visible;height:0;width:0;visibility:hidden;z-index:-1}.mdl-menu__container.is-visible,.mdl-menu__container.is-animating{z-index:999;visibility:visible}.mdl-menu__outline{display:block;background:#fff;margin:0;padding:0;border:none;border-radius:2px;position:absolute;top:0;left:0;overflow:hidden;opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:0 0;transform-origin:0 0;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);will-change:transform;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.4,0,.2,1);transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.4,0,.2,1),-webkit-transform .3s cubic-bezier(.4,0,.2,1);z-index:-1}.mdl-menu__container.is-visible .mdl-menu__outline{opacity:1;-webkit-transform:scale(1);transform:scale(1);z-index:999}.mdl-menu__outline.mdl-menu--bottom-right{-webkit-transform-origin:100% 0;transform-origin:100% 0}.mdl-menu__outline.mdl-menu--top-left{-webkit-transform-origin:0 100%;transform-origin:0 100%}.mdl-menu__outline.mdl-menu--top-right{-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.mdl-menu{position:absolute;list-style:none;top:0;left:0;height:auto;width:auto;min-width:124px;padding:8px 0;margin:0;opacity:0;clip:rect(0 0 0 0);z-index:-1}.mdl-menu__container.is-visible .mdl-menu{opacity:1;z-index:999}.mdl-menu.is-animating{transition:opacity .2s cubic-bezier(.4,0,.2,1),clip .3s cubic-bezier(.4,0,.2,1)}.mdl-menu.mdl-menu--bottom-right{left:auto;right:0}.mdl-menu.mdl-menu--top-left{top:auto;bottom:0}.mdl-menu.mdl-menu--top-right{top:auto;left:auto;bottom:0;right:0}.mdl-menu.mdl-menu--unaligned{top:auto;left:auto}.mdl-menu__item{display:block;border:none;color:rgba(0,0,0,.87);background-color:transparent;text-align:left;margin:0;padding:0 16px;outline-color:#bdbdbd;position:relative;overflow:hidden;font-size:14px;font-weight:400;letter-spacing:0;text-decoration:none;cursor:pointer;height:48px;line-height:48px;white-space:nowrap;opacity:0;transition:opacity .2s cubic-bezier(.4,0,.2,1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mdl-menu__container.is-visible .mdl-menu__item{opacity:1}.mdl-menu__item::-moz-focus-inner{border:0}.mdl-menu__item--full-bleed-divider{border-bottom:1px solid rgba(0,0,0,.12)}.mdl-menu__item[disabled],.mdl-menu__item[data-mdl-disabled]{color:#bdbdbd;background-color:transparent;cursor:auto}.mdl-menu__item[disabled]:hover,.mdl-menu__item[data-mdl-disabled]:hover{background-color:transparent}.mdl-menu__item[disabled]:focus,.mdl-menu__item[data-mdl-disabled]:focus{background-color:transparent}.mdl-menu__item[disabled] .mdl-ripple,.mdl-menu__item[data-mdl-disabled] .mdl-ripple{background:0 0}.mdl-menu__item:hover{background-color:#eee}.mdl-menu__item:focus{outline:none;background-color:#eee}.mdl-menu__item:active{background-color:#e0e0e0}.mdl-menu__item--ripple-container{display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:0;overflow:hidden}.mdl-progress{display:block;position:relative;height:4px;width:500px;max-width:100%}.mdl-progress>.bar{display:block;position:absolute;top:0;bottom:0;width:0%;transition:width .2s cubic-bezier(.4,0,.2,1)}.mdl-progress>.progressbar{background-color:rgb(0,150,136);z-index:1;left:0}.mdl-progress>.bufferbar{background-image:linear-gradient(to right,rgba(255,255,255,.7),rgba(255,255,255,.7)),linear-gradient(to right,rgb(0,150,136),rgb(0,150,136));z-index:0;left:0}.mdl-progress>.auxbar{right:0}@supports (-webkit-appearance:none){.mdl-progress:not(.mdl-progress--indeterminate):not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate):not(.mdl-progress__indeterminate)>.auxbar{background-image:linear-gradient(to right,rgba(255,255,255,.7),rgba(255,255,255,.7)),linear-gradient(to right,rgb(0,150,136),rgb(0,150,136));-webkit-mask:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjEyIiBoZWlnaHQ9IjQiIHZpZXdQb3J0PSIwIDAgMTIgNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxlbGxpcHNlIGN4PSIyIiBjeT0iMiIgcng9IjIiIHJ5PSIyIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIyIiB0bz0iLTEwIiBkdXI9IjAuNnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogIDwvZWxsaXBzZT4KICA8ZWxsaXBzZSBjeD0iMTQiIGN5PSIyIiByeD0iMiIgcnk9IjIiIGNsYXNzPSJsb2FkZXIiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjE0IiB0bz0iMiIgZHVyPSIwLjZzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4KICA8L2VsbGlwc2U+Cjwvc3ZnPgo=");mask:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjEyIiBoZWlnaHQ9IjQiIHZpZXdQb3J0PSIwIDAgMTIgNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxlbGxpcHNlIGN4PSIyIiBjeT0iMiIgcng9IjIiIHJ5PSIyIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIyIiB0bz0iLTEwIiBkdXI9IjAuNnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogIDwvZWxsaXBzZT4KICA8ZWxsaXBzZSBjeD0iMTQiIGN5PSIyIiByeD0iMiIgcnk9IjIiIGNsYXNzPSJsb2FkZXIiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjE0IiB0bz0iMiIgZHVyPSIwLjZzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4KICA8L2VsbGlwc2U+Cjwvc3ZnPgo=")}}.mdl-progress:not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate)>.auxbar{background-image:linear-gradient(to right,rgba(255,255,255,.9),rgba(255,255,255,.9)),linear-gradient(to right,rgb(0,150,136),rgb(0,150,136))}.mdl-progress.mdl-progress--indeterminate>.bar1,.mdl-progress.mdl-progress__indeterminate>.bar1{-webkit-animation-name:indeterminate1;animation-name:indeterminate1}.mdl-progress.mdl-progress--indeterminate>.bar1,.mdl-progress.mdl-progress__indeterminate>.bar1,.mdl-progress.mdl-progress--indeterminate>.bar3,.mdl-progress.mdl-progress__indeterminate>.bar3{background-color:rgb(0,150,136);-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.mdl-progress.mdl-progress--indeterminate>.bar3,.mdl-progress.mdl-progress__indeterminate>.bar3{background-image:none;-webkit-animation-name:indeterminate2;animation-name:indeterminate2}@-webkit-keyframes indeterminate1{0%{left:0%;width:0%}50%{left:25%;width:75%}75%{left:100%;width:0%}}@keyframes indeterminate1{0%{left:0%;width:0%}50%{left:25%;width:75%}75%{left:100%;width:0%}}@-webkit-keyframes indeterminate2{0%,50%{left:0%;width:0%}75%{left:0%;width:25%}100%{left:100%;width:0%}}@keyframes indeterminate2{0%,50%{left:0%;width:0%}75%{left:0%;width:25%}100%{left:100%;width:0%}}.mdl-navigation{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;box-sizing:border-box}.mdl-navigation__link{color:#424242;text-decoration:none;margin:0;font-size:14px;font-weight:400;line-height:24px;letter-spacing:0;opacity:.87}.mdl-navigation__link .material-icons{vertical-align:middle}.mdl-layout{width:100%;height:100%;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow-y:auto;overflow-x:hidden;position:relative;-webkit-overflow-scrolling:touch}.mdl-layout.is-small-screen .mdl-layout--large-screen-only{display:none}.mdl-layout:not(.is-small-screen) .mdl-layout--small-screen-only{display:none}.mdl-layout__container{position:absolute;width:100%;height:100%}.mdl-layout__title,.mdl-layout-title{display:block;position:relative;font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:20px;line-height:1;letter-spacing:.02em;font-weight:400;box-sizing:border-box}.mdl-layout-spacer{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.mdl-layout__drawer{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;height:100%;max-height:100%;position:absolute;top:0;left:0;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);box-sizing:border-box;border-right:1px solid #e0e0e0;background:#fafafa;-webkit-transform:translateX(-250px);transform:translateX(-250px);-webkit-transform-style:preserve-3d;transform-style:preserve-3d;will-change:transform;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform;transition-property:transform,-webkit-transform;color:#424242;overflow:visible;overflow-y:auto;z-index:5}.mdl-layout__drawer.is-visible{-webkit-transform:translateX(0);transform:translateX(0)}.mdl-layout__drawer.is-visible~.mdl-layout__content.mdl-layout__content{overflow:hidden}.mdl-layout__drawer>*{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.mdl-layout__drawer>.mdl-layout__title,.mdl-layout__drawer>.mdl-layout-title{line-height:64px;padding-left:40px}@media screen and (max-width:1024px){.mdl-layout__drawer>.mdl-layout__title,.mdl-layout__drawer>.mdl-layout-title{line-height:56px;padding-left:16px}}.mdl-layout__drawer .mdl-navigation{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:stretch;-ms-flex-align:stretch;-ms-grid-row-align:stretch;align-items:stretch;padding-top:16px}.mdl-layout__drawer .mdl-navigation .mdl-navigation__link{display:block;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;padding:16px 40px;margin:0;color:#757575}@media screen and (max-width:1024px){.mdl-layout__drawer .mdl-navigation .mdl-navigation__link{padding:16px}}.mdl-layout__drawer .mdl-navigation .mdl-navigation__link:hover{background-color:#e0e0e0}.mdl-layout__drawer .mdl-navigation .mdl-navigation__link--current{background-color:#e0e0e0;color:#000}@media screen and (min-width:1025px){.mdl-layout--fixed-drawer>.mdl-layout__drawer{-webkit-transform:translateX(0);transform:translateX(0)}}.mdl-layout__drawer-button{display:block;position:absolute;height:48px;width:48px;border:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow:hidden;text-align:center;cursor:pointer;font-size:26px;line-height:56px;font-family:Helvetica,Arial,sans-serif;margin:8px 12px;top:0;left:0;color:rgb(255,255,255);z-index:4}.mdl-layout__header .mdl-layout__drawer-button{position:absolute;color:rgb(255,255,255);background-color:inherit}@media screen and (max-width:1024px){.mdl-layout__header .mdl-layout__drawer-button{margin:4px}}@media screen and (max-width:1024px){.mdl-layout__drawer-button{margin:4px;color:rgba(0,0,0,.5)}}@media screen and (min-width:1025px){.mdl-layout__drawer-button{line-height:54px}.mdl-layout--no-desktop-drawer-button .mdl-layout__drawer-button,.mdl-layout--fixed-drawer>.mdl-layout__drawer-button,.mdl-layout--no-drawer-button .mdl-layout__drawer-button{display:none}}.mdl-layout__header{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;box-sizing:border-box;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:100%;margin:0;padding:0;border:none;min-height:64px;max-height:1000px;z-index:3;background-color:rgb(0,150,136);color:rgb(255,255,255);box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:max-height,box-shadow}@media screen and (max-width:1024px){.mdl-layout__header{min-height:56px}}.mdl-layout--fixed-drawer.is-upgraded:not(.is-small-screen)>.mdl-layout__header{margin-left:240px;width:calc(100% - 240px)}@media screen and (min-width:1025px){.mdl-layout--fixed-drawer>.mdl-layout__header .mdl-layout__header-row{padding-left:40px}}.mdl-layout__header>.mdl-layout-icon{position:absolute;left:40px;top:16px;height:32px;width:32px;overflow:hidden;z-index:3;display:block}@media screen and (max-width:1024px){.mdl-layout__header>.mdl-layout-icon{left:16px;top:12px}}.mdl-layout.has-drawer .mdl-layout__header>.mdl-layout-icon{display:none}.mdl-layout__header.is-compact{max-height:64px}@media screen and (max-width:1024px){.mdl-layout__header.is-compact{max-height:56px}}.mdl-layout__header.is-compact.has-tabs{height:112px}@media screen and (max-width:1024px){.mdl-layout__header.is-compact.has-tabs{min-height:104px}}@media screen and (max-width:1024px){.mdl-layout__header{display:none}.mdl-layout--fixed-header>.mdl-layout__header{display:-webkit-flex;display:-ms-flexbox;display:flex}}.mdl-layout__header--transparent.mdl-layout__header--transparent{background-color:transparent;box-shadow:none}.mdl-layout__header--seamed,.mdl-layout__header--scroll{box-shadow:none}.mdl-layout__header--waterfall{box-shadow:none;overflow:hidden}.mdl-layout__header--waterfall.is-casting-shadow{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)}.mdl-layout__header--waterfall.mdl-layout__header--waterfall-hide-top{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.mdl-layout__header-row{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;box-sizing:border-box;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:64px;margin:0;padding:0 40px 0 80px}.mdl-layout--no-drawer-button .mdl-layout__header-row{padding-left:40px}@media screen and (min-width:1025px){.mdl-layout--no-desktop-drawer-button .mdl-layout__header-row{padding-left:40px}}@media screen and (max-width:1024px){.mdl-layout__header-row{height:56px;padding:0 16px 0 72px}.mdl-layout--no-drawer-button .mdl-layout__header-row{padding-left:16px}}.mdl-layout__header-row>*{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.mdl-layout__header--scroll .mdl-layout__header-row{width:100%}.mdl-layout__header-row .mdl-navigation{margin:0;padding:0;height:64px;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-ms-flex-align:center;-ms-grid-row-align:center;align-items:center}@media screen and (max-width:1024px){.mdl-layout__header-row .mdl-navigation{height:56px}}.mdl-layout__header-row .mdl-navigation__link{display:block;color:rgb(255,255,255);line-height:64px;padding:0 24px}@media screen and (max-width:1024px){.mdl-layout__header-row .mdl-navigation__link{line-height:56px;padding:0 16px}}.mdl-layout__obfuscator{background-color:transparent;position:absolute;top:0;left:0;height:100%;width:100%;z-index:4;visibility:hidden;transition-property:background-color;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.mdl-layout__obfuscator.is-visible{background-color:rgba(0,0,0,.5);visibility:visible}@supports (pointer-events:auto){.mdl-layout__obfuscator{background-color:rgba(0,0,0,.5);opacity:0;transition-property:opacity;visibility:visible;pointer-events:none}.mdl-layout__obfuscator.is-visible{pointer-events:auto;opacity:1}}.mdl-layout__content{-ms-flex:0 1 auto;position:relative;display:inline-block;overflow-y:auto;overflow-x:hidden;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;z-index:1;-webkit-overflow-scrolling:touch}.mdl-layout--fixed-drawer>.mdl-layout__content{margin-left:240px}.mdl-layout__container.has-scrolling-header .mdl-layout__content{overflow:visible}@media screen and (max-width:1024px){.mdl-layout--fixed-drawer>.mdl-layout__content{margin-left:0}.mdl-layout__container.has-scrolling-header .mdl-layout__content{overflow-y:auto;overflow-x:hidden}}.mdl-layout__tab-bar{height:96px;margin:0;width:calc(100% - 112px);padding:0 0 0 56px;display:-webkit-flex;display:-ms-flexbox;display:flex;background-color:rgb(0,150,136);overflow-y:hidden;overflow-x:scroll}.mdl-layout__tab-bar::-webkit-scrollbar{display:none}.mdl-layout--no-drawer-button .mdl-layout__tab-bar{padding-left:16px;width:calc(100% - 32px)}@media screen and (min-width:1025px){.mdl-layout--no-desktop-drawer-button .mdl-layout__tab-bar{padding-left:16px;width:calc(100% - 32px)}}@media screen and (max-width:1024px){.mdl-layout__tab-bar{width:calc(100% - 60px);padding:0 0 0 60px}.mdl-layout--no-drawer-button .mdl-layout__tab-bar{width:calc(100% - 8px);padding-left:4px}}.mdl-layout--fixed-tabs .mdl-layout__tab-bar{padding:0;overflow:hidden;width:100%}.mdl-layout__tab-bar-container{position:relative;height:48px;width:100%;border:none;margin:0;z-index:2;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.mdl-layout__container>.mdl-layout__tab-bar-container{position:absolute;top:0;left:0}.mdl-layout__tab-bar-button{display:inline-block;position:absolute;top:0;height:48px;width:56px;z-index:4;text-align:center;background-color:rgb(0,150,136);color:transparent;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mdl-layout--no-desktop-drawer-button .mdl-layout__tab-bar-button,.mdl-layout--no-drawer-button .mdl-layout__tab-bar-button{width:16px}.mdl-layout--no-desktop-drawer-button .mdl-layout__tab-bar-button .material-icons,.mdl-layout--no-drawer-button .mdl-layout__tab-bar-button .material-icons{position:relative;left:-4px}@media screen and (max-width:1024px){.mdl-layout__tab-bar-button{width:60px}}.mdl-layout--fixed-tabs .mdl-layout__tab-bar-button{display:none}.mdl-layout__tab-bar-button .material-icons{line-height:48px}.mdl-layout__tab-bar-button.is-active{color:rgb(255,255,255)}.mdl-layout__tab-bar-left-button{left:0}.mdl-layout__tab-bar-right-button{right:0}.mdl-layout__tab{margin:0;border:none;padding:0 24px;float:left;position:relative;display:block;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;text-decoration:none;height:48px;line-height:48px;text-align:center;font-weight:500;font-size:14px;text-transform:uppercase;color:rgba(255,255,255,.6);overflow:hidden}@media screen and (max-width:1024px){.mdl-layout__tab{padding:0 12px}}.mdl-layout--fixed-tabs .mdl-layout__tab{float:none;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:0}.mdl-layout.is-upgraded .mdl-layout__tab.is-active{color:rgb(255,255,255)}.mdl-layout.is-upgraded .mdl-layout__tab.is-active::after{height:2px;width:100%;display:block;content:" ";bottom:0;left:0;position:absolute;background:rgb(178,255,89);-webkit-animation:border-expand .2s cubic-bezier(.4,0,.4,1).01s alternate forwards;animation:border-expand .2s cubic-bezier(.4,0,.4,1).01s alternate forwards;transition:all 1s cubic-bezier(.4,0,1,1)}.mdl-layout__tab .mdl-layout__tab-ripple-container{display:block;position:absolute;height:100%;width:100%;left:0;top:0;z-index:1;overflow:hidden}.mdl-layout__tab .mdl-layout__tab-ripple-container .mdl-ripple{background-color:rgb(255,255,255)}.mdl-layout__tab-panel{display:block}.mdl-layout.is-upgraded .mdl-layout__tab-panel{display:none}.mdl-layout.is-upgraded .mdl-layout__tab-panel.is-active{display:block}.mdl-radio{position:relative;font-size:16px;line-height:24px;display:inline-block;box-sizing:border-box;margin:0;padding-left:0}.mdl-radio.is-upgraded{padding-left:24px}.mdl-radio__button{line-height:24px}.mdl-radio.is-upgraded .mdl-radio__button{position:absolute;width:0;height:0;margin:0;padding:0;opacity:0;-ms-appearance:none;-moz-appearance:none;-webkit-appearance:none;appearance:none;border:none}.mdl-radio__outer-circle{position:absolute;top:4px;left:0;display:inline-block;box-sizing:border-box;width:16px;height:16px;margin:0;cursor:pointer;border:2px solid rgba(0,0,0,.54);border-radius:50%;z-index:2}.mdl-radio.is-checked .mdl-radio__outer-circle{border:2px solid rgb(0,150,136)}.mdl-radio__outer-circle fieldset[disabled] .mdl-radio,.mdl-radio.is-disabled .mdl-radio__outer-circle{border:2px solid rgba(0,0,0,.26);cursor:auto}.mdl-radio__inner-circle{position:absolute;z-index:1;margin:0;top:8px;left:4px;box-sizing:border-box;width:8px;height:8px;cursor:pointer;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transform:scale3d(0,0,0);transform:scale3d(0,0,0);border-radius:50%;background:rgb(0,150,136)}.mdl-radio.is-checked .mdl-radio__inner-circle{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}fieldset[disabled] .mdl-radio .mdl-radio__inner-circle,.mdl-radio.is-disabled .mdl-radio__inner-circle{background:rgba(0,0,0,.26);cursor:auto}.mdl-radio.is-focused .mdl-radio__inner-circle{box-shadow:0 0 0 10px rgba(0,0,0,.1)}.mdl-radio__label{cursor:pointer}fieldset[disabled] .mdl-radio .mdl-radio__label,.mdl-radio.is-disabled .mdl-radio__label{color:rgba(0,0,0,.26);cursor:auto}.mdl-radio__ripple-container{position:absolute;z-index:2;top:-9px;left:-13px;box-sizing:border-box;width:42px;height:42px;border-radius:50%;cursor:pointer;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-radio__ripple-container .mdl-ripple{background:rgb(0,150,136)}fieldset[disabled] .mdl-radio .mdl-radio__ripple-container,.mdl-radio.is-disabled .mdl-radio__ripple-container{cursor:auto}fieldset[disabled] .mdl-radio .mdl-radio__ripple-container .mdl-ripple,.mdl-radio.is-disabled .mdl-radio__ripple-container .mdl-ripple{background:0 0}_:-ms-input-placeholder,:root .mdl-slider.mdl-slider.is-upgraded{-ms-appearance:none;height:32px;margin:0}.mdl-slider{width:calc(100% - 40px);margin:0 20px}.mdl-slider.is-upgraded{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:2px;background:0 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0;padding:0;color:rgb(0,150,136);-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;z-index:1;cursor:pointer}.mdl-slider.is-upgraded::-moz-focus-outer{border:0}.mdl-slider.is-upgraded::-ms-tooltip{display:none}.mdl-slider.is-upgraded::-webkit-slider-runnable-track{background:0 0}.mdl-slider.is-upgraded::-moz-range-track{background:0 0;border:none}.mdl-slider.is-upgraded::-ms-track{background:0 0;color:transparent;height:2px;width:100%;border:none}.mdl-slider.is-upgraded::-ms-fill-lower{padding:0;background:linear-gradient(to right,transparent,transparent 16px,rgb(0,150,136)16px,rgb(0,150,136)0)}.mdl-slider.is-upgraded::-ms-fill-upper{padding:0;background:linear-gradient(to left,transparent,transparent 16px,rgba(0,0,0,.26)16px,rgba(0,0,0,.26)0)}.mdl-slider.is-upgraded::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;box-sizing:border-box;border-radius:50%;background:rgb(0,150,136);border:none;transition:transform .18s cubic-bezier(.4,0,.2,1),border .18s cubic-bezier(.4,0,.2,1),box-shadow .18s cubic-bezier(.4,0,.2,1),background .28s cubic-bezier(.4,0,.2,1);transition:transform .18s cubic-bezier(.4,0,.2,1),border .18s cubic-bezier(.4,0,.2,1),box-shadow .18s cubic-bezier(.4,0,.2,1),background .28s cubic-bezier(.4,0,.2,1),-webkit-transform .18s cubic-bezier(.4,0,.2,1)}.mdl-slider.is-upgraded::-moz-range-thumb{-moz-appearance:none;width:12px;height:12px;box-sizing:border-box;border-radius:50%;background-image:none;background:rgb(0,150,136);border:none}.mdl-slider.is-upgraded:focus:not(:active)::-webkit-slider-thumb{box-shadow:0 0 0 10px rgba(0,150,136,.26)}.mdl-slider.is-upgraded:focus:not(:active)::-moz-range-thumb{box-shadow:0 0 0 10px rgba(0,150,136,.26)}.mdl-slider.is-upgraded:active::-webkit-slider-thumb{background-image:none;background:rgb(0,150,136);-webkit-transform:scale(1.5);transform:scale(1.5)}.mdl-slider.is-upgraded:active::-moz-range-thumb{background-image:none;background:rgb(0,150,136);transform:scale(1.5)}.mdl-slider.is-upgraded::-ms-thumb{width:32px;height:32px;border:none;border-radius:50%;background:rgb(0,150,136);transform:scale(.375);transition:transform .18s cubic-bezier(.4,0,.2,1),background .28s cubic-bezier(.4,0,.2,1);transition:transform .18s cubic-bezier(.4,0,.2,1),background .28s cubic-bezier(.4,0,.2,1),-webkit-transform .18s cubic-bezier(.4,0,.2,1)}.mdl-slider.is-upgraded:focus:not(:active)::-ms-thumb{background:radial-gradient(circle closest-side,rgb(0,150,136)0%,rgb(0,150,136)37.5%,rgba(0,150,136,.26)37.5%,rgba(0,150,136,.26)100%);transform:scale(1)}.mdl-slider.is-upgraded:active::-ms-thumb{background:rgb(0,150,136);transform:scale(.5625)}.mdl-slider.is-upgraded.is-lowest-value::-webkit-slider-thumb{border:2px solid rgba(0,0,0,.26);background:0 0}.mdl-slider.is-upgraded.is-lowest-value::-moz-range-thumb{border:2px solid rgba(0,0,0,.26);background:0 0}.mdl-slider.is-upgraded.is-lowest-value+.mdl-slider__background-flex>.mdl-slider__background-upper{left:6px}.mdl-slider.is-upgraded.is-lowest-value:focus:not(:active)::-webkit-slider-thumb{box-shadow:0 0 0 10px rgba(0,0,0,.12);background:rgba(0,0,0,.12)}.mdl-slider.is-upgraded.is-lowest-value:focus:not(:active)::-moz-range-thumb{box-shadow:0 0 0 10px rgba(0,0,0,.12);background:rgba(0,0,0,.12)}.mdl-slider.is-upgraded.is-lowest-value:active::-webkit-slider-thumb{border:1.6px solid rgba(0,0,0,.26);-webkit-transform:scale(1.5);transform:scale(1.5)}.mdl-slider.is-upgraded.is-lowest-value:active+.mdl-slider__background-flex>.mdl-slider__background-upper{left:9px}.mdl-slider.is-upgraded.is-lowest-value:active::-moz-range-thumb{border:1.5px solid rgba(0,0,0,.26);transform:scale(1.5)}.mdl-slider.is-upgraded.is-lowest-value::-ms-thumb{background:radial-gradient(circle closest-side,transparent 0%,transparent 66.67%,rgba(0,0,0,.26)66.67%,rgba(0,0,0,.26)100%)}.mdl-slider.is-upgraded.is-lowest-value:focus:not(:active)::-ms-thumb{background:radial-gradient(circle closest-side,rgba(0,0,0,.12)0%,rgba(0,0,0,.12)25%,rgba(0,0,0,.26)25%,rgba(0,0,0,.26)37.5%,rgba(0,0,0,.12)37.5%,rgba(0,0,0,.12)100%);transform:scale(1)}.mdl-slider.is-upgraded.is-lowest-value:active::-ms-thumb{transform:scale(.5625);background:radial-gradient(circle closest-side,transparent 0%,transparent 77.78%,rgba(0,0,0,.26)77.78%,rgba(0,0,0,.26)100%)}.mdl-slider.is-upgraded.is-lowest-value::-ms-fill-lower{background:0 0}.mdl-slider.is-upgraded.is-lowest-value::-ms-fill-upper{margin-left:6px}.mdl-slider.is-upgraded.is-lowest-value:active::-ms-fill-upper{margin-left:9px}.mdl-slider.is-upgraded:disabled:focus::-webkit-slider-thumb,.mdl-slider.is-upgraded:disabled:active::-webkit-slider-thumb,.mdl-slider.is-upgraded:disabled::-webkit-slider-thumb{-webkit-transform:scale(.667);transform:scale(.667);background:rgba(0,0,0,.26)}.mdl-slider.is-upgraded:disabled:focus::-moz-range-thumb,.mdl-slider.is-upgraded:disabled:active::-moz-range-thumb,.mdl-slider.is-upgraded:disabled::-moz-range-thumb{transform:scale(.667);background:rgba(0,0,0,.26)}.mdl-slider.is-upgraded:disabled+.mdl-slider__background-flex>.mdl-slider__background-lower{background-color:rgba(0,0,0,.26);left:-6px}.mdl-slider.is-upgraded:disabled+.mdl-slider__background-flex>.mdl-slider__background-upper{left:6px}.mdl-slider.is-upgraded.is-lowest-value:disabled:focus::-webkit-slider-thumb,.mdl-slider.is-upgraded.is-lowest-value:disabled:active::-webkit-slider-thumb,.mdl-slider.is-upgraded.is-lowest-value:disabled::-webkit-slider-thumb{border:3px solid rgba(0,0,0,.26);background:0 0;-webkit-transform:scale(.667);transform:scale(.667)}.mdl-slider.is-upgraded.is-lowest-value:disabled:focus::-moz-range-thumb,.mdl-slider.is-upgraded.is-lowest-value:disabled:active::-moz-range-thumb,.mdl-slider.is-upgraded.is-lowest-value:disabled::-moz-range-thumb{border:3px solid rgba(0,0,0,.26);background:0 0;transform:scale(.667)}.mdl-slider.is-upgraded.is-lowest-value:disabled:active+.mdl-slider__background-flex>.mdl-slider__background-upper{left:6px}.mdl-slider.is-upgraded:disabled:focus::-ms-thumb,.mdl-slider.is-upgraded:disabled:active::-ms-thumb,.mdl-slider.is-upgraded:disabled::-ms-thumb{transform:scale(.25);background:rgba(0,0,0,.26)}.mdl-slider.is-upgraded.is-lowest-value:disabled:focus::-ms-thumb,.mdl-slider.is-upgraded.is-lowest-value:disabled:active::-ms-thumb,.mdl-slider.is-upgraded.is-lowest-value:disabled::-ms-thumb{transform:scale(.25);background:radial-gradient(circle closest-side,transparent 0%,transparent 50%,rgba(0,0,0,.26)50%,rgba(0,0,0,.26)100%)}.mdl-slider.is-upgraded:disabled::-ms-fill-lower{margin-right:6px;background:linear-gradient(to right,transparent,transparent 25px,rgba(0,0,0,.26)25px,rgba(0,0,0,.26)0)}.mdl-slider.is-upgraded:disabled::-ms-fill-upper{margin-left:6px}.mdl-slider.is-upgraded.is-lowest-value:disabled:active::-ms-fill-upper{margin-left:6px}.mdl-slider__ie-container{height:18px;overflow:visible;border:none;margin:none;padding:none}.mdl-slider__container{height:18px;position:relative;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.mdl-slider__container,.mdl-slider__background-flex{background:0 0;display:-webkit-flex;display:-ms-flexbox;display:flex}.mdl-slider__background-flex{position:absolute;height:2px;width:calc(100% - 52px);top:50%;left:0;margin:0 26px;overflow:hidden;border:0;padding:0;-webkit-transform:translate(0,-1px);transform:translate(0,-1px)}.mdl-slider__background-lower{background:rgb(0,150,136)}.mdl-slider__background-lower,.mdl-slider__background-upper{-webkit-flex:0;-ms-flex:0;flex:0;position:relative;border:0;padding:0}.mdl-slider__background-upper{background:rgba(0,0,0,.26);transition:left .18s cubic-bezier(.4,0,.2,1)}.mdl-snackbar{position:fixed;bottom:0;left:50%;cursor:default;background-color:#323232;z-index:3;display:block;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-family:"Roboto","Helvetica","Arial",sans-serif;will-change:transform;-webkit-transform:translate(0,80px);transform:translate(0,80px);transition:transform .25s cubic-bezier(.4,0,1,1);transition:transform .25s cubic-bezier(.4,0,1,1),-webkit-transform .25s cubic-bezier(.4,0,1,1);pointer-events:none}@media (max-width:479px){.mdl-snackbar{width:100%;left:0;min-height:48px;max-height:80px}}@media (min-width:480px){.mdl-snackbar{min-width:288px;max-width:568px;border-radius:2px;-webkit-transform:translate(-50%,80px);transform:translate(-50%,80px)}}.mdl-snackbar--active{-webkit-transform:translate(0,0);transform:translate(0,0);pointer-events:auto;transition:transform .25s cubic-bezier(0,0,.2,1);transition:transform .25s cubic-bezier(0,0,.2,1),-webkit-transform .25s cubic-bezier(0,0,.2,1)}@media (min-width:480px){.mdl-snackbar--active{-webkit-transform:translate(-50%,0);transform:translate(-50%,0)}}.mdl-snackbar__text{padding:14px 12px 14px 24px;vertical-align:middle;color:#fff;float:left}.mdl-snackbar__action{background:0 0;border:none;color:rgb(178,255,89);float:right;padding:14px 24px 14px 12px;font-family:"Roboto","Helvetica","Arial",sans-serif;font-size:14px;font-weight:500;text-transform:uppercase;line-height:1;letter-spacing:0;overflow:hidden;outline:none;opacity:0;pointer-events:none;cursor:pointer;text-decoration:none;text-align:center;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.mdl-snackbar__action::-moz-focus-inner{border:0}.mdl-snackbar__action:not([aria-hidden]){opacity:1;pointer-events:auto}.mdl-spinner{display:inline-block;position:relative;width:28px;height:28px}.mdl-spinner:not(.is-upgraded).is-active:after{content:"Loading..."}.mdl-spinner.is-upgraded.is-active{-webkit-animation:mdl-spinner__container-rotate 1568.23529412ms linear infinite;animation:mdl-spinner__container-rotate 1568.23529412ms linear infinite}@-webkit-keyframes mdl-spinner__container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes mdl-spinner__container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mdl-spinner__layer{position:absolute;width:100%;height:100%;opacity:0}.mdl-spinner__layer-1{border-color:#42a5f5}.mdl-spinner--single-color .mdl-spinner__layer-1{border-color:rgb(0,150,136)}.mdl-spinner.is-active .mdl-spinner__layer-1{-webkit-animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1)infinite both,mdl-spinner__layer-1-fade-in-out 5332ms cubic-bezier(.4,0,.2,1)infinite both;animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1)infinite both,mdl-spinner__layer-1-fade-in-out 5332ms cubic-bezier(.4,0,.2,1)infinite both}.mdl-spinner__layer-2{border-color:#f44336}.mdl-spinner--single-color .mdl-spinner__layer-2{border-color:rgb(0,150,136)}.mdl-spinner.is-active .mdl-spinner__layer-2{-webkit-animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1)infinite both,mdl-spinner__layer-2-fade-in-out 5332ms cubic-bezier(.4,0,.2,1)infinite both;animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1)infinite both,mdl-spinner__layer-2-fade-in-out 5332ms cubic-bezier(.4,0,.2,1)infinite both}.mdl-spinner__layer-3{border-color:#fdd835}.mdl-spinner--single-color .mdl-spinner__layer-3{border-color:rgb(0,150,136)}.mdl-spinner.is-active .mdl-spinner__layer-3{-webkit-animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1)infinite both,mdl-spinner__layer-3-fade-in-out 5332ms cubic-bezier(.4,0,.2,1)infinite both;animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1)infinite both,mdl-spinner__layer-3-fade-in-out 5332ms cubic-bezier(.4,0,.2,1)infinite both}.mdl-spinner__layer-4{border-color:#4caf50}.mdl-spinner--single-color .mdl-spinner__layer-4{border-color:rgb(0,150,136)}.mdl-spinner.is-active .mdl-spinner__layer-4{-webkit-animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1)infinite both,mdl-spinner__layer-4-fade-in-out 5332ms cubic-bezier(.4,0,.2,1)infinite both;animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1)infinite both,mdl-spinner__layer-4-fade-in-out 5332ms cubic-bezier(.4,0,.2,1)infinite both}@-webkit-keyframes mdl-spinner__fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@keyframes mdl-spinner__fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@-webkit-keyframes mdl-spinner__layer-1-fade-in-out{from,25%{opacity:.99}26%,89%{opacity:0}90%,100%{opacity:.99}}@keyframes mdl-spinner__layer-1-fade-in-out{from,25%{opacity:.99}26%,89%{opacity:0}90%,100%{opacity:.99}}@-webkit-keyframes mdl-spinner__layer-2-fade-in-out{from,15%{opacity:0}25%,50%{opacity:.99}51%{opacity:0}}@keyframes mdl-spinner__layer-2-fade-in-out{from,15%{opacity:0}25%,50%{opacity:.99}51%{opacity:0}}@-webkit-keyframes mdl-spinner__layer-3-fade-in-out{from,40%{opacity:0}50%,75%{opacity:.99}76%{opacity:0}}@keyframes mdl-spinner__layer-3-fade-in-out{from,40%{opacity:0}50%,75%{opacity:.99}76%{opacity:0}}@-webkit-keyframes mdl-spinner__layer-4-fade-in-out{from,65%{opacity:0}75%,90%{opacity:.99}100%{opacity:0}}@keyframes mdl-spinner__layer-4-fade-in-out{from,65%{opacity:0}75%,90%{opacity:.99}100%{opacity:0}}.mdl-spinner__gap-patch{position:absolute;box-sizing:border-box;top:0;left:45%;width:10%;height:100%;overflow:hidden;border-color:inherit}.mdl-spinner__gap-patch .mdl-spinner__circle{width:1000%;left:-450%}.mdl-spinner__circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden;border-color:inherit}.mdl-spinner__circle-clipper .mdl-spinner__circle{width:200%}.mdl-spinner__circle{box-sizing:border-box;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:transparent!important;border-radius:50%;-webkit-animation:none;animation:none;position:absolute;top:0;right:0;bottom:0;left:0}.mdl-spinner__left .mdl-spinner__circle{border-right-color:transparent!important;-webkit-transform:rotate(129deg);transform:rotate(129deg)}.mdl-spinner.is-active .mdl-spinner__left .mdl-spinner__circle{-webkit-animation:mdl-spinner__left-spin 1333ms cubic-bezier(.4,0,.2,1)infinite both;animation:mdl-spinner__left-spin 1333ms cubic-bezier(.4,0,.2,1)infinite both}.mdl-spinner__right .mdl-spinner__circle{left:-100%;border-left-color:transparent!important;-webkit-transform:rotate(-129deg);transform:rotate(-129deg)}.mdl-spinner.is-active .mdl-spinner__right .mdl-spinner__circle{-webkit-animation:mdl-spinner__right-spin 1333ms cubic-bezier(.4,0,.2,1)infinite both;animation:mdl-spinner__right-spin 1333ms cubic-bezier(.4,0,.2,1)infinite both}@-webkit-keyframes mdl-spinner__left-spin{from{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@keyframes mdl-spinner__left-spin{from{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@-webkit-keyframes mdl-spinner__right-spin{from{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}@keyframes mdl-spinner__right-spin{from{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}.mdl-switch{position:relative;z-index:1;vertical-align:middle;display:inline-block;box-sizing:border-box;width:100%;height:24px;margin:0;padding:0;overflow:visible;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mdl-switch.is-upgraded{padding-left:28px}.mdl-switch__input{line-height:24px}.mdl-switch.is-upgraded .mdl-switch__input{position:absolute;width:0;height:0;margin:0;padding:0;opacity:0;-ms-appearance:none;-moz-appearance:none;-webkit-appearance:none;appearance:none;border:none}.mdl-switch__track{background:rgba(0,0,0,.26);position:absolute;left:0;top:5px;height:14px;width:36px;border-radius:14px;cursor:pointer}.mdl-switch.is-checked .mdl-switch__track{background:rgba(0,150,136,.5)}.mdl-switch__track fieldset[disabled] .mdl-switch,.mdl-switch.is-disabled .mdl-switch__track{background:rgba(0,0,0,.12);cursor:auto}.mdl-switch__thumb{background:#fafafa;position:absolute;left:0;top:2px;height:20px;width:20px;border-radius:50%;cursor:pointer;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:left}.mdl-switch.is-checked .mdl-switch__thumb{background:rgb(0,150,136);left:16px;box-shadow:0 3px 4px 0 rgba(0,0,0,.14),0 3px 3px -2px rgba(0,0,0,.2),0 1px 8px 0 rgba(0,0,0,.12)}.mdl-switch__thumb fieldset[disabled] .mdl-switch,.mdl-switch.is-disabled .mdl-switch__thumb{background:#bdbdbd;cursor:auto}.mdl-switch__focus-helper{position:absolute;top:50%;left:50%;-webkit-transform:translate(-4px,-4px);transform:translate(-4px,-4px);display:inline-block;box-sizing:border-box;width:8px;height:8px;border-radius:50%;background-color:transparent}.mdl-switch.is-focused .mdl-switch__focus-helper{box-shadow:0 0 0 20px rgba(0,0,0,.1);background-color:rgba(0,0,0,.1)}.mdl-switch.is-focused.is-checked .mdl-switch__focus-helper{box-shadow:0 0 0 20px rgba(0,150,136,.26);background-color:rgba(0,150,136,.26)}.mdl-switch__label{position:relative;cursor:pointer;font-size:16px;line-height:24px;margin:0;left:24px}.mdl-switch__label fieldset[disabled] .mdl-switch,.mdl-switch.is-disabled .mdl-switch__label{color:#bdbdbd;cursor:auto}.mdl-switch__ripple-container{position:absolute;z-index:2;top:-12px;left:-14px;box-sizing:border-box;width:48px;height:48px;border-radius:50%;cursor:pointer;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000);transition-duration:.4s;transition-timing-function:step-end;transition-property:left}.mdl-switch__ripple-container .mdl-ripple{background:rgb(0,150,136)}.mdl-switch__ripple-container fieldset[disabled] .mdl-switch,.mdl-switch.is-disabled .mdl-switch__ripple-container{cursor:auto}fieldset[disabled] .mdl-switch .mdl-switch__ripple-container .mdl-ripple,.mdl-switch.is-disabled .mdl-switch__ripple-container .mdl-ripple{background:0 0}.mdl-switch.is-checked .mdl-switch__ripple-container{left:2px}.mdl-tabs{display:block;width:100%}.mdl-tabs__tab-bar{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-content:space-between;-ms-flex-line-pack:justify;align-content:space-between;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;height:48px;padding:0;margin:0;border-bottom:1px solid #e0e0e0}.mdl-tabs__tab{margin:0;border:none;padding:0 24px;float:left;position:relative;display:block;text-decoration:none;height:48px;line-height:48px;text-align:center;font-weight:500;font-size:14px;text-transform:uppercase;color:rgba(0,0,0,.54);overflow:hidden}.mdl-tabs.is-upgraded .mdl-tabs__tab.is-active{color:rgba(0,0,0,.87)}.mdl-tabs.is-upgraded .mdl-tabs__tab.is-active:after{height:2px;width:100%;display:block;content:" ";bottom:0;left:0;position:absolute;background:rgb(0,150,136);-webkit-animation:border-expand .2s cubic-bezier(.4,0,.4,1).01s alternate forwards;animation:border-expand .2s cubic-bezier(.4,0,.4,1).01s alternate forwards;transition:all 1s cubic-bezier(.4,0,1,1)}.mdl-tabs__tab .mdl-tabs__ripple-container{display:block;position:absolute;height:100%;width:100%;left:0;top:0;z-index:1;overflow:hidden}.mdl-tabs__tab .mdl-tabs__ripple-container .mdl-ripple{background:rgb(0,150,136)}.mdl-tabs__panel{display:block}.mdl-tabs.is-upgraded .mdl-tabs__panel{display:none}.mdl-tabs.is-upgraded .mdl-tabs__panel.is-active{display:block}@-webkit-keyframes border-expand{0%{opacity:0;width:0}100%{opacity:1;width:100%}}@keyframes border-expand{0%{opacity:0;width:0}100%{opacity:1;width:100%}}.mdl-textfield{position:relative;font-size:16px;display:inline-block;box-sizing:border-box;width:300px;max-width:100%;margin:0;padding:20px 0}.mdl-textfield .mdl-button{position:absolute;bottom:20px}.mdl-textfield--align-right{text-align:right}.mdl-textfield--full-width{width:100%}.mdl-textfield--expandable{min-width:32px;width:auto;min-height:32px}.mdl-textfield--expandable .mdl-button--icon{top:16px}.mdl-textfield__input{border:none;border-bottom:1px solid rgba(0,0,0,.12);display:block;font-size:16px;font-family:"Helvetica","Arial",sans-serif;margin:0;padding:4px 0;width:100%;background:0 0;text-align:left;color:inherit}.mdl-textfield__input[type="number"]{-moz-appearance:textfield}.mdl-textfield__input[type="number"]::-webkit-inner-spin-button,.mdl-textfield__input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.mdl-textfield.is-focused .mdl-textfield__input{outline:none}.mdl-textfield.is-invalid .mdl-textfield__input{border-color:#d50000;box-shadow:none}fieldset[disabled] .mdl-textfield .mdl-textfield__input,.mdl-textfield.is-disabled .mdl-textfield__input{background-color:transparent;border-bottom:1px dotted rgba(0,0,0,.12);color:rgba(0,0,0,.26)}.mdl-textfield textarea.mdl-textfield__input{display:block}.mdl-textfield__label{bottom:0;color:rgba(0,0,0,.26);font-size:16px;left:0;right:0;pointer-events:none;position:absolute;display:block;top:24px;width:100%;overflow:hidden;white-space:nowrap;text-align:left}.mdl-textfield.is-dirty .mdl-textfield__label,.mdl-textfield.has-placeholder .mdl-textfield__label{visibility:hidden}.mdl-textfield--floating-label .mdl-textfield__label{transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label{transition:none}fieldset[disabled] .mdl-textfield .mdl-textfield__label,.mdl-textfield.is-disabled.is-disabled .mdl-textfield__label{color:rgba(0,0,0,.26)}.mdl-textfield--floating-label.is-focused .mdl-textfield__label,.mdl-textfield--floating-label.is-dirty .mdl-textfield__label,.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label{color:rgb(0,150,136);font-size:12px;top:4px;visibility:visible}.mdl-textfield--floating-label.is-focused .mdl-textfield__expandable-holder .mdl-textfield__label,.mdl-textfield--floating-label.is-dirty .mdl-textfield__expandable-holder .mdl-textfield__label,.mdl-textfield--floating-label.has-placeholder .mdl-textfield__expandable-holder .mdl-textfield__label{top:-16px}.mdl-textfield--floating-label.is-invalid .mdl-textfield__label{color:#d50000;font-size:12px}.mdl-textfield__label:after{background-color:rgb(0,150,136);bottom:20px;content:'';height:2px;left:45%;position:absolute;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);visibility:hidden;width:10px}.mdl-textfield.is-focused .mdl-textfield__label:after{left:0;visibility:visible;width:100%}.mdl-textfield.is-invalid .mdl-textfield__label:after{background-color:#d50000}.mdl-textfield__error{color:#d50000;position:absolute;font-size:12px;margin-top:3px;visibility:hidden;display:block}.mdl-textfield.is-invalid .mdl-textfield__error{visibility:visible}.mdl-textfield__expandable-holder{display:inline-block;position:relative;margin-left:32px;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block;max-width:.1px}.mdl-textfield.is-focused .mdl-textfield__expandable-holder,.mdl-textfield.is-dirty .mdl-textfield__expandable-holder{max-width:600px}.mdl-textfield__expandable-holder .mdl-textfield__label:after{bottom:0}.mdl-tooltip{-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top center;transform-origin:top center;z-index:999;background:rgba(97,97,97,.9);border-radius:2px;color:#fff;display:inline-block;font-size:10px;font-weight:500;line-height:14px;max-width:170px;position:fixed;top:-500px;left:-500px;padding:8px;text-align:center}.mdl-tooltip.is-active{-webkit-animation:pulse 200ms cubic-bezier(0,0,.2,1)forwards;animation:pulse 200ms cubic-bezier(0,0,.2,1)forwards}.mdl-tooltip--large{line-height:14px;font-size:14px;padding:16px}@-webkit-keyframes pulse{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}50%{-webkit-transform:scale(.99);transform:scale(.99)}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1;visibility:visible}}@keyframes pulse{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}50%{-webkit-transform:scale(.99);transform:scale(.99)}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1;visibility:visible}}.mdl-shadow--2dp{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)}.mdl-shadow--3dp{box-shadow:0 3px 4px 0 rgba(0,0,0,.14),0 3px 3px -2px rgba(0,0,0,.2),0 1px 8px 0 rgba(0,0,0,.12)}.mdl-shadow--4dp{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.2)}.mdl-shadow--6dp{box-shadow:0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.2)}.mdl-shadow--8dp{box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.2)}.mdl-shadow--16dp{box-shadow:0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12),0 8px 10px -5px rgba(0,0,0,.2)}.mdl-shadow--24dp{box-shadow:0 9px 46px 8px rgba(0,0,0,.14),0 11px 15px -7px rgba(0,0,0,.12),0 24px 38px 3px rgba(0,0,0,.2)}.mdl-grid{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;margin:0 auto;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.mdl-grid.mdl-grid--no-spacing{padding:0}.mdl-cell{box-sizing:border-box}.mdl-cell--top{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.mdl-cell--middle{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.mdl-cell--bottom{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end}.mdl-cell--stretch{-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch}.mdl-grid.mdl-grid--no-spacing>.mdl-cell{margin:0}.mdl-cell--order-1{-webkit-order:1;-ms-flex-order:1;order:1}.mdl-cell--order-2{-webkit-order:2;-ms-flex-order:2;order:2}.mdl-cell--order-3{-webkit-order:3;-ms-flex-order:3;order:3}.mdl-cell--order-4{-webkit-order:4;-ms-flex-order:4;order:4}.mdl-cell--order-5{-webkit-order:5;-ms-flex-order:5;order:5}.mdl-cell--order-6{-webkit-order:6;-ms-flex-order:6;order:6}.mdl-cell--order-7{-webkit-order:7;-ms-flex-order:7;order:7}.mdl-cell--order-8{-webkit-order:8;-ms-flex-order:8;order:8}.mdl-cell--order-9{-webkit-order:9;-ms-flex-order:9;order:9}.mdl-cell--order-10{-webkit-order:10;-ms-flex-order:10;order:10}.mdl-cell--order-11{-webkit-order:11;-ms-flex-order:11;order:11}.mdl-cell--order-12{-webkit-order:12;-ms-flex-order:12;order:12}@media (max-width:479px){.mdl-grid{padding:8px}.mdl-cell{margin:8px;width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell{width:100%}.mdl-cell--hide-phone{display:none!important}.mdl-cell--order-1-phone.mdl-cell--order-1-phone{-webkit-order:1;-ms-flex-order:1;order:1}.mdl-cell--order-2-phone.mdl-cell--order-2-phone{-webkit-order:2;-ms-flex-order:2;order:2}.mdl-cell--order-3-phone.mdl-cell--order-3-phone{-webkit-order:3;-ms-flex-order:3;order:3}.mdl-cell--order-4-phone.mdl-cell--order-4-phone{-webkit-order:4;-ms-flex-order:4;order:4}.mdl-cell--order-5-phone.mdl-cell--order-5-phone{-webkit-order:5;-ms-flex-order:5;order:5}.mdl-cell--order-6-phone.mdl-cell--order-6-phone{-webkit-order:6;-ms-flex-order:6;order:6}.mdl-cell--order-7-phone.mdl-cell--order-7-phone{-webkit-order:7;-ms-flex-order:7;order:7}.mdl-cell--order-8-phone.mdl-cell--order-8-phone{-webkit-order:8;-ms-flex-order:8;order:8}.mdl-cell--order-9-phone.mdl-cell--order-9-phone{-webkit-order:9;-ms-flex-order:9;order:9}.mdl-cell--order-10-phone.mdl-cell--order-10-phone{-webkit-order:10;-ms-flex-order:10;order:10}.mdl-cell--order-11-phone.mdl-cell--order-11-phone{-webkit-order:11;-ms-flex-order:11;order:11}.mdl-cell--order-12-phone.mdl-cell--order-12-phone{-webkit-order:12;-ms-flex-order:12;order:12}.mdl-cell--1-col,.mdl-cell--1-col-phone.mdl-cell--1-col-phone{width:calc(25% - 16px)}.mdl-grid--no-spacing>.mdl-cell--1-col,.mdl-grid--no-spacing>.mdl-cell--1-col-phone.mdl-cell--1-col-phone{width:25%}.mdl-cell--2-col,.mdl-cell--2-col-phone.mdl-cell--2-col-phone{width:calc(50% - 16px)}.mdl-grid--no-spacing>.mdl-cell--2-col,.mdl-grid--no-spacing>.mdl-cell--2-col-phone.mdl-cell--2-col-phone{width:50%}.mdl-cell--3-col,.mdl-cell--3-col-phone.mdl-cell--3-col-phone{width:calc(75% - 16px)}.mdl-grid--no-spacing>.mdl-cell--3-col,.mdl-grid--no-spacing>.mdl-cell--3-col-phone.mdl-cell--3-col-phone{width:75%}.mdl-cell--4-col,.mdl-cell--4-col-phone.mdl-cell--4-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--4-col,.mdl-grid--no-spacing>.mdl-cell--4-col-phone.mdl-cell--4-col-phone{width:100%}.mdl-cell--5-col,.mdl-cell--5-col-phone.mdl-cell--5-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--5-col,.mdl-grid--no-spacing>.mdl-cell--5-col-phone.mdl-cell--5-col-phone{width:100%}.mdl-cell--6-col,.mdl-cell--6-col-phone.mdl-cell--6-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--6-col,.mdl-grid--no-spacing>.mdl-cell--6-col-phone.mdl-cell--6-col-phone{width:100%}.mdl-cell--7-col,.mdl-cell--7-col-phone.mdl-cell--7-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--7-col,.mdl-grid--no-spacing>.mdl-cell--7-col-phone.mdl-cell--7-col-phone{width:100%}.mdl-cell--8-col,.mdl-cell--8-col-phone.mdl-cell--8-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--8-col,.mdl-grid--no-spacing>.mdl-cell--8-col-phone.mdl-cell--8-col-phone{width:100%}.mdl-cell--9-col,.mdl-cell--9-col-phone.mdl-cell--9-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--9-col,.mdl-grid--no-spacing>.mdl-cell--9-col-phone.mdl-cell--9-col-phone{width:100%}.mdl-cell--10-col,.mdl-cell--10-col-phone.mdl-cell--10-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--10-col,.mdl-grid--no-spacing>.mdl-cell--10-col-phone.mdl-cell--10-col-phone{width:100%}.mdl-cell--11-col,.mdl-cell--11-col-phone.mdl-cell--11-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--11-col,.mdl-grid--no-spacing>.mdl-cell--11-col-phone.mdl-cell--11-col-phone{width:100%}.mdl-cell--12-col,.mdl-cell--12-col-phone.mdl-cell--12-col-phone{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--12-col,.mdl-grid--no-spacing>.mdl-cell--12-col-phone.mdl-cell--12-col-phone{width:100%}.mdl-cell--1-offset,.mdl-cell--1-offset-phone.mdl-cell--1-offset-phone{margin-left:calc(25% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--1-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--1-offset-phone.mdl-cell--1-offset-phone{margin-left:25%}.mdl-cell--2-offset,.mdl-cell--2-offset-phone.mdl-cell--2-offset-phone{margin-left:calc(50% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--2-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--2-offset-phone.mdl-cell--2-offset-phone{margin-left:50%}.mdl-cell--3-offset,.mdl-cell--3-offset-phone.mdl-cell--3-offset-phone{margin-left:calc(75% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--3-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--3-offset-phone.mdl-cell--3-offset-phone{margin-left:75%}}@media (min-width:480px) and (max-width:839px){.mdl-grid{padding:8px}.mdl-cell{margin:8px;width:calc(50% - 16px)}.mdl-grid--no-spacing>.mdl-cell{width:50%}.mdl-cell--hide-tablet{display:none!important}.mdl-cell--order-1-tablet.mdl-cell--order-1-tablet{-webkit-order:1;-ms-flex-order:1;order:1}.mdl-cell--order-2-tablet.mdl-cell--order-2-tablet{-webkit-order:2;-ms-flex-order:2;order:2}.mdl-cell--order-3-tablet.mdl-cell--order-3-tablet{-webkit-order:3;-ms-flex-order:3;order:3}.mdl-cell--order-4-tablet.mdl-cell--order-4-tablet{-webkit-order:4;-ms-flex-order:4;order:4}.mdl-cell--order-5-tablet.mdl-cell--order-5-tablet{-webkit-order:5;-ms-flex-order:5;order:5}.mdl-cell--order-6-tablet.mdl-cell--order-6-tablet{-webkit-order:6;-ms-flex-order:6;order:6}.mdl-cell--order-7-tablet.mdl-cell--order-7-tablet{-webkit-order:7;-ms-flex-order:7;order:7}.mdl-cell--order-8-tablet.mdl-cell--order-8-tablet{-webkit-order:8;-ms-flex-order:8;order:8}.mdl-cell--order-9-tablet.mdl-cell--order-9-tablet{-webkit-order:9;-ms-flex-order:9;order:9}.mdl-cell--order-10-tablet.mdl-cell--order-10-tablet{-webkit-order:10;-ms-flex-order:10;order:10}.mdl-cell--order-11-tablet.mdl-cell--order-11-tablet{-webkit-order:11;-ms-flex-order:11;order:11}.mdl-cell--order-12-tablet.mdl-cell--order-12-tablet{-webkit-order:12;-ms-flex-order:12;order:12}.mdl-cell--1-col,.mdl-cell--1-col-tablet.mdl-cell--1-col-tablet{width:calc(12.5% - 16px)}.mdl-grid--no-spacing>.mdl-cell--1-col,.mdl-grid--no-spacing>.mdl-cell--1-col-tablet.mdl-cell--1-col-tablet{width:12.5%}.mdl-cell--2-col,.mdl-cell--2-col-tablet.mdl-cell--2-col-tablet{width:calc(25% - 16px)}.mdl-grid--no-spacing>.mdl-cell--2-col,.mdl-grid--no-spacing>.mdl-cell--2-col-tablet.mdl-cell--2-col-tablet{width:25%}.mdl-cell--3-col,.mdl-cell--3-col-tablet.mdl-cell--3-col-tablet{width:calc(37.5% - 16px)}.mdl-grid--no-spacing>.mdl-cell--3-col,.mdl-grid--no-spacing>.mdl-cell--3-col-tablet.mdl-cell--3-col-tablet{width:37.5%}.mdl-cell--4-col,.mdl-cell--4-col-tablet.mdl-cell--4-col-tablet{width:calc(50% - 16px)}.mdl-grid--no-spacing>.mdl-cell--4-col,.mdl-grid--no-spacing>.mdl-cell--4-col-tablet.mdl-cell--4-col-tablet{width:50%}.mdl-cell--5-col,.mdl-cell--5-col-tablet.mdl-cell--5-col-tablet{width:calc(62.5% - 16px)}.mdl-grid--no-spacing>.mdl-cell--5-col,.mdl-grid--no-spacing>.mdl-cell--5-col-tablet.mdl-cell--5-col-tablet{width:62.5%}.mdl-cell--6-col,.mdl-cell--6-col-tablet.mdl-cell--6-col-tablet{width:calc(75% - 16px)}.mdl-grid--no-spacing>.mdl-cell--6-col,.mdl-grid--no-spacing>.mdl-cell--6-col-tablet.mdl-cell--6-col-tablet{width:75%}.mdl-cell--7-col,.mdl-cell--7-col-tablet.mdl-cell--7-col-tablet{width:calc(87.5% - 16px)}.mdl-grid--no-spacing>.mdl-cell--7-col,.mdl-grid--no-spacing>.mdl-cell--7-col-tablet.mdl-cell--7-col-tablet{width:87.5%}.mdl-cell--8-col,.mdl-cell--8-col-tablet.mdl-cell--8-col-tablet{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--8-col,.mdl-grid--no-spacing>.mdl-cell--8-col-tablet.mdl-cell--8-col-tablet{width:100%}.mdl-cell--9-col,.mdl-cell--9-col-tablet.mdl-cell--9-col-tablet{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--9-col,.mdl-grid--no-spacing>.mdl-cell--9-col-tablet.mdl-cell--9-col-tablet{width:100%}.mdl-cell--10-col,.mdl-cell--10-col-tablet.mdl-cell--10-col-tablet{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--10-col,.mdl-grid--no-spacing>.mdl-cell--10-col-tablet.mdl-cell--10-col-tablet{width:100%}.mdl-cell--11-col,.mdl-cell--11-col-tablet.mdl-cell--11-col-tablet{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--11-col,.mdl-grid--no-spacing>.mdl-cell--11-col-tablet.mdl-cell--11-col-tablet{width:100%}.mdl-cell--12-col,.mdl-cell--12-col-tablet.mdl-cell--12-col-tablet{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--12-col,.mdl-grid--no-spacing>.mdl-cell--12-col-tablet.mdl-cell--12-col-tablet{width:100%}.mdl-cell--1-offset,.mdl-cell--1-offset-tablet.mdl-cell--1-offset-tablet{margin-left:calc(12.5% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--1-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--1-offset-tablet.mdl-cell--1-offset-tablet{margin-left:12.5%}.mdl-cell--2-offset,.mdl-cell--2-offset-tablet.mdl-cell--2-offset-tablet{margin-left:calc(25% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--2-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--2-offset-tablet.mdl-cell--2-offset-tablet{margin-left:25%}.mdl-cell--3-offset,.mdl-cell--3-offset-tablet.mdl-cell--3-offset-tablet{margin-left:calc(37.5% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--3-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--3-offset-tablet.mdl-cell--3-offset-tablet{margin-left:37.5%}.mdl-cell--4-offset,.mdl-cell--4-offset-tablet.mdl-cell--4-offset-tablet{margin-left:calc(50% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--4-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--4-offset-tablet.mdl-cell--4-offset-tablet{margin-left:50%}.mdl-cell--5-offset,.mdl-cell--5-offset-tablet.mdl-cell--5-offset-tablet{margin-left:calc(62.5% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--5-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--5-offset-tablet.mdl-cell--5-offset-tablet{margin-left:62.5%}.mdl-cell--6-offset,.mdl-cell--6-offset-tablet.mdl-cell--6-offset-tablet{margin-left:calc(75% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--6-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--6-offset-tablet.mdl-cell--6-offset-tablet{margin-left:75%}.mdl-cell--7-offset,.mdl-cell--7-offset-tablet.mdl-cell--7-offset-tablet{margin-left:calc(87.5% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--7-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--7-offset-tablet.mdl-cell--7-offset-tablet{margin-left:87.5%}}@media (min-width:840px){.mdl-grid{padding:8px}.mdl-cell{margin:8px;width:calc(33.3333333333% - 16px)}.mdl-grid--no-spacing>.mdl-cell{width:33.3333333333%}.mdl-cell--hide-desktop{display:none!important}.mdl-cell--order-1-desktop.mdl-cell--order-1-desktop{-webkit-order:1;-ms-flex-order:1;order:1}.mdl-cell--order-2-desktop.mdl-cell--order-2-desktop{-webkit-order:2;-ms-flex-order:2;order:2}.mdl-cell--order-3-desktop.mdl-cell--order-3-desktop{-webkit-order:3;-ms-flex-order:3;order:3}.mdl-cell--order-4-desktop.mdl-cell--order-4-desktop{-webkit-order:4;-ms-flex-order:4;order:4}.mdl-cell--order-5-desktop.mdl-cell--order-5-desktop{-webkit-order:5;-ms-flex-order:5;order:5}.mdl-cell--order-6-desktop.mdl-cell--order-6-desktop{-webkit-order:6;-ms-flex-order:6;order:6}.mdl-cell--order-7-desktop.mdl-cell--order-7-desktop{-webkit-order:7;-ms-flex-order:7;order:7}.mdl-cell--order-8-desktop.mdl-cell--order-8-desktop{-webkit-order:8;-ms-flex-order:8;order:8}.mdl-cell--order-9-desktop.mdl-cell--order-9-desktop{-webkit-order:9;-ms-flex-order:9;order:9}.mdl-cell--order-10-desktop.mdl-cell--order-10-desktop{-webkit-order:10;-ms-flex-order:10;order:10}.mdl-cell--order-11-desktop.mdl-cell--order-11-desktop{-webkit-order:11;-ms-flex-order:11;order:11}.mdl-cell--order-12-desktop.mdl-cell--order-12-desktop{-webkit-order:12;-ms-flex-order:12;order:12}.mdl-cell--1-col,.mdl-cell--1-col-desktop.mdl-cell--1-col-desktop{width:calc(8.3333333333% - 16px)}.mdl-grid--no-spacing>.mdl-cell--1-col,.mdl-grid--no-spacing>.mdl-cell--1-col-desktop.mdl-cell--1-col-desktop{width:8.3333333333%}.mdl-cell--2-col,.mdl-cell--2-col-desktop.mdl-cell--2-col-desktop{width:calc(16.6666666667% - 16px)}.mdl-grid--no-spacing>.mdl-cell--2-col,.mdl-grid--no-spacing>.mdl-cell--2-col-desktop.mdl-cell--2-col-desktop{width:16.6666666667%}.mdl-cell--3-col,.mdl-cell--3-col-desktop.mdl-cell--3-col-desktop{width:calc(25% - 16px)}.mdl-grid--no-spacing>.mdl-cell--3-col,.mdl-grid--no-spacing>.mdl-cell--3-col-desktop.mdl-cell--3-col-desktop{width:25%}.mdl-cell--4-col,.mdl-cell--4-col-desktop.mdl-cell--4-col-desktop{width:calc(33.3333333333% - 16px)}.mdl-grid--no-spacing>.mdl-cell--4-col,.mdl-grid--no-spacing>.mdl-cell--4-col-desktop.mdl-cell--4-col-desktop{width:33.3333333333%}.mdl-cell--5-col,.mdl-cell--5-col-desktop.mdl-cell--5-col-desktop{width:calc(41.6666666667% - 16px)}.mdl-grid--no-spacing>.mdl-cell--5-col,.mdl-grid--no-spacing>.mdl-cell--5-col-desktop.mdl-cell--5-col-desktop{width:41.6666666667%}.mdl-cell--6-col,.mdl-cell--6-col-desktop.mdl-cell--6-col-desktop{width:calc(50% - 16px)}.mdl-grid--no-spacing>.mdl-cell--6-col,.mdl-grid--no-spacing>.mdl-cell--6-col-desktop.mdl-cell--6-col-desktop{width:50%}.mdl-cell--7-col,.mdl-cell--7-col-desktop.mdl-cell--7-col-desktop{width:calc(58.3333333333% - 16px)}.mdl-grid--no-spacing>.mdl-cell--7-col,.mdl-grid--no-spacing>.mdl-cell--7-col-desktop.mdl-cell--7-col-desktop{width:58.3333333333%}.mdl-cell--8-col,.mdl-cell--8-col-desktop.mdl-cell--8-col-desktop{width:calc(66.6666666667% - 16px)}.mdl-grid--no-spacing>.mdl-cell--8-col,.mdl-grid--no-spacing>.mdl-cell--8-col-desktop.mdl-cell--8-col-desktop{width:66.6666666667%}.mdl-cell--9-col,.mdl-cell--9-col-desktop.mdl-cell--9-col-desktop{width:calc(75% - 16px)}.mdl-grid--no-spacing>.mdl-cell--9-col,.mdl-grid--no-spacing>.mdl-cell--9-col-desktop.mdl-cell--9-col-desktop{width:75%}.mdl-cell--10-col,.mdl-cell--10-col-desktop.mdl-cell--10-col-desktop{width:calc(83.3333333333% - 16px)}.mdl-grid--no-spacing>.mdl-cell--10-col,.mdl-grid--no-spacing>.mdl-cell--10-col-desktop.mdl-cell--10-col-desktop{width:83.3333333333%}.mdl-cell--11-col,.mdl-cell--11-col-desktop.mdl-cell--11-col-desktop{width:calc(91.6666666667% - 16px)}.mdl-grid--no-spacing>.mdl-cell--11-col,.mdl-grid--no-spacing>.mdl-cell--11-col-desktop.mdl-cell--11-col-desktop{width:91.6666666667%}.mdl-cell--12-col,.mdl-cell--12-col-desktop.mdl-cell--12-col-desktop{width:calc(100% - 16px)}.mdl-grid--no-spacing>.mdl-cell--12-col,.mdl-grid--no-spacing>.mdl-cell--12-col-desktop.mdl-cell--12-col-desktop{width:100%}.mdl-cell--1-offset,.mdl-cell--1-offset-desktop.mdl-cell--1-offset-desktop{margin-left:calc(8.3333333333% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--1-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--1-offset-desktop.mdl-cell--1-offset-desktop{margin-left:8.3333333333%}.mdl-cell--2-offset,.mdl-cell--2-offset-desktop.mdl-cell--2-offset-desktop{margin-left:calc(16.6666666667% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--2-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--2-offset-desktop.mdl-cell--2-offset-desktop{margin-left:16.6666666667%}.mdl-cell--3-offset,.mdl-cell--3-offset-desktop.mdl-cell--3-offset-desktop{margin-left:calc(25% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--3-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--3-offset-desktop.mdl-cell--3-offset-desktop{margin-left:25%}.mdl-cell--4-offset,.mdl-cell--4-offset-desktop.mdl-cell--4-offset-desktop{margin-left:calc(33.3333333333% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--4-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--4-offset-desktop.mdl-cell--4-offset-desktop{margin-left:33.3333333333%}.mdl-cell--5-offset,.mdl-cell--5-offset-desktop.mdl-cell--5-offset-desktop{margin-left:calc(41.6666666667% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--5-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--5-offset-desktop.mdl-cell--5-offset-desktop{margin-left:41.6666666667%}.mdl-cell--6-offset,.mdl-cell--6-offset-desktop.mdl-cell--6-offset-desktop{margin-left:calc(50% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--6-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--6-offset-desktop.mdl-cell--6-offset-desktop{margin-left:50%}.mdl-cell--7-offset,.mdl-cell--7-offset-desktop.mdl-cell--7-offset-desktop{margin-left:calc(58.3333333333% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--7-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--7-offset-desktop.mdl-cell--7-offset-desktop{margin-left:58.3333333333%}.mdl-cell--8-offset,.mdl-cell--8-offset-desktop.mdl-cell--8-offset-desktop{margin-left:calc(66.6666666667% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--8-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--8-offset-desktop.mdl-cell--8-offset-desktop{margin-left:66.6666666667%}.mdl-cell--9-offset,.mdl-cell--9-offset-desktop.mdl-cell--9-offset-desktop{margin-left:calc(75% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--9-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--9-offset-desktop.mdl-cell--9-offset-desktop{margin-left:75%}.mdl-cell--10-offset,.mdl-cell--10-offset-desktop.mdl-cell--10-offset-desktop{margin-left:calc(83.3333333333% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--10-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--10-offset-desktop.mdl-cell--10-offset-desktop{margin-left:83.3333333333%}.mdl-cell--11-offset,.mdl-cell--11-offset-desktop.mdl-cell--11-offset-desktop{margin-left:calc(91.6666666667% + 8px)}.mdl-grid.mdl-grid--no-spacing>.mdl-cell--11-offset,.mdl-grid.mdl-grid--no-spacing>.mdl-cell--11-offset-desktop.mdl-cell--11-offset-desktop{margin-left:91.6666666667%}}body{margin:0}.styleguide-demo h1{margin:48px 24px 0}.styleguide-demo h1:after{content:'';display:block;width:100%;border-bottom:1px solid rgba(0,0,0,.5);margin-top:24px}.styleguide-demo{opacity:0;transition:opacity .6s ease}.styleguide-masthead{height:256px;background:#212121;padding:115px 16px 0}.styleguide-container{position:relative;max-width:960px;width:100%}.styleguide-title{color:#fff;bottom:auto;position:relative;font-size:56px;font-weight:300;line-height:1;letter-spacing:-.02em}.styleguide-title:after{border-bottom:0}.styleguide-title span{font-weight:300}.mdl-styleguide .mdl-layout__drawer .mdl-navigation__link{padding:10px 24px}.demosLoaded .styleguide-demo{opacity:1}iframe{display:block;width:100%;border:none}iframe.heightSet{overflow:hidden}.demo-wrapper{margin:24px}.demo-wrapper iframe{border:1px solid rgba(0,0,0,.5)} diff --git a/build_odroid/roles/build_clients/files/elm_static/app.medical-styles.css b/build_odroid/roles/build_clients/files/elm_static/app.medical-styles.css new file mode 100644 index 0000000..5562ed4 --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/app.medical-styles.css @@ -0,0 +1,396 @@ +/* +fonts.css + +The fonts needed for Material Design. + +Generated by: https://google-webfonts-helper.herokuapp.com/fonts/ + +based upon this as the requirement: + + + +*/ + + +/* roboto-regular - latin-ext_latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: url(1658fb7ff5e46f220397f647753dea0e.eot); /* IE9 Compat Modes */ + src: local('Roboto'), local('Roboto-Regular'), + url(1658fb7ff5e46f220397f647753dea0e.eot?#iefix) format('embedded-opentype'), + url(9723add759ca860091c4960e567bd1fa.woff2) format('woff2'), + url(a84d4b00b169826c4aea77a8611b1e56.woff) format('woff'), + url(1b2b92e8f347c87e456599e91a79cc2e.ttf) format('truetype'), + url(3d3a53586bd78d1069ae4b89a3b9aa98.svg#Roboto) format('svg'); /* Legacy iOS */ +} +/* roboto-300italic - latin-ext_latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: url(1343b7f254fa03f282b84d484e8b1ef0.eot); /* IE9 Compat Modes */ + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), + url(1343b7f254fa03f282b84d484e8b1ef0.eot?#iefix) format('embedded-opentype'), + url(0c69418ceacfe225f6245bc7cb35ee9e.woff2) format('woff2'), + url(1c2236df616e20bd4894a174fb2d5225.woff) format('woff'), + url(bbe79cc5c634b8422d2ad1a4a4a6c5f6.ttf) format('truetype'), + url(290e6a6c01f4703f351415432980aa2f.svg#Roboto) format('svg'); /* Legacy iOS */ +} +/* roboto-500 - latin-ext_latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: url(648c0c9e9baa984377419ef440e9fd76.eot); /* IE9 Compat Modes */ + src: local('Roboto Medium'), local('Roboto-Medium'), + url(648c0c9e9baa984377419ef440e9fd76.eot?#iefix) format('embedded-opentype'), + url(1e2be9ce2b53daa622b1b966214bbbb0.woff2) format('woff2'), + url(243a8ea4b8c5d016075ca4afac4da8f0.woff) format('woff'), + url(453ee13f0ab2da9315986717468d873d.ttf) format('truetype'), + url(f1d811cdfaea49c969500d4bbe52251b.svg#Roboto) format('svg'); /* Legacy iOS */ +} + + +/* roboto-mono-regular - latin-ext_latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: url(e001e59a54f1295535fc1031ccc8f999.eot); /* IE9 Compat Modes */ + src: local('Roboto Mono'), local('RobotoMono-Regular'), + url(e001e59a54f1295535fc1031ccc8f999.eot?#iefix) format('embedded-opentype'), + url(59288a767a1c97571b3475982e1e00c2.woff2) format('woff2'), + url(cfc1cd7dec5c84d7ab09a365d6e111df.woff) format('woff'), + url(f9ca3b6f2de069bad0195dfa8cb6a5f1.ttf) format('truetype'), + url(96a9bbe5d32f7fe96e844bcbf7b4e05d.svg#RobotoMono) format('svg'); /* Legacy iOS */ +} + + + +/* roboto-condensed-regular - latin-ext_latin */ +@font-face { + font-family: 'Roboto Condensed'; + font-style: normal; + font-weight: 400; + src: url(5e8dacb38b60db75a513e6691748ac41.eot); /* IE9 Compat Modes */ + src: local('Roboto Condensed'), local('RobotoCondensed-Regular'), + url(5e8dacb38b60db75a513e6691748ac41.eot?#iefix) format('embedded-opentype'), + url(1f11fd578571d7ca0f559f550e7831b3.woff2) format('woff2'), + url(434e520c656cf117085de8cc4aaa2bc2.woff) format('woff'), + url(3a1fd68839b6484697eb9be097167eb5.ttf) format('truetype'), + url(87a79b495a5075c0a81273c2942b04cd.svg#RobotoCondensed) format('svg'); /* Legacy iOS */ +} +/* roboto-condensed-700 - latin-ext_latin */ +@font-face { + font-family: 'Roboto Condensed'; + font-style: normal; + font-weight: 700; + src: url(28ca1a3fd68f6ef41723ff921bfc2de8.eot); /* IE9 Compat Modes */ + src: local('Roboto Condensed Bold'), local('RobotoCondensed-Bold'), + url(28ca1a3fd68f6ef41723ff921bfc2de8.eot?#iefix) format('embedded-opentype'), + url(76ce747879e02ee93c9b83f457ab24ca.woff2) format('woff2'), + url(0204f58a80d501469499b37c882ee06c.woff) format('woff'), + url(fe353925ebc6cb6397f436bd1aaddbf4.ttf) format('truetype'), + url(1b2fe31f77652a3ede3ae777071837c2.svg#RobotoCondensed) format('svg'); /* Legacy iOS */ +} + + + + + +/*!v3.6.2*/@charset "UTF-8";html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{margin:0}.o-container{margin:auto}@media (min-width:20em){.o-container--xsmall\@xsmall{max-width:20em}.o-container--small\@xsmall{max-width:30em}.o-container--medium\@xsmall{max-width:48em}.o-container--large\@xsmall{max-width:64em}.o-container--xlarge\@xsmall{max-width:78em}.o-container--super\@xsmall{max-width:116em}}@media (min-width:30em){.o-container--xsmall\@small{max-width:20em}.o-container--small\@small{max-width:30em}.o-container--medium\@small{max-width:48em}.o-container--large\@small{max-width:64em}.o-container--xlarge\@small{max-width:78em}.o-container--super\@small{max-width:116em}}@media (min-width:48em){.o-container--xsmall\@medium{max-width:20em}.o-container--small\@medium{max-width:30em}.o-container--medium\@medium{max-width:48em}.o-container--large\@medium{max-width:64em}.o-container--xlarge\@medium{max-width:78em}.o-container--super\@medium{max-width:116em}}@media (min-width:64em){.o-container--xsmall\@large{max-width:20em}.o-container--small\@large{max-width:30em}.o-container--medium\@large{max-width:48em}.o-container--large\@large{max-width:64em}.o-container--xlarge\@large{max-width:78em}.o-container--super\@large{max-width:116em}}@media (min-width:78em){.o-container--xsmall\@xlarge{max-width:20em}.o-container--small\@xlarge{max-width:30em}.o-container--medium\@xlarge{max-width:48em}.o-container--large\@xlarge{max-width:64em}.o-container--xlarge\@xlarge{max-width:78em}.o-container--super\@xlarge{max-width:116em}}@media (min-width:116em){.o-container--xsmall\@super{max-width:20em}.o-container--small\@super{max-width:30em}.o-container--medium\@super{max-width:48em}.o-container--large\@super{max-width:64em}.o-container--xlarge\@super{max-width:78em}.o-container--super\@super{max-width:116em}}.o-container--xsmall{max-width:20em}.o-container--small{max-width:30em}.o-container--medium{max-width:48em}.o-container--large{max-width:64em}.o-container--xlarge{max-width:78em}.o-container--super{max-width:116em}.o-grid{display:-ms-flexbox;display:flex}.o-grid--wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid--top{-ms-flex-align:start;align-items:flex-start}.o-grid--center{-ms-flex-align:center;align-items:center}.o-grid--bottom{-ms-flex-align:end;align-items:flex-end}.o-grid--full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid--full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}.o-grid--no-gutter>.o-grid__cell{padding-right:.001em;padding-left:.001em}.o-grid__cell{-ms-flex:1;flex:1;padding-right:1em;padding-left:1em}.o-grid__cell--width-5{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5{margin-left:5%}.o-grid__cell--width-10{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10{margin-left:10%}.o-grid__cell--width-15{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15{margin-left:15%}.o-grid__cell--width-20{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20{margin-left:20%}.o-grid__cell--width-25{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25{margin-left:25%}.o-grid__cell--width-30{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30{margin-left:30%}.o-grid__cell--width-33{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33{margin-left:33.33333%}.o-grid__cell--width-35{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35{margin-left:35%}.o-grid__cell--width-40{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40{margin-left:40%}.o-grid__cell--width-45{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45{margin-left:45%}.o-grid__cell--width-50{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50{margin-left:50%}.o-grid__cell--width-55{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55{margin-left:55%}.o-grid__cell--width-60{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60{margin-left:60%}.o-grid__cell--width-65{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65{margin-left:65%}.o-grid__cell--width-66{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66{margin-left:66.66667%}.o-grid__cell--width-70{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70{margin-left:70%}.o-grid__cell--width-75{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75{margin-left:75%}.o-grid__cell--width-80{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80{margin-left:80%}.o-grid__cell--width-85{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85{margin-left:85%}.o-grid__cell--width-90{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90{margin-left:90%}.o-grid__cell--width-95{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95{margin-left:95%}.o-grid__cell--width-100{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100{margin-left:100%}.o-grid__cell--top{-ms-flex-item-align:start;align-self:flex-start}.o-grid__cell--center{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.o-grid__cell--bottom{-ms-flex-item-align:end;align-self:flex-end}.o-grid__cell--no-gutter{padding-right:.001em;padding-left:.001em}.o-grid__cell--width-fixed{-ms-flex:0 1 auto;flex:0 1 auto}.o-grid__cell--hidden{display:none}.o-grid__cell--visible{display:initial}@media (max-width:19.99em){.o-grid.o-grid--xsmall-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--xsmall-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--xsmall-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:20em) and (max-width:29.99em){.o-grid.o-grid--small-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--small-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--small-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:30em) and (max-width:47.99em){.o-grid.o-grid--medium-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--medium-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--medium-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:48em) and (max-width:63.99em){.o-grid.o-grid--large-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--large-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--large-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:64em) and (max-width:77.99em){.o-grid.o-grid--xlarge-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--xlarge-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--xlarge-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:64em){.o-grid.o-grid--super-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--super-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--super-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:20em){.o-grid__cell--width-5\@xsmall{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\@xsmall{margin-left:5%}.o-grid__cell--width-10\@xsmall{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\@xsmall{margin-left:10%}.o-grid__cell--width-15\@xsmall{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\@xsmall{margin-left:15%}.o-grid__cell--width-20\@xsmall{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\@xsmall{margin-left:20%}.o-grid__cell--width-25\@xsmall{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\@xsmall{margin-left:25%}.o-grid__cell--width-30\@xsmall{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\@xsmall{margin-left:30%}.o-grid__cell--width-33\@xsmall{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\@xsmall{margin-left:33.33333%}.o-grid__cell--width-35\@xsmall{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\@xsmall{margin-left:35%}.o-grid__cell--width-40\@xsmall{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\@xsmall{margin-left:40%}.o-grid__cell--width-45\@xsmall{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\@xsmall{margin-left:45%}.o-grid__cell--width-50\@xsmall{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\@xsmall{margin-left:50%}.o-grid__cell--width-55\@xsmall{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\@xsmall{margin-left:55%}.o-grid__cell--width-60\@xsmall{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\@xsmall{margin-left:60%}.o-grid__cell--width-65\@xsmall{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\@xsmall{margin-left:65%}.o-grid__cell--width-66\@xsmall{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\@xsmall{margin-left:66.66667%}.o-grid__cell--width-70\@xsmall{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\@xsmall{margin-left:70%}.o-grid__cell--width-75\@xsmall{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\@xsmall{margin-left:75%}.o-grid__cell--width-80\@xsmall{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\@xsmall{margin-left:80%}.o-grid__cell--width-85\@xsmall{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\@xsmall{margin-left:85%}.o-grid__cell--width-90\@xsmall{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\@xsmall{margin-left:90%}.o-grid__cell--width-95\@xsmall{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\@xsmall{margin-left:95%}.o-grid__cell--hidden\@xsmall{display:none}.o-grid__cell--visible\@xsmall{display:initial}.o-grid__cell--width-100\@xsmall{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\@xsmall{margin-left:100%}.o-grid__cell--width-fixed\@xsmall{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:30em){.o-grid__cell--width-5\@small{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\@small{margin-left:5%}.o-grid__cell--width-10\@small{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\@small{margin-left:10%}.o-grid__cell--width-15\@small{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\@small{margin-left:15%}.o-grid__cell--width-20\@small{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\@small{margin-left:20%}.o-grid__cell--width-25\@small{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\@small{margin-left:25%}.o-grid__cell--width-30\@small{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\@small{margin-left:30%}.o-grid__cell--width-33\@small{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\@small{margin-left:33.33333%}.o-grid__cell--width-35\@small{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\@small{margin-left:35%}.o-grid__cell--width-40\@small{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\@small{margin-left:40%}.o-grid__cell--width-45\@small{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\@small{margin-left:45%}.o-grid__cell--width-50\@small{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\@small{margin-left:50%}.o-grid__cell--width-55\@small{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\@small{margin-left:55%}.o-grid__cell--width-60\@small{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\@small{margin-left:60%}.o-grid__cell--width-65\@small{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\@small{margin-left:65%}.o-grid__cell--width-66\@small{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\@small{margin-left:66.66667%}.o-grid__cell--width-70\@small{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\@small{margin-left:70%}.o-grid__cell--width-75\@small{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\@small{margin-left:75%}.o-grid__cell--width-80\@small{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\@small{margin-left:80%}.o-grid__cell--width-85\@small{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\@small{margin-left:85%}.o-grid__cell--width-90\@small{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\@small{margin-left:90%}.o-grid__cell--width-95\@small{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\@small{margin-left:95%}.o-grid__cell--hidden\@small{display:none}.o-grid__cell--visible\@small{display:initial}.o-grid__cell--width-100\@small{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\@small{margin-left:100%}.o-grid__cell--width-fixed\@small{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:48em){.o-grid__cell--width-5\@medium{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\@medium{margin-left:5%}.o-grid__cell--width-10\@medium{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\@medium{margin-left:10%}.o-grid__cell--width-15\@medium{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\@medium{margin-left:15%}.o-grid__cell--width-20\@medium{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\@medium{margin-left:20%}.o-grid__cell--width-25\@medium{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\@medium{margin-left:25%}.o-grid__cell--width-30\@medium{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\@medium{margin-left:30%}.o-grid__cell--width-33\@medium{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\@medium{margin-left:33.33333%}.o-grid__cell--width-35\@medium{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\@medium{margin-left:35%}.o-grid__cell--width-40\@medium{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\@medium{margin-left:40%}.o-grid__cell--width-45\@medium{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\@medium{margin-left:45%}.o-grid__cell--width-50\@medium{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\@medium{margin-left:50%}.o-grid__cell--width-55\@medium{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\@medium{margin-left:55%}.o-grid__cell--width-60\@medium{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\@medium{margin-left:60%}.o-grid__cell--width-65\@medium{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\@medium{margin-left:65%}.o-grid__cell--width-66\@medium{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\@medium{margin-left:66.66667%}.o-grid__cell--width-70\@medium{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\@medium{margin-left:70%}.o-grid__cell--width-75\@medium{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\@medium{margin-left:75%}.o-grid__cell--width-80\@medium{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\@medium{margin-left:80%}.o-grid__cell--width-85\@medium{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\@medium{margin-left:85%}.o-grid__cell--width-90\@medium{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\@medium{margin-left:90%}.o-grid__cell--width-95\@medium{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\@medium{margin-left:95%}.o-grid__cell--hidden\@medium{display:none}.o-grid__cell--visible\@medium{display:initial}.o-grid__cell--width-100\@medium{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\@medium{margin-left:100%}.o-grid__cell--width-fixed\@medium{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:64em){.o-grid__cell--width-5\@large{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\@large{margin-left:5%}.o-grid__cell--width-10\@large{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\@large{margin-left:10%}.o-grid__cell--width-15\@large{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\@large{margin-left:15%}.o-grid__cell--width-20\@large{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\@large{margin-left:20%}.o-grid__cell--width-25\@large{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\@large{margin-left:25%}.o-grid__cell--width-30\@large{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\@large{margin-left:30%}.o-grid__cell--width-33\@large{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\@large{margin-left:33.33333%}.o-grid__cell--width-35\@large{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\@large{margin-left:35%}.o-grid__cell--width-40\@large{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\@large{margin-left:40%}.o-grid__cell--width-45\@large{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\@large{margin-left:45%}.o-grid__cell--width-50\@large{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\@large{margin-left:50%}.o-grid__cell--width-55\@large{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\@large{margin-left:55%}.o-grid__cell--width-60\@large{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\@large{margin-left:60%}.o-grid__cell--width-65\@large{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\@large{margin-left:65%}.o-grid__cell--width-66\@large{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\@large{margin-left:66.66667%}.o-grid__cell--width-70\@large{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\@large{margin-left:70%}.o-grid__cell--width-75\@large{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\@large{margin-left:75%}.o-grid__cell--width-80\@large{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\@large{margin-left:80%}.o-grid__cell--width-85\@large{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\@large{margin-left:85%}.o-grid__cell--width-90\@large{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\@large{margin-left:90%}.o-grid__cell--width-95\@large{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\@large{margin-left:95%}.o-grid__cell--hidden\@large{display:none}.o-grid__cell--visible\@large{display:initial}.o-grid__cell--width-100\@large{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\@large{margin-left:100%}.o-grid__cell--width-fixed\@large{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:78em){.o-grid__cell--width-5\@xlarge{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\@xlarge{margin-left:5%}.o-grid__cell--width-10\@xlarge{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\@xlarge{margin-left:10%}.o-grid__cell--width-15\@xlarge{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\@xlarge{margin-left:15%}.o-grid__cell--width-20\@xlarge{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\@xlarge{margin-left:20%}.o-grid__cell--width-25\@xlarge{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\@xlarge{margin-left:25%}.o-grid__cell--width-30\@xlarge{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\@xlarge{margin-left:30%}.o-grid__cell--width-33\@xlarge{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\@xlarge{margin-left:33.33333%}.o-grid__cell--width-35\@xlarge{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\@xlarge{margin-left:35%}.o-grid__cell--width-40\@xlarge{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\@xlarge{margin-left:40%}.o-grid__cell--width-45\@xlarge{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\@xlarge{margin-left:45%}.o-grid__cell--width-50\@xlarge{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\@xlarge{margin-left:50%}.o-grid__cell--width-55\@xlarge{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\@xlarge{margin-left:55%}.o-grid__cell--width-60\@xlarge{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\@xlarge{margin-left:60%}.o-grid__cell--width-65\@xlarge{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\@xlarge{margin-left:65%}.o-grid__cell--width-66\@xlarge{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\@xlarge{margin-left:66.66667%}.o-grid__cell--width-70\@xlarge{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\@xlarge{margin-left:70%}.o-grid__cell--width-75\@xlarge{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\@xlarge{margin-left:75%}.o-grid__cell--width-80\@xlarge{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\@xlarge{margin-left:80%}.o-grid__cell--width-85\@xlarge{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\@xlarge{margin-left:85%}.o-grid__cell--width-90\@xlarge{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\@xlarge{margin-left:90%}.o-grid__cell--width-95\@xlarge{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\@xlarge{margin-left:95%}.o-grid__cell--hidden\@xlarge{display:none}.o-grid__cell--visible\@xlarge{display:initial}.o-grid__cell--width-100\@xlarge{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\@xlarge{margin-left:100%}.o-grid__cell--width-fixed\@xlarge{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:116em){.o-grid__cell--width-5\@super{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\@super{margin-left:5%}.o-grid__cell--width-10\@super{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\@super{margin-left:10%}.o-grid__cell--width-15\@super{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\@super{margin-left:15%}.o-grid__cell--width-20\@super{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\@super{margin-left:20%}.o-grid__cell--width-25\@super{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\@super{margin-left:25%}.o-grid__cell--width-30\@super{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\@super{margin-left:30%}.o-grid__cell--width-33\@super{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\@super{margin-left:33.33333%}.o-grid__cell--width-35\@super{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\@super{margin-left:35%}.o-grid__cell--width-40\@super{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\@super{margin-left:40%}.o-grid__cell--width-45\@super{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\@super{margin-left:45%}.o-grid__cell--width-50\@super{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\@super{margin-left:50%}.o-grid__cell--width-55\@super{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\@super{margin-left:55%}.o-grid__cell--width-60\@super{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\@super{margin-left:60%}.o-grid__cell--width-65\@super{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\@super{margin-left:65%}.o-grid__cell--width-66\@super{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\@super{margin-left:66.66667%}.o-grid__cell--width-70\@super{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\@super{margin-left:70%}.o-grid__cell--width-75\@super{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\@super{margin-left:75%}.o-grid__cell--width-80\@super{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\@super{margin-left:80%}.o-grid__cell--width-85\@super{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\@super{margin-left:85%}.o-grid__cell--width-90\@super{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\@super{margin-left:90%}.o-grid__cell--width-95\@super{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\@super{margin-left:95%}.o-grid__cell--hidden\@super{display:none}.o-grid__cell--visible\@super{display:initial}.o-grid__cell--width-100\@super{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\@super{margin-left:100%}.o-grid__cell--width-fixed\@super{-ms-flex:0 1 auto;flex:0 1 auto}}.o-image{display:block;max-width:100%;height:auto}.o-panel-container{position:relative}.o-panel{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch}.o-panel--nav-top{top:3.55em}.o-panel--nav-bottom{bottom:3.55em}.c-card__body .o-panel{padding:.5em}.o-media{display:-ms-flexbox;display:flex}.o-media .c-heading{padding:0}.o-media__body,.o-media__image{-ms-flex:1;flex:1;padding-right:1em;padding-left:1em;padding-right:.001em;padding-left:.001em}.o-media__body--top,.o-media__image--top{-ms-flex-item-align:start;align-self:flex-start}.o-media__body--center,.o-media__image--center{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.o-media__body--bottom,.o-media__image--bottom{-ms-flex-item-align:end;align-self:flex-end}.o-media__image{-ms-flex:0 1 auto;flex:0 1 auto;width:3em}.o-media__body{margin-left:.5em}.o-fieldset,.o-fieldset.c-list{display:block;width:100%;margin:.5em 0;padding:0;border:0}.o-fieldset__legend{display:block;width:100%;padding:1em 0;cursor:pointer;padding:.25em 0}.o-form-element{position:relative;padding:1em 0}.o-form-element .c-label:first-child{padding:0 0 .5em}.o-modal{display:block;position:absolute;top:50%;left:50%;width:80%;transform:translate(-50%,-50%);border:0 solid #96a8b2;border-radius:4px;background-color:#fff;overflow:hidden;z-index:500}.o-modal .c-card{background-color:transparent;box-shadow:none}.o-modal .c-card__body{position:relative}.o-modal--ghost{background-color:transparent;color:#fff}.o-modal--ghost .c-heading{color:#fff}.o-modal--full{top:1em;left:1em;width:calc(100% - 2em);height:calc(100% - 2em);transform:none}.o-modal--full .c-card__body{position:absolute;top:2.5em;bottom:3.5em;width:100%;overflow-x:hidden;overflow-y:auto}.o-modal--full .c-card__footer{position:absolute;bottom:0;width:100%}.o-drawer{position:absolute;background-color:#fff;color:#111;z-index:500;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.o-drawer>.c-card{background-color:transparent;box-shadow:none}.o-drawer:not(.o-drawer--visible).u-high,.o-drawer:not(.o-drawer--visible).u-higher,.o-drawer:not(.o-drawer--visible).u-highest{box-shadow:none}.o-drawer--bottom,.o-drawer--top{left:0;width:80%;height:auto;margin-left:10%;transform:translate(0)}.o-drawer--bottom{top:100%;border-radius:4px 4px 0 0}.o-drawer--bottom.o-drawer--visible{transform:translateY(-99%)}.o-drawer--top{bottom:100%;border-radius:0 0 4px 4px}.o-drawer--top.o-drawer--visible{transform:translateY(99%)}.o-drawer--left,.o-drawer--right{top:0;width:260px;height:100%}.o-drawer--left .c-card__footer--block,.o-drawer--right .c-card__footer--block{position:absolute;bottom:0;width:100%}.o-drawer--left .c-card__footer--block .c-button,.o-drawer--right .c-card__footer--block .c-button{border-radius:0}.o-drawer--left{left:0;transform:translateX(-100%)}.o-drawer--left.o-drawer--visible{transform:translateX(-1%)}.o-drawer--right{left:100%;transform:translate(0)}.o-drawer--right.o-drawer--visible{transform:translateX(-99%)}.c-text{color:#111;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-weight:400;line-height:1.55}.c-text--mono{font-family:Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace}.c-text--highlight{margin:-.125em;padding:.25em .25em .125em;background-color:#ffeb3b;color:#111}.c-text--quiet{color:#96a8b2}.c-text--loud{font-weight:700}.c-text--help[title]{border-bottom:1px dashed #96a8b2;cursor:help}.c-pre{margin:0}.c-code{margin:-.125em;padding:.25em .25em .125em;background-color:#e5eaec;color:#111;display:inline;font-family:Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace;font-weight:400}.c-code--multiline{display:block;padding:.5em 1em;border-radius:4px;white-space:pre;word-wrap:normal;overflow-x:auto}.c-kbd{margin:-.125em;padding:.25em .25em .125em;background-color:#96a8b2;color:#fff;display:inline;font-family:Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace;font-weight:400;border-bottom:2px solid #7b929e;border-radius:4px}.c-blockquote{border-left:5px solid #96a8b2;display:block;margin:0;padding:1em 1.5em;font-family:Georgia,Cambria,Times New Roman,Times,serif}.c-blockquote--brand{border-left:5px solid #2c3e50}.c-blockquote--info{border-left:5px solid #2196f3}.c-blockquote--warning{border-left:5px solid #ff9800}.c-blockquote--success{border-left:5px solid #4caf50}.c-blockquote--error{border-left:5px solid #f44336}.c-blockquote__body{display:block;margin:0;padding:.5em 0;font-size:1.25em}.c-blockquote__footer{color:#96a8b2;font-style:italic}.c-blockquote__footer,.c-paragraph{display:block;margin:0;padding:.5em 0}.c-badge{border:1px solid #96a8b2;background-color:#96a8b2;color:#fff;display:inline-block;margin:0;padding:.25em .5em;border-radius:4px;font-size:.8em;font-weight:700;line-height:1.2}.c-badge.c-badge--ghost{border:1px solid #96a8b2;background-color:transparent;color:#96a8b2}.c-badge--rounded{border-radius:30em}.c-badge--brand{border:1px solid #2c3e50;background-color:#2c3e50;color:#fff}.c-badge--brand.c-badge--ghost{border:1px solid #2c3e50;background-color:transparent;color:#2c3e50}.c-badge--info{border:1px solid #2196f3;background-color:#2196f3;color:#fff}.c-badge--info.c-badge--ghost{border:1px solid #2196f3;background-color:transparent;color:#2196f3}.c-badge--warning{border:1px solid #ff9800;background-color:#ff9800;color:#fff}.c-badge--warning.c-badge--ghost{border:1px solid #ff9800;background-color:transparent;color:#ff9800}.c-badge--success{border:1px solid #4caf50;background-color:#4caf50;color:#fff}.c-badge--success.c-badge--ghost{border:1px solid #4caf50;background-color:transparent;color:#4caf50}.c-badge--error{border:1px solid #f44336;background-color:#f44336;color:#fff}.c-badge--error.c-badge--ghost{border:1px solid #f44336;background-color:transparent;color:#f44336}.c-heading,.c-heading__sub{margin:0;padding:1em 0 .5em;font-weight:400}.c-heading__sub{padding:0;font-size:.8em;opacity:.6}.c-address{display:block;margin:0;padding:.5em 0;font-style:normal}.c-address__heading{display:block;font-weight:700}.c-table{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0;padding:0;border:0;border-collapse:collapse;border-spacing:0}.c-table__caption{margin-left:0;padding:.5em 0;color:#96a8b2;font-size:.8em;text-align:left}.c-table__body,.c-table__caption,.c-table__head,.c-table__row{display:-ms-flexbox;display:flex;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.c-table__body,.c-table__head,.c-table__row{-ms-flex-wrap:wrap;flex-wrap:wrap}.c-table--striped :not(.c-table__row--heading).c-table__row:nth-of-type(odd){background-color:#e5eaec;color:initial}.c-table__cell{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:.5em;text-align:left;overflow:auto}.c-table__row--heading .c-table__cell{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;border-bottom:1px solid #b0bec5;background-color:#cad4d8;color:initial;font-size:1em;font-weight:700}.c-table--striped .c-table__row--heading .c-table__cell{background-color:#fff;color:initial}.c-table--clickable :not(.c-table__row--heading).c-table__row:hover .c-table__cell,.c-table__row--clickable:hover .c-table__cell{background-color:initial;color:#0c7fda;cursor:pointer}.c-table__row--disabled{background-color:initial;color:#96a8b2;cursor:default}.c-table--clickable :not(.c-table__row--heading).c-table__row--disabled:hover .c-table__cell,.c-table__row--disabled:hover .c-table__cell{background-color:initial;color:#96a8b2;cursor:not-allowed}.c-table--condensed{font-size:.8em}.c-table--condensed .c-table__cell{padding:.25em}.c-card{padding:0;list-style:none;display:block;width:100%;border-radius:4px;background-color:#fff;box-shadow:0 0 1px hsla(0,0%,7%,.6);overflow:hidden}.c-card>.o-image:not(:first-child){padding:1em 0 0}.c-card+.c-card{margin:.5em 0 0}.c-card__header{padding:1em 1em 0}.c-card__header .c-heading{padding:0}.c-card__item{padding:.5em}.c-card__body,.c-card__footer{padding:1em}.c-card__item+.c-card__footer--block{padding:0}.c-card__footer--block{padding:.5em 0 0}.c-card__footer--block .c-input-group .c-button{border-bottom:0}.c-card__footer--block .c-input-group .c-button:first-child{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.c-card__footer--block .c-input-group .c-button:last-child{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.c-card__item:not(:last-child){border-bottom:1px solid rgba(202,212,216,.5)}.c-card--accordion label.c-card__item{display:block;position:relative;width:100%;padding-left:2em;cursor:pointer}.c-card--accordion label.c-card__item:before{position:absolute;left:.75em;content:"+"}.c-card--accordion>input,.c-card--accordion>input+.c-card__item+.c-card__item{display:none}.c-card--accordion>input:checked+.c-card__item+.c-card__item{display:block}.c-card--accordion>input:checked+.c-card__item:before{transform:rotate(45deg)}.c-card--menu{display:block;width:100%;max-height:280px;margin:.5em 0 0;z-index:100;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.c-card--grouped .c-card__item:not(:last-child){border-bottom:0}.c-card__divider{height:1px;background-color:#96a8b2;overflow:hidden}.c-card__item--divider{background-color:#96a8b2;color:#fff;font-weight:700}.c-card__item--brand{background-color:#2c3e50;color:#fff}.c-card__item--info{background-color:#2196f3;color:#fff}.c-card__item--warning{background-color:#ff9800;color:#fff}.c-card__item--success{background-color:#4caf50;color:#fff}.c-card__item--error{background-color:#f44336;color:#fff}.c-card__item--disabled{cursor:not-allowed;opacity:.6}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover{background-color:#e5eaec;cursor:pointer}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--brand,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--brand{background-color:#3c556e}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--info,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--info{background-color:#4dabf5}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--warning,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--warning{background-color:#ffab2e}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--success,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--success{background-color:#6abe6e}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--error,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--error{background-color:#f66c62}.c-card--accordion>input:checked+.c-card__item,.c-card__item--active{background-color:rgba(202,212,216,.5);font-weight:700}.c-card--accordion>input:checked+.c-card__item.c-card__item--brand,.c-card__item--active.c-card__item--brand{background-color:#1c2732}.c-card--accordion>input:checked+.c-card__item.c-card__item--info,.c-card__item--active.c-card__item--info{background-color:#0c7fda}.c-card--accordion>input:checked+.c-card__item.c-card__item--warning,.c-card__item--active.c-card__item--warning{background-color:#d17d00}.c-card--accordion>input:checked+.c-card__item.c-card__item--success,.c-card__item--active.c-card__item--success{background-color:#3e8f41}.c-card--accordion>input:checked+.c-card__item.c-card__item--error,.c-card__item--active.c-card__item--error{background-color:#ef1d0d}.c-button{border:1px solid transparent;background-color:#96a8b2;color:#fff;display:inline-block;max-width:100%;margin:0;padding:.5em;border-radius:4px;outline:0;font-family:inherit;font-size:1em;line-height:normal;text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c-button.c-button--active{background-color:#7b929e}.c-button:not(:disabled):hover{background-color:#b0bec5}.c-button:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button:not(:disabled):active{background-color:#7b929e}.c-button:disabled{cursor:not-allowed;opacity:.5}.c-button--close{border:1px solid transparent;color:inherit;position:absolute;right:.5em;padding:0;outline:0;font-size:1.4em;font-weight:700;line-height:1}.c-button--close,.c-button--close.c-button--active{background-color:transparent}.c-button--close:not(:disabled):hover{background-color:hsla(0,0%,9%,0)}.c-button--close:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--close:not(:disabled):active{background-color:transparent}.c-button--block{display:inline-block;width:100%}.c-button--rounded{border-radius:30em}.c-button--brand{border:1px solid transparent;background-color:#2c3e50;color:#fff}.c-button--brand.c-button--active{background-color:#1c2732}.c-button--brand:not(:disabled):hover{background-color:#3c556e}.c-button--brand:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--brand:not(:disabled):active{background-color:#1c2732}.c-button--info{border:1px solid transparent;background-color:#2196f3;color:#fff}.c-button--info.c-button--active{background-color:#0c7fda}.c-button--info:not(:disabled):hover{background-color:#4dabf5}.c-button--info:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--info:not(:disabled):active{background-color:#0c7fda}.c-button--warning{border:1px solid transparent;background-color:#ff9800;color:#fff}.c-button--warning.c-button--active{background-color:#d17d00}.c-button--warning:not(:disabled):hover{background-color:#ffab2e}.c-button--warning:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--warning:not(:disabled):active{background-color:#d17d00}.c-button--success{border:1px solid transparent;background-color:#4caf50;color:#fff}.c-button--success.c-button--active{background-color:#3e8f41}.c-button--success:not(:disabled):hover{background-color:#6abe6e}.c-button--success:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--success:not(:disabled):active{background-color:#3e8f41}.c-button--error{border:1px solid transparent;background-color:#f44336;color:#fff}.c-button--error.c-button--active{background-color:#ef1d0d}.c-button--error:not(:disabled):hover{background-color:#f66c62}.c-button--error:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--error:not(:disabled):active{background-color:#ef1d0d}.c-button--ghost{border:1px solid #96a8b2;background-color:transparent;color:#96a8b2}.c-button--ghost.c-button--active{border-color:#7b929e;background-color:#7b929e;color:#fff}.c-button--ghost:not(:disabled):hover{background-color:#96a8b2;color:#fff}.c-button--ghost:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost:not(:disabled):active{border-color:#7b929e;background-color:#7b929e;color:#fff}.c-button--ghost-brand{border:1px solid #2c3e50;background-color:transparent;color:#2c3e50}.c-button--ghost-brand.c-button--active{border-color:#1c2732;background-color:#1c2732;color:#fff}.c-button--ghost-brand:not(:disabled):hover{background-color:#2c3e50;color:#fff}.c-button--ghost-brand:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-brand:not(:disabled):active{border-color:#1c2732;background-color:#1c2732;color:#fff}.c-button--ghost-info{border:1px solid #2196f3;background-color:transparent;color:#2196f3}.c-button--ghost-info.c-button--active{border-color:#0c7fda;background-color:#0c7fda;color:#fff}.c-button--ghost-info:not(:disabled):hover{background-color:#2196f3;color:#fff}.c-button--ghost-info:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-info:not(:disabled):active{border-color:#0c7fda;background-color:#0c7fda;color:#fff}.c-button--ghost-warning{border:1px solid #ff9800;background-color:transparent;color:#ff9800}.c-button--ghost-warning.c-button--active{border-color:#d17d00;background-color:#d17d00;color:#fff}.c-button--ghost-warning:not(:disabled):hover{background-color:#ff9800;color:#fff}.c-button--ghost-warning:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-warning:not(:disabled):active{border-color:#d17d00;background-color:#d17d00;color:#fff}.c-button--ghost-success{border:1px solid #4caf50;background-color:transparent;color:#4caf50}.c-button--ghost-success.c-button--active{border-color:#3e8f41;background-color:#3e8f41;color:#fff}.c-button--ghost-success:not(:disabled):hover{background-color:#4caf50;color:#fff}.c-button--ghost-success:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-success:not(:disabled):active{border-color:#3e8f41;background-color:#3e8f41;color:#fff}.c-button--ghost-error{border:1px solid #f44336;background-color:transparent;color:#f44336}.c-button--ghost-error.c-button--active{border-color:#ef1d0d;background-color:#ef1d0d;color:#fff}.c-button--ghost-error:not(:disabled):hover{background-color:#f44336;color:#fff}.c-button--ghost-error:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-error:not(:disabled):active{border-color:#ef1d0d;background-color:#ef1d0d;color:#fff}.c-button__icon-left{padding-right:.5em}.c-button__icon-right{padding-left:.5em}.c-link{background-color:transparent;color:#0c7fda;text-decoration:none;cursor:pointer}.c-link:not(:disabled):visited{color:#0966af}.c-link:not(:disabled):active,.c-link:not(:disabled):hover{background-color:transparent;color:#2196f3}.c-link:hover{text-decoration:underline}.c-link--brand{background-color:transparent;color:#2c3e50}.c-link--brand:not(:disabled):visited{color:#1c2732}.c-link--brand:not(:disabled):active,.c-link--brand:not(:disabled):hover{background-color:transparent;color:#3c556e}.c-link--info{background-color:transparent;color:#2196f3}.c-link--info:not(:disabled):visited{color:#0c7fda}.c-link--info:not(:disabled):active,.c-link--info:not(:disabled):hover{background-color:transparent;color:#4dabf5}.c-link--warning{background-color:transparent;color:#ff9800}.c-link--warning:not(:disabled):visited{color:#d17d00}.c-link--warning:not(:disabled):active,.c-link--warning:not(:disabled):hover{background-color:transparent;color:#ffab2e}.c-link--success{background-color:transparent;color:#4caf50}.c-link--success:not(:disabled):visited{color:#3e8f41}.c-link--success:not(:disabled):active,.c-link--success:not(:disabled):hover{background-color:transparent;color:#6abe6e}.c-link--error{background-color:transparent;color:#f44336}.c-link--error:not(:disabled):visited{color:#ef1d0d}.c-link--error:not(:disabled):active,.c-link--error:not(:disabled):hover{background-color:transparent;color:#f66c62}.c-list{display:block;margin:0;list-style-position:outside}.c-list,.c-list .c-list{padding:0 0 0 1em}.c-list__item{padding:0}.c-list__item--unstyled{list-style:none}.c-list--ordered,.c-list--unstyled{padding:0;list-style:none}.c-list--ordered{counter-reset:a}.c-list--ordered .c-list__item:before{padding:0 .5em 0 0;content:counters(a,".") " ";counter-increment:a}.c-list--inline,.c-list--inline .c-list--inline{padding:0}.c-list--inline .c-list__item{display:inline-block;width:auto;padding-right:1em}.c-list--inline:not(.c-list--unstyled) .c-list__item:before{padding:0 .5em 0 0;content:"\2022"}.c-breadcrumbs{display:block;margin:0;padding:0;list-style:none}.c-breadcrumbs__crumb{display:inline-block;width:auto;padding:0}.c-breadcrumbs__crumb:not(:last-child):after{padding:0 .5em;color:#96a8b2;content:"/"}.c-tree{display:block;margin:0;padding:0;list-style:none}.c-tree .c-tree{padding:0 0 0 1em}.c-tree__item{padding:0}.c-tree__item:before{display:inline-block;padding:0 .5em 0 0;transform-origin:30% 50%;color:#cad4d8;content:"\2013"}.c-tree__item--expandable:before{color:#b0bec5;content:"\276F"}.c-tree__item--expandable .c-tree{display:none}.c-tree__item--expanded:before{transform:rotate(90deg);color:#7b929e;content:"\276F"}.c-tabs,.c-tree__item--expanded .c-tree{display:block}.c-tabs__headings{display:-ms-flexbox;display:flex;text-align:center;cursor:pointer}.c-tab-heading{-ms-flex:1;flex:1;margin:0;padding:1em;box-shadow:inset 0 -.2em 0 0 #e5eaec}.c-tabs__nav{overflow:hidden}.c-tabs__nav .c-tabs__headings{margin-bottom:-1em;padding-bottom:1em;overflow-y:hidden;overflow-x:auto}.c-tabs__nav .c-tab-heading{white-space:nowrap}.c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #96a8b2}.c-tabs--brand .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #2c3e50}.c-tabs--info .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #2196f3}.c-tabs--warning .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #ff9800}.c-tabs--success .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #4caf50}.c-tabs--error .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #f44336}.c-tab-heading--disabled{background-color:initial;color:#96a8b2;cursor:not-allowed}.c-tabs__tab{display:none;padding:1em}.c-tabs__tab--active{display:block}.o-field{position:relative}.o-field .c-field:disabled~.c-icon{color:#96a8b2}.o-field .c-icon{position:absolute;top:50%;transform:translateY(-50%)}.o-field--icon-right .c-field+.c-icon{right:.5em}.o-field--icon-right .c-field{padding-right:2em}.o-field--icon-left .c-icon:first-child{left:.5em}.o-field--icon-left .c-field{padding-left:2em}.c-fieldset,.c-fieldset.c-list{display:block;width:100%;margin:.5em 0;padding:0;border:0}.c-fieldset__legend{padding:1em 0;padding:.25em 0}.c-fieldset__legend,.c-label{display:block;width:100%;cursor:pointer}.c-label{padding:1em 0}.c-field{display:block;width:100%;margin:0;padding:.5em;border:1px solid #96a8b2;border-radius:4px;outline:0;background-color:#fff;font-family:inherit;font-size:1em;font-weight:400;resize:vertical;-webkit-appearance:none;-moz-appearance:none;appearance:none}.c-field:focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}select.c-field{cursor:pointer}select.c-field::-ms-expand{display:none}select.c-field:not([multiple]){padding-right:1em;background-image:url("data:image/png;base64,R0lGODlhDwAUAIABAAAAAP///yH5BAEAAAEALAAAAAAPABQAAAIXjI+py+0Po5wH2HsXzmw//lHiSJZmUAAAOw==");background-repeat:no-repeat;background-position:99% 50%}.c-field input{margin-right:.125em;outline:0;font-size:1em}.c-field--label{margin:.5em 0 0}.c-field--error{border-color:#f44336;color:#f44336}.c-field--success{border-color:#4caf50;color:inherit}.c-field--choice{border:0;border-radius:0;background-color:transparent}.c-field--disabled,.c-field:disabled,.c-fieldset--disabled .c-field,.c-fieldset:disabled .c-field{color:#96a8b2;cursor:not-allowed;border-color:#96a8b2;background-color:#e5eaec}.c-field--disabled.c-field--choice,.c-field:disabled.c-field--choice,.c-fieldset--disabled .c-field.c-field--choice,.c-fieldset:disabled .c-field.c-field--choice{background-color:transparent}.c-field input:disabled{color:#96a8b2;cursor:not-allowed}.c-input-group{display:-ms-flexbox;display:flex}.c-input-group .c-button{border-radius:0}.c-input-group .c-button:not(:first-child){border-left-width:0}.c-input-group .c-button:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.c-input-group .c-button:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.c-input-group .o-field{-ms-flex:1;flex:1}.c-input-group .o-field .c-field{border-radius:0}.c-input-group .o-field:not(:first-child) .c-field{border-left-width:0}.c-input-group .o-field:first-child .c-field{border-top-left-radius:4px;border-bottom-left-radius:4px}.c-input-group .o-field:last-child .c-field{border-top-right-radius:4px;border-bottom-right-radius:4px}.c-input-group .o-field--fixed{-ms-flex:0 1 auto;flex:0 1 auto}.c-input-group--rounded .c-button:first-child{border-top-left-radius:30em;border-bottom-left-radius:30em}.c-input-group--rounded .c-button:last-child{border-top-right-radius:30em;border-bottom-right-radius:30em}.c-input-group--rounded .o-field:first-child .c-field{border-top-left-radius:30em;border-bottom-left-radius:30em}.c-input-group--rounded .o-field:last-child .c-field{border-top-right-radius:30em;border-bottom-right-radius:30em}.c-input-group--rounded-left .c-button:first-child,.c-input-group--rounded-left .o-field:first-child .c-field{border-top-left-radius:30em;border-bottom-left-radius:30em}.c-input-group--rounded-right .c-button:last-child,.c-input-group--rounded-right .o-field:last-child .c-field{border-top-right-radius:30em;border-bottom-right-radius:30em}.c-input-group--stacked{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.c-input-group--stacked .c-button:not(:first-child),.c-input-group--stacked .o-field:not(:first-child) .c-field{border-left-width:1px}.c-input-group--stacked .c-button,.c-input-group--stacked .o-field{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}.c-input-group--stacked .c-button:not(:first-child){border-top:0}.c-input-group--stacked .c-button:not(:first-child):not(:last-child){border-radius:0}.c-input-group--stacked .c-button:first-child{border-radius:4px 4px 0 0}.c-input-group--stacked .c-button:last-child{border-radius:0 0 4px 4px}.c-input-group--stacked .o-field:not(:first-child) .c-field{border-top:0}.c-input-group--stacked .o-field:not(:first-child):not(:last-child) .c-field{border-radius:0}.c-input-group--stacked .o-field:first-child .c-field{border-radius:4px 4px 0 0}.c-input-group--stacked .o-field:last-child .c-field{border-radius:0 0 4px 4px}.c-hint{position:absolute;padding:0 .5em;transform:scale(.8);transform-origin:top left;color:#7b929e;font-size:1em;opacity:0;pointer-events:none}.c-field:focus~.c-hint,.c-hint--static,.c-label__field:focus~.c-hint{transform:scale(.9);opacity:1}.c-hint--success{color:#4caf50}.c-hint--error{color:#f44336}.c-toggle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c-toggle input:not(:checked)+.c-toggle__track{background-color:#e5eaec}.c-toggle input:not(:checked)+.c-toggle__track .c-toggle__handle{transform:translateZ(0)}.c-toggle input:disabled+.c-toggle__track,.c-toggle input:disabled+.c-toggle__track .c-toggle__handle{background-color:#e5eaec;cursor:not-allowed}.c-toggle--brand .c-toggle__track{background-color:#2c3e50}.c-toggle--info .c-toggle__track{background-color:#2196f3}.c-toggle--warning .c-toggle__track{background-color:#ff9800}.c-toggle--success .c-toggle__track{background-color:#4caf50}.c-toggle--error .c-toggle__track{background-color:#f44336}.c-toggle input{display:none}.c-toggle__track{-ms-flex:1;flex:1;padding-right:1em;padding-left:1em;-ms-flex:0 1 auto;flex:0 1 auto;background-color:#96a8b2;position:relative;width:1em;height:.5em;margin:0 .5em;border-radius:30em}.c-toggle__handle{position:absolute;top:-.25em;left:0;width:1em;height:1em;transform:translateX(100%);border-radius:30em;background-color:#fff;box-shadow:0 1px 4px -1px #111}.c-tags{position:relative;width:100%;text-align:left}.c-tags .c-card--menu{position:absolute;width:100%}.c-tags__container{padding-right:.25em}.c-tag,.c-tags__container{display:inline-block;max-width:70%}.c-tag{position:relative;margin:.125em;padding:.5em 1.5em .5em .5em}.c-tag__close{position:absolute;top:7px;right:5px;color:#e5eaec;font-weight:700}.c-tags__field-container{display:inline-block;position:absolute;width:30%;margin:.125em;cursor:pointer}.c-range{width:100%;padding:.5em 0;outline:0;-webkit-appearance:none}.c-range:not(:disabled)::-webkit-slider-runnable-track{background-color:#96a8b2}.c-range:not(:disabled)::-moz-range-track{background-color:#96a8b2}.c-range:not(:disabled)::-ms-track{background-color:#96a8b2}.c-range--brand:not(:disabled)::-webkit-slider-runnable-track{background-color:#2c3e50}.c-range--brand:not(:disabled)::-moz-range-track{background-color:#2c3e50}.c-range--brand:not(:disabled)::-ms-track{background-color:#2c3e50}.c-range--info:not(:disabled)::-webkit-slider-runnable-track{background-color:#2196f3}.c-range--info:not(:disabled)::-moz-range-track{background-color:#2196f3}.c-range--info:not(:disabled)::-ms-track{background-color:#2196f3}.c-range--warning:not(:disabled)::-webkit-slider-runnable-track{background-color:#ff9800}.c-range--warning:not(:disabled)::-moz-range-track{background-color:#ff9800}.c-range--warning:not(:disabled)::-ms-track{background-color:#ff9800}.c-range--success:not(:disabled)::-webkit-slider-runnable-track{background-color:#4caf50}.c-range--success:not(:disabled)::-moz-range-track{background-color:#4caf50}.c-range--success:not(:disabled)::-ms-track{background-color:#4caf50}.c-range--error:not(:disabled)::-webkit-slider-runnable-track{background-color:#f44336}.c-range--error:not(:disabled)::-moz-range-track{background-color:#f44336}.c-range--error:not(:disabled)::-ms-track{background-color:#f44336}.c-range::-webkit-slider-runnable-track{width:100%;height:10px;border:0;border-radius:30em;box-shadow:none;cursor:pointer}.c-range::-webkit-slider-thumb{width:20px;height:20px;margin:-5px 0 0;border:0;border-radius:30em;background-color:#fff;box-shadow:0 1px 4px -1px #111;cursor:pointer;-webkit-appearance:none}.c-range::-moz-range-track{width:100%;height:10px;border:0;border-radius:30em;box-shadow:none;cursor:pointer}.c-range::-moz-range-thumb{width:20px;height:20px;margin:-5px 0 0;border:0;border-radius:30em;background-color:#fff;box-shadow:0 1px 4px -1px #111;cursor:pointer}.c-range::-ms-track{width:100%;height:10px;border:0;border-radius:30em;box-shadow:none;cursor:pointer;border-color:transparent;background-color:transparent;color:transparent}.c-range::-ms-fill-lower,.c-range::-ms-fill-upper{border:0;border-radius:30em;background-color:#96a8b2;box-shadow:none}.c-range::-ms-thumb{width:20px;height:20px;margin:-5px 0 0;border:0;border-radius:30em;background-color:#fff;box-shadow:0 1px 4px -1px #111;cursor:pointer}.c-range:not(:disabled):active::-webkit-slider-thumb{transform:scale(1.4)}.c-range:not(:disabled):active::-moz-range-thumb{transform:scale(1.4)}.c-range:not(:disabled):active::-ms-thumb{transform:scale(1.4)}.c-range:focus::-webkit-slider-thumb{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-range:focus::-moz-range-thumb{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-range:focus::-ms-thumb{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-range:disabled::-webkit-slider-runnable-track,.c-range:disabled::-webkit-slider-thumb{background-color:#e5eaec;cursor:not-allowed}.c-range:disabled::-moz-range-thumb,.c-range:disabled::-moz-range-track{background-color:#e5eaec;cursor:not-allowed}.c-range:disabled::-ms-thumb,.c-range:disabled::-ms-track{background-color:#e5eaec;cursor:not-allowed}.c-pagination{display:block;width:100%;padding:1em;font-size:.8em;text-align:center}.c-pagination__controls{display:inline-block;text-align:center}.c-pagination__controls--backward{float:left;text-align:left}.c-pagination__controls--forward{float:right;text-align:right}.c-pagination__control,.c-pagination__page{border:1px solid transparent;background-color:#96a8b2;color:#fff;display:inline-block;max-width:100%;margin:0;padding:.5em;border-radius:4px;outline:0;font-family:inherit;font-size:1em;line-height:normal;text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid #2c3e50;background-color:transparent;color:#2c3e50;min-width:2.4em;border-radius:30em}.c-pagination__control.c-button--active,.c-pagination__page.c-button--active{background-color:#7b929e}.c-pagination__control:not(:disabled):hover,.c-pagination__page:not(:disabled):hover{background-color:#b0bec5}.c-pagination__control:not(:disabled):active,.c-pagination__page:not(:disabled):active{background-color:#7b929e}.c-pagination__control:disabled,.c-pagination__page:disabled{cursor:not-allowed;opacity:.5}.c-pagination__control.c-button--active,.c-pagination__page.c-button--active{border-color:#1c2732;background-color:#1c2732;color:#fff}.c-pagination__control:not(:disabled):hover,.c-pagination__page:not(:disabled):hover{background-color:#2c3e50;color:#fff}.c-pagination__control:not(:disabled):focus,.c-pagination__page:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-pagination__control:not(:disabled):active,.c-pagination__page:not(:disabled):active{border-color:#1c2732;background-color:#1c2732;color:#fff}.c-pagination__page--current{background-color:#2c3e50;color:#fff}.c-pagination__ellipsis{padding:0 1em}.c-overlay{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:hsla(0,0%,7%,.4);opacity:0;visibility:hidden;z-index:400}.c-overlay--visible{opacity:1;visibility:visible}.c-overlay--fullpage{position:fixed}.c-overlay--transparent{background-color:transparent}.c-overlay--dismissable{cursor:pointer}.c-bubble{display:inline-block;position:relative;padding:1em;border-radius:4px;background-color:#111;color:#fff;text-align:center;white-space:nowrap}.c-bubble:after{display:block;position:absolute;width:0;height:0;border:10px solid transparent;content:""}.c-bubble--top:after{bottom:-20px;left:50%;transform:translateX(-50%);border-top-color:#111}.c-bubble--right:after{top:50%;left:-20px;transform:translateY(-50%);border-right-color:#111}.c-bubble--bottom:after{top:-20px;left:50%;transform:translateX(-50%);border-bottom-color:#111}.c-bubble--left:after{top:50%;right:-20px;transform:translateY(-50%);border-left-color:#111}.c-tooltip{position:relative;overflow:visible}.c-tooltip:after,.c-tooltip:before{visibility:hidden;z-index:300}.c-tooltip:before{position:absolute;border:.6em solid transparent;content:""}.c-tooltip:after{position:absolute;padding:.25em .5em;border:1px solid #111;border-radius:4px;background-color:#111;color:#fff;line-height:1.45;white-space:nowrap;content:attr(aria-label);visibility:hidden}.c-tooltip:hover:after,.c-tooltip:hover:before{visibility:visible}.c-tooltip--top:before{top:0;left:50%;transform:translate(-50%,-1em);border-top-color:#111}.c-tooltip--top:after{top:0;left:50%;transform:translate(-50%,-3em)}.c-tooltip--right:before{top:50%;left:100%;transform:translateY(-50%);border-right-color:#111}.c-tooltip--right:after{top:50%;left:100%;transform:translate(1em,-50%)}.c-tooltip--bottom:before{bottom:0;left:50%;transform:translate(-50%,1em);border-bottom-color:#111}.c-tooltip--bottom:after{bottom:0;left:50%;transform:translate(-50%,3em)}.c-tooltip--left:before{top:50%;right:100%;transform:translateY(-50%);border-left-color:#111}.c-tooltip--left:after{top:50%;right:100%;transform:translate(-1em,-50%)}.c-alerts{display:block;position:absolute;width:250px;max-height:100%;background-color:transparent;z-index:300;overflow-y:auto}.c-alerts--topleft{top:1em;left:1em}.c-alerts--topright{top:1em;right:1em}.c-alerts--bottomleft{bottom:0;left:1em}.c-alerts--bottomright{right:1em;bottom:0}.c-alert{background-color:#96a8b2;color:#fff;position:relative;margin:0 0 1em;padding:1em 3em 1em 1em;border-radius:4px}.c-alert--brand{background-color:#2c3e50;color:#fff}.c-alert--info{background-color:#2196f3;color:#fff}.c-alert--warning{background-color:#ff9800;color:#fff}.c-alert--success{background-color:#4caf50;color:#fff}.c-alert--error{background-color:#f44336;color:#fff}.c-calendar{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;padding-right:.001em;padding-left:.001em;max-width:400px;padding:.25em;border:1px solid #96a8b2;border-radius:4px;background-color:#fff;text-align:center;z-index:200}.c-calendar__control,.c-calendar__date{background-color:#fff;color:#96a8b2;display:inline;-ms-flex:0 0 14.28%;flex:0 0 14.28%;max-width:14.28%;margin:0;padding:1em .5em;border:1px solid transparent;border-radius:4px;outline:0;font-size:1em;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c-calendar__control.c-button--active,.c-calendar__date.c-button--active{background-color:#e8e8e8}.c-calendar__control:not(:disabled):hover,.c-calendar__date:not(:disabled):hover{background-color:#fff}.c-calendar__control:not(:disabled):focus,.c-calendar__date:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-calendar__control:not(:disabled):active,.c-calendar__date:not(:disabled):active{background-color:#e8e8e8}.c-calendar__header{-ms-flex:1;flex:1;-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.c-calendar__day,.c-calendar__header{padding-right:1em;padding-left:1em;padding-right:.001em;padding-left:.001em;padding:.5em 0}.c-calendar__day{-ms-flex:1;flex:1;-ms-flex:0 0 14.28%;flex:0 0 14.28%;max-width:14.28%;font-weight:700}.c-calendar__date:hover{border:1px solid #96a8b2}.c-calendar__date--in-month{color:#111}.c-calendar__date--today{border-color:#cad4d8}.c-calendar__date--selected,.c-calendar__date--selected:hover{border:1px solid transparent;background-color:#2c3e50;color:#fff;border-color:#2c3e50}.c-calendar__date--selected.c-button--active,.c-calendar__date--selected:hover.c-button--active{background-color:#1c2732}.c-calendar__date--selected:hover:not(:disabled):hover,.c-calendar__date--selected:not(:disabled):hover{background-color:#3c556e}.c-calendar__date--selected:hover:not(:disabled):focus,.c-calendar__date--selected:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-calendar__date--selected:hover:not(:disabled):active,.c-calendar__date--selected:not(:disabled):active{background-color:#1c2732}.c-nav{background-color:#111;color:#fff;width:100%;margin:0;padding:0;z-index:300}.c-nav__content,.c-nav__item{display:block;height:3.5em;padding:0 1em;color:inherit;line-height:3.5em;vertical-align:middle}.c-nav__content .o-image,.c-nav__item .o-image{height:100%}.c-nav__item{text-decoration:none;cursor:pointer}.c-nav__item:not(:disabled):hover{background-color:#7b929e;color:#fff}.c-nav__item:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item:not(:disabled):active{background-color:#647c88;color:#fff}.c-nav--inline .c-nav__content,.c-nav--inline .c-nav__item{display:inline-block}.c-nav--inline .c-nav__content--right,.c-nav--inline .c-nav__item--right{float:right}.c-nav--light{background-color:#f2f2ea;color:#3f2d26}.c-nav--top{top:0;bottom:auto}.c-nav--bottom,.c-nav--top{position:absolute;right:0;left:0}.c-nav--bottom{top:auto;bottom:0}.c-nav--left{right:auto;left:0}.c-nav--left,.c-nav--right{position:absolute;top:0;bottom:0}.c-nav--right{right:0;left:auto}.c-nav--fixed{position:fixed}.c-nav__item--active{background-color:#7b929e;color:#fff}.c-nav__item--brand:not(:disabled):hover{background-color:#2c3e50;color:#fff}.c-nav__item--brand:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--brand:not(:disabled):active{background-color:#1c2732;color:#fff}.c-nav__item--brand.c-nav__item--active{background-color:#2c3e50;color:#fff}.c-nav__item--info:not(:disabled):hover{background-color:#2196f3;color:#fff}.c-nav__item--info:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--info:not(:disabled):active{background-color:#0c7fda;color:#fff}.c-nav__item--info.c-nav__item--active{background-color:#2196f3;color:#fff}.c-nav__item--warning:not(:disabled):hover{background-color:#ff9800;color:#fff}.c-nav__item--warning:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--warning:not(:disabled):active{background-color:#d17d00;color:#fff}.c-nav__item--warning.c-nav__item--active{background-color:#ff9800;color:#fff}.c-nav__item--success:not(:disabled):hover{background-color:#4caf50;color:#fff}.c-nav__item--success:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--success:not(:disabled):active{background-color:#3e8f41;color:#fff}.c-nav__item--success.c-nav__item--active{background-color:#4caf50;color:#fff}.c-nav__item--error:not(:disabled):hover{background-color:#f44336;color:#fff}.c-nav__item--error:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--error:not(:disabled):active{background-color:#ef1d0d;color:#fff}.c-nav__item--error.c-nav__item--active{background-color:#f44336;color:#fff}.c-progress{display:block;border:0;border-radius:4px;background-color:#e5eaec;color:#fff;text-align:center;overflow:hidden}.c-progress--rounded{border-radius:30em}.c-progress__bar{display:block;height:100%;float:left;border-radius:0;background-color:#96a8b2;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.c-progress__bar:after{color:transparent!important;content:"-"}.c-progress__bar--brand{background-color:#2c3e50}.c-progress__bar--info{background-color:#2196f3}.c-progress__bar--warning{background-color:#ff9800}.c-progress__bar--success{background-color:#4caf50}.c-progress__bar--error{background-color:#f44336}.c-avatar{display:inline-block;position:relative;width:3em;height:3em;margin:0;border-radius:30em;background-color:#2c3e50;color:#fff}.c-avatar[data-text]:after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:attr(data-text)}.c-avatar__img{display:block;width:100%;height:100%;border-radius:30em;overflow:hidden}.c-avatar__img+.c-avatar__img{position:absolute;right:0;bottom:0;width:50%;height:50%}.u-centered{text-align:center}.u-justified{text-align:justify}.u-left{text-align:left}.u-right{text-align:right}.u-center-block{position:relative}.u-absolute-center,.u-center-block__content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.u-center-block__content--vertical{left:auto;transform:translateY(-50%)}.u-center-block__content--horizontal{top:auto;transform:translateX(-50%)}.u-no-overflow{overflow:hidden}.u-letter-box--super{padding-top:3em;padding-bottom:3em}.u-letter-box--xlarge{padding-top:2em;padding-bottom:2em}.u-letter-box--large{padding-top:1.5em;padding-bottom:1.5em}.u-letter-box--medium{padding-top:1em;padding-bottom:1em}.u-letter-box--small{padding-top:.5em;padding-bottom:.5em}.u-letter-box--xsmall{padding-top:.25em;padding-bottom:.25em}.u-letter-box--tiny{padding-top:.125em;padding-bottom:.125em}.u-letter-box--none{padding-top:0;padding-bottom:0}.u-pillar-box--super{padding-right:3em;padding-left:3em}.u-pillar-box--xlarge{padding-right:2em;padding-left:2em}.u-pillar-box--large{padding-right:1.5em;padding-left:1.5em}.u-pillar-box--medium{padding-right:1em;padding-left:1em}.u-pillar-box--small{padding-right:.5em;padding-left:.5em}.u-pillar-box--xsmall{padding-right:.25em;padding-left:.25em}.u-pillar-box--tiny{padding-right:.125em;padding-left:.125em}.u-pillar-box--none{padding-right:0;padding-left:0}.u-window-box--super{padding:3em}.u-window-box--xlarge{padding:2em}.u-window-box--large{padding:1.5em}.u-window-box--medium{padding:1em}.u-window-box--small{padding:.5em}.u-window-box--xsmall{padding:.25em}.u-window-box--tiny{padding:.125em}.u-window-box--none{padding:0}.u-high,.u-higher,.u-highest{border:0}.u-high{box-shadow:0 0 1px hsla(0,0%,7%,.6),0 5px 10px -3px hsla(0,0%,7%,.4)}.u-higher{box-shadow:0 0 1px hsla(0,0%,7%,.6),0 10px 25px -4px hsla(0,0%,7%,.4)}.u-highest{box-shadow:0 0 1px hsla(0,0%,7%,.6),0 20px 55px -8px hsla(0,0%,7%,.4)}.u-super{font-size:2em}.u-xlarge{font-size:1.5em}.u-large{font-size:1.25em}.u-medium{font-size:1em}.u-small{font-size:.8em}.u-xsmall{font-size:.67em}.u-visible{visibility:visible}.u-invisible{visibility:hidden}.u-display-none{display:none}.u-display-initial{display:initial}.u-display-inline{display:inline}.u-display-inline-block{display:inline-block}.u-display-block{display:block}.u-display-table{display:table}.u-display-table-cell{display:table-cell}.u-display-flex{display:-ms-flexbox;display:flex}.u-display-inline-flex{display:-ms-inline-flexbox;display:inline-flex} +/*!v3.6.2*/.u-color-black{color:#111}.u-bg-black{background-color:#111}.u-fill-black{fill:#111}.u-stroke-black{stroke:#111}.u-color-grey{color:#b0bec5}.u-bg-grey{background-color:#b0bec5}.u-fill-grey{fill:#b0bec5}.u-stroke-grey{stroke:#b0bec5}.u-color-white{color:#fff}.u-bg-white{background-color:#fff}.u-fill-white{fill:#fff}.u-stroke-white{stroke:#fff}.u-color-beige{color:#f2f2ea}.u-bg-beige{background-color:#f2f2ea}.u-fill-beige{fill:#f2f2ea}.u-stroke-beige{stroke:#f2f2ea}.u-color-red{color:#f44336}.u-bg-red{background-color:#f44336}.u-fill-red{fill:#f44336}.u-stroke-red{stroke:#f44336}.u-color-pink{color:#e91e63}.u-bg-pink{background-color:#e91e63}.u-fill-pink{fill:#e91e63}.u-stroke-pink{stroke:#e91e63}.u-color-purple{color:#9c27b0}.u-bg-purple{background-color:#9c27b0}.u-fill-purple{fill:#9c27b0}.u-stroke-purple{stroke:#9c27b0}.u-color-blue{color:#2196f3}.u-bg-blue{background-color:#2196f3}.u-fill-blue{fill:#2196f3}.u-stroke-blue{stroke:#2196f3}.u-color-green{color:#4caf50}.u-bg-green{background-color:#4caf50}.u-fill-green{fill:#4caf50}.u-stroke-green{stroke:#4caf50}.u-color-cyan{color:#00bcd4}.u-bg-cyan{background-color:#00bcd4}.u-fill-cyan{fill:#00bcd4}.u-stroke-cyan{stroke:#00bcd4}.u-color-yellow{color:#ffeb3b}.u-bg-yellow{background-color:#ffeb3b}.u-fill-yellow{fill:#ffeb3b}.u-stroke-yellow{stroke:#ffeb3b}.u-color-orange{color:#ff9800}.u-bg-orange{background-color:#ff9800}.u-fill-orange{fill:#ff9800}.u-stroke-orange{stroke:#ff9800}.u-color-brown{color:#795548}.u-bg-brown{background-color:#795548}.u-fill-brown{fill:#795548}.u-stroke-brown{stroke:#795548}.u-color-brand{color:#2c3e50}.u-bg-brand{background-color:#2c3e50}.u-fill-brand{fill:#2c3e50}.u-stroke-brand{stroke:#2c3e50}.u-color-info{color:#2196f3}.u-bg-info{background-color:#2196f3}.u-fill-info{fill:#2196f3}.u-stroke-info{stroke:#2196f3}.u-color-warning{color:#ff9800}.u-bg-warning{background-color:#ff9800}.u-fill-warning{fill:#ff9800}.u-stroke-warning{stroke:#ff9800}.u-color-success{color:#4caf50}.u-bg-success{background-color:#4caf50}.u-fill-success{fill:#4caf50}.u-stroke-success{stroke:#4caf50}.u-color-error{color:#f44336}.u-bg-error{background-color:#f44336}.u-fill-error{fill:#f44336}.u-stroke-error{stroke:#f44336}.u-color-default{color:#96a8b2}.u-bg-default{background-color:#96a8b2}.u-fill-default{fill:#96a8b2}.u-stroke-default{stroke:#96a8b2}.u-color-disabled{color:#96a8b2}.u-bg-disabled{background-color:#96a8b2}.u-fill-disabled{fill:#96a8b2}.u-stroke-disabled{stroke:#96a8b2}.u-color-quiet{color:#96a8b2}.u-bg-quiet{background-color:#96a8b2}.u-fill-quiet{fill:#96a8b2}.u-stroke-quiet{stroke:#96a8b2}.u-color-grey-dark{color:#96a8b2}.u-bg-grey-dark{background-color:#96a8b2}.u-fill-grey-dark{fill:#96a8b2}.u-stroke-grey-dark{stroke:#96a8b2}.u-color-red-dark{color:#ef1d0d}.u-bg-red-dark{background-color:#ef1d0d}.u-fill-red-dark{fill:#ef1d0d}.u-stroke-red-dark{stroke:#ef1d0d}.u-color-pink-dark{color:#c61350}.u-bg-pink-dark{background-color:#c61350}.u-fill-pink-dark{fill:#c61350}.u-stroke-pink-dark{stroke:#c61350}.u-color-purple-dark{color:#7b1f8a}.u-bg-purple-dark{background-color:#7b1f8a}.u-fill-purple-dark{fill:#7b1f8a}.u-stroke-purple-dark{stroke:#7b1f8a}.u-color-blue-dark{color:#0c7fda}.u-bg-blue-dark{background-color:#0c7fda}.u-fill-blue-dark{fill:#0c7fda}.u-stroke-blue-dark{stroke:#0c7fda}.u-color-green-dark{color:#3e8f41}.u-bg-green-dark{background-color:#3e8f41}.u-fill-green-dark{fill:#3e8f41}.u-stroke-green-dark{stroke:#3e8f41}.u-color-cyan-dark{color:#0093a6}.u-bg-cyan-dark{background-color:#0093a6}.u-fill-cyan-dark{fill:#0093a6}.u-stroke-cyan-dark{stroke:#0093a6}.u-color-yellow-dark{color:#ffe60d}.u-bg-yellow-dark{background-color:#ffe60d}.u-fill-yellow-dark{fill:#ffe60d}.u-stroke-yellow-dark{stroke:#ffe60d}.u-color-orange-dark{color:#d17d00}.u-bg-orange-dark{background-color:#d17d00}.u-fill-orange-dark{fill:#d17d00}.u-stroke-orange-dark{stroke:#d17d00}.u-color-brown-dark{color:#5c4137}.u-bg-brown-dark{background-color:#5c4137}.u-fill-brown-dark{fill:#5c4137}.u-stroke-brown-dark{stroke:#5c4137}.u-color-grey-darker{color:#7b929e}.u-bg-grey-darker{background-color:#7b929e}.u-fill-grey-darker{fill:#7b929e}.u-stroke-grey-darker{stroke:#7b929e}.u-color-red-darker{color:#c4170b}.u-bg-red-darker{background-color:#c4170b}.u-fill-red-darker{fill:#c4170b}.u-stroke-red-darker{stroke:#c4170b}.u-color-grey-light{color:#cad4d8}.u-bg-grey-light{background-color:#cad4d8}.u-fill-grey-light{fill:#cad4d8}.u-stroke-grey-light{stroke:#cad4d8}.u-color-red-light{color:#f66c62}.u-bg-red-light{background-color:#f66c62}.u-fill-red-light{fill:#f66c62}.u-stroke-red-light{stroke:#f66c62}.u-color-pink-light{color:#ed4880}.u-bg-pink-light{background-color:#ed4880}.u-fill-pink-light{fill:#ed4880}.u-stroke-pink-light{stroke:#ed4880}.u-color-purple-light{color:#bb33d2}.u-bg-purple-light{background-color:#bb33d2}.u-fill-purple-light{fill:#bb33d2}.u-stroke-purple-light{stroke:#bb33d2}.u-color-blue-light{color:#4dabf5}.u-bg-blue-light{background-color:#4dabf5}.u-fill-blue-light{fill:#4dabf5}.u-stroke-blue-light{stroke:#4dabf5}.u-color-green-light{color:#6abe6e}.u-bg-green-light{background-color:#6abe6e}.u-fill-green-light{fill:#6abe6e}.u-stroke-green-light{stroke:#6abe6e}.u-color-cyan-light{color:#03e2ff}.u-bg-cyan-light{background-color:#03e2ff}.u-fill-cyan-light{fill:#03e2ff}.u-stroke-cyan-light{stroke:#03e2ff}.u-color-yellow-light{color:#fff069}.u-bg-yellow-light{background-color:#fff069}.u-fill-yellow-light{fill:#fff069}.u-stroke-yellow-light{stroke:#fff069}.u-color-orange-light{color:#ffab2e}.u-bg-orange-light{background-color:#ffab2e}.u-fill-orange-light{fill:#ffab2e}.u-stroke-orange-light{stroke:#ffab2e}.u-color-brown-light{color:#966959}.u-bg-brown-light{background-color:#966959}.u-fill-brown-light{fill:#966959}.u-stroke-brown-light{stroke:#966959}.u-color-grey-lighter{color:#e5eaec}.u-bg-grey-lighter{background-color:#e5eaec}.u-fill-grey-lighter{fill:#e5eaec}.u-stroke-grey-lighter{stroke:#e5eaec}.u-color-red-lighter{color:#f9948d}.u-bg-red-lighter{background-color:#f9948d}.u-fill-red-lighter{fill:#f9948d}.u-stroke-red-lighter{stroke:#f9948d}.u-color-pink-lighter{color:#f1729d}.u-bg-pink-lighter{background-color:#f1729d}.u-fill-pink-lighter{fill:#f1729d}.u-stroke-pink-lighter{stroke:#f1729d}.u-color-purple-lighter{color:#c759da}.u-bg-purple-lighter{background-color:#c759da}.u-fill-purple-lighter{fill:#c759da}.u-stroke-purple-lighter{stroke:#c759da}.u-color-blue-lighter{color:#78bff8}.u-bg-blue-lighter{background-color:#78bff8}.u-fill-blue-lighter{fill:#78bff8}.u-stroke-blue-lighter{stroke:#78bff8}.u-color-green-lighter{color:#8acc8d}.u-bg-green-lighter{background-color:#8acc8d}.u-fill-green-lighter{fill:#8acc8d}.u-stroke-green-lighter{stroke:#8acc8d}.u-color-cyan-lighter{color:#31e8ff}.u-bg-cyan-lighter{background-color:#31e8ff}.u-fill-cyan-lighter{fill:#31e8ff}.u-stroke-cyan-lighter{stroke:#31e8ff}.u-color-yellow-lighter{color:#fff497}.u-bg-yellow-lighter{background-color:#fff497}.u-fill-yellow-lighter{fill:#fff497}.u-stroke-yellow-lighter{stroke:#fff497}.u-color-orange-lighter{color:#ffbd5c}.u-bg-orange-lighter{background-color:#ffbd5c}.u-fill-orange-lighter{fill:#ffbd5c}.u-stroke-orange-lighter{stroke:#ffbd5c}.u-color-brown-lighter{color:#ab8172}.u-bg-brown-lighter{background-color:#ab8172}.u-fill-brown-lighter{fill:#ab8172}.u-stroke-brown-lighter{stroke:#ab8172}.u-color-pink-darker{color:#9c0f3f}.u-bg-pink-darker{background-color:#9c0f3f}.u-fill-pink-darker{fill:#9c0f3f}.u-stroke-pink-darker{stroke:#9c0f3f}.u-color-purple-darker{color:#591665}.u-bg-purple-darker{background-color:#591665}.u-fill-purple-darker{fill:#591665}.u-stroke-purple-darker{stroke:#591665}.u-color-blue-darker{color:#0966af}.u-bg-blue-darker{background-color:#0966af}.u-fill-blue-darker{fill:#0966af}.u-stroke-blue-darker{stroke:#0966af}.u-color-green-darker{color:#306f33}.u-bg-green-darker{background-color:#306f33}.u-fill-green-darker{fill:#306f33}.u-stroke-green-darker{stroke:#306f33}.u-color-cyan-darker{color:#006b78}.u-bg-cyan-darker{background-color:#006b78}.u-fill-cyan-darker{fill:#006b78}.u-stroke-cyan-darker{stroke:#006b78}.u-color-yellow-darker{color:#dec800}.u-bg-yellow-darker{background-color:#dec800}.u-fill-yellow-darker{fill:#dec800}.u-stroke-yellow-darker{stroke:#dec800}.u-color-orange-darker{color:#a36100}.u-bg-orange-darker{background-color:#a36100}.u-fill-orange-darker{fill:#a36100}.u-stroke-orange-darker{stroke:#a36100}.u-color-brown-darker{color:#3f2d26}.u-bg-brown-darker{background-color:#3f2d26}.u-fill-brown-darker{fill:#3f2d26}.u-stroke-brown-darker{stroke:#3f2d26}.u-color-brand-dark{color:#1c2732}.u-bg-brand-dark{background-color:#1c2732}.u-fill-brand-dark{fill:#1c2732}.u-stroke-brand-dark{stroke:#1c2732}.u-color-brand-darker{color:#0b1015}.u-bg-brand-darker{background-color:#0b1015}.u-fill-brand-darker{fill:#0b1015}.u-stroke-brand-darker{stroke:#0b1015}.u-color-brand-light{color:#3c556e}.u-bg-brand-light{background-color:#3c556e}.u-fill-brand-light{fill:#3c556e}.u-stroke-brand-light{stroke:#3c556e}.u-color-brand-lighter{color:#4d6c8b}.u-bg-brand-lighter{background-color:#4d6c8b}.u-fill-brand-lighter{fill:#4d6c8b}.u-stroke-brand-lighter{stroke:#4d6c8b}.u-color-info-dark{color:#0c7fda}.u-bg-info-dark{background-color:#0c7fda}.u-fill-info-dark{fill:#0c7fda}.u-stroke-info-dark{stroke:#0c7fda}.u-color-info-darker{color:#0966af}.u-bg-info-darker{background-color:#0966af}.u-fill-info-darker{fill:#0966af}.u-stroke-info-darker{stroke:#0966af}.u-color-info-light{color:#4dabf5}.u-bg-info-light{background-color:#4dabf5}.u-fill-info-light{fill:#4dabf5}.u-stroke-info-light{stroke:#4dabf5}.u-color-info-lighter{color:#78bff8}.u-bg-info-lighter{background-color:#78bff8}.u-fill-info-lighter{fill:#78bff8}.u-stroke-info-lighter{stroke:#78bff8}.u-color-warning-dark{color:#d17d00}.u-bg-warning-dark{background-color:#d17d00}.u-fill-warning-dark{fill:#d17d00}.u-stroke-warning-dark{stroke:#d17d00}.u-color-warning-darker{color:#a36100}.u-bg-warning-darker{background-color:#a36100}.u-fill-warning-darker{fill:#a36100}.u-stroke-warning-darker{stroke:#a36100}.u-color-warning-light{color:#ffab2e}.u-bg-warning-light{background-color:#ffab2e}.u-fill-warning-light{fill:#ffab2e}.u-stroke-warning-light{stroke:#ffab2e}.u-color-warning-lighter{color:#ffbd5c}.u-bg-warning-lighter{background-color:#ffbd5c}.u-fill-warning-lighter{fill:#ffbd5c}.u-stroke-warning-lighter{stroke:#ffbd5c}.u-color-success-dark{color:#3e8f41}.u-bg-success-dark{background-color:#3e8f41}.u-fill-success-dark{fill:#3e8f41}.u-stroke-success-dark{stroke:#3e8f41}.u-color-success-darker{color:#306f33}.u-bg-success-darker{background-color:#306f33}.u-fill-success-darker{fill:#306f33}.u-stroke-success-darker{stroke:#306f33}.u-color-success-light{color:#6abe6e}.u-bg-success-light{background-color:#6abe6e}.u-fill-success-light{fill:#6abe6e}.u-stroke-success-light{stroke:#6abe6e}.u-color-success-lighter{color:#8acc8d}.u-bg-success-lighter{background-color:#8acc8d}.u-fill-success-lighter{fill:#8acc8d}.u-stroke-success-lighter{stroke:#8acc8d}.u-color-error-dark{color:#ef1d0d}.u-bg-error-dark{background-color:#ef1d0d}.u-fill-error-dark{fill:#ef1d0d}.u-stroke-error-dark{stroke:#ef1d0d}.u-color-error-darker{color:#c4170b}.u-bg-error-darker{background-color:#c4170b}.u-fill-error-darker{fill:#c4170b}.u-stroke-error-darker{stroke:#c4170b}.u-color-error-light{color:#f66c62}.u-bg-error-light{background-color:#f66c62}.u-fill-error-light{fill:#f66c62}.u-stroke-error-light{stroke:#f66c62}.u-color-error-lighter{color:#f9948d}.u-bg-error-lighter{background-color:#f9948d}.u-fill-error-lighter{fill:#f9948d}.u-stroke-error-lighter{stroke:#f9948d}.u-stroke-none{stroke:none}.u-fill-none{fill:none} +/* Override Blazecss typography */ +.c-text { + font-family: 'Roboto', sans-serif !important; +} + +/* Colors we are using that match the administrator phase two code. */ +.primary-fg { + color: #009688; +} +.primary-dark-fg { + color: #00796B; +} +.primary-contrast-fg { + color: #FFFFFF; +} +.accent-fg { + color: #8BC349; +} +.accent-contrast-fg { + color: #5B5B5B; +} +/* rgb(0,150,136) */ +.primary-bg { + background-color: #009688; +} +.primary-dark-bg { + background-color: #00796B; +} +.primary-contrast-bg { + background-color: #FFFFFF; +} +.accent-bg { + background-color: #8BC349; +} +.accent-contrast-bg { + background-color: #5B5B5B; +} + +/* Colors, etc. for specific components */ +.headerLink { + text-decoration: none; + color: #FFFFFF; + +} + +/* Content area. */ +.content-wrapper { + margin: 0.5em 1em; + padding: 0; +} + +/* =============================================== + * Navigation bar/menu. + * =============================================== */ + +/* Override the size of an inline navigation bar. */ +.nav-override-small li.c-nav__item { + height: 2.5em; + line-height: 2.5em; +} + +/* Display the longer text instead of the shorter for larger screens. */ +.buildNavItem-text { + display: inline-block; +} +.buildNavItem-smallText { + display: none; +} + +@media (max-width: 350px) { + /* Reduce the size of the site name in the navigation menu. */ + .c-nav__item .u-xlarge { + font-size: 1.0em; + } +} +@media (max-width: 610px) { + .c-nav__item { + font-size: 90%; + } + /* If a navigation item has an icon, don't display the text. */ + .nav-item-has-icon { + display: none; + } + /* Display the shorter text instead of the longer for smaller screens. */ + .buildNavItem-text { + display: none; + } + .buildNavItem-smallText { + display: inline-block; + } +} + +/* Field level adjustments */ +.label-2.5em { + display: inline-block; + width: 2.5em; + min-width: 2.5em; + text-align: left; +} +.label-3em { + display: inline-block; + width: 3em; + min-width: 3em; + text-align: left; +} +.label-6em { + display: inline-block; + width: 6em; + min-width: 6em; + text-align: left; +} +.align-right-2.5em { + display: inline-block; + width: 2.5em; + min-width: 2.5em; + text-align: right; +} +.align-right-3em { + display: inline-block; + width: 3em; + min-width: 3em; + text-align: right; +} +.align-right-5em { + display: inline-block; + width: 5em; + min-width: 5em; + text-align: right; +} + +/* + * Pregnancy Headers + */ +.pregnancy-header-wrapper { + background-color: #EEEEEE; + padding: 0 0.5em; +} +.pregnancy-header { + /* The pregnancy header is a series of nested flexboxes. This + * outer flexbox wraps pregnancy-header-col instances. */ + display: flex; + flex-flow: row wrap; + justify-content: space-between; + align-items: baseline; +} +.c-card--accordion > input:checked + .c-card__item + .c-card__item.pregnancy-header { + /* Use of a flexbox within BlazeCss's accordion are cross purposes + * with one another in that Blaze sets display to block when showing + * the contents of the accordion but we need it to be flex. */ + display: flex; +} +.pregnancy-header-col { + /* This second level flexbox wraps pregnancy-header-col-fldval + * instances as children. */ + display: flex; + flex-flow: column wrap; + align-items: flex-start; +} +.pregnancy-header-fldval { + /* This third level wraps a pair consisting of the field label + * and it's associated value, which are pregnancy-header-fld + * and pregnancy-header-val respectively. */ + display: flex; + flex-flow: row no-wrap; + justify-content: center; + align-items: baseline; +} +.pregnancy-header-fld { + text-align: right; +} +.pregnancy-header-val { + /* This effectively fits to the size of the content. */ + width: auto; + flex: 0 0 auto; +} + + +/* Headers, etc. */ +.mw-header-3 { + line-height: 0.5; +} +.inline-block { + display: inline-block; +} + +/* Forms and fields */ +.form-wrapper { + display: flex; + flex-flow: row wrap; + justify-content: space-between; + align-items: baseline; +} +.form-wrapper-end { + display: flex; + flex-flow: row-reverse nowrap; + justify-content: space-between; + align-items: baseline; +} +.cancel-save-buttons button { + margin: 0 0; + /* Separate the two buttons a bit. */ + margin-left: 1em; +} +.mw-form-field { + width: 10em; + margin: 0 0; +} +.mw-form-field-2x { + width: 20em; + margin: 0 0; +} +.mw-form-field-30em { + width: 30em; + margin: 0 0; +} +.mw-form-field-wide { + width: 100%; + margin: 0 0; +} +.mw-form-field-vertical { + margin-bottom: 0.5em; +} +.error-msg-right { + text-align: right; + padding: 10px 0; +} +.c-field-minPadding { + padding: 0.125em 0; +} +/* Provides a bit of padding around a form. Good to use + * with Blaze u-high or similar classes. + */ +.form-padding { + padding: 0.5em 0.5em; + margin-bottom: 0.5em; +} +.form-border-light { + border: 1px solid rgba(0, 150, 136, 0.4); +} + +/* Page content */ +.content-flex-wrapper { + display: inline-flex; +} + +/* Modals */ +.isHidden { + display: none !important; +} +.dateTimeModal { + width: 20em; +} +.dateTimeModalBody { + padding-top: 0; + padding-bottom: 0; +} +.spacedButtons { + display: flex; + flex-flow: row nowrap; + justify-content: space-between; + padding-top: 0; +} +.right-to-left { + display: flex; + flex-flow: row-reverse nowrap; + justify-content: space-between; +} + +/* Stage section on labor page */ +.stage-wrapper { + display: flex; + flex-flow: row wrap; + background-color: #EEEEEE; + padding: 0 0.5em; +} +.stage-content { + display: flex; + flex-direction: column; + min-width: 10em; +} + +/* Continued Postpartum Checks on ContPP page */ +.contPP-wrapper { + display: flex !important; + flex-flow: row wrap; +} +.contPP-content { + flex-flow: column nowrap; + flex: 0 0 50%; + margin-top: 0 !important; +} + diff --git a/build_odroid/roles/build_clients/files/elm_static/app.medical-styles.css.map b/build_odroid/roles/build_clients/files/elm_static/app.medical-styles.css.map new file mode 100644 index 0000000..0d7ca00 --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/app.medical-styles.css.map @@ -0,0 +1 @@ +{"version":3,"file":"app.medical-styles.css","sources":["webpack:///./src/css/fonts.css","webpack:///./vendor/blaze.min.css","webpack:///./vendor/blaze.colors.min.css","webpack:///./src/css/main.css"],"sourcesContent":["/*\nfonts.css\n\nThe fonts needed for Material Design.\n\nGenerated by: https://google-webfonts-helper.herokuapp.com/fonts/\n\nbased upon this as the requirement: \n\n\n\n*/\n\n\n/* roboto-regular - latin-ext_latin */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n src: url(1658fb7ff5e46f220397f647753dea0e.eot); /* IE9 Compat Modes */\n src: local('Roboto'), local('Roboto-Regular'),\n url(1658fb7ff5e46f220397f647753dea0e.eot?#iefix) format('embedded-opentype'), \n url(9723add759ca860091c4960e567bd1fa.woff2) format('woff2'), \n url(a84d4b00b169826c4aea77a8611b1e56.woff) format('woff'), \n url(1b2b92e8f347c87e456599e91a79cc2e.ttf) format('truetype'), \n url(3d3a53586bd78d1069ae4b89a3b9aa98.svg#Roboto) format('svg'); /* Legacy iOS */\n}\n/* roboto-300italic - latin-ext_latin */\n@font-face {\n font-family: 'Roboto';\n font-style: italic;\n font-weight: 300;\n src: url(1343b7f254fa03f282b84d484e8b1ef0.eot); /* IE9 Compat Modes */\n src: local('Roboto Light Italic'), local('Roboto-LightItalic'),\n url(1343b7f254fa03f282b84d484e8b1ef0.eot?#iefix) format('embedded-opentype'), \n url(0c69418ceacfe225f6245bc7cb35ee9e.woff2) format('woff2'), \n url(1c2236df616e20bd4894a174fb2d5225.woff) format('woff'), \n url(bbe79cc5c634b8422d2ad1a4a4a6c5f6.ttf) format('truetype'), \n url(290e6a6c01f4703f351415432980aa2f.svg#Roboto) format('svg'); /* Legacy iOS */\n}\n/* roboto-500 - latin-ext_latin */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 500;\n src: url(648c0c9e9baa984377419ef440e9fd76.eot); /* IE9 Compat Modes */\n src: local('Roboto Medium'), local('Roboto-Medium'),\n url(648c0c9e9baa984377419ef440e9fd76.eot?#iefix) format('embedded-opentype'), \n url(1e2be9ce2b53daa622b1b966214bbbb0.woff2) format('woff2'), \n url(243a8ea4b8c5d016075ca4afac4da8f0.woff) format('woff'), \n url(453ee13f0ab2da9315986717468d873d.ttf) format('truetype'), \n url(f1d811cdfaea49c969500d4bbe52251b.svg#Roboto) format('svg'); /* Legacy iOS */\n}\n\n\n/* roboto-mono-regular - latin-ext_latin */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n src: url(e001e59a54f1295535fc1031ccc8f999.eot); /* IE9 Compat Modes */\n src: local('Roboto Mono'), local('RobotoMono-Regular'),\n url(e001e59a54f1295535fc1031ccc8f999.eot?#iefix) format('embedded-opentype'), \n url(59288a767a1c97571b3475982e1e00c2.woff2) format('woff2'), \n url(cfc1cd7dec5c84d7ab09a365d6e111df.woff) format('woff'), \n url(f9ca3b6f2de069bad0195dfa8cb6a5f1.ttf) format('truetype'), \n url(96a9bbe5d32f7fe96e844bcbf7b4e05d.svg#RobotoMono) format('svg'); /* Legacy iOS */\n}\n\n\n\n/* roboto-condensed-regular - latin-ext_latin */\n@font-face {\n font-family: 'Roboto Condensed';\n font-style: normal;\n font-weight: 400;\n src: url(5e8dacb38b60db75a513e6691748ac41.eot); /* IE9 Compat Modes */\n src: local('Roboto Condensed'), local('RobotoCondensed-Regular'),\n url(5e8dacb38b60db75a513e6691748ac41.eot?#iefix) format('embedded-opentype'), \n url(1f11fd578571d7ca0f559f550e7831b3.woff2) format('woff2'), \n url(434e520c656cf117085de8cc4aaa2bc2.woff) format('woff'), \n url(3a1fd68839b6484697eb9be097167eb5.ttf) format('truetype'), \n url(87a79b495a5075c0a81273c2942b04cd.svg#RobotoCondensed) format('svg'); /* Legacy iOS */\n}\n/* roboto-condensed-700 - latin-ext_latin */\n@font-face {\n font-family: 'Roboto Condensed';\n font-style: normal;\n font-weight: 700;\n src: url(28ca1a3fd68f6ef41723ff921bfc2de8.eot); /* IE9 Compat Modes */\n src: local('Roboto Condensed Bold'), local('RobotoCondensed-Bold'),\n url(28ca1a3fd68f6ef41723ff921bfc2de8.eot?#iefix) format('embedded-opentype'), \n url(76ce747879e02ee93c9b83f457ab24ca.woff2) format('woff2'), \n url(0204f58a80d501469499b37c882ee06c.woff) format('woff'), \n url(fe353925ebc6cb6397f436bd1aaddbf4.ttf) format('truetype'), \n url(1b2fe31f77652a3ede3ae777071837c2.svg#RobotoCondensed) format('svg'); /* Legacy iOS */\n}\n\n\n\n\n","/*!v3.6.2*/@charset \"UTF-8\";html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{margin:0}.o-container{margin:auto}@media (min-width:20em){.o-container--xsmall\\@xsmall{max-width:20em}.o-container--small\\@xsmall{max-width:30em}.o-container--medium\\@xsmall{max-width:48em}.o-container--large\\@xsmall{max-width:64em}.o-container--xlarge\\@xsmall{max-width:78em}.o-container--super\\@xsmall{max-width:116em}}@media (min-width:30em){.o-container--xsmall\\@small{max-width:20em}.o-container--small\\@small{max-width:30em}.o-container--medium\\@small{max-width:48em}.o-container--large\\@small{max-width:64em}.o-container--xlarge\\@small{max-width:78em}.o-container--super\\@small{max-width:116em}}@media (min-width:48em){.o-container--xsmall\\@medium{max-width:20em}.o-container--small\\@medium{max-width:30em}.o-container--medium\\@medium{max-width:48em}.o-container--large\\@medium{max-width:64em}.o-container--xlarge\\@medium{max-width:78em}.o-container--super\\@medium{max-width:116em}}@media (min-width:64em){.o-container--xsmall\\@large{max-width:20em}.o-container--small\\@large{max-width:30em}.o-container--medium\\@large{max-width:48em}.o-container--large\\@large{max-width:64em}.o-container--xlarge\\@large{max-width:78em}.o-container--super\\@large{max-width:116em}}@media (min-width:78em){.o-container--xsmall\\@xlarge{max-width:20em}.o-container--small\\@xlarge{max-width:30em}.o-container--medium\\@xlarge{max-width:48em}.o-container--large\\@xlarge{max-width:64em}.o-container--xlarge\\@xlarge{max-width:78em}.o-container--super\\@xlarge{max-width:116em}}@media (min-width:116em){.o-container--xsmall\\@super{max-width:20em}.o-container--small\\@super{max-width:30em}.o-container--medium\\@super{max-width:48em}.o-container--large\\@super{max-width:64em}.o-container--xlarge\\@super{max-width:78em}.o-container--super\\@super{max-width:116em}}.o-container--xsmall{max-width:20em}.o-container--small{max-width:30em}.o-container--medium{max-width:48em}.o-container--large{max-width:64em}.o-container--xlarge{max-width:78em}.o-container--super{max-width:116em}.o-grid{display:-ms-flexbox;display:flex}.o-grid--wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid--top{-ms-flex-align:start;align-items:flex-start}.o-grid--center{-ms-flex-align:center;align-items:center}.o-grid--bottom{-ms-flex-align:end;align-items:flex-end}.o-grid--full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid--full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}.o-grid--no-gutter>.o-grid__cell{padding-right:.001em;padding-left:.001em}.o-grid__cell{-ms-flex:1;flex:1;padding-right:1em;padding-left:1em}.o-grid__cell--width-5{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5{margin-left:5%}.o-grid__cell--width-10{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10{margin-left:10%}.o-grid__cell--width-15{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15{margin-left:15%}.o-grid__cell--width-20{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20{margin-left:20%}.o-grid__cell--width-25{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25{margin-left:25%}.o-grid__cell--width-30{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30{margin-left:30%}.o-grid__cell--width-33{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33{margin-left:33.33333%}.o-grid__cell--width-35{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35{margin-left:35%}.o-grid__cell--width-40{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40{margin-left:40%}.o-grid__cell--width-45{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45{margin-left:45%}.o-grid__cell--width-50{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50{margin-left:50%}.o-grid__cell--width-55{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55{margin-left:55%}.o-grid__cell--width-60{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60{margin-left:60%}.o-grid__cell--width-65{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65{margin-left:65%}.o-grid__cell--width-66{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66{margin-left:66.66667%}.o-grid__cell--width-70{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70{margin-left:70%}.o-grid__cell--width-75{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75{margin-left:75%}.o-grid__cell--width-80{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80{margin-left:80%}.o-grid__cell--width-85{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85{margin-left:85%}.o-grid__cell--width-90{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90{margin-left:90%}.o-grid__cell--width-95{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95{margin-left:95%}.o-grid__cell--width-100{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100{margin-left:100%}.o-grid__cell--top{-ms-flex-item-align:start;align-self:flex-start}.o-grid__cell--center{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.o-grid__cell--bottom{-ms-flex-item-align:end;align-self:flex-end}.o-grid__cell--no-gutter{padding-right:.001em;padding-left:.001em}.o-grid__cell--width-fixed{-ms-flex:0 1 auto;flex:0 1 auto}.o-grid__cell--hidden{display:none}.o-grid__cell--visible{display:initial}@media (max-width:19.99em){.o-grid.o-grid--xsmall-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--xsmall-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--xsmall-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:20em) and (max-width:29.99em){.o-grid.o-grid--small-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--small-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--small-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:30em) and (max-width:47.99em){.o-grid.o-grid--medium-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--medium-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--medium-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:48em) and (max-width:63.99em){.o-grid.o-grid--large-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--large-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--large-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:64em) and (max-width:77.99em){.o-grid.o-grid--xlarge-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--xlarge-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--xlarge-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:64em){.o-grid.o-grid--super-fit>.o-grid__cell:not([class*=o-grid__cell--width]){-ms-flex:1;flex:1}.o-grid.o-grid--super-full{-ms-flex-wrap:wrap;flex-wrap:wrap}.o-grid.o-grid--super-full>.o-grid__cell{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}}@media (min-width:20em){.o-grid__cell--width-5\\@xsmall{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\\@xsmall{margin-left:5%}.o-grid__cell--width-10\\@xsmall{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\\@xsmall{margin-left:10%}.o-grid__cell--width-15\\@xsmall{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\\@xsmall{margin-left:15%}.o-grid__cell--width-20\\@xsmall{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\\@xsmall{margin-left:20%}.o-grid__cell--width-25\\@xsmall{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\\@xsmall{margin-left:25%}.o-grid__cell--width-30\\@xsmall{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\\@xsmall{margin-left:30%}.o-grid__cell--width-33\\@xsmall{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\\@xsmall{margin-left:33.33333%}.o-grid__cell--width-35\\@xsmall{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\\@xsmall{margin-left:35%}.o-grid__cell--width-40\\@xsmall{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\\@xsmall{margin-left:40%}.o-grid__cell--width-45\\@xsmall{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\\@xsmall{margin-left:45%}.o-grid__cell--width-50\\@xsmall{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\\@xsmall{margin-left:50%}.o-grid__cell--width-55\\@xsmall{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\\@xsmall{margin-left:55%}.o-grid__cell--width-60\\@xsmall{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\\@xsmall{margin-left:60%}.o-grid__cell--width-65\\@xsmall{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\\@xsmall{margin-left:65%}.o-grid__cell--width-66\\@xsmall{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\\@xsmall{margin-left:66.66667%}.o-grid__cell--width-70\\@xsmall{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\\@xsmall{margin-left:70%}.o-grid__cell--width-75\\@xsmall{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\\@xsmall{margin-left:75%}.o-grid__cell--width-80\\@xsmall{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\\@xsmall{margin-left:80%}.o-grid__cell--width-85\\@xsmall{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\\@xsmall{margin-left:85%}.o-grid__cell--width-90\\@xsmall{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\\@xsmall{margin-left:90%}.o-grid__cell--width-95\\@xsmall{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\\@xsmall{margin-left:95%}.o-grid__cell--hidden\\@xsmall{display:none}.o-grid__cell--visible\\@xsmall{display:initial}.o-grid__cell--width-100\\@xsmall{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\\@xsmall{margin-left:100%}.o-grid__cell--width-fixed\\@xsmall{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:30em){.o-grid__cell--width-5\\@small{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\\@small{margin-left:5%}.o-grid__cell--width-10\\@small{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\\@small{margin-left:10%}.o-grid__cell--width-15\\@small{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\\@small{margin-left:15%}.o-grid__cell--width-20\\@small{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\\@small{margin-left:20%}.o-grid__cell--width-25\\@small{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\\@small{margin-left:25%}.o-grid__cell--width-30\\@small{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\\@small{margin-left:30%}.o-grid__cell--width-33\\@small{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\\@small{margin-left:33.33333%}.o-grid__cell--width-35\\@small{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\\@small{margin-left:35%}.o-grid__cell--width-40\\@small{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\\@small{margin-left:40%}.o-grid__cell--width-45\\@small{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\\@small{margin-left:45%}.o-grid__cell--width-50\\@small{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\\@small{margin-left:50%}.o-grid__cell--width-55\\@small{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\\@small{margin-left:55%}.o-grid__cell--width-60\\@small{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\\@small{margin-left:60%}.o-grid__cell--width-65\\@small{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\\@small{margin-left:65%}.o-grid__cell--width-66\\@small{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\\@small{margin-left:66.66667%}.o-grid__cell--width-70\\@small{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\\@small{margin-left:70%}.o-grid__cell--width-75\\@small{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\\@small{margin-left:75%}.o-grid__cell--width-80\\@small{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\\@small{margin-left:80%}.o-grid__cell--width-85\\@small{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\\@small{margin-left:85%}.o-grid__cell--width-90\\@small{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\\@small{margin-left:90%}.o-grid__cell--width-95\\@small{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\\@small{margin-left:95%}.o-grid__cell--hidden\\@small{display:none}.o-grid__cell--visible\\@small{display:initial}.o-grid__cell--width-100\\@small{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\\@small{margin-left:100%}.o-grid__cell--width-fixed\\@small{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:48em){.o-grid__cell--width-5\\@medium{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\\@medium{margin-left:5%}.o-grid__cell--width-10\\@medium{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\\@medium{margin-left:10%}.o-grid__cell--width-15\\@medium{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\\@medium{margin-left:15%}.o-grid__cell--width-20\\@medium{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\\@medium{margin-left:20%}.o-grid__cell--width-25\\@medium{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\\@medium{margin-left:25%}.o-grid__cell--width-30\\@medium{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\\@medium{margin-left:30%}.o-grid__cell--width-33\\@medium{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\\@medium{margin-left:33.33333%}.o-grid__cell--width-35\\@medium{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\\@medium{margin-left:35%}.o-grid__cell--width-40\\@medium{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\\@medium{margin-left:40%}.o-grid__cell--width-45\\@medium{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\\@medium{margin-left:45%}.o-grid__cell--width-50\\@medium{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\\@medium{margin-left:50%}.o-grid__cell--width-55\\@medium{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\\@medium{margin-left:55%}.o-grid__cell--width-60\\@medium{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\\@medium{margin-left:60%}.o-grid__cell--width-65\\@medium{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\\@medium{margin-left:65%}.o-grid__cell--width-66\\@medium{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\\@medium{margin-left:66.66667%}.o-grid__cell--width-70\\@medium{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\\@medium{margin-left:70%}.o-grid__cell--width-75\\@medium{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\\@medium{margin-left:75%}.o-grid__cell--width-80\\@medium{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\\@medium{margin-left:80%}.o-grid__cell--width-85\\@medium{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\\@medium{margin-left:85%}.o-grid__cell--width-90\\@medium{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\\@medium{margin-left:90%}.o-grid__cell--width-95\\@medium{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\\@medium{margin-left:95%}.o-grid__cell--hidden\\@medium{display:none}.o-grid__cell--visible\\@medium{display:initial}.o-grid__cell--width-100\\@medium{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\\@medium{margin-left:100%}.o-grid__cell--width-fixed\\@medium{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:64em){.o-grid__cell--width-5\\@large{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\\@large{margin-left:5%}.o-grid__cell--width-10\\@large{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\\@large{margin-left:10%}.o-grid__cell--width-15\\@large{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\\@large{margin-left:15%}.o-grid__cell--width-20\\@large{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\\@large{margin-left:20%}.o-grid__cell--width-25\\@large{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\\@large{margin-left:25%}.o-grid__cell--width-30\\@large{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\\@large{margin-left:30%}.o-grid__cell--width-33\\@large{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\\@large{margin-left:33.33333%}.o-grid__cell--width-35\\@large{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\\@large{margin-left:35%}.o-grid__cell--width-40\\@large{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\\@large{margin-left:40%}.o-grid__cell--width-45\\@large{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\\@large{margin-left:45%}.o-grid__cell--width-50\\@large{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\\@large{margin-left:50%}.o-grid__cell--width-55\\@large{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\\@large{margin-left:55%}.o-grid__cell--width-60\\@large{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\\@large{margin-left:60%}.o-grid__cell--width-65\\@large{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\\@large{margin-left:65%}.o-grid__cell--width-66\\@large{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\\@large{margin-left:66.66667%}.o-grid__cell--width-70\\@large{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\\@large{margin-left:70%}.o-grid__cell--width-75\\@large{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\\@large{margin-left:75%}.o-grid__cell--width-80\\@large{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\\@large{margin-left:80%}.o-grid__cell--width-85\\@large{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\\@large{margin-left:85%}.o-grid__cell--width-90\\@large{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\\@large{margin-left:90%}.o-grid__cell--width-95\\@large{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\\@large{margin-left:95%}.o-grid__cell--hidden\\@large{display:none}.o-grid__cell--visible\\@large{display:initial}.o-grid__cell--width-100\\@large{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\\@large{margin-left:100%}.o-grid__cell--width-fixed\\@large{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:78em){.o-grid__cell--width-5\\@xlarge{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\\@xlarge{margin-left:5%}.o-grid__cell--width-10\\@xlarge{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\\@xlarge{margin-left:10%}.o-grid__cell--width-15\\@xlarge{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\\@xlarge{margin-left:15%}.o-grid__cell--width-20\\@xlarge{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\\@xlarge{margin-left:20%}.o-grid__cell--width-25\\@xlarge{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\\@xlarge{margin-left:25%}.o-grid__cell--width-30\\@xlarge{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\\@xlarge{margin-left:30%}.o-grid__cell--width-33\\@xlarge{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\\@xlarge{margin-left:33.33333%}.o-grid__cell--width-35\\@xlarge{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\\@xlarge{margin-left:35%}.o-grid__cell--width-40\\@xlarge{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\\@xlarge{margin-left:40%}.o-grid__cell--width-45\\@xlarge{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\\@xlarge{margin-left:45%}.o-grid__cell--width-50\\@xlarge{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\\@xlarge{margin-left:50%}.o-grid__cell--width-55\\@xlarge{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\\@xlarge{margin-left:55%}.o-grid__cell--width-60\\@xlarge{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\\@xlarge{margin-left:60%}.o-grid__cell--width-65\\@xlarge{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\\@xlarge{margin-left:65%}.o-grid__cell--width-66\\@xlarge{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\\@xlarge{margin-left:66.66667%}.o-grid__cell--width-70\\@xlarge{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\\@xlarge{margin-left:70%}.o-grid__cell--width-75\\@xlarge{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\\@xlarge{margin-left:75%}.o-grid__cell--width-80\\@xlarge{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\\@xlarge{margin-left:80%}.o-grid__cell--width-85\\@xlarge{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\\@xlarge{margin-left:85%}.o-grid__cell--width-90\\@xlarge{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\\@xlarge{margin-left:90%}.o-grid__cell--width-95\\@xlarge{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\\@xlarge{margin-left:95%}.o-grid__cell--hidden\\@xlarge{display:none}.o-grid__cell--visible\\@xlarge{display:initial}.o-grid__cell--width-100\\@xlarge{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\\@xlarge{margin-left:100%}.o-grid__cell--width-fixed\\@xlarge{-ms-flex:0 1 auto;flex:0 1 auto}}@media (min-width:116em){.o-grid__cell--width-5\\@super{-ms-flex:0 0 5%;flex:0 0 5%;max-width:5%}.o-grid__cell--offset-5\\@super{margin-left:5%}.o-grid__cell--width-10\\@super{-ms-flex:0 0 10%;flex:0 0 10%;max-width:10%}.o-grid__cell--offset-10\\@super{margin-left:10%}.o-grid__cell--width-15\\@super{-ms-flex:0 0 15%;flex:0 0 15%;max-width:15%}.o-grid__cell--offset-15\\@super{margin-left:15%}.o-grid__cell--width-20\\@super{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.o-grid__cell--offset-20\\@super{margin-left:20%}.o-grid__cell--width-25\\@super{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.o-grid__cell--offset-25\\@super{margin-left:25%}.o-grid__cell--width-30\\@super{-ms-flex:0 0 30%;flex:0 0 30%;max-width:30%}.o-grid__cell--offset-30\\@super{margin-left:30%}.o-grid__cell--width-33\\@super{-ms-flex:0 0 33.33333%;flex:0 0 33.33333%;max-width:33.33333%}.o-grid__cell--offset-33\\@super{margin-left:33.33333%}.o-grid__cell--width-35\\@super{-ms-flex:0 0 35%;flex:0 0 35%;max-width:35%}.o-grid__cell--offset-35\\@super{margin-left:35%}.o-grid__cell--width-40\\@super{-ms-flex:0 0 40%;flex:0 0 40%;max-width:40%}.o-grid__cell--offset-40\\@super{margin-left:40%}.o-grid__cell--width-45\\@super{-ms-flex:0 0 45%;flex:0 0 45%;max-width:45%}.o-grid__cell--offset-45\\@super{margin-left:45%}.o-grid__cell--width-50\\@super{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.o-grid__cell--offset-50\\@super{margin-left:50%}.o-grid__cell--width-55\\@super{-ms-flex:0 0 55%;flex:0 0 55%;max-width:55%}.o-grid__cell--offset-55\\@super{margin-left:55%}.o-grid__cell--width-60\\@super{-ms-flex:0 0 60%;flex:0 0 60%;max-width:60%}.o-grid__cell--offset-60\\@super{margin-left:60%}.o-grid__cell--width-65\\@super{-ms-flex:0 0 65%;flex:0 0 65%;max-width:65%}.o-grid__cell--offset-65\\@super{margin-left:65%}.o-grid__cell--width-66\\@super{-ms-flex:0 0 66.66667%;flex:0 0 66.66667%;max-width:66.66667%}.o-grid__cell--offset-66\\@super{margin-left:66.66667%}.o-grid__cell--width-70\\@super{-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.o-grid__cell--offset-70\\@super{margin-left:70%}.o-grid__cell--width-75\\@super{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.o-grid__cell--offset-75\\@super{margin-left:75%}.o-grid__cell--width-80\\@super{-ms-flex:0 0 80%;flex:0 0 80%;max-width:80%}.o-grid__cell--offset-80\\@super{margin-left:80%}.o-grid__cell--width-85\\@super{-ms-flex:0 0 85%;flex:0 0 85%;max-width:85%}.o-grid__cell--offset-85\\@super{margin-left:85%}.o-grid__cell--width-90\\@super{-ms-flex:0 0 90%;flex:0 0 90%;max-width:90%}.o-grid__cell--offset-90\\@super{margin-left:90%}.o-grid__cell--width-95\\@super{-ms-flex:0 0 95%;flex:0 0 95%;max-width:95%}.o-grid__cell--offset-95\\@super{margin-left:95%}.o-grid__cell--hidden\\@super{display:none}.o-grid__cell--visible\\@super{display:initial}.o-grid__cell--width-100\\@super{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.o-grid__cell--offset-100\\@super{margin-left:100%}.o-grid__cell--width-fixed\\@super{-ms-flex:0 1 auto;flex:0 1 auto}}.o-image{display:block;max-width:100%;height:auto}.o-panel-container{position:relative}.o-panel{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch}.o-panel--nav-top{top:3.55em}.o-panel--nav-bottom{bottom:3.55em}.c-card__body .o-panel{padding:.5em}.o-media{display:-ms-flexbox;display:flex}.o-media .c-heading{padding:0}.o-media__body,.o-media__image{-ms-flex:1;flex:1;padding-right:1em;padding-left:1em;padding-right:.001em;padding-left:.001em}.o-media__body--top,.o-media__image--top{-ms-flex-item-align:start;align-self:flex-start}.o-media__body--center,.o-media__image--center{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.o-media__body--bottom,.o-media__image--bottom{-ms-flex-item-align:end;align-self:flex-end}.o-media__image{-ms-flex:0 1 auto;flex:0 1 auto;width:3em}.o-media__body{margin-left:.5em}.o-fieldset,.o-fieldset.c-list{display:block;width:100%;margin:.5em 0;padding:0;border:0}.o-fieldset__legend{display:block;width:100%;padding:1em 0;cursor:pointer;padding:.25em 0}.o-form-element{position:relative;padding:1em 0}.o-form-element .c-label:first-child{padding:0 0 .5em}.o-modal{display:block;position:absolute;top:50%;left:50%;width:80%;transform:translate(-50%,-50%);border:0 solid #96a8b2;border-radius:4px;background-color:#fff;overflow:hidden;z-index:500}.o-modal .c-card{background-color:transparent;box-shadow:none}.o-modal .c-card__body{position:relative}.o-modal--ghost{background-color:transparent;color:#fff}.o-modal--ghost .c-heading{color:#fff}.o-modal--full{top:1em;left:1em;width:calc(100% - 2em);height:calc(100% - 2em);transform:none}.o-modal--full .c-card__body{position:absolute;top:2.5em;bottom:3.5em;width:100%;overflow-x:hidden;overflow-y:auto}.o-modal--full .c-card__footer{position:absolute;bottom:0;width:100%}.o-drawer{position:absolute;background-color:#fff;color:#111;z-index:500;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.o-drawer>.c-card{background-color:transparent;box-shadow:none}.o-drawer:not(.o-drawer--visible).u-high,.o-drawer:not(.o-drawer--visible).u-higher,.o-drawer:not(.o-drawer--visible).u-highest{box-shadow:none}.o-drawer--bottom,.o-drawer--top{left:0;width:80%;height:auto;margin-left:10%;transform:translate(0)}.o-drawer--bottom{top:100%;border-radius:4px 4px 0 0}.o-drawer--bottom.o-drawer--visible{transform:translateY(-99%)}.o-drawer--top{bottom:100%;border-radius:0 0 4px 4px}.o-drawer--top.o-drawer--visible{transform:translateY(99%)}.o-drawer--left,.o-drawer--right{top:0;width:260px;height:100%}.o-drawer--left .c-card__footer--block,.o-drawer--right .c-card__footer--block{position:absolute;bottom:0;width:100%}.o-drawer--left .c-card__footer--block .c-button,.o-drawer--right .c-card__footer--block .c-button{border-radius:0}.o-drawer--left{left:0;transform:translateX(-100%)}.o-drawer--left.o-drawer--visible{transform:translateX(-1%)}.o-drawer--right{left:100%;transform:translate(0)}.o-drawer--right.o-drawer--visible{transform:translateX(-99%)}.c-text{color:#111;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-weight:400;line-height:1.55}.c-text--mono{font-family:Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace}.c-text--highlight{margin:-.125em;padding:.25em .25em .125em;background-color:#ffeb3b;color:#111}.c-text--quiet{color:#96a8b2}.c-text--loud{font-weight:700}.c-text--help[title]{border-bottom:1px dashed #96a8b2;cursor:help}.c-pre{margin:0}.c-code{margin:-.125em;padding:.25em .25em .125em;background-color:#e5eaec;color:#111;display:inline;font-family:Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace;font-weight:400}.c-code--multiline{display:block;padding:.5em 1em;border-radius:4px;white-space:pre;word-wrap:normal;overflow-x:auto}.c-kbd{margin:-.125em;padding:.25em .25em .125em;background-color:#96a8b2;color:#fff;display:inline;font-family:Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace;font-weight:400;border-bottom:2px solid #7b929e;border-radius:4px}.c-blockquote{border-left:5px solid #96a8b2;display:block;margin:0;padding:1em 1.5em;font-family:Georgia,Cambria,Times New Roman,Times,serif}.c-blockquote--brand{border-left:5px solid #2c3e50}.c-blockquote--info{border-left:5px solid #2196f3}.c-blockquote--warning{border-left:5px solid #ff9800}.c-blockquote--success{border-left:5px solid #4caf50}.c-blockquote--error{border-left:5px solid #f44336}.c-blockquote__body{display:block;margin:0;padding:.5em 0;font-size:1.25em}.c-blockquote__footer{color:#96a8b2;font-style:italic}.c-blockquote__footer,.c-paragraph{display:block;margin:0;padding:.5em 0}.c-badge{border:1px solid #96a8b2;background-color:#96a8b2;color:#fff;display:inline-block;margin:0;padding:.25em .5em;border-radius:4px;font-size:.8em;font-weight:700;line-height:1.2}.c-badge.c-badge--ghost{border:1px solid #96a8b2;background-color:transparent;color:#96a8b2}.c-badge--rounded{border-radius:30em}.c-badge--brand{border:1px solid #2c3e50;background-color:#2c3e50;color:#fff}.c-badge--brand.c-badge--ghost{border:1px solid #2c3e50;background-color:transparent;color:#2c3e50}.c-badge--info{border:1px solid #2196f3;background-color:#2196f3;color:#fff}.c-badge--info.c-badge--ghost{border:1px solid #2196f3;background-color:transparent;color:#2196f3}.c-badge--warning{border:1px solid #ff9800;background-color:#ff9800;color:#fff}.c-badge--warning.c-badge--ghost{border:1px solid #ff9800;background-color:transparent;color:#ff9800}.c-badge--success{border:1px solid #4caf50;background-color:#4caf50;color:#fff}.c-badge--success.c-badge--ghost{border:1px solid #4caf50;background-color:transparent;color:#4caf50}.c-badge--error{border:1px solid #f44336;background-color:#f44336;color:#fff}.c-badge--error.c-badge--ghost{border:1px solid #f44336;background-color:transparent;color:#f44336}.c-heading,.c-heading__sub{margin:0;padding:1em 0 .5em;font-weight:400}.c-heading__sub{padding:0;font-size:.8em;opacity:.6}.c-address{display:block;margin:0;padding:.5em 0;font-style:normal}.c-address__heading{display:block;font-weight:700}.c-table{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0;padding:0;border:0;border-collapse:collapse;border-spacing:0}.c-table__caption{margin-left:0;padding:.5em 0;color:#96a8b2;font-size:.8em;text-align:left}.c-table__body,.c-table__caption,.c-table__head,.c-table__row{display:-ms-flexbox;display:flex;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.c-table__body,.c-table__head,.c-table__row{-ms-flex-wrap:wrap;flex-wrap:wrap}.c-table--striped :not(.c-table__row--heading).c-table__row:nth-of-type(odd){background-color:#e5eaec;color:initial}.c-table__cell{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:.5em;text-align:left;overflow:auto}.c-table__row--heading .c-table__cell{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;border-bottom:1px solid #b0bec5;background-color:#cad4d8;color:initial;font-size:1em;font-weight:700}.c-table--striped .c-table__row--heading .c-table__cell{background-color:#fff;color:initial}.c-table--clickable :not(.c-table__row--heading).c-table__row:hover .c-table__cell,.c-table__row--clickable:hover .c-table__cell{background-color:initial;color:#0c7fda;cursor:pointer}.c-table__row--disabled{background-color:initial;color:#96a8b2;cursor:default}.c-table--clickable :not(.c-table__row--heading).c-table__row--disabled:hover .c-table__cell,.c-table__row--disabled:hover .c-table__cell{background-color:initial;color:#96a8b2;cursor:not-allowed}.c-table--condensed{font-size:.8em}.c-table--condensed .c-table__cell{padding:.25em}.c-card{padding:0;list-style:none;display:block;width:100%;border-radius:4px;background-color:#fff;box-shadow:0 0 1px hsla(0,0%,7%,.6);overflow:hidden}.c-card>.o-image:not(:first-child){padding:1em 0 0}.c-card+.c-card{margin:.5em 0 0}.c-card__header{padding:1em 1em 0}.c-card__header .c-heading{padding:0}.c-card__item{padding:.5em}.c-card__body,.c-card__footer{padding:1em}.c-card__item+.c-card__footer--block{padding:0}.c-card__footer--block{padding:.5em 0 0}.c-card__footer--block .c-input-group .c-button{border-bottom:0}.c-card__footer--block .c-input-group .c-button:first-child{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.c-card__footer--block .c-input-group .c-button:last-child{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.c-card__item:not(:last-child){border-bottom:1px solid rgba(202,212,216,.5)}.c-card--accordion label.c-card__item{display:block;position:relative;width:100%;padding-left:2em;cursor:pointer}.c-card--accordion label.c-card__item:before{position:absolute;left:.75em;content:\"+\"}.c-card--accordion>input,.c-card--accordion>input+.c-card__item+.c-card__item{display:none}.c-card--accordion>input:checked+.c-card__item+.c-card__item{display:block}.c-card--accordion>input:checked+.c-card__item:before{transform:rotate(45deg)}.c-card--menu{display:block;width:100%;max-height:280px;margin:.5em 0 0;z-index:100;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.c-card--grouped .c-card__item:not(:last-child){border-bottom:0}.c-card__divider{height:1px;background-color:#96a8b2;overflow:hidden}.c-card__item--divider{background-color:#96a8b2;color:#fff;font-weight:700}.c-card__item--brand{background-color:#2c3e50;color:#fff}.c-card__item--info{background-color:#2196f3;color:#fff}.c-card__item--warning{background-color:#ff9800;color:#fff}.c-card__item--success{background-color:#4caf50;color:#fff}.c-card__item--error{background-color:#f44336;color:#fff}.c-card__item--disabled{cursor:not-allowed;opacity:.6}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover{background-color:#e5eaec;cursor:pointer}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--brand,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--brand{background-color:#3c556e}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--info,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--info{background-color:#4dabf5}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--warning,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--warning{background-color:#ffab2e}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--success,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--success{background-color:#6abe6e}.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--error,.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover.c-card__item--error{background-color:#f66c62}.c-card--accordion>input:checked+.c-card__item,.c-card__item--active{background-color:rgba(202,212,216,.5);font-weight:700}.c-card--accordion>input:checked+.c-card__item.c-card__item--brand,.c-card__item--active.c-card__item--brand{background-color:#1c2732}.c-card--accordion>input:checked+.c-card__item.c-card__item--info,.c-card__item--active.c-card__item--info{background-color:#0c7fda}.c-card--accordion>input:checked+.c-card__item.c-card__item--warning,.c-card__item--active.c-card__item--warning{background-color:#d17d00}.c-card--accordion>input:checked+.c-card__item.c-card__item--success,.c-card__item--active.c-card__item--success{background-color:#3e8f41}.c-card--accordion>input:checked+.c-card__item.c-card__item--error,.c-card__item--active.c-card__item--error{background-color:#ef1d0d}.c-button{border:1px solid transparent;background-color:#96a8b2;color:#fff;display:inline-block;max-width:100%;margin:0;padding:.5em;border-radius:4px;outline:0;font-family:inherit;font-size:1em;line-height:normal;text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c-button.c-button--active{background-color:#7b929e}.c-button:not(:disabled):hover{background-color:#b0bec5}.c-button:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button:not(:disabled):active{background-color:#7b929e}.c-button:disabled{cursor:not-allowed;opacity:.5}.c-button--close{border:1px solid transparent;color:inherit;position:absolute;right:.5em;padding:0;outline:0;font-size:1.4em;font-weight:700;line-height:1}.c-button--close,.c-button--close.c-button--active{background-color:transparent}.c-button--close:not(:disabled):hover{background-color:hsla(0,0%,9%,0)}.c-button--close:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--close:not(:disabled):active{background-color:transparent}.c-button--block{display:inline-block;width:100%}.c-button--rounded{border-radius:30em}.c-button--brand{border:1px solid transparent;background-color:#2c3e50;color:#fff}.c-button--brand.c-button--active{background-color:#1c2732}.c-button--brand:not(:disabled):hover{background-color:#3c556e}.c-button--brand:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--brand:not(:disabled):active{background-color:#1c2732}.c-button--info{border:1px solid transparent;background-color:#2196f3;color:#fff}.c-button--info.c-button--active{background-color:#0c7fda}.c-button--info:not(:disabled):hover{background-color:#4dabf5}.c-button--info:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--info:not(:disabled):active{background-color:#0c7fda}.c-button--warning{border:1px solid transparent;background-color:#ff9800;color:#fff}.c-button--warning.c-button--active{background-color:#d17d00}.c-button--warning:not(:disabled):hover{background-color:#ffab2e}.c-button--warning:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--warning:not(:disabled):active{background-color:#d17d00}.c-button--success{border:1px solid transparent;background-color:#4caf50;color:#fff}.c-button--success.c-button--active{background-color:#3e8f41}.c-button--success:not(:disabled):hover{background-color:#6abe6e}.c-button--success:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--success:not(:disabled):active{background-color:#3e8f41}.c-button--error{border:1px solid transparent;background-color:#f44336;color:#fff}.c-button--error.c-button--active{background-color:#ef1d0d}.c-button--error:not(:disabled):hover{background-color:#f66c62}.c-button--error:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--error:not(:disabled):active{background-color:#ef1d0d}.c-button--ghost{border:1px solid #96a8b2;background-color:transparent;color:#96a8b2}.c-button--ghost.c-button--active{border-color:#7b929e;background-color:#7b929e;color:#fff}.c-button--ghost:not(:disabled):hover{background-color:#96a8b2;color:#fff}.c-button--ghost:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost:not(:disabled):active{border-color:#7b929e;background-color:#7b929e;color:#fff}.c-button--ghost-brand{border:1px solid #2c3e50;background-color:transparent;color:#2c3e50}.c-button--ghost-brand.c-button--active{border-color:#1c2732;background-color:#1c2732;color:#fff}.c-button--ghost-brand:not(:disabled):hover{background-color:#2c3e50;color:#fff}.c-button--ghost-brand:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-brand:not(:disabled):active{border-color:#1c2732;background-color:#1c2732;color:#fff}.c-button--ghost-info{border:1px solid #2196f3;background-color:transparent;color:#2196f3}.c-button--ghost-info.c-button--active{border-color:#0c7fda;background-color:#0c7fda;color:#fff}.c-button--ghost-info:not(:disabled):hover{background-color:#2196f3;color:#fff}.c-button--ghost-info:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-info:not(:disabled):active{border-color:#0c7fda;background-color:#0c7fda;color:#fff}.c-button--ghost-warning{border:1px solid #ff9800;background-color:transparent;color:#ff9800}.c-button--ghost-warning.c-button--active{border-color:#d17d00;background-color:#d17d00;color:#fff}.c-button--ghost-warning:not(:disabled):hover{background-color:#ff9800;color:#fff}.c-button--ghost-warning:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-warning:not(:disabled):active{border-color:#d17d00;background-color:#d17d00;color:#fff}.c-button--ghost-success{border:1px solid #4caf50;background-color:transparent;color:#4caf50}.c-button--ghost-success.c-button--active{border-color:#3e8f41;background-color:#3e8f41;color:#fff}.c-button--ghost-success:not(:disabled):hover{background-color:#4caf50;color:#fff}.c-button--ghost-success:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-success:not(:disabled):active{border-color:#3e8f41;background-color:#3e8f41;color:#fff}.c-button--ghost-error{border:1px solid #f44336;background-color:transparent;color:#f44336}.c-button--ghost-error.c-button--active{border-color:#ef1d0d;background-color:#ef1d0d;color:#fff}.c-button--ghost-error:not(:disabled):hover{background-color:#f44336;color:#fff}.c-button--ghost-error:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-button--ghost-error:not(:disabled):active{border-color:#ef1d0d;background-color:#ef1d0d;color:#fff}.c-button__icon-left{padding-right:.5em}.c-button__icon-right{padding-left:.5em}.c-link{background-color:transparent;color:#0c7fda;text-decoration:none;cursor:pointer}.c-link:not(:disabled):visited{color:#0966af}.c-link:not(:disabled):active,.c-link:not(:disabled):hover{background-color:transparent;color:#2196f3}.c-link:hover{text-decoration:underline}.c-link--brand{background-color:transparent;color:#2c3e50}.c-link--brand:not(:disabled):visited{color:#1c2732}.c-link--brand:not(:disabled):active,.c-link--brand:not(:disabled):hover{background-color:transparent;color:#3c556e}.c-link--info{background-color:transparent;color:#2196f3}.c-link--info:not(:disabled):visited{color:#0c7fda}.c-link--info:not(:disabled):active,.c-link--info:not(:disabled):hover{background-color:transparent;color:#4dabf5}.c-link--warning{background-color:transparent;color:#ff9800}.c-link--warning:not(:disabled):visited{color:#d17d00}.c-link--warning:not(:disabled):active,.c-link--warning:not(:disabled):hover{background-color:transparent;color:#ffab2e}.c-link--success{background-color:transparent;color:#4caf50}.c-link--success:not(:disabled):visited{color:#3e8f41}.c-link--success:not(:disabled):active,.c-link--success:not(:disabled):hover{background-color:transparent;color:#6abe6e}.c-link--error{background-color:transparent;color:#f44336}.c-link--error:not(:disabled):visited{color:#ef1d0d}.c-link--error:not(:disabled):active,.c-link--error:not(:disabled):hover{background-color:transparent;color:#f66c62}.c-list{display:block;margin:0;list-style-position:outside}.c-list,.c-list .c-list{padding:0 0 0 1em}.c-list__item{padding:0}.c-list__item--unstyled{list-style:none}.c-list--ordered,.c-list--unstyled{padding:0;list-style:none}.c-list--ordered{counter-reset:a}.c-list--ordered .c-list__item:before{padding:0 .5em 0 0;content:counters(a,\".\") \" \";counter-increment:a}.c-list--inline,.c-list--inline .c-list--inline{padding:0}.c-list--inline .c-list__item{display:inline-block;width:auto;padding-right:1em}.c-list--inline:not(.c-list--unstyled) .c-list__item:before{padding:0 .5em 0 0;content:\"\\2022\"}.c-breadcrumbs{display:block;margin:0;padding:0;list-style:none}.c-breadcrumbs__crumb{display:inline-block;width:auto;padding:0}.c-breadcrumbs__crumb:not(:last-child):after{padding:0 .5em;color:#96a8b2;content:\"/\"}.c-tree{display:block;margin:0;padding:0;list-style:none}.c-tree .c-tree{padding:0 0 0 1em}.c-tree__item{padding:0}.c-tree__item:before{display:inline-block;padding:0 .5em 0 0;transform-origin:30% 50%;color:#cad4d8;content:\"\\2013\"}.c-tree__item--expandable:before{color:#b0bec5;content:\"\\276F\"}.c-tree__item--expandable .c-tree{display:none}.c-tree__item--expanded:before{transform:rotate(90deg);color:#7b929e;content:\"\\276F\"}.c-tabs,.c-tree__item--expanded .c-tree{display:block}.c-tabs__headings{display:-ms-flexbox;display:flex;text-align:center;cursor:pointer}.c-tab-heading{-ms-flex:1;flex:1;margin:0;padding:1em;box-shadow:inset 0 -.2em 0 0 #e5eaec}.c-tabs__nav{overflow:hidden}.c-tabs__nav .c-tabs__headings{margin-bottom:-1em;padding-bottom:1em;overflow-y:hidden;overflow-x:auto}.c-tabs__nav .c-tab-heading{white-space:nowrap}.c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #96a8b2}.c-tabs--brand .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #2c3e50}.c-tabs--info .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #2196f3}.c-tabs--warning .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #ff9800}.c-tabs--success .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #4caf50}.c-tabs--error .c-tab-heading--active{box-shadow:inset 0 -.2em 0 0 #f44336}.c-tab-heading--disabled{background-color:initial;color:#96a8b2;cursor:not-allowed}.c-tabs__tab{display:none;padding:1em}.c-tabs__tab--active{display:block}.o-field{position:relative}.o-field .c-field:disabled~.c-icon{color:#96a8b2}.o-field .c-icon{position:absolute;top:50%;transform:translateY(-50%)}.o-field--icon-right .c-field+.c-icon{right:.5em}.o-field--icon-right .c-field{padding-right:2em}.o-field--icon-left .c-icon:first-child{left:.5em}.o-field--icon-left .c-field{padding-left:2em}.c-fieldset,.c-fieldset.c-list{display:block;width:100%;margin:.5em 0;padding:0;border:0}.c-fieldset__legend{padding:1em 0;padding:.25em 0}.c-fieldset__legend,.c-label{display:block;width:100%;cursor:pointer}.c-label{padding:1em 0}.c-field{display:block;width:100%;margin:0;padding:.5em;border:1px solid #96a8b2;border-radius:4px;outline:0;background-color:#fff;font-family:inherit;font-size:1em;font-weight:400;resize:vertical;-webkit-appearance:none;-moz-appearance:none;appearance:none}.c-field:focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}select.c-field{cursor:pointer}select.c-field::-ms-expand{display:none}select.c-field:not([multiple]){padding-right:1em;background-image:url(\"data:image/png;base64,R0lGODlhDwAUAIABAAAAAP///yH5BAEAAAEALAAAAAAPABQAAAIXjI+py+0Po5wH2HsXzmw//lHiSJZmUAAAOw==\");background-repeat:no-repeat;background-position:99% 50%}.c-field input{margin-right:.125em;outline:0;font-size:1em}.c-field--label{margin:.5em 0 0}.c-field--error{border-color:#f44336;color:#f44336}.c-field--success{border-color:#4caf50;color:inherit}.c-field--choice{border:0;border-radius:0;background-color:transparent}.c-field--disabled,.c-field:disabled,.c-fieldset--disabled .c-field,.c-fieldset:disabled .c-field{color:#96a8b2;cursor:not-allowed;border-color:#96a8b2;background-color:#e5eaec}.c-field--disabled.c-field--choice,.c-field:disabled.c-field--choice,.c-fieldset--disabled .c-field.c-field--choice,.c-fieldset:disabled .c-field.c-field--choice{background-color:transparent}.c-field input:disabled{color:#96a8b2;cursor:not-allowed}.c-input-group{display:-ms-flexbox;display:flex}.c-input-group .c-button{border-radius:0}.c-input-group .c-button:not(:first-child){border-left-width:0}.c-input-group .c-button:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.c-input-group .c-button:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.c-input-group .o-field{-ms-flex:1;flex:1}.c-input-group .o-field .c-field{border-radius:0}.c-input-group .o-field:not(:first-child) .c-field{border-left-width:0}.c-input-group .o-field:first-child .c-field{border-top-left-radius:4px;border-bottom-left-radius:4px}.c-input-group .o-field:last-child .c-field{border-top-right-radius:4px;border-bottom-right-radius:4px}.c-input-group .o-field--fixed{-ms-flex:0 1 auto;flex:0 1 auto}.c-input-group--rounded .c-button:first-child{border-top-left-radius:30em;border-bottom-left-radius:30em}.c-input-group--rounded .c-button:last-child{border-top-right-radius:30em;border-bottom-right-radius:30em}.c-input-group--rounded .o-field:first-child .c-field{border-top-left-radius:30em;border-bottom-left-radius:30em}.c-input-group--rounded .o-field:last-child .c-field{border-top-right-radius:30em;border-bottom-right-radius:30em}.c-input-group--rounded-left .c-button:first-child,.c-input-group--rounded-left .o-field:first-child .c-field{border-top-left-radius:30em;border-bottom-left-radius:30em}.c-input-group--rounded-right .c-button:last-child,.c-input-group--rounded-right .o-field:last-child .c-field{border-top-right-radius:30em;border-bottom-right-radius:30em}.c-input-group--stacked{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.c-input-group--stacked .c-button:not(:first-child),.c-input-group--stacked .o-field:not(:first-child) .c-field{border-left-width:1px}.c-input-group--stacked .c-button,.c-input-group--stacked .o-field{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;margin-left:0}.c-input-group--stacked .c-button:not(:first-child){border-top:0}.c-input-group--stacked .c-button:not(:first-child):not(:last-child){border-radius:0}.c-input-group--stacked .c-button:first-child{border-radius:4px 4px 0 0}.c-input-group--stacked .c-button:last-child{border-radius:0 0 4px 4px}.c-input-group--stacked .o-field:not(:first-child) .c-field{border-top:0}.c-input-group--stacked .o-field:not(:first-child):not(:last-child) .c-field{border-radius:0}.c-input-group--stacked .o-field:first-child .c-field{border-radius:4px 4px 0 0}.c-input-group--stacked .o-field:last-child .c-field{border-radius:0 0 4px 4px}.c-hint{position:absolute;padding:0 .5em;transform:scale(.8);transform-origin:top left;color:#7b929e;font-size:1em;opacity:0;pointer-events:none}.c-field:focus~.c-hint,.c-hint--static,.c-label__field:focus~.c-hint{transform:scale(.9);opacity:1}.c-hint--success{color:#4caf50}.c-hint--error{color:#f44336}.c-toggle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c-toggle input:not(:checked)+.c-toggle__track{background-color:#e5eaec}.c-toggle input:not(:checked)+.c-toggle__track .c-toggle__handle{transform:translateZ(0)}.c-toggle input:disabled+.c-toggle__track,.c-toggle input:disabled+.c-toggle__track .c-toggle__handle{background-color:#e5eaec;cursor:not-allowed}.c-toggle--brand .c-toggle__track{background-color:#2c3e50}.c-toggle--info .c-toggle__track{background-color:#2196f3}.c-toggle--warning .c-toggle__track{background-color:#ff9800}.c-toggle--success .c-toggle__track{background-color:#4caf50}.c-toggle--error .c-toggle__track{background-color:#f44336}.c-toggle input{display:none}.c-toggle__track{-ms-flex:1;flex:1;padding-right:1em;padding-left:1em;-ms-flex:0 1 auto;flex:0 1 auto;background-color:#96a8b2;position:relative;width:1em;height:.5em;margin:0 .5em;border-radius:30em}.c-toggle__handle{position:absolute;top:-.25em;left:0;width:1em;height:1em;transform:translateX(100%);border-radius:30em;background-color:#fff;box-shadow:0 1px 4px -1px #111}.c-tags{position:relative;width:100%;text-align:left}.c-tags .c-card--menu{position:absolute;width:100%}.c-tags__container{padding-right:.25em}.c-tag,.c-tags__container{display:inline-block;max-width:70%}.c-tag{position:relative;margin:.125em;padding:.5em 1.5em .5em .5em}.c-tag__close{position:absolute;top:7px;right:5px;color:#e5eaec;font-weight:700}.c-tags__field-container{display:inline-block;position:absolute;width:30%;margin:.125em;cursor:pointer}.c-range{width:100%;padding:.5em 0;outline:0;-webkit-appearance:none}.c-range:not(:disabled)::-webkit-slider-runnable-track{background-color:#96a8b2}.c-range:not(:disabled)::-moz-range-track{background-color:#96a8b2}.c-range:not(:disabled)::-ms-track{background-color:#96a8b2}.c-range--brand:not(:disabled)::-webkit-slider-runnable-track{background-color:#2c3e50}.c-range--brand:not(:disabled)::-moz-range-track{background-color:#2c3e50}.c-range--brand:not(:disabled)::-ms-track{background-color:#2c3e50}.c-range--info:not(:disabled)::-webkit-slider-runnable-track{background-color:#2196f3}.c-range--info:not(:disabled)::-moz-range-track{background-color:#2196f3}.c-range--info:not(:disabled)::-ms-track{background-color:#2196f3}.c-range--warning:not(:disabled)::-webkit-slider-runnable-track{background-color:#ff9800}.c-range--warning:not(:disabled)::-moz-range-track{background-color:#ff9800}.c-range--warning:not(:disabled)::-ms-track{background-color:#ff9800}.c-range--success:not(:disabled)::-webkit-slider-runnable-track{background-color:#4caf50}.c-range--success:not(:disabled)::-moz-range-track{background-color:#4caf50}.c-range--success:not(:disabled)::-ms-track{background-color:#4caf50}.c-range--error:not(:disabled)::-webkit-slider-runnable-track{background-color:#f44336}.c-range--error:not(:disabled)::-moz-range-track{background-color:#f44336}.c-range--error:not(:disabled)::-ms-track{background-color:#f44336}.c-range::-webkit-slider-runnable-track{width:100%;height:10px;border:0;border-radius:30em;box-shadow:none;cursor:pointer}.c-range::-webkit-slider-thumb{width:20px;height:20px;margin:-5px 0 0;border:0;border-radius:30em;background-color:#fff;box-shadow:0 1px 4px -1px #111;cursor:pointer;-webkit-appearance:none}.c-range::-moz-range-track{width:100%;height:10px;border:0;border-radius:30em;box-shadow:none;cursor:pointer}.c-range::-moz-range-thumb{width:20px;height:20px;margin:-5px 0 0;border:0;border-radius:30em;background-color:#fff;box-shadow:0 1px 4px -1px #111;cursor:pointer}.c-range::-ms-track{width:100%;height:10px;border:0;border-radius:30em;box-shadow:none;cursor:pointer;border-color:transparent;background-color:transparent;color:transparent}.c-range::-ms-fill-lower,.c-range::-ms-fill-upper{border:0;border-radius:30em;background-color:#96a8b2;box-shadow:none}.c-range::-ms-thumb{width:20px;height:20px;margin:-5px 0 0;border:0;border-radius:30em;background-color:#fff;box-shadow:0 1px 4px -1px #111;cursor:pointer}.c-range:not(:disabled):active::-webkit-slider-thumb{transform:scale(1.4)}.c-range:not(:disabled):active::-moz-range-thumb{transform:scale(1.4)}.c-range:not(:disabled):active::-ms-thumb{transform:scale(1.4)}.c-range:focus::-webkit-slider-thumb{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-range:focus::-moz-range-thumb{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-range:focus::-ms-thumb{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-range:disabled::-webkit-slider-runnable-track,.c-range:disabled::-webkit-slider-thumb{background-color:#e5eaec;cursor:not-allowed}.c-range:disabled::-moz-range-thumb,.c-range:disabled::-moz-range-track{background-color:#e5eaec;cursor:not-allowed}.c-range:disabled::-ms-thumb,.c-range:disabled::-ms-track{background-color:#e5eaec;cursor:not-allowed}.c-pagination{display:block;width:100%;padding:1em;font-size:.8em;text-align:center}.c-pagination__controls{display:inline-block;text-align:center}.c-pagination__controls--backward{float:left;text-align:left}.c-pagination__controls--forward{float:right;text-align:right}.c-pagination__control,.c-pagination__page{border:1px solid transparent;background-color:#96a8b2;color:#fff;display:inline-block;max-width:100%;margin:0;padding:.5em;border-radius:4px;outline:0;font-family:inherit;font-size:1em;line-height:normal;text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid #2c3e50;background-color:transparent;color:#2c3e50;min-width:2.4em;border-radius:30em}.c-pagination__control.c-button--active,.c-pagination__page.c-button--active{background-color:#7b929e}.c-pagination__control:not(:disabled):hover,.c-pagination__page:not(:disabled):hover{background-color:#b0bec5}.c-pagination__control:not(:disabled):active,.c-pagination__page:not(:disabled):active{background-color:#7b929e}.c-pagination__control:disabled,.c-pagination__page:disabled{cursor:not-allowed;opacity:.5}.c-pagination__control.c-button--active,.c-pagination__page.c-button--active{border-color:#1c2732;background-color:#1c2732;color:#fff}.c-pagination__control:not(:disabled):hover,.c-pagination__page:not(:disabled):hover{background-color:#2c3e50;color:#fff}.c-pagination__control:not(:disabled):focus,.c-pagination__page:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-pagination__control:not(:disabled):active,.c-pagination__page:not(:disabled):active{border-color:#1c2732;background-color:#1c2732;color:#fff}.c-pagination__page--current{background-color:#2c3e50;color:#fff}.c-pagination__ellipsis{padding:0 1em}.c-overlay{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:hsla(0,0%,7%,.4);opacity:0;visibility:hidden;z-index:400}.c-overlay--visible{opacity:1;visibility:visible}.c-overlay--fullpage{position:fixed}.c-overlay--transparent{background-color:transparent}.c-overlay--dismissable{cursor:pointer}.c-bubble{display:inline-block;position:relative;padding:1em;border-radius:4px;background-color:#111;color:#fff;text-align:center;white-space:nowrap}.c-bubble:after{display:block;position:absolute;width:0;height:0;border:10px solid transparent;content:\"\"}.c-bubble--top:after{bottom:-20px;left:50%;transform:translateX(-50%);border-top-color:#111}.c-bubble--right:after{top:50%;left:-20px;transform:translateY(-50%);border-right-color:#111}.c-bubble--bottom:after{top:-20px;left:50%;transform:translateX(-50%);border-bottom-color:#111}.c-bubble--left:after{top:50%;right:-20px;transform:translateY(-50%);border-left-color:#111}.c-tooltip{position:relative;overflow:visible}.c-tooltip:after,.c-tooltip:before{visibility:hidden;z-index:300}.c-tooltip:before{position:absolute;border:.6em solid transparent;content:\"\"}.c-tooltip:after{position:absolute;padding:.25em .5em;border:1px solid #111;border-radius:4px;background-color:#111;color:#fff;line-height:1.45;white-space:nowrap;content:attr(aria-label);visibility:hidden}.c-tooltip:hover:after,.c-tooltip:hover:before{visibility:visible}.c-tooltip--top:before{top:0;left:50%;transform:translate(-50%,-1em);border-top-color:#111}.c-tooltip--top:after{top:0;left:50%;transform:translate(-50%,-3em)}.c-tooltip--right:before{top:50%;left:100%;transform:translateY(-50%);border-right-color:#111}.c-tooltip--right:after{top:50%;left:100%;transform:translate(1em,-50%)}.c-tooltip--bottom:before{bottom:0;left:50%;transform:translate(-50%,1em);border-bottom-color:#111}.c-tooltip--bottom:after{bottom:0;left:50%;transform:translate(-50%,3em)}.c-tooltip--left:before{top:50%;right:100%;transform:translateY(-50%);border-left-color:#111}.c-tooltip--left:after{top:50%;right:100%;transform:translate(-1em,-50%)}.c-alerts{display:block;position:absolute;width:250px;max-height:100%;background-color:transparent;z-index:300;overflow-y:auto}.c-alerts--topleft{top:1em;left:1em}.c-alerts--topright{top:1em;right:1em}.c-alerts--bottomleft{bottom:0;left:1em}.c-alerts--bottomright{right:1em;bottom:0}.c-alert{background-color:#96a8b2;color:#fff;position:relative;margin:0 0 1em;padding:1em 3em 1em 1em;border-radius:4px}.c-alert--brand{background-color:#2c3e50;color:#fff}.c-alert--info{background-color:#2196f3;color:#fff}.c-alert--warning{background-color:#ff9800;color:#fff}.c-alert--success{background-color:#4caf50;color:#fff}.c-alert--error{background-color:#f44336;color:#fff}.c-calendar{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;padding-right:.001em;padding-left:.001em;max-width:400px;padding:.25em;border:1px solid #96a8b2;border-radius:4px;background-color:#fff;text-align:center;z-index:200}.c-calendar__control,.c-calendar__date{background-color:#fff;color:#96a8b2;display:inline;-ms-flex:0 0 14.28%;flex:0 0 14.28%;max-width:14.28%;margin:0;padding:1em .5em;border:1px solid transparent;border-radius:4px;outline:0;font-size:1em;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c-calendar__control.c-button--active,.c-calendar__date.c-button--active{background-color:#e8e8e8}.c-calendar__control:not(:disabled):hover,.c-calendar__date:not(:disabled):hover{background-color:#fff}.c-calendar__control:not(:disabled):focus,.c-calendar__date:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-calendar__control:not(:disabled):active,.c-calendar__date:not(:disabled):active{background-color:#e8e8e8}.c-calendar__header{-ms-flex:1;flex:1;-ms-flex:0 0 70%;flex:0 0 70%;max-width:70%}.c-calendar__day,.c-calendar__header{padding-right:1em;padding-left:1em;padding-right:.001em;padding-left:.001em;padding:.5em 0}.c-calendar__day{-ms-flex:1;flex:1;-ms-flex:0 0 14.28%;flex:0 0 14.28%;max-width:14.28%;font-weight:700}.c-calendar__date:hover{border:1px solid #96a8b2}.c-calendar__date--in-month{color:#111}.c-calendar__date--today{border-color:#cad4d8}.c-calendar__date--selected,.c-calendar__date--selected:hover{border:1px solid transparent;background-color:#2c3e50;color:#fff;border-color:#2c3e50}.c-calendar__date--selected.c-button--active,.c-calendar__date--selected:hover.c-button--active{background-color:#1c2732}.c-calendar__date--selected:hover:not(:disabled):hover,.c-calendar__date--selected:not(:disabled):hover{background-color:#3c556e}.c-calendar__date--selected:hover:not(:disabled):focus,.c-calendar__date--selected:not(:disabled):focus{border-color:#2196f3;box-shadow:inset 0 0 0 2px #4dabf5}.c-calendar__date--selected:hover:not(:disabled):active,.c-calendar__date--selected:not(:disabled):active{background-color:#1c2732}.c-nav{background-color:#111;color:#fff;width:100%;margin:0;padding:0;z-index:300}.c-nav__content,.c-nav__item{display:block;height:3.5em;padding:0 1em;color:inherit;line-height:3.5em;vertical-align:middle}.c-nav__content .o-image,.c-nav__item .o-image{height:100%}.c-nav__item{text-decoration:none;cursor:pointer}.c-nav__item:not(:disabled):hover{background-color:#7b929e;color:#fff}.c-nav__item:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item:not(:disabled):active{background-color:#647c88;color:#fff}.c-nav--inline .c-nav__content,.c-nav--inline .c-nav__item{display:inline-block}.c-nav--inline .c-nav__content--right,.c-nav--inline .c-nav__item--right{float:right}.c-nav--light{background-color:#f2f2ea;color:#3f2d26}.c-nav--top{top:0;bottom:auto}.c-nav--bottom,.c-nav--top{position:absolute;right:0;left:0}.c-nav--bottom{top:auto;bottom:0}.c-nav--left{right:auto;left:0}.c-nav--left,.c-nav--right{position:absolute;top:0;bottom:0}.c-nav--right{right:0;left:auto}.c-nav--fixed{position:fixed}.c-nav__item--active{background-color:#7b929e;color:#fff}.c-nav__item--brand:not(:disabled):hover{background-color:#2c3e50;color:#fff}.c-nav__item--brand:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--brand:not(:disabled):active{background-color:#1c2732;color:#fff}.c-nav__item--brand.c-nav__item--active{background-color:#2c3e50;color:#fff}.c-nav__item--info:not(:disabled):hover{background-color:#2196f3;color:#fff}.c-nav__item--info:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--info:not(:disabled):active{background-color:#0c7fda;color:#fff}.c-nav__item--info.c-nav__item--active{background-color:#2196f3;color:#fff}.c-nav__item--warning:not(:disabled):hover{background-color:#ff9800;color:#fff}.c-nav__item--warning:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--warning:not(:disabled):active{background-color:#d17d00;color:#fff}.c-nav__item--warning.c-nav__item--active{background-color:#ff9800;color:#fff}.c-nav__item--success:not(:disabled):hover{background-color:#4caf50;color:#fff}.c-nav__item--success:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--success:not(:disabled):active{background-color:#3e8f41;color:#fff}.c-nav__item--success.c-nav__item--active{background-color:#4caf50;color:#fff}.c-nav__item--error:not(:disabled):hover{background-color:#f44336;color:#fff}.c-nav__item--error:not(:disabled):focus{box-shadow:inset 0 0 0 2px #4dabf5}.c-nav__item--error:not(:disabled):active{background-color:#ef1d0d;color:#fff}.c-nav__item--error.c-nav__item--active{background-color:#f44336;color:#fff}.c-progress{display:block;border:0;border-radius:4px;background-color:#e5eaec;color:#fff;text-align:center;overflow:hidden}.c-progress--rounded{border-radius:30em}.c-progress__bar{display:block;height:100%;float:left;border-radius:0;background-color:#96a8b2;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.c-progress__bar:after{color:transparent!important;content:\"-\"}.c-progress__bar--brand{background-color:#2c3e50}.c-progress__bar--info{background-color:#2196f3}.c-progress__bar--warning{background-color:#ff9800}.c-progress__bar--success{background-color:#4caf50}.c-progress__bar--error{background-color:#f44336}.c-avatar{display:inline-block;position:relative;width:3em;height:3em;margin:0;border-radius:30em;background-color:#2c3e50;color:#fff}.c-avatar[data-text]:after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:attr(data-text)}.c-avatar__img{display:block;width:100%;height:100%;border-radius:30em;overflow:hidden}.c-avatar__img+.c-avatar__img{position:absolute;right:0;bottom:0;width:50%;height:50%}.u-centered{text-align:center}.u-justified{text-align:justify}.u-left{text-align:left}.u-right{text-align:right}.u-center-block{position:relative}.u-absolute-center,.u-center-block__content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.u-center-block__content--vertical{left:auto;transform:translateY(-50%)}.u-center-block__content--horizontal{top:auto;transform:translateX(-50%)}.u-no-overflow{overflow:hidden}.u-letter-box--super{padding-top:3em;padding-bottom:3em}.u-letter-box--xlarge{padding-top:2em;padding-bottom:2em}.u-letter-box--large{padding-top:1.5em;padding-bottom:1.5em}.u-letter-box--medium{padding-top:1em;padding-bottom:1em}.u-letter-box--small{padding-top:.5em;padding-bottom:.5em}.u-letter-box--xsmall{padding-top:.25em;padding-bottom:.25em}.u-letter-box--tiny{padding-top:.125em;padding-bottom:.125em}.u-letter-box--none{padding-top:0;padding-bottom:0}.u-pillar-box--super{padding-right:3em;padding-left:3em}.u-pillar-box--xlarge{padding-right:2em;padding-left:2em}.u-pillar-box--large{padding-right:1.5em;padding-left:1.5em}.u-pillar-box--medium{padding-right:1em;padding-left:1em}.u-pillar-box--small{padding-right:.5em;padding-left:.5em}.u-pillar-box--xsmall{padding-right:.25em;padding-left:.25em}.u-pillar-box--tiny{padding-right:.125em;padding-left:.125em}.u-pillar-box--none{padding-right:0;padding-left:0}.u-window-box--super{padding:3em}.u-window-box--xlarge{padding:2em}.u-window-box--large{padding:1.5em}.u-window-box--medium{padding:1em}.u-window-box--small{padding:.5em}.u-window-box--xsmall{padding:.25em}.u-window-box--tiny{padding:.125em}.u-window-box--none{padding:0}.u-high,.u-higher,.u-highest{border:0}.u-high{box-shadow:0 0 1px hsla(0,0%,7%,.6),0 5px 10px -3px hsla(0,0%,7%,.4)}.u-higher{box-shadow:0 0 1px hsla(0,0%,7%,.6),0 10px 25px -4px hsla(0,0%,7%,.4)}.u-highest{box-shadow:0 0 1px hsla(0,0%,7%,.6),0 20px 55px -8px hsla(0,0%,7%,.4)}.u-super{font-size:2em}.u-xlarge{font-size:1.5em}.u-large{font-size:1.25em}.u-medium{font-size:1em}.u-small{font-size:.8em}.u-xsmall{font-size:.67em}.u-visible{visibility:visible}.u-invisible{visibility:hidden}.u-display-none{display:none}.u-display-initial{display:initial}.u-display-inline{display:inline}.u-display-inline-block{display:inline-block}.u-display-block{display:block}.u-display-table{display:table}.u-display-table-cell{display:table-cell}.u-display-flex{display:-ms-flexbox;display:flex}.u-display-inline-flex{display:-ms-inline-flexbox;display:inline-flex}","/*!v3.6.2*/.u-color-black{color:#111}.u-bg-black{background-color:#111}.u-fill-black{fill:#111}.u-stroke-black{stroke:#111}.u-color-grey{color:#b0bec5}.u-bg-grey{background-color:#b0bec5}.u-fill-grey{fill:#b0bec5}.u-stroke-grey{stroke:#b0bec5}.u-color-white{color:#fff}.u-bg-white{background-color:#fff}.u-fill-white{fill:#fff}.u-stroke-white{stroke:#fff}.u-color-beige{color:#f2f2ea}.u-bg-beige{background-color:#f2f2ea}.u-fill-beige{fill:#f2f2ea}.u-stroke-beige{stroke:#f2f2ea}.u-color-red{color:#f44336}.u-bg-red{background-color:#f44336}.u-fill-red{fill:#f44336}.u-stroke-red{stroke:#f44336}.u-color-pink{color:#e91e63}.u-bg-pink{background-color:#e91e63}.u-fill-pink{fill:#e91e63}.u-stroke-pink{stroke:#e91e63}.u-color-purple{color:#9c27b0}.u-bg-purple{background-color:#9c27b0}.u-fill-purple{fill:#9c27b0}.u-stroke-purple{stroke:#9c27b0}.u-color-blue{color:#2196f3}.u-bg-blue{background-color:#2196f3}.u-fill-blue{fill:#2196f3}.u-stroke-blue{stroke:#2196f3}.u-color-green{color:#4caf50}.u-bg-green{background-color:#4caf50}.u-fill-green{fill:#4caf50}.u-stroke-green{stroke:#4caf50}.u-color-cyan{color:#00bcd4}.u-bg-cyan{background-color:#00bcd4}.u-fill-cyan{fill:#00bcd4}.u-stroke-cyan{stroke:#00bcd4}.u-color-yellow{color:#ffeb3b}.u-bg-yellow{background-color:#ffeb3b}.u-fill-yellow{fill:#ffeb3b}.u-stroke-yellow{stroke:#ffeb3b}.u-color-orange{color:#ff9800}.u-bg-orange{background-color:#ff9800}.u-fill-orange{fill:#ff9800}.u-stroke-orange{stroke:#ff9800}.u-color-brown{color:#795548}.u-bg-brown{background-color:#795548}.u-fill-brown{fill:#795548}.u-stroke-brown{stroke:#795548}.u-color-brand{color:#2c3e50}.u-bg-brand{background-color:#2c3e50}.u-fill-brand{fill:#2c3e50}.u-stroke-brand{stroke:#2c3e50}.u-color-info{color:#2196f3}.u-bg-info{background-color:#2196f3}.u-fill-info{fill:#2196f3}.u-stroke-info{stroke:#2196f3}.u-color-warning{color:#ff9800}.u-bg-warning{background-color:#ff9800}.u-fill-warning{fill:#ff9800}.u-stroke-warning{stroke:#ff9800}.u-color-success{color:#4caf50}.u-bg-success{background-color:#4caf50}.u-fill-success{fill:#4caf50}.u-stroke-success{stroke:#4caf50}.u-color-error{color:#f44336}.u-bg-error{background-color:#f44336}.u-fill-error{fill:#f44336}.u-stroke-error{stroke:#f44336}.u-color-default{color:#96a8b2}.u-bg-default{background-color:#96a8b2}.u-fill-default{fill:#96a8b2}.u-stroke-default{stroke:#96a8b2}.u-color-disabled{color:#96a8b2}.u-bg-disabled{background-color:#96a8b2}.u-fill-disabled{fill:#96a8b2}.u-stroke-disabled{stroke:#96a8b2}.u-color-quiet{color:#96a8b2}.u-bg-quiet{background-color:#96a8b2}.u-fill-quiet{fill:#96a8b2}.u-stroke-quiet{stroke:#96a8b2}.u-color-grey-dark{color:#96a8b2}.u-bg-grey-dark{background-color:#96a8b2}.u-fill-grey-dark{fill:#96a8b2}.u-stroke-grey-dark{stroke:#96a8b2}.u-color-red-dark{color:#ef1d0d}.u-bg-red-dark{background-color:#ef1d0d}.u-fill-red-dark{fill:#ef1d0d}.u-stroke-red-dark{stroke:#ef1d0d}.u-color-pink-dark{color:#c61350}.u-bg-pink-dark{background-color:#c61350}.u-fill-pink-dark{fill:#c61350}.u-stroke-pink-dark{stroke:#c61350}.u-color-purple-dark{color:#7b1f8a}.u-bg-purple-dark{background-color:#7b1f8a}.u-fill-purple-dark{fill:#7b1f8a}.u-stroke-purple-dark{stroke:#7b1f8a}.u-color-blue-dark{color:#0c7fda}.u-bg-blue-dark{background-color:#0c7fda}.u-fill-blue-dark{fill:#0c7fda}.u-stroke-blue-dark{stroke:#0c7fda}.u-color-green-dark{color:#3e8f41}.u-bg-green-dark{background-color:#3e8f41}.u-fill-green-dark{fill:#3e8f41}.u-stroke-green-dark{stroke:#3e8f41}.u-color-cyan-dark{color:#0093a6}.u-bg-cyan-dark{background-color:#0093a6}.u-fill-cyan-dark{fill:#0093a6}.u-stroke-cyan-dark{stroke:#0093a6}.u-color-yellow-dark{color:#ffe60d}.u-bg-yellow-dark{background-color:#ffe60d}.u-fill-yellow-dark{fill:#ffe60d}.u-stroke-yellow-dark{stroke:#ffe60d}.u-color-orange-dark{color:#d17d00}.u-bg-orange-dark{background-color:#d17d00}.u-fill-orange-dark{fill:#d17d00}.u-stroke-orange-dark{stroke:#d17d00}.u-color-brown-dark{color:#5c4137}.u-bg-brown-dark{background-color:#5c4137}.u-fill-brown-dark{fill:#5c4137}.u-stroke-brown-dark{stroke:#5c4137}.u-color-grey-darker{color:#7b929e}.u-bg-grey-darker{background-color:#7b929e}.u-fill-grey-darker{fill:#7b929e}.u-stroke-grey-darker{stroke:#7b929e}.u-color-red-darker{color:#c4170b}.u-bg-red-darker{background-color:#c4170b}.u-fill-red-darker{fill:#c4170b}.u-stroke-red-darker{stroke:#c4170b}.u-color-grey-light{color:#cad4d8}.u-bg-grey-light{background-color:#cad4d8}.u-fill-grey-light{fill:#cad4d8}.u-stroke-grey-light{stroke:#cad4d8}.u-color-red-light{color:#f66c62}.u-bg-red-light{background-color:#f66c62}.u-fill-red-light{fill:#f66c62}.u-stroke-red-light{stroke:#f66c62}.u-color-pink-light{color:#ed4880}.u-bg-pink-light{background-color:#ed4880}.u-fill-pink-light{fill:#ed4880}.u-stroke-pink-light{stroke:#ed4880}.u-color-purple-light{color:#bb33d2}.u-bg-purple-light{background-color:#bb33d2}.u-fill-purple-light{fill:#bb33d2}.u-stroke-purple-light{stroke:#bb33d2}.u-color-blue-light{color:#4dabf5}.u-bg-blue-light{background-color:#4dabf5}.u-fill-blue-light{fill:#4dabf5}.u-stroke-blue-light{stroke:#4dabf5}.u-color-green-light{color:#6abe6e}.u-bg-green-light{background-color:#6abe6e}.u-fill-green-light{fill:#6abe6e}.u-stroke-green-light{stroke:#6abe6e}.u-color-cyan-light{color:#03e2ff}.u-bg-cyan-light{background-color:#03e2ff}.u-fill-cyan-light{fill:#03e2ff}.u-stroke-cyan-light{stroke:#03e2ff}.u-color-yellow-light{color:#fff069}.u-bg-yellow-light{background-color:#fff069}.u-fill-yellow-light{fill:#fff069}.u-stroke-yellow-light{stroke:#fff069}.u-color-orange-light{color:#ffab2e}.u-bg-orange-light{background-color:#ffab2e}.u-fill-orange-light{fill:#ffab2e}.u-stroke-orange-light{stroke:#ffab2e}.u-color-brown-light{color:#966959}.u-bg-brown-light{background-color:#966959}.u-fill-brown-light{fill:#966959}.u-stroke-brown-light{stroke:#966959}.u-color-grey-lighter{color:#e5eaec}.u-bg-grey-lighter{background-color:#e5eaec}.u-fill-grey-lighter{fill:#e5eaec}.u-stroke-grey-lighter{stroke:#e5eaec}.u-color-red-lighter{color:#f9948d}.u-bg-red-lighter{background-color:#f9948d}.u-fill-red-lighter{fill:#f9948d}.u-stroke-red-lighter{stroke:#f9948d}.u-color-pink-lighter{color:#f1729d}.u-bg-pink-lighter{background-color:#f1729d}.u-fill-pink-lighter{fill:#f1729d}.u-stroke-pink-lighter{stroke:#f1729d}.u-color-purple-lighter{color:#c759da}.u-bg-purple-lighter{background-color:#c759da}.u-fill-purple-lighter{fill:#c759da}.u-stroke-purple-lighter{stroke:#c759da}.u-color-blue-lighter{color:#78bff8}.u-bg-blue-lighter{background-color:#78bff8}.u-fill-blue-lighter{fill:#78bff8}.u-stroke-blue-lighter{stroke:#78bff8}.u-color-green-lighter{color:#8acc8d}.u-bg-green-lighter{background-color:#8acc8d}.u-fill-green-lighter{fill:#8acc8d}.u-stroke-green-lighter{stroke:#8acc8d}.u-color-cyan-lighter{color:#31e8ff}.u-bg-cyan-lighter{background-color:#31e8ff}.u-fill-cyan-lighter{fill:#31e8ff}.u-stroke-cyan-lighter{stroke:#31e8ff}.u-color-yellow-lighter{color:#fff497}.u-bg-yellow-lighter{background-color:#fff497}.u-fill-yellow-lighter{fill:#fff497}.u-stroke-yellow-lighter{stroke:#fff497}.u-color-orange-lighter{color:#ffbd5c}.u-bg-orange-lighter{background-color:#ffbd5c}.u-fill-orange-lighter{fill:#ffbd5c}.u-stroke-orange-lighter{stroke:#ffbd5c}.u-color-brown-lighter{color:#ab8172}.u-bg-brown-lighter{background-color:#ab8172}.u-fill-brown-lighter{fill:#ab8172}.u-stroke-brown-lighter{stroke:#ab8172}.u-color-pink-darker{color:#9c0f3f}.u-bg-pink-darker{background-color:#9c0f3f}.u-fill-pink-darker{fill:#9c0f3f}.u-stroke-pink-darker{stroke:#9c0f3f}.u-color-purple-darker{color:#591665}.u-bg-purple-darker{background-color:#591665}.u-fill-purple-darker{fill:#591665}.u-stroke-purple-darker{stroke:#591665}.u-color-blue-darker{color:#0966af}.u-bg-blue-darker{background-color:#0966af}.u-fill-blue-darker{fill:#0966af}.u-stroke-blue-darker{stroke:#0966af}.u-color-green-darker{color:#306f33}.u-bg-green-darker{background-color:#306f33}.u-fill-green-darker{fill:#306f33}.u-stroke-green-darker{stroke:#306f33}.u-color-cyan-darker{color:#006b78}.u-bg-cyan-darker{background-color:#006b78}.u-fill-cyan-darker{fill:#006b78}.u-stroke-cyan-darker{stroke:#006b78}.u-color-yellow-darker{color:#dec800}.u-bg-yellow-darker{background-color:#dec800}.u-fill-yellow-darker{fill:#dec800}.u-stroke-yellow-darker{stroke:#dec800}.u-color-orange-darker{color:#a36100}.u-bg-orange-darker{background-color:#a36100}.u-fill-orange-darker{fill:#a36100}.u-stroke-orange-darker{stroke:#a36100}.u-color-brown-darker{color:#3f2d26}.u-bg-brown-darker{background-color:#3f2d26}.u-fill-brown-darker{fill:#3f2d26}.u-stroke-brown-darker{stroke:#3f2d26}.u-color-brand-dark{color:#1c2732}.u-bg-brand-dark{background-color:#1c2732}.u-fill-brand-dark{fill:#1c2732}.u-stroke-brand-dark{stroke:#1c2732}.u-color-brand-darker{color:#0b1015}.u-bg-brand-darker{background-color:#0b1015}.u-fill-brand-darker{fill:#0b1015}.u-stroke-brand-darker{stroke:#0b1015}.u-color-brand-light{color:#3c556e}.u-bg-brand-light{background-color:#3c556e}.u-fill-brand-light{fill:#3c556e}.u-stroke-brand-light{stroke:#3c556e}.u-color-brand-lighter{color:#4d6c8b}.u-bg-brand-lighter{background-color:#4d6c8b}.u-fill-brand-lighter{fill:#4d6c8b}.u-stroke-brand-lighter{stroke:#4d6c8b}.u-color-info-dark{color:#0c7fda}.u-bg-info-dark{background-color:#0c7fda}.u-fill-info-dark{fill:#0c7fda}.u-stroke-info-dark{stroke:#0c7fda}.u-color-info-darker{color:#0966af}.u-bg-info-darker{background-color:#0966af}.u-fill-info-darker{fill:#0966af}.u-stroke-info-darker{stroke:#0966af}.u-color-info-light{color:#4dabf5}.u-bg-info-light{background-color:#4dabf5}.u-fill-info-light{fill:#4dabf5}.u-stroke-info-light{stroke:#4dabf5}.u-color-info-lighter{color:#78bff8}.u-bg-info-lighter{background-color:#78bff8}.u-fill-info-lighter{fill:#78bff8}.u-stroke-info-lighter{stroke:#78bff8}.u-color-warning-dark{color:#d17d00}.u-bg-warning-dark{background-color:#d17d00}.u-fill-warning-dark{fill:#d17d00}.u-stroke-warning-dark{stroke:#d17d00}.u-color-warning-darker{color:#a36100}.u-bg-warning-darker{background-color:#a36100}.u-fill-warning-darker{fill:#a36100}.u-stroke-warning-darker{stroke:#a36100}.u-color-warning-light{color:#ffab2e}.u-bg-warning-light{background-color:#ffab2e}.u-fill-warning-light{fill:#ffab2e}.u-stroke-warning-light{stroke:#ffab2e}.u-color-warning-lighter{color:#ffbd5c}.u-bg-warning-lighter{background-color:#ffbd5c}.u-fill-warning-lighter{fill:#ffbd5c}.u-stroke-warning-lighter{stroke:#ffbd5c}.u-color-success-dark{color:#3e8f41}.u-bg-success-dark{background-color:#3e8f41}.u-fill-success-dark{fill:#3e8f41}.u-stroke-success-dark{stroke:#3e8f41}.u-color-success-darker{color:#306f33}.u-bg-success-darker{background-color:#306f33}.u-fill-success-darker{fill:#306f33}.u-stroke-success-darker{stroke:#306f33}.u-color-success-light{color:#6abe6e}.u-bg-success-light{background-color:#6abe6e}.u-fill-success-light{fill:#6abe6e}.u-stroke-success-light{stroke:#6abe6e}.u-color-success-lighter{color:#8acc8d}.u-bg-success-lighter{background-color:#8acc8d}.u-fill-success-lighter{fill:#8acc8d}.u-stroke-success-lighter{stroke:#8acc8d}.u-color-error-dark{color:#ef1d0d}.u-bg-error-dark{background-color:#ef1d0d}.u-fill-error-dark{fill:#ef1d0d}.u-stroke-error-dark{stroke:#ef1d0d}.u-color-error-darker{color:#c4170b}.u-bg-error-darker{background-color:#c4170b}.u-fill-error-darker{fill:#c4170b}.u-stroke-error-darker{stroke:#c4170b}.u-color-error-light{color:#f66c62}.u-bg-error-light{background-color:#f66c62}.u-fill-error-light{fill:#f66c62}.u-stroke-error-light{stroke:#f66c62}.u-color-error-lighter{color:#f9948d}.u-bg-error-lighter{background-color:#f9948d}.u-fill-error-lighter{fill:#f9948d}.u-stroke-error-lighter{stroke:#f9948d}.u-stroke-none{stroke:none}.u-fill-none{fill:none}","/* Override Blazecss typography */\n.c-text {\n font-family: 'Roboto', sans-serif !important;\n}\n\n/* Colors we are using that match the administrator phase two code. */\n.primary-fg {\n color: #009688;\n}\n.primary-dark-fg {\n color: #00796B;\n}\n.primary-contrast-fg {\n color: #FFFFFF;\n}\n.accent-fg {\n color: #8BC349;\n}\n.accent-contrast-fg {\n color: #5B5B5B;\n}\n/* rgb(0,150,136) */\n.primary-bg {\n background-color: #009688;\n}\n.primary-dark-bg {\n background-color: #00796B;\n}\n.primary-contrast-bg {\n background-color: #FFFFFF;\n}\n.accent-bg {\n background-color: #8BC349;\n}\n.accent-contrast-bg {\n background-color: #5B5B5B;\n}\n\n/* Colors, etc. for specific components */\n.headerLink {\n text-decoration: none;\n color: #FFFFFF;\n\n}\n\n/* Content area. */\n.content-wrapper {\n margin: 0.5em 1em;\n padding: 0;\n}\n\n/* ===============================================\n * Navigation bar/menu.\n * =============================================== */\n\n/* Override the size of an inline navigation bar. */\n.nav-override-small li.c-nav__item {\n height: 2.5em;\n line-height: 2.5em;\n}\n\n/* Display the longer text instead of the shorter for larger screens. */\n.buildNavItem-text {\n display: inline-block;\n}\n.buildNavItem-smallText {\n display: none;\n}\n\n@media (max-width: 350px) {\n /* Reduce the size of the site name in the navigation menu. */\n .c-nav__item .u-xlarge {\n font-size: 1.0em;\n }\n}\n@media (max-width: 610px) {\n .c-nav__item {\n font-size: 90%;\n }\n /* If a navigation item has an icon, don't display the text. */\n .nav-item-has-icon {\n display: none;\n }\n /* Display the shorter text instead of the longer for smaller screens. */\n .buildNavItem-text {\n display: none;\n }\n .buildNavItem-smallText {\n display: inline-block;\n }\n}\n\n/* Field level adjustments */\n.label-2.5em {\n display: inline-block;\n width: 2.5em;\n min-width: 2.5em;\n text-align: left;\n}\n.label-3em {\n display: inline-block;\n width: 3em;\n min-width: 3em;\n text-align: left;\n}\n.label-6em {\n display: inline-block;\n width: 6em;\n min-width: 6em;\n text-align: left;\n}\n.align-right-2.5em {\n display: inline-block;\n width: 2.5em;\n min-width: 2.5em;\n text-align: right;\n}\n.align-right-3em {\n display: inline-block;\n width: 3em;\n min-width: 3em;\n text-align: right;\n}\n.align-right-5em {\n display: inline-block;\n width: 5em;\n min-width: 5em;\n text-align: right;\n}\n\n/*\n * Pregnancy Headers\n */\n.pregnancy-header-wrapper {\n background-color: #EEEEEE;\n padding: 0 0.5em;\n}\n.pregnancy-header {\n /* The pregnancy header is a series of nested flexboxes. This\n * outer flexbox wraps pregnancy-header-col instances. */\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n align-items: baseline;\n}\n.c-card--accordion > input:checked + .c-card__item + .c-card__item.pregnancy-header {\n /* Use of a flexbox within BlazeCss's accordion are cross purposes\n * with one another in that Blaze sets display to block when showing\n * the contents of the accordion but we need it to be flex. */\n display: flex;\n}\n.pregnancy-header-col {\n /* This second level flexbox wraps pregnancy-header-col-fldval\n * instances as children. */\n display: flex;\n flex-flow: column wrap;\n align-items: flex-start;\n}\n.pregnancy-header-fldval {\n /* This third level wraps a pair consisting of the field label\n * and it's associated value, which are pregnancy-header-fld\n * and pregnancy-header-val respectively. */\n display: flex;\n flex-flow: row no-wrap;\n justify-content: center;\n align-items: baseline;\n}\n.pregnancy-header-fld {\n text-align: right;\n}\n.pregnancy-header-val {\n /* This effectively fits to the size of the content. */\n width: auto;\n flex: 0 0 auto;\n}\n\n\n/* Headers, etc. */\n.mw-header-3 {\n line-height: 0.5;\n}\n.inline-block {\n display: inline-block;\n}\n\n/* Forms and fields */\n.form-wrapper {\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n align-items: baseline;\n}\n.form-wrapper-end {\n display: flex;\n flex-flow: row-reverse nowrap;\n justify-content: space-between;\n align-items: baseline;\n}\n.cancel-save-buttons button {\n margin: 0 0;\n /* Separate the two buttons a bit. */\n margin-left: 1em;\n}\n.mw-form-field {\n width: 10em;\n margin: 0 0;\n}\n.mw-form-field-2x {\n width: 20em;\n margin: 0 0;\n}\n.mw-form-field-30em {\n width: 30em;\n margin: 0 0;\n}\n.mw-form-field-wide {\n width: 100%;\n margin: 0 0;\n}\n.mw-form-field-vertical {\n margin-bottom: 0.5em;\n}\n.error-msg-right {\n text-align: right;\n padding: 10px 0;\n}\n.c-field-minPadding {\n padding: 0.125em 0;\n}\n/* Provides a bit of padding around a form. Good to use\n * with Blaze u-high or similar classes.\n */\n.form-padding {\n padding: 0.5em 0.5em;\n margin-bottom: 0.5em;\n}\n.form-border-light {\n border: 1px solid rgba(0, 150, 136, 0.4);\n}\n\n/* Page content */\n.content-flex-wrapper {\n display: inline-flex;\n}\n\n/* Modals */\n.isHidden {\n display: none !important;\n}\n.dateTimeModal {\n width: 20em;\n}\n.dateTimeModalBody {\n padding-top: 0;\n padding-bottom: 0;\n}\n.spacedButtons {\n display: flex;\n flex-flow: row nowrap;\n justify-content: space-between;\n padding-top: 0;\n}\n.right-to-left {\n display: flex;\n flex-flow: row-reverse nowrap;\n justify-content: space-between;\n}\n\n/* Stage section on labor page */\n.stage-wrapper {\n display: flex;\n flex-flow: row wrap;\n background-color: #EEEEEE;\n padding: 0 0.5em;\n}\n.stage-content {\n display: flex;\n flex-direction: column;\n min-width: 10em;\n}\n\n/* Continued Postpartum Checks on ContPP page */\n.contPP-wrapper {\n display: flex !important;\n flex-flow: row wrap;\n}\n.contPP-content {\n flex-flow: column nowrap;\n flex: 0 0 50%;\n margin-top: 0 !important;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;ACAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;","sourceRoot":""} \ No newline at end of file diff --git a/build_odroid/roles/build_clients/files/elm_static/app.mwemr-admin-client-bundle.js b/build_odroid/roles/build_clients/files/elm_static/app.mwemr-admin-client-bundle.js new file mode 100644 index 0000000..66da06d --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/app.mwemr-admin-client-bundle.js @@ -0,0 +1 @@ +!function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=53)}([function(t,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){(function(n){function o(){var t;try{t=r.storage.debug}catch(t){}return!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG),t}(r=t.exports=e(40)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+r.humanize(this.diff),e){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var o=0,c=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&"%c"===t&&(c=++o)}),t.splice(c,0,n)}},r.save=function(t){try{null==t?r.storage.removeItem("debug"):r.storage.debug=t}catch(t){}},r.load=o,r.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(o())}).call(this,e(41))},function(t,r,e){(function(t){var n,o=e(33),c=e(14),i=e(31),u=e(30),a=e(29);t&&t.ArrayBuffer&&(n=e(27));var _="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),s="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),l=_||s;r.protocol=3;var d=r.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},f=o(d),p={type:"error",data:"parser error"},h=e(26);function m(t,r,e){for(var n=new Array(t.length),o=u(t.length,e),c=function(t,e,o){r(e,function(r,e){n[t]=e,o(r,n)})},i=0;i1?{type:f[o],data:t.substring(1)}:{type:f[o]}:p}o=new Uint8Array(t)[0];var c=i(t,1);return h&&"blob"===e&&(c=new h([c])),{type:f[o],data:c}},r.decodeBase64Packet=function(t,r){var e=f[t.charAt(0)];if(!n)return{type:e,data:{base64:!0,data:t.substr(1)}};var o=n.decode(t.substr(1));return"blob"===r&&h&&(o=new h([o])),{type:e,data:o}},r.encodePayload=function(t,e,n){"function"==typeof e&&(n=e,e=null);var o=c(t);return e&&o?h&&!l?r.encodePayloadAsBlob(t,n):r.encodePayloadAsArrayBuffer(t,n):t.length?void m(t,function(t,n){r.encodePacket(t,!!o&&e,!1,function(t){n(null,function(t){return t.length+":"+t}(t))})},function(t,r){return n(r.join(""))}):n("0:")},r.decodePayload=function(t,e,n){if("string"!=typeof t)return r.decodePayloadAsBinary(t,e,n);var o;if("function"==typeof e&&(n=e,e=null),""===t)return n(p,0,1);for(var c,i,u="",a=0,_=t.length;a<_;a++){var s=t.charAt(a);if(":"===s){if(""===u||u!=(c=Number(u)))return n(p,0,1);if(u!=(i=t.substr(a+1,c)).length)return n(p,0,1);if(i.length){if(o=r.decodePacket(i,e,!1),p.type===o.type&&p.data===o.data)return n(p,0,1);if(!1===n(o,a+c,_))return}a+=c,u=""}else u+=s}return""!==u?n(p,0,1):void 0},r.encodePayloadAsArrayBuffer=function(t,e){if(!t.length)return e(new ArrayBuffer(0));m(t,function(t,e){r.encodePacket(t,!0,!0,function(t){return e(null,t)})},function(t,r){var n=r.reduce(function(t,r){var e;return t+(e="string"==typeof r?r.length:r.byteLength).toString().length+e+2},0),o=new Uint8Array(n),c=0;return r.forEach(function(t){var r="string"==typeof t,e=t;if(r){for(var n=new Uint8Array(t.length),i=0;i0;){for(var u=new Uint8Array(o),a=0===u[0],_="",s=1;255!==u[s];s++){if(_.length>310)return n(p,0,1);_+=u[s]}o=i(o,2+_.length),_=parseInt(_);var l=i(o,0,_);if(a)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(t){var d=new Uint8Array(l);for(l="",s=0;s0);return r}function s(){var t=_(+new Date);return t!==n?(u=0,n=t):t+"."+_(u++)}for(;a0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},f.prototype.cleanup=function(){_("cleanup");for(var t=this.subs.length,r=0;r=this._reconnectionAttempts)_("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var r=this.backoff.duration();_("will wait %dms before reconnect attempt",r),this.reconnecting=!0;var e=setTimeout(function(){t.skipReconnect||(_("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(r){r?(_("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",r.data)):(_("reconnect success"),t.onreconnect())}))},r);this.subs.push({destroy:function(){clearTimeout(e)}})}},f.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,r,e){(function(r){t.exports=function(t){return e&&r.Buffer.isBuffer(t)||n&&(t instanceof r.ArrayBuffer||o(t))};var e="function"==typeof r.Buffer&&"function"==typeof r.Buffer.isBuffer,n="function"==typeof r.ArrayBuffer,o=n&&"function"==typeof r.ArrayBuffer.isView?r.ArrayBuffer.isView:function(t){return t.buffer instanceof r.ArrayBuffer}}).call(this,e(0))},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r){var e=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var r=t,o=t.indexOf("["),c=t.indexOf("]");-1!=o&&-1!=c&&(t=t.substring(0,o)+t.substring(o,c).replace(/:/g,";")+t.substring(c,t.length));for(var i=e.exec(t||""),u={},a=14;a--;)u[n[a]]=i[a]||"";return-1!=o&&-1!=c&&(u.source=r,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u}},function(t,r){function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),e=Math.floor(r*this.jitter*t);t=0==(1&Math.floor(10*r))?t-e:t+e}return 0|Math.min(t,this.max)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}},function(t,r){t.exports=function(t,r){for(var e=[],n=(r=r||0)||0;n';n=document.createElement(t)}catch(t){(n=document.createElement("iframe")).name=e.iframeId,n.src="javascript:0"}n.id=e.iframeId,e.form.appendChild(n),e.iframe=n}this.form.action=this.uri(),s(),t=t.replace(u,"\\\n"),this.area.value=t.replace(i,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===e.iframe.readyState&&_()}:this.iframe.onload=_}}).call(this,e(0))},function(t,r,e){(function(r){var e=r.BlobBuilder||r.WebKitBlobBuilder||r.MSBlobBuilder||r.MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),o=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),c=e&&e.prototype.append&&e.prototype.getBlob;function i(t){for(var r=0;r>2],c+=t[(3&n[e])<<4|n[e+1]>>4],c+=t[(15&n[e+1])<<2|n[e+2]>>6],c+=t[63&n[e+2]];return o%3==2?c=c.substring(0,c.length-1)+"=":o%3==1&&(c=c.substring(0,c.length-2)+"=="),c},r.decode=function(t){var r,n,o,c,i,u=.75*t.length,a=t.length,_=0;"="===t[t.length-1]&&(u--,"="===t[t.length-2]&&u--);var s=new ArrayBuffer(u),l=new Uint8Array(s);for(r=0;r>4,l[_++]=(15&o)<<4|c>>2,l[_++]=(3&c)<<6|63&i;return s}}()},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r,e){(function(t,n){var o;/*! https://mths.be/utf8js v2.1.2 by @mathias */!function(c){var i=("object"==typeof t&&t&&t.exports,"object"==typeof n&&n);i.global!==i&&i.window;var u,a,_,s=String.fromCharCode;function l(t){for(var r,e,n=[],o=0,c=t.length;o=55296&&r<=56319&&o=55296&&t<=57343){if(r)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function f(t,r){return s(t>>r&63|128)}function p(t,r){if(0==(4294967168&t))return s(t);var e="";return 0==(4294965248&t)?e=s(t>>6&31|192):0==(4294901760&t)?(d(t,r)||(t=65533),e=s(t>>12&15|224),e+=f(t,6)):0==(4292870144&t)&&(e=s(t>>18&7|240),e+=f(t,12),e+=f(t,6)),e+s(63&t|128)}function h(){if(_>=a)throw Error("Invalid byte index");var t=255&u[_];if(_++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function m(t){var r,e;if(_>a)throw Error("Invalid byte index");if(_==a)return!1;if(r=255&u[_],_++,0==(128&r))return r;if(192==(224&r)){if((e=(31&r)<<6|h())>=128)return e;throw Error("Invalid continuation byte")}if(224==(240&r)){if((e=(15&r)<<12|h()<<6|h())>=2048)return d(e,t)?e:65533;throw Error("Invalid continuation byte")}if(240==(248&r)&&(e=(7&r)<<18|h()<<12|h()<<6|h())>=65536&&e<=1114111)return e;throw Error("Invalid UTF-8 detected")}var v={version:"2.1.2",encode:function(t,r){for(var e=!1!==(r=r||{}).strict,n=l(t),o=n.length,c=-1,i="";++c65535&&(o+=s((r-=65536)>>>10&1023|55296),r=56320|1023&r),o+=s(r);return o}(o)}};void 0===(o=function(){return v}.call(r,e,r,t))||(t.exports=o)}()}).call(this,e(28)(t),e(0))},function(t,r){function e(){}t.exports=function(t,r,n){var o=!1;return n=n||e,c.count=t,0===t?r():c;function c(t,e){if(c.count<=0)throw new Error("after called too many times");--c.count,t?(o=!0,r(t),r=n):0!==c.count||o||r(null,e)}}},function(t,r){t.exports=function(t,r,e){var n=t.byteLength;if(r=r||0,e=e||n,t.slice)return t.slice(r,e);if(r<0&&(r+=n),e<0&&(e+=n),e>n&&(e=n),r>=n||r>=e||0===n)return new ArrayBuffer(0);for(var o=new Uint8Array(t),c=new Uint8Array(e-r),i=r,u=0;i0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=s,s.priorWebsocketSuccess=!1,o(s.prototype),s.protocol=u.protocol,s.Socket=s,s.Transport=e(6),s.transports=e(16),s.parser=e(2),s.prototype.createTransport=function(t){c('creating transport "%s"',t);var r=function(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r}(this.query);r.EIO=u.protocol,r.transport=t;var e=this.transportOptions[t]||{};return this.id&&(r.sid=this.id),new n[t]({query:r,socket:this,agent:e.agent||this.agent,hostname:e.hostname||this.hostname,port:e.port||this.port,secure:e.secure||this.secure,path:e.path||this.path,forceJSONP:e.forceJSONP||this.forceJSONP,jsonp:e.jsonp||this.jsonp,forceBase64:e.forceBase64||this.forceBase64,enablesXDR:e.enablesXDR||this.enablesXDR,timestampRequests:e.timestampRequests||this.timestampRequests,timestampParam:e.timestampParam||this.timestampParam,policyPort:e.policyPort||this.policyPort,pfx:e.pfx||this.pfx,key:e.key||this.key,passphrase:e.passphrase||this.passphrase,cert:e.cert||this.cert,ca:e.ca||this.ca,ciphers:e.ciphers||this.ciphers,rejectUnauthorized:e.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:e.perMessageDeflate||this.perMessageDeflate,extraHeaders:e.extraHeaders||this.extraHeaders,forceNode:e.forceNode||this.forceNode,localAddress:e.localAddress||this.localAddress,requestTimeout:e.requestTimeout||this.requestTimeout,protocols:e.protocols||void 0})},s.prototype.open=function(){var t;if(this.rememberUpgrade&&s.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var r=this;return void setTimeout(function(){r.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},s.prototype.setTransport=function(t){c("setting transport %s",t.name);var r=this;this.transport&&(c("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){r.onDrain()}).on("packet",function(t){r.onPacket(t)}).on("error",function(t){r.onError(t)}).on("close",function(){r.onClose("transport close")})},s.prototype.probe=function(t){c('probing transport "%s"',t);var r=this.createTransport(t,{probe:1}),e=!1,n=this;function o(){if(n.onlyBinaryUpgrades){var o=!this.supportsBinary&&n.transport.supportsBinary;e=e||o}e||(c('probe transport "%s" opened',t),r.send([{type:"ping",data:"probe"}]),r.once("packet",function(o){if(!e)if("pong"===o.type&&"probe"===o.data){if(c('probe transport "%s" pong',t),n.upgrading=!0,n.emit("upgrading",r),!r)return;s.priorWebsocketSuccess="websocket"===r.name,c('pausing current transport "%s"',n.transport.name),n.transport.pause(function(){e||"closed"!==n.readyState&&(c("changing transport and sending upgrade packet"),d(),n.setTransport(r),r.send([{type:"upgrade"}]),n.emit("upgrade",r),r=null,n.upgrading=!1,n.flush())})}else{c('probe transport "%s" failed',t);var i=new Error("probe error");i.transport=r.name,n.emit("upgradeError",i)}}))}function i(){e||(e=!0,d(),r.close(),r=null)}function u(e){var o=new Error("probe error: "+e);o.transport=r.name,i(),c('probe transport "%s" failed because of error: %s',t,e),n.emit("upgradeError",o)}function a(){u("transport closed")}function _(){u("socket closed")}function l(t){r&&t.name!==r.name&&(c('"%s" works - aborting "%s"',t.name,r.name),i())}function d(){r.removeListener("open",o),r.removeListener("error",u),r.removeListener("close",a),n.removeListener("close",_),n.removeListener("upgrading",l)}s.priorWebsocketSuccess=!1,r.once("open",o),r.once("error",u),r.once("close",a),this.once("close",_),this.once("upgrading",l),r.open()},s.prototype.onOpen=function(){if(c("socket open"),this.readyState="open",s.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){c("starting upgrade probes");for(var t=0,r=this.upgrades.length;t0)return function(t){if(!((t=String(t)).length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(r){var i=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*c;case"hours":case"hour":case"hrs":case"hr":case"h":return i*o;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(t);if("number"===a&&!1===isNaN(t))return r.long?i(u=t,c,"day")||i(u,o,"hour")||i(u,n,"minute")||i(u,e,"second")||u+" ms":function(t){return t>=c?Math.round(t/c)+"d":t>=o?Math.round(t/o)+"h":t>=n?Math.round(t/n)+"m":t>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,r,e){function n(t){var e;function n(){if(n.enabled){var t=n,o=+new Date,c=o-(e||o);t.diff=c,t.prev=e,t.curr=o,e=o;for(var i=new Array(arguments.length),u=0;u1)for(var e=1;e0&&(i+=e[o].lengths[e[o].lengths.length-1]),e[o].lengths.push(i),e[o].table.length===t&&(n(e[o],e),e[o]={ctor:"_Array",height:o+1,table:[],lengths:[]})}function c(t,r){var e=t.table.length-1;t.table[e]=r,t.lengths[e]=v(r),t.lengths[e]+=e>0?t.lengths[e-1]:0}function i(t,r){if(r.table.length>0){t.table[0]=r,t.lengths[0]=v(r);for(var e=v(t.table[0]),n=1;n0&&(e.lengths=new Array(r)),e}function f(r,e,n){for(var o=d(r.height,Math.min(t,r.table.length+e.table.length-n)),c=d(r.height,o.table.length-(r.table.length+e.table.length-n)),i=0;a(r.table,e.table,i).table.length%t==0;)_(o.table,c.table,i,a(r.table,e.table,i)),_(o.lengths,c.lengths,i,a(r.lengths,e.lengths,i)),i++;for(var u=i,l=new d(r.height-1,0),f=0;i-u-(l.table.length>0?1:0)0)for(var m=l.lengths.length,g=m;g0?l.lengths[g-1]:0;f+=h,p.table.length<=h&&(i++,f=0),l.table.length===t&&(s(o,c,u,l),l=d(r.height-1,0),u++)}for(l.table.length>0&&(s(o,c,u,l),u++);i0&&(r.lengths=t.lengths.slice()),r}function v(t){return 0===t.height?t.table.length:t.lengths[t.lengths.length-1]}function g(t,r){for(var e=t>>5*r.height;r.lengths[e]<=t;)e++;return e}function y(t,r){return 0===r?{ctor:"_Array",height:0,table:[t]}:{ctor:"_Array",height:r,table:[y(t,r-1)],lengths:[1]}}function b(t,r){return r===t.height?t:{ctor:"_Array",height:r,table:[b(t,r-1)],lengths:[v(t)]}}function T(t,r){return{ctor:"_Array",height:t.height+1,table:[t,r],lengths:[v(t),v(t)+v(r)]}}return{empty:r,fromList:function(e){if("[]"===e.ctor)return r;for(var o=new Array(t),c=[],i=0;"[]"!==e.ctor;)o[i]=e._0,e=e._1,++i===t&&(n({ctor:"_Array",height:0,table:o},c),o=new Array(t),i=0);i>0&&n({ctor:"_Array",height:0,table:o.splice(0,i)},c);for(var u=0;u0&&n(c[u],c);var a=c[c.length-1];return a.height>0&&1===a.table.length?a.table[0]:a},toList:function(t){return function t(r,e){for(var n=e.table.length-1;n>=0;n--)r=0===e.height?J.Cons(e.table[n],r):t(r,e.table[n]);return r}(J.Nil,t)},initialize:e(function(e,n){return e<=0?r:function r(e,n,o,c){if(0===n){for(var i=new Array((c-o)%(t+1)),u=0;u0?_[u-1]:0);return{ctor:"_Array",height:n,table:i,lengths:_}}(n,Math.floor(Math.log(e)/Math.log(t)),0,e)}),append:e(function(r,e){if(0===r.table.length)return e;if(0===e.table.length)return r;var n=function t(r,e){if(0===r.height&&0===e.height)return[r,e];if(1!==r.height||1!==e.height)if(r.height===e.height){r=m(r),e=m(e),c(r,(n=t(p(r),h(e)))[1]),i(e,n[0])}else if(r.height>e.height){c(r=m(r),(n=t(p(r),e))[0]),e=b(n[1],n[1].height+1)}else{var n,o=0===(n=t(r,h(e=m(e))))[0].table.length?0:1,a=0===o?1:0;i(e,n[o]),r=b(n[a],n[a].height+1)}if(0===r.table.length||0===e.table.length)return[r,e];var _=u(r,e);return _<=2?[r,e]:f(r,e,_)}(r,e);if(n[0].table.length+n[1].table.length<=t){if(0===n[0].table.length)return n[1];if(0===n[1].table.length)return n[0];if(n[0].table=n[0].table.concat(n[1].table),n[0].height>0){for(var o=v(n[0]),a=0;a0){var _=u(r,e);_>2&&(n=f(n[0],n[1],_))}return T(n[0],n[1])}),push:e(function(r,e){var n=function r(e,n){if(0===n.height)return n.table.length0?e.lengths[o-1]:0),e.table[o]);if(o===e.table.length-1)return c;(n={ctor:"_Array",height:e.height,table:e.table.slice(o,e.table.length+1),lengths:new Array(e.table.length-o)}).table[0]=c;for(var i=0,u=0;u0?e.lengths[n-1]:0),e.table[n]);if(0===n)return o;var c={ctor:"_Array",height:e.height,table:e.table.slice(0,n),lengths:e.lengths.slice(0,n)};return o.table.length>0&&(c.table[n]=o,c.lengths[n]=v(o)+(n>0?c.lengths[n-1]:0)),c}(r,e))}),get:e(function(t,r){if(t<0||t>=v(r))throw new Error("Index "+t+" is out of range. Check the length of your array first or use getMaybe or getWithDefault.");return function(t,r){for(var e=r.height;e>0;e--){for(var n=t>>5*e;r.lengths[n]<=t;)n++;n>0&&(t-=r.lengths[n-1]),r=r.table[n]}return r.table[t]}(t,r)}),set:o(function(t,r,e){return t<0||v(e)<=t?e:function t(r,e,n){if(0===(n=m(n)).height)n.table[r]=e;else{var o=g(r,n);o>0&&(r-=n.lengths[o-1]),n.table[o]=t(r,e,n.table[o])}return n}(t,r,e)}),map:e(function t(r,e){var n={ctor:"_Array",height:e.height,table:new Array(e.table.length)};e.height>0&&(n.lengths=e.lengths);for(var o=0;o0&&(o.lengths=e.lengths);for(var c=0;c0?a[_-1]:0);return{ctor:"_Array",height:n,table:u,lengths:a}}(e,Math.floor(Math.log(e.length)/Math.log(t)),0,e.length)}}}(),y=function(){var t=["LT","EQ","GT"];return{div:e(function(t,r){return t/r|0}),rem:e(function(t,r){return t%r}),mod:e(function t(r,e){if(0===e)throw new Error("Cannot perform mod 0. Division by zero error.");var n=r%e,o=0===r?0:e>0?r>=0?n:n+e:-t(-r,-e);return o===e?0:o}),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:e(Math.atan2),degrees:function(t){return t*Math.PI/180},turns:function(t){return 2*Math.PI*t},fromPolar:function(t){var r=t._0,e=t._1;return b.Tuple2(r*Math.cos(e),r*Math.sin(e))},toPolar:function(t){var r=t._0,e=t._1;return b.Tuple2(Math.sqrt(r*r+e*e),Math.atan2(e,r))},sqrt:Math.sqrt,logBase:e(function(t,r){return Math.log(r)/Math.log(t)}),negate:function(t){return-t},abs:function(t){return t<0?-t:t},min:e(function(t,r){return b.cmp(t,r)<0?t:r}),max:e(function(t,r){return b.cmp(t,r)>0?t:r}),clamp:o(function(t,r,e){return b.cmp(e,t)<0?t:b.cmp(e,r)>0?r:e}),compare:e(function(r,e){return{ctor:t[b.cmp(r,e)+1]}}),xor:e(function(t,r){return t!==r}),not:function(t){return!t},truncate:function(t){return 0|t},ceiling:Math.ceil,floor:Math.floor,round:Math.round,toFloat:function(t){return t},isNaN:isNaN,isInfinite:function(t){return t===1/0||t===-1/0}}}(),b=function(){function t(r,e,n,o){if(n>100)return o.push({x:r,y:e}),!0;if(r===e)return!0;if("object"!=typeof r){if("function"==typeof r)throw new Error('Trying to use `(==)` 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#== which describes why it is this way and what the better version will look like.');return!1}if(null===r||null===e)return!1;if(r instanceof Date)return r.getTime()===e.getTime();if(!("ctor"in r)){for(var c in r)if(!t(r[c],e[c],n+1,o))return!1;return!0}if("RBNode_elm_builtin"!==r.ctor&&"RBEmpty_elm_builtin"!==r.ctor||(r=rr(r),e=rr(e)),"Set_elm_builtin"===r.ctor&&(r=Ud(r),e=Ud(e)),"::"===r.ctor){for(var i=r,u=e;"::"===i.ctor&&"::"===u.ctor;){if(!t(i._0,u._0,n+1,o))return!1;i=i._1,u=u._1}return i.ctor===u.ctor}if("_Array"===r.ctor){var a=g.toJSArray(r),_=g.toJSArray(e);if(a.length!==_.length)return!1;for(var s=0;s";if("boolean"===r)return t?"True":"False";if("number"===r)return t+"";if(t instanceof String)return"'"+u(t,!0)+"'";if("string"===r)return'"'+u(t,!1)+'"';if(null===t)return"null";if("object"===r&&"ctor"in t){var e=t.ctor.substring(0,5);if("_Tupl"===e){var n=[];for(var o in t)"ctor"!==o&&n.push(i(t[o]));return"("+n.join(",")+")"}if("_Task"===e)return"";if("_Array"===t.ctor)return"Array.fromList "+i(Ct(t));if(""===t.ctor)return"";if("_Process"===t.ctor)return"";if("::"===t.ctor){for(n="["+i(t._0),t=t._1;"::"===t.ctor;)n+=","+i(t._0),t=t._1;return n+"]"}if("[]"===t.ctor)return"[]";if("Set_elm_builtin"===t.ctor)return"Set.fromList "+i(Ud(t));if("RBNode_elm_builtin"===t.ctor||"RBEmpty_elm_builtin"===t.ctor)return"Dict.fromList "+i(rr(t));for(var c in n="",t)if("ctor"!==c){var a=i(t[c]),_=a[0];n+=" "+("{"===_||"("===_||"<"===_||'"'===_||a.indexOf(" ")<0?a:"("+a+")")}return t.ctor+n}if("object"===r){if(t instanceof Date)return"<"+t.toString()+">";if(t.elm_web_socket)return"";for(var o in n=[],t)n.push(o+" = "+i(t[o]));return 0===n.length?"{}":"{ "+n.join(", ")+" }"}return""}function u(t,r){var e=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return r?e.replace(/\'/g,"\\'"):e.replace(/\"/g,'\\"')}return{eq:function(r,e){for(var n,o=[],c=t(r,e,0,o);c&&(n=o.pop());)c=t(n.x,n.y,0,o);return c},cmp:function t(r,e){if("object"!=typeof r)return r===e?0:r=1){if(0!==(c=t(r._0,e._0)))return c;if(i>=2){if(0!==(c=t(r._1,e._1)))return c;if(i>=3){if(0!==(c=t(r._2,e._2)))return c;if(i>=4){if(0!==(c=t(r._3,e._3)))return c;if(i>=5){if(0!==(c=t(r._4,e._4)))return c;if(i>=6){if(0!==(c=t(r._5,e._5)))return c;if(i>=7)throw new Error("Comparison error: cannot compare tuples with more than 6 elements.")}}}}}}return 0}throw new Error("Comparison error: comparison is only defined on ints, floats, times, chars, strings, lists of comparable values, and tuples of comparable values.")},Tuple0:{ctor:"_Tuple0"},Tuple2:function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}},chr:function(t){return new String(t)},update:function(t,r){var e={};for(var n in t)e[n]=t[n];for(var n in r)e[n]=r[n];return e},guid:function(t){return r++},append:e(function(t,r){if("string"==typeof t)return t+r;if("[]"===t.ctor)return r;var e=o(t._0,n),c=e;for(t=t._1;"[]"!==t.ctor;)c._1=o(t._0,n),t=t._1,c=c._1;return c._1=r,e}),crash:function(t,r){return function(e){throw new Error("Ran into a `Debug.crash` in module `"+t+"` "+c(r)+"\nThe message provided by the code author is:\n\n "+e)}},crashCase:function(t,r,e){return function(n){throw new Error("Ran into a `Debug.crash` in module `"+t+"`\n\nThis was caused by the `case` expression "+c(r)+".\nOne of the branches ended with a crash and the following value got through:\n\n "+i(e)+"\n\nThe message provided by the code author is:\n\n "+n)}},toString:i}}(),T=(e(function(t,r){var e=r;return l(t,e._0,e._1)}),o(function(t,r,e){return t({ctor:"_Tuple2",_0:r,_1:e})}),o(function(t,r,e){return l(t,e,r)})),w=e(function(t,r){return t}),M=function(t){return t};(A=A||{})["<|"]=e(function(t,r){return t(r)}),(A=A||{})["|>"]=e(function(t,r){return r(t)}),(A=A||{})[">>"]=o(function(t,r,e){return r(t(e))}),(A=A||{})["<<"]=o(function(t,r,e){return t(r(e))}),(A=A||{})["++"]=b.append;var k=b.toString,S=(y.isInfinite,y.isNaN,y.toFloat),z=(y.ceiling,y.floor),C=(y.truncate,y.round);y.not,y.xor,(A=A||{})["||"]=y.or,(A=A||{})["&&"]=y.and;var R=y.max,x=y.min,L=y.compare;(A=A||{})[">="]=y.ge,(A=A||{})["<="]=y.le,(A=A||{})[">"]=y.gt,(A=A||{})["<"]=y.lt,(A=A||{})["/="]=y.neq,(A=A||{})["=="]=y.eq,y.e;var E=y.pi,V=(y.clamp,y.logBase,y.abs),N=(y.negate,y.sqrt);y.atan2,y.atan,y.asin,y.acos,y.tan,y.sin,y.cos,(A=A||{})["^"]=y.exp,(A=A||{})["%"]=y.mod;var A,H=y.rem;(A=A||{})["//"]=y.div,(A=A||{})["/"]=y.floatDiv,(A=A||{})["*"]=y.mul,(A=A||{})["-"]=y.sub,(A=A||{})["+"]=y.add,y.toPolar,y.fromPolar;var I=y.turns,D=y.degrees,P=e(function(t,r){var e=r;return"Just"===e.ctor?e._0:t}),B={ctor:"Nothing"},q=e(function(t,r){var e=r;return"Just"===e.ctor?t(e._0):B}),F=function(t){return{ctor:"Just",_0:t}},O=e(function(t,r){var e=r;return"Just"===e.ctor?F(t(e._0)):B}),U=o(function(t,r,e){var n={ctor:"_Tuple2",_0:r,_1:e};return"_Tuple2"===n.ctor&&"Just"===n._0.ctor&&"Just"===n._1.ctor?F(l(t,n._0._0,n._1._0)):B}),J=(c(function(t,r,e,n){var o={ctor:"_Tuple3",_0:r,_1:e,_2:n};return"_Tuple3"===o.ctor&&"Just"===o._0.ctor&&"Just"===o._1.ctor&&"Just"===o._2.ctor?F(d(t,o._0._0,o._1._0,o._2._0)):B}),i(function(t,r,e,n,o){var c={ctor:"_Tuple4",_0:r,_1:e,_2:n,_3:o};return"_Tuple4"===c.ctor&&"Just"===c._0.ctor&&"Just"===c._1.ctor&&"Just"===c._2.ctor&&"Just"===c._3.ctor?F(f(t,c._0._0,c._1._0,c._2._0,c._3._0)):B}),u(function(t,r,e,n,o,c){var i={ctor:"_Tuple5",_0:r,_1:e,_2:n,_3:o,_4:c};return"_Tuple5"===i.ctor&&"Just"===i._0.ctor&&"Just"===i._1.ctor&&"Just"===i._2.ctor&&"Just"===i._3.ctor&&"Just"===i._4.ctor?F(p(t,i._0._0,i._1._0,i._2._0,i._3._0,i._4._0)):B}),function(){var t={ctor:"[]"};function r(t,r){return{ctor:"::",_0:t,_1:r}}function n(e){for(var n=t,o=e.length;o--;)n=r(e[o],n);return n}function a(t){for(var r=[];"[]"!==t.ctor;)r.push(t._0),t=t._1;return r}return{Nil:t,Cons:r,cons:e(r),toArray:a,fromArray:n,foldr:o(function(t,r,e){for(var n=a(e),o=r,c=n.length;c--;)o=l(t,n[c],o);return o}),map2:o(function(t,r,e){for(var o=[];"[]"!==r.ctor&&"[]"!==e.ctor;)o.push(l(t,r._0,e._0)),r=r._1,e=e._1;return n(o)}),map3:c(function(t,r,e,o){for(var c=[];"[]"!==r.ctor&&"[]"!==e.ctor&&"[]"!==o.ctor;)c.push(d(t,r._0,e._0,o._0)),r=r._1,e=e._1,o=o._1;return n(c)}),map4:i(function(t,r,e,o,c){for(var i=[];"[]"!==r.ctor&&"[]"!==e.ctor&&"[]"!==o.ctor&&"[]"!==c.ctor;)i.push(f(t,r._0,e._0,o._0,c._0)),r=r._1,e=e._1,o=o._1,c=c._1;return n(i)}),map5:u(function(t,r,e,o,c,i){for(var u=[];"[]"!==r.ctor&&"[]"!==e.ctor&&"[]"!==o.ctor&&"[]"!==c.ctor&&"[]"!==i.ctor;)u.push(p(t,r._0,e._0,o._0,c._0,i._0)),r=r._1,e=e._1,o=o._1,c=c._1,i=i._1;return n(u)}),sortBy:e(function(t,r){return n(a(r).sort(function(r,e){return b.cmp(t(r),t(e))}))}),sortWith:e(function(t,r){return n(a(r).sort(function(r,e){var n=t(r)(e).ctor;return"EQ"===n?0:"LT"===n?-1:1}))})}}()),j=J.sortWith,K=J.sortBy,W=e(function(t,r){for(;;){if(b.cmp(t,0)<1)return r;var e=r;if("[]"===e.ctor)return r;t-=1,r=e._1}}),G=J.map5,X=J.map4,Q=J.map3,Y=J.map2,$=e(function(t,r){for(;;){var e=r;if("[]"===e.ctor)return!1;if(t(e._0))return!0;t=t,r=e._1}}),Z=e(function(t,r){return!l($,function(r){return!t(r)},r)}),tt=J.foldr,rt=o(function(t,r,e){for(;;){var n=e;if("[]"===n.ctor)return r;var o=t,c=l(t,n._0,r);t=o,r=c,e=n._1}}),et=function(t){return d(rt,e(function(t,r){return r+1}),0,t)},nt=e(function(t,r){return l($,function(r){return b.eq(r,t)},r)}),ot=function(t){return"[]"===t.ctor},ct=function(t){var r=t;return"::"===r.ctor?F(r._1):B},it=function(t){var r=t;return"::"===r.ctor?F(r._0):B},ut=ut||{};ut["::"]=J.cons;var at=e(function(t,r){return d(tt,e(function(r,e){return{ctor:"::",_0:t(r),_1:e}}),{ctor:"[]"},r)}),_t=e(function(t,r){var n=e(function(r,e){return t(r)?{ctor:"::",_0:r,_1:e}:e});return d(tt,n,{ctor:"[]"},r)}),st=o(function(t,r,e){var n=t(r);return"Just"===n.ctor?{ctor:"::",_0:n._0,_1:e}:e}),lt=e(function(t,r){return d(tt,st(t),{ctor:"[]"},r)}),dt=function(t){return d(rt,e(function(t,r){return{ctor:"::",_0:t,_1:r}}),{ctor:"[]"},t)},ft=o(function(t,r,n){var o=e(function(r,e){var n=e;return"::"===n.ctor?{ctor:"::",_0:l(t,r,n._0),_1:e}:{ctor:"[]"}});return dt(d(rt,o,{ctor:"::",_0:r,_1:{ctor:"[]"}},n))}),pt=e(function(t,r){return"[]"===r.ctor?t:d(tt,e(function(t,r){return{ctor:"::",_0:t,_1:r}}),r,t)}),ht=function(t){return d(tt,pt,{ctor:"[]"},t)},mt=e(function(t,r){return ht(l(at,t,r))}),vt=(e(function(t,r){var n=e(function(r,e){var n=e,o=n._0,c=n._1;return t(r)?{ctor:"_Tuple2",_0:{ctor:"::",_0:r,_1:o},_1:c}:{ctor:"_Tuple2",_0:o,_1:{ctor:"::",_0:r,_1:c}}});return d(tt,n,{ctor:"_Tuple2",_0:{ctor:"[]"},_1:{ctor:"[]"}},r)}),e(function(t,r){var n=r;if("[]"===n.ctor)return{ctor:"[]"};var o=e(function(r,e){return{ctor:"::",_0:t,_1:{ctor:"::",_0:r,_1:e}}}),c=d(tt,o,{ctor:"[]"},n._1);return{ctor:"::",_0:n._0,_1:c}})),gt=o(function(t,r,e){for(;;){if(b.cmp(t,0)<1)return e;var n=r;if("[]"===n.ctor)return e;t-=1,r=n._1,e={ctor:"::",_0:n._0,_1:e}}}),yt=e(function(t,r){return dt(d(gt,t,r,{ctor:"[]"}))}),bt=o(function(t,r,e){if(b.cmp(r,0)<1)return{ctor:"[]"};var n={ctor:"_Tuple2",_0:r,_1:e};t:do{r:do{if("_Tuple2"!==n.ctor)break t;if("[]"===n._1.ctor)return e;if("::"!==n._1._1.ctor){if(1===n._0)break r;break t}switch(n._0){case 1:break r;case 2:return{ctor:"::",_0:n._1._0,_1:{ctor:"::",_0:n._1._1._0,_1:{ctor:"[]"}}};case 3:if("::"===n._1._1._1.ctor)return{ctor:"::",_0:n._1._0,_1:{ctor:"::",_0:n._1._1._0,_1:{ctor:"::",_0:n._1._1._1._0,_1:{ctor:"[]"}}}};break t;default:if("::"===n._1._1._1.ctor&&"::"===n._1._1._1._1.ctor){var o=n._1._1._1._0,c=n._1._1._0,i=n._1._0,u=n._1._1._1._1._0,a=n._1._1._1._1._1;return b.cmp(t,1e3)>0?{ctor:"::",_0:i,_1:{ctor:"::",_0:c,_1:{ctor:"::",_0:o,_1:{ctor:"::",_0:u,_1:l(yt,r-4,a)}}}}:{ctor:"::",_0:i,_1:{ctor:"::",_0:c,_1:{ctor:"::",_0:o,_1:{ctor:"::",_0:u,_1:d(bt,t+1,r-4,a)}}}}}break t}}while(0);return{ctor:"::",_0:n._1._0,_1:{ctor:"[]"}}}while(0);return e}),Tt=e(function(t,r){return d(bt,0,t,r)}),wt=o(function(t,r,e){for(;;){if(b.cmp(r,0)<1)return t;t={ctor:"::",_0:e,_1:t},r-=1,e=e}}),Mt=e(function(t,r){return d(wt,{ctor:"[]"},t,r)}),kt=o(function(t,r,e){for(;;){if(!(b.cmp(t,r)<1))return e;var n={ctor:"::",_0:r,_1:e};t=t,r-=1,e=n}}),St=e(function(t,r){return d(kt,t,r,{ctor:"[]"})}),zt=e(function(t,r){return d(Y,t,l(St,0,et(r)-1),r)}),Ct=(g.append,g.length,g.slice,g.set,e(function(t,r){return b.cmp(0,t)<1&&b.cmp(t,g.length(r))<0?F(l(g.get,t,r)):B}),g.push,g.empty,e(function(t,r){var n=e(function(r,e){return t(r)?l(g.push,r,e):e});return d(g.foldl,n,g.empty,r)}),g.foldr,g.foldl,g.indexedMap,g.map,g.toList),Rt=g.fromList,xt=g.initialize,Lt=(e(function(t,r){return l(xt,t,w(r))}),{crash:function(t){throw new Error(t)},log:e(function(t,r){var e=t+": "+b.toString(r),n=n||{};return n.stdout?n.stdout.write(e):console.log(e),r})}),Et=function(){function t(t,r){for(var e="";t>0;)1&t&&(e+=r),t>>=1,r+=r;return e}function r(t){return It("could not convert string '"+t+"' to an Int")}function n(t){return It("could not convert string '"+t+"' to a Float")}return{isEmpty:function(t){return 0===t.length},cons:e(function(t,r){return t+r}),uncons:function(t){var r=t[0];return r?F(b.Tuple2(b.chr(r),t.slice(1))):B},append:e(function(t,r){return t+r}),concat:function(t){return J.toArray(t).join("")},length:function(t){return t.length},map:e(function(t,r){for(var e=r.split(""),n=e.length;n--;)e[n]=t(b.chr(e[n]));return e.join("")}),filter:e(function(t,r){return r.split("").map(b.chr).filter(t).join("")}),reverse:function(t){return t.split("").reverse().join("")},foldl:o(function(t,r,e){for(var n=e.length,o=0;o-1}),startsWith:e(function(t,r){return 0===r.indexOf(t)}),endsWith:e(function(t,r){return r.length>=t.length&&r.lastIndexOf(t)===r.length-t.length}),indexes:e(function(t,r){var e=t.length;if(e<1)return J.Nil;for(var n=0,o=[];(n=r.indexOf(t,n))>-1;)o.push(n),n+=e;return J.fromArray(o)}),toInt:function(t){var e=t.length;if(0===e)return r(t);if("0"===(o=t[0])&&"x"===t[1]){for(var n=2;n"9"||o<"0"&&"-"!==o&&"+"!==o)return r(t);for(n=1;n-1&&b.cmp(n,Vt(r))<1}),At=(l(Nt,b.chr("A"),b.chr("Z")),l(Nt,b.chr("a"),b.chr("z")),l(Nt,b.chr("0"),b.chr("9")),l(Nt,b.chr("0"),b.chr("7")),function(t){var r=t;return"Ok"===r.ctor?F(r._0):B}),Ht=e(function(t,r){var e=r;return"Ok"===e.ctor?e._0:t}),It=function(t){return{ctor:"Err",_0:t}},Dt=e(function(t,r){var e=r;return"Ok"===e.ctor?t(e._0):It(e._0)}),Pt=function(t){return{ctor:"Ok",_0:t}},Bt=e(function(t,r){var e=r;return"Ok"===e.ctor?Pt(t(e._0)):It(e._0)}),qt=(o(function(t,r,e){var n={ctor:"_Tuple2",_0:r,_1:e};return"Ok"===n._0.ctor?"Ok"===n._1.ctor?Pt(l(t,n._0._0,n._1._0)):It(n._1._0):It(n._0._0)}),c(function(t,r,e,n){var o={ctor:"_Tuple3",_0:r,_1:e,_2:n};return"Ok"===o._0.ctor?"Ok"===o._1.ctor?"Ok"===o._2.ctor?Pt(d(t,o._0._0,o._1._0,o._2._0)):It(o._2._0):It(o._1._0):It(o._0._0)}),i(function(t,r,e,n,o){var c={ctor:"_Tuple4",_0:r,_1:e,_2:n,_3:o};return"Ok"===c._0.ctor?"Ok"===c._1.ctor?"Ok"===c._2.ctor?"Ok"===c._3.ctor?Pt(f(t,c._0._0,c._1._0,c._2._0,c._3._0)):It(c._3._0):It(c._2._0):It(c._1._0):It(c._0._0)}),u(function(t,r,e,n,o,c){var i={ctor:"_Tuple5",_0:r,_1:e,_2:n,_3:o,_4:c};return"Ok"===i._0.ctor?"Ok"===i._1.ctor?"Ok"===i._2.ctor?"Ok"===i._3.ctor?"Ok"===i._4.ctor?Pt(p(t,i._0._0,i._1._0,i._2._0,i._3._0,i._4._0)):It(i._4._0):It(i._3._0):It(i._2._0):It(i._1._0):It(i._0._0)}),e(function(t,r){var e=r;return"Ok"===e.ctor?Pt(e._0):It(t(e._0))})),Ft=(e(function(t,r){var e=r;return"Just"===e.ctor?Pt(e._0):It(t)}),Et.fromList,Et.toList,Et.toFloat),Ot=Et.toInt,Ut=(Et.indexes,Et.indexes,Et.endsWith,Et.startsWith),Jt=Et.contains,jt=(Et.all,Et.any,Et.toLower),Kt=(Et.toUpper,Et.lines,Et.words,Et.trimRight,Et.trimLeft,Et.trim),Wt=(Et.padRight,Et.padLeft,Et.pad,Et.dropRight,Et.dropLeft,Et.right,Et.left,Et.slice,Et.repeat,Et.join),Gt=Et.split,Xt=(Et.foldr,Et.foldl),Qt=(Et.reverse,Et.filter,Et.map),Yt=Et.length,$t=Et.concat,Zt=(Et.append,Et.uncons,Et.cons,Et.isEmpty),tr=o(function(t,r,e){for(;;){var n=e;if("RBEmpty_elm_builtin"===n.ctor)return r;var o=t,c=d(t,n._1,n._2,d(tr,t,r,n._4));t=o,r=c,e=n._3}}),rr=function(t){return d(tr,o(function(t,r,e){return{ctor:"::",_0:{ctor:"_Tuple2",_0:t,_1:r},_1:e}}),{ctor:"[]"},t)},er=o(function(t,r,e){for(;;){var n=e;if("RBEmpty_elm_builtin"===n.ctor)return r;var o=t,c=d(t,n._1,n._2,d(er,t,r,n._3));t=o,r=c,e=n._4}}),nr=u(function(t,r,n,c,i,u){var a=o(function(e,o,c){for(;;){var i=c,u=i._1,a=i._0,_=a;if("[]"===_.ctor)return{ctor:"_Tuple2",_0:a,_1:d(n,e,o,u)};var s=_._1,l=_._0._1,p=_._0._0;if(!(b.cmp(p,e)<0))return b.cmp(p,e)>0?{ctor:"_Tuple2",_0:a,_1:d(n,e,o,u)}:{ctor:"_Tuple2",_0:s,_1:f(r,p,l,o,u)};e=e,o=o,c={ctor:"_Tuple2",_0:s,_1:d(t,p,l,u)}}}),_=d(er,a,{ctor:"_Tuple2",_0:rr(c),_1:u},i),s=_._0,l=_._1;return d(rt,e(function(r,e){var n=r;return d(t,n._0,n._1,e)}),l,s)}),or=c(function(t,r,e,n){return Lt.crash($t({ctor:"::",_0:"Internal red-black tree invariant violated, expected ",_1:{ctor:"::",_0:t,_1:{ctor:"::",_0:" and got ",_1:{ctor:"::",_0:k(r),_1:{ctor:"::",_0:"/",_1:{ctor:"::",_0:e,_1:{ctor:"::",_0:"/",_1:{ctor:"::",_0:n,_1:{ctor:"::",_0:"\nPlease report this bug to ",_1:{ctor:"[]"}}}}}}}}}}))}),cr=function(t){var r=t;t:do{if("RBNode_elm_builtin"===r.ctor){if("BBlack"===r._0.ctor)return!0;break t}if("LBBlack"===r._0.ctor)return!0;break t}while(0);return!1},ir=e(function(t,r){for(;;){var e=r;if("RBEmpty_elm_builtin"===e.ctor)return t;t=l(ir,t+1,e._4),r=e._3}}),ur=e(function(t,r){t:for(;;){var e=r;if("RBEmpty_elm_builtin"===e.ctor)return B;switch(l(L,t,e._1).ctor){case"LT":t=t,r=e._3;continue t;case"EQ":return F(e._2);default:t=t,r=e._4;continue t}}}),ar=e(function(t,r){return"Just"===l(ur,t,r).ctor}),_r=o(function(t,r,e){for(;;){var n=e;if("RBEmpty_elm_builtin"===n.ctor)return{ctor:"_Tuple2",_0:t,_1:r};t=n._1,r=n._2,e=n._4}}),sr={ctor:"NBlack"},lr={ctor:"BBlack"},dr={ctor:"Black"},fr={ctor:"Red"},pr=function(t){switch(t.ctor){case"BBlack":return dr;case"Black":return fr;case"Red":return sr;default:return Lt.crash("Can't make a negative black node less black!")}},hr={ctor:"LBBlack"},mr={ctor:"LBlack"},vr=function(t){return{ctor:"RBEmpty_elm_builtin",_0:t}},gr=vr(mr),yr=i(function(t,r,e,n,o){return{ctor:"RBNode_elm_builtin",_0:t,_1:r,_2:e,_3:n,_4:o}}),br=function(t){var r=t;return"RBNode_elm_builtin"===r.ctor?p(yr,pr(r._0),r._1,r._2,r._3,r._4):vr(mr)},Tr=function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return p(yr,pr(t),n,o,p(yr,dr,r,e,u,a),p(yr,dr,c,i,_,s))}}}}}}}}}}},wr=function(t){var r=t;return"RBEmpty_elm_builtin"===r.ctor?Lt.crash("can't make a Leaf red"):p(yr,fr,r._1,r._2,r._3,r._4)},Mr=i(function(t,r,e,n,o){var c=p(yr,t,r,e,n,o);return function(t){var r=c;if("RBNode_elm_builtin"===r.ctor){var e=r._0;return b.eq(e,dr)||b.eq(e,lr)}return!0}()?function(t){var r=t;t:do{r:do{e:do{n:do{o:do{c:do{i:do{if("RBNode_elm_builtin"!==r.ctor)break t;if("RBNode_elm_builtin"===r._3.ctor)if("RBNode_elm_builtin"===r._4.ctor)switch(r._3._0.ctor){case"Red":switch(r._4._0.ctor){case"Red":if("RBNode_elm_builtin"===r._3._3.ctor&&"Red"===r._3._3._0.ctor)break i;if("RBNode_elm_builtin"===r._3._4.ctor&&"Red"===r._3._4._0.ctor)break c;if("RBNode_elm_builtin"===r._4._3.ctor&&"Red"===r._4._3._0.ctor)break o;if("RBNode_elm_builtin"===r._4._4.ctor&&"Red"===r._4._4._0.ctor)break n;break t;case"NBlack":if("RBNode_elm_builtin"===r._3._3.ctor&&"Red"===r._3._3._0.ctor)break i;if("RBNode_elm_builtin"===r._3._4.ctor&&"Red"===r._3._4._0.ctor)break c;if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._4._3.ctor&&"Black"===r._4._3._0.ctor&&"RBNode_elm_builtin"===r._4._4.ctor&&"Black"===r._4._4._0.ctor)break e;break t;default:if("RBNode_elm_builtin"===r._3._3.ctor&&"Red"===r._3._3._0.ctor)break i;if("RBNode_elm_builtin"===r._3._4.ctor&&"Red"===r._3._4._0.ctor)break c;break t}case"NBlack":switch(r._4._0.ctor){case"Red":if("RBNode_elm_builtin"===r._4._3.ctor&&"Red"===r._4._3._0.ctor)break o;if("RBNode_elm_builtin"===r._4._4.ctor&&"Red"===r._4._4._0.ctor)break n;if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._3._3.ctor&&"Black"===r._3._3._0.ctor&&"RBNode_elm_builtin"===r._3._4.ctor&&"Black"===r._3._4._0.ctor)break r;break t;case"NBlack":if("BBlack"===r._0.ctor){if("RBNode_elm_builtin"===r._4._3.ctor&&"Black"===r._4._3._0.ctor&&"RBNode_elm_builtin"===r._4._4.ctor&&"Black"===r._4._4._0.ctor)break e;if("RBNode_elm_builtin"===r._3._3.ctor&&"Black"===r._3._3._0.ctor&&"RBNode_elm_builtin"===r._3._4.ctor&&"Black"===r._3._4._0.ctor)break r;break t}break t;default:if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._3._3.ctor&&"Black"===r._3._3._0.ctor&&"RBNode_elm_builtin"===r._3._4.ctor&&"Black"===r._3._4._0.ctor)break r;break t}default:switch(r._4._0.ctor){case"Red":if("RBNode_elm_builtin"===r._4._3.ctor&&"Red"===r._4._3._0.ctor)break o;if("RBNode_elm_builtin"===r._4._4.ctor&&"Red"===r._4._4._0.ctor)break n;break t;case"NBlack":if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._4._3.ctor&&"Black"===r._4._3._0.ctor&&"RBNode_elm_builtin"===r._4._4.ctor&&"Black"===r._4._4._0.ctor)break e;break t;default:break t}}else switch(r._3._0.ctor){case"Red":if("RBNode_elm_builtin"===r._3._3.ctor&&"Red"===r._3._3._0.ctor)break i;if("RBNode_elm_builtin"===r._3._4.ctor&&"Red"===r._3._4._0.ctor)break c;break t;case"NBlack":if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._3._3.ctor&&"Black"===r._3._3._0.ctor&&"RBNode_elm_builtin"===r._3._4.ctor&&"Black"===r._3._4._0.ctor)break r;break t;default:break t}else{if("RBNode_elm_builtin"!==r._4.ctor)break t;switch(r._4._0.ctor){case"Red":if("RBNode_elm_builtin"===r._4._3.ctor&&"Red"===r._4._3._0.ctor)break o;if("RBNode_elm_builtin"===r._4._4.ctor&&"Red"===r._4._4._0.ctor)break n;break t;case"NBlack":if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._4._3.ctor&&"Black"===r._4._3._0.ctor&&"RBNode_elm_builtin"===r._4._4.ctor&&"Black"===r._4._4._0.ctor)break e;break t;default:break t}}}while(0);return Tr(r._0)(r._3._3._1)(r._3._3._2)(r._3._1)(r._3._2)(r._1)(r._2)(r._3._3._3)(r._3._3._4)(r._3._4)(r._4)}while(0);return Tr(r._0)(r._3._1)(r._3._2)(r._3._4._1)(r._3._4._2)(r._1)(r._2)(r._3._3)(r._3._4._3)(r._3._4._4)(r._4)}while(0);return Tr(r._0)(r._1)(r._2)(r._4._3._1)(r._4._3._2)(r._4._1)(r._4._2)(r._3)(r._4._3._3)(r._4._3._4)(r._4._4)}while(0);return Tr(r._0)(r._1)(r._2)(r._4._1)(r._4._2)(r._4._4._1)(r._4._4._2)(r._3)(r._4._3)(r._4._4._3)(r._4._4._4)}while(0);return p(yr,dr,r._4._3._1,r._4._3._2,p(yr,dr,r._1,r._2,r._3,r._4._3._3),p(Mr,dr,r._4._1,r._4._2,r._4._3._4,wr(r._4._4)))}while(0);return p(yr,dr,r._3._4._1,r._3._4._2,p(Mr,dr,r._3._1,r._3._2,wr(r._3._3),r._3._4._3),p(yr,dr,r._1,r._2,r._3._4._4,r._4))}while(0);return t}(c):c}),kr=i(function(t,r,e,n,o){return cr(n)||cr(o)?p(Mr,function(t){switch(t.ctor){case"Black":return lr;case"Red":return dr;case"NBlack":return fr;default:return Lt.crash("Can't make a double black node more black!")}}(t),r,e,br(n),br(o)):p(yr,t,r,e,n,o)}),Sr=i(function(t,r,e,n,o){var c=o;return"RBEmpty_elm_builtin"===c.ctor?d(zr,t,n,o):p(kr,t,r,e,n,p(Sr,c._0,c._1,c._2,c._3,c._4))}),zr=o(function(t,r,e){var n={ctor:"_Tuple2",_0:r,_1:e};if("RBEmpty_elm_builtin"!==n._0.ctor){if("RBEmpty_elm_builtin"===n._1.ctor){var o=n._1._0,c=n._0._0,i={ctor:"_Tuple3",_0:t,_1:c,_2:o};return"_Tuple3"===i.ctor&&"Black"===i._0.ctor&&"Red"===i._1.ctor&&"LBlack"===i._2.ctor?p(yr,dr,n._0._1,n._0._2,n._0._3,n._0._4):f(or,"Black/Red/LBlack",t,k(c),k(o))}var u=n._0._2,a=n._0._4,_=n._0._1,s=p(Sr,n._0._0,_,u,n._0._3,a),l=d(_r,_,u,a),h=l._0,m=l._1;return p(kr,t,h,m,s,e)}if("RBEmpty_elm_builtin"!==n._1.ctor){var v=n._1._0,g=n._0._0,y={ctor:"_Tuple3",_0:t,_1:g,_2:v};return"_Tuple3"===y.ctor&&"Black"===y._0.ctor&&"LBlack"===y._1.ctor&&"Red"===y._2.ctor?p(yr,dr,n._1._1,n._1._2,n._1._3,n._1._4):f(or,"Black/LBlack/Red",t,k(g),k(v))}switch(t.ctor){case"Red":return vr(mr);case"Black":return vr(hr);default:return Lt.crash("cannot have bblack or nblack nodes at this point")}}),Cr=e(function(t,r){var e=r;if("RBEmpty_elm_builtin"===e.ctor)return vr(mr);var n=e._1;return p(yr,e._0,n,l(t,n,e._2),l(Cr,t,e._3),l(Cr,t,e._4))}),Rr={ctor:"Same"},xr={ctor:"Remove"},Lr={ctor:"Insert"},Er=o(function(t,r,e){var n,o=function(e){var n=e;if("RBEmpty_elm_builtin"===n.ctor){var c=r(B);return"Nothing"===c.ctor?{ctor:"_Tuple2",_0:Rr,_1:gr}:{ctor:"_Tuple2",_0:Lr,_1:p(yr,fr,t,c._0,gr,gr)}}var i=n._2,u=n._4,a=n._3,_=n._1,s=n._0;switch(l(L,t,_).ctor){case"EQ":var f=r(F(i));return"Nothing"===f.ctor?{ctor:"_Tuple2",_0:xr,_1:d(zr,s,a,u)}:{ctor:"_Tuple2",_0:Rr,_1:p(yr,s,_,f._0,a,u)};case"LT":var h=o(a),m=h._0,v=h._1;switch(m.ctor){case"Same":return{ctor:"_Tuple2",_0:Rr,_1:p(yr,s,_,i,v,u)};case"Insert":return{ctor:"_Tuple2",_0:Lr,_1:p(Mr,s,_,i,v,u)};default:return{ctor:"_Tuple2",_0:xr,_1:p(kr,s,_,i,v,u)}}default:var g=o(u),y=(m=g._0,g._1);switch(m.ctor){case"Same":return{ctor:"_Tuple2",_0:Rr,_1:p(yr,s,_,i,a,y)};case"Insert":return{ctor:"_Tuple2",_0:Lr,_1:p(Mr,s,_,i,a,y)};default:return{ctor:"_Tuple2",_0:xr,_1:p(kr,s,_,i,a,y)}}}},c=o(e),i=c._0,u=c._1;switch(i.ctor){case"Same":return u;case"Insert":return function(t){var r=t;return"RBNode_elm_builtin"===r.ctor&&"Red"===r._0.ctor?p(yr,dr,r._1,r._2,r._3,r._4):t}(u);default:return"RBEmpty_elm_builtin"===(n=u).ctor?vr(mr):p(yr,dr,n._1,n._2,n._3,n._4)}}),Vr=o(function(t,r,e){return d(Er,t,w(F(r)),e)}),Nr=(e(function(t,r){return d(Vr,t,r,gr)}),e(function(t,r){return d(er,Vr,r,t)})),Ar=e(function(t,r){var e=o(function(r,e,n){return l(t,r,e)?d(Vr,r,e,n):n});return d(er,e,gr,r)}),Hr=e(function(t,r){return l(Ar,e(function(t,e){return l(ar,t,r)}),t)}),Ir=e(function(t,r){var e=o(function(r,e,n){var o=n,c=o._1,i=o._0;return l(t,r,e)?{ctor:"_Tuple2",_0:d(Vr,r,e,i),_1:c}:{ctor:"_Tuple2",_0:i,_1:d(Vr,r,e,c)}});return d(er,e,{ctor:"_Tuple2",_0:gr,_1:gr},r)}),Dr=function(t){return d(rt,e(function(t,r){var e=t;return d(Vr,e._0,e._1,r)}),gr,t)},Pr=e(function(t,r){return d(Er,t,w(B),r)}),Br=e(function(t,r){return d(er,o(function(t,r,e){return l(Pr,t,e)}),t,r)}),qr=function(){function t(t,r){return{ctor:"",tag:"map-many",func:t,decoders:r}}function r(t){return{tag:"ok",value:t}}function n(t,r){return{tag:"primitive",type:t,value:r}}function l(t,r){return{tag:"index",index:t,rest:r}}function d(t,r){return{tag:"field",field:t,rest:r}}function l(t,r){return{tag:"index",index:t,rest:r}}function f(t,e){var o=function t(e,o){switch(e.tag){case"bool":return"boolean"==typeof o?r(o):n("a Bool",o);case"int":return"number"!=typeof o?n("an Int",o):-2147483647=o.length?n("a longer array. Need index "+s+" but there are only "+o.length+" entries",o):"ok"===(w=t(e.decoder,o[s])).tag?w:l(s,w):n("an array",o);case"key-value":if("object"!=typeof o||null===o||o instanceof Array)return n("an object",o);var f=J.Nil;for(var p in o){if("ok"!==(w=t(e.decoder,o[p])).tag)return d(p,w);var h=b.Tuple2(p,w.value);f=J.Cons(h,f)}return r(f);case"map-many":var m=e.func,v=e.decoders;for(i=0;i",tag:"null",value:t}},decodePrimitive:function(t){return{ctor:"",tag:t}},decodeContainer:e(function(t,r){return{ctor:"",tag:t,decoder:r}}),decodeField:e(function(t,r){return{ctor:"",tag:"field",field:t,decoder:r}}),decodeIndex:e(function(t,r){return{ctor:"",tag:"index",index:t,decoder:r}}),map1:e(function(r,e){return t(r,[e])}),map2:o(function(r,e,n){return t(r,[e,n])}),map3:c(function(r,e,n,o){return t(r,[e,n,o])}),map4:i(function(r,e,n,o,c){return t(r,[e,n,o,c])}),map5:u(function(r,e,n,o,c,i){return t(r,[e,n,o,c,i])}),map6:a(function(r,e,n,o,c,i,u){return t(r,[e,n,o,c,i,u])}),map7:_(function(r,e,n,o,c,i,u,a){return t(r,[e,n,o,c,i,u,a])}),map8:s(function(r,e,n,o,c,i,u,a,_){return t(r,[e,n,o,c,i,u,a,_])}),decodeKeyValuePairs:function(t){return{ctor:"",tag:"key-value",decoder:t}},andThen:e(function(t,r){return{ctor:"",tag:"andThen",decoder:r,callback:t}}),fail:function(t){return{ctor:"",tag:"fail",msg:t}},succeed:function(t){return{ctor:"",tag:"succeed",msg:t}},oneOf:function(t){return{ctor:"",tag:"oneOf",decoders:t}},identity:function(t){return t},encodeNull:null,encodeArray:g.toJSArray,encodeList:J.toArray,encodeObject:function(t){for(var r={};"[]"!==t.ctor;){var e=t._0;r[e._0]=e._1,t=t._1}return r},equality:p}}(),Fr=(qr.encodeList,qr.encodeArray,qr.encodeObject),Or=qr.encodeNull,Ur=qr.identity,Jr=qr.identity,jr=qr.identity,Kr=qr.identity,Wr=qr.encode,Gr=qr.decodeNull,Xr=qr.decodePrimitive("value"),Qr=qr.andThen,Yr=qr.fail,$r=qr.succeed,Zr=qr.run,te=qr.runOnString,re=(qr.map8,qr.map7,qr.map6),ee=qr.map5,ne=qr.map4,oe=qr.map3,ce=qr.map2,ie=qr.map1,ue=qr.oneOf,ae=function(t){return l(qr.decodeContainer,"maybe",t)},_e=(qr.decodeIndex,qr.decodeField),se=e(function(t,r){return d(tt,_e,r,t)}),le=(qr.decodeKeyValuePairs,function(t){return l(qr.decodeContainer,"list",t)}),de=function(t){return ue({ctor:"::",_0:Gr(B),_1:{ctor:"::",_0:l(ie,F,t),_1:{ctor:"[]"}}})},fe=qr.decodePrimitive("float"),pe=qr.decodePrimitive("int"),he=qr.decodePrimitive("bool"),me=qr.decodePrimitive("string"),ve=(Lt.crash,Lt.log),ge=(e(function(t,r){var e=r;return{ctor:"_Tuple2",_0:e._0,_1:t(e._1)}}),e(function(t,r){var e=r;return{ctor:"_Tuple2",_0:t(e._0),_1:e._1}}),function(t){return t._1}),ye=function(t){return t._0},be=function(){function t(t,r){return function(t){}}function r(t,r,e,o){var u,a={},s=i(Te.nativeBinding(function(r){var n=t._0;u=o(d,n);var c=t._1,i=e(n);_(a,c,i),r(Te.succeed(n))}),function(t,n){return Te.nativeBinding(function(o){var c=l(r,t,n);n=c._0,u(n);var i=c._1,s=e(n);_(a,i,s),o(Te.succeed(n))})});function d(t){Te.rawSend(s,t)}var f=function(t,r){var e;for(var o in n){var i=n[o];i.isForeign&&((e=e||{})[o]="cmd"===i.tag?m(o):g(o,r)),t[o]=c(i,r)}return e}(a,d);return f?{ports:f}:{}}var n={};function c(t,r){var e={main:r,self:void 0},n=t.tag,o=t.onEffects,c=t.onSelfMsg,u=i(t.init,function(t,r){if("self"===t.ctor)return d(c,e,t._0,r);var i=t._0;switch(n){case"cmd":return d(o,e,i.cmds,r);case"sub":return d(o,e,i.subs,r);case"fx":return f(o,e,i.cmds,i.subs,r)}});return e.self=u,u}function i(t,r){var e=Te.andThen,n=l(e,function t(n){var o=Te.receive(function(t){return r(t,n)});return l(e,t,o)},t);return Te.rawSpawn(n)}function u(t){return function(r){return{type:"leaf",home:t,value:r}}}function a(t){return{type:"node",branches:t}}function _(t,r,e){var n={};for(var o in s(!0,r,n,null),s(!1,e,n,null),t){var c=o in n?n[o]:{cmds:J.Nil,subs:J.Nil};Te.rawSend(t[o],{ctor:"fx",_0:c})}}function s(t,r,e,o){switch(r.type){case"leaf":var c=r.home,i=function(t,r,e,o){return l(t?n[r].cmdMap:n[r].subMap,function(t){for(var r=e;r;)t=r.tagger(t),r=r.rest;return t},o)}(t,c,o,r.value);return void(e[c]=function(t,r,e){return e=e||{cmds:J.Nil,subs:J.Nil},t?(e.cmds=J.Cons(r,e.cmds),e):(e.subs=J.Cons(r,e.subs),e)}(t,i,e[c]));case"node":for(var u=r.branches;"[]"!==u.ctor;)s(t,u._0,e,o),u=u._1;return;case"map":return void s(t,r.tree,e,{tagger:r.tagger,rest:o})}}function p(t){if(t in n)throw new Error("There can only be one port named `"+t+"`, but your program has multiple.")}var h=e(function(t,r){return r});function m(t){var r=[],e=n[t].converter,c=Te.succeed(null);return n[t].init=c,n[t].onEffects=o(function(t,n,o){for(;"[]"!==n.ctor;){for(var i=r,u=e(n._0),a=0;a=0&&r.splice(e,1)}}}var v=e(function(t,r){return function(e){return t(r(e))}});function g(t,r){var e=[],c=J.Nil,i=n[t].converter,u=function(t,r,n){for(var o=s(t,r,n),c=0;c>t}),e(function(t,r){return r>>>t}),Math.pow(2,24)+Math.pow(2,8)+147),Pe=e(function(t,r){return(r^Vt(t))*De>>>0}),Be=function(t){return d(Xt,Pe,0,t)},qe=l(se,{ctor:"::",_0:"className",_1:{ctor:"[]"}},me),Fe=l(_e,"scrollTop",fe),Oe=l(_e,"scrollLeft",fe),Ue=l(_e,"offsetTop",fe),Je=l(_e,"offsetLeft",fe),je=l(_e,"offsetHeight",fe),Ke=l(_e,"offsetWidth",fe),We=function(t){var r=e(function(e,n){return l(Qr,function(t){return l(P,$r(n),l(O,function(t){return l(r,e+1,{ctor:"::",_0:t,_1:n})},t))},ae(l(_e,k(e),t)))});return l(ie,dt,l(_e,"childNodes",l(r,0,{ctor:"[]"})))},Ge=function(t){return se({ctor:"::",_0:"childNodes",_1:{ctor:"::",_0:k(t),_1:{ctor:"[]"}}})},Xe=function(t){return l(_e,"nextSibling",t)},Qe=e(function(t,r){return ue({ctor:"::",_0:l(_e,"offsetParent",Gr(t)),_1:{ctor:"::",_0:l(_e,"offsetParent",r),_1:{ctor:"[]"}}})}),Ye=e(function(t,r){return l(Qr,function(t){var r=t,e=r._1,n=r._0;return l(Qe,{ctor:"_Tuple2",_0:n,_1:e},l(Ye,n,e))},p(ne,c(function(e,n,o,c){return{ctor:"_Tuple2",_0:t+o-e,_1:r+c-n}}),Oe,Fe,Je,Ue))}),$e=f(oe,o(function(t,r,e){var n=t;return{top:n._1,left:n._0,width:r,height:e}}),l(Ye,0,0),Ke,je),Ze=function(t){return l(_e,"target",t)},tn=(c(function(t,r,e,n){return{top:t,left:r,width:e,height:n}}),function(){var t="STYLE",r="EVENT",n="ATTR",i="ATTR_NS",u="undefined"!=typeof document?document:{};function a(t,r,e){return{type:"thunk",func:t,args:r,thunk:e,node:void 0}}function _(e){for(var o,c={};"[]"!==e.ctor;){var u=e._0,a=u.key;if(a===n||a===i||a===r){var _=c[a]||{};_[u.realKey]=u.value,c[a]=_}else if(a===t){for(var s=c[a]||{},l=u.value;"[]"!==l.ctor;){var d=l._0;s[d._0]=d._1,l=l._1}c[a]=s}else if("namespace"===a)o=u.value;else if("className"===a){var f=c[a];c[a]=void 0===f?u.value:f+" "+u.value}else c[a]=u.value;e=e._1}return{facts:c,namespace:o}}function s(t,e,n){return{key:r,realKey:t,value:{options:e,decoder:n}}}function f(t,r){return(t.options===r.options||t.options.stopPropagation===r.options.stopPropagation&&t.options.preventDefault===r.options.preventDefault)&&qr.equality(t.decoder,r.decoder)}function p(t,r){switch(t.type){case"thunk":return t.node||(t.node=t.thunk()),p(t.node,r);case"tagger":for(var e=t.node,n=t.tagger;"tagger"===e.type;)"object"!=typeof n?n=[n,e.tagger]:n.push(e.tagger),e=e.node;var o={tagger:n,parent:r};return(a=p(e,o)).elm_event_node_ref=o,a;case"text":return u.createTextNode(t.text);case"node":h(a=t.namespace?u.createElementNS(t.namespace,t.tag):u.createElement(t.tag),r,t.facts);for(var c=t.children,i=0;i0&&e.push(M("p-thunk",n,s)));case"tagger":for(var l=t.tagger,d=r.tagger,f=!1,p=t.node;"tagger"===p.type;)f=!0,"object"!=typeof l?l=[l,p.tagger]:l.push(p.tagger),p=p.node;for(var h=r.node;"tagger"===h.type;)f=!0,"object"!=typeof d?d=[d,h.tagger]:d.push(h.tagger),h=h.node;return f&&l.length!==d.length?void e.push(M("p-redraw",n,r)):((f?function(t,r){for(var e=0;eu?e.push(M("p-remove-last",n,i-u)):i0||u.length>0||void 0!==o)&&e.push(M("p-reorder",n,{patches:c,inserts:u,endInserts:o}))}(t,r,e,n));case"custom":if(t.impl!==r.impl)return void e.push(M("p-redraw",n,r));var m;void 0!==(m=S(t.facts,r.facts))&&e.push(M("p-facts",n,m));var v=r.impl.diff(t,r);return v?void e.push(M("p-custom",n,v)):void 0}else e.push(M("p-redraw",n,r))}}function S(e,o,c){var u;for(var a in e)if(a!==t&&a!==r&&a!==n&&a!==i)if(a in o){var _=e[a],s=o[a];_===s&&"value"!==a||c===r&&f(_,s)||((u=u||{})[a]=s)}else(u=u||{})[a]=void 0===c?"string"==typeof e[a]?"":null:c===t?"":c===r||c===n?void 0:{namespace:e[a].namespace,value:void 0};else{var l=S(e[a],o[a]||{},a);l&&((u=u||{})[a]=l)}for(var d in o)d in e||((u=u||{})[d]=o[d]);return u}var z="_elmW6BL";function C(t,r,e,n,o,c){var i=t[e];if(void 0===i)return i={tag:"insert",vnode:n,index:o,data:void 0},c.push({index:o,entry:i}),void(t[e]=i);if("remove"===i.tag){c.push({index:o,entry:i}),i.tag="move";var u=[];return k(i.vnode,n,u,i.index),i.index=o,void(i.data.data={patches:u,entry:i})}C(t,r,e+z,n,o,c)}function R(t,r,e,n,o){var c=t[e];if(void 0===c){var i=M("p-remove",o,void 0);return r.push(i),void(t[e]={tag:"remove",vnode:n,index:o,data:i})}if("insert"!==c.tag)R(t,r,e+z,n,o);else{c.tag="move";var u=[];k(n,c.vnode,u,o),i=M("p-remove",o,{patches:u,entry:c}),r.push(i)}}function x(t,r,e,n){return 0===e.length?t:(function t(r,e,n,o){!function r(e,n,o,c,i,u,a){for(var _=o[c],s=_.index;s===i;){var l=_.type;if("p-thunk"===l)t(e,n.node,_.data,a);else if("p-reorder"===l)_.domNode=e,_.eventNode=a,(d=_.data.patches).length>0&&r(e,n,d,0,i,u,a);else if("p-remove"===l){_.domNode=e,_.eventNode=a;var d,f=_.data;void 0!==f&&(f.entry.data=e,(d=f.patches).length>0&&r(e,n,d,0,i,u,a))}else _.domNode=e,_.eventNode=a;if(!(_=o[++c])||(s=_.index)>u)return c}switch(n.type){case"tagger":for(var p=n.node;"tagger"===p.type;)p=p.node;return r(e,p,o,c,i+1,u,e.elm_event_node_ref);case"node":for(var h=n.children,m=e.childNodes,v=0;vu))return c;i=g}return c;case"keyed-node":for(h=n.children,m=e.childNodes,v=0;vu))return c;i=g}return c;case"text":case"thunk":throw new Error("should never traverse `text` or `thunk` nodes like this")}}(r,e,n,0,0,e.descendantsCount,o)}(t,r,e,n),L(t,e))}function L(t,r){for(var e=0;e"),new Error(t)}function I(t,r){return function(e,n){var o={tagger:e,parent:void 0},c=r(n),i=p(c,o);return t.appendChild(i),P(i,r,c,o)}}var D="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,1e3/60)};function P(t,r,e,n){var o,c="NO_REQUEST",i=e;function u(){switch(c){case"NO_REQUEST":throw new Error("Unexpected draw callback.\nPlease report this to .");case"PENDING_REQUEST":D(u),c="EXTRA_REQUEST";var e=r(o),a=w(i,e);return t=x(t,i,a,n),void(i=e);case"EXTRA_REQUEST":return void(c="NO_REQUEST")}}return function(t){"NO_REQUEST"===c&&D(u),c="PENDING_REQUEST",o=t}}function B(t){return Te.nativeBinding(function(r){var e=t.doc;if(e){var n=e.getElementsByClassName("debugger-sidebar-messages")[0];n&&(n.scrollTop=n.scrollHeight)}r(Te.succeed(b.Tuple0))})}function q(t,r,e,n,o,c){return function(i,a){var _={tagger:i,parent:void 0},s={tagger:i,parent:void 0},l=n(a),d=p(l,_);r.appendChild(d);var f=P(d,n,l,_),h=o(a)._1,m=p(h,s);r.appendChild(m);var v=P(m,function(t,r,e){var n,o=function(t){return function(r){if("keydown"!==r.type||!r.metaKey||82!==r.which){for(var e="scroll"===r.type||"wheel"===r.type,n=r.target;null!==n;){if("elm-overlay-message-details"===n.className&&e)return;if(n===t&&!e)return;n=n.parentNode}r.stopPropagation(),r.preventDefault()}}}(m),c="Normal",i=t.tagger,u=function(){};return function(r){var a=e(r),_=a._0.ctor;return t.tagger="Normal"===_?i:u,c!==_&&(F("removeEventListener",o,c),F("addEventListener",o,_),"Normal"===c&&(n=document.body.style.overflow,document.body.style.overflow="hidden"),"Normal"===_&&(document.body.style.overflow=n),c=_),a._1}}(_,0,o),h,s),g=function(t,r,e,n,o,c){var i,a;return function(t){if(t.isDebuggerOpen){if(!c.doc)return i=r(t),void(a=function(t,r,e,n){var o=screen.width-900,c=screen.height-360,i=window.open("","","width=900,height=360,left="+o+",top="+c);u=i.document,r.doc=u,u.title="Debugger - "+t,u.body.style.margin="0",u.body.style.padding="0";var a=p(e,n);function _(){r.doc=void 0,i.close()}return u.body.appendChild(a),u.addEventListener("keydown",function(t){t.metaKey&&82===t.which&&window.location.reload(),38===t.which&&(n.tagger({ctor:"Up"}),t.preventDefault()),40===t.which&&(n.tagger({ctor:"Down"}),t.preventDefault())}),window.addEventListener("unload",_),i.addEventListener("unload",function(){r.doc=void 0,window.removeEventListener("unload",_),n.tagger({ctor:"Close"})}),u=document,a}(o,c,i,e));u=c.doc;var n=r(t),_=w(i,n);a=x(a,i,_,e),i=n,u=document}}}(0,c,s,0,t,e);return function(t){f(t),v(t),g(t)}}}function F(t,r,e){switch(e){case"Normal":return;case"Pause":return O(t,r,U);case"Message":return O(t,r,J)}}function O(t,r,e){for(var n=0;n"]=e(function(t,r){return l(so,function(t){return r},t)});var au=o(function(t,r,e){var n=r,o=l(ur,n.category,e);return"Nothing"===o.ctor?po(e):l(uu["&>"],vo(l(at,function(r){return l(Le,t,r(n.position))},o._0.taggers)),po(e))}),_u=po(gr),su=e(function(t,r){var e=r;return"Nothing"===e.ctor?F({ctor:"::",_0:t,_1:{ctor:"[]"}}):F({ctor:"::",_0:t,_1:e._0})}),lu=e(function(t,r){for(;;){var e=t;if("[]"===e.ctor)return r;t=e._1,r=d(Er,e._0._0,su(e._0._1),r)}}),du=be.leaf("Mouse"),fu=d(ce,e(function(t,r){return{x:t,y:r}}),l(_e,"pageX",pe),l(_e,"pageY",pe)),pu=e(function(t,r){return{taggers:t,pid:r}}),hu=e(function(t,r){return{category:t,position:r}}),mu=o(function(t,r,e){var n=o(function(r,e,n){var o=d(iu,r,fu,function(e){return l(xe,t,l(hu,r,e))});return l(so,function(t){return l(so,function(n){return po(d(Vr,r,l(pu,e,n),t))},Bo(o))},n)}),i=c(function(t,r,e,n){var o=r;return l(so,function(r){return po(d(Vr,t,l(pu,e,o.pid),r))},n)}),u=o(function(t,r,e){var n=r;return l(uu["&>"],Do(n.pid),e)});return h(nr,u,i,n,e,l(lu,r,gr),po(gr))}),vu=e(function(t,r){return{ctor:"MySub",_0:t,_1:r}}),gu=e(function(t,r){var e=r;return l(vu,e._0,function(r){return t(e._1(r))})});be.effectManagers.Mouse={pkg:"elm-lang/mouse",init:_u,onEffects:mu,onSelfMsg:au,tag:"sub",subMap:gu};var yu=i(function(t,r,e,n,o){return{button:t,menu:r,container:e,offsetTops:n,offsetHeights:o}}),bu=c(function(t,r,e,n){return{offsetTop:t,offsetLeft:r,offsetHeight:e,bounds:n}}),Tu=p(ne,bu,Ue,Je,je,$e),wu=h(ee,yu,Ze(Tu),Ze(Xe(l(Ge,1,Tu))),Ze(Xe(Tu)),Ze(Xe(l(Ge,1,We(Ue)))),Ze(Xe(l(Ge,1,We(je))))),Mu=function(t){return d(T,e(function(t,r){return l(A["++"],t,r)}),"px",k(t))},ku=c(function(t,r,e,n){return o=l(Wt," ",l(at,Mu,{ctor:"::",_0:t,_1:{ctor:"::",_0:r,_1:{ctor:"::",_0:e,_1:{ctor:"::",_0:n,_1:{ctor:"[]"}}}}})),l(A["++"],"rect(",l(A["++"],o,")"));var o}),Su=(e(function(t,r){return l(pc,"click",l(ie,r,t))}),e(function(t,r){return l(P,Zc,l(O,r,t.geometry))})),zu=(qc(function(t){return b.update(t,{ripple:!0})}),qc(function(t){return b.update(t,{enabled:!1})}),qc(function(t){return b.update(t,{divider:!0})}),{enabled:!0,divider:!1,onSelect:B}),Cu=(c(function(t,r,e,n){return{ripples:t,animationState:r,geometry:e,index:n}}),e(function(t,r){return{options:t,html:r}}),o(function(t,r,e){return{enabled:t,divider:r,onSelect:e}}),o(function(t,r,e){return{alignment:t,ripple:r,icon:e}}),{ctor:"Closing"}),Ru={ctor:"Opened"},xu=o(function(t,r,e){var n=e.menu.bounds.height,o=e.menu.bounds.width;return l(ei,"clip",function(){if(b.eq(t.animationState,Ru)||b.eq(t.animationState,Cu))return f(ku,0,o,n,0);switch(r.alignment.ctor){case"BottomRight":return f(ku,0,o,0,o);case"TopLeft":return f(ku,n,0,n,0);case"TopRight":return f(ku,n,o,n,o);default:return""}}())}),Lu={ctor:"Opening"},Eu=function(t){return b.eq(t.animationState,Ru)||b.eq(t.animationState,Lu)},Vu={ctor:"Idle"},Nu={ripples:gr,animationState:Vu,geometry:B,index:B},Au=d(rc,function(t){return t.menu},e(function(t,r){return b.update(r,{menu:t})}),Nu),Hu=Au._0,Iu=Au._1,Du=e(function(t,r){return{ctor:"Key",_0:t,_1:r}}),Pu=function(t){return{ctor:"Click",_0:t}},Bu=d(Qo,uc,function(t){return t.menu},function(t){return b.eq(t.animationState,Ru)?du(l(vu,"click",Pu)):Ce}),qu=e(function(t,r){return{ctor:"Ripple",_0:t,_1:r}}),Fu={ctor:"Tick"},Ou={ctor:"Close"},Uu=e(function(t,r){return{ctor:"Select",_0:t,_1:r}}),Ju=o(function(t,r,n){t:for(;;){var o=r;switch(o.ctor){case"Open":return{ctor:"_Tuple2",_0:b.update(n,{animationState:"Opened"===n.animationState.ctor?Ru:Lu,geometry:F(o._0)}),_1:Uo(t(Fu))};case"Tick":return Go(b.update(n,{animationState:Ru}));case"Close":return Go(b.update(n,{animationState:Vu,geometry:B,index:B}));case"Select":var c=l(lt,M,{ctor:"::",_0:F(l(Oo,150,t(Ou))),_1:{ctor:"::",_0:l(O,Uo,o._1),_1:{ctor:"[]"}}});return{ctor:"_Tuple2",_0:a=b.update(n,{animationState:Cu}),_1:we(c)};case"Ripple":var i=o._0,u=l(gi,o._1,l(P,pi,l(ur,i,n.ripples))),a=u._0,_=u._1;return{ctor:"_Tuple2",_0:b.update(n,{ripples:d(Vr,i,a,n.ripples)}),_1:l(Se,function(r){return t(l(qu,i,r))},_)};case"Click":if(Eu(n)){var s=n.geometry;if("Just"===s.ctor){if(l(e(function(t,r){var e=t,n=e.y,o=e.x,c=r,i=c.top,u=c.left;return b.cmp(u,S(o))<1&&b.cmp(S(o),u+c.width)<1&&b.cmp(i,S(n))<1&&b.cmp(S(n),i+c.height)<1}),o._0,s._0.menu.bounds))return l(ke["!"],n,{ctor:"[]"});t=t,r=Ou,n=n;continue t}return l(ke["!"],n,{ctor:"[]"})}return l(ke["!"],n,{ctor:"[]"});default:var f=o._0;switch(o._1){case 13:if(Eu(n)){var p=n.index;if("Just"===p.ctor){var h=p._0,m=l(q,function(t){return t.config.onSelect},it(l(W,h,f))),v=t,g=l(Uu,h+1,m);t=v,r=g,n=n;continue t}t=t,r=Ou,n=n;continue t}return l(ke["!"],n,{ctor:"[]"});case 27:t=t,r=Ou,n=n;continue t;case 32:if(Eu(n)){var y=t,w=l(Du,f,13);t=y,r=w,n=n;continue t}return l(ke["!"],n,{ctor:"[]"});case 40:if(Eu(n)){var k=l(zt,e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}}),f);return d(T,e(function(t,r){return l(ke["!"],t,r)}),{ctor:"[]"},l(P,n,l(O,function(t){return r=ye(t),b.update(n,{index:F(r)});var r},it(l(_t,function(t){return ge(t).config.enabled},l(W,1+l(P,-1,n.index),l(A["++"],k,k)))))))}return l(ke["!"],n,{ctor:"[]"});case 38:return Eu(n)?(k=l(zt,e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}}),f),Go(l(P,n,l(O,function(t){return r=ye(t),b.update(n,{index:F(r)});var r},it(l(_t,function(t){return ge(t).config.enabled},l(W,et(f)-l(P,0,n.index),dt(l(A["++"],k,k))))))))):l(ke["!"],n,{ctor:"[]"});default:return l(ke["!"],n,{ctor:"[]"})}}}}),ju=c(function(t,r,e,n){return l(jo,function(t){return F(d(Iu,e,n,t))},d(Ju,t,r,l(Hu,e,n)))}),Ku=function(t){return{ctor:"Open",_0:t}},Wu={ctor:"TopRight"},Gu=(qc(function(t){return b.update(t,{alignment:Wu})}),{ctor:"TopLeft"}),Xu=(qc(function(t){return b.update(t,{alignment:Gu})}),c(function(t,r,e,n){var o=b.eq(t,Gu)||b.eq(t,Wu)?(r-e-n)/r*.24:e/r*.24;return l(ei,"transition-delay",l(A["++"],k(o),"s"))})),Qu=_(function(t,r,n,o,c,i,u,a){var _,s=u.config.enabled&&!b.eq(u.config.onSelect,B),d=r.ripple&&s,h=function(r){return t(l(qu,i,r))};return p(Ac,u,Ln,{ctor:"::",_0:oi("mdl-menu__item"),_1:{ctor:"::",_0:l(ti,r.ripple,oi("mdl-js-ripple-effect")),_1:{ctor:"::",_0:l(ti,u.config.divider,oi("mdl-menu__item--full-bleed-divider")),_1:{ctor:"::",_0:l(ti,b.eq(n.index,F(i)),l(ei,"background-color","rgb(238,238,238)")),_1:{ctor:"::",_0:(_={ctor:"_Tuple2",_0:n.geometry,_1:Eu(n)},"_Tuple2"===_.ctor&&"Just"===_._0.ctor&&!0===_._1?f(Xu,r.alignment,_._0._0.menu.bounds.height,o,c):Zc),_1:{ctor:"::",_0:l(ei,"display","flex"),_1:{ctor:"::",_0:l(ei,"align-items","center"),_1:{ctor:"::",_0:l(ti,s,Xc(t(l(Uu,i,u.config.onSelect)))),_1:{ctor:"::",_0:l(ti,!u.config.enabled,Jc(l(Xn,"disabled","disabled"))),_1:{ctor:"::",_0:Jc(l(Qn,"tabindex",Kr("-1"))),_1:{ctor:"::",_0:d?ri({ctor:"::",_0:Jc(l(ki,h,"mousedown")),_1:{ctor:"::",_0:Jc(l(ki,h,"touchstart")),_1:{ctor:"::",_0:Jc(l(Ti,h,"mouseup")),_1:{ctor:"::",_0:Jc(l(Ti,h,"mouseleave")),_1:{ctor:"::",_0:Jc(l(Ti,h,"touchend")),_1:{ctor:"::",_0:Jc(l(Ti,h,"blur")),_1:{ctor:"[]"}}}}}}}):Zc,_1:{ctor:"[]"}}}}}}}}}}}},{ctor:"[]"},d?l(e(function(t,r){return l(A["++"],t,r)}),a.html,{ctor:"::",_0:l(mn,h,l(mi,{ctor:"::",_0:$n("mdl-menu__item-ripple-container"),_1:{ctor:"[]"}},l(P,pi,l(ur,i,n.ripples)))),_1:{ctor:"[]"}}):a.html)}),Yu={ctor:"BottomRight"},$u=(qc(function(t){return b.update(t,{alignment:Yu})}),{ctor:"BottomLeft"}),Zu={alignment:$u,ripple:!1,icon:"more_vert"},ta=(qc(function(t){return b.update(t,{alignment:$u})}),e(function(t,r){return ri({ctor:"::",_0:l(ei,"width",Mu(r.menu.bounds.width)),_1:{ctor:"::",_0:l(ei,"height",Mu(r.menu.bounds.height)),_1:{ctor:"::",_0:b.eq(t,Yu)||b.eq(t,$u)?l(ei,"top",Mu(r.button.offsetTop+r.button.offsetHeight)):Zc,_1:{ctor:"::",_0:function(){if(b.eq(t,Yu)||b.eq(t,Wu)){var e=function(t){return t.bounds.left+t.bounds.width};return l(ei,"right",Mu(e(r.container)-e(r.menu)))}return Zc}(),_1:{ctor:"::",_0:function(){if(b.eq(t,Gu)||b.eq(t,Wu)){var e=r.container.bounds.top+r.container.bounds.height;return l(ei,"bottom",Mu(e-r.button.bounds.top))}return Zc}(),_1:{ctor:"::",_0:b.eq(t,Gu)||b.eq(t,$u)?l(ei,"left",Mu(r.menu.offsetLeft)):Zc,_1:{ctor:"[]"}}}}}}})})),ra=c(function(t,r,e,n){var o,c=l(at,function(t){return l(Ic,zu,t.options)},n),i=et(n),u=l(Ic,Zu,e),a=u.config,_=function(){switch(a.alignment.ctor){case"BottomLeft":return oi("mdl-menu--bottom-left");case"BottomRight":return oi("mdl-menu--bottom-right");case"TopLeft":return oi("mdl-menu--top-left");default:return oi("mdl-menu--top-right")}}();return p(Ac,u,En,{ctor:"::",_0:l(ei,"position","relative"),_1:e},{ctor:"[]"},{ctor:"::",_0:l(mn,t,d(ui,Wn,{ctor:"::",_0:oi("mdl-button"),_1:{ctor:"::",_0:oi("mdl-js-button"),_1:{ctor:"::",_0:oi("mdl-button--icon"),_1:{ctor:"::",_0:l(ti,Eu(r),(o=Du(c),d(Kc,"keydown",{preventDefault:!0,stopPropagation:!1},l(ie,o,sc)))),_1:{ctor:"::",_0:l(ti,!b.eq(r.animationState,Ru),l(Wc,"click",l(ie,Ku,wu))),_1:{ctor:"::",_0:l(ti,Eu(r),Xc(Ou)),_1:{ctor:"[]"}}}}}}},{ctor:"::",_0:l(Di,a.icon,{ctor:"::",_0:oi("material-icons"),_1:{ctor:"::",_0:l(ei,"pointer-events","none"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})),_1:{ctor:"::",_0:d(ui,En,{ctor:"::",_0:oi("mdl-menu__container"),_1:{ctor:"::",_0:oi("is-upgraded"),_1:{ctor:"::",_0:l(ti,b.eq(r.animationState,Ru)||b.eq(r.animationState,Cu),oi("is-visible")),_1:{ctor:"::",_0:l(Su,r,ta(a.alignment)),_1:{ctor:"[]"}}}}},{ctor:"::",_0:d(ui,En,{ctor:"::",_0:oi("mdl-menu__outline"),_1:{ctor:"::",_0:_,_1:{ctor:"::",_0:l(Su,r,function(t){return ri({ctor:"::",_0:l(ei,"width",Mu(t.menu.bounds.width)),_1:{ctor:"::",_0:l(ei,"height",Mu(t.menu.bounds.height)),_1:{ctor:"[]"}}})}),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:d(ui,xn,{ctor:"::",_0:oi("mdl-menu"),_1:{ctor:"::",_0:oi("mdl-js-menu"),_1:{ctor:"::",_0:l(ti,b.eq(r.animationState,Lu)||b.eq(r.animationState,Cu),oi("is-animating")),_1:{ctor:"::",_0:l(Su,r,l(xu,r,a)),_1:{ctor:"::",_0:_,_1:{ctor:"[]"}}}}}},function(){var e=r.geometry;if("Just"===e.ctor){var o=e._0;return h(G,d(Qu,t,a,r),o.offsetTops,o.offsetHeights,l(St,0,i-1),c,n)}return f(Q,p(Qu,t,a,r,0,0),l(St,0,i-1),c,n)}()),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}),ea=(d(Zo,Hu,ra,uc),e(function(t,r){return b.update(r,{queue:l(pt,r.queue,{ctor:"::",_0:t,_1:{ctor:"[]"}})})})),na=(o(function(t,r,e){return{message:r,action:F(e),payload:t,timeout:2750,fade:250}}),e(function(t,r){return{message:r,action:B,payload:t,timeout:2750,fade:250}})),oa=i(function(t,r,e,n,o){return{message:t,action:r,payload:e,timeout:n,fade:o}}),ca=(o(function(t,r,e){return{queue:t,state:r,seq:e}}),function(t){return{ctor:"Fading",_0:t}}),ia={ctor:"Inert"},ua={queue:{ctor:"[]"},state:ia,seq:-1},aa={ctor:"Clicked"},_a={ctor:"Timeout"},sa=e(function(t,r){return{ctor:"Move",_0:t,_1:r}}),la=function(t){return Se(sa(t.seq))},da=function(t){return{ctor:"End",_0:t}},fa=function(t){var r,e={ctor:"_Tuple2",_0:t.state,_1:t.queue};if("_Tuple2"===e.ctor&&"Inert"===e._0.ctor&&"::"===e._1.ctor){var n=e._1._0;return{ctor:"_Tuple2",_0:b.update(t,{state:(r=n,{ctor:"Active",_0:r}),queue:e._1._1,seq:t.seq+1}),_1:we({ctor:"::",_0:l(Se,sa(t.seq+1),l(Oo,n.timeout,_a)),_1:{ctor:"::",_0:Uo({ctor:"Begin",_0:n.payload}),_1:{ctor:"[]"}}})}}return{ctor:"_Tuple2",_0:t,_1:Me}},pa=e(function(t,r){var e,n={ctor:"_Tuple2",_0:r.state,_1:t};t:do{if("_Tuple2"!==n.ctor)break t;if("Clicked"===n._1.ctor){if("Active"===n._0.ctor){var o=n._0._0;return{ctor:"_Tuple2",_0:b.update(r,{state:ca(o)}),_1:we({ctor:"::",_0:l(la,r,l(Oo,o.fade,_a)),_1:{ctor:"::",_0:Uo((e=o.payload,{ctor:"Click",_0:e})),_1:{ctor:"[]"}}})}}break t}switch(n._0.ctor){case"Inert":return fa(r);case"Active":var c=n._0._0;return{ctor:"_Tuple2",_0:b.update(r,{state:ca(c)}),_1:we({ctor:"::",_0:l(la,r,l(Oo,c.fade,_a)),_1:{ctor:"[]"}})};default:return{ctor:"_Tuple2",_0:b.update(r,{state:ia}),_1:we({ctor:"::",_0:l(la,r,Uo(_a)),_1:{ctor:"::",_0:Uo(da(n._0._0.payload)),_1:{ctor:"[]"}}})}}}while(0);return{ctor:"_Tuple2",_0:r,_1:Me}}),ha=e(function(t,r){var e=t;return"Move"===e.ctor&&b.eq(e._0,r.seq)?l(pa,e._1,r):{ctor:"_Tuple2",_0:r,_1:Me}}),ma=e(function(t,r){return fa(l(ea,t,r))}),va=en,ga=(va("ol"),va("ul"),{size:Te.nativeBinding(function(t){t(Te.succeed({width:window.innerWidth,height:window.innerHeight}))})}),ya=ya||{};ya["&>"]=e(function(t,r){return l(so,function(t){return r},t)});var ba=o(function(t,r,e){var n=e;return"Nothing"===n.ctor?po(e):l(ya["&>"],vo(l(at,function(e){return l(Le,t,e._0(r))},n._0.subs)),po(e))}),Ta=po(B),wa=ga.size,Ma=l(ho,function(t){return t.width},wa),ka=(l(ho,function(t){return t.height},wa),o(function(t,r,e){var n={ctor:"_Tuple2",_0:e,_1:r};return"Nothing"===n._0.ctor?"[]"===n._1.ctor?po(B):l(so,function(t){return po(F({subs:r,pid:t}))},Bo(d(cu,"resize",$r({ctor:"_Tuple0"}),function(r){return l(so,xe(t),wa)}))):"[]"===n._1.ctor?l(ya["&>"],Do(n._0._0.pid),po(B)):po(F({subs:r,pid:n._0._0.pid}))})),Sa=be.leaf("Window"),za=(e(function(t,r){return{width:t,height:r}}),function(t){return{ctor:"MySub",_0:t}}),Ca=e(function(t,r){var e=r;return za(function(r){return t(e._0(r))})});be.effectManagers.Window={pkg:"elm-lang/window",init:Ta,onEffects:ka,onSelfMsg:ba,tag:"sub",subMap:Ca};var Ra={ctor:"_Tuple2",_0:function(t){return t.layout},_1:e(function(t,r){return b.update(r,{layout:t})})},xa=Ra._0,La=Ra._1,Ea=o(function(t,r,e){return l(En,{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout__drawer",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"is-visible",_1:r},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(Xn,"aria-hidden",r?"false":"true"),_1:{ctor:"[]"}}},e)}),Va=(l(Xn,"onkeypress",'\n (function (evt) {\n if (evt && evt.type === "keydown" && (evt.keyCode === 32 || evt.keyCode === 13)) {\n evt.preventDefault();\n }\n })(window.event);\n '),function(t){var r=t;return"Nothing"===r.ctor?{ctor:"[]"}:{ctor:"::",_0:r._0,_1:{ctor:"[]"}}}),Na=function(t){return"Waterfall"===t.ctor},Aa=function(t){return ai({ctor:"::",_0:oi("mdl-layout__header-row"),_1:t})},Ha=e(function(t,r){return d(ui,Vn,{ctor:"::",_0:oi("mdl-navigation__link"),_1:{ctor:"::",_0:Jc(l(Xn,"tabindex","1")),_1:t}},r)}),Ia=function(t){return $c(eo(t))},Da=e(function(t,r){return d(ui,yn,{ctor:"::",_0:oi("mdl-navigation"),_1:t},r)}),Pa=function(t){return _i({ctor:"::",_0:oi("mdl-layout__title"),_1:t})},Ba=l(En,{ctor:"::",_0:$n("mdl-layout-spacer"),_1:{ctor:"[]"}},{ctor:"[]"}),qa=(qc(function(t){return b.update(t,{moreTabs:!0})}),qc(function(t){return b.update(t,{transparentHeader:!0})}),qc(function(t){return b.update(t,{rippleTabs:!0})}),qc(function(t){return b.update(t,{fixedTabs:!0})})),Fa=(qc(function(t){return b.update(t,{fixedDrawer:!0})}),qc(function(t){return b.update(t,{fixedHeader:!0})})),Oa=e(function(t,r){var e=r.tabScrollState;return b.update(r,{tabScrollState:b.update(e,{width:F(t)})})}),Ua=(e(function(t,r){return b.update(r,{layout:l(Oa,t,r.layout)})}),{ripples:gr,isSmallScreen:!1,isCompact:!1,isAnimating:!1,isScrolled:!1,isDrawerOpen:!1,tabScrollState:{canScrollRight:!0,canScrollLeft:!1,width:B}}),Ja=(o(function(t,r,e){return{canScrollLeft:t,canScrollRight:r,width:e}}),a(function(t,r,e,n,o,c,i){return{ripples:t,isSmallScreen:r,isCompact:e,isAnimating:n,isScrolled:o,isDrawerOpen:c,tabScrollState:i}}),s(function(t,r,e,n,o,c,i,u,a){return{fixedHeader:t,fixedDrawer:r,fixedTabs:e,rippleTabs:n,mode:o,selectedTab:c,onSelectTab:i,transparentHeader:u,moreTabs:a}}),c(function(t,r,e,n){return{header:t,drawer:r,tabs:e,main:n}}),e(function(t,r){return{ctor:"Ripple",_0:t,_1:r}})),ja={ctor:"NOP"},Ka={ctor:"TransitionEnd"},Wa=function(t){return{ctor:"TransitionHeader",_0:t}},Ga=o(function(t,r,e){t:for(;;){var n=r;switch(n.ctor){case"NOP":return B;case"Resize":var o=n._0,c=l(P,e.tabScrollState,l(O,function(t){var r=e.tabScrollState;return b.update(r,{canScrollRight:b.cmp(t+112,o)>0})},e.tabScrollState.width)),i=b.cmp(1024,o)>-1;return b.eq(i,e.isSmallScreen)&&b.eq(c.canScrollRight,e.tabScrollState.canScrollRight)?B:F(Go(b.update(e,{isSmallScreen:i,isDrawerOpen:!i&&e.isDrawerOpen,tabScrollState:c})));case"ToggleDrawer":return F(Go(b.update(e,{isDrawerOpen:!e.isDrawerOpen})));case"Ripple":var u=n._0;return F(l(Jo,Se(function(r){return t(l(Ja,u,r))}),l(jo,function(t){return b.update(e,{ripples:d(Vr,u,t,e.ripples)})},l(gi,n._1,l(P,pi,l(ur,u,e.ripples))))));case"ScrollTab":var a=n._0;return b.eq(e.tabScrollState,a)?B:F(Go(b.update(e,{tabScrollState:a})));case"ScrollPane":var _=b.cmp(0,n._1)<0;if(b.eq(_,e.isScrolled))return B;var s=t,f=Wa({toCompact:_,fixedHeader:n._0}),p=b.update(e,{isScrolled:_});t=s,r=f,e=p;continue t;case"TransitionHeader":return e.isAnimating?B:F({ctor:"_Tuple2",_0:b.update(e,{isCompact:n._0.toCompact,isAnimating:!e.isSmallScreen||n._0.fixedHeader}),_1:Me});default:return F(Go(b.update(e,{isAnimating:!1})))}}}),Xa=(e(function(t,r){return l(P,{ctor:"_Tuple2",_0:r,_1:Me},d(Ga,M,t,r))}),o(function(t,r,e){var n=d(Ga,t,r,xa(e));return"Just"===n.ctor&&"_Tuple2"===n._0.ctor?{ctor:"_Tuple2",_0:F(l(La,n._0._0,e)),_1:n._0._1}:{ctor:"_Tuple2",_0:B,_1:Me}})),Qa=e(function(t,r){return{ctor:"ScrollPane",_0:t,_1:r}}),Ya=function(t){return{ctor:"Resize",_0:t}},$a=(l(Mo,Ya,Ma),function(t){return Sa(za(function(t){return Ya(t.width)}))}),Za=function(t){return function(r){return l(Re,function(r){return t(ic(r))},$a(xa(r)))}},t_={ctor:"ToggleDrawer"},r_=e(function(t,r){return l(En,{ctor:"[]"},{ctor:"::",_0:l(En,{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout__drawer-button",_1:!0},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xn,"aria-expanded",r?"true":"false"),_1:{ctor:"::",_0:(1,l(Xn,"tabIndex",k(1))),_1:{ctor:"::",_0:mc(t(t_)),_1:{ctor:"::",_0:d(fc,"keydown",{stopPropagation:!1,preventDefault:!1},l(ie,function(r){return t(function(t){switch(r){case 32:case 13:return t_;default:return ja}}())},sc)),_1:{ctor:"[]"}}}}}},{ctor:"::",_0:Pi("menu"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})}),e_=e(function(t,r){return l(En,{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout__obfuscator",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"is-visible",_1:r},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:mc(t(t_)),_1:{ctor:"[]"}}},{ctor:"[]"})}),n_={ctor:"Scrolling"},o_=(qc(function(t){return b.update(t,{mode:n_})}),{ctor:"Seamed"}),c_=(qc(function(t){return b.update(t,{mode:o_})}),{ctor:"Standard"}),i_={fixedHeader:!1,fixedDrawer:!1,fixedTabs:!1,rippleTabs:!0,mode:c_,onSelectTab:B,selectedTab:-1,moreTabs:!1,transparentHeader:!1},u_=c(function(t,r,e,n){var o=n,c=function(){var t=r.mode;switch(t.ctor){case"Standard":return Zc;case"Scrolling":return oi("mdl-layout__header--scroll");case"Seamed":return oi("mdl-layout__header--seamed");default:return!0===t._0?oi("mdl-layout__header--waterfall mdl-layout__header--waterfall-hide-top"):oi("mdl-layout__header--waterfall")}}();return d(ui,kn,{ctor:"::",_0:oi("mdl-layout__header"),_1:{ctor:"::",_0:l(ti,b.eq(r.mode,c_)||Na(r.mode)&&e.isCompact,oi("is-casting-shadow")),_1:{ctor:"::",_0:l(ti,e.isAnimating,oi("is-animating")),_1:{ctor:"::",_0:l(ti,e.isCompact,oi("is-compact")),_1:{ctor:"::",_0:c,_1:{ctor:"::",_0:l(ti,r.transparentHeader,oi("mdl-layout__header--transparent")),_1:{ctor:"::",_0:Xc(t(Wa({toCompact:!1,fixedHeader:r.fixedHeader}))),_1:{ctor:"::",_0:l(Wc,"transitionend",$r(t(Ka))),_1:{ctor:"[]"}}}}}}}}},l(mt,function(t){return t},{ctor:"::",_0:Va(o._0),_1:{ctor:"::",_0:o._1,_1:{ctor:"::",_0:Va(o._2),_1:{ctor:"[]"}}}}))}),a_={ctor:"Right"},__={ctor:"Left"},s_=c(function(t,r,n,c){var i=c,u=i._1,a=e(function(t,r){var e="Left"===t.ctor?"left":"right";return d(ui,En,{ctor:"::",_0:oi("mdl-layout__tab-bar-button"),_1:{ctor:"::",_0:oi(l(A["++"],"mdl-layout__tab-bar-",l(A["++"],e,"-button"))),_1:{ctor:"::",_0:l(ti,b.eq(t,__)&&n.tabScrollState.canScrollLeft||b.eq(t,a_)&&n.tabScrollState.canScrollRight,oi("is-active")),_1:{ctor:"::",_0:ri(u),_1:{ctor:"[]"}}}}},{ctor:"::",_0:l(Di,l(A["++"],"chevron_",e),{ctor:"::",_0:Bi,_1:{ctor:"::",_0:Jc(l(Xn,"onclick",l(A["++"],"document.getElementsByClassName('mdl-layout__tab-bar')[0].scrollLeft += ",k(r)))),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})});return l(ai,{ctor:"::",_0:oi("mdl-layout__tab-bar-container"),_1:{ctor:"[]"}},{ctor:"::",_0:l(a,__,-100),_1:{ctor:"::",_0:l(ai,{ctor:"::",_0:oi("mdl-layout__tab-bar"),_1:{ctor:"::",_0:l(ei,"position","relative"),_1:{ctor:"::",_0:l(ei,"scroll-behavior","smooth"),_1:{ctor:"::",_0:r.rippleTabs?ri({ctor:"::",_0:oi("mdl-js-ripple-effect"),_1:{ctor:"::",_0:oi("mds-js-ripple-effect--ignore-events"),_1:{ctor:"[]"}}}):Zc,_1:{ctor:"::",_0:b.eq(r.mode,c_)?oi("is-casting-shadow"):Zc,_1:{ctor:"::",_0:ri(u),_1:{ctor:"::",_0:Jc(l(pc,"scroll",Ze(f(oe,o(function(r,e,n){return t({ctor:"ScrollTab",_0:{canScrollLeft:b.cmp(n,0)>0,canScrollRight:b.cmp(r-e,n+1)>0,width:F(r)}})}),l(_e,"scrollWidth",fe),l(_e,"clientWidth",fe),l(_e,"scrollLeft",fe))))),_1:{ctor:"[]"}}}}}}}},l(zt,e(function(o,c){return d(Xo,Vn,{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout__tab",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"is-active",_1:b.eq(o,r.selectedTab)},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(P,qo,l(O,e(function(t,r){return r(t)})(o),r.onSelectTab)),_1:{ctor:"[]"}}},{ctor:"::",_0:F(c),_1:{ctor:"::",_0:r.rippleTabs?F(l(mn,function(r){return t(l(Ja,o,r))},l(zi,{ctor:"::",_0:$n("mdl-layout__tab-ripple-container"),_1:{ctor:"[]"}},l(P,pi,l(ur,o,n.ripples))))):B,_1:{ctor:"[]"}}})}),i._0)),_1:{ctor:"::",_0:l(a,a_,100),_1:{ctor:"[]"}}}})}),l_=c(function(t,r,n,o){var c,i,u,a,_,s=o,p=s.tabs,h=s.header,m=s.drawer,v=!b.eq(m,{ctor:"[]"}),g=!ot(ye(p)),y=g||!ot(h),T=l(Ic,i_,n).config,w=T.fixedDrawer&&!r.isSmallScreen,S=r.isDrawerOpen&&!w,z=("_Tuple3",c=m,i=h,u=T.fixedHeader,"::"===c.ctor?"::"===i.ctor&&!0===u?{ctor:"_Tuple2",_0:B,_1:F(l(r_,t,S))}:{ctor:"_Tuple2",_0:F(l(r_,t,S)),_1:B}:{ctor:"_Tuple2",_0:B,_1:B}),C=z._0,R=z._1,x=g?F(f(s_,t,T,r,p)):B;return l(En,{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout__container",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"has-scrolling-header",_1:b.eq(T.mode,n_)},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}},{ctor:"::",_0:d(Xo,va("div"),l(lt,M,{ctor:"::",_0:F(io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout ",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"is-upgraded",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"is-small-screen",_1:r.isSmallScreen},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"has-drawer",_1:v},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"has-tabs",_1:g},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-js-layout",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout--fixed-drawer",_1:T.fixedDrawer&&v},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout--fixed-header",_1:T.fixedHeader&&y},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-layout--fixed-tabs",_1:T.fixedTabs&&g},_1:{ctor:"[]"}}}}}}}}}})),_1:{ctor:"::",_0:S?F(l(pc,"keydown",l(ie,function(r){return t((e=r,b.eq(e,27)?t_:ja));var e},sc))):B,_1:{ctor:"[]"}}}),{ctor:"::",_0:y?F(l(e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}}),"elm-mdl-header",f(u_,t,T,r,{ctor:"_Tuple3",_0:R,_1:h,_2:x}))):B,_1:{ctor:"::",_0:v?F({ctor:"_Tuple2",_0:"elm-mdl-drawer",_1:d(Ea,t,S,m)}):B,_1:{ctor:"::",_0:v?F({ctor:"_Tuple2",_0:"elm-mdl-obfuscator",_1:l(e_,t,S)}):B,_1:{ctor:"::",_0:l(O,e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}})("elm-drawer-button"),C),_1:{ctor:"::",_0:F(l(e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}}),k(T.selectedTab),d(ui,zn,{ctor:"::",_0:(_="elm-mdl-layout-main",jc(Zn(_))),_1:{ctor:"::",_0:oi("mdl-layout__content"),_1:{ctor:"::",_0:l(ti,b.eq(T.mode,n_)&&T.fixedHeader,l(ei,"overflow-y","visible")),_1:{ctor:"::",_0:l(ti,b.eq(T.mode,n_)&&T.fixedHeader,l(ei,"overflow-x","visible")),_1:{ctor:"::",_0:l(ti,b.eq(T.mode,n_)&&T.fixedHeader,l(ei,"overflow","visible")),_1:{ctor:"::",_0:l(ti,Na(T.mode),(a=l(ie,function(r){return t(l(Qa,T.fixedHeader,r))},Ze(Fe)),Jc(l(pc,"scroll",a)))),_1:{ctor:"[]"}}}}}}},s.main))),_1:{ctor:"[]"}}}}}}),_1:{ctor:"[]"}})}),d_=d(tc,xa,l_,ic),f_=function(t){return $c(l(Yn,"name",t))},p_=function(t){return qc(e(function(t,r){return b.update(r,{value:t})})(t))},h_=Jc(co(!0)),m_=qc(function(t){return b.update(t,{ripple:!0})}),v_={value:!1,ripple:!1,input:{ctor:"[]"},container:{ctor:"[]"}},g_={ripple:pi,isFocused:!1},y_=d(rc,function(t){return t.toggles},e(function(t,r){return b.update(r,{toggles:t})}),g_),b_=y_._0,T_=y_._1,w_=(e(function(t,r){return{ripple:t,isFocused:r}}),c(function(t,r,e,n){return{value:t,ripple:r,input:e,container:n}}),function(t){return{ctor:"SetFocus",_0:t}}),M_=function(t){return{ctor:"Ripple",_0:t}},k_=f($o,b_,T_,cc,Yo(e(function(t,r){var e=t;return"Ripple"===e.ctor?l(Jo,Se(M_),l(jo,function(t){return b.update(r,{ripple:t})},l(gi,e._0,r.ripple))):{ctor:"_Tuple2",_0:b.update(r,{isFocused:e._0}),_1:Me}}))),S_=i(function(t,r,e,n,o){var c=n.config;return f(Oc,n,jn,{ctor:"::",_0:oi(l(A["++"],"mdl-",r)),_1:{ctor:"::",_0:oi(l(A["++"],"mdl-js-",r)),_1:{ctor:"::",_0:l(ti,c.ripple,oi("mdl-js-ripple-effect")),_1:{ctor:"::",_0:l(ti,c.ripple,oi("mdl-js-ripple-effect--ignore-events")),_1:{ctor:"::",_0:oi("is-upgraded"),_1:{ctor:"::",_0:l(ti,c.value,oi("is-checked")),_1:{ctor:"::",_0:l(ti,e.isFocused,oi("is-focused")),_1:{ctor:"::",_0:d(Bc,"focus",t,w_(!0)),_1:{ctor:"::",_0:d(Bc,"blur",t,w_(!1)),_1:{ctor:"::",_0:Jc(Ko("mouseup")),_1:{ctor:"[]"}}}}}}}}}}},ht({ctor:"::",_0:o,_1:{ctor:"::",_0:c.ripple?{ctor:"::",_0:l(mn,function(r){return t(M_(r))},l(zi,{ctor:"::",_0:$n("mdl-switch__ripple-container mdl-js-ripple-effect mdl-ripple--center"),_1:{ctor:"[]"}},e.ripple)),_1:{ctor:"[]"}}:{ctor:"[]"},_1:{ctor:"[]"}}}))}),z_=d(Zo,b_,c(function(t,r,e,n){var o=l(Ic,v_,e);return p(S_,t,"checkbox",r,o,{ctor:"::",_0:f(Uc,o,Kn,{ctor:"::",_0:oi("mdl-checkbox__input"),_1:{ctor:"::",_0:Jc(ro("checkbox")),_1:{ctor:"::",_0:Jc(oo(o.config.value)),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-checkbox__label"),_1:{ctor:"[]"}},n),_1:{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-checkbox__focus-helper"),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-checkbox__box-outline"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-checkbox__tick-outline"),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}})}),cc),C_=(d(Zo,b_,c(function(t,r,e,n){var o=l(Ic,v_,e);return p(S_,t,"switch",r,o,{ctor:"::",_0:f(Uc,o,Kn,{ctor:"::",_0:oi("mdl-switch__input"),_1:{ctor:"::",_0:Jc(ro("checkbox")),_1:{ctor:"::",_0:Jc(oo(o.config.value)),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-switch__label"),_1:{ctor:"[]"}},n),_1:{ctor:"::",_0:l(En,{ctor:"::",_0:$n("mdl-switch__track"),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"::",_0:l(En,{ctor:"::",_0:$n("mdl-switch__thumb"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-switch__focus-helper"),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}})}),cc),d(Zo,b_,c(function(t,r,e,n){var o=l(Ic,v_,e);return p(S_,t,"radio",r,o,{ctor:"::",_0:f(Uc,o,Kn,{ctor:"::",_0:oi("mdl-radio__button"),_1:{ctor:"::",_0:$c(ro("radio")),_1:{ctor:"::",_0:$c(oo(o.config.value)),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-radio__label"),_1:{ctor:"[]"}},n),_1:{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-radio__outer-circle"),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Hn,{ctor:"::",_0:$n("mdl-radio__inner-circle"),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"[]"}}}}})}),cc)),R_=function(t){var r=l(at,function(t){var r=l(Mt,t,"parentElement");return l(A["++"],{ctor:"::",_0:"target",_1:{ctor:"[]"}},l(A["++"],r,{ctor:"::",_0:"nextSibling",_1:{ctor:"[]"}}))},l(St,0,4));return ue(l(at,function(r){return l(Qr,function(e){return e?l(se,r,t):Yr("")},l(Qr,function(t){return l(Jt,"mdl-tooltip",t)?$r(!0):$r(!1)},l(se,r,qe)))},r))},x_=e(function(t,r){var e=t;return"Enter"===e.ctor?{ctor:"_Tuple2",_0:b.update(r,{isActive:!0,domState:e._0}),_1:Me}:{ctor:"_Tuple2",_0:b.update(r,{isActive:!1}),_1:Me}}),L_=e(function(t,r){var n=e(function(t,r){return b.cmp(t+r,0)<0?{ctor:"_Tuple2",_0:0,_1:0}:{ctor:"_Tuple2",_0:t,_1:r}}),o=r.offsetHeight,c=o/2*-1,i=r.offsetWidth,u=i/2*-1,a=r.rect,_=l(n,a.left+a.width/2,u),s=_._0,d=_._1,f=l(n,a.top+a.height/2,c),p=f._0,h=f._1;return function(){switch(t.ctor){case"Left":return{left:a.left-i-10,top:p,marginTop:h,marginLeft:0};case"Right":return{left:a.left+a.width+10,top:p,marginTop:h,marginLeft:0};case"Top":return{left:s,top:a.top-o-10,marginTop:0,marginLeft:d};default:return{left:s,top:a.top+a.height+10,marginTop:0,marginLeft:d}}}()}),E_={left:0,top:0,marginLeft:0,marginTop:0},V_=d(rc,function(t){return t.tooltip},e(function(t,r){return b.update(r,{tooltip:t})}),{isActive:!1,domState:{rect:{left:0,top:0,width:0,height:0},offsetWidth:0,offsetHeight:0}}),N_=V_._0,A_=f($o,N_,V_._1,oc,Yo(x_)),H_=(e(function(t,r){return{isActive:t,domState:r}}),c(function(t,r,e,n){return{left:t,top:r,marginLeft:e,marginTop:n}}),o(function(t,r,e){return{rect:t,offsetWidth:r,offsetHeight:e}})),I_=f(oe,H_,Ze($e),R_(Ke),R_(je)),D_=(o(function(t,r,e){return{size:t,position:r,elem:e}}),{ctor:"Leave"}),P_=e(function(t,r){return l(pc,"mouseleave",$r(t(l(oc,r,D_))))}),B_=e(function(t,r){return l(pc,"mouseenter",l(ie,function(e){return t(l(oc,r,function(t){return{ctor:"Enter",_0:t}}(e)))},I_))}),q_=(e(function(t,r){return ri({ctor:"::",_0:Jc(l(B_,t,r)),_1:{ctor:"::",_0:Jc(l(P_,t,r)),_1:{ctor:"[]"}}})}),{ctor:"Large"}),F_=(qc(function(t){return b.update(t,{size:q_})}),{ctor:"Bottom"}),O_={size:{ctor:"Default"},position:F_,elem:En},U_=(d(Zo,N_,c(function(t,r,e,n){var o=function(t){return l(A["++"],k(t),"px")},c=l(Ic,O_,e).config,i=r.isActive?l(L_,c.position,r.domState):E_;return d(ui,c.elem,{ctor:"::",_0:oi("mdl-tooltip"),_1:{ctor:"::",_0:l(ti,r.isActive,oi("is-active")),_1:{ctor:"::",_0:l(ti,b.eq(c.size,q_),oi("mdl-tooltip--large")),_1:{ctor:"::",_0:l(ti,r.isActive,l(ei,"left",o(i.left))),_1:{ctor:"::",_0:l(ti,r.isActive,l(ei,"margin-left",o(i.marginLeft))),_1:{ctor:"::",_0:l(ti,r.isActive,l(ei,"top",o(i.top))),_1:{ctor:"::",_0:l(ti,r.isActive,l(ei,"margin-top",o(i.marginTop))),_1:{ctor:"[]"}}}}}}}},n)}),oc),qc(function(t){return b.update(t,{position:F_})}),{ctor:"Top"}),J_=(qc(function(t){return b.update(t,{position:U_})}),{ctor:"Right"}),j_=(qc(function(t){return b.update(t,{position:J_})}),{ctor:"Left"}),K_=(qc(function(t){return b.update(t,{position:j_})}),qc(function(t){return b.update(t,{ripple:!0})}),{ripple:!1,onSelectTab:B,activeTab:0}),W_={ripples:gr},G_=d(rc,function(t){return t.tabs},e(function(t,r){return b.update(r,{tabs:t})}),W_),X_=G_._0,Q_=G_._1,Y_=(o(function(t,r,e){return{ripple:t,onSelectTab:r,activeTab:e}}),e(function(t,r){return{ctor:"Ripple",_0:t,_1:r}})),$_=f($o,X_,Q_,nc,Yo(e(function(t,r){var e=t,n=e._0,o=l(gi,e._1,l(P,pi,l(ur,n,r.ripples))),c=o._0,i=o._1;return{ctor:"_Tuple2",_0:b.update(r,{ripples:d(Vr,n,c,r.ripples)}),_1:l(Se,Y_(n),i)}}))),Z_=(d(Zo,X_,i(function(t,r,n,o,c){var i=l(va,"div",{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-tab__panel",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"is-active",_1:!0},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),u=l(Ic,K_,n),a=u.config,_=e(function(e,n){var o=n,c=o._0._1;return d(ui,Vn,{ctor:"::",_0:oi("mdl-tabs__tab"),_1:{ctor:"::",_0:l(ti,b.eq(e,a.activeTab),oi("is-active")),_1:{ctor:"::",_0:l(P,Zc,l(O,function(t){return Xc(t(e))},a.onSelectTab)),_1:{ctor:"::",_0:ri(o._0._0),_1:{ctor:"[]"}}}}},a.ripple?ht({ctor:"::",_0:c,_1:{ctor:"::",_0:{ctor:"::",_0:l(mn,function(r){return t(l(Y_,e,r))},l(zi,{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-tabs__ripple-container",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-tabs__ripple-js-effect",_1:!0},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}},l(P,pi,l(ur,e,r.ripples)))),_1:{ctor:"[]"}},_1:{ctor:"[]"}}}):c)}),s=d(ui,En,{ctor:"::",_0:oi("mdl-tabs__tab-bar"),_1:{ctor:"[]"}},l(zt,_,o));return p(Ac,u,En,{ctor:"::",_0:oi("mdl-tabs"),_1:{ctor:"::",_0:oi("mdl-js-tabs"),_1:{ctor:"::",_0:oi("is-upgraded"),_1:{ctor:"::",_0:l(ti,a.ripple,oi("mdl-js-ripple-effect")),_1:{ctor:"::",_0:l(ti,a.ripple,oi("mdl-js-ripple-effect--ignore-events")),_1:{ctor:"[]"}}}}}},{ctor:"[]"},{ctor:"::",_0:s,_1:{ctor:"::",_0:i({ctor:"::",_0:{ctor:"_Tuple2",_0:k(a.activeTab),_1:l(En,{ctor:"[]"},c)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),nc),e(function(t,r){return{ctor:"Label",_0:{ctor:"_Tuple2",_0:t,_1:r}}})),ts=(e(function(t,r){return l(Z_,t,{ctor:"::",_0:vn(r),_1:{ctor:"[]"}})}),e(function(t,r){return ze({ctor:"::",_0:l(Za,t,r.mdl),_1:{ctor:"::",_0:l(Bu,t,r.mdl),_1:{ctor:"[]"}}})}),o(function(t,r,e){var n,o=r;switch(o.ctor){case"ButtonMsg":return f(Ii,t,o._1,o._0,e);case"TextfieldMsg":return f(Ui,t,o._1,o._0,e);case"MenuMsg":var c=o._0;return f(ju,function(r){return t(l(uc,c,r))},o._1,c,e);case"LayoutMsg":return d(Xa,function(r){return t(ic(r))},o._0,e);case"TogglesMsg":return f(k_,t,o._1,o._0,e);case"TooltipMsg":return f(A_,t,o._1,o._0,e);case"TabsMsg":return f($_,t,o._1,o._0,e);default:return{ctor:"_Tuple2",_0:B,_1:(n=o._0,we(l(at,Sc,n)))}}})),rs=o(function(t,r,e){return l(jo,P(e),l(jo,O(function(t){return b.update(e,{mdl:t})}),d(ts,t,r,e.mdl)))}),es={button:gr,textfield:gr,menu:gr,snackbar:B,layout:Ua,toggles:gr,tooltip:gr,tabs:gr},ns=(_(function(t,r,e,n,o,c,i,u){return{button:t,textfield:r,menu:e,snackbar:n,layout:o,toggles:c,tooltip:i,tabs:u}}),Jc(l(Xn,"onclick","var event = arguments[0] || window.event; event.stopPropagation();"))),os=function(t){var r=t;switch(r.ctor){case"Title":return l(ai,{ctor:"::",_0:oi("mdl-card__title"),_1:r._0},r._1);case"Media":return l(ai,{ctor:"::",_0:oi("mdl-card__media"),_1:r._0},r._1);case"SupportingText":return l(ai,{ctor:"::",_0:oi("mdl-card__supporting-text"),_1:r._0},r._1);case"Actions":return l(ai,{ctor:"::",_0:oi("mdl-card__actions"),_1:{ctor:"::",_0:ns,_1:r._0}},r._1);default:return l(ai,{ctor:"::",_0:oi("mdl-card__menu"),_1:{ctor:"::",_0:ns,_1:r._0}},r._1)}},cs=e(function(t,r){return l(ai,{ctor:"::",_0:ri(t),_1:{ctor:"::",_0:oi("mdl-card"),_1:{ctor:"::",_0:l(ei,"min-height","0px"),_1:{ctor:"[]"}}}},l(at,os,r))}),is=function(t){return l(ui,bn,{ctor:"::",_0:oi("mdl-card__title-text"),_1:{ctor:"::",_0:l(ei,"align-self","flex-start"),_1:t}})},us=(oi("mdl-card--expand"),oi("mdl-card--border")),as=e(function(t,r){return{ctor:"Actions",_0:t,_1:r}}),_s=e(function(t,r){return{ctor:"SupportingText",_0:t,_1:r}}),ss=(e(function(t,r){return{ctor:"Media",_0:t,_1:r}}),e(function(t,r){return{ctor:"Menu",_0:t,_1:r}})),ls=(e(function(t,r){return l(ss,t,r)}),e(function(t,r){return{ctor:"Title",_0:t,_1:r}})),ds=e(function(t,r){return l(ls,{ctor:"::",_0:ri(t),_1:{ctor:"::",_0:l(ei,"justify-content","flex-end"),_1:{ctor:"::",_0:l(ei,"flex-direction","column"),_1:{ctor:"::",_0:l(ei,"align-items","flex-start"),_1:{ctor:"[]"}}}}},r)}),fs=function(t){return"Just"===t.ctor},ps=function(t){var r=t;switch(r.ctor){case"Contact":return d(ui,r._0,{ctor:"::",_0:oi("mdl-chip__contact"),_1:r._1},r._2);case"Text":return d(ui,Hn,{ctor:"::",_0:oi("mdl-chip__text"),_1:r._0},r._1);default:return d(ui,r._0,{ctor:"::",_0:oi("mdl-chip__action"),_1:r._1},r._2)}},hs=function(t){switch(t.ctor){case"Contact":return 0;case"Text":return 1;default:return 2}},ms={deleteIcon:B,deleteLink:B,deleteClick:B},vs=(o(function(t,r,e){return{deleteIcon:t,deleteLink:r,deleteClick:e}}),o(function(t,r,e){return{ctor:"Action",_0:t,_1:r,_2:e}})),gs=(o(function(t,r,e){var n,o=l($,function(t){return b.eq(hs(t),0)},e),c=function(t){var r,e,n="Just"===(r=t.deleteClick).ctor?Jc(r._0):Zc,o="Just"===(e=t.deleteLink).ctor?Jc(e._0):Zc,c=fs(t.deleteClick),i=fs(t.deleteLink),u=i?Vn:Hn,a=fs(t.deleteIcon),_=a?l(P,"",t.deleteIcon):i||c?l(P,"cancel",t.deleteIcon):"";return a||i||c?F(d(vs,u,{ctor:"::",_0:o,_1:{ctor:"::",_0:n,_1:{ctor:"[]"}}},{ctor:"::",_0:l(Di,_,{ctor:"[]"}),_1:{ctor:"[]"}})):B}(l(Ic,ms,r).config),i=fs(c),u=l(A["++"],"Just"===(n=c).ctor?{ctor:"::",_0:n._0,_1:{ctor:"[]"}}:{ctor:"[]"},e),a=l(at,ps,l(K,hs,u));return d(ui,t,l(A["++"],{ctor:"::",_0:oi("mdl-chip"),_1:{ctor:"::",_0:l(ti,o,oi("mdl-chip--contact")),_1:{ctor:"::",_0:l(ti,i,oi("mdl-chip--deletable")),_1:{ctor:"::",_0:Jc(Ko("mouseup")),_1:{ctor:"::",_0:Jc(Ko("mouseleave")),_1:{ctor:"::",_0:Jc(Ko("touchend")),_1:{ctor:"[]"}}}}}}},r),a)})(Hn),e(function(t,r){return{ctor:"Text",_0:t,_1:r}})),ys=(e(function(t,r){return l(gs,t,{ctor:"::",_0:vn(r),_1:{ctor:"[]"}})}),o(function(t,r,e){return{ctor:"Contact",_0:t,_1:r,_2:e}}),function(t){var r=t;return oi(l(A["++"],"mdl-color-text--",r._0))}),bs=function(t){var r=t;return oi(l(A["++"],"mdl-color--",r._0))},Ts=function(t){switch(t.ctor){case"Indigo":return"indigo";case"Blue":return"blue";case"LightBlue":return"light-blue";case"Cyan":return"cyan";case"Teal":return"teal";case"Green":return"green";case"LightGreen":return"light-green";case"Lime":return"lime";case"Yellow":return"yellow";case"Amber":return"amber";case"Orange":return"orange";case"Brown":return"brown";case"BlueGrey":return"blue-grey";case"Grey":return"grey";case"DeepOrange":return"deep-orange";case"Red":return"red";case"Pink":return"pink";case"Purple":return"purple";default:return"deep-purple"}},ws=(e(function(t,r){var e=Qt(function(t){return b.eq(t,b.chr("-"))?b.chr("_"):t}),n=function(){switch(r.ctor){case"Grey":case"Brown":case"BlueGrey":return"";default:return l(A["++"],".",l(A["++"],e(Ts(t)),l(A["++"],"-",e(Ts(r)))))}}();return l(A["++"],"material",l(A["++"],n,".min.css"))}),{ctor:"DeepPurple"}),Ms={ctor:"Purple"},ks={ctor:"Pink"},Ss={ctor:"Red"},zs={ctor:"DeepOrange"},Cs={ctor:"Orange"},Rs={ctor:"Amber"},xs={ctor:"Yellow"},Ls={ctor:"Lime"},Es={ctor:"LightGreen"},Vs={ctor:"Green"},Ns={ctor:"Teal"},As={ctor:"Cyan"},Hs={ctor:"LightBlue"},Is={ctor:"Blue"},Ds={ctor:"Indigo"},Ps=(Rt({ctor:"::",_0:Ds,_1:{ctor:"::",_0:Is,_1:{ctor:"::",_0:Hs,_1:{ctor:"::",_0:As,_1:{ctor:"::",_0:Ns,_1:{ctor:"::",_0:Vs,_1:{ctor:"::",_0:Es,_1:{ctor:"::",_0:Ls,_1:{ctor:"::",_0:xs,_1:{ctor:"::",_0:Rs,_1:{ctor:"::",_0:Cs,_1:{ctor:"::",_0:{ctor:"Brown"},_1:{ctor:"::",_0:{ctor:"BlueGrey"},_1:{ctor:"::",_0:{ctor:"Grey"},_1:{ctor:"::",_0:zs,_1:{ctor:"::",_0:Ss,_1:{ctor:"::",_0:ks,_1:{ctor:"::",_0:Ms,_1:{ctor:"::",_0:ws,_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}),Rt({ctor:"::",_0:Ds,_1:{ctor:"::",_0:Is,_1:{ctor:"::",_0:Hs,_1:{ctor:"::",_0:As,_1:{ctor:"::",_0:Ns,_1:{ctor:"::",_0:Vs,_1:{ctor:"::",_0:Es,_1:{ctor:"::",_0:Ls,_1:{ctor:"::",_0:xs,_1:{ctor:"::",_0:Rs,_1:{ctor:"::",_0:Cs,_1:{ctor:"::",_0:zs,_1:{ctor:"::",_0:Ss,_1:{ctor:"::",_0:ks,_1:{ctor:"::",_0:Ms,_1:{ctor:"::",_0:ws,_1:{ctor:"[]"}}}}}}}}}}}}}}}}}),Rt({ctor:"::",_0:{ctor:"S50"},_1:{ctor:"::",_0:{ctor:"S100"},_1:{ctor:"::",_0:{ctor:"S200"},_1:{ctor:"::",_0:{ctor:"S300"},_1:{ctor:"::",_0:{ctor:"S400"},_1:{ctor:"::",_0:{ctor:"S500"},_1:{ctor:"::",_0:{ctor:"S600"},_1:{ctor:"::",_0:{ctor:"S700"},_1:{ctor:"::",_0:{ctor:"S800"},_1:{ctor:"::",_0:{ctor:"S900"},_1:{ctor:"::",_0:{ctor:"A100"},_1:{ctor:"::",_0:{ctor:"A200"},_1:{ctor:"::",_0:{ctor:"A400"},_1:{ctor:"::",_0:{ctor:"A700"},_1:{ctor:"[]"}}}}}}}}}}}}}}}),function(t){return{ctor:"C",_0:t}}),Bs=(e(function(t,r){return Ps(l(A["++"],Ts(t),l(A["++"],"-",function(t){switch(r.ctor){case"S50":return"50";case"S100":return"100";case"S200":return"200";case"S300":return"300";case"S400":return"400";case"S500":return"500";case"S600":return"600";case"S700":return"700";case"S800":return"800";case"S900":return"900";case"A100":return"A100";case"A200":return"A200";case"A400":return"A400";default:return"A700"}}())))}),Ps("white")),qs=Ps("black"),Fs=Ps("primary"),Os=Ps("primary-dark"),Us=Ps("primary-contrast"),Js=Ps("accent"),js=Ps("accent-contrast"),Ks=Zc,Ws=function(t){return oi(l(A["++"],"mdl-shadow--",l(A["++"],k(t),"dp")))},Gs=Ws(2),Xs=Ws(3),Qs=Ws(4),Ys=Ws(6),$s=Ws(8),Zs=Ws(16),tl=Ws(24),rl=(Rt({ctor:"::",_0:{ctor:"_Tuple2",_0:Ks,_1:0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:Gs,_1:2},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:Xs,_1:3},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:Qs,_1:4},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:Ys,_1:6},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:$s,_1:8},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:Zs,_1:16},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:tl,_1:24},_1:{ctor:"[]"}}}}}}}}}),{regex:function(t){return new RegExp(t,"g")},caseInsensitive:function(t){return new RegExp(t.source,"gi")},escape:function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},contains:e(function(t,r){return null!==r.match(t)}),find:o(function(t,r,e){t="All"===t.ctor?1/0:t._0;for(var n,o=[],c=0,i=e,u=r.lastIndex,a=-1;c++0;){var l=n[_];s[--_]=void 0===l?B:F(l)}o.push({match:n[0],submatches:J.fromArray(s),index:n.index,number:c}),a=r.lastIndex}return r.lastIndex=u,J.fromArray(o)}),replace:c(function(t,r,e,n){t="All"===t.ctor?1/0:t._0;var o=0;return n.replace(r,function(r){if(o++>=t)return r;for(var n=arguments.length-3,c=new Array(n);n>0;){var i=arguments[n];c[--n]=void 0===i?B:F(i)}return e({match:r,submatches:J.fromArray(c),index:arguments[arguments.length-2],number:o})})}),split:o(function(t,r,e){if((t="All"===t.ctor?1/0:t._0)===1/0)return J.fromArray(e.split(r));for(var n,o=e,c=[],i=r.lastIndex,u=r.lastIndex;t--&&(n=r.exec(o));)c.push(o.slice(i,n.index)),i=r.lastIndex;return c.push(o.slice(i)),r.lastIndex=u,J.fromArray(c)})}),el=rl.split,nl=rl.replace,ol=rl.contains,cl=rl.caseInsensitive,il=rl.regex,ul=(c(function(t,r,e,n){return{match:t,submatches:r,index:e,number:n}}),d(nl,{ctor:"All"},il("{{prefix}}"),function(t){return""})),al=function(t){return oi(l(A["++"],"{{prefix}}",t))},_l=al("social-btn"),sl=al("heading"),ll=function(t){return"Mini"===t.ctor?"mdl-mini-footer":"mdl-mega-footer"},dl=e(function(t,r){var e=ll(t),n=r;switch(n.ctor){case"Class":var o=n._0;return l(Ut,"{{prefix}}",o)?oi(l(A["++"],e,l(A["++"],"__",ul(o)))):r;case"Many":return ri(l(at,dl(t),n._0));default:return r}}),fl=e(function(t,r){var e=r,n=l(at,dl(t),e.styles);return d(ui,e.elem,n,l(at,pl(t),e.content))}),pl=e(function(t,r){var e=r;return"HtmlContent"===e.ctor?e._0:l(fl,t,e._0)}),hl=o(function(t,r,e){var n=ll(t),o=e;return"HtmlContent"===o.ctor?d(ui,En,{ctor:"::",_0:oi(l(A["++"],n,l(A["++"],"__",r))),_1:{ctor:"[]"}},{ctor:"::",_0:o._0,_1:{ctor:"[]"}}):d(ui,o._0.elem,{ctor:"::",_0:oi(l(A["++"],n,l(A["++"],"__",r))),_1:o._0.styles},l(at,pl(t),o._0.content))}),ml=e(function(t,r){var e=r;return"Just"===e.ctor?{ctor:"::",_0:d(hl,t,"left-section",e._0._0),_1:{ctor:"[]"}}:{ctor:"[]"}}),vl=e(function(t,r){var e=r;return"Just"===e.ctor?{ctor:"::",_0:d(hl,t,"right-section",e._0._0),_1:{ctor:"[]"}}:{ctor:"[]"}}),gl=(o(function(t,r,e){return{styles:t,content:r,elem:e}}),e(function(t,r){return{left:t,right:r}}),o(function(t,r,e){return{top:t,bottom:r,middle:e}}),{ctor:"Mega"}),yl=(e(function(t,r){var e,n,o,c=r,i=gl,u=ll(i),a="Nothing"===(e=c.top).ctor?{ctor:"[]"}:{ctor:"::",_0:d(ui,En,{ctor:"::",_0:oi(l(A["++"],u,l(A["++"],"__","top-section"))),_1:e._0._0.props},l(A["++"],l(ml,i,e._0._0.left),l(vl,i,e._0._0.right))),_1:{ctor:"[]"}},_="Nothing"===(n=c.middle).ctor?{ctor:"[]"}:{ctor:"::",_0:d(ui,En,{ctor:"::",_0:oi(l(A["++"],u,l(A["++"],"__","middle-section"))),_1:n._0._0.props},l(at,pl(i),n._0._0.content)),_1:{ctor:"[]"}},s="Nothing"===(o=c.bottom).ctor?{ctor:"[]"}:{ctor:"::",_0:d(ui,En,{ctor:"::",_0:oi(l(A["++"],u,l(A["++"],"__","bottom-section"))),_1:o._0._0.props},l(A["++"],{ctor:"[]"},l(at,pl(i),o._0._0.content))),_1:{ctor:"[]"}};return d(ui,Sn,{ctor:"::",_0:oi(u),_1:t},l(A["++"],a,l(A["++"],_,s)))}),{ctor:"Mini"}),bl=e(function(t,r){var e=r,n=yl,o=ll(n),c=l(ml,n,e.left),i=l(vl,n,e.right);return d(ui,Sn,{ctor:"::",_0:oi(o),_1:t},l(A["++"],c,i))}),Tl=function(t){return{ctor:"Content",_0:t}},wl=(e(function(t,r){return Tl({styles:{ctor:"::",_0:oi("mdl-logo"),_1:t},content:r,elem:En})}),e(function(t,r){return Tl({styles:{ctor:"::",_0:al("link-list"),_1:t},content:r,elem:xn})}),e(function(t,r){return Tl({styles:{ctor:"[]"},content:{ctor:"::",_0:Tl({styles:t,content:r,elem:Vn}),_1:{ctor:"[]"}},elem:Ln})}),e(function(t,r){return Tl({styles:{ctor:"::",_0:sl,_1:t},content:r,elem:bn})}),e(function(t,r){return Tl({styles:{ctor:"::",_0:_l,_1:t},content:r,elem:Wn})}),function(t){return{ctor:"HtmlContent",_0:t}}),Ml=wl(l(Kn,{ctor:"::",_0:$n("mdl-mega-footer__heading-checkbox"),_1:{ctor:"::",_0:ro("checkbox"),_1:{ctor:"::",_0:l(Xn,"checked",""),_1:{ctor:"[]"}}}},{ctor:"[]"})),kl=(e(function(t,r){return Tl({styles:{ctor:"::",_0:oi("mdl-mega-footer__drop-down-section"),_1:t},content:{ctor:"::",_0:Ml,_1:r},elem:En})}),wl),Sl=(e(function(t,r){return kl(d(ui,Vn,t,r))}),e(function(t,r){return kl(d(ui,Ln,t,r))}),function(t){return{ctor:"Section",_0:t}}),zl=e(function(t,r){return e=Tl({styles:t,content:r,elem:En}),F(Sl(e));var e}),Cl=e(function(t,r){return e=Tl({styles:t,content:r,elem:En}),F(Sl(e));var e}),Rl=(e(function(t,r){var e=r;return F({ctor:"TopSection",_0:{left:e.left,right:e.right,props:t}})}),e(function(t,r){return F({ctor:"BottomSection",_0:{props:t,content:r}})}),e(function(t,r){return F({ctor:"MiddleSection",_0:{props:t,content:r}})}),o(function(t,r,e){return l(R,t,l(x,e,r))})),xl=oi("mdl-cell--stretch"),Ll=function(t){switch(t.ctor){case"All":return"";case"Desktop":return"-desktop";case"Tablet":return"-tablet";default:return"-phone"}},El=e(function(t,r){var e=function(){switch(t.ctor){case"All":case"Desktop":return d(Rl,1,12,r);case"Tablet":return d(Rl,1,8,r);default:return d(Rl,1,4,r)}}();return oi(l(A["++"],"mdl-cell--",l(A["++"],k(e),l(A["++"],"-col",Ll(t)))))}),Vl=(e(function(t,r){var e=function(){switch(t.ctor){case"All":case"Desktop":return d(Rl,0,11,r);case"Tablet":return d(Rl,0,7,r);default:return d(Rl,0,3,r)}}();return oi(l(A["++"],"mdl-cell--",l(A["++"],k(e),l(A["++"],"-offset",Ll(t)))))}),e(function(t,r){return oi(l(A["++"],"mdl-cell--order-",l(A["++"],k(d(Rl,1,12,r)),Ll(t))))}),e(function(t,r){return l(ai,{ctor:"::",_0:oi("mdl-grid"),_1:t},l(at,function(t){return t._0},r))})),Nl=(oi("mdl-grid--no-spacing"),{ctor:"Phone"}),Al={ctor:"Tablet"},Hl={ctor:"Desktop"},Il={ctor:"All"},Dl=e(function(t,r){return{ctor:"Cell",_0:l(ai,{ctor:"::",_0:oi("mdl-cell"),_1:t},r)}}),Pl={ctor:"Middle"},Bl=(oi("mdl-list__item-secondary-action"),function(t){return _i({ctor:"::",_0:oi("mdl-list__item-secondary-content"),_1:t})}),ql=function(t){return _i({ctor:"::",_0:oi("mdl-list__item-sub-title"),_1:t})},Fl=function(t){return _i({ctor:"::",_0:oi("mdl-list__item-text-body"),_1:t})},Ol=(e(function(t,r){return l(Di,t,{ctor:"::",_0:oi("mdl-list__item-icon"),_1:r})}),oi("mdl-list__item-avatar")),Ul=(e(function(t,r){return f(ii,In,{ctor:"::",_0:Ol,_1:r},{ctor:"::",_0:to(t),_1:{ctor:"[]"}},{ctor:"[]"})}),e(function(t,r){return l(ai,{ctor:"::",_0:ni,_1:{ctor:"::",_0:ri(r),_1:{ctor:"::",_0:Ol,_1:{ctor:"[]"}}}},{ctor:"::",_0:Pi(t),_1:{ctor:"[]"}})}),function(t){return _i({ctor:"::",_0:oi("mdl-list__item-primary-content"),_1:t})}),Jl=oi("mdl-list__item--two-line"),jl=oi("mdl-list__item--three-line"),Kl=function(t){return l(ui,Ln,{ctor:"::",_0:oi("mdl-list__item"),_1:t})},Wl=function(t){return l(ui,xn,{ctor:"::",_0:oi("mdl-list"),_1:t})},Gl={numeric:!1},Xl=e(function(t,r){var e=l(Ic,Gl,t),n=e,o=e.config;return p(Ac,n,On,{ctor:"::",_0:l(ti,o.numeric,oi("mdl-data-table__cell--non-numeric")),_1:{ctor:"[]"}},{ctor:"[]"},r)}),Ql=function(t){return qc(function(r){return b.update(r,{sorted:F(t)})})},Yl=qc(function(t){return b.update(t,{numeric:!0})}),$l={numeric:!1,sorted:B},Zl=e(function(t,r){var e,n=l(Ic,$l,t),o=n,c=n.config;return p(Ac,o,Un,{ctor:"::",_0:l(ti,c.numeric,oi("mdl-data-table__cell--non-numeric")),_1:{ctor:"::",_0:(e=c.sorted,"Just"===e.ctor?"Ascending"===e._0.ctor?oi("mdl-data-table__header--sorted-ascending"):oi("mdl-data-table__header--sorted-descending"):Zc),_1:{ctor:"[]"}}},{ctor:"[]"},r)}),td=(qc(function(t){return b.update(t,{selected:!0})}),{selected:!1}),rd=e(function(t,r){var e=l(Ic,td,t),n=e,o=e.config;return p(Ac,n,Fn,{ctor:"::",_0:l(ti,o.selected,oi("is-selected")),_1:{ctor:"[]"}},{ctor:"[]"},r)}),ed=(e(function(t,r){var e=l(Ic,{},t);return p(Ac,e,qn,{ctor:"[]"},{ctor:"[]"},r)}),e(function(t,r){var e=l(Ic,{},t);return p(Ac,e,Pn,{ctor:"[]"},{ctor:"[]"},r)})),nd=e(function(t,r){var e=l(Ic,{},t);return p(Ac,e,Bn,{ctor:"[]"},{ctor:"[]"},r)}),od=e(function(t,r){return d(ui,Dn,{ctor:"::",_0:oi("mdl-data-table"),_1:{ctor:"::",_0:oi("mdl-js-data-table"),_1:{ctor:"::",_0:oi("is-upgraded"),_1:t}}},r)}),cd=(e(function(t,r){return{numeric:t,sorted:r}}),Ql({ctor:"Descending"}),Ql({ctor:"Ascending"}),oi("mdl-typography--text-uppercase"),oi("mdl-typography--text-lowercase"),oi("mdl-typography--text-capitalize"),oi("mdl-typography--text-justify"),oi("mdl-typography--text-right"),oi("mdl-typography--text-left")),id=(oi("mdl-typography--text-center"),oi("mdl-typography--table-striped"),oi("mdl-typography--text-nowrap"),oi("mdl-typography--menu-color-contrast"),oi("mdl-typography--button-color-contrast"),oi("mdl-typography--caption-force-preferred-font-color-contrast"),oi("mdl-typography--body-2-force-preferred-font-color-contrast")),ud=oi("mdl-typography--body-1-force-preferred-font-color-contrast"),ad=oi("mdl-typography--subhead-color-contrast"),_d=oi("mdl-typography--title-color-contrast"),sd=oi("mdl-typography--headline-color-contrast"),ld=(oi("mdl-typography--display-4-color-contrast"),oi("mdl-typography--display-3-color-contrast"),oi("mdl-typography--display-2-color-contrast"),oi("mdl-typography--display-1-color-contrast"),l(sn,"namespace",Kr("http://www.w3.org/2000/svg"))),dd=o(function(t,r,e){return d(fn,t,{ctor:"::",_0:ld,_1:r},e)}),fd=dd("svg"),pd=(dd("foreignObject"),dd("animate"),dd("animateColor"),dd("animateMotion"),dd("animateTransform"),dd("mpath"),dd("set"),dd("a"),dd("defs")),hd=(dd("g"),dd("marker"),dd("mask"),dd("pattern"),dd("switch"),dd("symbol"),dd("desc"),dd("metadata"),dd("title"),dd("feBlend"),dd("feColorMatrix"),dd("feComponentTransfer"),dd("feComposite"),dd("feConvolveMatrix"),dd("feDiffuseLighting"),dd("feDisplacementMap"),dd("feFlood"),dd("feFuncA"),dd("feFuncB"),dd("feFuncG"),dd("feFuncR"),dd("feGaussianBlur"),dd("feImage"),dd("feMerge"),dd("feMergeNode"),dd("feMorphology"),dd("feOffset"),dd("feSpecularLighting"),dd("feTile"),dd("feTurbulence"),dd("font"),dd("linearGradient"),dd("radialGradient"),dd("stop"),dd("circle"),dd("ellipse"),dd("image"),dd("line"),dd("path")),md=(dd("polygon"),dd("polyline"),dd("rect"),dd("use")),vd=(dd("feDistantLight"),dd("fePointLight"),dd("feSpotLight"),dd("altGlyph"),dd("altGlyphDef"),dd("altGlyphItem"),dd("glyph"),dd("glyphRef"),dd("textPath"),dd("text"),dd("tref"),dd("tspan"),dd("clipPath"),dd("colorProfile"),dd("cursor"),dd("filter"),dd("script"),dd("style"),dd("view"),_n("writing-mode"),_n("word-spacing"),_n("visibility"),_n("unicode-bidi"),_n("text-rendering"),_n("text-decoration"),_n("text-anchor"),_n("stroke"),_n("stroke-width"),_n("stroke-opacity"),_n("stroke-miterlimit"),_n("stroke-linejoin"),_n("stroke-linecap"),_n("stroke-dashoffset"),_n("stroke-dasharray"),_n("stop-opacity"),_n("stop-color"),_n("shape-rendering"),_n("pointer-events"),_n("overflow")),gd=_n("opacity"),yd=(_n("mask"),_n("marker-start"),_n("marker-mid"),_n("marker-end"),_n("lighting-color"),_n("letter-spacing"),_n("kerning"),_n("image-rendering"),_n("glyph-orientation-vertical"),_n("glyph-orientation-horizontal"),_n("font-weight"),_n("font-variant"),_n("font-style"),_n("font-stretch"),_n("font-size"),_n("font-size-adjust"),_n("font-family"),_n("flood-opacity"),_n("flood-color"),_n("filter"),_n("fill")),bd=(_n("fill-rule"),_n("fill-opacity")),Td=(_n("enable-background"),_n("dominant-baseline"),_n("display"),_n("direction"),_n("cursor"),_n("color"),_n("color-rendering"),_n("color-profile"),_n("color-interpolation"),_n("color-interpolation-filters"),_n("clip"),_n("clip-rule"),_n("clip-path")),wd=(_n("baseline-shift"),_n("alignment-baseline"),_n("zoomAndPan"),_n("z"),_n("yChannelSelector"),_n("y2"),_n("y1"),_n("y"),l(an,"http://www.w3.org/XML/1998/namespace","xml:space"),l(an,"http://www.w3.org/XML/1998/namespace","xml:lang"),l(an,"http://www.w3.org/XML/1998/namespace","xml:base"),l(an,"http://www.w3.org/1999/xlink","xlink:type"),l(an,"http://www.w3.org/1999/xlink","xlink:title"),l(an,"http://www.w3.org/1999/xlink","xlink:show"),l(an,"http://www.w3.org/1999/xlink","xlink:role"),l(an,"http://www.w3.org/1999/xlink","xlink:href")),Md=(l(an,"http://www.w3.org/1999/xlink","xlink:arcrole"),l(an,"http://www.w3.org/1999/xlink","xlink:actuate"),_n("xChannelSelector"),_n("x2"),_n("x1"),_n("x-height"),_n("x"),_n("widths"),_n("width")),kd=(_n("viewTarget"),_n("viewBox")),Sd=(_n("vert-origin-y"),_n("vert-origin-x"),_n("vert-adv-y"),_n("version"),_n("values"),_n("v-mathematical"),_n("v-ideographic"),_n("v-hanging"),_n("v-alphabetic"),_n("units-per-em"),_n("unicode-range"),_n("unicode"),_n("underline-thickness"),_n("underline-position"),_n("u2"),_n("u1"),_n("type"),_n("transform"),_n("to"),_n("title"),_n("textLength"),_n("targetY"),_n("targetX"),_n("target"),_n("tableValues"),_n("systemLanguage"),_n("surfaceScale"),_n("style"),_n("string"),_n("strikethrough-thickness"),_n("strikethrough-position"),_n("stitchTiles"),_n("stemv"),_n("stemh"),_n("stdDeviation"),_n("startOffset"),_n("spreadMethod"),_n("speed"),_n("specularExponent"),_n("specularConstant"),_n("spacing"),_n("slope"),_n("seed"),_n("scale"),_n("ry"),_n("rx"),_n("rotate"),_n("result"),_n("restart"),_n("requiredFeatures"),_n("requiredExtensions"),_n("repeatDur"),_n("repeatCount"),_n("rendering-intent"),_n("refY"),_n("refX"),_n("radius"),_n("r"),_n("primitiveUnits"),_n("preserveAspectRatio"),_n("preserveAlpha"),_n("pointsAtZ"),_n("pointsAtY"),_n("pointsAtX"),_n("points"),_n("point-order"),_n("patternUnits"),_n("patternTransform"),_n("patternContentUnits"),_n("pathLength"),_n("path"),_n("panose-1"),_n("overline-thickness"),_n("overline-position"),_n("origin"),_n("orientation"),_n("orient"),_n("order"),_n("operator"),_n("offset"),_n("numOctaves"),_n("name"),_n("mode"),_n("min"),_n("method"),_n("media"),_n("max"),_n("mathematical"),_n("maskUnits"),_n("maskContentUnits"),_n("markerWidth"),_n("markerUnits"),_n("markerHeight"),_n("local"),_n("limitingConeAngle"),_n("lengthAdjust"),_n("lang"),_n("keyTimes"),_n("keySplines"),_n("keyPoints"),_n("kernelUnitLength"),_n("kernelMatrix"),_n("k4"),_n("k3"),_n("k2"),_n("k1"),_n("k"),_n("intercept"),_n("in2"),_n("in"),_n("ideographic"),_n("id")),zd=(_n("horiz-origin-y"),_n("horiz-origin-x"),_n("horiz-adv-x"),_n("height")),Cd=(_n("hanging"),_n("gradientUnits"),_n("gradientTransform"),_n("glyphRef"),_n("glyph-name"),_n("g2"),_n("g1"),_n("fy"),_n("fx"),_n("from"),_n("format"),_n("filterUnits"),_n("filterRes"),_n("externalResourcesRequired"),_n("exponent"),_n("end"),_n("elevation"),_n("edgeMode"),_n("dy"),_n("dx"),_n("dur"),_n("divisor"),_n("diffuseConstant"),_n("descent"),_n("decelerate"),_n("d")),Rd=(_n("cy"),_n("cx"),_n("contentStyleType"),_n("contentScriptType"),_n("clipPathUnits"),_n("class"),_n("cap-height"),_n("calcMode"),_n("by"),_n("bias"),_n("begin"),_n("bbox"),_n("baseProfile"),_n("baseFrequency"),_n("azimuth"),_n("autoReverse"),_n("attributeType"),_n("attributeName"),_n("ascent"),_n("arabic-form"),_n("amplitude"),_n("allowReorder"),_n("alphabetic"),_n("additive"),_n("accumulate"),_n("accelerate"),_n("accent-height"),e(function(t,r){var e=z(t);return S(l(A["%"],e,r))+t-S(e)})),xd=(o(function(t,r,e){var n=S(e)/255,o=S(r)/255,c=S(t)/255,i=l(R,l(R,c,o),n),u=l(x,l(x,c,o),n),a=i-u,_=(i+u)/2,s=b.eq(_,0)?0:a/(1-V(2*_-1));return{ctor:"_Tuple3",_0:D(60)*(b.eq(i,c)?l(Rd,(o-n)/a,6):b.eq(i,o)?(n-c)/a+2:(c-o)/a+4),_1:s,_2:_}}),o(function(t,r,e){var n=t/D(60),o=(1-V(2*e-1))*r,c=o*(1-V(l(Rd,n,2)-1)),i=b.cmp(n,0)<0?{ctor:"_Tuple3",_0:0,_1:0,_2:0}:b.cmp(n,1)<0?{ctor:"_Tuple3",_0:o,_1:c,_2:0}:b.cmp(n,2)<0?{ctor:"_Tuple3",_0:c,_1:o,_2:0}:b.cmp(n,3)<0?{ctor:"_Tuple3",_0:0,_1:o,_2:c}:b.cmp(n,4)<0?{ctor:"_Tuple3",_0:0,_1:c,_2:o}:b.cmp(n,5)<0?{ctor:"_Tuple3",_0:c,_1:0,_2:o}:b.cmp(n,6)<0?{ctor:"_Tuple3",_0:o,_1:0,_2:c}:{ctor:"_Tuple3",_0:0,_1:0,_2:0},u=e-o/2;return{ctor:"_Tuple3",_0:i._0+u,_1:i._1+u,_2:i._2+u}})),Ld=c(function(t,r,e,n){return{ctor:"HSLA",_0:t,_1:r,_2:e,_3:n}}),Ed=c(function(t,r,e,n){return f(Ld,t-I(S(z(t/(2*E)))),r,e,n)}),Vd=(o(function(t,r,e){return f(Ed,t,r,e,1)}),c(function(t,r,e,n){return{ctor:"RGBA",_0:t,_1:r,_2:e,_3:n}})),Nd=o(function(t,r,e){return f(Vd,t,r,e,1)}),Ad=(f(Vd,239,41,41,1),f(Vd,204,0,0,1),f(Vd,164,0,0,1),f(Vd,252,175,62,1),f(Vd,245,121,0,1),f(Vd,206,92,0,1),f(Vd,255,233,79,1),f(Vd,237,212,0,1),f(Vd,196,160,0,1),f(Vd,138,226,52,1),f(Vd,115,210,22,1),f(Vd,78,154,6,1),f(Vd,114,159,207,1),f(Vd,52,101,164,1),f(Vd,32,74,135,1),f(Vd,173,127,168,1),f(Vd,117,80,123,1),f(Vd,92,53,102,1),f(Vd,233,185,110,1),f(Vd,193,125,17,1),f(Vd,143,89,2,1),f(Vd,0,0,0,1)),Hd=f(Vd,255,255,255,1),Id=(f(Vd,238,238,236,1),f(Vd,211,215,207,1),f(Vd,186,189,182,1),f(Vd,238,238,236,1),f(Vd,211,215,207,1),f(Vd,186,189,182,1),f(Vd,136,138,133,1),f(Vd,85,87,83,1),f(Vd,46,52,54,1),i(function(t,r,e,n,o){return{ctor:"Radial",_0:t,_1:r,_2:e,_3:n,_4:o}}),o(function(t,r,e){return{ctor:"Linear",_0:t,_1:r,_2:e}}),function(t){var r=function(t){var r=t;if("RGBA"===r.ctor)return{red:r._0,green:r._1,blue:r._2,alpha:r._3};var e=d(xd,r._0,r._1,r._2),n=e._0,o=e._1,c=e._2;return{red:C(255*n),green:C(255*o),blue:C(255*c),alpha:r._3}}(t),e=r.red,n=r.green,o=r.blue,c=r.alpha;return l(A["++"],"rgba(",l(A["++"],k(e),l(A["++"],",",l(A["++"],k(n),l(A["++"],",",l(A["++"],k(o),l(A["++"],",",l(A["++"],k(c),")"))))))))}),Dd=o(function(t,r,e){var n=Id(r),o=k(e);return l(fd,{ctor:"::",_0:Md(o),_1:{ctor:"::",_0:zd(o),_1:{ctor:"::",_0:kd("0 0 24 24"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(hd,{ctor:"::",_0:Cd(t),_1:{ctor:"::",_0:yd(n),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}})}),Pd=(Dd("M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"),Dd("M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"),Dd("M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4.5 4.5c0 2.48-2.02 4.5-4.5 4.5-.65 0-1.26-.14-1.82-.38L7.71 15.1c.97.57 2.09.9 3.3.9 1.61 0 3.08-.59 4.22-1.57l.27.27v.79l5.01 4.99L22 19l-4.99-5z"),Dd("M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"),Dd("M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"),Dd("M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"),Dd("M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"),Dd("M4 18h17v-6H4v6zM4 5v6h17V5H4z"),Dd("M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"),Dd("M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"),Dd("M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"),Dd("M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"),Dd("M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"),Dd("M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"),Dd("M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"),Dd("M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"),Dd("M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"),Dd("M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"),Dd("M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"),Dd("M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"),Dd("M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"),Dd("M22 12l-4-4v3H3v2h15v3z"),Dd("M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"),Dd("M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"),Dd("M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"),Dd("M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65z"),Dd("M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"),Dd("M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"),Dd("M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.55V6zm10.5 4h-6.75c-.62 0-1.15.38-1.38.91l-2.26 5.29c-.07.17-.11.36-.11.55V18c0 .55.45 1 1 1h5.18l-.66 3.18-.02.24c0 .31.13.59.33.8l.79.78 4.94-4.94c.27-.27.44-.65.44-1.06v-6.5c0-.83-.67-1.5-1.5-1.5z"),Dd("M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z"),Dd("M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"),Dd("M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"),Dd("M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"),Dd("M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"),Dd("M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"),Dd("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"),Dd("M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"),Dd("M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"),Dd("M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"),Dd("M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"),Dd("M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"),Dd("M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"),e(function(t,r){var e=k(r),n=Id(t);return l(fd,{ctor:"::",_0:Md(e),_1:{ctor:"::",_0:zd(e),_1:{ctor:"::",_0:kd("0 0 18 18"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(hd,{ctor:"::",_0:Cd("M9 11.3l3.71 2.7-1.42-4.36L15 7h-4.55L9 2.5 7.55 7H3l3.71 2.64L5.29 14z"),_1:{ctor:"::",_0:yd(n),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}})}),Dd("M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-1.41-1.41z"),Dd("M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z"),Dd("M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"),Dd("M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1h-4.79zM9 9l3-4.4L15 9H9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"),Dd("M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z"),Dd("M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"),Dd("M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5c0 3.41 2.72 6.23 6 6.72V20h2v-3.28c3.28-.49 6-3.31 6-6.72z"),Dd("M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"),Dd("M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12L7.44 4.44C5.36 5.88 4 8.28 4 11c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.72-1.36-5.12-3.44-6.56zM15 24h2v-2h-2v2z"),Dd("M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM19 9v2h2V9h-2z"),Dd("M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"),Dd("M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM8.5 15c-.83 0-1.5.67-1.5 1.5S7.67 18 8.5 18s1.5-.67 1.5-1.5S9.33 15 8.5 15zM12 1C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm0 20c-4.96 0-9-4.04-9-9s4.04-9 9-9 9 4.04 9 9-4.04 9-9 9zm5.5-11c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm-2 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"),Dd("M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"),Dd("M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"),Dd("M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"),Dd("M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 10.62 9.5 12c0 1.02.62 1.9 1.5 2.29v3.3L7.59 21 9 22.41l3-3 3 3L16.41 21 13 17.59v-3.3zM12 1C5.93 1 1 5.93 1 12h2c0-4.97 4.03-9 9-9s9 4.03 9 9h2c0-6.07-4.93-11-11-11z"),Dd("M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"),Dd("M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"),Dd("M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5V16zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3V9z"),Dd("M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13 7.59V3.83zm1.88 10.46L13 16.17v-3.76l1.88 1.88z"),Dd("M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"),Dd("M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69z"),Dd("M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"),Dd("M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"),e(function(t,r){var e=k(r),n=Id(t);return l(fd,{ctor:"::",_0:Md(e),_1:{ctor:"::",_0:zd(e),_1:{ctor:"::",_0:kd("0 0 24 24"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(hd,{ctor:"::",_0:bd(".9"),_1:{ctor:"::",_0:Cd("M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zM12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"),_1:{ctor:"::",_0:yd(n),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"[]"}})}),Dd("M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"),Dd("M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"),Dd("M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"),Dd("M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"),Dd("M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"),Dd("M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"),Dd("M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"),Dd("M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zM12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"),Dd("M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"),Dd("M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"),Dd("M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"),Dd("M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"),Dd("M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"),Dd("M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"),Dd("M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM12 3v10l3-3h6V3h-9z"),Dd("M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 4.51 2.5-3.01L21 15H7z"),Dd("M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"),Dd("M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"),Dd("M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1.07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"),Dd("M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z"),Dd("M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V21h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-6 8c0 1.1-.9 2-2 2s-2-.9-2-2V9c0-1.1.9-2 2-2s2 .9 2 2v4z"),Dd("M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"),Dd("M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.21l-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9-1.42 1.42z"),Dd("M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"),Dd("M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"),Dd("M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"),e(function(t,r){var e=k(r),n=Id(t);return l(fd,{ctor:"::",_0:Md(e),_1:{ctor:"::",_0:zd(e),_1:{ctor:"::",_0:kd("0 0 24 24"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(pd,{ctor:"[]"},{ctor:"::",_0:l(hd,{ctor:"::",_0:Sd("a"),_1:{ctor:"::",_0:Cd("M0 0h24v24H0V0z"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(fn,"clipPath",{ctor:"::",_0:Sd("b"),_1:{ctor:"[]"}},{ctor:"::",_0:l(md,{ctor:"::",_0:wd("#a"),_1:{ctor:"::",_0:vd("visible"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(hd,{ctor:"::",_0:Cd("M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"),_1:{ctor:"::",_0:Td("url(#b)"),_1:{ctor:"::",_0:yd(n),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"[]"}}}})}),Dd("M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"),Dd("M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"),Dd("M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zm11.77 8.27L13 19.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5.69 0 1.32.28 1.77.74l.73.72.73-.73c.45-.45 1.08-.73 1.77-.73 1.38 0 2.5 1.12 2.5 2.5 0 .69-.28 1.32-.73 1.77z"),Dd("M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6-5.1c1.71 0 3.1 1.39 3.1 3.1v2H9V6h-.1c0-1.71 1.39-3.1 3.1-3.1zM18 20H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"),Dd("M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"),Dd("M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"),Dd("M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"),Dd("M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"),Dd("M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"),Dd("M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"),Dd("M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"),Dd("M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"),Dd("M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"),Dd("M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"),Dd("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"),Dd("M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"),Dd("M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-1c0-.8-.7-1.5-1.5-1.5zm0 2.5h-2v-1h2v1z"),Dd("M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"),Dd("M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"),Dd("M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"),e(function(t,r){var e=k(r),n=Id(t);return l(fd,{ctor:"::",_0:Md(e),_1:{ctor:"::",_0:zd(e),_1:{ctor:"::",_0:kd("0 0 24 24"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(hd,{ctor:"::",_0:gd(".9"),_1:{ctor:"::",_0:Cd("M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"),_1:{ctor:"::",_0:yd(n),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"[]"}})}),Dd("M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"),Dd("M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"),Dd("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"),Dd("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"),Dd("M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"),e(function(t,r){var e=k(r),n=Id(t);return l(fd,{ctor:"::",_0:Md(e),_1:{ctor:"::",_0:zd(e),_1:{ctor:"::",_0:kd("0 0 24 24"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(pd,{ctor:"[]"},{ctor:"::",_0:l(hd,{ctor:"::",_0:Sd("a"),_1:{ctor:"::",_0:Cd("M24 24H0V0h24v24z"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(fn,"clipPath",{ctor:"::",_0:Sd("b"),_1:{ctor:"[]"}},{ctor:"::",_0:l(md,{ctor:"::",_0:wd("#a"),_1:{ctor:"::",_0:vd("visible"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(hd,{ctor:"::",_0:Cd("M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"),_1:{ctor:"::",_0:Td("url(#b)"),_1:{ctor:"::",_0:yd(n),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"[]"}}}})}),Dd("M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"),Dd("M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z"),Dd("M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2v2zm0-4h2V7h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zM5 7H3v12c0 1.1.89 2 2 2h12v-2H5V7zm10-2h2V3h-2v2zm0 12h2v-2h-2v2z"),e(function(t,r){var e=k(r),n=Id(t);return l(fd,{ctor:"::",_0:Md(e),_1:{ctor:"::",_0:zd(e),_1:{ctor:"::",_0:kd("0 0 24 24"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(pd,{ctor:"[]"},{ctor:"::",_0:l(hd,{ctor:"::",_0:Sd("a"),_1:{ctor:"::",_0:Cd("M0 0h24v24H0V0z"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(fn,"clipPath",{ctor:"::",_0:Sd("b"),_1:{ctor:"[]"}},{ctor:"::",_0:l(md,{ctor:"::",_0:wd("#a"),_1:{ctor:"::",_0:vd("visible"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(hd,{ctor:"::",_0:Cd("M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5.31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z"),_1:{ctor:"::",_0:Td("url(#b)"),_1:{ctor:"::",_0:yd(n),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"[]"}}}})}),e(function(t,r){var e=k(r),n=Id(t);return l(fd,{ctor:"::",_0:Md(e),_1:{ctor:"::",_0:zd(e),_1:{ctor:"::",_0:kd("0 0 24 24"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(pd,{ctor:"[]"},{ctor:"::",_0:l(hd,{ctor:"::",_0:Sd("a"),_1:{ctor:"::",_0:Cd("M0 0h24v24H0V0z"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pd,{ctor:"[]"},{ctor:"::",_0:l(hd,{ctor:"::",_0:Sd("c"),_1:{ctor:"::",_0:Cd("M0 0h24v24H0V0z"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(fn,"clipPath",{ctor:"::",_0:Sd("b"),_1:{ctor:"[]"}},{ctor:"::",_0:l(md,{ctor:"::",_0:wd("#a"),_1:{ctor:"::",_0:vd("visible"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(fn,"clipPath",{ctor:"::",_0:Sd("d"),_1:{ctor:"::",_0:Td("url(#b)"),_1:{ctor:"[]"}}},{ctor:"::",_0:l(md,{ctor:"::",_0:wd("#c"),_1:{ctor:"::",_0:vd("visible"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(hd,{ctor:"::",_0:Cd("M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l1.6.43 5.31 1.43z"),_1:{ctor:"::",_0:Td("url(#d)"),_1:{ctor:"::",_0:yd(n),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"[]"}}}}}})}),Dd("M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z"),Dd("M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"),Dd("M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"),Dd("M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"),Dd("M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"),Dd("M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"),Dd("M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"),Dd("M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"),Dd("M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z")),Bd=(e(function(t,r){var e=Id(t),n=k(r);return l(fd,{ctor:"::",_0:Md(n),_1:{ctor:"::",_0:zd(n),_1:{ctor:"::",_0:kd("0 0 24 24"),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(pd,{ctor:"[]"},{ctor:"::",_0:l(hd,{ctor:"::",_0:Sd("a"),_1:{ctor:"::",_0:Cd("M0 0h24v24H0V0z"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(fn,"clipPath",{ctor:"::",_0:Sd("b"),_1:{ctor:"[]"}},{ctor:"::",_0:l(md,{ctor:"::",_0:wd("#a"),_1:{ctor:"::",_0:vd("visible"),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(hd,{ctor:"::",_0:Cd("M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"),_1:{ctor:"::",_0:Td("url(#b)"),_1:{ctor:"::",_0:yd(e),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"[]"}}}})}),Dd("M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"),Dd("M5 17h14v2H5zm7-12L5.33 15h13.34z"),Dd("M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"),Dd("M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"),Dd("M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"),Dd("M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"),Dd("M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"),Dd("M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"),Dd("M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"),Dd("M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"),Dd("M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"),Dd("M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"),Dd("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"),Dd("M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"),Dd("M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z"),Dd("M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"),Dd("M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"),Dd("M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zM12 17l1.25-2.75L16 13l-2.75-1.25L12 9l-1.25 2.75L8 13l2.75 1.25z"),Dd("M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"),Dd("M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"),Dd("M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"),Dd("M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"),Dd("M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"),Dd("M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"),Dd("M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"),Dd("M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"),Dd("M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"),Dd("M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z"),Dd("M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm4 12h-4v3l-5-5 5-5v3h4v4z"),Dd("M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"),Dd("M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"),Dd("M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"),Dd("M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"),Dd("M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"),Dd("M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"),Dd("M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"),Dd("M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"),Dd("M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.29L1.65 3.57 2.98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13.55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.86 9.86zM8.02 3.28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"),Dd("M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"),Dd("M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"),Dd("M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"),Dd("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"),Dd("M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"),Dd("M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"),Dd("M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"),Dd("M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"),Dd("M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"),Dd("M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"),Dd("M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"),Dd("M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"),Dd("M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"),Dd("M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"),Dd("M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"),Dd("M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"),Dd("M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"),Dd("M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"),Dd("M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"),Dd("M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"),Dd("M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z")),qd=Dd("M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"),Fd=(Dd("M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"),Dd("M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"),Dd("M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z")),Od=(Dd("M7 14l5-5 5 5z"),Dd("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"),Dd("M7 10l5 5 5-5z"),Dd("M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z")),Ud=(Dd("M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"),o(function(t,r,e){var n=e;return d(tr,o(function(r,e,n){return l(t,r,n)}),r,n._0)}),o(function(t,r,e){var n=e;return d(er,o(function(r,e,n){return l(t,r,n)}),r,n._0)}),function(t){var r;return r=t._0,d(tr,o(function(t,r,e){return{ctor:"::",_0:t,_1:e}}),{ctor:"[]"},r)}),Jd=e(function(t,r){return l(ar,t,r._0)}),jd=function(t){return{ctor:"Set_elm_builtin",_0:t}},Kd=jd(gr),Wd=e(function(t,r){return jd(d(Vr,t,{ctor:"_Tuple0"},r._0))}),Gd=function(t){return d(rt,Wd,Kd,t)},Xd=(e(function(t,r){return Gd(l(at,t,Ud(r)))}),e(function(t,r){return jd(l(Pr,t,r._0))})),Qd=(e(function(t,r){var e=r;return jd(l(Nr,t._0,e._0))}),e(function(t,r){var e=r;return jd(l(Hr,t._0,e._0))}),e(function(t,r){var e=r;return jd(l(Br,t._0,e._0))})),Yd=(e(function(t,r){var n=r;return jd(l(Ar,e(function(r,e){return t(r)}),n._0))}),e(function(t,r){var n=r,o=l(Ir,e(function(r,e){return t(r)}),n._0),c=o._0,i=o._1;return{ctor:"_Tuple2",_0:jd(c),_1:jd(i)}}),o(function(t,r,e){var n=b.cmp(et(e),0)>0,o=b.cmp(t,0)>0&&b.cmp(r,0)>0,c=l(W,r,e),i=l(Tt,t,e);return o&&n?{ctor:"::",_0:i,_1:d(Yd,t,r,c)}:{ctor:"[]"}})),$d=(e(function(t,r){return d(Yd,t,t,r)}),o(function(t,r,e){var n=b.cmp(t,0)>0&&b.cmp(r,0)>0,o=l(W,r,e),c=l(Tt,t,e),i=b.eq(t,et(c));return n&&i?{ctor:"::",_0:c,_1:d($d,t,r,o)}:{ctor:"[]"}})),Zd=(e(function(t,r){return d($d,t,t,r)}),G(i(function(t,r,e,n,o){return{ctor:"_Tuple5",_0:t,_1:r,_2:e,_3:n,_4:o}})),X(c(function(t,r,e,n){return{ctor:"_Tuple4",_0:t,_1:r,_2:e,_3:n}})),Q(o(function(t,r,e){return{ctor:"_Tuple3",_0:t,_1:r,_2:e}})),Y(e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}})),function(t){return function(r){return l(Z,M,d(Y,e(function(t,r){return b.eq(t,r)}),t,r))}}),tf=(e(function(t,r){return l(Zd,dt(t),dt(r))}),function(t){var r=t;if("[]"===r.ctor)return{ctor:"[]"};var e=r._1,n=r._0;return{ctor:"::",_0:{ctor:"_Tuple2",_0:n,_1:e},_1:l(at,function(t){var r=t;return{ctor:"_Tuple2",_0:r._0,_1:{ctor:"::",_0:n,_1:r._1}}},tf(e))}}),rf=e(function(t,r){var e=r;if("::"===e.ctor){var n=e._0;return{ctor:"::",_0:{ctor:"::",_0:t,_1:n},_1:{ctor:"::",_0:n,_1:e._1}}}return{ctor:"[]"}}),ef=l(tt,rf,{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}),nf=(e(function(t,r){return l($,Zd(t),ef(r))}),l(tt,e(function(t,r){return{ctor:"::",_0:{ctor:"[]"},_1:l(at,e(function(t,r){return{ctor:"::",_0:t,_1:r}})(t),r)}}),{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}),e(function(t,r){var e=r;if("[]"===e.ctor)return{ctor:"[]"};if("[]"===e._1.ctor)return{ctor:"::",_0:{ctor:"::",_0:e._0,_1:{ctor:"[]"}},_1:{ctor:"[]"}};var n=e._0,o=l(nf,t,e._1);return"::"===o.ctor?l(t,n,e._1._0)?{ctor:"::",_0:{ctor:"::",_0:n,_1:o._0},_1:o._1}:{ctor:"::",_0:{ctor:"::",_0:n,_1:{ctor:"[]"}},_1:o}:{ctor:"[]"}})),of=(e(function(t,r){var n=e(function(t,r){var e=r;return"Nothing"===e.ctor?B:"[]"===e._0.ctor?B:b.eq(t,e._0._0)?F(e._0._1):B});return d(rt,n,F(r),t)}),e(function(t,r){return{ctor:"_Tuple2",_0:l(Tt,t,r),_1:l(W,t,r)}})),cf=o(function(t,r,e){for(;;){var n={ctor:"_Tuple2",_0:t,_1:r};if("_Tuple2"!==n.ctor||"::"!==n._0.ctor||"::"!==n._1.ctor)return dt(e);var o=l(of,n._0._0,r),c=o._0,i=o._1;t=n._0._1,r=i,e={ctor:"::",_0:c,_1:e}}}),uf=(e(function(t,r){return d(cf,t,r,{ctor:"[]"})}),e(function(t,r){var e=t(r);return"Nothing"===e.ctor?{ctor:"[]"}:{ctor:"::",_0:e._0._0,_1:l(uf,t,e._0._1)}})),af=e(function(t,r){var e=r;if("[]"===e.ctor)return{ctor:"[]"};if("[]"===e._1.ctor)return{ctor:"::",_0:e._0,_1:{ctor:"[]"}};var n=l(af,t,e._1);return"::"===n.ctor?{ctor:"::",_0:l(t,e._0,n._0),_1:n}:{ctor:"[]"}}),_f=o(function(t,r,e){var n=e;if("[]"===n.ctor)return{ctor:"::",_0:r,_1:{ctor:"[]"}};var o=d(_f,t,r,n._1);return"::"===o.ctor?{ctor:"::",_0:l(t,n._0,o._0),_1:o}:{ctor:"[]"}}),sf=(e(function(t,r){var e=r;return"[]"===e.ctor?{ctor:"[]"}:d(ft,t,e._0,e._1)}),o(function(t,r,n){var o=e(function(r,e){var n=e,o=n._0;return{ctor:"_Tuple2",_0:o-1,_1:d(t,o,r,n._1)}});return ge(d(tt,o,{ctor:"_Tuple2",_0:et(n)-1,_1:r},n))}),o(function(t,r,n){var o=e(function(r,e){var n=e,o=n._0;return{ctor:"_Tuple2",_0:o+1,_1:d(t,o,r,n._1)}});return ge(d(rt,o,{ctor:"_Tuple2",_0:0,_1:r},n))}),e(function(t,r){var n=e(function(r,e){return F("Nothing"===(n=e).ctor?r:l(t,r,n._0));var n});return d(tt,n,B,r)}),e(function(t,r){var n=e(function(r,e){return F("Nothing"===(n=e).ctor?r:l(t,n._0,r));var n});return d(rt,n,B,r)})),lf=o(function(t,r,e){t:for(;;){var n={ctor:"_Tuple2",_0:t,_1:r};r:do{if("::"===n._0.ctor){if("::"===n._1.ctor){t=n._0._1,r=n._1._1,e=l(A["++"],e,{ctor:"::",_0:n._0._0,_1:{ctor:"::",_0:n._1._0,_1:{ctor:"[]"}}});continue t}break r}if("[]"===n._1.ctor)break r;return l(A["++"],e,n._1)}while(0);return l(A["++"],e,n._0)}}),df=(e(function(t,r){return d(lf,t,r,{ctor:"[]"})}),function(t){var r=t;return"[]"===r.ctor?{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}:l(mt,function(t){var r=t;return l(at,e(function(t,r){return{ctor:"::",_0:t,_1:r}})(r._0),df(r._1))},tf(r))}),ff=(e(function(t,r){return l(nt,t,df(r))}),function(t){var r=t;if("[]"===r.ctor)return{ctor:"[]"};var n=r._0,o=e(function(t,r){return{ctor:"::",_0:t,_1:{ctor:"::",_0:{ctor:"::",_0:n,_1:t},_1:r}}});return{ctor:"::",_0:{ctor:"::",_0:n,_1:{ctor:"[]"}},_1:d(tt,o,{ctor:"[]"},ff(r._1))}}),pf=(e(function(t,r){return l(nt,t,{ctor:"::",_0:{ctor:"[]"},_1:ff(r)})}),e(function(t,r){return l(_t,function(r){return!t(r)},r)})),hf=e(function(t,r){if(b.cmp(t,0)<0)return r;var e=ct(l(W,t,r)),n=l(Tt,t,r),o=e;return"Nothing"===o.ctor?r:l(pt,n,o._0)}),mf=(e(function(t,r){var n=e(function(r,e){var n=r,o=e,c=l(t,n._0,o._0);return"EQ"===c.ctor?l(L,n._1,o._1):c}),o=l(zt,e(function(t,r){return{ctor:"_Tuple2",_0:r,_1:t}}),r);return l(at,ye,l(j,n,o))}),o(function(t,r,e){if(b.cmp(t,0)<0)return B;var n=ct(l(W,t,e)),o=l(Tt,t,e),c=n;return"Nothing"===c.ctor?B:F(l(pt,o,{ctor:"::",_0:r,_1:c._0}))}),e(function(t,r){var e=r;if("[]"===e.ctor)return{ctor:"[]"};var n=e._1,o=e._0;return b.eq(t,o)?n:{ctor:"::",_0:o,_1:l(mf,t,n)}})),vf=o(function(t,r,n){return l(zt,e(function(e,n){return t(e)?r(n):n}),n)}),gf=o(function(t,r,n){return b.cmp(t,0)<0||b.cmp(t,et(n))>-1?B:F(d(vf,e(function(t,r){return b.eq(t,r)})(t),r,n))}),yf=o(function(t,r,e){return l(at,function(e){return t(e)?r(e):e},e)}),bf=(o(function(t,r,e){return d(yf,t,w(r),e)}),function(t){return function(r){return l(at,ye,l(_t,function(r){return t(r._1)},l(zt,e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}}),r)))}}),Tf=function(t){return function(r){return it(l(bf,t,r))}},wf=e(function(t,r){for(;;){var e=r;if("[]"===e.ctor)return B;var n=e._0;if(t(n))return F(n);t=t,r=e._1}}),Mf=mt,kf=(o(function(t,r,e){return l(Mf,function(r){return l(Mf,function(e){return{ctor:"::",_0:l(t,r,e),_1:{ctor:"[]"}}},e)},r)}),c(function(t,r,e,n){return l(Mf,function(r){return l(Mf,function(e){return l(Mf,function(n){return{ctor:"::",_0:d(t,r,e,n),_1:{ctor:"[]"}}},n)},e)},r)}),i(function(t,r,e,n,o){return l(Mf,function(r){return l(Mf,function(e){return l(Mf,function(n){return l(Mf,function(o){return{ctor:"::",_0:f(t,r,e,n,o),_1:{ctor:"[]"}}},o)},n)},e)},r)}),e(function(t,r){return d(Y,e(function(t,r){return t(r)}),t,r)}),o(function(t,r,e){for(;;){var n=e;if("[]"===n.ctor)return{ctor:"[]"};var o=n._1,c=n._0,i=t(c);if(!l(Jd,i,r))return{ctor:"::",_0:c,_1:d(kf,t,l(Wd,i,r),o)};t=t,r=r,e=o}})),Sf=e(function(t,r){return d(kf,t,Kd,r)}),zf=(e(function(t,r){return b.eq(et(r),et(l(Sf,t,r)))}),e(function(t,r){for(;;){var e=r;if("[]"===e.ctor)return{ctor:"[]"};if(!t(e._0))return r;t=t,r=e._1}})),Cf=e(function(t,r){var e=r;if("[]"===e.ctor)return{ctor:"[]"};var n=e._0;return t(n)?{ctor:"::",_0:n,_1:l(Cf,t,e._1)}:{ctor:"[]"}}),Rf=e(function(t,r){return{ctor:"_Tuple2",_0:l(Cf,t,r),_1:l(zf,t,r)}}),xf=e(function(t,r){var e=r;if("[]"===e.ctor)return{ctor:"[]"};var n=e._0,o=l(Rf,t(n),e._1),c=o._0,i=o._1;return{ctor:"::",_0:{ctor:"::",_0:n,_1:c},_1:l(xf,t,i)}}),Lf=(xf(e(function(t,r){return b.eq(t,r)})),e(function(t,r){var n=e(function(r,e){var n=e,o=n._1,c=t(r);return b.cmp(c,o)<0?{ctor:"_Tuple2",_0:r,_1:c}:{ctor:"_Tuple2",_0:n._0,_1:o}}),o=r;if("::"===o.ctor){if("[]"===o._1.ctor)return F(o._0);var c=o._0;return F(ye(d(rt,n,{ctor:"_Tuple2",_0:c,_1:t(c)},o._1)))}return B}),e(function(t,r){var n=e(function(r,e){var n=e,o=n._1,c=t(r);return b.cmp(c,o)>0?{ctor:"_Tuple2",_0:r,_1:c}:{ctor:"_Tuple2",_0:n._0,_1:o}}),o=r;if("::"===o.ctor){if("[]"===o._1.ctor)return F(o._0);var c=o._0;return F(ye(d(rt,n,{ctor:"_Tuple2",_0:c,_1:t(c)},o._1)))}return B})),Ef=function(t){var r=t;return"[]"===r.ctor?B:F({ctor:"_Tuple2",_0:r._0,_1:r._1})},Vf=(o(function(t,r,n){for(;;){if(b.eq(t,r))return F(n);if(!(b.cmp(t,r)>0)){if(b.cmp(t,0)<0)return B;var o=l(of,t,n),c=o._0,i=o._1,u=l(of,r-t,i),a=u._0,_=u._1;return d(U,e(function(t,r){var e=t,n=r;return ht({ctor:"::",_0:c,_1:{ctor:"::",_0:{ctor:"::",_0:n._0,_1:e._1},_1:{ctor:"::",_0:{ctor:"::",_0:e._0,_1:n._1},_1:{ctor:"[]"}}}})}),Ef(a),Ef(_))}var s=t;t=r,r=s,n=n}}),e(function(t,r){var e=t(r);return"Just"===e.ctor?{ctor:"::",_0:r,_1:l(Vf,t,e._0)}:{ctor:"::",_0:r,_1:{ctor:"[]"}}})),Nf=e(function(t,r){return b.cmp(t,0)<0?B:it(l(W,t,r))}),Af=Af||{};Af["!!"]=T(Nf),Hf=e(function(t,r){return function(e){return l(P,t,l(O,r,e))}}),l(tt,function(t){return function(r){return F(d(Hf,{ctor:"[]"},e(function(t,r){return{ctor:"::",_0:t,_1:r}})(t),r))}},B);var Hf,If=sf(T(w)),Df=function(){var t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return{fromString:function(t){var r=new Date(t);return isNaN(r.getTime())?It("Unable to parse '"+t+"' as a date. Dates must be in the ISO 8601 format."):Pt(r)},year:function(t){return t.getFullYear()},month:function(t){return{ctor:r[t.getMonth()]}},day:function(t){return t.getDate()},hour:function(t){return t.getHours()},minute:function(t){return t.getMinutes()},second:function(t){return t.getSeconds()},millisecond:function(t){return t.getMilliseconds()},toTime:function(t){return t.getTime()},fromTime:function(t){return new Date(t)},dayOfWeek:function(r){return{ctor:t[r.getDay()]}}}}(),Pf=(Df.millisecond,Df.second,Df.minute,Df.hour,Df.dayOfWeek,Df.day,Df.month,Df.year,Df.fromTime),Bf=(Df.toTime,Df.fromString),qf=(l(ho,Pf,xo),{toTask:e(function(t,r){return Te.nativeBinding(function(e){var n=new XMLHttpRequest;!function(t,r){"Nothing"!==r.ctor&&t.addEventListener("progress",function(t){t.lengthComputable&&Te.rawSpawn(r._0({bytes:t.loaded,bytesExpected:t.total}))})}(n,r),n.addEventListener("error",function(){e(Te.fail({ctor:"NetworkError"}))}),n.addEventListener("timeout",function(){e(Te.fail({ctor:"Timeout"}))}),n.addEventListener("load",function(){e(function(t,r){var e=function(t){return{status:{code:t.status,message:t.statusText},headers:function(t){var r=gr;if(!t)return r;for(var e=t.split("\r\n"),n=e.length;n--;){var o=e[n],c=o.indexOf(": ");if(c>0){var i=o.substring(0,c),u=o.substring(c+2);r=d(Er,i,function(t){return"Just"===t.ctor?F(u+", "+t._0):F(u)},r)}}return r}(t.getAllResponseHeaders()),url:t.responseURL,body:t.response}}(t);if(t.status<200||300<=t.status)return e.body=t.responseText,Te.fail({ctor:"BadStatus",_0:e});var n=r(e);return"Ok"===n.ctor?Te.succeed(n._0):(e.body=t.responseText,Te.fail({ctor:"BadPayload",_0:n._0,_1:e}))}(n,t.expect.responseToResult))});try{n.open(t.method,t.url,!0)}catch(r){return e(Te.fail({ctor:"BadUrl",_0:t.url}))}return function(t,r){l(at,function(r){t.setRequestHeader(r._0,r._1)},r.headers),t.responseType=r.expect.responseType,t.withCredentials=r.withCredentials,"Just"===r.timeout.ctor&&(t.timeout=r.timeout._0)}(n,t),function(t,r){switch(r.ctor){case"EmptyBody":return void t.send();case"StringBody":return t.setRequestHeader("Content-Type",r._0),void t.send(r._1);case"FormDataBody":t.send(r._0)}}(n,t.body),function(){n.abort()}})}),expectStringResponse:function(t){return{responseType:"text",responseToResult:t}},mapExpect:e(function(t,r){return{responseType:r.responseType,responseToResult:function(e){var n=r.responseToResult(e);return l(Bt,t,n)}}}),multipart:function(t){for(var r=new FormData;"[]"!==t.ctor;){var e=t._0;r.append(e._0,e._1),t=t._1}return{ctor:"FormDataBody",_0:r}},encodeUri:function(t){return encodeURIComponent(t)},decodeUri:function(t){try{return F(decodeURIComponent(t))}catch(t){return B}}}),Ff=(e(function(t,r){return b.update(r,{expect:l(qf.mapExpect,t,r.expect)})}),a(function(t,r,e,n,o,c,i){return{method:t,headers:r,url:e,body:n,expect:o,timeout:c,withCredentials:i}}),e(function(t,r){return{ctor:"StringBody",_0:t,_1:r}}),e(function(t,r){return{ctor:"Header",_0:t,_1:r}}),qf.expectStringResponse),Of=function(t){return Ff(function(r){return l(te,t,r.body)})},Uf=(Ff(function(t){return Pt(t.body)}),{ctor:"EmptyBody"}),Jf=function(t){return{ctor:"Request",_0:t}},jf=(o(function(t,r,e){return Jf({method:"POST",headers:{ctor:"[]"},url:t,body:r,expect:Of(e),timeout:B,withCredentials:!1})}),e(function(t,r){return Jf({method:"GET",headers:{ctor:"[]"},url:t,body:Uf,expect:Of(r),timeout:B,withCredentials:!1})}),e(function(t,r){return l(ko,t,l(qf.toTask,r._0,B))})),Kf=(c(function(t,r,e,n){return{url:t,status:r,headers:e,body:n}}),e(function(t,r){return{ctor:"BadPayload",_0:t,_1:r}}),e(function(t,r){return{ctor:"StringPart",_0:t,_1:r}}),function(){function t(){var t=document.location;return{href:t.href,host:t.host,hostname:t.hostname,protocol:t.protocol,origin:t.origin,port_:t.port,pathname:t.pathname,search:t.search,hash:t.hash,username:t.username,password:t.password}}return{go:function(t){return Te.nativeBinding(function(r){0!==t&&history.go(t),r(Te.succeed(b.Tuple0))})},setLocation:function(t){return Te.nativeBinding(function(r){try{window.location=t}catch(t){document.location.reload(!1)}r(Te.succeed(b.Tuple0))})},reloadPage:function(t){return Te.nativeBinding(function(r){document.location.reload(t),r(Te.succeed(b.Tuple0))})},pushState:function(r){return Te.nativeBinding(function(e){history.pushState({},"",r),e(Te.succeed(t()))})},replaceState:function(r){return Te.nativeBinding(function(e){history.replaceState({},"",r),e(Te.succeed(t()))})},getLocation:t,isInternetExplorer11:function(){return-1!==window.navigator.userAgent.indexOf("Trident")}}}()),Wf=Kf.replaceState,Gf=Kf.pushState,Xf=Kf.go,Qf=Kf.reloadPage,Yf=Kf.setLocation,$f=$f||{};$f["&>"]=e(function(t,r){return l(so,function(t){return r},t)});var Zf=o(function(t,r,e){return l($f["&>"],vo(l(at,function(r){return l(Le,t,r._0(e))},r)),po({ctor:"_Tuple0"}))}),tp=o(function(t,r,e){var n=e;switch(n.ctor){case"Jump":return Xf(n._0);case"New":return l(so,l(Zf,t,r),Gf(n._0));case"Modify":return l(so,l(Zf,t,r),Wf(n._0));case"Visit":return Yf(n._0);default:return Qf(n._0)}}),rp=o(function(t,r,e){return l($f["&>"],d(Zf,t,e.subs,r),po(e))}),ep=be.leaf("Navigation"),np=be.leaf("Navigation"),op=e(function(t,r){return{subs:t,popWatcher:r}}),cp=po(l(op,{ctor:"[]"},B)),ip=function(t){return{ctor:"Reload",_0:t}},up=(np(ip(!1)),np(ip(!0)),function(t){return{ctor:"Visit",_0:t}}),ap=function(t){return{ctor:"New",_0:t}},_p=e(function(t,r){var e=r;switch(e.ctor){case"Jump":return function(t){return{ctor:"Jump",_0:t}}(e._0);case"New":return ap(e._0);case"Modify":return function(t){return{ctor:"Modify",_0:t}}(e._0);case"Visit":return up(e._0);default:return ip(e._0)}}),sp=function(t){return{ctor:"Monitor",_0:t}},lp=e(function(t,r){var e=r.init(Kf.getLocation({ctor:"_Tuple0"}));return hn({init:e,view:r.view,update:r.update,subscriptions:function(e){return ze({ctor:"::",_0:ep(sp(t)),_1:{ctor:"::",_0:r.subscriptions(e),_1:{ctor:"[]"}}})}})}),dp=(e(function(t,r){return pn({init:function(t){return l(r.init,t,Kf.getLocation({ctor:"_Tuple0"}))},view:r.view,update:r.update,subscriptions:function(e){return ze({ctor:"::",_0:ep(sp(t)),_1:{ctor:"::",_0:r.subscriptions(e),_1:{ctor:"[]"}}})}})}),e(function(t,r){var e=r;return sp(function(r){return t(e._0(r))})})),fp=e(function(t,r){return{ctor:"InternetExplorer",_0:t,_1:r}}),pp=function(t){return{ctor:"Normal",_0:t}},hp=function(t){var r=function(r){return l(xe,t,Kf.getLocation({ctor:"_Tuple0"}))};return Kf.isInternetExplorer11({ctor:"_Tuple0"})?d(mo,fp,Bo(d(cu,"popstate",Xr,r)),Bo(d(cu,"hashchange",Xr,r))):l(ho,pp,Bo(d(cu,"popstate",Xr,r)))},mp=c(function(t,r,e,n){var o=n.popWatcher,c=function(){var r,n={ctor:"_Tuple2",_0:e,_1:o};t:do{if("[]"===n._0.ctor){if("Just"===n._1.ctor)return l($f["&>"],"Normal"===(r=n._1._0).ctor?Do(r._0):l($f["&>"],Do(r._0),Do(r._1)),po(l(op,e,B)));break t}if("Nothing"===n._1.ctor)return l(ho,function(t){return l(op,e,F(t))},hp(t));break t}while(0);return po(l(op,e,o))}();return l($f["&>"],vo(l(at,l(tp,t,e),r)),c)});be.effectManagers.Navigation={pkg:"elm-lang/navigation",init:cp,onEffects:mp,onSelfMsg:rp,tag:"fx",cmdMap:_p,subMap:dp};var vp,gp,yp,bp,Tp,wp,Mp,kp,Sp,zp,Cp,Rp,xp=e(function(t,r){return zt(e(function(e,n){return b.eq(e,t)?r(n):n}))}),Lp=function(t){var r=t;return"List"===r.ctor?r._0:{ctor:"[]"}},Ep=function(t){var r=t;return"Value"===r.ctor?F(r._0):B},Vp=e(function(t,r){return it(l(W,t,Lp(r)))}),Np=e(function(t,r){var e=r;return"Group"===e.ctor?l(ur,t,e._0):B}),Ap=function(t){return{ctor:"Value",_0:t}},Hp=function(t){return{ctor:"List",_0:t}},Ip=function(t){return{ctor:"Group",_0:t}},Dp=function(t){return Ip(Dr(t))},Pp=e(function(t,r){var e={ctor:"_Tuple2",_0:t,_1:r};return"_Tuple2"===e.ctor&&"Group"===e._0.ctor&&"Group"===e._1.ctor?Ip(l(Nr,e._0._0,e._1._0)):t}),Bp=o(function(t,r,e){var n=t;if("::"===n.ctor){var o=n._1,c=n._0;if("IntFragment"===c.ctor)return Hp(d(xp,c._0,l(Bp,o,r),Lp(e)));var i=c._0,u=l(P,Ip(gr),l(Np,i,e)),a=d(Bp,o,r,u);return l(Pp,Ip(Dr({ctor:"::",_0:{ctor:"_Tuple2",_0:i,_1:a},_1:{ctor:"[]"}})),e)}return r}),qp=function(t){var r=Ot(t);return"Ok"===r.ctor?{ctor:"IntFragment",_0:r._0}:function(t){return{ctor:"StringFragment",_0:t}}(t)},Fp=function(t){return l(at,qp,l(Gt,".",t))},Op=e(function(t,r){var n=e(function(t,r){var e=t;return"IntFragment"===e.ctor?l(q,Vp(e._0),r):l(q,Np(e._0),r)});return d(rt,n,F(r),Fp(t))}),Up=o(function(t,r,e){return d(Bp,Fp(t),r,e)}),Jp=Ap,jp={ctor:"NotIncludedIn"},Kp={ctor:"InvalidDate"},Wp={ctor:"InvalidBool"},Gp={ctor:"InvalidFloat"},Xp={ctor:"InvalidInt"},Qp={ctor:"InvalidFormat"},Yp={ctor:"InvalidUrl"},$p={ctor:"InvalidEmail"},Zp={ctor:"InvalidString"},th={ctor:"Empty"},rh=function(t){var r=t;return"Value"===r.ctor&&"String"===r._0.ctor?F(r._0._0):B},eh=function(t){var r=t;return"Value"===r.ctor&&"Bool"===r._0.ctor?F(r._0._0):B},nh={ctor:"EmptyField"},oh=function(t){return{ctor:"Bool",_0:t}},ch=function(t){return Ap(oh(t))},ih=function(t){return{ctor:"String",_0:t}},uh=function(t){return Ap(ih(t))},ah=(e(function(t,r){var n=r;if("List"===n.ctor){var o=e(function(t,r){var e=r;return"Ok"===e.ctor?B:F({ctor:"_Tuple2",_0:k(t),_1:e._0})}),c=l(at,t,n._0),i=l(lt,M,l(zt,o,c));return ot(i)?Pt(l(lt,At,c)):It(Dp(i))}return Pt({ctor:"[]"})}),e(function(t,r){var n=e(function(t,r){return"Ok"===r.ctor?r:t}),o=l(at,function(t){return t(r)},t);return d(rt,n,It(Jp(th)),o)})),_h=o(function(t,r,e){return l(Dt,r,t(e))}),sh=e(function(t,r){return Pt(t)}),lh=(e(function(t,r){return It(t)}),o(function(t,r,e){return l(nt,r,t)?Pt(r):It(Jp(jp))})),dh=cl(il("^(https?://)?([\\da-z\\.-]+)\\.([a-z\\.]{2,6})([\\w \\.-]*)*/?$")),fh=cl(il("^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")),ph=o(function(t,r,e){return l(ol,t,r)?Pt(r):It(Jp(Qp))}),hh=(o(function(t,r,e){return b.cmp(r,t)<1?Pt(r):It(Jp({ctor:"GreaterFloatThan",_0:t}))}),o(function(t,r,e){return b.cmp(r,t)>-1?Pt(r):It(Jp({ctor:"SmallerFloatThan",_0:t}))}),o(function(t,r,e){return b.cmp(r,t)<1?Pt(r):It(Jp({ctor:"GreaterIntThan",_0:t}))})),mh=o(function(t,r,e){return b.cmp(r,t)>-1?Pt(r):It(Jp({ctor:"SmallerIntThan",_0:t}))}),vh=(o(function(t,r,e){return b.cmp(Yt(r),t)<1?Pt(r):It(Jp({ctor:"LongerStringThan",_0:t}))}),o(function(t,r,e){return b.cmp(Yt(r),t)>-1?Pt(r):It(Jp({ctor:"ShorterStringThan",_0:t}))}),e(function(t,r){return Zt(t)?It(Jp(th)):Pt(t)})),gh=(e(function(t,r){return Pt(At(t(r)))}),function(t){var r=eh(t);return"Just"===r.ctor?Pt(r._0):Pt(!1)}),yh=function(t){var r=rh(t);if("Just"===r.ctor){var e=r._0;return Zt(e)?Pt(e):It(Jp(Zp))}return Pt("")},bh=function(t){var r=rh(t);if("Just"===r.ctor){var e=r._0;return Zt(e)?It(Jp(th)):Pt(e)}return It(Jp(Zp))},Th=function(t){var r=rh(t);return"Just"===r.ctor?l(qt,function(t){return Jp(Xp)},Ot(r._0)):It(Jp(Xp))},wh=function(t){var r=t;return"Ok"===r.ctor?B:F(r._0)},Mh=e(function(t,r){var e={ctor:"_Tuple2",_0:t,_1:r};return"_Tuple2"===e.ctor&&"Group"===e._0.ctor&&"Group"===e._1.ctor?Ip(l(Nr,e._0._0,e._1._0)):r}),kh=o(function(t,r,e){return l(qt,function(r){return Dp({ctor:"::",_0:{ctor:"_Tuple2",_0:t,_1:r},_1:{ctor:"[]"}})},r(l(P,Ap(nh),l(Np,t,e))))}),Sh=o(function(t,r,e){return l(qt,t,r(e))}),zh=o(function(t,r,e){return Pt(l(Ht,t,r(e)))}),Ch=o(function(t,r,e){var n,o={ctor:"_Tuple2",_0:r(e),_1:t(e)};return"Ok"===o._0.ctor&&"Ok"===o._1.ctor?Pt(o._0._0(o._1._0)):It((n={ctor:"::",_0:wh(o._0),_1:{ctor:"::",_0:wh(o._1),_1:{ctor:"[]"}}},d(rt,Mh,Dp({ctor:"[]"}),l(lt,M,n))))}),Rh=o(function(t,r,e){return l(Dt,function(r){return l(t,r,e)},r(e))}),xh=l(Rh,function(t){return l(Sh,function(t){return Jp($p)},l(ph,fh,t))},bh),Lh=(l(Rh,function(t){return l(Sh,function(t){return Jp(Yp)},l(ph,dh,t))},bh),o(function(t,r,e){return l(Bt,t,r(e))})),Eh=o(function(t,r,e){return l(Ch,e,l(Lh,t,r))}),Vh=c(function(t,r,e,n){return l(Ch,n,d(Eh,t,r,e))}),Nh=i(function(t,r,e,n,o){return l(Ch,o,f(Vh,t,r,e,n))}),Ah=u(function(t,r,e,n,o,c){return l(Ch,c,p(Nh,t,r,e,n,o))}),Hh=a(function(t,r,e,n,o,c,i){return l(Ch,i,h(Ah,t,r,e,n,o,c))}),Ih=_(function(t,r,e,n,o,c,i,u){return l(Ch,u,m(Hh,t,r,e,n,o,c,i))}),Dh=s(function(t,r,e,n,o,c,i,u,a){return l(Ch,a,v(Ih,t,r,e,n,o,c,i,u))}),Ph=e(function(t,r){return l(Jd,t,r._0.dirtyFields)}),Bh=e(function(t,r){return l(Jd,t,r._0.changedFields)}),qh=e(function(t,r){return l(q,Ep,l(Op,t,r._0.errors))}),Fh=e(function(t,r){return r._0.isSubmitted||l(Bh,t,r)&&!l(Ph,t,r)?l(qh,t,r):B}),Oh=function(t){return t._0.output},Uh=o(function(t,r,e){return d(Up,t,r,e.fields)}),Jh=e(function(t,r){return l(Op,t,r.fields)}),jh=e(function(t,r){return l(q,rh,l(Jh,t,r._0))}),Kh=e(function(t,r){return l(q,eh,l(Jh,t,r._0))}),Wh=e(function(t,r){var e=t(r.fields);return"Ok"===e.ctor?b.update(r,{errors:Dp({ctor:"[]"}),output:F(e._0)}):b.update(r,{errors:e._0,output:B})}),Gh=(e(function(t,r){var e=l(P,0,l(O,function(t){return et(Lp(t))},l(Jh,t,r._0)));return l(St,0,e-1)}),o(function(t,r,e){return{path:r,value:l(t,r,e),error:l(qh,r,e),liveError:l(Fh,r,e),isDirty:l(Ph,r,e),isChanged:l(Bh,r,e),hasFocus:b.eq((n=e,n._0.focus),F(r))};var n})),Xh=Gh(Kh),Qh=Gh(jh),Yh=(a(function(t,r,e,n,o,c,i){return{fields:t,focus:r,dirtyFields:e,changedFields:n,isSubmitted:o,output:c,errors:i}}),a(function(t,r,e,n,o,c,i){return{path:t,value:r,error:e,liveError:n,isDirty:o,isChanged:c,hasFocus:i}}),function(t){return{ctor:"F",_0:t}}),$h=e(function(t,r){var e={fields:Dp(t),focus:B,dirtyFields:Kd,changedFields:Kd,isSubmitted:!1,output:B,errors:Dp({ctor:"[]"})};return Yh(l(Wh,r,e))}),Zh=o(function(t,r,e){var n=e._0,o=r;switch(o.ctor){case"NoOp":return Yh(n);case"Focus":var c=b.update(n,{focus:F(o._0)});return Yh(c);case"Blur":var i=l(Xd,o._0,n.dirtyFields);return c=b.update(n,{focus:B,dirtyFields:i}),Yh(l(Wh,t,c));case"Input":var u=o._0,a=l(Wd,u,n.changedFields),_=(i=function(){switch(o._1.ctor){case"Text":case"Textarea":return!0;default:return!1}}()?l(Wd,u,n.dirtyFields):n.dirtyFields,d(Uh,u,Ap(o._2),n));return c=b.update(n,{fields:_,dirtyFields:i,changedFields:a}),Yh(l(Wh,t,c));case"Append":var s=o._0,f=l(P,{ctor:"[]"},l(O,Lp,l(Jh,s,n))),p=l(A["++"],f,{ctor:"::",_0:Ap(nh),_1:{ctor:"[]"}});return c=b.update(n,{fields:d(Uh,s,Hp(p),n)}),Yh(c);case"RemoveItem":var h=o._0,m=o._1;return f=l(P,{ctor:"[]"},l(O,Lp,l(Jh,h,n))),p=l(A["++"],l(Tt,m,f),l(W,m+1,f)),c=b.update(n,{fields:d(Uh,h,Hp(p),n)}),Yh(c);case"Submit":var v=l(Wh,t,n);return Yh(b.update(v,{isSubmitted:!0}));case"Validate":return Yh(l(Wh,t,n));default:return c=b.update(n,{fields:Dp(o._0),dirtyFields:Kd,changedFields:Kd,isSubmitted:!1}),Yh(l(Wh,t,c))}}),tm={ctor:"Submit"},rm=(e(function(t,r){return{ctor:"RemoveItem",_0:t,_1:r}}),o(function(t,r,e){return{ctor:"Input",_0:t,_1:r,_2:e}})),em={ctor:"Checkbox"},nm={ctor:"Radio"},om={ctor:"Text"},cm=e(function(t,r){var e=r;return"Success"===e.ctor?e._0:t}),im=function(t){return{ctor:"Success",_0:t}},um=im,am=function(t){return{ctor:"Failure",_0:t}},_m=function(t){var r=t;return"Err"===r.ctor?am(r._0):im(r._0)},sm=(ko(_m),jf(_m),{ctor:"Loading"}),lm={ctor:"NotAsked"},dm=e(function(t,r){var e=r;switch(e.ctor){case"Success":return im(t(e._0));case"Loading":return sm;case"NotAsked":return lm;default:return am(e._0)}}),fm=function(t){return l(cm,B,l(dm,F,t))},pm=e(function(t,r){var e=r;switch(e.ctor){case"Success":return im(e._0);case"Failure":return am(t(e._0));case"Loading":return sm;default:return lm}}),hm=(e(function(t,r){return function(e){return l(pm,r,l(dm,t,e))}}),e(function(t,r){var e=r;switch(e.ctor){case"Success":return t(e._0);case"Failure":return am(e._0);case"NotAsked":return lm;default:return sm}}),e(function(t,r){var e={ctor:"_Tuple2",_0:r,_1:t};t:do{r:do{e:do{n:do{switch(e._0.ctor){case"Success":switch(e._1.ctor){case"Success":return im(e._0._0(e._1._0));case"Failure":break n;case"Loading":break r;default:return lm}case"Failure":return am(e._0._0);case"Loading":switch(e._1.ctor){case"Failure":break n;case"Loading":case"NotAsked":default:break e}default:switch(e._1.ctor){case"Failure":break n;case"Loading":break r;case"NotAsked":default:break t}}}while(0);return am(e._1._0)}while(0);return sm}while(0);return sm}while(0);return lm})),mm=(o(function(t,r,e){return l(hm,e,l(dm,t,r))}),c(function(t,r,e,n){return l(hm,n,l(hm,e,l(dm,t,r)))}),e(function(t,r){return l(hm,r,l(dm,e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}}),t))}),e(function(t,r){var e=r;switch(e.ctor){case"Success":var n=t(e._0),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:im(o),_1:c};case"NotAsked":return{ctor:"_Tuple2",_0:lm,_1:Me};case"Loading":return{ctor:"_Tuple2",_0:sm,_1:Me};default:return{ctor:"_Tuple2",_0:am(e._0),_1:Me}}}),{updatedAt:0,systemLog:""}),vm=c(function(t,r,e,n){return{page:t,tab:r,tabs:e,location:n}}),gm=(u(function(t,r,e,n,o,c){return{records:t,form:r,selectedRecordId:e,editMode:n,nextPendingId:o,selectQuery:c}}),c(function(t,r,e,n){return{table:t,id:r,patient_id:e,pregnancy_id:n}})),ym=_(function(t,r,e,n,o,c,i,u){return{table:t,id:r,patient_id:e,pregnancy_id:n,success:o,errorCode:c,msg:i,data:u}}),bm=e(function(t,r){return{updatedAt:t,systemLog:r}}),Tm=o(function(t,r,e){return{table:t,name:r,desc:e}}),wm=o(function(t,r,e){return{id:t,name:r,description:e}}),Mm=function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return function(l){return function(d){return function(f){return{id:t,username:r,firstname:e,lastname:n,password:o,email:c,lang:i,shortName:u,displayName:a,status:_,note:s,isCurrentTeacher:l,role_id:d,stateId:f}}}}}}}}}}}}}}},km=o(function(t,r,e){return{id:t,name:r,description:e}}),Sm=o(function(t,r,e){return{id:t,name:r,description:e}}),zm=a(function(t,r,e,n,o,c,i){return{id:t,kvKey:r,kvValue:e,description:n,valueType:o,acceptableValues:c,systemOnly:i}}),Cm=_(function(t,r,e,n,o,c,i,u){return{id:t,kvKey:r,kvValue:e,description:n,valueType:o,acceptableValues:c,systemOnly:i,stateId:u}}),Rm=o(function(t,r,e){return{id:t,name:r,description:e}}),xm=i(function(t,r,e,n,o){return{id:t,name:r,description:e,category:n,stateId:o}}),Lm=function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return function(l){return function(d){return{id:t,name:r,abbrev:e,normal:n,unit:o,minRangeDecimal:c,maxRangeDecimal:i,minRangeInteger:u,maxRangeInteger:a,isRange:_,isText:s,labSuite_id:l,stateId:d}}}}}}}}}}}}}},Em=o(function(t,r,e){return{id:t,value:r,labTest_id:e}}),Vm=c(function(t,r,e,n){return{id:t,value:r,labTest_id:e,stateId:n}}),Nm=e(function(t,r){return{username:t,password:r}}),Am=i(function(t,r,e,n,o){return{id:t,name:r,description:e,sortOrder:n,stateId:o}}),Hm=c(function(t,r,e,n){return{id:t,name:r,description:e,sortOrder:n}}),Im=c(function(t,r,e,n){return{id:t,name:r,label:e,selected:n}}),Dm=u(function(t,r,e,n,o,c){return{id:t,name:r,selectKey:e,label:n,selected:o,stateId:c}}),Pm=o(function(t,r,e){return{id:t,name:r,description:e}}),Bm=c(function(t,r,e,n){return{id:t,name:r,riskType:e,description:n}}),qm=_(function(t,r,e,n,o,c,i,u){return{query:t,isAdministrator:r,isAttending:e,isClerk:n,isGuard:o,isSupervisor:c,isActive:i,isInActive:u}}),Fm=c(function(t,r,e,n){return{id:t,name:r,description:e,sortOrder:n}}),Om=i(function(t,r,e,n,o){return{id:t,name:r,description:e,sortOrder:n,stateId:o}}),Um=c(function(t,r,e,n){return{adhocType:t,success:r,errorCode:e,msg:n}}),Jm=function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return function(l){return function(d){return function(f){return function(p){return{adhocType:t,success:r,errorCode:e,msg:n,userId:o,username:c,firstname:i,lastname:u,email:a,lang:_,shortName:s,displayName:l,role_id:d,roleName:f,isLoggedIn:p}}}}}}}}}}}}}}}},jm=u(function(t,r,e,n,o,c){return{id:t,table:r,stateId:e,success:n,errorCode:o,msg:c}}),Km=u(function(t,r,e,n,o,c){return{id:t,table:r,pendingId:e,success:n,errorCode:o,msg:c}}),Wm=u(function(t,r,e,n,o,c){return{id:t,table:r,stateId:e,success:n,errorCode:o,msg:c}}),Gm=c(function(t,r,e,n){return{notificationType:t,table:r,id:e,foreignKeys:n}}),Xm=e(function(t,r){return{table:t,qualifier:r}}),Qm={ctor:"VaccinationType"},Ym={ctor:"Vaccination"},$m={ctor:"User"},Zm={ctor:"SelectData"},tv={ctor:"Schedule"},rv={ctor:"Role"},ev={ctor:"RoFieldsByRole"},nv={ctor:"Referral"},ov={ctor:"RiskCode"},cv={ctor:"Risk"},iv={ctor:"Priority"},uv={ctor:"PrenatalExam"},av={ctor:"PregnoteType"},_v={ctor:"Pregnote"},sv={ctor:"PregnancyHistory"},lv={ctor:"Pregnancy"},dv={ctor:"Patient"},fv={ctor:"MedicationType"},pv={ctor:"Medication"},hv={ctor:"LabTestValue"},mv={ctor:"LabTestResult"},vv={ctor:"LabTest"},gv={ctor:"LabSuite"},yv={ctor:"KeyValue"},bv={ctor:"HealthTeaching"},Tv={ctor:"EventType"},wv={ctor:"Event"},Mv={ctor:"CustomFieldType"},kv={ctor:"CustomField"},Sv={ctor:"Unknown"},zv={ctor:"UnknownNotificationType"},Cv={ctor:"DelNotificationType"},Rv={ctor:"ChgNotificationType"},xv={ctor:"AddNotificationType"},Lv={ctor:"ProfileNotLoadedPage"},Ev={ctor:"AdminUsersPage"},Vv={ctor:"AdminTablesPage"},Nv={ctor:"AdminHomePage"},Av={ctor:"AdminConfigPage"},Hv={ctor:"AdminBarcodesPage"},Iv={ctor:"::",_0:{ctor:"_Tuple2",_0:"Home",_1:Nv},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"Users",_1:Ev},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"Lookup Tables",_1:Vv},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"Configuration",_1:Av},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"Barcodes",_1:Hv},_1:{ctor:"[]"}}}}}},Dv={ctor:"::",_0:f(vm,Nv,F(0),F(Iv),"#home"),_1:{ctor:"::",_0:f(vm,Ev,F(1),F(Iv),"#users"),_1:{ctor:"::",_0:f(vm,Vv,F(2),F(Iv),"#lookuptables"),_1:{ctor:"::",_0:f(vm,Av,F(3),F(Iv),"#config"),_1:{ctor:"::",_0:f(vm,Hv,F(4),F(Iv),"#barcodes"),_1:{ctor:"::",_0:f(vm,{ctor:"ProfilePage"},B,F(Iv),"#profile"),_1:{ctor:"[]"}}}}}}},Pv=Dv,Bv={ctor:"PageDefNotFoundPage"},qv=f(vm,Bv,B,B,"#pagedefnotfound"),Fv={ctor:"EditModeOther"},Ov={ctor:"EditModeTable"},Uv={ctor:"EditModeView"},Jv={ctor:"EditModeEdit"},jv={ctor:"EditModeAdd"},Kv={ctor:"PostpartumCheckMotherFamilyPlanningSDN"},Wv={ctor:"PostpartumCheckMotherUrineSDN"},Gv={ctor:"PostpartumCheckMotherStoolSDN"},Xv={ctor:"PostpartumCheckMotherSSInfectionSDN"},Qv={ctor:"PostpartumCheckMotherPerineumSDN"},Yv={ctor:"PostpartumCheckMotherLochiaSDN"},$v={ctor:"PostpartumCheckMotherFundusSDN"},Zv={ctor:"PostpartumCheckMotherBreastsSDN"},tg={ctor:"PostpartumCheckBabySSInfectionSDN"},rg={ctor:"PostpartumCheckBabySkinSDN"},eg={ctor:"PostpartumCheckBabyLungsSDN"},ng={ctor:"PostpartumCheckBabyFeedingSDN"},og={ctor:"PostpartumCheckBabyCordSDN"},cg={ctor:"PostpartumCheckBabyColorSDN"},ig={ctor:"NewbornExamSkinSDN"},ug={ctor:"NewbornExamNoseSDN"},ag={ctor:"NewbornExamNeckSDN"},_g={ctor:"NewbornExamMouthSDN"},sg={ctor:"NewbornExamLungsSDN"},lg={ctor:"NewbornExamHipsSDN"},dg={ctor:"NewbornExamHeartSDN"},fg={ctor:"NewbornExamHeadSDN"},pg={ctor:"NewbornExamGenitaliaMaleSDN"},hg={ctor:"NewbornExamGenitaliaFemaleSDN"},mg={ctor:"NewbornExamFemoralPulsesSDN"},vg={ctor:"NewbornExamEyesSDN"},gg={ctor:"NewbornExamExtremitiesSDN"},yg={ctor:"NewbornExamEarsSDN"},bg={ctor:"NewbornExamCordSDN"},Tg={ctor:"NewbornExamColorSDN"},wg={ctor:"NewbornExamChestSDN"},Mg={ctor:"NewbornExamBackSDN"},kg={ctor:"NewbornExamAppearanceSDN"},Sg={ctor:"NewbornExamAnusSDN"},zg={ctor:"NewbornExamAbdomenSDN"},Cg={ctor:"TeachingTopicsSDN"},Rg={ctor:"ReligionSDN"},xg={ctor:"ReferralsSDN"},Lg={ctor:"PlaceOfBirthSDN"},Eg={ctor:"MaritalStatusSDN"},Vg={ctor:"LocationSDN"},Ng={ctor:"EducationSDN"},Ag={ctor:"AttendantSDN"},Hg=function(t){return{ctor:"VaccinationTypeResp",_0:t}},Ig=function(t){return{ctor:"UserResp",_0:t}},Dg=function(t){return{ctor:"SelectDataResp",_0:t}},Pg=function(t){return{ctor:"RoleResp",_0:t}},Bg=function(t){return{ctor:"MedicationTypeResp",_0:t}},qg=function(t){return{ctor:"LabTestValueResp",_0:t}},Fg=function(t){return{ctor:"LabTestResp",_0:t}},Og=function(t){return{ctor:"LabSuiteResp",_0:t}},Ug=function(t){return{ctor:"KeyValueResp",_0:t}},Jg={ctor:"UserProfileUpdateSuccessErrorCode"},jg={ctor:"UserProfileUpdateFailErrorCode"},Kg={ctor:"UserProfileFailErrorCode"},Wg={ctor:"UserProfileSuccessErrorCode"},Gg={ctor:"LoginFailErrorCode"},Xg={ctor:"LoginSuccessDifferentUserErrorCode"},Qg={ctor:"LoginSuccessErrorCode"},Yg={ctor:"SqlErrorCode"},$g={ctor:"SessionExpiredErrorCode"},Zg={ctor:"UnknownErrorCode"},ty={ctor:"NoErrorCode"},ry={ctor:"KeyValueBoolean"},ey={ctor:"KeyValueDate"},ny={ctor:"KeyValueDecimal"},oy={ctor:"KeyValueInteger"},cy={ctor:"KeyValueList"},iy={ctor:"KeyValueText"},uy=function(t){return{ctor:"SystemMessageTypeLog",_0:t}},ay={ctor:"SystemMode_2"},_y={ctor:"SystemMode_1"},sy={ctor:"SystemMode_0"},ly={ctor:"NotifySubQualifierNone"},dy=e(function(t,r){var e=r;if("Success"===e.ctor){var n=l(wf,function(r){return b.eq(r.id,t)},e._0);return"Just"===n.ctor?F(n._0.name):B}return B}),fy=o(function(t,r,e){var n=e;if("Success"===n.ctor){var o=d(gf,t,r,n._0);return"Just"===o.ctor?um(o._0):e}return e}),py=o(function(t,r,e){var n=e;if("Success"===n.ctor){var o=l(Tf,function(r){return b.eq(r.id,t)},n._0);return"Just"===o.ctor?d(fy,o._0,r,e):e}return e}),hy=e(function(t,r){var e=r;return"Success"===e.ctor?um(l(hf,t,e._0)):r}),my=e(function(t,r){var e=r;if("Success"===e.ctor){var n=l(Tf,function(r){return b.eq(r.id,t)},e._0);return"Just"===n.ctor?l(hy,n._0,r):r}return r}),vy=e(function(t,r){var e={ctor:"_Tuple2",_0:t,_1:r};if("Success"===e._0.ctor){if("Success"===e._1.ctor){var n=e._1._0,o=e._0._0,c=l(at,function(t){var r=l(wf,function(r){return b.eq(r.id,t.id)},o);return"Just"===r.ctor?r._0:t},n),i={ctor:"_Tuple2",_0:Gd(l(at,function(t){return t.id},o)),_1:Gd(l(at,function(t){return t.id},n))},u=l(lt,function(t){return l(wf,function(r){return b.eq(r.id,t)},o)},Ud(l(Qd,i._0,i._1)));return um(l(A["++"],c,u))}return t}return r}),gy=e(function(t,r){return e=r,b.update(e,{selectQuery:t});var e}),yy=e(function(t,r){return e=r,b.update(e,{selectedRecordId:t});var e}),by=e(function(t,r){return e=r,b.update(e,{records:t});var e}),Ty=e(function(t,r){return e=r,b.update(e,{nextPendingId:t});var e}),wy=e(function(t,r){return e=r,b.update(e,{form:t});var e}),My=e(function(t,r){return e=r,b.update(e,{editMode:t});var e}),ky=e(function(t,r){var e=t,n={ctor:"_Tuple2",_0:e.records,_1:e.selectedRecordId};if("_Tuple2"===n.ctor&&"Success"===n._0.ctor&&"Just"===n._1.ctor){var o=l(wf,function(t){return b.eq(t.id,n._1._0)},n._0._0);return"Just"===o.ctor?F(l(Wr,0,r(o._0))):B}return B}),Sy=e(function(t,r){var n=l(Lf,t,r);return"Just"===n.ctor?l(e(function(t,r){return t+r}),1,t(n._0)):0}),zy=function(t){var r=t,e=r,n=r.records,o={ctor:"_Tuple2",_0:n,_1:r.selectedRecordId};return"_Tuple2"===o.ctor&&"Success"===o._0.ctor&&"Just"===o._1.ctor?d(T,by,e,l(dm,function(t){return l(_t,function(t){return!b.eq(t.id,o._1._0)},t)},n)):e},Cy=e(function(t,r){return l(by,l(dm,function(r){return l(A["++"],r,{ctor:"::",_0:t,_1:{ctor:"[]"}})},r.records),r)}),Ry=ah({ctor:"::",_0:l(Lh,function(t){return""},yh),_1:{ctor:"::",_0:xh,_1:{ctor:"[]"}}}),xy=(ah({ctor:"::",_0:l(Lh,function(t){return B},yh),_1:{ctor:"::",_0:l(Lh,F,bh),_1:{ctor:"[]"}}}),e(function(t,r){var e=r;return"Just"===e.ctor?k(e._0):t})),Ly=e(function(t,r){var e=r;return"Just"===e.ctor?k(e._0):t}),Ey=function(t){switch(t){case"text":return iy;case"list":return cy;case"integer":return oy;case"decimal":return ny;case"date":return ey;case"boolean":return ry;default:return iy}},Vy=function(t){return v(Ih,zm,l(kh,"id",Th),l(Rh,vh,l(kh,"kvKey",bh)),l(kh,"kvValue",t),l(kh,"description",l(zh,"",bh)),l(kh,"valueType",bh),l(kh,"acceptableValues",l(zh,"",bh)),l(kh,"systemOnly",gh))},Ny=v(Ih,zm,l(kh,"id",Th),l(Rh,vh,l(kh,"kvKey",bh)),l(kh,"kvValue",l(zh,"",bh)),l(kh,"description",l(zh,"",bh)),l(kh,"valueType",bh),l(kh,"acceptableValues",l(zh,"",bh)),l(kh,"systemOnly",gh)),Ay=function(t){var r,e=t.records;if("Success"===e.ctor){if("EditModeAdd"===t.editMode.ctor)return t;var n=l(wf,function(r){return b.eq(r.id,l(P,0,t.selectedRecordId))},e._0);return"Just"===n.ctor?l(wy,(r=n._0,l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:uh(k(r.id))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"kvKey",_1:uh(r.kvKey)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"kvValue",_1:uh(r.kvValue)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"description",_1:uh(r.description)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"valueType",_1:uh(function(t){switch(r.valueType.ctor){case"KeyValueText":return"text";case"KeyValueList":return"list";case"KeyValueInteger":return"integer";case"KeyValueDecimal":return"decimal";case"KeyValueDate":return"date";default:return"boolean"}}())},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"acceptableValues",_1:uh(r.acceptableValues)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"systemOnly",_1:ch(r.systemOnly)},_1:{ctor:"[]"}}}}}}}},Ny)),t):t}return t},Hy={records:lm,form:l($h,{ctor:"[]"},Ny),selectedRecordId:B,editMode:Ov,nextPendingId:-1,selectQuery:B},Iy=f(Vh,Rm,l(kh,"id",Th),l(Rh,vh,l(kh,"name",bh)),sh("description")),Dy=function(t){return l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:uh(k(t.id))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:uh(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"description",_1:uh(t.description)},_1:{ctor:"[]"}}}},Iy)},Py=function(t){var r=t.records;if("Success"===r.ctor){if("EditModeAdd"===t.editMode.ctor)return l(Ty,t.nextPendingId-1,l(wy,Dy(p(xm,t.nextPendingId,"","","",B)),t));var e=l(wf,function(r){return b.eq(r.id,l(P,0,t.selectedRecordId))},r._0);return"Just"===e.ctor?l(wy,Dy(e._0),t):t}return t},By={records:lm,form:l($h,{ctor:"[]"},Iy),selectedRecordId:B,editMode:Fv,nextPendingId:-1,selectQuery:B},qy=l(Ch,l(kh,"labSuite_id",Th),l(Ch,l(kh,"isText",gh),l(Ch,l(kh,"isRange",gh),l(Ch,l(kh,"minRangeInteger",l(zh,"",bh)),l(Ch,l(kh,"minRangeInteger",l(zh,"",bh)),l(Ch,l(kh,"maxRangeDecimal",l(zh,"",bh)),l(Ch,l(kh,"minRangeDecimal",l(zh,"",bh)),l(Ch,l(kh,"unit",l(zh,"",bh)),l(Ch,l(kh,"normal",l(zh,"",bh)),l(Ch,l(kh,"abbrev",l(zh,"",bh)),l(Ch,l(Rh,vh,l(kh,"name",bh)),l(Ch,l(kh,"id",Th),sh(function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return function(l){return{id:t,name:r,abbrev:e,normal:n,unit:o,minRangeDecimal:c,maxRangeDecimal:i,minRangeInteger:u,maxRangeInteger:a,isRange:_,isText:s,labSuite_id:l}}}}}}}}}}}}}))))))))))))),Fy=function(t){return l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:uh(k(t.id))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:uh(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"abbrev",_1:uh(t.abbrev)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"normal",_1:uh(t.normal)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"unit",_1:uh(t.unit)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"minRangeDecimal",_1:uh(l(Ly,"",t.minRangeDecimal))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"maxRangeDecimal",_1:uh(l(Ly,"",t.maxRangeDecimal))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"minRangeInteger",_1:uh(l(xy,"",t.minRangeInteger))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"maxRangeInteger",_1:uh(l(xy,"",t.maxRangeInteger))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"isRange",_1:ch(t.isRange)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"isText",_1:ch(t.isText)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labSuite_id",_1:uh(k(t.labSuite_id))},_1:{ctor:"[]"}}}}}}}}}}}}},qy)},Oy=function(t){var r=t.records;if("Success"===r.ctor){if("EditModeAdd"===t.editMode.ctor)return l(ve,"populateSelectedTableForm for labTest","Warning: should call populateSelectedTableFormWithSuiteId for EditModeAdd."),t;var e=l(wf,function(r){return b.eq(r.id,l(P,0,t.selectedRecordId))},r._0);return"Just"===e.ctor?l(wy,Fy(e._0),t):t}return t},Uy=e(function(t,r){return"Success"===r.records.ctor?"EditModeAdd"===r.editMode.ctor?l(Ty,r.nextPendingId-1,l(wy,Fy(Lm(r.nextPendingId)("")("")("")("")(B)(B)(B)(B)(!1)(!1)(t)(B)),r)):(l(ve,"populateSelectedTableFormWithSuiteId","Warning: should only call this function for EditModeAdd."),r):r}),Jy={records:lm,form:l($h,{ctor:"[]"},qy),selectedRecordId:B,editMode:Fv,nextPendingId:-1,selectQuery:B},jy=l(Ch,l(kh,"labTest_id",Th),l(Ch,l(Rh,vh,l(kh,"value",bh)),l(Ch,l(kh,"id",Th),sh(Em)))),Ky=function(t){return l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:uh(k(t.id))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"value",_1:uh(t.value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labTest_id",_1:uh(k(t.labTest_id))},_1:{ctor:"[]"}}}},jy)},Wy=function(t){var r=t.records;if("Success"===r.ctor){if("EditModeAdd"===t.editMode.ctor)return l(ve,"populateSelectedTableForm for labTestValue","Warning: probably should use populateSelectedTableFormWithTestId instead."),t;var e=l(wf,function(r){return b.eq(r.id,l(P,0,t.selectedRecordId))},r._0);return"Just"===e.ctor?l(wy,Ky(e._0),t):t}return t},Gy=e(function(t,r){return"Success"===r.records.ctor?"EditModeAdd"===r.editMode.ctor?l(Ty,r.nextPendingId-1,l(wy,Ky(f(Vm,r.nextPendingId,"",t,B)),r)):(l(ve,"populateSelectedTableFormWithTestId","Warning: probably should use populateSelectedTableForm instead."),r):r}),Xy={records:lm,form:l($h,{ctor:"[]"},jy),selectedRecordId:B,editMode:Fv,nextPendingId:-1,selectQuery:B},Qy=p(Nh,Hm,l(kh,"id",Th),l(Rh,vh,l(kh,"name",bh)),l(Rh,vh,l(kh,"description",bh)),l(kh,"sortOrder",Th)),Yy=function(t){return l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:uh(k(t.id))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:uh(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"description",_1:uh(t.description)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"sortOrder",_1:uh(k(t.sortOrder))},_1:{ctor:"[]"}}}}},Qy)},$y=function(t){var r=t.records;if("Success"===r.ctor){var e=r._0;if("EditModeAdd"===t.editMode.ctor){var n=l(Sy,function(t){return t.sortOrder},e);return l(Ty,t.nextPendingId-1,l(wy,Yy(p(Am,t.nextPendingId,"","",n,B)),t))}var o=l(wf,function(r){return b.eq(r.id,l(P,0,t.selectedRecordId))},e);return"Just"===o.ctor?l(wy,Yy(o._0),t):t}return t},Zy=o(function(t,r,e){var n=e,o=function(){var e={ctor:"_Tuple2",_0:fm(n.records),_1:n.selectedRecordId};if("_Tuple2"===e.ctor&&"Just"===e._0.ctor&&"Just"===e._1.ctor){var o=e._1._0,c=r(l(t,o,l(K,function(t){return t.id},e._0._0)));return"Just"===c.ctor?F(c._0.id):F(o)}return B}();return $y(l(yy,o,n))}),tb={records:lm,form:l($h,{ctor:"[]"},Qy),selectedRecordId:B,editMode:Ov,nextPendingId:-1,selectQuery:B},rb=p(Nh,Im,l(kh,"id",Th),l(Rh,vh,l(kh,"name",bh)),l(kh,"label",bh),l(kh,"selected",gh)),eb=function(t){return l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:uh(k(t.id))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:uh(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"label",_1:uh(t.label)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"selected",_1:ch(t.selected)},_1:{ctor:"[]"}}}}},rb)},nb=function(t){var r=t.records;if("Success"===r.ctor){if("EditModeAdd"===t.editMode.ctor)return l(Ty,t.nextPendingId-1,l(wy,eb(h(Dm,t.nextPendingId,"","","",!1,B)),t));var e=l(wf,function(r){return b.eq(r.id,l(P,0,t.selectedRecordId))},r._0);return"Just"===e.ctor?l(wy,eb(e._0),t):t}return t},ob=e(function(t,r){var e=r.records;if("Success"===e.ctor){if("EditModeAdd"===r.editMode.ctor)return l(Ty,r.nextPendingId-1,l(wy,eb(h(Dm,r.nextPendingId,t,"","",!1,B)),r));var n=l(wf,function(t){return b.eq(t.id,l(P,0,r.selectedRecordId))},e._0);return"Just"===n.ctor?l(wy,eb(n._0),r):r}return r}),cb={records:lm,form:l($h,{ctor:"[]"},rb),selectedRecordId:B,editMode:Ov,nextPendingId:-1,selectQuery:B},ib=p(Nh,Fm,l(kh,"id",Th),l(Rh,vh,l(kh,"name",bh)),l(Rh,vh,l(kh,"description",bh)),l(kh,"sortOrder",Th)),ub=function(t){return l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:uh(k(t.id))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:uh(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"description",_1:uh(t.description)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"sortOrder",_1:uh(k(t.sortOrder))},_1:{ctor:"[]"}}}}},ib)},ab=function(t){var r=t.records;if("Success"===r.ctor){var e=r._0;if("EditModeAdd"===t.editMode.ctor){var n=l(Sy,function(t){return t.sortOrder},e);return l(Ty,t.nextPendingId-1,l(wy,ub(p(Om,t.nextPendingId,"","",n,B)),t))}var o=l(wf,function(r){return b.eq(r.id,l(P,0,t.selectedRecordId))},e);return"Just"===o.ctor?l(wy,ub(o._0),t):t}return t},_b=o(function(t,r,e){var n=e,o=function(){var e={ctor:"_Tuple2",_0:fm(n.records),_1:n.selectedRecordId};if("_Tuple2"===e.ctor&&"Just"===e._0.ctor&&"Just"===e._1.ctor){var o=e._1._0,c=r(l(t,o,l(K,function(t){return t.id},e._0._0)));return"Just"===c.ctor?F(c._0.id):F(o)}return B}();return ab(l(yy,o,n))}),sb={records:lm,form:l($h,{ctor:"[]"},ib),selectedRecordId:B,editMode:Ov,nextPendingId:-1,selectQuery:B},lb=e(function(t,r){var e=r.records;if("Success"===e.ctor){var n=l(wf,function(r){return b.eq(r.id,t)},e._0);return"Just"===n.ctor?n._0.name:""}return l(ve,"roleToString","Warning: Role records are not yet loaded."),""}),db=l(Ch,l(Rh,vh,l(kh,"description",bh)),l(Ch,l(Rh,vh,l(kh,"name",bh)),l(Ch,l(kh,"id",Th),sh(wm)))),fb={records:lm,form:l($h,{ctor:"[]"},db),selectedRecordId:B,editMode:Ov,nextPendingId:-1,selectQuery:B},pb=l(Ch,l(kh,"role_id",l(Rh,hh(5),l(Rh,mh(1),Th))),l(Ch,l(kh,"isCurrentTeacher",gh),l(Ch,l(zh,"",l(kh,"note",bh)),l(Ch,l(kh,"status",gh),l(Ch,l(zh,"",l(kh,"displayName",bh)),l(Ch,l(zh,"",l(kh,"shortName",bh)),l(Ch,l(zh,"en-US",l(kh,"lang",bh)),l(Ch,l(kh,"email",Ry),l(Ch,l(zh,"",l(kh,"password",bh)),l(Ch,l(Rh,vh,l(kh,"lastname",bh)),l(Ch,l(Rh,vh,l(kh,"firstname",bh)),l(Ch,l(Rh,vh,l(kh,"username",bh)),l(Ch,l(kh,"id",Th),sh(function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return function(l){return function(d){return{id:t,username:r,firstname:e,lastname:n,password:o,email:c,lang:i,shortName:u,displayName:a,status:_,note:s,isCurrentTeacher:l,role_id:d}}}}}}}}}}}}}})))))))))))))),hb=function(t){return l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:uh(k(t.id))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"username",_1:uh(t.username)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"firstname",_1:uh(t.firstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lastname",_1:uh(t.lastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"password",_1:uh(t.password)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"email",_1:uh(t.email)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lang",_1:uh(t.lang)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"shortName",_1:uh(t.shortName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"displayName",_1:uh(t.displayName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"status",_1:ch(t.status)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"note",_1:uh(t.note)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"isCurrentTeacher",_1:ch(t.isCurrentTeacher)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"role_id",_1:uh(k(t.role_id))},_1:{ctor:"[]"}}}}}}}}}}}}}},pb)},mb=function(t){var r=t.records;if("Success"===r.ctor){if("EditModeAdd"===t.editMode.ctor)return l(Ty,t.nextPendingId-1,l(wy,hb(Mm(t.nextPendingId)("")("")("")("")("")("")("")("")(!0)("")(!1)(2)(B)),t));var e=l(wf,function(r){return b.eq(r.id,l(P,0,t.selectedRecordId))},r._0);return"Just"===e.ctor?l(wy,hb(e._0),t):t}return t},vb=o(function(t,r,e){var n=e,o=function(){var e={ctor:"_Tuple2",_0:fm(n.records),_1:n.selectedRecordId};if("_Tuple2"===e.ctor&&"Just"===e._0.ctor&&"Just"===e._1.ctor){var o=e._1._0,c=r(l(t,o,l(K,function(t){return t.id},e._0._0)));return"Just"===c.ctor?F(c._0.id):F(o)}return B}();return mb(l(yy,o,n))}),gb={records:lm,form:l($h,{ctor:"[]"},pb),selectedRecordId:B,editMode:Ov,nextPendingId:-1,selectQuery:B},yb=e(function(t,r){return function(r){return b.update(r,{userModel:t})}(r)}),bb=T(yb),Tb=e(function(t,r){return function(r){return b.update(r,{roleModel:t})}(r)}),wb=T(Tb),Mb=e(function(t,r){return function(r){return b.update(r,{vaccinationTypeModel:t})}(r)}),kb=T(Mb),Sb=e(function(t,r){return function(r){return b.update(r,{selectDataModel:t})}(r)}),zb=T(Sb),Cb=e(function(t,r){return function(r){return b.update(r,{medicationTypeModel:t})}(r)}),Rb=T(Cb),xb=e(function(t,r){return function(r){return b.update(r,{labTestValueModel:t})}(r)}),Lb=T(xb),Eb=e(function(t,r){return function(r){return b.update(r,{labTestModel:t})}(r)}),Vb=T(Eb),Nb=e(function(t,r){return function(r){return b.update(r,{labSuiteModel:t})}(r)}),Ab=T(Nb),Hb=e(function(t,r){return function(r){return b.update(r,{keyValueModel:t})}(r)}),Ib=T(Hb),Db=e(function(t,r){return l(nt,t,r.dataNotificationSubscriptions)?r:function(r){return b.update(r,{dataNotificationSubscriptions:{ctor:"::",_0:t,_1:r.dataNotificationSubscriptions}})}(r)}),Pb=(vp=Dh,gp=qm,yp=l(kh,"query",l(zh,"",bh)),bp=l(kh,"isAdministrator",gh),Tp=l(kh,"isAttending",gh),wp=l(kh,"isClerk",gh),Mp=l(kh,"isGuard",gh),kp=l(kh,"isSupervisor",gh),Sp=l(kh,"isActive",gh),zp=l(kh,"isInActive",gh),9===vp.arity?vp.func(gp,yp,bp,Tp,wp,Mp,kp,Sp,zp):vp(gp)(yp)(bp)(Tp)(wp)(Mp)(kp)(Sp)(zp)),Bb=ah({ctor:"::",_0:bh,_1:{ctor:"::",_0:yh,_1:{ctor:"[]"}}}),qb=l(Ch,l(kh,"role_id",l(Rh,hh(5),l(Rh,mh(1),Th))),l(Ch,l(kh,"displayName",Bb),l(Ch,l(kh,"shortName",Bb),l(Ch,l(kh,"lang",Bb),l(Ch,l(kh,"email",Ry),l(Ch,l(kh,"password",Bb),l(Ch,l(Rh,vh,l(kh,"lastname",bh)),l(Ch,l(Rh,vh,l(kh,"firstname",bh)),l(Ch,l(Rh,vh,l(kh,"username",bh)),l(Ch,l(kh,"userid",Th),sh(function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return{userId:t,username:r,firstname:e,lastname:n,password:o,email:c,lang:i,shortName:u,displayName:a,role_id:_}}}}}}}}}}}))))))))))),Fb=d(Eh,Nm,l(kh,"username",l(Rh,vh,l(zh,"",bh))),l(kh,"password",l(Rh,vh,l(zh,"",bh)))),Ob=B,Ub={dataNotificationSubscriptions:{ctor:"[]"},eventType:lm,keyValueModel:Hy,labSuiteModel:By,labTestModel:Jy,labTestValueModel:Xy,loginForm:l($h,{ctor:"[]"},Fb),mdl:es,medicationTypeModel:tb,nextPendingId:-1,pregnoteType:lm,pageDefs:B,riskCode:lm,role:lm,roleModel:fb,selectDataModel:cb,selectedPage:Nv,selectedTableEditMode:Uv,selectedTable:B,selectedTableRecord:0,snackbar:ua,systemMsgLog:{ctor:"[]"},systemMode:sy,pendingSystemMode:B,transactions:{states:{ctor:"[]"},nextId:1,currentTime:0,expireInterval:1e3,cleanupInterval:1e4},user:lm,userChoice:gr,userModel:gb,userProfile:Ob,userProfileForm:l($h,{ctor:"[]"},qb),userSearchForm:l($h,{ctor:"[]"},Pb),vaccinationType:lm,vaccinationTypeModel:sb},Jb=(i(function(t,r,e,n,o){return{states:t,nextId:r,currentTime:e,expireInterval:n,cleanupInterval:o}}),o(function(t,r,e){return{id:t,state:r,expires:e}})),jb=function(t){return{ctor:"VaccinationTypeMessages",_0:t}},Kb=function(t){return{ctor:"UserProfileMessages",_0:t}},Wb=function(t){return{ctor:"UserMessages",_0:t}},Gb=(e(function(t,r){return{ctor:"UserChoiceSet",_0:t,_1:r}}),function(t){return{ctor:"UpdateResponseMsg",_0:t}}),Xb=function(t){return{ctor:"Snackbar",_0:t}},Qb={ctor:"SessionExpired"},Yb=function(t){return{ctor:"SelectPage",_0:t}},$b=e(function(t,r){return{ctor:"SelectQuerySelectTable",_0:t,_1:r}}),Zb=function(t){return{ctor:"SelectQueryResponseMsg",_0:t}},tT=function(t){return{ctor:"SelectQueryMsg",_0:t}},rT=(e(function(t,r){return{ctor:"SelectedTableEditMode",_0:t,_1:r}}),function(t){return{ctor:"SelectDataMessages",_0:t}}),eT={ctor:"RequestUserProfile"},nT=function(t){return{ctor:"NewSystemMode",_0:t}},oT=function(t){return{ctor:"NewSystemMessage",_0:t}},cT=function(t){return{ctor:"MedicationTypeMessages",_0:t}},iT=function(t){return{ctor:"Mdl",_0:t}},uT={ctor:"Login"},aT=function(t){return{ctor:"LabTestValueMessages",_0:t}},_T=function(t){return{ctor:"LabTestMessages",_0:t}},sT=function(t){return{ctor:"LabSuiteMessages",_0:t}},lT=function(t){return{ctor:"KeyValueMessages",_0:t}},dT=function(t){return{ctor:"DeleteResponseMsg",_0:t}},fT=e(function(t,r){return{ctor:"DeleteRecord",_0:t,_1:r}}),pT=function(t){return{ctor:"CreateResponseMsg",_0:t}},hT=function(t){return{ctor:"AdhocResponseMessages",_0:t}},mT=function(t){return{ctor:"AddChgDelNotificationMessages",_0:t}},vT={ctor:"UpdateKeyValue"},gT=e(function(t,r){return{ctor:"SelectedRecordEditModeKeyValue",_0:t,_1:r}}),yT=e(function(t,r){return{ctor:"ReadResponseKeyValue",_0:t,_1:r}}),bT=function(t){return{ctor:"FormMsgKeyValue",_0:t}},TT={ctor:"CancelEditKeyValue"},wT={ctor:"UpdateMedicationType"},MT=e(function(t,r){return{ctor:"SelectedRecordEditModeMedicationType",_0:t,_1:r}}),kT=e(function(t,r){return{ctor:"ReadResponseMedicationType",_0:t,_1:r}}),ST={ctor:"PrevMedicationType"},zT={ctor:"NextMedicationType"},CT={ctor:"LastMedicationType"},RT=function(t){return{ctor:"FormMsgMedicationType",_0:t}},xT={ctor:"FirstMedicationType"},LT={ctor:"CreateMedicationType"},ET={ctor:"CancelEditMedicationType"},VT={ctor:"UpdateSelectData"},NT=o(function(t,r,e){return{ctor:"SelectedRecordEditModeSelectData",_0:t,_1:r,_2:e}}),AT=e(function(t,r){return{ctor:"ReadResponseSelectData",_0:t,_1:r}}),HT=function(t){return{ctor:"FormMsgSelectData",_0:t}},IT={ctor:"CreateSelectData"},DT={ctor:"CancelEditSelectData"},PT={ctor:"UpdateLabSuite"},BT=e(function(t,r){return{ctor:"SelectedRecordEditModeLabSuite",_0:t,_1:r}}),qT=e(function(t,r){return{ctor:"ReadResponseLabSuite",_0:t,_1:r}}),FT=function(t){return{ctor:"FormMsgLabSuite",_0:t}},OT={ctor:"CreateLabSuite"},UT={ctor:"CancelEditLabSuite"},JT={ctor:"UpdateLabTest"},jT=e(function(t,r){return{ctor:"SelectedRecordEditModeLabTest",_0:t,_1:r}}),KT=e(function(t,r){return{ctor:"ReadResponseLabTest",_0:t,_1:r}}),WT=function(t){return{ctor:"FormMsgLabTest",_0:t}},GT={ctor:"CreateLabTest"},XT={ctor:"CancelEditLabTest"},QT={ctor:"UpdateLabTestValue"},YT=e(function(t,r){return{ctor:"SelectedRecordEditModeLabTestValue",_0:t,_1:r}}),$T=e(function(t,r){return{ctor:"ReadResponseLabTestValue",_0:t,_1:r}}),ZT=function(t){return{ctor:"FormMsgLabTestValue",_0:t}},tw={ctor:"CreateLabTestValue"},rw={ctor:"CancelEditLabTestValue"},ew={ctor:"UpdateVaccinationType"},nw=e(function(t,r){return{ctor:"SelectedRecordEditModeVaccinationType",_0:t,_1:r}}),ow=e(function(t,r){return{ctor:"ReadResponseVaccinationType",_0:t,_1:r}}),cw={ctor:"PrevVaccinationType"},iw={ctor:"NextVaccinationType"},uw={ctor:"LastVaccinationType"},aw=function(t){return{ctor:"FormMsgVaccinationType",_0:t}},_w={ctor:"FirstVaccinationType"},sw={ctor:"CreateVaccinationType"},lw={ctor:"CancelEditVaccinationType"},dw=function(t){return{ctor:"AdhocUserProfileUpdateResponseMsg",_0:t}},fw=function(t){return{ctor:"AdhocUserProfileResponseMsg",_0:t}},pw=function(t){return{ctor:"AdhocLoginResponseMsg",_0:t}},hw=function(t){return{ctor:"AdhocUnknownMsg",_0:t}},mw=e(function(t,r){return{ctor:"ReadResponseRole",_0:t,_1:r}}),vw={ctor:"UpdateUserProfile"},gw=function(t){return{ctor:"FormMsgUserProfile",_0:t}},yw={ctor:"UpdateUser"},bw=e(function(t,r){return{ctor:"SelectedRecordEditModeUser",_0:t,_1:r}}),Tw=e(function(t,r){return{ctor:"ReadResponseUser",_0:t,_1:r}}),ww=function(t){return{ctor:"FormMsgUserSearch",_0:t}},Mw=function(t){return{ctor:"FormMsgUser",_0:t}},kw={ctor:"CreateUserForm"},Sw={ctor:"CreateUser"},zw={ctor:"CancelEditUser"},Cw=(e(function(t,r){var e=r;if("Success"===e.ctor){var n=l(Tf,function(r){return b.eq(r.id,t)},e._0);return"Just"===n.ctor?F(n._0):B}return B}),e(function(t,r){var e=p(oa,t,F("Warning"),"",1e4,250),n=l(ma,e,r.snackbar),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:b.update(r,{snackbar:o}),_1:l(Se,Xb,c)}})),Rw=e(function(t,r){var e=l(na,"",t),n=l(ma,e,r.snackbar),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:b.update(r,{snackbar:o}),_1:l(Se,Xb,c)}}),xw=function(t){var r=t;if("Just"===r.ctor){var e=Ft(r._0);return"Ok"===e.ctor?F(e._0):B}return B},Lw=function(t){var r=t;if("Just"===r.ctor){var e=Ot(r._0);return"Ok"===e.ctor?F(e._0):B}return B},Ew=(e(function(t,r){return l(Ht,t,Ft(l(P,"",r)))}),e(function(t,r){return l(Ht,t,Ot(l(P,"",r)))})),Vw=function(t){switch(t){case"customField":return kv;case"customFieldType":return Mv;case"event":return wv;case"eventType":return Tv;case"healthTeaching":return bv;case"keyValue":return yv;case"labSuite":return gv;case"labTest":return vv;case"labTestResult":return mv;case"labTestValue":return hv;case"medication":return pv;case"medicationType":return fv;case"patient":return dv;case"pregnancy":return lv;case"pregnancyHistory":return sv;case"pregnote":return _v;case"pregnoteType":return av;case"prenatalExam":return uv;case"priority":return iv;case"risk":return cv;case"riskCode":return ov;case"referral":return nv;case"roFieldsByRole":return ev;case"role":return rv;case"schedule":return tv;case"selectData":return Zm;case"user":return $m;case"vaccination":return Ym;case"vaccinationType":return Qm;default:return Sv}},Nw=function(t){switch(t.ctor){case"Unknown":return"";case"CustomField":return"customField";case"CustomFieldType":return"customFieldType";case"Event":return"event";case"EventType":return"eventType";case"HealthTeaching":return"healthTeaching";case"KeyValue":return"keyValue";case"LabSuite":return"labSuite";case"LabTest":return"labTest";case"LabTestResult":return"labTestResult";case"LabTestValue":return"labTestValue";case"Medication":return"medication";case"MedicationType":return"medicationType";case"Patient":return"patient";case"Pregnancy":return"pregnancy";case"PregnancyHistory":return"pregnancyHistory";case"Pregnote":return"pregnote";case"PregnoteType":return"pregnoteType";case"PrenatalExam":return"prenatalExam";case"Priority":return"priority";case"Risk":return"risk";case"RiskCode":return"riskCode";case"Referral":return"referral";case"RoFieldsByRole":return"roFieldsByRole";case"Role":return"role";case"Schedule":return"schedule";case"SelectData":return"selectData";case"User":return"user";case"Vaccination":return"vaccination";default:return"vaccinationType"}},Aw=e(function(t,r){var e=l(wf,function(r){return b.eq(r.location,t.hash)},r);return"Just"===e.ctor?e._0.page:Bv}),Hw=e(function(t,r){var e=r;if("Just"===e.ctor){var n=l(wf,function(r){return b.eq(r.page,t)},e._0);return"Just"===n.ctor?F(n._0):F(qv)}return B}),Iw=o(function(t,r,e){var n=r;if("Just"===n.ctor){var o=n._0.tabs;if("Just"===o.ctor){var c=l(Nf,t,o._0);return"Just"===c.ctor?ge(c._0):e.selectedPage}return e.selectedPage}return e.selectedPage}),Dw=function(t){var r=t.pageDefs;if("Just"===r.ctor){var e=function(){if(!0===b.eq(t.selectedPage,Lv)){var e=it(r._0);return"Just"===e.ctor?e._0.page:t.selectedPage}return t.selectedPage}();return b.update(t,{selectedPage:e})}return t},Pw=function(t){var r=t.userProfile;return"Just"===r.ctor&&"administrator"===r._0.roleName?b.update(t,{pageDefs:F(Dv)}):t},Bw=function(t){return b.eq(t,$g)?l(Mo,w(Qb),po(!0)):Me},qw=l(ie,function(t){switch(t){case"DATA_ADD":return xv;case"DATA_CHANGE":return Rv;case"DATA_DELETE":return Cv;default:return zv}},me),Fw=l(ie,function(t){switch(t){case"NoErrorCode":return ty;case"UnknownErrorCode":return Zg;case"SessionExpiredErrorCode":return $g;case"SqlErrorCode":return Yg;case"LoginSuccessErrorCode":return Qg;case"LoginSuccessDifferentUserErrorCode":return Xg;case"LoginFailErrorCode":return Gg;case"UserProfileSuccessErrorCode":return Wg;case"UserProfileFailErrorCode":return Kg;case"UserProfileUpdateSuccessErrorCode":return Jg;case"UserProfileUpdateFailErrorCode":return jg;default:return Zg}},me),Ow=d(Ie,"isLoggedIn",he,f(He,"roleName",ae(me),B,f(He,"role_id",ae(pe),B,f(He,"displayName",ae(me),B,f(He,"shortName",ae(me),B,f(He,"lang",ae(me),B,f(He,"email",ae(me),B,f(He,"lastname",ae(me),B,f(He,"firstname",ae(me),B,f(He,"username",ae(me),B,f(He,"userId",ae(pe),B,d(Ie,"msg",me,d(Ie,"errorCode",Fw,d(Ie,"success",he,d(Ie,"adhocType",me,Ee(Jm)))))))))))))))),Uw=d(Ie,"msg",me,d(Ie,"errorCode",Fw,d(Ie,"success",he,d(Ie,"adhocType",me,Ee(Um))))),Jw=d(Ie,"isLoggedIn",he,f(He,"roleName",ae(me),B,f(He,"role_id",ae(pe),B,f(He,"displayName",ae(me),B,f(He,"shortName",ae(me),B,f(He,"lang",ae(me),B,f(He,"email",ae(me),B,f(He,"lastname",ae(me),B,f(He,"firstname",ae(me),B,f(He,"username",ae(me),B,f(He,"userId",ae(pe),B,d(Ie,"msg",me,d(Ie,"errorCode",Fw,d(Ie,"success",he,d(Ie,"adhocType",me,Ee(Jm)))))))))))))))),jw=l(Qr,function(t){switch(t){case"ADHOC_LOGIN_RESPONSE":return l(ie,pw,Ow);case"ADHOC_USER_PROFILE_RESPONSE":return l(ie,fw,Jw);case"ADHOC_USER_PROFILE_UPDATE_RESPONSE":return l(ie,dw,Uw);default:return l(ie,hw,$r(l(A["++"],"Unknown adhoc message with tag: ",t)))}},l(_e,"adhocType",me)),Kw=function(t){var r=l(Zr,jw,t);return"Ok"===r.ctor?r._0:hw(r._0)},Ww=l(ie,function(t){return function(t){var r;return r=Kt(l(Wt," ",l(at,function(r){return l(Ut,ye(r),t)?ge(r):""},{ctor:"::",_0:{ctor:"_Tuple2",_0:"ROW_IS_REFERENCED",_1:"The record cannot be deleted because it is currently being used by a record in another table."},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"DUP_ENTRY",_1:"One of the fields is the same as another record. Please change it so that it is unique."},_1:{ctor:"[]"}}}))),b.cmp(Yt(r),0)>0?r:t}(l(P,t,it(l(W,1,d(el,{ctor:"AtMost",_0:1},il(" - ER_"),t)))))},me),Gw=l(ie,Vw,me),Xw=d(Ie,"msg",Ww,d(Ie,"errorCode",Fw,d(Ie,"success",he,d(Ie,"stateId",pe,d(Ie,"table",Gw,d(Ie,"id",pe,Ee(jm))))))),Qw=function(t){var r=l(Zr,Xw,t);return"Ok"===r.ctor?F(r._0):(l(ve,"Decoders.decodeUpdateResponse decoding error",r._0),B)},Yw=d(Ie,"msg",Ww,d(Ie,"errorCode",Fw,d(Ie,"success",he,d(Ie,"pendingId",pe,d(Ie,"table",Gw,d(Ie,"id",pe,Ee(Km))))))),$w=function(t){var r=l(Zr,Yw,t);return"Ok"===r.ctor?F(r._0):(l(ve,"Decoders.decodeCreateResponse decoding error",r._0),B)},Zw=d(Ie,"msg",Ww,d(Ie,"errorCode",Fw,d(Ie,"success",he,d(Ie,"stateId",pe,d(Ie,"table",Gw,d(Ie,"id",pe,Ee(Wm))))))),tM=function(t){var r=l(Zr,Zw,t);return"Ok"===r.ctor?F(r._0):(l(ve,"Decoders.decodeDeleteResponse decoding error",r._0),B)},rM=d(ce,e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}}),l(_e,"table",Gw),l(_e,"id",pe)),eM=d(Ie,"foreignKeys",le(rM),d(Ie,"id",pe,d(Ie,"table",Gw,d(Ie,"notificationType",qw,Ee(Gm))))),nM=function(t){var r=l(Zr,eM,t);return"Ok"===r.ctor?F(r._0):(l(ve,"decodeAddChgDelNotification Error",r._0),B)},oM=l(Ne,B,d(Ie,"sortOrder",pe,d(Ie,"description",me,d(Ie,"name",me,d(Ie,"id",pe,Ee(Om)))))),cM=function(t){var r=t;if("Just"===r.ctor){var e=l(te,oM,r._0);return"Ok"===e.ctor?F(e._0):B}return B},iM=(Cp=u(function(t,r,e,n,o,c){var i=b.eq(o,1);return h(Dm,t,r,e,n,i,c)}),l(Ne,B,d(Ie,"selected",pe,d(Ie,"label",me,d(Ie,"selectKey",me,d(Ie,"name",me,d(Ie,"id",pe,Ee(Cp)))))))),uM=function(t){var r=t;if("Just"===r.ctor){var e=l(te,iM,r._0);return"Ok"===e.ctor?F(e._0):B}return B},aM=(d(Ie,"description",me,d(Ie,"riskType",me,d(Ie,"name",me,d(Ie,"id",pe,Ee(Bm))))),d(Ie,"description",me,d(Ie,"name",me,d(Ie,"id",pe,Ee(Pm)))),d(Ie,"msg",me,d(Ie,"errorCode",Fw,d(Ie,"success",he,d(Ie,"pregnancy_id",de(pe),d(Ie,"patient_id",de(pe),d(Ie,"id",de(pe),d(Ie,"table",Gw,Ee(ym))))))))),_M=l(Ne,B,d(Ie,"role_id",pe,d(Ie,"isCurrentTeacher",pe,d(Ie,"note",me,d(Ie,"status",pe,f(He,"displayName",ae(me),B,d(Ie,"shortName",me,f(He,"lang",ae(me),B,d(Ie,"email",me,d(Ie,"password",me,d(Ie,"lastname",me,d(Ie,"firstname",me,d(Ie,"username",me,d(Ie,"id",pe,Ee(function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return function(d){return function(f){return function(p){var h={ctor:"_Tuple2",_0:b.eq(_,1),_1:b.eq(d,1)},m=h._0,v=h._1;return Mm(t)(r)(e)(n)(o)(c)(l(P,"",i))(u)(l(P,"",a))(m)(s)(v)(f)(B)}}}}}}}}}}}}}}))))))))))))))),sM=function(t){var r=t;if("Just"===r.ctor){var e=l(te,_M,r._0);return"Ok"===e.ctor?F(e._0):(l(ve,"decodeUserRecord",k(e._0)),B)}return B},lM=d(Ie,"description",me,d(Ie,"name",me,d(Ie,"id",pe,Ee(km)))),dM=l(Ne,B,d(Ie,"sortOrder",pe,d(Ie,"description",me,d(Ie,"name",me,d(Ie,"id",pe,Ee(Am)))))),fM=function(t){var r=t;if("Just"===r.ctor){var e=l(te,dM,r._0);return"Ok"===e.ctor?F(e._0):B}return B},pM=l(Ne,B,d(Ie,"labTest_id",pe,d(Ie,"value",me,d(Ie,"id",pe,Ee(Vm))))),hM=function(t){var r=t;if("Just"===r.ctor){var e=l(te,pM,r._0);return"Ok"===e.ctor?F(e._0):(l(ve,"decodeLabTestValuerecord",k(e._0)),B)}return B},mM=d(Ie,"labSuite_id",pe,f(He,"isText",pe,0,f(He,"isRange",pe,0,f(He,"maxRangeInteger",ue({ctor:"::",_0:ae(pe),_1:{ctor:"::",_0:Gr(B),_1:{ctor:"[]"}}}),B,f(He,"minRangeInteger",ue({ctor:"::",_0:ae(pe),_1:{ctor:"::",_0:Gr(B),_1:{ctor:"[]"}}}),B,f(He,"maxRangeDecimal",ue({ctor:"::",_0:ae(fe),_1:{ctor:"::",_0:Gr(B),_1:{ctor:"[]"}}}),B,f(He,"minRangeDecimal",ue({ctor:"::",_0:ae(fe),_1:{ctor:"::",_0:Gr(B),_1:{ctor:"[]"}}}),B,f(He,"unit",me,"",f(He,"normal",me,"",f(He,"abbrev",me,"",f(He,"name",me,"",d(Ie,"id",pe,Ee(function(t){return function(r){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return function(l){var d={ctor:"_Tuple2",_0:b.eq(_,1),_1:b.eq(s,1)},f=d._0,p=d._1;return Lm(t)(r)(e)(n)(o)(c)(i)(u)(a)(f)(p)(l)(B)}}}}}}}}}}}}))))))))))))),vM=function(t){var r=t;if("Just"===r.ctor){var e=l(te,mM,r._0);return"Ok"===e.ctor?F(e._0):(l(ve,"decodeLabTestRecord",k(e._0)),B)}return B},gM=l(Ne,B,f(He,"category",me,"",f(He,"description",me,"",f(He,"name",me,"",d(Ie,"id",pe,Ee(xm)))))),yM=function(t){var r=t;if("Just"===r.ctor){var e=l(te,gM,r._0);return"Ok"===e.ctor?F(e._0):(l(ve,"decodeLabSuiterecord",k(e._0)),B)}return B},bM=l(ie,Ey,me),TM=(Rp=a(function(t,r,e,n,o,c,i){var u=!!b.eq(i,1);return v(Cm,t,r,e,n,o,c,u,B)}),d(Ie,"systemOnly",pe,d(Ie,"acceptableValues",me,d(Ie,"valueType",bM,d(Ie,"description",me,d(Ie,"kvValue",me,d(Ie,"kvKey",me,d(Ie,"id",pe,Ee(Rp))))))))),wM=l(Qr,function(t){switch(Vw(t).ctor){case"KeyValue":return d(Ie,"data",l(ie,Ug,le(TM)),aM);case"LabSuite":return d(Ie,"data",l(ie,Og,le(gM)),aM);case"LabTest":return d(Ie,"data",l(ie,Fg,le(mM)),aM);case"LabTestValue":return d(Ie,"data",l(ie,qg,le(pM)),aM);case"MedicationType":return d(Ie,"data",l(ie,Bg,le(dM)),aM);case"Role":return d(Ie,"data",l(ie,Pg,le(lM)),aM);case"SelectData":return d(Ie,"data",l(ie,Dg,le(iM)),aM);case"User":return d(Ie,"data",l(ie,Ig,le(_M)),aM);case"VaccinationType":return d(Ie,"data",l(ie,Hg,le(oM)),aM);default:return Yr(l(A["++"],"selectQueryResponse: Unknown table named ",l(A["++"],t," returned from server.")))}},l(_e,"table",me)),MM=function(t){return _m(l(Zr,wM,t))},kM=(d(Ie,"description",me,d(Ie,"name",me,d(Ie,"id",pe,Ee(Sm)))),l(se,{ctor:"::",_0:"data",_1:{ctor:"::",_0:"SystemMode",_1:{ctor:"[]"}}},l(ie,function(t){return{ctor:"SystemMessageTypeMode",_0:t}},l(ie,function(t){switch(t){case 0:return sy;case 1:return _y;case 2:return ay;default:return sy}},pe)))),SM=l(ie,uy,d(Ie,"systemLog",me,d(Ie,"updatedAt",pe,Ee(bm)))),zM=ue({ctor:"::",_0:SM,_1:{ctor:"::",_0:kM,_1:{ctor:"[]"}}}),CM=function(t){var r=l(Zr,zM,t);return"Ok"===r.ctor?r._0:(l(ve,"Decoders.decodeSystemMessage decoding error",r._0),uy(mm))},RM=Ur(!0),xM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:jr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"username",_1:Kr(t.username)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"firstname",_1:Kr(t.firstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lastname",_1:Kr(t.lastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"password",_1:Kr(t.password)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"email",_1:Kr(t.email)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lang",_1:Kr(t.lang)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"shortName",_1:Kr(t.shortName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"displayName",_1:Kr(t.displayName)},_1:{ctor:"::",_0:t.status?{ctor:"_Tuple2",_0:"status",_1:jr(1)}:{ctor:"_Tuple2",_0:"status",_1:jr(0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"note",_1:Kr(t.note)},_1:{ctor:"::",_0:t.isCurrentTeacher?{ctor:"_Tuple2",_0:"isCurrentTeacher",_1:jr(1)}:{ctor:"_Tuple2",_0:"isCurrentTeacher",_1:jr(0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"role_id",_1:jr(t.role_id)},_1:{ctor:"::",_0:(r=t.stateId,"Just"===r.ctor?{ctor:"_Tuple2",_0:"stateId",_1:jr(r._0)}:{ctor:"_Tuple2",_0:"stateId",_1:Or}),_1:{ctor:"[]"}}}}}}}}}}}}}}});var r},LM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:jr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:Kr(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"description",_1:Kr(t.description)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"sortOrder",_1:jr(t.sortOrder)},_1:{ctor:"::",_0:(r=t.stateId,"Just"===r.ctor?{ctor:"_Tuple2",_0:"stateId",_1:jr(r._0)}:{ctor:"_Tuple2",_0:"stateId",_1:Or}),_1:{ctor:"[]"}}}}}});var r},EM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:jr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:Kr(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"selectKey",_1:Kr(t.selectKey)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"label",_1:Kr(t.label)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"selected",_1:Ur(t.selected)},_1:{ctor:"::",_0:(r=t.stateId,"Just"===r.ctor?{ctor:"_Tuple2",_0:"stateId",_1:jr(r._0)}:{ctor:"_Tuple2",_0:"stateId",_1:Or}),_1:{ctor:"[]"}}}}}}});var r},VM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:jr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:Kr(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"description",_1:Kr(t.description)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"sortOrder",_1:jr(t.sortOrder)},_1:{ctor:"::",_0:(r=t.stateId,"Just"===r.ctor?{ctor:"_Tuple2",_0:"stateId",_1:jr(r._0)}:{ctor:"_Tuple2",_0:"stateId",_1:Or}),_1:{ctor:"[]"}}}}}});var r},NM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:jr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"value",_1:Kr(t.value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labTest_id",_1:jr(t.labTest_id)},_1:{ctor:"::",_0:(r=t.stateId,"Just"===r.ctor?{ctor:"_Tuple2",_0:"stateId",_1:jr(r._0)}:{ctor:"_Tuple2",_0:"stateId",_1:Or}),_1:{ctor:"[]"}}}}});var r},AM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:jr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:Kr(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"description",_1:Kr(t.description)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"category",_1:Kr(t.category)},_1:{ctor:"::",_0:(r=t.stateId,"Just"===r.ctor?{ctor:"_Tuple2",_0:"stateId",_1:jr(r._0)}:{ctor:"_Tuple2",_0:"stateId",_1:Or}),_1:{ctor:"[]"}}}}}});var r},HM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:jr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"kvValue",_1:Kr(t.kvValue)},_1:{ctor:"::",_0:(r=t.stateId,"Just"===r.ctor?{ctor:"_Tuple2",_0:"stateId",_1:jr(r._0)}:{ctor:"_Tuple2",_0:"stateId",_1:Or}),_1:{ctor:"[]"}}}});var r},IM=function(t){var r=t;return"Just"===r.ctor?jr(r._0):Or},DM=function(t){var r=t;return"Just"===r.ctor?Jr(r._0):Or},PM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:jr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:Kr(t.name)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"abbrev",_1:Kr(t.abbrev)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"normal",_1:Kr(t.normal)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"unit",_1:Kr(t.unit)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"minRangeDecimal",_1:DM(t.minRangeDecimal)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"maxRangeDecimal",_1:DM(t.maxRangeDecimal)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"minRangeInteger",_1:IM(t.minRangeInteger)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"maxRangeInteger",_1:IM(t.maxRangeInteger)},_1:{ctor:"::",_0:t.isRange?{ctor:"_Tuple2",_0:"isRange",_1:jr(1)}:{ctor:"_Tuple2",_0:"isRange",_1:jr(0)},_1:{ctor:"::",_0:t.isText?{ctor:"_Tuple2",_0:"isText",_1:jr(1)}:{ctor:"_Tuple2",_0:"isText",_1:jr(0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labSuite_id",_1:jr(t.labSuite_id)},_1:{ctor:"::",_0:(r=t.stateId,"Just"===r.ctor?{ctor:"_Tuple2",_0:"stateId",_1:jr(r._0)}:{ctor:"_Tuple2",_0:"stateId",_1:Or}),_1:{ctor:"[]"}}}}}}}}}}}}}});var r},BM=function(t){var r=t;return"Just"===r.ctor?jr(r._0):jr(-1)},qM=function(t){return Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:(r=t.table,Kr(Nw(r)))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:BM(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"patient_id",_1:BM(t.patient_id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"pregnancy_id",_1:BM(t.pregnancy_id)},_1:{ctor:"[]"}}}}});var r},FM=be.incomingPort("addChgDelNotification",Xr),OM=be.incomingPort("adhocResponse",Xr),UM=be.incomingPort("createResponse",Xr),JM=be.incomingPort("deleteResponse",Xr),jM=be.incomingPort("selectQueryResponse",Xr),KM=be.incomingPort("updateResponse",Xr),WM=be.incomingPort("systemMessages",Xr),GM=(be.incomingPort("userProfile",Xr),be.outgoingPort("keyValueUpdate",function(t){return t})),XM=be.outgoingPort("labSuiteCreate",function(t){return t}),QM=be.outgoingPort("labSuiteDelete",function(t){return t}),YM=be.outgoingPort("labSuiteUpdate",function(t){return t}),$M=be.outgoingPort("labTestCreate",function(t){return t}),ZM=be.outgoingPort("labTestDelete",function(t){return t}),tk=be.outgoingPort("labTestUpdate",function(t){return t}),rk=be.outgoingPort("labTestValueCreate",function(t){return t}),ek=be.outgoingPort("labTestValueDelete",function(t){return t}),nk=be.outgoingPort("labTestValueUpdate",function(t){return t}),ok=be.outgoingPort("login",function(t){return t}),ck=be.outgoingPort("medicationTypeCreate",function(t){return t}),ik=be.outgoingPort("medicationTypeDelete",function(t){return t}),uk=be.outgoingPort("medicationTypeUpdate",function(t){return t}),ak=be.outgoingPort("requestUserProfile",function(t){return t}),_k=be.outgoingPort("selectDataCreate",function(t){return t}),sk=be.outgoingPort("selectDataDelete",function(t){return t}),lk=be.outgoingPort("selectDataUpdate",function(t){return t}),dk=be.outgoingPort("selectQuery",function(t){return t}),fk=be.outgoingPort("systemMode",function(t){return t}),pk=be.outgoingPort("userCreate",function(t){return t}),hk=be.outgoingPort("userDelete",function(t){return t}),mk=be.outgoingPort("userUpdate",function(t){return t}),vk=be.outgoingPort("userProfileUpdate",function(t){return t}),gk=be.outgoingPort("vaccinationTypeCreate",function(t){return t}),yk=be.outgoingPort("vaccinationTypeDelete",function(t){return t}),bk=be.outgoingPort("vaccinationTypeUpdate",function(t){return t}),Tk=e(function(t,r){var e=r.transactions,n=l(pf,function(r){return b.eq(r.id,t)},e.states);return{ctor:"_Tuple2",_0:b.update(r,{transactions:b.update(e,{states:n})}),_1:b.eq(et(r.transactions.states),et(n))?B:F(t)}}),wk=e(function(t,r){var e;return"Just"===(e=l(wf,function(r){return b.eq(r.id,t)},r.transactions.states)).ctor?F(e._0.state):B}),Mk=(o(function(t,r,e){var n=d(yf,function(r){return b.eq(r.id,t)},function(t){return d(Jb,t.id,t.state,F(r))},e.transactions.states),o=l(wk,t,e),c=e.transactions;return{ctor:"_Tuple2",_0:b.update(e,{transactions:b.update(c,{states:n})}),_1:"Just"===o.ctor?F(t):B}}),o(function(t,r,e){var n=e.transactions,o=d(Jb,n.nextId,t,r),c={ctor:"::",_0:o,_1:n.states};return{ctor:"_Tuple2",_0:b.update(e,{transactions:b.update(n,{states:c,nextId:e.transactions.nextId+1})}),_1:F(o.id)}})),kk=function(t){var r,e={ctor:"_Tuple6",_0:t.userId,_1:t.username,_2:t.firstname,_3:t.lastname,_4:t.role_id,_5:t.roleName};return"_Tuple6"===e.ctor&&"Just"===e._0.ctor&&"Just"===e._1.ctor&&"Just"===e._2.ctor&&"Just"===e._3.ctor&&"Just"===e._4.ctor&&"Just"===e._5.ctor?F((r=e._0._0,function(t){return function(e){return function(n){return function(o){return function(c){return function(i){return function(u){return function(a){return function(_){return function(s){return{userId:r,username:t,firstname:e,lastname:n,email:o,lang:c,shortName:i,displayName:u,role_id:a,roleName:_,isLoggedIn:s}}}}}}}}}}})(e._1._0)(e._2._0)(e._3._0)(l(P,"",t.email))(l(P,"",t.lang))(l(P,"",t.shortName))(l(P,"",t.displayName))(e._4._0)(e._5._0)(t.isLoggedIn)):B},Sk=function(t){var r=t.userProfile;if("Just"===r.ctor){if("administrator"===r._0.roleName){var e=f(gm,yv,B,B,B),n=f(gm,rv,B,B,B),o=f(gm,$m,B,B,B);return{ctor:"::",_0:l(Mo,tT,po({ctor:"::",_0:o,_1:{ctor:"::",_0:n,_1:{ctor:"::",_0:e,_1:{ctor:"[]"}}}})),_1:{ctor:"[]"}}}return{ctor:"[]"}}return{ctor:"[]"}},zk=function(t){var r,e=t.userProfile;return"Just"===e.ctor?b.update(t,{userProfileForm:(r=e._0,l($h,{ctor:"::",_0:{ctor:"_Tuple2",_0:"userid",_1:uh(k(r.userId))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"username",_1:uh(r.username)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"firstname",_1:uh(r.firstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lastname",_1:uh(r.lastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"password",_1:uh("")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"email",_1:uh(r.email)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lang",_1:uh(r.lang)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"shortName",_1:uh(r.shortName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"displayName",_1:uh(r.displayName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"role_id",_1:uh(k(r.role_id))},_1:{ctor:"[]"}}}}}}}}}}},qb))}):t},Ck=function(t){var r=t.userProfile;return"Just"===r.ctor?l(Db,l(Xm,$m,{ctor:"NotifySubQualifierId",_0:r._0.userId}),t):t},Rk=e(function(t,r){var e=t;switch(e.ctor){case"AdhocLoginResponseMsg":var n=e._0,o=(l(ve,"AdhocLoginResponseMsg",k(n)),{ctor:"_Tuple2",_0:n.success,_1:n.errorCode});t:do{if(!0!==o._0)break t;switch(o._1.ctor){case"LoginSuccessErrorCode":return l(ke["!"],Dw(Pw(b.update(r,{userProfile:kk(n),loginForm:Ub.loginForm}))),{ctor:"[]"});case"LoginSuccessDifferentUserErrorCode":var c=Ck(zk(Dw(Pw(b.update(Ub,{userProfile:kk(n),loginForm:Ub.loginForm}))))),i=Sk(c);return l(ke["!"],c,i);default:break t}}while(0);return l(ke["!"],r,{ctor:"[]"});case"AdhocUnknownMsg":return l(ve,"AdhocUnknownMsg",k(e._0)),l(ke["!"],r,{ctor:"[]"});case"AdhocUserProfileResponseMsg":var u=e._0,a={ctor:"_Tuple2",_0:u.success,_1:u.errorCode};return!0===a._0&&"UserProfileSuccessErrorCode"===a._1.ctor?(c=Ck(zk(Dw(Pw(b.update(r,{userProfile:kk(u)}))))),i=Sk(c),l(ke["!"],c,i)):(l(ve,"AdhocLoginResponseMsg",k(u)),l(ke["!"],r,{ctor:"[]"}));default:var _=e._0.success,s=e._0.errorCode,d=function(){if(_&&b.eq(s,Jg)){var t=r.userProfile;if("Just"===t.ctor){var n=t._0;return b.eq(n.roleName,"administrator")?{ctor:"_Tuple2",_0:r,_1:l(Mo,tT,po({ctor:"::",_0:f(gm,$m,F(n.userId),B,B),_1:{ctor:"[]"}}))}:{ctor:"_Tuple2",_0:r,_1:Me}}return{ctor:"_Tuple2",_0:r,_1:Me}}return l(Cw,l(A["++"],"Oops, an error occurred. ",e._0.msg),r)}(),p=(c=d._0,d._1),h=function(){var t=r.userProfile;if("Just"===t.ctor){if(_&&b.eq(s,Jg)){var e={ctor:"_Tuple3",_0:l(Qh,"email",r.userProfileForm).value,_1:l(Qh,"shortName",r.userProfileForm).value,_2:l(Qh,"displayName",r.userProfileForm).value},n=e._0,o=e._1,c=e._2;return F(b.update(t._0,{email:l(P,"",n),shortName:l(P,"",o),displayName:l(P,"",c)}))}return r.userProfile}return r.userProfile}();return l(ke["!"],b.update(c,{userProfile:h}),{ctor:"::",_0:p,_1:{ctor:"[]"}})}}),xk=e(function(t,r){var e={ctor:"_Tuple7",_0:l(Ew,-1,l(Qh,"id",t).value),_1:l(P,"",l(Qh,"kvKey",t).value),_2:l(P,"",l(Qh,"kvValue",t).value),_3:l(P,"",l(Qh,"description",t).value),_4:Ey(l(P,"",l(Qh,"valueType",t).value)),_5:l(P,"",l(Qh,"acceptableValues",t).value),_6:l(P,!1,l(Xh,"systemOnly",t).value)};return v(Cm,e._0,e._1,e._2,e._3,e._4,e._5,e._6,r)}),Lk=e(function(t,r){var e,n="UpdateResponseKeyValue"===(e=t).ctor?Bw(e._0.errorCode):Me,o=l(Ek,t,r),c=o._0,i=o._1;return{ctor:"_Tuple2",_0:c,_1:we({ctor:"::",_0:i,_1:{ctor:"::",_0:n,_1:{ctor:"[]"}}})}}),Ek=e(function(t,r){var e,n,o,c,i,u,a,_=r,s=r.keyValueModel,f=t;switch(f.ctor){case"CancelEditKeyValue":var p=b.eq(s.selectedRecordId,B)?Ov:Uv;return{ctor:"_Tuple2",_0:l(Ib,_,l(My,p,Ay(s))),_1:Me};case"FormMsgKeyValue":var h=f._0,m={ctor:"_Tuple2",_0:h,_1:Oh(s.form)};return"_Tuple2"===m.ctor&&"Submit"===m._0.ctor&&"Just"===m._1.ctor?l(Lk,vT,_):l(ke["!"],l(Ib,_,l(wy,d(Zh,function(t){var r=l(Gt,"|",l(P,"",l(Qh,"acceptableValues",t).value)),e=Ey(l(P,"",l(Qh,"valueType",t).value));switch(l(P,"",l(Qh,"kvValue",t).value),e.ctor){case"KeyValueText":return Vy(l(zh,"",bh));case"KeyValueList":return Vy(l(Rh,lh(r),bh));case"KeyValueInteger":return Vy(l(_h,bh,function(t){var r=Ot(t);return"Ok"===r.ctor?Pt(k(r._0)):It(Jp(Xp))}));case"KeyValueDecimal":return Vy(l(_h,bh,function(t){var r=Ft(t);return"Ok"===r.ctor?Pt(k(r._0)):It(Jp(Gp))}));case"KeyValueDate":return Vy(l(_h,bh,function(t){var r=Bf(t);return"Ok"===r.ctor?Pt(k(r._0)):It(Jp(Kp))}));default:return Vy(l(_h,bh,function(t){switch(t){case"1":return Pt("1");case"0":return Pt("0");default:return It(Jp(Wp))}}))}}(s.form),h,s.form),s)),{ctor:"[]"});case"ReadResponseKeyValue":var v=l(Xm,yv,ly);return{ctor:"_Tuple2",_0:l(Db,v,l(Ib,_,Ay(l(gy,f._1,(a=l(vy,f._0,s.records),b.update(s,{records:a})))))),_1:Me};case"SelectedRecordEditModeKeyValue":var g=f._0,y=f._1;return l(ke["!"],l(Ib,_,function(t){var r=g,e=y;t:do{if("Just"!==e.ctor)break t;switch(r.ctor){case"EditModeEdit":case"EditModeView":return Ay(t);default:break t}}while(0);return t}(l(My,g,l(yy,y,s)))),{ctor:"[]"});case"SelectedRecordKeyValue":return l(ke["!"],b.update(_,{keyValueModel:l(yy,f._0,s)}),{ctor:"[]"});case"UpdateKeyValue":var w=(i=(c="Just"===(o=l(ky,s,HM)).ctor?d(Mk,o._0,B,_):{ctor:"_Tuple2",_0:_,_1:B})._1,{ctor:"_Tuple3",_0:u=c._0,_1:i,_2:l(xk,u.keyValueModel.form,i)}),M=w._0,S=w._1,z=w._2,C="Just"===(n=s.selectedRecordId).ctor?d(py,n._0,function(t){return b.update(t,{stateId:S,kvValue:z.kvValue})},M.keyValueModel.records):M.keyValueModel.records,R=GM(HM(z));return{ctor:"_Tuple2",_0:(e=l(Ib,M,l(My,Uv,l(by,C,M.keyValueModel))),b.update(e,{selectedTableEditMode:Uv})),_1:R};default:var x=f._0,L=d(py,x.id,function(t){return b.update(t,{stateId:B})},s.records),E=(C=function(){if(!0===x.success)return L;var t=function(t){var r=l(wk,x.stateId,_);if("Just"===r.ctor){var e=l(te,TM,r._0);return"Ok"===e.ctor?F(e._0):B}return B}();return"Just"===t.ctor?d(py,x.id,function(r){return b.update(r,{kvValue:t._0.kvValue})},s.records):L}(),M=l(Tk,x.stateId,l(Ib,_,Ay(l(by,C,s))))._0,x.success?{ctor:"_Tuple2",_0:M,_1:Me}:d(T,Cw,M,b.eq(Yt(x.msg),0)?"Sorry, the server rejected that change.":x.msg)),V=E._0,N=E._1;return l(ke["!"],V,{ctor:"::",_0:N,_1:{ctor:"::",_0:N,_1:{ctor:"[]"}}})}}),Vk=e(function(t,r){var e={ctor:"_Tuple3",_0:l(Ew,-1,l(Qh,"id",t).value),_1:l(P,"",l(Qh,"name",t).value),_2:l(P,"",l(Qh,"description",t).value)},n=e._1;return p(xm,e._0,n,e._2,n,r)}),Nk=e(function(t,r){var e=function(){var r=t;switch(r.ctor){case"CreateResponseLabSuite":case"DeleteResponseLabSuite":case"UpdateResponseLabSuite":return Bw(r._0.errorCode);default:return Me}}(),n=l(Ak,t,r),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:o,_1:we({ctor:"::",_0:c,_1:{ctor:"::",_0:e,_1:{ctor:"[]"}}})}}),Ak=e(function(t,r){var e,n,o,c,i,u,a,_,s=r,f=r.labSuiteModel,p=t;switch(p.ctor){case"CancelEditLabSuite":var h=b.eq(f.selectedRecordId,B)?Ov:Uv;return{ctor:"_Tuple2",_0:l(Ab,s,l(My,h,Py(f))),_1:Me};case"CreateLabSuite":var m=l(Vk,f.form,B),v={ctor:"_Tuple2",_0:l(Ab,s,l(Cy,m,f)),_1:XM(AM(m))},g=v._0,y=v._1;return l(ke["!"],g,{ctor:"::",_0:y,_1:{ctor:"[]"}});case"CreateResponseLabSuite":var w=p._0.msg,M=p._0.id,k=!0===p._0.success?{ctor:"_Tuple2",_0:d(py,p._0.pendingId,function(t){return b.update(t,{id:M})},f.records),_1:{ctor:"_Tuple2",_0:s,_1:Me}}:{ctor:"_Tuple2",_0:f.records,_1:d(T,Cw,s,b.eq(Yt(w),0)?"Sorry, the server rejected that addition.":w)},S=k._0,z=(g=k._1._0,y=k._1._1,l(Ab,g,Py(l(yy,F(M),l(My,Uv,l(by,S,f))))));return l(ke["!"],z,{ctor:"::",_0:y,_1:{ctor:"[]"}});case"DeleteLabSuite":if("Just"===p._0.ctor){var C="Just"===(_=l(ky,f,AM)).ctor?d(Mk,_._0,B,s):{ctor:"_Tuple2",_0:s,_1:B},R=(g=C._0,C._1),x=QM(AM(l(Vk,g.labSuiteModel.form,R)));return z=l(Ab,g,l(My,Ov,l(yy,B,zy(g.labSuiteModel)))),l(ke["!"],z,{ctor:"::",_0:x,_1:{ctor:"[]"}})}return l(ke["!"],s,{ctor:"[]"});case"DeleteResponseLabSuite":var L=p._0,E=function(){if(!0===L.success)return{ctor:"_Tuple2",_0:s,_1:B};var t=yM(l(wk,L.stateId,s));return"Just"===t.ctor?l(Tk,L.stateId,l(Ab,s,l(My,Uv,Py(l(yy,F(L.id),l(Cy,t._0,f)))))):{ctor:"_Tuple2",_0:s,_1:B}}()._0,V=L.success?{ctor:"_Tuple2",_0:E,_1:Me}:d(T,Cw,E,b.eq(Yt(L.msg),0)?"Sorry, the server rejected that deletion.":L.msg);return z=V._0,x=V._1,l(ke["!"],z,{ctor:"::",_0:x,_1:{ctor:"[]"}});case"FormMsgLabSuite":var N=p._0,A={ctor:"_Tuple2",_0:N,_1:Oh(f.form)};return"_Tuple2"===A.ctor&&"Submit"===A._0.ctor&&"Just"===A._1.ctor?b.eq(f.editMode,jv)?l(Nk,OT,s):l(Nk,PT,s):l(ke["!"],l(Ab,s,l(wy,d(Zh,Iy,N,f.form),f)),{ctor:"[]"});case"ReadResponseLabSuite":var H=l(Xm,gv,ly);return{ctor:"_Tuple2",_0:l(Db,H,l(Ab,s,Py(l(gy,p._1,(a=l(vy,p._0,f.records),b.update(f,{records:a})))))),_1:Me};case"SelectedRecordEditModeLabSuite":var I=p._0,D=p._1;return l(ke["!"],l(Ab,s,function(t){switch(I.ctor){case"EditModeAdd":case"EditModeView":case"EditModeEdit":return Py(t);default:return t}}(l(My,I,l(yy,D,f)))),{ctor:"[]"});case"UpdateLabSuite":var P=(i=(c="Just"===(o=l(ky,f,AM)).ctor?d(Mk,o._0,B,s):{ctor:"_Tuple2",_0:s,_1:B})._1,{ctor:"_Tuple3",_0:u=c._0,_1:i,_2:l(Vk,u.labSuiteModel.form,i)}),q=(g=P._0,R=P._1,P._2);return S="Just"===(n=f.selectedRecordId).ctor?d(py,n._0,function(t){return b.update(t,{stateId:R,name:q.name,description:q.description,category:q.category})},g.labSuiteModel.records):g.labSuiteModel.records,y=YM(AM(q)),{ctor:"_Tuple2",_0:(e=l(Ab,g,l(My,Uv,l(by,S,g.labSuiteModel))),b.update(e,{selectedTableEditMode:Uv})),_1:y};default:var O=p._0,U=d(py,O.id,function(t){return b.update(t,{stateId:B})},f.records),J=(S=function(){if(!0===O.success)return U;var t=yM(l(wk,O.stateId,s));if("Just"===t.ctor){var r=t._0;return d(py,O.id,function(t){return b.update(t,{name:r.name,description:r.description,category:r.category})},f.records)}return U}(),g=l(Tk,O.stateId,l(Ab,s,Py(l(by,S,f))))._0,O.success?{ctor:"_Tuple2",_0:g,_1:Me}:d(T,Cw,g,b.eq(Yt(O.msg),0)?"Sorry, the server rejected that change.":O.msg));return z=J._0,x=J._1,l(ke["!"],z,{ctor:"::",_0:x,_1:{ctor:"::",_0:x,_1:{ctor:"[]"}}})}}),Hk=e(function(t,r){var e,n,o,c={ctor:"_Tuple5",_0:xw(l(Qh,"maxRangeDecimal",t).value),_1:Lw(l(Qh,"minRangeInteger",t).value),_2:Lw(l(Qh,"maxRangeInteger",t).value),_3:l(P,!1,l(Xh,"isText",t).value),_4:l(Ew,-1,l(Qh,"labSuite_id",t).value)},i=c._0,u=c._1,a=c._2,_=c._3,s=c._4,d={ctor:"_Tuple6",_0:l(Ew,-1,l(Qh,"id",t).value),_1:l(P,"",l(Qh,"name",t).value),_2:l(P,"",l(Qh,"abbrev",t).value),_3:l(P,"",l(Qh,"normal",t).value),_4:l(P,"",l(Qh,"unit",t).value),_5:xw(l(Qh,"minRangeDecimal",t).value)},f=d._0,p=d._1,h=d._2,m=d._3,v=d._4,g=d._5,y=(e=i,n=u,o=a,"Nothing"!==g.ctor||"Nothing"!==e.ctor||"Nothing"!==n.ctor||"Nothing"!==o.ctor);return Lm(f)(p)(h)(m)(v)(g)(i)(u)(a)(y)(_)(s)(r)}),Ik=e(function(t,r){var e=function(){var r=t;switch(r.ctor){case"CreateResponseLabTest":case"DeleteResponseLabTest":case"UpdateResponseLabTest":return Bw(r._0.errorCode);default:return Me}}(),n=l(Dk,t,r),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:o,_1:we({ctor:"::",_0:c,_1:{ctor:"::",_0:e,_1:{ctor:"[]"}}})}}),Dk=e(function(t,r){var e,n,o,c,i,u,a,_,s,f=r,p=r.labTestModel,h=t;switch(h.ctor){case"CancelEditLabTest":var m=b.eq(p.selectedRecordId,B)?Ov:Uv;return{ctor:"_Tuple2",_0:l(Vb,f,l(My,m,Oy(p))),_1:Me};case"CreateLabTest":var v=l(Hk,p.form,B),g={ctor:"_Tuple2",_0:l(Vb,f,l(Cy,v,p)),_1:$M(PM(v))},y=g._0,w=g._1;return l(ke["!"],y,{ctor:"::",_0:w,_1:{ctor:"[]"}});case"CreateResponseLabTest":var M=h._0.msg,k=h._0.id,S=!0===h._0.success?{ctor:"_Tuple2",_0:d(py,h._0.pendingId,function(t){return b.update(t,{id:k})},p.records),_1:{ctor:"_Tuple2",_0:f,_1:Me}}:{ctor:"_Tuple2",_0:p.records,_1:d(T,Cw,f,b.eq(Yt(M),0)?"Sorry, the server rejected that addition.":M)},z=S._0,C=(y=S._1._0,w=S._1._1,l(Vb,y,Oy(l(yy,F(k),l(My,Uv,l(by,z,p))))));return l(ke["!"],C,{ctor:"::",_0:w,_1:{ctor:"[]"}});case"DeleteLabTest":if("Just"===h._0.ctor){var R="Just"===(s=l(ky,p,PM)).ctor?d(Mk,s._0,B,f):{ctor:"_Tuple2",_0:f,_1:B},x=(y=R._0,R._1),L=ZM(PM(l(Hk,y.labTestModel.form,x)));return C=l(Vb,y,l(My,Ov,l(yy,B,zy(y.labTestModel)))),l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"[]"}})}return l(ke["!"],f,{ctor:"[]"});case"DeleteResponseLabTest":var E=h._0,V=function(){if(!0===E.success)return{ctor:"_Tuple2",_0:b.update(f,{selectedTable:F(gv)}),_1:B};var t=vM(l(wk,E.stateId,f));return"Just"===t.ctor?l(Tk,E.stateId,l(Vb,f,l(My,Uv,Oy(l(yy,F(E.id),l(Cy,t._0,p)))))):(l(ve,"DeleteResponseLabTest","We can't find our original record in the transaction manager."),{ctor:"_Tuple2",_0:f,_1:B})}()._0,N=E.success?{ctor:"_Tuple2",_0:V,_1:Me}:d(T,Cw,V,b.eq(Yt(E.msg),0)?"Sorry, the server rejected that deletion.":E.msg);return C=N._0,L=N._1,l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"[]"}});case"FormMsgLabTest":var A=h._0,H={ctor:"_Tuple2",_0:A,_1:Oh(p.form)};return"_Tuple2"===H.ctor&&"Submit"===H._0.ctor&&"Just"===H._1.ctor?b.eq(p.editMode,jv)?l(Ik,GT,f):l(Ik,JT,f):l(ke["!"],l(Vb,f,l(wy,d(Zh,qy,A,p.form),p)),{ctor:"[]"});case"ReadResponseLabTest":var I=l(Xm,vv,ly);return{ctor:"_Tuple2",_0:l(Db,I,l(Vb,f,Oy(l(gy,h._1,(_=l(vy,h._0,p.records),b.update(p,{records:_})))))),_1:Me};case"SelectedRecordEditModeLabTest":var D=h._0,P=h._1,q="Just"===(a=f.labSuiteModel.selectedRecordId).ctor?a._0:-1;return l(ke["!"],(u=l(Vb,f,function(t){switch(D.ctor){case"EditModeAdd":return l(Uy,q,t);case"EditModeView":case"EditModeEdit":return Oy(t);default:return t}}(l(My,D,l(yy,P,p)))),b.eq(D,Fv)?b.update(u,{selectedTable:F(gv)}):b.update(u,{selectedTable:F(vv)})),{ctor:"[]"});case"UpdateLabTest":var O=(c=(o="Just"===(n=l(ky,p,PM)).ctor?d(Mk,n._0,B,f):{ctor:"_Tuple2",_0:f,_1:B})._1,{ctor:"_Tuple3",_0:i=o._0,_1:c,_2:l(Hk,i.labTestModel.form,c)}),U=(y=O._0,x=O._1,O._2);return z="Just"===(e=p.selectedRecordId).ctor?d(py,e._0,function(t){return b.update(t,{stateId:x,name:U.name,abbrev:U.abbrev,normal:U.normal,unit:U.unit,minRangeDecimal:U.minRangeDecimal,maxRangeDecimal:U.maxRangeDecimal,minRangeInteger:U.minRangeInteger,maxRangeInteger:U.maxRangeInteger,isRange:U.isRange,isText:U.isText})},y.labTestModel.records):y.labTestModel.records,w=tk(PM(U)),{ctor:"_Tuple2",_0:function(t){return b.update(t,{selectedTableEditMode:Uv})}(l(Vb,y,l(My,Uv,l(by,z,y.labTestModel)))),_1:w};default:var J=h._0,j=d(py,J.id,function(t){return b.update(t,{stateId:B})},p.records),K=(z=function(){if(!0===J.success)return j;var t=vM(l(wk,J.stateId,f));if("Just"===t.ctor){var r=t._0;return d(py,J.id,function(t){return b.update(t,{name:r.name,abbrev:r.abbrev,normal:r.normal,unit:r.unit,minRangeDecimal:r.minRangeDecimal,maxRangeDecimal:r.maxRangeDecimal,minRangeInteger:r.minRangeInteger,maxRangeInteger:r.maxRangeInteger,isRange:r.isRange,isText:r.isText})},p.records)}return j}(),y=l(Tk,J.stateId,l(Vb,f,Oy(l(by,z,p))))._0,J.success?{ctor:"_Tuple2",_0:y,_1:Me}:d(T,Cw,y,b.eq(Yt(J.msg),0)?"Sorry, the server rejected that change.":J.msg));return C=K._0,L=K._1,l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"::",_0:L,_1:{ctor:"[]"}}})}}),Pk=e(function(t,r){var e={ctor:"_Tuple3",_0:l(Ew,-1,l(Qh,"id",t).value),_1:l(P,"",l(Qh,"value",t).value),_2:l(Ew,-1,l(Qh,"labTest_id",t).value)};return f(Vm,e._0,e._1,e._2,r)}),Bk=e(function(t,r){var e=function(){var r=t;switch(r.ctor){case"CreateResponseLabTestValue":case"DeleteResponseLabTestValue":case"UpdateResponseLabTestValue":return Bw(r._0.errorCode);default:return Me}}(),n=l(qk,t,r),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:o,_1:we({ctor:"::",_0:c,_1:{ctor:"::",_0:e,_1:{ctor:"[]"}}})}}),qk=e(function(t,r){var e,n,o,c,i,u,a,_,s,f=r,p=r.labTestValueModel,h=t;switch(h.ctor){case"CancelEditLabTestValue":var m=b.eq(p.selectedRecordId,B)?Ov:Uv;return{ctor:"_Tuple2",_0:l(Lb,f,l(My,m,Wy(p))),_1:Me};case"CreateLabTestValue":var v=l(Pk,p.form,B),g={ctor:"_Tuple2",_0:l(Lb,f,l(Cy,v,p)),_1:rk(NM(v))},y=g._0,w=g._1;return l(ke["!"],y,{ctor:"::",_0:w,_1:{ctor:"[]"}});case"CreateResponseLabTestValue":var M=h._0.msg,k=h._0.id,S=!0===h._0.success?{ctor:"_Tuple2",_0:d(py,h._0.pendingId,function(t){return b.update(t,{id:k})},p.records),_1:{ctor:"_Tuple2",_0:f,_1:Me}}:{ctor:"_Tuple2",_0:p.records,_1:d(T,Cw,f,b.eq(Yt(M),0)?"Sorry, the server rejected that addition.":M)},z=S._0,C=(y=S._1._0,w=S._1._1,l(Lb,y,Wy(l(yy,F(k),l(My,Uv,l(by,z,p))))));return l(ke["!"],C,{ctor:"::",_0:w,_1:{ctor:"[]"}});case"DeleteLabTestValue":if("Just"===h._0.ctor){var R="Just"===(s=l(ky,p,NM)).ctor?d(Mk,s._0,B,f):{ctor:"_Tuple2",_0:f,_1:B},x=(y=R._0,R._1),L=ek(NM(l(Pk,y.labTestValueModel.form,x)));return C=l(Lb,y,l(My,Ov,l(yy,B,zy(y.labTestValueModel)))),l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"[]"}})}return l(ke["!"],f,{ctor:"[]"});case"DeleteResponseLabTestValue":var E=h._0,V=function(){if(!0===E.success)return{ctor:"_Tuple2",_0:f,_1:B};var t=hM(l(wk,E.stateId,f));return"Just"===t.ctor?l(Tk,E.stateId,l(Lb,f,l(My,Uv,Wy(l(yy,F(E.id),l(Cy,t._0,p)))))):{ctor:"_Tuple2",_0:f,_1:B}}()._0,N=E.success?{ctor:"_Tuple2",_0:V,_1:Me}:d(T,Cw,V,b.eq(Yt(E.msg),0)?"Sorry, the server rejected that deletion.":E.msg);return C=N._0,L=N._1,l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"[]"}});case"FormMsgLabTestValue":var A=h._0,H={ctor:"_Tuple2",_0:A,_1:Oh(p.form)};return"_Tuple2"===H.ctor&&"Submit"===H._0.ctor&&"Just"===H._1.ctor?b.eq(p.editMode,jv)?l(Bk,tw,f):l(Bk,QT,f):l(ke["!"],l(Lb,f,l(wy,d(Zh,jy,A,p.form),p)),{ctor:"[]"});case"ReadResponseLabTestValue":var I=l(Xm,hv,ly);return{ctor:"_Tuple2",_0:l(Db,I,l(Lb,f,Wy(l(gy,h._1,(_=l(vy,h._0,p.records),b.update(p,{records:_})))))),_1:Me};case"SelectedRecordEditModeLabTestValue":var D=h._0,P=h._1,q="Just"===(a=f.labTestModel.selectedRecordId).ctor?a._0:-1;return l(ke["!"],(u=l(Lb,f,function(t){switch(D.ctor){case"EditModeAdd":return l(Gy,q,t);case"EditModeView":case"EditModeEdit":return Wy(t);default:return t}}(l(My,D,l(yy,P,p)))),b.eq(D,Fv)?b.update(u,{selectedTable:F(vv)}):b.update(u,{selectedTable:F(hv)})),{ctor:"[]"});case"UpdateLabTestValue":var O=(c=(o="Just"===(n=l(ky,p,NM)).ctor?d(Mk,n._0,B,f):{ctor:"_Tuple2",_0:f,_1:B})._1,{ctor:"_Tuple3",_0:i=o._0,_1:c,_2:l(Pk,i.labTestValueModel.form,c)}),U=(y=O._0,x=O._1,O._2);return z="Just"===(e=p.selectedRecordId).ctor?d(py,e._0,function(t){return b.update(t,{stateId:x,value:U.value})},y.labTestValueModel.records):y.labTestValueModel.records,w=nk(NM(U)),{ctor:"_Tuple2",_0:function(t){return b.update(t,{selectedTableEditMode:Uv})}(l(Lb,y,l(My,Uv,l(by,z,y.labTestValueModel)))),_1:w};default:var J=h._0,j=d(py,J.id,function(t){return b.update(t,{stateId:B})},p.records),K=(z=function(){if(!0===J.success)return j;var t=hM(l(wk,J.stateId,f));return"Just"===t.ctor?d(py,J.id,function(r){return b.update(r,{value:t._0.value})},p.records):j}(),y=l(Tk,J.stateId,l(Lb,f,Wy(l(by,z,p))))._0,J.success?{ctor:"_Tuple2",_0:y,_1:Me}:d(T,Cw,y,b.eq(Yt(J.msg),0)?"Sorry, the server rejected that change.":J.msg));return C=K._0,L=K._1,l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"::",_0:L,_1:{ctor:"[]"}}})}}),Fk=e(function(t,r){var e={ctor:"_Tuple4",_0:l(Ew,-1,l(Qh,"id",t).value),_1:l(P,"",l(Qh,"name",t).value),_2:l(P,"",l(Qh,"description",t).value),_3:l(Ew,-1,l(Qh,"sortOrder",t).value)};return p(Am,e._0,e._1,e._2,e._3,r)}),Ok=e(function(t,r){var e=function(){var r=t;switch(r.ctor){case"CreateResponseMedicationType":case"DeleteResponseMedicationType":case"UpdateResponseMedicationType":return Bw(r._0.errorCode);default:return Me}}(),n=l(Uk,t,r),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:o,_1:we({ctor:"::",_0:c,_1:{ctor:"::",_0:e,_1:{ctor:"[]"}}})}}),Uk=e(function(t,r){var n,o,c,i,u,a,_,s,f,p,h=r,m=r.medicationTypeModel,v=t;switch(v.ctor){case"CancelEditMedicationType":var g=b.eq(m.selectedRecordId,B)?Ov:Uv;return{ctor:"_Tuple2",_0:l(Rb,h,l(My,g,$y(m))),_1:Me};case"CreateMedicationType":var y=l(Fk,m.form,B),w="Just"===(p=fm(m.records)).ctor&&"Just"===l(wf,function(t){return b.eq(t.sortOrder,y.sortOrder)},p._0).ctor?l(Rw,"The sort order number is not unique.",h):{ctor:"_Tuple2",_0:l(Rb,h,l(Cy,y,m)),_1:ck(VM(y))},M=w._0,k=w._1;return l(ke["!"],M,{ctor:"::",_0:k,_1:{ctor:"[]"}});case"CreateResponseMedicationType":var S=v._0.msg,z=v._0.id,C=!0===v._0.success?{ctor:"_Tuple2",_0:d(py,v._0.pendingId,function(t){return b.update(t,{id:z})},m.records),_1:{ctor:"_Tuple2",_0:h,_1:Me}}:{ctor:"_Tuple2",_0:m.records,_1:d(T,Cw,h,b.eq(Yt(S),0)?"Sorry, the server rejected that addition.":S)},R=C._0,x=(M=C._1._0,k=C._1._1,l(Rb,M,$y(l(yy,F(z),l(My,Uv,l(by,R,m))))));return l(ke["!"],x,{ctor:"::",_0:k,_1:{ctor:"[]"}});case"DeleteMedicationType":if("Just"===v._0.ctor){var L="Just"===(f=l(ky,m,VM)).ctor?d(Mk,f._0,B,h):{ctor:"_Tuple2",_0:h,_1:B},E=(M=L._0,L._1),V=ik(VM(l(Fk,M.medicationTypeModel.form,E)));return x=l(Rb,M,l(My,Ov,l(yy,B,zy(M.medicationTypeModel)))),l(ke["!"],x,{ctor:"::",_0:V,_1:{ctor:"[]"}})}return l(ke["!"],h,{ctor:"[]"});case"DeleteResponseMedicationType":var N=v._0,A=function(){if(!0===N.success)return{ctor:"_Tuple2",_0:h,_1:B};var t=fM(l(wk,N.stateId,h));return"Just"===t.ctor?l(Tk,N.stateId,l(Rb,h,l(My,Uv,$y(l(yy,F(N.id),l(Cy,t._0,m)))))):{ctor:"_Tuple2",_0:h,_1:B}}()._0,H=N.success?{ctor:"_Tuple2",_0:A,_1:Me}:d(T,Cw,A,b.eq(Yt(N.msg),0)?"Sorry, the server rejected that deletion.":N.msg);return x=H._0,V=H._1,l(ke["!"],x,{ctor:"::",_0:V,_1:{ctor:"[]"}});case"FirstMedicationType":return{ctor:"_Tuple2",_0:l(Rb,h,(s=m,d(Zy,e(function(t,r){return r}),it,s))),_1:Me};case"FormMsgMedicationType":var I=v._0,D={ctor:"_Tuple2",_0:I,_1:Oh(m.form)};return"_Tuple2"===D.ctor&&"Submit"===D._0.ctor&&"Just"===D._1.ctor?b.eq(m.editMode,jv)?l(Ok,LT,h):l(Ok,wT,h):l(ke["!"],l(Rb,h,l(wy,d(Zh,Qy,I,m.form),m)),{ctor:"[]"});case"LastMedicationType":return{ctor:"_Tuple2",_0:l(Rb,h,function(t){return d(Zy,e(function(t,r){return r}),If,t)}(m)),_1:Me};case"NextMedicationType":return{ctor:"_Tuple2",_0:l(Rb,h,function(t){return d(Zy,e(function(t,r){return l(zf,function(r){return b.cmp(r.id,t)<1},r)}),it,t)}(m)),_1:Me};case"PrevMedicationType":return{ctor:"_Tuple2",_0:l(Rb,h,function(t){return d(Zy,e(function(t,r){return l(Cf,function(r){return b.cmp(r.id,t)<0},r)}),If,t)}(m)),_1:Me};case"ReadResponseMedicationType":var P=l(Xm,fv,ly);return{ctor:"_Tuple2",_0:l(Db,P,l(Rb,h,$y(l(gy,v._1,(_=l(vy,v._0,m.records),b.update(m,{records:_})))))),_1:Me};case"SelectedRecordEditModeMedicationType":var q=v._0,O=v._1;return l(ke["!"],l(Rb,h,function(t){var r=q,e=O;t:do{switch(r.ctor){case"EditModeAdd":return $y(t);case"EditModeEdit":case"EditModeView":if("Just"===e.ctor)return $y(t);break t;default:break t}}while(0);return t}(l(My,q,l(yy,O,m)))),{ctor:"[]"});case"SelectedRecordMedicationType":return l(ke["!"],b.update(h,{medicationTypeModel:l(yy,v._0,m)}),{ctor:"[]"});case"UpdateMedicationType":var U=(u=(i="Just"===(c=l(ky,m,VM)).ctor?d(Mk,c._0,B,h):{ctor:"_Tuple2",_0:h,_1:B})._1,{ctor:"_Tuple3",_0:a=i._0,_1:u,_2:l(Fk,a.medicationTypeModel.form,u)}),J=(M=U._0,E=U._1,U._2);return R="Just"===(o=m.selectedRecordId).ctor?d(py,o._0,function(t){return b.update(t,{stateId:E,name:J.name,description:J.description,sortOrder:J.sortOrder})},M.medicationTypeModel.records):M.medicationTypeModel.records,k=uk(VM(J)),{ctor:"_Tuple2",_0:(n=l(Rb,M,l(My,Uv,l(by,R,M.medicationTypeModel))),b.update(n,{selectedTableEditMode:Uv})),_1:k};default:var j=v._0,K=d(py,j.id,function(t){return b.update(t,{stateId:B})},m.records),W=(R=function(){if(!0===j.success)return K;var t=fM(l(wk,j.stateId,h));if("Just"===t.ctor){var r=t._0;return d(py,j.id,function(t){return b.update(t,{name:r.name,description:r.description,sortOrder:r.sortOrder})},m.records)}return K}(),M=l(Tk,j.stateId,l(Rb,h,$y(l(by,R,m))))._0,j.success?{ctor:"_Tuple2",_0:M,_1:Me}:d(T,Cw,M,b.eq(Yt(j.msg),0)?"Sorry, the server rejected that change.":j.msg));return x=W._0,V=W._1,l(ke["!"],x,{ctor:"::",_0:V,_1:{ctor:"::",_0:V,_1:{ctor:"[]"}}})}}),Jk=e(function(t,r){t:for(;;){var e=r,n=e,o=t;if("FormMsgUserProfile"===o.ctor){var c=o._0,i={ctor:"_Tuple2",_0:c,_1:Oh(e.userProfileForm)};if("_Tuple2"===i.ctor&&"Submit"===i._0.ctor&&"Just"===i._1.ctor){t=vw,r=n;continue t}return l(ke["!"],b.update(n,{userProfileForm:d(Zh,qb,c,n.userProfileForm)}),{ctor:"[]"})}var u=(a=void 0,"Just"===(_=Oh(n.userProfileForm)).ctor?vk((a=_._0,Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"userId",_1:jr(a.userId)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"username",_1:Kr(a.username)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"firstname",_1:Kr(a.firstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lastname",_1:Kr(a.lastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"password",_1:Kr(a.password)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"email",_1:Kr(a.email)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lang",_1:Kr(a.lang)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"shortName",_1:Kr(a.shortName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"displayName",_1:Kr(a.displayName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"role_id",_1:jr(a.role_id)},_1:{ctor:"[]"}}}}}}}}}}}))):Me);return l(ke["!"],n,{ctor:"::",_0:u,_1:{ctor:"[]"}})}var a,_}),jk=e(function(t,r){var e,n=r,o=n.roleModel,c=t,i=l(Xm,rv,ly);return{ctor:"_Tuple2",_0:l(Db,i,l(wb,n,l(gy,c._1,(e=l(vy,c._0,o.records),b.update(o,{records:e}))))),_1:Me}}),Kk=e(function(t,r){var e={ctor:"_Tuple4",_0:l(Ew,-1,l(Qh,"id",t).value),_1:l(P,"",l(Qh,"name",t).value),_2:l(P,"",l(Qh,"label",t).value),_3:l(P,!1,l(Xh,"selected",t).value)},n=e._2;return h(Dm,e._0,e._1,n,n,e._3,r)}),Wk=e(function(t,r){var e=function(){var r=t;switch(r.ctor){case"CreateResponseSelectData":case"DeleteResponseSelectData":case"UpdateResponseSelectData":return Bw(r._0.errorCode);default:return Me}}(),n=l(Gk,t,r),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:o,_1:we({ctor:"::",_0:c,_1:{ctor:"::",_0:e,_1:{ctor:"[]"}}})}}),Gk=e(function(t,r){var e,n,o,c,i,u,a,_,s=r,p=s.selectDataModel,h=s,m=t;switch(m.ctor){case"CancelEditSelectData":return{ctor:"_Tuple2",_0:l(zb,h,l(My,Ov,nb(p))),_1:Me};case"CreateSelectData":var v=l(Kk,p.form,B),g={ctor:"_Tuple2",_0:l(zb,h,l(Cy,v,p)),_1:_k(EM(v))},y=g._0,w=g._1;return l(ke["!"],y,{ctor:"::",_0:w,_1:{ctor:"[]"}});case"CreateResponseSelectData":var M=m._0.msg,k=m._0.id,S=!0===m._0.success?{ctor:"_Tuple2",_0:d(py,m._0.pendingId,function(t){return b.update(t,{id:k})},p.records),_1:{ctor:"_Tuple2",_0:h,_1:dk(qM(f(gm,Zm,B,B,B)))}}:{ctor:"_Tuple2",_0:p.records,_1:d(T,Cw,h,b.eq(Yt(M),0)?"Sorry, the server rejected that addition.":M)},z=S._0,C=(y=S._1._0,w=S._1._1,l(zb,y,nb(l(yy,F(k),l(My,Uv,l(by,z,p))))));return l(ke["!"],C,{ctor:"::",_0:w,_1:{ctor:"[]"}});case"DeleteSelectData":if("Just"===m._0.ctor){var R="Just"===(_=l(ky,p,EM)).ctor?d(Mk,_._0,B,h):{ctor:"_Tuple2",_0:h,_1:B},x=(y=R._0,R._1),L=sk(EM(l(Kk,y.selectDataModel.form,x)));return C=l(zb,y,l(My,Ov,l(yy,B,zy(y.selectDataModel)))),l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"[]"}})}return l(ke["!"],h,{ctor:"[]"});case"DeleteResponseSelectData":var E=m._0,V=function(){if(!0===E.success)return{ctor:"_Tuple2",_0:h,_1:B};var t=uM(l(wk,E.stateId,h));return"Just"===t.ctor?l(Tk,E.stateId,l(zb,h,l(My,Uv,nb(l(yy,F(E.id),l(Cy,t._0,p)))))):{ctor:"_Tuple2",_0:h,_1:B}}()._0,N=E.success?{ctor:"_Tuple2",_0:V,_1:Me}:d(T,Cw,V,b.eq(Yt(E.msg),0)?"Sorry, the server rejected that deletion.":E.msg);return C=N._0,L=N._1,l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"[]"}});case"FormMsgSelectData":var A=m._0,H={ctor:"_Tuple2",_0:A,_1:Oh(p.form)};return"_Tuple2"===H.ctor&&"Submit"===H._0.ctor&&"Just"===H._1.ctor?b.eq(p.editMode,jv)?l(Wk,IT,h):l(Wk,VT,h):l(ke["!"],l(zb,h,l(wy,d(Zh,rb,A,p.form),p)),{ctor:"[]"});case"ReadResponseSelectData":var I=l(Xm,Zm,ly);return{ctor:"_Tuple2",_0:l(Db,I,l(zb,h,nb(l(gy,m._1,(a=l(vy,m._0,p.records),b.update(p,{records:a})))))),_1:Me};case"SelectedRecordEditModeSelectData":var D=m._0,P=m._1;return l(ke["!"],l(zb,h,function(t){if(b.eq(D,jv)){var r=m._2;return"Just"===r.ctor?l(ob,r._0,t):nb(t)}return b.eq(D,Ov)||b.eq(P,B)?t:nb(t)}(l(My,D,l(yy,P,p)))),{ctor:"[]"});case"SelectedRecordSelectData":return l(ke["!"],b.update(h,{selectDataModel:l(yy,m._0,p)}),{ctor:"[]"});case"UpdateSelectData":var q=(i=(c="Just"===(o=l(ky,p,EM)).ctor?d(Mk,o._0,B,h):{ctor:"_Tuple2",_0:h,_1:B})._1,{ctor:"_Tuple3",_0:u=c._0,_1:i,_2:l(Kk,u.selectDataModel.form,i)}),O=(y=q._0,x=q._1,q._2);return z="Just"===(n=p.selectedRecordId).ctor?d(py,n._0,function(t){return b.update(t,{stateId:x,name:O.name,selectKey:O.selectKey,label:O.label,selected:O.selected})},y.selectDataModel.records):y.selectDataModel.records,w=lk(EM(O)),{ctor:"_Tuple2",_0:(e=l(zb,y,l(My,Uv,l(by,z,y.selectDataModel))),b.update(e,{selectedTableEditMode:Uv})),_1:w};default:var U=m._0,J=d(py,U.id,function(t){return b.update(t,{stateId:B})},p.records),j=(z=function(){if(!0===U.success)return J;var t=uM(l(wk,U.stateId,h));if("Just"===t.ctor){var r=t._0;return d(py,U.id,function(t){return b.update(t,{name:r.name,selectKey:r.selectKey,label:r.label,selected:r.selected})},p.records)}return J}(),y=l(Tk,U.stateId,l(zb,h,nb(l(by,z,p))))._0,U.success?{ctor:"_Tuple2",_0:y,_1:dk(qM(f(gm,Zm,B,B,B)))}:d(T,Cw,y,b.eq(Yt(U.msg),0)?"Sorry, the server rejected that change.":U.msg));return C=j._0,L=j._1,l(ke["!"],C,{ctor:"::",_0:L,_1:{ctor:"::",_0:L,_1:{ctor:"[]"}}})}}),Xk=e(function(t,r){var e={ctor:"_Tuple6",_0:l(P,"",l(Qh,"shortName",t).value),_1:l(P,"",l(Qh,"displayName",t).value),_2:l(P,!1,l(Xh,"status",t).value),_3:l(P,"",l(Qh,"note",t).value),_4:l(P,!1,l(Xh,"isCurrentTeacher",t).value),_5:l(Ew,2,l(Qh,"role_id",t).value)},n=e._0,o=e._1,c=e._2,i=e._3,u=e._4,a=e._5,_={ctor:"_Tuple7",_0:l(Ew,-1,l(Qh,"id",t).value),_1:l(P,"",l(Qh,"username",t).value),_2:l(P,"",l(Qh,"firstname",t).value),_3:l(P,"",l(Qh,"lastname",t).value),_4:l(P,"",l(Qh,"password",t).value),_5:l(P,"",l(Qh,"email",t).value),_6:l(P,"",l(Qh,"lang",t).value)},s=_._1,d=_._2,f=_._3,p=_._4,h=_._5,m=_._6;return Mm(_._0)(s)(d)(f)(p)(h)(m)(n)(o)(c)(i)(u)(a)(r)}),Qk=e(function(t,r){var e=function(){var r=t;switch(r.ctor){case"CreateResponseUser":case"DeleteResponseUser":case"UpdateResponseUser":return Bw(r._0.errorCode);default:return Me}}(),n=l(Yk,t,r),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:o,_1:we({ctor:"::",_0:c,_1:{ctor:"::",_0:e,_1:{ctor:"[]"}}})}}),Yk=e(function(t,r){var n,o,c,i,u,a,_,s,f,p=r,h=p.userSearchForm,m=p.userModel,v=p,g=t;switch(g.ctor){case"CancelEditUser":return{ctor:"_Tuple2",_0:l(bb,v,l(My,Uv,mb(m))),_1:Me};case"CreateResponseUser":var y=g._0.success,M=g._0.msg,k=g._0.id,S=!0===y?{ctor:"_Tuple2",_0:d(py,g._0.pendingId,function(t){return b.update(t,{id:k})},m.records),_1:{ctor:"_Tuple2",_0:v,_1:Me}}:{ctor:"_Tuple2",_0:m.records,_1:d(T,Cw,v,b.eq(Yt(M),0)?"Sorry, the server rejected that addition.":M)},z=S._0,C=S._1._0,R=S._1._1,x=l(bb,C,mb(l(yy,F(k),l(My,y?Ov:Jv,l(by,z,m)))));return l(ke["!"],x,{ctor:"::",_0:R,_1:{ctor:"[]"}});case"CreateUser":var L=l(Xk,m.form,B),E={ctor:"_Tuple2",_0:l(bb,v,l(Cy,L,m)),_1:pk(xM(L))};return C=E._0,R=E._1,l(ke["!"],C,{ctor:"::",_0:R,_1:{ctor:"[]"}});case"CreateUserForm":return{ctor:"_Tuple2",_0:l(bb,v,mb(l(My,jv,m))),_1:Me};case"DeleteResponseUser":var V=g._0,N=function(){if(!0===V.success)return{ctor:"_Tuple2",_0:v,_1:B};var t=sM(l(wk,V.stateId,v));return"Just"===t.ctor?l(Tk,V.stateId,l(bb,v,l(My,Ov,mb(l(yy,F(V.id),l(Cy,t._0,m)))))):{ctor:"_Tuple2",_0:v,_1:B}}()._0,A=V.success?{ctor:"_Tuple2",_0:N,_1:Me}:d(T,Cw,N,b.eq(Yt(V.msg),0)?"Sorry, the server rejected that deletion.":V.msg),H=(x=A._0,A._1);return l(ke["!"],x,{ctor:"::",_0:H,_1:{ctor:"[]"}});case"DeleteUser":if("Just"===g._0.ctor){var I="Just"===(f=l(ky,m,xM)).ctor?d(Mk,f._0,B,v):{ctor:"_Tuple2",_0:v,_1:B},D=(C=I._0,I._1);return H=hk(xM(l(Xk,C.userModel.form,D))),x=l(bb,C,l(My,Ov,l(yy,B,zy(C.userModel)))),l(ke["!"],x,{ctor:"::",_0:H,_1:{ctor:"[]"}})}return l(ke["!"],v,{ctor:"[]"});case"FormMsgUser":var P=g._0,q={ctor:"_Tuple2",_0:P,_1:Oh(m.form)};return"_Tuple2"===q.ctor&&"Submit"===q._0.ctor&&"Just"===q._1.ctor?b.eq(m.editMode,jv)?l(Qk,Sw,v):l(Qk,yw,v):l(ke["!"],l(bb,v,l(wy,d(Zh,pb,P,m.form),m)),{ctor:"[]"});case"FormMsgUserSearch":var O=g._0,U={ctor:"_Tuple2",_0:O,_1:Oh(h)};return"_Tuple2"===U.ctor&&"Submit"===U._0.ctor&&"Just"===U._1.ctor?l(ke["!"],v,{ctor:"[]"}):l(ke["!"],b.update(v,{userSearchForm:d(Zh,Pb,O,h)}),{ctor:"[]"});case"FirstUser":return{ctor:"_Tuple2",_0:l(bb,v,(s=m,d(vb,e(function(t,r){return r}),it,s))),_1:Me};case"LastUser":return{ctor:"_Tuple2",_0:l(bb,v,function(t){return d(vb,e(function(t,r){return r}),If,t)}(m)),_1:Me};case"NextUser":return{ctor:"_Tuple2",_0:l(bb,v,function(t){return d(vb,e(function(t,r){return l(zf,function(r){return b.cmp(r.id,t)<1},r)}),it,t)}(m)),_1:Me};case"PrevUser":return{ctor:"_Tuple2",_0:l(bb,v,function(t){return d(vb,e(function(t,r){return l(Cf,function(r){return b.cmp(r.id,t)<0},r)}),If,t)}(m)),_1:Me};case"ReadResponseUser":var J=g._1,j=(R=function(){var t=J;if("Just"===t.ctor){var r={ctor:"_Tuple2",_0:t._0.id,_1:v.userProfile};return"Just"===r._0.ctor&&"Just"===r._1.ctor&&b.eq(r._0._0,r._1._0.userId)?l(Mo,w(eT),po(!0)):Me}return Me}(),l(Xm,$m,ly));return{ctor:"_Tuple2",_0:l(Db,j,l(bb,v,mb(l(gy,J,(_=l(vy,g._0,m.records),b.update(m,{records:_})))))),_1:R};case"SelectedRecordEditModeUser":var K=g._0,W=g._1;return l(ke["!"],l(bb,v,(a=l(My,K,l(yy,W,m)),b.eq(K,Ov)||b.eq(W,B)?a:mb(a))),{ctor:"[]"});case"UpdateResponseUser":var G=g._0,X=d(py,G.id,function(t){return b.update(t,{stateId:B})},m.records),Q=(z=function(){if(!0===G.success)return X;var t=sM(l(wk,G.stateId,v));if("Just"===t.ctor){var r=t._0;return d(py,G.id,function(t){return b.update(t,{id:r.id,username:r.username,firstname:r.firstname,lastname:r.lastname,password:r.password,email:r.email,lang:r.lang,shortName:r.shortName,displayName:r.displayName,status:r.status,note:r.note,isCurrentTeacher:r.isCurrentTeacher,role_id:r.role_id})},m.records)}return l(ve,"UpdateResponseUser","Cannot find state in transaction manager."),X}(),C=l(Tk,G.stateId,l(bb,v,mb(l(by,z,m))))._0,G.success?{ctor:"_Tuple2",_0:C,_1:Me}:d(T,Cw,C,b.eq(Yt(G.msg),0)?"Sorry, the server rejected that change.":G.msg));return x=Q._0,H=Q._1,l(ke["!"],x,{ctor:"::",_0:H,_1:{ctor:"::",_0:H,_1:{ctor:"[]"}}});default:var Y=(i=(c=function(){var t=l(ky,m,xM);return"Just"===t.ctor?d(Mk,t._0,B,v):(l(ve,"Oops, couldn't save state","bug"),{ctor:"_Tuple2",_0:v,_1:B})}())._1,{ctor:"_Tuple3",_0:u=c._0,_1:i,_2:l(Xk,u.userModel.form,i)}),$=(C=Y._0,D=Y._1,Y._2);return z="Just"===(o=m.selectedRecordId).ctor?d(py,o._0,function(t){return b.update(t,{stateId:D,id:$.id,username:$.username,firstname:$.firstname,lastname:$.lastname,password:$.password,email:$.email,lang:$.lang,shortName:$.shortName,displayName:$.displayName,status:$.status,note:$.note,isCurrentTeacher:$.isCurrentTeacher,role_id:$.role_id})},C.userModel.records):C.userModel.records,R=mk(xM($)),{ctor:"_Tuple2",_0:(n=l(bb,C,l(My,Uv,l(by,z,C.userModel))),b.update(n,{selectedTableEditMode:Uv})),_1:R}}}),$k=e(function(t,r){var e={ctor:"_Tuple4",_0:l(Ew,-1,l(Qh,"id",t).value),_1:l(P,"",l(Qh,"name",t).value),_2:l(P,"",l(Qh,"description",t).value),_3:l(Ew,-1,l(Qh,"sortOrder",t).value)};return p(Om,e._0,e._1,e._2,e._3,r)}),Zk=e(function(t,r){var e=function(){var r=t;switch(r.ctor){case"CreateResponseVaccinationType":case"DeleteResponseVaccinationType":case"UpdateResponseVaccinationType":return Bw(r._0.errorCode);default:return Me}}(),n=l(tS,t,r),o=n._0,c=n._1;return{ctor:"_Tuple2",_0:o,_1:we({ctor:"::",_0:c,_1:{ctor:"::",_0:e,_1:{ctor:"[]"}}})}}),tS=e(function(t,r){var n,o,c,i,u,a,_,s,f,p,h=r,m=h.vaccinationTypeModel,v=h,g=t;switch(g.ctor){case"CancelEditVaccinationType":var y=b.eq(m.selectedRecordId,B)?Ov:Uv;return{ctor:"_Tuple2",_0:l(kb,v,l(My,y,ab(m))),_1:Me};case"CreateVaccinationType":var w=l($k,m.form,B),M="Just"===(p=fm(m.records)).ctor&&"Just"===l(wf,function(t){return b.eq(t.sortOrder,w.sortOrder)},p._0).ctor?l(Rw,"The sort order number is not unique.",v):{ctor:"_Tuple2",_0:l(kb,v,l(Cy,w,m)),_1:gk(LM(w))},k=M._0,S=M._1;return l(ke["!"],k,{ctor:"::",_0:S,_1:{ctor:"[]"}});case"CreateResponseVaccinationType":var z=g._0.msg,C=g._0.id,R=!0===g._0.success?{ctor:"_Tuple2",_0:d(py,g._0.pendingId,function(t){return b.update(t,{id:C})},m.records),_1:{ctor:"_Tuple2",_0:v,_1:Me}}:{ctor:"_Tuple2",_0:m.records,_1:d(T,Cw,v,b.eq(Yt(z),0)?"Sorry, the server rejected that addition.":z)},x=R._0,L=(k=R._1._0,S=R._1._1,l(kb,k,ab(l(yy,F(C),l(My,Uv,l(by,x,m))))));return l(ke["!"],L,{ctor:"::",_0:S,_1:{ctor:"[]"}});case"DeleteVaccinationType":if("Just"===g._0.ctor){var E="Just"===(f=l(ky,m,LM)).ctor?d(Mk,f._0,B,v):{ctor:"_Tuple2",_0:v,_1:B},V=(k=E._0,E._1),N=yk(LM(l($k,k.vaccinationTypeModel.form,V)));return L=l(kb,k,l(My,Ov,l(yy,B,zy(k.vaccinationTypeModel)))),l(ke["!"],L,{ctor:"::",_0:N,_1:{ctor:"[]"}})}return l(ke["!"],v,{ctor:"[]"});case"DeleteResponseVaccinationType":var A=g._0,H=function(){if(!0===A.success)return{ctor:"_Tuple2",_0:v,_1:B};var t=cM(l(wk,A.stateId,v));return"Just"===t.ctor?l(Tk,A.stateId,l(kb,v,l(My,Uv,ab(l(yy,F(A.id),l(Cy,t._0,m)))))):{ctor:"_Tuple2",_0:v,_1:B}}()._0,I=A.success?{ctor:"_Tuple2",_0:H,_1:Me}:d(T,Cw,H,b.eq(Yt(A.msg),0)?"Sorry, the server rejected that deletion.":A.msg);return L=I._0,N=I._1,l(ke["!"],L,{ctor:"::",_0:N,_1:{ctor:"[]"}});case"FirstVaccinationType":return{ctor:"_Tuple2",_0:l(kb,v,(s=m,d(_b,e(function(t,r){return r}),it,s))),_1:Me};case"FormMsgVaccinationType":var D=g._0,P={ctor:"_Tuple2",_0:D,_1:Oh(m.form)};return"_Tuple2"===P.ctor&&"Submit"===P._0.ctor&&"Just"===P._1.ctor?b.eq(m.editMode,jv)?l(Zk,sw,v):l(Zk,ew,v):l(ke["!"],l(kb,v,l(wy,d(Zh,ib,D,m.form),m)),{ctor:"[]"});case"LastVaccinationType":return{ctor:"_Tuple2",_0:l(kb,v,function(t){return d(_b,e(function(t,r){return r}),If,t)}(m)),_1:Me};case"NextVaccinationType":return{ctor:"_Tuple2",_0:l(kb,v,function(t){return d(_b,e(function(t,r){return l(zf,function(r){return b.cmp(r.id,t)<1},r)}),it,t)}(m)),_1:Me};case"PrevVaccinationType":return{ctor:"_Tuple2",_0:l(kb,v,function(t){return d(_b,e(function(t,r){return l(Cf,function(r){return b.cmp(r.id,t)<0},r)}),If,t)}(m)),_1:Me};case"ReadResponseVaccinationType":var q=l(Xm,Qm,ly);return{ctor:"_Tuple2",_0:l(Db,q,l(kb,v,ab(l(gy,g._1,(_=l(vy,g._0,m.records),b.update(m,{records:_})))))),_1:Me};case"SelectedRecordEditModeVaccinationType":var O=g._0,U=g._1;return l(ke["!"],l(kb,v,function(t){var r=O,e=U;t:do{switch(r.ctor){case"EditModeAdd":return ab(t);case"EditModeEdit":case"EditModeView":if("Just"===e.ctor)return ab(t);break t;default:break t}}while(0);return t}(l(My,O,l(yy,U,m)))),{ctor:"[]"});case"SelectedRecordVaccinationType":return l(ke["!"],b.update(v,{vaccinationTypeModel:l(yy,g._0,m)}),{ctor:"[]"});case"UpdateVaccinationType":var J=(u=(i="Just"===(c=l(ky,m,LM)).ctor?d(Mk,c._0,B,v):{ctor:"_Tuple2",_0:v,_1:B})._1,{ctor:"_Tuple3",_0:a=i._0,_1:u,_2:l($k,a.vaccinationTypeModel.form,u)}),j=(k=J._0,V=J._1,J._2);return x="Just"===(o=m.selectedRecordId).ctor?d(py,o._0,function(t){return b.update(t,{stateId:V,name:j.name,description:j.description,sortOrder:j.sortOrder})},k.vaccinationTypeModel.records):k.vaccinationTypeModel.records,S=bk(LM(j)),{ctor:"_Tuple2",_0:(n=l(kb,k,l(My,Uv,l(by,x,k.vaccinationTypeModel))),b.update(n,{selectedTableEditMode:Uv})),_1:S};default:var K=g._0,W=d(py,K.id,function(t){return b.update(t,{stateId:B})},m.records),G=(x=function(){if(!0===K.success)return W;var t=cM(l(wk,K.stateId,v));if("Just"===t.ctor){var r=t._0;return d(py,K.id,function(t){return b.update(t,{name:r.name,description:r.description,sortOrder:r.sortOrder})},m.records)}return W}(),k=l(Tk,K.stateId,l(kb,v,ab(l(by,x,m))))._0,K.success?{ctor:"_Tuple2",_0:k,_1:Me}:d(T,Cw,k,b.eq(Yt(K.msg),0)?"Sorry, the server rejected that change.":K.msg));return L=G._0,N=G._1,l(ke["!"],L,{ctor:"::",_0:N,_1:{ctor:"::",_0:N,_1:{ctor:"[]"}}})}}),rS=e(function(t,r){var e=f(gm,t.table,F(t.id),B,B),n=r.qualifier;switch(n.ctor){case"NotifySubQualifierNone":switch(t.notificationType.ctor){case"UnknownNotificationType":return Me;case"DelNotificationType":return l(Mo,fT(t.table),po(t.id));default:return l(Mo,tT,po({ctor:"::",_0:e,_1:{ctor:"[]"}}))}case"NotifySubQualifierId":if(!b.eq(n._0,t.id))return Me;switch(t.notificationType.ctor){case"UnknownNotificationType":return Me;case"DelNotificationType":return l(Mo,fT(t.table),po(t.id));default:return l(Mo,tT,po({ctor:"::",_0:e,_1:{ctor:"[]"}}))}default:if("Just"!==l(wf,function(t){var r=t;return b.eq(r._0,n._0._0)&&b.eq(r._1,n._0._1)},t.foreignKeys).ctor)return Me;switch(t.notificationType.ctor){case"UnknownNotificationType":return Me;case"DelNotificationType":return l(Mo,fT(t.table),po(t.id));default:return l(Mo,tT,po({ctor:"::",_0:e,_1:{ctor:"[]"}}))}}}),eS=e(function(t,r){var e=t;if("Nothing"===e.ctor)return{ctor:"[]"};var n=e._0;return l(at,rS(n),l(_t,function(t){return b.eq(t.table,n.table)},r.dataNotificationSubscriptions))}),nS=function(t){var r=t.selectedTable;if("Just"!==r.ctor)return 0;switch(r._0.ctor){case"MedicationType":var e=t.medicationTypeModel.records;return"Success"===e.ctor?et(e._0):0;case"VaccinationType":var n=t.vaccinationType;return"Success"===n.ctor?et(n._0):0;default:return 0}},oS=function(t){var r=t.selectedTable;if("Just"===r.ctor){if("MedicationType"===r._0.ctor){var e=t.medicationTypeModel.records;if("Success"===e.ctor){var n=e._0,o=function(){if("EditModeAdd"===t.medicationTypeModel.editMode.ctor){var r=l(Sy,function(t){return t.sortOrder},n);return{ctor:"_Tuple2",_0:Yy(p(Am,t.nextPendingId,"","",r,B)),_1:b.update(t,{nextPendingId:t.nextPendingId-1})}}var e=l(Nf,l(P,0,t.medicationTypeModel.selectedRecordId),n);return"Just"===e.ctor?{ctor:"_Tuple2",_0:Yy(e._0),_1:t}:{ctor:"_Tuple2",_0:t.medicationTypeModel.form,_1:t}}(),c=o._0,i=o._1;return l(Rb,i,l(wy,c,i.medicationTypeModel))}return t}return t}return t},cS=e(function(t,r){var e,n,o,c,i,u,a,_=t;switch(_.ctor){case"AddChgDelNotificationMessages":return l(ke["!"],r,l(eS,_._0,r));case"AdhocResponseMessages":return l(Rk,_._0,r);case"AddSelectedTable":var s=oS(b.update(r,{selectedTableEditMode:jv}));return l(ke["!"],s,{ctor:"[]"});case"CancelSelectedTable":return s=oS(r),l(ke["!"],b.update(s,{selectedTableEditMode:Uv}),{ctor:"[]"});case"CreateResponseMsg":var p=_._0,h=p;if("Just"!==h.ctor)return l(ke["!"],r,{ctor:"[]"});var m=h._0;switch(m.table.ctor){case"LabSuite":return l(Nk,{ctor:"CreateResponseLabSuite",_0:m},r);case"LabTest":return l(Ik,{ctor:"CreateResponseLabTest",_0:m},r);case"LabTestValue":return l(Bk,{ctor:"CreateResponseLabTestValue",_0:m},r);case"MedicationType":return l(Ok,{ctor:"CreateResponseMedicationType",_0:m},r);case"SelectData":return l(Wk,{ctor:"CreateResponseSelectData",_0:m},r);case"User":return l(Qk,{ctor:"CreateResponseUser",_0:m},r);case"VaccinationType":return l(Zk,{ctor:"CreateResponseVaccinationType",_0:m},r);default:return l(ve,"Unhandled CreateResponseMsg",k(p)),l(ke["!"],r,{ctor:"[]"})}case"DeleteRecord":var v=_._0,g=_._1;return s=function(){var t;switch(v.ctor){case"MedicationType":return t=d(T,by,r.medicationTypeModel,l(my,g,r.medicationTypeModel.records)),b.update(r,{medicationTypeModel:t});case"User":return function(t){return b.update(r,{userModel:t})}(d(T,by,r.userModel,l(my,g,r.userModel.records)));default:return l(ve,"DeleteRecord Warning",l(A["++"],"Unhandled table: ",Nw(v))),r}}(),l(ke["!"],s,{ctor:"[]"});case"DeleteResponseMsg":var y=_._0,w=y;if("Just"!==w.ctor)return l(ke["!"],r,{ctor:"[]"});var M=w._0;switch(M.table.ctor){case"LabSuite":return l(Nk,{ctor:"DeleteResponseLabSuite",_0:M},r);case"LabTest":return l(Ik,{ctor:"DeleteResponseLabTest",_0:M},r);case"LabTestValue":return l(Bk,{ctor:"DeleteResponseLabTestValue",_0:M},r);case"MedicationType":return l(Ok,{ctor:"DeleteResponseMedicationType",_0:M},r);case"SelectData":return l(Wk,{ctor:"DeleteResponseSelectData",_0:M},r);case"User":return l(Qk,{ctor:"DeleteResponseUser",_0:M},r);default:return l(ve,"Unhandled DeleteResponseMsg",k(y)),l(ke["!"],r,{ctor:"[]"})}case"EditSelectedTable":return l(ke["!"],b.update(r,{selectedTableEditMode:Jv}),{ctor:"[]"});case"EventTypeResponse":return l(ke["!"],b.update(r,{eventType:_._0}),{ctor:"[]"});case"FirstRecord":return s=oS(b.update(r,{selectedTableRecord:0})),l(ke["!"],s,{ctor:"[]"});case"KeyValueMessages":return l(Lk,_._0,r);case"LabSuiteMessages":return l(Nk,_._0,r);case"LabTestMessages":return l(Ik,_._0,r);case"LabTestValueMessages":return l(Bk,_._0,r);case"LastRecord":return s=oS(b.update(r,{selectedTableRecord:nS(r)-1})),l(ke["!"],s,{ctor:"[]"});case"Login":var S="Just"===(a=Oh(r.loginForm)).ctor?ok((u=a._0,Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"username",_1:Kr(u.username)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"password",_1:Kr(u.password)},_1:{ctor:"[]"}}}))):Me;return l(ke["!"],r,{ctor:"::",_0:S,_1:{ctor:"[]"}});case"LoginFormMsg":var z=_._0,C={ctor:"_Tuple2",_0:z,_1:Oh(r.loginForm)};return"_Tuple2"===C.ctor&&"Submit"===C._0.ctor&&"Just"===C._1.ctor?l(ke["!"],r,{ctor:"[]"}):{ctor:"_Tuple2",_0:(i=d(Zh,Fb,z,r.loginForm),b.update(r,{loginForm:i})),_1:Me};case"Mdl":return d(rs,iT,_._0,r);case"MedicationTypeMessages":return l(Ok,_._0,r);case"NewSystemMessage":return s=function(){var t=_._0;if("SystemMessageTypeLog"===t.ctor){var e=t._0;return b.eq(e.updatedAt,0)?r:b.update(r,{systemMsgLog:l(Tt,1e3,{ctor:"::",_0:e,_1:r.systemMsgLog})})}return b.update(r,{pendingSystemMode:B,systemMode:t._0})}(),l(ke["!"],s,{ctor:"[]"});case"NewSystemMode":var L=_._0;return l(ke["!"],b.update(r,{pendingSystemMode:F(L),systemMode:L}),{ctor:"::",_0:fk((c=L,Fr({ctor:"::",_0:{ctor:"_Tuple2",_0:"SystemMode",_1:jr(function(t){switch(c.ctor){case"SystemMode_0":return 0;case"SystemMode_1":return 1;default:return 2}}())},_1:{ctor:"[]"}}))),_1:{ctor:"[]"}});case"NextRecord":return s=oS(b.update(r,{selectedTableRecord:l(x,nS(r)-1,r.selectedTableRecord+1)})),l(ke["!"],s,{ctor:"[]"});case"NoOp":return l(ve,"NoOp","was called"),l(ke["!"],r,{ctor:"[]"});case"PregnoteTypeResponse":return l(ke["!"],b.update(r,{pregnoteType:_._0}),{ctor:"[]"});case"PreviousRecord":return s=oS(b.update(r,{selectedTableRecord:l(R,0,r.selectedTableRecord-1)})),l(ke["!"],s,{ctor:"[]"});case"RequestUserProfile":return l(ke["!"],r,{ctor:"::",_0:ak(RM),_1:{ctor:"[]"}});case"RiskCodeResponse":return l(ke["!"],b.update(r,{riskCode:_._0}),{ctor:"[]"});case"RoleMessages":return l(jk,_._0,r);case"SaveSelectedTable":return l(ke["!"],b.update(r,{selectedTableEditMode:Uv}),{ctor:"[]"});case"SelectDataMessages":return l(Wk,_._0,r);case"SelectedTableEditMode":var E=_._0,V=_._1,N=(s=b.update(r,{selectedTableEditMode:E,selectedTableRecord:l(P,0,V)}),b.eq(E,Ov)||b.eq(V,B)?s:oS(s));return l(ke["!"],N,{ctor:"[]"});case"SelectQueryMsg":var H=l(at,function(t){return dk(qM(t))},_._0);return l(ke["!"],r,H);case"SelectQueryResponseMsg":var I=function(){var t,e=_._0;switch(e.ctor){case"Success":var n=e._0,o=f(gm,(t=n).table,t.id,t.patient_id,t.pregnancy_id);switch((n.success,n.errorCode).ctor){case"NoErrorCode":var c=n.data;switch(c.ctor){case"KeyValueResp":return l(Lk,l(yT,um(c._0),F(o)),r);case"LabSuiteResp":return l(Nk,l(qT,um(c._0),F(o)),r);case"LabTestResp":return l(Ik,l(KT,um(c._0),F(o)),r);case"LabTestValueResp":return l(Bk,l($T,um(c._0),F(o)),r);case"MedicationTypeResp":return l(Ok,l(kT,um(c._0),F(o)),r);case"RoleResp":return l(jk,l(mw,um(c._0),F(o)),r);case"SelectDataResp":return l(Wk,l(AT,um(c._0),F(o)),r);case"UserResp":return l(Qk,l(Tw,um(c._0),F(o)),r);default:return l(Zk,l(ow,um(c._0),F(o)),r)}case"SessionExpiredErrorCode":return l(cS,Qb,r);case"SqlErrorCode":case"UnknownErrorCode":default:return l(ke["!"],r,{ctor:"[]"})}case"Failure":return l(ve,"SelectQueryResponseMsg",k(e._0)),l(ke["!"],r,{ctor:"[]"});default:return l(ke["!"],r,{ctor:"[]"})}}();return{ctor:"_Tuple2",_0:s=I._0,_1:S=I._1};case"SelectQuerySelectTable":return l(ke["!"],b.update(r,{selectedTable:F(_._0),selectedTableRecord:0,selectedTableEditMode:Ov}),{ctor:"::",_0:l(Mo,tT,po(_._1)),_1:{ctor:"[]"}});case"SelectPage":var D=_._0;return S="Just"===(o=l(Hw,D,r.pageDefs)).ctor?(n=o._0.location,np(ap(n))):Me,l(ke["!"],b.update(r,{selectedPage:D}),{ctor:"::",_0:S,_1:{ctor:"[]"}});case"SelectTableRecord":return s=oS(b.update(r,{selectedTableRecord:_._0})),l(ke["!"],s,{ctor:"[]"});case"SessionExpired":var q="Just"===(e=r.userProfile).ctor?F(b.update(e._0,{isLoggedIn:!1})):B;return l(ke["!"],b.update(r,{userProfile:q}),{ctor:"[]"});case"Snackbar":var O=l(ha,_._0,r.snackbar),U=O._0;return S=O._1,l(ke["!"],b.update(r,{snackbar:U}),{ctor:"::",_0:l(Se,Xb,S),_1:{ctor:"[]"}});case"UpdateResponseMsg":var J=_._0,j=J;if("Just"!==j.ctor)return l(ke["!"],r,{ctor:"[]"});var K=j._0;switch(K.table.ctor){case"KeyValue":return l(Lk,{ctor:"UpdateResponseKeyValue",_0:K},r);case"LabSuite":return l(Nk,{ctor:"UpdateResponseLabSuite",_0:K},r);case"LabTest":return l(Ik,{ctor:"UpdateResponseLabTest",_0:K},r);case"LabTestValue":return l(Bk,{ctor:"UpdateResponseLabTestValue",_0:K},r);case"MedicationType":return l(Ok,{ctor:"UpdateResponseMedicationType",_0:K},r);case"User":return l(Qk,{ctor:"UpdateResponseUser",_0:K},r);case"SelectData":return l(Wk,{ctor:"UpdateResponseSelectData",_0:K},r);default:return l(ve,"Unhandled UpdateResponseMsg",k(J)),l(ke["!"],r,{ctor:"[]"})}case"UrlChange":return l(ke["!"],b.update(r,{selectedPage:l(Aw,_._0,Dv)}),{ctor:"[]"});case"UserChoiceSet":return l(ke["!"],b.update(r,{userChoice:d(Vr,_._0,_._1,r.userChoice)}),{ctor:"[]"});case"UserChoiceUnset":return l(ke["!"],b.update(r,{userChoice:l(Pr,_._0,r.userChoice)}),{ctor:"[]"});case"UserMessages":return l(Qk,_._0,r);case"UserProfileMessages":return l(Jk,_._0,r);case"VaccinationTypeMessages":return l(Zk,_._0,r);default:return l(ke["!"],b.update(r,{vaccinationType:_._0}),{ctor:"[]"})}}),iS=o(function(t,r,e){var n=t,o=b.eq(e.selectedTableEditMode,Jv)||b.eq(e.selectedTableEditMode,jv),c=o?{ctor:"_Tuple2",_0:Hd,_1:30}:{ctor:"_Tuple2",_0:Ad,_1:30},i=c._0,u=c._1;return{ctor:"::",_0:p(Hi,iT,{ctor:"::",_0:r,_1:{ctor:"::",_0:100,_1:{ctor:"[]"}}},e.mdl,{ctor:"::",_0:Ei,_1:{ctor:"::",_0:Ni,_1:{ctor:"::",_0:Xc(n._0),_1:{ctor:"::",_0:o?Vi:Zc,_1:{ctor:"[]"}}}}},{ctor:"::",_0:l(Od,i,u),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:p(Hi,iT,{ctor:"::",_0:r,_1:{ctor:"::",_0:101,_1:{ctor:"[]"}}},e.mdl,{ctor:"::",_0:Ei,_1:{ctor:"::",_0:Ni,_1:{ctor:"::",_0:Xc(n._1),_1:{ctor:"::",_0:o?Vi:Zc,_1:{ctor:"[]"}}}}},{ctor:"::",_0:l(qd,i,u),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:p(Hi,iT,{ctor:"::",_0:r,_1:{ctor:"::",_0:102,_1:{ctor:"[]"}}},e.mdl,{ctor:"::",_0:Ei,_1:{ctor:"::",_0:Ni,_1:{ctor:"::",_0:Xc(n._2),_1:{ctor:"::",_0:o?Vi:Zc,_1:{ctor:"[]"}}}}},{ctor:"::",_0:l(Bd,i,u),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:p(Hi,iT,{ctor:"::",_0:r,_1:{ctor:"::",_0:103,_1:{ctor:"[]"}}},e.mdl,{ctor:"::",_0:Ei,_1:{ctor:"::",_0:Ni,_1:{ctor:"::",_0:Xc(n._3),_1:{ctor:"::",_0:o?Vi:Zc,_1:{ctor:"[]"}}}}},{ctor:"::",_0:l(Fd,i,u),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}),uS=e(function(t,r){return l(bl,{ctor:"::",_0:ys(Bs),_1:{ctor:"::",_0:Ys,_1:{ctor:"[]"}}},{left:l(zl,{ctor:"[]"},{ctor:"::",_0:kl(l(En,{ctor:"::",_0:$n("footer-warning-header"),_1:{ctor:"[]"}},{ctor:"::",_0:vn(t),_1:{ctor:"[]"}})),_1:{ctor:"[]"}}),right:l(Cl,{ctor:"[]"},{ctor:"::",_0:kl(vn(r)),_1:{ctor:"[]"}})})}),aS={ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},_S=e(function(t,r){var e=t.error;return"Just"===e.ctor?l(Hn,{ctor:"::",_0:$n("error-field"),_1:{ctor:"[]"}},{ctor:"::",_0:vn(l(A["++"],r,l(A["++"]," problem: ",k(e._0)))),_1:{ctor:"[]"}}):l(Hn,{ctor:"[]"},{ctor:"::",_0:vn(""),_1:{ctor:"[]"}})}),sS=a(function(t,r,e,n,o,c,i){return l(En,{ctor:"[]"},{ctor:"::",_0:p(nu,iT,e,i,{ctor:"::",_0:Gi(t),_1:{ctor:"::",_0:Wi,_1:{ctor:"::",_0:Ki(l(P,"",r.value)),_1:{ctor:"::",_0:Qc(n),_1:{ctor:"::",_0:c?Yi:Zc,_1:{ctor:"::",_0:o?Zc:Ji,_1:{ctor:"::",_0:o?l(ei,"font-weight","bold"):Zc,_1:{ctor:"::",_0:Yc({ctor:"::",_0:ys(Fs),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(_S,r,t),_1:{ctor:"[]"}}})}),lS=a(function(t,r,e,n,o,c,i){return l(En,{ctor:"[]"},{ctor:"::",_0:p(nu,iT,e,i,{ctor:"::",_0:Gi(t),_1:{ctor:"::",_0:Wi,_1:{ctor:"::",_0:Ki(l(P,"",r.value)),_1:{ctor:"::",_0:$c(ro("date")),_1:{ctor:"::",_0:Qc(n),_1:{ctor:"::",_0:c?Yi:Zc,_1:{ctor:"::",_0:o?Zc:Ji,_1:{ctor:"::",_0:o?l(ei,"font-weight","bold"):Zc,_1:{ctor:"::",_0:Yc({ctor:"::",_0:ys(Fs),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(_S,r,t),_1:{ctor:"[]"}}})}),dS=a(function(t,r,e,n,o,c,i){return l(En,{ctor:"[]"},{ctor:"::",_0:p(nu,iT,e,i,{ctor:"::",_0:Gi(t),_1:{ctor:"::",_0:Wi,_1:{ctor:"::",_0:Ki(l(P,"",r.value)),_1:{ctor:"::",_0:Qc(n),_1:{ctor:"::",_0:ji,_1:{ctor:"::",_0:c?Yi:Zc,_1:{ctor:"::",_0:o?Zc:Ji,_1:{ctor:"::",_0:o?l(ei,"font-weight","bold"):Zc,_1:{ctor:"::",_0:Yc({ctor:"::",_0:ys(Fs),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(_S,r,t),_1:{ctor:"[]"}}})}),fS=c(function(t,r,e,n){return p(Hi,iT,t,n,{ctor:"::",_0:Ei,_1:{ctor:"::",_0:Ni,_1:{ctor:"::",_0:l(ei,"margin-right","5px"),_1:{ctor:"::",_0:ci(e),_1:{ctor:"[]"}}}}},{ctor:"::",_0:vn(r),_1:{ctor:"[]"}})}),pS=u(function(t,r,e,n,o,c){return p(Hi,iT,t,c,{ctor:"::",_0:Ei,_1:{ctor:"::",_0:Ni,_1:{ctor:"::",_0:o?(i="submit",Jc(ro(i))):Zc,_1:{ctor:"::",_0:l(ei,"margin-right","5px"),_1:{ctor:"::",_0:Xc(r),_1:{ctor:"::",_0:ci(n),_1:{ctor:"[]"}}}}}}},{ctor:"::",_0:vn(e),_1:{ctor:"[]"}});var i}),hS=u(function(t,r,e,n,o,c){return p(z_,iT,r,c,{ctor:"::",_0:Gc(e),_1:{ctor:"::",_0:m_,_1:{ctor:"::",_0:p_(o),_1:{ctor:"::",_0:n?Zc:h_,_1:{ctor:"[]"}}}}},{ctor:"::",_0:vn(t),_1:{ctor:"[]"}})}),mS=u(function(t,r,e,n,o,c){return p(C_,iT,r,c,{ctor:"::",_0:p_(n),_1:{ctor:"::",_0:f_(o),_1:{ctor:"::",_0:m_,_1:{ctor:"::",_0:Gc(e),_1:{ctor:"[]"}}}}},{ctor:"::",_0:vn(t),_1:{ctor:"[]"}})}),vS=e(function(t,r){return l(En,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"10px"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-bottom",_1:"10px"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"relative"},_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}},{ctor:"::",_0:d(ui,Hn,{ctor:"::",_0:cd,_1:{ctor:"::",_0:ad,_1:{ctor:"[]"}}},{ctor:"::",_0:vn(t),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Hn,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-bottom",_1:"10px"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}},{ctor:"::",_0:r,_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),gS=function(t){var r=t.value;return"Just"===r.ctor&&r._0},yS=Be("Views.Barcodes"),bS=function(t){return l(Vl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Tn,{ctor:"[]"},{ctor:"::",_0:vn("Priority Barcodes (optional)"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:id,_1:{ctor:"[]"}},{ctor:"::",_0:l(In,{ctor:"::",_0:to("barcodes/PrenatalBarcodeSample.png"),_1:{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"[]"}),_1:{ctor:"::",_0:vn("\nThe Midwife-EMR system has the capability, but not the requirement, of using priority barcodes in order to help manage patient workflow. This really only makes sense in contexts where there are many dozens or more prenatal exams being done in a day. This is one means to allow the patients to flow through the system in an orderly and on a first-come first-serve basis.\n "),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:id,_1:{ctor:"[]"}},{ctor:"::",_0:vn("\nWhen patients arrive for their prenatal exams, each are given a priority number which is a laminated badge or a card with a number on it. The badges are collected after the exam and are reused the next day. How these badges/cards are made is up to you; you may find that using lanyards works well, or large cards that you give to the patients, or clip on badges.\n "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:id,_1:{ctor:"[]"}},{ctor:"::",_0:vn("\nThe integration of the priority numbers with the software is achieved by a 6 digit barcode that is attached to each badge that allows staff to scan the badge or type in the 6 digit number at the various points of interaction during the prenatal exam. "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:id,_1:{ctor:"[]"}},{ctor:"::",_0:vn("\nThe barcodes are used in conjunction with the Midwife-EMR priority system to insure that the priority numbers input into the system upon client arrival are accurate. Using barcodes insures accuracy by only accepting as input the barcodes, which are random 6 digit numbers, as opposed to the priority numbers themselves. The barcodes are tied to the priority numbers that they represent by Midwife-EMR's internal priority table. In essence, this is eliminating mis-keying by staff of priority numbers because a mis-key of a barcode will be detected as an invalid barcode.\n "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:id,_1:{ctor:"[]"}},{ctor:"::",_0:vn("\nOf course, each clinic is different and only you can decide if using these badges would be helpful. Some questions to ask are, is much time spent keeping the patients in order as they progress through your clinic? Is there confusion about who is next? Are things too chaotic at certain points in the patient workflow?\n "),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(En,{ctor:"[]"},{ctor:"::",_0:l(wn,{ctor:"[]"},{ctor:"::",_0:vn("Download the barcode PDF file"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(En,{ctor:"[]"},{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:id,_1:{ctor:"[]"}},{ctor:"::",_0:vn("Save this PDF file and print it to create priority badges, lanyards, etc."),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:p(Hi,iT,{ctor:"::",_0:yS,_1:{ctor:"::",_0:100,_1:{ctor:"[]"}}},t.mdl,{ctor:"::",_0:(r="barcodes/PrenatalBarcodes.pdf",ri({ctor:"::",_0:qc(function(t){return b.update(t,{link:!0})}),_1:{ctor:"::",_0:Jc(eo(r)),_1:{ctor:"[]"}}})),_1:{ctor:"::",_0:Ei,_1:{ctor:"::",_0:Ni,_1:{ctor:"::",_0:$c(l(Xn,"download","PrenatalBarcodes.pdf")),_1:{ctor:"[]"}}}}},{ctor:"::",_0:vn("Download"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(En,{ctor:"[]"},{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:id,_1:{ctor:"::",_0:l(ei,"margin-top","20px"),_1:{ctor:"::",_0:l(ei,"padding","20px"),_1:{ctor:"::",_0:bs(Fs),_1:{ctor:"::",_0:ys(Us),_1:{ctor:"[]"}}}}}},{ctor:"::",_0:vn("\nThere are 400 priority barcodes in the PDF, but you do not have to use all of them. Just print as many as you need. If you ever need more, just print any additional that you need.\n "),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}});var r},TS=Be("Views.KeyValue"),wS=function(t){var r=t,n=t.keyValueModel,o=b.eq(n.editMode,Jv),c=function(){var t=n.records;switch(t.ctor){case"NotAsked":return vn("");case"Loading":return vn("Loading");case"Failure":return vn(k(t._0));default:return function(t){var c=function(t){return function(r){return lT(bT(d(rm,t.path,om,ih(r))))}},i={ctor:"_Tuple6",_0:l(P,"",l(Qh,"id",t).value),_1:l(P,"",l(Qh,"kvKey",t).value),_2:l(P,"",l(Qh,"kvValue",t).value),_3:l(P,"",l(Qh,"description",t).value),_4:l(P,"",l(Qh,"valueType",t).value),_5:l(P,"",l(Qh,"acceptableValues",t).value)},u=i._1,a=i._2,_=i._3,s=i._4,f=l(Gt,"|",i._5),v=(l(ve,"viewRecord recValueTypeVal",s),{ctor:"_Tuple2",_0:l(Qh,"id",t),_1:l(Qh,"kvValue",t)})._1,g=function(){switch(Ey(s).ctor){case"KeyValueList":return l(En,{ctor:"[]"},l(zt,e(function(t,e){return l(En,{ctor:"[]"},{ctor:"::",_0:p(C_,iT,{ctor:"::",_0:TS,_1:{ctor:"::",_0:210+t,_1:{ctor:"[]"}}},r.mdl,{ctor:"::",_0:p_(b.eq(e,a)),_1:{ctor:"::",_0:f_("keyValueList"),_1:{ctor:"::",_0:m_,_1:{ctor:"::",_0:o?Zc:h_,_1:{ctor:"::",_0:Gc(l(c,v,e)),_1:{ctor:"[]"}}}}}},{ctor:"::",_0:vn(e),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})}),f));case"KeyValueBoolean":return h(hS,u,{ctor:"::",_0:TS,_1:{ctor:"::",_0:202,_1:{ctor:"[]"}}},l(c,v,1==!("1"===l(P,"",v.value))?"1":"0"),o,b.eq(a,"1"),r.mdl);case"KeyValueDate":return m(lS,u,v,{ctor:"::",_0:TS,_1:{ctor:"::",_0:202,_1:{ctor:"[]"}}},c(v),o,!1,r.mdl);default:return m(sS,"Value",v,{ctor:"::",_0:TS,_1:{ctor:"::",_0:202,_1:{ctor:"[]"}}},c(v),o,!1,r.mdl)}}(),y={ctor:"::",_0:h(pS,{ctor:"::",_0:TS,_1:{ctor:"::",_0:304,_1:{ctor:"[]"}}},lT(l(gT,Ov,B)),"Back to Table view",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:TS,_1:{ctor:"::",_0:300,_1:{ctor:"[]"}}},lT(l(gT,Jv,n.selectedRecordId)),"Edit",!1,!1,r.mdl),_1:{ctor:"[]"}}},T={ctor:"::",_0:h(pS,{ctor:"::",_0:TS,_1:{ctor:"::",_0:301,_1:{ctor:"[]"}}},lT(bT(tm)),"Save",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:TS,_1:{ctor:"::",_0:302,_1:{ctor:"[]"}}},lT(TT),"Cancel",!1,!1,r.mdl),_1:{ctor:"[]"}}};return l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(_s,{ctor:"[]"},o?T:y),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(Us),_1:{ctor:"[]"}},{ctor:"::",_0:d(ui,Hn,{ctor:"::",_0:sd,_1:{ctor:"::",_0:ys(Fs),_1:{ctor:"[]"}}},{ctor:"::",_0:vn(u),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:_d,_1:{ctor:"::",_0:ys(js),_1:{ctor:"[]"}}},{ctor:"::",_0:vn(_),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:g,_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})}(n.form)}}();return l(En,{ctor:"[]"},{ctor:"::",_0:c,_1:{ctor:"[]"}})},MS=function(t){var r,n,o,c=t,i=t.keyValueModel,u=b.eq(i.editMode,Uv)||b.eq(i.editMode,Jv)?wS(c):(r=c,n=e(function(t,r){return"KeyValueBoolean"===t.ctor?"1"===r?"True":"False":r}),o=function(){var t=r.keyValueModel.records;switch(t.ctor){case"NotAsked":case"Loading":return{ctor:"[]"};case"Failure":return l(ve,"viewTable for Configuration",t._0),{ctor:"[]"};default:return l(_t,function(t){return b.eq(t.systemOnly,!1)},t._0)}}(),l(En,{ctor:"[]"},{ctor:"::",_0:l(vS,"Click on a row to edit.",l(En,{ctor:"[]"},{ctor:"[]"})),_1:{ctor:"::",_0:l(od,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(nd,{ctor:"[]"},{ctor:"::",_0:l(rd,{ctor:"[]"},{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Id"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Key"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Value"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"::",_0:l(ei,"text-align","left"),_1:{ctor:"[]"}},{ctor:"::",_0:vn("Description"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(ed,{ctor:"[]"},l(at,function(t){return l(rd,{ctor:"::",_0:Xc(lT(l(gT,Uv,F(t.id)))),_1:{ctor:"[]"}},{ctor:"::",_0:l(Xl,{ctor:"::",_0:Yl,_1:{ctor:"[]"}},{ctor:"::",_0:vn(k(t.id)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.kvKey),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(l(n,t.valueType,t.kvValue)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"::",_0:l(ei,"text-align","left"),_1:{ctor:"[]"}},{ctor:"::",_0:vn(t.description),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}})},o)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}));return l(Vl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Tn,{ctor:"[]"},{ctor:"::",_0:vn("Configuration"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(uS,"Info","\n\n These configuration settings allow you, as the administrator,\n to adjust settings for your clinic. The description field will\n explain the purpose of each setting. These settings will affect\n things like report headings, how dates are displayed, and various\n other things. These settings can be changed at any time.\n\n "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:u,_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})},kS=Be("Views.Login"),SS=function(t){var r,e,n,o=function(t){return function(r){return{ctor:"LoginFormMsg",_0:d(rm,t.path,om,ih(r))}}},c={ctor:"_Tuple2",_0:l(Qh,"username",t.loginForm),_1:l(Qh,"password",t.loginForm)},i=c._0,u=c._1,a=("_Tuple2",r=i.error,e=u.error,"Nothing"!==r.ctor||"Nothing"!==e.ctor);return l(Vl,{ctor:"[]"},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Il,12),_1:{ctor:"[]"}},{ctor:"::",_0:l(Jn,{ctor:"::",_0:(n=uT,d(fc,"submit",hc,$r(n))),_1:{ctor:"[]"}},{ctor:"::",_0:l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn("Please log in"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:m(sS,"Username",i,{ctor:"::",_0:kS,_1:{ctor:"::",_0:100,_1:{ctor:"[]"}}},o(i),!0,!1,t.mdl),_1:{ctor:"::",_0:m(sS,"Password",u,{ctor:"::",_0:kS,_1:{ctor:"::",_0:101,_1:{ctor:"[]"}}},o(u),!0,!0,t.mdl),_1:{ctor:"::",_0:f(fS,{ctor:"::",_0:kS,_1:{ctor:"::",_0:102,_1:{ctor:"[]"}}},"Log in",a,t.mdl),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})},zS=Be("Views.Profile"),CS=function(t){var r,e,n,o,c,i,u,a,_,s,f,p,v,g,y=t,b="Just"===y.userProfile.ctor?(r=y.userProfileForm,e=function(t){return function(r){return Kb(gw(d(rm,t.path,om,ih(r))))}},o=(n={ctor:"_Tuple4",_0:l(Qh,"lang",r),_1:l(Qh,"shortName",r),_2:l(Qh,"displayName",r),_3:l(Qh,"role_id",r)})._1,c=n._2,i=n._3,function(){var t=i.value;if("Just"===t.ctor){var r=Ot(t._0);"Ok"===r.ctor&&l(lb,r._0,y.roleModel)}}(),a=(u={ctor:"_Tuple6",_0:l(Qh,"userid",r),_1:l(Qh,"username",r),_2:l(Qh,"firstname",r),_3:l(Qh,"lastname",r),_4:l(Qh,"password",r),_5:l(Qh,"email",r)})._0,_=u._1,s=u._2,f=u._3,p=u._4,v=u._5,g={ctor:"::",_0:h(pS,{ctor:"::",_0:zS,_1:{ctor:"::",_0:101,_1:{ctor:"[]"}}},Kb(gw(tm)),"Save",!1,!1,y.mdl),_1:{ctor:"[]"}},l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn("Edit Your Profile"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},g),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:l(Vl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,4),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:m(sS,"Record id",a,{ctor:"::",_0:zS,_1:{ctor:"::",_0:220,_1:{ctor:"[]"}}},e(a),!1,!1,y.mdl),_1:{ctor:"::",_0:m(dS,"Username",_,{ctor:"::",_0:zS,_1:{ctor:"::",_0:221,_1:{ctor:"[]"}}},e(_),!1,!1,y.mdl),_1:{ctor:"::",_0:m(sS,"Firstname",s,{ctor:"::",_0:zS,_1:{ctor:"::",_0:222,_1:{ctor:"[]"}}},e(s),!1,!1,y.mdl),_1:{ctor:"::",_0:m(sS,"Lastname",f,{ctor:"::",_0:zS,_1:{ctor:"::",_0:223,_1:{ctor:"[]"}}},e(f),!1,!1,y.mdl),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,4),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:m(sS,"Password",p,{ctor:"::",_0:zS,_1:{ctor:"::",_0:224,_1:{ctor:"[]"}}},e(p),!0,!0,y.mdl),_1:{ctor:"::",_0:m(sS,"Email",v,{ctor:"::",_0:zS,_1:{ctor:"::",_0:225,_1:{ctor:"[]"}}},e(v),!0,!1,y.mdl),_1:{ctor:"::",_0:m(sS,"Short name",o,{ctor:"::",_0:zS,_1:{ctor:"::",_0:227,_1:{ctor:"[]"}}},e(o),!0,!1,y.mdl),_1:{ctor:"::",_0:m(sS,"Display name",c,{ctor:"::",_0:zS,_1:{ctor:"::",_0:228,_1:{ctor:"[]"}}},e(c),!0,!1,y.mdl),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})):vn("");return l(En,{ctor:"[]"},{ctor:"::",_0:b,_1:{ctor:"[]"}})},RS=(d(Nd,255,100,100),{ctor:"::",_0:d(Tm,gv,"Labs","Lists the various laboratory suites of tests and their definitions."),_1:{ctor:"::",_0:d(Tm,fv,"Medication Types","Defines medications."),_1:{ctor:"::",_0:d(Tm,Qm,"Vaccination Types","Defines vaccinations."),_1:{ctor:"::",_0:d(Tm,Zm,"Miscellaneous","Various system wide multiple choice definitions."),_1:{ctor:"[]"}}}}}),xS=function(t){var r=function(){var r=t.selectDataModel.records;switch(r.ctor){case"Success":return l(K,function(t){return t.name},l(_t,function(t){return"Just"===function(t){switch(t){case"attendant":return F(Ag);case"education":return F(Ng);case"location":return F(Vg);case"maritalStatus":return F(Eg);case"newbornExamAbdomen":return F(zg);case"newbornExamAnus":return F(Sg);case"newbornExamAppearance":return F(kg);case"newbornExamBack":return F(Mg);case"newbornExamChest":return F(wg);case"newbornExamColor":return F(Tg);case"newbornExamCord":return F(bg);case"newbornExamEars":return F(yg);case"newbornExamExtremities":return F(gg);case"newbornExamEyes":return F(vg);case"newbornExamFemoralPulses":return F(mg);case"newbornExamGenitaliaFemale":return F(hg);case"newbornExamGenitaliaMale":return F(pg);case"newbornExamHead":return F(fg);case"newbornExamHeart":return F(dg);case"newbornExamHips":return F(lg);case"newbornExamLungs":return F(sg);case"newbornExamMouth":return F(_g);case"newbornExamNeck":return F(ag);case"newbornExamNose":return F(ug);case"newbornExamSkin":return F(ig);case"placeOfBirth":return F(Lg);case"postpartumCheckBabyColor":return F(cg);case"postpartumCheckBabyCord":return F(og);case"postpartumCheckBabyFeeding":return F(ng);case"postpartumCheckBabyLungs":return F(eg);case"postpartumCheckBabySkin":return F(rg);case"postpartumCheckBabySSInfection":return F(tg);case"postpartumCheckMotherBreasts":return F(Zv);case"postpartumCheckMotherFundus":return F($v);case"postpartumCheckMotherLochia":return F(Yv);case"postpartumCheckMotherPerineum":return F(Qv);case"postpartumCheckMotherSSInfection":return F(Xv);case"postpartumCheckMotherStool":return F(Gv);case"postpartumCheckMotherUrine":return F(Wv);case"postpartumCheckMotherFamilyPlanning":return F(Kv);case"referrals":return F(xg);case"religion":return F(Rg);case"teachingTopics":return F(Cg);default:return B}}(t.name).ctor},r._0));case"Failure":return l(ve,"viewSelectData",k(r._0)),{ctor:"[]"};default:return{ctor:"[]"}}}();return l(En,{ctor:"::",_0:$n("horizontal-scroll"),_1:{ctor:"[]"}},{ctor:"::",_0:l(vS,"Click on a row to edit or delete.",l(Hn,{ctor:"[]"},{ctor:"[]"})),_1:{ctor:"::",_0:l(od,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(nd,{ctor:"[]"},{ctor:"::",_0:l(rd,{ctor:"[]"},{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Id"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Name"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Label"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Default (zero or one per name group)"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(ed,{ctor:"[]"},l(at,function(t){return l(rd,{ctor:"::",_0:Xc(rT(d(NT,Uv,F(t.id),B))),_1:{ctor:"[]"}},{ctor:"::",_0:l(Xl,{ctor:"::",_0:Yl,_1:{ctor:"[]"}},{ctor:"::",_0:vn(k(t.id)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.name),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.label),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(k(t.selected)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}})},r)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})},LS=function(t){return l(Cn,{ctor:"[]"},{ctor:"::",_0:vn("Please select a table on the left."),_1:{ctor:"[]"}})},ES=e(function(t,r){return l(Kl,{ctor:"::",_0:jl,_1:{ctor:"::",_0:oi("listItem"),_1:{ctor:"::",_0:r?oi("selectedListItem"):Zc,_1:{ctor:"::",_0:b.eq(t.table,gv)?$c(mc(l($b,gv,{ctor:"::",_0:f(gm,vv,B,B,B),_1:{ctor:"::",_0:f(gm,gv,B,B,B),_1:{ctor:"::",_0:f(gm,hv,B,B,B),_1:{ctor:"[]"}}}}))):$c(mc(l($b,t.table,{ctor:"::",_0:f(gm,t.table,B,B,B),_1:{ctor:"[]"}}))),_1:{ctor:"[]"}}}}},{ctor:"::",_0:l(Ul,{ctor:"[]"},{ctor:"::",_0:vn(t.name),_1:{ctor:"::",_0:l(Fl,{ctor:"[]"},{ctor:"::",_0:vn(t.desc),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})}),VS=Be("Views.Tables"),NS=function(t){var r,e=t,n=e,o=e.labTestModel,c="Just"===(r=o.selectedRecordId).ctor?r._0:-1,i=l(P,"",l(dy,c,o.records)),u=function(){var t=e.labTestValueModel.records;switch(t.ctor){case"NotAsked":case"Loading":return{ctor:"[]"};case"Failure":return l(ve,"viewLabTestValueTable",t._0),{ctor:"[]"};default:return l(_t,function(t){return b.eq(t.labTest_id,c)},t._0)}}();return l(En,{ctor:"[]"},{ctor:"::",_0:l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn(i),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(Js),_1:{ctor:"::",_0:bs(js),_1:{ctor:"::",_0:Ys,_1:{ctor:"::",_0:l(ei,"margin-bottom","20px"),_1:{ctor:"[]"}}}}},{ctor:"::",_0:vn("These records limit the choices for this particular test to the values in this list."),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(En,{ctor:"[]"},{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:450,_1:{ctor:"[]"}}},_T(l(jT,Uv,o.selectedRecordId)),"Back to Lab Test",!1,!1,n.mdl),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(vS,"Click on a row to edit or delete.",h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:451,_1:{ctor:"[]"}}},aT(l(YT,jv,B)),"Add",!1,!1,n.mdl)),_1:{ctor:"::",_0:l(od,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(nd,{ctor:"[]"},{ctor:"::",_0:l(rd,{ctor:"[]"},{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Id"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Value"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(ed,{ctor:"[]"},l(at,function(t){return l(rd,{ctor:"::",_0:Xc(aT(l(YT,Uv,F(t.id)))),_1:{ctor:"[]"}},{ctor:"::",_0:l(Xl,{ctor:"::",_0:Yl,_1:{ctor:"[]"}},{ctor:"::",_0:vn(k(t.id)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.value),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})},u)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}})},AS=function(t){var r=t,e=t.labTestValueModel,n=b.eq(e.editMode,Jv)||b.eq(e.editMode,jv),o=function(){var t,o,c,i,u,a,_,s,f=e.records;switch(f.ctor){case"NotAsked":return vn("");case"Loading":return vn("Loading");case"Failure":return vn(k(f._0));default:return t=e.form,c=function(t){return function(r){return aT(ZT(d(rm,t.path,om,ih(r))))}},u=(i={ctor:"_Tuple2",_0:l(Qh,"id",t),_1:l(Qh,"value",t)})._0,a=i._1,_={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:444,_1:{ctor:"[]"}}},aT(l(YT,Ov,B)),"Back to Lab Test Values",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:440,_1:{ctor:"[]"}}},aT(l(YT,Jv,e.selectedRecordId)),"Edit",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:445,_1:{ctor:"[]"}}},aT((o=e.selectedRecordId,{ctor:"DeleteLabTestValue",_0:o})),"Delete",!1,!1,r.mdl),_1:{ctor:"[]"}}}},s={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:441,_1:{ctor:"[]"}}},aT(ZT(tm)),"Save",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:442,_1:{ctor:"[]"}}},aT(rw),"Cancel",!1,!1,r.mdl),_1:{ctor:"[]"}}},l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn("labTestValue"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},n?s:_),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:m(sS,"Record id",u,{ctor:"::",_0:VS,_1:{ctor:"::",_0:450,_1:{ctor:"[]"}}},c(u),!1,!1,r.mdl),_1:{ctor:"::",_0:m(sS,"Value",a,{ctor:"::",_0:VS,_1:{ctor:"::",_0:451,_1:{ctor:"[]"}}},c(a),n,!1,r.mdl),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}}();return l(En,{ctor:"[]"},{ctor:"::",_0:o,_1:{ctor:"[]"}})},HS=function(t){var r=t,e=r,n=r.labTestModel,o=(function(){var t=r.labTestValueModel.records;switch(t.ctor){case"NotAsked":case"Loading":return{ctor:"[]"};case"Failure":return l(ve,"labTestValue",t._0),{ctor:"[]"};default:t._0}}(),b.eq(n.editMode,Jv)||b.eq(n.editMode,jv)),c=function(){var t,r,c,i,u,a,_,s,f,p,v,g,y,b,T,w,M,S=n.records;switch(S.ctor){case"NotAsked":return vn("");case"Loading":return vn("Loading");case"Failure":return vn(k(S._0));default:return t=n.form,c=function(t){return function(r){return _T(WT(d(rm,t.path,om,ih(r))))}},u=(i={ctor:"_Tuple4",_0:l(Qh,"minRangeInteger",t),_1:l(Qh,"maxRangeInteger",t),_2:l(Xh,"isRange",t),_3:l(Xh,"isText",t)})._0,a=i._1,_=i._3,f=(s={ctor:"_Tuple7",_0:l(Qh,"id",t),_1:l(Qh,"name",t),_2:l(Qh,"abbrev",t),_3:l(Qh,"normal",t),_4:l(Qh,"unit",t),_5:l(Qh,"minRangeDecimal",t),_6:l(Qh,"maxRangeDecimal",t)})._0,p=s._1,v=s._2,g=s._3,y=s._4,b=s._5,T=s._6,w={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:424,_1:{ctor:"[]"}}},_T(l(jT,Fv,B)),"Back to Lab Suite Records",!1,!1,e.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:420,_1:{ctor:"[]"}}},_T(l(jT,Jv,n.selectedRecordId)),"Edit",!1,!1,e.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:425,_1:{ctor:"[]"}}},_T((r=n.selectedRecordId,{ctor:"DeleteLabTest",_0:r})),"Delete",!1,!1,e.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:426,_1:{ctor:"[]"}}},aT(l(YT,Ov,B)),"Add or Edit Acceptable Test Values",!1,!1,e.mdl),_1:{ctor:"[]"}}}}},M={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:411,_1:{ctor:"[]"}}},_T(WT(tm)),"Save",!1,!1,e.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:412,_1:{ctor:"[]"}}},_T(XT),"Cancel",!1,!1,e.mdl),_1:{ctor:"[]"}}},l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn("labTest"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},o?M:w),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(Js),_1:{ctor:"::",_0:bs(js),_1:{ctor:"::",_0:Ys,_1:{ctor:"[]"}}}},{ctor:"::",_0:vn("1. If you use min/max range fields, use either the Decimal pair or the Whole Number pair, not both. "),_1:{ctor:"::",_0:vn("2. Do not use both Free Form Text and Decimal or Integer ranges in the same test. "),_1:{ctor:"::",_0:vn("3. If you select Free Form Text and Acceptable Test Values, staff will be able to choose to use one or the other on any particular test."),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:m(sS,"Record id",f,{ctor:"::",_0:VS,_1:{ctor:"::",_0:400,_1:{ctor:"[]"}}},c(f),!1,!1,e.mdl),_1:{ctor:"::",_0:m(sS,"Name",p,{ctor:"::",_0:VS,_1:{ctor:"::",_0:401,_1:{ctor:"[]"}}},c(p),o,!1,e.mdl),_1:{ctor:"::",_0:m(sS,"Abbreviation",v,{ctor:"::",_0:VS,_1:{ctor:"::",_0:402,_1:{ctor:"[]"}}},c(v),o,!1,e.mdl),_1:{ctor:"::",_0:m(sS,"Normal",g,{ctor:"::",_0:VS,_1:{ctor:"::",_0:403,_1:{ctor:"[]"}}},c(g),o,!1,e.mdl),_1:{ctor:"::",_0:m(sS,"Unit",y,{ctor:"::",_0:VS,_1:{ctor:"::",_0:404,_1:{ctor:"[]"}}},c(y),o,!1,e.mdl),_1:{ctor:"::",_0:h(hS,"Free Form Text (not compatible with Min/Max ranges below)",{ctor:"::",_0:VS,_1:{ctor:"::",_0:405,_1:{ctor:"[]"}}},l(function(t){return function(r){return _T(WT(d(rm,t.path,em,oh(r))))}},_,!gS(_)),o,gS(_),e.mdl),_1:{ctor:"::",_0:m(sS,"Min Range as Decimal",b,{ctor:"::",_0:VS,_1:{ctor:"::",_0:406,_1:{ctor:"[]"}}},c(b),o,!1,e.mdl),_1:{ctor:"::",_0:m(sS,"Max Range as Decimal",T,{ctor:"::",_0:VS,_1:{ctor:"::",_0:407,_1:{ctor:"[]"}}},c(T),o,!1,e.mdl),_1:{ctor:"::",_0:m(sS,"Min Range as Whole Number",u,{ctor:"::",_0:VS,_1:{ctor:"::",_0:408,_1:{ctor:"[]"}}},c(u),o,!1,e.mdl),_1:{ctor:"::",_0:m(sS,"Max Range as Whole Number",a,{ctor:"::",_0:VS,_1:{ctor:"::",_0:409,_1:{ctor:"[]"}}},c(a),o,!1,e.mdl),_1:{ctor:"[]"}}}}}}}}}}}),_1:{ctor:"[]"}}}}})}}();return l(En,{ctor:"[]"},{ctor:"::",_0:c,_1:{ctor:"[]"}})},IS=function(t){var r=t,e=t.labSuiteModel,n=b.eq(e.editMode,Jv)||b.eq(e.editMode,jv),o=function(){var t,o,c,i,u,a,_,s,f,p=e.records;switch(p.ctor){case"NotAsked":return vn("");case"Loading":return vn("Loading");case"Failure":return vn(k(p._0));default:return t=e.form,c=function(t){return function(r){return sT(FT(d(rm,t.path,om,ih(r))))}},u=(i={ctor:"_Tuple3",_0:l(Qh,"id",t),_1:l(Qh,"name",t),_2:l(Qh,"description",t)})._0,a=i._1,_=i._2,s={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:304,_1:{ctor:"[]"}}},sT(l(BT,Ov,B)),"Back to Table view",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:300,_1:{ctor:"[]"}}},sT(l(BT,Jv,e.selectedRecordId)),"Edit",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:305,_1:{ctor:"[]"}}},sT((o=e.selectedRecordId,{ctor:"DeleteLabSuite",_0:o})),"Delete",!1,!1,r.mdl),_1:{ctor:"[]"}}}},f={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:301,_1:{ctor:"[]"}}},sT(FT(tm)),"Save",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:302,_1:{ctor:"[]"}}},sT(UT),"Cancel",!1,!1,r.mdl),_1:{ctor:"[]"}}},l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn("labSuite"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},n?f:s),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:m(sS,"Record id",u,{ctor:"::",_0:VS,_1:{ctor:"::",_0:200,_1:{ctor:"[]"}}},c(u),!1,!1,r.mdl),_1:{ctor:"::",_0:m(sS,"Name",a,{ctor:"::",_0:VS,_1:{ctor:"::",_0:201,_1:{ctor:"[]"}}},c(a),n,!1,r.mdl),_1:{ctor:"::",_0:m(sS,"Description",_,{ctor:"::",_0:VS,_1:{ctor:"::",_0:202,_1:{ctor:"[]"}}},c(_),n,!1,r.mdl),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}})}}();return l(En,{ctor:"[]"},{ctor:"::",_0:o,_1:{ctor:"[]"}})},DS=function(t){var r=t,e=t.labSuiteModel,n=function(){var t=e.records;switch(t.ctor){case"NotAsked":case"Loading":return{ctor:"[]"};case"Failure":return l(ve,"viewLabSuiteTable",t._0),{ctor:"[]"};default:return t._0}}();return l(En,{ctor:"[]"},{ctor:"::",_0:l(En,{ctor:"[]"},{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:450,_1:{ctor:"[]"}}},sT(l(BT,Fv,e.selectedRecordId)),"Back to Labs Overview",!1,!1,r.mdl),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(vS,"Click on a row to edit or delete.",h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:451,_1:{ctor:"[]"}}},sT(l(BT,jv,B)),"Add",!1,!1,r.mdl)),_1:{ctor:"::",_0:l(od,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(nd,{ctor:"[]"},{ctor:"::",_0:l(rd,{ctor:"[]"},{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Id"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Name"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("description"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(ed,{ctor:"[]"},l(at,function(t){return l(rd,{ctor:"::",_0:Xc(sT(l(BT,Uv,F(t.id)))),_1:{ctor:"[]"}},{ctor:"::",_0:l(Xl,{ctor:"::",_0:Yl,_1:{ctor:"[]"}},{ctor:"::",_0:vn(k(t.id)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.name),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.description),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})},n)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})},PS=function(t){var r,n=t,o=n,c=n.labSuiteModel,i=e(function(t,r){return $t(l(vt,", ",l(at,function(t){return t.value},l(_t,function(r){return b.eq(r.labTest_id,t)},r))))}),u=l(P,-1,c.selectedRecordId),a=l(P,"",l(dy,u,c.records)),_=function(){var t=n.labTestValueModel.records;switch(t.ctor){case"NotAsked":case"Loading":return{ctor:"[]"};case"Failure":return l(ve,"labTestValue",t._0),{ctor:"[]"};default:return t._0}}(),s=e(function(t,r){var e=l(i,r.id,_),n=function(t){var r={ctor:"_Tuple4",_0:t.minRangeDecimal,_1:t.maxRangeDecimal,_2:t.minRangeInteger,_3:t.maxRangeInteger};return"Just"===r._0.ctor&&"Just"===r._1.ctor?{ctor:"_Tuple2",_0:k(r._0._0),_1:k(r._1._0)}:"Just"===r._2.ctor&&"Just"===r._3.ctor?{ctor:"_Tuple2",_0:k(r._2._0),_1:k(r._3._0)}:{ctor:"_Tuple2",_0:"",_1:""}}(r),o=n._0,c=n._1;return l(Kl,{ctor:"::",_0:Jl,_1:{ctor:"::",_0:b.eq(l(H,t,2),0)?Zc:oi("altRowBackground"),_1:{ctor:"::",_0:Xc(_T(l(jT,Uv,F(r.id)))),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Ul,{ctor:"[]"},{ctor:"::",_0:vn(l(A["++"],k(r.id),l(A["++"],". ",l(A["++"],r.name,l(A["++"]," (",l(A["++"],r.abbrev,")")))))),_1:{ctor:"::",_0:l(ql,{ctor:"[]"},{ctor:"::",_0:b.cmp(Yt(r.normal),0)>0?l(Hn,{ctor:"::",_0:$n("bodyItem"),_1:{ctor:"[]"}},{ctor:"::",_0:vn(l(A["++"],"Normal: ",l(A["++"],r.normal," "))),_1:{ctor:"[]"}}):vn(""),_1:{ctor:"::",_0:b.cmp(Yt(r.unit),0)>0?l(Hn,{ctor:"::",_0:$n("bodyItem"),_1:{ctor:"[]"}},{ctor:"::",_0:vn(l(A["++"],"Unit: ",l(A["++"],r.unit," "))),_1:{ctor:"[]"}}):vn(""),_1:{ctor:"::",_0:r.isRange?l(Hn,{ctor:"::",_0:$n("bodyItem"),_1:{ctor:"[]"}},{ctor:"::",_0:vn(l(A["++"],"Min: ",l(A["++"],o,l(A["++"],", Max: ",l(A["++"],c," "))))),_1:{ctor:"[]"}}):vn(""),_1:{ctor:"::",_0:b.cmp(Yt(e),0)>0?l(Hn,{ctor:"::",_0:$n("bodyItem"),_1:{ctor:"[]"}},{ctor:"::",_0:vn(l(A["++"],"Values: ",l(A["++"],e," "))),_1:{ctor:"[]"}}):vn(""),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})}),d=function(){var t=n.labTestModel.records;switch(t.ctor){case"NotAsked":case"Loading":return{ctor:"[]"};case"Failure":return l(ve,"labTestData",t._0),{ctor:"[]"};default:return t._0}}(),f=function(){var t=c.records;switch(t.ctor){case"NotAsked":case"Loading":return{ctor:"[]"};case"Failure":return l(ve,"viewLabs",t._0),{ctor:"[]"};default:return l(K,function(t){return t.name},t._0)}}();return l(En,{ctor:"[]"},{ctor:"::",_0:l(En,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-bottom",_1:"10px"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:420,_1:{ctor:"[]"}}},sT(l(BT,Ov,c.selectedRecordId)),"Add/Edit Lab Suites",!1,!1,o.mdl),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(En,{ctor:"[]"},l(zt,e(function(t,r){return l(Hn,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0 10px 0 10px"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:p(C_,iT,{ctor:"::",_0:VS,_1:{ctor:"::",_0:400+t,_1:{ctor:"[]"}}},o.mdl,{ctor:"::",_0:p_(b.eq(u,r.id)),_1:{ctor:"::",_0:f_("labSuite"),_1:{ctor:"::",_0:m_,_1:{ctor:"::",_0:Gc(sT(l(BT,Fv,F(r.id)))),_1:{ctor:"[]"}}}}},{ctor:"::",_0:vn(r.name),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})}),f)),_1:{ctor:"::",_0:l(Rn,{ctor:"[]"},{ctor:"[]"}),_1:{ctor:"::",_0:l(En,{ctor:"::",_0:$n("horizontal-scroll"),_1:{ctor:"::",_0:(r=b.eq(Yt(a),0),l(no,"hidden",r)),_1:{ctor:"[]"}}},{ctor:"::",_0:l(vS,"Click on a row to edit or delete.",h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:430,_1:{ctor:"[]"}}},_T(l(jT,jv,B)),l(A["++"],"Add a New ",l(A["++"],a," Lab Test")),!1,!1,o.mdl)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Wl,{ctor:"[]"},l(zt,e(function(t,r){return l(s,t,r)}),l(_t,function(t){return b.eq(u,t.labSuite_id)},d))),_1:{ctor:"[]"}}}}}})},BS=function(t){var r=function(){var r=t.vaccinationTypeModel.records;switch(r.ctor){case"Success":return l(K,function(t){return t.sortOrder},r._0);case"Failure":return l(ve,"viewVaccinationType",k(r._0)),{ctor:"[]"};default:return{ctor:"[]"}}}();return l(En,{ctor:"::",_0:$n("horizontal-scroll"),_1:{ctor:"[]"}},{ctor:"::",_0:l(vS,"Click on a row to edit or delete.",h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:320,_1:{ctor:"[]"}}},jb(l(nw,jv,t.vaccinationTypeModel.selectedRecordId)),"Add",!1,!1,t.mdl)),_1:{ctor:"::",_0:l(od,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(nd,{ctor:"[]"},{ctor:"::",_0:l(rd,{ctor:"[]"},{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Id"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Name"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Description"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Sort order"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(ed,{ctor:"[]"},l(at,function(t){return l(rd,{ctor:"::",_0:Xc(jb(l(nw,Uv,F(t.id)))),_1:{ctor:"[]"}},{ctor:"::",_0:l(Xl,{ctor:"::",_0:Yl,_1:{ctor:"[]"}},{ctor:"::",_0:vn(k(t.id)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.name),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.description),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"::",_0:Yl,_1:{ctor:"[]"}},{ctor:"::",_0:vn(k(t.sortOrder)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}})},r)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})},qS=function(t){var r=t,e=r.vaccinationTypeModel,n=r,o=b.eq(e.editMode,Jv)||b.eq(e.editMode,jv),c=function(){var t,r,c,i,u,a,_,s,f,p,v=e.records;switch(v.ctor){case"NotAsked":return vn("");case"Loading":return vn("Loading");case"Failure":return vn(k(v._0));default:return t=e.form,c=function(t){return function(r){return jb(aw(d(rm,t.path,om,ih(r))))}},u=(i={ctor:"_Tuple4",_0:l(Qh,"id",t),_1:l(Qh,"name",t),_2:l(Qh,"description",t),_3:l(Qh,"sortOrder",t)})._0,a=i._1,_=i._2,s=i._3,f={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:304,_1:{ctor:"[]"}}},jb(l(nw,Ov,B)),"Back to table view",!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:300,_1:{ctor:"[]"}}},jb(l(nw,Jv,e.selectedRecordId)),"Edit",!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:305,_1:{ctor:"[]"}}},jb((r=e.selectedRecordId,{ctor:"DeleteVaccinationType",_0:r})),"Delete",!1,!1,n.mdl),_1:{ctor:"[]"}}}},p={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:301,_1:{ctor:"[]"}}},jb(aw(tm)),"Save",!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:302,_1:{ctor:"[]"}}},jb(lw),"Cancel",!1,!1,n.mdl),_1:{ctor:"[]"}}},l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn("vaccinationType"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},o?p:f),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:m(sS,"Record id",u,{ctor:"::",_0:VS,_1:{ctor:"::",_0:200,_1:{ctor:"[]"}}},c(u),!1,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Name",a,{ctor:"::",_0:VS,_1:{ctor:"::",_0:201,_1:{ctor:"[]"}}},c(a),o,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Description",_,{ctor:"::",_0:VS,_1:{ctor:"::",_0:202,_1:{ctor:"[]"}}},c(_),o,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Sort Order (must be unique)",s,{ctor:"::",_0:VS,_1:{ctor:"::",_0:203,_1:{ctor:"[]"}}},c(s),o,!1,n.mdl),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(as,{ctor:"::",_0:us,_1:{ctor:"[]"}},d(iS,{ctor:"_Tuple4",_0:jb(_w),_1:jb(cw),_2:jb(iw),_3:jb(uw)},VS,n)),_1:{ctor:"[]"}}}}})}}();return l(En,{ctor:"[]"},{ctor:"::",_0:c,_1:{ctor:"[]"}})},FS=function(t){var r=function(){var r=t.medicationTypeModel.records;switch(r.ctor){case"Success":return l(K,function(t){return t.sortOrder},r._0);case"Failure":return l(ve,"viewMedicationType",k(r._0)),{ctor:"[]"};default:return{ctor:"[]"}}}();return l(En,{ctor:"::",_0:$n("horizontal-scroll"),_1:{ctor:"[]"}},{ctor:"::",_0:l(vS,"Click on a row to edit or delete.",h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:310,_1:{ctor:"[]"}}},cT(l(MT,jv,t.medicationTypeModel.selectedRecordId)),"Add",!1,!1,t.mdl)),_1:{ctor:"::",_0:l(od,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(nd,{ctor:"[]"},{ctor:"::",_0:l(rd,{ctor:"[]"},{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Id"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Name"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Description"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Zl,{ctor:"[]"},{ctor:"::",_0:vn("Sort order"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(ed,{ctor:"[]"},l(at,function(t){return l(rd,{ctor:"::",_0:Xc(cT(l(MT,Uv,F(t.id)))),_1:{ctor:"[]"}},{ctor:"::",_0:l(Xl,{ctor:"::",_0:Yl,_1:{ctor:"[]"}},{ctor:"::",_0:vn(k(t.id)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.name),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"[]"},{ctor:"::",_0:vn(t.description),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Xl,{ctor:"::",_0:Yl,_1:{ctor:"[]"}},{ctor:"::",_0:vn(k(t.sortOrder)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}})},r)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})},OS=function(t){var r=t,e=t.medicationTypeModel,n=b.eq(e.editMode,Jv)||b.eq(e.editMode,jv),o=function(){var t,o,c,i,u,a,_,s,f,p,v=e.records;switch(v.ctor){case"NotAsked":return vn("");case"Loading":return vn("Loading");case"Failure":return vn(k(v._0));default:return t=e.form,c=function(t){return function(r){return cT(RT(d(rm,t.path,om,ih(r))))}},u=(i={ctor:"_Tuple4",_0:l(Qh,"id",t),_1:l(Qh,"name",t),_2:l(Qh,"description",t),_3:l(Qh,"sortOrder",t)})._0,a=i._1,_=i._2,s=i._3,f={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:304,_1:{ctor:"[]"}}},cT(l(MT,Ov,B)),"Back to table view",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:300,_1:{ctor:"[]"}}},cT(l(MT,Jv,e.selectedRecordId)),"Edit",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:305,_1:{ctor:"[]"}}},cT((o=e.selectedRecordId,{ctor:"DeleteMedicationType",_0:o})),"Delete",!1,!1,r.mdl),_1:{ctor:"[]"}}}},p={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:301,_1:{ctor:"[]"}}},cT(RT(tm)),"Save",!1,!1,r.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:302,_1:{ctor:"[]"}}},cT(ET),"Cancel",!1,!1,r.mdl),_1:{ctor:"[]"}}},l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn("medicationType"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},n?p:f),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:m(sS,"Record id",u,{ctor:"::",_0:VS,_1:{ctor:"::",_0:200,_1:{ctor:"[]"}}},c(u),!1,!1,r.mdl),_1:{ctor:"::",_0:m(sS,"Name",a,{ctor:"::",_0:VS,_1:{ctor:"::",_0:201,_1:{ctor:"[]"}}},c(a),n,!1,r.mdl),_1:{ctor:"::",_0:m(sS,"Description",_,{ctor:"::",_0:VS,_1:{ctor:"::",_0:202,_1:{ctor:"[]"}}},c(_),n,!1,r.mdl),_1:{ctor:"::",_0:m(sS,"Sort Order (must be unique)",s,{ctor:"::",_0:VS,_1:{ctor:"::",_0:203,_1:{ctor:"[]"}}},c(s),n,!1,r.mdl),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(as,{ctor:"::",_0:us,_1:{ctor:"[]"}},d(iS,{ctor:"_Tuple4",_0:cT(xT),_1:cT(ST),_2:cT(zT),_3:cT(CT)},VS,r)),_1:{ctor:"[]"}}}}})}}();return l(En,{ctor:"[]"},{ctor:"::",_0:o,_1:{ctor:"[]"}})},US=function(t){var r=t,e=r.selectDataModel,n=r,o=function(){var t=e.selectedRecordId;if("Just"===t.ctor){var r=e.records;if("Success"===r.ctor){var n=l(wf,function(r){return b.eq(r.id,t._0)},r._0);return"Just"===n.ctor?n._0.name:""}return""}return""}(),c=b.eq(e.editMode,Jv)||b.eq(e.editMode,jv),i=function(){var t,r,i,u,a,_,s,f,p,v,g=e.records;switch(g.ctor){case"NotAsked":return vn("");case"Loading":return vn("Loading");case"Failure":return vn(k(g._0));default:return t=e.form,i=function(t){return function(r){return rT(HT(d(rm,t.path,om,ih(r))))}},a=(u={ctor:"_Tuple4",_0:l(Qh,"id",t),_1:l(Qh,"name",t),_2:l(Qh,"label",t),_3:l(Xh,"selected",t)})._0,_=u._1,s=u._2,f=u._3,p={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:304,_1:{ctor:"[]"}}},rT(d(NT,Ov,B,B)),"Back to table view",!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:300,_1:{ctor:"[]"}}},rT(d(NT,Jv,e.selectedRecordId,B)),"Edit",!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:303,_1:{ctor:"[]"}}},rT(d(NT,jv,e.selectedRecordId,F(o))),l(A["++"],"Add ",o),!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:305,_1:{ctor:"[]"}}},rT((r=e.selectedRecordId,{ctor:"DeleteSelectData",_0:r})),"Delete",!1,!1,n.mdl),_1:{ctor:"[]"}}}}},v={ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:301,_1:{ctor:"[]"}}},rT(HT(tm)),"Save",!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:VS,_1:{ctor:"::",_0:302,_1:{ctor:"[]"}}},rT(DT),"Cancel",!1,!1,n.mdl),_1:{ctor:"[]"}}},l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn("selectData"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},c?v:p),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:m(sS,"Record id",a,{ctor:"::",_0:VS,_1:{ctor:"::",_0:200,_1:{ctor:"[]"}}},i(a),!1,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Name",_,{ctor:"::",_0:VS,_1:{ctor:"::",_0:201,_1:{ctor:"[]"}}},i(_),!1,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Label",s,{ctor:"::",_0:VS,_1:{ctor:"::",_0:202,_1:{ctor:"[]"}}},i(s),c,!1,n.mdl),_1:{ctor:"::",_0:h(hS,"Default",{ctor:"::",_0:VS,_1:{ctor:"::",_0:203,_1:{ctor:"[]"}}},l(function(t){return function(r){return rT(HT(d(rm,t.path,em,oh(r))))}},f,!gS(f)),c,gS(f),n.mdl),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}}})}}();return l(En,{ctor:"[]"},{ctor:"::",_0:i,_1:{ctor:"[]"}})},JS=function(t){var r,e=t,n=e,o=e.labTestValueModel,c=e.labTestModel,i=function(){var t=n.selectedTable;if("Just"===t.ctor){var r=t._0;return{ctor:"_Tuple2",_0:Nw(r),_1:function(){switch(r.ctor){case"LabSuite":switch(e.labSuiteModel.editMode.ctor){case"EditModeOther":return PS;case"EditModeTable":return DS;case"EditModeView":case"EditModeEdit":default:return IS}case"LabTest":switch(c.editMode.ctor){case"EditModeAdd":case"EditModeView":case"EditModeEdit":return HS;case"EditModeTable":return PS;default:return function(t){return l(En,{ctor:"[]"},{ctor:"::",_0:vn(l(A["++"],"Editmode is: ",k(c.editMode))),_1:{ctor:"[]"}})}}case"LabTestValue":switch(o.editMode.ctor){case"EditModeTable":return NS;case"EditModeView":case"EditModeEdit":case"EditModeAdd":return AS;default:return function(t){return l(En,{ctor:"[]"},{ctor:"::",_0:vn(l(A["++"],"Editmode for labTestValue is: ",k(o.editMode))),_1:{ctor:"[]"}})}}case"MedicationType":return"EditModeTable"===e.medicationTypeModel.editMode.ctor?FS:OS;case"SelectData":return"EditModeTable"===e.selectDataModel.editMode.ctor?xS:US;case"VaccinationType":return"EditModeTable"===e.vaccinationTypeModel.editMode.ctor?BS:qS;default:return LS}}()}}return{ctor:"_Tuple2",_0:"",_1:LS}}(),u=(i._0,i._1);return l(Vl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,3),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Tn,{ctor:"[]"},{ctor:"::",_0:vn("Lookup tables"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,8),_1:{ctor:"::",_0:l(El,Al,5),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(uS,"Warning",'\n\n Do not change the "meaning" of lookup table\n records if there already exist production patient\n records that reference them. Doing so may effectively\n change "history" by changing the meaning of already\n recorded data within the patient records.\n\n '),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,3),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},(r=n,{ctor:"::",_0:l(Vl,{ctor:"[]"},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Wl,{ctor:"[]"},l(at,function(t){return l(ES,t,b.eq(F(t.table),r.selectedTable))},RS)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,8),_1:{ctor:"::",_0:l(El,Al,5),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:u(n),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}})},jS=Be("Views.Users"),KS=function(t){var r=t,e=r.userModel,n=r,o=function(){var t=e.records;switch(t.ctor){case"NotAsked":return vn("");case"Loading":return vn("Loading");case"Failure":return vn(k(t._0));default:return function(t){var r,o,c=function(t){return function(r){return Wb(Mw(d(rm,t.path,nm,ih(r))))}},i=function(t){return function(r){return Wb(Mw(d(rm,t.path,em,oh(r))))}},u=function(t){return function(r){return Wb(Mw(d(rm,t.path,om,ih(r))))}},a={ctor:"_Tuple6",_0:l(Qh,"shortName",t),_1:l(Qh,"displayName",t),_2:l(Xh,"status",t),_3:l(Qh,"note",t),_4:l(Xh,"isCurrentTeacher",t),_5:l(Qh,"role_id",t)},_=a._0,s=a._1,f=a._2,p=a._3,v=a._4,g=a._5,y=l(at,function(t){return l(Hn,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding-right",_1:"10px"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:h(mS,ge(t),{ctor:"::",_0:jS,_1:{ctor:"::",_0:232+ye(t),_1:{ctor:"[]"}}},l(c,g,k(ye(t))),b.eq(k(ye(t)),l(P,"",g.value)),"RoleGroup",n.mdl),_1:{ctor:"[]"}})},"Success"===(r=n.roleModel.records).ctor?l(at,function(t){return{ctor:"_Tuple2",_0:t.id,_1:t.name}},r._0):{ctor:"[]"}),T={ctor:"_Tuple6",_0:l(Qh,"id",t),_1:l(Qh,"username",t),_2:l(Qh,"firstname",t),_3:l(Qh,"lastname",t),_4:l(Qh,"password",t),_5:l(Qh,"email",t)},w=T._0,M=T._1,S=T._2,z=T._3,C=T._4,R=T._5,x={ctor:"::",_0:h(pS,{ctor:"::",_0:jS,_1:{ctor:"::",_0:301,_1:{ctor:"[]"}}},Wb(Mw(tm)),"Save",!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:jS,_1:{ctor:"::",_0:302,_1:{ctor:"[]"}}},Wb(zw),"Cancel back to search",!1,!1,n.mdl),_1:{ctor:"::",_0:h(pS,{ctor:"::",_0:jS,_1:{ctor:"::",_0:303,_1:{ctor:"[]"}}},Wb((o=e.selectedRecordId,{ctor:"DeleteUser",_0:o})),"Delete User",!1,!1,n.mdl),_1:{ctor:"[]"}}}},L="EditModeAdd"===e.editMode.ctor?"Add a New User":"Editing User";return l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(ds,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},{ctor:"::",_0:vn(L),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"[]"},{ctor:"::",_0:l(is,{ctor:"[]"},x),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:l(Vl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,4),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:m(sS,"Record id",w,{ctor:"::",_0:jS,_1:{ctor:"::",_0:220,_1:{ctor:"[]"}}},u(w),!1,!1,n.mdl),_1:{ctor:"::",_0:m(dS,"Username",M,{ctor:"::",_0:jS,_1:{ctor:"::",_0:221,_1:{ctor:"[]"}}},u(M),!0,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Firstname",S,{ctor:"::",_0:jS,_1:{ctor:"::",_0:222,_1:{ctor:"[]"}}},u(S),!0,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Lastname",z,{ctor:"::",_0:jS,_1:{ctor:"::",_0:223,_1:{ctor:"[]"}}},u(z),!0,!1,n.mdl),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,4),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:m(sS,"Password",C,{ctor:"::",_0:jS,_1:{ctor:"::",_0:224,_1:{ctor:"[]"}}},u(C),!0,!0,n.mdl),_1:{ctor:"::",_0:m(sS,"Email",R,{ctor:"::",_0:jS,_1:{ctor:"::",_0:225,_1:{ctor:"[]"}}},u(R),!0,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Short name",_,{ctor:"::",_0:jS,_1:{ctor:"::",_0:227,_1:{ctor:"[]"}}},u(_),!0,!1,n.mdl),_1:{ctor:"::",_0:m(sS,"Display name",s,{ctor:"::",_0:jS,_1:{ctor:"::",_0:228,_1:{ctor:"[]"}}},u(s),!0,!1,n.mdl),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,4),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:h(hS,"Status",{ctor:"::",_0:jS,_1:{ctor:"::",_0:229,_1:{ctor:"[]"}}},l(i,f,!gS(f)),!0,gS(f),n.mdl),_1:{ctor:"::",_0:m(sS,"Note",p,{ctor:"::",_0:jS,_1:{ctor:"::",_0:230,_1:{ctor:"[]"}}},u(p),!0,!1,n.mdl),_1:{ctor:"::",_0:h(hS,"Currently Teacher",{ctor:"::",_0:jS,_1:{ctor:"::",_0:231,_1:{ctor:"[]"}}},l(i,v,!gS(v)),!0,gS(v),n.mdl),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},y),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})}(e.form)}}();return l(En,{ctor:"[]"},{ctor:"::",_0:o,_1:{ctor:"[]"}})},WS=function(t){return l(Vl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Tn,{ctor:"[]"},{ctor:"::",_0:vn("User Management"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,6),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:function(t){var r,e=function(t){return l(En,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding-bottom",_1:"14px"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:t,_1:{ctor:"[]"}})},n=function(t){return function(r){return Wb(ww(d(rm,t.path,em,oh(r))))}},o={ctor:"_Tuple8",_0:l(Qh,"query",t.userSearchForm),_1:l(Xh,"isAdministrator",t.userSearchForm),_2:l(Xh,"isAttending",t.userSearchForm),_3:l(Xh,"isClerk",t.userSearchForm),_4:l(Xh,"isGuard",t.userSearchForm),_5:l(Xh,"isSupervisor",t.userSearchForm),_6:l(Xh,"isActive",t.userSearchForm),_7:l(Xh,"isInActive",t.userSearchForm)},c=o._0,i=o._1,u=o._2,a=o._3,_=o._4,s=o._5,f=o._6,p=o._7;return l(cs,{ctor:"::",_0:l(ei,"width","100%"),_1:{ctor:"[]"}},{ctor:"::",_0:l(_s,{ctor:"::",_0:ys(qs),_1:{ctor:"[]"}},{ctor:"::",_0:m(sS,"First, last, username, or shortname",c,{ctor:"::",_0:jS,_1:{ctor:"::",_0:100,_1:{ctor:"[]"}}},(r=c,function(t){return Wb(ww(d(rm,r.path,om,ih(t))))}),!0,!1,t.mdl),_1:{ctor:"::",_0:l(jn,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"font-weight",_1:"bold"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:vn("Limit to the following roles"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:e(h(hS,"Administrators",{ctor:"::",_0:jS,_1:{ctor:"::",_0:201,_1:{ctor:"[]"}}},l(n,i,!gS(i)),!0,gS(i),t.mdl)),_1:{ctor:"::",_0:e(h(hS,"Attendings",{ctor:"::",_0:jS,_1:{ctor:"::",_0:202,_1:{ctor:"[]"}}},l(n,u,!gS(u)),!0,gS(u),t.mdl)),_1:{ctor:"::",_0:e(h(hS,"Clerks",{ctor:"::",_0:jS,_1:{ctor:"::",_0:203,_1:{ctor:"[]"}}},l(n,a,!gS(a)),!0,gS(a),t.mdl)),_1:{ctor:"::",_0:e(h(hS,"Guards",{ctor:"::",_0:jS,_1:{ctor:"::",_0:204,_1:{ctor:"[]"}}},l(n,_,!gS(_)),!0,gS(_),t.mdl)),_1:{ctor:"::",_0:e(h(hS,"Supervisors",{ctor:"::",_0:jS,_1:{ctor:"::",_0:205,_1:{ctor:"[]"}}},l(n,s,!gS(s)),!0,gS(s),t.mdl)),_1:{ctor:"::",_0:l(jn,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"font-weight",_1:"bold"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:vn("Limit to active or inactive status"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:e(h(hS,"Active",{ctor:"::",_0:jS,_1:{ctor:"::",_0:210,_1:{ctor:"[]"}}},l(n,f,!gS(f)),!0,gS(f),t.mdl)),_1:{ctor:"::",_0:e(h(hS,"InActive",{ctor:"::",_0:jS,_1:{ctor:"::",_0:211,_1:{ctor:"[]"}}},l(n,p,!gS(p)),!0,gS(p),t.mdl)),_1:{ctor:"[]"}}}}}}}}}}}),_1:{ctor:"[]"}})}(t),_1:{ctor:"::",_0:function(t){return l(Vl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:h(pS,{ctor:"::",_0:jS,_1:{ctor:"::",_0:240,_1:{ctor:"[]"}}},Wb(kw),"Add New User",!1,!1,t.mdl),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})}(t),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,6),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}},{ctor:"::",_0:function(t){var r=e(function(r,e){return l(Kl,{ctor:"::",_0:jl,_1:{ctor:"::",_0:b.eq(l(H,r,2),0)?Zc:oi("altRowBackground"),_1:{ctor:"::",_0:Xc(Wb(l(bw,Jv,F(e.id)))),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(Ul,{ctor:"[]"},{ctor:"::",_0:vn(l(A["++"],e.lastname,l(A["++"],", ",l(A["++"],e.firstname,b.cmp(Yt(e.shortName),0)>0?l(A["++"]," (",l(A["++"],e.shortName,")")):"")))),_1:{ctor:"::",_0:l(Fl,{ctor:"[]"},{ctor:"::",_0:vn(l(lb,e.role_id,t.roleModel)),_1:{ctor:"::",_0:vn(e.isCurrentTeacher?", Teacher":""),_1:{ctor:"::",_0:l(En,{ctor:"[]"},{ctor:"::",_0:vn(e.note),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(Bl,{ctor:"[]"},{ctor:"::",_0:vn(b.eq(e.status,!1)?"Inactive ":""),_1:{ctor:"::",_0:l(En,{ctor:"[]"},{ctor:"::",_0:vn(e.email),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}),n=function(t){var r,e={ctor:"_Tuple8",_0:jt(l(P,"",l(Qh,"query",t.userSearchForm).value)),_1:gS(l(Xh,"isAdministrator",t.userSearchForm)),_2:gS(l(Xh,"isAttending",t.userSearchForm)),_3:gS(l(Xh,"isClerk",t.userSearchForm)),_4:gS(l(Xh,"isGuard",t.userSearchForm)),_5:gS(l(Xh,"isSupervisor",t.userSearchForm)),_6:gS(l(Xh,"isActive",t.userSearchForm)),_7:gS(l(Xh,"isInActive",t.userSearchForm))},n=e._0,o=e._1,c=e._2,i=e._3,u=e._4,a=e._5,_=e._6,s=e._7,d=o||c||i||u||a,f=_||s,p=t.userModel.records;if("Success"===p.ctor){var h=p._0;return l(K,function(t){return t.role_id},l(_t,function(t){return l(Jt,n,jt(t.username))||l(Jt,n,jt(t.firstname))||l(Jt,n,jt(t.lastname))||l(Jt,n,jt(t.shortName))},(r=d?l(_t,function(r){return b.eq(l(lb,r.role_id,t.roleModel),"administrator")&&o||b.eq(l(lb,r.role_id,t.roleModel),"guard")&&u||b.eq(l(lb,r.role_id,t.roleModel),"clerk")&&i||b.eq(l(lb,r.role_id,t.roleModel),"attending")&&c||b.eq(l(lb,r.role_id,t.roleModel),"supervisor")&&a},h):h,f?l(_t,function(t){return b.eq(t.status,!0)&&_||b.eq(t.status,!1)&&s},r):r)))}return{ctor:"[]"}}(t);return l(Wl,{ctor:"[]"},l(zt,r,n))}(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})},GS=function(t){var r=t,e=r.userModel,n=r;return b.eq(e.editMode,jv)||b.eq(e.editMode,Jv)?KS(n):WS(n)},XS=function(t){return vn("The Page was not found in the Page type.")},QS=function(t){return vn("The PageDef was not found in the list of page definitions.")},YS=function(t){var r;return l(ve,"viewSplash",t.pageDefs),l(Vl,{ctor:"[]"},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,2),_1:{ctor:"::",_0:l(El,Nl,1),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,4),_1:{ctor:"::",_0:l(El,Nl,2),_1:{ctor:"::",_0:function(t){switch(Pl.ctor){case"Top":return oi("mdl-cell--top");case"Middle":return oi("mdl-cell--middle");default:return oi("mdl-cell--bottom")}}(),_1:{ctor:"::",_0:xl,_1:{ctor:"::",_0:(r="400px",l(ei,"max-width",r)),_1:{ctor:"[]"}}}}}}},{ctor:"::",_0:l(Tn,{ctor:"::",_0:uo({ctor:"::",_0:{ctor:"_Tuple2",_0:"color",_1:"#999999"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:vn("One moment as we load your user information ..."),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,4),_1:{ctor:"::",_0:l(El,Al,2),_1:{ctor:"::",_0:l(El,Nl,1),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"[]"}}}})},$S=function(t){var r={ctor:"::",_0:l(El,Hl,12),_1:{ctor:"::",_0:l(El,Al,8),_1:{ctor:"::",_0:l(El,Nl,4),_1:{ctor:"[]"}}}};return l(Vl,{ctor:"[]"},l(A["++"],{ctor:"::",_0:l(Dl,aS,{ctor:"::",_0:l(Tn,{ctor:"[]"},{ctor:"::",_0:vn("Home"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,r,{ctor:"::",_0:d(ui,Cn,{ctor:"[]"},{ctor:"::",_0:function(t){var r=e(function(t,r){return l(Ln,{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"system-log-line",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"system-log-line-even",_1:b.eq(l(A["%"],t,2),0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"system-log-line-odd",_1:!b.eq(l(A["%"],t,2),0)},_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}},{ctor:"::",_0:vn(l(P,"",it(l(W,1,l(Gt,"|",r.systemLog))))),_1:{ctor:"[]"}})}),n=l(zt,r,l(Tt,300,t.systemMsgLog));return l(En,{ctor:"[]"},{ctor:"::",_0:l(wn,{ctor:"[]"},{ctor:"::",_0:vn("Midwife-EMR Activity "),_1:{ctor:"::",_0:l(Nn,{ctor:"[]"},{ctor:"::",_0:vn("Most recent 300, newest at the top"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(xn,{ctor:"::",_0:$n("system-log"),_1:{ctor:"[]"}},n),_1:{ctor:"[]"}}})}(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},function(t){var r="Just"===t.pendingSystemMode.ctor?"Applying change to server ... please wait.":"",e={ctor:"_Tuple3",_0:b.eq(t.systemMode,sy),_1:b.eq(t.systemMode,_y),_2:b.eq(t.systemMode,ay)},n=e._0,o=e._1,c=e._2;return{ctor:"::",_0:l(Dl,aS,{ctor:"::",_0:l(wn,{ctor:"[]"},{ctor:"::",_0:vn("System Mode"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(ui,Cn,{ctor:"[]"},{ctor:"::",_0:vn("\n System Mode allows the administrator to restrict access to the Midwife-EMR system\n whenever necessary for maintenance purposes, etc. In all cases, users who are administrators\n are not affected by these modes. In other words, administrators always have full access\n to the Midwife-EMR system no matter what system mode it is in while the various medical\n roles are affected by the system mode.\n "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(ui,Mn,{ctor:"::",_0:Ys,_1:{ctor:"::",_0:bs(Os),_1:{ctor:"::",_0:ys(Js),_1:{ctor:"::",_0:l(ei,"padding-top","0.5em"),_1:{ctor:"::",_0:l(ei,"padding-bottom","0.5em"),_1:{ctor:"::",_0:l(ei,"text-align","center"),_1:{ctor:"::",_0:b.eq(t.pendingSystemMode,B)?l(ei,"display","None"):Zc,_1:{ctor:"[]"}}}}}}}},{ctor:"::",_0:vn(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Vl,{ctor:"[]"},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Il,2),_1:{ctor:"[]"}},{ctor:"::",_0:h(mS,"Normal mode",{ctor:"::",_0:1,_1:{ctor:"[]"}},nT(sy),n,"systemMode",t.mdl),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,10),_1:{ctor:"::",_0:l(El,Al,6),_1:{ctor:"::",_0:l(El,Nl,2),_1:{ctor:"[]"}}}},{ctor:"::",_0:vn("\n When the System Mode is NORMAL, everyone can access it after logging in. This is the system mode\n that the Midwife-EMR system usually is in for everyday use.\n "),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(Vl,{ctor:"[]"},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Il,2),_1:{ctor:"[]"}},{ctor:"::",_0:h(mS,"No New Logins",{ctor:"::",_0:1,_1:{ctor:"[]"}},nT(_y),o,"systemMode",t.mdl),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,10),_1:{ctor:"::",_0:l(El,Al,6),_1:{ctor:"::",_0:l(El,Nl,2),_1:{ctor:"[]"}}}},{ctor:"::",_0:vn("\n When the System Mode is NO NEW LOGINS, only the currently logged in users can\n continue to use the Midwife-EMR system. No new users can login, except for administrators.\n This is useful should the Midwife-EMR system need to be taken offline for a while. The\n administrator can put the system in NO NEW LOGINS mode to allow the currently logged in\n users to finish their work but at the same time not allowing anyone who is not already\n logged in to login to the system.\n "),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(Vl,{ctor:"[]"},{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Il,2),_1:{ctor:"[]"}},{ctor:"::",_0:h(mS,"Admin Only",{ctor:"::",_0:1,_1:{ctor:"[]"}},nT(ay),c,"systemMode",t.mdl),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Dl,{ctor:"::",_0:l(El,Hl,10),_1:{ctor:"::",_0:l(El,Al,6),_1:{ctor:"::",_0:l(El,Nl,2),_1:{ctor:"[]"}}}},{ctor:"::",_0:vn("\n When the System Mode is ADMIN ONLY, no one can login except for administrators. Also,\n everyone who is currently in the Midwife-EMR system will be logged out either immediately\n or when they try to use the system.\n "),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"[]"}}}(t)))},ZS=e(function(t,r){var e,n="Just"===(e=r.userProfile).ctor&&e._0.isLoggedIn;return{ctor:"::",_0:l(Aa,{ctor:"[]"},{ctor:"::",_0:l(Pa,{ctor:"[]"},{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:sd,_1:{ctor:"::",_0:Xc(Yb(Nv)),_1:{ctor:"::",_0:l(ei,"cursor","pointer"),_1:{ctor:"[]"}}}},{ctor:"::",_0:vn(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Ba,_1:{ctor:"::",_0:n?l(Da,{ctor:"[]"},{ctor:"::",_0:l(Ha,{ctor:"::",_0:Ia("#profile"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Pd,Hd,20),_1:{ctor:"::",_0:vn(" Profile"),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(Ha,{ctor:"::",_0:Ia("/logout"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Pd,Hd,20),_1:{ctor:"::",_0:vn(" Logout"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}):l(Pa,{ctor:"[]"},{ctor:"::",_0:d(ui,Cn,{ctor:"::",_0:ud,_1:{ctor:"[]"}},{ctor:"::",_0:vn(b.eq(r.userProfile,B)?"":"Please log in."),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}),tz=function(t){return l(_i,{ctor:"::",_0:oi("tabLabel"),_1:{ctor:"[]"}},{ctor:"::",_0:vn(t),_1:{ctor:"[]"}})},rz=l(lp,function(t){return{ctor:"UrlChange",_0:t}},{init:function(t){var r,e=(r=l(Aw,t,Pv),b.eq(r,Bv)?Lv:r),n=b.update(Ub,{selectedPage:e});return l(ke["!"],n,{ctor:"::",_0:l(Mo,w(eT),po(!0)),_1:{ctor:"[]"}})},update:cS,subscriptions:function(t){return ze({ctor:"::",_0:l(Re,mT,FM(nM)),_1:{ctor:"::",_0:l(Re,hT,OM(Kw)),_1:{ctor:"::",_0:l(Re,pT,UM($w)),_1:{ctor:"::",_0:l(Re,dT,JM(tM)),_1:{ctor:"::",_0:l(Re,Zb,jM(MM)),_1:{ctor:"::",_0:l(Re,oT,WM(CM)),_1:{ctor:"::",_0:l(Re,Gb,KM(Qw)),_1:{ctor:"[]"}}}}}}}})},view:function(t){var r,n,o,c=l(Hw,t.selectedPage,t.pageDefs),i=function(){var t=c;if("Just"===t.ctor){var r=t._0,e={ctor:"_Tuple2",_0:r.tab,_1:r.tabs};t:do{if("_Tuple2"===e.ctor){if("Just"===e._0.ctor){if("Just"===e._1.ctor)return{ctor:"_Tuple2",_0:e._0._0,_1:l(at,ye,e._1._0)};break t}if("Just"===e._1.ctor)return{ctor:"_Tuple2",_0:-1,_1:l(at,ye,e._1._0)};break t}break t}while(0);return{ctor:"_Tuple2",_0:-1,_1:{ctor:"[]"}}}return{ctor:"_Tuple2",_0:0,_1:{ctor:"[]"}}}(),u=i._0,a=i._1,_="Just"===(r=t.userProfile).ctor?{ctor:"_Tuple2",_0:!0,_1:r._0.isLoggedIn}:{ctor:"_Tuple2",_0:!1,_1:!1},s=_._0,p=_._1,h=function(){var r=p;if(!1===s)return YS;if(!1===r)return SS;switch(t.selectedPage.ctor){case"AdminHomePage":return $S;case"AdminBarcodesPage":return bS;case"AdminConfigPage":return MS;case"AdminUsersPage":return GS;case"AdminTablesPage":return JS;case"ProfilePage":return CS;case"ProfileNotLoadedPage":return YS;case"PageDefNotFoundPage":return QS;default:return XS}}();return f(d_,iT,t.mdl,{ctor:"::",_0:Fa,_1:{ctor:"::",_0:qa,_1:{ctor:"::",_0:(o=u,qc(e(function(t,r){return b.update(r,{selectedTab:t})})(o))),_1:{ctor:"::",_0:(n=function(r){return Yb(d(Iw,r,c,t))},qc(e(function(t,r){return b.update(r,{onSelectTab:F(function(r){return mc(t(r))})})})(n))),_1:{ctor:"[]"}}}}},{header:l(ZS,"Midwife-EMR",t),drawer:{ctor:"[]"},tabs:function(t){return{ctor:"_Tuple2",_0:l(at,tz,t),_1:{ctor:"::",_0:bs(Os),_1:{ctor:"::",_0:ys(Us),_1:{ctor:"[]"}}}}}(s?a:{ctor:"[]"}),main:{ctor:"::",_0:h(t),_1:{ctor:"::",_0:l(mn,function(t){return Xb(t)},function(t){var r=function(){switch(t.state.ctor){case"Inert":return!1;case"Active":return!0;default:return!1}}(),e=function(){var r=t.state;switch(r.ctor){case"Inert":return B;case"Active":default:return F(r._0)}}(),n=l(q,function(t){return t.action},e);return l(En,{ctor:"::",_0:io({ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-js-snackbar",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-snackbar",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mdl-snackbar--active",_1:r},_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(Fo,"hidden",!r),_1:{ctor:"[]"}}},{ctor:"::",_0:l(En,{ctor:"::",_0:$n("mdl-snackbar__text"),_1:{ctor:"[]"}},l(P,{ctor:"[]"},l(O,function(t){return{ctor:"::",_0:vn(t.message),_1:{ctor:"[]"}}},e))),_1:{ctor:"::",_0:l(Wn,{ctor:"::",_0:$n("mdl-snackbar__action"),_1:{ctor:"::",_0:ro("button"),_1:{ctor:"::",_0:l(Fo,"hidden",l(P,!0,l(O,w(!r),n))),_1:l(P,{ctor:"[]"},l(O,w({ctor:"::",_0:mc(l(sa,t.seq,aa)),_1:{ctor:"[]"}}),n))}}},l(P,{ctor:"[]"},l(O,function(t){return{ctor:"::",_0:vn(t),_1:{ctor:"[]"}}},n))),_1:{ctor:"[]"}}})}(t.snackbar)),_1:{ctor:"[]"}}}})}})(),ez={};ez.Administrator=ez.Administrator||{},void 0!==rz&&rz(ez.Administrator,"Administrator",void 0),void 0===(n=function(){return ez}.apply(r,[]))||(t.exports=n)}).call(this)},function(t,r,e){var n;(function(){var e=this,o=e._,c=Array.prototype,i=Object.prototype,u=Function.prototype,a=c.push,_=c.slice,s=i.toString,l=i.hasOwnProperty,d=Array.isArray,f=Object.keys,p=u.bind,h=Object.create,m=function(){},v=function(t){return t instanceof v?t:this instanceof v?void(this._wrapped=t):new v(t)};void 0!==t&&t.exports&&(r=t.exports=v),r._=v,v.VERSION="1.8.3";var g=function(t,r,e){if(void 0===r)return t;switch(null==e?3:e){case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)};case 4:return function(e,n,o,c){return t.call(r,e,n,o,c)}}return function(){return t.apply(r,arguments)}},y=function(t,r,e){return null==t?v.identity:v.isFunction(t)?g(t,r,e):v.isObject(t)?v.matcher(t):v.property(t)};v.iteratee=function(t,r){return y(t,r,1/0)};var b=function(t,r){return function(e){var n=arguments.length;if(n<2||null==e)return e;for(var o=1;o=0&&r<=M};function z(t){return function(r,e,n,o){e=g(e,o,4);var c=!S(r)&&v.keys(r),i=(c||r).length,u=t>0?0:i-1;return arguments.length<3&&(n=r[c?c[u]:u],u+=t),function(r,e,n,o,c,i){for(;c>=0&&c=0},v.invoke=function(t,r){var e=_.call(arguments,2),n=v.isFunction(r);return v.map(t,function(t){var o=n?r:t[r];return null==o?o:o.apply(t,e)})},v.pluck=function(t,r){return v.map(t,v.property(r))},v.where=function(t,r){return v.filter(t,v.matcher(r))},v.findWhere=function(t,r){return v.find(t,v.matcher(r))},v.max=function(t,r,e){var n,o,c=-1/0,i=-1/0;if(null==r&&null!=t)for(var u=0,a=(t=S(t)?t:v.values(t)).length;uc&&(c=n);else r=y(r,e),v.each(t,function(t,e,n){((o=r(t,e,n))>i||o===-1/0&&c===-1/0)&&(c=t,i=o)});return c},v.min=function(t,r,e){var n,o,c=1/0,i=1/0;if(null==r&&null!=t)for(var u=0,a=(t=S(t)?t:v.values(t)).length;un||void 0===e)return 1;if(e0?0:o-1;c>=0&&c0?i=c>=0?c:Math.max(c+u,i):u=c>=0?Math.min(c+1,u):c+u+1;else if(e&&c&&u)return n[c=e(n,o)]===o?c:-1;if(o!=o)return(c=r(_.call(n,i,u),v.isNaN))>=0?c+i:-1;for(c=t>0?i:u-1;c>=0&&cr?(i&&(clearTimeout(i),i=null),u=_,c=t.apply(n,o),i||(n=o=null)):i||!1===e.trailing||(i=setTimeout(a,s)),c}},v.debounce=function(t,r,e){var n,o,c,i,u,a=function(){var _=v.now()-i;_=0?n=setTimeout(a,r-_):(n=null,e||(u=t.apply(c,o),n||(c=o=null)))};return function(){c=this,o=arguments,i=v.now();var _=e&&!n;return n||(n=setTimeout(a,r)),_&&(u=t.apply(c,o),c=o=null),u}},v.wrap=function(t,r){return v.partial(r,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,r=t.length-1;return function(){for(var e=r,n=t[r].apply(this,arguments);e--;)n=t[e].call(this,n);return n}},v.after=function(t,r){return function(){if(--t<1)return r.apply(this,arguments)}},v.before=function(t,r){var e;return function(){return--t>0&&(e=r.apply(this,arguments)),t<=1&&(r=null),e}},v.once=v.partial(v.before,2);var V=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function A(t,r){var e=N.length,n=t.constructor,o=v.isFunction(n)&&n.prototype||i,c="constructor";for(v.has(t,c)&&!v.contains(r,c)&&r.push(c);e--;)(c=N[e])in t&&t[c]!==o[c]&&!v.contains(r,c)&&r.push(c)}v.keys=function(t){if(!v.isObject(t))return[];if(f)return f(t);var r=[];for(var e in t)v.has(t,e)&&r.push(e);return V&&A(t,r),r},v.allKeys=function(t){if(!v.isObject(t))return[];var r=[];for(var e in t)r.push(e);return V&&A(t,r),r},v.values=function(t){for(var r=v.keys(t),e=r.length,n=Array(e),o=0;o":">",'"':""","'":"'","`":"`"},D=v.invert(I),P=function(t){var r=function(r){return t[r]},e="(?:"+v.keys(t).join("|")+")",n=RegExp(e),o=RegExp(e,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(o,r):t}};v.escape=P(I),v.unescape=P(D),v.result=function(t,r,e){var n=null==t?void 0:t[r];return void 0===n&&(n=e),v.isFunction(n)?n.call(t):n};var B=0;v.uniqueId=function(t){var r=++B+"";return t?t+r:r},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},O=/\\|'|\r|\n|\u2028|\u2029/g,U=function(t){return"\\"+F[t]};v.template=function(t,r,e){!r&&e&&(r=e),r=v.defaults({},r,v.templateSettings);var n=RegExp([(r.escape||q).source,(r.interpolate||q).source,(r.evaluate||q).source].join("|")+"|$","g"),o=0,c="__p+='";t.replace(n,function(r,e,n,i,u){return c+=t.slice(o,u).replace(O,U),o=u+r.length,e?c+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":n?c+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(c+="';\n"+i+"\n__p+='"),r}),c+="';\n",r.variable||(c="with(obj||{}){\n"+c+"}\n"),c="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+c+"return __p;\n";try{var i=new Function(r.variable||"obj","_",c)}catch(t){throw t.source=c,t}var u=function(t){return i.call(this,t,v)},a=r.variable||"obj";return u.source="function("+a+"){\n"+c+"}",u},v.chain=function(t){var r=v(t);return r._chain=!0,r};var J=function(t,r){return t._chain?v(r).chain():r};v.mixin=function(t){v.each(v.functions(t),function(r){var e=v[r]=t[r];v.prototype[r]=function(){var t=[this._wrapped];return a.apply(t,arguments),J(this,e.apply(v,t))}})},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=c[t];v.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],J(this,e)}}),v.each(["concat","join","slice"],function(t){var r=c[t];v.prototype[t]=function(){return J(this,r.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},void 0===(n=function(){return v}.apply(r,[]))||(t.exports=n)}).call(this)},function(t,r,e){io=e(43),e(45);var n,o=io.connect(window.location.origin+"/"),c="ADD",i="CHG",u="DEL",a=function(t,r){o.send(function(t,r){return function(t,r,e){return JSON.stringify({namespace:"DATA",msgType:r,version:1,payload:e})}(0,t,r)}(t,r))},_=function(t,r){return{table:t,data:r}};o.on("error",function(t){n&&(console.log("=== Error ==>"),console.log(t),console.log("<== Error ==="))}),o.on("reconnect_error",function(t){n&&(console.log("=== Reconnect Error ==>"),console.log(t),console.log("<== Reconnect Error ==="))}),o.on("connect_error",function(t){n&&(console.log("=== Connect Error ==>"),console.log(t),console.log("<== Connect Error ==="))}),o.on("message",function(t){if(n)if(t){var r;try{r=JSON.parse(t)}catch(t){return console.log("ERROR parsing JSON."),void console.log(t)}if(r&&r.namespace&&r.msgType&&r.payload||console.log("ERROR: message received from the server is in improper format."),r&&r.namespace)switch(r.namespace){case"SYSTEM":!function(t){if(!t.payload)return console.log("=== ERROR: missing payload."),console.log(t),void console.log("=== End ERROR: missing payload.");t.payload.data&&t.payload.data.SYSTEM_LOG&&(t.payload.systemLog=t.payload.data.SYSTEM_LOG,delete t.payload.data),n.ports.systemMessages.send(t.payload)}(r);break;case"SITE":r.payload,console.log("Received SITE msg: unprocessed.");break;case"DATA":!function(t){if(n){if(!t||!t.msgType)return console.log("ERROR: improper data sent to handleData()."),void console.log(t);switch(t.msgType){case"ADD_CHG_DELETE":console.log("ADD_CHG_DELETE"),n.ports.addChgDelNotification.send(t.payload);break;case"ADHOC_RESPONSE":n.ports.adhocResponse.send(t.payload);break;case"SELECT_RESPONSE":console.log("Loading: "+t.payload.table),n.ports.selectQueryResponse.send(t.payload);break;case"ADD_RESPONSE":n.ports.createResponse.send(t.payload);break;case"CHG_RESPONSE":n.ports.updateResponse.send(t.payload);break;case"DEL_RESPONSE":n.ports.deleteResponse.send(t.payload);break;default:console.log("ERROR: unknown msgType of "+t.msgType)}}else console.log("ERROR: handleData() called when app has not been set.")}(r);break;default:console.log("ERROR: unknown or missing namespace of: "+r.namespace)}}else console.log("ERROR: message received from the server with no content.");else console.log("ERROR: message received from the server before app has been initialized.")}),t.exports={setApp:function(t){(n=t).ports.login.subscribe(function(t){a("ADHOC_LOGIN",t)}),n.ports.keyValueUpdate.subscribe(function(t){a(i,_("keyValue",t))}),n.ports.labSuiteCreate.subscribe(function(t){a(c,_("labSuite",t))}),n.ports.labSuiteDelete.subscribe(function(t){a(u,_("labSuite",t))}),n.ports.labSuiteUpdate.subscribe(function(t){a(i,_("labSuite",t))}),n.ports.labTestCreate.subscribe(function(t){a(c,_("labTest",t))}),n.ports.labTestDelete.subscribe(function(t){a(u,_("labTest",t))}),n.ports.labTestUpdate.subscribe(function(t){a(i,_("labTest",t))}),n.ports.labTestValueCreate.subscribe(function(t){a(c,_("labTestValue",t))}),n.ports.labTestValueDelete.subscribe(function(t){a(u,_("labTestValue",t))}),n.ports.labTestValueUpdate.subscribe(function(t){a(i,_("labTestValue",t))}),n.ports.medicationTypeCreate.subscribe(function(t){a(c,_("medicationType",t))}),n.ports.medicationTypeDelete.subscribe(function(t){a(u,_("medicationType",t))}),n.ports.medicationTypeUpdate.subscribe(function(t){a(i,_("medicationType",t))}),n.ports.requestUserProfile.subscribe(function(t){a("ADHOC_USER_PROFILE",{})}),n.ports.selectDataCreate.subscribe(function(t){a(c,_("selectData",t))}),n.ports.selectDataDelete.subscribe(function(t){a(u,_("selectData",t))}),n.ports.selectDataUpdate.subscribe(function(t){a(i,_("selectData",t))}),n.ports.selectQuery.subscribe(function(t){a("SELECT",t)}),n.ports.systemMode.subscribe(function(t){a("ADHOC_SYSTEM_MODE",t)}),n.ports.userCreate.subscribe(function(t){a(c,_("user",t))}),n.ports.userDelete.subscribe(function(t){a(u,_("user",t))}),n.ports.userUpdate.subscribe(function(t){a(i,_("user",t))}),n.ports.userProfileUpdate.subscribe(function(t){a("ADHOC_USER_PROFILE_UPDATE",t)}),n.ports.vaccinationTypeCreate.subscribe(function(t){a(c,_("vaccinationType",t))}),n.ports.vaccinationTypeDelete.subscribe(function(t){a(u,_("vaccinationType",t))}),n.ports.vaccinationTypeUpdate.subscribe(function(t){a(i,_("vaccinationType",t))})}}},,function(t,r,e){},,function(t,r,e){},,function(t,r,e){},function(t,r,e){"use strict";e(52),e(50),e(48);var n=e(46),o=e(44).Administrator.embed(document.getElementById("app"));n.setApp(o)}]); \ No newline at end of file diff --git a/build_odroid/roles/build_clients/files/elm_static/app.mwemr-medical-client-bundle.js b/build_odroid/roles/build_clients/files/elm_static/app.mwemr-medical-client-bundle.js new file mode 100644 index 0000000..2674b88 --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/app.mwemr-medical-client-bundle.js @@ -0,0 +1,8 @@ +!function(t){var r={};function e(o){if(r[o])return r[o].exports;var c=r[o]={i:o,l:!1,exports:{}};return t[o].call(c.exports,c,c.exports,e),c.l=!0,c.exports}e.m=t,e.c=r,e.d=function(t,r,o){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:o})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=64)}([function(t,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){(function(t){var o,c=e(41),n=e(17),a=e(35),_=e(34),i=e(33);t&&t.ArrayBuffer&&(o=e(31));var u="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),s="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),l=u||s;r.protocol=3;var d=r.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},m=c(d),f={type:"error",data:"parser error"},p=e(30);function h(t,r,e){for(var o=new Array(t.length),c=_(t.length,e),n=function(t,e,c){r(e,function(r,e){o[t]=e,c(r,o)})},a=0;a1?{type:m[c],data:t.substring(1)}:{type:m[c]}:f}c=new Uint8Array(t)[0];var n=a(t,1);return p&&"blob"===e&&(n=new p([n])),{type:m[c],data:n}},r.decodeBase64Packet=function(t,r){var e=m[t.charAt(0)];if(!o)return{type:e,data:{base64:!0,data:t.substr(1)}};var c=o.decode(t.substr(1));return"blob"===r&&p&&(c=new p([c])),{type:e,data:c}},r.encodePayload=function(t,e,o){"function"==typeof e&&(o=e,e=null);var c=n(t);return e&&c?p&&!l?r.encodePayloadAsBlob(t,o):r.encodePayloadAsArrayBuffer(t,o):t.length?void h(t,function(t,o){r.encodePacket(t,!!c&&e,!1,function(t){o(null,function(t){return t.length+":"+t}(t))})},function(t,r){return o(r.join(""))}):o("0:")},r.decodePayload=function(t,e,o){if("string"!=typeof t)return r.decodePayloadAsBinary(t,e,o);var c;if("function"==typeof e&&(o=e,e=null),""===t)return o(f,0,1);for(var n,a,_="",i=0,u=t.length;i0;){for(var _=new Uint8Array(c),i=0===_[0],u="",s=1;255!==_[s];s++){if(u.length>310)return o(f,0,1);u+=_[s]}c=a(c,2+u.length),u=parseInt(u);var l=a(c,0,u);if(i)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(t){var d=new Uint8Array(l);for(l="",s=0;s=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(c())}).call(this,e(11))},function(t,r){t.exports=function(t,r){var e=function(){};e.prototype=r.prototype,t.prototype=new e,t.prototype.constructor=t}},function(t,r){r.encode=function(t){var r="";for(var e in t)t.hasOwnProperty(e)&&(r.length&&(r+="&"),r+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return r},r.decode=function(t){for(var r={},e=t.split("&"),o=0,c=e.length;o=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(c())}).call(this,e(11))},function(t,r,e){var o=e(1),c=e(2);function n(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=n,c(n.prototype),n.prototype.onError=function(t,r){var e=new Error(t);return e.type="TransportError",e.description=r,this.emit("error",e),this},n.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},n.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},n.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},n.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},n.prototype.onData=function(t){var r=o.decodePacket(t,this.socket.binaryType);this.onPacket(r)},n.prototype.onPacket=function(t){this.emit("packet",t)},n.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,r,e){(function(r){var o=e(43);t.exports=function(t){var e=t.xdomain,c=t.xscheme,n=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||o))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!c&&n)return new XDomainRequest}catch(t){}if(!e)try{return new(r[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}).call(this,e(0))},function(t,r,e){var o=e(48)("socket.io-parser"),c=e(2),n=e(46),a=e(22),_=e(21);function i(){}r.protocol=4,r.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],r.CONNECT=0,r.DISCONNECT=1,r.EVENT=2,r.ACK=3,r.ERROR=4,r.BINARY_EVENT=5,r.BINARY_ACK=6,r.Encoder=i,r.Decoder=l;var u=r.ERROR+'"encode error"';function s(t){var e=""+t.type;if(r.BINARY_EVENT!==t.type&&r.BINARY_ACK!==t.type||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data){var c=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(t.data);if(!1===c)return u;e+=c}return o("encoded %j as %s",t,e),e}function l(){this.reconstructor=null}function d(t){this.reconPack=t,this.buffers=[]}function m(t){return{type:r.ERROR,data:"parser error: "+t}}i.prototype.encode=function(t,e){o("encoding packet %j",t),r.BINARY_EVENT===t.type||r.BINARY_ACK===t.type?function(t,r){n.removeBlobs(t,function(t){var e=n.deconstructPacket(t),o=s(e.packet),c=e.buffers;c.unshift(o),r(c)})}(t,e):e([s(t)])},c(l.prototype),l.prototype.add=function(t){var e;if("string"==typeof t)e=function(t){var e=0,c={type:Number(t.charAt(0))};if(null==r.types[c.type])return m("unknown packet type "+c.type);if(r.BINARY_EVENT===c.type||r.BINARY_ACK===c.type){for(var n="";"-"!==t.charAt(++e)&&(n+=t.charAt(e),e!=t.length););if(n!=Number(n)||"-"!==t.charAt(e))throw new Error("Illegal attachments");c.attachments=Number(n)}if("/"===t.charAt(e+1))for(c.nsp="";++e;){if(","===(i=t.charAt(e)))break;if(c.nsp+=i,e===t.length)break}else c.nsp="/";var _=t.charAt(e+1);if(""!==_&&Number(_)==_){for(c.id="";++e;){var i;if(null==(i=t.charAt(e))||Number(i)!=i){--e;break}if(c.id+=t.charAt(e),e===t.length)break}c.id=Number(c.id)}if(t.charAt(++e)){var u=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(e));if(!(!1!==u&&(c.type===r.ERROR||a(u))))return m("invalid payload");c.data=u}return o("decoded %s as %j",t,c),c}(t),r.BINARY_EVENT===e.type||r.BINARY_ACK===e.type?(this.reconstructor=new d(e),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",e)):this.emit("decoded",e);else{if(!_(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",e))}},l.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var r=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,r){var e=1e3,o=6e4,c=36e5,n=24*c;function a(t,r,e){if(!(t0)return function(t){if(!((t=String(t)).length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(r){var a=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*n;case"hours":case"hour":case"hrs":case"hr":case"h":return a*c;case"minutes":case"minute":case"mins":case"min":case"m":return a*o;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return r.long?a(_=t,n,"day")||a(_,c,"hour")||a(_,o,"minute")||a(_,e,"second")||_+" ms":function(t){return t>=n?Math.round(t/n)+"d":t>=c?Math.round(t/c)+"h":t>=o?Math.round(t/o)+"m":t>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,r){var e,o,c=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function _(t){if(e===setTimeout)return setTimeout(t,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(t){e=n}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var i,u=[],s=!1,l=-1;function d(){s&&i&&(s=!1,i.length?u=i.concat(u):l=-1,u.length&&m())}function m(){if(!s){var t=_(d);s=!0;for(var r=u.length;r;){for(i=u,u=[];++l1)for(var e=1;e0);return r}function s(){var t=u(+new Date);return t!==o?(_=0,o=t):t+"."+u(_++)}for(;i0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},m.prototype.cleanup=function(){u("cleanup");for(var t=this.subs.length,r=0;r=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var r=this.backoff.duration();u("will wait %dms before reconnect attempt",r),this.reconnecting=!0;var e=setTimeout(function(){t.skipReconnect||(u("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(r){r?(u("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",r.data)):(u("reconnect success"),t.onreconnect())}))},r);this.subs.push({destroy:function(){clearTimeout(e)}})}},m.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,r,e){(function(r){t.exports=function(t){return e&&r.Buffer.isBuffer(t)||o&&(t instanceof r.ArrayBuffer||c(t))};var e="function"==typeof r.Buffer&&"function"==typeof r.Buffer.isBuffer,o="function"==typeof r.ArrayBuffer,c=o&&"function"==typeof r.ArrayBuffer.isView?r.ArrayBuffer.isView:function(t){return t.buffer instanceof r.ArrayBuffer}}).call(this,e(0))},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r){var e=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var r=t,c=t.indexOf("["),n=t.indexOf("]");-1!=c&&-1!=n&&(t=t.substring(0,c)+t.substring(c,n).replace(/:/g,";")+t.substring(n,t.length));for(var a=e.exec(t||""),_={},i=14;i--;)_[o[i]]=a[i]||"";return-1!=c&&-1!=n&&(_.source=r,_.host=_.host.substring(1,_.host.length-1).replace(/;/g,":"),_.authority=_.authority.replace("[","").replace("]","").replace(/;/g,":"),_.ipv6uri=!0),_}},function(t,r){function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),e=Math.floor(r*this.jitter*t);t=0==(1&Math.floor(10*r))?t-e:t+e}return 0|Math.min(t,this.max)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}},function(t,r){t.exports=function(t,r){for(var e=[],o=(r=r||0)||0;o';o=document.createElement(t)}catch(t){(o=document.createElement("iframe")).name=e.iframeId,o.src="javascript:0"}o.id=e.iframeId,e.form.appendChild(o),e.iframe=o}this.form.action=this.uri(),s(),t=t.replace(_,"\\\n"),this.area.value=t.replace(a,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===e.iframe.readyState&&u()}:this.iframe.onload=u}}).call(this,e(0))},function(t,r,e){function o(t){var e;function o(){if(o.enabled){var t=o,c=+new Date,n=c-(e||c);t.diff=n,t.prev=e,t.curr=c,e=c;for(var a=new Array(arguments.length),_=0;_>2],n+=t[(3&o[e])<<4|o[e+1]>>4],n+=t[(15&o[e+1])<<2|o[e+2]>>6],n+=t[63&o[e+2]];return c%3==2?n=n.substring(0,n.length-1)+"=":c%3==1&&(n=n.substring(0,n.length-2)+"=="),n},r.decode=function(t){var r,o,c,n,a,_=.75*t.length,i=t.length,u=0;"="===t[t.length-1]&&(_--,"="===t[t.length-2]&&_--);var s=new ArrayBuffer(_),l=new Uint8Array(s);for(r=0;r>4,l[u++]=(15&c)<<4|n>>2,l[u++]=(3&n)<<6|63&a;return s}}()},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r,e){(function(t,o){var c;/*! https://mths.be/utf8js v2.1.2 by @mathias */!function(n){var a=("object"==typeof t&&t&&t.exports,"object"==typeof o&&o);a.global!==a&&a.window;var _,i,u,s=String.fromCharCode;function l(t){for(var r,e,o=[],c=0,n=t.length;c=55296&&r<=56319&&c=55296&&t<=57343){if(r)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function m(t,r){return s(t>>r&63|128)}function f(t,r){if(0==(4294967168&t))return s(t);var e="";return 0==(4294965248&t)?e=s(t>>6&31|192):0==(4294901760&t)?(d(t,r)||(t=65533),e=s(t>>12&15|224),e+=m(t,6)):0==(4292870144&t)&&(e=s(t>>18&7|240),e+=m(t,12),e+=m(t,6)),e+s(63&t|128)}function p(){if(u>=i)throw Error("Invalid byte index");var t=255&_[u];if(u++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function h(t){var r,e;if(u>i)throw Error("Invalid byte index");if(u==i)return!1;if(r=255&_[u],u++,0==(128&r))return r;if(192==(224&r)){if((e=(31&r)<<6|p())>=128)return e;throw Error("Invalid continuation byte")}if(224==(240&r)){if((e=(15&r)<<12|p()<<6|p())>=2048)return d(e,t)?e:65533;throw Error("Invalid continuation byte")}if(240==(248&r)&&(e=(7&r)<<18|p()<<12|p()<<6|p())>=65536&&e<=1114111)return e;throw Error("Invalid UTF-8 detected")}var b={version:"2.1.2",encode:function(t,r){for(var e=!1!==(r=r||{}).strict,o=l(t),c=o.length,n=-1,a="";++n65535&&(c+=s((r-=65536)>>>10&1023|55296),r=56320|1023&r),c+=s(r);return c}(c)}};void 0===(c=function(){return b}.call(r,e,r,t))||(t.exports=c)}()}).call(this,e(32)(t),e(0))},function(t,r){function e(){}t.exports=function(t,r,o){var c=!1;return o=o||e,n.count=t,0===t?r():n;function n(t,e){if(n.count<=0)throw new Error("after called too many times");--n.count,t?(c=!0,r(t),r=o):0!==n.count||c||r(null,e)}}},function(t,r){t.exports=function(t,r,e){var o=t.byteLength;if(r=r||0,e=e||o,t.slice)return t.slice(r,e);if(r<0&&(r+=o),e<0&&(e+=o),e>o&&(e=o),r>=o||r>=e||0===o)return new ArrayBuffer(0);for(var c=new Uint8Array(t),n=new Uint8Array(e-r),a=r,_=0;a>1,s=-7,l=e?c-1:0,d=e?-1:1,m=t[r+l];for(l+=d,n=m&(1<<-s)-1,m>>=-s,s+=_;s>0;n=256*n+t[r+l],l+=d,s-=8);for(a=n&(1<<-s)-1,n>>=-s,s+=o;s>0;a=256*a+t[r+l],l+=d,s-=8);if(0===n)n=1-u;else{if(n===i)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,o),n-=u}return(m?-1:1)*a*Math.pow(2,n-o)},r.write=function(t,r,e,o,c,n){var a,_,i,u=8*n-c-1,s=(1<>1,d=23===c?Math.pow(2,-24)-Math.pow(2,-77):0,m=o?0:n-1,f=o?1:-1,p=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(_=isNaN(r)?1:0,a=s):(a=Math.floor(Math.log(r)/Math.LN2),r*(i=Math.pow(2,-a))<1&&(a--,i*=2),(r+=a+l>=1?d/i:d*Math.pow(2,1-l))*i>=2&&(a++,i/=2),a+l>=s?(_=0,a=s):a+l>=1?(_=(r*i-1)*Math.pow(2,c),a+=l):(_=r*Math.pow(2,l-1)*Math.pow(2,c),a=0));c>=8;t[e+m]=255&_,m+=f,_/=256,c-=8);for(a=a<0;t[e+m]=255&a,m+=f,a/=256,u-=8);t[e+m-f]|=128*p}},function(t,r,e){"use strict";r.byteLength=function(t){var r=u(t),e=r[0],o=r[1];return 3*(e+o)/4-o},r.toByteArray=function(t){for(var r,e=u(t),o=e[0],a=e[1],_=new n(3*(o+a)/4-a),i=0,s=a>0?o-4:o,l=0;l>16&255,_[i++]=r>>8&255,_[i++]=255&r;return 2===a&&(r=c[t.charCodeAt(l)]<<2|c[t.charCodeAt(l+1)]>>4,_[i++]=255&r),1===a&&(r=c[t.charCodeAt(l)]<<10|c[t.charCodeAt(l+1)]<<4|c[t.charCodeAt(l+2)]>>2,_[i++]=r>>8&255,_[i++]=255&r),_},r.fromByteArray=function(t){for(var r,e=t.length,c=e%3,n=[],a=0,_=e-c;a<_;a+=16383)n.push(s(t,a,a+16383>_?_:a+16383));return 1===c?(r=t[e-1],n.push(o[r>>2]+o[r<<4&63]+"==")):2===c&&(r=(t[e-2]<<8)+t[e-1],n.push(o[r>>10]+o[r>>4&63]+o[r<<2&63]+"=")),n.join("")};for(var o=[],c=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0,i=a.length;_0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");return-1===e&&(e=r),[e,e===r?0:4-e%4]}function s(t,r,e){for(var c,n,a=[],_=r;_>18&63]+o[n>>12&63]+o[n>>6&63]+o[63&n]);return a.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,r,e){"use strict";(function(t){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var o=e(39),c=e(38),n=e(37);function a(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function _(t,r){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,r){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return q(t).length;default:if(o)return V(t).length;r=(""+r).toLowerCase(),o=!0}}function p(t,r,e){var o=t[r];t[r]=t[e],t[e]=o}function h(t,r,e,o,c){if(0===t.length)return-1;if("string"==typeof e?(o=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=c?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(c)return-1;e=t.length-1}else if(e<0){if(!c)return-1;e=0}if("string"==typeof r&&(r=i.from(r,o)),i.isBuffer(r))return 0===r.length?-1:b(t,r,e,o,c);if("number"==typeof r)return r&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?c?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):b(t,[r],e,o,c);throw new TypeError("val must be string, number or Buffer")}function b(t,r,e,o,c){var n,a=1,_=t.length,i=r.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(t.length<2||r.length<2)return-1;a=2,_/=2,i/=2,e/=2}function u(t,r){return 1===a?t[r]:t.readUInt16BE(r*a)}if(c){var s=-1;for(n=e;n<_;n++)if(u(t,n)===u(r,-1===s?0:n-s)){if(-1===s&&(s=n),n-s+1===i)return s*a}else-1!==s&&(n-=n-s),s=-1}else for(e+i>_&&(e=_-i),n=e;n>=0;n--){for(var l=!0,d=0;dc&&(o=c):o=c;var n=r.length;if(n%2!=0)throw new TypeError("Invalid hex string");o>n/2&&(o=n/2);for(var a=0;a>8,c=e%256,n.push(c),n.push(o);return n}(r,t.length-e),t,e,o)}function B(t,r,e){return 0===r&&e===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(r,e))}function D(t,r,e){e=Math.min(t.length,e);for(var o=[],c=r;c239?4:u>223?3:u>191?2:1;if(c+l<=e)switch(l){case 1:u<128&&(s=u);break;case 2:128==(192&(n=t[c+1]))&&(i=(31&u)<<6|63&n)>127&&(s=i);break;case 3:n=t[c+1],a=t[c+2],128==(192&n)&&128==(192&a)&&(i=(15&u)<<12|(63&n)<<6|63&a)>2047&&(i<55296||i>57343)&&(s=i);break;case 4:n=t[c+1],a=t[c+2],_=t[c+3],128==(192&n)&&128==(192&a)&&128==(192&_)&&(i=(15&u)<<18|(63&n)<<12|(63&a)<<6|63&_)>65535&&i<1114112&&(s=i)}null===s?(s=65533,l=1):s>65535&&(s-=65536,o.push(s>>>10&1023|55296),s=56320|1023&s),o.push(s),c+=l}return function(t){var r=t.length;if(r<=S)return String.fromCharCode.apply(String,t);for(var e="",o=0;othis.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,r,e);case"utf8":case"utf-8":return D(this,r,e);case"ascii":return F(this,r,e);case"latin1":case"binary":return w(this,r,e);case"base64":return B(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,r,e);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},i.prototype.compare=function(t,r,e,o,c){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===o&&(o=0),void 0===c&&(c=this.length),r<0||e>t.length||o<0||c>this.length)throw new RangeError("out of range index");if(o>=c&&r>=e)return 0;if(o>=c)return-1;if(r>=e)return 1;if(r>>>=0,e>>>=0,o>>>=0,c>>>=0,this===t)return 0;for(var n=c-o,a=e-r,_=Math.min(n,a),u=this.slice(o,c),s=t.slice(r,e),l=0;l<_;++l)if(u[l]!==s[l]){n=u[l],a=s[l];break}return nc)&&(e=c),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var n=!1;;)switch(o){case"hex":return g(this,t,r,e);case"utf8":case"utf-8":return y(this,t,r,e);case"ascii":return C(this,t,r,e);case"latin1":case"binary":return T(this,t,r,e);case"base64":return v(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r,e);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function F(t,r,e){var o="";e=Math.min(t.length,e);for(var c=r;co)&&(e=o);for(var c="",n=r;ne)throw new RangeError("Trying to access beyond buffer length")}function P(t,r,e,o,c,n){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>c||rt.length)throw new RangeError("Index out of range")}function A(t,r,e,o){r<0&&(r=65535+r+1);for(var c=0,n=Math.min(t.length-e,2);c>>8*(o?c:1-c)}function L(t,r,e,o){r<0&&(r=4294967295+r+1);for(var c=0,n=Math.min(t.length-e,4);c>>8*(o?c:3-c)&255}function N(t,r,e,o,c,n){if(e+o>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function E(t,r,e,o,n){return n||N(t,0,e,4),c.write(t,r,e,o,23,4),e+4}function J(t,r,e,o,n){return n||N(t,0,e,8),c.write(t,r,e,o,52,8),e+8}i.prototype.slice=function(t,r){var e,o=this.length;if(t=~~t,r=void 0===r?o:~~r,t<0?(t+=o)<0&&(t=0):t>o&&(t=o),r<0?(r+=o)<0&&(r=0):r>o&&(r=o),r0&&(c*=256);)o+=this[t+--r]*c;return o},i.prototype.readUInt8=function(t,r){return r||k(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,r){return r||k(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,r){return r||k(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,r){return r||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,r){return r||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||k(t,r,this.length);for(var o=this[t],c=1,n=0;++n=(c*=128)&&(o-=Math.pow(2,8*r)),o},i.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||k(t,r,this.length);for(var o=r,c=1,n=this[t+--o];o>0&&(c*=256);)n+=this[t+--o]*c;return n>=(c*=128)&&(n-=Math.pow(2,8*r)),n},i.prototype.readInt8=function(t,r){return r||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,r){r||k(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt16BE=function(t,r){r||k(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt32LE=function(t,r){return r||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,r){return r||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,r){return r||k(t,4,this.length),c.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,r){return r||k(t,4,this.length),c.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,r){return r||k(t,8,this.length),c.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,r){return r||k(t,8,this.length),c.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,r,e,o){t=+t,r|=0,e|=0,o||P(this,t,r,e,Math.pow(2,8*e)-1,0);var c=1,n=0;for(this[r]=255&t;++n=0&&(n*=256);)this[r+c]=t/n&255;return r+e},i.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},i.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):A(this,t,r,!0),r+2},i.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):A(this,t,r,!1),r+2},i.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):L(this,t,r,!0),r+4},i.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):L(this,t,r,!1),r+4},i.prototype.writeIntLE=function(t,r,e,o){if(t=+t,r|=0,!o){var c=Math.pow(2,8*e-1);P(this,t,r,e,c-1,-c)}var n=0,a=1,_=0;for(this[r]=255&t;++n>0)-_&255;return r+e},i.prototype.writeIntBE=function(t,r,e,o){if(t=+t,r|=0,!o){var c=Math.pow(2,8*e-1);P(this,t,r,e,c-1,-c)}var n=e-1,a=1,_=0;for(this[r+n]=255&t;--n>=0&&(a*=256);)t<0&&0===_&&0!==this[r+n+1]&&(_=1),this[r+n]=(t/a>>0)-_&255;return r+e},i.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},i.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):A(this,t,r,!0),r+2},i.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):A(this,t,r,!1),r+2},i.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):L(this,t,r,!0),r+4},i.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||P(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):L(this,t,r,!1),r+4},i.prototype.writeFloatLE=function(t,r,e){return E(this,t,r,!0,e)},i.prototype.writeFloatBE=function(t,r,e){return E(this,t,r,!1,e)},i.prototype.writeDoubleLE=function(t,r,e){return J(this,t,r,!0,e)},i.prototype.writeDoubleBE=function(t,r,e){return J(this,t,r,!1,e)},i.prototype.copy=function(t,r,e,o){if(e||(e=0),o||0===o||(o=this.length),r>=t.length&&(r=t.length),r||(r=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-r=0;--c)t[c+r]=this[c+e];else if(n<1e3||!i.TYPED_ARRAY_SUPPORT)for(c=0;c>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(n=r;n55295&&e<57344){if(!c){if(e>56319){(r-=3)>-1&&n.push(239,191,189);continue}if(a+1===o){(r-=3)>-1&&n.push(239,191,189);continue}c=e;continue}if(e<56320){(r-=3)>-1&&n.push(239,191,189),c=e;continue}e=65536+(c-55296<<10|e-56320)}else c&&(r-=3)>-1&&n.push(239,191,189);if(c=null,e<128){if((r-=1)<0)break;n.push(e)}else if(e<2048){if((r-=2)<0)break;n.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;n.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;n.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return n}function q(t){return o.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(I,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,r,e,o){for(var c=0;c=r.length||c>=t.length);++c)r[c+e]=t[c];return c}}).call(this,e(0))},function(t,r){t.exports=Object.keys||function(t){var r=[],e=Object.prototype.hasOwnProperty;for(var o in t)e.call(t,o)&&r.push(o);return r}},function(t,r,e){(function(r){var o=e(8),c=e(18),n=e(2),a=e(4),_=e(3)("engine.io-client:polling-xhr");function i(){}function u(t){if(c.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,r.location){var e="https:"===location.protocol,o=location.port;o||(o=e?443:80),this.xd=t.hostname!==r.location.hostname||o!==t.port,this.xs=t.secure!==e}}function s(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function l(){for(var t in s.requests)s.requests.hasOwnProperty(t)&&s.requests[t].abort()}t.exports=u,t.exports.Request=s,a(u,c),u.prototype.supportsBinary=!0,u.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new s(t)},u.prototype.doWrite=function(t,r){var e="string"!=typeof t&&void 0!==t,o=this.request({method:"POST",data:t,isBinary:e}),c=this;o.on("success",r),o.on("error",function(t){c.onError("xhr post error",t)}),this.sendXhr=o},u.prototype.doPoll=function(){_("xhr poll");var t=this.request(),r=this;t.on("data",function(t){r.onData(t)}),t.on("error",function(t){r.onError("xhr poll error",t)}),this.pollXhr=t},n(s.prototype),s.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new o(t),c=this;try{_("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var n in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(n)&&e.setRequestHeader(n,this.extraHeaders[n])}catch(t){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=!0),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){c.onLoad()},e.onerror=function(){c.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");c.supportsBinary&&"application/octet-stream"===t&&(e.responseType="arraybuffer")}catch(t){}4===e.readyState&&(200===e.status||1223===e.status?c.onLoad():setTimeout(function(){c.onError(e.status)},0))},_("xhr data %s",this.data),e.send(this.data)}catch(t){return void setTimeout(function(){c.onError(t)},0)}r.document&&(this.index=s.requestsCount++,s.requests[this.index]=this)},s.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},s.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},s.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},s.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=i:this.xhr.onreadystatechange=i,t)try{this.xhr.abort()}catch(t){}r.document&&delete s.requests[this.index],this.xhr=null}},s.prototype.onLoad=function(){var t;try{var r;try{r=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===r&&this.xhr.response||this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},s.prototype.hasXDR=function(){return void 0!==r.XDomainRequest&&!this.xs&&this.enablesXDR},s.prototype.abort=function(){this.cleanup()},s.requestsCount=0,s.requests={},r.document&&(r.attachEvent?r.attachEvent("onunload",l):r.addEventListener&&r.addEventListener("beforeunload",l,!1))}).call(this,e(0))},function(t,r){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(r){t.exports=!1}},function(t,r,e){(function(r){var o=e(19),c=e(2),n=e(3)("engine.io-client:socket"),a=e(15),_=e(1),i=e(23),u=e(5);function s(t,e){if(!(this instanceof s))return new s(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=i(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=i(e.host).host),this.secure=null!=e.secure?e.secure:r.location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||(r.location?location.hostname:"localhost"),this.port=e.port||(r.location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode;var o="object"==typeof r&&r;o.global===o&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=s,s.priorWebsocketSuccess=!1,c(s.prototype),s.protocol=_.protocol,s.Socket=s,s.Transport=e(7),s.transports=e(19),s.parser=e(1),s.prototype.createTransport=function(t){n('creating transport "%s"',t);var r=function(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r}(this.query);r.EIO=_.protocol,r.transport=t;var e=this.transportOptions[t]||{};return this.id&&(r.sid=this.id),new o[t]({query:r,socket:this,agent:e.agent||this.agent,hostname:e.hostname||this.hostname,port:e.port||this.port,secure:e.secure||this.secure,path:e.path||this.path,forceJSONP:e.forceJSONP||this.forceJSONP,jsonp:e.jsonp||this.jsonp,forceBase64:e.forceBase64||this.forceBase64,enablesXDR:e.enablesXDR||this.enablesXDR,timestampRequests:e.timestampRequests||this.timestampRequests,timestampParam:e.timestampParam||this.timestampParam,policyPort:e.policyPort||this.policyPort,pfx:e.pfx||this.pfx,key:e.key||this.key,passphrase:e.passphrase||this.passphrase,cert:e.cert||this.cert,ca:e.ca||this.ca,ciphers:e.ciphers||this.ciphers,rejectUnauthorized:e.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:e.perMessageDeflate||this.perMessageDeflate,extraHeaders:e.extraHeaders||this.extraHeaders,forceNode:e.forceNode||this.forceNode,localAddress:e.localAddress||this.localAddress,requestTimeout:e.requestTimeout||this.requestTimeout,protocols:e.protocols||void 0})},s.prototype.open=function(){var t;if(this.rememberUpgrade&&s.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var r=this;return void setTimeout(function(){r.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},s.prototype.setTransport=function(t){n("setting transport %s",t.name);var r=this;this.transport&&(n("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){r.onDrain()}).on("packet",function(t){r.onPacket(t)}).on("error",function(t){r.onError(t)}).on("close",function(){r.onClose("transport close")})},s.prototype.probe=function(t){n('probing transport "%s"',t);var r=this.createTransport(t,{probe:1}),e=!1,o=this;function c(){if(o.onlyBinaryUpgrades){var c=!this.supportsBinary&&o.transport.supportsBinary;e=e||c}e||(n('probe transport "%s" opened',t),r.send([{type:"ping",data:"probe"}]),r.once("packet",function(c){if(!e)if("pong"===c.type&&"probe"===c.data){if(n('probe transport "%s" pong',t),o.upgrading=!0,o.emit("upgrading",r),!r)return;s.priorWebsocketSuccess="websocket"===r.name,n('pausing current transport "%s"',o.transport.name),o.transport.pause(function(){e||"closed"!==o.readyState&&(n("changing transport and sending upgrade packet"),d(),o.setTransport(r),r.send([{type:"upgrade"}]),o.emit("upgrade",r),r=null,o.upgrading=!1,o.flush())})}else{n('probe transport "%s" failed',t);var a=new Error("probe error");a.transport=r.name,o.emit("upgradeError",a)}}))}function a(){e||(e=!0,d(),r.close(),r=null)}function _(e){var c=new Error("probe error: "+e);c.transport=r.name,a(),n('probe transport "%s" failed because of error: %s',t,e),o.emit("upgradeError",c)}function i(){_("transport closed")}function u(){_("socket closed")}function l(t){r&&t.name!==r.name&&(n('"%s" works - aborting "%s"',t.name,r.name),a())}function d(){r.removeListener("open",c),r.removeListener("error",_),r.removeListener("close",i),o.removeListener("close",u),o.removeListener("upgrading",l)}s.priorWebsocketSuccess=!1,r.once("open",c),r.once("error",_),r.once("close",i),this.once("close",u),this.once("upgrading",l),r.open()},s.prototype.onOpen=function(){if(n("socket open"),this.readyState="open",s.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){n("starting upgrade probes");for(var t=0,r=this.upgrades.length;t=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(c())}).call(this,e(11))},function(t,r,e){function o(t){var e;function o(){if(o.enabled){var t=o,c=+new Date,n=c-(e||c);t.diff=n,t.prev=e,t.curr=c,e=c;for(var a=new Array(arguments.length),_=0;_0&&(a+=e[c].lengths[e[c].lengths.length-1]),e[c].lengths.push(a),e[c].table.length===t&&(o(e[c],e),e[c]={ctor:"_Array",height:c+1,table:[],lengths:[]})}function n(t,r){var e=t.table.length-1;t.table[e]=r,t.lengths[e]=b(r),t.lengths[e]+=e>0?t.lengths[e-1]:0}function a(t,r){if(r.table.length>0){t.table[0]=r,t.lengths[0]=b(r);for(var e=b(t.table[0]),o=1;o0&&(e.lengths=new Array(r)),e}function m(r,e,o){for(var c=d(r.height,Math.min(t,r.table.length+e.table.length-o)),n=d(r.height,c.table.length-(r.table.length+e.table.length-o)),a=0;i(r.table,e.table,a).table.length%t==0;)u(c.table,n.table,a,i(r.table,e.table,a)),u(c.lengths,n.lengths,a,i(r.lengths,e.lengths,a)),a++;for(var _=a,l=new d(r.height-1,0),m=0;a-_-(l.table.length>0?1:0)0)for(var h=l.lengths.length,g=h;g0?l.lengths[g-1]:0;m+=p,f.table.length<=p&&(a++,m=0),l.table.length===t&&(s(c,n,_,l),l=d(r.height-1,0),_++)}for(l.table.length>0&&(s(c,n,_,l),_++);a0&&(r.lengths=t.lengths.slice()),r}function b(t){return 0===t.height?t.table.length:t.lengths[t.lengths.length-1]}function g(t,r){for(var e=t>>5*r.height;r.lengths[e]<=t;)e++;return e}function y(t,r){return 0===r?{ctor:"_Array",height:0,table:[t]}:{ctor:"_Array",height:r,table:[y(t,r-1)],lengths:[1]}}function C(t,r){return r===t.height?t:{ctor:"_Array",height:r,table:[C(t,r-1)],lengths:[b(t)]}}function T(t,r){return{ctor:"_Array",height:t.height+1,table:[t,r],lengths:[b(t),b(t)+b(r)]}}return{empty:r,fromList:function(e){if("[]"===e.ctor)return r;for(var c=new Array(t),n=[],a=0;"[]"!==e.ctor;)c[a]=e._0,e=e._1,++a===t&&(o({ctor:"_Array",height:0,table:c},n),c=new Array(t),a=0);a>0&&o({ctor:"_Array",height:0,table:c.splice(0,a)},n);for(var _=0;_0&&o(n[_],n);var i=n[n.length-1];return i.height>0&&1===i.table.length?i.table[0]:i},toList:function(t){return function t(r,e){for(var o=e.table.length-1;o>=0;o--)r=0===e.height?j.Cons(e.table[o],r):t(r,e.table[o]);return r}(j.Nil,t)},initialize:e(function(e,o){return e<=0?r:function r(e,o,c,n){if(0===o){for(var a=new Array((n-c)%(t+1)),_=0;_0?u[_-1]:0);return{ctor:"_Array",height:o,table:a,lengths:u}}(o,Math.floor(Math.log(e)/Math.log(t)),0,e)}),append:e(function(r,e){if(0===r.table.length)return e;if(0===e.table.length)return r;var o=function t(r,e){if(0===r.height&&0===e.height)return[r,e];if(1!==r.height||1!==e.height)if(r.height===e.height){r=h(r),e=h(e),n(r,(o=t(f(r),p(e)))[1]),a(e,o[0])}else if(r.height>e.height){n(r=h(r),(o=t(f(r),e))[0]),e=C(o[1],o[1].height+1)}else{var o,c=0===(o=t(r,p(e=h(e))))[0].table.length?0:1,i=0===c?1:0;a(e,o[c]),r=C(o[i],o[i].height+1)}if(0===r.table.length||0===e.table.length)return[r,e];var u=_(r,e);return u<=2?[r,e]:m(r,e,u)}(r,e);if(o[0].table.length+o[1].table.length<=t){if(0===o[0].table.length)return o[1];if(0===o[1].table.length)return o[0];if(o[0].table=o[0].table.concat(o[1].table),o[0].height>0){for(var c=b(o[0]),i=0;i0){var u=_(r,e);u>2&&(o=m(o[0],o[1],u))}return T(o[0],o[1])}),push:e(function(r,e){var o=function r(e,o){if(0===o.height)return o.table.length0?e.lengths[c-1]:0),e.table[c]);if(c===e.table.length-1)return n;(o={ctor:"_Array",height:e.height,table:e.table.slice(c,e.table.length+1),lengths:new Array(e.table.length-c)}).table[0]=n;for(var a=0,_=0;_0?e.lengths[o-1]:0),e.table[o]);if(0===o)return c;var n={ctor:"_Array",height:e.height,table:e.table.slice(0,o),lengths:e.lengths.slice(0,o)};return c.table.length>0&&(n.table[o]=c,n.lengths[o]=b(c)+(o>0?n.lengths[o-1]:0)),n}(r,e))}),get:e(function(t,r){if(t<0||t>=b(r))throw new Error("Index "+t+" is out of range. Check the length of your array first or use getMaybe or getWithDefault.");return function(t,r){for(var e=r.height;e>0;e--){for(var o=t>>5*e;r.lengths[o]<=t;)o++;o>0&&(t-=r.lengths[o-1]),r=r.table[o]}return r.table[t]}(t,r)}),set:c(function(t,r,e){return t<0||b(e)<=t?e:function t(r,e,o){if(0===(o=h(o)).height)o.table[r]=e;else{var c=g(r,o);c>0&&(r-=o.lengths[c-1]),o.table[c]=t(r,e,o.table[c])}return o}(t,r,e)}),map:e(function t(r,e){var o={ctor:"_Array",height:e.height,table:new Array(e.table.length)};e.height>0&&(o.lengths=e.lengths);for(var c=0;c0&&(c.lengths=e.lengths);for(var n=0;n0?i[u-1]:0);return{ctor:"_Array",height:o,table:_,lengths:i}}(e,Math.floor(Math.log(e.length)/Math.log(t)),0,e.length)}}}(),C=function(){var t=["LT","EQ","GT"];return{div:e(function(t,r){return t/r|0}),rem:e(function(t,r){return t%r}),mod:e(function t(r,e){if(0===e)throw new Error("Cannot perform mod 0. Division by zero error.");var o=r%e,c=0===r?0:e>0?r>=0?o:o+e:-t(-r,-e);return c===e?0:c}),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:e(Math.atan2),degrees:function(t){return t*Math.PI/180},turns:function(t){return 2*Math.PI*t},fromPolar:function(t){var r=t._0,e=t._1;return T.Tuple2(r*Math.cos(e),r*Math.sin(e))},toPolar:function(t){var r=t._0,e=t._1;return T.Tuple2(Math.sqrt(r*r+e*e),Math.atan2(e,r))},sqrt:Math.sqrt,logBase:e(function(t,r){return Math.log(r)/Math.log(t)}),negate:function(t){return-t},abs:function(t){return t<0?-t:t},min:e(function(t,r){return T.cmp(t,r)<0?t:r}),max:e(function(t,r){return T.cmp(t,r)>0?t:r}),clamp:c(function(t,r,e){return T.cmp(e,t)<0?t:T.cmp(e,r)>0?r:e}),compare:e(function(r,e){return{ctor:t[T.cmp(r,e)+1]}}),xor:e(function(t,r){return t!==r}),not:function(t){return!t},truncate:function(t){return 0|t},ceiling:Math.ceil,floor:Math.floor,round:Math.round,toFloat:function(t){return t},isNaN:isNaN,isInfinite:function(t){return t===1/0||t===-1/0}}}(),T=function(){function t(r,e,o,c){if(o>100)return c.push({x:r,y:e}),!0;if(r===e)return!0;if("object"!=typeof r){if("function"==typeof r)throw new Error('Trying to use `(==)` 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#== which describes why it is this way and what the better version will look like.');return!1}if(null===r||null===e)return!1;if(r instanceof Date)return r.getTime()===e.getTime();if(!("ctor"in r)){for(var n in r)if(!t(r[n],e[n],o+1,c))return!1;return!0}if("RBNode_elm_builtin"!==r.ctor&&"RBEmpty_elm_builtin"!==r.ctor||(r=cr(r),e=cr(e)),"Set_elm_builtin"===r.ctor&&(r=po(r),e=po(e)),"::"===r.ctor){for(var a=r,_=e;"::"===a.ctor&&"::"===_.ctor;){if(!t(a._0,_._0,o+1,c))return!1;a=a._1,_=_._1}return a.ctor===_.ctor}if("_Array"===r.ctor){var i=y.toJSArray(r),u=y.toJSArray(e);if(i.length!==u.length)return!1;for(var s=0;s";if("boolean"===r)return t?"True":"False";if("number"===r)return t+"";if(t instanceof String)return"'"+_(t,!0)+"'";if("string"===r)return'"'+_(t,!1)+'"';if(null===t)return"null";if("object"===r&&"ctor"in t){var e=t.ctor.substring(0,5);if("_Tupl"===e){var o=[];for(var c in t)"ctor"!==c&&o.push(a(t[c]));return"("+o.join(",")+")"}if("_Task"===e)return"";if("_Array"===t.ctor)return"Array.fromList "+a(Dt(t));if(""===t.ctor)return"";if("_Process"===t.ctor)return"";if("::"===t.ctor){for(o="["+a(t._0),t=t._1;"::"===t.ctor;)o+=","+a(t._0),t=t._1;return o+"]"}if("[]"===t.ctor)return"[]";if("Set_elm_builtin"===t.ctor)return"Set.fromList "+a(po(t));if("RBNode_elm_builtin"===t.ctor||"RBEmpty_elm_builtin"===t.ctor)return"Dict.fromList "+a(cr(t));for(var n in o="",t)if("ctor"!==n){var i=a(t[n]),u=i[0];o+=" "+("{"===u||"("===u||"<"===u||'"'===u||i.indexOf(" ")<0?i:"("+i+")")}return t.ctor+o}if("object"===r){if(t instanceof Date)return"<"+t.toString()+">";if(t.elm_web_socket)return"";for(var c in o=[],t)o.push(c+" = "+a(t[c]));return 0===o.length?"{}":"{ "+o.join(", ")+" }"}return""}function _(t,r){var e=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return r?e.replace(/\'/g,"\\'"):e.replace(/\"/g,'\\"')}return{eq:function(r,e){for(var o,c=[],n=t(r,e,0,c);n&&(o=c.pop());)n=t(o.x,o.y,0,c);return n},cmp:function t(r,e){if("object"!=typeof r)return r===e?0:r=1){if(0!==(n=t(r._0,e._0)))return n;if(a>=2){if(0!==(n=t(r._1,e._1)))return n;if(a>=3){if(0!==(n=t(r._2,e._2)))return n;if(a>=4){if(0!==(n=t(r._3,e._3)))return n;if(a>=5){if(0!==(n=t(r._4,e._4)))return n;if(a>=6){if(0!==(n=t(r._5,e._5)))return n;if(a>=7)throw new Error("Comparison error: cannot compare tuples with more than 6 elements.")}}}}}}return 0}throw new Error("Comparison error: comparison is only defined on ints, floats, times, chars, strings, lists of comparable values, and tuples of comparable values.")},Tuple0:{ctor:"_Tuple0"},Tuple2:function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}},chr:function(t){return new String(t)},update:function(t,r){var e={};for(var o in t)e[o]=t[o];for(var o in r)e[o]=r[o];return e},guid:function(t){return r++},append:e(function(t,r){if("string"==typeof t)return t+r;if("[]"===t.ctor)return r;var e=c(t._0,o),n=e;for(t=t._1;"[]"!==t.ctor;)n._1=c(t._0,o),t=t._1,n=n._1;return n._1=r,e}),crash:function(t,r){return function(e){throw new Error("Ran into a `Debug.crash` in module `"+t+"` "+n(r)+"\nThe message provided by the code author is:\n\n "+e)}},crashCase:function(t,r,e){return function(o){throw new Error("Ran into a `Debug.crash` in module `"+t+"`\n\nThis was caused by the `case` expression "+n(r)+".\nOne of the branches ended with a crash and the following value got through:\n\n "+a(e)+"\n\nThe message provided by the code author is:\n\n "+o)}},toString:a}}(),v=(e(function(t,r){var e=r;return l(t,e._0,e._1)}),c(function(t,r,e){return t({ctor:"_Tuple2",_0:r,_1:e})}),c(function(t,r,e){return l(t,e,r)})),M=e(function(t,r){return t}),B=function(t){return t};(N=N||{})["<|"]=e(function(t,r){return t(r)}),(N=N||{})["|>"]=e(function(t,r){return r(t)}),(N=N||{})[">>"]=c(function(t,r,e){return r(t(e))}),(N=N||{})["<<"]=c(function(t,r,e){return t(r(e))}),(N=N||{})["++"]=T.append;var D=T.toString,S=(C.isInfinite,C.isNaN,C.toFloat),F=(C.ceiling,C.floor),w=(C.truncate,C.round);C.not,C.xor,(N=N||{})["||"]=C.or,(N=N||{})["&&"]=C.and;var R=C.max,x=C.min,k=C.compare;(N=N||{})[">="]=C.ge,(N=N||{})["<="]=C.le,(N=N||{})[">"]=C.gt,(N=N||{})["<"]=C.lt,(N=N||{})["/="]=C.neq,(N=N||{})["=="]=C.eq,C.e,C.pi;var P=C.clamp,A=(C.logBase,C.abs),L=C.negate;C.sqrt,C.atan2,C.atan,C.asin,C.acos,C.tan,C.sin,C.cos,(N=N||{})["^"]=C.exp,(N=N||{})["%"]=C.mod;var N,E=C.rem;(N=N||{})["//"]=C.div,(N=N||{})["/"]=C.floatDiv,(N=N||{})["*"]=C.mul,(N=N||{})["-"]=C.sub,(N=N||{})["+"]=C.add,C.toPolar,C.fromPolar,C.turns,C.degrees;var J={ctor:"GT"},I={ctor:"EQ"},O={ctor:"LT"},V=e(function(t,r){var e=r;return"Just"===e.ctor?e._0:t}),q={ctor:"Nothing"},H=e(function(t,r){var e=r;return"Just"===e.ctor?t(e._0):q}),U=function(t){return{ctor:"Just",_0:t}},z=e(function(t,r){var e=r;return"Just"===e.ctor?U(t(e._0)):q}),W=c(function(t,r,e){var o={ctor:"_Tuple2",_0:r,_1:e};return"_Tuple2"===o.ctor&&"Just"===o._0.ctor&&"Just"===o._1.ctor?U(l(t,o._0._0,o._1._0)):q}),j=(n(function(t,r,e,o){var c={ctor:"_Tuple3",_0:r,_1:e,_2:o};return"_Tuple3"===c.ctor&&"Just"===c._0.ctor&&"Just"===c._1.ctor&&"Just"===c._2.ctor?U(d(t,c._0._0,c._1._0,c._2._0)):q}),a(function(t,r,e,o,c){var n={ctor:"_Tuple4",_0:r,_1:e,_2:o,_3:c};return"_Tuple4"===n.ctor&&"Just"===n._0.ctor&&"Just"===n._1.ctor&&"Just"===n._2.ctor&&"Just"===n._3.ctor?U(m(t,n._0._0,n._1._0,n._2._0,n._3._0)):q}),_(function(t,r,e,o,c,n){var a={ctor:"_Tuple5",_0:r,_1:e,_2:o,_3:c,_4:n};return"_Tuple5"===a.ctor&&"Just"===a._0.ctor&&"Just"===a._1.ctor&&"Just"===a._2.ctor&&"Just"===a._3.ctor&&"Just"===a._4.ctor?U(f(t,a._0._0,a._1._0,a._2._0,a._3._0,a._4._0)):q}),function(){var t={ctor:"[]"};function r(t,r){return{ctor:"::",_0:t,_1:r}}function o(e){for(var o=t,c=e.length;c--;)o=r(e[c],o);return o}function i(t){for(var r=[];"[]"!==t.ctor;)r.push(t._0),t=t._1;return r}return{Nil:t,Cons:r,cons:e(r),toArray:i,fromArray:o,foldr:c(function(t,r,e){for(var o=i(e),c=r,n=o.length;n--;)c=l(t,o[n],c);return c}),map2:c(function(t,r,e){for(var c=[];"[]"!==r.ctor&&"[]"!==e.ctor;)c.push(l(t,r._0,e._0)),r=r._1,e=e._1;return o(c)}),map3:n(function(t,r,e,c){for(var n=[];"[]"!==r.ctor&&"[]"!==e.ctor&&"[]"!==c.ctor;)n.push(d(t,r._0,e._0,c._0)),r=r._1,e=e._1,c=c._1;return o(n)}),map4:a(function(t,r,e,c,n){for(var a=[];"[]"!==r.ctor&&"[]"!==e.ctor&&"[]"!==c.ctor&&"[]"!==n.ctor;)a.push(m(t,r._0,e._0,c._0,n._0)),r=r._1,e=e._1,c=c._1,n=n._1;return o(a)}),map5:_(function(t,r,e,c,n,a){for(var _=[];"[]"!==r.ctor&&"[]"!==e.ctor&&"[]"!==c.ctor&&"[]"!==n.ctor&&"[]"!==a.ctor;)_.push(f(t,r._0,e._0,c._0,n._0,a._0)),r=r._1,e=e._1,c=c._1,n=n._1,a=a._1;return o(_)}),sortBy:e(function(t,r){return o(i(r).sort(function(r,e){return T.cmp(t(r),t(e))}))}),sortWith:e(function(t,r){return o(i(r).sort(function(r,e){var o=t(r)(e).ctor;return"EQ"===o?0:"LT"===o?-1:1}))})}}()),G=j.sortWith,Y=(j.sortBy,e(function(t,r){for(;;){if(T.cmp(t,0)<1)return r;var e=r;if("[]"===e.ctor)return r;t-=1,r=e._1}})),K=j.map5,Q=j.map4,X=j.map3,$=j.map2,Z=e(function(t,r){for(;;){var e=r;if("[]"===e.ctor)return!1;if(t(e._0))return!0;t=t,r=e._1}}),tt=e(function(t,r){return!l(Z,function(r){return!t(r)},r)}),rt=j.foldr,et=c(function(t,r,e){for(;;){var o=e;if("[]"===o.ctor)return r;var c=t,n=l(t,o._0,r);t=c,r=n,e=o._1}}),ot=function(t){return d(et,e(function(t,r){return r+1}),0,t)},ct=e(function(t,r){return l(Z,function(r){return T.eq(r,t)},r)}),nt=function(t){return"[]"===t.ctor},at=function(t){var r=t;return"::"===r.ctor?U(r._0):q},_t=_t||{};_t["::"]=j.cons;var it=e(function(t,r){return d(rt,e(function(r,e){return{ctor:"::",_0:t(r),_1:e}}),{ctor:"[]"},r)}),ut=e(function(t,r){var o=e(function(r,e){return t(r)?{ctor:"::",_0:r,_1:e}:e});return d(rt,o,{ctor:"[]"},r)}),st=c(function(t,r,e){var o=t(r);return"Just"===o.ctor?{ctor:"::",_0:o._0,_1:e}:e}),lt=e(function(t,r){return d(rt,st(t),{ctor:"[]"},r)}),dt=function(t){return d(et,e(function(t,r){return{ctor:"::",_0:t,_1:r}}),{ctor:"[]"},t)},mt=c(function(t,r,o){var c=e(function(r,e){var o=e;return"::"===o.ctor?{ctor:"::",_0:l(t,r,o._0),_1:e}:{ctor:"[]"}});return dt(d(et,c,{ctor:"::",_0:r,_1:{ctor:"[]"}},o))}),ft=e(function(t,r){return"[]"===r.ctor?t:d(rt,e(function(t,r){return{ctor:"::",_0:t,_1:r}}),r,t)}),pt=function(t){return d(rt,ft,{ctor:"[]"},t)},ht=e(function(t,r){return pt(l(it,t,r))}),bt=(e(function(t,r){var o=e(function(r,e){var o=e,c=o._0,n=o._1;return t(r)?{ctor:"_Tuple2",_0:{ctor:"::",_0:r,_1:c},_1:n}:{ctor:"_Tuple2",_0:c,_1:{ctor:"::",_0:r,_1:n}}});return d(rt,o,{ctor:"_Tuple2",_0:{ctor:"[]"},_1:{ctor:"[]"}},r)}),e(function(t,r){var o=r;if("[]"===o.ctor)return{ctor:"[]"};var c=e(function(r,e){return{ctor:"::",_0:t,_1:{ctor:"::",_0:r,_1:e}}}),n=d(rt,c,{ctor:"[]"},o._1);return{ctor:"::",_0:o._0,_1:n}}),c(function(t,r,e){for(;;){if(T.cmp(t,0)<1)return e;var o=r;if("[]"===o.ctor)return e;t-=1,r=o._1,e={ctor:"::",_0:o._0,_1:e}}})),gt=e(function(t,r){return dt(d(bt,t,r,{ctor:"[]"}))}),yt=c(function(t,r,e){if(T.cmp(r,0)<1)return{ctor:"[]"};var o={ctor:"_Tuple2",_0:r,_1:e};t:do{r:do{if("_Tuple2"!==o.ctor)break t;if("[]"===o._1.ctor)return e;if("::"!==o._1._1.ctor){if(1===o._0)break r;break t}switch(o._0){case 1:break r;case 2:return{ctor:"::",_0:o._1._0,_1:{ctor:"::",_0:o._1._1._0,_1:{ctor:"[]"}}};case 3:if("::"===o._1._1._1.ctor)return{ctor:"::",_0:o._1._0,_1:{ctor:"::",_0:o._1._1._0,_1:{ctor:"::",_0:o._1._1._1._0,_1:{ctor:"[]"}}}};break t;default:if("::"===o._1._1._1.ctor&&"::"===o._1._1._1._1.ctor){var c=o._1._1._1._0,n=o._1._1._0,a=o._1._0,_=o._1._1._1._1._0,i=o._1._1._1._1._1;return T.cmp(t,1e3)>0?{ctor:"::",_0:a,_1:{ctor:"::",_0:n,_1:{ctor:"::",_0:c,_1:{ctor:"::",_0:_,_1:l(gt,r-4,i)}}}}:{ctor:"::",_0:a,_1:{ctor:"::",_0:n,_1:{ctor:"::",_0:c,_1:{ctor:"::",_0:_,_1:d(yt,t+1,r-4,i)}}}}}break t}}while(0);return{ctor:"::",_0:o._1._0,_1:{ctor:"[]"}}}while(0);return e}),Ct=e(function(t,r){return d(yt,0,t,r)}),Tt=c(function(t,r,e){for(;;){if(T.cmp(r,0)<1)return t;t={ctor:"::",_0:e,_1:t},r-=1,e=e}}),vt=(e(function(t,r){return d(Tt,{ctor:"[]"},t,r)}),c(function(t,r,e){for(;;){if(!(T.cmp(t,r)<1))return e;var o={ctor:"::",_0:r,_1:e};t=t,r-=1,e=o}})),Mt=e(function(t,r){return d(vt,t,r,{ctor:"[]"})}),Bt=e(function(t,r){return d($,t,l(Mt,0,ot(r)-1),r)}),Dt=(y.append,y.length,y.slice,y.set,e(function(t,r){return T.cmp(0,t)<1&&T.cmp(t,y.length(r))<0?U(l(y.get,t,r)):q}),y.push,y.empty,e(function(t,r){var o=e(function(r,e){return t(r)?l(y.push,r,e):e});return d(y.foldl,o,y.empty,r)}),y.foldr,y.foldl,y.indexedMap,y.map,y.toList),St=(y.fromList,y.initialize),Ft=(e(function(t,r){return l(St,t,M(r))}),{crash:function(t){throw new Error(t)},log:e(function(t,r){var e=t+": "+T.toString(r),o=o||{};return o.stdout?o.stdout.write(e):console.log(e),r})}),wt=function(){function t(t,r){for(var e="";t>0;)1&t&&(e+=r),t>>=1,r+=r;return e}function r(t){return Lt("could not convert string '"+t+"' to an Int")}function o(t){return Lt("could not convert string '"+t+"' to a Float")}return{isEmpty:function(t){return 0===t.length},cons:e(function(t,r){return t+r}),uncons:function(t){var r=t[0];return r?U(T.Tuple2(T.chr(r),t.slice(1))):q},append:e(function(t,r){return t+r}),concat:function(t){return j.toArray(t).join("")},length:function(t){return t.length},map:e(function(t,r){for(var e=r.split(""),o=e.length;o--;)e[o]=t(T.chr(e[o]));return e.join("")}),filter:e(function(t,r){return r.split("").map(T.chr).filter(t).join("")}),reverse:function(t){return t.split("").reverse().join("")},foldl:c(function(t,r,e){for(var o=e.length,c=0;c-1}),startsWith:e(function(t,r){return 0===r.indexOf(t)}),endsWith:e(function(t,r){return r.length>=t.length&&r.lastIndexOf(t)===r.length-t.length}),indexes:e(function(t,r){var e=t.length;if(e<1)return j.Nil;for(var o=0,c=[];(o=r.indexOf(t,o))>-1;)c.push(o),o+=e;return j.fromArray(c)}),toInt:function(t){var e=t.length;if(0===e)return r(t);if("0"===(c=t[0])&&"x"===t[1]){for(var o=2;o"9"||c<"0"&&"-"!==c&&"+"!==c)return r(t);for(o=1;o-1&&T.cmp(o,Rt(r))<1}),kt=(l(xt,T.chr("A"),T.chr("Z")),l(xt,T.chr("a"),T.chr("z")),l(xt,T.chr("0"),T.chr("9"))),Pt=(l(xt,T.chr("0"),T.chr("7")),function(t){var r=t;return"Ok"===r.ctor?U(r._0):q}),At=e(function(t,r){var e=r;return"Ok"===e.ctor?e._0:t}),Lt=function(t){return{ctor:"Err",_0:t}},Nt=(e(function(t,r){var e=r;return"Ok"===e.ctor?t(e._0):Lt(e._0)}),function(t){return{ctor:"Ok",_0:t}}),Et=e(function(t,r){var e=r;return"Ok"===e.ctor?Nt(t(e._0)):Lt(e._0)}),Jt=c(function(t,r,e){var o={ctor:"_Tuple2",_0:r,_1:e};return"Ok"===o._0.ctor?"Ok"===o._1.ctor?Nt(l(t,o._0._0,o._1._0)):Lt(o._1._0):Lt(o._0._0)}),It=(n(function(t,r,e,o){var c={ctor:"_Tuple3",_0:r,_1:e,_2:o};return"Ok"===c._0.ctor?"Ok"===c._1.ctor?"Ok"===c._2.ctor?Nt(d(t,c._0._0,c._1._0,c._2._0)):Lt(c._2._0):Lt(c._1._0):Lt(c._0._0)}),a(function(t,r,e,o,c){var n={ctor:"_Tuple4",_0:r,_1:e,_2:o,_3:c};return"Ok"===n._0.ctor?"Ok"===n._1.ctor?"Ok"===n._2.ctor?"Ok"===n._3.ctor?Nt(m(t,n._0._0,n._1._0,n._2._0,n._3._0)):Lt(n._3._0):Lt(n._2._0):Lt(n._1._0):Lt(n._0._0)}),_(function(t,r,e,o,c,n){var a={ctor:"_Tuple5",_0:r,_1:e,_2:o,_3:c,_4:n};return"Ok"===a._0.ctor?"Ok"===a._1.ctor?"Ok"===a._2.ctor?"Ok"===a._3.ctor?"Ok"===a._4.ctor?Nt(f(t,a._0._0,a._1._0,a._2._0,a._3._0,a._4._0)):Lt(a._4._0):Lt(a._3._0):Lt(a._2._0):Lt(a._1._0):Lt(a._0._0)}),e(function(t,r){var e=r;return"Ok"===e.ctor?Nt(e._0):Lt(t(e._0))}),e(function(t,r){var e=r;return"Just"===e.ctor?Nt(e._0):Lt(t)}),wt.fromList),Ot=wt.toList,Vt=wt.toFloat,qt=wt.toInt,Ht=(wt.indexes,wt.indexes,wt.endsWith,wt.startsWith,wt.contains),Ut=(wt.all,wt.any,wt.toLower),zt=wt.toUpper,Wt=(wt.lines,wt.words,wt.trimRight,wt.trimLeft,wt.trim),jt=(wt.padRight,wt.padLeft),Gt=(wt.pad,wt.dropRight,wt.dropLeft),Yt=wt.right,Kt=(wt.left,wt.slice),Qt=(wt.repeat,wt.join),Xt=wt.split,$t=(wt.foldr,wt.foldl,wt.reverse,wt.filter,wt.map,wt.length),Zt=wt.concat,tr=wt.append,rr=(wt.uncons,wt.cons,wt.isEmpty),er=c(function(t,r,e){for(;;){var o=e;if("RBEmpty_elm_builtin"===o.ctor)return r;var c=t,n=d(t,o._1,o._2,d(er,t,r,o._4));t=c,r=n,e=o._3}}),or=function(t){return d(er,c(function(t,r,e){return{ctor:"::",_0:r,_1:e}}),{ctor:"[]"},t)},cr=function(t){return d(er,c(function(t,r,e){return{ctor:"::",_0:{ctor:"_Tuple2",_0:t,_1:r},_1:e}}),{ctor:"[]"},t)},nr=c(function(t,r,e){for(;;){var o=e;if("RBEmpty_elm_builtin"===o.ctor)return r;var c=t,n=d(t,o._1,o._2,d(nr,t,r,o._3));t=c,r=n,e=o._4}}),ar=_(function(t,r,o,n,a,_){var i=c(function(e,c,n){for(;;){var a=n,_=a._1,i=a._0,u=i;if("[]"===u.ctor)return{ctor:"_Tuple2",_0:i,_1:d(o,e,c,_)};var s=u._1,l=u._0._1,f=u._0._0;if(!(T.cmp(f,e)<0))return T.cmp(f,e)>0?{ctor:"_Tuple2",_0:i,_1:d(o,e,c,_)}:{ctor:"_Tuple2",_0:s,_1:m(r,f,l,c,_)};e=e,c=c,n={ctor:"_Tuple2",_0:s,_1:d(t,f,l,_)}}}),u=d(nr,i,{ctor:"_Tuple2",_0:cr(n),_1:_},a),s=u._0,l=u._1;return d(et,e(function(r,e){var o=r;return d(t,o._0,o._1,e)}),l,s)}),_r=n(function(t,r,e,o){return Ft.crash(Zt({ctor:"::",_0:"Internal red-black tree invariant violated, expected ",_1:{ctor:"::",_0:t,_1:{ctor:"::",_0:" and got ",_1:{ctor:"::",_0:D(r),_1:{ctor:"::",_0:"/",_1:{ctor:"::",_0:e,_1:{ctor:"::",_0:"/",_1:{ctor:"::",_0:o,_1:{ctor:"::",_0:"\nPlease report this bug to ",_1:{ctor:"[]"}}}}}}}}}}))}),ir=function(t){var r=t;t:do{if("RBNode_elm_builtin"===r.ctor){if("BBlack"===r._0.ctor)return!0;break t}if("LBBlack"===r._0.ctor)return!0;break t}while(0);return!1},ur=e(function(t,r){for(;;){var e=r;if("RBEmpty_elm_builtin"===e.ctor)return t;t=l(ur,t+1,e._4),r=e._3}}),sr=e(function(t,r){t:for(;;){var e=r;if("RBEmpty_elm_builtin"===e.ctor)return q;switch(l(k,t,e._1).ctor){case"LT":t=t,r=e._3;continue t;case"EQ":return U(e._2);default:t=t,r=e._4;continue t}}}),lr=e(function(t,r){return"Just"===l(sr,t,r).ctor}),dr=c(function(t,r,e){for(;;){var o=e;if("RBEmpty_elm_builtin"===o.ctor)return{ctor:"_Tuple2",_0:t,_1:r};t=o._1,r=o._2,e=o._4}}),mr={ctor:"NBlack"},fr={ctor:"BBlack"},pr={ctor:"Black"},hr={ctor:"Red"},br=function(t){switch(t.ctor){case"BBlack":return pr;case"Black":return hr;case"Red":return mr;default:return Ft.crash("Can't make a negative black node less black!")}},gr={ctor:"LBBlack"},yr={ctor:"LBlack"},Cr=function(t){return{ctor:"RBEmpty_elm_builtin",_0:t}},Tr=Cr(yr),vr=function(t){return T.eq(t,Tr)},Mr=a(function(t,r,e,o,c){return{ctor:"RBNode_elm_builtin",_0:t,_1:r,_2:e,_3:o,_4:c}}),Br=function(t){var r=t;return"RBNode_elm_builtin"===r.ctor?f(Mr,br(r._0),r._1,r._2,r._3,r._4):Cr(yr)},Dr=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return f(Mr,br(t),o,c,f(Mr,pr,r,e,_,i),f(Mr,pr,n,a,u,s))}}}}}}}}}}},Sr=function(t){var r=t;return"RBEmpty_elm_builtin"===r.ctor?Ft.crash("can't make a Leaf red"):f(Mr,hr,r._1,r._2,r._3,r._4)},Fr=a(function(t,r,e,o,c){var n=f(Mr,t,r,e,o,c);return function(t){var r=n;if("RBNode_elm_builtin"===r.ctor){var e=r._0;return T.eq(e,pr)||T.eq(e,fr)}return!0}()?function(t){var r=t;t:do{r:do{e:do{o:do{c:do{n:do{a:do{if("RBNode_elm_builtin"!==r.ctor)break t;if("RBNode_elm_builtin"===r._3.ctor)if("RBNode_elm_builtin"===r._4.ctor)switch(r._3._0.ctor){case"Red":switch(r._4._0.ctor){case"Red":if("RBNode_elm_builtin"===r._3._3.ctor&&"Red"===r._3._3._0.ctor)break a;if("RBNode_elm_builtin"===r._3._4.ctor&&"Red"===r._3._4._0.ctor)break n;if("RBNode_elm_builtin"===r._4._3.ctor&&"Red"===r._4._3._0.ctor)break c;if("RBNode_elm_builtin"===r._4._4.ctor&&"Red"===r._4._4._0.ctor)break o;break t;case"NBlack":if("RBNode_elm_builtin"===r._3._3.ctor&&"Red"===r._3._3._0.ctor)break a;if("RBNode_elm_builtin"===r._3._4.ctor&&"Red"===r._3._4._0.ctor)break n;if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._4._3.ctor&&"Black"===r._4._3._0.ctor&&"RBNode_elm_builtin"===r._4._4.ctor&&"Black"===r._4._4._0.ctor)break e;break t;default:if("RBNode_elm_builtin"===r._3._3.ctor&&"Red"===r._3._3._0.ctor)break a;if("RBNode_elm_builtin"===r._3._4.ctor&&"Red"===r._3._4._0.ctor)break n;break t}case"NBlack":switch(r._4._0.ctor){case"Red":if("RBNode_elm_builtin"===r._4._3.ctor&&"Red"===r._4._3._0.ctor)break c;if("RBNode_elm_builtin"===r._4._4.ctor&&"Red"===r._4._4._0.ctor)break o;if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._3._3.ctor&&"Black"===r._3._3._0.ctor&&"RBNode_elm_builtin"===r._3._4.ctor&&"Black"===r._3._4._0.ctor)break r;break t;case"NBlack":if("BBlack"===r._0.ctor){if("RBNode_elm_builtin"===r._4._3.ctor&&"Black"===r._4._3._0.ctor&&"RBNode_elm_builtin"===r._4._4.ctor&&"Black"===r._4._4._0.ctor)break e;if("RBNode_elm_builtin"===r._3._3.ctor&&"Black"===r._3._3._0.ctor&&"RBNode_elm_builtin"===r._3._4.ctor&&"Black"===r._3._4._0.ctor)break r;break t}break t;default:if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._3._3.ctor&&"Black"===r._3._3._0.ctor&&"RBNode_elm_builtin"===r._3._4.ctor&&"Black"===r._3._4._0.ctor)break r;break t}default:switch(r._4._0.ctor){case"Red":if("RBNode_elm_builtin"===r._4._3.ctor&&"Red"===r._4._3._0.ctor)break c;if("RBNode_elm_builtin"===r._4._4.ctor&&"Red"===r._4._4._0.ctor)break o;break t;case"NBlack":if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._4._3.ctor&&"Black"===r._4._3._0.ctor&&"RBNode_elm_builtin"===r._4._4.ctor&&"Black"===r._4._4._0.ctor)break e;break t;default:break t}}else switch(r._3._0.ctor){case"Red":if("RBNode_elm_builtin"===r._3._3.ctor&&"Red"===r._3._3._0.ctor)break a;if("RBNode_elm_builtin"===r._3._4.ctor&&"Red"===r._3._4._0.ctor)break n;break t;case"NBlack":if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._3._3.ctor&&"Black"===r._3._3._0.ctor&&"RBNode_elm_builtin"===r._3._4.ctor&&"Black"===r._3._4._0.ctor)break r;break t;default:break t}else{if("RBNode_elm_builtin"!==r._4.ctor)break t;switch(r._4._0.ctor){case"Red":if("RBNode_elm_builtin"===r._4._3.ctor&&"Red"===r._4._3._0.ctor)break c;if("RBNode_elm_builtin"===r._4._4.ctor&&"Red"===r._4._4._0.ctor)break o;break t;case"NBlack":if("BBlack"===r._0.ctor&&"RBNode_elm_builtin"===r._4._3.ctor&&"Black"===r._4._3._0.ctor&&"RBNode_elm_builtin"===r._4._4.ctor&&"Black"===r._4._4._0.ctor)break e;break t;default:break t}}}while(0);return Dr(r._0)(r._3._3._1)(r._3._3._2)(r._3._1)(r._3._2)(r._1)(r._2)(r._3._3._3)(r._3._3._4)(r._3._4)(r._4)}while(0);return Dr(r._0)(r._3._1)(r._3._2)(r._3._4._1)(r._3._4._2)(r._1)(r._2)(r._3._3)(r._3._4._3)(r._3._4._4)(r._4)}while(0);return Dr(r._0)(r._1)(r._2)(r._4._3._1)(r._4._3._2)(r._4._1)(r._4._2)(r._3)(r._4._3._3)(r._4._3._4)(r._4._4)}while(0);return Dr(r._0)(r._1)(r._2)(r._4._1)(r._4._2)(r._4._4._1)(r._4._4._2)(r._3)(r._4._3)(r._4._4._3)(r._4._4._4)}while(0);return f(Mr,pr,r._4._3._1,r._4._3._2,f(Mr,pr,r._1,r._2,r._3,r._4._3._3),f(Fr,pr,r._4._1,r._4._2,r._4._3._4,Sr(r._4._4)))}while(0);return f(Mr,pr,r._3._4._1,r._3._4._2,f(Fr,pr,r._3._1,r._3._2,Sr(r._3._3),r._3._4._3),f(Mr,pr,r._1,r._2,r._3._4._4,r._4))}while(0);return t}(n):n}),wr=a(function(t,r,e,o,c){return ir(o)||ir(c)?f(Fr,function(t){switch(t.ctor){case"Black":return fr;case"Red":return pr;case"NBlack":return hr;default:return Ft.crash("Can't make a double black node more black!")}}(t),r,e,Br(o),Br(c)):f(Mr,t,r,e,o,c)}),Rr=a(function(t,r,e,o,c){var n=c;return"RBEmpty_elm_builtin"===n.ctor?d(xr,t,o,c):f(wr,t,r,e,o,f(Rr,n._0,n._1,n._2,n._3,n._4))}),xr=c(function(t,r,e){var o={ctor:"_Tuple2",_0:r,_1:e};if("RBEmpty_elm_builtin"!==o._0.ctor){if("RBEmpty_elm_builtin"===o._1.ctor){var c=o._1._0,n=o._0._0,a={ctor:"_Tuple3",_0:t,_1:n,_2:c};return"_Tuple3"===a.ctor&&"Black"===a._0.ctor&&"Red"===a._1.ctor&&"LBlack"===a._2.ctor?f(Mr,pr,o._0._1,o._0._2,o._0._3,o._0._4):m(_r,"Black/Red/LBlack",t,D(n),D(c))}var _=o._0._2,i=o._0._4,u=o._0._1,s=f(Rr,o._0._0,u,_,o._0._3,i),l=d(dr,u,_,i),p=l._0,h=l._1;return f(wr,t,p,h,s,e)}if("RBEmpty_elm_builtin"!==o._1.ctor){var b=o._1._0,g=o._0._0,y={ctor:"_Tuple3",_0:t,_1:g,_2:b};return"_Tuple3"===y.ctor&&"Black"===y._0.ctor&&"LBlack"===y._1.ctor&&"Red"===y._2.ctor?f(Mr,pr,o._1._1,o._1._2,o._1._3,o._1._4):m(_r,"Black/LBlack/Red",t,D(g),D(b))}switch(t.ctor){case"Red":return Cr(yr);case"Black":return Cr(gr);default:return Ft.crash("cannot have bblack or nblack nodes at this point")}}),kr=e(function(t,r){var e=r;if("RBEmpty_elm_builtin"===e.ctor)return Cr(yr);var o=e._1;return f(Mr,e._0,o,l(t,o,e._2),l(kr,t,e._3),l(kr,t,e._4))}),Pr={ctor:"Same"},Ar={ctor:"Remove"},Lr={ctor:"Insert"},Nr=c(function(t,r,e){var o,c=function(e){var o=e;if("RBEmpty_elm_builtin"===o.ctor){var n=r(q);return"Nothing"===n.ctor?{ctor:"_Tuple2",_0:Pr,_1:Tr}:{ctor:"_Tuple2",_0:Lr,_1:f(Mr,hr,t,n._0,Tr,Tr)}}var a=o._2,_=o._4,i=o._3,u=o._1,s=o._0;switch(l(k,t,u).ctor){case"EQ":var m=r(U(a));return"Nothing"===m.ctor?{ctor:"_Tuple2",_0:Ar,_1:d(xr,s,i,_)}:{ctor:"_Tuple2",_0:Pr,_1:f(Mr,s,u,m._0,i,_)};case"LT":var p=c(i),h=p._0,b=p._1;switch(h.ctor){case"Same":return{ctor:"_Tuple2",_0:Pr,_1:f(Mr,s,u,a,b,_)};case"Insert":return{ctor:"_Tuple2",_0:Lr,_1:f(Fr,s,u,a,b,_)};default:return{ctor:"_Tuple2",_0:Ar,_1:f(wr,s,u,a,b,_)}}default:var g=c(_),y=(h=g._0,g._1);switch(h.ctor){case"Same":return{ctor:"_Tuple2",_0:Pr,_1:f(Mr,s,u,a,i,y)};case"Insert":return{ctor:"_Tuple2",_0:Lr,_1:f(Fr,s,u,a,i,y)};default:return{ctor:"_Tuple2",_0:Ar,_1:f(wr,s,u,a,i,y)}}}},n=c(e),a=n._0,_=n._1;switch(a.ctor){case"Same":return _;case"Insert":return function(t){var r=t;return"RBNode_elm_builtin"===r.ctor&&"Red"===r._0.ctor?f(Mr,pr,r._1,r._2,r._3,r._4):t}(_);default:return"RBEmpty_elm_builtin"===(o=_).ctor?Cr(yr):f(Mr,pr,o._1,o._2,o._3,o._4)}}),Er=c(function(t,r,e){return d(Nr,t,M(U(r)),e)}),Jr=e(function(t,r){return d(Er,t,r,Tr)}),Ir=e(function(t,r){return d(nr,Er,r,t)}),Or=e(function(t,r){var e=c(function(r,e,o){return l(t,r,e)?d(Er,r,e,o):o});return d(nr,e,Tr,r)}),Vr=e(function(t,r){return l(Or,e(function(t,e){return l(lr,t,r)}),t)}),qr=e(function(t,r){var e=c(function(r,e,o){var c=o,n=c._1,a=c._0;return l(t,r,e)?{ctor:"_Tuple2",_0:d(Er,r,e,a),_1:n}:{ctor:"_Tuple2",_0:a,_1:d(Er,r,e,n)}});return d(nr,e,{ctor:"_Tuple2",_0:Tr,_1:Tr},r)}),Hr=function(t){return d(et,e(function(t,r){var e=t;return d(Er,e._0,e._1,r)}),Tr,t)},Ur=e(function(t,r){return d(Nr,t,M(q),r)}),zr=e(function(t,r){return d(nr,c(function(t,r,e){return l(Ur,t,e)}),t,r)}),Wr=function(){function t(t,r){return{ctor:"",tag:"map-many",func:t,decoders:r}}function r(t){return{tag:"ok",value:t}}function o(t,r){return{tag:"primitive",type:t,value:r}}function l(t,r){return{tag:"index",index:t,rest:r}}function d(t,r){return{tag:"field",field:t,rest:r}}function l(t,r){return{tag:"index",index:t,rest:r}}function m(t,e){var c=function t(e,c){switch(e.tag){case"bool":return"boolean"==typeof c?r(c):o("a Bool",c);case"int":return"number"!=typeof c?o("an Int",c):-2147483647=c.length?o("a longer array. Need index "+s+" but there are only "+c.length+" entries",c):"ok"===(v=t(e.decoder,c[s])).tag?v:l(s,v):o("an array",c);case"key-value":if("object"!=typeof c||null===c||c instanceof Array)return o("an object",c);var m=j.Nil;for(var f in c){if("ok"!==(v=t(e.decoder,c[f])).tag)return d(f,v);var p=T.Tuple2(f,v.value);m=j.Cons(p,m)}return r(m);case"map-many":var h=e.func,b=e.decoders;for(a=0;a",tag:"null",value:t}},decodePrimitive:function(t){return{ctor:"",tag:t}},decodeContainer:e(function(t,r){return{ctor:"",tag:t,decoder:r}}),decodeField:e(function(t,r){return{ctor:"",tag:"field",field:t,decoder:r}}),decodeIndex:e(function(t,r){return{ctor:"",tag:"index",index:t,decoder:r}}),map1:e(function(r,e){return t(r,[e])}),map2:c(function(r,e,o){return t(r,[e,o])}),map3:n(function(r,e,o,c){return t(r,[e,o,c])}),map4:a(function(r,e,o,c,n){return t(r,[e,o,c,n])}),map5:_(function(r,e,o,c,n,a){return t(r,[e,o,c,n,a])}),map6:i(function(r,e,o,c,n,a,_){return t(r,[e,o,c,n,a,_])}),map7:u(function(r,e,o,c,n,a,_,i){return t(r,[e,o,c,n,a,_,i])}),map8:s(function(r,e,o,c,n,a,_,i,u){return t(r,[e,o,c,n,a,_,i,u])}),decodeKeyValuePairs:function(t){return{ctor:"",tag:"key-value",decoder:t}},andThen:e(function(t,r){return{ctor:"",tag:"andThen",decoder:r,callback:t}}),fail:function(t){return{ctor:"",tag:"fail",msg:t}},succeed:function(t){return{ctor:"",tag:"succeed",msg:t}},oneOf:function(t){return{ctor:"",tag:"oneOf",decoders:t}},identity:function(t){return t},encodeNull:null,encodeArray:y.toJSArray,encodeList:j.toArray,encodeObject:function(t){for(var r={};"[]"!==t.ctor;){var e=t._0;r[e._0]=e._1,t=t._1}return r},equality:f}}(),jr=Wr.encodeList,Gr=(Wr.encodeArray,Wr.encodeObject),Yr=Wr.encodeNull,Kr=Wr.identity,Qr=Wr.identity,Xr=Wr.identity,$r=Wr.identity,Zr=(Wr.encode,Wr.decodeNull),te=Wr.decodePrimitive("value"),re=Wr.andThen,ee=Wr.fail,oe=Wr.succeed,ce=Wr.run,ne=Wr.runOnString,ae=(Wr.map8,Wr.map7,Wr.map6,Wr.map5,Wr.map4,Wr.map3,Wr.map2),_e=Wr.map1,ie=Wr.oneOf,ue=function(t){return l(Wr.decodeContainer,"maybe",t)},se=(Wr.decodeIndex,Wr.decodeField),le=e(function(t,r){return d(rt,se,r,t)}),de=Wr.decodeKeyValuePairs,me=function(t){return l(Wr.decodeContainer,"list",t)},fe=function(t){return ie({ctor:"::",_0:Zr(q),_1:{ctor:"::",_0:l(_e,U,t),_1:{ctor:"[]"}}})},pe=Wr.decodePrimitive("float"),he=Wr.decodePrimitive("int"),be=Wr.decodePrimitive("bool"),ge=Wr.decodePrimitive("string"),ye=(Ft.crash,Ft.log),Ce=(e(function(t,r){var e=r;return{ctor:"_Tuple2",_0:e._0,_1:t(e._1)}}),e(function(t,r){var e=r;return{ctor:"_Tuple2",_0:t(e._0),_1:e._1}}),function(t){return t._1}),Te=function(t){return t._0},ve=function(){function t(t,r){return function(t){}}function r(t,r,e,c){var _,i={},s=a(Me.nativeBinding(function(r){var o=t._0;_=c(d,o);var n=t._1,a=e(o);u(i,n,a),r(Me.succeed(o))}),function(t,o){return Me.nativeBinding(function(c){var n=l(r,t,o);o=n._0,_(o);var a=n._1,s=e(o);u(i,a,s),c(Me.succeed(o))})});function d(t){Me.rawSend(s,t)}var m=function(t,r){var e;for(var c in o){var a=o[c];a.isForeign&&((e=e||{})[c]="cmd"===a.tag?h(c):g(c,r)),t[c]=n(a,r)}return e}(i,d);return m?{ports:m}:{}}var o={};function n(t,r){var e={main:r,self:void 0},o=t.tag,c=t.onEffects,n=t.onSelfMsg,_=a(t.init,function(t,r){if("self"===t.ctor)return d(n,e,t._0,r);var a=t._0;switch(o){case"cmd":return d(c,e,a.cmds,r);case"sub":return d(c,e,a.subs,r);case"fx":return m(c,e,a.cmds,a.subs,r)}});return e.self=_,_}function a(t,r){var e=Me.andThen,o=l(e,function t(o){var c=Me.receive(function(t){return r(t,o)});return l(e,t,c)},t);return Me.rawSpawn(o)}function _(t){return function(r){return{type:"leaf",home:t,value:r}}}function i(t){return{type:"node",branches:t}}function u(t,r,e){var o={};for(var c in s(!0,r,o,null),s(!1,e,o,null),t){var n=c in o?o[c]:{cmds:j.Nil,subs:j.Nil};Me.rawSend(t[c],{ctor:"fx",_0:n})}}function s(t,r,e,c){switch(r.type){case"leaf":var n=r.home,a=function(t,r,e,c){return l(t?o[r].cmdMap:o[r].subMap,function(t){for(var r=e;r;)t=r.tagger(t),r=r.rest;return t},c)}(t,n,c,r.value);return void(e[n]=function(t,r,e){return e=e||{cmds:j.Nil,subs:j.Nil},t?(e.cmds=j.Cons(r,e.cmds),e):(e.subs=j.Cons(r,e.subs),e)}(t,a,e[n]));case"node":for(var _=r.branches;"[]"!==_.ctor;)s(t,_._0,e,c),_=_._1;return;case"map":return void s(t,r.tree,e,{tagger:r.tagger,rest:c})}}function f(t){if(t in o)throw new Error("There can only be one port named `"+t+"`, but your program has multiple.")}var p=e(function(t,r){return r});function h(t){var r=[],e=o[t].converter,n=Me.succeed(null);return o[t].init=n,o[t].onEffects=c(function(t,o,c){for(;"[]"!==o.ctor;){for(var a=r,_=e(o._0),i=0;i=0&&r.splice(e,1)}}}var b=e(function(t,r){return function(e){return t(r(e))}});function g(t,r){var e=[],n=j.Nil,a=o[t].converter,_=function(t,r,o){for(var c=s(t,r,o),n=0;n0,c=T.cmp(t,0)>0&&T.cmp(r,0)>0,n=l(Y,r,e),a=l(Ct,t,e);return c&&o?{ctor:"::",_0:a,_1:d(Xo,t,r,n)}:{ctor:"[]"}}),$o=(e(function(t,r){return d(Xo,t,t,r)}),c(function(t,r,e){var o=T.cmp(t,0)>0&&T.cmp(r,0)>0,c=l(Y,r,e),n=l(Ct,t,e),a=T.eq(t,ot(n));return o&&a?{ctor:"::",_0:n,_1:d($o,t,r,c)}:{ctor:"[]"}})),Zo=(e(function(t,r){return d($o,t,t,r)}),K(a(function(t,r,e,o,c){return{ctor:"_Tuple5",_0:t,_1:r,_2:e,_3:o,_4:c}})),Q(n(function(t,r,e,o){return{ctor:"_Tuple4",_0:t,_1:r,_2:e,_3:o}})),X(c(function(t,r,e){return{ctor:"_Tuple3",_0:t,_1:r,_2:e}})),$(e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}})),e(function(t,r){for(;;){var e={ctor:"_Tuple2",_0:t,_1:r};if("[]"===e._0.ctor)return!0;if("[]"===e._1.ctor)return!1;var o=e._1._1;T.eq(e._0._0,e._1._0)?(t=e._0._1,r=o):(t=t,r=o)}}),e(function(t,r){var e={ctor:"_Tuple2",_0:t,_1:r};return"[]"===e._0.ctor||"[]"!==e._1.ctor&&T.eq(e._0._0,e._1._0)&&l(Zo,e._0._1,e._1._1)})),tc=(e(function(t,r){return l(Zo,dt(t),dt(r))}),c(function(t,r,e){for(;;){var o=e;if("[]"===o.ctor)return!1;var c=o._1;if(T.eq(o._0,t))return l(Zo,r,c);t=t,r=r,e=c}})),rc=(e(function(t,r){var e=t;return"[]"===e.ctor||d(tc,e._0,e._1,r)}),function(t){var r=t;if("[]"===r.ctor)return{ctor:"[]"};var e=r._1,o=r._0;return{ctor:"::",_0:{ctor:"_Tuple2",_0:o,_1:e},_1:l(it,function(t){var r=t;return{ctor:"_Tuple2",_0:r._0,_1:{ctor:"::",_0:o,_1:r._1}}},rc(e))}}),ec=e(function(t,r){var e=r;if("::"===e.ctor){var o=e._0;return{ctor:"::",_0:{ctor:"::",_0:t,_1:o},_1:{ctor:"::",_0:o,_1:e._1}}}return{ctor:"[]"}}),oc=(l(rt,ec,{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}),l(rt,e(function(t,r){return{ctor:"::",_0:{ctor:"[]"},_1:l(it,e(function(t,r){return{ctor:"::",_0:t,_1:r}})(t),r)}}),{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}),n(function(t,r,e,o){for(;;){var c=o;if("[]"===c.ctor)return dt(nt(r)?t:dt({ctor:"::",_0:r,_1:t}));if("[]"===c._1.ctor)return dt({ctor:"::",_0:dt({ctor:"::",_0:c._0,_1:r}),_1:t});var n=c._1,a=c._0;l(e,a,c._1._0)?(t=t,r={ctor:"::",_0:a,_1:r},e=e,o=n):(t={ctor:"::",_0:dt({ctor:"::",_0:a,_1:r}),_1:t},r={ctor:"[]"},e=e,o=n)}})),cc=(e(function(t,r){return m(oc,{ctor:"[]"},{ctor:"[]"},t,r)}),e(function(t,r){var o=e(function(t,r){var e=r;return"Nothing"===e.ctor?q:"[]"===e._0.ctor?q:T.eq(t,e._0._0)?U(e._0._1):q});return d(et,o,U(r),t)}),e(function(t,r){return{ctor:"_Tuple2",_0:l(Ct,t,r),_1:l(Y,t,r)}})),nc=c(function(t,r,e){for(;;){var o={ctor:"_Tuple2",_0:t,_1:r};if("_Tuple2"!==o.ctor||"::"!==o._0.ctor||"::"!==o._1.ctor)return dt(e);var c=l(cc,o._0._0,r),n=c._0,a=c._1;t=o._0._1,r=a,e={ctor:"::",_0:n,_1:e}}}),ac=(e(function(t,r){return d(nc,t,r,{ctor:"[]"})}),e(function(t,r){var e=t(r);return"Nothing"===e.ctor?{ctor:"[]"}:{ctor:"::",_0:e._0._0,_1:l(ac,t,e._0._1)}})),_c=(c(function(t,r,o){return d(rt,e(function(r,e){var o=e,c=l(t,o._0,r);return{ctor:"_Tuple2",_0:c._0,_1:{ctor:"::",_0:c._1,_1:o._1}}}),{ctor:"_Tuple2",_0:r,_1:{ctor:"[]"}},o)}),c(function(t,r,o){var c=d(et,e(function(r,e){var o=e,c=l(t,o._0,r);return{ctor:"_Tuple2",_0:c._0,_1:{ctor:"::",_0:c._1,_1:o._1}}}),{ctor:"_Tuple2",_0:r,_1:{ctor:"[]"}},o),n=c._0,a=c._1;return{ctor:"_Tuple2",_0:n,_1:dt(a)}}),e(function(t,r){var e=r;if("[]"===e.ctor)return{ctor:"[]"};if("[]"===e._1.ctor)return{ctor:"::",_0:e._0,_1:{ctor:"[]"}};var o=l(_c,t,e._1);return"::"===o.ctor?{ctor:"::",_0:l(t,e._0,o._0),_1:o}:{ctor:"[]"}})),ic=c(function(t,r,e){var o=e;if("[]"===o.ctor)return{ctor:"::",_0:r,_1:{ctor:"[]"}};var c=d(ic,t,r,o._1);return"::"===c.ctor?{ctor:"::",_0:l(t,o._0,c._0),_1:c}:{ctor:"[]"}}),uc=(e(function(t,r){var e=r;return"[]"===e.ctor?{ctor:"[]"}:d(mt,t,e._0,e._1)}),c(function(t,r,o){var c=e(function(r,e){var o=e,c=o._0;return{ctor:"_Tuple2",_0:c-1,_1:d(t,c,r,o._1)}});return Ce(d(rt,c,{ctor:"_Tuple2",_0:ot(o)-1,_1:r},o))}),c(function(t,r,o){var c=e(function(r,e){var o=e,c=o._0;return{ctor:"_Tuple2",_0:c+1,_1:d(t,c,r,o._1)}});return Ce(d(et,c,{ctor:"_Tuple2",_0:0,_1:r},o))}),e(function(t,r){var o=e(function(r,e){return U("Nothing"===(o=e).ctor?r:l(t,r,o._0));var o});return d(rt,o,q,r)}),e(function(t,r){var o=e(function(r,e){return U("Nothing"===(o=e).ctor?r:l(t,o._0,r));var o});return d(et,o,q,r)}),e(function(t,r){return d(et,e(function(t,r){return{ctor:"::",_0:t,_1:r}}),r,t)})),sc=(c(function(t,r,e){t:for(;;){var o={ctor:"_Tuple2",_0:r,_1:e};if("::"===o._0.ctor){if("::"===o._1.ctor){t={ctor:"::",_0:o._1._0,_1:{ctor:"::",_0:o._0._0,_1:t}},r=o._0._1,e=o._1._1;continue t}return l(uc,t,r)}return l(uc,t,e)}})({ctor:"[]"}),function(t){var r=t;return"[]"===r.ctor?{ctor:"::",_0:{ctor:"[]"},_1:{ctor:"[]"}}:l(ht,function(t){var r=t;return l(it,e(function(t,r){return{ctor:"::",_0:t,_1:r}})(r._0),sc(r._1))},rc(r))}),lc=(e(function(t,r){return l(ct,t,sc(r))}),e(function(t,r){return l(ut,function(r){return!t(r)},r)})),dc=(e(function(t,r){if(T.cmp(t,0)<0)return r;var e=function(t){var r=t;return"::"===r.ctor?U(r._1):q}(l(Y,t,r)),o=l(Ct,t,r),c=e;return"Nothing"===c.ctor?r:l(ft,o,c._0)}),e(function(t,r){var o=e(function(r,e){var o=r,c=e,n=l(t,o._0,c._0);return"EQ"===n.ctor?l(k,o._1,c._1):n}),c=l(Bt,e(function(t,r){return{ctor:"_Tuple2",_0:r,_1:t}}),r);return l(it,Te,l(G,o,c))}),e(function(t,r){var e=r;if("[]"===e.ctor)return{ctor:"[]"};var o=e._1,c=e._0;return T.eq(t,c)?o:{ctor:"::",_0:c,_1:l(dc,t,o)}})),mc=(c(function(t,r,o){return l(Bt,e(function(e,o){return t(e)?r(o):o}),o)}),c(function(t,r,e){if(T.cmp(t,0)<0)return e;var o=l(Y,t,e),c=l(Ct,t,e),n=o;return"::"===n.ctor?l(N["++"],c,{ctor:"::",_0:r(n._0),_1:n._1}):e})),fc=(e(function(t,r){return l(mc,t,M(r))}),c(function(t,r,e){return l(it,function(e){return t(e)?r(e):e},e)})),pc=c(function(t,r,e){return d(fc,t,M(r),e)}),hc=function(t){return l(et,e(function(r,e){return t(r)?e+1:e}),0)},bc=c(function(t,r,e){for(;;){var o=e;if("[]"===o.ctor)return q;if(r(o._0))return U(t);t+=1,r=r,e=o._1}})(0),gc=(e(function(t,r){return l(z,function(t){return l(cc,t,r)},l(bc,t,r))}),e(function(t,r){for(;;){var e=r;if("[]"===e.ctor)return q;var o=e._0;if(t(o))return U(o);t=t,r=e._1}})),yc=(e(function(t,r){return d(et,e(function(r,e){return{ctor:"::",_0:t(r),_1:e}}),{ctor:"[]"},r)}),ht),Cc=(c(function(t,r,e){return l(yc,function(r){return l(yc,function(e){return{ctor:"::",_0:l(t,r,e),_1:{ctor:"[]"}}},e)},r)}),n(function(t,r,e,o){return l(yc,function(r){return l(yc,function(e){return l(yc,function(o){return{ctor:"::",_0:d(t,r,e,o),_1:{ctor:"[]"}}},o)},e)},r)}),a(function(t,r,e,o,c){return l(yc,function(r){return l(yc,function(e){return l(yc,function(o){return l(yc,function(c){return{ctor:"::",_0:m(t,r,e,o,c),_1:{ctor:"[]"}}},c)},o)},e)},r)}),e(function(t,r){return d($,e(function(t,r){return t(r)}),r,t)}),n(function(t,r,e,o){for(;;){var c=e;if("[]"===c.ctor)return dt(o);var n=c._1,a=c._0,_=t(a);l(ho,_,r)?(t=t,r=r,e=n,o=o):(t=t,r=l(yo,_,r),e=n,o={ctor:"::",_0:a,_1:o})}})),Tc=e(function(t,r){return m(Cc,t,go,r,{ctor:"[]"})}),vc=(e(function(t,r){return T.eq(ot(r),ot(l(Tc,t,r)))}),e(function(t,r){for(;;){var e=r;if("[]"===e.ctor)return{ctor:"[]"};if(!t(e._0))return r;t=t,r=e._1}})),Mc=function(t){return e(function(r,e){for(;;){var o=e;if("[]"===o.ctor)return dt(r);var c=o._0;if(!t(c))return dt(r);r={ctor:"::",_0:c,_1:r},e=o._1}})({ctor:"[]"})},Bc=e(function(t,r){return{ctor:"_Tuple2",_0:l(Mc,t,r),_1:l(vc,t,r)}}),Dc=e(function(t,r){var e=r;if("[]"===e.ctor)return{ctor:"[]"};var o=e._0,c=l(Bc,t(o),e._1),n=c._0,a=c._1;return{ctor:"::",_0:{ctor:"::",_0:o,_1:n},_1:l(Dc,t,a)}}),Sc=(Dc(e(function(t,r){return T.eq(t,r)})),e(function(t,r){var o=e(function(r,e){var o=e,c=o._1,n=t(r);return T.cmp(n,c)<0?{ctor:"_Tuple2",_0:r,_1:n}:{ctor:"_Tuple2",_0:o._0,_1:c}}),c=r;if("::"===c.ctor){if("[]"===c._1.ctor)return U(c._0);var n=c._0;return U(Te(d(et,o,{ctor:"_Tuple2",_0:n,_1:t(n)},c._1)))}return q}),e(function(t,r){var o=e(function(r,e){var o=e,c=o._1,n=t(r);return T.cmp(n,c)>0?{ctor:"_Tuple2",_0:r,_1:n}:{ctor:"_Tuple2",_0:o._0,_1:c}}),c=r;if("::"===c.ctor){if("[]"===c._1.ctor)return U(c._0);var n=c._0;return U(Te(d(et,o,{ctor:"_Tuple2",_0:n,_1:t(n)},c._1)))}return q}),function(t){var r=t;return"[]"===r.ctor?q:U({ctor:"_Tuple2",_0:r._0,_1:r._1})}),Fc=(c(function(t,r,e){for(;;){if(T.eq(t,r)||T.cmp(t,0)<0)return e;if(!(T.cmp(t,r)>0)){var o=l(cc,t,e),c=o._0,n=o._1,a=l(cc,r-t,n),_=a._0,i=a._1,u={ctor:"_Tuple2",_0:Sc(_),_1:Sc(i)};return"_Tuple2"===u.ctor&&"Just"===u._0.ctor&&"_Tuple2"===u._0._0.ctor&&"Just"===u._1.ctor&&"_Tuple2"===u._1._0.ctor?pt({ctor:"::",_0:c,_1:{ctor:"::",_0:{ctor:"::",_0:u._1._0._0,_1:u._0._0._1},_1:{ctor:"::",_0:{ctor:"::",_0:u._0._0._0,_1:u._1._0._1},_1:{ctor:"[]"}}}}):e}var s=t;t=r,r=s,e=e}}),c(function(t,r,e){for(;;){if(!(T.cmp(r,0)>0))return t;t=l(uc,e,t),r-=1,e=e}})),wc=(e(function(t,r){var e=ot(r);return T.eq(e,0)||T.eq(e,t)?r:T.cmp(e,t)<0?dt(l(uc,l(Ct,l(E,t,e),r),d(Fc,{ctor:"[]"},t/e|0,r))):l(Ct,t,r)}),e(function(t,r){return l(e(function(t,e){for(;;){if(T.cmp(t,0)<0)return e;var o=t-1,c={ctor:"::",_0:r(t),_1:e};t=o,e=c}}),t-1,{ctor:"[]"})}),e(function(t,r){var e=t(r);return"Just"===e.ctor?{ctor:"::",_0:r,_1:l(wc,t,e._0)}:{ctor:"::",_0:r,_1:{ctor:"[]"}}})),Rc=e(function(t,r){return T.cmp(t,0)<0?q:at(l(Y,t,r))}),xc=xc||{};xc["!!"]=v(Rc);var kc={regex:function(t){return new RegExp(t,"g")},caseInsensitive:function(t){return new RegExp(t.source,"gi")},escape:function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},contains:e(function(t,r){return null!==r.match(t)}),find:c(function(t,r,e){t="All"===t.ctor?1/0:t._0;for(var o,c=[],n=0,a=e,_=r.lastIndex,i=-1;n++0;){var l=o[u];s[--u]=void 0===l?q:U(l)}c.push({match:o[0],submatches:j.fromArray(s),index:o.index,number:n}),i=r.lastIndex}return r.lastIndex=_,j.fromArray(c)}),replace:n(function(t,r,e,o){t="All"===t.ctor?1/0:t._0;var c=0;return o.replace(r,function(r){if(c++>=t)return r;for(var o=arguments.length-3,n=new Array(o);o>0;){var a=arguments[o];n[--o]=void 0===a?q:U(a)}return e({match:r,submatches:j.fromArray(n),index:arguments[arguments.length-2],number:c})})}),split:c(function(t,r,e){if((t="All"===t.ctor?1/0:t._0)===1/0)return j.fromArray(e.split(r));for(var o,c=e,n=[],a=r.lastIndex,_=r.lastIndex;t--&&(o=r.exec(c));)n.push(c.slice(a,o.index)),a=r.lastIndex;return n.push(c.slice(a)),r.lastIndex=_,j.fromArray(n)})},Pc=Me.kill,Ac=(Me.sleep,Me.spawn),Lc=kc.replace,Nc=kc.find,Ec=kc.contains,Jc=kc.caseInsensitive,Ic=kc.regex,Oc=(n(function(t,r,e,o){return{match:t,submatches:r,index:e,number:o}}),{ctor:"All"}),Vc=function(){var t={addEventListener:function(){},removeEventListener:function(){}},r=n("undefined"!=typeof document?document:t),o=n("undefined"!=typeof window?window:t);function n(t){return function(r,e,o){return Me.nativeBinding(function(c){function n(t){var r=l(ce,e,t);"Ok"===r.ctor&&Me.rawSpawn(o(r._0))}return t.addEventListener(r,n),function(){t.removeEventListener(r,n)}})}}var a="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(t){t()};function _(t,r){return Me.nativeBinding(function(e){a(function(){var o=document.getElementById(t);e(null!==o?Me.succeed(r(o)):Me.fail({ctor:"NotFound",_0:t}))})})}return{onDocument:c(r),onWindow:c(o),focus:function(t){return _(t,function(t){return t.focus(),T.Tuple0})},blur:function(t){return _(t,function(t){return t.blur(),T.Tuple0})},getScrollTop:function(t){return _(t,function(t){return t.scrollTop})},setScrollTop:e(function(t,r){return _(t,function(t){return t.scrollTop=r,T.Tuple0})}),getScrollLeft:function(t){return _(t,function(t){return t.scrollLeft})},setScrollLeft:e(function(t,r){return _(t,function(t){return t.scrollLeft=r,T.Tuple0})}),toBottom:function(t){return _(t,function(t){return t.scrollTop=t.scrollHeight,T.Tuple0})},toRight:function(t){return _(t,function(t){return t.scrollLeft=t.scrollWidth,T.Tuple0})},height:e(function(t,r){return _(r,function(r){switch(t.ctor){case"Content":return r.scrollHeight;case"VisibleContent":return r.clientHeight;case"VisibleContentWithBorders":return r.offsetHeight;case"VisibleContentWithBordersAndMargins":var e=r.getBoundingClientRect();return e.bottom-e.top}})}),width:e(function(t,r){return _(r,function(r){switch(t.ctor){case"Content":return r.scrollWidth;case"VisibleContent":return r.clientWidth;case"VisibleContentWithBorders":return r.offsetWidth;case"VisibleContentWithBordersAndMargins":var e=r.getBoundingClientRect();return e.right-e.left}})})}}(),qc=Vc.onWindow,Hc=(Vc.onDocument,function(){var t="STYLE",r="EVENT",o="ATTR",a="ATTR_NS",_="undefined"!=typeof document?document:{};function i(t,r,e){return{type:"thunk",func:t,args:r,thunk:e,node:void 0}}function u(e){for(var c,n={};"[]"!==e.ctor;){var _=e._0,i=_.key;if(i===o||i===a||i===r){var u=n[i]||{};u[_.realKey]=_.value,n[i]=u}else if(i===t){for(var s=n[i]||{},l=_.value;"[]"!==l.ctor;){var d=l._0;s[d._0]=d._1,l=l._1}n[i]=s}else if("namespace"===i)c=_.value;else if("className"===i){var m=n[i];n[i]=void 0===m?_.value:m+" "+_.value}else n[i]=_.value;e=e._1}return{facts:n,namespace:c}}function s(t,e,o){return{key:r,realKey:t,value:{options:e,decoder:o}}}function m(t,r){return(t.options===r.options||t.options.stopPropagation===r.options.stopPropagation&&t.options.preventDefault===r.options.preventDefault)&&Wr.equality(t.decoder,r.decoder)}function f(t,r){switch(t.type){case"thunk":return t.node||(t.node=t.thunk()),f(t.node,r);case"tagger":for(var e=t.node,o=t.tagger;"tagger"===e.type;)"object"!=typeof o?o=[o,e.tagger]:o.push(e.tagger),e=e.node;var c={tagger:o,parent:r};return(i=f(e,c)).elm_event_node_ref=c,i;case"text":return _.createTextNode(t.text);case"node":p(i=t.namespace?_.createElementNS(t.namespace,t.tag):_.createElement(t.tag),r,t.facts);for(var n=t.children,a=0;a0&&e.push(M("p-thunk",o,s)));case"tagger":for(var l=t.tagger,d=r.tagger,m=!1,f=t.node;"tagger"===f.type;)m=!0,"object"!=typeof l?l=[l,f.tagger]:l.push(f.tagger),f=f.node;for(var p=r.node;"tagger"===p.type;)m=!0,"object"!=typeof d?d=[d,p.tagger]:d.push(p.tagger),p=p.node;return m&&l.length!==d.length?void e.push(M("p-redraw",o,r)):((m?function(t,r){for(var e=0;e_?e.push(M("p-remove-last",o,a-_)):a<_&&e.push(M("p-append",o,n.slice(a)));for(var i=o,u=a<_?a:_,s=0;s0||_.length>0||void 0!==c)&&e.push(M("p-reorder",o,{patches:n,inserts:_,endInserts:c}))}(t,r,e,o));case"custom":if(t.impl!==r.impl)return void e.push(M("p-redraw",o,r));var h;void 0!==(h=D(t.facts,r.facts))&&e.push(M("p-facts",o,h));var b=r.impl.diff(t,r);return b?void e.push(M("p-custom",o,b)):void 0}else e.push(M("p-redraw",o,r))}}function D(e,c,n){var _;for(var i in e)if(i!==t&&i!==r&&i!==o&&i!==a)if(i in c){var u=e[i],s=c[i];u===s&&"value"!==i||n===r&&m(u,s)||((_=_||{})[i]=s)}else(_=_||{})[i]=void 0===n?"string"==typeof e[i]?"":null:n===t?"":n===r||n===o?void 0:{namespace:e[i].namespace,value:void 0};else{var l=D(e[i],c[i]||{},i);l&&((_=_||{})[i]=l)}for(var d in c)d in e||((_=_||{})[d]=c[d]);return _}var S="_elmW6BL";function F(t,r,e,o,c,n){var a=t[e];if(void 0===a)return a={tag:"insert",vnode:o,index:c,data:void 0},n.push({index:c,entry:a}),void(t[e]=a);if("remove"===a.tag){n.push({index:c,entry:a}),a.tag="move";var _=[];return B(a.vnode,o,_,a.index),a.index=c,void(a.data.data={patches:_,entry:a})}F(t,r,e+S,o,c,n)}function w(t,r,e,o,c){var n=t[e];if(void 0===n){var a=M("p-remove",c,void 0);return r.push(a),void(t[e]={tag:"remove",vnode:o,index:c,data:a})}if("insert"!==n.tag)w(t,r,e+S,o,c);else{n.tag="move";var _=[];B(o,n.vnode,_,c),a=M("p-remove",c,{patches:_,entry:n}),r.push(a)}}function R(t,r,e,o){return 0===e.length?t:(function t(r,e,o,c){!function r(e,o,c,n,a,_,i){for(var u=c[n],s=u.index;s===a;){var l=u.type;if("p-thunk"===l)t(e,o.node,u.data,i);else if("p-reorder"===l)u.domNode=e,u.eventNode=i,(d=u.data.patches).length>0&&r(e,o,d,0,a,_,i);else if("p-remove"===l){u.domNode=e,u.eventNode=i;var d,m=u.data;void 0!==m&&(m.entry.data=e,(d=m.patches).length>0&&r(e,o,d,0,a,_,i))}else u.domNode=e,u.eventNode=i;if(!(u=c[++n])||(s=u.index)>_)return n}switch(o.type){case"tagger":for(var f=o.node;"tagger"===f.type;)f=f.node;return r(e,f,c,n,a+1,_,e.elm_event_node_ref);case"node":for(var p=o.children,h=e.childNodes,b=0;b_))return n;a=g}return n;case"keyed-node":for(p=o.children,h=e.childNodes,b=0;b_))return n;a=g}return n;case"text":case"thunk":throw new Error("should never traverse `text` or `thunk` nodes like this")}}(r,e,o,0,0,e.descendantsCount,c)}(t,r,e,o),x(t,e))}function x(t,r){for(var e=0;e"),new Error(t)}function E(t,r){return function(e,o){var c={tagger:e,parent:void 0},n=r(o),a=f(n,c);return t.appendChild(a),I(a,r,n,c)}}var J="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,1e3/60)};function I(t,r,e,o){var c,n="NO_REQUEST",a=e;function _(){switch(n){case"NO_REQUEST":throw new Error("Unexpected draw callback.\nPlease report this to .");case"PENDING_REQUEST":J(_),n="EXTRA_REQUEST";var e=r(c),i=v(a,e);return t=R(t,a,i,o),void(a=e);case"EXTRA_REQUEST":return void(n="NO_REQUEST")}}return function(t){"NO_REQUEST"===n&&J(_),n="PENDING_REQUEST",c=t}}function O(t){return Me.nativeBinding(function(r){var e=t.doc;if(e){var o=e.getElementsByClassName("debugger-sidebar-messages")[0];o&&(o.scrollTop=o.scrollHeight)}r(Me.succeed(T.Tuple0))})}function V(t,r,e,o,c,n){return function(a,i){var u={tagger:a,parent:void 0},s={tagger:a,parent:void 0},l=o(i),d=f(l,u);r.appendChild(d);var m=I(d,o,l,u),p=c(i)._1,h=f(p,s);r.appendChild(h);var b=I(h,function(t,r,e){var o,c=function(t){return function(r){if("keydown"!==r.type||!r.metaKey||82!==r.which){for(var e="scroll"===r.type||"wheel"===r.type,o=r.target;null!==o;){if("elm-overlay-message-details"===o.className&&e)return;if(o===t&&!e)return;o=o.parentNode}r.stopPropagation(),r.preventDefault()}}}(h),n="Normal",a=t.tagger,_=function(){};return function(r){var i=e(r),u=i._0.ctor;return t.tagger="Normal"===u?a:_,n!==u&&(q("removeEventListener",c,n),q("addEventListener",c,u),"Normal"===n&&(o=document.body.style.overflow,document.body.style.overflow="hidden"),"Normal"===u&&(document.body.style.overflow=o),n=u),i._1}}(u,0,c),p,s),g=function(t,r,e,o,c,n){var a,i;return function(t){if(t.isDebuggerOpen){if(!n.doc)return a=r(t),void(i=function(t,r,e,o){var c=screen.width-900,n=screen.height-360,a=window.open("","","width=900,height=360,left="+c+",top="+n);_=a.document,r.doc=_,_.title="Debugger - "+t,_.body.style.margin="0",_.body.style.padding="0";var i=f(e,o);function u(){r.doc=void 0,a.close()}return _.body.appendChild(i),_.addEventListener("keydown",function(t){t.metaKey&&82===t.which&&window.location.reload(),38===t.which&&(o.tagger({ctor:"Up"}),t.preventDefault()),40===t.which&&(o.tagger({ctor:"Down"}),t.preventDefault())}),window.addEventListener("unload",u),a.addEventListener("unload",function(){r.doc=void 0,window.removeEventListener("unload",u),o.tagger({ctor:"Close"})}),_=document,i}(c,n,a,e));_=n.doc;var o=r(t),u=v(a,o);i=R(i,a,u,e),a=o,_=document}}}(0,n,s,0,t,e);return function(t){m(t),b(t),g(t)}}}function q(t,r,e){switch(e){case"Normal":return;case"Pause":return H(t,r,U);case"Message":return H(t,r,z)}}function H(t,r,e){for(var o=0;o0){var a=c.substring(0,n),_=c.substring(n+2);r=d(Nr,a,function(t){return"Just"===t.ctor?U(_+", "+t._0):U(_)},r)}}return r}(t.getAllResponseHeaders()),url:t.responseURL,body:t.response}}(t);if(t.status<200||300<=t.status)return e.body=t.responseText,Me.fail({ctor:"BadStatus",_0:e});var o=r(e);return"Ok"===o.ctor?Me.succeed(o._0):(e.body=t.responseText,Me.fail({ctor:"BadPayload",_0:o._0,_1:e}))}(o,t.expect.responseToResult))});try{o.open(t.method,t.url,!0)}catch(r){return e(Me.fail({ctor:"BadUrl",_0:t.url}))}return function(t,r){l(it,function(r){t.setRequestHeader(r._0,r._1)},r.headers),t.responseType=r.expect.responseType,t.withCredentials=r.withCredentials,"Just"===r.timeout.ctor&&(t.timeout=r.timeout._0)}(o,t),function(t,r){switch(r.ctor){case"EmptyBody":return void t.send();case"StringBody":return t.setRequestHeader("Content-Type",r._0),void t.send(r._1);case"FormDataBody":t.send(r._0)}}(o,t.body),function(){o.abort()}})}),expectStringResponse:function(t){return{responseType:"text",responseToResult:t}},mapExpect:e(function(t,r){return{responseType:r.responseType,responseToResult:function(e){var o=r.responseToResult(e);return l(Et,t,o)}}}),multipart:function(t){for(var r=new FormData;"[]"!==t.ctor;){var e=t._0;r.append(e._0,e._1),t=t._1}return{ctor:"FormDataBody",_0:r}},encodeUri:function(t){return encodeURIComponent(t)},decodeUri:function(t){try{return U(decodeURIComponent(t))}catch(t){return q}}}),Kn=(e(function(t,r){return T.update(r,{expect:l(Yn.mapExpect,t,r.expect)})}),i(function(t,r,e,o,c,n,a){return{method:t,headers:r,url:e,body:o,expect:c,timeout:n,withCredentials:a}}),e(function(t,r){return{ctor:"StringBody",_0:t,_1:r}}),e(function(t,r){return{ctor:"Header",_0:t,_1:r}}),Yn.decodeUri),Qn=Yn.expectStringResponse,Xn=function(t){return Qn(function(r){return l(ne,t,r.body)})},$n=(Qn(function(t){return Nt(t.body)}),{ctor:"EmptyBody"}),Zn=function(t){return{ctor:"Request",_0:t}},ta=(c(function(t,r,e){return Zn({method:"POST",headers:{ctor:"[]"},url:t,body:r,expect:Xn(e),timeout:q,withCredentials:!1})}),e(function(t,r){return Zn({method:"GET",headers:{ctor:"[]"},url:t,body:$n,expect:Xn(r),timeout:q,withCredentials:!1})}),e(function(t,r){return l(Ze,t,l(Yn.toTask,r._0,q))}),n(function(t,r,e,o){return{url:t,status:r,headers:e,body:o}}),e(function(t,r){return{ctor:"BadPayload",_0:t,_1:r}}),e(function(t,r){return{ctor:"StringPart",_0:t,_1:r}}),function(){function t(){var t=document.location;return{href:t.href,host:t.host,hostname:t.hostname,protocol:t.protocol,origin:t.origin,port_:t.port,pathname:t.pathname,search:t.search,hash:t.hash,username:t.username,password:t.password}}return{go:function(t){return Me.nativeBinding(function(r){0!==t&&history.go(t),r(Me.succeed(T.Tuple0))})},setLocation:function(t){return Me.nativeBinding(function(r){try{window.location=t}catch(t){document.location.reload(!1)}r(Me.succeed(T.Tuple0))})},reloadPage:function(t){return Me.nativeBinding(function(r){document.location.reload(t),r(Me.succeed(T.Tuple0))})},pushState:function(r){return Me.nativeBinding(function(e){history.pushState({},"",r),e(Me.succeed(t()))})},replaceState:function(r){return Me.nativeBinding(function(e){history.replaceState({},"",r),e(Me.succeed(t()))})},getLocation:t,isInternetExplorer11:function(){return-1!==window.navigator.userAgent.indexOf("Trident")}}}()),ra=ta.replaceState,ea=ta.pushState,oa=ta.go,ca=ta.reloadPage,na=ta.setLocation,aa=aa||{};aa["&>"]=e(function(t,r){return l(Ve,function(t){return r},t)});var _a=c(function(t,r,e){return l(aa["&>"],je(l(it,function(r){return l(Pe,t,r._0(e))},r)),Ue({ctor:"_Tuple0"}))}),ia=c(function(t,r,e){var o=e;switch(o.ctor){case"Jump":return oa(o._0);case"New":return l(Ve,l(_a,t,r),ea(o._0));case"Modify":return l(Ve,l(_a,t,r),ra(o._0));case"Visit":return na(o._0);default:return ca(o._0)}}),ua=c(function(t,r,e){return l(aa["&>"],d(_a,t,e.subs,r),Ue(e))}),sa=ve.leaf("Navigation"),la=ve.leaf("Navigation"),da=e(function(t,r){return{subs:t,popWatcher:r}}),ma=Ue(l(da,{ctor:"[]"},q)),fa=function(t){return{ctor:"Reload",_0:t}},pa=(la(fa(!1)),la(fa(!0)),function(t){return{ctor:"Visit",_0:t}}),ha=function(t){return{ctor:"New",_0:t}},ba=function(t){return{ctor:"Jump",_0:t}},ga=e(function(t,r){var e=r;switch(e.ctor){case"Jump":return ba(e._0);case"New":return ha(e._0);case"Modify":return function(t){return{ctor:"Modify",_0:t}}(e._0);case"Visit":return pa(e._0);default:return fa(e._0)}}),ya=function(t){return{ctor:"Monitor",_0:t}},Ca=(e(function(t,r){var e=r.init(ta.getLocation({ctor:"_Tuple0"}));return tn({init:e,view:r.view,update:r.update,subscriptions:function(e){return we({ctor:"::",_0:sa(ya(t)),_1:{ctor:"::",_0:r.subscriptions(e),_1:{ctor:"[]"}}})}})}),e(function(t,r){return Zc({init:function(t){return l(r.init,t,ta.getLocation({ctor:"_Tuple0"}))},view:r.view,update:r.update,subscriptions:function(e){return we({ctor:"::",_0:sa(ya(t)),_1:{ctor:"::",_0:r.subscriptions(e),_1:{ctor:"[]"}}})}})})),Ta=e(function(t,r){var e=r;return ya(function(r){return t(e._0(r))})}),va=e(function(t,r){return{ctor:"InternetExplorer",_0:t,_1:r}}),Ma=function(t){return{ctor:"Normal",_0:t}},Ba=function(t){var r=function(r){return l(ke,t,ta.getLocation({ctor:"_Tuple0"}))};return ta.isInternetExplorer11({ctor:"_Tuple0"})?d(We,va,Ac(d(qc,"popstate",te,r)),Ac(d(qc,"hashchange",te,r))):l(ze,Ma,Ac(d(qc,"popstate",te,r)))},Da=n(function(t,r,e,o){var c=o.popWatcher,n=function(){var r,o={ctor:"_Tuple2",_0:e,_1:c};t:do{if("[]"===o._0.ctor){if("Just"===o._1.ctor)return l(aa["&>"],"Normal"===(r=o._1._0).ctor?Pc(r._0):l(aa["&>"],Pc(r._0),Pc(r._1)),Ue(l(da,e,q)));break t}if("Nothing"===o._1.ctor)return l(ze,function(t){return l(da,e,U(t))},Ba(t));break t}while(0);return Ue(l(da,e,c))}();return l(aa["&>"],je(l(it,l(ia,t,e),r)),n)});ve.effectManagers.Navigation={pkg:"elm-lang/navigation",init:ma,onEffects:Da,onSelfMsg:ua,tag:"fx",cmdMap:ga,subMap:Ta};var Sa={size:Me.nativeBinding(function(t){t(Me.succeed({width:window.innerWidth,height:window.innerHeight}))})},Fa=Fa||{};Fa["&>"]=e(function(t,r){return l(Ve,function(t){return r},t)});var wa=c(function(t,r,e){var o=e;return"Nothing"===o.ctor?Ue(e):l(Fa["&>"],je(l(it,function(e){return l(Pe,t,e._0(r))},o._0.subs)),Ue(e))}),Ra=Ue(q),xa=Sa.size,ka=(l(ze,function(t){return t.width},xa),l(ze,function(t){return t.height},xa),c(function(t,r,e){var o={ctor:"_Tuple2",_0:e,_1:r};return"Nothing"===o._0.ctor?"[]"===o._1.ctor?Ue(q):l(Ve,function(t){return Ue(U({subs:r,pid:t}))},Ac(d(qc,"resize",oe({ctor:"_Tuple0"}),function(r){return l(Ve,ke(t),xa)}))):"[]"===o._1.ctor?l(Fa["&>"],Pc(o._0._0.pid),Ue(q)):Ue(U({subs:r,pid:o._0._0.pid}))})),Pa=ve.leaf("Window"),Aa=(e(function(t,r){return{width:t,height:r}}),function(t){return{ctor:"MySub",_0:t}}),La=e(function(t,r){var e=r;return Aa(function(r){return t(e._0(r))})});ve.effectManagers.Window={pkg:"elm-lang/window",init:Ra,onEffects:ka,onSelfMsg:wa,tag:"sub",subMap:La};var Na=function(t){var r=l(Xt,"=",t);return"::"===r.ctor&&"::"===r._1.ctor&&"[]"===r._1._1.ctor?d(W,e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}}),Kn(r._0),Kn(r._1._0)):q},Ea=function(t){return Hr(l(lt,Na,l(Xt,"&",l(Gt,1,t))))},Ja=c(function(t,r,e){return function(t){for(;;){var r=t;if("[]"===r.ctor)return q;var e=r._0,o=e.unvisited;if("[]"===o.ctor)return U(e.value);if(""===o._0&&"[]"===o._1.ctor)return U(e.value);t=r._1}}(t._0({visited:{ctor:"[]"},unvisited:function(t){var r=l(Xt,"/",t);return"::"===r.ctor&&""===r._0?r._1:r}(r),params:e,value:B}))}),Ia=e(function(t,r){return d(Ja,t,l(Gt,1,r.hash),Ea(r.search))}),Oa=(e(function(t,r){return d(Ja,t,r.pathname,Ea(r.search))}),e(function(t,r){var e=r;return{visited:e.visited,unvisited:e.unvisited,params:e.params,value:t(e.value)}})),Va=n(function(t,r,e,o){return{visited:t,unvisited:r,params:e,value:o}}),qa=function(t){return{ctor:"Parser",_0:t}},Ha=function(t){return qa(function(r){var e=r,o=e.unvisited;if("[]"===o.ctor)return{ctor:"[]"};var c=o._0;return T.eq(c,t)?{ctor:"::",_0:m(Va,{ctor:"::",_0:c,_1:e.visited},o._1,e.params,e.value),_1:{ctor:"[]"}}:{ctor:"[]"}})},Ua=e(function(t,r){return qa(function(t){var e=t,o=e.unvisited;if("[]"===o.ctor)return{ctor:"[]"};var c=o._0,n=r(c);return"Ok"===n.ctor?{ctor:"::",_0:m(Va,{ctor:"::",_0:c,_1:e.visited},o._1,e.params,e.value(n._0)),_1:{ctor:"[]"}}:{ctor:"[]"}})});l(Ua,"STRING",Nt),l(Ua,"NUMBER",qt),(za=za||{})[""]=e(function(t,r){var e=t,o=r;return qa(function(t){return l(ht,o._0,e._0(t))})});var za,Wa=e(function(t,r){var e=r;return qa(function(r){var o=r;return l(it,Oa(o.value),e._0({visited:o.visited,unvisited:o.unvisited,params:o.params,value:t}))})});qa(function(t){return{ctor:"::",_0:t,_1:{ctor:"[]"}}}),(za=za||{})[""]=e(function(t,r){var e=t,o=r;return qa(function(t){return l(ht,o._0,e._0(t))})}),e(function(t,r){return{ctor:"QueryParser",_0:function(e){var o=e,c=o.params;return{ctor:"::",_0:m(Va,o.visited,o.unvisited,c,o.value(r(l(sr,t,c)))),_1:{ctor:"[]"}}}}});var ja,Ga=e(function(t,r){return{ctor:"FldChgStringList",_0:t,_1:r}}),Ya=e(function(t,r){return{ctor:"FldChgIntString",_0:t,_1:r}}),Ka=function(t){return{ctor:"FldChgBool",_0:t}},Qa=function(t){return{ctor:"FldChgString",_0:t}},Xa={ctor:"EditDialog"},$a={ctor:"CloseSaveDialog"},Za={ctor:"CloseNoSaveDialog"},t_={ctor:"OpenDialog"},r_=function(t){switch(t.ctor){case"Unknown":return"unknown";case"Baby":return"baby";case"BabyLab":return"babyLab";case"BabyLabType":return"babyLabType";case"BabyMedication":return"babyMedication";case"BabyMedicationType":return"babyMedicationType";case"BabyVaccination":return"babyVaccination";case"BabyVaccinationType":return"babyVaccinationType";case"BirthCertificate":return"birthCertificate";case"ContPostpartumCheck":return"contPostpartumCheck";case"Discharge":return"discharge";case"KeyValue":return"keyValue";case"Labor":return"labor";case"LaborStage1":return"laborStage1";case"LaborStage2":return"laborStage2";case"LaborStage3":return"laborStage3";case"Membrane":return"membrane";case"MotherMedication":return"motherMedication";case"MotherMedicationType":return"motherMedicationType";case"NewbornExam":return"newbornExam";case"Patient":return"patient";case"PostpartumCheck":return"postpartumCheck";case"Pregnancy":return"pregnancy";case"Role":return"role";case"SelectData":return"selectData";default:return"user"}},e_=function(t){return $r(r_(t))},o_={ctor:"User"},c_={ctor:"SelectData"},n_={ctor:"Role"},a_={ctor:"Pregnancy"},__={ctor:"PostpartumCheck"},i_={ctor:"Patient"},u_={ctor:"NewbornExam"},s_={ctor:"MotherMedicationType"},l_={ctor:"MotherMedication"},d_={ctor:"Membrane"},m_={ctor:"LaborStage3"},f_={ctor:"LaborStage2"},p_={ctor:"LaborStage1"},h_={ctor:"Labor"},b_={ctor:"KeyValue"},g_={ctor:"Discharge"},y_={ctor:"ContPostpartumCheck"},C_={ctor:"BirthCertificate"},T_={ctor:"BabyVaccinationType"},v_={ctor:"BabyVaccination"},M_={ctor:"BabyMedicationType"},B_={ctor:"BabyMedication"},D_={ctor:"BabyLabType"},S_={ctor:"BabyLab"},F_={ctor:"Baby"},w_={ctor:"Unknown"},R_=l(_e,function(t){switch(t){case"baby":return F_;case"babyLab":return S_;case"babyLabType":return D_;case"babyMedication":return B_;case"babyMedicationType":return M_;case"babyVaccination":return v_;case"babyVaccinationType":return T_;case"birthCertificate":return C_;case"contPostpartumCheck":return y_;case"discharge":return g_;case"keyValue":return b_;case"labor":return h_;case"laborStage1":return p_;case"laborStage2":return f_;case"laborStage3":return m_;case"membrane":return d_;case"motherMedication":return l_;case"motherMedicationType":return s_;case"newbornExam":return u_;case"patient":return i_;case"postpartumCheck":return __;case"pregnancy":return a_;case"role":return n_;case"selectData":return c_;case"user":return o_;default:return w_}},ge),x_=function(t){switch(t.ctor){case"Jan":return 1;case"Feb":return 2;case"Mar":return 3;case"Apr":return 4;case"May":return 5;case"Jun":return 6;case"Jul":return 7;case"Aug":return 8;case"Sep":return 9;case"Oct":return 10;case"Nov":return 11;default:return 12}},k_=e(function(t,r){switch(r.ctor){case"Jan":return 31;case"Feb":return function(t){return T.eq(l(N["%"],t,4),0)&&!T.eq(l(N["%"],t,100),0)||T.eq(l(N["%"],t,400),0)}(t)?29:28;case"Mar":return 31;case"Apr":return 30;case"May":return 31;case"Jun":return 30;case"Jul":case"Aug":return 31;case"Sep":return 30;case"Oct":return 31;case"Nov":return 30;default:return 31}}),P_=function(t){return F(xo(t))},A_=function(t){return Ro(S(t))},L_=F(1),N_=1e3*L_,E_=60*N_,J_=60*E_,I_=24*J_,O_=7*I_,V_=e(function(t,r){var e=To(t)-To(r),o=vo(t)-vo(r),c=Mo(t)-Mo(r),n=Bo(t)-Bo(r),a=(P_(t)-P_(r)-n*J_-c*E_-o*N_-e*L_)/I_|0,_=function(){if(T.cmp(a,0)<0){var t=A(a);return{ctor:"_Tuple2",_0:L(t/7|0),_1:L(l(N["%"],t,7))}}return{ctor:"_Tuple2",_0:a/7|0,_1:l(N["%"],a,7)}}();return{week:_._0,day:_._1,hour:n,minute:c,second:o,millisecond:e}}),q_=c(function(t,r,o){return A_(l(e(function(t,r){return t+r}),r*t,P_(o)))}),H_=function(t){var r=t;switch(r.ctor){case"Millisecond":return L_;case"Second":return N_;case"Minute":return E_;case"Hour":return J_;case"Day":return I_;case"Week":return O_;default:var e=r._0;return L_*e.millisecond+N_*e.second+E_*e.minute+J_*e.hour+I_*e.day+O_*e.week}},U_=function(t){return q_(H_(t))},z_=(_(function(t,r,e,o,c,n){return{week:t,day:r,hour:e,minute:o,second:c,millisecond:n}}),function(t){return{ctor:"Delta",_0:t}}),W_={ctor:"Week"},j_={ctor:"Day"},G_={ctor:"Hour"},Y_={ctor:"Minute"},K_={ctor:"Second"},Q_={ctor:"Millisecond"},X_=c(function(t,r,e){var o=((153*(r+(T.cmp(r,2)>0?-3:9))+2)/5|0)+e-1,c=t-(T.cmp(r,2)<1?1:0),n=(T.cmp(c,0)>-1?c:c-399)/400|0,a=c-400*n;return 146097*n+(365*a+(a/4|0)-(a/100|0)+o)-719468}),$_=i(function(t,r,e,o,c,n,a){var _=x_(r),i=T.cmp(t,0)<0?0:t,u=d(P,1,l(k_,i,r),e),s=d(X_,i,_,u);return H_(z_({millisecond:d(P,0,999,a),second:d(P,0,59,n),minute:d(P,0,59,c),hour:d(P,0,23,o),day:s,week:0}))}),Z_=function(t){var r=function(t){return h($_,wo(t),Fo(t),So(t),Bo(t),Mo(t),vo(t),To(t))}(t);return(F(xo(t))-r)/E_|0},ti=e(function(t,r){return A_(l(e(function(t,r){return t+r}),t*E_,P_(r)))}),ri=(e(function(t,r){return d(U_,Y_,Z_(r)-Z_(t),r)}),P_),ei=E_,oi=x_,ci=function(t){switch(t.ctor){case"Mon":return 1;case"Tue":return 2;case"Wed":return 3;case"Thu":return 4;case"Fri":return 5;case"Sat":return 6;default:return 7}},ni=e(function(t,r){var e=ci(r),o=ci(t);return T.cmp(o,e)<0?7+o-e:o-e}),ai=A_,_i=function(t){return l(k_,wo(t),Fo(t))},ii=k_,ui=(n(function(t,r,e,o){var c=ri(o),n=ri(e),a=l(R,n,c),_=l(x,n,c),i=ri(r);switch(t.ctor){case"Between":return T.cmp(i,_)>0&&T.cmp(i,a)<0;case"BetweenOpenStart":return T.cmp(i,_)>-1&&T.cmp(i,a)<0;case"BetweenOpenEnd":return T.cmp(i,_)>0&&T.cmp(i,a)<1;default:return T.cmp(i,_)>-1&&T.cmp(i,a)<1}}),c(function(t,r,e){var o=ri(e),c=ri(r);switch(t.ctor){case"Before":return T.cmp(c,o)<0;case"After":return T.cmp(c,o)>0;case"Same":return T.eq(c,o);case"SameOrBefore":return T.cmp(c,o)<1;default:return T.cmp(c,o)>-1}})),si={ctor:"SameOrBefore"},li={ctor:"SameOrAfter"},di={ctor:"Before"},mi={ctor:"After"},fi={ctor:"PM"},pi={ctor:"AM"},hi=function(t){return T.cmp(Bo(t),12)<0?pi:fi},bi=(e(function(t,r){return{i18n:t,format:r}}),{i18n:{dayShort:function(t){switch(t.ctor){case"Mon":return"Mon";case"Tue":return"Tue";case"Wed":return"Wed";case"Thu":return"Thu";case"Fri":return"Fri";case"Sat":return"Sat";default:return"Sun"}},dayName:function(t){switch(t.ctor){case"Mon":return"Monday";case"Tue":return"Tuesday";case"Wed":return"Wednesday";case"Thu":return"Thursday";case"Fri":return"Friday";case"Sat":return"Saturday";default:return"Sunday"}},monthShort:function(t){switch(t.ctor){case"Jan":return"Jan";case"Feb":return"Feb";case"Mar":return"Mar";case"Apr":return"Apr";case"May":return"May";case"Jun":return"Jun";case"Jul":return"Jul";case"Aug":return"Aug";case"Sep":return"Sep";case"Oct":return"Oct";case"Nov":return"Nov";default:return"Dec"}},monthName:function(t){switch(t.ctor){case"Jan":return"January";case"Feb":return"February";case"Mar":return"March";case"Apr":return"April";case"May":return"May";case"Jun":return"June";case"Jul":return"July";case"Aug":return"August";case"Sep":return"September";case"Oct":return"October";case"Nov":return"November";default:return"December"}},dayOfMonthWithSuffix:e(function(t,r){var e=function(){switch(r){case 1:return"1st";case 21:return"21st";case 2:return"2nd";case 22:return"22nd";case 3:return"3rd";case 23:return"23rd";case 31:return"31st";default:return l(N["++"],D(r),"th")}}();return t?d(jt,4,T.chr(" "),e):e}),twelveHourPeriod:function(t){return"AM"===t.ctor?"AM":"PM"}},format:{date:"%-m/%-d/%Y",longDate:"%A, %B %d, %Y",time:"%-H:%M %p",longTime:"%-H:%M:%S %p",dateTime:"%-m/%-d/%Y %-I:%M %p",firstDayOfWeek:Po}}),gi=Ro(0),yi=(ja=60*Bo(gi)+Mo(gi),T.eq(wo(gi),1969)?0-(ja-1440):0-ja),Ci=Z_,Ti=i(function(t,r,e,o,c,n,a){return _=h($_,t,r,e,o,c,n,a),i=d(U_,Q_,_+yi*ei,gi),u=Ci(i),T.eq(u,yi)?i:d(U_,Y_,u-yi,i);var _,i,u}),vi=(d(Ti,1970,zo,1),c(function(t,r,e){var o=d(X_,wo(r),oi(Fo(r)),So(r));return(d(X_,wo(t),oi(Fo(t)),So(t))-o)*e})),Mi=e(function(t,r){return d(ui,mi,t,r)?d(vi,t,r,1):d(vi,r,t,-1)}),Bi=c(function(t,r,e){var o=c(function(t,r,e){var o=t+r;return T.cmp(o,0)<0?{ctor:"_Tuple2",_0:e+o,_1:-1}:{ctor:"_Tuple2",_0:o,_1:0}}),a=n(function(t,r,e,o){return T.cmp(r,e)<0?{ctor:"_Tuple2",_0:t-1,_1:o+r-e}:{ctor:"_Tuple2",_0:t,_1:r-e}}),_=To(r),i=To(t),u=vo(r),s=vo(t),f=Mo(r),p=Mo(t),h=Bo(r),b=Bo(t),g=So(r),y=So(t),C=Fo(r),v=oi(C),M=Fo(t),B=oi(M),D=wo(r),S=l(ii,D,C),F=wo(t),w=l(ii,F,M),R=m(a,F-D,B,v,12),x=R._0,k=m(a,R._1,y,g,S),P=k._0,A=m(a,k._1,b,h,24),L=A._0,N=m(a,A._1,p,f,60),E=N._0,J=m(a,N._1,s,u,60),I=J._0,O=m(a,J._1,i,_,1e3),V=O._0,q=d(o,O._1,0,1e3),H=q._0,U=d(o,V,q._1,60),z=U._0,W=d(o,I,U._1,60),j=W._0,G=d(o,E,W._1,60),Y=G._0,K=d(o,L,G._1,w),Q=K._0,X=d(o,P,K._1,12),$=X._0;return{year:d(o,x,X._1,0)._0*e,month:$*e,day:Q*e,hour:Y*e,minute:j*e,second:z*e,millisecond:H*e}}),Di=e(function(t,r){return d(ui,mi,t,r)?d(Bi,t,r,1):d(Bi,r,t,-1)}),Si=e(function(t,r){var e=So(r),o=oi(Fo(r)),c=o+t,n=l(N["%"],c,12),a=T.cmp(c,0)<0&&!T.eq(n,0)?(c/12|0)-1:c/12|0,_=wo(r),i=d(X_,_,o,e),u=_+a,s=l(x,l(ii,u,function(t){return T.cmp(t,1)<1?zo:T.eq(t,2)?Uo:T.eq(t,3)?Ho:T.eq(t,4)?qo:T.eq(t,5)?Vo:T.eq(t,6)?Oo:T.eq(t,7)?Io:T.eq(t,8)?Jo:T.eq(t,9)?Eo:T.eq(t,10)?No:T.eq(t,11)?Lo:Ao}(c)),e),m=d(X_,u,n,s);return d(U_,j_,m-i,r)}),Fi=e(function(t,r){return l(Si,12*t,r)}),wi=e(function(t,r){var e=Ci(r),o=Ci(t);if(T.eq(o,e))return r;var c=d(U_,Q_,(e-o)*ei,r),n=Ci(c);return T.eq(n,e)?c:r}),Ri=(i(function(t,r,e,o,c,n,a){return{year:t,month:r,day:e,hour:o,minute:c,second:n,millisecond:a}}),{ctor:"Year"}),xi={ctor:"Month"},ki=c(function(t,r,e){var o=t;switch(o.ctor){case"Millisecond":return d(U_,Q_,r,e);case"Second":return d(U_,K_,r,e);case"Minute":return d(U_,Y_,r,e);case"Hour":return d(U_,G_,r,e);case"Day":return d(U_,j_,r,e);case"Week":return d(U_,W_,r,e);case"Month":return l(Si,r,e);case"Year":return l(Fi,r,e);default:var c=o._0;return d(U_,z_({week:0,day:c.day,hour:c.hour,minute:c.minute,second:c.second,millisecond:c.millisecond}),r,d(ki,xi,c.month,d(ki,Ri,c.year,e)))}}),Pi=c(function(t,r,e){var o=d(ki,t,r,e);return function(t){var r=t;switch(r.ctor){case"Millisecond":case"Second":case"Minute":case"Hour":return!1;case"Day":case"Week":case"Month":case"Year":return!0;default:var e=r._0;return!T.eq(e.day,0)||!T.eq(e.month,0)||!T.eq(e.year,0)}}(t)?l(wi,e,o):o}),Ai={ctor:"Day"},Li={ctor:"Hour"},Ni={ctor:"Minute"},Ei={ctor:"Second"},Ji={ctor:"Millisecond"},Ii=c(function(t,r,e){var o=ci(t),c=Do(e),n=l(ni,c,r),a=o-ci(c),_=T.cmp(n+a,0)<0?a+7:a;return d(Pi,Ai,_,e)}),Oi=e(function(t,r){var e=oi(Fo(r)),o=oi(t);return d(Pi,xi,o-e,r)}),Vi=e(function(t,r){var e=t;switch(e.ctor){case"Millisecond":return d(Pi,Ji,d(P,0,999,e._0)-To(r),r);case"Second":return d(Pi,Ei,d(P,0,59,e._0)-vo(r),r);case"Minute":return d(Pi,Ni,d(P,0,59,e._0)-Mo(r),r);case"Hour":return d(Pi,Li,d(P,0,23,e._0)-Bo(r),r);case"DayOfWeek":return d(Ii,e._0._0,e._0._1,r);case"DayOfMonth":var o=_i(r);return d(Pi,Ai,d(P,1,o,e._0)-So(r),r);case"Month":return l(Oi,e._0,r);default:var c=e._0,n=T.cmp(c,0)<0?0:c;return d(Pi,Ri,n-wo(r),r)}}),qi=(e(function(t,r){var e=t;switch(e.ctor){case"Millisecond":var o=e._0;return T.cmp(o,0)<0||T.cmp(o,999)>0?q:U(d(Pi,Ji,o-To(r),r));case"Second":var c=e._0;return T.cmp(c,0)<0||T.cmp(c,59)>0?q:U(d(Pi,Ei,c-vo(r),r));case"Minute":var n=e._0;return T.cmp(n,0)<0||T.cmp(n,59)>0?q:U(d(Pi,Ni,n-Mo(r),r));case"Hour":var a=e._0;return T.cmp(a,0)<0||T.cmp(a,23)>0?q:U(d(Pi,Li,a-Bo(r),r));case"DayOfWeek":return U(d(Ii,e._0._0,e._0._1,r));case"DayOfMonth":var _=e._0,i=_i(r);return T.cmp(_,1)<0||T.cmp(_,i)>0?q:U(d(Pi,Ai,_-So(r),r));case"Month":return U(l(Oi,e._0,r));default:var u=e._0;return T.cmp(u,0)<0?q:U(d(Pi,Ri,u-wo(r),r))}}),function(t){return{ctor:"DayOfMonth",_0:t}}),Hi=function(t){return{ctor:"Hour",_0:t}},Ui=function(t){return{ctor:"Minute",_0:t}},zi=function(t){return{ctor:"Second",_0:t}},Wi=function(t){return{ctor:"Millisecond",_0:t}},ji={ctor:"Year"},Gi={ctor:"Month"},Yi={ctor:"Day"},Ki={ctor:"Hour"},Qi={ctor:"Minute"},Xi={ctor:"Second"},$i=e(function(t,r){switch(t.ctor){case"Millisecond":return r;case"Second":return l(Vi,Wi(0),r);case"Minute":return l(Vi,zi(0),l($i,Xi,r));case"Hour":return l(Vi,Ui(0),l($i,Qi,r));case"Day":return l(Vi,Hi(0),l($i,Ki,r));case"Month":return l(Vi,qi(1),l($i,Yi,r));default:return Zi(r)}}),Zi=function(t){var r=l(Vi,qi(1),t),e=l(Vi,{ctor:"Month",_0:zo},r),o=ri(r)-ri(e),c=ai(ri(t)-o);return l($i,Gi,c)},tu=e(function(t,r){switch(t.ctor){case"Millisecond":return r;case"Second":return l(Vi,Wi(999),r);case"Minute":return l(Vi,zi(59),l(tu,Xi,r));case"Hour":return l(Vi,Ui(59),l(tu,Qi,r));case"Day":return l(Vi,Hi(23),l(tu,Ki,r));case"Month":return l(Vi,qi(31),l(tu,Yi,r));default:var e=d(Pi,Ri,1,r),o=l($i,ji,e);return d(Pi,Ji,-1,o)}}),ru=ci({ctor:"Mon"}),eu=function(t){var r=h(Ti,t,zo,4,0,0,0,0);return d(Pi,Ai,ru-ci(Do(r)),r)},ou=function(t){var r=function(t){var r=wo(t),e=h(Ti,r,Ao,29,0,0,0,0);if(d(ui,li,t,e)){var o=eu(r+1);return d(ui,di,t,o)?{ctor:"_Tuple2",_0:r,_1:eu(r)}:{ctor:"_Tuple2",_0:r+1,_1:o}}var c=eu(r);return d(ui,di,t,c)?{ctor:"_Tuple2",_0:r-1,_1:eu(r-1)}:{ctor:"_Tuple2",_0:r,_1:c}}(t),e=r._0,o=r._1;return{ctor:"_Tuple3",_0:e,_1:1+(l(Mi,t,o)/7|0),_2:ci(Do(t))}},cu=c(function(t,r,e){for(;;){if(T.eq(t,0))return e;if(T.cmp(t,0)>0){var o={ctor:"::",_0:r,_1:e};t-=1,r=d(Pi,Ai,1,r),e=o}else{var c={ctor:"::",_0:r,_1:e};t+=1,r=d(Pi,Ai,-1,r),e=c}}}),nu=(e(function(t,r){return dt(d(cu,t,r,{ctor:"[]"}))}),e(function(t,r){return function(e){return d(jt,t,r,D(e))}})),au=function(t){return function(r){return d(jt,2,t,D(r))}},_u=function(t){return T.eq(l(N["%"],t,12),0)?12:l(N["%"],t,12)},iu=e(function(t,r){var e,o={ctor:"_Tuple2",_0:(e=A(r))/60|0,_1:l(N["%"],e,60)},c=o._0,n=o._1;return l(N["++"],T.cmp(r,0)<1?"+":"-",l(N["++"],l(au,T.chr("0"),c),l(N["++"],t,l(au,T.chr("0"),n))))}),uu=n(function(t,r,e,o){var c=l(V," ",function(t){return l(H,B,t)}(at(o.submatches)));switch(c){case"Y":return d(nu,4,T.chr("0"),wo(e));case"y":return l(Yt,2,d(nu,2,T.chr("0"),wo(e)));case"m":return l(au,T.chr("0"),oi(Fo(e)));case"_m":return l(au,T.chr(" "),oi(Fo(e)));case"-m":return D(oi(Fo(e)));case"B":return t.i18n.monthName(Fo(e));case"^B":return zt(t.i18n.monthName(Fo(e)));case"b":return t.i18n.monthShort(Fo(e));case"^b":return zt(t.i18n.monthShort(Fo(e)));case"d":return l(au,T.chr("0"),So(e));case"-d":return D(So(e));case"-@d":return l(t.i18n.dayOfMonthWithSuffix,!1,So(e));case"e":return l(au,T.chr(" "),So(e));case"@e":return l(t.i18n.dayOfMonthWithSuffix,!0,So(e));case"A":return t.i18n.dayName(Do(e));case"^A":return zt(t.i18n.dayName(Do(e)));case"a":return t.i18n.dayShort(Do(e));case"^a":return zt(t.i18n.dayShort(Do(e)));case"H":return l(au,T.chr("0"),Bo(e));case"-H":return D(Bo(e));case"k":return l(au,T.chr(" "),Bo(e));case"I":return l(au,T.chr("0"),_u(Bo(e)));case"-I":return D(_u(Bo(e)));case"l":return l(au,T.chr(" "),_u(Bo(e)));case"p":return zt(t.i18n.twelveHourPeriod(hi(e)));case"P":return t.i18n.twelveHourPeriod(hi(e));case"M":return l(au,T.chr("0"),Mo(e));case"S":return l(au,T.chr("0"),vo(e));case"L":return d(nu,3,T.chr("0"),To(e));case"%":return c;case"z":return l(iu,"",r);case":z":return l(iu,":",r);case"G":var n=ou(e);return d(nu,3,T.chr("0"),n._0);case"V":var a=ou(e);return l(au,T.chr("0"),a._1);case"-V":var _=ou(e);return D(_._1);case"u":var i=ou(e);return D(i._2);default:return""}}),su=Ic("%(y|Y|m|_m|-m|B|^B|b|^b|d|-d|-@d|e|@e|A|^A|a|^a|H|-H|k|I|-I|l|p|P|M|S|%|L|z|:z|G|V|-V|u)"),lu=n(function(t,r,e,o){var c=Ci(o);return m(Lc,Oc,su,d(uu,t,r,l(ti,c-r,o)),e)}),du=c(function(t,r,e){return m(lu,t,Ci(e),r,e)}),mu=c(function(t,r,e){return m(lu,t,0,r,e)}),fu=(l(du,bi,"%Y-%m-%dT%H:%M:%S.%L%:z"),l(du,bi,"%Y-%m-%dT%H:%M:%S.%L"),e(function(t,r){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(r))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t)},_1:{ctor:"[]"}})},_1:{ctor:"[]"}}})})),pu=(e(function(t,r){var e=r;return"Just"===e.ctor?U({ctor:"::",_0:t,_1:e._0}):U({ctor:"::",_0:t,_1:{ctor:"[]"}})}),e(function(t,r){return l(pn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(t),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:l(wn,"innerHTML",$r(" ")),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})})),hu=function(t){var r=t;if("Just"===r.ctor){var e=Vt(r._0);return"Ok"===e.ctor?U(e._0):q}return q},bu=function(t){var r=t;if("Just"===r.ctor){var e=qt(r._0);return"Ok"===e.ctor?U(e._0):q}return q},gu=l(_e,function(t){var r=t;return"Just"===r.ctor?T.cmp(r._0,0)>0?U(!0):U(!1):q},ue(he)),yu=function(t){var r=t;return"Just"===r.ctor?!0===r._0?Xr(1):Xr(0):Yr},Cu=e(function(t,r){return d(Pi,Ni,t,r)}),Tu=function(t){return function(t){var r=t;return"Just"===r.ctor?U(function(t){return l(Cu,Ci(t),t)}(r._0)):q}(Pt(ko(t)))},vu=e(function(t,r){var e={ctor:"_Tuple2",_0:t,_1:r};return"Just"===e._0.ctor?"Just"===e._1.ctor?U(60*e._0._0+e._1._0):U(60*e._0._0):"Just"===e._1.ctor?U(e._1._0):q}),Mu=function(t){var r=t;if("Just"===r.ctor){var e=r._0;return U({ctor:"_Tuple2",_0:e/60|0,_1:l(E,e,60)})}return q},Bu=function(t){var r=Mu(t);return"Just"===r.ctor?U(r._0._0):q},Du=function(t){var r=Mu(t);return"Just"===r.ctor?U(r._0._1):q},Su=e(function(t,r){return d(ui,si,t,r)}),Fu=e(function(t,r){var o=e(function(t,r){return A(l(Mi,t,r))}),c=!0===d(ui,di,t,r)?l(Di,r,t):l(Di,t,r),n=e(function(t,r){var e=A(t);switch(e){case 0:return"";case 1:return l(N["++"],"1 ",r);default:return l(N["++"],D(e),l(N["++"]," ",l(N["++"],r,"s")))}}),a=l(n,l(o,t,r),"day"),_=l(n,c.hour,"hour"),i=l(n,c.minute,"minute"),u=e(function(t,r){return T.cmp($t(t),0)>0?T.cmp($t(r),0)>0?l(N["++"],t,l(N["++"],", ",r)):t:r});return Wt(d(v,u,i,l(u,a,_)))}),wu=e(function(t,r){var e={ctor:"_Tuple2",_0:t,_1:r};return"Just"===e._0.ctor&&"Just"===e._1.ctor?l(Fu,e._0._0,e._1._0):""}),Ru=function(t){return h(Ti,wo(t),Fo(t),So(t),0,0,0,0)},xu=e(function(t,r){var e=d(U_,j_,-280,Ru(t)),o=l(V_,Ru(r),e),c={ctor:"_Tuple2",_0:o.week,_1:o.day},n=c._0,a=c._1,_={ctor:"_Tuple2",_0:D(n),_1:l(N["++"],D(a),"/7")};return T.cmp(n,45)>0||T.cmp(n,0)<0?{ctor:"_Tuple2",_0:"",_1:""}:_}),ku=e(function(t,r){return d(du,bi,l(N["++"],"%b",l(N["++"],r,l(N["++"],"%d",l(N["++"],r,"%Y")))),t)}),Pu=function(t){return d(du,bi,"%H%M",t)},Au=function(t){var r=t;return"Just"===r.ctor?U(Pu(r._0)):q},Lu=function(t){return It(l(ut,function(t){return kt(t)},l(Ct,4,Ot(t))))},Nu=e(function(t,r){var e=r;return"Just"===e.ctor?T.cmp(wo(e._0),1960)<0:t}),Eu=function(t){return d(du,bi,"%H%M",Ro(t))},Ju=function(t){return $r(function(t){return l(N["++"],d(mu,bi,"%Y-%m-%dT%H:%M:%S.%L",t),"Z")}(t))},Iu=function(t){var r=t;return"ValidMaybeDateTime"===r.ctor?U(r._0):q},Ou=function(t){return l(lt,function(t){var r=t;return"InvalidMaybeDateTime"===r.ctor?U(r._0):q},t)},Vu=e(function(t,r){var e=r;return d(U_,Y_,e._1,d(U_,G_,e._0,Ru(t)))}),qu=c(function(t,r,e){var o=function(t){switch(r.ctor){case"DashDateSep":return"-";case"ForwardDateSep":return"/";case"BackwardDateSep":return"\\";default:return"."}}();switch(t.ctor){case"YMDDateFmt":return d(du,bi,l(N["++"],"%Y",l(N["++"],o,l(N["++"],"%m",l(N["++"],o,"%d")))),e);case"MDYDateFmt":return d(du,bi,l(N["++"],"%m",l(N["++"],o,l(N["++"],"%d",l(N["++"],o,"%Y")))),e);default:return d(du,bi,l(N["++"],"%d",l(N["++"],o,l(N["++"],"%m",l(N["++"],o,"%Y")))),e)}}),Hu=c(function(t,r,e){return l(N["++"],d(qu,t,r,e),l(N["++"]," ",d(du,bi,"%H:%M",e)))}),Uu=e(function(t,r){var e=r;return"Just"!==e.ctor||!l(ct,e._0,t)}),zu=function(t){var r=t;return"Just"!==r.ctor||T.eq($t(r._0),0)},Wu=function(t){return"Just"!==t.ctor},ju=function(t){return"Just"===t.ctor},Gu=e(function(t,r){return"Nothing"===t.ctor?r:t}),Yu=function(t){return It(l(ut,function(t){return kt(t)||T.eq(t,T.chr("."))},Ot(t)))},Ku=function(t){var r=t;return"Just"!==r.ctor||T.eq($t(Yu(r._0)),0)},Qu=function(t){var r=l(N["++"],l(ut,function(t){return kt(t)||T.eq(t,T.chr("-"))},l(Ct,1,Ot(t))),l(ut,function(t){return kt(t)},l(Y,1,Ot(t))));return It(r)},Xu=function(t){return It(l(ut,function(t){return kt(t)},Ot(t)))},$u=function(t){var r=t;return"Just"!==r.ctor||T.eq($t(Xu(r._0)),0)},Zu=function(t){var r=Pt(qt(It(l(Y,2,Ot(Xu(t)))))),e=Pt(qt(It(l(Ct,2,Ot(Xu(t)))))),o={ctor:"_Tuple3",_0:$t(t),_1:e,_2:r};if("_Tuple3"===o.ctor&&4===o._0&&"Just"===o._1.ctor&&"Just"===o._2.ctor){var c=o._2._0,n=o._1._0;return T.cmp(n,-1)>0&&T.cmp(n,24)<0&&T.cmp(c,-1)>0&&T.cmp(c,60)<0?U({ctor:"_Tuple2",_0:n,_1:c}):q}return q},ts=e(function(t,r){var e={ctor:"_Tuple2",_0:t,_1:r};if("Just"===e._0.ctor&&"Just"===e._1.ctor){var o=Zu(e._1._0);return"Just"===o.ctor?U(l(Vu,e._0._0,{ctor:"_Tuple2",_0:o._0._0,_1:o._0._1})):q}return q}),rs=c(function(t,r,e){var o={ctor:"_Tuple2",_0:t,_1:Zu(l(V,"",r))};return"Just"===o._0.ctor&&"Just"===o._1.ctor&&"_Tuple2"===o._1._0.ctor?l(Vu,o._0._0,{ctor:"_Tuple2",_0:o._1._0._0,_1:o._1._0._1}):e}),es=function(t){var r=t;return"Just"!==r.ctor||"Just"!==Zu(r._0).ctor},os=function(t){var r=t;return"Just"===r.ctor&&"Just"!==Zu(r._0).ctor},cs=(e(function(t,r){return!0===l(ct,r,t)?"":r}),e(function(t,r){return!0===l(ct,r,t)?r:""})),ns=(c(function(t,r,e){var o=t;if("Just"===o.ctor){var c=qt(o._0);if("Ok"===c.ctor){var n=c._0;return T.cmp(n,r)<0||T.cmp(n,e)>0?q:U(n)}return q}return q}),function(t){return l(Qt,", ",l(Xt,"|",t))}),as=function(t){var r=t;return"Just"===r.ctor?$t(r._0):0},_s=c(function(t,r,e){var o="AscendingSort"===t.ctor?{ctor:"_Tuple2",_0:li,_1:mi}:{ctor:"_Tuple2",_0:si,_1:di},c=o._1;return!0===d(ui,o._0,r,e)?!0===d(ui,c,r,e)?J:I:O}),is=is||{};is["=>"]=e(function(t,r){return{ctor:"_Tuple2",_0:t,_1:r}});var us,ss={ctor:"DescendingSort"},ls={ctor:"AscendingSort"},ds={ctor:"MDYDateFmt"},ms={ctor:"YMDDateFmt"},fs={ctor:"DashDateSep"},ps={ctor:"NoMaybeDateTime"},hs=c(function(t,r,e){var o=r;if("Just"===t.ctor&&"Just"===o.ctor){var c=l(ts,t,r);return"Just"===c.ctor?{ctor:"ValidMaybeDateTime",_0:c._0}:{ctor:"InvalidMaybeDateTime",_0:e}}return ps}),bs=e(function(t,r){var e=l(sr,t,r);if("Just"===e.ctor){var o=e._0._1;return"Just"===o.ctor?U(D(o._0)):U("")}return U("")}),gs=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"minute",_1:Xr(t.minute)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"score",_1:Xr(t.score)},_1:{ctor:"[]"}}})},ys=function(t){switch(t.ctor){case"Male":return"M";case"Female":return"F";default:return"A"}},Cs=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("baby")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"birthNbr",_1:Xr(1)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lastname",_1:l(Qo,$r,t.lastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"firstname",_1:l(Qo,$r,t.firstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"middlename",_1:l(Qo,$r,t.middlename)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"sex",_1:$r(ys(t.sex))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthWeight",_1:l(Qo,Xr,t.birthWeight)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bFedEstablished",_1:l(Qo,Ju,t.bFedEstablished)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bulb",_1:yu(t.bulb)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"machine",_1:yu(t.machine)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"freeFlowO2",_1:yu(t.freeFlowO2)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chestCompressions",_1:yu(t.chestCompressions)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ppv",_1:yu(t.ppv)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"apgarScores",_1:jr(l(it,gs,t.apgarScores))},_1:{ctor:"[]"}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})},Ts=function(t){switch(t.ctor){case"Male":return"Male";case"Female":return"Female";default:return"Ambiguous"}},vs=(e(function(t,r){var e=r;if("Just"===e.ctor){var o=e._0;return t?Ts(o):ys(o)}return""}),e(function(t,r){return{minute:t,score:r}})),Ms=d(Ie,"score",he,d(Ie,"minute",he,Ae(vs))),Bs=function(t){return l(lt,function(t){return t},or(l(kr,e(function(t,r){return function(t){var r=t,e={ctor:"_Tuple2",_0:r._0,_1:r._1};if("Just"===e._0.ctor&&"Just"===e._1.ctor){var o=e._1._0;return T.cmp(o,0)>-1&&T.cmp(o,10)<1?U(l(vs,e._0._0,o)):q}return q}(r)}),t)))},Ds=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return{id:t,birthNbr:r,lastname:e,firstname:o,middlename:c,sex:n,birthWeight:a,bFedEstablished:_,bulb:i,machine:u,freeFlowO2:s,chestCompressions:l,ppv:d,comments:m,labor_id:f,apgarScores:p}}}}}}}}}}}}}}}}},Ss=e(function(t,r){return Ds(t._0)(r.birthNbr)(r.lastname)(r.firstname)(r.middlename)(r.sex)(r.birthWeight)(r.bFedEstablished)(r.bulb)(r.machine)(r.freeFlowO2)(r.chestCompressions)(r.ppv)(r.comments)(r.labor_id)(r.apgarScores)}),Fs=e(function(t,r){return{ctor:"ApgarScore",_0:t,_1:r}}),ws={ctor:"Ambiguous"},Rs={ctor:"Female"},xs={ctor:"Male"},ks=function(t){switch(zt(t)){case"M":case"MALE":return xs;case"F":case"FEMALE":return Rs;case"A":case"AMBIGUOUS":return ws;default:return l(ye,"Data.Baby.stringToSex",l(N["++"],"Error: unknown str of '",l(N["++"],t,"' encountered."))),Rs}},Ps=_e(ks),As=d(Ie,"apgarScores",me(Ms),d(Ie,"labor_id",he,d(Ie,"comments",ue(ge),d(Ie,"ppv",gu,d(Ie,"chestCompressions",gu,d(Ie,"freeFlowO2",gu,d(Ie,"machine",gu,d(Ie,"bulb",gu,d(Ie,"bFedEstablished",ue(Go),d(Ie,"birthWeight",ue(he),d(Ie,"sex",Ps(ge),d(Ie,"middlename",ue(ge),d(Ie,"firstname",ue(ge),d(Ie,"lastname",ue(ge),d(Ie,"birthNbr",he,d(Ie,"id",he,Ae(Ds))))))))))))))))),Ls=s(function(t,r,e,o,c,n,a,_,i){return{id:t,babyLabType:r,dateTime:e,fld1Value:o,fld2Value:c,fld3Value:n,fld4Value:a,initials:_,baby_id:i}}),Ns=d(Ie,"baby_id",he,d(Ie,"initials",ue(ge),d(Ie,"fld4Value",ue(ge),d(Ie,"fld3Value",ue(ge),d(Ie,"fld2Value",ue(ge),d(Ie,"fld1Value",ue(ge),d(Ie,"dateTime",Go,d(Ie,"babyLabType",he,d(Ie,"id",he,Ae(Ls)))))))))),Es=e(function(t,r){return g(Ls,t._0,r.babyLabType,r.dateTime,r.fld1Value,r.fld2Value,r.fld3Value,r.fld4Value,r.initials,r.baby_id)}),Js=u(function(t,r,e,o,c,n,a,_){return{babyLabType:t,dateTime:r,fld1Value:e,fld2Value:o,fld3Value:c,fld4Value:n,initials:a,baby_id:_}}),Is=function(t){return{ctor:"BabyLabId",_0:t}},Os=e(function(t,r){return l(gc,function(r){return l(Ht,Ut(t),Ut(r.name))},r)}),Vs=c(function(t,r,e){var o=l(gc,function(r){return T.eq(r.id,t)},e);if("Just"!==o.ctor)return q;var c=o._0;switch(r){case 1:return U(c.fld1Type);case 2:return c.fld2Type;case 3:return c.fld3Type;case 4:return c.fld4Type;default:return q}}),qs=e(function(t,r){var e=l(gc,function(r){return T.eq(r.id,t)},r);return"Just"===e.ctor?U(e._0.name):q}),Hs=c(function(t,r,e){return{num:t,name:r,type_:e}}),Us=e(function(t,r){var e=l(gc,function(r){return T.eq(r.id,t)},r);if("Just"===e.ctor){var o=e._0;return{ctor:"::",_0:d(Hs,1,U(o.fld1Name),U(o.fld1Type)),_1:{ctor:"::",_0:d(Hs,2,o.fld2Name,o.fld2Type),_1:{ctor:"::",_0:d(Hs,3,o.fld3Name,o.fld3Type),_1:{ctor:"::",_0:d(Hs,4,o.fld4Name,o.fld4Type),_1:{ctor:"[]"}}}}}}return{ctor:"[]"}}),zs={ctor:"InvalidBabyLabFT"},Ws={ctor:"BoolBabyLabFT"},js={ctor:"FloatBabyLabFT"},Gs={ctor:"IntegerBabyLabFT"},Ys={ctor:"StringBabyLabFT"},Ks=function(t){switch(t){case"String":return Ys;case"Integer":return Gs;case"Float":return js;case"Bool":return Ws;default:return zs}},Qs=function(t){var r=t;return"Nothing"===r.ctor?U(zs):U(Ks(r._0))},Xs=d(Ie,"active",l(_e,function(t){return T.eq(t,1)},he),d(Ie,"fld4Type",l(_e,Qs,ue(ge)),d(Ie,"fld4Name",ue(ge),d(Ie,"fld3Type",l(_e,Qs,ue(ge)),d(Ie,"fld3Name",ue(ge),d(Ie,"fld2Type",l(_e,Qs,ue(ge)),d(Ie,"fld2Name",ue(ge),d(Ie,"fld1Type",l(_e,Ks,ge),d(Ie,"fld1Name",ge,d(Ie,"description",ue(ge),d(Ie,"name",ge,d(Ie,"id",he,Ae(function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return{id:t,name:r,description:e,fld1Name:o,fld1Type:c,fld2Name:n,fld2Type:a,fld3Name:_,fld3Type:i,fld4Name:u,fld4Type:s,active:l}}}}}}}}}}}}}))))))))))))),$s=i(function(t,r,e,o,c,n,a){return{id:t,babyMedicationType:r,medicationDate:e,location:o,initials:c,comments:n,baby_id:a}}),Zs=d(Ie,"baby_id",he,d(Ie,"comments",ue(ge),d(Ie,"initials",ue(ge),d(Ie,"location",ue(ge),d(Ie,"medicationDate",Go,d(Ie,"babyMedicationType",he,d(Ie,"id",he,Ae($s)))))))),tl=e(function(t,r){return h($s,t._0,r.babyMedicationType,r.medicationDate,r.location,r.initials,r.comments,r.baby_id)}),rl=_(function(t,r,e,o,c,n){return{babyMedicationType:t,medicationDate:r,location:e,initials:o,comments:c,baby_id:n}}),el=function(t){return{ctor:"BabyMedicationId",_0:t}},ol=e(function(t,r){return l(gc,function(r){return l(Ht,Ut(t),Ut(r.name))},r)}),cl=e(function(t,r){var e=l(gc,function(r){return T.eq(r.id,t)},r);if("Just"===e.ctor){var o=e._0;return U({ctor:"_Tuple2",_0:o.name,_1:o.useLocation})}return q}),nl=n(function(t,r,e,o){return{id:t,name:r,description:e,useLocation:o}}),al=d(Ie,"useLocation",l(_e,function(t){return T.eq(t,1)},he),d(Ie,"description",ue(ge),d(Ie,"name",ge,d(Ie,"id",he,Ae(nl))))),_l=i(function(t,r,e,o,c,n,a){return{id:t,babyVaccinationType:r,vaccinationDate:e,location:o,initials:c,comments:n,baby_id:a}}),il=d(Ie,"baby_id",he,d(Ie,"comments",ue(ge),d(Ie,"initials",ue(ge),d(Ie,"location",ue(ge),d(Ie,"vaccinationDate",Go,d(Ie,"babyVaccinationType",he,d(Ie,"id",he,Ae(_l)))))))),ul=e(function(t,r){return h(_l,t._0,r.babyVaccinationType,r.vaccinationDate,r.location,r.initials,r.comments,r.baby_id)}),sl=_(function(t,r,e,o,c,n){return{babyVaccinationType:t,vaccinationDate:r,location:e,initials:o,comments:c,baby_id:n}}),ll=function(t){return{ctor:"BabyVaccinationId",_0:t}},dl=e(function(t,r){return l(gc,function(r){return l(Ht,Ut(t),Ut(r.name))},r)}),ml=e(function(t,r){var e=l(gc,function(r){return T.eq(r.id,t)},r);if("Just"===e.ctor){var o=e._0;return U({ctor:"_Tuple2",_0:o.name,_1:o.useLocation})}return q}),fl=n(function(t,r,e,o){return{id:t,name:r,description:e,useLocation:o}}),pl=d(Ie,"useLocation",l(_e,function(t){return T.eq(t,1)},he),d(Ie,"description",ue(ge),d(Ie,"name",ge,d(Ie,"id",he,Ae(fl))))),hl=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return function(R){return function(x){return function(k){return function(P){return function(A){return function(L){return function(N){return function(E){return function(J){return function(I){return function(O){return function(V){return function(q){return function(H){return function(U){return function(z){return function(W){return function(j){return function(G){return function(Y){return function(K){return function(Q){return function(X){return function($){return function(Z){return{id:t,birthOrder:r,motherMaidenLastname:e,motherMiddlename:o,motherFirstname:c,motherCitizenship:n,motherNumChildrenBornAlive:a,motherNumChildrenLiving:_,motherNumChildrenBornAliveNowDead:i,motherAddress:u,motherCity:s,motherProvince:l,motherCountry:d,fatherLastname:m,fatherMiddlename:f,fatherFirstname:p,fatherCitizenship:h,fatherReligion:b,fatherOccupation:g,fatherAgeAtBirth:y,fatherAddress:C,fatherCity:T,fatherProvince:v,fatherCountry:M,dateOfMarriage:B,cityOfMarriage:D,provinceOfMarriage:S,countryOfMarriage:F,attendantType:w,attendantOther:R,attendantFullname:x,attendantTitle:k,attendantAddr1:P,attendantAddr2:A,informantFullname:L,informantRelationToChild:N,informantAddress:E,preparedByFullname:J,preparedByTitle:I,commTaxNumber:O,commTaxDate:V,commTaxPlace:q,receivedByName:H,receivedByTitle:U,affiateName:z,affiateAddress:W,affiateCitizenshipCountry:j,affiateReason:G,affiateIAm:Y,affiateCommTaxNumber:K,affiateCommTaxDate:Q,affiateCommTaxPlace:X,comments:$,baby_id:Z}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},bl=d(Ie,"baby_id",he,d(Ie,"comments",ue(ge),d(Ie,"affiateCommTaxPlace",ue(ge),d(Ie,"affiateCommTaxDate",ue(Go),d(Ie,"affiateCommTaxNumber",ue(ge),d(Ie,"affiateIAm",ue(ge),d(Ie,"affiateReason",ue(ge),d(Ie,"affiateCitizenshipCountry",ue(ge),d(Ie,"affiateAddress",ue(ge),d(Ie,"affiateName",ue(ge),d(Ie,"receivedByTitle",ue(ge),d(Ie,"receivedByName",ue(ge),d(Ie,"commTaxPlace",ue(ge),d(Ie,"commTaxDate",ue(Go),d(Ie,"commTaxNumber",ue(ge),d(Ie,"preparedByTitle",ge,d(Ie,"preparedByFullname",ge,d(Ie,"informantAddress",ge,d(Ie,"informantRelationToChild",ge,d(Ie,"informantFullname",ge,d(Ie,"attendantAddr2",ue(ge),d(Ie,"attendantAddr1",ue(ge),d(Ie,"attendantTitle",ue(ge),d(Ie,"attendantFullname",ge,d(Ie,"attendantOther",ue(ge),d(Ie,"attendantType",ge,d(Ie,"countryOfMarriage",ue(ge),d(Ie,"provinceOfMarriage",ue(ge),d(Ie,"cityOfMarriage",ue(ge),d(Ie,"dateOfMarriage",ue(Go),d(Ie,"fatherCountry",ue(ge),d(Ie,"fatherProvince",ue(ge),d(Ie,"fatherCity",ue(ge),d(Ie,"fatherAddress",ue(ge),d(Ie,"fatherAgeAtBirth",ue(he),d(Ie,"fatherOccupation",ue(ge),d(Ie,"fatherReligion",ue(ge),d(Ie,"fatherCitizenship",ue(ge),d(Ie,"fatherFirstname",ue(ge),d(Ie,"fatherMiddlename",ue(ge),d(Ie,"fatherLastname",ue(ge),d(Ie,"motherCountry",ge,d(Ie,"motherProvince",ge,d(Ie,"motherCity",ge,d(Ie,"motherAddress",ge,d(Ie,"motherNumChildrenBornAliveNowDead",he,d(Ie,"motherNumChildrenLiving",he,d(Ie,"motherNumChildrenBornAlive",he,d(Ie,"motherCitizenship",ge,d(Ie,"motherFirstname",ge,d(Ie,"motherMiddlename",ue(ge),d(Ie,"motherMaidenLastname",ge,d(Ie,"birthOrder",ge,d(Ie,"id",he,Ae(hl))))))))))))))))))))))))))))))))))))))))))))))))))))))),gl=e(function(t,r){return hl(t._0)(r.birthOrder)(r.motherMaidenLastname)(r.motherMiddlename)(r.motherFirstname)(r.motherCitizenship)(r.motherNumChildrenBornAlive)(r.motherNumChildrenLiving)(r.motherNumChildrenBornAliveNowDead)(r.motherAddress)(r.motherCity)(r.motherProvince)(r.motherCountry)(r.fatherLastname)(r.fatherMiddlename)(r.fatherFirstname)(r.fatherCitizenship)(r.fatherReligion)(r.fatherOccupation)(r.fatherAgeAtBirth)(r.fatherAddress)(r.fatherCity)(r.fatherProvince)(r.fatherCountry)(r.dateOfMarriage)(r.cityOfMarriage)(r.provinceOfMarriage)(r.countryOfMarriage)(r.attendantType)(r.attendantOther)(r.attendantFullname)(r.attendantTitle)(r.attendantAddr1)(r.attendantAddr2)(r.informantFullname)(r.informantRelationToChild)(r.informantAddress)(r.preparedByFullname)(r.preparedByTitle)(r.commTaxNumber)(r.commTaxDate)(r.commTaxPlace)(r.receivedByName)(r.receivedByTitle)(r.affiateName)(r.affiateAddress)(r.affiateCitizenshipCountry)(r.affiateReason)(r.affiateIAm)(r.affiateCommTaxNumber)(r.affiateCommTaxDate)(r.affiateCommTaxPlace)(r.comments)(r.baby_id)}),yl=function(t){return{ctor:"BirthCertificateId",_0:t}},Cl=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return{id:t,checkDatetime:r,motherSystolic:e,motherDiastolic:o,motherCR:c,motherTemp:n,motherFundus:a,motherEBL:_,babyBFed:i,babyTemp:u,babyRR:s,babyCR:l,comments:d,labor_id:m}}}}}}}}}}}}}}},Tl=d(Ie,"labor_id",he,d(Ie,"comments",ue(ge),d(Ie,"babyCR",ue(he),d(Ie,"babyRR",ue(he),d(Ie,"babyTemp",ue(pe),d(Ie,"babyBFed",ue(ge),d(Ie,"motherEBL",ue(he),d(Ie,"motherFundus",ue(ge),d(Ie,"motherTemp",ue(pe),d(Ie,"motherCR",ue(he),d(Ie,"motherDiastolic",ue(he),d(Ie,"motherSystolic",ue(he),d(Ie,"checkDatetime",Go,d(Ie,"id",he,Ae(Cl))))))))))))))),vl=e(function(t,r){return Cl(t._0)(r.checkDatetime)(r.motherSystolic)(r.motherDiastolic)(r.motherCR)(r.motherTemp)(r.motherFundus)(r.motherEBL)(r.babyBFed)(r.babyTemp)(r.babyRR)(r.babyCR)(r.comments)(r.labor_id)}),Ml=function(t){return{ctor:"ContPostpartumCheckId",_0:t}},Bl=function(t){return"WaivedNBS"===t.ctor?"Waived":"Done"},Dl=function(t){return l(z,Bl,t)},Sl=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return function(R){return{id:t,dateTime:r,motherSystolic:e,motherDiastolic:o,motherTemp:c,motherCR:n,babyRR:a,babyTemp:_,babyCR:i,ppInstructionsSchedule:u,birthCertWorksheet:s,birthRecorded:l,chartsComplete:d,logsComplete:m,billPaid:f,nbs:p,immunizationReferral:h,breastFeedingEstablished:b,newbornBath:g,fundusFirmBleedingCtld:y,motherAteDrank:C,motherUrinated:T,placentaGone:v,prayer:M,bible:B,transferBaby:D,transferMother:S,transferComment:F,initials:w,labor_id:R}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},Fl=e(function(t,r){return Sl(t._0)(r.dateTime)(r.motherSystolic)(r.motherDiastolic)(r.motherTemp)(r.motherCR)(r.babyRR)(r.babyTemp)(r.babyCR)(r.ppInstructionsSchedule)(r.birthCertWorksheet)(r.birthRecorded)(r.chartsComplete)(r.logsComplete)(r.billPaid)(r.nbs)(r.immunizationReferral)(r.breastFeedingEstablished)(r.newbornBath)(r.fundusFirmBleedingCtld)(r.motherAteDrank)(r.motherUrinated)(r.placentaGone)(r.prayer)(r.bible)(r.transferBaby)(r.transferMother)(r.transferComment)(r.initials)(r.labor_id)}),wl=function(t){return{ctor:"DischargeId",_0:t}},Rl={ctor:"WaivedNBS"},xl={ctor:"DoneNBS"},kl=function(t){var r=t;return"Just"===r.ctor?function(t){switch(r._0){case"Waived":return U(Rl);case"Done":return U(xl);default:return q}}():q},Pl=d(Ie,"labor_id",he,d(Ie,"initials",ue(ge),d(Ie,"transferComment",ue(ge),d(Ie,"transferBaby",gu,d(Ie,"transferBaby",gu,d(Ie,"bible",gu,d(Ie,"prayer",gu,d(Ie,"placentaGone",gu,d(Ie,"motherUrinated",gu,d(Ie,"motherAteDrank",gu,d(Ie,"fundusFirmBleedingCtld",gu,d(Ie,"newbornBath",gu,d(Ie,"breastFeedingEstablished",gu,d(Ie,"immunizationReferral",gu,d(Ie,"nbs",l(_e,kl,ue(ge)),d(Ie,"billPaid",gu,d(Ie,"logsComplete",gu,d(Ie,"chartsComplete",gu,d(Ie,"birthRecorded",gu,d(Ie,"birthCertWorksheet",gu,d(Ie,"ppInstructionsSchedule",gu,d(Ie,"babyCR",ue(he),d(Ie,"babyTemp",ue(pe),d(Ie,"babyRR",ue(he),d(Ie,"motherCR",ue(he),d(Ie,"motherTemp",ue(pe),d(Ie,"motherDiastolic",ue(he),d(Ie,"motherSystolic",ue(he),d(Ie,"dateTime",ue(Go),d(Ie,"id",he,Ae(Sl))))))))))))))))))))))))))))))),Al=e(function(t,r){return l(sr,t,r)}),Ll=e(function(t,r){return l(z,function(t){return t.kvValue},l(Al,t,r))}),Nl=i(function(t,r,e,o,c,n,a){return{id:t,kvKey:r,kvValue:e,description:o,valueType:c,acceptableValues:n,systemOnly:a}}),El={ctor:"BoolKeyValueType"},Jl={ctor:"DateKeyValueType"},Il={ctor:"DecimalKeyValueType"},Ol={ctor:"IntegerKeyValueType"},Vl={ctor:"ListKeyValueType"},ql={ctor:"TextKeyValueType"},Hl=d(Ie,"systemOnly",l(_e,function(t){return T.eq(t,1)},he),d(Ie,"acceptableValues",ge,d(Ie,"valueType",l(_e,function(t){var r=t;switch(r){case"text":return ql;case"list":return Vl;case"integer":return Ol;case"decimal":return Il;case"date":return Jl;case"boolean":return El;default:return l(ye,"stringToKeyValueType error",l(N["++"],"Encountered string of ",r)),ql}},ge),d(Ie,"description",ge,d(Ie,"kvValue",ge,d(Ie,"kvKey",ge,d(Ie,"id",he,Ae(Nl)))))))),Ul=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return{id:t,admittanceDate:r,startLaborDate:e,dischargeDate:o,pos:c,fh:n,fht:a,systolic:_,diastolic:i,cr:u,temp:s,comments:l,pregnancy_id:d}}}}}}}}}}}}}},zl=d(Ie,"pregnancy_id",he,d(Ie,"comments",ue(ge),d(Ie,"temp",pe,d(Ie,"cr",he,d(Ie,"diastolic",he,d(Ie,"systolic",he,d(Ie,"fht",ge,d(Ie,"fh",he,d(Ie,"pos",ge,m(Je,"dischargeDate",ue(Go),q,d(Ie,"startLaborDate",Go,d(Ie,"admittanceDate",Go,d(Ie,"id",he,Ae(Ul)))))))))))))),Wl=e(function(t,r){return Ul(t._0)(r.admittanceDate)(r.startLaborDate)(q)(r.pos)(r.fh)(r.fht)(r.systolic)(r.diastolic)(r.cr)(r.temp)(r.comments)(r.pregnancy_id)}),jl=function(t){return{ctor:"LaborId",_0:t}},Gl=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("laborStage1")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"fullDialation",_1:l(Qo,Ju,t.fullDialation)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mobility",_1:l(Qo,$r,t.mobility)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"durationLatent",_1:l(Qo,Xr,t.durationLatent)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"durationActive",_1:l(Qo,Xr,t.durationActive)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}})},_1:{ctor:"[]"}}})},Yl=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("laborStage1")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fullDialation",_1:l(Qo,Ju,t.fullDialation)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mobility",_1:l(Qo,$r,t.mobility)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"durationLatent",_1:l(Qo,Xr,t.durationLatent)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"durationActive",_1:l(Qo,Xr,t.durationActive)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}})},_1:{ctor:"[]"}}})},Kl=i(function(t,r,e,o,c,n,a){return{id:t,fullDialation:r,mobility:e,durationLatent:o,durationActive:c,comments:n,labor_id:a}}),Ql=d(Ie,"labor_id",he,d(Ie,"comments",ue(ge),d(Ie,"durationActive",ue(he),d(Ie,"durationLatent",ue(he),d(Ie,"mobility",ue(ge),d(Ie,"fullDialation",ue(Go),d(Ie,"id",he,Ae(Kl)))))))),Xl=e(function(t,r){return h(Kl,t._0,r.fullDialation,r.mobility,r.durationLatent,r.durationActive,r.comments,r.labor_id)}),$l=_(function(t,r,e,o,c,n){return{fullDialation:t,mobility:r,durationLatent:e,durationActive:o,comments:c,labor_id:n}}),Zl=function(t){return{ctor:"LaborStage1Id",_0:t}},td=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("laborStage2")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"birthDatetime",_1:l(Qo,Ju,t.birthDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthType",_1:l(Qo,$r,t.birthType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthPosition",_1:l(Qo,$r,t.birthPosition)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"durationPushing",_1:l(Qo,Xr,t.durationPushing)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthPresentation",_1:l(Qo,$r,t.birthPresentation)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"terminalMec",_1:yu(t.terminalMec)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cordWrapType",_1:l(Qo,$r,t.cordWrapType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"deliveryType",_1:l(Qo,$r,t.deliveryType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"shoulderDystocia",_1:yu(t.shoulderDystocia)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"shoulderDystociaMinutes",_1:l(Qo,Xr,t.shoulderDystociaMinutes)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"laceration",_1:yu(t.laceration)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"episiotomy",_1:yu(t.episiotomy)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"repair",_1:yu(t.repair)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"degree",_1:l(Qo,$r,t.degree)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lacerationRepairedBy",_1:l(Qo,$r,t.lacerationRepairedBy)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthEBL",_1:l(Qo,Xr,t.birthEBL)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"meconium",_1:l(Qo,$r,t.meconium)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})},rd=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("laborStage2")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthDatetime",_1:l(Qo,Ju,t.birthDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthType",_1:l(Qo,$r,t.birthType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthPosition",_1:l(Qo,$r,t.birthPosition)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"durationPushing",_1:l(Qo,Xr,t.durationPushing)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthPresentation",_1:l(Qo,$r,t.birthPresentation)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"terminalMec",_1:yu(t.terminalMec)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cordWrapType",_1:l(Qo,$r,t.cordWrapType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"deliveryType",_1:l(Qo,$r,t.deliveryType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"shoulderDystocia",_1:yu(t.shoulderDystocia)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"shoulderDystociaMinutes",_1:l(Qo,Xr,t.shoulderDystociaMinutes)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"laceration",_1:yu(t.laceration)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"episiotomy",_1:yu(t.episiotomy)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"repair",_1:yu(t.repair)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"degree",_1:l(Qo,$r,t.degree)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lacerationRepairedBy",_1:l(Qo,$r,t.lacerationRepairedBy)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthEBL",_1:l(Qo,Xr,t.birthEBL)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"meconium",_1:l(Qo,$r,t.meconium)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})},ed=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return{id:t,birthDatetime:r,birthType:e,birthPosition:o,durationPushing:c,birthPresentation:n,terminalMec:a,cordWrapType:_,deliveryType:i,shoulderDystocia:u,shoulderDystociaMinutes:s,laceration:l,episiotomy:d,repair:m,degree:f,lacerationRepairedBy:p,birthEBL:h,meconium:b,comments:g,labor_id:y}}}}}}}}}}}}}}}}}}}}},od=d(Ie,"labor_id",he,d(Ie,"comments",ue(ge),d(Ie,"meconium",ue(ge),d(Ie,"birthEBL",ue(he),d(Ie,"lacerationRepairedBy",ue(ge),d(Ie,"degree",ue(ge),d(Ie,"repair",gu,d(Ie,"episiotomy",gu,d(Ie,"laceration",gu,d(Ie,"shoulderDystociaMinutes",ue(he),d(Ie,"shoulderDystocia",gu,d(Ie,"deliveryType",ue(ge),d(Ie,"cordWrapType",ue(ge),d(Ie,"terminalMec",gu,d(Ie,"birthPresentation",ue(ge),d(Ie,"durationPushing",ue(he),d(Ie,"birthPosition",ue(ge),d(Ie,"birthType",ue(ge),d(Ie,"birthDatetime",ue(Go),d(Ie,"id",he,Ae(ed))))))))))))))))))))),cd=e(function(t,r){return ed(t._0)(r.birthDatetime)(r.birthType)(r.birthPosition)(r.durationPushing)(r.birthPresentation)(r.terminalMec)(r.cordWrapType)(r.deliveryType)(r.shoulderDystocia)(r.shoulderDystociaMinutes)(r.laceration)(r.episiotomy)(r.repair)(r.degree)(r.lacerationRepairedBy)(r.birthEBL)(r.meconium)(r.comments)(r.labor_id)}),nd=function(t){return{ctor:"LaborStage2Id",_0:t}},ad=function(t){return"Schultz"===t.ctor?"Schultz":"Duncan"},_d=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("laborStage3")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDatetime",_1:l(Qo,Ju,t.placentaDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDeliverySpontaneous",_1:yu(t.placentaDeliverySpontaneous)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDeliveryAMTSL",_1:yu(t.placentaDeliveryAMTSL)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDeliveryCCT",_1:yu(t.placentaDeliveryCCT)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDeliveryManual",_1:yu(t.placentaDeliveryManual)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"maternalPosition",_1:l(Qo,$r,t.maternalPosition)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss1",_1:l(Qo,$r,t.txBloodLoss1)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss2",_1:l(Qo,$r,t.txBloodLoss2)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss3",_1:l(Qo,$r,t.txBloodLoss3)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss4",_1:l(Qo,$r,t.txBloodLoss4)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss5",_1:l(Qo,$r,t.txBloodLoss5)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaShape",_1:l(Qo,$r,t.placentaShape)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaInsertion",_1:l(Qo,$r,t.placentaInsertion)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaNumVessels",_1:l(Qo,Xr,t.placentaNumVessels)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"schultzDuncan",_1:l(Qo,function(t){return $r(ad(t))},t.schultzDuncan)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cotyledons",_1:l(Qo,$r,t.cotyledons)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"membranes",_1:l(Qo,$r,t.membranes)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})},id=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("laborStage3")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDatetime",_1:l(Qo,Ju,t.placentaDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDeliverySpontaneous",_1:yu(t.placentaDeliverySpontaneous)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDeliveryAMTSL",_1:yu(t.placentaDeliveryAMTSL)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDeliveryCCT",_1:yu(t.placentaDeliveryCCT)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaDeliveryManual",_1:yu(t.placentaDeliveryManual)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"maternalPosition",_1:l(Qo,$r,t.maternalPosition)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss1",_1:l(Qo,$r,t.txBloodLoss1)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss2",_1:l(Qo,$r,t.txBloodLoss2)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss3",_1:l(Qo,$r,t.txBloodLoss3)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss4",_1:l(Qo,$r,t.txBloodLoss4)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"txBloodLoss5",_1:l(Qo,$r,t.txBloodLoss5)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaShape",_1:l(Qo,$r,t.placentaShape)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaInsertion",_1:l(Qo,$r,t.placentaInsertion)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaNumVessels",_1:l(Qo,Xr,t.placentaNumVessels)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"schultzDuncan",_1:l(Qo,function(t){return $r(ad(t))},t.schultzDuncan)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cotyledons",_1:l(Qo,$r,t.cotyledons)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"membranes",_1:l(Qo,$r,t.membranes)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})},ud=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return{id:t,placentaDatetime:r,placentaDeliverySpontaneous:e,placentaDeliveryAMTSL:o,placentaDeliveryCCT:c,placentaDeliveryManual:n,maternalPosition:a,txBloodLoss1:_,txBloodLoss2:i,txBloodLoss3:u,txBloodLoss4:s,txBloodLoss5:l,placentaShape:d,placentaInsertion:m,placentaNumVessels:f,schultzDuncan:p,cotyledons:h,membranes:b,comments:g,labor_id:y}}}}}}}}}}}}}}}}}}}}},sd=e(function(t,r){return ud(t._0)(r.placentaDatetime)(r.placentaDeliverySpontaneous)(r.placentaDeliveryAMTSL)(r.placentaDeliveryCCT)(r.placentaDeliveryManual)(r.maternalPosition)(r.txBloodLoss1)(r.txBloodLoss2)(r.txBloodLoss3)(r.txBloodLoss4)(r.txBloodLoss5)(r.placentaShape)(r.placentaInsertion)(r.placentaNumVessels)(r.schultzDuncan)(r.cotyledons)(r.membranes)(r.comments)(r.labor_id)}),ld=function(t){return{ctor:"LaborStage3Id",_0:t}},dd={ctor:"Duncan"},md={ctor:"Schultz"},fd=function(t){switch(t){case"Schultz":return U(md);case"Duncan":return U(dd);default:return q}},pd=d(Ie,"labor_id",he,d(Ie,"comments",ue(ge),d(Ie,"membranes",ue(ge),d(Ie,"cotyledons",ue(ge),d(Ie,"schultzDuncan",l(_e,function(t){var r=t;return"Just"===r.ctor?fd(r._0):q},ue(ge)),d(Ie,"placentaNumVessels",ue(he),d(Ie,"placentaInsertion",ue(ge),d(Ie,"placentaShape",ue(ge),d(Ie,"txBloodLoss5",ue(ge),d(Ie,"txBloodLoss4",ue(ge),d(Ie,"txBloodLoss3",ue(ge),d(Ie,"txBloodLoss2",ue(ge),d(Ie,"txBloodLoss1",ue(ge),d(Ie,"maternalPosition",ue(ge),d(Ie,"placentaDeliveryManual",gu,d(Ie,"placentaDeliveryCCT",gu,d(Ie,"placentaDeliveryAMTSL",gu,d(Ie,"placentaDeliverySpontaneous",gu,d(Ie,"placentaDatetime",ue(Go),d(Ie,"id",he,Ae(ud))))))))))))))))))))),hd=function(t){var r=t;if("Just"!==r.ctor)return"";switch(r._0.ctor){case"ClearAmniotic":return"Clear";case"LtStainAmniotic":return"Lt Stain";case"ModStainAmniotic":return"Mod Stain";case"ThickStainAmniotic":return"Thick Stain";default:return"Other"}},bd=function(t){switch(t.ctor){case"ClearAmniotic":return"Clear";case"LtStainAmniotic":return"Lt Stain";case"ModStainAmniotic":return"Mod Stain";case"ThickStainAmniotic":return"Thick Stain";default:return"Other"}},gd=function(t){var r=t;if("Just"!==r.ctor)return"";switch(r._0.ctor){case"AROMRupture":return"AROM";case"SROMRupture":return"SROM";default:return"Other"}},yd=function(t){switch(t.ctor){case"AROMRupture":return"AROM";case"SROMRupture":return"SROM";default:return"Other"}},Cd=u(function(t,r,e,o,c,n,a,_){return{id:t,ruptureDatetime:r,rupture:e,ruptureComment:o,amniotic:c,amnioticComment:n,comments:a,labor_id:_}}),Td=e(function(t,r){return b(Cd,t._0,r.ruptureDatetime,r.rupture,r.ruptureComment,r.amniotic,r.amnioticComment,r.comments,r.labor_id)}),vd=i(function(t,r,e,o,c,n,a){return{ruptureDatetime:t,rupture:r,ruptureComment:e,amniotic:o,amnioticComment:c,comments:n,labor_id:a}}),Md=function(t){return{ctor:"MembraneId",_0:t}},Bd={ctor:"OtherRupture"},Dd={ctor:"SROMRupture"},Sd={ctor:"AROMRupture"},Fd=function(t){var r=t;return"Just"===r.ctor?function(t){switch(r._0){case"AROM":return U(Sd);case"SROM":return U(Dd);case"Other":return U(Bd);default:return q}}():q},wd={ctor:"OtherAmniotic"},Rd={ctor:"ThickStainAmniotic"},xd={ctor:"ModStainAmniotic"},kd={ctor:"LtStainAmniotic"},Pd={ctor:"ClearAmniotic"},Ad=function(t){var r=t;return"Just"===r.ctor?function(t){switch(r._0){case"Clear":return U(Pd);case"Lt Stain":return U(kd);case"Mod Stain":return U(xd);case"Thick Stain":return U(Rd);case"Other":return U(wd);default:return q}}():q},Ld=d(Ie,"labor_id",he,d(Ie,"comments",ue(ge),d(Ie,"amnioticComment",ue(ge),d(Ie,"amniotic",l(_e,Ad,ue(ge)),d(Ie,"ruptureComment",ue(ge),d(Ie,"rupture",l(_e,Fd,ue(ge)),m(Je,"ruptureDatetime",ue(Go),q,d(Ie,"id",he,Ae(Cd))))))))),Nd=_(function(t,r,e,o,c,n){return{id:t,motherMedicationType:r,medicationDate:e,initials:o,comments:c,labor_id:n}}),Ed=d(Ie,"labor_id",he,d(Ie,"comments",ue(ge),d(Ie,"initials",ue(ge),d(Ie,"medicationDate",Go,d(Ie,"motherMedicationType",he,d(Ie,"id",he,Ae(Nd))))))),Jd=e(function(t,r){return p(Nd,t._0,r.motherMedicationType,r.medicationDate,r.initials,r.comments,r.labor_id)}),Id=a(function(t,r,e,o,c){return{motherMedicationType:t,medicationDate:r,initials:e,comments:o,labor_id:c}}),Od=function(t){return{ctor:"MotherMedicationId",_0:t}},Vd=e(function(t,r){return l(gc,function(r){return l(Ht,Ut(t),Ut(r.name))},r)}),qd=e(function(t,r){var e=l(gc,function(r){return T.eq(r.id,t)},r);return"Just"===e.ctor?U(e._0.name):q}),Hd=c(function(t,r,e){return{id:t,name:r,description:e}}),Ud=d(Ie,"description",ue(ge),d(Ie,"name",ge,d(Ie,"id",he,Ae(Hd)))),zd=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return function(R){return function(x){return function(k){return function(P){return function(A){return function(L){return function(N){return function(E){return function(J){return function(I){return function(O){return function(V){return function(q){return function(H){return function(U){return function(z){return function(W){return function(j){return function(G){return function(Y){return function(K){return function(Q){return function(X){return function($){return function(Z){return function(tt){return function(rt){return function(et){return function(ot){return function(ct){return function(nt){return function(at){return function(_t){return{id:t,examDatetime:r,examiners:e,rr:o,hr:c,temperature:n,length:a,headCir:_,chestCir:i,appearance:u,appearanceComment:s,color:l,colorComment:d,skin:m,skinComment:f,head:p,headComment:h,eyes:b,eyesComment:g,ears:y,earsComment:C,nose:T,noseComment:v,mouth:M,mouthComment:B,neck:D,neckComment:S,chest:F,chestComment:w,lungs:R,lungsComment:x,heart:k,heartComment:P,abdomen:A,abdomenComment:L,hips:N,hipsComment:E,cord:J,cordComment:I,femoralPulses:O,femoralPulsesComment:V,genitalia:q,genitaliaComment:H,anus:U,anusComment:z,back:W,backComment:j,extremities:G,extremitiesComment:Y,estGA:K,moroReflex:Q,moroReflexComment:X,palmarReflex:$,palmarReflexComment:Z,steppingReflex:tt,steppingReflexComment:rt,plantarReflex:et,plantarReflexComment:ot,babinskiReflex:ct,babinskiReflexComment:nt,comments:at,baby_id:_t}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},Wd=d(Ie,"baby_id",he,d(Ie,"comments",ue(ge),d(Ie,"babinskiReflexComment",ue(ge),d(Ie,"babinskiReflex",gu,d(Ie,"plantarReflexComment",ue(ge),d(Ie,"plantarReflex",gu,d(Ie,"steppingReflexComment",ue(ge),d(Ie,"steppingReflex",gu,d(Ie,"palmarReflexComment",ue(ge),d(Ie,"palmarReflex",gu,d(Ie,"moroReflexComment",ue(ge),d(Ie,"moroReflex",gu,d(Ie,"estGA",ue(ge),d(Ie,"extremitiesComment",ue(ge),d(Ie,"extremities",ue(ge),d(Ie,"backComment",ue(ge),d(Ie,"back",ue(ge),d(Ie,"anusComment",ue(ge),d(Ie,"anus",ue(ge),d(Ie,"genitaliaComment",ue(ge),d(Ie,"genitalia",ue(ge),d(Ie,"femoralPulsesComment",ue(ge),d(Ie,"femoralPulses",ue(ge),d(Ie,"cordComment",ue(ge),d(Ie,"cord",ue(ge),d(Ie,"hipsComment",ue(ge),d(Ie,"hips",ue(ge),d(Ie,"abdomenComment",ue(ge),d(Ie,"abdomen",ue(ge),d(Ie,"heartComment",ue(ge),d(Ie,"heart",ue(ge),d(Ie,"lungsComment",ue(ge),d(Ie,"lungs",ue(ge),d(Ie,"chestComment",ue(ge),d(Ie,"chest",ue(ge),d(Ie,"neckComment",ue(ge),d(Ie,"neck",ue(ge),d(Ie,"mouthComment",ue(ge),d(Ie,"mouth",ue(ge),d(Ie,"noseComment",ue(ge),d(Ie,"nose",ue(ge),d(Ie,"earsComment",ue(ge),d(Ie,"ears",ue(ge),d(Ie,"eyesComment",ue(ge),d(Ie,"eyes",ue(ge),d(Ie,"headComment",ue(ge),d(Ie,"head",ue(ge),d(Ie,"skinComment",ue(ge),d(Ie,"skin",ue(ge),d(Ie,"colorComment",ue(ge),d(Ie,"color",ue(ge),d(Ie,"appearanceComment",ue(ge),d(Ie,"appearance",ue(ge),d(Ie,"chestCir",ue(pe),d(Ie,"headCir",ue(pe),d(Ie,"length",ue(pe),d(Ie,"temperature",ue(pe),d(Ie,"hr",ue(he),d(Ie,"rr",ue(he),d(Ie,"examiners",ge,d(Ie,"examDatetime",Go,d(Ie,"id",he,Ae(zd))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))),jd=e(function(t,r){return zd(t._0)(r.examDatetime)(r.examiners)(r.rr)(r.hr)(r.temperature)(r.length)(r.headCir)(r.chestCir)(r.appearance)(r.appearanceComment)(r.color)(r.colorComment)(r.skin)(r.skinComment)(r.head)(r.headComment)(r.eyes)(r.eyesComment)(r.ears)(r.earsComment)(r.nose)(r.noseComment)(r.mouth)(r.mouthComment)(r.neck)(r.neckComment)(r.chest)(r.chestComment)(r.lungs)(r.lungsComment)(r.heart)(r.heartComment)(r.abdomen)(r.abdomenComment)(r.hips)(r.hipsComment)(r.cord)(r.cordComment)(r.femoralPulses)(r.femoralPulsesComment)(r.genitalia)(r.genitaliaComment)(r.anus)(r.anusComment)(r.back)(r.backComment)(r.extremities)(r.extremitiesComment)(r.estGA)(r.moroReflex)(r.moroReflexComment)(r.palmarReflex)(r.palmarReflexComment)(r.steppingReflex)(r.steppingReflexComment)(r.plantarReflex)(r.plantarReflexComment)(r.babinskiReflex)(r.babinskiReflexComment)(r.comments)(r.baby_id)}),Gd=function(t){return{ctor:"NewbornExamId",_0:t}},Yd=e(function(t,r){return l(sr,t,r)}),Kd=_(function(t,r,e,o,c,n){return{id:t,username:r,firstname:e,lastname:o,shortName:c,displayName:n}}),Qd=d(Ie,"displayName",fe(ge),d(Ie,"shortName",fe(ge),d(Ie,"firstname",fe(ge),d(Ie,"lastname",fe(ge),d(Ie,"username",ge,d(Ie,"id",he,Ae(Kd))))))),Xd=c(function(t,r,e){var o=l(sr,r_(t),e);return"Just"===o.ctor?l(sr,r,o._0):q}),$d=(c(function(t,r,e){var o=l(sr,r_(t),e);return"Just"===o.ctor?d(Er,r_(t),l(Ur,r,o._0),e):e}),n(function(t,r,e,o){var c,n="Just"===(c=r).ctor?T.update(t,{username:U(c._0.username),supervisor:e}):t,a={ctor:"_Tuple2",_0:t.table,_1:t.id},_=a._0,i=a._1,u=l(sr,r_(_),o);return"Just"===u.ctor?d(Er,r_(_),d(Er,i,n,u._0),o):d(Er,r_(_),l(Jr,i,n),o)})),Zd=c(function(t,r,o){return d(et,e(function(t,e){return m($d,t,l(sr,t.updatedBy,r),t.supervisor,e)}),o,t)}),tm=(c(function(t,r,e){return d(Nr,r_(t),function(t){var e=t;return"Just"===e.ctor?U(d(Nr,r,function(t){var r=t;if("Just"===r.ctor){var e=r._0;return U(T.update(e,{isVisible:!e.isVisible}))}return q},e._0)):q},e)}),Tr),rm=i(function(t,r,e,o,c,n,a){return{table:t,id:r,updatedBy:e,username:o,updatedAt:c,supervisor:n,isVisible:a}}),em=function(t){return l(Ne,!1,d(Ie,"supervisor",ue(he),d(Ie,"updatedAt",Go,l(Ne,q,d(Ie,"updatedBy",he,d(Ie,"id",he,l(Ne,t,Ae(rm))))))))},om=i(function(t,r,e,o,c,n,a){var _=d(Xd,t,r,a);return"Just"===_.ctor?m($d,T.update(_._0,{updatedAt:c}),l(Yd,e,n),o,a):m($d,h(rm,t,r,e,q,c,q,!1),l(Yd,e,n),o,a)}),cm=a(function(t,r,e,o,c){return{id:t,dohID:r,dob:e,generalInfo:o,ageOfMenarche:c}}),nm=d(Ie,"ageOfMenarche",ue(he),d(Ie,"generalInfo",ue(ge),d(Ie,"dob",ue(Go),d(Ie,"dohID",ue(ge),d(Ie,"id",he,Ae(cm)))))),am=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return function(R){return function(x){return function(k){return function(P){return function(A){return function(L){return function(N){return function(E){return{id:t,checkDatetime:r,babyWeight:e,babyTemp:o,babyCR:c,babyRR:n,babyLungs:a,babyColor:_,babySkin:i,babyCord:u,babyUrine:s,babyStool:l,babySSInfection:d,babyFeeding:m,babyFeedingDaily:f,motherTemp:p,motherSystolic:h,motherDiastolic:b,motherCR:g,motherBreasts:y,motherFundus:C,motherFundusNote:T,motherPerineum:v,motherPerineumNote:M,motherLochia:B,motherUrine:D,motherStool:S,motherSSInfection:F,motherFamilyPlanning:w,birthCertReq:R,hgbRequested:x,hgbTestDate:k,hgbTestResult:P,ironGiven:A,comments:L,nextScheduledCheck:N,labor_id:E}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},_m=d(Ie,"labor_id",he,d(Ie,"nextScheduledCheck",ue(Go),d(Ie,"comments",ue(ge),d(Ie,"ironGiven",ue(he),d(Ie,"hgbTestResult",ue(ge),d(Ie,"hgbTestDate",ue(Go),d(Ie,"hgbRequested",gu,d(Ie,"birthCertReq",gu,d(Ie,"motherFamilyPlanning",ue(ge),d(Ie,"motherSSInfection",ue(ge),d(Ie,"motherStool",ue(ge),d(Ie,"motherUrine",ue(ge),d(Ie,"motherLochia",ue(ge),d(Ie,"motherPerineumNote",ue(ge),d(Ie,"motherPerineum",ue(ge),d(Ie,"motherFundusNote",ue(ge),d(Ie,"motherFundus",ue(ge),d(Ie,"motherBreasts",ue(ge),d(Ie,"motherCR",ue(he),d(Ie,"motherDiastolic",ue(he),d(Ie,"motherSystolic",ue(he),d(Ie,"motherTemp",ue(pe),d(Ie,"babyFeedingDaily",ue(ge),d(Ie,"babyFeeding",ue(ge),d(Ie,"babySSInfection",ue(ge),d(Ie,"babyStool",ue(ge),d(Ie,"babyUrine",ue(ge),d(Ie,"babyCord",ue(ge),d(Ie,"babySkin",ue(ge),d(Ie,"babyColor",ue(ge),d(Ie,"babyLungs",ue(ge),d(Ie,"babyRR",ue(he),d(Ie,"babyCR",ue(he),d(Ie,"babyTemp",ue(pe),d(Ie,"babyWeight",ue(he),d(Ie,"checkDatetime",Go,d(Ie,"id",he,Ae(am)))))))))))))))))))))))))))))))))))))),im=e(function(t,r){return am(t._0)(r.checkDatetime)(r.babyWeight)(r.babyTemp)(r.babyCR)(r.babyRR)(r.babyLungs)(r.babyColor)(r.babySkin)(r.babyCord)(r.babyUrine)(r.babyStool)(r.babySSInfection)(r.babyFeeding)(r.babyFeedingDaily)(r.motherTemp)(r.motherSystolic)(r.motherDiastolic)(r.motherCR)(r.motherBreasts)(r.motherFundus)(r.motherFundusNote)(r.motherPerineum)(r.motherPerineumNote)(r.motherLochia)(r.motherUrine)(r.motherStool)(r.motherSSInfection)(r.motherFamilyPlanning)(r.birthCertReq)(r.hgbRequested)(r.hgbTestDate)(r.hgbTestResult)(r.ironGiven)(r.comments)(r.nextScheduledCheck)(r.labor_id)}),um=function(t){return{ctor:"PostpartumCheckId",_0:t}},sm=function(t){return t._0},lm=d(Ie,"patient_id",he,d(Ie,"partnerIncomePeriod",ue(ge),d(Ie,"partnerIncome",ue(he),d(Ie,"partnerEducation",ue(ge),d(Ie,"partnerWork",ue(ge),d(Ie,"partnerAge",ue(he),d(Ie,"partnerLastname",ue(ge),d(Ie,"partnerFirstname",ue(ge),d(Ie,"questionnaireNote",ue(ge),d(Ie,"historyNone",gu,d(Ie,"historyDrinking",gu,d(Ie,"historySmoking",gu,d(Ie,"historyBloodTransfusion",gu,d(Ie,"historyHospitalOperation",gu,d(Ie,"historyHighBloodPressure",gu,d(Ie,"historyGoiter",gu,d(Ie,"historyHepatitis",gu,d(Ie,"historyKidneyProblems",gu,d(Ie,"historyHeartProblems",gu,d(Ie,"historyAsthma",gu,d(Ie,"historyMedicineAllergy",gu,d(Ie,"historyFoodAllergy",gu,d(Ie,"familyHistoryNone",gu,d(Ie,"familyHistorySmoking",gu,d(Ie,"familyHistoryTB",gu,d(Ie,"familyHistoryHeartProblems",gu,d(Ie,"familyHistoryDiabetes",gu,d(Ie,"familyHistoryHighBloodPressure",gu,d(Ie,"familyHistoryTwins",gu,d(Ie,"practiceFamilyPlanningDetails",ue(ge),d(Ie,"practiceFamilyPlanning",gu,d(Ie,"birthCompanion",ue(ge),d(Ie,"planToBreastFeed",ue(ge),d(Ie,"takingMedication",ue(ge),d(Ie,"useIodizedSalt",ue(ge),d(Ie,"currentlyNone",gu,d(Ie,"currentlyVaginalItching",gu,d(Ie,"currentlyVaginalPain",gu,d(Ie,"currentlySwelling",gu,d(Ie,"currentlyBlurryVision",gu,d(Ie,"currentlyUrinationPain",gu,d(Ie,"currentlyBleeding",gu,d(Ie,"currentlyFainting",gu,d(Ie,"currentlyDizzy",gu,d(Ie,"currentlyVomiting",gu,d(Ie,"transferOfCareNote",ue(ge),d(Ie,"transferOfCare",ue(Go),d(Ie,"philHealthApproved",gu,d(Ie,"philHealthID",ue(ge),d(Ie,"philHealthNCP",gu,d(Ie,"philHealthMCP",gu,d(Ie,"preterm",ue(he),d(Ie,"term",ue(he),d(Ie,"para",ue(he),d(Ie,"living",ue(he),d(Ie,"abortions",ue(he),d(Ie,"stillBirths",ue(he),d(Ie,"gravida",ue(he),d(Ie,"wantsUS",gu,d(Ie,"hasUS",gu,d(Ie,"invertedNipples",gu,d(Ie,"numberRequiredTetanus",ue(he),d(Ie,"note",ue(ge),d(Ie,"iugr",gu,d(Ie,"pregnancyEndResult",ue(ge),d(Ie,"pregnancyEndDate",ue(Go),d(Ie,"monozygotic",gu,d(Ie,"fetuses",ue(he),d(Ie,"whereDeliver",ue(ge),d(Ie,"mbBook",gu,d(Ie,"dentistConsultDate",ue(Go),d(Ie,"doctorConsultDate",ue(Go),d(Ie,"useAlternateEdd",gu,d(Ie,"alternateEdd",ue(Go),d(Ie,"riskNote",ue(ge),d(Ie,"warning",gu,d(Ie,"sureLMP",gu,d(Ie,"lmp",ue(Go),d(Ie,"gravidaNumber",ue(he),d(Ie,"country",ue(ge),d(Ie,"postalCode",ue(ge),d(Ie,"state",ue(ge),d(Ie,"city",ue(ge),d(Ie,"address4",ue(ge),d(Ie,"address3",ue(ge),d(Ie,"address2",ue(ge),d(Ie,"address1",ue(ge),d(Ie,"clientIncomePeriod",ue(ge),d(Ie,"clientIncome",ue(he),d(Ie,"education",ue(ge),d(Ie,"work",ue(ge),d(Ie,"telephone",ue(ge),d(Ie,"maritalStatus",ue(ge),d(Ie,"religion",ue(ge),d(Ie,"nickname",ue(ge),d(Ie,"maidenname",ue(ge),d(Ie,"lastname",ge,d(Ie,"firstname",ge,d(Ie,"id",he,Ae(function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return function(R){return function(x){return function(k){return function(P){return function(A){return function(L){return function(N){return function(E){return function(J){return function(I){return function(O){return function(V){return function(q){return function(H){return function(U){return function(z){return function(W){return function(j){return function(G){return function(Y){return function(K){return function(Q){return function(X){return function($){return function(Z){return function(tt){return function(rt){return function(et){return function(ot){return function(ct){return function(nt){return function(at){return function(_t){return function(it){return function(ut){return function(st){return function(lt){return function(dt){return function(mt){return function(ft){return function(pt){return function(ht){return function(bt){return function(gt){return function(yt){return function(Ct){return function(Tt){return function(vt){return function(Mt){return function(Bt){return function(Dt){return function(St){return function(Ft){return function(wt){return function(Rt){return function(xt){return function(kt){return function(Pt){return function(At){return function(Lt){return function(Nt){return function(Et){return function(Jt){return function(It){return function(Ot){return function(Vt){return function(qt){return function(Ht){return function(Ut){return function(zt){return{id:t,firstname:r,lastname:e,maidenname:o,nickname:c,religion:n,maritalStatus:a,telephone:_,work:i,education:u,clientIncome:s,clientIncomePeriod:l,address1:d,address2:m,address3:f,address4:p,city:h,state:b,postalCode:g,country:y,gravidaNumber:C,lmp:T,sureLMP:v,warning:M,riskNote:B,alternateEdd:D,useAlternateEdd:S,doctorConsultDate:F,dentistConsultDate:w,mbBook:R,whereDeliver:x,fetuses:k,monozygotic:P,pregnancyEndDate:A,pregnancyEndResult:L,iugr:N,note:E,numberRequiredTetanus:J,invertedNipples:I,hasUS:O,wantsUS:V,gravida:q,stillBirths:H,abortions:U,living:z,para:W,term:j,preterm:G,philHealthMCP:Y,philHealthNCP:K,philHealthID:Q,philHealthApproved:X,transferOfCare:$,transferOfCareNote:Z,currentlyVomiting:tt,currentlyDizzy:rt,currentlyFainting:et,currentlyBleeding:ot,currentlyUrinationPain:ct,currentlyBlurryVision:nt,currentlySwelling:at,currentlyVaginalPain:_t,currentlyVaginalItching:it,currentlyNone:ut,useIodizedSalt:st,takingMedication:lt,planToBreastFeed:dt,birthCompanion:mt,practiceFamilyPlanning:ft,practiceFamilyPlanningDetails:pt,familyHistoryTwins:ht,familyHistoryHighBloodPressure:bt,familyHistoryDiabetes:gt,familyHistoryHeartProblems:yt,familyHistoryTB:Ct,familyHistorySmoking:Tt,familyHistoryNone:vt,historyFoodAllergy:Mt,historyMedicineAllergy:Bt,historyAsthma:Dt,historyHeartProblems:St,historyKidneyProblems:Ft,historyHepatitis:wt,historyGoiter:Rt,historyHighBloodPressure:xt,historyHospitalOperation:kt,historyBloodTransfusion:Pt,historySmoking:At,historyDrinking:Lt,historyNone:Nt,questionnaireNote:Et,partnerFirstname:Jt,partnerLastname:It,partnerAge:Ot,partnerWork:Vt,partnerEducation:qt,partnerIncome:Ht,partnerIncomePeriod:Ut,patient_id:zt}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))),dm=function(t){return{ctor:"PregnancyId",_0:t}},mm=function(t){return U(l(Qt,"|",l(lt,function(t){return t.selected?U(t.selectKey):q},t)))},fm=e(function(t,r){return it(function(e){return T.eq(t,e.selectKey)?T.update(e,{selected:r}):e})}),pm=e(function(t,r){return l(it,function(r){return T.update(r,{selected:l(ct,r.selectKey,t)})},r)}),hm=e(function(t,r){return l(ut,function(r){return T.eq(r.name,t)},r)}),bm=c(function(t,r,e){var o=l(Xt,"|",l(V,"",r));return l(pm,o,l(hm,t,e))}),gm=a(function(t,r,e,o,c){return{id:t,name:r,selectKey:e,label:o,selected:c}}),ym=d(Ie,"selected",l(_e,function(t){return T.eq(t,1)},he),d(Ie,"label",ge,d(Ie,"selectKey",ge,d(Ie,"name",ge,d(Ie,"id",he,Ae(gm)))))),Cm=(e(function(t,r){return l(Ur,r_(t),r)}),e(function(t,r){return l(sr,r_(t),r)})),Tm=e(function(t,r){return d(Er,function(t){switch(t.ctor){case"BabyDataCache":return r_(F_);case"BabyLabDataCache":return r_(S_);case"BabyLabTypeDataCache":return r_(D_);case"BabyMedicationDataCache":return r_(B_);case"BabyMedicationTypeDataCache":return r_(M_);case"BabyVaccinationDataCache":return r_(v_);case"BabyVaccinationTypeDataCache":return r_(T_);case"BirthCertificateDataCache":return r_(C_);case"ContPostpartumCheckDataCache":return r_(y_);case"DischargeDataCache":return r_(g_);case"KeyValueDataCache":return r_(b_);case"LaborDataCache":return r_(h_);case"LaborStage1DataCache":return r_(p_);case"LaborStage2DataCache":return r_(f_);case"LaborStage3DataCache":return r_(m_);case"MembraneDataCache":return r_(d_);case"MotherMedicationDataCache":return r_(l_);case"MotherMedicationTypeDataCache":return r_(s_);case"NewbornExamDataCache":return r_(u_);case"PatientDataCache":return r_(i_);case"PostpartumCheckDataCache":return r_(__);case"PregnancyDataCache":return r_(a_);default:return r_(c_)}}(t),t,r)}),vm=function(t){return{ctor:"PostpartumCheckDataCache",_0:t}},Mm=function(t){return{ctor:"NewbornExamDataCache",_0:t}},Bm=function(t){return{ctor:"MotherMedicationDataCache",_0:t}},Dm=function(t){return{ctor:"MembraneDataCache",_0:t}},Sm=function(t){return{ctor:"LaborStage3DataCache",_0:t}},Fm=function(t){return{ctor:"LaborStage2DataCache",_0:t}},wm=function(t){return{ctor:"LaborStage1DataCache",_0:t}},Rm=function(t){return{ctor:"LaborDataCache",_0:t}},xm=function(t){return{ctor:"DischargeDataCache",_0:t}},km=function(t){return{ctor:"ContPostpartumCheckDataCache",_0:t}},Pm=function(t){return{ctor:"BirthCertificateDataCache",_0:t}},Am=function(t){return{ctor:"BabyVaccinationDataCache",_0:t}},Lm=function(t){return{ctor:"BabyMedicationDataCache",_0:t}},Nm=function(t){return{ctor:"BabyLabDataCache",_0:t}},Em=function(t){return{ctor:"BabyDataCache",_0:t}},Jm=Ic("dynamicDateId-(\\d+)-(\\d+)"),Im=e(function(t,r){return{dateField:t,date:r}}),Om={ctor:"BirthCertDateOfAffiateCommTaxField"},Vm={ctor:"BirthCertDateOfMarriageField"},qm={ctor:"BirthCertDateOfCommTaxField"},Hm={ctor:"PostpartumCheckScheduledField"},Um={ctor:"PostpartumCheckHgbField"},zm={ctor:"PostpartumCheckDateField"},Wm={ctor:"DischargeDateField"},jm=e(function(t,r){return{ctor:"DynamicDateField",_0:t,_1:r}}),Gm={ctor:"BabyMed1DateField"},Ym={ctor:"ContPostpartumCheckDateField"},Km={ctor:"NewBornExamDateField"},Qm={ctor:"BabyBcgDateField"},Xm={ctor:"BabyNbsDateField"},$m={ctor:"BabyBFedEstablishedDateField"},Zm={ctor:"MembraneRuptureDateField"},tf={ctor:"EarlyLaborDateField"},rf={ctor:"LaborDelIppStage3DateField"},ef={ctor:"LaborDelIppStage2DateField"},of={ctor:"LaborDelIppStage1DateField"},cf={ctor:"LaborDelIppLaborDateField"},nf={ctor:"AdmittingStartLaborDateField"},af={ctor:"AdmittingAdmittanceDateField"},_f=function(t){return{ctor:"UnknownDateField",_0:t}},uf=d(Ie,"date",Go,d(Ie,"dateField",l(_e,function(t){var r,e,o,c=t;switch(c){case"admitDateId":return af;case"admitStartLaborDateId":return nf;case"babyBFedEstablisedId":return $m;case"babyBcgId":return Qm;case"babyNbsId":return Xm;case"babyMed1Id":return Gm;case"birthCertificateDateOfCommTaxId":return qm;case"birthCertificateDateOfMarriageId":return Vm;case"birthCertificateDateOfAffiateCommTaxId":return Om;case"contPostpartumCheckId":return Ym;case"dischargeDateId":return Wm;case"earlyLaborDateId":return tf;case"laborDateId":return cf;case"laborStage1Id":return of;case"laborStage2Id":return ef;case"laborStage3Id":return rf;case"membraneRuptureId":return Zm;case"newbornExamId":return Km;case"postpartumCheckId":return zm;case"postpartumCheckHgbId":return Um;case"postpartumCheckScheduledId":return Hm;default:var n=c,a=at(d(Nc,Oc,Jm,n));if("Just"===a.ctor){var _=a._0,i="Just"===(o=at(dt(l(Ct,2,_.submatches)))).ctor&&"Just"===o._0.ctor?o._0._0:"",u="Just"===(e=at(l(Ct,1,_.submatches))).ctor&&"Just"===e._0.ctor?e._0._0:"";return"Ok"===(r={ctor:"_Tuple2",_0:qt(u),_1:qt(i)})._0.ctor&&"Ok"===r._1.ctor?l(jm,r._0._0,r._1._0):_f(n)}return _f(n)}},ge),Ae(Im))),sf=function(t){var r=l(ce,uf,t);if("Ok"===r.ctor)return{ctor:"DateFieldMessage",_0:r._0};var e=r._0;return l(ye,"decodeSelectedDate decoding error",e),{ctor:"UnknownDateFieldMessage",_0:e}},lf=a(function(t,r,e,o,c){return{laborRecord:t,laborStage1Record:r,laborStage2Record:e,laborStage3Record:o,contPostpartumCheckRecords:c}}),df={ctor:"RotatePregHeaderContentMsg"},mf={ctor:"IPPContent"},ff={ctor:"LaborContent"},pf={ctor:"PrenatalContent"},hf=function(t){return{ctor:"OpenDatePickerSubMsg",_0:t}},bf=e(function(t,r){return{ctor:"FldChgSubMsg",_0:t,_1:r}}),gf=e(function(t,r){return{ctor:"AdmitForLaborSaved",_0:t,_1:r}}),yf={ctor:"CancelAdmitForLabor"},Cf=e(function(t,r){return{ctor:"DataCache",_0:t,_1:r}}),Tf={ctor:"CommentsFld"},vf={ctor:"TempFld"},Mf={ctor:"CrFld"},Bf={ctor:"DiastolicFld"},Df={ctor:"SystolicFld"},Sf={ctor:"FhtFld"},Ff={ctor:"FhFld"},wf={ctor:"PosFld"},Rf={ctor:"LaborTimeFld"},xf={ctor:"LaborDateFld"},kf={ctor:"AdmittanceTimeFld"},Pf={ctor:"AdmittanceDateFld"},Af=function(t){return{ctor:"BirthCertTick",_0:t}},Lf={ctor:"CloseAllDialogs"},Nf=function(t){return{ctor:"HandleBirthCertificateModal",_0:t}},Ef=e(function(t,r){return{ctor:"FldChgSubMsg",_0:t,_1:r}}),Jf=function(t){return{ctor:"DateFieldSubMsg",_0:t}},If=function(t){return{ctor:"OpenDatePickerSubMsg",_0:t}},Of=e(function(t,r){return{ctor:"DataCache",_0:t,_1:r}}),Vf={ctor:"PrintingDelayedRegistrationFld"},qf={ctor:"PrintingPaternityFld"},Hf={ctor:"PrintingPage2LeftFld"},Uf={ctor:"PrintingPage2TopFld"},zf={ctor:"PrintingPage1LeftFld"},Wf={ctor:"PrintingPage1TopFld"},jf={ctor:"BCCommentsFld"},Gf={ctor:"BCAffiateCommTaxPlace"},Yf={ctor:"BCAffiateCommTaxDateFld"},Kf={ctor:"BCAffiateCommTaxNumberFld"},Qf={ctor:"BCAffiateIAmFld"},Xf={ctor:"BCAffiateReasonFld"},$f={ctor:"BCAffiateCitizenshipCountryFld"},Zf={ctor:"BCAffiateAddressFld"},tp={ctor:"BCAffiateNameFld"},rp={ctor:"BCReceivedByTitleFld"},ep={ctor:"BCReceivedByNameFld"},op={ctor:"BCCommTaxPlaceFld"},cp={ctor:"BCCommTaxDateFld"},np={ctor:"BCCommTaxNumberFld"},ap={ctor:"BCPreparedByTitleFld"},_p={ctor:"BCPreparedByFullnameFld"},ip={ctor:"BCInformantAddressFld"},up={ctor:"BCInformantRelationToChildFld"},sp={ctor:"BCInformantFullnameFld"},lp={ctor:"BCAttendantAddr2Fld"},dp={ctor:"BCAttendantAddr1Fld"},mp={ctor:"BCAttendantTitleFld"},fp={ctor:"BCAttendantFullnameFld"},pp={ctor:"BCAttendantOtherFld"},hp={ctor:"BCAttendantTypeFld"},bp={ctor:"BCCountryOfMarriageFld"},gp={ctor:"BCProvinceOfMarriageFld"},yp={ctor:"BCCityOfMarriageFld"},Cp={ctor:"BCDateOfMarriageFld"},Tp={ctor:"BCFatherCountryFld"},vp={ctor:"BCFatherProvinceFld"},Mp={ctor:"BCFatherCityFld"},Bp={ctor:"BCFatherAddressFld"},Dp={ctor:"BCFatherAgeAtBirthFld"},Sp={ctor:"BCFatherOccupationFld"},Fp={ctor:"BCFatherReligionFld"},wp={ctor:"BCFatherCitizenshipFld"},Rp={ctor:"BCFatherFirstnameFld"},xp={ctor:"BCFatherMiddlenameFld"},kp={ctor:"BCFatherLastnameFld"},Pp={ctor:"BCMotherCountryFld"},Ap={ctor:"BCMotherProvinceFld"},Lp={ctor:"BCMotherCityFld"},Np={ctor:"BCMotherAddressFld"},Ep={ctor:"BCMotherNumChildrenBornAliveNowDeadFld"},Jp={ctor:"BCMotherNumChildrenLivingFld"},Ip={ctor:"BCMotherNumChildrenBornAliveFld"},Op={ctor:"BCMotherCitizenshipFld"},Vp={ctor:"BCMotherFirstnameFld"},qp={ctor:"BCMotherMiddlenameFld"},Hp={ctor:"BCMotherMaidenLastnameFld"},Up={ctor:"BCBirthOrderFld"},zp=function(t){return{ctor:"TableMetaCollection",_0:t}},Wp=function(t){return{ctor:"ContPPTick",_0:t}},jp={ctor:"CloseAllDialogs"},Gp=e(function(t,r){return{ctor:"FldChgSubMsg",_0:t,_1:r}}),Yp=function(t){return{ctor:"DateFieldSubMsg",_0:t}},Kp=function(t){return{ctor:"OpenDatePickerSubMsg",_0:t}},Qp=e(function(t,r){return{ctor:"HandleContPostpartumCheckModal",_0:t,_1:r}}),Xp=function(t){return{ctor:"HandleDischargeModal",_0:t}},$p=e(function(t,r){return{ctor:"HandleMotherMedicationModal",_0:t,_1:r}}),Zp=function(t){return{ctor:"HandleBabyLabDelete",_0:t}},th=e(function(t,r){return{ctor:"HandleBabyMedVacLabModal",_0:t,_1:r}}),rh=function(t){return{ctor:"HandleNewbornExamModal",_0:t}},eh=e(function(t,r){return{ctor:"DataCache",_0:t,_1:r}}),oh={ctor:"PageNoop"},ch=function(t){return{ctor:"VacMVL",_0:t}},nh=function(t){return{ctor:"MedMVL",_0:t}},ah={ctor:"DischargeInitialsFld"},_h={ctor:"DischargeTransferCommentFld"},ih={ctor:"DischargeTransferMotherFld"},uh={ctor:"DischargeTransferBabyFld"},sh={ctor:"DischargeBibleFld"},lh={ctor:"DischargePrayerFld"},dh={ctor:"DischargePlacentaGoneFld"},mh={ctor:"DischargeMotherUrinatedFld"},fh={ctor:"DischargeMotherAteDrankFld"},ph={ctor:"DischargeFundusFirmBleedingCtldFld"},hh={ctor:"DischargeNewbornBathFld"},bh={ctor:"DischargeBreastFeedingEstablishedFld"},gh={ctor:"DischargeImmunizationReferralFld"},yh={ctor:"DischargeNbsFld"},Ch={ctor:"DischargeBillPaidFld"},Th={ctor:"DischargeLogsCompleteFld"},vh={ctor:"DischargeChartsCompleteFld"},Mh={ctor:"DischargeBirthRecordedFld"},Bh={ctor:"DischargeBirthCertWorksheetFld"},Dh={ctor:"DischargePpInstructionsScheduleFld"},Sh={ctor:"DischargeBabyCRFld"},Fh={ctor:"DischargeBabyTempFld"},wh={ctor:"DischargeBabyRRFld"},Rh={ctor:"DischargeMotherCRFld"},xh={ctor:"DischargeMotherTempFld"},kh={ctor:"DischargeMotherDiastolicFld"},Ph={ctor:"DischargeMotherSystolicFld"},Ah={ctor:"DischargeTimeFld"},Lh={ctor:"DischargeDateFld"},Nh={ctor:"MotherMedCommentsFld"},Eh={ctor:"MotherMedInitialsFld"},Jh={ctor:"MotherMedTimeFld"},Ih={ctor:"MotherMedDateFld"},Oh={ctor:"BabyLabInitialsFld"},Vh={ctor:"BabyLabFld4ValueFld"},qh={ctor:"BabyLabFld3ValueFld"},Hh={ctor:"BabyLabFld2ValueFld"},Uh={ctor:"BabyLabFld1ValueFld"},zh={ctor:"BabyLabTimeFld"},Wh={ctor:"BabyLabDateFld"},jh={ctor:"BabyVacCommentsFld"},Gh={ctor:"BabyVacInitialsFld"},Yh={ctor:"BabyVacLocationFld"},Kh={ctor:"BabyVacTimeFld"},Qh={ctor:"BabyVacDateFld"},Xh={ctor:"BabyMedCommentsFld"},$h={ctor:"BabyMedInitialsFld"},Zh={ctor:"BabyMedLocationFld"},tb={ctor:"BabyMedTimeFld"},rb={ctor:"BabyMedDateFld"},eb={ctor:"CPCCommentsFld"},ob={ctor:"CPCBabyCRFld"},cb={ctor:"CPCBabyRRFld"},nb={ctor:"CPCBabyTempFld"},ab={ctor:"CPCBabyBFedFld"},_b={ctor:"CPCMotherEBLFld"},ib={ctor:"CPCMotherFundusFld"},ub={ctor:"CPCMotherTempFld"},sb={ctor:"CPCMotherCRFld"},lb={ctor:"CPCMotherDiastolicFld"},db={ctor:"CPCMotherSystolicFld"},mb={ctor:"CPCCheckTimeFld"},fb={ctor:"CPCCheckDateFld"},pb={ctor:"NBSPalmarReflexCommentFld"},hb={ctor:"NBSSteppingReflexFld"},bb={ctor:"NBSPlantarReflexCommentFld"},gb={ctor:"NBSCommentsFld"},yb={ctor:"NBSBabinskiReflexFld"},Cb={ctor:"NBSBabinskiReflexCommentFld"},Tb={ctor:"NBSPlantarReflexFld"},vb={ctor:"NBSSteppingReflexCommentFld"},Mb={ctor:"NBSPalmarReflexFld"},Bb={ctor:"NBSMoroReflexCommentFld"},Db={ctor:"NBSMoroReflexFld"},Sb={ctor:"NBSEstGAFld"},Fb={ctor:"NBSExtremitiesCommentFld"},wb={ctor:"NBSExtremitiesFld"},Rb={ctor:"NBSBackCommentFld"},xb={ctor:"NBSBackFld"},kb={ctor:"NBSAnusCommentFld"},Pb={ctor:"NBSAnusFld"},Ab={ctor:"NBSGenitaliaCommentFld"},Lb={ctor:"NBSGenitaliaFld"},Nb={ctor:"NBSFemoralPulsesCommentFld"},Eb={ctor:"NBSFemoralPulsesFld"},Jb={ctor:"NBSCordCommentFld"},Ib={ctor:"NBSCordFld"},Ob={ctor:"NBSHipsCommentFld"},Vb={ctor:"NBSHipsFld"},qb={ctor:"NBSAbdomenCommentFld"},Hb={ctor:"NBSAbdomenFld"},Ub={ctor:"NBSHeartCommentFld"},zb={ctor:"NBSHeartFld"},Wb={ctor:"NBSLungsCommentFld"},jb={ctor:"NBSLungsFld"},Gb={ctor:"NBSChestCommentFld"},Yb={ctor:"NBSChestFld"},Kb={ctor:"NBSNeckCommentFld"},Qb={ctor:"NBSNeckFld"},Xb={ctor:"NBSMouthCommentFld"},$b={ctor:"NBSMouthFld"},Zb={ctor:"NBSNoseCommentFld"},tg={ctor:"NBSNoseFld"},rg={ctor:"NBSEarsCommentFld"},eg={ctor:"NBSEarsFld"},og={ctor:"NBSEyesCommentFld"},cg={ctor:"NBSEyesFld"},ng={ctor:"NBSHeadCommentFld"},ag={ctor:"NBSHeadFld"},_g={ctor:"NBSSkinCommentFld"},ig={ctor:"NBSSkinFld"},ug={ctor:"NBSColorCommentFld"},sg={ctor:"NBSColorFld"},lg={ctor:"NBSAppearanceCommentFld"},dg={ctor:"NBSAppearanceFld"},mg={ctor:"NBSChestCirFld"},fg={ctor:"NBSHeadCirFld"},pg={ctor:"NBSLengthFld"},hg={ctor:"NBSTemperatureFld"},bg={ctor:"NBSHRFld"},gg={ctor:"NBSRRFld"},yg={ctor:"NBSExaminersFld"},Cg={ctor:"NBSTimeFld"},Tg={ctor:"NBSDateFld"},vg={ctor:"NotUsed"},Mg={ctor:"CloseAllDialogs"},Bg=function(t){return{ctor:"LaborDelIppTick",_0:t}},Dg={ctor:"ClearStage3DateTime"},Sg={ctor:"ClearStage2DateTime"},Fg={ctor:"ClearStage1DateTime"},wg=function(t){return{ctor:"AddApgarWizard",_0:t}},Rg=function(t){return{ctor:"HandleBabySummaryModal",_0:t}},xg=function(t){return{ctor:"HandleMembraneSummaryModal",_0:t}},kg=function(t){return{ctor:"HandleStage3SummaryModal",_0:t}},Pg=function(t){return{ctor:"HandleStage3DateTimeModal",_0:t}},Ag=function(t){return{ctor:"HandleStage2SummaryModal",_0:t}},Lg=function(t){return{ctor:"HandleStage2DateTimeModal",_0:t}},Ng=function(t){return{ctor:"HandleStage1SummaryModal",_0:t}},Eg=function(t){return{ctor:"HandleStage1DateTimeModal",_0:t}},Jg=e(function(t,r){return{ctor:"FldChgSubMsg",_0:t,_1:r}}),Ig=function(t){return{ctor:"DateFieldSubMsg",_0:t}},Og=function(t){return{ctor:"OpenDatePickerSubMsg",_0:t}},Vg=e(function(t,r){return{ctor:"DataCache",_0:t,_1:r}}),qg={ctor:"FinishedAddOtherApgar"},Hg={ctor:"ScoreAddOtherApgar"},Ug={ctor:"MinuteAddOtherApgar"},zg={ctor:"NotStartedAddOtherApgar"},Wg={ctor:"MembraneCommentsFld"},jg={ctor:"MembraneAmnioticFld"},Gg={ctor:"MembraneRuptureFld"},Yg={ctor:"MembraneRuptureTimeFld"},Kg={ctor:"MembraneRuptureDateFld"},Qg={ctor:"ApgarOtherScoreFld"},Xg={ctor:"ApgarOtherMinuteFld"},$g={ctor:"ApgarStandardFld"},Zg={ctor:"BabyCommentsFld"},ty={ctor:"BabyPpvFld"},ry={ctor:"BabyChestCompressionsFld"},ey={ctor:"BabyFreeFlowO2Fld"},oy={ctor:"BabyMachineFld"},cy={ctor:"BabyBulbFld"},ny={ctor:"BabyBFedEstablishedTimeFld"},ay={ctor:"BabyBFedEstablishedDateFld"},_y={ctor:"BabyBirthWeightFld"},iy={ctor:"BabySexFld"},uy={ctor:"BabyMiddlenameFld"},sy={ctor:"BabyFirstnameFld"},ly={ctor:"BabyLastnameFld"},dy={ctor:"Stage3CommentsFld"},my={ctor:"Stage3MembranesFld"},fy={ctor:"Stage3CotyledonsFld"},py={ctor:"Stage3SchultzDuncanFld"},hy={ctor:"Stage3PlacentaNumVesselsFld"},by={ctor:"Stage3PlacentaInsertionFld"},gy={ctor:"Stage3PlacentaShapeFld"},yy={ctor:"Stage3TxBloodLoss3Fld"},Cy={ctor:"Stage3TxBloodLoss2Fld"},Ty={ctor:"Stage3TxBloodLoss1Fld"},vy={ctor:"Stage3MaternalPositionFld"},My={ctor:"Stage3PlacentaDeliveryManualFld"},By={ctor:"Stage3PlacentaDeliveryCCTFld"},Dy={ctor:"Stage3PlacentaDeliveryAMTSLFld"},Sy={ctor:"Stage3PlacentaDeliverySpontaneousFld"},Fy={ctor:"Stage3TimeFld"},wy={ctor:"Stage3DateFld"},Ry={ctor:"Stage2CommentsFld"},xy={ctor:"Stage2MeconiumFld"},ky={ctor:"Stage2BirthEBLFld"},Py={ctor:"Stage2LacerationRepairedByFld"},Ay={ctor:"Stage2RepairFld"},Ly={ctor:"Stage2EpisiotomyFld"},Ny={ctor:"Stage2LacerationFld"},Ey={ctor:"Stage2DegreeFld"},Jy={ctor:"Stage2ShoulderDystociaMinutesFld"},Iy={ctor:"Stage2ShoulderDystociaFld"},Oy={ctor:"Stage2DeliveryTypeFld"},Vy={ctor:"Stage2CordWrapTypeFld"},qy={ctor:"Stage2TerminalMecFld"},Hy={ctor:"Stage2BirthPresentationFld"},Uy={ctor:"Stage2DurationPushingFld"},zy={ctor:"Stage2BirthPositionFld"},Wy={ctor:"Stage2BirthTypeFld"},jy={ctor:"Stage2TimeFld"},Gy={ctor:"Stage2DateFld"},Yy={ctor:"Stage1CommentsFld"},Ky={ctor:"Stage1DurationActiveMinutesFld"},Qy={ctor:"Stage1DurationActiveHoursFld"},Xy={ctor:"Stage1DurationLatentMinutesFld"},$y={ctor:"Stage1DurationLatentHoursFld"},Zy={ctor:"Stage1MobilityFld"},tC={ctor:"Stage1TimeFld"},rC={ctor:"Stage1DateFld"},eC={ctor:"TempFld"},oC={ctor:"CrFld"},cC={ctor:"DiastolicFld"},nC={ctor:"SystolicFld"},aC={ctor:"FhtFld"},_C={ctor:"FhFld"},iC={ctor:"PosFld"},uC={ctor:"LaborTimeFld"},sC={ctor:"LaborDateFld"},lC={ctor:"AdmittanceTimeFld"},dC={ctor:"AdmittanceDateFld"},mC=function(t){switch(t.ctor){case"InfoSeverity":return"Info";case"WarningSeverity":return"Warning";default:return"Error"}},fC=c(function(t,r,e){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"timestamp",_1:Qr((o=e,o))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"severity",_1:$r(mC(t))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"message",_1:$r(r)},_1:{ctor:"[]"}}}});var o}),pC={ctor:"ErrorSeverity"},hC={ctor:"WarningSeverity"},bC={ctor:"InfoSeverity"},gC=function(t){return{ctor:"ProcessId",_0:t}},yC=c(function(t,r,e){return{namespace:t,msgType:r,payload:e}}),CC=e(function(t,r){return{updatedAt:t,data:r}}),TC=ie({ctor:"::",_0:l(_e,function(t){return{ctor:"SiteKeyValueString",_0:t}},ge),_1:{ctor:"::",_0:l(_e,function(t){return{ctor:"SiteKeyValueInt",_0:t}},he),_1:{ctor:"::",_0:l(_e,function(t){return{ctor:"SiteKeyValueBool",_0:t}},be),_1:{ctor:"::",_0:l(_e,function(t){return{ctor:"SiteKeyValueFloat",_0:t}},pe),_1:{ctor:"[]"}}}}}),vC=d(Ie,"data",l(_e,Hr,de(TC)),d(Ie,"updatedAt",he,Ae(CC))),MC=d(Ie,"payload",vC,d(Ie,"msgType",ge,d(Ie,"namespace",ge,Ae(yC)))),BC=ie({ctor:"::",_0:l(le,{ctor:"::",_0:"payload",_1:{ctor:"::",_0:"data",_1:{ctor:"::",_0:"SystemMode",_1:{ctor:"[]"}}}},l(_e,function(t){return{ctor:"SystemMode",_0:t}},he)),_1:{ctor:"[]"}}),DC=function(t){return{ctor:"TableRecordSelectData",_0:t}},SC=function(t){return{ctor:"TableRecordPregnancy",_0:t}},FC=e(function(t,r){return{ctor:"TableRecordPostpartumCheck",_0:t,_1:r}}),wC=e(function(t,r){return{ctor:"TableRecordPatient",_0:t,_1:r}}),RC=function(t){return{ctor:"TableRecordNewbornExam",_0:t}},xC=function(t){return{ctor:"TableRecordMotherMedicationType",_0:t}},kC=function(t){return{ctor:"TableRecordMotherMedication",_0:t}},PC=function(t){return{ctor:"TableRecordMembrane",_0:t}},AC=function(t){return{ctor:"TableRecordLaborStage3",_0:t}},LC=function(t){return{ctor:"TableRecordLaborStage2",_0:t}},NC=function(t){return{ctor:"TableRecordLaborStage1",_0:t}},EC=function(t){return{ctor:"TableRecordLabor",_0:t}},JC=function(t){return{ctor:"TableRecordKeyValue",_0:t}},IC=function(t){return{ctor:"TableRecordDischarge",_0:t}},OC=e(function(t,r){return{ctor:"TableRecordContPostpartumCheck",_0:t,_1:r}}),VC=function(t){return{ctor:"TableRecordBirthCertificate",_0:t}},qC=function(t){return{ctor:"TableRecordBabyVaccinationType",_0:t}},HC=function(t){return{ctor:"TableRecordBabyVaccination",_0:t}},UC=function(t){return{ctor:"TableRecordBabyMedicationType",_0:t}},zC=function(t){return{ctor:"TableRecordBabyMedication",_0:t}},WC=function(t){return{ctor:"TableRecordBabyLabType",_0:t}},jC=function(t){return{ctor:"TableRecordBabyLab",_0:t}},GC=function(t){return{ctor:"TableRecordBaby",_0:t}},YC=l(re,function(t){return l(se,"records",function(t){switch(t.ctor){case"Baby":return l(_e,GC,me(As));case"BabyLab":return l(_e,jC,me(Ns));case"BabyLabType":return l(_e,WC,me(Xs));case"BabyMedication":return l(_e,zC,me(Zs));case"BabyMedicationType":return l(_e,UC,me(al));case"BabyVaccination":return l(_e,HC,me(il));case"BabyVaccinationType":return l(_e,qC,me(pl));case"BirthCertificate":return l(_e,VC,me(bl));case"ContPostpartumCheck":return d(ae,OC,me(Tl),me(em(y_)));case"Discharge":return l(_e,IC,me(Pl));case"KeyValue":return l(_e,JC,me(Hl));case"Labor":return l(_e,EC,me(zl));case"LaborStage1":return l(_e,NC,me(Ql));case"LaborStage2":return l(_e,LC,me(od));case"LaborStage3":return l(_e,AC,me(pd));case"Membrane":return l(_e,PC,me(Ld));case"MotherMedication":return l(_e,kC,me(Ed));case"MotherMedicationType":return l(_e,xC,me(Ud));case"NewbornExam":return l(_e,RC,me(Wd));case"Patient":return d(ae,wC,me(nm),me(em(i_)));case"PostpartumCheck":return d(ae,FC,me(_m),me(em(__)));case"Pregnancy":return l(_e,SC,me(lm));case"SelectData":return l(_e,DC,me(ym));default:return ee(l(N["++"],"Cannot yet handle table of ",l(N["++"],r_(t)," in Data.TableRecord.tableRecord.")))}}(t))},l(se,"table",R_)),KC=c(function(t,r,e){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"messageId",_1:Xr(t._0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"namespace",_1:$r("DATA")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"msgType",_1:$r(function(t){switch(r.ctor){case"AddMsgType":return"ADD";case"DelMsgType":return"DEL";case"SelectMsgType":return"SELECT";case"ChgMsgType":return"CHG";case"AddChgDelType":return"ADD_CHG_DELETE";case"AdhocTouchType":return"ADHOC_TOUCH_SESSION";default:return"ADHOC_CLIENT_CONSOLE"}}())},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"version",_1:Xr(2)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"payload",_1:e},_1:{ctor:"[]"}}}}}})}),QC=a(function(t,r,e,o,c){return{messageId:t,namespace:r,msgType:e,version:o,response:c}}),XC=n(function(t,r,e,o){return{success:t,errorCode:r,msg:e,data:o}}),$C=d(Ie,"data",me(YC),d(Ie,"msg",ge,d(Ie,"errorCode",ge,d(Ie,"success",be,Ae(XC))))),ZC=d(Ie,"response",$C,d(Ie,"version",he,d(Ie,"msgType",ge,d(Ie,"namespace",ge,d(Ie,"messageId",he,Ae(QC)))))),tT=a(function(t,r,e,o,c){return{messageId:t,namespace:r,msgType:e,version:o,response:c}}),rT=a(function(t,r,e,o,c){return{table:t,id:r,success:e,errorCode:o,msg:c}}),eT=d(Ie,"msg",ge,d(Ie,"errorCode",ge,d(Ie,"success",be,m(Je,"id",he,-2,d(Ie,"table",R_,Ae(rT)))))),oT=d(Ie,"response",eT,d(Ie,"version",he,d(Ie,"msgType",ge,d(Ie,"namespace",ge,d(Ie,"messageId",he,Ae(tT)))))),cT=a(function(t,r,e,o,c){return{messageId:t,namespace:r,msgType:e,version:o,response:c}}),nT=a(function(t,r,e,o,c){return{table:t,id:r,success:e,errorCode:o,msg:c}}),aT=d(Ie,"msg",ge,d(Ie,"errorCode",ge,d(Ie,"success",be,m(Je,"id",he,-1,d(Ie,"table",R_,Ae(nT)))))),_T=d(Ie,"response",aT,d(Ie,"version",he,d(Ie,"msgType",ge,d(Ie,"namespace",ge,d(Ie,"messageId",he,Ae(cT)))))),iT=a(function(t,r,e,o,c){return{messageId:t,namespace:r,msgType:e,version:o,response:c}}),uT=a(function(t,r,e,o,c){return{table:t,id:r,success:e,errorCode:o,msg:c}}),sT=d(Ie,"msg",ge,d(Ie,"errorCode",ge,d(Ie,"success",be,m(Je,"id",he,-1,d(Ie,"table",R_,Ae(uT)))))),lT=d(Ie,"response",sT,d(Ie,"version",he,d(Ie,"msgType",ge,d(Ie,"namespace",ge,d(Ie,"messageId",he,Ae(iT)))))),dT=c(function(t,r,e){return{namespace:t,msgType:r,payload:e}}),mT=n(function(t,r,e,o){return{table:t,id:r,notificationType:e,foreignKeys:o}}),fT=e(function(t,r){return{table:t,id:r}}),pT=d(Ie,"id",he,d(Ie,"table",R_,Ae(fT))),hT={ctor:"AdhocClientConsole"},bT={ctor:"AdhocTouchType"},gT={ctor:"AddChgDelType"},yT={ctor:"ChgMsgType"},CT={ctor:"SelectMsgType"},TT={ctor:"DelMsgType"},vT={ctor:"AddMsgType"},MT={ctor:"UnknownNotificationType"},BT={ctor:"DelNotificationType"},DT={ctor:"ChgNotificationType"},ST={ctor:"AddNotificationType"},FT=d(Ie,"foreignKeys",me(pT),d(Ie,"notificationType",l(_e,function(t){switch(t){case"DATA_ADD":return ST;case"DATA_CHANGE":return DT;case"DATA_DELETE":return BT;default:return l(ye,"Message.stringToNotificationType UnknownNotificationType",t),MT}},ge),d(Ie,"id",he,d(Ie,"table",R_,Ae(mT))))),wT=d(Ie,"payload",FT,d(Ie,"msgType",ge,d(Ie,"namespace",ge,Ae(dT)))),RT=function(t){return{ctor:"DataNotificationMessage",_0:t}},xT=function(t){return{ctor:"DataDelMessage",_0:t}},kT=function(t){return{ctor:"DataChgMessage",_0:t}},PT=function(t){return{ctor:"DataAddMessage",_0:t}},AT=function(t){return{ctor:"DataSelectMessage",_0:t}},LT=function(t){switch(t){case"SELECT":return l(_e,AT,ZC);case"ADD":return l(_e,PT,oT);case"CHG":return l(_e,kT,_T);case"DEL":return l(_e,xT,lT);case"ADD_CHG_DELETE":return l(_e,RT,wT);default:return l(_e,AT,ZC)}},NT=function(t){return{ctor:"SystemMessage",_0:t}},ET=function(t){return{ctor:"SiteMessage",_0:t}},JT=function(t){return{ctor:"UnknownMessage",_0:t}},IT=l(re,function(t){switch(t){case"SITE":return l(_e,ET,MC);case"SYSTEM":return l(_e,NT,BC);case"DATA":return l(re,LT,l(se,"msgType",ge));default:return l(_e,function(r){return JT(l(N["++"],"Unknown namespace: ",t))},te)}},l(se,"namespace",ge)),OT=function(t){var r=l(ce,IT,t);if("Ok"===r.ctor)return r._0;var e=r._0;return l(ye,"decodeIncoming decoding error",e),JT(e)},VT=function(t){return{ctor:"TableMetaCollection",_0:t}},qT=function(t){return{ctor:"PostpartumTick",_0:t}},HT={ctor:"CloseAllDialogs"},UT=function(t){return{ctor:"DateFieldSubMsg",_0:t}},zT=function(t){return{ctor:"OpenDatePickerSubMsg",_0:t}},WT=e(function(t,r){return{ctor:"FldChgSubMsg",_0:t,_1:r}}),jT=e(function(t,r){return{ctor:"HandlePostpartumCheckModal",_0:t,_1:r}}),GT=e(function(t,r){return{ctor:"DataCache",_0:t,_1:r}}),YT={ctor:"PageNoop"},KT={ctor:"PCNextScheduledCheckFld"},QT={ctor:"PCCommentsFld"},XT={ctor:"PCIronGivenFld"},$T={ctor:"PCHgbTestResultFld"},ZT={ctor:"PCHgbTestDateFld"},tv={ctor:"PCHgbRequestedFld"},rv={ctor:"PCBirthCertReqFld"},ev={ctor:"PCMotherFamilyPlanningFld"},ov={ctor:"PCMotherSSInfectionFld"},cv={ctor:"PCMotherStoolFld"},nv={ctor:"PCMotherUrineFld"},av={ctor:"PCMotherLochiaFld"},_v={ctor:"PCMotherPerineumNoteFld"},iv={ctor:"PCMotherPerineumFld"},uv={ctor:"PCMotherFundusNoteFld"},sv={ctor:"PCMotherFundusFld"},lv={ctor:"PCMotherBreastsFld"},dv={ctor:"PCMotherCRFld"},mv={ctor:"PCMotherDiastolicFld"},fv={ctor:"PCMotherSystolicFld"},pv={ctor:"PCMotherTempFld"},hv={ctor:"PCBabyFeedingDailyFld"},bv={ctor:"PCBabyFeedingFld"},gv={ctor:"PCBabySSInfectionFld"},yv={ctor:"PCBabyStoolFld"},Cv={ctor:"PCBabyUrineFld"},Tv={ctor:"PCBabyCordFld"},vv={ctor:"PCBabySkinFld"},Mv={ctor:"PCBabyColorFld"},Bv={ctor:"PCBabyLungsFld"},Dv={ctor:"PCBabyRRFld"},Sv={ctor:"PCBabyCRFld"},Fv={ctor:"PCBabyTempFld"},wv={ctor:"PCBabyWeightFld"},Rv={ctor:"PCCheckTimeFld"},xv={ctor:"PCCheckDateFld"},kv=function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:e_(t.table)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:(r=t.id,e=r,"Just"===e.ctor?Xr(e._0):Xr(-1))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"related",_1:jr(l(it,e_,t.related))},_1:{ctor:"[]"}}}});var r,e},Pv=c(function(t,r,e){return{table:t,id:r,related:e}}),Av=c(function(t,r,e){return{msgs:t,secondsLeft:r,toastType:e}}),Lv={ctor:"ErrorToast"},Nv={ctor:"WarningToast"},Ev={ctor:"InfoToast"},Jv=la(ba(-1)),Iv=function(t){var r=function(){switch(t.ctor){case"AdmittingRoute":return{ctor:"::",_0:"",_1:{ctor:"[]"}};case"BirthCertificateRoute":return{ctor:"::",_0:"birthcertificate",_1:{ctor:"[]"}};case"BirthCertificateDialogRoute":return{ctor:"::",_0:"birthcertificate",_1:{ctor:"::",_0:"dialog",_1:{ctor:"[]"}}};case"ContPPRoute":return{ctor:"::",_0:"contpp",_1:{ctor:"[]"}};case"ContPPDialogRoute":return{ctor:"::",_0:"contpp",_1:{ctor:"::",_0:"dialog",_1:{ctor:"[]"}}};case"LaborDelIppRoute":return{ctor:"::",_0:"labordelipp",_1:{ctor:"[]"}};case"LaborDelIppDialogRoute":return{ctor:"::",_0:"labordelipp",_1:{ctor:"::",_0:"dialog",_1:{ctor:"[]"}}};case"PostpartumRoute":return{ctor:"::",_0:"postpartum",_1:{ctor:"[]"}};default:return{ctor:"::",_0:"postpartum",_1:{ctor:"::",_0:"dialog",_1:{ctor:"[]"}}}}}();return 0===ot(r)?"#":l(N["++"],"#/",l(Qt,"/",r))},Ov=function(t){return r=d(v,e(function(t,r){return l(N["++"],t,r)}),l(N["++"],"/","dialog"),Iv(t)),la(ha(r));var r},Vv={ctor:"BirthCertificateRoute"},qv={ctor:"PostpartumRoute"},Hv={ctor:"LaborDelIppRoute"},Uv={ctor:"ContPPRoute"},zv={ctor:"AdmittingRoute"},Wv=(us={ctor:"::",_0:l(Wa,zv,Ha("")),_1:{ctor:"::",_0:l(Wa,{ctor:"ContPPDialogRoute"},l(za[""],Ha("contpp"),Ha("dialog"))),_1:{ctor:"::",_0:l(Wa,Uv,Ha("contpp")),_1:{ctor:"::",_0:l(Wa,{ctor:"LaborDelIppDialogRoute"},l(za[""],Ha("labordelipp"),Ha("dialog"))),_1:{ctor:"::",_0:l(Wa,Hv,Ha("labordelipp")),_1:{ctor:"::",_0:l(Wa,{ctor:"PostpartumDialogRoute"},l(za[""],Ha("postpartum"),Ha("dialog"))),_1:{ctor:"::",_0:l(Wa,qv,Ha("postpartum")),_1:{ctor:"::",_0:l(Wa,Vv,Ha("birthcertificate")),_1:{ctor:"::",_0:l(Wa,{ctor:"BirthCertificateDialogRoute"},l(za[""],Ha("birthcertificate"),Ha("dialog"))),_1:{ctor:"[]"}}}}}}}}}},qa(function(t){return l(ht,function(r){return r._0(t)},us)})),jv=function(t){return rr(t.hash)?U(zv):l(Ia,Wv,t)},Gv=function(t){return{ctor:"WindowResize",_0:t}},Yv=c(function(t,r,e){return{ctor:"Toast",_0:t,_1:r,_2:e}}),Kv=(e(function(t,r){return l($e,l(Yv,t,r),Ue(Ev))}),e(function(t,r){return l($e,l(Yv,t,r),Ue(Nv))})),Qv=e(function(t,r){return l($e,l(Yv,t,r),Ue(Lv))}),Xv=function(t){return{ctor:"Tick",_0:t}},$v=function(t){return{ctor:"SetRoute",_0:t}},Zv=function(t){return{ctor:"SetDialogActive",_0:t}},tM=c(function(t,r,e){return{ctor:"ProcessTypeMsg",_0:t,_1:r,_2:e}}),rM=c(function(t,r,e){return{ctor:"PostpartumSelectQuery",_0:t,_1:r,_2:e}}),eM=function(t){return{ctor:"PostpartumMsg",_0:t}},oM=e(function(t,r){return{ctor:"PostpartumLoaded",_0:t,_1:r}}),cM=function(t){return{ctor:"OpenDatePicker",_0:t}},nM=function(t){return{ctor:"Message",_0:t}},aM=e(function(t,r){return{ctor:"Log",_0:t,_1:r}}),_M=function(t){return l($e,aM(bC),Ue(t))},iM=function(t){return l($e,aM(hC),Ue(t))},uM=c(function(t,r,e){return{ctor:"LaborDelIppSelectQuery",_0:t,_1:r,_2:e}}),sM=function(t){return{ctor:"LaborDelIppMsg",_0:t}},lM=function(t){return{ctor:"IncomingDatePicker",_0:t}},dM=c(function(t,r,e){return{ctor:"ContPPSelectQuery",_0:t,_1:r,_2:e}}),mM=function(t){return{ctor:"ContPPMsg",_0:t}},fM=e(function(t,r){return{ctor:"ContPPLoaded",_0:t,_1:r}}),pM=c(function(t,r,e){return{ctor:"BirthCertSelectQuery",_0:t,_1:r,_2:e}}),hM=function(t){return{ctor:"BirthCertMsg",_0:t}},bM=e(function(t,r){return{ctor:"BirthCertLoaded",_0:t,_1:r}}),gM=c(function(t,r,e){return{ctor:"AdmittingSelectQuery",_0:t,_1:r,_2:e}}),yM=function(t){return{ctor:"AdmittingMsg",_0:t}},CM={ctor:"Noop"},TM=e(function(t,r){return{ctor:"SelectQueryType",_0:t,_1:r}}),vM=e(function(t,r){return{ctor:"UpdatePostpartumCheckType",_0:t,_1:r}}),MM=e(function(t,r){return{ctor:"UpdateNewbornExamType",_0:t,_1:r}}),BM=e(function(t,r){return{ctor:"UpdateMotherMedicationType",_0:t,_1:r}}),DM=e(function(t,r){return{ctor:"UpdateMembraneType",_0:t,_1:r}}),SM=e(function(t,r){return{ctor:"UpdateLaborStage3Type",_0:t,_1:r}}),FM=e(function(t,r){return{ctor:"UpdateLaborStage2Type",_0:t,_1:r}}),wM=e(function(t,r){return{ctor:"UpdateLaborStage1Type",_0:t,_1:r}}),RM=e(function(t,r){return{ctor:"UpdateLaborType",_0:t,_1:r}}),xM=e(function(t,r){return{ctor:"UpdateDischargeType",_0:t,_1:r}}),kM=e(function(t,r){return{ctor:"UpdateContPostpartumCheckType",_0:t,_1:r}}),PM=e(function(t,r){return{ctor:"UpdateBirthCertificateType",_0:t,_1:r}}),AM=e(function(t,r){return{ctor:"UpdateBabyVaccinationType",_0:t,_1:r}}),LM=e(function(t,r){return{ctor:"UpdateBabyMedicationType",_0:t,_1:r}}),NM=e(function(t,r){return{ctor:"UpdateBabyLabType",_0:t,_1:r}}),EM=e(function(t,r){return{ctor:"UpdateBabyType",_0:t,_1:r}}),JM=e(function(t,r){return{ctor:"DelMotherMedicationType",_0:t,_1:r}}),IM=e(function(t,r){return{ctor:"DelBabyLabType",_0:t,_1:r}}),OM=e(function(t,r){return{ctor:"DelBabyVaccinationType",_0:t,_1:r}}),VM=e(function(t,r){return{ctor:"DelBabyMedicationType",_0:t,_1:r}}),qM=e(function(t,r){return{ctor:"AddPostpartumCheckType",_0:t,_1:r}}),HM=e(function(t,r){return{ctor:"AddNewbornExamType",_0:t,_1:r}}),UM=e(function(t,r){return{ctor:"AddMotherMedicationType",_0:t,_1:r}}),zM=e(function(t,r){return{ctor:"AddMembraneType",_0:t,_1:r}}),WM=e(function(t,r){return{ctor:"AddLaborStage3Type",_0:t,_1:r}}),jM=e(function(t,r){return{ctor:"AddLaborStage2Type",_0:t,_1:r}}),GM=e(function(t,r){return{ctor:"AddLaborStage1Type",_0:t,_1:r}}),YM=e(function(t,r){return{ctor:"AddLaborType",_0:t,_1:r}}),KM=e(function(t,r){return{ctor:"AddDischargeType",_0:t,_1:r}}),QM=e(function(t,r){return{ctor:"AddContPostpartumCheckType",_0:t,_1:r}}),XM=e(function(t,r){return{ctor:"AddBirthCertificateType",_0:t,_1:r}}),$M=e(function(t,r){return{ctor:"AddBabyVaccinationType",_0:t,_1:r}}),ZM=e(function(t,r){return{ctor:"AddBabyMedicationType",_0:t,_1:r}}),tB=e(function(t,r){return{ctor:"AddBabyLabType",_0:t,_1:r}}),rB=e(function(t,r){return{ctor:"AddBabyType",_0:t,_1:r}}),eB=ve.incomingPort("incoming",te),oB=ve.incomingPort("selectedDate",te),cB=ve.outgoingPort("outgoing",function(t){return t}),nB=ve.outgoingPort("openDatePicker",function(t){return t}),aB=e(function(t,r){return T.update(t,{clientTouch:r})}),_B=e(function(t,r){return T.update(t,{serverTouch:r})}),iB=e(function(t,r){return T.eq(t.clientTouch,0)?{ctor:"_Tuple2",_0:l(aB,t,r),_1:De}:T.eq(t.serverTouch,0)?{ctor:"_Tuple2",_0:l(_B,t,r),_1:De}:T.cmp(A(t.clientTouch-t.serverTouch),6e4)>0?{ctor:"_Tuple2",_0:l(_B,t,r),_1:cB(d(KC,gC(-2),bT,Yr))}:{ctor:"_Tuple2",_0:t,_1:De}}),uB=(c(function(t,r,e){return{user:t,serverTouch:r,clientTouch:e}}),a(function(t,r,e,o,c){return{store:t,nextId:r,currentTime:e,expireInterval:o,cleanupInterval:c}})),sB=c(function(t,r,e){return{id:t,processType:r,expires:e}}),lB=function(t){return{ctor:"ProcessStore",_0:t}},dB=lB(f(uB,{ctor:"[]"},1,0,5e3,3e4)),mB=c(function(t,r,e){var o=e._0;return{ctor:"_Tuple2",_0:gC(o.nextId),_1:lB(T.update(o,{store:{ctor:"::",_0:d(sB,o.nextId,t,r),_1:o.store},nextId:o.nextId+1}))}}),fB=e(function(t,r){var e=t._0,o=r._0,c=l(gc,function(t){return T.eq(t.id,e)},o.store);return"Just"===c.ctor?{ctor:"_Tuple2",_0:U(c._0.processType),_1:lB(T.update(o,{store:l(lc,function(t){return T.eq(t.id,e)},o.store)}))}:{ctor:"_Tuple2",_0:q,_1:lB(o)}}),pB=e(function(t,r){return function(e){return t(e)?{ctor:"::",_0:r,_1:{ctor:"[]"}}:{ctor:"[]"}}}),hB=Ec(Jc(Ic("^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"))),bB=(pB(function(t){return!hB(t)}),pB(function(t){return"Just"!==t.ctor}),pB(function(t){return vr(t._0)}),pB(vr),e(function(t,r){return"Ok"===qt(r).ctor?{ctor:"[]"}:{ctor:"::",_0:t,_1:{ctor:"[]"}}}),Ic("^\\s*$")),gB=(pB(Ec(bB)),e(function(t,r){for(;;){var e=t;if("[]"===e.ctor)return!0;if("[]"!==e._0(r).ctor)return!1;t=e._1,r=r}}),e(function(t,r){for(;;){var e=t;if("[]"===e.ctor)return q;var o=e._0(r);if("[]"!==o.ctor)return U(o._0);t=e._1,r=r}}),function(t){return function(r){var o=e(function(t,e){return l(N["++"],e,t(r))});return d(et,o,{ctor:"[]"},t)}}),yB=c(function(t,r,e){var o=d(Xd,t,r,e);if("Just"===o.ctor){var c=o._0,n=c.username;return"Just"===n.ctor?l(N["++"]," by ",l(N["++"],n._0,l(N["++"]," @ ",d(Hu,ds,fs,c.updatedAt)))):l(N["++"]," @ ",d(Hu,ds,fs,c.updatedAt))}return""}),CB=function(t){var r=t,e=r._0;return l(Tn,{ctor:"::",_0:xn("c-field c-field--choice"),_1:{ctor:"[]"}},{ctor:"::",_0:l(vn,{ctor:"::",_0:Pn("radio"),_1:{ctor:"::",_0:Nn(r._1),_1:{ctor:"::",_0:On(T.eq(l(V,"",r._4),e)),_1:{ctor:"::",_0:Gn(r._3(e)),_1:{ctor:"::",_0:Vn(r._2),_1:{ctor:"[]"}}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:en(e),_1:{ctor:"[]"}}})},TB=i(function(t,r,o,c,n,a,_){var i="Just"===l(gc,function(t){return T.eq(t,l(V,"",o))},a).ctor,u=l(N["++"],a,i?{ctor:"::",_0:"",_1:{ctor:"[]"}}:{ctor:"::",_0:l(V,"",o),_1:{ctor:"[]"}});return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},l(N["++"],{ctor:"::",_0:l(Cn,{ctor:"::",_0:xn("o-fieldset__legend"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},l(N["++"],l(Bt,e(function(t,e){return T.cmp(t,ot(a))<0?CB({ctor:"_Tuple5",_0:e,_1:r,_2:n,_3:c,_4:o}):(u=(_={ctor:"_Tuple6",_0:e,_1:r,_2:n,_3:c,_4:!i,_5:o})._5,s=_._0,d=_._3,m=_._4,l(Tn,{ctor:"::",_0:xn("c-field c-field--choice c-input-group"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"relative"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(vn,{ctor:"::",_0:Pn("radio"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"left"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Nn(_._1),_1:{ctor:"::",_0:On(T.eq(l(V,"",u),s)&&!T.eq(s,"")&&m),_1:{ctor:"::",_0:Gn(d(s)),_1:{ctor:"::",_0:Vn(_._2),_1:{ctor:"[]"}}}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(vn,{ctor:"::",_0:xn("c-field"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"absolute"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"top",_1:"50%"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transform",_1:"translateY(-50%)"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"left",_1:"2em"},_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:Ln("or enter another"),_1:{ctor:"::",_0:An(m?l(V,"",u):""),_1:{ctor:"::",_0:jn(d),_1:{ctor:"[]"}}}}}},{ctor:"[]"}),_1:{ctor:"[]"}}}));var _,u,s,d,m}),u),T.cmp($t(_),0)>0?{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--mono c-text--loud u-xsmall u-bg-yellow"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.25em 0.25em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.75em 0 1.25em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(_),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}:{ctor:"[]"})))}),vB=i(function(t,r,e,o,c,n,a){return l(yn,{ctor:"::",_0:xn("o-fieldset"),_1:{ctor:"[]"}},l(N["++"],{ctor:"::",_0:l(Cn,{ctor:"::",_0:xn("o-fieldset__legend"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},l(N["++"],l(it,function(t){return CB({ctor:"_Tuple5",_0:t,_1:r,_2:c,_3:o,_4:e})},n),T.cmp($t(a),0)>0?{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--mono c-text--loud u-xsmall u-bg-yellow"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.25em 0.25em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.75em 0 1.25em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(a),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}:{ctor:"[]"})))}),MB=i(function(t,r,e,o,c,n,a){return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},l(N["++"],{ctor:"::",_0:l(Cn,{ctor:"::",_0:xn("o-fieldset__legend"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},l(N["++"],l(it,function(t){return CB({ctor:"_Tuple5",_0:t,_1:r,_2:c,_3:o,_4:e})},n),T.cmp($t(a),0)>0?{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--mono c-text--loud u-xsmall u-bg-yellow"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.25em 0.25em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.75em 0 1.25em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(a),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}:{ctor:"[]"})))}),BB=c(function(t,r,e){var o=T.cmp($t(l(V,"",e)),0)>0;return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("o-label"),_1:{ctor:"[]"}},{ctor:"::",_0:l(vn,{ctor:"::",_0:Pn("checkbox"),_1:{ctor:"::",_0:Gn(r(o?"":t)),_1:{ctor:"::",_0:On(o),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})}),DB=n(function(t,r,e,o){return l(yn,{ctor:"::",_0:xn("o-fieldset"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"mw-form-field",_1:!e},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mw-form-field-2x",_1:e},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Tn,{ctor:"[]"},{ctor:"::",_0:l(fn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"fa fa-check",_1:o},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fa fa-exclamation-circle",_1:!o},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-text--loud",_1:r},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"]," ",t)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})}),SB=a(function(t,r,e,o,c){return l(yn,{ctor:"::",_0:xn("o-fieldset"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"mw-form-field",_1:!e},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mw-form-field-2x",_1:e},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Tn,{ctor:"[]"},{ctor:"::",_0:l(vn,{ctor:"::",_0:Pn("checkbox"),_1:{ctor:"::",_0:Gn(o(!l(V,!1,c))),_1:{ctor:"::",_0:On(l(V,!1,c)),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-text--loud",_1:r},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})}),FB=c(function(t,r,e){return f(SB,t,!1,!0,r,e)}),wB=c(function(t,r,e){return f(SB,t,!0,!0,r,e)}),RB=c(function(t,r,e){return f(SB,t,!1,!1,r,e)}),xB=c(function(t,r,e){var o=l(it,function(t){var r=t,e=r._1;return d(RB,e.label,r._0,U(e.selected))},t);return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},l(N["++"],{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("o-label"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},o))}),kB=c(function(t,r,e){return f(SB,t,!0,!1,r,e)}),PB=i(function(t,r,e,o,c,n,a){var _,i,u="Just"===(_=n).ctor?d(qu,ms,fs,_._0):"",s=function(t){var r=t;switch(r.ctor){case"DynamicDateField":return l(N["++"],"dynamicDateId-",l(N["++"],D(r._0),l(N["++"],"-",D(r._1))));case"AdmittingAdmittanceDateField":return"admitDateId";case"AdmittingStartLaborDateField":return"admitStartLaborDateId";case"BabyBFedEstablishedDateField":return"babyBFedEstablisedId";case"BabyBcgDateField":return"babyBcgId";case"BabyNbsDateField":return"babyNbsId";case"BabyMed1DateField":return"babyMed1Id";case"BirthCertDateOfCommTaxField":return"birthCertificateDateOfCommTaxId";case"BirthCertDateOfMarriageField":return"birthCertificateDateOfMarriageId";case"BirthCertDateOfAffiateCommTaxField":return"birthCertificateDateOfAffiateCommTaxId";case"ContPostpartumCheckDateField":return"contPostpartumCheckId";case"DischargeDateField":return"dischargeDateId";case"EarlyLaborDateField":return"earlyLaborDateId";case"LaborDelIppLaborDateField":return"laborDateId";case"LaborDelIppStage1DateField":return"laborStage1Id";case"LaborDelIppStage2DateField":return"laborStage2Id";case"LaborDelIppStage3DateField":return"laborStage3Id";case"MembraneRuptureDateField":return"membraneRuptureId";case"NewBornExamDateField":return"newbornExamId";case"PostpartumCheckDateField":return"postpartumCheckId";case"PostpartumCheckHgbField":return"postpartumCheckHgbId";case"PostpartumCheckScheduledField":return"postpartumCheckScheduledId";default:return l(N["++"],"Warning: Unknown DateField: ",r._0)}}(r);return l(Tn,{ctor:"::",_0:xn("c-label o-form-element mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-text--loud",_1:c},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:en(e),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(vn,{ctor:"::",_0:xn("c-field c-field--label datepicker"),_1:{ctor:"::",_0:Pn("text"),_1:{ctor:"::",_0:kn(s),_1:{ctor:"::",_0:An(u),_1:{ctor:"::",_0:Ln(o),_1:{ctor:"::",_0:(i=t(s),l(Wn,"focus",oe(i))),_1:{ctor:"[]"}}}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:T.cmp($t(a),0)>0?l(dn,{ctor:"::",_0:xn("c-text--mono c-text--loud u-xsmall u-bg-yellow"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.25em 0.25em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.75em 0 1.25em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(a),_1:{ctor:"[]"}}):en(""),_1:{ctor:"[]"}}}})}),AB=_(function(t,r,e,o,c,n){var a,_="Just"===(a=c).ctor?d(qu,ms,fs,a._0):"";return l(Tn,{ctor:"::",_0:xn("c-label o-form-element mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-text--loud",_1:o},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(vn,{ctor:"::",_0:xn("c-field c-field--label"),_1:{ctor:"::",_0:Pn("date"),_1:{ctor:"::",_0:Ln(e),_1:{ctor:"::",_0:An(_),_1:{ctor:"::",_0:jn(t),_1:{ctor:"[]"}}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:T.cmp($t(n),0)>0?l(dn,{ctor:"::",_0:xn("c-text--mono c-text--loud u-xsmall u-bg-yellow"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.25em 0.25em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.75em 0 1.25em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(n),_1:{ctor:"[]"}}):en(""),_1:{ctor:"[]"}}}})}),LB=_(function(t,r,e,o,c,n){return l(Tn,{ctor:"::",_0:xn("c-label o-form-element mw-form-field-30em"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-text--loud",_1:o},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Bn,{ctor:"::",_0:xn("c-field c-field--label"),_1:{ctor:"::",_0:Fn(n),_1:{ctor:"::",_0:Ln(e),_1:{ctor:"::",_0:An(l(V,"",c)),_1:{ctor:"::",_0:jn(t),_1:{ctor:"[]"}}}}}},{ctor:"[]"}),_1:{ctor:"[]"}}})}),NB=_(function(t,r,e,o,c,n){return l(Tn,{ctor:"::",_0:xn("c-label o-form-element mw-form-field-wide"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-text--loud",_1:o},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Bn,{ctor:"::",_0:xn("c-field c-field--label"),_1:{ctor:"::",_0:Fn(n),_1:{ctor:"::",_0:Ln(e),_1:{ctor:"::",_0:An(l(V,"",c)),_1:{ctor:"::",_0:jn(t),_1:{ctor:"[]"}}}}}},{ctor:"[]"}),_1:{ctor:"[]"}}})}),EB=_(function(t,r,e,o,c,n){return l(Tn,{ctor:"::",_0:xn("c-label o-form-element mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-text--loud",_1:o},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(vn,{ctor:"::",_0:xn("c-field c-field--label"),_1:{ctor:"::",_0:Ln(e),_1:{ctor:"::",_0:An(l(V,"",c)),_1:{ctor:"::",_0:jn(t),_1:{ctor:"[]"}}}}},{ctor:"[]"}),_1:{ctor:"::",_0:T.cmp($t(n),0)>0?l(dn,{ctor:"::",_0:xn("c-text--mono c-text--loud u-xsmall u-bg-yellow"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.25em 0.25em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.75em 0 1.25em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(n),_1:{ctor:"[]"}}):en(""),_1:{ctor:"[]"}}}})}),JB=s(function(t,r,e,o,c,n,a,_,i){return l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-overlay c-overlay--visible",_1:t},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-modal dateTimeModal"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__header"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--close"),_1:{ctor:"::",_0:Gn(c),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("x"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-heading"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,e,"Date","e.g. 08/14/2017",!1,_,""),_1:{ctor:"::",_0:p(EB,o,"Time","24 hr format, 14:44",!1,i,""),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__footer spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(a),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Clear"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand"),_1:{ctor:"::",_0:Gn(n),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Ok"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),IB=function(t){return function(r){return function(e){return function(o){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-overlay c-overlay--visible",_1:t},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-modal dateTimeModal"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__header"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--close"),_1:{ctor:"::",_0:Gn(c),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("x"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(an,{ctor:"::",_0:xn("c-heading"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,e,_,"Date","e.g. 08/14/2017",!1,i,""),_1:{ctor:"::",_0:p(EB,o,"Time","24 hr format, 14:44",!1,u,""),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__footer spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(a),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Clear"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand"),_1:{ctor:"::",_0:Gn(n),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Ok"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})}}}}}}}}}}},OB=e(function(t,r){return l(pn,{ctor:"::",_0:xn("c-input-group cancel-save-buttons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button u-large u-pillar-box-large"),_1:{ctor:"::",_0:Gn(t),_1:{ctor:"[]"}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--brand u-large u-pillar-box-large"),_1:{ctor:"::",_0:Gn(r),_1:{ctor:"[]"}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),VB=function(t){return l(pn,{ctor:"::",_0:xn("c-text--loud c-text--mono u-small pregnancy-header-val"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(V,"",t)),_1:{ctor:"[]"}})},qB=e(function(t,r){return l(pn,{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"min-width",_1:r},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("c-text--quiet u-xsmall pregnancy-header-fld"),_1:{ctor:"[]"}}},{ctor:"::",_0:en(l(N["++"],t,": ")),_1:{ctor:"[]"}})}),HB=c(function(t,r,e){return l(dn,{ctor:"::",_0:xn("pregnancy-header-col"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"ID","3em"),_1:{ctor:"::",_0:VB(U(function(t){var r=t;if("Just"===r.ctor){var e=r._0;return l(N["++"],d(Kt,0,2,e),l(N["++"],"-",l(N["++"],d(Kt,2,4,e),l(N["++"],"-",d(Kt,4,6,e)))))}return""}(t.dohID))),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Appt","3em"),_1:{ctor:"::",_0:VB(U("Tue @ MMC")),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}),UB=e(function(t,r){var e=function(){var r=t.laborStage2Record;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple2",_0:l(V,"",l(z,D,e.birthEBL)),_1:l(V,"",e.meconium)}}return{ctor:"_Tuple2",_0:"",_1:""}}(),o=e._0,c=e._1;return l(dn,{ctor:"::",_0:xn("pregnancy-header-col"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"EBL","3em"),_1:{ctor:"::",_0:VB(U(o)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:T.eq(r,q)?en(""):l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Tot EBL","3em"),_1:{ctor:"::",_0:VB(l(z,D,r)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Mec","3em"),_1:{ctor:"::",_0:VB(U(c)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}),zB=a(function(t,r,o,c,n){var a,_="Just"===(a=r.para).ctor?n?U(D(a._0+1)):l(z,D,r.para):q,i=function(){var r,c=t.dob;if("Just"===c.ctor){var n=c._0;return U(d(v,e(function(t,r){return l(N["++"],t,r)}),")",d(v,e(function(t,r){return l(N["++"],t,r)}),l(ku,n,"-"),d(v,e(function(t,r){return l(N["++"],t,r)})," (",D((r=l(Di,Ro(o),n),T.cmp(r.month,0)<0?r.year-1:r.year))))))}return U("")}();return l(dn,{ctor:"::",_0:xn("pregnancy-header-col"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"G","3em"),_1:{ctor:"::",_0:VB(l(z,D,r.gravida)),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(" "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(qB,"P","1.5em"),_1:{ctor:"::",_0:VB(_),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(" "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(qB,"A","1.5em"),_1:{ctor:"::",_0:VB(l(z,D,r.abortions)),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(" "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(qB,"S","1.5em"),_1:{ctor:"::",_0:VB(l(z,D,r.stillBirths)),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(" "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(qB,"L","1.5em"),_1:{ctor:"::",_0:VB(l(z,D,r.living)),_1:{ctor:"[]"}}}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Age","3em"),_1:{ctor:"::",_0:VB(i),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:T.eq(c,q)?l(pn,{ctor:"[]"},{ctor:"[]"}):l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Ptnr","3em"),_1:{ctor:"::",_0:VB(c),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}),WB=function(t){return l(pn,{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-left",_1:"2em"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-xsmall"),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-left",_1:"2em"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-pillar-box--large u-high c-button c-button--ghost-brand"),_1:{ctor:"::",_0:Gn(df),_1:{ctor:"[]"}}}},{ctor:"::",_0:en(function(t){switch(t.ctor){case"PrenatalContent":return"Prenatal";case"IPPContent":return"IPP";default:return"Labor"}}(t)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})},jB=e(function(t,r){var e=t;if("Just"===e.ctor){var o=l(xu,e._0,Ro(r)),c=o._0,n=o._1;return l(pu,c,n)}return l(pn,{ctor:"[]"},{ctor:"[]"})}),GB=function(t){var r={ctor:"_Tuple3",_0:t.lmp,_1:t.useAlternateEdd,_2:t.alternateEdd};return"Just"===r._0.ctor?"Just"===r._1.ctor&&"Just"===r._2.ctor&&r._1._0?U(r._2._0):function(t){var r=t;return"Just"===r.ctor?U(d(U_,j_,280,r._0)):q}(U(r._0._0)):q},YB=c(function(t,r,e){var o,c,n="Just"===(o=GB(r)).ctor?l(ku,o._0,"-"):"",a="Just"===(c=r.lmp).ctor?l(ku,c._0,"-"):"";return l(dn,{ctor:"::",_0:xn("pregnancy-header-col"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"LMP","3em"),_1:{ctor:"::",_0:VB(U(a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"EDD","3em"),_1:{ctor:"::",_0:VB(U(n)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}),KB=function(t){var r=t.nickname;if("Just"===r.ctor){var e=r._0;return T.cmp($t(e),0)>0?l(N["++"]," (",l(N["++"],e,")")):""}return""},QB=function(t){var r=t;return"Just"===r.ctor&&T.cmp(r._0.width,992)>-1},XB=i(function(t,r,e,o,c,n,a){var _,i="Just"===(_={ctor:"_Tuple2",_0:r.partnerFirstname,_1:r.partnerLastname})._0.ctor&&"Just"===_._1.ctor?U(l(N["++"],_._1._0,l(N["++"],", ",_._0._0))):q,u={ctor:"_Tuple2",_0:KB(r),_1:GB(r)},s=u._0,m=u._1;return l(dn,{ctor:"::",_0:xn("c-card c-card--accordion pregnancy-header-wrapper"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"u-large",_1:QB(n)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(vn,{ctor:"::",_0:Pn("checkbox"),_1:{ctor:"::",_0:On(!0),_1:{ctor:"::",_0:kn("pregnancy_header_accordion"),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-text--loud c-card__item"),_1:{ctor:"::",_0:En("pregnancy_header_accordion"),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(l(N["++"],r.lastname,l(N["++"],", ",l(N["++"],r.firstname,l(N["++"],s," "))))),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(jB,m,c),_1:{ctor:"::",_0:WB(o),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item pregnancy-header"),_1:{ctor:"[]"}},{ctor:"::",_0:f(zB,t,r,c,i,a),_1:{ctor:"::",_0:function(t){var r=function(){var r=t;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple5",_0:d(Hu,ds,fs,e.admittanceDate),_1:d(Hu,ds,fs,e.startLaborDate),_2:e.pos,_3:D(e.fh),_4:e.fht}}return{ctor:"_Tuple5",_0:"",_1:"",_2:"",_3:"",_4:""}}(),e=r._0,o=r._1,c=r._2,n=r._3,a=r._4;return l(dn,{ctor:"::",_0:xn("pregnancy-header-col"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Lbr","3em"),_1:{ctor:"::",_0:VB(U(o)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Admt","3em"),_1:{ctor:"::",_0:VB(U(e)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"POS","3em"),_1:{ctor:"::",_0:VB(U(c)),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(" "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(qB,"FH","2.0em"),_1:{ctor:"::",_0:VB(U(n)),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(" "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(qB,"FHT","2.5em"),_1:{ctor:"::",_0:VB(U(a)),_1:{ctor:"[]"}}}}}}}}}),_1:{ctor:"[]"}}}})}(e),_1:{ctor:"::",_0:function(t){var r=function(){var r=t;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple3",_0:l(N["++"],D(e.systolic),l(N["++"],"/",D(e.diastolic))),_1:D(e.cr),_2:D(e.temp)}}return{ctor:"_Tuple3",_0:"",_1:"",_2:""}}(),e=r._0,o=r._1,c=r._2;return l(dn,{ctor:"::",_0:xn("pregnancy-header-col"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"BP","3em"),_1:{ctor:"::",_0:VB(U(e)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"CR","3em"),_1:{ctor:"::",_0:VB(U(o)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Temp","3em"),_1:{ctor:"::",_0:VB(U(c)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}(e),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}})}),$B=i(function(t,r,o,c,n,a,_){var i,u,s,m,p,h,b,g=o,y=g,C=g.contPostpartumCheckRecords,v="Just"===(i=g.laborStage2Record).ctor?l(V,0,i._0.birthEBL):0,M="Just"===(u=T.eq(ot(C),0)?q:U(d(et,e(function(t,r){var e=t.motherEBL;return"Just"===e.ctor?r+e._0:r}),0,C))).ctor?U(v+u._0):q,B="Just"===(s={ctor:"_Tuple2",_0:r.partnerFirstname,_1:r.partnerLastname})._0.ctor&&"Just"===s._1.ctor?U(l(N["++"],s._1._0,l(N["++"],", ",s._0._0))):q,D={ctor:"_Tuple2",_0:KB(r),_1:GB(r)},S=D._0,F=D._1;return l(dn,{ctor:"::",_0:xn("c-card c-card--accordion pregnancy-header-wrapper"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"u-large",_1:QB(a)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(vn,{ctor:"::",_0:Pn("checkbox"),_1:{ctor:"::",_0:On(!0),_1:{ctor:"::",_0:kn("pregnancy_header_accordion"),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-text--loud c-card__item"),_1:{ctor:"::",_0:En("pregnancy_header_accordion"),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(l(N["++"],r.lastname,l(N["++"],", ",l(N["++"],r.firstname,l(N["++"],S," "))))),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(jB,F,n),_1:{ctor:"::",_0:WB(c),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item pregnancy-header"),_1:{ctor:"[]"}},{ctor:"::",_0:f(zB,t,r,n,B,_),_1:{ctor:"::",_0:(m=y,p=function(){var t=m.laborStage3Record;if("Just"===t.ctor){var r=t._0.placentaDatetime;return"Just"===r.ctor?d(Hu,ds,fs,r._0):""}return""}(),h=function(){var t=m.laborStage2Record;if("Just"===t.ctor){var r=t._0.birthDatetime;return"Just"===r.ctor?d(Hu,ds,fs,r._0):""}return""}(),b=function(){var t=m.laborStage1Record;if("Just"===t.ctor){var r=t._0.fullDialation;return"Just"===r.ctor?d(Hu,ds,fs,r._0):""}return""}(),l(dn,{ctor:"::",_0:xn("pregnancy-header-col"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Dltn","3em"),_1:{ctor:"::",_0:VB(U(b)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Birth","3em"),_1:{ctor:"::",_0:VB(U(h)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Plcnt","3em"),_1:{ctor:"::",_0:VB(U(p)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})),_1:{ctor:"::",_0:function(t){var r,e="Just"===(r=t.laborRecord).ctor?U(r._0.startLaborDate):q,o=function(){var r={ctor:"_Tuple3",_0:t.laborStage1Record,_1:t.laborStage2Record,_2:t.laborStage3Record};t:do{if("Just"===r._0.ctor){if("Just"===r._1.ctor){if("Just"===r._2.ctor){var o=r._1._0,c=r._0._0;return{ctor:"_Tuple3",_0:l(wu,e,c.fullDialation),_1:l(wu,c.fullDialation,o.birthDatetime),_2:l(wu,o.birthDatetime,r._2._0.placentaDatetime)}}var n=r._0._0;return{ctor:"_Tuple3",_0:l(wu,e,n.fullDialation),_1:l(wu,n.fullDialation,r._1._0.birthDatetime),_2:""}}if("Nothing"===r._2.ctor)return{ctor:"_Tuple3",_0:l(wu,e,r._0._0.fullDialation),_1:"",_2:""};break t}break t}while(0);return{ctor:"_Tuple3",_0:"",_1:"",_2:""}}(),c=o._0,n=o._1,a=o._2;return l(dn,{ctor:"::",_0:xn("pregnancy-header-col"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Stg 1","3em"),_1:{ctor:"::",_0:VB(U(c)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Stg 2","3em"),_1:{ctor:"::",_0:VB(U(n)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("pregnancy-header-fldval"),_1:{ctor:"[]"}},{ctor:"::",_0:l(qB,"Stg 3","3em"),_1:{ctor:"::",_0:VB(U(a)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}(y),_1:{ctor:"::",_0:l(UB,y,M),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}}})}),ZB=_(function(t,r,e,o,c,n){var a={ctor:"_Tuple2",_0:KB(r),_1:GB(r)},_=a._0,i=a._1;return l(dn,{ctor:"::",_0:xn("c-card c-card--accordion pregnancy-header-wrapper"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"u-large",_1:QB(n)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(vn,{ctor:"::",_0:Pn("checkbox"),_1:{ctor:"::",_0:On(!0),_1:{ctor:"::",_0:kn("pregnancy_header_accordion"),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-text--loud c-card__item"),_1:{ctor:"::",_0:En("pregnancy_header_accordion"),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(l(N["++"],r.lastname,l(N["++"],", ",l(N["++"],r.firstname,l(N["++"],_," "))))),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(jB,i,c),_1:{ctor:"::",_0:WB(o),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item pregnancy-header"),_1:{ctor:"[]"}},{ctor:"::",_0:f(zB,t,r,c,q,!1),_1:{ctor:"::",_0:d(YB,t,r,c),_1:{ctor:"::",_0:d(HB,t,r,c),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}})}),tD=_(function(t,r,e,o,c,n){var a,_=e,i=_.laborRecord,u="Just"===(a=_.laborStage2Record).ctor&&"Just"===a._0.birthDatetime.ctor;switch(o.ctor){case"PrenatalContent":return p(ZB,t,r,i,o,c,n);case"LaborContent":return h(XB,t,r,i,o,c,n,u);default:return h($B,t,r,_,o,c,n,u)}}),rD=gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],Pf,"Valid date of admittance must be provided."),t.admittanceDate)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],kf,"Admitting time must be provided, ex: hhmm."),t.admittanceTime)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],xf,"Valid date of the start of labor must be provided."),t.laborDate)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],Rf,"Start of labor time must be provided, ex: hhmm."),t.laborTime)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],wf,"POS must be provided."),t.pos)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],Ff,"FH must be provided."),t.fh)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Sf,"FHT must be provided."),t.fht)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],Df,"Systolic must be provided."),t.systolic)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],Bf,"Diastolic must be provided."),t.diastolic)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],Mf,"CR must be provided."),t.cr)},_1:{ctor:"::",_0:function(t){return d(pB,Ku,l(is["=>"],vf,"Temp must be provided."),t.temp)},_1:{ctor:"[]"}}}}}}}}}}}}),eD=c(function(t,r,o){var c=d(et,e(function(r,e){var o=e,c=o._0,n=o._1;if("Labor"===r.ctor){var a=l(Cm,r,t);return"Just"===a.ctor&&"LaborDataCache"===a._0.ctor?l(is["=>"],T.update(c,{laborRecord:U(a._0._0)}),n):l(is["=>"],c,n)}return{ctor:"_Tuple2",_0:c,_1:{ctor:"::",_0:l(N["++"],"Admitting.refreshModelFromCache: Unhandled Table",D(r)),_1:n}}}),{ctor:"_Tuple2",_0:o,_1:{ctor:"[]"}},r),n=c._0,a=c._1;return l(is["=>"],n,Be(l(it,iM,a)))}),oD=l(Mn,{ctor:"::",_0:xn("c-button c-button--brand u-xlarge"),_1:{ctor:"::",_0:Gn({ctor:"AdmitForLabor"}),_1:{ctor:"[]"}}},{ctor:"::",_0:en("Admit for Labor"),_1:{ctor:"[]"}}),cD=e(function(t,r){var e=l(gc,function(r){return T.eq(Te(r),t)},r);return"Just"===e.ctor?Ce(e._0):""}),nD=e(function(t,r){var e,o=rD(r);return l(dn,{ctor:"[]"},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Admittance Details"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:function(t){return l(sn,{ctor:"::",_0:xn("c-list u-small primary-fg"),_1:{ctor:"[]"}},l(it,function(t){var r=t;return l(ln,{ctor:"::",_0:xn("c-list__item"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r._1),_1:{ctor:"[]"}})},t))}(r.formErrors),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:r.browserSupportsDate?p(AB,function(t){return l(bf,Pf,Qa(t))},"Date admitted","e.g. 08/14/2017",!0,r.admittanceDate,l(cD,Pf,o)):h(PB,hf,af,"Date admitted","e.g. 08/14/2017",!0,r.admittanceDate,l(cD,Pf,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,kf,Qa(t))},"Time admitted","24 hr format, 14:44",!0,r.admittanceTime,l(cD,kf,o)),_1:{ctor:"::",_0:r.browserSupportsDate?p(AB,function(t){return l(bf,xf,Qa(t))},"Date start of labor","e.g. 08/14/2017",!0,r.laborDate,l(cD,xf,o)):h(PB,hf,nf,"Date start of labor","e.g. 08/14/2017",!0,r.laborDate,l(cD,xf,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,Rf,Qa(t))},"Time start of labor","24 hr format, 09:00",!0,r.laborTime,l(cD,Rf,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,wf,Qa(t))},"POS","pos",!0,r.pos,l(cD,wf,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,Ff,Qa(t))},"FH","fh",!0,r.fh,l(cD,Ff,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,Sf,Qa(t))},"FHT","fht",!0,r.fht,l(cD,Sf,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,Df,Qa(t))},"Systolic","systolic",!0,r.systolic,l(cD,Df,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,Bf,Qa(t))},"Diastolic","diastolic",!0,r.diastolic,l(cD,Bf,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,Mf,Qa(t))},"CR","heart rate",!0,r.cr,l(cD,Mf,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(bf,vf,Qa(t))},"Temp","temperature",!0,r.temp,l(cD,vf,o)),_1:{ctor:"::",_0:p(NB,function(t){return l(bf,Tf,Qa(t))},"Comments","",!0,r.comments,3),_1:{ctor:"[]"}}}}}}}}}}}}}),_1:{ctor:"::",_0:T.cmp(ot(r.formErrors),0)>0?l(dn,{ctor:"::",_0:xn("u-small error-msg-right primary-fg"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Errors detected, see details above."),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"[]"}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper-end"),_1:{ctor:"[]"}},{ctor:"::",_0:l(OB,yf,(e=t,{ctor:"SaveAdmitForLabor",_0:e})),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}})}),aD=c(function(t,r,e){var o=function(){var t=e.admissionState;switch(t.ctor){case"AdmissionStateNone":return{ctor:"::",_0:oD,_1:{ctor:"[]"}};case"AdmissionStateNew":return{ctor:"::",_0:l(nD,q,e),_1:{ctor:"[]"}};case"AdmissionStateView":return{ctor:"::",_0:function(t){var r,e=function(){var r=t.laborRecord;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple2",_0:D(e.temp),_1:l(V,"",e.comments)}}return{ctor:"_Tuple2",_0:"",_1:""}}(),o=e._0,c=e._1,n=function(){var r=t.laborRecord;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple8",_0:d(Hu,ds,fs,e.admittanceDate),_1:d(Hu,ds,fs,e.startLaborDate),_2:e.pos,_3:D(e.fh),_4:e.fht,_5:D(e.systolic),_6:D(e.diastolic),_7:D(e.cr)}}return{ctor:"_Tuple8",_0:"",_1:"",_2:"",_3:"",_4:"",_5:"",_6:"",_7:""}}(),a=n._0,_=n._1,i=n._2,u=n._3,s=n._4,m=n._5,f=n._6,p=n._7;return l(dn,{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-large"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Admitting Diagnosis"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Admittance: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(a),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Start labor: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(_),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("POS: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(i),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("FH: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(u),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("FHT: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(s),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("BP: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],m,l(N["++"]," / ",f))),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("CR: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(p),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Temp: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(o),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Comments: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(c),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:(r=t.currLaborId,"Just"===r.ctor?Gn({ctor:"EditAdmittance",_0:r._0}):xn("")),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}(e),_1:{ctor:"[]"}};default:return{ctor:"::",_0:l(nD,U(t._0),e),_1:{ctor:"[]"}}}}(),c=function(){var r={ctor:"_Tuple2",_0:e.patientRecord,_1:e.pregnancyRecord};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var o=f(lf,e.laborRecord,q,q,q,{ctor:"[]"});return p(tD,r._0._0,r._1._0,o,e.currPregHeaderContent,e.currTime,t)}return en("")}();return l(dn,{ctor:"[]"},{ctor:"::",_0:l(rn,function(t){return function(t){return{ctor:"RotatePregHeaderContent",_0:t}}(t)},c),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("content-wrapper"),_1:{ctor:"[]"}},o),_1:{ctor:"[]"}}})}),_D=c(function(t,r,e){var o=d(Pv,a_,U(sm(t)),{ctor:"::",_0:i_,_1:{ctor:"::",_0:h_,_1:{ctor:"[]"}}}),c=d(mB,l(TM,{ctor:"AdmittingLoaded",_0:t},o),q,e),n=c._0,a=c._1,_=d(KC,n,CT,kv(o));return l(is["=>"],a,cB(_))}),iD=a(function(t,r,e,o,c){var n=l(N["++"],o,{ctor:"::",_0:r,_1:{ctor:"[]"}}),a=l(tt,function(t){return ju(l(Cm,t,c))},{ctor:"::",_0:r,_1:o}),_=function(){if(a){var c=yM(l(Cf,q,U(n)));return l(is["=>"],t,l($e,M(c),Ue(!0)))}var _=d(Pv,r,e,o),i=d(mB,l(TM,yM(l(Cf,q,U(n))),_),q,t),u=i._0,s=i._1,m=d(KC,u,CT,kv(_));return l(is["=>"],s,cB(m))}(),i=_._0,u=_._1;return l(is["=>"],i,u)}),uD=(c(function(t,r,e){return l($e,M(d(gM,t,r,e)),Ue(!0))}),function(t){return{ctor:"AdmissionStateView",_0:t}}),sD={ctor:"AdmissionStateNew"},lD={ctor:"AdmissionStateNone"},dD=i(function(t,r,e,o,c,n,a){var _,i="Just"===(_=a).ctor?{ctor:"_Tuple2",_0:uD(jl(_._0.id)),_1:De}:{ctor:"_Tuple2",_0:lD,_1:De},u=i._0,s=i._1,l=function(){var t=u;switch(t.ctor){case"AdmissionStateNone":case"AdmissionStateNew":return{ctor:"_Tuple2",_0:pf,_1:q};case"AdmissionStateView":default:return{ctor:"_Tuple2",_0:pf,_1:U(t._0)}}}(),d=l._0;return{ctor:"_Tuple3",_0:{browserSupportsDate:t,currTime:r,pregnancy_id:o,currLaborId:l._1,currPregHeaderContent:d,dataCache:Tr,patientRecord:c,pregnancyRecord:n,laborRecord:a,admissionState:u,admittanceDate:q,admittanceTime:q,laborDate:q,laborTime:q,pos:q,fh:q,fht:q,systolic:q,diastolic:q,cr:q,temp:q,comments:q,formErrors:{ctor:"[]"}},_1:e,_2:s}}),mD=c(function(t,r,o){var c,n,a,_,i,u=r;switch(u.ctor){case"AdmittingPageNoop":return{ctor:"_Tuple3",_0:o,_1:De,_2:De};case"AdmittingTick":return{ctor:"_Tuple3",_0:T.update(o,{currTime:u._0}),_1:De,_2:De};case"DataCache":var s=function(){var t={ctor:"_Tuple2",_0:u._0,_1:u._1};if("Just"===t._0.ctor&&"Just"===t._1.ctor){var r=t._0._0;return d(eD,r,t._1._0,T.update(o,{dataCache:r}))}return{ctor:"_Tuple2",_0:o,_1:De}}(),m=s._0,f=s._1;return{ctor:"_Tuple3",_0:m,_1:De,_2:f};case"DateFieldSubMsg":var p=u._0;if("DateFieldMessage"!==p.ctor)return{ctor:"_Tuple3",_0:o,_1:De,_2:De};var h=p._0.date,b=p._0.dateField;switch(b.ctor){case"AdmittingAdmittanceDateField":return{ctor:"_Tuple3",_0:T.update(o,{admittanceDate:U(h)}),_1:De,_2:De};case"AdmittingStartLaborDateField":return{ctor:"_Tuple3",_0:T.update(o,{laborDate:U(h)}),_1:De,_2:De};case"UnknownDateField":return{ctor:"_Tuple3",_0:o,_1:De,_2:iM(l(N["++"],"Unknown date field: ",b._0))};default:return{ctor:"_Tuple3",_0:o,_1:De,_2:De}}case"RotatePregHeaderContent":u._0;var g=function(){switch(o.currPregHeaderContent.ctor){case"PrenatalContent":return ff;case"LaborContent":return mf;default:return pf}}();return{ctor:"_Tuple3",_0:T.update(o,{currPregHeaderContent:g}),_1:De,_2:De};case"AdmitForLabor":var y="Just"===(i=o.admittanceDate).ctor?U(i._0):U(Ro(o.currTime));return{ctor:"_Tuple3",_0:T.update(o,{admissionState:sD,admittanceDate:y}),_1:De,_2:De};case"CancelAdmitForLabor":var C="Just"===(_=o.currLaborId).ctor?uD(_._0):lD;return{ctor:"_Tuple3",_0:T.update(o,{admissionState:C,admittanceDate:q,admittanceTime:q,laborDate:q,laborTime:q,pos:q,fh:q,fht:q,systolic:q,diastolic:q,cr:q,temp:q,comments:q,formErrors:{ctor:"[]"}}),_1:De,_2:De};case"SaveAdmitForLabor":var B=rD(o);if("[]"===B.ctor){var S=function(){var t=o.laborRecord;if("Just"===t.ctor){var r=t._0,e=T.update(r,{admittanceDate:d(rs,o.admittanceDate,o.admittanceTime,r.admittanceDate),startLaborDate:d(rs,o.laborDate,o.laborTime,r.startLaborDate),pos:l(V,"",o.pos),fh:l(V,0,bu(o.fh)),fht:l(V,"",o.fht),systolic:l(V,0,bu(o.systolic)),diastolic:l(V,0,bu(o.diastolic)),cr:l(V,0,bu(o.cr)),temp:l(V,0,hu(o.temp)),comments:o.comments});return d(tM,l(RM,yM(l(Cf,q,U({ctor:"::",_0:h_,_1:{ctor:"[]"}}))),e),yT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("labor")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"admittanceDate",_1:Ju(t.admittanceDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"startLaborDate",_1:Ju(t.startLaborDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dischargeDate",_1:(r=t.dischargeDate,e=r,"Just"===e.ctor?Ju(e._0):Yr)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"pos",_1:$r(t.pos)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fh",_1:Xr(t.fh)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fht",_1:$r(t.fht)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"systolic",_1:Xr(t.systolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"diastolic",_1:Xr(t.diastolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cr",_1:Xr(t.cr)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"temp",_1:Qr(t.temp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"pregnancy_id",_1:Xr(t.pregnancy_id)},_1:{ctor:"[]"}}}}}}}}}}}}}})},_1:{ctor:"[]"}}});var r,e}(e))}var c,n=function(t){var r,e={ctor:"_Tuple2",_0:{ctor:"_Tuple6",_0:t.admittanceDate,_1:t.admittanceTime,_2:t.laborDate,_3:t.laborTime,_4:t.pos,_5:bu(t.fh)},_1:{ctor:"_Tuple5",_0:t.fht,_1:bu(t.systolic),_2:bu(t.diastolic),_3:bu(t.cr),_4:hu(t.temp)}};if("Just"===e._0._0.ctor&&"Just"===e._0._1.ctor&&"Just"===e._0._2.ctor&&"Just"===e._0._3.ctor&&"Just"===e._0._4.ctor&&"Just"===e._0._5.ctor&&"Just"===e._1._0.ctor&&"Just"===e._1._1.ctor&&"Just"===e._1._2.ctor&&"Just"===e._1._3.ctor&&"Just"===e._1._4.ctor){var o={ctor:"_Tuple2",_0:Zu(e._0._1._0),_1:Zu(e._0._3._0)},c={ctor:"_Tuple2",_0:o._0,_1:o._1};return"Just"===c._0.ctor&&"Just"===c._1.ctor?U((r=l(Vu,e._0._0._0,c._0._0),function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return{admittanceDate:r,startLaborDate:t,pos:e,fh:o,fht:c,systolic:n,diastolic:a,cr:_,temp:i,comments:u,pregnancy_id:s}}}}}}}}}}})(l(Vu,e._0._2._0,c._1._0))(e._0._4._0)(e._0._5._0)(e._1._0._0)(e._1._1._0)(e._1._2._0)(e._1._3._0)(e._1._4._0)(t.comments)(sm(t.pregnancy_id))):q}return q}(o);if("Just"===n.ctor){var a=n._0;return d(tM,l(YM,yM(l(gf,a,q)),a),vT,(c=a,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("labor")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"admittanceDate",_1:Ju(c.admittanceDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"startLaborDate",_1:Ju(c.startLaborDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"pos",_1:$r(c.pos)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fh",_1:Xr(c.fh)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fht",_1:$r(c.fht)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"systolic",_1:Xr(c.systolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"diastolic",_1:Xr(c.diastolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cr",_1:Xr(c.cr)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"temp",_1:Qr(c.temp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,c.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"pregnancy_id",_1:Xr(c.pregnancy_id)},_1:{ctor:"[]"}}}}}}}}}}}})},_1:{ctor:"[]"}}})))}return CM}();return{ctor:"_Tuple3",_0:T.update(o,{formErrors:{ctor:"[]"},admissionState:(a=u._0,"Just"===a.ctor?uD(a._0):o.admissionState)}),_1:De,_2:l($e,M(S),Ue(!0))}}var F=B,w=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,F));return{ctor:"_Tuple3",_0:T.update(o,{formErrors:F}),_1:De,_2:l(Qv,w,10)};case"AdmitForLaborSaved":var R=u._1,x="Just"===(n=R).ctor?U(l(Wl,n._0,u._0)):q;return{ctor:"_Tuple3",_0:function(){var t=x;if("Just"===t.ctor){var r=t._0;return T.update(o,{admissionState:uD(jl(r.id)),laborRecord:U(r),currPregHeaderContent:ff,currLaborId:R})}return o}(),_1:De,_2:De};case"EditAdmittance":var k=o.laborRecord;if("Just"===k.ctor){var P=k._0;return{ctor:"_Tuple3",_0:T.update(o,{admissionState:(c=u._0,{ctor:"AdmissionStateEdit",_0:c}),admittanceDate:U(P.admittanceDate),admittanceTime:U(Pu(P.admittanceDate)),laborDate:U(P.startLaborDate),laborTime:U(Pu(P.startLaborDate)),pos:U(P.pos),fh:U(D(P.fh)),fht:U(P.fht),systolic:U(D(P.systolic)),diastolic:U(D(P.diastolic)),cr:U(D(P.cr)),temp:U(D(P.temp)),comments:P.comments,formErrors:{ctor:"[]"}}),_1:De,_2:De}}return{ctor:"_Tuple3",_0:o,_1:De,_2:De};case"OpenDatePickerSubMsg":return{ctor:"_Tuple3",_0:o,_1:De,_2:l($e,cM,Ue(u._0))};case"FldChgSubMsg":var A=function(){var t=u._1;switch(t.ctor){case"FldChgString":var r=t._0;switch(u._0.ctor){case"AdmittanceDateFld":return l(is["=>"],T.update(o,{admittanceDate:Tu(r)}),De);case"AdmittanceTimeFld":return l(is["=>"],T.update(o,{admittanceTime:U(Lu(r))}),De);case"LaborDateFld":return l(is["=>"],T.update(o,{laborDate:Tu(r)}),De);case"LaborTimeFld":return l(is["=>"],T.update(o,{laborTime:U(Lu(r))}),De);case"PosFld":return l(is["=>"],T.update(o,{pos:U(zt(r))}),De);case"FhFld":return l(is["=>"],T.update(o,{fh:U(Xu(r))}),De);case"FhtFld":return l(is["=>"],T.update(o,{fht:U(r)}),De);case"SystolicFld":return l(is["=>"],T.update(o,{systolic:U(Xu(r))}),De);case"DiastolicFld":return l(is["=>"],T.update(o,{diastolic:U(Xu(r))}),De);case"CrFld":return l(is["=>"],T.update(o,{cr:U(Xu(r))}),De);case"TempFld":return l(is["=>"],T.update(o,{temp:U(Yu(r))}),De);default:return l(is["=>"],T.update(o,{comments:U(r)}),De)}case"FldChgStringList":return l(is["=>"],o,iM(l(N["++"],"Admitting.update FldChgSubMsg: ","Unknown field encountered in FldChgStringList. Possible mismatch between Field and FldChgValue.")));case"FldChgBool":return l(is["=>"],o,iM(l(N["++"],"Admitting.update FldChgSubMsg: ","Unknown field encountered in FldChgBool. Possible mismatch between Field and FldChgValue.")));default:return l(is["=>"],o,iM(l(N["++"],"Admitting.update FldChgSubMsg: ","Unknown field encountered in FldChgIntString. Possible mismatch between Field and FldChgValue.")))}}();return m=A._0,f=A._1,{ctor:"_Tuple3",_0:m,_1:De,_2:f};default:var L=u._0;return{ctor:"_Tuple3",_0:T.update(o,{currLaborId:U(L),admissionState:uD(L)}),_1:De,_2:De}}}),fD=gB({ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Up,"* required"),t.bcBirthOrder)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Hp,"* required"),t.bcMotherMaidenLastname)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Vp,"* required"),t.bcMotherFirstname)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Op,"* required"),t.bcMotherCitizenship)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],Ip,"* required"),t.bcMotherNumChildrenBornAlive)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],Jp,"* required"),t.bcMotherNumChildrenLiving)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],Ep,"* required"),t.bcMotherNumChildrenBornAliveNowDead)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Np,"* required"),t.bcMotherAddress)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Lp,"* required"),t.bcMotherCity)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Pp,"* required"),t.bcMotherCountry)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!1),l(is["=>"],Cp,"Valid date of marriage is required."),t.bcDateOfMarriage)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],hp,"* required"),t.bcAttendantType)},_1:{ctor:"::",_0:function(t){return T.eq(t.bcAttendantType,U("Other"))&&T.eq($t(l(V,"",t.bcAttendantOther)),0)?{ctor:"::",_0:l(is["=>"],pp,"* required"),_1:{ctor:"[]"}}:{ctor:"[]"}},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],fp,"* required"),t.bcAttendantFullname)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],mp,"* required"),t.bcAttendantTitle)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],dp,"* required"),t.bcAttendantAddr1)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],lp,"* required"),t.bcAttendantAddr2)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],sp,"* required"),t.bcInformantFullname)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],up,"* required"),t.bcInformantRelationToChild)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],ip,"* required"),t.bcInformantAddress)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],_p,"* required"),t.bcPreparedByFullname)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],ap,"* required"),t.bcPreparedByTitle)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!1),l(is["=>"],cp,"Valid comm tax date is required."),t.bcCommTaxDate)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!1),l(is["=>"],Yf,"Valid affiate comm tax date is required."),t.bcAffiateCommTaxDate)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}),pD=i(function(t,r,e,o,c,n,a){var _=function(t){var r=t;return"Just"===r.ctor&&r._0?"Y":"N"},i=_(n),u=_(a);return l(N["++"],"/printBirthCertificate/",l(Qt,"/",{ctor:"::",_0:t,_1:{ctor:"::",_0:r,_1:{ctor:"::",_0:e,_1:{ctor:"::",_0:o,_1:{ctor:"::",_0:c,_1:{ctor:"::",_0:i,_1:{ctor:"::",_0:u,_1:{ctor:"[]"}}}}}}}}))}),hD=e(function(t,r){var e=l(gc,function(r){return T.eq(Te(r),t)},r);return"Just"===e.ctor?Ce(e._0):""}),bD=function(t){return!0===t.isEditing?function(t){var r=fD(t.model),e=c(function(t,e,o){return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(r){return l(Ef,t,Qa(r))},e,"",!0,o,l(hD,t,r)),_1:{ctor:"[]"}})});return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:d(e,Up,"Birth order",t.model.bcBirthOrder),_1:{ctor:"::",_0:d(e,Hp,"Mother maiden name",t.model.bcMotherMaidenLastname),_1:{ctor:"::",_0:d(e,qp,"Mother middle name",t.model.bcMotherMiddlename),_1:{ctor:"::",_0:d(e,Vp,"Mother first name",t.model.bcMotherFirstname),_1:{ctor:"::",_0:d(e,Op,"Mother citizenship",t.model.bcMotherCitizenship),_1:{ctor:"::",_0:d(e,Ip,"Number children born alive",t.model.bcMotherNumChildrenBornAlive),_1:{ctor:"::",_0:d(e,Jp,"Number children living incl newborn",t.model.bcMotherNumChildrenLiving),_1:{ctor:"::",_0:d(e,Ep,"Number children born live, now dead",t.model.bcMotherNumChildrenBornAliveNowDead),_1:{ctor:"::",_0:d(e,Np,"Mother address",t.model.bcMotherAddress),_1:{ctor:"::",_0:d(e,Lp,"Mother city",t.model.bcMotherCity),_1:{ctor:"::",_0:d(e,Ap,"Mother province",t.model.bcMotherProvince),_1:{ctor:"::",_0:d(e,Pp,"Mother country",t.model.bcMotherCountry),_1:{ctor:"::",_0:d(e,kp,"Father last name",t.model.bcFatherLastname),_1:{ctor:"::",_0:d(e,xp,"Father middle name",t.model.bcFatherMiddlename),_1:{ctor:"::",_0:d(e,Rp,"Father first name",t.model.bcFatherFirstname),_1:{ctor:"::",_0:d(e,wp,"Father citizenship",t.model.bcFatherCitizenship),_1:{ctor:"::",_0:d(e,Fp,"Father religion",t.model.bcFatherReligion),_1:{ctor:"::",_0:d(e,Sp,"Father occupation",t.model.bcFatherOccupation),_1:{ctor:"::",_0:d(e,Dp,"Father age at baby birth",t.model.bcFatherAgeAtBirth),_1:{ctor:"::",_0:d(e,Bp,"Father address",t.model.bcFatherAddress),_1:{ctor:"::",_0:d(e,Mp,"Father city",t.model.bcFatherCity),_1:{ctor:"::",_0:d(e,vp,"Father province",t.model.bcFatherProvince),_1:{ctor:"::",_0:d(e,Tp,"Father country",t.model.bcFatherCountry),_1:{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Marriage date"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Ef,Cp,Qa(t))},"","e.g. 08/14/2017",!1,t.model.bcDateOfMarriage,l(hD,Cp,r)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date of Marriage"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,If,Vm,"","e.g. 08/14/2017",!1,t.model.bcDateOfMarriage,l(hD,Cp,r)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:d(e,yp,"City of marriage",t.model.bcCityOfMarriage),_1:{ctor:"::",_0:d(e,gp,"Province of marriage",t.model.bcProvinceOfMarriage),_1:{ctor:"::",_0:d(e,bp,"Country of marriage",t.model.bcCountryOfMarriage),_1:{ctor:"::",_0:h(MB,"Attendant type","attendantType",t.model.bcAttendantType,function(t){return l(Ef,hp,Qa(t))},!1,{ctor:"::",_0:"Physician",_1:{ctor:"::",_0:"Nurse",_1:{ctor:"::",_0:"Midwife",_1:{ctor:"::",_0:"Hilot",_1:{ctor:"::",_0:"Other",_1:{ctor:"[]"}}}}}},l(hD,hp,r)),_1:{ctor:"::",_0:d(e,pp,"Specify attendant if Other",t.model.bcAttendantOther),_1:{ctor:"::",_0:d(e,fp,"Attendant full name",t.model.bcAttendantFullname),_1:{ctor:"::",_0:d(e,mp,"Attendant title",t.model.bcAttendantTitle),_1:{ctor:"::",_0:d(e,dp,"Attendant addr line 1",t.model.bcAttendantAddr1),_1:{ctor:"::",_0:d(e,lp,"Attendant addr line 2",t.model.bcAttendantAddr2),_1:{ctor:"::",_0:d(e,sp,"Informant full name",t.model.bcInformantFullname),_1:{ctor:"::",_0:d(e,up,"Informant relation to child",t.model.bcInformantRelationToChild),_1:{ctor:"::",_0:d(e,ip,"Informant address",t.model.bcInformantAddress),_1:{ctor:"::",_0:d(e,_p,"Prepared by full name",t.model.bcPreparedByFullname),_1:{ctor:"::",_0:d(e,ap,"Prepared by title",t.model.bcPreparedByTitle),_1:{ctor:"::",_0:d(e,np,"Partner's comm tax number",t.model.bcCommTaxNumber),_1:{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date of partner's comm tax"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Ef,cp,Qa(t))},"","e.g. 08/14/2017",!1,t.model.bcCommTaxDate,l(hD,cp,r)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date of partner's comm tax"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,If,qm,"","e.g. 08/14/2017",!1,t.model.bcCommTaxDate,l(hD,cp,r)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:d(e,op,"Partner's comm tax place",t.model.bcCommTaxPlace),_1:{ctor:"::",_0:d(e,ep,"Received by full name",t.model.bcReceivedByName),_1:{ctor:"::",_0:d(e,rp,"Received by title",t.model.bcReceivedByTitle),_1:{ctor:"::",_0:d(e,tp,"Affiate full name",t.model.bcAffiateName),_1:{ctor:"::",_0:d(e,Zf,"Affiate address",t.model.bcAffiateAddress),_1:{ctor:"::",_0:d(e,$f,"Affiate's country of citizenship",t.model.bcAffiateCitizenshipCountry),_1:{ctor:"::",_0:d(e,Xf,"Reason for delay",t.model.bcAffiateReason),_1:{ctor:"::",_0:d(e,Qf,"Affiate I am",t.model.bcAffiateIAm),_1:{ctor:"::",_0:d(e,Kf,"Affiate comm tax number",t.model.bcAffiateCommTaxNumber),_1:{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date of affiate's comm tax"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Ef,Yf,Qa(t))},"","e.g. 08/14/2017",!1,t.model.bcAffiateCommTaxDate,l(hD,Yf,r)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date of affiate's comm tax"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,If,Om,"","e.g. 08/14/2017",!1,t.model.bcAffiateCommTaxDate,l(hD,Yf,r)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:d(e,Gf,"Affiate comm tax place",t.model.bcAffiateCommTaxPlace),_1:{ctor:"::",_0:p(NB,function(t){return l(Ef,jf,Qa(t))},"Comments","",!0,t.model.bcComments,3),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(t.saveMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}(t):function(t){var r,o="Just"===(r=t.model.babyRecord).ctor?D(r._0.id):"",c=e(function(t,r){return l(V,"",l(z,t,r))}),n=e(function(t,r){return l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],t,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),a=function(t){var r=t;return"Just"===r.ctor?d(qu,ds,fs,r._0):""},_=t.model.birthCertificateRecord;if("Nothing"===_.ctor)return en("");var i,u=_._0;return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(n,"Birth order",u.birthOrder),_1:{ctor:"::",_0:l(n,"Mother maiden name",u.motherMaidenLastname),_1:{ctor:"::",_0:l(n,"Mother middle name",l(V,"",u.motherMiddlename)),_1:{ctor:"::",_0:l(n,"Mother first name",u.motherFirstname),_1:{ctor:"::",_0:l(n,"Mother citizenship",u.motherCitizenship),_1:{ctor:"::",_0:l(n,"Nbr children born alive",D(u.motherNumChildrenBornAlive)),_1:{ctor:"::",_0:l(n,"Nbr children living incl newborn",D(u.motherNumChildrenLiving)),_1:{ctor:"::",_0:l(n,"Nbr children born alive but now dead",D(u.motherNumChildrenBornAliveNowDead)),_1:{ctor:"::",_0:l(n,"Mother address",u.motherAddress),_1:{ctor:"::",_0:l(n,"Mother city",u.motherCity),_1:{ctor:"::",_0:l(n,"Mother province",u.motherProvince),_1:{ctor:"::",_0:l(n,"Mother country",u.motherCountry),_1:{ctor:"::",_0:l(n,"Father last name",l(V,"",u.fatherLastname)),_1:{ctor:"::",_0:l(n,"Father middle name",l(V,"",u.fatherMiddlename)),_1:{ctor:"::",_0:l(n,"Father first name",l(V,"",u.fatherFirstname)),_1:{ctor:"::",_0:l(n,"Father citizenship",l(V,"",u.fatherCitizenship)),_1:{ctor:"::",_0:l(n,"Father religion",l(V,"",u.fatherReligion)),_1:{ctor:"::",_0:l(n,"Father occupation",l(V,"",u.fatherOccupation)),_1:{ctor:"::",_0:l(n,"Father age at baby birth",l(c,D,u.fatherAgeAtBirth)),_1:{ctor:"::",_0:l(n,"Father address",l(V,"",u.fatherAddress)),_1:{ctor:"::",_0:l(n,"Father city",l(V,"",u.fatherCity)),_1:{ctor:"::",_0:l(n,"Father province",l(V,"",u.fatherProvince)),_1:{ctor:"::",_0:l(n,"Father country",l(V,"",u.fatherCountry)),_1:{ctor:"::",_0:l(n,"Date of marriage",a(u.dateOfMarriage)),_1:{ctor:"::",_0:l(n,"City of marriage",l(V,"",u.cityOfMarriage)),_1:{ctor:"::",_0:l(n,"Province of marriage",l(V,"",u.provinceOfMarriage)),_1:{ctor:"::",_0:l(n,"Country of marriage",l(V,"",u.countryOfMarriage)),_1:{ctor:"::",_0:l(n,"Attendant type",u.attendantType),_1:{ctor:"::",_0:l(n,"Attendant type if other",l(V,"",u.attendantOther)),_1:{ctor:"::",_0:l(n,"Attendant full name",u.attendantFullname),_1:{ctor:"::",_0:l(n,"Attendant title",l(V,"",u.attendantTitle)),_1:{ctor:"::",_0:l(n,"Attendant address line 1",l(V,"",u.attendantAddr1)),_1:{ctor:"::",_0:l(n,"Attendant address line 2",l(V,"",u.attendantAddr2)),_1:{ctor:"::",_0:l(n,"Informant full name",u.informantFullname),_1:{ctor:"::",_0:l(n,"Informant relation to child",u.informantRelationToChild),_1:{ctor:"::",_0:l(n,"Informant address",u.informantAddress),_1:{ctor:"::",_0:l(n,"Prepared by full name",u.preparedByFullname),_1:{ctor:"::",_0:l(n,"Prepared by title",u.preparedByTitle),_1:{ctor:"::",_0:l(n,"Comm tax number",l(V,"",u.commTaxNumber)),_1:{ctor:"::",_0:l(n,"Comm tax date",a(u.commTaxDate)),_1:{ctor:"::",_0:l(n,"Comm tax place",l(V,"",u.commTaxPlace)),_1:{ctor:"::",_0:l(n,"Received by full name",l(V,"",u.receivedByName)),_1:{ctor:"::",_0:l(n,"Received by title",l(V,"",u.receivedByTitle)),_1:{ctor:"::",_0:l(n,"Affiate full name",l(V,"",u.affiateName)),_1:{ctor:"::",_0:l(n,"Affiate address",l(V,"",u.affiateAddress)),_1:{ctor:"::",_0:l(n,"Affiate country of citizenship",l(V,"",u.affiateCitizenshipCountry)),_1:{ctor:"::",_0:l(n,"Affiate reason",l(V,"",u.affiateReason)),_1:{ctor:"::",_0:l(n,"Affiate I am",l(V,"",u.affiateIAm)),_1:{ctor:"::",_0:l(n,"Affiate comm tax number",l(V,"",u.affiateCommTaxNumber)),_1:{ctor:"::",_0:l(n,"Affiate comm tax date",a(u.affiateCommTaxDate)),_1:{ctor:"::",_0:l(n,"Affiate comm tax place",l(V,"",u.affiateCommTaxPlace)),_1:{ctor:"::",_0:l(n,"Comments",l(V,"",u.comments)),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"overflow",_1:"hidden"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn(t.editMsg),_1:{ctor:"[]"}}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"1em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.5em 0.5em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-medium"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Printing"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:en("\n Specify the left and top offsets in order to properly align with the\n birth certificate form. Offsets of 0 correspond to 1/2 inch margin.\n Offsets are by points and there are 72 points per inch. Therefore, a\n offset of 72 will produce a margin of 1.5 inches. Negative offsets are\n allowed, for example, to achieve a 1/4 inch margin, use -36.\n "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Ef,Wf,Qa(t))},"Top offset page one","",!0,t.model.printingPage1Top,l(hD,Wf,{ctor:"[]"})),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Ef,zf,Qa(t))},"Left offset page one","",!0,t.model.printingPage1Left,l(hD,zf,{ctor:"[]"})),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Ef,Uf,Qa(t))},"Top offset page two","",!0,t.model.printingPage2Top,l(hD,Uf,{ctor:"[]"})),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Ef,Hf,Qa(t))},"Left offset page two","",!0,t.model.printingPage2Left,l(hD,Hf,{ctor:"[]"})),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-wide"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Print these sections?"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(wB,"Paternity",function(t){return l(Ef,qf,Ka(t))},t.model.printingPaternity),_1:{ctor:"::",_0:d(wB,"Delayed Registration",function(t){return l(Ef,Vf,Ka(t))},t.model.printingDelayedRegistration),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"overflow",_1:"hidden"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--primary u-medium"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Jn(h(pD,o,l(V,"0",t.model.printingPage1Top),l(V,"0",t.model.printingPage1Left),l(V,"0",t.model.printingPage2Top),l(V,"0",t.model.printingPage2Left),t.model.printingPaternity,t.model.printingDelayedRegistration)),_1:{ctor:"::",_0:(i="_blank",l(Rn,"target",i)),_1:{ctor:"[]"}}}}}},{ctor:"::",_0:en("Print"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}})}(t)},gD=function(t){var r=t.birthCertificateRecord;if("Just"===r.ctor){var e=r._0;return T.update(t,{bcBirthOrder:U(e.birthOrder),bcMotherMaidenLastname:U(e.motherMaidenLastname),bcMotherMiddlename:e.motherMiddlename,bcMotherFirstname:U(e.motherFirstname),bcMotherCitizenship:U(e.motherCitizenship),bcMotherNumChildrenBornAlive:U(D(e.motherNumChildrenBornAlive)),bcMotherNumChildrenLiving:U(D(e.motherNumChildrenLiving)),bcMotherNumChildrenBornAliveNowDead:U(D(e.motherNumChildrenBornAliveNowDead)),bcMotherAddress:U(e.motherAddress),bcMotherCity:U(e.motherCity),bcMotherProvince:U(e.motherProvince),bcMotherCountry:U(e.motherCountry),bcFatherLastname:e.fatherLastname,bcFatherMiddlename:e.fatherMiddlename,bcFatherFirstname:e.fatherFirstname,bcFatherCitizenship:e.fatherCitizenship,bcFatherReligion:e.fatherReligion,bcFatherOccupation:e.fatherOccupation,bcFatherAgeAtBirth:l(z,D,e.fatherAgeAtBirth),bcFatherAddress:e.fatherAddress,bcFatherCity:e.fatherCity,bcFatherProvince:e.fatherProvince,bcFatherCountry:e.fatherCountry,bcDateOfMarriage:e.dateOfMarriage,bcCityOfMarriage:e.cityOfMarriage,bcProvinceOfMarriage:e.provinceOfMarriage,bcCountryOfMarriage:e.countryOfMarriage,bcAttendantType:U(e.attendantType),bcAttendantOther:e.attendantOther,bcAttendantFullname:U(e.attendantFullname),bcAttendantTitle:e.attendantTitle,bcAttendantAddr1:e.attendantAddr1,bcAttendantAddr2:e.attendantAddr2,bcInformantFullname:U(e.informantFullname),bcInformantRelationToChild:U(e.informantRelationToChild),bcInformantAddress:U(e.informantAddress),bcPreparedByFullname:U(e.preparedByFullname),bcPreparedByTitle:U(e.preparedByTitle),bcCommTaxNumber:e.commTaxNumber,bcCommTaxDate:e.commTaxDate,bcCommTaxPlace:e.commTaxPlace,bcReceivedByName:e.receivedByName,bcReceivedByTitle:e.receivedByTitle,bcAffiateName:e.affiateName,bcAffiateAddress:e.affiateAddress,bcAffiateCitizenshipCountry:e.affiateCitizenshipCountry,bcAffiateReason:e.affiateReason,bcAffiateIAm:e.affiateIAm,bcAffiateCommTaxNumber:e.affiateCommTaxNumber,bcAffiateCommTaxDate:e.affiateCommTaxDate,bcAffiateCommTaxPlace:e.affiateCommTaxPlace,bcComments:e.comments})}var o,c=l(Ll,"birthCertDefaultReceivedByTitle",t.keyValueRecords),n=l(Ll,"birthCertDefaultReceivedByName",t.keyValueRecords),a=l(Ll,"birthCertDefaultAttendantAddr2",t.keyValueRecords),_=l(Ll,"birthCertDefaultAttendantAddr1",t.keyValueRecords),i=l(Ll,"birthCertDefaultAttendantTitle",t.keyValueRecords),u=l(Ll,"birthCertDefaultCountry",t.keyValueRecords),s=l(Ll,"birthCertDefaultCitizenship",t.keyValueRecords),d=t.pregnancyRecord;if("Just"===d.ctor){var m=d._0,f="Just"===(o={ctor:"_Tuple3",_0:m.lastname,_1:m.maidenname,_2:m.maritalStatus})._1.ctor&&"Just"===o._2.ctor&&"Married"===o._2._0?o._1._0:o._0;return T.update(t,{bcMotherMaidenLastname:U(f),bcMotherFirstname:U(m.firstname),bcMotherCitizenship:s,bcMotherCity:m.city,bcMotherProvince:m.state,bcMotherCountry:u,bcFatherCitizenship:s,bcFatherCountry:u,bcCountryOfMarriage:u,bcAttendantType:U("Midwife"),bcAttendantTitle:i,bcAttendantAddr1:_,bcAttendantAddr2:a,bcReceivedByName:n,bcReceivedByTitle:c})}return t},yD=c(function(t,r,o){var c=d(et,e(function(r,e){var o=e,c=o._0,n=o._1;switch(r.ctor){case"Baby":var a=l(Cm,r,t);return"Just"===a.ctor&&"BabyDataCache"===a._0.ctor?l(is["=>"],T.update(c,{babyRecord:U(a._0._0)}),n):l(is["=>"],c,n);case"BirthCertificate":var _=l(Cm,r,t);return"Just"===_.ctor&&"BirthCertificateDataCache"===_._0.ctor?l(is["=>"],T.update(c,{birthCertificateRecord:U(_._0._0)}),n):l(is["=>"],c,n);case"KeyValue":var i=l(Cm,r,t);return"Just"===i.ctor&&"KeyValueDataCache"===i._0.ctor?l(is["=>"],T.update(c,{keyValueRecords:i._0._0}),n):l(is["=>"],c,n);case"Labor":var u=l(Cm,r,t);return"Just"===u.ctor&&"LaborDataCache"===u._0.ctor?l(is["=>"],T.update(c,{laborRecord:u._0._0}),n):l(is["=>"],c,n);case"LaborStage2":var s=l(Cm,r,t);return"Just"===s.ctor&&"LaborStage2DataCache"===s._0.ctor?l(is["=>"],T.update(c,{laborStage2Record:U(s._0._0)}),n):l(is["=>"],c,n);case"SelectData":var d=l(Cm,r,t);return"Just"===d.ctor&&"SelectDataDataCache"===d._0.ctor?l(is["=>"],T.update(c,{selectDataRecords:d._0._0}),n):l(is["=>"],c,n);case"PostpartumCheck":return l(is["=>"],c,n);default:return{ctor:"_Tuple2",_0:c,_1:{ctor:"::",_0:l(N["++"],"BirthCert.refreshModelFromCache: Unhandled Table ",D(r)),_1:n}}}}),{ctor:"_Tuple2",_0:o,_1:{ctor:"[]"}},r),n=c._0,a=c._1;return l(is["=>"],n,Be(l(it,iM,a)))}),CD=a(function(t,r,e,o,c){var n=l(N["++"],o,{ctor:"::",_0:r,_1:{ctor:"[]"}}),a=l(tt,function(t){return ju(l(Cm,t,c))},{ctor:"::",_0:r,_1:o}),_=function(){if(a){var c=hM(l(Of,q,U(n)));return l(is["=>"],t,l($e,M(c),Ue(!0)))}var _=d(Pv,r,e,o),i=d(mB,l(TM,hM(l(Of,q,U(n))),_),q,t),u=i._0,s=i._1,m=d(KC,u,CT,kv(_));return l(is["=>"],s,cB(m))}(),i=_._0,u=_._1;return l(is["=>"],i,u)}),TD=c(function(t,r,e){return l($e,M(d(pM,t,r,e)),Ue(!0))}),vD=n(function(t,r,e,o){var c=d(Pv,h_,U(r.id),{ctor:"::",_0:f_,_1:{ctor:"::",_0:F_,_1:{ctor:"[]"}}}),n=d(mB,l(TM,l(bM,t,r),c),q,o),a=n._0,_=n._1,i=d(KC,a,CT,kv(c));return l(is["=>"],_,cB(i))}),MD=i(function(t,r,e,o,c,n,a){return{isShown:t,isEditing:r,title:e,model:o,closeMsg:c,saveMsg:n,editMsg:a}}),BD={ctor:"BirthCertificateEditState"},DD=s(function(t,r,e,o,c,n,a,_,i){var u,s,m=d(TD,b_,q,{ctor:"[]"}),f="Just"===(s=e).ctor?d(TD,F_,U(s._0.id),{ctor:"::",_0:C_,_1:{ctor:"[]"}}):(u="Baby record not available in BirthCert.buildModel.",l($e,aM(pC),Ue(u)));return{ctor:"_Tuple3",_0:gD({browserSupportsDate:o,currTime:c,pregnancy_id:a,currLaborId:U(jl(t.id)),dataCache:Tr,pendingSelectQuery:Tr,patientRecord:_,pregnancyRecord:i,laborRecord:t,laborStage2Record:r,babyRecord:e,selectDataRecords:{ctor:"[]"},keyValueRecords:Tr,birthCertificateRecord:q,birthCertificateViewEditState:BD,bcBirthOrder:q,bcMotherMaidenLastname:q,bcMotherMiddlename:q,bcMotherFirstname:q,bcMotherCitizenship:q,bcMotherNumChildrenBornAlive:q,bcMotherNumChildrenLiving:q,bcMotherNumChildrenBornAliveNowDead:q,bcMotherAddress:q,bcMotherCity:q,bcMotherProvince:q,bcMotherCountry:q,bcFatherLastname:q,bcFatherMiddlename:q,bcFatherFirstname:q,bcFatherCitizenship:q,bcFatherReligion:q,bcFatherOccupation:q,bcFatherAgeAtBirth:q,bcFatherAddress:q,bcFatherCity:q,bcFatherProvince:q,bcFatherCountry:q,bcDateOfMarriage:q,bcCityOfMarriage:q,bcProvinceOfMarriage:q,bcCountryOfMarriage:q,bcAttendantType:q,bcAttendantOther:q,bcAttendantFullname:q,bcAttendantTitle:q,bcAttendantAddr1:q,bcAttendantAddr2:q,bcInformantFullname:q,bcInformantRelationToChild:q,bcInformantAddress:q,bcPreparedByFullname:q,bcPreparedByTitle:q,bcCommTaxNumber:q,bcCommTaxDate:q,bcCommTaxPlace:q,bcReceivedByName:q,bcReceivedByTitle:q,bcAffiateName:q,bcAffiateAddress:q,bcAffiateCitizenshipCountry:q,bcAffiateReason:q,bcAffiateIAm:q,bcAffiateCommTaxNumber:q,bcAffiateCommTaxDate:q,bcAffiateCommTaxPlace:q,bcComments:q,printingPage1Top:U("0"),printingPage1Left:U("0"),printingPage2Top:U("0"),printingPage2Left:U("0"),printingPaternity:q,printingDelayedRegistration:q}),_1:n,_2:Be({ctor:"::",_0:f,_1:{ctor:"::",_0:m,_1:{ctor:"[]"}}})}}),SD={ctor:"BirthCertificateViewState"},FD=c(function(t,r,o){var c=r;switch(c.ctor){case"BirthCertTick":return{ctor:"_Tuple3",_0:T.update(o,{currTime:c._0}),_1:De,_2:De};case"CloseAllDialogs":return{ctor:"_Tuple3",_0:function(t){return T.update(t,{birthCertificateViewEditState:SD})}(o),_1:De,_2:De};case"DataCache":var n=function(){var t,r={ctor:"_Tuple2",_0:c._0,_1:c._1};if("Just"===r._0.ctor){var n=r._1,a=r._0._0,_=d(yD,a,l(V,{ctor:"[]"},n),T.update(o,{dataCache:a})),i=_._0,u=_._1;return{ctor:"_Tuple2",_0:"Just"===(t=n).ctor?d(et,e(function(t,r){return T.eq(t,C_)?function(t){return T.update(t,{birthCertificateViewEditState:SD})}(gD(r)):T.eq(t,b_)?function(t){return T.update(t,{birthCertificateViewEditState:SD})}(gD(r)):r}),i,t._0):i,_1:u}}return l(is["=>"],o,De)}(),a=n._0,_=n._1;return{ctor:"_Tuple3",_0:a,_1:De,_2:_};case"DateFieldSubMsg":var i=function(){var t=c._0;if("DateFieldMessage"!==t.ctor)return l(is["=>"],o,iM(l(N["++"],"BirthCert.update DateFieldSubMsg: UnknownDateFieldMessage: ",t._0)));var r=t._0.date,e=t._0.dateField;switch(e.ctor){case"BirthCertDateOfMarriageField":return l(is["=>"],T.update(o,{bcDateOfMarriage:U(r)}),De);case"BirthCertDateOfCommTaxField":return l(is["=>"],T.update(o,{bcCommTaxDate:U(r)}),De);case"BirthCertDateOfAffiateCommTaxField":return l(is["=>"],T.update(o,{bcAffiateCommTaxDate:U(r)}),De);case"UnknownDateField":return l(is["=>"],o,iM(l(N["++"],"Unknown date field: ",e._0)));default:return l(is["=>"],o,De)}}();return a=i._0,_=i._1,{ctor:"_Tuple3",_0:a,_1:De,_2:_};case"FldChgSubMsg":var u=c._0,s=function(){var t=c._1;switch(t.ctor){case"FldChgString":var r=t._0;switch(u.ctor){case"BCBirthOrderFld":return l(is["=>"],T.update(o,{bcBirthOrder:U(r)}),De);case"BCMotherMaidenLastnameFld":return l(is["=>"],T.update(o,{bcMotherMaidenLastname:U(r)}),De);case"BCMotherMiddlenameFld":return l(is["=>"],T.update(o,{bcMotherMiddlename:U(r)}),De);case"BCMotherFirstnameFld":return l(is["=>"],T.update(o,{bcMotherFirstname:U(r)}),De);case"BCMotherCitizenshipFld":return l(is["=>"],T.update(o,{bcMotherCitizenship:U(r)}),De);case"BCMotherNumChildrenBornAliveFld":return l(is["=>"],T.update(o,{bcMotherNumChildrenBornAlive:U(Xu(r))}),De);case"BCMotherNumChildrenLivingFld":return l(is["=>"],T.update(o,{bcMotherNumChildrenLiving:U(Xu(r))}),De);case"BCMotherNumChildrenBornAliveNowDeadFld":return l(is["=>"],T.update(o,{bcMotherNumChildrenBornAliveNowDead:U(Xu(r))}),De);case"BCMotherAddressFld":return l(is["=>"],T.update(o,{bcMotherAddress:U(r)}),De);case"BCMotherCityFld":return l(is["=>"],T.update(o,{bcMotherCity:U(r)}),De);case"BCMotherProvinceFld":return l(is["=>"],T.update(o,{bcMotherProvince:U(r)}),De);case"BCMotherCountryFld":return l(is["=>"],T.update(o,{bcMotherCountry:U(r)}),De);case"BCFatherLastnameFld":return l(is["=>"],T.update(o,{bcFatherLastname:U(r)}),De);case"BCFatherMiddlenameFld":return l(is["=>"],T.update(o,{bcFatherMiddlename:U(r)}),De);case"BCFatherFirstnameFld":return l(is["=>"],T.update(o,{bcFatherFirstname:U(r)}),De);case"BCFatherCitizenshipFld":return l(is["=>"],T.update(o,{bcFatherCitizenship:U(r)}),De);case"BCFatherReligionFld":return l(is["=>"],T.update(o,{bcFatherReligion:U(r)}),De);case"BCFatherOccupationFld":return l(is["=>"],T.update(o,{bcFatherOccupation:U(r)}),De);case"BCFatherAgeAtBirthFld":return l(is["=>"],T.update(o,{bcFatherAgeAtBirth:U(Xu(r))}),De);case"BCFatherAddressFld":return l(is["=>"],T.update(o,{bcFatherAddress:U(r)}),De);case"BCFatherCityFld":return l(is["=>"],T.update(o,{bcFatherCity:U(r)}),De);case"BCFatherProvinceFld":return l(is["=>"],T.update(o,{bcFatherProvince:U(r)}),De);case"BCFatherCountryFld":return l(is["=>"],T.update(o,{bcFatherCountry:U(r)}),De);case"BCDateOfMarriageFld":return l(is["=>"],T.update(o,{bcDateOfMarriage:Tu(r)}),De);case"BCCityOfMarriageFld":return l(is["=>"],T.update(o,{bcCityOfMarriage:U(r)}),De);case"BCProvinceOfMarriageFld":return l(is["=>"],T.update(o,{bcProvinceOfMarriage:U(r)}),De);case"BCCountryOfMarriageFld":return l(is["=>"],T.update(o,{bcCountryOfMarriage:U(r)}),De);case"BCAttendantTypeFld":return l(is["=>"],T.update(o,{bcAttendantType:U(r)}),De);case"BCAttendantOtherFld":return l(is["=>"],T.update(o,{bcAttendantOther:U(r)}),De);case"BCAttendantFullnameFld":return l(is["=>"],T.update(o,{bcAttendantFullname:U(r)}),De);case"BCAttendantTitleFld":return l(is["=>"],T.update(o,{bcAttendantTitle:U(r)}),De);case"BCAttendantAddr1Fld":return l(is["=>"],T.update(o,{bcAttendantAddr1:U(r)}),De);case"BCAttendantAddr2Fld":return l(is["=>"],T.update(o,{bcAttendantAddr2:U(r)}),De);case"BCInformantFullnameFld":return l(is["=>"],T.update(o,{bcInformantFullname:U(r)}),De);case"BCInformantRelationToChildFld":return l(is["=>"],T.update(o,{bcInformantRelationToChild:U(r)}),De);case"BCInformantAddressFld":return l(is["=>"],T.update(o,{bcInformantAddress:U(r)}),De);case"BCPreparedByFullnameFld":return l(is["=>"],T.update(o,{bcPreparedByFullname:U(r)}),De);case"BCPreparedByTitleFld":return l(is["=>"],T.update(o,{bcPreparedByTitle:U(r)}),De);case"BCCommTaxNumberFld":return l(is["=>"],T.update(o,{bcCommTaxNumber:U(r)}),De);case"BCCommTaxDateFld":return l(is["=>"],T.update(o,{bcCommTaxDate:Tu(r)}),De);case"BCCommTaxPlaceFld":return l(is["=>"],T.update(o,{bcCommTaxPlace:U(r)}),De);case"BCReceivedByNameFld":return l(is["=>"],T.update(o,{bcReceivedByName:U(r)}),De);case"BCReceivedByTitleFld":return l(is["=>"],T.update(o,{bcReceivedByTitle:U(r)}),De);case"BCAffiateNameFld":return l(is["=>"],T.update(o,{bcAffiateName:U(r)}),De);case"BCAffiateAddressFld":return l(is["=>"],T.update(o,{bcAffiateAddress:U(r)}),De);case"BCAffiateCitizenshipCountryFld":return l(is["=>"],T.update(o,{bcAffiateCitizenshipCountry:U(r)}),De);case"BCAffiateReasonFld":return l(is["=>"],T.update(o,{bcAffiateReason:U(r)}),De);case"BCAffiateIAmFld":return l(is["=>"],T.update(o,{bcAffiateIAm:U(r)}),De);case"BCAffiateCommTaxNumberFld":return l(is["=>"],T.update(o,{bcAffiateCommTaxNumber:U(r)}),De);case"BCAffiateCommTaxDateFld":return l(is["=>"],T.update(o,{bcAffiateCommTaxDate:Tu(r)}),De);case"BCAffiateCommTaxPlace":return l(is["=>"],T.update(o,{bcAffiateCommTaxPlace:U(r)}),De);case"BCCommentsFld":return l(is["=>"],T.update(o,{bcComments:U(r)}),De);case"PrintingPage1TopFld":return l(is["=>"],T.update(o,{printingPage1Top:U(Qu(r))}),De);case"PrintingPage1LeftFld":return l(is["=>"],T.update(o,{printingPage1Left:U(Qu(r))}),De);case"PrintingPage2TopFld":return l(is["=>"],T.update(o,{printingPage2Top:U(Qu(r))}),De);case"PrintingPage2LeftFld":return l(is["=>"],T.update(o,{printingPage2Left:U(Qu(r))}),De);default:return l(is["=>"],o,iM(l(N["++"],"BirthCert.update FldChgSubMsg: ","Unknown field encountered in FldChgString. Possible mismatch between Field and FldChgValue.")))}case"FldChgStringList":return l(is["=>"],o,De);case"FldChgBool":var e=t._0;switch(u.ctor){case"PrintingPaternityFld":return l(is["=>"],T.update(o,{printingPaternity:U(e)}),De);case"PrintingDelayedRegistrationFld":return l(is["=>"],T.update(o,{printingDelayedRegistration:U(e)}),De);default:return l(is["=>"],o,iM(l(N["++"],"BirthCert.update FldChgSubMsg: ","Unknown field encountered in FldChgBool. Possible mismatch between Field and FldChgValue.")))}default:return l(is["=>"],o,De)}}();return a=s._0,_=s._1,{ctor:"_Tuple3",_0:a,_1:De,_2:_};case"HandleBirthCertificateModal":switch(c._0.ctor){case"OpenDialog":return{ctor:"_Tuple3",_0:o,_1:De,_2:De};case"EditDialog":return{ctor:"_Tuple3",_0:T.update(o,{birthCertificateViewEditState:BD}),_1:De,_2:T.eq(o.birthCertificateViewEditState,SD)?Be({ctor:"::",_0:Ov(Vv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{birthCertificateViewEditState:SD}),_1:De,_2:Jv};default:var m=fD(o);if("[]"===m.ctor){var f=function(){var t,r={ctor:"_Tuple2",_0:o.babyRecord,_1:o.birthCertificateRecord};if("Just"===r._0.ctor){if("Just"===r._1.ctor){var e=r._1._0,c=T.update(e,{birthOrder:l(V,e.birthOrder,o.bcBirthOrder),motherMaidenLastname:l(V,e.motherMaidenLastname,o.bcMotherMaidenLastname),motherMiddlename:l(Gu,o.bcMotherMiddlename,e.motherMiddlename),motherFirstname:l(V,e.motherFirstname,o.bcMotherFirstname),motherCitizenship:l(V,e.motherCitizenship,o.bcMotherCitizenship),motherNumChildrenBornAlive:l(V,e.motherNumChildrenBornAlive,bu(o.bcMotherNumChildrenBornAlive)),motherNumChildrenLiving:l(V,e.motherNumChildrenLiving,bu(o.bcMotherNumChildrenLiving)),motherNumChildrenBornAliveNowDead:l(V,e.motherNumChildrenBornAliveNowDead,bu(o.bcMotherNumChildrenBornAliveNowDead)),motherAddress:l(V,e.motherAddress,o.bcMotherAddress),motherCity:l(V,e.motherCity,o.bcMotherCity),motherProvince:l(V,e.motherProvince,o.bcMotherProvince),motherCountry:l(V,e.motherCountry,o.bcMotherCountry),fatherLastname:l(Gu,o.bcFatherLastname,e.fatherLastname),fatherMiddlename:l(Gu,o.bcFatherMiddlename,e.fatherMiddlename),fatherFirstname:l(Gu,o.bcFatherFirstname,e.fatherFirstname),fatherCitizenship:l(Gu,o.bcFatherCitizenship,e.fatherCitizenship),fatherReligion:l(Gu,o.bcFatherReligion,e.fatherReligion),fatherOccupation:l(Gu,o.bcFatherOccupation,e.fatherOccupation),fatherAgeAtBirth:l(Gu,bu(o.bcFatherAgeAtBirth),e.fatherAgeAtBirth),fatherAddress:l(Gu,o.bcFatherAddress,e.fatherAddress),fatherCity:l(Gu,o.bcFatherCity,e.fatherCity),fatherProvince:l(Gu,o.bcFatherProvince,e.fatherProvince),fatherCountry:l(Gu,o.bcFatherCountry,e.fatherCountry),dateOfMarriage:o.bcDateOfMarriage,cityOfMarriage:l(Gu,o.bcCityOfMarriage,e.cityOfMarriage),provinceOfMarriage:l(Gu,o.bcProvinceOfMarriage,e.provinceOfMarriage),countryOfMarriage:l(Gu,o.bcCountryOfMarriage,e.countryOfMarriage),attendantType:l(V,e.attendantType,o.bcAttendantType),attendantOther:l(Gu,o.bcAttendantOther,e.attendantOther),attendantFullname:l(V,e.attendantFullname,o.bcAttendantFullname),attendantTitle:l(Gu,o.bcAttendantTitle,e.attendantTitle),attendantAddr1:l(Gu,o.bcAttendantAddr1,e.attendantAddr1),attendantAddr2:l(Gu,o.bcAttendantAddr2,e.attendantAddr2),informantFullname:l(V,e.informantFullname,o.bcInformantFullname),informantRelationToChild:l(V,e.informantRelationToChild,o.bcInformantRelationToChild),informantAddress:l(V,e.informantAddress,o.bcInformantAddress),preparedByFullname:l(V,e.preparedByFullname,o.bcPreparedByFullname),preparedByTitle:l(V,e.preparedByTitle,o.bcPreparedByTitle),commTaxNumber:l(Gu,o.bcCommTaxNumber,e.commTaxNumber),commTaxDate:l(Gu,o.bcCommTaxDate,e.commTaxDate),commTaxPlace:l(Gu,o.bcCommTaxPlace,e.commTaxPlace),receivedByName:l(Gu,o.bcReceivedByName,e.receivedByName),receivedByTitle:l(Gu,o.bcReceivedByTitle,e.receivedByTitle),affiateName:l(Gu,o.bcAffiateName,e.affiateName),affiateAddress:l(Gu,o.bcAffiateAddress,e.affiateAddress),affiateCitizenshipCountry:l(Gu,o.bcAffiateCitizenshipCountry,e.affiateCitizenshipCountry),affiateReason:l(Gu,o.bcAffiateReason,e.affiateReason),affiateIAm:l(Gu,o.bcAffiateIAm,e.affiateIAm),affiateCommTaxNumber:l(Gu,o.bcAffiateCommTaxNumber,e.affiateCommTaxNumber),affiateCommTaxDate:l(Gu,o.bcAffiateCommTaxDate,e.affiateCommTaxDate),affiateCommTaxPlace:l(Gu,o.bcAffiateCommTaxPlace,e.affiateCommTaxPlace),comments:l(Gu,o.bcComments,e.comments)});return d(tM,l(PM,hM(l(Of,q,U({ctor:"::",_0:C_,_1:{ctor:"[]"}}))),c),yT,(t=c,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(C_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthOrder",_1:$r(t.birthOrder)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherMaidenLastname",_1:$r(t.motherMaidenLastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherMiddlename",_1:l(Qo,$r,t.motherMiddlename)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFirstname",_1:$r(t.motherFirstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCitizenship",_1:$r(t.motherCitizenship)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherNumChildrenBornAlive",_1:Xr(t.motherNumChildrenBornAlive)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherNumChildrenLiving",_1:Xr(t.motherNumChildrenLiving)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherNumChildrenBornAliveNowDead",_1:Xr(t.motherNumChildrenBornAliveNowDead)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherAddress",_1:$r(t.motherAddress)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCity",_1:$r(t.motherCity)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherProvince",_1:$r(t.motherProvince)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCountry",_1:$r(t.motherCountry)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherLastname",_1:l(Qo,$r,t.fatherLastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherMiddlename",_1:l(Qo,$r,t.fatherMiddlename)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherFirstname",_1:l(Qo,$r,t.fatherFirstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherCitizenship",_1:l(Qo,$r,t.fatherCitizenship)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherReligion",_1:l(Qo,$r,t.fatherReligion)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherOccupation",_1:l(Qo,$r,t.fatherOccupation)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherAgeAtBirth",_1:l(Qo,Xr,t.fatherAgeAtBirth)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherAddress",_1:l(Qo,$r,t.fatherAddress)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherCity",_1:l(Qo,$r,t.fatherCity)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherProvince",_1:l(Qo,$r,t.fatherProvince)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherCountry",_1:l(Qo,$r,t.fatherCountry)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dateOfMarriage",_1:l(Qo,Ju,t.dateOfMarriage)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cityOfMarriage",_1:l(Qo,$r,t.cityOfMarriage)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"provinceOfMarriage",_1:l(Qo,$r,t.provinceOfMarriage)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"countryOfMarriage",_1:l(Qo,$r,t.countryOfMarriage)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantType",_1:$r(t.attendantType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantOther",_1:l(Qo,$r,t.attendantOther)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantFullname",_1:$r(t.attendantFullname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantTitle",_1:l(Qo,$r,t.attendantTitle)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantAddr1",_1:l(Qo,$r,t.attendantAddr1)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantAddr2",_1:l(Qo,$r,t.attendantAddr2)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"informantFullname",_1:$r(t.informantFullname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"informantRelationToChild",_1:$r(t.informantRelationToChild)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"informantAddress",_1:$r(t.informantAddress)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"preparedByFullname",_1:$r(t.preparedByFullname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"preparedByTitle",_1:$r(t.preparedByTitle)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"commTaxNumber",_1:l(Qo,$r,t.commTaxNumber)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"commTaxDate",_1:l(Qo,Ju,t.commTaxDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"commTaxPlace",_1:l(Qo,$r,t.commTaxPlace)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"receivedByName",_1:l(Qo,$r,t.receivedByName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"receivedByTitle",_1:l(Qo,$r,t.receivedByTitle)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateName",_1:l(Qo,$r,t.affiateName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateAddress",_1:l(Qo,$r,t.affiateAddress)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateCitizenshipCountry",_1:l(Qo,$r,t.affiateCitizenshipCountry)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateReason",_1:l(Qo,$r,t.affiateReason)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateIAm",_1:l(Qo,$r,t.affiateIAm)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateCommTaxNumber",_1:l(Qo,$r,t.affiateCommTaxNumber)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateCommTaxDate",_1:l(Qo,Ju,t.affiateCommTaxDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateCommTaxPlace",_1:l(Qo,$r,t.affiateCommTaxPlace)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(t.baby_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})))}var n=function(t){var r,e=t.babyRecord;if("Just"===e.ctor){var o={ctor:"_Tuple3",_0:l(z,qt,t.bcMotherNumChildrenBornAlive),_1:l(z,qt,t.bcMotherNumChildrenLiving),_2:l(z,qt,t.bcMotherNumChildrenBornAliveNowDead)};return"Just"===o._0.ctor&&"Ok"===o._0._0.ctor&&"Just"===o._1.ctor&&"Ok"===o._1._0.ctor&&"Just"===o._2.ctor&&"Ok"===o._2._0.ctor?U((r=l(V,"",t.bcBirthOrder),function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return function(R){return function(x){return function(k){return function(P){return function(A){return function(L){return function(N){return function(E){return function(J){return function(I){return function(O){return function(V){return function(q){return function(H){return function(U){return function(z){return function(W){return function(j){return function(G){return function(Y){return function(K){return function(Q){return function(X){return function($){return{birthOrder:r,motherMaidenLastname:t,motherMiddlename:e,motherFirstname:o,motherCitizenship:c,motherNumChildrenBornAlive:n,motherNumChildrenLiving:a,motherNumChildrenBornAliveNowDead:_,motherAddress:i,motherCity:u,motherProvince:s,motherCountry:l,fatherLastname:d,fatherMiddlename:m,fatherFirstname:f,fatherCitizenship:p,fatherReligion:h,fatherOccupation:b,fatherAgeAtBirth:g,fatherAddress:y,fatherCity:C,fatherProvince:T,fatherCountry:v,dateOfMarriage:M,cityOfMarriage:B,provinceOfMarriage:D,countryOfMarriage:S,attendantType:F,attendantOther:w,attendantFullname:R,attendantTitle:x,attendantAddr1:k,attendantAddr2:P,informantFullname:A,informantRelationToChild:L,informantAddress:N,preparedByFullname:E,preparedByTitle:J,commTaxNumber:I,commTaxDate:O,commTaxPlace:V,receivedByName:q,receivedByTitle:H,affiateName:U,affiateAddress:z,affiateCitizenshipCountry:W,affiateReason:j,affiateIAm:G,affiateCommTaxNumber:Y,affiateCommTaxDate:K,affiateCommTaxPlace:Q,comments:X,baby_id:$}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})(l(V,"",t.bcMotherMaidenLastname))(t.bcMotherMiddlename)(l(V,"",t.bcMotherFirstname))(l(V,"",t.bcMotherCitizenship))(o._0._0._0)(o._1._0._0)(o._2._0._0)(l(V,"",t.bcMotherAddress))(l(V,"",t.bcMotherCity))(l(V,"",t.bcMotherProvince))(l(V,"",t.bcMotherCountry))(t.bcFatherLastname)(t.bcFatherMiddlename)(t.bcFatherFirstname)(t.bcFatherCitizenship)(t.bcFatherReligion)(t.bcFatherOccupation)(bu(t.bcFatherAgeAtBirth))(t.bcFatherAddress)(t.bcFatherCity)(t.bcFatherProvince)(t.bcFatherCountry)(t.bcDateOfMarriage)(t.bcCityOfMarriage)(t.bcProvinceOfMarriage)(t.bcCountryOfMarriage)(l(V,"",t.bcAttendantType))(t.bcAttendantOther)(l(V,"",t.bcAttendantFullname))(t.bcAttendantTitle)(t.bcAttendantAddr1)(t.bcAttendantAddr2)(l(V,"",t.bcInformantFullname))(l(V,"",t.bcInformantRelationToChild))(l(V,"",t.bcInformantAddress))(l(V,"",t.bcPreparedByFullname))(l(V,"",t.bcPreparedByTitle))(t.bcCommTaxNumber)(t.bcCommTaxDate)(t.bcCommTaxPlace)(t.bcReceivedByName)(t.bcReceivedByTitle)(t.bcAffiateName)(t.bcAffiateAddress)(t.bcAffiateCitizenshipCountry)(t.bcAffiateReason)(t.bcAffiateIAm)(t.bcAffiateCommTaxNumber)(t.bcAffiateCommTaxDate)(t.bcAffiateCommTaxPlace)(t.bcComments)(e._0.id)):q}return q}(o);if("Just"===n.ctor){var a=n._0;return d(tM,l(XM,hM(l(Of,q,U({ctor:"::",_0:C_,_1:{ctor:"[]"}}))),a),vT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(C_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"birthOrder",_1:$r(t.birthOrder)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherMaidenLastname",_1:$r(t.motherMaidenLastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherMiddlename",_1:l(Qo,$r,t.motherMiddlename)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFirstname",_1:$r(t.motherFirstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCitizenship",_1:$r(t.motherCitizenship)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherNumChildrenBornAlive",_1:Xr(t.motherNumChildrenBornAlive)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherNumChildrenLiving",_1:Xr(t.motherNumChildrenLiving)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherNumChildrenBornAliveNowDead",_1:Xr(t.motherNumChildrenBornAliveNowDead)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherAddress",_1:$r(t.motherAddress)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCity",_1:$r(t.motherCity)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherProvince",_1:$r(t.motherProvince)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCountry",_1:$r(t.motherCountry)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherLastname",_1:l(Qo,$r,t.fatherLastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherMiddlename",_1:l(Qo,$r,t.fatherMiddlename)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherFirstname",_1:l(Qo,$r,t.fatherFirstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherCitizenship",_1:l(Qo,$r,t.fatherCitizenship)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherReligion",_1:l(Qo,$r,t.fatherReligion)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherOccupation",_1:l(Qo,$r,t.fatherOccupation)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherAgeAtBirth",_1:l(Qo,Xr,t.fatherAgeAtBirth)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherAddress",_1:l(Qo,$r,t.fatherAddress)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherCity",_1:l(Qo,$r,t.fatherCity)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherProvince",_1:l(Qo,$r,t.fatherProvince)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fatherCountry",_1:l(Qo,$r,t.fatherCountry)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dateOfMarriage",_1:l(Qo,Ju,t.dateOfMarriage)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cityOfMarriage",_1:l(Qo,$r,t.cityOfMarriage)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"provinceOfMarriage",_1:l(Qo,$r,t.provinceOfMarriage)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"countryOfMarriage",_1:l(Qo,$r,t.countryOfMarriage)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantType",_1:$r(t.attendantType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantOther",_1:l(Qo,$r,t.attendantOther)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantFullname",_1:$r(t.attendantFullname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantTitle",_1:l(Qo,$r,t.attendantTitle)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantAddr1",_1:l(Qo,$r,t.attendantAddr1)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"attendantAddr2",_1:l(Qo,$r,t.attendantAddr2)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"informantFullname",_1:$r(t.informantFullname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"informantRelationToChild",_1:$r(t.informantRelationToChild)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"informantAddress",_1:$r(t.informantAddress)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"preparedByFullname",_1:$r(t.preparedByFullname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"preparedByTitle",_1:$r(t.preparedByTitle)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"commTaxNumber",_1:l(Qo,$r,t.commTaxNumber)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"commTaxDate",_1:l(Qo,Ju,t.commTaxDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"commTaxPlace",_1:l(Qo,$r,t.commTaxPlace)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"receivedByName",_1:l(Qo,$r,t.receivedByName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"receivedByTitle",_1:l(Qo,$r,t.receivedByTitle)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateName",_1:l(Qo,$r,t.affiateName)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateAddress",_1:l(Qo,$r,t.affiateAddress)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateCitizenshipCountry",_1:l(Qo,$r,t.affiateCitizenshipCountry)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateReason",_1:l(Qo,$r,t.affiateReason)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateIAm",_1:l(Qo,$r,t.affiateIAm)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateCommTaxNumber",_1:l(Qo,$r,t.affiateCommTaxNumber)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateCommTaxDate",_1:l(Qo,Ju,t.affiateCommTaxDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"affiateCommTaxPlace",_1:l(Qo,$r,t.affiateCommTaxPlace)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(t.baby_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})}(a))}return l(aM,pC,"deriveBirthCertificateRecordNew returned a Nothing")}return l(aM,pC,"No baby record found. Unable to save birth certificate.")}();return{ctor:"_Tuple3",_0:T.update(o,{birthCertificateViewEditState:SD}),_1:De,_2:Be({ctor:"::",_0:l($e,M(f),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}var p=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,m));return{ctor:"_Tuple3",_0:T.update(o,{birthCertificateViewEditState:BD}),_1:De,_2:l(Qv,p,10)}}default:return{ctor:"_Tuple3",_0:o,_1:De,_2:l($e,cM,Ue(c._0))}}}),wD=c(function(t,r,o){var c=!!T.eq(o.birthCertificateViewEditState,BD)||!function(t){return!T.eq(t.birthCertificateRecord,q)}(o),n=h(MD,T.eq(o.birthCertificateViewEditState,SD)||T.eq(o.birthCertificateViewEditState,BD),c,"Birth Certificate",o,Nf(Za),Nf($a),Nf(Xa)),a=function(){var t=o.babyRecord;if("Just"===t.ctor){var r=t._0;return{ctor:"_Tuple3",_0:l(V,"",r.lastname),_1:l(V,"",r.firstname),_2:l(V,"",r.middlename)}}return{ctor:"_Tuple3",_0:"",_1:"",_2:""}}(),_=a._0,i=a._1,u=a._2,s=e(function(t,r){var e=r;return"Just"===e.ctor?D(e._0+t):""}),d=function(){var t={ctor:"_Tuple2",_0:o.laborStage2Record,_1:o.pregnancyRecord};if("Just"===t._0.ctor&&"Just"===t._1.ctor){var r=t._1._0;return{ctor:"_Tuple5",_0:r.lastname,_1:r.firstname,_2:l(s,0,r.gravida),_3:T.eq(t._0._0.birthDatetime,q)?l(s,0,r.para):l(s,1,r.para),_4:l(s,1,r.living)}}return{ctor:"_Tuple5",_0:"",_1:"",_2:"",_3:"",_4:""}}(),m=d._0,f=d._1,p=d._2,b=d._3,g=d._4,y=l(dn,{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding-left",_1:"0.5em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"padding-right",_1:"0.5em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Mother: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],m,l(N["++"],", ",f))),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pu," ","("),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("G: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(p),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pu," "," "),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("P: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(b),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pu," "," "),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("L: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(g),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(")"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Baby Last: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(_),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-left",_1:"1em"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en("First: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(i),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-left",_1:"1em"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en("Middle: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(u),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"[]"}}});return l(dn,{ctor:"::",_0:xn("content-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-large"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Birth Certificate Worksheet"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:y,_1:{ctor:"::",_0:bD(n),_1:{ctor:"[]"}}}})}),RD=gB({ctor:"::",_0:function(t){return d(pB,Nu(!1),l(is["=>"],Lh,"Valid date of discharge must be provided."),t.dischargeDate)},_1:{ctor:"[]"}}),xD=gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],Ih,"Valid date of medication must be provided."),t.date)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],Jh,"Time of medication must be provided."),t.time)},_1:{ctor:"[]"}}}),kD=gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],Wh,"Valid date of lab must be provided."),t.date)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],zh,"Time of lab must be provided."),t.time)},_1:{ctor:"[]"}}}),PD=function(t){return gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],Qh,"Valid date of medication must be provided."),t.date)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],Kh,"Time of medication must be provided."),t.time)},_1:{ctor:"::",_0:t?function(t){return d(pB,zu,l(is["=>"],Yh,"Location must be provided."),t.location)}:function(t){return{ctor:"[]"}},_1:{ctor:"[]"}}}})},AD=function(t){return gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],rb,"Valid date of medication must be provided."),t.date)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],tb,"Time of medication must be provided."),t.time)},_1:{ctor:"::",_0:t?function(t){return d(pB,zu,l(is["=>"],Zh,"Location must be provided."),t.location)}:function(t){return{ctor:"[]"}},_1:{ctor:"[]"}}}})},LD=gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],fb,"Valid date of check must be provided."),t.cpcCheckDate)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],mb,"Time of check must be provided."),t.cpcCheckTime)},_1:{ctor:"[]"}}}),ND=gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],Tg,"Valid date of exam must be provided."),t.nbsDate)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],Cg,"Exam time must be provided, ex: hhmm."),t.nbsTime)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],yg,"Examiners must be provided."),t.nbsExaminers)},_1:{ctor:"[]"}}}}),ED=e(function(t,r){var o,c=d(yB,y_,r.id,t.model.tableMetaCollection),n="Just"===(o={ctor:"_Tuple2",_0:r.motherSystolic,_1:r.motherDiastolic})._0.ctor&&"Just"===o._1.ctor?l(N["++"],D(o._0._0),l(N["++"]," / ",D(o._1._0))):"",a=function(t){return l(V,"",t)},_=function(t){return a(l(z,D,t))},i=e(function(t,r){return l(dn,{ctor:"::",_0:xn("u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"display",_1:"inline-block"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"min-width",_1:"5.0em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(l(N["++"],t,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),u=d(Hu,ds,fs,r.checkDatetime);return l(dn,{ctor:"::",_0:xn("c-card"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item u-color-white primary-dark-bg"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"overflow",_1:"hidden"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],u,c)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-color-white u-xsmall"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn(l(Qp,Xa,U(Ml(r.id)))),_1:{ctor:"[]"}}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("contPP-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card contPP-content"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item u-small u-color-white accent-bg"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Mother"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(i,"BP",n),_1:{ctor:"::",_0:l(i,"CR",_(r.motherCR)),_1:{ctor:"::",_0:l(i,"Temp",_(r.motherTemp)),_1:{ctor:"::",_0:l(i,"Fundus",a(r.motherFundus)),_1:{ctor:"::",_0:l(i,"EBL",_(r.motherEBL)),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card contPP-content"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item u-small u-color-white accent-bg"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Baby"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(i,"Bfed",a(r.babyBFed)),_1:{ctor:"::",_0:l(i,"Temp",_(r.babyTemp)),_1:{ctor:"::",_0:l(i,"RR",_(r.babyRR)),_1:{ctor:"::",_0:l(i,"CR",_(r.babyCR)),_1:{ctor:"[]"}}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:en(a(r.comments)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})}),JD=n(function(t,r,o,c){var n,a=l(V,"",c.comments),_=l(V,"",c.initials),i=l(V,"",c.location),u="Just"===(n=l(ts,c.date,c.time)).ctor?d(v,e(function(t,r){return l(N["++"],t,r)}),l(V,"",c.time),d(v,e(function(t,r){return l(N["++"],t,r)})," ",l(ku,n._0,"-"))):"";switch(t.ctor){case"MedMVL":case"VacMVL":return function(t){return l(dn,{ctor:"::",_0:xn("form-padding form-border-light"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--brand"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],r,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-color-white u-xsmall"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn(l(th,Xa,U(t))),_1:{ctor:"[]"}}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(u),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.cmp($t(i),0)>0?l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"]," @ ",i)),_1:{ctor:"[]"}}):en(""),_1:{ctor:"::",_0:T.cmp($t(a),0)>0?l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],", ",a)),_1:{ctor:"[]"}}):en(""),_1:{ctor:"::",_0:T.cmp($t(_),0)>0?l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"]," -- ",_)),_1:{ctor:"[]"}}):en(""),_1:{ctor:"[]"}}}}}})}(t);default:return en("")}}),ID=n(function(t,r,o,c){var n,a,_=l(V,"",o.initials),i="LabMVL"===(n=t).ctor?l(Us,n._0,c):{ctor:"[]"},u=function(t){var r=function(){var r,e,c,n;switch(t){case 1:return{ctor:"_Tuple2",_0:(n=l(gc,function(t){return T.eq(t.num,1)},i),"Just"===n.ctor?n._0.name:q),_1:o.fld1Value};case 2:return{ctor:"_Tuple2",_0:(c=l(gc,function(t){return T.eq(t.num,2)},i),"Just"===c.ctor?c._0.name:q),_1:o.fld2Value};case 3:return{ctor:"_Tuple2",_0:(e=l(gc,function(t){return T.eq(t.num,3)},i),"Just"===e.ctor?e._0.name:q),_1:o.fld3Value};case 4:return{ctor:"_Tuple2",_0:(r=l(gc,function(t){return T.eq(t.num,4)},i),"Just"===r.ctor?r._0.name:q),_1:o.fld4Value};default:return{ctor:"_Tuple2",_0:q,_1:q}}}(),e=r._0,c=r._1;return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:T.eq(e,q)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(V,"",e)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(": "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(V,"",c)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})},s="Just"===(a=l(ts,o.date,o.time)).ctor?d(v,e(function(t,r){return l(N["++"],t,r)}),l(V,"",o.time),d(v,e(function(t,r){return l(N["++"],t,r)})," ",l(ku,a._0,"-"))):"";return l(dn,{ctor:"::",_0:xn("form-padding form-border-light"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--brand"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],r,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-color-white u-xsmall"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn(l(th,Xa,U(t))),_1:{ctor:"[]"}}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(s),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.cmp($t(_),0)>0?l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"]," -- ",_)),_1:{ctor:"[]"}}):en(""),_1:{ctor:"::",_0:u(1),_1:{ctor:"::",_0:u(2),_1:{ctor:"::",_0:u(3),_1:{ctor:"::",_0:u(4),_1:{ctor:"[]"}}}}}}}})}),OD=c(function(t,r,o){var c,n=l(V,"",o.comments),a=l(V,"",o.initials),_="Just"===(c=l(ts,o.date,o.time)).ctor?d(v,e(function(t,r){return l(N["++"],t,r)}),l(V,"",o.time),d(v,e(function(t,r){return l(N["++"],t,r)})," ",l(ku,c._0,"-"))):"";return l(dn,{ctor:"::",_0:xn("form-padding form-border-light"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--brand"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],r,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-color-white u-xsmall"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn(l($p,Xa,U(t))),_1:{ctor:"[]"}}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(_),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.cmp($t(n),0)>0?l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],", ",n)),_1:{ctor:"[]"}}):en(""),_1:{ctor:"::",_0:T.cmp($t(a),0)>0?l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"]," -- ",a)),_1:{ctor:"[]"}}):en(""),_1:{ctor:"[]"}}}}})}),VD=e(function(t,r){var e=l(Vd,r,t.motherMedicationTypeRecords);return"Just"===e.ctor&&"Just"===l(gc,function(t){return T.eq(t.motherMedicationType,e._0.id)},t.motherMedicationRecords).ctor}),qD=e(function(t,r){var e=l(dl,r,t.babyVaccinationTypeRecords);return"Just"===e.ctor&&"Just"===l(gc,function(t){return T.eq(t.babyVaccinationType,e._0.id)},t.babyVaccinationRecords).ctor}),HD=e(function(t,r){var e=l(ol,r,t.babyMedicationTypeRecords);return"Just"===e.ctor&&"Just"===l(gc,function(t){return T.eq(t.babyMedicationType,e._0.id)},t.babyMedicationRecords).ctor}),UD=e(function(t,r){var e=l(gc,function(r){return T.eq(Te(r),t)},r);return"Just"===e.ctor?Ce(e._0):""}),zD=function(t){return!0===t.isEditing?function(t){var r=l(VD,t.model,"Vitamin A"),e=l(HD,t.model,"Eye"),o=l(qD,t.model,"Hep B")||l(qD,t.model,"Hepatitis B"),c=l(HD,t.model,"Vitamin K"),n=!T.eq(t.model.newbornExamRecord,q),a=RD(t.model);return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Discharge Checklist"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-xlarge"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Papers/Forms"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"PP Instructions and Schedule",function(t){return l(Gp,Dh,Ka(t))},t.model.dischargePPInstructionsSchedule),_1:{ctor:"::",_0:en(l(UD,Dh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"BCert Worksheet completed",function(t){return l(Gp,Bh,Ka(t))},t.model.dischargeBirthCertWorksheet),_1:{ctor:"::",_0:en(l(UD,Bh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Birth recorded in birth book",function(t){return l(Gp,Mh,Ka(t))},t.model.dischargeBirthRecorded),_1:{ctor:"::",_0:en(l(UD,Mh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Charting complete",function(t){return l(Gp,vh,Ka(t))},t.model.dischargeChartsComplete),_1:{ctor:"::",_0:en(l(UD,vh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"All logbooks done",function(t){return l(Gp,Th,Ka(t))},t.model.dischargeLogsComplete),_1:{ctor:"::",_0:en(l(UD,Th,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Supplies bill paid",function(t){return l(Gp,Ch,Ka(t))},t.model.dischargeBillPaid),_1:{ctor:"::",_0:en(l(UD,Ch,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:h(MB,"NBS","nbs",t.model.dischargeNbs,function(t){return l(Gp,yh,Qa(t))},!1,{ctor:"::",_0:"Done",_1:{ctor:"::",_0:"Waived",_1:{ctor:"[]"}}},l(UD,yh,a)),_1:{ctor:"[]"}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-xlarge"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Baby"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Imm referral to HC",function(t){return l(Gp,gh,Ka(t))},t.model.dischargeImmunizationReferral),_1:{ctor:"::",_0:en(l(UD,gh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Breastfeeding established",function(t){return l(Gp,bh,Ka(t))},t.model.dischargeBreastFeedingEstablished),_1:{ctor:"::",_0:en(l(UD,bh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Newborn bath",function(t){return l(Gp,hh,Ka(t))},t.model.dischargeNewbornBath),_1:{ctor:"::",_0:en(l(UD,hh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:m(DB,"Newborn exam done",!1,!0,n),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:m(DB,"Vit K given",!1,!0,c),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:m(DB,"Hep B given",!1,!0,o),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:m(DB,"Eye meds given",!1,!0,e),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-xlarge"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Mother"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Fundus firm, bleeding cntrld",function(t){return l(Gp,ph,Ka(t))},t.model.dischargeFundusFirmBleedingCtld),_1:{ctor:"::",_0:en(l(UD,ph,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Mother ate and drank",function(t){return l(Gp,fh,Ka(t))},t.model.dischargeMotherAteDrank),_1:{ctor:"::",_0:en(l(UD,fh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Mother urinated",function(t){return l(Gp,mh,Ka(t))},t.model.dischargeMotherUrinated),_1:{ctor:"::",_0:en(l(UD,mh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:m(DB,"Vitamin A given",!1,!0,r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-xlarge"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Other"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Placenta gone",function(t){return l(Gp,dh,Ka(t))},t.model.dischargePlacentaGone),_1:{ctor:"::",_0:en(l(UD,dh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Prayer",function(t){return l(Gp,lh,Ka(t))},t.model.dischargePrayer),_1:{ctor:"::",_0:en(l(UD,lh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Bible given",function(t){return l(Gp,sh,Ka(t))},t.model.dischargeBible),_1:{ctor:"::",_0:en(l(UD,sh,a)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card mw-form-field-wide form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-xlarge mw-form-field-wide"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Discharge"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Discharge date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Gp,Lh,Qa(t))},"Date","e.g. 08/14/2017",!1,t.model.dischargeDate,l(UD,Lh,a)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,Ah,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.dischargeTime,l(UD,Ah,a)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date/time of discharge"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,Kp,Wm,"Date","e.g. 08/14/2017",!1,t.model.dischargeDate,l(UD,Tg,a)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,Ah,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.dischargeTime,l(UD,Ah,a)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,Ph,Qa(t))},"Mother systolic","",!0,t.model.dischargeMotherSystolic,l(UD,Ph,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,kh,Qa(t))},"Mother diastolic","",!0,t.model.dischargeMotherDiastolic,l(UD,kh,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,xh,Qa(t))},"Mother temp","",!0,t.model.dischargeMotherTemp,l(UD,xh,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,Rh,Qa(t))},"Mother pulse","",!0,t.model.dischargeMotherCR,l(UD,Rh,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,wh,Qa(t))},"Baby RR","",!0,t.model.dischargeBabyRR,l(UD,wh,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,Fh,Qa(t))},"Baby Temp","",!0,t.model.dischargeBabyTemp,l(UD,Fh,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,Sh,Qa(t))},"Baby HR","",!0,t.model.dischargeBabyCR,l(UD,Sh,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Transfer Baby",function(t){return l(Gp,uh,Ka(t))},t.model.dischargeTransferBaby),_1:{ctor:"::",_0:en(l(UD,uh,a)),_1:{ctor:"::",_0:d(FB,"Transfer Mother",function(t){return l(Gp,ih,Ka(t))},t.model.dischargeTransferMother),_1:{ctor:"::",_0:en(l(UD,ih,a)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,_h,Qa(t))},"Transfer Comment","",!0,t.model.dischargeTransferComment,l(UD,_h,a)),_1:{ctor:"[]"}}}}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,ah,Qa(t))},"Initials","",!0,t.model.dischargeInitials,l(UD,ah,a)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}}}}}}),_1:{ctor:"[]"}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(t.saveMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}(t):function(t){var r=l(VD,t.model,"Vitamin A"),o=l(HD,t.model,"Eye"),c=l(qD,t.model,"Hep B")||l(qD,t.model,"Hepatitis B"),n=l(HD,t.model,"Vitamin K"),a=!T.eq(t.model.newbornExamRecord,q),_=e(function(t,r){return l(V,"",l(z,t,r))}),i=e(function(t,r){return l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],t,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),u=e(function(t,r){var e={ctor:"_Tuple2",_0:t,_1:r};return"Just"===e._0.ctor&&"Just"===e._1.ctor?l(N["++"],D(e._0._0),l(N["++"],"/",D(e._1._0))):""}),s=function(t){var r=t;return"Just"===r.ctor&&!0===r._0?"Yes":"No"},m=t.model.dischargeRecord;if("Nothing"===m.ctor)return en("");var f,p,h=m._0;return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Discharge Summary"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-header u-small c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Paper/Forms"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(i,"PP Instructions & schedule",s(h.ppInstructionsSchedule)),_1:{ctor:"::",_0:l(i,"BCert worksheet completed",s(h.birthCertWorksheet)),_1:{ctor:"::",_0:l(i,"Birth recorded in birth book",s(h.birthRecorded)),_1:{ctor:"::",_0:l(i,"Charting complete",s(h.chartsComplete)),_1:{ctor:"::",_0:l(i,"All logbooks done",s(h.logsComplete)),_1:{ctor:"::",_0:l(i,"NBS (done, waived)",l(V,"",Dl(h.nbs))),_1:{ctor:"::",_0:l(i,"Supplies bill paid",s(h.billPaid)),_1:{ctor:"[]"}}}}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-header u-small c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Baby"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(i,"Imm referal to HC",s(h.immunizationReferral)),_1:{ctor:"::",_0:l(i,"Newborn exam done",s(U(a))),_1:{ctor:"::",_0:l(i,"Vit K given",s(U(n))),_1:{ctor:"::",_0:l(i,"Hep B given",s(U(c))),_1:{ctor:"::",_0:l(i,"Eye meds given",s(U(o))),_1:{ctor:"::",_0:l(i,"Breastfeeding established",s(h.breastFeedingEstablished)),_1:{ctor:"::",_0:l(i,"Newborn bath",s(h.newbornBath)),_1:{ctor:"[]"}}}}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-header u-small c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Mother"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(i,"Fundus firm, bleeding cntrld",s(h.fundusFirmBleedingCtld)),_1:{ctor:"::",_0:l(i,"Mother ate & drank",s(h.motherAteDrank)),_1:{ctor:"::",_0:l(i,"Mother urinated",s(h.motherUrinated)),_1:{ctor:"::",_0:l(i,"Vit A given",s(U(r))),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-header u-small c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Other"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(i,"Placenta gone",s(h.placentaGone)),_1:{ctor:"::",_0:l(i,"Prayer",s(h.prayer)),_1:{ctor:"::",_0:l(i,"Bible given",s(h.bible)),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-header u-small c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Discharge"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(i,"Mother BP",l(u,h.motherSystolic,h.motherDiastolic)),_1:{ctor:"::",_0:l(i,"Mother temp",l(_,D,h.motherTemp)),_1:{ctor:"::",_0:l(i,"Mother pulse",l(_,D,h.motherCR)),_1:{ctor:"::",_0:l(i,"Baby RR",l(_,D,h.babyRR)),_1:{ctor:"::",_0:l(i,"Baby temp",l(_,D,h.babyTemp)),_1:{ctor:"::",_0:l(i,"Baby HR",l(_,D,h.babyCR)),_1:{ctor:"::",_0:l(i,"Discharge Date/time",(f=h.dateTime,p=f,"Just"===p.ctor?d(Hu,ds,fs,p._0):"")),_1:{ctor:"::",_0:l(i,"Transfer Baby",s(h.transferBaby)),_1:{ctor:"::",_0:l(i,"Transfer Mother",s(h.transferMother)),_1:{ctor:"::",_0:l(i,"Transfer comment",l(V,"",h.transferComment)),_1:{ctor:"::",_0:l(i,"Initials",l(V,"",h.initials)),_1:{ctor:"[]"}}}}}}}}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(t.editMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"[]"}}})}(t)},WD=function(t){var r=e(function(t,r){return d(_s,ls,t.checkDatetime,r.checkDatetime)}),o=l(it,ED(t),l(G,r,t.model.contPostpartumCheckRecords));return l(dn,{ctor:"[]"},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-large"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t.title),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-bottom",_1:"1em"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},o),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn(l(Qp,t_,q)),_1:{ctor:"[]"}}}}},{ctor:"::",_0:en("Add Continued Postpartum Check"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:function(t){e(function(t,r){return l(it,function(r){return{ctor:"_Tuple2",_0:function(e){return l(Gp,t,l(Ga,r.selectKey,e))},_1:r}},r)});var r=LD(t.model);return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Continued Postpartum Check"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Check date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Gp,fb,Qa(t))},"Date","e.g. 08/14/2017",!1,t.model.cpcCheckDate,l(UD,fb,r)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,mb,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.cpcCheckTime,l(UD,mb,r)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date/time of check"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,Kp,Ym,"Date","e.g. 08/14/2017",!1,t.model.cpcCheckDate,l(UD,fb,r)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,mb,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.cpcCheckTime,l(UD,mb,r)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,db,Qa(t))},"Mother systolic","",!0,t.model.cpcMotherSystolic,l(UD,db,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,lb,Qa(t))},"Mother diastolic","",!0,t.model.cpcMotherDiastolic,l(UD,lb,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,sb,Qa(t))},"Mother CR","",!0,t.model.cpcMotherCR,l(UD,sb,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,ub,Qa(t))},"Mother temperature","",!0,t.model.cpcMotherTemp,l(UD,ub,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,ib,Qa(t))},"Mother Fundus","",!0,t.model.cpcMotherFundus,l(UD,ib,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,_b,Qa(t))},"Mother EBL","",!0,t.model.cpcMotherEBL,l(UD,_b,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,ab,Qa(t))},"Baby BFed","",!0,t.model.cpcBabyBFed,l(UD,ab,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,nb,Qa(t))},"Baby Temperature","",!0,t.model.cpcBabyTemp,l(UD,nb,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,cb,Qa(t))},"Baby RR","",!0,t.model.cpcBabyRR,l(UD,cb,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,ob,Qa(t))},"Baby CR","",!0,t.model.cpcBabyCR,l(UD,ob,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:p(NB,function(t){return l(Gp,eb,Qa(t))},"Comments","",!0,t.model.cpcComments,3),_1:{ctor:"[]"}}}}}}}}}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(l(Qp,$a,t.model.currContPostpartumCheckId)),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}(t),_1:{ctor:"[]"}}}}})},jD=function(t){return!0===t.isEditing?function(t){var r=e(function(t,r){return l(it,function(r){return{ctor:"_Tuple2",_0:function(e){return l(Gp,t,l(Ga,r.selectKey,e))},_1:r}},r)}),o=ND(t.model),c=_(function(t,e,c,n,a,_){return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(r,t,e),c,l(UD,t,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,n,Qa(t))},_,"",!0,a,l(UD,n,o)),_1:{ctor:"[]"}}})});return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Newborn Exam - Edit"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Exam date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Gp,Tg,Qa(t))},"Date","e.g. 08/14/2017",!1,t.model.nbsDate,l(UD,Tg,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,Cg,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.nbsTime,l(UD,Cg,o)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date/time of newborn exam"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,Kp,Km,"Date","e.g. 08/14/2017",!1,t.model.nbsDate,l(UD,Tg,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,Cg,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.nbsTime,l(UD,Cg,o)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,yg,Qa(t))},"Examiners","",!0,t.model.nbsExaminers,l(UD,yg,o)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,gg,Qa(t))},"Respiratory rate","",!0,t.model.nbsRR,l(UD,gg,o)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,bg,Qa(t))},"Heart rate","",!0,t.model.nbsHR,l(UD,bg,o)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,hg,Qa(t))},"Temperature (C)","",!0,t.model.nbsTemperature,l(UD,hg,o)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,pg,Qa(t))},"Length (cm)","",!0,t.model.nbsLength,l(UD,pg,o)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,fg,Qa(t))},"Head cir (cm)","",!0,t.model.nbsHeadCir,l(UD,fg,o)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,mg,Qa(t))},"Chest cir (cm)","",!0,t.model.nbsChestCir,l(UD,mg,o)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:p(c,dg,t.model.nbsAppearance,"Appearance",lg,t.model.nbsAppearanceComment,"Note"),_1:{ctor:"::",_0:p(c,sg,t.model.nbsColor,"Color",ug,t.model.nbsColorComment,"Note"),_1:{ctor:"::",_0:p(c,ig,t.model.nbsSkin,"Skin",_g,t.model.nbsSkinComment,"Note"),_1:{ctor:"::",_0:p(c,ag,t.model.nbsHead,"Head",ng,t.model.nbsHeadComment,"Note"),_1:{ctor:"::",_0:p(c,cg,t.model.nbsEyes,"Eyes",og,t.model.nbsEyesComment,"Note"),_1:{ctor:"::",_0:p(c,eg,t.model.nbsEars,"Ears",rg,t.model.nbsEarsComment,"Note"),_1:{ctor:"::",_0:p(c,tg,t.model.nbsNose,"Nose",Zb,t.model.nbsNoseComment,"Note"),_1:{ctor:"::",_0:p(c,$b,t.model.nbsMouth,"Mouth",Xb,t.model.nbsMouthComment,"Note"),_1:{ctor:"::",_0:p(c,Qb,t.model.nbsNeck,"Neck",Kb,t.model.nbsNeckComment,"Note"),_1:{ctor:"::",_0:p(c,Yb,t.model.nbsChest,"Chest",Gb,t.model.nbsChestComment,"Note"),_1:{ctor:"::",_0:p(c,jb,t.model.nbsLungs,"Lungs",Wb,t.model.nbsLungsComment,"Note"),_1:{ctor:"::",_0:p(c,zb,t.model.nbsHeart,"Heart",Ub,t.model.nbsHeartComment,"Note"),_1:{ctor:"::",_0:p(c,Hb,t.model.nbsAbdomen,"Abdomen",qb,t.model.nbsAbdomenComment,"Note"),_1:{ctor:"::",_0:p(c,Vb,t.model.nbsHips,"Hips",Ob,t.model.nbsHipsComment,"Note"),_1:{ctor:"::",_0:p(c,Ib,t.model.nbsCord,"Cord",Jb,t.model.nbsCordComment,"Note"),_1:{ctor:"::",_0:p(c,Eb,t.model.nbsFemoralPulses,"Femoral Pulses",Nb,t.model.nbsFemoralPulsesComment,"Note"),_1:{ctor:"::",_0:p(c,Lb,t.model.nbsGenitalia,"Genitalia",Ab,t.model.nbsGenitaliaComment,"Note"),_1:{ctor:"::",_0:p(c,Pb,t.model.nbsAnus,"Anus",kb,t.model.nbsAnusComment,"Note"),_1:{ctor:"::",_0:p(c,xb,t.model.nbsBack,"Back",Rb,t.model.nbsBackComment,"Note"),_1:{ctor:"::",_0:p(c,wb,t.model.nbsExtremities,"Extremities",Fb,t.model.nbsExtremitiesComment,"Note"),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,Sb,Qa(t))},"Est GA by Ballard","",!0,t.model.nbsEstGA,l(UD,Sb,o)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:d(kB,"Moro Reflex",function(t){return l(Gp,Db,Ka(t))},t.model.nbsMoroReflex),_1:{ctor:"::",_0:en(l(UD,Db,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,Bb,Qa(t))},"Moro Comments","",!0,t.model.nbsMoroReflexComment,l(UD,Bb,o)),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:d(kB,"Palmar Reflex",function(t){return l(Gp,Mb,Ka(t))},t.model.nbsPalmarReflex),_1:{ctor:"::",_0:en(l(UD,Mb,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,pb,Qa(t))},"Palmar Comments","",!0,t.model.nbsPalmarReflexComment,l(UD,pb,o)),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:d(kB,"Stepping Reflex",function(t){return l(Gp,hb,Ka(t))},t.model.nbsSteppingReflex),_1:{ctor:"::",_0:en(l(UD,hb,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,vb,Qa(t))},"Stepping Comments","",!0,t.model.nbsSteppingReflexComment,l(UD,vb,o)),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:d(kB,"Plantar Reflex",function(t){return l(Gp,Tb,Ka(t))},t.model.nbsPlantarReflex),_1:{ctor:"::",_0:en(l(UD,Tb,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,bb,Qa(t))},"Plantar Comments","",!0,t.model.nbsPlantarReflexComment,l(UD,bb,o)),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:d(kB,"Babinski Reflex",function(t){return l(Gp,yb,Ka(t))},t.model.nbsBabinskiReflex),_1:{ctor:"::",_0:en(l(UD,yb,o)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,Cb,Qa(t))},"Babinski Comments","",!0,t.model.nbsBabinskiReflexComment,l(UD,Cb,o)),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:p(NB,function(t){return l(Gp,gb,Qa(t))},"Newborn Exam Comments","",!0,t.model.nbsComments,3),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(t.saveMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}(t):function(t){var r=e(function(t,r){return l(V,"",l(z,t,r))}),o=c(function(t,r,e){var o=e;if("Just"===o.ctor){var c=o._0;return l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],t,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.cmp($t(Wt(c)),0)>0?l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"]," (",l(N["++"],c,")"))),_1:{ctor:"[]"}}):en(""),_1:{ctor:"[]"}}}})}return l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],t,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),n=function(t){var r=t;return"Just"===r.ctor&&!0===r._0?"Yes":"No"},a=t.model.newbornExamRecord;if("Nothing"===a.ctor)return en("");var _,i=a._0;return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Newborn Exam Summary"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:d(o,"Exam Date/time",(_=i.examDatetime,d(Hu,ds,fs,_)),q),_1:{ctor:"::",_0:d(o,"Examiners",i.examiners,q),_1:{ctor:"::",_0:d(o,"RR",l(r,D,i.rr),q),_1:{ctor:"::",_0:d(o,"HR",l(r,D,i.hr),q),_1:{ctor:"::",_0:d(o,"Temp (C)",l(r,D,i.temperature),q),_1:{ctor:"::",_0:d(o,"Length (cm)",l(r,D,i.length),q),_1:{ctor:"::",_0:d(o,"Head cir (cm)",l(r,D,i.headCir),q),_1:{ctor:"::",_0:d(o,"Chest cir (cm)",l(r,D,i.chestCir),q),_1:{ctor:"::",_0:d(o,"Appearance",l(r,ns,i.appearance),i.appearanceComment),_1:{ctor:"::",_0:d(o,"Color",l(r,ns,i.color),i.colorComment),_1:{ctor:"::",_0:d(o,"Skin",l(r,ns,i.skin),i.skinComment),_1:{ctor:"::",_0:d(o,"Head",l(r,ns,i.head),i.headComment),_1:{ctor:"::",_0:d(o,"Eyes",l(r,ns,i.eyes),i.eyesComment),_1:{ctor:"::",_0:d(o,"Ears",l(r,ns,i.ears),i.earsComment),_1:{ctor:"::",_0:d(o,"Nose",l(r,ns,i.nose),i.noseComment),_1:{ctor:"::",_0:d(o,"Mouth",l(r,ns,i.mouth),i.mouthComment),_1:{ctor:"::",_0:d(o,"Neck",l(r,ns,i.neck),i.neckComment),_1:{ctor:"::",_0:d(o,"Chest",l(r,ns,i.chest),i.chestComment),_1:{ctor:"::",_0:d(o,"Lungs",l(r,ns,i.lungs),i.lungsComment),_1:{ctor:"::",_0:d(o,"Heart",l(r,ns,i.heart),i.heartComment),_1:{ctor:"::",_0:d(o,"Abdomen",l(r,ns,i.abdomen),i.abdomenComment),_1:{ctor:"::",_0:d(o,"Hips",l(r,ns,i.hips),i.hipsComment),_1:{ctor:"::",_0:d(o,"Cord",l(r,ns,i.cord),i.cordComment),_1:{ctor:"::",_0:d(o,"Femoral pulses",l(r,ns,i.femoralPulses),i.femoralPulsesComment),_1:{ctor:"::",_0:d(o,"Genitalia",l(r,ns,i.genitalia),i.genitaliaComment),_1:{ctor:"::",_0:d(o,"Anus",l(r,ns,i.anus),i.anusComment),_1:{ctor:"::",_0:d(o,"Back",l(r,ns,i.back),i.backComment),_1:{ctor:"::",_0:d(o,"Extremities",l(r,ns,i.extremities),i.extremitiesComment),_1:{ctor:"::",_0:d(o,"Est GA by Ballard",l(V,"",i.estGA),q),_1:{ctor:"::",_0:d(o,"Moro reflex",n(i.moroReflex),q),_1:{ctor:"::",_0:d(o,"Moro comment",l(V,"",i.moroReflexComment),q),_1:{ctor:"::",_0:d(o,"Palmar reflex",n(i.palmarReflex),q),_1:{ctor:"::",_0:d(o,"Palmar comment",l(V,"",i.palmarReflexComment),q),_1:{ctor:"::",_0:d(o,"Stepping reflex",n(i.steppingReflex),q),_1:{ctor:"::",_0:d(o,"Stepping comment",l(V,"",i.steppingReflexComment),q),_1:{ctor:"::",_0:d(o,"Plantar reflex",n(i.plantarReflex),q),_1:{ctor:"::",_0:d(o,"Plantar comment",l(V,"",i.plantarReflexComment),q),_1:{ctor:"::",_0:d(o,"Babinski reflex",n(i.babinskiReflex),q),_1:{ctor:"::",_0:d(o,"Babinski comment",l(V,"",i.babinskiReflexComment),q),_1:{ctor:"::",_0:d(o,"Comments",l(V,"",i.comments),q),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(t.editMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}(t)},GD=function(t){return d(et,e(function(r,e){return e&&T.cmp(l(hc,function(t){return T.eq(t.motherMedicationType,r.id)},t.motherMedicationRecords),0)>0}),!0,t.motherMedicationTypeRecords)},YD=function(t){var r=T.cmp(ot(t.babyLabRecords),0)>0,o=d(et,e(function(r,e){return e&&T.cmp(l(hc,function(t){return T.eq(t.babyVaccinationType,r.id)},t.babyVaccinationRecords),0)>0}),!0,t.babyVaccinationTypeRecords);return d(et,e(function(r,e){return e&&T.cmp(l(hc,function(t){return T.eq(t.babyMedicationType,r.id)},t.babyMedicationRecords),0)>0}),!0,t.babyMedicationTypeRecords)&&o&&r},KD=function(t){var r,e,o=t.dischargeRecord;return"Just"===o.ctor&&(r=o._0,e=function(t){return T.eq(t,q)||T.eq(t,U(!1))},!(l(Nu,!0,r.dateTime)||T.eq(r.motherSystolic,q)||T.eq(r.motherDiastolic,q)||T.eq(r.motherTemp,q)||T.eq(r.motherCR,q)||T.eq(r.babyRR,q)||T.eq(r.babyTemp,q)||T.eq(r.babyCR,q)||e(r.ppInstructionsSchedule)||e(r.birthCertWorksheet)||e(r.birthRecorded)||e(r.chartsComplete)||e(r.logsComplete)||e(r.billPaid)||T.eq(r.nbs,q)||e(r.immunizationReferral)||e(r.breastFeedingEstablished)||e(r.newbornBath)||e(r.fundusFirmBleedingCtld)||e(r.motherAteDrank)||e(r.motherUrinated)||e(r.placentaGone)))},QD=function(t){var r,e=t.newbornExamRecord;return"Just"===e.ctor&&(r=e._0,!(l(Nu,!0,U(r.examDatetime))||zu(U(r.examiners))||T.eq(r.rr,q)||T.eq(r.hr,q)||T.eq(r.temperature,q)||T.eq(r.length,q)||T.eq(r.headCir,q)||T.eq(r.chestCir,q)||zu(r.appearance)||zu(r.color)||zu(r.skin)||zu(r.head)||zu(r.eyes)||zu(r.ears)||zu(r.nose)||zu(r.mouth)||zu(r.neck)||zu(r.chest)||zu(r.lungs)||zu(r.heart)||zu(r.abdomen)||zu(r.hips)||zu(r.cord)||zu(r.femoralPulses)||(T.eq(r.genitalia,U("M"))||T.eq(r.genitalia,U("F")))&&zu(r.genitalia)||zu(r.anus)||zu(r.back)||zu(r.extremities)||Wu(r.moroReflex)||Wu(r.palmarReflex)||Wu(r.steppingReflex)||Wu(r.plantarReflex)||Wu(r.babinskiReflex)))},XD=function(t){return l(dn,{ctor:"::",_0:xn("primary-fg"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"font-size",_1:"x-small"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}})},$D=e(function(t,r){var o,c=l(sr,t,r);if("Just"===c.ctor){var n=c._0,a=Iu(d(hs,n.date,n.time,"")),_=(xD(n),xD(n));if("[]"===_.ctor){var i=a;if("Just"===i.ctor){var u=i._0,s=n.id;if("Nothing"===s.ctor){var m=f(Id,t,u,n.initials,n.comments,n.labor_id);return{ctor:"_Tuple2",_0:d(tM,l(UM,mM(l(eh,q,U({ctor:"::",_0:l_,_1:{ctor:"[]"}}))),m),vT,(o=m,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(l_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"motherMedicationType",_1:Xr(o.motherMedicationType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"medicationDate",_1:Ju(o.medicationDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,o.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,o.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(o.labor_id)},_1:{ctor:"[]"}}}}}})},_1:{ctor:"[]"}}}))),_1:!0}}var h=p(Nd,s._0,t,u,n.initials,n.comments,n.labor_id);return{ctor:"_Tuple2",_0:d(tM,l(BM,mM(l(eh,q,U({ctor:"::",_0:l_,_1:{ctor:"[]"}}))),h),yT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(l_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherMedicationType",_1:Xr(t.motherMedicationType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"medicationDate",_1:Ju(t.medicationDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,t.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}})},_1:{ctor:"[]"}}})}(h)),_1:!0}}return{ctor:"_Tuple2",_0:l(aM,pC,l(N["++"],"ContPP.deriveMotherMedicationMsg: ","deriveMotherMedicationMsg: date and time values are not right.")),_1:!1}}var b=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,_));return{ctor:"_Tuple2",_0:d(Yv,b,10,Lv),_1:!1}}return{ctor:"_Tuple2",_0:l(aM,pC,l(N["++"],"ContPP.deriveMotherMedicationMsg: ","deriveMotherMedicationMsg: Error: unable to find record in motherMedFlds.")),_1:!1}}),ZD=e(function(t,r){var o,c=l(sr,t,r);if("Just"===c.ctor){var n=c._0,a=Iu(d(hs,n.date,n.time,"")),_=kD(n);if("[]"===_.ctor){var i=a;if("Just"===i.ctor){var u=i._0,s=n.id;if("Nothing"===s.ctor){var m=b(Js,t,u,n.fld1Value,n.fld2Value,n.fld3Value,n.fld4Value,n.initials,n.baby_id);return{ctor:"_Tuple2",_0:d(tM,l(tB,mM(l(eh,q,U({ctor:"::",_0:S_,_1:{ctor:"[]"}}))),m),vT,(o=m,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(S_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"babyLabType",_1:Xr(o.babyLabType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dateTime",_1:Ju(o.dateTime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld1Value",_1:l(Qo,$r,o.fld1Value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld2Value",_1:l(Qo,$r,o.fld2Value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld3Value",_1:l(Qo,$r,o.fld3Value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld4Value",_1:l(Qo,$r,o.fld4Value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,o.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(o.baby_id)},_1:{ctor:"[]"}}}}}}}}})},_1:{ctor:"[]"}}}))),_1:!0}}var f=g(Ls,s._0,t,u,n.fld1Value,n.fld2Value,n.fld3Value,n.fld4Value,n.initials,n.baby_id);return{ctor:"_Tuple2",_0:d(tM,l(NM,mM(l(eh,q,U({ctor:"::",_0:S_,_1:{ctor:"[]"}}))),f),yT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(S_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyLabType",_1:Xr(t.babyLabType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dateTime",_1:Ju(t.dateTime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld1Value",_1:l(Qo,$r,t.fld1Value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld2Value",_1:l(Qo,$r,t.fld2Value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld3Value",_1:l(Qo,$r,t.fld3Value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fld4Value",_1:l(Qo,$r,t.fld4Value)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,t.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(t.baby_id)},_1:{ctor:"[]"}}}}}}}}}})},_1:{ctor:"[]"}}})}(f)),_1:!0}}return{ctor:"_Tuple2",_0:l(aM,pC,l(N["++"],"ContPP.deriveBabyLabMsg: ","deriveBabyLabMsg: date and time values are not right.")),_1:!1}}var p=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,_));return{ctor:"_Tuple2",_0:d(Yv,p,10,Lv),_1:!1}}return{ctor:"_Tuple2",_0:l(aM,pC,l(N["++"],"ContPP.deriveBabyLabMsg: ","deriveBabyLabMsg: Error: unable to find record in labFlds.")),_1:!1}}),tS=c(function(t,r,o){var c,n=l(sr,t,o);if("Just"===n.ctor){var a=n._0,_=Iu(d(hs,a.date,a.time,"")),i=(l(PD,r,a),l(PD,r,a));if("[]"===i.ctor){var u=_;if("Just"===u.ctor){var s=u._0,m=a.id;if("Nothing"===m.ctor){var f=p(sl,t,s,a.location,a.initials,a.comments,a.baby_id);return{ctor:"_Tuple2",_0:d(tM,l($M,mM(l(eh,q,U({ctor:"::",_0:v_,_1:{ctor:"[]"}}))),f),vT,(c=f,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(v_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"babyVaccinationType",_1:Xr(c.babyVaccinationType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"vaccinationDate",_1:Ju(c.vaccinationDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"location",_1:l(Qo,$r,c.location)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,c.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,c.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(c.baby_id)},_1:{ctor:"[]"}}}}}}})},_1:{ctor:"[]"}}}))),_1:!0}}var b=h(_l,m._0,t,s,a.location,a.initials,a.comments,a.baby_id);return{ctor:"_Tuple2",_0:d(tM,l(AM,mM(l(eh,q,U({ctor:"::",_0:v_,_1:{ctor:"[]"}}))),b),yT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(v_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyVaccinationType",_1:Xr(t.babyVaccinationType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"vaccinationDate",_1:Ju(t.vaccinationDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"location",_1:l(Qo,$r,t.location)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,t.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(t.baby_id)},_1:{ctor:"[]"}}}}}}}})},_1:{ctor:"[]"}}})}(b)),_1:!0}}return{ctor:"_Tuple2",_0:l(aM,pC,l(N["++"],"ContPP.deriveBabyVaccinationMsg: ","deriveBabyVaccinationMsg: date and time values are not right.")),_1:!1}}var g=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,i));return{ctor:"_Tuple2",_0:d(Yv,g,10,Lv),_1:!1}}return{ctor:"_Tuple2",_0:l(aM,pC,l(N["++"],"ContPP.deriveBabyVaccinationMsg: ","deriveBabyVaccinationMsg: Error: unable to find record in babyVacFlds.")),_1:!1}}),rS=c(function(t,r,o){var c,n=l(sr,t,o);if("Just"===n.ctor){var a=n._0,_=Iu(d(hs,a.date,a.time,"")),i=(l(AD,r,a),l(AD,r,a));if("[]"===i.ctor){var u=_;if("Just"===u.ctor){var s=u._0,m=a.id;if("Nothing"===m.ctor){var f=p(rl,t,s,a.location,a.initials,a.comments,a.baby_id);return{ctor:"_Tuple2",_0:d(tM,l(ZM,mM(l(eh,q,U({ctor:"::",_0:B_,_1:{ctor:"[]"}}))),f),vT,(c=f,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(B_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"babyMedicationType",_1:Xr(c.babyMedicationType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"medicationDate",_1:Ju(c.medicationDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"location",_1:l(Qo,$r,c.location)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,c.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,c.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(c.baby_id)},_1:{ctor:"[]"}}}}}}})},_1:{ctor:"[]"}}}))),_1:!0}}var b=h($s,m._0,t,s,a.location,a.initials,a.comments,a.baby_id);return{ctor:"_Tuple2",_0:d(tM,l(LM,mM(l(eh,q,U({ctor:"::",_0:B_,_1:{ctor:"[]"}}))),b),yT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(B_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyMedicationType",_1:Xr(t.babyMedicationType)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"medicationDate",_1:Ju(t.medicationDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"location",_1:l(Qo,$r,t.location)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,t.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(t.baby_id)},_1:{ctor:"[]"}}}}}}}})},_1:{ctor:"[]"}}})}(b)),_1:!0}}return{ctor:"_Tuple2",_0:l(aM,pC,l(N["++"],"ContPP.deriveBabyMedicationMsg: ","deriveBabyMedicationMsg: date and time values are not right.")),_1:!1}}var g=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,i));return{ctor:"_Tuple2",_0:d(Yv,g,10,Lv),_1:!1}}return{ctor:"_Tuple2",_0:l(aM,pC,l(N["++"],"ContPP.deriveBabyMedicationMsg: ","deriveBabyMedicationMsg: Error: unable to find record in babyMedFlds.")),_1:!1}}),eS=c(function(t,r,o){var c=d(et,e(function(r,e){var o=e,c=o._0,n=o._1;switch(r.ctor){case"Baby":var a=l(Cm,r,t);return"Just"===a.ctor&&"BabyDataCache"===a._0.ctor?l(is["=>"],T.update(c,{babyRecord:U(a._0._0)}),n):l(is["=>"],c,n);case"BabyLab":var _=l(Cm,r,t);return"Just"===_.ctor&&"BabyLabDataCache"===_._0.ctor?l(is["=>"],T.update(c,{babyLabRecords:_._0._0}),n):l(is["=>"],c,n);case"BabyLabType":var i=l(Cm,r,t);return"Just"===i.ctor&&"BabyLabTypeDataCache"===i._0.ctor?l(is["=>"],T.update(c,{babyLabTypeRecords:i._0._0}),n):l(is["=>"],c,n);case"BabyMedication":var u=l(Cm,r,t);return"Just"===u.ctor&&"BabyMedicationDataCache"===u._0.ctor?l(is["=>"],T.update(c,{babyMedicationRecords:u._0._0}),n):l(is["=>"],c,n);case"BabyMedicationType":var s=l(Cm,r,t);return"Just"===s.ctor&&"BabyMedicationTypeDataCache"===s._0.ctor?l(is["=>"],T.update(c,{babyMedicationTypeRecords:s._0._0}),n):l(is["=>"],c,n);case"BabyVaccination":var d=l(Cm,r,t);return"Just"===d.ctor&&"BabyVaccinationDataCache"===d._0.ctor?l(is["=>"],T.update(c,{babyVaccinationRecords:d._0._0}),n):l(is["=>"],c,n);case"BabyVaccinationType":var m=l(Cm,r,t);return"Just"===m.ctor&&"BabyVaccinationTypeDataCache"===m._0.ctor?l(is["=>"],T.update(c,{babyVaccinationTypeRecords:m._0._0}),n):l(is["=>"],c,n);case"ContPostpartumCheck":var f=l(Cm,r,t);return"Just"===f.ctor&&"ContPostpartumCheckDataCache"===f._0.ctor?l(is["=>"],T.update(c,{contPostpartumCheckRecords:f._0._0}),n):l(is["=>"],c,n);case"Discharge":var p=l(Cm,r,t);return"Just"===p.ctor&&"DischargeDataCache"===p._0.ctor?l(is["=>"],T.update(c,{dischargeRecord:U(p._0._0)}),n):l(is["=>"],c,n);case"Labor":var h=l(Cm,r,t);return"Just"===h.ctor&&"LaborDataCache"===h._0.ctor?l(is["=>"],T.update(c,{laborRecord:h._0._0}),n):l(is["=>"],c,n);case"LaborStage1":var b=l(Cm,r,t);return"Just"===b.ctor&&"LaborStage1DataCache"===b._0.ctor?l(is["=>"],T.update(c,{laborStage1Record:U(b._0._0)}),n):l(is["=>"],c,n);case"LaborStage2":var g=l(Cm,r,t);return"Just"===g.ctor&&"LaborStage2DataCache"===g._0.ctor?l(is["=>"],T.update(c,{laborStage2Record:U(g._0._0)}),n):l(is["=>"],c,n);case"LaborStage3":var y=l(Cm,r,t);return"Just"===y.ctor&&"LaborStage3DataCache"===y._0.ctor?l(is["=>"],T.update(c,{laborStage3Record:U(y._0._0)}),n):l(is["=>"],c,n);case"MotherMedication":var C=l(Cm,r,t);return"Just"===C.ctor&&"MotherMedicationDataCache"===C._0.ctor?l(is["=>"],T.update(c,{motherMedicationRecords:C._0._0}),n):l(is["=>"],c,n);case"MotherMedicationType":var v=l(Cm,r,t);return"Just"===v.ctor&&"MotherMedicationTypeDataCache"===v._0.ctor?l(is["=>"],T.update(c,{motherMedicationTypeRecords:v._0._0}),n):l(is["=>"],c,n);case"NewbornExam":var M=l(Cm,r,t);return"Just"===M.ctor&&"NewbornExamDataCache"===M._0.ctor?l(is["=>"],T.update(c,{newbornExamRecord:U(M._0._0)}),n):l(is["=>"],c,n);case"SelectData":var B=l(Cm,r,t);return"Just"===B.ctor&&"SelectDataDataCache"===B._0.ctor?l(is["=>"],T.update(c,{selectDataRecords:B._0._0}),n):l(is["=>"],c,n);default:return{ctor:"_Tuple2",_0:c,_1:{ctor:"::",_0:l(N["++"],"ContPP.refreshModelFromCache: Unhandled Table",D(r)),_1:n}}}}),{ctor:"_Tuple2",_0:o,_1:{ctor:"[]"}},r),n=c._0,a=c._1;return l(is["=>"],n,Be(l(it,iM,a)))}),oS=a(function(t,r,e,o,c){var n=l(N["++"],o,{ctor:"::",_0:r,_1:{ctor:"[]"}}),a=l(tt,function(t){return ju(l(Cm,t,c))},{ctor:"::",_0:r,_1:o}),_=function(){if(a){var c=mM(l(eh,q,U(n)));return l(is["=>"],t,l($e,M(c),Ue(!0)))}var _=d(Pv,r,e,o),i=d(mB,l(TM,mM(l(eh,q,U(n))),_),q,t),u=i._0,s=i._1,m=d(KC,u,CT,kv(_));return l(is["=>"],s,cB(m))}(),i=_._0,u=_._1;return l(is["=>"],i,u)}),cS=c(function(t,r,e){return l($e,M(d(dM,t,r,e)),Ue(!0))}),nS=n(function(t,r,e,o){var c=d(Pv,h_,U(r.id),{ctor:"::",_0:p_,_1:{ctor:"::",_0:f_,_1:{ctor:"::",_0:m_,_1:{ctor:"::",_0:F_,_1:{ctor:"::",_0:y_,_1:{ctor:"::",_0:l_,_1:{ctor:"::",_0:g_,_1:{ctor:"[]"}}}}}}}}),n=d(mB,l(TM,l(fM,t,r),c),q,o),a=n._0,_=n._1,i=d(KC,a,CT,kv(c));return l(is["=>"],_,cB(i))}),aS=c(function(t,r,e){return d(Nr,t,function(t){var e=t;return"Just"===e.ctor?U(T.update(e._0,{isEditing:r})):q},e)}),_S=n(function(t,r,e,o){var c,n,a="Just"===(c=e.id).ctor?c._0:-1,_=xD(e);return l(dn,{ctor:"::",_0:xn("form-border u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.5em"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:o?l(dn,{ctor:"::",_0:xn("c-card"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(r){return l(Gp,Ih,l(Ya,t,r))},"Date","e.g. 08/14/2017",!1,e.date,l(UD,Ih,_)),_1:{ctor:"::",_0:p(EB,function(r){return l(Gp,Jh,l(Ya,t,r))},"Time","24 hr format, 14:44",!1,e.time,l(UD,Jh,_)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date/time administered"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,Kp,l(jm,4,t),"Date","e.g. 08/14/2017",!1,e.date,l(UD,Ih,_)),_1:{ctor:"::",_0:p(EB,function(r){return l(Gp,Jh,l(Ya,t,r))},"Time","24 hr format, 14:44",!1,e.time,l(UD,Jh,_)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(r){return l(Gp,Eh,l(Ya,t,r))},"Initials","",!0,e.initials,l(UD,Eh,_)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(r){return l(Gp,Nh,l(Ya,t,r))},"Comments","",!0,e.comments,l(UD,Nh,_)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("right-to-left"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.2em 1em 0.5em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(l($p,$a,U(t))),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.eq(e.id,q)?l(pn,{ctor:"[]"},{ctor:"[]"}):l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-color-black u-xsmall"),_1:{ctor:"::",_0:Gn((n=a,{ctor:"HandleMotherMedicationDelete",_0:n})),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Delete"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}),iS=a(function(t,r,e,o,c){return o?m(_S,t,r,e,c):d(OD,t,r,e)}),uS=a(function(t,r,e,o,c){var n,a=function(){var r=t;switch(r.ctor){case"MedMVL":return{ctor:"_Tuple2",_0:r._0,_1:1};case"VacMVL":return{ctor:"_Tuple2",_0:r._0,_1:2};default:return{ctor:"_Tuple2",_0:r._0,_1:3}}}(),_=a._0,i=a._1,u=l(Us,_,c),s="Just"===(n=e.id).ctor?n._0:-1,d=kD(e),m=function(t){var r=l(gc,function(r){return T.eq(r.num,t)},u);if("Just"===r.ctor){var o=r._0,c=function(){switch(t){case 1:return{ctor:"_Tuple2",_0:Uh,_1:e.fld1Value};case 2:return{ctor:"_Tuple2",_0:Hh,_1:e.fld2Value};case 3:return{ctor:"_Tuple2",_0:qh,_1:e.fld3Value};case 4:return{ctor:"_Tuple2",_0:Vh,_1:e.fld4Value};default:return{ctor:"_Tuple2",_0:vg,_1:q}}}(),n=c._0,a=c._1,i=l(UD,n,d),s={ctor:"_Tuple2",_0:o.name,_1:o.type_};return"Just"===s._0.ctor&&"Just"===s._1.ctor?l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,n,l(Ya,_,t))},s._0._0,"",!0,a,i),_1:{ctor:"[]"}}):en("")}return en("")};return l(dn,{ctor:"::",_0:xn("form-border u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.5em"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.eq(r,"NBS")||T.eq(r,"ENBS")?l(pn,{ctor:"::",_0:xn("c-text c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Cannot be done until 25 hours after birth."),_1:{ctor:"[]"}}):en(""),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:o?l(dn,{ctor:"::",_0:xn("c-card"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Gp,Wh,l(Ya,_,t))},"Date","e.g. 08/14/2017",!1,e.date,l(UD,Wh,d)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,zh,l(Ya,_,t))},"Time","24 hr format, 14:44",!1,e.time,l(UD,zh,d)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date/time administered"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,Kp,l(jm,i,_),"Date","e.g. 08/14/2017",!1,e.date,l(UD,Wh,d)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,zh,l(Ya,_,t))},"Time","24 hr format, 14:44",!1,e.time,l(UD,zh,d)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:m(1),_1:{ctor:"::",_0:m(2),_1:{ctor:"::",_0:m(3),_1:{ctor:"::",_0:m(4),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,Oh,l(Ya,_,t))},"Initials","",!0,e.initials,l(UD,Oh,d)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("right-to-left"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.2em 1em 0.5em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(l(th,$a,U(t))),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.eq(e.id,q)?l(pn,{ctor:"[]"},{ctor:"[]"}):l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-color-black u-xsmall"),_1:{ctor:"::",_0:Gn(Zp(s)),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Delete"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}})}),sS=_(function(t,r,e,o,c,n){return"LabMVL"===t.ctor?"Just"===e.id.ctor?e.isEditing?f(uS,t,r,e,c,n):m(ID,t,r,e,n):f(uS,t,r,e,c,n):en("babyLabMVLFormViewEdit, unhandled case")}),lS=a(function(t,r,e,o,c){var n=function(){switch(t.ctor){case"MedMVL":return{ctor:"_Tuple5",_0:rb,_1:tb,_2:Zh,_3:$h,_4:Xh};case"VacMVL":return{ctor:"_Tuple5",_0:Qh,_1:Kh,_2:Yh,_3:Gh,_4:jh};default:return{ctor:"_Tuple5",_0:vg,_1:vg,_2:vg,_3:vg,_4:vg}}}(),a=n._0,i=n._1,u=n._2,s=n._3,d=n._4,m=function(){var r=t;switch(r.ctor){case"MedMVL":return{ctor:"_Tuple3",_0:1,_1:r._0,_2:l(AD,e,o)};case"VacMVL":return{ctor:"_Tuple3",_0:2,_1:r._0,_2:l(PD,e,o)};default:return{ctor:"_Tuple3",_0:3,_1:r._0,_2:{ctor:"[]"}}}}(),f=m._0,b=m._1,g=m._2,y=_(function(t,r,e,o,c,n){var _,m="Just"===(_=o.id).ctor?_._0:-1,g=function(){var r,e=t;switch(e.ctor){case"MedMVL":return{ctor:"_Tuple2",_0:e._0,_1:(r=m,{ctor:"HandleBabyMedicationDelete",_0:r})};case"VacMVL":return{ctor:"_Tuple2",_0:e._0,_1:{ctor:"HandleBabyVaccinationDelete",_0:m}};default:return{ctor:"_Tuple2",_0:e._0,_1:Zp(m)}}}(),y=g._0,C=g._1;return l(dn,{ctor:"::",_0:xn("form-border u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.5em"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:c?l(dn,{ctor:"::",_0:xn("c-card"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Gp,a,l(Ya,y,t))},"Date","e.g. 08/14/2017",!1,o.date,l(UD,a,n)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,i,l(Ya,y,t))},"Time","24 hr format, 14:44",!1,o.time,l(UD,i,n)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date/time administered"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,Kp,l(jm,f,b),"Date","e.g. 08/14/2017",!1,o.date,l(UD,a,n)),_1:{ctor:"::",_0:p(EB,function(t){return l(Gp,i,l(Ya,y,t))},"Time","24 hr format, 14:44",!1,o.time,l(UD,i,n)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:e?l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,u,l(Ya,y,t))},"Location","",!0,o.location,l(UD,u,n)),_1:{ctor:"[]"}}):en(""),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,s,l(Ya,y,t))},"Initials","",!0,o.initials,l(UD,s,n)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Gp,d,l(Ya,y,t))},"Comments","",!0,o.comments,l(UD,d,n)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("right-to-left"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.2em 1em 0.5em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(l(th,$a,U(t))),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.eq(o.id,q)?l(pn,{ctor:"[]"},{ctor:"[]"}):l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-color-black u-xsmall"),_1:{ctor:"::",_0:Gn(C),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Delete"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}),C=t;switch(C.ctor){case"MedMVL":return p(y,nh(C._0),r,e,o,c,g);case"VacMVL":return p(y,ch(C._0),r,e,o,c,g);default:return en("")}}),dS=_(function(t,r,e,o,c,n){var a=t;switch(a.ctor){case"MedMVL":case"VacMVL":return"Just"===o.id.ctor?o.isEditing?f(lS,t,r,e,o,n):m(JD,t,r,e,o):f(lS,t,r,e,o,n);default:return en(l(N["++"],"babyMVLFormViewEdit Lab",D(a._0)))}}),mS=u(function(t,r,e,o,c,n,a,_){return{id:t,date:r,time:e,location:o,initials:c,comments:n,baby_id:a,isEditing:_}}),fS=function(t){return b(mS,q,q,q,q,q,q,t,!1)},pS=function(t){var r=t.babyRecord;if("Just"===r.ctor){var o=r._0;return d(et,e(function(t,r){return function(){var e=l(gc,function(r){return T.eq(r.babyMedicationType,t.id)},r.babyMedicationRecords);if("Just"===e.ctor)return T.update(r,{babyMedFlds:d(Er,t.id,(c=e._0,b(mS,U(c.id),U(c.medicationDate),U(Pu(c.medicationDate)),c.location,c.initials,c.comments,c.baby_id,!1)),r.babyMedFlds)});var c,n=l(sr,t.id,r.babyMedFlds);return"Nothing"===n.ctor?T.update(r,{babyMedFlds:d(Er,t.id,fS(o.id),r.babyMedFlds)}):T.eq(n._0.id,q)?r:T.update(r,{babyMedFlds:d(Er,t.id,fS(o.id),r.babyMedFlds)})}()}),t,t.babyMedicationTypeRecords)}return t},hS=function(t){return b(mS,q,q,q,q,q,q,t,!1)},bS=function(t){var r=t.babyRecord;if("Just"===r.ctor){var o=r._0;return d(et,e(function(t,r){return function(){var e=l(gc,function(r){return T.eq(r.babyVaccinationType,t.id)},r.babyVaccinationRecords);if("Just"===e.ctor)return T.update(r,{babyVacFlds:d(Er,t.id,(c=e._0,b(mS,U(c.id),U(c.vaccinationDate),U(Pu(c.vaccinationDate)),c.location,c.initials,c.comments,c.baby_id,!1)),r.babyVacFlds)});var c,n=l(sr,t.id,r.babyVacFlds);return"Nothing"===n.ctor?T.update(r,{babyVacFlds:d(Er,t.id,hS(o.id),r.babyVacFlds)}):T.eq(n._0.id,q)?r:T.update(r,{babyVacFlds:d(Er,t.id,hS(o.id),r.babyVacFlds)})}()}),t,t.babyVaccinationTypeRecords)}return t},gS=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return{id:t,date:r,time:e,fld1Value:o,fld2Value:c,fld3Value:n,fld4Value:a,initials:_,baby_id:i,isEditing:u}}}}}}}}}}},yS=function(t){return gS(q)(q)(q)(q)(q)(q)(q)(q)(t)(!1)},CS=function(t){var r=t.babyRecord;if("Just"===r.ctor){var o=r._0;return d(et,e(function(t,r){return function(){var e=l(gc,function(r){return T.eq(r.babyLabType,t.id)},r.babyLabRecords);if("Just"===e.ctor)return T.update(r,{babyLabFlds:d(Er,t.id,(c=e._0,gS(U(c.id))(U(c.dateTime))(U(Pu(c.dateTime)))(c.fld1Value)(c.fld2Value)(c.fld3Value)(c.fld4Value)(c.initials)(c.baby_id)(!1)),r.babyLabFlds)});var c,n=l(sr,t.id,r.babyLabFlds);return"Nothing"===n.ctor?T.update(r,{babyLabFlds:d(Er,t.id,yS(o.id),r.babyLabFlds)}):T.eq(n._0.id,q)?r:T.update(r,{babyLabFlds:d(Er,t.id,yS(o.id),r.babyLabFlds)})}()}),t,t.babyLabTypeRecords)}return t},TS=i(function(t,r,e,o,c,n,a){return{id:t,date:r,time:e,initials:o,comments:c,labor_id:n,isEditing:a}}),vS=function(t){return h(TS,q,q,q,q,q,t,!1)},MS=function(t){var r=t.currLaborId;if("Just"===r.ctor){var o=r._0._0;return d(et,e(function(t,r){return function(){var e=l(gc,function(r){return T.eq(r.motherMedicationType,t.id)},r.motherMedicationRecords);if("Just"===e.ctor)return T.update(r,{motherMedFlds:d(Er,t.id,(c=e._0,h(TS,U(c.id),U(c.medicationDate),U(Pu(c.medicationDate)),c.initials,c.comments,c.labor_id,!1)),r.motherMedFlds)});var c,n=l(sr,t.id,r.motherMedFlds);return"Nothing"===n.ctor?T.update(r,{motherMedFlds:d(Er,t.id,vS(o),r.motherMedFlds)}):T.eq(n._0.id,q)?r:T.update(r,{motherMedFlds:d(Er,t.id,vS(o),r.motherMedFlds)})}()}),t,t.motherMedicationTypeRecords)}return t},BS=i(function(t,r,e,o,c,n,a){return{isShown:t,isEditing:r,title:e,model:o,closeMsg:c,saveMsg:n,editMsg:a}}),DS={ctor:"DischargeEditState"},SS={ctor:"DischargeViewState"},FS={ctor:"MotherMedicationEditState"},wS={ctor:"MotherMedicationViewState"},RS={ctor:"BabyMedVacLabEditState"},xS={ctor:"BabyMedVacLabViewState"},kS={ctor:"ContPostpartumCheckEditState"},PS={ctor:"ContPostpartumCheckViewState"},AS={ctor:"NewbornExamEditState"},LS={ctor:"NewbornExamViewState"},NS={ctor:"NoViewEditState"},ES=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(m){return function(f){return function(p){return function(h){var b=d(Er,r_(v_),v_,d(Er,r_(B_),B_,d(Er,r_(S_),S_,l(Jr,r_(u_),u_)))),g=d(cS,s_,q,{ctor:"[]"}),y=d(cS,D_,q,{ctor:"[]"}),C=d(cS,T_,q,{ctor:"[]"}),T=d(cS,M_,q,{ctor:"[]"}),v=d(cS,c_,q,{ctor:"[]"});return{ctor:"_Tuple3",_0:{browserSupportsDate:u,currTime:s,pregnancy_id:f,currLaborId:U(jl(t.id)),currContPostpartumCheckId:q,currPregHeaderContent:mf,dataCache:Tr,tableMetaCollection:i,pendingSelectQuery:b,patientRecord:p,pregnancyRecord:h,laborRecord:t,laborStage1Record:r,laborStage2Record:e,laborStage3Record:o,babyRecord:_,newbornExamRecord:q,contPostpartumCheckRecords:c,babyLabRecords:{ctor:"[]"},babyMedicationRecords:{ctor:"[]"},babyVaccinationRecords:{ctor:"[]"},motherMedicationRecords:n,dischargeRecord:a,selectDataRecords:{ctor:"[]"},babyLabTypeRecords:{ctor:"[]"},babyMedicationTypeRecords:{ctor:"[]"},babyVaccinationTypeRecords:{ctor:"[]"},motherMedicationTypeRecords:{ctor:"[]"},newbornExamViewEditState:NS,nbsDate:q,nbsTime:q,nbsExaminers:q,nbsRR:q,nbsHR:q,nbsTemperature:q,nbsLength:q,nbsHeadCir:q,nbsChestCir:q,nbsAppearance:{ctor:"[]"},nbsAppearanceComment:q,nbsColor:{ctor:"[]"},nbsColorComment:q,nbsSkin:{ctor:"[]"},nbsSkinComment:q,nbsHead:{ctor:"[]"},nbsHeadComment:q,nbsEyes:{ctor:"[]"},nbsEyesComment:q,nbsEars:{ctor:"[]"},nbsEarsComment:q,nbsNose:{ctor:"[]"},nbsNoseComment:q,nbsMouth:{ctor:"[]"},nbsMouthComment:q,nbsNeck:{ctor:"[]"},nbsNeckComment:q,nbsChest:{ctor:"[]"},nbsChestComment:q,nbsLungs:{ctor:"[]"},nbsLungsComment:q,nbsHeart:{ctor:"[]"},nbsHeartComment:q,nbsAbdomen:{ctor:"[]"},nbsAbdomenComment:q,nbsHips:{ctor:"[]"},nbsHipsComment:q,nbsCord:{ctor:"[]"},nbsCordComment:q,nbsFemoralPulses:{ctor:"[]"},nbsFemoralPulsesComment:q,nbsGenitalia:{ctor:"[]"},nbsGenitaliaComment:q,nbsAnus:{ctor:"[]"},nbsAnusComment:q,nbsBack:{ctor:"[]"},nbsBackComment:q,nbsExtremities:{ctor:"[]"},nbsExtremitiesComment:q,nbsEstGA:q,nbsMoroReflex:q,nbsMoroReflexComment:q,nbsPalmarReflex:q,nbsPalmarReflexComment:q,nbsSteppingReflex:q,nbsSteppingReflexComment:q,nbsPlantarReflexComment:q,nbsPlantarReflex:q,nbsBabinskiReflexComment:q,nbsBabinskiReflex:q,nbsComments:q,contPostpartumCheckViewEditState:NS,cpcCheckDate:q,cpcCheckTime:q,cpcMotherSystolic:q,cpcMotherDiastolic:q,cpcMotherCR:q,cpcMotherTemp:q,cpcMotherFundus:q,cpcMotherEBL:q,cpcBabyBFed:q,cpcBabyTemp:q,cpcBabyRR:q,cpcBabyCR:q,cpcComments:q,babyMedVacLabViewEditState:NS,babyMedFlds:Tr,babyVacFlds:Tr,babyLabFlds:Tr,motherMedicationViewEditState:NS,motherMedFlds:Tr,dischargeViewEditState:NS,dischargeDate:q,dischargeTime:q,dischargeMotherSystolic:q,dischargeMotherDiastolic:q,dischargeMotherTemp:q,dischargeMotherCR:q,dischargeBabyRR:q,dischargeBabyTemp:q,dischargeBabyCR:q,dischargePPInstructionsSchedule:q,dischargeBirthCertWorksheet:q,dischargeBirthRecorded:q,dischargeChartsComplete:q,dischargeLogsComplete:q,dischargeBillPaid:q,dischargeNbs:q,dischargeImmunizationReferral:q,dischargeBreastFeedingEstablished:q,dischargeNewbornBath:q,dischargeFundusFirmBleedingCtld:q,dischargeMotherAteDrank:q,dischargeMotherUrinated:q,dischargePlacentaGone:q,dischargePrayer:q,dischargeBible:q,dischargeTransferBaby:q,dischargeTransferMother:q,dischargeTransferComment:q,dischargeInitials:q},_1:m,_2:Be({ctor:"::",_0:v,_1:{ctor:"::",_0:T,_1:{ctor:"::",_0:C,_1:{ctor:"::",_0:y,_1:{ctor:"::",_0:g,_1:{ctor:"[]"}}}}}})}}}}}}}}}}}}}}}},JS=c(function(t,r,o){var c,n,a,_,i=r;switch(i.ctor){case"PageNoop":return{ctor:"_Tuple3",_0:o,_1:De,_2:iM("ContPP.update: PageNoop was called.")};case"CloseAllDialogs":return{ctor:"_Tuple3",_0:function(t){return T.update(t,{newbornExamViewEditState:NS,contPostpartumCheckViewEditState:NS,babyMedVacLabViewEditState:NS,motherMedicationViewEditState:NS,dischargeViewEditState:NS})}(o),_1:De,_2:De};case"ContPPTick":return{ctor:"_Tuple3",_0:T.update(o,{currTime:i._0}),_1:De,_2:De};case"TableMetaCollection":var u=i._0;return"Just"===u.ctor?{ctor:"_Tuple3",_0:T.update(o,{tableMetaCollection:u._0}),_1:De,_2:De}:{ctor:"_Tuple3",_0:o,_1:De,_2:De};case"DataCache":var s=function(){var t,r={ctor:"_Tuple2",_0:i._0,_1:i._1};if("Just"===r._0.ctor){var c=r._1,n=r._0._0,a=d(eS,n,l(V,{ctor:"[]"},c),T.update(o,{dataCache:n})),_=a._0,u=a._1;return{ctor:"_Tuple2",_0:"Just"===(t=c).ctor?d(et,e(function(t,r){return T.eq(o.babyMedVacLabViewEditState,NS)?T.eq(o.motherMedicationViewEditState,NS)?r:T.eq(t,l_)?MS(r):r:T.eq(t,B_)?pS(r):T.eq(t,v_)?bS(r):T.eq(t,S_)?CS(r):r}),_,t._0):_,_1:u}}return l(is["=>"],o,De)}(),m=s._0,f=s._1,p="Just"===(_=m.babyRecord).ctor&&(l(lr,r_(u_),m.pendingSelectQuery)||l(lr,r_(S_),m.pendingSelectQuery)||l(lr,r_(B_),m.pendingSelectQuery)||l(lr,r_(v_),m.pendingSelectQuery))?{ctor:"_Tuple2",_0:d(cS,F_,U(_._0.id),{ctor:"::",_0:u_,_1:{ctor:"::",_0:S_,_1:{ctor:"::",_0:B_,_1:{ctor:"::",_0:v_,_1:{ctor:"[]"}}}}}),_1:l(Ur,r_(v_),l(Ur,r_(B_),l(Ur,r_(S_),l(Ur,r_(u_),m.pendingSelectQuery))))}:{ctor:"_Tuple2",_0:De,_1:m.pendingSelectQuery},h=p._0,b=p._1;return{ctor:"_Tuple3",_0:T.update(m,{pendingSelectQuery:b}),_1:De,_2:Be({ctor:"::",_0:f,_1:{ctor:"::",_0:h,_1:{ctor:"::",_0:l($e,mM,Ue(zp(q))),_1:{ctor:"[]"}}}})};case"DateFieldSubMsg":var g=function(){var t=i._0;if("DateFieldMessage"!==t.ctor)return l(is["=>"],o,De);var r,e,c,n,a=t._0.date,_=t._0.dateField;switch(_.ctor){case"ContPostpartumCheckDateField":return l(is["=>"],T.update(o,{cpcCheckDate:U(a)}),De);case"NewBornExamDateField":return l(is["=>"],T.update(o,{nbsDate:U(a)}),De);case"DynamicDateField":var u=_._0,s=_._1;if(T.eq(u,1)){var m="Just"===(n=l(sr,s,o.babyMedFlds)).ctor?T.update(o,{babyMedFlds:d(Er,s,T.update(n._0,{date:U(a)}),o.babyMedFlds)}):o;return l(is["=>"],m,De)}return T.eq(u,2)?(m="Just"===(c=l(sr,s,o.babyVacFlds)).ctor?T.update(o,{babyVacFlds:d(Er,s,T.update(c._0,{date:U(a)}),o.babyVacFlds)}):o,l(is["=>"],m,De)):T.eq(u,3)?(m="Just"===(e=l(sr,s,o.babyLabFlds)).ctor?T.update(o,{babyLabFlds:d(Er,s,T.update(e._0,{date:U(a)}),o.babyLabFlds)}):o,l(is["=>"],m,De)):T.eq(u,4)?(m="Just"===(r=l(sr,s,o.motherMedFlds)).ctor?T.update(o,{motherMedFlds:d(Er,s,T.update(r._0,{date:U(a)}),o.motherMedFlds)}):o,l(is["=>"],m,De)):l(is["=>"],o,iM(l(N["++"],"Unknown DynamicDateField category of: ",D(u))));case"DischargeDateField":return l(is["=>"],T.update(o,{dischargeDate:U(a)}),De);case"UnknownDateField":return l(is["=>"],o,iM(_._0));default:return l(is["=>"],o,De)}}();return m=g._0,f=g._1,{ctor:"_Tuple3",_0:m,_1:De,_2:f};case"FldChgSubMsg":var y=i._0,C=function(){var t,r,c,n,a,_,u,s,m,f,p,h,b,g,C,v,M,B,D,S,F,w=i._1;switch(w.ctor){case"FldChgString":var R=w._0;switch(y.ctor){case"NBSDateFld":return l(is["=>"],T.update(o,{nbsDate:Tu(R)}),De);case"NBSTimeFld":return l(is["=>"],T.update(o,{nbsTime:U(Lu(R))}),De);case"NBSExaminersFld":return l(is["=>"],T.update(o,{nbsExaminers:U(R)}),De);case"NBSRRFld":return l(is["=>"],T.update(o,{nbsRR:U(Xu(R))}),De);case"NBSHRFld":return l(is["=>"],T.update(o,{nbsHR:U(Xu(R))}),De);case"NBSTemperatureFld":return l(is["=>"],T.update(o,{nbsTemperature:U(Yu(R))}),De);case"NBSLengthFld":return l(is["=>"],T.update(o,{nbsLength:U(Yu(R))}),De);case"NBSHeadCirFld":return l(is["=>"],T.update(o,{nbsHeadCir:U(Yu(R))}),De);case"NBSChestCirFld":return l(is["=>"],T.update(o,{nbsChestCir:U(Yu(R))}),De);case"NBSAppearanceCommentFld":return l(is["=>"],T.update(o,{nbsAppearanceComment:U(R)}),De);case"NBSColorCommentFld":return l(is["=>"],T.update(o,{nbsColorComment:U(R)}),De);case"NBSSkinCommentFld":return l(is["=>"],T.update(o,{nbsSkinComment:U(R)}),De);case"NBSHeadCommentFld":return l(is["=>"],T.update(o,{nbsHeadComment:U(R)}),De);case"NBSEyesCommentFld":return l(is["=>"],T.update(o,{nbsEyesComment:U(R)}),De);case"NBSEarsCommentFld":return l(is["=>"],T.update(o,{nbsEarsComment:U(R)}),De);case"NBSNoseCommentFld":return l(is["=>"],T.update(o,{nbsNoseComment:U(R)}),De);case"NBSMouthCommentFld":return l(is["=>"],T.update(o,{nbsMouthComment:U(R)}),De);case"NBSNeckCommentFld":return l(is["=>"],T.update(o,{nbsNeckComment:U(R)}),De);case"NBSChestCommentFld":return l(is["=>"],T.update(o,{nbsChestComment:U(R)}),De);case"NBSLungsCommentFld":return l(is["=>"],T.update(o,{nbsLungsComment:U(R)}),De);case"NBSHeartCommentFld":return l(is["=>"],T.update(o,{nbsHeartComment:U(R)}),De);case"NBSAbdomenCommentFld":return l(is["=>"],T.update(o,{nbsAbdomenComment:U(R)}),De);case"NBSHipsCommentFld":return l(is["=>"],T.update(o,{nbsHipsComment:U(R)}),De);case"NBSCordCommentFld":return l(is["=>"],T.update(o,{nbsCordComment:U(R)}),De);case"NBSFemoralPulsesCommentFld":return l(is["=>"],T.update(o,{nbsFemoralPulsesComment:U(R)}),De);case"NBSGenitaliaCommentFld":return l(is["=>"],T.update(o,{nbsGenitaliaComment:U(R)}),De);case"NBSAnusCommentFld":return l(is["=>"],T.update(o,{nbsAnusComment:U(R)}),De);case"NBSBackCommentFld":return l(is["=>"],T.update(o,{nbsBackComment:U(R)}),De);case"NBSExtremitiesCommentFld":return l(is["=>"],T.update(o,{nbsExtremitiesComment:U(R)}),De);case"NBSEstGAFld":return l(is["=>"],T.update(o,{nbsEstGA:U(R)}),De);case"NBSMoroReflexCommentFld":return l(is["=>"],T.update(o,{nbsMoroReflexComment:U(R)}),De);case"NBSPalmarReflexCommentFld":return l(is["=>"],T.update(o,{nbsPalmarReflexComment:U(R)}),De);case"NBSSteppingReflexCommentFld":return l(is["=>"],T.update(o,{nbsSteppingReflexComment:U(R)}),De);case"NBSPlantarReflexCommentFld":return l(is["=>"],T.update(o,{nbsPlantarReflexComment:U(R)}),De);case"NBSBabinskiReflexCommentFld":return l(is["=>"],T.update(o,{nbsBabinskiReflexComment:U(R)}),De);case"NBSCommentsFld":return l(is["=>"],T.update(o,{nbsComments:U(R)}),De);case"CPCCheckDateFld":return l(is["=>"],T.update(o,{cpcCheckDate:Tu(R)}),De);case"CPCCheckTimeFld":return l(is["=>"],T.update(o,{cpcCheckTime:U(Lu(R))}),De);case"CPCMotherSystolicFld":return l(is["=>"],T.update(o,{cpcMotherSystolic:U(Xu(R))}),De);case"CPCMotherDiastolicFld":return l(is["=>"],T.update(o,{cpcMotherDiastolic:U(Xu(R))}),De);case"CPCMotherCRFld":return l(is["=>"],T.update(o,{cpcMotherCR:U(Xu(R))}),De);case"CPCMotherTempFld":return l(is["=>"],T.update(o,{cpcMotherTemp:U(Yu(R))}),De);case"CPCMotherFundusFld":return l(is["=>"],T.update(o,{cpcMotherFundus:U(R)}),De);case"CPCMotherEBLFld":return l(is["=>"],T.update(o,{cpcMotherEBL:U(Xu(R))}),De);case"CPCBabyTempFld":return l(is["=>"],T.update(o,{cpcBabyTemp:U(Yu(R))}),De);case"CPCBabyBFedFld":return l(is["=>"],T.update(o,{cpcBabyBFed:U(R)}),De);case"CPCBabyRRFld":return l(is["=>"],T.update(o,{cpcBabyRR:U(Xu(R))}),De);case"CPCBabyCRFld":return l(is["=>"],T.update(o,{cpcBabyCR:U(Xu(R))}),De);case"CPCCommentsFld":return l(is["=>"],T.update(o,{cpcComments:U(R)}),De);case"DischargeDateFld":return l(is["=>"],T.update(o,{dischargeDate:Tu(R)}),De);case"DischargeTimeFld":return l(is["=>"],T.update(o,{dischargeTime:U(Lu(R))}),De);case"DischargeMotherSystolicFld":return l(is["=>"],T.update(o,{dischargeMotherSystolic:U(Xu(R))}),De);case"DischargeMotherDiastolicFld":return l(is["=>"],T.update(o,{dischargeMotherDiastolic:U(Xu(R))}),De);case"DischargeMotherTempFld":return l(is["=>"],T.update(o,{dischargeMotherTemp:U(Yu(R))}),De);case"DischargeMotherCRFld":return l(is["=>"],T.update(o,{dischargeMotherCR:U(Xu(R))}),De);case"DischargeBabyRRFld":return l(is["=>"],T.update(o,{dischargeBabyRR:U(Xu(R))}),De);case"DischargeBabyTempFld":return l(is["=>"],T.update(o,{dischargeBabyTemp:U(Yu(R))}),De);case"DischargeBabyCRFld":return l(is["=>"],T.update(o,{dischargeBabyCR:U(Xu(R))}),De);case"DischargeNbsFld":return l(is["=>"],T.update(o,{dischargeNbs:U(R)}),De);case"DischargeTransferCommentFld":return l(is["=>"],T.update(o,{dischargeTransferComment:U(R)}),De);case"DischargeInitialsFld":return l(is["=>"],T.update(o,{dischargeInitials:U(R)}),De);default:return l(is["=>"],o,De)}case"FldChgStringList":var x=w._0,k=w._1;switch(y.ctor){case"NBSAppearanceFld":return l(is["=>"],T.update(o,{nbsAppearance:d(fm,x,k,o.nbsAppearance)}),De);case"NBSColorFld":return l(is["=>"],T.update(o,{nbsColor:d(fm,x,k,o.nbsColor)}),De);case"NBSSkinFld":return l(is["=>"],T.update(o,{nbsSkin:d(fm,x,k,o.nbsSkin)}),De);case"NBSHeadFld":return l(is["=>"],T.update(o,{nbsHead:d(fm,x,k,o.nbsHead)}),De);case"NBSEyesFld":return l(is["=>"],T.update(o,{nbsEyes:d(fm,x,k,o.nbsEyes)}),De);case"NBSEarsFld":return l(is["=>"],T.update(o,{nbsEars:d(fm,x,k,o.nbsEars)}),De);case"NBSNoseFld":return l(is["=>"],T.update(o,{nbsNose:d(fm,x,k,o.nbsNose)}),De);case"NBSMouthFld":return l(is["=>"],T.update(o,{nbsMouth:d(fm,x,k,o.nbsMouth)}),De);case"NBSNeckFld":return l(is["=>"],T.update(o,{nbsNeck:d(fm,x,k,o.nbsNeck)}),De);case"NBSChestFld":return l(is["=>"],T.update(o,{nbsChest:d(fm,x,k,o.nbsChest)}),De);case"NBSLungsFld":return l(is["=>"],T.update(o,{nbsLungs:d(fm,x,k,o.nbsLungs)}),De);case"NBSHeartFld":return l(is["=>"],T.update(o,{nbsHeart:d(fm,x,k,o.nbsHeart)}),De);case"NBSAbdomenFld":return l(is["=>"],T.update(o,{nbsAbdomen:d(fm,x,k,o.nbsAbdomen)}),De);case"NBSHipsFld":return l(is["=>"],T.update(o,{nbsHips:d(fm,x,k,o.nbsHips)}),De);case"NBSCordFld":return l(is["=>"],T.update(o,{nbsCord:d(fm,x,k,o.nbsCord)}),De);case"NBSFemoralPulsesFld":return l(is["=>"],T.update(o,{nbsFemoralPulses:d(fm,x,k,o.nbsFemoralPulses)}),De);case"NBSGenitaliaFld":return l(is["=>"],T.update(o,{nbsGenitalia:d(fm,x,k,o.nbsGenitalia)}),De);case"NBSAnusFld":return l(is["=>"],T.update(o,{nbsAnus:d(fm,x,k,o.nbsAnus)}),De);case"NBSBackFld":return l(is["=>"],T.update(o,{nbsBack:d(fm,x,k,o.nbsBack)}),De);case"NBSExtremitiesFld":return l(is["=>"],T.update(o,{nbsExtremities:d(fm,x,k,o.nbsExtremities)}),De);default:return l(is["=>"],o,De)}case"FldChgBool":var P=w._0;switch(y.ctor){case"NBSMoroReflexFld":return l(is["=>"],T.update(o,{nbsMoroReflex:U(P)}),De);case"NBSPalmarReflexFld":return l(is["=>"],T.update(o,{nbsPalmarReflex:U(P)}),De);case"NBSSteppingReflexFld":return l(is["=>"],T.update(o,{nbsSteppingReflex:U(P)}),De);case"NBSPlantarReflexFld":return l(is["=>"],T.update(o,{nbsPlantarReflex:U(P)}),De);case"NBSBabinskiReflexFld":return l(is["=>"],T.update(o,{nbsBabinskiReflex:U(P)}),De);case"DischargePpInstructionsScheduleFld":return l(is["=>"],T.update(o,{dischargePPInstructionsSchedule:U(P)}),De);case"DischargeBirthCertWorksheetFld":return l(is["=>"],T.update(o,{dischargeBirthCertWorksheet:U(P)}),De);case"DischargeBirthRecordedFld":return l(is["=>"],T.update(o,{dischargeBirthRecorded:U(P)}),De);case"DischargeChartsCompleteFld":return l(is["=>"],T.update(o,{dischargeChartsComplete:U(P)}),De);case"DischargeLogsCompleteFld":return l(is["=>"],T.update(o,{dischargeLogsComplete:U(P)}),De);case"DischargeBillPaidFld":return l(is["=>"],T.update(o,{dischargeBillPaid:U(P)}),De);case"DischargeImmunizationReferralFld":return l(is["=>"],T.update(o,{dischargeImmunizationReferral:U(P)}),De);case"DischargeBreastFeedingEstablishedFld":return l(is["=>"],T.update(o,{dischargeBreastFeedingEstablished:U(P)}),De);case"DischargeNewbornBathFld":return l(is["=>"],T.update(o,{dischargeNewbornBath:U(P)}),De);case"DischargeFundusFirmBleedingCtldFld":return l(is["=>"],T.update(o,{dischargeFundusFirmBleedingCtld:U(P)}),De);case"DischargeMotherAteDrankFld":return l(is["=>"],T.update(o,{dischargeMotherAteDrank:U(P)}),De);case"DischargeMotherUrinatedFld":return l(is["=>"],T.update(o,{dischargeMotherUrinated:U(P)}),De);case"DischargePlacentaGoneFld":return l(is["=>"],T.update(o,{dischargePlacentaGone:U(P)}),De);case"DischargePrayerFld":return l(is["=>"],T.update(o,{dischargePrayer:U(P)}),De);case"DischargeBibleFld":return l(is["=>"],T.update(o,{dischargeBible:U(P)}),De);case"DischargeTransferBabyFld":return l(is["=>"],T.update(o,{dischargeTransferBaby:U(P)}),De);case"DischargeTransferMotherFld":return l(is["=>"],T.update(o,{dischargeTransferMother:U(P)}),De);default:return l(is["=>"],o,De)}default:var A=w._1,L=w._0,N=e(function(t,r){var e=d(Vs,L,t,o.babyLabTypeRecords);if("Just"!==e.ctor)return U(r);switch(e._0.ctor){case"StringBabyLabFT":return U(r);case"IntegerBabyLabFT":return U(Xu(r));case"FloatBabyLabFT":return U(Yu(r));case"BoolBabyLabFT":default:return U(r)}});switch(y.ctor){case"BabyMedDateFld":var E="Just"===(F=l(sr,L,o.babyMedFlds)).ctor?T.update(o,{babyMedFlds:d(Er,L,T.update(F._0,{date:Tu(A)}),o.babyMedFlds)}):o;return l(is["=>"],E,De);case"BabyMedTimeFld":return E="Just"===(S=l(sr,L,o.babyMedFlds)).ctor?T.update(o,{babyMedFlds:d(Er,L,T.update(S._0,{time:U(Lu(A))}),o.babyMedFlds)}):o,l(is["=>"],E,De);case"BabyMedLocationFld":return E="Just"===(D=l(sr,L,o.babyMedFlds)).ctor?T.update(o,{babyMedFlds:d(Er,L,T.update(D._0,{location:U(A)}),o.babyMedFlds)}):o,l(is["=>"],E,De);case"BabyMedInitialsFld":return E="Just"===(B=l(sr,L,o.babyMedFlds)).ctor?T.update(o,{babyMedFlds:d(Er,L,T.update(B._0,{initials:U(A)}),o.babyMedFlds)}):o,l(is["=>"],E,De);case"BabyMedCommentsFld":return E="Just"===(M=l(sr,L,o.babyMedFlds)).ctor?T.update(o,{babyMedFlds:d(Er,L,T.update(M._0,{comments:U(A)}),o.babyMedFlds)}):o,l(is["=>"],E,De);case"BabyVacDateFld":return E="Just"===(v=l(sr,L,o.babyVacFlds)).ctor?T.update(o,{babyVacFlds:d(Er,L,T.update(v._0,{date:Tu(A)}),o.babyVacFlds)}):o,l(is["=>"],E,De);case"BabyVacTimeFld":return E="Just"===(C=l(sr,L,o.babyVacFlds)).ctor?T.update(o,{babyVacFlds:d(Er,L,T.update(C._0,{time:U(Lu(A))}),o.babyVacFlds)}):o,l(is["=>"],E,De);case"BabyVacLocationFld":return E="Just"===(g=l(sr,L,o.babyVacFlds)).ctor?T.update(o,{babyVacFlds:d(Er,L,T.update(g._0,{location:U(A)}),o.babyVacFlds)}):o,l(is["=>"],E,De);case"BabyVacInitialsFld":return E="Just"===(b=l(sr,L,o.babyVacFlds)).ctor?T.update(o,{babyVacFlds:d(Er,L,T.update(b._0,{initials:U(A)}),o.babyVacFlds)}):o,l(is["=>"],E,De);case"BabyVacCommentsFld":return E="Just"===(h=l(sr,L,o.babyVacFlds)).ctor?T.update(o,{babyVacFlds:d(Er,L,T.update(h._0,{comments:U(A)}),o.babyVacFlds)}):o,l(is["=>"],E,De);case"BabyLabDateFld":return E="Just"===(p=l(sr,L,o.babyLabFlds)).ctor?T.update(o,{babyLabFlds:d(Er,L,T.update(p._0,{date:Tu(A)}),o.babyLabFlds)}):o,l(is["=>"],E,De);case"BabyLabTimeFld":return E="Just"===(f=l(sr,L,o.babyLabFlds)).ctor?T.update(o,{babyLabFlds:d(Er,L,T.update(f._0,{time:U(Lu(A))}),o.babyLabFlds)}):o,l(is["=>"],E,De);case"BabyLabInitialsFld":return E="Just"===(m=l(sr,L,o.babyLabFlds)).ctor?T.update(o,{babyLabFlds:d(Er,L,T.update(m._0,{initials:U(A)}),o.babyLabFlds)}):o,l(is["=>"],E,De);case"BabyLabFld1ValueFld":return E="Just"===(s=l(sr,L,o.babyLabFlds)).ctor?T.update(o,{babyLabFlds:d(Er,L,T.update(s._0,{fld1Value:l(N,1,A)}),o.babyLabFlds)}):o,l(is["=>"],E,De);case"BabyLabFld2ValueFld":return E="Just"===(u=l(sr,L,o.babyLabFlds)).ctor?T.update(o,{babyLabFlds:d(Er,L,T.update(u._0,{fld2Value:l(N,2,A)}),o.babyLabFlds)}):o,l(is["=>"],E,De);case"BabyLabFld3ValueFld":return E="Just"===(_=l(sr,L,o.babyLabFlds)).ctor?T.update(o,{babyLabFlds:d(Er,L,T.update(_._0,{fld3Value:l(N,3,A)}),o.babyLabFlds)}):o,l(is["=>"],E,De);case"BabyLabFld4ValueFld":return E="Just"===(a=l(sr,L,o.babyLabFlds)).ctor?T.update(o,{babyLabFlds:d(Er,L,T.update(a._0,{fld4Value:l(N,4,A)}),o.babyLabFlds)}):o,l(is["=>"],E,De);case"MotherMedDateFld":return E="Just"===(n=l(sr,L,o.motherMedFlds)).ctor?T.update(o,{motherMedFlds:d(Er,L,T.update(n._0,{date:Tu(A)}),o.motherMedFlds)}):o,l(is["=>"],E,De);case"MotherMedTimeFld":return E="Just"===(c=l(sr,L,o.motherMedFlds)).ctor?T.update(o,{motherMedFlds:d(Er,L,T.update(c._0,{time:U(Lu(A))}),o.motherMedFlds)}):o,l(is["=>"],E,De);case"MotherMedInitialsFld":return E="Just"===(r=l(sr,L,o.motherMedFlds)).ctor?T.update(o,{motherMedFlds:d(Er,L,T.update(r._0,{initials:U(A)}),o.motherMedFlds)}):o,l(is["=>"],E,De);case"MotherMedCommentsFld":return E="Just"===(t=l(sr,L,o.motherMedFlds)).ctor?T.update(o,{motherMedFlds:d(Er,L,T.update(t._0,{comments:U(A)}),o.motherMedFlds)}):o,l(is["=>"],E,De);default:return l(is["=>"],o,iM("ContPP.update: Unhandled FldChgIntString"))}}}();return m=C._0,f=C._1,{ctor:"_Tuple3",_0:m,_1:De,_2:f};case"HandleNewbornExamModal":switch(i._0.ctor){case"OpenDialog":var B="Just"===(a=o.babyRecord).ctor?l(is["=>"],a._0.sex,De):l(is["=>"],xs,iM("ContPP.update HandleNewbornExamModal: Found no baby record; defaulting to Male.")),S=B._0;return f=B._1,m=function(){var t=o.newbornExamRecord;if("Just"===t.ctor){var r=t._0;return T.update(o,{nbsDate:U(r.examDatetime),nbsTime:U(Pu(r.examDatetime)),nbsExaminers:l(Gu,U(r.examiners),o.nbsExaminers),nbsRR:l(Gu,l(z,D,r.rr),o.nbsRR),nbsHR:l(Gu,l(z,D,r.hr),o.nbsHR),nbsTemperature:l(Gu,l(z,D,r.temperature),o.nbsTemperature),nbsLength:l(Gu,l(z,D,r.length),o.nbsLength),nbsHeadCir:l(Gu,l(z,D,r.headCir),o.nbsHeadCir),nbsChestCir:l(Gu,l(z,D,r.chestCir),o.nbsChestCir),nbsAppearance:d(bm,"newbornExamAppearance",r.appearance,o.selectDataRecords),nbsAppearanceComment:l(Gu,r.appearanceComment,o.nbsAppearanceComment),nbsColor:d(bm,"newbornExamColor",r.color,o.selectDataRecords),nbsColorComment:l(Gu,r.colorComment,o.nbsColorComment),nbsSkin:d(bm,"newbornExamSkin",r.skin,o.selectDataRecords),nbsSkinComment:l(Gu,r.skinComment,o.nbsSkinComment),nbsHead:d(bm,"newbornExamHead",r.head,o.selectDataRecords),nbsHeadComment:l(Gu,r.headComment,o.nbsHeadComment),nbsEyes:d(bm,"newbornExamEyes",r.eyes,o.selectDataRecords),nbsEyesComment:l(Gu,r.eyesComment,o.nbsEyesComment),nbsEars:d(bm,"newbornExamEars",r.ears,o.selectDataRecords),nbsEarsComment:l(Gu,r.earsComment,o.nbsEarsComment),nbsNose:d(bm,"newbornExamNose",r.nose,o.selectDataRecords),nbsNoseComment:l(Gu,r.noseComment,o.nbsNoseComment),nbsMouth:d(bm,"newbornExamMouth",r.mouth,o.selectDataRecords),nbsMouthComment:l(Gu,r.mouthComment,o.nbsMouthComment),nbsNeck:d(bm,"newbornExamNeck",r.neck,o.selectDataRecords),nbsNeckComment:l(Gu,r.neckComment,o.nbsNeckComment),nbsChest:d(bm,"newbornExamChest",r.chest,o.selectDataRecords),nbsChestComment:l(Gu,r.chestComment,o.nbsChestComment),nbsLungs:d(bm,"newbornExamLungs",r.lungs,o.selectDataRecords),nbsLungsComment:l(Gu,r.lungsComment,o.nbsLungsComment),nbsHeart:d(bm,"newbornExamHeart",r.heart,o.selectDataRecords),nbsHeartComment:l(Gu,r.heartComment,o.nbsHeartComment),nbsAbdomen:d(bm,"newbornExamAbdomen",r.abdomen,o.selectDataRecords),nbsAbdomenComment:l(Gu,r.abdomenComment,o.nbsAbdomenComment),nbsHips:d(bm,"newbornExamHips",r.hips,o.selectDataRecords),nbsHipsComment:l(Gu,r.hipsComment,o.nbsHipsComment),nbsCord:d(bm,"newbornExamCord",r.cord,o.selectDataRecords),nbsCordComment:l(Gu,r.cordComment,o.nbsCordComment),nbsFemoralPulses:d(bm,"newbornExamFemoralPulses",r.femoralPulses,o.selectDataRecords),nbsFemoralPulsesComment:l(Gu,r.femoralPulsesComment,o.nbsFemoralPulsesComment),nbsGenitalia:d(bm,T.eq(S,xs)?"newbornExamGenitaliaMale":T.eq(S,Rs)?"newbornExamGenitaliaFemale":"This lookup should fail because Ambiguous should not display anything.",r.genitalia,o.selectDataRecords),nbsGenitaliaComment:l(Gu,r.genitaliaComment,o.nbsGenitaliaComment),nbsAnus:d(bm,"newbornExamAnus",r.anus,o.selectDataRecords),nbsAnusComment:l(Gu,r.anusComment,o.nbsAnusComment),nbsBack:d(bm,"newbornExamBack",r.back,o.selectDataRecords),nbsBackComment:l(Gu,r.backComment,o.nbsBackComment),nbsExtremities:d(bm,"newbornExamExtremities",r.extremities,o.selectDataRecords),nbsExtremitiesComment:l(Gu,r.extremitiesComment,o.nbsExtremitiesComment),nbsEstGA:l(Gu,r.estGA,o.nbsEstGA),nbsMoroReflex:l(Gu,r.moroReflex,o.nbsMoroReflex),nbsMoroReflexComment:l(Gu,r.moroReflexComment,o.nbsMoroReflexComment),nbsPalmarReflex:l(Gu,r.palmarReflex,o.nbsPalmarReflex),nbsPalmarReflexComment:l(Gu,r.palmarReflexComment,o.nbsPalmarReflexComment),nbsSteppingReflex:l(Gu,r.steppingReflex,o.nbsSteppingReflex),nbsSteppingReflexComment:l(Gu,r.steppingReflexComment,o.nbsSteppingReflexComment),nbsPlantarReflex:l(Gu,r.plantarReflex,o.nbsPlantarReflex),nbsPlantarReflexComment:l(Gu,r.plantarReflexComment,o.nbsPlantarReflexComment),nbsBabinskiReflex:l(Gu,r.babinskiReflex,o.nbsBabinskiReflex),nbsBabinskiReflexComment:l(Gu,r.babinskiReflexComment,o.nbsBabinskiReflexComment),nbsComments:l(Gu,r.comments,o.nbsComments)})}var e=Ro(o.currTime);return T.update(o,{nbsDate:U(e),nbsTime:U(Pu(e)),nbsAppearance:l(hm,"newbornExamAppearance",o.selectDataRecords),nbsColor:l(hm,"newbornExamColor",o.selectDataRecords),nbsSkin:l(hm,"newbornExamSkin",o.selectDataRecords),nbsHead:l(hm,"newbornExamHead",o.selectDataRecords),nbsEyes:l(hm,"newbornExamEyes",o.selectDataRecords),nbsEars:l(hm,"newbornExamEars",o.selectDataRecords),nbsNose:l(hm,"newbornExamNose",o.selectDataRecords),nbsMouth:l(hm,"newbornExamMouth",o.selectDataRecords),nbsNeck:l(hm,"newbornExamNeck",o.selectDataRecords),nbsChest:l(hm,"newbornExamChest",o.selectDataRecords),nbsLungs:l(hm,"newbornExamLungs",o.selectDataRecords),nbsHeart:l(hm,"newbornExamHeart",o.selectDataRecords),nbsAbdomen:l(hm,"newbornExamAbdomen",o.selectDataRecords),nbsHips:l(hm,"newbornExamHips",o.selectDataRecords),nbsCord:l(hm,"newbornExamCord",o.selectDataRecords),nbsFemoralPulses:l(hm,"newbornExamFemoralPulses",o.selectDataRecords),nbsGenitalia:l(hm,T.eq(S,xs)?"newbornExamGenitaliaMale":"newbornExamGenitaliaFemale",o.selectDataRecords),nbsAnus:l(hm,"newbornExamAnus",o.selectDataRecords),nbsBack:l(hm,"newbornExamBack",o.selectDataRecords),nbsExtremities:l(hm,"newbornExamExtremities",o.selectDataRecords)})}(),{ctor:"_Tuple3",_0:T.update(m,{newbornExamViewEditState:T.eq(o.newbornExamViewEditState,NS)?LS:NS}),_1:De,_2:Be({ctor:"::",_0:f,_1:{ctor:"::",_0:T.eq(o.newbornExamViewEditState,NS)?Ov(Uv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{newbornExamViewEditState:NS}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:T.update(o,{newbornExamViewEditState:AS}),_1:De,_2:T.eq(o.newbornExamViewEditState,NS)?Be({ctor:"::",_0:Ov(Uv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var F=ND(o);if("[]"===F.ctor){var w=d(hs,o.nbsDate,o.nbsTime,"Please correct the date and time for the newborn exam fields."),R=Ou({ctor:"::",_0:w,_1:{ctor:"[]"}}),x=function(){var t={ctor:"_Tuple3",_0:T.cmp(ot(R),0)>0,_1:o.babyRecord,_2:o.newbornExamRecord};if("Nothing"===t._1.ctor)return l(aM,pC,"ContPP.update HandleNewbornExamModal, CloseSaveDialog: Error: no baby record found.");if(!0===t._0)return d(Yv,l(N["++"],R,{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}}),10,Lv);if("Just"===t._2.ctor){var r=t._2._0,e=T.update(r,{examDatetime:l(V,r.examDatetime,Iu(w)),examiners:l(V,r.examiners,o.nbsExaminers),rr:l(Gu,bu(o.nbsRR),r.rr),hr:l(Gu,bu(o.nbsHR),r.hr),temperature:l(Gu,hu(o.nbsTemperature),r.temperature),length:l(Gu,hu(o.nbsLength),r.length),headCir:l(Gu,hu(o.nbsHeadCir),r.headCir),chestCir:l(Gu,hu(o.nbsChestCir),r.chestCir),appearance:l(Gu,mm(o.nbsAppearance),r.appearance),appearanceComment:l(Gu,o.nbsAppearanceComment,r.appearance),color:l(Gu,mm(o.nbsColor),r.color),colorComment:l(Gu,o.nbsColorComment,r.colorComment),skin:l(Gu,mm(o.nbsSkin),r.skin),skinComment:l(Gu,o.nbsSkinComment,r.skinComment),head:l(Gu,mm(o.nbsHead),r.head),headComment:l(Gu,o.nbsHeadComment,r.headComment),eyes:l(Gu,mm(o.nbsEyes),r.eyes),eyesComment:l(Gu,o.nbsEyesComment,r.eyesComment),ears:l(Gu,mm(o.nbsEars),r.ears),earsComment:l(Gu,o.nbsEarsComment,r.earsComment),nose:l(Gu,mm(o.nbsNose),r.nose),noseComment:l(Gu,o.nbsNoseComment,r.noseComment),mouth:l(Gu,mm(o.nbsMouth),r.mouth),mouthComment:l(Gu,o.nbsMouthComment,r.mouthComment),neck:l(Gu,mm(o.nbsNeck),r.neck),neckComment:l(Gu,o.nbsNeckComment,r.neckComment),chest:l(Gu,mm(o.nbsChest),r.chest),chestComment:l(Gu,o.nbsChestComment,r.chestComment),lungs:l(Gu,mm(o.nbsLungs),r.lungs),lungsComment:l(Gu,o.nbsLungsComment,r.lungsComment),heart:l(Gu,mm(o.nbsHeart),r.heart),heartComment:l(Gu,o.nbsHeartComment,r.heartComment),abdomen:l(Gu,mm(o.nbsAbdomen),r.abdomen),abdomenComment:l(Gu,o.nbsAbdomenComment,r.abdomenComment),hips:l(Gu,mm(o.nbsHips),r.hips),hipsComment:l(Gu,o.nbsHipsComment,r.hipsComment),cord:l(Gu,mm(o.nbsCord),r.cord),cordComment:l(Gu,o.nbsCordComment,r.cordComment),femoralPulses:l(Gu,mm(o.nbsFemoralPulses),r.femoralPulses),femoralPulsesComment:l(Gu,o.nbsFemoralPulsesComment,r.femoralPulsesComment),genitalia:l(Gu,mm(o.nbsGenitalia),r.genitalia),genitaliaComment:l(Gu,o.nbsGenitaliaComment,r.genitaliaComment),anus:l(Gu,mm(o.nbsAnus),r.anus),anusComment:l(Gu,o.nbsAnusComment,r.anusComment),back:l(Gu,mm(o.nbsBack),r.back),backComment:l(Gu,o.nbsBackComment,r.backComment),extremities:l(Gu,mm(o.nbsExtremities),r.extremities),extremitiesComment:l(Gu,o.nbsExtremitiesComment,r.extremitiesComment),estGA:l(Gu,r.estGA,o.nbsEstGA),moroReflex:l(Gu,r.moroReflex,o.nbsMoroReflex),moroReflexComment:l(Gu,o.nbsMoroReflexComment,r.moroReflexComment),palmarReflex:l(Gu,r.palmarReflex,o.nbsPalmarReflex),palmarReflexComment:l(Gu,o.nbsPalmarReflexComment,r.palmarReflexComment),steppingReflex:l(Gu,r.steppingReflex,o.nbsSteppingReflex),steppingReflexComment:l(Gu,o.nbsSteppingReflexComment,r.steppingReflexComment),plantarReflex:l(Gu,r.plantarReflex,o.nbsPlantarReflex),plantarReflexComment:l(Gu,o.nbsPlantarReflexComment,r.plantarReflexComment),babinskiReflex:l(Gu,r.babinskiReflex,o.nbsBabinskiReflex),babinskiReflexComment:l(Gu,o.nbsBabinskiReflexComment,r.babinskiReflexComment),comments:l(Gu,o.nbsComments,r.comments)});return d(tM,l(MM,mM(l(eh,q,U({ctor:"::",_0:u_,_1:{ctor:"[]"}}))),e),yT,(c=e,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(u_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(c.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"examDatetime",_1:Ju(c.examDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"examiners",_1:$r(c.examiners)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"rr",_1:l(Qo,Xr,c.rr)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hr",_1:l(Qo,Xr,c.hr)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"temperature",_1:l(Qo,Qr,c.temperature)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"length",_1:l(Qo,Qr,c.length)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"headCir",_1:l(Qo,Qr,c.headCir)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chestCir",_1:l(Qo,Qr,c.chestCir)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"appearance",_1:l(Qo,$r,c.appearance)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"appearanceComment",_1:l(Qo,$r,c.appearanceComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"color",_1:l(Qo,$r,c.color)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"colorComment",_1:l(Qo,$r,c.colorComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"skin",_1:l(Qo,$r,c.skin)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"skinComment",_1:l(Qo,$r,c.skinComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"head",_1:l(Qo,$r,c.head)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"headComment",_1:l(Qo,$r,c.headComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"eyes",_1:l(Qo,$r,c.eyes)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"eyesComment",_1:l(Qo,$r,c.eyesComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ears",_1:l(Qo,$r,c.ears)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"earsComment",_1:l(Qo,$r,c.earsComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"nose",_1:l(Qo,$r,c.nose)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"noseComment",_1:l(Qo,$r,c.noseComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mouth",_1:l(Qo,$r,c.mouth)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mouthComment",_1:l(Qo,$r,c.mouthComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"neck",_1:l(Qo,$r,c.neck)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"neckComment",_1:l(Qo,$r,c.neckComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chest",_1:l(Qo,$r,c.chest)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chestComment",_1:l(Qo,$r,c.chestComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lungs",_1:l(Qo,$r,c.lungs)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lungsComment",_1:l(Qo,$r,c.lungsComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"heart",_1:l(Qo,$r,c.heart)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"heartComment",_1:l(Qo,$r,c.heartComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"abdomen",_1:l(Qo,$r,c.abdomen)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"abdomenComment",_1:l(Qo,$r,c.abdomenComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hips",_1:l(Qo,$r,c.hips)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hipsComment",_1:l(Qo,$r,c.hipsComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cord",_1:l(Qo,$r,c.cord)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cordComment",_1:l(Qo,$r,c.cordComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"femoralPulses",_1:l(Qo,$r,c.femoralPulses)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"femoralPulsesComment",_1:l(Qo,$r,c.femoralPulsesComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"genitalia",_1:l(Qo,$r,c.genitalia)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"genitaliaComment",_1:l(Qo,$r,c.genitaliaComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"anus",_1:l(Qo,$r,c.anus)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"anusComment",_1:l(Qo,$r,c.anusComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"back",_1:l(Qo,$r,c.back)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"backComment",_1:l(Qo,$r,c.backComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"extremities",_1:l(Qo,$r,c.extremities)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"extremitiesComment",_1:l(Qo,$r,c.extremitiesComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"estGA",_1:l(Qo,$r,c.estGA)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"moroReflex",_1:yu(c.moroReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"moroReflexComment",_1:l(Qo,$r,c.moroReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"palmarReflex",_1:yu(c.palmarReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"palmarReflexComment",_1:l(Qo,$r,c.palmarReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"steppingReflex",_1:yu(c.steppingReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"steppingReflexComment",_1:l(Qo,$r,c.steppingReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"plantarReflex",_1:yu(c.plantarReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"plantarReflexComment",_1:l(Qo,$r,c.plantarReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babinskiReflex",_1:yu(c.babinskiReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babinskiReflexComment",_1:l(Qo,$r,c.babinskiReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,c.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(c.baby_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})))}var c,n=function(t){var r,e=t.babyRecord;if("Just"===e.ctor){var o=Iu(d(hs,t.nbsDate,t.nbsTime,""));return"Just"===o.ctor?U((r=o._0,function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return function(R){return function(x){return function(k){return function(P){return function(A){return function(L){return function(N){return function(E){return function(J){return function(I){return function(O){return function(V){return function(q){return function(H){return function(U){return function(z){return function(W){return function(j){return function(G){return function(Y){return function(K){return function(Q){return function(X){return function($){return function(Z){return function(tt){return function(rt){return function(et){return function(ot){return function(ct){return function(nt){return function(at){return{examDatetime:r,examiners:t,rr:e,hr:o,temperature:c,length:n,headCir:a,chestCir:_,appearance:i,appearanceComment:u,color:s,colorComment:l,skin:d,skinComment:m,head:f,headComment:p,eyes:h,eyesComment:b,ears:g,earsComment:y,nose:C,noseComment:T,mouth:v,mouthComment:M,neck:B,neckComment:D,chest:S,chestComment:F,lungs:w,lungsComment:R,heart:x,heartComment:k,abdomen:P,abdomenComment:A,hips:L,hipsComment:N,cord:E,cordComment:J,femoralPulses:I,femoralPulsesComment:O,genitalia:V,genitaliaComment:q,anus:H,anusComment:U,back:z,backComment:W,extremities:j,extremitiesComment:G,estGA:Y,moroReflex:K,moroReflexComment:Q,palmarReflex:X,palmarReflexComment:$,steppingReflex:Z,steppingReflexComment:tt,plantarReflex:rt,plantarReflexComment:et,babinskiReflex:ot,babinskiReflexComment:ct,comments:nt,baby_id:at}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})(l(V,"",t.nbsExaminers))(bu(t.nbsRR))(bu(t.nbsHR))(hu(t.nbsTemperature))(hu(t.nbsLength))(hu(t.nbsHeadCir))(hu(t.nbsChestCir))(mm(t.nbsAppearance))(t.nbsAppearanceComment)(mm(t.nbsColor))(t.nbsColorComment)(mm(t.nbsSkin))(t.nbsSkinComment)(mm(t.nbsHead))(t.nbsHeadComment)(mm(t.nbsEyes))(t.nbsEyesComment)(mm(t.nbsEars))(t.nbsEarsComment)(mm(t.nbsNose))(t.nbsNoseComment)(mm(t.nbsMouth))(t.nbsMouthComment)(mm(t.nbsNeck))(t.nbsNeckComment)(mm(t.nbsChest))(t.nbsChestComment)(mm(t.nbsLungs))(t.nbsLungsComment)(mm(t.nbsHeart))(t.nbsHeartComment)(mm(t.nbsAbdomen))(t.nbsAbdomenComment)(mm(t.nbsHips))(t.nbsHipsComment)(mm(t.nbsCord))(t.nbsCordComment)(mm(t.nbsFemoralPulses))(t.nbsFemoralPulsesComment)(mm(t.nbsGenitalia))(t.nbsGenitaliaComment)(mm(t.nbsAnus))(t.nbsAnusComment)(mm(t.nbsBack))(t.nbsBackComment)(mm(t.nbsExtremities))(t.nbsExtremitiesComment)(t.nbsEstGA)(t.nbsMoroReflex)(t.nbsMoroReflexComment)(t.nbsPalmarReflex)(t.nbsPalmarReflexComment)(t.nbsSteppingReflex)(t.nbsSteppingReflexComment)(t.nbsPlantarReflex)(t.nbsPlantarReflexComment)(t.nbsBabinskiReflex)(t.nbsBabinskiReflexComment)(t.nbsComments)(e._0.id)):q}return q}(o);if("Just"===n.ctor){var a=n._0;return d(tM,l(HM,mM(l(eh,q,U({ctor:"::",_0:u_,_1:{ctor:"[]"}}))),a),vT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(u_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"examDatetime",_1:Ju(t.examDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"examiners",_1:$r(t.examiners)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"rr",_1:l(Qo,Xr,t.rr)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hr",_1:l(Qo,Xr,t.hr)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"temperature",_1:l(Qo,Qr,t.temperature)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"length",_1:l(Qo,Qr,t.length)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"headCir",_1:l(Qo,Qr,t.headCir)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chestCir",_1:l(Qo,Qr,t.chestCir)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"appearance",_1:l(Qo,$r,t.appearance)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"appearanceComment",_1:l(Qo,$r,t.appearanceComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"color",_1:l(Qo,$r,t.color)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"colorComment",_1:l(Qo,$r,t.colorComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"skin",_1:l(Qo,$r,t.skin)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"skinComment",_1:l(Qo,$r,t.skinComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"head",_1:l(Qo,$r,t.head)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"headComment",_1:l(Qo,$r,t.headComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"eyes",_1:l(Qo,$r,t.eyes)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"eyesComment",_1:l(Qo,$r,t.eyesComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ears",_1:l(Qo,$r,t.ears)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"earsComment",_1:l(Qo,$r,t.earsComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"nose",_1:l(Qo,$r,t.nose)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"noseComment",_1:l(Qo,$r,t.noseComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mouth",_1:l(Qo,$r,t.mouth)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"mouthComment",_1:l(Qo,$r,t.mouthComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"neck",_1:l(Qo,$r,t.neck)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"neckComment",_1:l(Qo,$r,t.neckComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chest",_1:l(Qo,$r,t.chest)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chestComment",_1:l(Qo,$r,t.chestComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lungs",_1:l(Qo,$r,t.lungs)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lungsComment",_1:l(Qo,$r,t.lungsComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"heart",_1:l(Qo,$r,t.heart)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"heartComment",_1:l(Qo,$r,t.heartComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"abdomen",_1:l(Qo,$r,t.abdomen)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"abdomenComment",_1:l(Qo,$r,t.abdomenComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hips",_1:l(Qo,$r,t.hips)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hipsComment",_1:l(Qo,$r,t.hipsComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cord",_1:l(Qo,$r,t.cord)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"cordComment",_1:l(Qo,$r,t.cordComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"femoralPulses",_1:l(Qo,$r,t.femoralPulses)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"femoralPulsesComment",_1:l(Qo,$r,t.femoralPulsesComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"genitalia",_1:l(Qo,$r,t.genitalia)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"genitaliaComment",_1:l(Qo,$r,t.genitaliaComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"anus",_1:l(Qo,$r,t.anus)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"anusComment",_1:l(Qo,$r,t.anusComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"back",_1:l(Qo,$r,t.back)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"backComment",_1:l(Qo,$r,t.backComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"extremities",_1:l(Qo,$r,t.extremities)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"extremitiesComment",_1:l(Qo,$r,t.extremitiesComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"estGA",_1:l(Qo,$r,t.estGA)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"moroReflex",_1:yu(t.moroReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"moroReflexComment",_1:l(Qo,$r,t.moroReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"palmarReflex",_1:yu(t.palmarReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"palmarReflexComment",_1:l(Qo,$r,t.palmarReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"steppingReflex",_1:yu(t.steppingReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"steppingReflexComment",_1:l(Qo,$r,t.steppingReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"plantarReflex",_1:yu(t.plantarReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"plantarReflexComment",_1:l(Qo,$r,t.plantarReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babinskiReflex",_1:yu(t.babinskiReflex)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babinskiReflexComment",_1:l(Qo,$r,t.babinskiReflexComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"baby_id",_1:Xr(t.baby_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})}(a))}return l(aM,pC,"deriveNewbornExamRecordNew returned a Nothing")}();return{ctor:"_Tuple3",_0:T.update(o,{newbornExamViewEditState:NS}),_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}var k=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,F));return{ctor:"_Tuple3",_0:T.update(o,{newbornExamViewEditState:NS}),_1:De,_2:l(Qv,k,10)}}case"HandleContPostpartumCheckModal":var P=i._1;switch(i._0.ctor){case"OpenDialog":var A=Ro(o.currTime);return n=function(t){return T.update(t,{cpcCheckDate:q,cpcCheckTime:q,cpcMotherSystolic:q,cpcMotherDiastolic:q,cpcMotherCR:q,cpcMotherTemp:q,cpcMotherFundus:q,cpcMotherEBL:q,cpcBabyBFed:q,cpcBabyTemp:q,cpcBabyRR:q,cpcBabyCR:q,cpcComments:q})}(o),m=T.update(n,{cpcCheckDate:U(A),cpcCheckTime:U(Pu(A))}),{ctor:"_Tuple3",_0:T.update(m,{contPostpartumCheckViewEditState:kS}),_1:De,_2:Be({ctor:"::",_0:T.eq(o.contPostpartumCheckViewEditState,NS)?Ov(Uv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{contPostpartumCheckViewEditState:NS}),_1:De,_2:Jv};case"EditDialog":return m=function(){var t={ctor:"_Tuple2",_0:P,_1:l(Cm,y_,o.dataCache)};if("Just"===t._0.ctor&&"Just"===t._1.ctor&&"ContPostpartumCheckDataCache"===t._1._0.ctor){var r=l(gc,function(r){return T.eq(r.id,t._0._0._0)},t._1._0._0);if("Just"===r.ctor){var e=r._0;return T.update(o,{cpcCheckDate:U(e.checkDatetime),cpcCheckTime:U(Pu(e.checkDatetime)),cpcMotherSystolic:l(z,D,e.motherSystolic),cpcMotherDiastolic:l(z,D,e.motherDiastolic),cpcMotherCR:l(z,D,e.motherCR),cpcMotherTemp:l(z,D,e.motherTemp),cpcMotherFundus:e.motherFundus,cpcMotherEBL:l(z,D,e.motherEBL),cpcBabyBFed:e.babyBFed,cpcBabyTemp:l(z,D,e.babyTemp),cpcBabyRR:l(z,D,e.babyRR),cpcBabyCR:l(z,D,e.babyCR),cpcComments:e.comments})}return o}return o}(),{ctor:"_Tuple3",_0:T.update(m,{contPostpartumCheckViewEditState:kS,currContPostpartumCheckId:P}),_1:De,_2:T.eq(m.contPostpartumCheckViewEditState,NS)?Be({ctor:"::",_0:Ov(Uv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var L=LD(o);if("[]"===L.ctor){var E=d(hs,o.cpcCheckDate,o.cpcCheckTime,"Please correct the date and time for the postpartum check fields.");return R=Ou({ctor:"::",_0:E,_1:{ctor:"[]"}}),x=function(){var t={ctor:"_Tuple3",_0:T.cmp(ot(R),0)>0,_1:o.currLaborId,_2:P};if(!0===t._0)return d(Yv,l(N["++"],R,{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}}),10,Lv);if("Nothing"===t._1.ctor)return l(aM,pC,l(N["++"],"ContPP.update HandleContPostpartumCheckModal, CloseSaveDialog: ","Error: Current labor id is not known."));if("Nothing"===t._2.ctor){var r=function(t){var r,e=t.currLaborId;if("Just"===e.ctor){var o=Iu(d(hs,t.cpcCheckDate,t.cpcCheckTime,""));return"Just"===o.ctor?U((r=o._0,function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return{checkDatetime:r,motherSystolic:t,motherDiastolic:e,motherCR:o,motherTemp:c,motherFundus:n,motherEBL:a,babyBFed:_,babyTemp:i,babyRR:u,babyCR:s,comments:l,labor_id:d}}}}}}}}}}}}})(bu(t.cpcMotherSystolic))(bu(t.cpcMotherDiastolic))(bu(t.cpcMotherCR))(hu(t.cpcMotherTemp))(t.cpcMotherFundus)(bu(t.cpcMotherEBL))(t.cpcBabyBFed)(hu(t.cpcBabyTemp))(bu(t.cpcBabyRR))(bu(t.cpcBabyCR))(t.cpcComments)(e._0._0)):q}return q}(o);if("Just"===r.ctor){var e=r._0;return d(tM,l(QM,mM(l(eh,q,U({ctor:"::",_0:y_,_1:{ctor:"[]"}}))),e),vT,(c=e,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(y_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"checkDatetime",_1:Ju(c.checkDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherSystolic",_1:l(Qo,Xr,c.motherSystolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherDiastolic",_1:l(Qo,Xr,c.motherDiastolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCR",_1:l(Qo,Xr,c.motherCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherTemp",_1:l(Qo,Qr,c.motherTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFundus",_1:l(Qo,$r,c.motherFundus)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherEBL",_1:l(Qo,Xr,c.motherEBL)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyBFed",_1:l(Qo,$r,c.babyBFed)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyTemp",_1:l(Qo,Qr,c.babyTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyRR",_1:l(Qo,Xr,c.babyRR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyCR",_1:l(Qo,Xr,c.babyCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,c.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(c.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})))}return l(aM,pC,l(N["++"],"ContPP.update HandleContPostpartumCheckModal, CloseSaveDialog: ","deriveContPostpartumCheckRecordNew returned a Nothing"))}var c,n=l(Cm,y_,o.dataCache);if("Just"===n.ctor&&"ContPostpartumCheckDataCache"===n._0.ctor){var a=l(gc,function(r){return T.eq(r.id,t._2._0._0)},n._0._0);if("Just"===a.ctor){var _=a._0,i=T.update(_,{checkDatetime:l(V,_.checkDatetime,Iu(E)),motherSystolic:bu(o.cpcMotherSystolic),motherDiastolic:bu(o.cpcMotherDiastolic),motherCR:bu(o.cpcMotherCR),motherTemp:hu(o.cpcMotherTemp),motherFundus:o.cpcMotherFundus,motherEBL:bu(o.cpcMotherEBL),babyBFed:o.cpcBabyBFed,babyTemp:hu(o.cpcBabyTemp),babyRR:bu(o.cpcBabyRR),babyCR:bu(o.cpcBabyCR),comments:o.cpcComments});return d(tM,l(kM,mM(l(eh,q,U({ctor:"::",_0:y_,_1:{ctor:"[]"}}))),i),yT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(y_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"checkDatetime",_1:Ju(t.checkDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherSystolic",_1:l(Qo,Xr,t.motherSystolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherDiastolic",_1:l(Qo,Xr,t.motherDiastolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCR",_1:l(Qo,Xr,t.motherCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherTemp",_1:l(Qo,Qr,t.motherTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFundus",_1:l(Qo,$r,t.motherFundus)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherEBL",_1:l(Qo,Xr,t.motherEBL)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyBFed",_1:l(Qo,$r,t.babyBFed)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyTemp",_1:l(Qo,Qr,t.babyTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyRR",_1:l(Qo,Xr,t.babyRR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyCR",_1:l(Qo,Xr,t.babyCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})}(i))}return l(aM,pC,l(N["++"],"ContPP.update HandleContPostpartumCheckModal, CloseSaveDialog: ","HandleContPostpartumCheckModal: did not find PPCheck in data cache."))}return CM}(),{ctor:"_Tuple3",_0:T.update(o,{contPostpartumCheckViewEditState:NS,currContPostpartumCheckId:q}),_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}return k=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,L)),{ctor:"_Tuple3",_0:T.update(o,{contPostpartumCheckViewEditState:NS}),_1:De,_2:l(Qv,k,10)}}case"HandleBabyMedVacLabModal":var J=i._1;switch(i._0.ctor){case"OpenDialog":return m=CS(bS(pS(o))),{ctor:"_Tuple3",_0:T.update(m,{babyMedVacLabViewEditState:T.eq(m.babyMedVacLabViewEditState,NS)?xS:NS}),_1:De,_2:Be({ctor:"::",_0:T.eq(m.babyMedVacLabViewEditState,NS)?Ov(Uv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{babyMedVacLabViewEditState:NS}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:m=function(){var t=J;if("Just"!==t.ctor)return o;var r=t._0;switch(r.ctor){case"MedMVL":var e=d(aS,r._0,!0,o.babyMedFlds);return T.update(o,{babyMedFlds:e});case"VacMVL":var c=d(aS,r._0,!0,o.babyVacFlds);return T.update(o,{babyVacFlds:c});default:var n=d(aS,r._0,!0,o.babyLabFlds);return T.update(o,{babyLabFlds:n})}}(),_1:De,_2:T.eq(o.babyMedVacLabViewEditState,NS)?Be({ctor:"::",_0:Ov(Uv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var I=function(){var t=J;if("Just"!==t.ctor)return{ctor:"_Tuple2",_0:o,_1:l(aM,pC,l(N["++"],"ContPP.update HandleBabyMedVacLabModal, CloseSaveDialog: ","Error: medVacLab is Nothing in CloseSaveDialog."))};var r,e,c=t._0;switch(c.ctor){case"MedMVL":var n=c._0,a="Just"===(e=l(cl,n,o.babyMedicationTypeRecords)).ctor&&e._0._1,_=d(rS,n,a,o.babyMedFlds),i=_._0,u=_._1?d(aS,n,!1,o.babyMedFlds):o.babyMedFlds;return{ctor:"_Tuple2",_0:T.update(o,{babyMedFlds:u}),_1:i};case"VacMVL":var s=c._0,m=(a="Just"===(r=l(ml,s,o.babyVaccinationTypeRecords)).ctor&&r._0._1,d(tS,s,a,o.babyVacFlds)),f=(i=m._0,m._1?d(aS,s,!1,o.babyVacFlds):o.babyVacFlds);return{ctor:"_Tuple2",_0:T.update(o,{babyVacFlds:f}),_1:i};default:var p=c._0,h=l(ZD,p,o.babyLabFlds),b=(i=h._0,h._1?d(aS,p,!1,o.babyLabFlds):o.babyLabFlds);return{ctor:"_Tuple2",_0:T.update(o,{babyLabFlds:b}),_1:i}}}();return m=I._0,x=I._1,{ctor:"_Tuple3",_0:m,_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"[]"}})}}case"HandleBabyMedicationDelete":var O=i._0;return x=d(tM,l(VM,mM(l(eh,q,U({ctor:"::",_0:B_,_1:{ctor:"[]"}}))),O),TT,l(fu,O,B_)),{ctor:"_Tuple3",_0:o,_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"[]"}})};case"HandleBabyVaccinationDelete":var H=i._0;return x=d(tM,l(OM,mM(l(eh,q,U({ctor:"::",_0:v_,_1:{ctor:"[]"}}))),H),TT,l(fu,H,v_)),{ctor:"_Tuple3",_0:o,_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"[]"}})};case"HandleBabyLabDelete":var W=i._0;return x=d(tM,l(IM,mM(l(eh,q,U({ctor:"::",_0:S_,_1:{ctor:"[]"}}))),W),TT,l(fu,W,S_)),{ctor:"_Tuple3",_0:o,_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"[]"}})};case"HandleMotherMedicationDelete":var j=i._0;return x=d(tM,l(JM,mM(l(eh,q,U({ctor:"::",_0:l_,_1:{ctor:"[]"}}))),j),TT,l(fu,j,l_)),{ctor:"_Tuple3",_0:o,_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"[]"}})};case"HandleMotherMedicationModal":var G=i._1;switch(i._0.ctor){case"OpenDialog":return m=MS(o),{ctor:"_Tuple3",_0:T.update(m,{motherMedicationViewEditState:T.eq(m.motherMedicationViewEditState,NS)?wS:NS}),_1:De,_2:Be({ctor:"::",_0:T.eq(m.motherMedicationViewEditState,NS)?Ov(Uv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{motherMedicationViewEditState:NS}),_1:De,_2:Jv};case"EditDialog":var Y="Just"===(c=G).ctor?d(aS,c._0,!0,o.motherMedFlds):o.motherMedFlds;return{ctor:"_Tuple3",_0:T.update(o,{motherMedFlds:Y}),_1:De,_2:T.eq(o.motherMedicationViewEditState,NS)?Be({ctor:"::",_0:Ov(Uv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var K=function(){var t=G;if("Just"===t.ctor){var r=t._0,e=l($D,r,o.motherMedFlds),c=e._0,n=e._1?d(aS,r,!1,o.motherMedFlds):o.motherMedFlds;return{ctor:"_Tuple2",_0:T.update(o,{motherMedFlds:n}),_1:c}}return{ctor:"_Tuple2",_0:o,_1:l(aM,pC,l(N["++"],"ContPP.update HandleMotherMedicationModal, CloseSaveDialog: ","Error: refId is Nothing in CloseSaveDialog."))}}();return m=K._0,x=K._1,{ctor:"_Tuple3",_0:m,_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"[]"}})}}case"HandleDischargeModal":switch(i._0.ctor){case"OpenDialog":return m=function(){var t=o.dischargeRecord;if("Just"===t.ctor){var r=t._0;return T.update(o,{dischargeDate:r.dateTime,dischargeTime:Au(r.dateTime),dischargeMotherSystolic:l(z,D,r.motherSystolic),dischargeMotherDiastolic:l(z,D,r.motherDiastolic),dischargeMotherTemp:l(z,D,r.motherTemp),dischargeMotherCR:l(z,D,r.motherCR),dischargeBabyRR:l(z,D,r.babyRR),dischargeBabyTemp:l(z,D,r.babyTemp),dischargeBabyCR:l(z,D,r.babyCR),dischargePPInstructionsSchedule:r.ppInstructionsSchedule,dischargeBirthCertWorksheet:r.birthCertWorksheet,dischargeBirthRecorded:r.birthRecorded,dischargeChartsComplete:r.chartsComplete,dischargeLogsComplete:r.logsComplete,dischargeBillPaid:r.billPaid,dischargeNbs:Dl(r.nbs),dischargeImmunizationReferral:r.immunizationReferral,dischargeBreastFeedingEstablished:r.breastFeedingEstablished,dischargeNewbornBath:r.newbornBath,dischargeFundusFirmBleedingCtld:r.fundusFirmBleedingCtld,dischargeMotherAteDrank:r.motherAteDrank,dischargeMotherUrinated:r.motherUrinated,dischargePlacentaGone:r.placentaGone,dischargePrayer:r.prayer,dischargeBible:r.bible,dischargeTransferBaby:r.transferBaby,dischargeTransferMother:r.transferMother,dischargeTransferComment:r.transferComment,dischargeInitials:r.initials})}return o}(),{ctor:"_Tuple3",_0:T.update(m,{dischargeViewEditState:T.eq(o.dischargeViewEditState,NS)?SS:NS}),_1:De,_2:Be({ctor:"::",_0:T.eq(o.dischargeViewEditState,NS)?Ov(Uv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{dischargeViewEditState:NS}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:T.update(o,{dischargeViewEditState:DS}),_1:De,_2:T.eq(o.dischargeViewEditState,NS)?Be({ctor:"::",_0:Ov(Uv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var Q=RD(o);if("[]"===Q.ctor){var X=1==(!T.eq(o.dischargeDate,q)&&!T.eq(o.dischargeTime,q))?d(hs,o.dischargeDate,o.dischargeTime,"Please correct the date and time for the discharge fields."):ps;return R=Ou({ctor:"::",_0:X,_1:{ctor:"[]"}}),x=function(){var t={ctor:"_Tuple2",_0:T.cmp(ot(R),0)>0,_1:o.dischargeRecord};if(!0===t._0)return d(Yv,l(N["++"],R,{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}}),10,Lv);if("Just"===t._1.ctor){var r=T.update(t._1._0,{dateTime:Iu(X),motherSystolic:bu(o.dischargeMotherSystolic),motherDiastolic:bu(o.dischargeMotherDiastolic),motherTemp:hu(o.dischargeMotherTemp),motherCR:bu(o.dischargeMotherCR),babyRR:bu(o.dischargeBabyRR),babyTemp:hu(o.dischargeBabyTemp),babyCR:bu(o.dischargeBabyCR),ppInstructionsSchedule:o.dischargePPInstructionsSchedule,birthCertWorksheet:o.dischargeBirthCertWorksheet,birthRecorded:o.dischargeBirthRecorded,chartsComplete:o.dischargeChartsComplete,logsComplete:o.dischargeLogsComplete,billPaid:o.dischargeBillPaid,nbs:kl(o.dischargeNbs),immunizationReferral:o.dischargeImmunizationReferral,breastFeedingEstablished:o.dischargeBreastFeedingEstablished,newbornBath:o.dischargeNewbornBath,fundusFirmBleedingCtld:o.dischargeFundusFirmBleedingCtld,motherAteDrank:o.dischargeMotherAteDrank,motherUrinated:o.dischargeMotherUrinated,placentaGone:o.dischargePlacentaGone,prayer:o.dischargePrayer,bible:o.dischargeBible,transferBaby:o.dischargeTransferBaby,transferMother:o.dischargeTransferMother,transferComment:o.dischargeTransferComment,initials:o.dischargeInitials});return d(tM,l(xM,mM(l(eh,q,U({ctor:"::",_0:g_,_1:{ctor:"[]"}}))),r),yT,(e=r,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(g_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(e.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dateTime",_1:l(Qo,Ju,e.dateTime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherSystolic",_1:l(Qo,Xr,e.motherSystolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherDiastolic",_1:l(Qo,Xr,e.motherDiastolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherTemp",_1:l(Qo,Qr,e.motherTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCR",_1:l(Qo,Xr,e.motherCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyRR",_1:l(Qo,Xr,e.babyRR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyTemp",_1:l(Qo,Qr,e.babyTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyCR",_1:l(Qo,Xr,e.babyCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ppInstructionsSchedule",_1:yu(e.ppInstructionsSchedule)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthCertWorksheet",_1:yu(e.birthCertWorksheet)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthRecorded",_1:yu(e.birthRecorded)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chartsComplete",_1:yu(e.chartsComplete)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"logsComplete",_1:yu(e.logsComplete)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"billPaid",_1:yu(e.billPaid)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"nbs",_1:l(Qo,function(t){return $r(Bl(t))},e.nbs)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"immunizationReferral",_1:yu(e.immunizationReferral)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"breastFeedingEstablished",_1:yu(e.breastFeedingEstablished)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"newbornBath",_1:yu(e.newbornBath)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fundusFirmBleedingCtld",_1:yu(e.fundusFirmBleedingCtld)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherAteDrank",_1:yu(e.motherAteDrank)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherUrinated",_1:yu(e.motherUrinated)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaGone",_1:yu(e.placentaGone)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"prayer",_1:yu(e.prayer)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bible",_1:yu(e.bible)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transferBaby",_1:yu(e.transferBaby)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transferMother",_1:yu(e.transferMother)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transferComment",_1:l(Qo,$r,e.transferComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,e.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(e.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})))}var e,c=function(t){var r,e=Iu(d(hs,t.dischargeDate,t.dischargeTime,"")),o=t.currLaborId;return"Just"===o.ctor?U((r=e,function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return{dateTime:r,motherSystolic:t,motherDiastolic:e,motherTemp:o,motherCR:c,babyRR:n,babyTemp:a,babyCR:_,ppInstructionsSchedule:i,birthCertWorksheet:u,birthRecorded:s,chartsComplete:l,logsComplete:d,billPaid:m,nbs:f,immunizationReferral:p,breastFeedingEstablished:h,newbornBath:b,fundusFirmBleedingCtld:g,motherAteDrank:y,motherUrinated:C,placentaGone:T,prayer:v,bible:M,transferBaby:B,transferMother:D,transferComment:S,initials:F,labor_id:w}}}}}}}}}}}}}}}}}}}}}}}}}}}}})(bu(t.dischargeMotherSystolic))(bu(t.dischargeMotherDiastolic))(hu(t.dischargeMotherTemp))(bu(t.dischargeMotherCR))(bu(t.dischargeBabyRR))(hu(t.dischargeBabyTemp))(bu(t.dischargeBabyCR))(t.dischargePPInstructionsSchedule)(t.dischargeBirthCertWorksheet)(t.dischargeBirthRecorded)(t.dischargeChartsComplete)(t.dischargeLogsComplete)(t.dischargeBillPaid)(kl(t.dischargeNbs))(t.dischargeImmunizationReferral)(t.dischargeBreastFeedingEstablished)(t.dischargeNewbornBath)(t.dischargeFundusFirmBleedingCtld)(t.dischargeMotherAteDrank)(t.dischargeMotherUrinated)(t.dischargePlacentaGone)(t.dischargePrayer)(t.dischargeBible)(t.dischargeTransferBaby)(t.dischargeTransferMother)(t.dischargeTransferComment)(t.dischargeInitials)(o._0._0)):q}(o);if("Just"===c.ctor){var n=c._0;return d(tM,l(KM,mM(l(eh,q,U({ctor:"::",_0:g_,_1:{ctor:"[]"}}))),n),vT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(g_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"dateTime",_1:l(Qo,Ju,t.dateTime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherSystolic",_1:l(Qo,Xr,t.motherSystolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherDiastolic",_1:l(Qo,Xr,t.motherDiastolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherTemp",_1:l(Qo,Qr,t.motherTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCR",_1:l(Qo,Xr,t.motherCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyRR",_1:l(Qo,Xr,t.babyRR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyTemp",_1:l(Qo,Qr,t.babyTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyCR",_1:l(Qo,Xr,t.babyCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ppInstructionsSchedule",_1:yu(t.ppInstructionsSchedule)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthCertWorksheet",_1:yu(t.birthCertWorksheet)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthRecorded",_1:yu(t.birthRecorded)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chartsComplete",_1:yu(t.chartsComplete)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"logsComplete",_1:yu(t.logsComplete)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"billPaid",_1:yu(t.billPaid)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"nbs",_1:l(Qo,function(t){return $r(Bl(t))},t.nbs)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"immunizationReferral",_1:yu(t.immunizationReferral)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"breastFeedingEstablished",_1:yu(t.breastFeedingEstablished)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"newbornBath",_1:yu(t.newbornBath)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"fundusFirmBleedingCtld",_1:yu(t.fundusFirmBleedingCtld)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherAteDrank",_1:yu(t.motherAteDrank)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherUrinated",_1:yu(t.motherUrinated)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"placentaGone",_1:yu(t.placentaGone)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"prayer",_1:yu(t.prayer)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bible",_1:yu(t.bible)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transferBaby",_1:yu(t.transferBaby)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transferMother",_1:yu(t.transferMother)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transferComment",_1:l(Qo,$r,t.transferComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"initials",_1:l(Qo,$r,t.initials)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})}(n))}return l(aM,pC,l(N["++"],"ContPP.update HandleDischargeModal, CloseSaveDialog: ","deriveDischargeRecordNew returned a Nothing"))}(),{ctor:"_Tuple3",_0:T.update(o,{dischargeViewEditState:NS}),_1:De,_2:Be({ctor:"::",_0:l($e,M(x),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}return k=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,Q)),{ctor:"_Tuple3",_0:T.update(o,{dischargeViewEditState:NS}),_1:De,_2:l(Qv,k,10)}}case"OpenDatePickerSubMsg":return{ctor:"_Tuple3",_0:o,_1:De,_2:l($e,cM,Ue(i._0))};default:i._0;var $=function(){switch(o.currPregHeaderContent.ctor){case"PrenatalContent":return ff;case"LaborContent":return mf;default:return pf}}();return{ctor:"_Tuple3",_0:T.update(o,{currPregHeaderContent:$}),_1:De,_2:De}}}),IS=c(function(t,r,e){var o,c,n=h(BS,T.eq(e.contPostpartumCheckViewEditState,PS)||T.eq(e.contPostpartumCheckViewEditState,NS),T.eq(e.contPostpartumCheckViewEditState,kS),"Continued Postpartum Checks",e,l(Qp,Za,q),oh,oh),a=!!T.eq(e.dischargeViewEditState,DS)||!KD(e),_=h(BS,T.eq(e.dischargeViewEditState,SS)||T.eq(e.dischargeViewEditState,DS),a,"Discharge",e,Xp(Za),Xp($a),Xp(Xa)),i=!!T.eq(e.motherMedicationViewEditState,FS)||!GD(e),u=h(BS,T.eq(e.motherMedicationViewEditState,wS)||T.eq(e.motherMedicationViewEditState,FS),i,"Mother Medications",e,l($p,Za,q),oh,oh),s=!!T.eq(e.babyMedVacLabViewEditState,RS)||!YD(e),d=h(BS,T.eq(e.babyMedVacLabViewEditState,xS)||T.eq(e.babyMedVacLabViewEditState,RS),s,"Baby Meds, Vacs, and Labs",e,l(th,Za,q),oh,oh),m=!!T.eq(e.newbornExamViewEditState,AS)||!QD(e),b=h(BS,T.eq(e.newbornExamViewEditState,LS)||T.eq(e.newbornExamViewEditState,AS),m,"Newborn Exam",e,rh(Za),rh($a),rh(Xa)),g=function(){var r={ctor:"_Tuple2",_0:e.patientRecord,_1:e.pregnancyRecord};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var o=f(lf,U(e.laborRecord),e.laborStage1Record,e.laborStage2Record,e.laborStage3Record,e.contPostpartumCheckRecords);return p(tD,r._0._0,r._1._0,o,e.currPregHeaderContent,e.currTime,t)}return en("")}();return l(dn,{ctor:"[]"},{ctor:"::",_0:l(rn,function(t){return function(t){return{ctor:"RotatePregHeaderContent",_0:t}}(t)},g),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("content-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:function(t){var r=!T.eq(t.babyRecord,q);return l(dn,{ctor:"::",_0:xn("stage-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!1},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Newborn Exam"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:r?l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(rh(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:QD(t)?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}):XD("Baby record required"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!1},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("BB Med-Vac-Lab"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:r?l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(l(th,t_,q)),_1:{ctor:"[]"}}},{ctor:"::",_0:YD(t)?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}):XD("Baby record required"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!1},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Mother Meds"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(l($p,t_,q)),_1:{ctor:"[]"}}},{ctor:"::",_0:GD(t)?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!1},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Discharge"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(Xp(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:KD(t)?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}})}(e),_1:{ctor:"::",_0:jD(b),_1:{ctor:"::",_0:function(t){var r=l(it,function(r){var e=r,o=e._0,c=l(qs,o,t.model.babyLabTypeRecords);return"Just"===c.ctor?p(sS,{ctor:"LabMVL",_0:o},c._0,e._1,t.isEditing,t.model.browserSupportsDate,t.model.babyLabTypeRecords):en("")},cr(t.model.babyLabFlds)),e=l(it,function(r){var e=r,o=e._0,c=l(ml,o,t.model.babyVaccinationTypeRecords);return"Just"===c.ctor?p(dS,ch(o),c._0._0,c._0._1,e._1,t.isEditing,t.model.browserSupportsDate):en("")},cr(t.model.babyVacFlds)),o=l(it,function(r){var e=r,o=e._0,c=l(cl,o,t.model.babyMedicationTypeRecords);return"Just"===c.ctor?p(dS,nh(o),c._0._0,c._0._1,e._1,t.isEditing,t.model.browserSupportsDate):en("")},cr(t.model.babyMedFlds));return l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},o),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},e),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},r),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.5em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}})}(d),_1:{ctor:"::",_0:(o=u,c=l(it,function(t){var r=t,e=r._1,c=r._0,n=l(qd,c,o.model.motherMedicationTypeRecords);return"Just"===n.ctor?f(iS,c,n._0,e,o.isEditing||e.isEditing,o.model.browserSupportsDate):en("")},cr(o.model.motherMedFlds)),l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!o.isShown},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},c),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.5em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(o.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})),_1:{ctor:"::",_0:zD(_),_1:{ctor:"::",_0:WD(n),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"[]"}}})}),OS=_(function(t,r,e,o,c,n){var a,_,i,u=function(){switch(t.ctor){case"Small":return"u-small";case"Medium":return"u-medium";case"Large":return"u-xlarge";default:return""}}();return l(ln,{ctor:"::",_0:xn(l(N["++"],"c-nav__item",r?" c-nav__item--right":"")),_1:{ctor:"[]"}},{ctor:"::",_0:l(mn,{ctor:"::",_0:(i=o,"AsRoute"===i.ctor?(_=i._0,Jn(Iv(_))):Jn(i._0)),_1:{ctor:"::",_0:xn("headerLink"),_1:{ctor:"[]"}}},(a=t,"FA"===a.ctor?{ctor:"::",_0:l(fn,{ctor:"::",_0:xn(a._0),_1:{ctor:"[]"}},{ctor:"[]"}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(e?"c-text--loud":""),_1:{ctor:"::",_0:xn("nav-item-has-icon"),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("buildNavItem-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(c),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("buildNavItem-smallText"),_1:{ctor:"[]"}},{ctor:"::",_0:en(n),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(u),_1:{ctor:"::",_0:xn(e?"c-text--loud":""),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("buildNavItem-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(c),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("buildNavItem-smallText"),_1:{ctor:"[]"}},{ctor:"::",_0:en(n),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})),_1:{ctor:"[]"}})}),VS={ctor:"BirthCert"},qS={ctor:"Postpartum"},HS={ctor:"LaborDelIpp"},US={ctor:"ContPP"},zS={ctor:"Admitting"},WS={ctor:"Other"},jS=function(t){return{ctor:"FA",_0:t}},GS={ctor:"Large"},YS={ctor:"Small"},KS=function(t){return{ctor:"AsLink",_0:t}},QS=function(t){return{ctor:"AsRoute",_0:t}},XS=a(function(t,r,e,o,c){var n,a="Just"===(n=r).ctor?l(N["++"],"/toprenatal/",D(sm(n._0))):"/toprenatal";return l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("navigation-larger"),_1:{ctor:"[]"}},{ctor:"::",_0:l(sn,{ctor:"::",_0:xn("c-nav c-nav--inline primary-bg primary-contrast-fg"),_1:{ctor:"[]"}},{ctor:"::",_0:p(OS,GS,!1,!1,QS(Hv),"Midwife-EMR","Midwife-EMR"),_1:{ctor:"::",_0:p(OS,jS("fa fa-sign-out"),!0,!1,KS("/logout")," Logout"," Logout"),_1:{ctor:"::",_0:p(OS,jS("fa fa-stethoscope"),!0,!1,KS(a)," Prenatal"," Prenatal"),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(sn,{ctor:"::",_0:xn("c-nav c-nav--inline nav-override-small accent-bg accent-contrast-fg"),_1:{ctor:"[]"}},{ctor:"::",_0:p(OS,YS,!1,T.eq(c,zS),QS(zv),"Admitting","AD"),_1:{ctor:"::",_0:p(OS,YS,!1,T.eq(c,HS),QS(Hv),"Labor-Delivery-IPP","LD"),_1:{ctor:"::",_0:p(OS,YS,!1,T.eq(c,US),QS(Uv),"Cont-Postpartum","CPP"),_1:{ctor:"::",_0:p(OS,YS,!1,T.eq(c,qS),QS(qv),"Postpartum","PP"),_1:{ctor:"::",_0:p(OS,YS,!1,!1,QS(Vv),"Birth-Cert","Cert"),_1:{ctor:"[]"}}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})}),$S=i(function(t,r,e,o,c,n,a){var _,i=l(dn,{ctor:"::",_0:xn("o-container o-container--large c-text"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"relative"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:function(t){var r=t;if("Just"!==r.ctor)return en("");var e,o=r._0;switch(o.toastType.ctor){case"InfoToast":return e=o.msgs,l(dn,{ctor:"::",_0:xn("c-alerts c-alerts--topleft"),_1:{ctor:"[]"}},l(it,function(t){return l(dn,{ctor:"::",_0:xn("c-alert c-alert--success u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}})},e));case"WarningToast":return function(t){return l(dn,{ctor:"::",_0:xn("c-alerts c-alerts--topleft"),_1:{ctor:"[]"}},l(it,function(t){return l(dn,{ctor:"::",_0:xn("c-alert c-alert--warning u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}})},t))}(o.msgs);default:return function(t){return l(dn,{ctor:"::",_0:xn("c-alerts c-alerts--topleft"),_1:{ctor:"[]"}},l(it,function(t){return l(dn,{ctor:"::",_0:xn("c-alert c-alert--error u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}})},t))}(o.msgs)}}(c),_1:{ctor:"::",_0:f(XS,t,e,o,r,n),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:r?l(dn,{ctor:"[]"},{ctor:"::",_0:en("Loading ..."),_1:{ctor:"[]"}}):a,_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}});return"Just"===(_=t).ctor&&T.cmp(_._0.width,300)<0?en("Sorry, this application cannot run on a device this small."):i}),ZS=e(function(t,r){var e=r;return l(_n,{ctor:"::",_0:kn("content"),_1:{ctor:"::",_0:xn("container"),_1:{ctor:"::",_0:Sn(-1),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("row"),_1:{ctor:"[]"}},{ctor:"::",_0:l(un,{ctor:"[]"},{ctor:"::",_0:en(e._0.errorMessage),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})}),tF=(e(function(t,r){return{activePage:t,errorMessage:r}}),e(function(t,r){return{ctor:"PageLoadError",_0:{activePage:t,errorMessage:r}}})),rF=gB({ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Gg,"Rupture type must be provided."),t.membraneRupture)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],jg,"Amniotic type must be provided."),t.membraneAmniotic)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!1),l(is["=>"],Kg,"Valid membrane rupture date must be provided."),t.membraneRuptureDate)},_1:{ctor:"[]"}}}}),eF=gB({ctor:"::",_0:function(t){return d(pB,Uu({ctor:"::",_0:"Male",_1:{ctor:"::",_0:"Female",_1:{ctor:"::",_0:"Ambiguous",_1:{ctor:"[]"}}}}),l(is["=>"],iy,"Sex must be provided."),t.bbSex)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!1),l(is["=>"],ay,"Valid baby bfed date must be provided."),t.bbBFedEstablishedDate)},_1:{ctor:"[]"}}}),oF=gB({ctor:"::",_0:function(t){return Wu(t.s3PlacentaDeliverySpontaneous)&&Wu(t.s3PlacentaDeliveryAMTSL)&&Wu(t.s3PlacentaDeliveryCCT)&&Wu(t.s3PlacentaDeliveryManual)||!l(V,!1,t.s3PlacentaDeliverySpontaneous)&&!l(V,!1,t.s3PlacentaDeliveryAMTSL)&&!l(V,!1,t.s3PlacentaDeliveryCCT)&&!l(V,!1,t.s3PlacentaDeliveryManual)?{ctor:"::",_0:l(is["=>"],Sy,"You must check one of the placenta delivery types."),_1:{ctor:"[]"}}:{ctor:"[]"}},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],vy,"Maternal position must be provided."),t.s3MaternalPosition)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],gy,"Placenta shape must be provided."),t.s3PlacentaShape)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],by,"Placenta insertion must be provided."),t.s3PlacentaInsertion)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],hy,"Number of vessels must be provided."),t.s3PlacentaNumVessels)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],py,"Schultz or Duncan presentation must be provided."),t.s3SchultzDuncan)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],fy,"Cotyledons must be specified."),t.s3Cotyledons)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],my,"Membranes must be specified."),t.s3Membranes)},_1:{ctor:"[]"}}}}}}}}}),cF=gB({ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Wy,"Birth type must be provided."),t.s2BirthType)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],zy,"Birth position must be provided."),t.s2BirthPosition)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],Uy,"Duration pushing must be provided."),t.s2DurationPushing)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Hy,"Birth presentation must be provided."),t.s2BirthPresentation)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Vy,"Cord wrap type must be provided."),t.s2CordWrapType)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Oy,"Delivery type must be provided."),t.s2DeliveryType)},_1:{ctor:"::",_0:function(t){var r=bu(t.s2ShoulderDystociaMinutes);return"Just"===r.ctor?T.cmp(r._0,0)>0&&(T.eq(t.s2ShoulderDystocia,q)||T.eq(t.s2ShoulderDystocia,U(!1)))?{ctor:"::",_0:l(is["=>"],Jy,"Shoulder dystocia minutes cannot be specified if shoulder dystocia is not checked."),_1:{ctor:"[]"}}:{ctor:"[]"}:T.eq(t.s2ShoulderDystocia,U(!0))?{ctor:"::",_0:l(is["=>"],Jy,"Shoulder dystocia cannot be checked without specifying shoulder dystocia minutes."),_1:{ctor:"[]"}}:{ctor:"[]"}},_1:{ctor:"::",_0:function(t){return T.eq(t.s2Laceration,U(!0))||T.eq(t.s2Episiotomy,U(!0))?T.eq(t.s2Degree,q)?{ctor:"::",_0:l(is["=>"],Ey,"Degree must be specified if laceration or episiotomy is checked."),_1:{ctor:"[]"}}:{ctor:"[]"}:T.eq(t.s2Degree,q)?{ctor:"[]"}:{ctor:"::",_0:l(is["=>"],Ey,"Either laceration and/or episiotomy must be checked if degree is specified."),_1:{ctor:"[]"}}},_1:{ctor:"::",_0:function(t){return T.eq(t.s2Repair,U(!0))&&T.eq($t(l(V,"",t.s2LacerationRepairedBy)),0)?{ctor:"::",_0:l(is["=>"],Py,"Laceration repaired by field must be provided if repair field is checked."),_1:{ctor:"[]"}}:{ctor:"[]"}},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],ky,"Estimated blood loss at birth must be provided."),t.s2BirthEBL)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],xy,"Meconium must be provided."),t.s2Meconium)},_1:{ctor:"[]"}}}}}}}}}}}}),nF=gB({ctor:"::",_0:function(t){return d(pB,os,l(is["=>"],Fy,"Time must be provided in hhmm format."),t.stage3Time)},_1:{ctor:"[]"}}),aF=gB({ctor:"::",_0:function(t){return d(pB,os,l(is["=>"],jy,"Time must be provided in hhmm format."),t.stage2Time)},_1:{ctor:"[]"}}),_F=gB({ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Zy,"Mobility must be provided."),t.s1Mobility)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],$y,"Duration latent must be provided."),t.s1DurationLatentHours)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Xy,"Duration latent must be provided."),t.s1DurationLatentMinutes)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Qy,"Duration active must be provided."),t.s1DurationActiveHours)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],Ky,"Duration active must be provided."),t.s1DurationActiveMinutes)},_1:{ctor:"[]"}}}}}}),iF=gB({ctor:"::",_0:function(t){return d(pB,os,l(is["=>"],tC,"Time must be provided in hhmm format."),t.stage1Time)},_1:{ctor:"[]"}}),uF=(gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],dC,"Valid date of admittance must be provided."),t.admittanceDate)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],lC,"Admitting time must be provided, ex: hhmm."),t.admittanceTime)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],sC,"Valid date of the start of labor must be provided."),t.laborDate)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],uC,"Start of labor time must be provided, ex: hhmm."),t.laborTime)},_1:{ctor:"::",_0:function(t){return d(pB,zu,l(is["=>"],iC,"POS must be provided."),t.pos)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],_C,"FH must be provided."),t.fh)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],aC,"FHT must be provided."),t.fht)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],nC,"Systolic must be provided."),t.systolic)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],cC,"Diastolic must be provided."),t.diastolic)},_1:{ctor:"::",_0:function(t){return d(pB,$u,l(is["=>"],oC,"CR must be provided."),t.cr)},_1:{ctor:"::",_0:function(t){return d(pB,Ku,l(is["=>"],eC,"Temp must be provided."),t.temp)},_1:{ctor:"[]"}}}}}}}}}}}}),function(t){var r,e=t.currLaborId;if("Just"===e.ctor){var o=function(){var r={ctor:"_Tuple2",_0:t.stage3Date,_1:t.stage3Time};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var e=Zu(r._1._0);return"Just"===e.ctor?U(l(Vu,r._0._0,e._0)):q}return q}();return U((r=o,function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return{placentaDatetime:r,placentaDeliverySpontaneous:t,placentaDeliveryAMTSL:e,placentaDeliveryCCT:o,placentaDeliveryManual:c,maternalPosition:n,txBloodLoss1:a,txBloodLoss2:_,txBloodLoss3:i,txBloodLoss4:u,txBloodLoss5:s,placentaShape:l,placentaInsertion:d,placentaNumVessels:m,schultzDuncan:f,cotyledons:p,membranes:h,comments:b,labor_id:g}}}}}}}}}}}}}}}}}}})(t.s3PlacentaDeliverySpontaneous)(t.s3PlacentaDeliveryAMTSL)(t.s3PlacentaDeliveryCCT)(t.s3PlacentaDeliveryManual)(t.s3MaternalPosition)(t.s3TxBloodLoss1)(t.s3TxBloodLoss2)(t.s3TxBloodLoss3)(t.s3TxBloodLoss4)(t.s3TxBloodLoss5)(t.s3PlacentaShape)(t.s3PlacentaInsertion)(bu(t.s3PlacentaNumVessels))(fd(l(V,"",t.s3SchultzDuncan)))(t.s3Cotyledons)(t.s3Membranes)(t.s3Comments)(e._0._0))}return q}),sF=function(t){var r,e={ctor:"_Tuple2",_0:t.currLaborId,_1:t.bbSex};if("Just"===e._0.ctor&&"Just"===e._1.ctor){var o=function(){var r={ctor:"_Tuple2",_0:t.bbBFedEstablishedDate,_1:t.bbBFedEstablishedTime};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var e=Zu(r._1._0);return"Just"===e.ctor?U(l(Vu,r._0._0,e._0)):q}return q}();return U((r=1,function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return{birthNbr:r,lastname:t,firstname:e,middlename:o,sex:c,birthWeight:n,bFedEstablished:a,bulb:_,machine:i,freeFlowO2:u,chestCompressions:s,ppv:l,comments:d,labor_id:m,apgarScores:f}}}}}}}}}}}}}}})(t.bbLastname)(t.bbFirstname)(t.bbMiddlename)(ks(e._1._0))(bu(t.bbBirthWeight))(o)(t.bbBulb)(t.bbMachine)(t.bbFreeFlowO2)(t.bbChestCompressions)(t.bbPpv)(t.bbComments)(e._0._0._0)(Bs(t.apgarScores)))}return q},lF=function(t){var r,e=t.currLaborId;if("Just"===e.ctor){var o=function(){var r={ctor:"_Tuple2",_0:t.stage2Date,_1:t.stage2Time};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var e=Zu(r._1._0);return"Just"===e.ctor?U(l(Vu,r._0._0,e._0)):q}return q}();return U((r=o,function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return{birthDatetime:r,birthType:t,birthPosition:e,durationPushing:o,birthPresentation:c,terminalMec:n,cordWrapType:a,deliveryType:_,shoulderDystocia:i,shoulderDystociaMinutes:u,laceration:s,episiotomy:l,repair:d,degree:m,lacerationRepairedBy:f,birthEBL:p,meconium:h,comments:b,labor_id:g}}}}}}}}}}}}}}}}}}})(t.s2BirthType)(t.s2BirthPosition)(bu(t.s2DurationPushing))(t.s2BirthPresentation)(t.s2TerminalMec)(t.s2CordWrapType)(t.s2DeliveryType)(t.s2ShoulderDystocia)(bu(t.s2ShoulderDystociaMinutes))(t.s2Laceration)(t.s2Episiotomy)(t.s2Repair)(t.s2Degree)(t.s2LacerationRepairedBy)(bu(t.s2BirthEBL))(t.s2Meconium)(t.s2Comments)(e._0._0))}return q},dF=function(t){var r=t.currLaborId;if("Just"===r.ctor){var e=function(){var r={ctor:"_Tuple2",_0:t.stage1Date,_1:t.stage1Time};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var e=Zu(r._1._0);return"Just"===e.ctor?U(l(Vu,r._0._0,e._0)):q}return q}();return U(p($l,e,t.s1Mobility,l(vu,bu(t.s1DurationLatentHours),bu(t.s1DurationLatentMinutes)),l(vu,bu(t.s1DurationActiveHours),bu(t.s1DurationActiveMinutes)),t.s1Comments,r._0._0))}return q},mF=c(function(t,r,e){var o=d(hs,r,e,"");switch(o.ctor){case"NoMaybeDateTime":return!0;case"InvalidMaybeDateTime":return!1;default:var c=t;return"Just"===c.ctor&&l(Su,c._0,o._0)}}),fF=c(function(t,r,o){var c=d(et,e(function(r,e){var o=e,c=o._0,n=o._1;switch(r.ctor){case"Baby":var a=l(Cm,r,t);return"Just"===a.ctor&&"BabyDataCache"===a._0.ctor?l(is["=>"],T.update(c,{babyRecord:U(a._0._0)}),n):l(is["=>"],c,n);case"Labor":var _=l(Cm,r,t);return"Just"===_.ctor&&"LaborDataCache"===_._0.ctor?l(is["=>"],T.update(c,{laborRecord:U(_._0._0)}),n):l(is["=>"],c,n);case"LaborStage1":var i=l(Cm,r,t);return"Just"===i.ctor&&"LaborStage1DataCache"===i._0.ctor?l(is["=>"],T.update(c,{laborStage1Record:U(i._0._0)}),n):l(is["=>"],c,n);case"LaborStage2":var u=l(Cm,r,t);return"Just"===u.ctor&&"LaborStage2DataCache"===u._0.ctor?l(is["=>"],T.update(c,{laborStage2Record:U(u._0._0)}),n):l(is["=>"],c,n);case"LaborStage3":var s=l(Cm,r,t);return"Just"===s.ctor&&"LaborStage3DataCache"===s._0.ctor?l(is["=>"],T.update(c,{laborStage3Record:U(s._0._0)}),n):l(is["=>"],c,n);case"Membrane":var d=l(Cm,r,t);return"Just"===d.ctor&&"MembraneDataCache"===d._0.ctor?l(is["=>"],T.update(c,{membraneRecord:U(d._0._0)}),n):l(is["=>"],c,n);default:return{ctor:"_Tuple2",_0:c,_1:{ctor:"::",_0:l(N["++"],"LaborDelIpp.refreshModelFromCache: Unhandled Table",D(r)),_1:n}}}}),{ctor:"_Tuple2",_0:o,_1:{ctor:"[]"}},r),n=c._0,a=c._1;return l(is["=>"],n,Be(l(it,iM,a)))}),pF=e(function(t,r){var e,o=r;if("Just"===o._0.ctor&&"Just"===o._1.ctor){var c=o._0._0;return l(dn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(l(N["++"],"Minute: ",D(c))),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(l(N["++"],", Score: ",D(o._1._0))),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"[]"},{ctor:"::",_0:en(" "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:t?l(fn,{ctor:"::",_0:xn("fa fa-trash-o"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"cursor",_1:"pointer"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn((e=c,{ctor:"DeleteApgar",_0:e})),_1:{ctor:"[]"}}}},{ctor:"[]"}):en(""),_1:{ctor:"[]"}}}}})}return en("")}),hF=c(function(t,r,e){return l(dn,{ctor:"::",_0:xn(e?"mw-form-field":"mw-form-field-2x"),_1:{ctor:"[]"}},l(N["++"],{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},l(N["++"],l(it,pF(e),r),{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en(e?"After adding or deleting, press Save below.":""),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})))}),bF=function(t){var r,e=(r=t.model.apgarScores,or(r)),o=function(t){return!0===t?"Yes":"No"},c=function(){var r=t.model.babyRecord;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple5",_0:l(V,"No",l(z,o,e.bulb)),_1:l(V,"No",l(z,o,e.machine)),_2:l(V,"No",l(z,o,e.freeFlowO2)),_3:l(V,"No",l(z,o,e.chestCompressions)),_4:l(V,"No",l(z,o,e.ppv))}}return{ctor:"_Tuple5",_0:"",_1:"",_2:"",_3:"",_4:""}}(),n=c._0,a=c._1,_=c._2,i=c._3,u=c._4,s=function(){var r,e,o=t.model.babyRecord;if("Just"===o.ctor){var c=o._0;return{ctor:"_Tuple7",_0:l(V,"",c.lastname),_1:l(V,"",c.firstname),_2:l(V,"",c.middlename),_3:Ts(c.sex),_4:d(v,tr," g",D(l(V,0,c.birthWeight))),_5:(r=c.bFedEstablished,e=r,"Just"===e.ctor?d(Hu,ds,fs,e._0):""),_6:l(V,"",c.comments)}}return{ctor:"_Tuple7",_0:"",_1:"",_2:"",_3:"",_4:"",_5:"",_6:""}}(),m=s._0,f=s._1,p=s._2,h=s._3,b=s._4,g=s._5,y=s._6;return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Baby Details"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Last name: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(m),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("First name: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(f),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Middle name: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(p),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Sex: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(h),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Birth weight: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(b),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:d(hF,"Apgar Scores",e,!1),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("BFed established: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(g),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Bulb: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(n),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Machine: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(a),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Free flow O2: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(_),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Chest compressions: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(i),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("PPV: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(u),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Comments: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(y),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(t.editMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})},gF=function(t){var r,e=t.babyRecord;return"Just"===e.ctor&&(r=e._0,!(T.cmp(r.birthNbr,0)<1||zu(r.lastname)||zu(r.firstname)||T.cmp(l(V,0,r.birthWeight),0)<1||l(Nu,!0,r.bFedEstablished)))},yF=function(t){var r,e=t.membraneRecord;return"Just"===e.ctor&&(r=e._0,!(l(Nu,!0,r.ruptureDatetime)||T.eq(r.rupture,q)||T.eq(r.amniotic,q)))},CF=function(t){var r,e=t.laborStage3Record;return"Just"===e.ctor&&(r=e._0,!(l(Nu,!0,r.placentaDatetime)||!l(V,!1,r.placentaDeliverySpontaneous)&&!l(V,!1,r.placentaDeliveryAMTSL)&&!l(V,!1,r.placentaDeliveryCCT)&&!l(V,!1,r.placentaDeliveryManual)||zu(r.maternalPosition)||zu(r.placentaShape)||zu(r.placentaInsertion)||T.eq(r.placentaNumVessels,q)||T.eq(r.schultzDuncan,q)||zu(r.cotyledons)||zu(r.membranes)))},TF=function(t){var r,e=t.laborStage2Record;return"Just"===e.ctor&&(r=e._0,!(l(Nu,!0,r.birthDatetime)||T.eq(r.birthType,q)||T.eq(r.birthPosition,q)||T.eq(r.durationPushing,q)||T.eq(r.birthPresentation,q)||T.eq(r.deliveryType,q)||T.eq(r.shoulderDystocia,U(!0))&&T.eq(r.shoulderDystociaMinutes,q)||T.eq(r.laceration,U(!0))&&T.eq(r.degree,q)||T.eq(r.episiotomy,U(!0))&&T.eq(r.degree,q)||T.eq(r.repair,U(!0))&&T.eq(r.lacerationRepairedBy,q)||T.eq(r.birthEBL,q)))},vF=e(function(t,r){var e=l(gc,function(r){return T.eq(Te(r),t)},r);return"Just"===e.ctor?Ce(e._0):""}),MF=function(t){return!0===t.isEditing?function(t){var r=function(t){return l(V,0,bu(t))},o=l(e(function(t,r){return t*r}),60,r(t.model.s1DurationLatentHours))+r(t.model.s1DurationLatentMinutes)+l(e(function(t,r){return t*r}),60,r(t.model.s1DurationActiveHours))+r(t.model.s1DurationActiveMinutes),c=function(){var r,e=t.model.laborStage1Record;if("Just"===e.ctor){var o=e._0.fullDialation;if("Just"===o.ctor){var c=o._0,n=t.model.laborRecord;if("Just"===n.ctor){var a=n._0;return{ctor:"_Tuple2",_0:l(Fu,a.startLaborDate,c),_1:A(w((r=xo(a.startLaborDate)-xo(c),r/6e4)))}}return{ctor:"_Tuple2",_0:"",_1:0}}return{ctor:"_Tuple2",_0:"",_1:0}}return{ctor:"_Tuple2",_0:"",_1:0}}(),n=c._0,a=c._1,_=l(e(function(t,r){return t-r}),a,o)/60|0,i=l(E,l(e(function(t,r){return t-r}),a,o),60),u=1==!T.eq(l(e(function(t,r){return t-r}),a,o),0)?l(N["++"]," Duration to account for: ",l(N["++"],D(_),l(N["++"]," hours, ",l(N["++"],D(i)," minutes")))):"",s=_F(t.model);return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 1 Summary - Edit"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.5em 0"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:T.cmp($t(u),0)>0?l(pn,{ctor:"::",_0:xn("u-high c-alert c-alert-warning"),_1:{ctor:"[]"}},{ctor:"::",_0:en(u),_1:{ctor:"[]"}}):l(pn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],"Stage 1 total: ",n)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:h(vB,"Mobility","mobility",t.model.s1Mobility,function(t){return l(Jg,Zy,Qa(t))},!1,{ctor:"::",_0:"Moved around",_1:{ctor:"::",_0:"Didn't move much",_1:{ctor:"::",_0:"Movement restricted",_1:{ctor:"[]"}}}},l(vF,Zy,s)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:p(EB,function(t){return l(Jg,$y,Qa(t))},"Duration latent (hours)","Number of hours",!0,t.model.s1DurationLatentHours,l(vF,$y,s)),_1:{ctor:"::",_0:p(EB,function(t){return l(Jg,Xy,Qa(t))},"Duration latent (minutes)","Number of minutes",!0,t.model.s1DurationLatentMinutes,l(vF,Xy,s)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:p(EB,function(t){return l(Jg,Qy,Qa(t))},"Duration active (hours)","Number of hours",!0,t.model.s1DurationActiveHours,l(vF,Qy,s)),_1:{ctor:"::",_0:p(EB,function(t){return l(Jg,Ky,Qa(t))},"Duration active (minutes)","Number of minutes",!0,t.model.s1DurationActiveMinutes,l(vF,Ky,s)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:p(LB,function(t){return l(Jg,Yy,Qa(t))},"Comments","Meds, IV, Complications, Notes, etc.",!0,t.model.s1Comments,3),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(t.saveMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}),_1:{ctor:"[]"}}}})}(t):function(t){var r=function(){var r=t.model.laborStage1Record;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple7",_0:l(V,"",e.mobility),_1:l(V,"0",l(z,D,Bu(e.durationLatent))),_2:l(V,"0",l(z,D,Du(e.durationLatent))),_3:l(V,"0",l(z,D,Bu(e.durationActive))),_4:l(V,"0",l(z,D,Du(e.durationActive))),_5:l(V,"",e.comments),_6:function(){var r=e.fullDialation;if("Just"===r.ctor){var o=t.model.laborRecord;return"Just"===o.ctor?l(Fu,o._0.startLaborDate,r._0):""}return""}()}}return{ctor:"_Tuple7",_0:"",_1:"",_2:"",_3:"",_4:"",_5:"",_6:""}}(),e=r._0,o=r._1,c=r._2,n=r._3,a=r._4,_=r._5,i=r._6;return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 1 Summary"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 1 Total: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(i),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Mobility: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(e),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Duration Latent: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(o),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(" hours, "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(c),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(" minutes"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Duration Active: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(n),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(" hours, "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(a),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(" minutes"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Comments: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(_),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(t.editMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"[]"}}})}(t)},BF=function(t){return!0===t.isEditing?function(t){var r=cF(t.model);return l(dn,{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 2 Summary - Edit"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(TB,"Birth type","birthType",t.model.s2BirthType,function(t){return l(Jg,Wy,Qa(t))},!1,{ctor:"::",_0:"Single",_1:{ctor:"::",_0:"Twin",_1:{ctor:"[]"}}},l(vF,Wy,r)),_1:{ctor:"::",_0:h(TB,"Delivery type","deliverytype",t.model.s2DeliveryType,function(t){return l(Jg,Oy,Qa(t))},!1,{ctor:"::",_0:"NSVD",_1:{ctor:"::",_0:"Interventive vaginal delivery",_1:{ctor:"::",_0:"Vacuum",_1:{ctor:"::",_0:"Forceps",_1:{ctor:"::",_0:"CS",_1:{ctor:"[]"}}}}}},l(vF,Oy,r)),_1:{ctor:"::",_0:h(TB,"Position for birth","position",t.model.s2BirthPosition,function(t){return l(Jg,zy,Qa(t))},!1,{ctor:"::",_0:"Semi-sitting",_1:{ctor:"::",_0:"Lying on back",_1:{ctor:"::",_0:"Side-Lying",_1:{ctor:"::",_0:"Stool or Antipolo",_1:{ctor:"::",_0:"Hands/Knees",_1:{ctor:"::",_0:"Squat",_1:{ctor:"[]"}}}}}}},l(vF,zy,r)),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,Uy,Qa(t))},"Duration of pushing","Number of minutes",!0,t.model.s2DurationPushing,l(vF,Uy,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:h(TB,"Baby's presentation at birth","presentation",t.model.s2BirthPresentation,function(t){return l(Jg,Hy,Qa(t))},!1,{ctor:"::",_0:"ROA",_1:{ctor:"::",_0:"ROP",_1:{ctor:"::",_0:"LOA",_1:{ctor:"::",_0:"LOP",_1:{ctor:"[]"}}}}},l(vF,Hy,r)),_1:{ctor:"::",_0:h(TB,"Cord wrap type","cordwraptype",t.model.s2CordWrapType,function(t){return l(Jg,Vy,Qa(t))},!1,{ctor:"::",_0:"None",_1:{ctor:"::",_0:"Nuchal",_1:{ctor:"::",_0:"Body",_1:{ctor:"::",_0:"Cut on perineum",_1:{ctor:"[]"}}}}},l(vF,Vy,r)),_1:{ctor:"::",_0:d(kB,"Shoulder Dystocia",function(t){return l(Jg,Iy,Ka(t))},t.model.s2ShoulderDystocia),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,Jy,Qa(t))},"Shoulder dystocia minutes","Number of minutes",!0,t.model.s2ShoulderDystociaMinutes,l(vF,Jy,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(kB,"Laceration",function(t){return l(Jg,Ny,Ka(t))},t.model.s2Laceration),_1:{ctor:"::",_0:d(kB,"Episiotomy",function(t){return l(Jg,Ly,Ka(t))},t.model.s2Episiotomy),_1:{ctor:"::",_0:d(kB,"Repair",function(t){return l(Jg,Ay,Ka(t))},t.model.s2Repair),_1:{ctor:"::",_0:h(MB,"Degree","degree",t.model.s2Degree,function(t){return l(Jg,Ey,Qa(t))},!1,{ctor:"::",_0:"1st",_1:{ctor:"::",_0:"2nd",_1:{ctor:"::",_0:"3rd",_1:{ctor:"::",_0:"4th",_1:{ctor:"[]"}}}}},l(vF,Ey,r)),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,Py,Qa(t))},"Laceration repaired by","Initials or lastname",!0,t.model.s2LacerationRepairedBy,l(vF,Py,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,ky,Qa(t))},"EBL at birth","in cc",!0,t.model.s2BirthEBL,l(vF,ky,r)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:h(MB,"Fluid at birth","meconium",t.model.s2Meconium,function(t){return l(Jg,xy,Qa(t))},!1,{ctor:"::",_0:"None",_1:{ctor:"::",_0:"Lt",_1:{ctor:"::",_0:"Mod",_1:{ctor:"::",_0:"Thick",_1:{ctor:"[]"}}}}},l(vF,xy,r)),_1:{ctor:"::",_0:d(kB,"Terminal Mec",function(t){return l(Jg,qy,Ka(t))},t.model.s2TerminalMec),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:p(NB,function(t){return l(Jg,Ry,Qa(t))},"Comments","Meds, IV, Complications, Notes, etc.",!0,t.model.s2Comments,3),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(t.saveMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}(t):function(t){var r=function(){var r=t.model.laborStage2Record;if("Just"===r.ctor){var e=t.model.laborStage1Record;if("Just"===e.ctor){var o={ctor:"_Tuple2",_0:e._0.fullDialation,_1:r._0.birthDatetime};return"Just"===o._0.ctor&&"Just"===o._1.ctor?l(Fu,o._0._0,o._1._0):""}return""}return""}(),o=function(){var r=t.model.laborStage2Record;if("Just"===r.ctor){var o=r._0;return{ctor:"_Tuple9",_0:l(V,"No",d(W,e(function(t,r){return t?l(N["++"],"Yes, ",l(N["++"],D(r)," minutes")):"No"}),o.shoulderDystocia,o.shoulderDystociaMinutes)),_1:l(V,"No",l(z,function(t){return t?"Yes":"No"},o.laceration)),_2:l(V,"No",l(z,function(t){return t?"Yes":"No"},o.episiotomy)),_3:l(V,"No",l(z,function(t){return t?"Yes":"No"},o.repair)),_4:l(V,"None",o.degree),_5:l(V,"",o.lacerationRepairedBy),_6:l(V,"0",l(z,function(t){return l(N["++"],t," cc")},l(z,D,o.birthEBL))),_7:l(V,"None",o.meconium),_8:l(V,"",o.comments)}}return{ctor:"_Tuple9",_0:"",_1:"",_2:"",_3:"",_4:"",_5:"",_6:"",_7:"",_8:""}}(),c=o._0,n=o._1,a=o._2,_=o._3,i=o._4,u=o._5,s=o._6,m=o._7,f=o._8,p=function(){var r=t.model.laborStage2Record;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple7",_0:l(V,"",e.birthType),_1:l(V,"",e.birthPosition),_2:l(V,"",l(z,D,e.durationPushing)),_3:l(V,"",e.birthPresentation),_4:l(V,"No",l(z,function(t){return t?"Yes":"No"},e.terminalMec)),_5:l(V,"",e.cordWrapType),_6:l(V,"",e.deliveryType)}}return{ctor:"_Tuple7",_0:"",_1:"",_2:"",_3:"",_4:"",_5:"",_6:""}}(),h=p._0,b=p._1,g=p._2,y=p._3,C=p._4,T=p._5,v=p._6;return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 2 Summary"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 2 Total: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Birth type: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(h),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Delivery type: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(v),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Position for birth: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(b),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Duration of pushing: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],g," minutes")),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Presentation at birth: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(y),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Cord wrap: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(T),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Shoulder dystocia: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(c),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Laceration: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(n),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Episiotomy: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(a),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Repair: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(_),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Degree: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(i),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Laceration repaired by: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(u),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Est blood loss at birth: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(s),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Fluid at birth: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(m),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Terminal Mec: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(C),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Comments: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(f),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(t.editMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}(t)},DF=function(t){return!0===t.isEditing?function(t){var r={ctor:"::",_0:Sy,_1:{ctor:"::",_0:Dy,_1:{ctor:"::",_0:By,_1:{ctor:"::",_0:My,_1:{ctor:"[]"}}}}},e=oF(t.model),o=l(Qt,", ",l(it,Ce,l(ut,function(t){return l(ct,t._0,r)},e)));return l(dn,{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 3 Summary - Edit"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-label o-form-element mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Placenta Delivery"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(kB,"Spontaneous",function(t){return l(Jg,Sy,Ka(t))},t.model.s3PlacentaDeliverySpontaneous),_1:{ctor:"::",_0:d(kB,"AMTSL",function(t){return l(Jg,Dy,Ka(t))},t.model.s3PlacentaDeliveryAMTSL),_1:{ctor:"::",_0:d(kB,"CCT",function(t){return l(Jg,By,Ka(t))},t.model.s3PlacentaDeliveryCCT),_1:{ctor:"::",_0:d(kB,"Manual",function(t){return l(Jg,My,Ka(t))},t.model.s3PlacentaDeliveryManual),_1:{ctor:"::",_0:T.cmp($t(o),0)>0?l(dn,{ctor:"::",_0:xn("c-text--mono c-text--loud u-xsmall u-bg-yellow"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.25em 0.25em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin",_1:"0.75em 0 1.25em 0"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(o),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"[]"}),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"::",_0:h(TB,"Maternal Position","maternalPosition",t.model.s3MaternalPosition,function(t){return l(Jg,vy,Qa(t))},!1,{ctor:"::",_0:"Semi-sitting",_1:{ctor:"::",_0:"Lying on back",_1:{ctor:"::",_0:"Squat",_1:{ctor:"[]"}}}},l(vF,vy,e)),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Tx for Blood Loss"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(BB,"Oxytocin",function(t){return l(Jg,Ty,Qa(t))},t.model.s3TxBloodLoss1),_1:{ctor:"::",_0:d(BB,"IV",function(t){return l(Jg,Cy,Qa(t))},t.model.s3TxBloodLoss2),_1:{ctor:"::",_0:d(BB,"Bi-Manual Compression External/Internal",function(t){return l(Jg,yy,Qa(t))},t.model.s3TxBloodLoss3),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,gy,Qa(t))},"Placenta Shape","shape",!0,t.model.s3PlacentaShape,l(vF,gy,e)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:h(TB,"Placenta Insertion","placentaInsertion",t.model.s3PlacentaInsertion,function(t){return l(Jg,by,Qa(t))},!1,{ctor:"::",_0:"Central",_1:{ctor:"::",_0:"Semi-central",_1:{ctor:"::",_0:"Marginal",_1:{ctor:"[]"}}}},l(vF,by,e)),_1:{ctor:"::",_0:h(MB,"Placenta Number Vessels","numberVessels",t.model.s3PlacentaNumVessels,function(t){return l(Jg,hy,Qa(t))},!1,{ctor:"::",_0:"2",_1:{ctor:"::",_0:"3",_1:{ctor:"[]"}}},l(vF,hy,e)),_1:{ctor:"::",_0:h(MB,"Schultz/Duncan","schultzDuncan",t.model.s3SchultzDuncan,function(t){return l(Jg,py,Qa(t))},!1,{ctor:"::",_0:"Schultz",_1:{ctor:"::",_0:"Duncan",_1:{ctor:"[]"}}},l(vF,py,e)),_1:{ctor:"::",_0:h(MB,"Cotyledons","cotyledons",t.model.s3Cotyledons,function(t){return l(Jg,fy,Qa(t))},!1,{ctor:"::",_0:"Cotyledons appear complete",_1:{ctor:"::",_0:"Cotyledons possibly incomplete",_1:{ctor:"[]"}}},l(vF,fy,e)),_1:{ctor:"::",_0:h(MB,"Membranes","membranes",t.model.s3Membranes,function(t){return l(Jg,my,Qa(t))},!1,{ctor:"::",_0:"Membranes appear complete",_1:{ctor:"::",_0:"Membranes possibly incomplete",_1:{ctor:"[]"}}},l(vF,my,e)),_1:{ctor:"::",_0:p(NB,function(t){return l(Jg,dy,Qa(t))},"Comments","",!0,t.model.s3Comments,3),_1:{ctor:"[]"}}}}}}}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(t.saveMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}(t):function(t){var r=function(){var r=t.model.laborStage3Record;if("Just"===r.ctor){var e=t.model.laborStage2Record;if("Just"===e.ctor){var o={ctor:"_Tuple2",_0:e._0.birthDatetime,_1:r._0.placentaDatetime};return"Just"===o._0.ctor&&"Just"===o._1.ctor?l(Fu,o._0._0,o._1._0):""}return""}return""}(),e=function(){var r,e=t.model.laborStage3Record;if("Just"===e.ctor){var o=e._0;return{ctor:"_Tuple8",_0:l(V,"",o.placentaShape),_1:l(V,"",o.placentaInsertion),_2:l(V,"",l(z,D,o.placentaNumVessels)),_3:(r=o.placentaNumVessels,"Just"===r.ctor&&T.eq(r._0,2)),_4:l(V,"",l(z,ad,o.schultzDuncan)),_5:l(V,"",o.cotyledons),_6:l(V,"",o.membranes),_7:l(V,"",o.comments)}}return{ctor:"_Tuple8",_0:"",_1:"",_2:"",_3:!1,_4:"",_5:"",_6:"",_7:""}}(),o=e._0,c=e._1,n=e._2,a=e._3,_=e._4,i=e._5,u=e._6,s=e._7,d=function(t){var r=t;return"Just"===r.ctor&&!0===r._0?"Yes":"No"},m=function(){var r=t.model.laborStage3Record;if("Just"===r.ctor){var e=r._0;return{ctor:"_Tuple8",_0:d(e.placentaDeliverySpontaneous),_1:d(e.placentaDeliveryAMTSL),_2:d(e.placentaDeliveryCCT),_3:d(e.placentaDeliveryManual),_4:l(V,"",e.maternalPosition),_5:l(V,"",e.txBloodLoss1),_6:l(V,"",e.txBloodLoss2),_7:l(V,"",e.txBloodLoss3)}}return{ctor:"_Tuple8",_0:"",_1:"",_2:"",_3:"",_4:"",_5:"",_6:"",_7:""}}(),f=m._0,p=m._1,h=m._2,b=m._3,g=m._4,y=m._5,C=m._6,v=m._7,M=l(Qt,", ",l(ut,function(t){return T.cmp($t(t),0)>0},{ctor:"::",_0:y,_1:{ctor:"::",_0:C,_1:{ctor:"::",_0:v,_1:{ctor:"[]"}}}}));return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 3 Summary"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 3 Total: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Delivery spontaneous: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(f),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Delivery AMTSL: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(p),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Delivery CCT: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(h),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Delivery manual: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(b),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Maternal position: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(g),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Treatments: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(M),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Placenta shape: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(o),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Plancenta insertion: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(c),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"::",_0:Hn(a?{ctor:"::",_0:{ctor:"_Tuple2",_0:"border",_1:"1px dotted red"},_1:{ctor:"[]"}}:{ctor:"[]"}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Placenta num vessels: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(n),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Schultz/Duncan: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(_),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Cotyeledons: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(i),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Membranes: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(u),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Comments: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(s),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(t.editMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}(t)},SF=function(t){return!0===t.isEditing?function(t){var r=rF(t.model);return l(dn,{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Membrane - Edit"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Rupture date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Jg,Kg,Qa(t))},"Date","e.g. 08/14/2017",!1,t.model.membraneRuptureDate,l(vF,Kg,r)),_1:{ctor:"::",_0:p(EB,function(t){return l(Jg,Yg,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.membraneRuptureTime,l(vF,Yg,r)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Membrane rupture date/time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,Og,Zm,"Date","e.g. 08/14/2017",!1,t.model.membraneRuptureDate,l(vF,Kg,r)),_1:{ctor:"::",_0:p(EB,function(t){return l(Jg,Yg,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.membraneRuptureTime,l(vF,Yg,r)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:h(MB,"Rupture","rupture",t.model.membraneRupture,function(t){return l(Jg,Gg,Qa(t))},!1,{ctor:"::",_0:"AROM",_1:{ctor:"::",_0:"SROM",_1:{ctor:"::",_0:"Other",_1:{ctor:"[]"}}}},l(vF,Gg,r)),_1:{ctor:"::",_0:h(MB,"Fluid at rupture","amniotic",t.model.membraneAmniotic,function(t){return l(Jg,jg,Qa(t))},!1,{ctor:"::",_0:"Clear",_1:{ctor:"::",_0:"Lt Stain",_1:{ctor:"::",_0:"Mod Stain",_1:{ctor:"::",_0:"Thick Stain",_1:{ctor:"::",_0:"Other",_1:{ctor:"[]"}}}}}},l(vF,jg,r)),_1:{ctor:"::",_0:p(NB,function(t){return l(Jg,Wg,Qa(t))},"Comments","",!0,t.model.membraneComments,3),_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(t.saveMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}(t):function(t){var r=e(function(t,r){return l(dn,{ctor:"::",_0:xn("mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],t,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn(""),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),o=t.model.membraneRecord;if("Nothing"===o.ctor)return en("");var c,n,a=o._0;return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Membranes/Resuscitation Summary"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(r,"Rupture Date and time",(c=a.ruptureDatetime,n=c,"Just"===n.ctor?d(Hu,ds,fs,n._0):"")),_1:{ctor:"::",_0:l(r,"Rupture",gd(a.rupture)),_1:{ctor:"::",_0:l(r,"Fluid at rupture",hd(a.amniotic)),_1:{ctor:"::",_0:l(r,"Comments",l(V,"",a.comments)),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Close"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-small"),_1:{ctor:"::",_0:Gn(t.editMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}})}(t)},FF=function(t){var r,o=(r=t.model.apgarScores,or(l(Or,e(function(t,r){return!l(ct,t,{ctor:"::",_0:1,_1:{ctor:"::",_0:5,_1:{ctor:"::",_0:10,_1:{ctor:"[]"}}}})}),r))),c=l(bs,10,t.model.apgarScores),n=l(bs,5,t.model.apgarScores),a=l(bs,1,t.model.apgarScores),_=eF(t.model),i=function(){switch(t.model.pendingApgarWizard.ctor){case"MinuteAddOtherApgar":return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,Xg,Qa(t))},"Apgar minute","Not 1, 5, or 10",!0,t.model.pendingApgarMinute,l(vF,Xg,_)),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button"),_1:{ctor:"::",_0:Gn(wg(Hg)),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Next"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}});case"ScoreAddOtherApgar":return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,Qg,Qa(t))},"Apgar score","0 to 10",!0,t.model.pendingApgarScore,l(vF,Qg,_)),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button"),_1:{ctor:"::",_0:Gn(wg(qg)),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Finish"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}});default:return l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-label o-form-element mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"c-text--loud",_1:!0},_1:{ctor:"[]"}}),_1:{ctor:"[]"}},{ctor:"::",_0:en("Add a custom apgar"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button"),_1:{ctor:"::",_0:Gn(wg(Ug)),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Add Apgar"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})}}();return l(dn,{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown&&t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Baby at Birth - Edit"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,ly,Qa(t))},"Baby Last name","Lastname",!0,t.model.bbLastname,l(vF,ly,_)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,sy,Qa(t))},"Baby First name","Firstname",!0,t.model.bbFirstname,l(vF,sy,_)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,uy,Qa(t))},"Baby Middle name","Middlename",!0,t.model.bbMiddlename,l(vF,uy,_)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:h(MB,"Sex","babySex",t.model.bbSex,function(t){return l(Jg,iy,Qa(t))},!1,{ctor:"::",_0:"Male",_1:{ctor:"::",_0:"Female",_1:{ctor:"::",_0:"Ambiguous",_1:{ctor:"[]"}}}},l(vF,iy,_)),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,_y,Qa(t))},"Birth weight (grams)","a number",!0,t.model.bbBirthWeight,l(vF,_y,_)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,$g,l(Ya,1,t))},"Apgar 1","0 to 10",!0,a,""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,$g,l(Ya,5,t))},"Apgar 5","0 to 10",!0,n,""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(Jg,$g,l(Ya,10,t))},"Apgar 10","0 to 10",!0,c,""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:T.cmp(ot(o),0)>0?d(hF,"Custom Apgar Scores",o,!0):en(""),_1:{ctor:"::",_0:i,_1:{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("BFed Established date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(Jg,ay,Qa(t))},"Date","e.g. 08/14/2017",!1,t.model.bbBFedEstablishedDate,l(vF,ay,_)),_1:{ctor:"::",_0:p(EB,function(t){return l(Jg,ny,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.bbBFedEstablishedTime,l(vF,ny,_)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("BFed Established date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,Og,$m,"Date","e.g. 08/14/2017",!1,t.model.bbBFedEstablishedDate,l(vF,ay,_)),_1:{ctor:"::",_0:p(EB,function(t){return l(Jg,ny,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.bbBFedEstablishedTime,l(vF,ny,_)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-label o-form-element mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Resuscitation"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:d(kB,"Bulb",function(t){return l(Jg,cy,Ka(t))},t.model.bbBulb),_1:{ctor:"::",_0:d(kB,"Machine",function(t){return l(Jg,oy,Ka(t))},t.model.bbMachine),_1:{ctor:"::",_0:d(kB,"Free Flow O2",function(t){return l(Jg,ey,Ka(t))},t.model.bbFreeFlowO2),_1:{ctor:"::",_0:d(kB,"Chest Compressions",function(t){return l(Jg,ry,Ka(t))},t.model.bbChestCompressions),_1:{ctor:"::",_0:d(kB,"PPV",function(t){return l(Jg,ty,Ka(t))},t.model.bbPpv),_1:{ctor:"[]"}}}}}}}),_1:{ctor:"::",_0:p(NB,function(t){return l(Jg,Zg,Qa(t))},"Comments","",!0,t.model.bbComments,3),_1:{ctor:"[]"}}}}}}}}}}}}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(t.saveMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})},wF=function(t){var r=t.laborStage1Record;if("Just"===r.ctor){var e=r._0,o={ctor:"_Tuple3",_0:e.mobility,_1:e.durationLatent,_2:e.durationActive};return"Just"===o._0.ctor&&"Just"===o._1.ctor&&"Just"===o._2.ctor}return!1},RF=c(function(t,r,e){var o=d(Pv,a_,U(sm(t)),{ctor:"::",_0:i_,_1:{ctor:"::",_0:h_,_1:{ctor:"[]"}}}),c=d(mB,l(TM,{ctor:"LaborDelIppLoaded",_0:t},o),q,e),n=c._0,a=c._1,_=d(KC,n,CT,kv(o));return l(is["=>"],a,cB(_))}),xF=a(function(t,r,e,o,c){var n=l(N["++"],o,{ctor:"::",_0:r,_1:{ctor:"[]"}}),a=l(tt,function(t){return ju(l(Cm,t,c))},{ctor:"::",_0:r,_1:o}),_=function(){if(a){var c=sM(l(Vg,q,U(n)));return l(is["=>"],t,l($e,M(c),Ue(!0)))}var _=d(Pv,r,e,o),i=d(mB,l(TM,sM(l(Vg,q,U(n))),_),q,t),u=i._0,s=i._1,m=d(KC,u,CT,kv(_));return l(is["=>"],s,cB(m))}(),i=_._0,u=_._1;return l(is["=>"],i,u)}),kF=c(function(t,r,e){return l($e,M(d(uM,t,r,e)),Ue(!0))}),PF=i(function(t,r,e,o,c,n,a){return{isShown:t,isEditing:r,title:e,model:o,closeMsg:c,saveMsg:n,editMsg:a}}),AF={ctor:"Stage3DateTimeModal"},LF={ctor:"Stage2DateTimeModal"},NF={ctor:"Stage1DateTimeModal"},EF=function(t){return l(dn,{ctor:"::",_0:xn("content-flex-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:function(t){var r,e,o,c=function(){var r=t.laborStage3Record;if("Just"===r.ctor){var e=r._0.placentaNumVessels;return"Just"===e.ctor&&T.eq(e._0,2)}return!1}(),n=T.eq(t.babyRecord,q),a="Just"!==(r=t.laborStage1Record).ctor||T.eq(r._0.fullDialation,q),_=a||"Just"!==(e=t.laborStage2Record).ctor||T.eq(e._0.birthDatetime,q),i=_;return"Just"===(o={ctor:"_Tuple2",_0:t.laborStage1Record,_1:t.membraneRecord})._1.ctor||"Just"===o._0.ctor&&T.eq(o._0._0.fullDialation,q),l(dn,{ctor:"::",_0:xn("stage-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:n},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Membrane"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(xg(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:yF(t)?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 1 Ended"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-field c-field--choice c-field-minPadding"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(Eg(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:en(function(){var r=t.laborStage1Record;if("Just"===r.ctor){var e=r._0.fullDialation;return"Just"===e.ctor?d(Hu,ds,fs,e._0):"Click to set"}return"Click to set"}()),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:t.browserSupportsDate?g(JB,T.eq(t.stage1DateTimeModal,NF),"Stage 1 Completed Date/Time",function(t){return l(Jg,rC,Qa(t))},function(t){return l(Jg,tC,Qa(t))},Eg(Za),Eg($a),Fg,t.stage1Date,t.stage1Time):IB(T.eq(t.stage1DateTimeModal,NF))("Stage 1 Completed Date/Time")(Og)(function(t){return l(Jg,rC,Qa(t))})(function(t){return l(Jg,tC,Qa(t))})(Eg(Za))(Eg($a))(Fg)(of)(t.stage1Date)(t.stage1Time),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(Ng(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:wF(t)?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:a},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 2 Ended"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-field c-field--choice c-field-minPadding"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(Lg(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:en(function(){var r=t.laborStage2Record;if("Just"===r.ctor){var e=r._0.birthDatetime;return"Just"===e.ctor?d(Hu,ds,fs,e._0):"Click to set"}return"Click to set"}()),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:t.browserSupportsDate?g(JB,T.eq(t.stage2DateTimeModal,LF),"Stage 2 Completed Date/Time",function(t){return l(Jg,Gy,Qa(t))},function(t){return l(Jg,jy,Qa(t))},Lg(Za),Lg($a),Sg,t.stage2Date,t.stage2Time):IB(T.eq(t.stage2DateTimeModal,LF))("Stage 2 Completed Date/Time")(Og)(function(t){return l(Jg,Gy,Qa(t))})(function(t){return l(Jg,jy,Qa(t))})(Lg(Za))(Lg($a))(Sg)(ef)(t.stage2Date)(t.stage2Time),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(Ag(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:TF(t)?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:_},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Stage 3 Ended"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Tn,{ctor:"::",_0:xn("c-field c-field--choice c-field-minPadding"),_1:{ctor:"[]"}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(Pg(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:en(function(){var r=t.laborStage3Record;if("Just"===r.ctor){var e=r._0.placentaDatetime;return"Just"===e.ctor?d(Hu,ds,fs,e._0):"Click to set"}return"Click to set"}()),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:t.browserSupportsDate?g(JB,T.eq(t.stage3DateTimeModal,AF),"Stage 3 Completed Date/Time",function(t){return l(Jg,wy,Qa(t))},function(t){return l(Jg,Fy,Qa(t))},Pg(Za),Pg($a),Dg,t.stage3Date,t.stage3Time):IB(T.eq(t.stage3DateTimeModal,AF))("Stage 3 Completed Date/Time")(Og)(function(t){return l(Jg,wy,Qa(t))})(function(t){return l(Jg,Fy,Qa(t))})(Pg(Za))(Pg($a))(Dg)(rf)(t.stage3Date)(t.stage3Time),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(kg(t_)),_1:{ctor:"::",_0:Hn(c?{ctor:"::",_0:{ctor:"_Tuple2",_0:"background-color",_1:"red"},_1:{ctor:"[]"}}:{ctor:"[]"}),_1:{ctor:"[]"}}}},{ctor:"::",_0:CF(t)&&!c?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):c?l(fn,{ctor:"::",_0:xn("fa fa-exclamation"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("stage-content"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:i},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--brand c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Baby"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"[]"},{ctor:"::",_0:l(Mn,{ctor:"::",_0:xn("c-button c-button--ghost-brand u-small"),_1:{ctor:"::",_0:Gn(Rg(t_)),_1:{ctor:"[]"}}},{ctor:"::",_0:gF(t)?l(fn,{ctor:"::",_0:xn("fa fa-check"),_1:{ctor:"[]"}},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}):l(pn,{ctor:"[]"},{ctor:"::",_0:en(""),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:en(" Summary"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}})}(t),_1:{ctor:"[]"}})},JF={ctor:"NoDateTimeModal"},IF={ctor:"Stage3ViewState"},OF={ctor:"Stage3EditState"},VF={ctor:"Stage2ViewState"},qF={ctor:"Stage2EditState"},HF={ctor:"Stage1ViewState"},UF={ctor:"Stage1EditState"},zF={ctor:"MembraneViewState"},WF={ctor:"MembraneEditState"},jF={ctor:"BabyViewState"},GF={ctor:"BabyEditState"},YF=c(function(t,r,e){var o,c=function(){var r={ctor:"_Tuple2",_0:e.patientRecord,_1:e.pregnancyRecord};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var o=f(lf,e.laborRecord,e.laborStage1Record,e.laborStage2Record,e.laborStage3Record,{ctor:"[]"});return p(tD,r._0._0,r._1._0,o,e.currPregHeaderContent,e.currTime,t)}return en("")}(),n=!!T.eq(e.babySummaryModal,GF)||!gF(e),a=h(PF,T.eq(e.babySummaryModal,jF)||T.eq(e.babySummaryModal,GF),n,"Baby",e,Rg(Za),Rg($a),Rg(Xa)),_=!!T.eq(e.membraneSummaryModal,WF)||!yF(e),i=h(PF,T.eq(e.membraneSummaryModal,zF)||T.eq(e.membraneSummaryModal,WF),_,"Membrane Summary",e,xg(Za),xg($a),xg(Xa)),u=!!T.eq(e.stage3SummaryModal,OF)||!CF(e),s=h(PF,T.eq(e.stage3SummaryModal,IF)||T.eq(e.stage3SummaryModal,OF),u,"Stage 3 Summary",e,kg(Za),kg($a),kg(Xa)),d=!!T.eq(e.stage2SummaryModal,qF)||!TF(e),m=h(PF,T.eq(e.stage2SummaryModal,VF)||T.eq(e.stage2SummaryModal,qF),d,"Stage 2 Summary",e,Ag(Za),Ag($a),Ag(Xa)),b=!!T.eq(e.stage1SummaryModal,UF)||!wF(e),g=h(PF,T.eq(e.stage1SummaryModal,HF)||T.eq(e.stage1SummaryModal,UF),b,"Stage 1 Summary",e,Ng(Za),Ng($a),Ng(Xa));return l(dn,{ctor:"[]"},{ctor:"::",_0:l(rn,function(t){return function(t){return{ctor:"RotatePregHeaderContent",_0:t}}(t)},c),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("content-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:EF(e),_1:{ctor:"::",_0:MF(g),_1:{ctor:"::",_0:SF(i),_1:{ctor:"::",_0:BF(m),_1:{ctor:"::",_0:DF(s),_1:{ctor:"::",_0:(o=a,!0===o.isEditing?FF(o):bF(o)),_1:{ctor:"::",_0:l(nn,{ctor:"[]"},{ctor:"::",_0:en("Use paper for labor details"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}}),_1:{ctor:"[]"}}})}),KF={ctor:"NoViewEditState"},QF=i(function(t,r,o,c,n,a,_){var i=function(){var t=_;if("Just"===t.ctor){var r=t._0;return{ctor:"_Tuple2",_0:U(jl(r.id)),_1:d(kF,h_,U(r.id),{ctor:"::",_0:p_,_1:{ctor:"::",_0:f_,_1:{ctor:"::",_0:m_,_1:{ctor:"::",_0:F_,_1:{ctor:"::",_0:d_,_1:{ctor:"[]"}}}}}})}}return{ctor:"_Tuple2",_0:q,_1:l($e,$v,Ue(U(zv)))}}(),u=i._0,s=i._1;return e(function(t,r){return d(_s,ss,t.admittanceDate,r.admittanceDate)}),{ctor:"_Tuple3",_0:{browserSupportsDate:t,currTime:r,pregnancy_id:c,currLaborId:u,currPregHeaderContent:ff,dataCache:Tr,pendingSelectQuery:Tr,patientRecord:n,pregnancyRecord:a,laborRecord:_,laborStage1Record:q,laborStage2Record:q,laborStage3Record:q,babyRecord:q,membraneRecord:q,admittanceDate:q,admittanceTime:q,laborDate:q,laborTime:q,pos:q,fh:q,fht:q,systolic:q,diastolic:q,cr:q,temp:q,comments:q,formErrors:{ctor:"[]"},stage1DateTimeModal:JF,stage1Date:q,stage1Time:q,stage1SummaryModal:KF,s1Mobility:q,s1DurationLatentHours:q,s1DurationLatentMinutes:q,s1DurationActiveHours:q,s1DurationActiveMinutes:q,s1Comments:q,stage2DateTimeModal:JF,stage2Date:q,stage2Time:q,stage2SummaryModal:KF,s2BirthType:q,s2BirthPosition:q,s2DurationPushing:q,s2BirthPresentation:q,s2TerminalMec:q,s2CordWrapType:q,s2DeliveryType:q,s2ShoulderDystocia:q,s2ShoulderDystociaMinutes:q,s2Laceration:q,s2Episiotomy:q,s2Repair:q,s2Degree:q,s2LacerationRepairedBy:q,s2BirthEBL:q,s2Meconium:q,s2Comments:q,stage3DateTimeModal:JF,stage3Date:q,stage3Time:q,stage3SummaryModal:KF,s3PlacentaDeliverySpontaneous:q,s3PlacentaDeliveryAMTSL:q,s3PlacentaDeliveryCCT:q,s3PlacentaDeliveryManual:q,s3MaternalPosition:q,s3TxBloodLoss1:q,s3TxBloodLoss2:q,s3TxBloodLoss3:q,s3TxBloodLoss4:q,s3TxBloodLoss5:q,s3PlacentaShape:q,s3PlacentaInsertion:q,s3PlacentaNumVessels:q,s3SchultzDuncan:q,s3Cotyledons:q,s3Membranes:q,s3Comments:q,membraneSummaryModal:KF,membraneRuptureDate:q,membraneRuptureTime:q,membraneRupture:q,membraneRuptureComment:q,membraneAmniotic:q,membraneAmnioticComment:q,membraneComments:q,babySummaryModal:KF,bbBirthNbr:q,bbLastname:q,bbFirstname:q,bbMiddlename:q,bbSex:q,bbBirthWeight:q,bbBFedEstablishedDate:q,bbBFedEstablishedTime:q,bbBulb:q,bbMachine:q,bbFreeFlowO2:q,bbChestCompressions:q,bbPpv:q,bbComments:q,apgarScores:Tr,pendingApgarWizard:zg,pendingApgarMinute:q,pendingApgarScore:q},_1:o,_2:s}}),XF=c(function(t,r,o){var c,n,a,_=r;switch(_.ctor){case"PageNoop":return l(ye,"PageNoop","was called."),{ctor:"_Tuple3",_0:o,_1:De,_2:De};case"CloseAllDialogs":return{ctor:"_Tuple3",_0:function(t){return T.update(t,{stage1SummaryModal:KF,stage1DateTimeModal:JF,stage2SummaryModal:KF,stage2DateTimeModal:JF,stage3SummaryModal:KF,stage3DateTimeModal:JF,membraneSummaryModal:KF,babySummaryModal:KF})}(o),_1:De,_2:De};case"DataCache":var i=function(){var t={ctor:"_Tuple2",_0:_._0,_1:_._1};if("Just"===t._0.ctor&&"Just"===t._1.ctor){var r=t._0._0;return d(fF,r,t._1._0,T.update(o,{dataCache:r}))}return{ctor:"_Tuple2",_0:o,_1:De}}(),u=i._0,s=i._1;return{ctor:"_Tuple3",_0:u,_1:De,_2:s};case"LaborDelIppTick":return{ctor:"_Tuple3",_0:T.update(o,{currTime:_._0}),_1:De,_2:De};case"OpenDatePickerSubMsg":return{ctor:"_Tuple3",_0:o,_1:De,_2:l($e,cM,Ue(_._0))};case"DateFieldSubMsg":var m=_._0;if("DateFieldMessage"!==m.ctor)return{ctor:"_Tuple3",_0:o,_1:De,_2:De};var f=m._0.date,p=m._0.dateField;switch(p.ctor){case"BabyBFedEstablishedDateField":return{ctor:"_Tuple3",_0:T.update(o,{bbBFedEstablishedDate:U(f)}),_1:De,_2:De};case"LaborDelIppLaborDateField":return{ctor:"_Tuple3",_0:T.update(o,{laborDate:U(f)}),_1:De,_2:De};case"LaborDelIppStage1DateField":return{ctor:"_Tuple3",_0:T.update(o,{stage1Date:U(f)}),_1:De,_2:De};case"LaborDelIppStage2DateField":return{ctor:"_Tuple3",_0:T.update(o,{stage2Date:U(f)}),_1:De,_2:De};case"LaborDelIppStage3DateField":return{ctor:"_Tuple3",_0:T.update(o,{stage3Date:U(f)}),_1:De,_2:De};case"MembraneRuptureDateField":return{ctor:"_Tuple3",_0:T.update(o,{membraneRuptureDate:U(f)}),_1:De,_2:De};case"UnknownDateField":return{ctor:"_Tuple3",_0:o,_1:De,_2:iM(l(N["++"],"Unknown date field: ",p._0))};default:return{ctor:"_Tuple3",_0:o,_1:De,_2:De}}case"FldChgSubMsg":var b=_._0,g=function(){var t=_._1;switch(t.ctor){case"FldChgString":var r=t._0;switch(b.ctor){case"AdmittanceDateFld":return l(is["=>"],T.update(o,{admittanceDate:Tu(r)}),De);case"AdmittanceTimeFld":return l(is["=>"],T.update(o,{admittanceTime:U(Lu(r))}),De);case"LaborDateFld":return l(is["=>"],T.update(o,{laborDate:Tu(r)}),De);case"LaborTimeFld":return l(is["=>"],T.update(o,{laborTime:U(Lu(r))}),De);case"PosFld":return l(is["=>"],T.update(o,{pos:U(r)}),De);case"FhFld":return l(is["=>"],T.update(o,{fh:U(Xu(r))}),De);case"FhtFld":return l(is["=>"],T.update(o,{fht:U(r)}),De);case"SystolicFld":return l(is["=>"],T.update(o,{systolic:U(Xu(r))}),De);case"DiastolicFld":return l(is["=>"],T.update(o,{diastolic:U(Xu(r))}),De);case"CrFld":return l(is["=>"],T.update(o,{cr:U(Xu(r))}),De);case"TempFld":return l(is["=>"],T.update(o,{temp:U(Yu(r))}),De);case"CommentsFld":return l(is["=>"],T.update(o,{comments:U(r)}),De);case"Stage1DateFld":return l(is["=>"],T.update(o,{stage1Date:Tu(r)}),De);case"Stage1TimeFld":return l(is["=>"],T.update(o,{stage1Time:U(Lu(r))}),De);case"Stage1MobilityFld":return l(is["=>"],T.update(o,{s1Mobility:U(r)}),De);case"Stage1DurationLatentHoursFld":return l(is["=>"],T.update(o,{s1DurationLatentHours:U(Xu(r))}),De);case"Stage1DurationLatentMinutesFld":return l(is["=>"],T.update(o,{s1DurationLatentMinutes:U(Xu(r))}),De);case"Stage1DurationActiveHoursFld":return l(is["=>"],T.update(o,{s1DurationActiveHours:U(Xu(r))}),De);case"Stage1DurationActiveMinutesFld":return l(is["=>"],T.update(o,{s1DurationActiveMinutes:U(Xu(r))}),De);case"Stage1CommentsFld":return l(is["=>"],T.update(o,{s1Comments:U(r)}),De);case"Stage2DateFld":return l(is["=>"],T.update(o,{stage2Date:Tu(r)}),De);case"Stage2TimeFld":return l(is["=>"],T.update(o,{stage2Time:U(Lu(r))}),De);case"Stage2BirthDatetimeFld":return l(is["=>"],o,De);case"Stage2BirthTypeFld":return l(is["=>"],T.update(o,{s2BirthType:U(r)}),De);case"Stage2BirthPositionFld":return l(is["=>"],T.update(o,{s2BirthPosition:U(r)}),De);case"Stage2DurationPushingFld":return l(is["=>"],T.update(o,{s2DurationPushing:U(Xu(r))}),De);case"Stage2BirthPresentationFld":return l(is["=>"],T.update(o,{s2BirthPresentation:U(r)}),De);case"Stage2CordWrapTypeFld":return l(is["=>"],T.update(o,{s2CordWrapType:U(r)}),De);case"Stage2DeliveryTypeFld":return l(is["=>"],T.update(o,{s2DeliveryType:U(r)}),De);case"Stage2ShoulderDystociaMinutesFld":return l(is["=>"],T.update(o,{s2ShoulderDystociaMinutes:U(Xu(r))}),De);case"Stage2DegreeFld":return l(is["=>"],T.update(o,{s2Degree:U(r)}),De);case"Stage2LacerationRepairedByFld":return l(is["=>"],T.update(o,{s2LacerationRepairedBy:U(r)}),De);case"Stage2BirthEBLFld":return l(is["=>"],T.update(o,{s2BirthEBL:U(r)}),De);case"Stage2MeconiumFld":return l(is["=>"],T.update(o,{s2Meconium:U(r)}),De);case"Stage2CommentsFld":return l(is["=>"],T.update(o,{s2Comments:U(r)}),De);case"Stage3DateFld":return l(is["=>"],T.update(o,{stage3Date:Tu(r)}),De);case"Stage3TimeFld":return l(is["=>"],T.update(o,{stage3Time:U(Lu(r))}),De);case"Stage3MaternalPositionFld":return l(is["=>"],T.update(o,{s3MaternalPosition:U(r)}),De);case"Stage3TxBloodLoss1Fld":return l(is["=>"],T.update(o,{s3TxBloodLoss1:U(r)}),De);case"Stage3TxBloodLoss2Fld":return l(is["=>"],T.update(o,{s3TxBloodLoss2:U(r)}),De);case"Stage3TxBloodLoss3Fld":return l(is["=>"],T.update(o,{s3TxBloodLoss3:U(r)}),De);case"Stage3TxBloodLoss4Fld":return l(is["=>"],T.update(o,{s3TxBloodLoss4:U(r)}),De);case"Stage3TxBloodLoss5Fld":return l(is["=>"],T.update(o,{s3TxBloodLoss5:U(r)}),De);case"Stage3PlacentaShapeFld":return l(is["=>"],T.update(o,{s3PlacentaShape:U(r)}),De);case"Stage3PlacentaInsertionFld":return l(is["=>"],T.update(o,{s3PlacentaInsertion:U(r)}),De);case"Stage3PlacentaNumVesselsFld":return l(is["=>"],T.update(o,{s3PlacentaNumVessels:U(Xu(r))}),De);case"Stage3SchultzDuncanFld":return l(is["=>"],T.update(o,{s3SchultzDuncan:U(r)}),De);case"Stage3CotyledonsFld":return l(is["=>"],T.update(o,{s3Cotyledons:U(r)}),De);case"Stage3MembranesFld":return l(is["=>"],T.update(o,{s3Membranes:U(r)}),De);case"Stage3CommentsFld":return l(is["=>"],T.update(o,{s3Comments:U(r)}),De);case"MembraneRuptureDateFld":return l(is["=>"],T.update(o,{membraneRuptureDate:Tu(r)}),De);case"MembraneRuptureTimeFld":return l(is["=>"],T.update(o,{membraneRuptureTime:U(Lu(r))}),De);case"MembraneRuptureFld":return l(is["=>"],T.update(o,{membraneRupture:U(r)}),De);case"MembraneRuptureCommentFld":return l(is["=>"],T.update(o,{membraneRuptureComment:U(r)}),De);case"MembraneAmnioticFld":return l(is["=>"],T.update(o,{membraneAmniotic:U(r)}),De);case"MembraneAmnioticCommentFld":return l(is["=>"],T.update(o,{membraneAmnioticComment:U(r)}),De);case"MembraneCommentsFld":return l(is["=>"],T.update(o,{membraneComments:U(r)}),De);case"BabyLastnameFld":return l(is["=>"],T.update(o,{bbLastname:U(r)}),De);case"BabyFirstnameFld":return l(is["=>"],T.update(o,{bbFirstname:U(r)}),De);case"BabyMiddlenameFld":return l(is["=>"],T.update(o,{bbMiddlename:U(r)}),De);case"BabySexFld":return l(is["=>"],T.update(o,{bbSex:U(l(cs,{ctor:"::",_0:"Male",_1:{ctor:"::",_0:"Female",_1:{ctor:"::",_0:"Ambiguous",_1:{ctor:"[]"}}}},r))}),De);case"BabyBirthWeightFld":return l(is["=>"],T.update(o,{bbBirthWeight:U(Xu(r))}),De);case"BabyBFedEstablishedDateFld":return l(is["=>"],T.update(o,{bbBFedEstablishedDate:Tu(r)}),De);case"BabyBFedEstablishedTimeFld":return l(is["=>"],T.update(o,{bbBFedEstablishedTime:U(Lu(r))}),De);case"BabyCommentsFld":return l(is["=>"],T.update(o,{bbComments:U(r)}),De);case"ApgarOtherMinuteFld":return l(is["=>"],T.update(o,{pendingApgarMinute:U(r)}),De);case"ApgarOtherScoreFld":return l(is["=>"],T.update(o,{pendingApgarScore:U(Xu(r))}),De);default:return l(is["=>"],o,iM(l(N["++"],"LaborDelIpp.update FldChgSubMsg: ","Unknown field encountered in FldChgString. Possible mismatch between Field and FldChgValue.")))}case"FldChgStringList":return l(is["=>"],o,De);case"FldChgBool":var e=t._0;switch(b.ctor){case"Stage2ShoulderDystociaFld":return l(is["=>"],T.update(o,{s2ShoulderDystocia:U(e)}),De);case"Stage2TerminalMecFld":return l(is["=>"],T.update(o,{s2TerminalMec:U(e)}),De);case"Stage2LacerationFld":return T.eq(e,!1)&&(T.eq(o.s2Episiotomy,q)||T.eq(o.s2Episiotomy,U(!1)))?l(is["=>"],T.update(o,{s2Laceration:U(e),s2Degree:q}),De):l(is["=>"],T.update(o,{s2Laceration:U(e)}),De);case"Stage2EpisiotomyFld":return T.eq(e,!1)&&(T.eq(o.s2Laceration,q)||T.eq(o.s2Laceration,U(!1)))?l(is["=>"],T.update(o,{s2Episiotomy:U(e),s2Degree:q}),De):l(is["=>"],T.update(o,{s2Episiotomy:U(e)}),De);case"Stage2RepairFld":return T.eq(e,!1)?l(is["=>"],T.update(o,{s2Repair:U(e),s2Degree:q,s2LacerationRepairedBy:q}),De):l(is["=>"],T.update(o,{s2Repair:U(e)}),De);case"Stage3PlacentaDeliverySpontaneousFld":return l(is["=>"],T.update(o,{s3PlacentaDeliverySpontaneous:U(e)}),De);case"Stage3PlacentaDeliveryAMTSLFld":return l(is["=>"],T.update(o,{s3PlacentaDeliveryAMTSL:U(e)}),De);case"Stage3PlacentaDeliveryCCTFld":return l(is["=>"],T.update(o,{s3PlacentaDeliveryCCT:U(e)}),De);case"Stage3PlacentaDeliveryManualFld":return l(is["=>"],T.update(o,{s3PlacentaDeliveryManual:U(e)}),De);case"BabyBulbFld":return l(is["=>"],T.update(o,{bbBulb:U(e)}),De);case"BabyMachineFld":return l(is["=>"],T.update(o,{bbMachine:U(e)}),De);case"BabyFreeFlowO2Fld":return l(is["=>"],T.update(o,{bbFreeFlowO2:U(e)}),De);case"BabyChestCompressionsFld":return l(is["=>"],T.update(o,{bbChestCompressions:U(e)}),De);case"BabyPpvFld":return l(is["=>"],T.update(o,{bbPpv:U(e)}),De);default:return l(is["=>"],o,iM(l(N["++"],"LaborDelIpp.update FldChgSubMsg: ","Unknown field encountered in FldChgBool. Possible mismatch between Field and FldChgValue.")))}default:var c=t._0;if("ApgarStandardFld"===b.ctor){var n=qt(t._1);if("Ok"===n.ctor){var a=n._0;return T.cmp(a,0)>-1&&T.cmp(a,10)<1?l(is["=>"],T.update(o,{apgarScores:d(Er,c,l(Fs,U(c),U(a)),o.apgarScores)}),De):l(is["=>"],o,De)}return l(is["=>"],T.update(o,{apgarScores:l(Ur,c,o.apgarScores)}),De)}return l(is["=>"],o,iM(l(N["++"],"LaborDelIpp.update FldChgSubMsg: ","Unknown field encountered in FldChgTwoMaybeString. Possible mismatch between Field and FldChgValue.")))}}();return u=g._0,s=g._1,{ctor:"_Tuple3",_0:u,_1:De,_2:s};case"RotatePregHeaderContent":_._0;var y=function(){switch(o.currPregHeaderContent.ctor){case"PrenatalContent":return ff;case"LaborContent":return mf;default:return pf}}();return{ctor:"_Tuple3",_0:T.update(o,{currPregHeaderContent:y}),_1:De,_2:De};case"HandleStage1DateTimeModal":switch(_._0.ctor){case"OpenDialog":return{ctor:"_Tuple3",_0:function(){var t={ctor:"_Tuple3",_0:o.stage1Date,_1:o.stage1Time,_2:o.laborStage1Record};if("Nothing"===t._0.ctor&&"Nothing"===t._1.ctor){if("Nothing"===t._2.ctor)return T.update(o,{stage1DateTimeModal:T.eq(o.stage1DateTimeModal,NF)?JF:NF,stage1Date:U(Ro(o.currTime)),stage1Time:U(Eu(o.currTime))});var r=t._2._0;return T.update(o,{stage1DateTimeModal:T.eq(o.stage1DateTimeModal,NF)?JF:NF,stage1Date:U(l(V,Ro(o.currTime),r.fullDialation)),stage1Time:U(l(V,Eu(o.currTime),Au(r.fullDialation)))})}return T.update(o,{stage1DateTimeModal:NF})}(),_1:De,_2:Be({ctor:"::",_0:T.eq(o.stage1DateTimeModal,JF)?Ov(Hv):De,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage1DateTimeModal:JF}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:o,_1:De,_2:De};default:var C=iF(o);if("[]"===C.ctor){var B=function(){var t,r={ctor:"_Tuple3",_0:o.laborStage1Record,_1:o.stage1Date,_2:o.stage1Time};t:do{if("Just"===r._0.ctor){if("Just"===r._1.ctor){if("Just"===r._2.ctor){var e=Zu(r._2._0);if("Just"===e.ctor){var c=T.update(r._0._0,{fullDialation:U(l(Vu,r._1._0,{ctor:"_Tuple2",_0:e._0._0,_1:e._0._1}))});return"Just"===(t=o.laborStage2Record).ctor&&d(mF,t._0.birthDatetime,o.stage1Date,o.stage1Time)?d(Yv,{ctor:"::",_0:"Stage 1, 2, and 3 dates and times must be in chronological order.",_1:{ctor:"[]"}},10,Lv):d(tM,l(wM,sM(l(Vg,q,U({ctor:"::",_0:p_,_1:{ctor:"[]"}}))),c),yT,Yl(c))}return CM}break t}if("Nothing"===r._2.ctor)return c=T.update(r._0._0,{fullDialation:q}),d(tM,l(wM,sM(l(Vg,q,U({ctor:"::",_0:p_,_1:{ctor:"[]"}}))),c),yT,Yl(c));break t}if("Just"===r._1.ctor&&"Just"===r._2.ctor){var n=dF(o);if("Just"===n.ctor){var a=n._0;return d(tM,l(GM,sM(l(Vg,q,U({ctor:"::",_0:p_,_1:{ctor:"[]"}}))),a),vT,Gl(a))}return CM}break t}while(0);return CM}();return{ctor:"_Tuple3",_0:T.update(o,{stage1DateTimeModal:JF}),_1:De,_2:Be({ctor:"::",_0:l($e,M(B),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}var S=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,C));return{ctor:"_Tuple3",_0:T.update(o,{stage1DateTimeModal:JF}),_1:De,_2:l(Qv,S,10)}}case"HandleStage1SummaryModal":switch(_._0.ctor){case"OpenDialog":var F=function(){var t=o.laborStage1Record;if("Just"===t.ctor){var r=t._0;return{ctor:"_Tuple4",_0:r.mobility,_1:r.durationLatent,_2:r.durationActive,_3:r.comments}}return{ctor:"_Tuple4",_0:q,_1:q,_2:q,_3:q}}(),w=F._0,R=F._1,x=F._2,k=F._3;return{ctor:"_Tuple3",_0:T.update(o,{stage1SummaryModal:T.eq(o.stage1SummaryModal,KF)?HF:KF,s1Mobility:w,s1DurationLatentHours:l(z,D,Bu(R)),s1DurationLatentMinutes:l(z,D,Du(R)),s1DurationActiveHours:l(z,D,Bu(x)),s1DurationActiveMinutes:l(z,D,Du(x)),s1Comments:k}),_1:De,_2:Be({ctor:"::",_0:T.eq(o.stage1SummaryModal,KF)?Ov(Hv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage1SummaryModal:KF}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage1SummaryModal:UF}),_1:De,_2:T.eq(o.stage1SummaryModal,KF)?Be({ctor:"::",_0:Ov(Hv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var P=_F(o);return"[]"===P.ctor?(B=function(){var t=o.laborStage1Record;if("Just"===t.ctor){var r=T.update(t._0,{mobility:o.s1Mobility,durationLatent:l(vu,bu(o.s1DurationLatentHours),bu(o.s1DurationLatentMinutes)),durationActive:l(vu,bu(o.s1DurationActiveHours),bu(o.s1DurationActiveMinutes)),comments:o.s1Comments});return d(tM,l(wM,sM(l(Vg,q,U({ctor:"::",_0:p_,_1:{ctor:"[]"}}))),r),yT,Yl(r))}var e=dF(o);if("Just"===e.ctor){var c=e._0;return d(tM,l(GM,sM(l(Vg,q,U({ctor:"::",_0:p_,_1:{ctor:"[]"}}))),c),vT,Gl(c))}return l(aM,pC,"deriveLaborStage1RecordNew returned a Nothing")}(),{ctor:"_Tuple3",_0:T.update(o,{stage1SummaryModal:KF}),_1:De,_2:Be({ctor:"::",_0:l($e,M(B),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}):(S=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,P)),{ctor:"_Tuple3",_0:T.update(o,{stage1SummaryModal:KF}),_1:De,_2:l(Qv,S,10)})}case"HandleStage2DateTimeModal":switch(_._0.ctor){case"OpenDialog":return{ctor:"_Tuple3",_0:function(){var t={ctor:"_Tuple3",_0:o.stage2Date,_1:o.stage2Time,_2:o.laborStage2Record};if("Nothing"===t._0.ctor&&"Nothing"===t._1.ctor){if("Nothing"===t._2.ctor)return T.update(o,{stage2DateTimeModal:T.eq(o.stage2DateTimeModal,LF)?JF:LF,stage2Date:U(Ro(o.currTime)),stage2Time:U(Eu(o.currTime))});var r=t._2._0;return T.update(o,{stage2DateTimeModal:T.eq(o.stage2DateTimeModal,LF)?JF:LF,stage2Date:U(l(V,Ro(o.currTime),r.birthDatetime)),stage2Time:U(l(V,Eu(o.currTime),Au(r.birthDatetime)))})}return T.update(o,{stage2DateTimeModal:LF})}(),_1:De,_2:Be({ctor:"::",_0:T.eq(o.stage2DateTimeModal,JF)?Ov(Hv):De,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage2DateTimeModal:JF}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:o,_1:De,_2:De};default:var A=aF(o);if("[]"===A.ctor){var L="Just"===(a=o.laborStage1Record).ctor&&d(mF,a._0.fullDialation,o.stage2Date,o.stage2Time);return B=function(){var t,r={ctor:"_Tuple4",_0:n,_1:o.laborStage2Record,_2:o.stage2Date,_3:o.stage2Time};t:do{if(!1===r._0)return d(Yv,{ctor:"::",_0:"The stage 1, 2, and 3 dates and times must be in chronological order.",_1:{ctor:"[]"}},10,Lv);if("Just"===r._1.ctor){if("Just"===r._2.ctor){if("Just"===r._3.ctor){var e=Zu(r._3._0);if("Just"===e.ctor){var c=T.update(r._1._0,{birthDatetime:U(l(Vu,r._2._0,{ctor:"_Tuple2",_0:e._0._0,_1:e._0._1}))}),n="Just"!==(t=o.laborStage3Record).ctor||!d(mF,t._0.placentaDatetime,o.stage2Date,o.stage2Time);return n?d(tM,l(FM,sM(l(Vg,q,U({ctor:"::",_0:f_,_1:{ctor:"[]"}}))),c),yT,rd(c)):d(Yv,{ctor:"::",_0:"Stage 1, 2, and 3 dates and times must be in chronological order.",_1:{ctor:"[]"}},10,Lv)}return CM}break t}if("Nothing"===r._3.ctor)return c=T.update(r._1._0,{birthDatetime:q}),d(tM,l(FM,sM(l(Vg,q,U({ctor:"::",_0:f_,_1:{ctor:"[]"}}))),c),yT,rd(c));break t}if("Just"===r._2.ctor&&"Just"===r._3.ctor){var a=lF(o);if("Just"===a.ctor){var _=a._0;return d(tM,l(jM,sM(l(Vg,q,U({ctor:"::",_0:f_,_1:{ctor:"[]"}}))),_),vT,td(_))}return CM}break t}while(0);return CM}(),{ctor:"_Tuple3",_0:T.update(o,{stage2DateTimeModal:JF}),_1:De,_2:Be({ctor:"::",_0:l($e,M(B),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}return S=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,A)),{ctor:"_Tuple3",_0:T.update(o,{stage2DateTimeModal:JF}),_1:De,_2:l(Qv,S,10)}}case"HandleStage2SummaryModal":switch(_._0.ctor){case"OpenDialog":return u=function(){var t=o.laborStage2Record;if("Just"===t.ctor){var r=t._0;return T.update(o,{s2BirthType:l(Gu,r.birthType,o.s2BirthType),s2BirthPosition:l(Gu,r.birthPosition,o.s2BirthPosition),s2DurationPushing:l(Gu,l(z,D,r.durationPushing),o.s2DurationPushing),s2BirthPresentation:l(Gu,r.birthPresentation,o.s2BirthPresentation),s2TerminalMec:l(Gu,r.terminalMec,o.s2TerminalMec),s2CordWrapType:l(Gu,r.cordWrapType,o.s2CordWrapType),s2DeliveryType:l(Gu,r.deliveryType,o.s2DeliveryType),s2ShoulderDystocia:l(Gu,r.shoulderDystocia,o.s2ShoulderDystocia),s2ShoulderDystociaMinutes:l(Gu,l(z,D,r.shoulderDystociaMinutes),o.s2ShoulderDystociaMinutes),s2Laceration:l(Gu,r.laceration,o.s2Laceration),s2Episiotomy:l(Gu,r.episiotomy,o.s2Episiotomy),s2Repair:l(Gu,r.repair,o.s2Repair),s2Degree:l(Gu,r.degree,o.s2Degree),s2LacerationRepairedBy:l(Gu,r.lacerationRepairedBy,o.s2LacerationRepairedBy),s2BirthEBL:l(Gu,l(z,D,r.birthEBL),o.s2BirthEBL),s2Meconium:l(Gu,r.meconium,o.s2Meconium),s2Comments:l(Gu,r.comments,o.s2Comments)})}return o}(),{ctor:"_Tuple3",_0:T.update(u,{stage2SummaryModal:T.eq(u.stage2SummaryModal,KF)?VF:KF}),_1:De,_2:Be({ctor:"::",_0:T.eq(u.stage2SummaryModal,KF)?Ov(Hv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage2SummaryModal:KF}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage2SummaryModal:qF}),_1:De,_2:T.eq(o.stage2SummaryModal,KF)?Be({ctor:"::",_0:Ov(Hv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var E=cF(o);return"[]"===E.ctor?(B=function(){var t=o.laborStage2Record;if("Just"===t.ctor){var r=T.update(t._0,{birthType:o.s2BirthType,birthPosition:o.s2BirthPosition,durationPushing:bu(o.s2DurationPushing),birthPresentation:o.s2BirthPresentation,terminalMec:o.s2TerminalMec,cordWrapType:o.s2CordWrapType,deliveryType:o.s2DeliveryType,shoulderDystocia:o.s2ShoulderDystocia,shoulderDystociaMinutes:bu(o.s2ShoulderDystociaMinutes),laceration:o.s2Laceration,episiotomy:o.s2Episiotomy,repair:o.s2Repair,degree:o.s2Degree,lacerationRepairedBy:o.s2LacerationRepairedBy,birthEBL:bu(o.s2BirthEBL),meconium:o.s2Meconium,comments:o.s2Comments});return d(tM,l(FM,sM(l(Vg,q,U({ctor:"::",_0:f_,_1:{ctor:"[]"}}))),r),yT,rd(r))}var e=lF(o);if("Just"===e.ctor){var c=e._0;return d(tM,l(jM,sM(l(Vg,q,U({ctor:"::",_0:f_,_1:{ctor:"[]"}}))),c),vT,td(c))}return l(aM,pC,"deriveLaborStage2RecordNew returned a Nothing")}(),{ctor:"_Tuple3",_0:T.update(o,{stage2SummaryModal:KF}),_1:De,_2:Be({ctor:"::",_0:l($e,M(B),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}):(S=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,E)),{ctor:"_Tuple3",_0:T.update(o,{stage2SummaryModal:KF}),_1:De,_2:l(Qv,S,10)})}case"HandleStage3DateTimeModal":switch(_._0.ctor){case"OpenDialog":return{ctor:"_Tuple3",_0:function(){var t={ctor:"_Tuple3",_0:o.stage3Date,_1:o.stage3Time,_2:o.laborStage3Record};if("Nothing"===t._0.ctor&&"Nothing"===t._1.ctor){if("Nothing"===t._2.ctor)return T.update(o,{stage3DateTimeModal:T.eq(o.stage3DateTimeModal,AF)?JF:AF,stage3Date:U(Ro(o.currTime)),stage3Time:U(Eu(o.currTime))});var r=t._2._0;return T.update(o,{stage3DateTimeModal:T.eq(o.stage3DateTimeModal,AF)?JF:AF,stage3Date:U(l(V,Ro(o.currTime),r.placentaDatetime)),stage3Time:U(l(V,Eu(o.currTime),Au(r.placentaDatetime)))})}return T.update(o,{stage3DateTimeModal:AF})}(),_1:De,_2:Be({ctor:"::",_0:T.eq(o.stage3DateTimeModal,JF)?Ov(Hv):De,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage3DateTimeModal:JF}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:o,_1:De,_2:De};default:var J=nF(o);return"[]"===J.ctor?(L="Just"===(n=o.laborStage2Record).ctor&&d(mF,n._0.birthDatetime,o.stage3Date,o.stage3Time),B=function(){var t={ctor:"_Tuple4",_0:L,_1:o.laborStage3Record,_2:o.stage3Date,_3:o.stage3Time};t:do{if(!1===t._0)return d(Yv,{ctor:"::",_0:"The stage 1, 2, and 3 dates and times must be in chronological order.",_1:{ctor:"[]"}},10,Lv);if("Just"===t._1.ctor){if("Just"===t._2.ctor){if("Just"===t._3.ctor){var r=Zu(t._3._0);if("Just"===r.ctor){var e=T.update(t._1._0,{placentaDatetime:U(l(Vu,t._2._0,{ctor:"_Tuple2",_0:r._0._0,_1:r._0._1}))});return d(tM,l(SM,sM(l(Vg,q,U({ctor:"::",_0:m_,_1:{ctor:"[]"}}))),e),yT,_d(e))}return CM}break t}if("Nothing"===t._3.ctor)return e=T.update(t._1._0,{placentaDatetime:q}),d(tM,l(SM,sM(l(Vg,q,U({ctor:"::",_0:m_,_1:{ctor:"[]"}}))),e),yT,_d(e));break t}if("Just"===t._2.ctor&&"Just"===t._3.ctor){var c=uF(o);if("Just"===c.ctor){var n=c._0;return d(tM,l(WM,sM(l(Vg,q,U({ctor:"::",_0:m_,_1:{ctor:"[]"}}))),n),vT,id(n))}return CM}break t}while(0);return CM}(),{ctor:"_Tuple3",_0:T.update(o,{stage3DateTimeModal:JF}),_1:De,_2:Be({ctor:"::",_0:l($e,M(B),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}):(S=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,J)),{ctor:"_Tuple3",_0:T.update(o,{stage3DateTimeModal:JF}),_1:De,_2:l(Qv,S,10)})}case"HandleStage3SummaryModal":switch(_._0.ctor){case"OpenDialog":return u=function(){var t=o.laborStage3Record;if("Just"===t.ctor){var r=t._0;return T.update(o,{s3PlacentaDeliverySpontaneous:l(Gu,r.placentaDeliverySpontaneous,o.s3PlacentaDeliverySpontaneous),s3PlacentaDeliveryAMTSL:l(Gu,r.placentaDeliveryAMTSL,o.s3PlacentaDeliveryAMTSL),s3PlacentaDeliveryCCT:l(Gu,r.placentaDeliveryCCT,o.s3PlacentaDeliveryCCT),s3PlacentaDeliveryManual:l(Gu,r.placentaDeliveryManual,o.s3PlacentaDeliveryManual),s3MaternalPosition:l(Gu,r.maternalPosition,o.s3MaternalPosition),s3TxBloodLoss1:l(Gu,r.txBloodLoss1,o.s3TxBloodLoss1),s3TxBloodLoss2:l(Gu,r.txBloodLoss2,o.s3TxBloodLoss2),s3TxBloodLoss3:l(Gu,r.txBloodLoss3,o.s3TxBloodLoss3),s3TxBloodLoss4:l(Gu,r.txBloodLoss4,o.s3TxBloodLoss4),s3TxBloodLoss5:l(Gu,r.txBloodLoss5,o.s3TxBloodLoss5),s3PlacentaShape:l(Gu,r.placentaShape,o.s3PlacentaShape),s3PlacentaInsertion:l(Gu,r.placentaInsertion,o.s3PlacentaInsertion),s3PlacentaNumVessels:l(Gu,l(z,D,r.placentaNumVessels),o.s3PlacentaNumVessels),s3SchultzDuncan:l(Gu,l(z,ad,r.schultzDuncan),o.s3SchultzDuncan),s3Cotyledons:l(Gu,r.cotyledons,o.s3Cotyledons),s3Membranes:l(Gu,r.membranes,o.s3Membranes),s3Comments:l(Gu,r.comments,o.s3Comments)})}return o}(),{ctor:"_Tuple3",_0:T.update(u,{stage3SummaryModal:T.eq(u.stage3SummaryModal,KF)?IF:KF}),_1:De,_2:Be({ctor:"::",_0:T.eq(u.stage3SummaryModal,KF)?Ov(Hv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage3SummaryModal:KF}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:T.update(o,{stage3SummaryModal:OF}),_1:De,_2:T.eq(o.stage3SummaryModal,KF)?Be({ctor:"::",_0:Ov(Hv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var I=oF(o);return"[]"===I.ctor?(B=function(){var t=o.laborStage3Record;if("Just"===t.ctor){var r=T.update(t._0,{placentaDeliverySpontaneous:o.s3PlacentaDeliverySpontaneous,placentaDeliveryAMTSL:o.s3PlacentaDeliveryAMTSL,placentaDeliveryCCT:o.s3PlacentaDeliveryCCT,placentaDeliveryManual:o.s3PlacentaDeliveryManual,maternalPosition:o.s3MaternalPosition,txBloodLoss1:o.s3TxBloodLoss1,txBloodLoss2:o.s3TxBloodLoss2,txBloodLoss3:o.s3TxBloodLoss3,txBloodLoss4:o.s3TxBloodLoss4,txBloodLoss5:o.s3TxBloodLoss5,placentaShape:o.s3PlacentaShape,placentaInsertion:o.s3PlacentaInsertion,placentaNumVessels:bu(o.s3PlacentaNumVessels),schultzDuncan:fd(l(V,"",o.s3SchultzDuncan)),cotyledons:o.s3Cotyledons,membranes:o.s3Membranes,comments:o.s3Comments});return d(tM,l(SM,sM(l(Vg,q,U({ctor:"::",_0:m_,_1:{ctor:"[]"}}))),r),yT,_d(r))}var e=uF(o);if("Just"===e.ctor){var c=e._0;return d(tM,l(WM,sM(l(Vg,q,U({ctor:"::",_0:m_,_1:{ctor:"[]"}}))),c),vT,id(c))}return l(aM,pC,"deriveLaborStage3RecordNew returned a Nothing")}(),{ctor:"_Tuple3",_0:T.update(o,{stage3SummaryModal:KF}),_1:De,_2:Be({ctor:"::",_0:l($e,M(B),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}):(S=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,I)),{ctor:"_Tuple3",_0:T.update(o,{stage3SummaryModal:KF}),_1:De,_2:l(Qv,S,10)})}case"HandleMembraneSummaryModal":switch(_._0.ctor){case"OpenDialog":return u=function(){var t=o.membraneRecord;if("Just"===t.ctor){var r=t._0;return T.update(o,{membraneRuptureDate:r.ruptureDatetime,membraneRuptureTime:l(Gu,l(z,Pu,r.ruptureDatetime),o.membraneRuptureTime),membraneRupture:l(Gu,U(gd(r.rupture)),o.membraneRupture),membraneRuptureComment:l(Gu,r.ruptureComment,o.membraneRuptureComment),membraneAmniotic:l(Gu,U(hd(r.amniotic)),o.membraneAmniotic),membraneAmnioticComment:l(Gu,r.amnioticComment,o.membraneAmnioticComment),membraneComments:l(Gu,r.comments,o.membraneComments)})}return o}(),{ctor:"_Tuple3",_0:T.update(u,{membraneSummaryModal:T.eq(o.membraneSummaryModal,KF)?zF:KF}),_1:De,_2:Be({ctor:"::",_0:T.eq(o.membraneSummaryModal,KF)?Ov(Hv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{membraneSummaryModal:KF}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:T.update(o,{membraneSummaryModal:WF}),_1:De,_2:T.eq(o.membraneSummaryModal,KF)?Be({ctor:"::",_0:Ov(Hv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var O=rF(o);if("[]"===O.ctor){var H=d(hs,o.membraneRuptureDate,o.membraneRuptureTime,"Please correct the date and time for the rupture."),W=Ou({ctor:"::",_0:H,_1:{ctor:"[]"}});return B=function(){var t={ctor:"_Tuple2",_0:T.cmp(ot(W),0)>0,_1:o.membraneRecord};if(!0===t._0)return d(Yv,l(N["++"],W,{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}}),10,Lv);if("Just"===t._1.ctor){var r=T.update(t._1._0,{ruptureDatetime:Iu(H),rupture:Fd(o.membraneRupture),ruptureComment:o.membraneRuptureComment,amniotic:Ad(o.membraneAmniotic),amnioticComment:o.membraneAmnioticComment,comments:o.membraneComments});return d(tM,l(DM,sM(l(Vg,q,U({ctor:"::",_0:d_,_1:{ctor:"[]"}}))),r),yT,(e=r,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(d_))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(e.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ruptureDatetime",_1:l(Qo,Ju,e.ruptureDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"rupture",_1:l(Qo,function(t){return $r(yd(t))},e.rupture)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ruptureComment",_1:l(Qo,$r,e.ruptureComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"amniotic",_1:l(Qo,function(t){return $r(bd(t))},e.amniotic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"amnioticComment",_1:l(Qo,$r,e.amnioticComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,e.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(e.labor_id)},_1:{ctor:"[]"}}}}}}}}})},_1:{ctor:"[]"}}})))}var e,c=function(t){var r=t.currLaborId;if("Just"===r.ctor){var e=function(){var r={ctor:"_Tuple2",_0:t.membraneRuptureDate,_1:t.membraneRuptureTime};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var e=Zu(r._1._0);return"Just"===e.ctor?U(l(Vu,r._0._0,e._0)):q}return q}();return U(h(vd,e,Fd(t.membraneRupture),t.membraneRuptureComment,Ad(t.membraneAmniotic),t.membraneAmnioticComment,t.membraneComments,r._0._0))}return q}(o);if("Just"===c.ctor){var n=c._0;return d(tM,l(zM,sM(l(Vg,q,U({ctor:"::",_0:d_,_1:{ctor:"[]"}}))),n),vT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("membrane")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"ruptureDatetime",_1:l(Qo,Ju,t.ruptureDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"rupture",_1:l(Qo,function(t){return $r(yd(t))},t.rupture)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ruptureComment",_1:l(Qo,$r,t.ruptureComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"amniotic",_1:l(Qo,function(t){return $r(bd(t))},t.amniotic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"amnioticComment",_1:l(Qo,$r,t.amnioticComment)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}})},_1:{ctor:"[]"}}})}(n))}return l(aM,pC,"deriveMembraneRecordNew returned a Nothing")}(),{ctor:"_Tuple3",_0:T.update(o,{membraneSummaryModal:KF}),_1:De,_2:Be({ctor:"::",_0:l($e,M(B),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}return S=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,O)),{ctor:"_Tuple3",_0:T.update(o,{membraneSummaryModal:KF}),_1:De,_2:l(Qv,S,10)}}case"HandleBabySummaryModal":switch(_._0.ctor){case"OpenDialog":return u=function(){var t=o.babyRecord;if("Just"===t.ctor){var r=t._0;return T.update(o,{bbLastname:l(Gu,r.lastname,o.bbLastname),bbFirstname:l(Gu,r.firstname,o.bbFirstname),bbMiddlename:l(Gu,r.middlename,o.bbMiddlename),bbSex:l(Gu,U(Ts(r.sex)),o.bbSex),bbBirthWeight:l(Gu,l(z,D,r.birthWeight),o.bbBirthWeight),bbBFedEstablishedDate:r.bFedEstablished,bbBFedEstablishedTime:l(Gu,l(z,Pu,r.bFedEstablished),o.bbBFedEstablishedTime),bbBulb:l(Gu,r.bulb,o.bbBulb),bbMachine:l(Gu,r.machine,o.bbMachine),bbFreeFlowO2:l(Gu,r.freeFlowO2,o.bbFreeFlowO2),bbChestCompressions:l(Gu,r.chestCompressions,o.bbChestCompressions),bbPpv:l(Gu,r.ppv,o.bbPpv),bbComments:l(Gu,r.comments,o.bbComments),apgarScores:function(t){return Hr(l(it,function(t){return{ctor:"_Tuple2",_0:t.minute,_1:function(t){return l(Fs,U(t.minute),U(t.score))}(t)}},t))}(r.apgarScores)})}return o}(),{ctor:"_Tuple3",_0:T.update(u,{babySummaryModal:T.eq(o.babySummaryModal,KF)?jF:KF}),_1:De,_2:Be({ctor:"::",_0:T.eq(o.babySummaryModal,KF)?Ov(Hv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{babySummaryModal:KF}),_1:De,_2:Jv};case"EditDialog":return{ctor:"_Tuple3",_0:T.update(o,{babySummaryModal:GF}),_1:De,_2:T.eq(o.babySummaryModal,KF)?Be({ctor:"::",_0:Ov(Hv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var j=eF(o);if("[]"===j.ctor){var G=d(hs,o.bbBFedEstablishedDate,o.bbBFedEstablishedTime,"Please correct the date and time for the breast fed fields.");return W=Ou({ctor:"::",_0:G,_1:{ctor:"[]"}}),B=function(){var t,r={ctor:"_Tuple3",_0:T.cmp(ot(W),0)>0,_1:o.babyRecord,_2:o.bbSex};t:do{if("Just"===r._1.ctor){if("Nothing"===r._2.ctor)return l(aM,pC,l(N["++"],"LaborDelIpp.update in HandleBabySummaryModal,CloseSaveDialog "," branch with model.bbSex set to Nothing."));if(!0===r._0)break t;var e=T.update(r._1._0,{lastname:o.bbLastname,firstname:o.bbFirstname,middlename:o.bbMiddlename,sex:ks(r._2._0),birthWeight:bu(o.bbBirthWeight),bFedEstablished:Iu(G),bulb:o.bbBulb,machine:o.bbMachine,freeFlowO2:o.bbFreeFlowO2,chestCompressions:o.bbChestCompressions,ppv:o.bbPpv,comments:o.bbComments,apgarScores:Bs(o.apgarScores)});return d(tM,l(EM,sM(l(Vg,q,U({ctor:"::",_0:F_,_1:{ctor:"[]"}}))),e),yT,(t=e,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r("baby")},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthNbr",_1:Xr(1)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"lastname",_1:l(Qo,$r,t.lastname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"firstname",_1:l(Qo,$r,t.firstname)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"middlename",_1:l(Qo,$r,t.middlename)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"sex",_1:$r(ys(t.sex))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthWeight",_1:l(Qo,Xr,t.birthWeight)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bFedEstablished",_1:l(Qo,Ju,t.bFedEstablished)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bulb",_1:yu(t.bulb)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"machine",_1:yu(t.machine)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"freeFlowO2",_1:yu(t.freeFlowO2)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"chestCompressions",_1:yu(t.chestCompressions)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ppv",_1:yu(t.ppv)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"apgarScores",_1:jr(l(it,gs,t.apgarScores))},_1:{ctor:"[]"}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})))}if(!0===r._0)break t;var c=sF(o);if("Just"===c.ctor){var n=c._0;return d(tM,l(rB,sM(l(Vg,q,U({ctor:"::",_0:F_,_1:{ctor:"[]"}}))),n),vT,Cs(n))}return l(aM,pC,"deriveBabyRecordNew returned a Nothing")}while(0);return d(Yv,l(N["++"],W,{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}}),10,Lv)}(),{ctor:"_Tuple3",_0:T.update(o,{babySummaryModal:KF}),_1:De,_2:Be({ctor:"::",_0:l($e,M(B),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}return S=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,j)),{ctor:"_Tuple3",_0:T.update(o,{babySummaryModal:KF}),_1:De,_2:l(Qv,S,10)}}case"AddApgarWizard":switch(_._0.ctor){case"NotStartedAddOtherApgar":return{ctor:"_Tuple3",_0:T.update(o,{pendingApgarWizard:zg,pendingApgarMinute:q,pendingApgarScore:q}),_1:De,_2:De};case"MinuteAddOtherApgar":return{ctor:"_Tuple3",_0:T.update(o,{pendingApgarWizard:Ug}),_1:De,_2:De};case"ScoreAddOtherApgar":return{ctor:"_Tuple3",_0:T.update(o,{pendingApgarWizard:Hg}),_1:De,_2:De};default:var Y=bu(o.pendingApgarScore),K=bu(o.pendingApgarMinute),Q="Just"===(c={ctor:"_Tuple2",_0:K,_1:Y})._0.ctor&&"Just"===c._1.ctor?d(Er,c._0._0,l(Fs,K,Y),o.apgarScores):o.apgarScores;return{ctor:"_Tuple3",_0:T.update(o,{pendingApgarWizard:zg,pendingApgarMinute:q,pendingApgarScore:q,apgarScores:Q}),_1:De,_2:De}}case"DeleteApgar":var X=_._0;switch(X){case 1:case 5:case 10:return{ctor:"_Tuple3",_0:o,_1:De,_2:De};default:return{ctor:"_Tuple3",_0:T.update(o,{apgarScores:l(Ur,X,o.apgarScores)}),_1:De,_2:De}}case"ClearStage1DateTime":return{ctor:"_Tuple3",_0:T.update(o,{stage1Date:q,stage1Time:q}),_1:De,_2:De};case"ClearStage2DateTime":return{ctor:"_Tuple3",_0:T.update(o,{stage2Date:q,stage2Time:q}),_1:De,_2:De};case"ClearStage3DateTime":return{ctor:"_Tuple3",_0:T.update(o,{stage3Date:q,stage3Time:q}),_1:De,_2:De};case"LaborDetailsLoaded":return{ctor:"_Tuple3",_0:o,_1:De,_2:_M("LaborDelIpp.update LaborDetailsLoaded")};default:return{ctor:"_Tuple3",_0:T.update(o,{currLaborId:U(_._0)}),_1:De,_2:De}}}),$F=gB({ctor:"::",_0:function(t){return d(pB,Nu(!0),l(is["=>"],xv,"Valid date of check must be provided."),t.pcCheckDate)},_1:{ctor:"::",_0:function(t){return d(pB,es,l(is["=>"],Rv,"Time of check must be provided."),t.pcCheckTime)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!1),l(is["=>"],ZT,"Valid date of Hgb test must be provided."),t.pcHgbTestDate)},_1:{ctor:"::",_0:function(t){return d(pB,Nu(!1),l(is["=>"],KT,"Valid date of next check must be provided."),t.pcNextScheduledCheck)},_1:{ctor:"[]"}}}}}),ZF=e(function(t,r){var e=l(dl,"BCG",t);if("Just"===e.ctor){var o=l(gc,function(t){return T.eq(t.babyVaccinationType,e._0.id)},r);if("Just"===o.ctor){var c=o._0;return l(N["++"],l(ku,c.vaccinationDate,"-"),l(N["++"],T.cmp(as(c.comments),0)>0?l(N["++"],", ",l(V," ",c.comments)):"",T.cmp(as(c.initials),0)>0?l(N["++"],", ",l(V," ",c.initials)):""))}return""}return""}),tw=e(function(t,r){var e=l(Os,"NBS",t);if("Just"===e.ctor){var o=e._0,c=l(gc,function(t){return T.eq(t.babyLabType,o.id)},r);if("Just"===c.ctor){var n=c._0;return l(N["++"],l(ku,n.dateTime,"-"),l(N["++"]," ",l(N["++"],o.fld1Name,l(N["++"],": ",l(N["++"],l(V,"",n.fld1Value),l(N["++"],T.cmp(as(n.fld2Value),0)>0?l(N["++"],", ",l(V,"",n.fld2Value)):"",T.cmp(as(n.initials),0)>0?l(N["++"],", ",l(V,"",n.initials)):""))))))}return""}return""}),rw=e(function(t,r){var o,c=l(ZF,t.model.babyVaccinationTypeRecords,t.model.babyVaccinationRecords),n=l(tw,t.model.babyLabTypeRecords,t.model.babyLabRecords),a="Just"===(o={ctor:"_Tuple2",_0:r.motherSystolic,_1:r.motherDiastolic})._0.ctor&&"Just"===o._1.ctor?l(N["++"],D(o._0._0),l(N["++"]," / ",D(o._1._0))):"",_=function(t){return l(V,"",t)},i=function(t){return _(l(z,D,t))},u=function(t){return _(l(z,ns,t))},s=function(t){return d(qu,ds,fs,t)},m=function(t){var r=t;return"Just"===r.ctor&&!0===r._0?"Yes":"No"},f=e(function(t,r){return l(hn,{ctor:"::",_0:xn("u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(bn,{ctor:"[]"},{ctor:"::",_0:l(gn,{ctor:"::",_0:xn("c-text--quiet"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"min-width",_1:"8.0em"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(l(N["++"],t,": ")),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(gn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en(r),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}})}),p=d(yB,__,r.id,t.model.tableMetaCollection),h=function(){var e=t.model.laborStage2Record;if("Just"===e.ctor){var o=e._0.birthDatetime;return"Just"===o.ctor?l(N["++"],"(",l(N["++"],l(Qt,", ",l(Ct,2,l(Xt,",",l(Fu,o._0,r.checkDatetime)))),")")):""}return""}(),b=d(Hu,ds,fs,r.checkDatetime);return l(dn,{ctor:"::",_0:xn("c-card"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item u-color-white primary-dark-bg"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"overflow",_1:"hidden"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:en(l(N["++"],b,l(N["++"]," ",l(N["++"],h,p)))),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--ghost u-color-white u-xsmall"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"float",_1:"right"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn(l(jT,Xa,U(um(r.id)))),_1:{ctor:"[]"}}}}},{ctor:"::",_0:en("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("contPP-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card contPP-content"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item u-small u-color-white accent-bg"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Baby"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(f,"Weight (grams)",i(r.babyWeight)),_1:{ctor:"::",_0:l(f,"Temp (C)",i(r.babyTemp)),_1:{ctor:"::",_0:l(f,"HR",i(r.babyCR)),_1:{ctor:"::",_0:l(f,"RR",i(r.babyRR)),_1:{ctor:"::",_0:l(f,"Lungs",u(r.babyLungs)),_1:{ctor:"::",_0:l(f,"Color",u(r.babyColor)),_1:{ctor:"::",_0:l(f,"Skin",u(r.babySkin)),_1:{ctor:"::",_0:l(f,"Cord",u(r.babyCord)),_1:{ctor:"::",_0:l(f,"Urine",_(r.babyUrine)),_1:{ctor:"::",_0:l(f,"Stool",_(r.babyStool)),_1:{ctor:"::",_0:l(f,"S/S Infection",u(r.babySSInfection)),_1:{ctor:"::",_0:l(f,"Feeding",u(r.babyFeeding)),_1:{ctor:"::",_0:l(f,"Feedings/day",_(r.babyFeedingDaily)),_1:{ctor:"::",_0:l(f,"NBS",n),_1:{ctor:"::",_0:l(f,"Bcg",c),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card contPP-content"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item u-small u-color-white accent-bg"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Mother"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(f,"Temp (C)",i(r.motherTemp)),_1:{ctor:"::",_0:l(f,"BP",a),_1:{ctor:"::",_0:l(f,"Pulse",i(r.motherCR)),_1:{ctor:"::",_0:l(f,"Breasts",u(r.motherBreasts)),_1:{ctor:"::",_0:l(f,"Fundus",u(r.motherFundus)),_1:{ctor:"::",_0:l(f,"Fundus note",u(r.motherFundusNote)),_1:{ctor:"::",_0:l(f,"Perineum",u(r.motherPerineum)),_1:{ctor:"::",_0:l(f,"Perineum note",u(r.motherPerineumNote)),_1:{ctor:"::",_0:l(f,"Lochia",u(r.motherLochia)),_1:{ctor:"::",_0:l(f,"Urine",u(r.motherUrine)),_1:{ctor:"::",_0:l(f,"Stool",u(r.motherStool)),_1:{ctor:"::",_0:l(f,"SSInfection",u(r.motherSSInfection)),_1:{ctor:"::",_0:l(f,"Family Planning",u(r.motherFamilyPlanning)),_1:{ctor:"::",_0:l(f,"Birth Cert Reg",m(r.birthCertReq)),_1:{ctor:"::",_0:l(f,"Hgb Requested",m(r.hgbRequested)),_1:{ctor:"::",_0:l(f,"Hgb Test Date",_(l(z,s,r.hgbTestDate))),_1:{ctor:"::",_0:l(f,"Hgb Result",_(r.hgbTestResult)),_1:{ctor:"::",_0:l(f,"Iron given",i(r.ironGiven)),_1:{ctor:"::",_0:l(f,"Next check",_(l(z,s,r.nextScheduledCheck))),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:en(_(r.comments)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}})}),ew=e(function(t,r){var e=l(gc,function(r){return T.eq(Te(r),t)},r);return"Just"===e.ctor?Ce(e._0):""}),ow=function(t){var r=e(function(t,r){return d(_s,ls,t.checkDatetime,r.checkDatetime)}),o=l(it,rw(t),l(G,r,t.model.postpartumCheckRecords));return l(dn,{ctor:"[]"},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-large"),_1:{ctor:"[]"}},{ctor:"::",_0:en(t.title),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-bottom",_1:"1em"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},o),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isShown},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Gn(l(jT,t_,q)),_1:{ctor:"[]"}}}}},{ctor:"::",_0:en("Add Postpartum Check"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:function(t){var r=function(){var r=t.model.laborStage2Record;if("Just"===r.ctor){var e=r._0.birthDatetime;return"Just"===e.ctor?l(N["++"],"(",l(N["++"],l(Fu,e._0,Ro(t.model.currTime)),")")):""}return""}(),o=l(ZF,t.model.babyVaccinationTypeRecords,t.model.babyVaccinationRecords),c=l(tw,t.model.babyLabTypeRecords,t.model.babyLabRecords),n=e(function(t,r){return l(it,function(r){return{ctor:"_Tuple2",_0:function(e){return l(WT,t,l(Ga,r.selectKey,e))},_1:r}},r)}),a=$F(t.model);return l(dn,{ctor:"::",_0:qn({ctor:"::",_0:{ctor:"_Tuple2",_0:"isHidden",_1:!t.isEditing},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:xn("u-high"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.8em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.8em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(nn,{ctor:"::",_0:xn("c-text--brand mw-header-3"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Edit Postpartum Check"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("form-wrapper u-small"),_1:{ctor:"[]"}},{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-large accent-bg"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.2em 2em"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en(l(N["++"],"Baby",l(N["++"]," ",r))),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Check date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(WT,xv,Qa(t))},"Date","e.g. 08/14/2017",!1,t.model.pcCheckDate,l(ew,xv,a)),_1:{ctor:"::",_0:p(EB,function(t){return l(WT,Rv,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.pcCheckTime,l(ew,Rv,a)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Check date and time"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,zT,zm,"Date","e.g. 08/14/2017",!1,t.model.pcCheckDate,l(ew,xv,a)),_1:{ctor:"::",_0:p(EB,function(t){return l(WT,Rv,Qa(t))},"Time","24 hr format, 14:44",!1,t.model.pcCheckTime,l(ew,Rv,a)),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,wv,Qa(t))},"Baby weight (grams)","",!0,t.model.pcBabyWeight,l(ew,wv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,Fv,Qa(t))},"Baby temp (C)","",!0,t.model.pcBabyTemp,l(ew,Fv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,Sv,Qa(t))},"Baby HR","",!0,t.model.pcBabyCR,l(ew,Sv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,Dv,Qa(t))},"Baby RR","",!0,t.model.pcBabyRR,l(ew,Dv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,Bv,t.model.pcBabyLungs),"Baby lungs",l(ew,Bv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,Mv,t.model.pcBabyColor),"Baby color",l(ew,Mv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,vv,t.model.pcBabySkin),"Baby skin",l(ew,vv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,Tv,t.model.pcBabyCord),"Baby cord",l(ew,Tv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,Cv,Qa(t))},"Baby urine","nbr of times last 24 hours",!0,t.model.pcBabyUrine,l(ew,Cv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,yv,Qa(t))},"Baby stool","nbr of times last 24 hours",!0,t.model.pcBabyStool,l(ew,yv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,gv,t.model.pcBabySSInfection),"Baby S/S infection",l(ew,gv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,bv,t.model.pcBabyFeeding),"Baby feeding",l(ew,bv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,hv,Qa(t))},"Feedings/day","# in 24 hours",!0,t.model.pcBabyFeedingDaily,l(ew,hv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("u-medium"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"display",_1:"inline-block"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"min-width",_1:"3.0em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en("NBS: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(c),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("u-medium"),_1:{ctor:"[]"}},{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"display",_1:"inline-block"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"min-width",_1:"3.0em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en("BCG: "),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(pn,{ctor:"::",_0:xn("c-text"),_1:{ctor:"[]"}},{ctor:"::",_0:en(o),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}),_1:{ctor:"::",_0:l(cn,{ctor:"::",_0:xn("c-heading u-large accent-bg"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"padding",_1:"0.2em 2em"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-top",_1:"0.5em"},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:en("Mother"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,pv,Qa(t))},"Mother temp (C)","",!0,t.model.pcMotherTemp,l(ew,pv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,fv,Qa(t))},"Mother systolic","",!0,t.model.pcMotherSystolic,l(ew,fv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,mv,Qa(t))},"Mother diastolic","",!0,t.model.pcMotherDiastolic,l(ew,mv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,dv,Qa(t))},"Mother pulse","",!0,t.model.pcMotherCR,l(ew,dv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,lv,t.model.pcMotherBreasts),"Mother breasts",l(ew,lv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,sv,t.model.pcMotherFundus),"Mother fundus",l(ew,sv,a)),_1:{ctor:"::",_0:p(EB,function(t){return l(WT,uv,Qa(t))},"Fundus note","",!0,t.model.pcMotherFundusNote,l(ew,uv,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,iv,t.model.pcMotherPerineum),"Mother perineum",l(ew,iv,a)),_1:{ctor:"::",_0:p(EB,function(t){return l(WT,_v,Qa(t))},"Perineum note","",!0,t.model.pcMotherPerineumNote,l(ew,_v,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,av,t.model.pcMotherLochia),"Mother lochia",l(ew,av,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,nv,t.model.pcMotherUrine),"Mother urine",l(ew,nv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,cv,t.model.pcMotherStool),"Mother stool",l(ew,cv,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,ov,t.model.pcMotherSSInfection),"Mother S/S infection",l(ew,ov,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field mw-form-field-vertical"),_1:{ctor:"[]"}},{ctor:"::",_0:d(xB,l(n,ev,t.model.pcMotherFamilyPlanning),"Mother family planning",l(ew,ev,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Birth cert registered",function(t){return l(WT,rv,Ka(t))},t.model.pcBirthCertReq),_1:{ctor:"::",_0:en(l(ew,rv,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:d(FB,"Hgb requested",function(t){return l(WT,tv,Ka(t))},t.model.pcHgbRequested),_1:{ctor:"::",_0:en(l(ew,tv,a)),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Date of Hgb test"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(WT,ZT,Qa(t))},"Date","e.g. 08/14/2017",!1,t.model.pcHgbTestDate,l(ew,ZT,a)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Hgb test date"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,zT,Um,"Date","e.g. 08/14/2017",!1,t.model.pcHgbTestDate,l(ew,ZT,a)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,$T,Qa(t))},"Hgb result","",!0,t.model.pcHgbTestResult,l(ew,$T,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(yn,{ctor:"::",_0:xn("o-fieldset mw-form-field"),_1:{ctor:"[]"}},{ctor:"::",_0:p(EB,function(t){return l(WT,XT,Qa(t))},"# iron given","",!0,t.model.pcIronGiven,l(ew,XT,a)),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:t.model.browserSupportsDate?l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Next scheduled visit"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body dateTimeModalBody"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:p(AB,function(t){return l(WT,KT,Qa(t))},"Date","e.g. 08/14/2017",!1,t.model.pcNextScheduledCheck,l(ew,KT,a)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}):l(dn,{ctor:"::",_0:xn("c-card mw-form-field-2x"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__item"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-text--loud"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Next scheduled check"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("c-card__body"),_1:{ctor:"[]"}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("o-fieldset form-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:h(PB,zT,Hm,"Date","e.g. 08/14/2017",!1,t.model.pcNextScheduledCheck,l(ew,KT,a)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:p(NB,function(t){return l(WT,QT,Qa(t))},"Comments","",!0,t.model.pcComments,3),_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}),_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("spacedButtons"),_1:{ctor:"::",_0:Hn({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button u-small"),_1:{ctor:"::",_0:Gn(t.closeMsg),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Cancel"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:l(Mn,{ctor:"::",_0:Pn("button"),_1:{ctor:"::",_0:xn("c-button c-button--brand u-small"),_1:{ctor:"::",_0:Gn(l(jT,$a,t.model.currPostpartumCheckId)),_1:{ctor:"[]"}}}},{ctor:"::",_0:en("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}}})}(t),_1:{ctor:"[]"}}}}})},cw=c(function(t,r,o){var c=d(et,e(function(r,e){var o=e,c=o._0,n=o._1;switch(r.ctor){case"Baby":var a=l(Cm,r,t);return"Just"===a.ctor&&"BabyDataCache"===a._0.ctor?l(is["=>"],T.update(c,{babyRecord:U(a._0._0)}),n):l(is["=>"],c,n);case"BabyLab":var _=l(Cm,r,t);return"Just"===_.ctor&&"BabyLabDataCache"===_._0.ctor?l(is["=>"],T.update(c,{babyLabRecords:_._0._0}),n):l(is["=>"],c,n);case"BabyLabType":var i=l(Cm,r,t);return"Just"===i.ctor&&"BabyLabTypeDataCache"===i._0.ctor?l(is["=>"],T.update(c,{babyLabTypeRecords:i._0._0}),n):l(is["=>"],c,n);case"BabyVaccination":var u=l(Cm,r,t);return"Just"===u.ctor&&"BabyVaccinationDataCache"===u._0.ctor?l(is["=>"],T.update(c,{babyVaccinationRecords:u._0._0}),n):l(is["=>"],c,n);case"BabyVaccinationType":var s=l(Cm,r,t);return"Just"===s.ctor&&"BabyVaccinationTypeDataCache"===s._0.ctor?l(is["=>"],T.update(c,{babyVaccinationTypeRecords:s._0._0}),n):l(is["=>"],c,n);case"ContPostpartumCheck":var d=l(Cm,r,t);return"Just"===d.ctor&&"ContPostpartumCheckDataCache"===d._0.ctor?l(is["=>"],T.update(c,{contPostpartumCheckRecords:d._0._0}),n):l(is["=>"],c,n);case"Labor":var m=l(Cm,r,t);return"Just"===m.ctor&&"LaborDataCache"===m._0.ctor?l(is["=>"],T.update(c,{laborRecord:m._0._0}),n):l(is["=>"],c,n);case"LaborStage1":var f=l(Cm,r,t);return"Just"===f.ctor&&"LaborStage1DataCache"===f._0.ctor?l(is["=>"],T.update(c,{laborStage1Record:U(f._0._0)}),n):l(is["=>"],c,n);case"LaborStage2":var p=l(Cm,r,t);return"Just"===p.ctor&&"LaborStage2DataCache"===p._0.ctor?l(is["=>"],T.update(c,{laborStage2Record:U(p._0._0)}),n):l(is["=>"],c,n);case"LaborStage3":var h=l(Cm,r,t);return"Just"===h.ctor&&"LaborStage3DataCache"===h._0.ctor?l(is["=>"],T.update(c,{laborStage3Record:U(h._0._0)}),n):l(is["=>"],c,n);case"PostpartumCheck":var b=l(Cm,r,t);return"Just"===b.ctor&&"PostpartumCheckDataCache"===b._0.ctor?l(is["=>"],T.update(c,{postpartumCheckRecords:b._0._0}),n):l(is["=>"],c,n);case"SelectData":var g=l(Cm,r,t);return"Just"===g.ctor&&"SelectDataDataCache"===g._0.ctor?l(is["=>"],T.update(c,{selectDataRecords:g._0._0}),n):l(is["=>"],c,n);default:return{ctor:"_Tuple2",_0:c,_1:{ctor:"::",_0:l(N["++"],"Postpartum.refreshModelFromCache: Unhandled Table",D(r)),_1:n}}}}),{ctor:"_Tuple2",_0:o,_1:{ctor:"[]"}},r),n=c._0,a=c._1;return l(is["=>"],n,Be(l(it,iM,a)))}),nw=a(function(t,r,e,o,c){var n=l(N["++"],o,{ctor:"::",_0:r,_1:{ctor:"[]"}}),a=l(tt,function(t){return ju(l(Cm,t,c))},{ctor:"::",_0:r,_1:o}),_=function(){if(a){var c=eM(l(GT,q,U(n)));return l(is["=>"],t,l($e,M(c),Ue(!0)))}var _=d(Pv,r,e,o),i=d(mB,l(TM,eM(l(GT,q,U(n))),_),q,t),u=i._0,s=i._1,m=d(KC,u,CT,kv(_));return l(is["=>"],s,cB(m))}(),i=_._0,u=_._1;return l(is["=>"],i,u)}),aw=c(function(t,r,e){return l($e,M(d(rM,t,r,e)),Ue(!0))}),_w=n(function(t,r,e,o){var c=d(Pv,h_,U(r.id),{ctor:"::",_0:p_,_1:{ctor:"::",_0:f_,_1:{ctor:"::",_0:m_,_1:{ctor:"::",_0:y_,_1:{ctor:"::",_0:F_,_1:{ctor:"::",_0:__,_1:{ctor:"[]"}}}}}}}),n=d(mB,l(TM,l(oM,t,r),c),q,o),a=n._0,_=n._1,i=d(KC,a,CT,kv(c));return l(is["=>"],_,cB(i))}),iw=i(function(t,r,e,o,c,n,a){return{isShown:t,isEditing:r,title:e,model:o,closeMsg:c,saveMsg:n,editMsg:a}}),uw={ctor:"PostpartumCheckEditState"},sw={ctor:"PostpartumCheckViewState"},lw={ctor:"NoViewEditState"},dw=function(t){return function(r){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(m){return function(f){return function(p){var h=d(Er,r_(v_),v_,l(Jr,r_(S_),S_)),b=d(aw,T_,q,{ctor:"[]"}),g=d(aw,D_,q,{ctor:"[]"}),y=d(aw,c_,q,{ctor:"[]"});return{ctor:"_Tuple3",_0:{browserSupportsDate:i,currTime:u,pregnancy_id:m,currLaborId:U(jl(t.id)),currPostpartumCheckId:q,currPregHeaderContent:mf,dataCache:Tr,tableMetaCollection:_,pendingSelectQuery:h,patientRecord:f,pregnancyRecord:p,laborRecord:t,laborStage1Record:r,laborStage2Record:e,laborStage3Record:o,contPostpartumCheckRecords:c,babyRecord:n,selectDataRecords:{ctor:"[]"},babyLabRecords:{ctor:"[]"},babyLabTypeRecords:{ctor:"[]"},babyVaccinationRecords:{ctor:"[]"},babyVaccinationTypeRecords:{ctor:"[]"},postpartumCheckRecords:a,postpartumCheckViewEditState:lw,pcCheckDate:q,pcCheckTime:q,pcBabyWeight:q,pcBabyTemp:q,pcBabyCR:q,pcBabyRR:q,pcBabyLungs:{ctor:"[]"},pcBabyColor:{ctor:"[]"},pcBabySkin:{ctor:"[]"},pcBabyCord:{ctor:"[]"},pcBabyUrine:q,pcBabyStool:q,pcBabySSInfection:{ctor:"[]"},pcBabyFeeding:{ctor:"[]"},pcBabyFeedingDaily:q,pcMotherTemp:q,pcMotherSystolic:q,pcMotherDiastolic:q,pcMotherCR:q,pcMotherBreasts:{ctor:"[]"},pcMotherFundus:{ctor:"[]"},pcMotherFundusNote:q,pcMotherPerineum:{ctor:"[]"},pcMotherPerineumNote:q,pcMotherLochia:{ctor:"[]"},pcMotherUrine:{ctor:"[]"},pcMotherStool:{ctor:"[]"},pcMotherSSInfection:{ctor:"[]"},pcMotherFamilyPlanning:{ctor:"[]"},pcBirthCertReq:q,pcHgbRequested:q,pcHgbTestDate:q,pcHgbTestResult:q,pcIronGiven:q,pcComments:q,pcNextScheduledCheck:q},_1:s,_2:Be({ctor:"::",_0:y,_1:{ctor:"::",_0:g,_1:{ctor:"::",_0:b,_1:{ctor:"[]"}}}})}}}}}}}}}}}}}}},mw=c(function(t,r,o){var c,n,a=r;switch(a.ctor){case"PageNoop":return l(ye,"PageNoop","was called."),{ctor:"_Tuple3",_0:o,_1:De,_2:De};case"CloseAllDialogs":return{ctor:"_Tuple3",_0:function(t){return T.update(t,{postpartumCheckViewEditState:lw})}(o),_1:De,_2:De};case"TableMetaCollection":var _=a._0;return"Just"===_.ctor?{ctor:"_Tuple3",_0:T.update(o,{tableMetaCollection:_._0}),_1:De,_2:De}:{ctor:"_Tuple3",_0:o,_1:De,_2:De};case"DataCache":var i=function(){var t={ctor:"_Tuple2",_0:a._0,_1:a._1};if("Just"===t._0.ctor&&"Just"===t._1.ctor){var r=t._0._0;return d(cw,r,t._1._0,T.update(o,{dataCache:r}))}return{ctor:"_Tuple2",_0:o,_1:De}}(),u=i._0,s=i._1,m="Just"===(n=u.babyRecord).ctor&&(l(lr,r_(S_),u.pendingSelectQuery)||l(lr,r_(v_),u.pendingSelectQuery))?{ctor:"_Tuple2",_0:l($e,M(d(rM,F_,U(n._0.id),{ctor:"::",_0:S_,_1:{ctor:"::",_0:v_,_1:{ctor:"[]"}}})),Ue(!0)),_1:l(Ur,r_(v_),l(Ur,r_(S_),u.pendingSelectQuery))}:{ctor:"_Tuple2",_0:De,_1:u.pendingSelectQuery},f=m._0,p=m._1;return{ctor:"_Tuple3",_0:T.update(u,{pendingSelectQuery:p}),_1:De,_2:Be({ctor:"::",_0:s,_1:{ctor:"::",_0:f,_1:{ctor:"::",_0:l($e,eM,Ue(VT(q))),_1:{ctor:"[]"}}}})};case"DateFieldSubMsg":var h=function(){var t=a._0;if("DateFieldMessage"!==t.ctor)return l(is["=>"],o,iM(l(N["++"],"Postpartum.update DateFieldSubMsg: UnknownDateFieldMessage: ",t._0)));var r=t._0.date,e=t._0.dateField;switch(e.ctor){case"PostpartumCheckDateField":return l(is["=>"],T.update(o,{pcCheckDate:U(r)}),De);case"PostpartumCheckHgbField":return l(is["=>"],T.update(o,{pcHgbTestDate:U(r)}),De);case"PostpartumCheckScheduledField":return l(is["=>"],T.update(o,{pcNextScheduledCheck:U(r)}),De);case"UnknownDateField":return l(is["=>"],o,iM(l(N["++"],"Postpartum.update DateFieldSubMsg: UnknownDateField: ",e._0)));default:return l(is["=>"],o,De)}}();return u=h._0,s=h._1,{ctor:"_Tuple3",_0:u,_1:De,_2:s};case"FldChgSubMsg":var b=a._0,g=function(){var t=a._1;switch(t.ctor){case"FldChgString":var r=t._0;switch(b.ctor){case"PCCheckDateFld":return l(is["=>"],T.update(o,{pcCheckDate:Tu(r)}),De);case"PCCheckTimeFld":return l(is["=>"],T.update(o,{pcCheckTime:U(Lu(r))}),De);case"PCBabyWeightFld":return l(is["=>"],T.update(o,{pcBabyWeight:U(Xu(r))}),De);case"PCBabyTempFld":return l(is["=>"],T.update(o,{pcBabyTemp:U(Yu(r))}),De);case"PCBabyCRFld":return l(is["=>"],T.update(o,{pcBabyCR:U(Xu(r))}),De);case"PCBabyRRFld":return l(is["=>"],T.update(o,{pcBabyRR:U(Xu(r))}),De);case"PCBabyUrineFld":return l(is["=>"],T.update(o,{pcBabyUrine:U(r)}),De);case"PCBabyStoolFld":return l(is["=>"],T.update(o,{pcBabyStool:U(r)}),De);case"PCBabyFeedingDailyFld":return l(is["=>"],T.update(o,{pcBabyFeedingDaily:U(r)}),De);case"PCMotherTempFld":return l(is["=>"],T.update(o,{pcMotherTemp:U(Yu(r))}),De);case"PCMotherSystolicFld":return l(is["=>"],T.update(o,{pcMotherSystolic:U(Xu(r))}),De);case"PCMotherDiastolicFld":return l(is["=>"],T.update(o,{pcMotherDiastolic:U(Xu(r))}),De);case"PCMotherCRFld":return l(is["=>"],T.update(o,{pcMotherCR:U(Xu(r))}),De);case"PCMotherFundusNoteFld":return l(is["=>"],T.update(o,{pcMotherFundusNote:U(r)}),De);case"PCMotherPerineumNoteFld":return l(is["=>"],T.update(o,{pcMotherPerineumNote:U(r)}),De);case"PCHgbTestResultFld":return l(is["=>"],T.update(o,{pcHgbTestResult:U(r)}),De);case"PCIronGivenFld":return l(is["=>"],T.update(o,{pcIronGiven:U(Xu(r))}),De);case"PCCommentsFld":return l(is["=>"],T.update(o,{pcComments:U(r)}),De);case"PCHgbTestDateFld":return l(is["=>"],T.update(o,{pcHgbTestDate:Tu(r)}),De);case"PCNextScheduledCheckFld":return l(is["=>"],T.update(o,{pcNextScheduledCheck:Tu(r)}),De);default:return l(is["=>"],o,iM(l(N["++"],"Postpartum.update FldChgSubMsg: ","Unknown field encountered in FldChgString. Possible mismatch between Field and FldChgValue.")))}case"FldChgStringList":var e=t._0,c=t._1;switch(b.ctor){case"PCBabyLungsFld":return l(is["=>"],T.update(o,{pcBabyLungs:d(fm,e,c,o.pcBabyLungs)}),De);case"PCBabyColorFld":return l(is["=>"],T.update(o,{pcBabyColor:d(fm,e,c,o.pcBabyColor)}),De);case"PCBabySkinFld":return l(is["=>"],T.update(o,{pcBabySkin:d(fm,e,c,o.pcBabySkin)}),De);case"PCBabyCordFld":return l(is["=>"],T.update(o,{pcBabyCord:d(fm,e,c,o.pcBabyCord)}),De);case"PCBabySSInfectionFld":return l(is["=>"],T.update(o,{pcBabySSInfection:d(fm,e,c,o.pcBabySSInfection)}),De);case"PCBabyFeedingFld":return l(is["=>"],T.update(o,{pcBabyFeeding:d(fm,e,c,o.pcBabyFeeding)}),De);case"PCMotherBreastsFld":return l(is["=>"],T.update(o,{pcMotherBreasts:d(fm,e,c,o.pcMotherBreasts)}),De);case"PCMotherFundusFld":return l(is["=>"],T.update(o,{pcMotherFundus:d(fm,e,c,o.pcMotherFundus)}),De);case"PCMotherPerineumFld":return l(is["=>"],T.update(o,{pcMotherPerineum:d(fm,e,c,o.pcMotherPerineum)}),De);case"PCMotherLochiaFld":return l(is["=>"],T.update(o,{pcMotherLochia:d(fm,e,c,o.pcMotherLochia)}),De);case"PCMotherUrineFld":return l(is["=>"],T.update(o,{pcMotherUrine:d(fm,e,c,o.pcMotherUrine)}),De);case"PCMotherStoolFld":return l(is["=>"],T.update(o,{pcMotherStool:d(fm,e,c,o.pcMotherStool)}),De);case"PCMotherSSInfectionFld":return l(is["=>"],T.update(o,{pcMotherSSInfection:d(fm,e,c,o.pcMotherSSInfection)}),De);case"PCMotherFamilyPlanningFld":return l(is["=>"],T.update(o,{pcMotherFamilyPlanning:d(fm,e,c,o.pcMotherFamilyPlanning)}),De);default:return l(is["=>"],o,iM(l(N["++"],"Postpartum.update FldChgSubMsg: ","Unknown field encountered in FldChgStringList. Possible mismatch between Field and FldChgValue.")))}case"FldChgBool":var n=t._0;switch(b.ctor){case"PCBirthCertReqFld":return l(is["=>"],T.update(o,{pcBirthCertReq:U(n)}),De);case"PCHgbRequestedFld":return l(is["=>"],T.update(o,{pcHgbRequested:U(n)}),De);default:return l(is["=>"],o,iM(l(N["++"],"Postpartum.update FldChgSubMsg: ","Unknown field encountered in FldChgBool. Possible mismatch between Field and FldChgValue.")))}default:return l(is["=>"],o,De)}}();return u=g._0,s=g._1,{ctor:"_Tuple3",_0:u,_1:De,_2:s};case"HandlePostpartumCheckModal":var y=a._1;switch(a._0.ctor){case"OpenDialog":var C=Ro(o.currTime);return c=function(t){return T.update(t,{pcCheckDate:q,pcCheckTime:q,pcBabyWeight:q,pcBabyTemp:q,pcBabyCR:q,pcBabyRR:q,pcBabyLungs:{ctor:"[]"},pcBabyColor:{ctor:"[]"},pcBabySkin:{ctor:"[]"},pcBabyCord:{ctor:"[]"},pcBabyUrine:q,pcBabyStool:q,pcBabySSInfection:{ctor:"[]"},pcBabyFeeding:{ctor:"[]"},pcBabyFeedingDaily:q,pcMotherTemp:q,pcMotherSystolic:q,pcMotherDiastolic:q,pcMotherCR:q,pcMotherBreasts:{ctor:"[]"},pcMotherFundus:{ctor:"[]"},pcMotherFundusNote:q,pcMotherPerineum:{ctor:"[]"},pcMotherPerineumNote:q,pcMotherLochia:{ctor:"[]"},pcMotherUrine:{ctor:"[]"},pcMotherStool:{ctor:"[]"},pcMotherSSInfection:{ctor:"[]"},pcMotherFamilyPlanning:{ctor:"[]"},pcBirthCertReq:q,pcHgbRequested:q,pcHgbTestDate:q,pcHgbTestResult:q,pcIronGiven:q,pcComments:q,pcNextScheduledCheck:q})}(o),u=T.update(c,{pcCheckDate:U(C),pcCheckTime:U(Pu(C)),pcBabyLungs:l(hm,"postpartumCheckBabyLungs",o.selectDataRecords),pcBabyColor:l(hm,"postpartumCheckBabyColor",o.selectDataRecords),pcBabySkin:l(hm,"postpartumCheckBabySkin",o.selectDataRecords),pcBabyCord:l(hm,"postpartumCheckBabyCord",o.selectDataRecords),pcBabySSInfection:l(hm,"postpartumCheckBabySSInfection",o.selectDataRecords),pcBabyFeeding:l(hm,"postpartumCheckBabyFeeding",o.selectDataRecords),pcMotherBreasts:l(hm,"postpartumCheckMotherBreasts",o.selectDataRecords),pcMotherFundus:l(hm,"postpartumCheckMotherFundus",o.selectDataRecords),pcMotherPerineum:l(hm,"postpartumCheckMotherPerineum",o.selectDataRecords),pcMotherLochia:l(hm,"postpartumCheckMotherLochia",o.selectDataRecords),pcMotherUrine:l(hm,"postpartumCheckMotherUrine",o.selectDataRecords),pcMotherStool:l(hm,"postpartumCheckMotherStool",o.selectDataRecords),pcMotherSSInfection:l(hm,"postpartumCheckMotherSSInfection",o.selectDataRecords),pcMotherFamilyPlanning:l(hm,"postpartumCheckMotherFamilyPlanning",o.selectDataRecords)}),{ctor:"_Tuple3",_0:T.update(u,{postpartumCheckViewEditState:uw}),_1:De,_2:Be({ctor:"::",_0:T.eq(o.postpartumCheckViewEditState,lw)?Ov(qv):Jv,_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}})};case"CloseNoSaveDialog":return{ctor:"_Tuple3",_0:T.update(o,{postpartumCheckViewEditState:lw,currPostpartumCheckId:q}),_1:De,_2:Jv};case"EditDialog":return u=function(){var t={ctor:"_Tuple2",_0:y,_1:l(Cm,__,o.dataCache)};if("Just"===t._0.ctor&&"Just"===t._1.ctor&&"PostpartumCheckDataCache"===t._1._0.ctor){var r=l(gc,function(r){return T.eq(r.id,t._0._0._0)},t._1._0._0);if("Just"===r.ctor){var e=r._0;return T.update(o,{pcCheckDate:U(e.checkDatetime),pcCheckTime:U(Pu(e.checkDatetime)),pcBabyWeight:l(z,D,e.babyWeight),pcBabyTemp:l(z,D,e.babyTemp),pcBabyCR:l(z,D,e.babyCR),pcBabyRR:l(z,D,e.babyRR),pcBabyLungs:d(bm,"postpartumCheckBabyLungs",e.babyLungs,o.selectDataRecords),pcBabyColor:d(bm,"postpartumCheckBabyColor",e.babyColor,o.selectDataRecords),pcBabySkin:d(bm,"postpartumCheckBabySkin",e.babySkin,o.selectDataRecords),pcBabyCord:d(bm,"postpartumCheckBabyCord",e.babyCord,o.selectDataRecords),pcBabyUrine:e.babyUrine,pcBabyStool:e.babyStool,pcBabySSInfection:d(bm,"postpartumCheckBabySSInfection",e.babySSInfection,o.selectDataRecords),pcBabyFeeding:d(bm,"postpartumCheckBabyFeeding",e.babyFeeding,o.selectDataRecords),pcBabyFeedingDaily:e.babyFeedingDaily,pcMotherTemp:l(z,D,e.motherTemp),pcMotherSystolic:l(z,D,e.motherSystolic),pcMotherDiastolic:l(z,D,e.motherDiastolic),pcMotherCR:l(z,D,e.motherCR),pcMotherBreasts:d(bm,"postpartumCheckMotherBreasts",e.motherBreasts,o.selectDataRecords),pcMotherFundus:d(bm,"postpartumCheckMotherFundus",e.motherFundus,o.selectDataRecords),pcMotherFundusNote:e.motherFundusNote,pcMotherPerineum:d(bm,"postpartumCheckMotherPerineum",e.motherPerineum,o.selectDataRecords),pcMotherPerineumNote:e.motherPerineumNote,pcMotherLochia:d(bm,"postpartumCheckMotherLochia",e.motherLochia,o.selectDataRecords),pcMotherUrine:d(bm,"postpartumCheckMotherUrine",e.motherUrine,o.selectDataRecords),pcMotherStool:d(bm,"postpartumCheckMotherStool",e.motherStool,o.selectDataRecords),pcMotherSSInfection:d(bm,"postpartumCheckMotherSSInfection",e.motherSSInfection,o.selectDataRecords),pcMotherFamilyPlanning:d(bm,"postpartumCheckMotherFamilyPlanning",e.motherFamilyPlanning,o.selectDataRecords),pcBirthCertReq:e.birthCertReq,pcHgbRequested:e.hgbRequested,pcHgbTestDate:e.hgbTestDate,pcHgbTestResult:e.hgbTestResult,pcIronGiven:l(z,D,e.ironGiven),pcComments:e.comments,pcNextScheduledCheck:e.nextScheduledCheck})}return o}return o}(),{ctor:"_Tuple3",_0:T.update(u,{postpartumCheckViewEditState:uw,currPostpartumCheckId:y}),_1:De,_2:T.eq(u.postpartumCheckViewEditState,lw)?Be({ctor:"::",_0:Ov(qv),_1:{ctor:"::",_0:l($e,Zv,Ue(!0)),_1:{ctor:"[]"}}}):De};default:var B=$F(o);if("[]"===B.ctor){var S=d(hs,o.pcCheckDate,o.pcCheckTime,"Please correct the date and time for the postpartum check fields."),F=Ou({ctor:"::",_0:S,_1:{ctor:"[]"}}),w=function(){var t={ctor:"_Tuple3",_0:T.cmp(ot(F),0)>0,_1:o.currLaborId,_2:y};if(!0===t._0)return d(Yv,l(N["++"],F,{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}}),10,Lv);if("Nothing"===t._1.ctor)return l(aM,pC,"Error: Current labor id is not known.");if("Nothing"===t._2.ctor){var r=function(t){var r,e=t.currLaborId;if("Just"===e.ctor){var o=Iu(d(hs,t.pcCheckDate,t.pcCheckTime,""));return"Just"===o.ctor?U((r=o._0,function(t){return function(e){return function(o){return function(c){return function(n){return function(a){return function(_){return function(i){return function(u){return function(s){return function(l){return function(d){return function(m){return function(f){return function(p){return function(h){return function(b){return function(g){return function(y){return function(C){return function(T){return function(v){return function(M){return function(B){return function(D){return function(S){return function(F){return function(w){return function(R){return function(x){return function(k){return function(P){return function(A){return function(L){return function(N){return{checkDatetime:r,babyWeight:t,babyTemp:e,babyCR:o,babyRR:c,babyLungs:n,babyColor:a,babySkin:_,babyCord:i,babyUrine:u,babyStool:s,babySSInfection:l,babyFeeding:d,babyFeedingDaily:m,motherTemp:f,motherSystolic:p,motherDiastolic:h,motherCR:b,motherBreasts:g,motherFundus:y,motherFundusNote:C,motherPerineum:T,motherPerineumNote:v,motherLochia:M,motherUrine:B,motherStool:D,motherSSInfection:S,motherFamilyPlanning:F,birthCertReq:w,hgbRequested:R,hgbTestDate:x,hgbTestResult:k,ironGiven:P,comments:A,nextScheduledCheck:L,labor_id:N}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})(bu(t.pcBabyWeight))(hu(t.pcBabyTemp))(bu(t.pcBabyCR))(bu(t.pcBabyRR))(mm(t.pcBabyLungs))(mm(t.pcBabyColor))(mm(t.pcBabySkin))(mm(t.pcBabyCord))(t.pcBabyUrine)(t.pcBabyStool)(mm(t.pcBabySSInfection))(mm(t.pcBabyFeeding))(t.pcBabyFeedingDaily)(hu(t.pcMotherTemp))(bu(t.pcMotherSystolic))(bu(t.pcMotherDiastolic))(bu(t.pcMotherCR))(mm(t.pcMotherBreasts))(mm(t.pcMotherFundus))(t.pcMotherFundusNote)(mm(t.pcMotherPerineum))(t.pcMotherPerineumNote)(mm(t.pcMotherLochia))(mm(t.pcMotherUrine))(mm(t.pcMotherStool))(mm(t.pcMotherSSInfection))(mm(t.pcMotherFamilyPlanning))(t.pcBirthCertReq)(t.pcHgbRequested)(t.pcHgbTestDate)(t.pcHgbTestResult)(bu(t.pcIronGiven))(t.pcComments)(t.pcNextScheduledCheck)(e._0._0)):q}return q}(o);if("Just"===r.ctor){var e=r._0;return d(tM,l(qM,eM(l(GT,q,U({ctor:"::",_0:__,_1:{ctor:"[]"}}))),e),vT,(c=e,Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(__))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"checkDatetime",_1:Ju(c.checkDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyWeight",_1:l(Qo,Xr,c.babyWeight)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyTemp",_1:l(Qo,Qr,c.babyTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyCR",_1:l(Qo,Xr,c.babyCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyRR",_1:l(Qo,Xr,c.babyRR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyLungs",_1:l(Qo,$r,c.babyLungs)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyColor",_1:l(Qo,$r,c.babyColor)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babySkin",_1:l(Qo,$r,c.babySkin)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyCord",_1:l(Qo,$r,c.babyCord)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyUrine",_1:l(Qo,$r,c.babyUrine)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyStool",_1:l(Qo,$r,c.babyStool)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babySSInfection",_1:l(Qo,$r,c.babySSInfection)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyFeeding",_1:l(Qo,$r,c.babyFeeding)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyFeedingDaily",_1:l(Qo,$r,c.babyFeedingDaily)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherTemp",_1:l(Qo,Qr,c.motherTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherSystolic",_1:l(Qo,Xr,c.motherSystolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherDiastolic",_1:l(Qo,Xr,c.motherDiastolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCR",_1:l(Qo,Xr,c.motherCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherBreasts",_1:l(Qo,$r,c.motherBreasts)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFundus",_1:l(Qo,$r,c.motherFundus)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFundusNote",_1:l(Qo,$r,c.motherFundusNote)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherPerineum",_1:l(Qo,$r,c.motherPerineum)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherPerineumNote",_1:l(Qo,$r,c.motherPerineumNote)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherLochia",_1:l(Qo,$r,c.motherLochia)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherUrine",_1:l(Qo,$r,c.motherUrine)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherStool",_1:l(Qo,$r,c.motherStool)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherSSInfection",_1:l(Qo,$r,c.motherSSInfection)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFamilyPlanning",_1:l(Qo,$r,c.motherFamilyPlanning)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthCertReq",_1:l(Qo,Kr,c.birthCertReq)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hgbRequested",_1:l(Qo,Kr,c.hgbRequested)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hgbTestDate",_1:l(Qo,Ju,c.hgbTestDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hgbTestResult",_1:l(Qo,$r,c.hgbTestResult)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ironGiven",_1:l(Qo,Xr,c.ironGiven)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,c.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"nextScheduledCheck",_1:l(Qo,Ju,c.nextScheduledCheck)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(c.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})))}return l(aM,pC,"derivePostpartumCheckRecordNew returned a Nothing")}var c,n=l(Cm,__,o.dataCache);if("Just"===n.ctor&&"PostpartumCheckDataCache"===n._0.ctor){var a=l(gc,function(r){return T.eq(r.id,t._2._0._0)},n._0._0);if("Just"===a.ctor){var _=a._0,i=T.update(_,{checkDatetime:l(V,_.checkDatetime,Iu(S)),babyWeight:bu(o.pcBabyWeight),babyTemp:hu(o.pcBabyTemp),babyCR:bu(o.pcBabyCR),babyRR:bu(o.pcBabyRR),babyLungs:l(Gu,mm(o.pcBabyLungs),_.babyLungs),babyColor:l(Gu,mm(o.pcBabyColor),_.babyColor),babySkin:l(Gu,mm(o.pcBabySkin),_.babySkin),babyCord:l(Gu,mm(o.pcBabyCord),_.babyCord),babyUrine:o.pcBabyUrine,babyStool:o.pcBabyStool,babySSInfection:l(Gu,mm(o.pcBabySSInfection),_.babySSInfection),babyFeeding:l(Gu,mm(o.pcBabyFeeding),_.babyFeeding),babyFeedingDaily:o.pcBabyFeedingDaily,motherTemp:hu(o.pcMotherTemp),motherSystolic:bu(o.pcMotherSystolic),motherDiastolic:bu(o.pcMotherDiastolic),motherCR:bu(o.pcMotherCR),motherBreasts:l(Gu,mm(o.pcMotherBreasts),_.motherBreasts),motherFundus:l(Gu,mm(o.pcMotherFundus),_.motherFundus),motherFundusNote:o.pcMotherFundusNote,motherPerineum:l(Gu,mm(o.pcMotherPerineum),_.motherPerineum),motherPerineumNote:o.pcMotherPerineumNote,motherLochia:l(Gu,mm(o.pcMotherLochia),_.motherLochia),motherUrine:l(Gu,mm(o.pcMotherUrine),_.motherUrine),motherStool:l(Gu,mm(o.pcMotherStool),_.motherStool),motherSSInfection:l(Gu,mm(o.pcMotherSSInfection),_.motherSSInfection),motherFamilyPlanning:l(Gu,mm(o.pcMotherFamilyPlanning),_.motherFamilyPlanning),birthCertReq:o.pcBirthCertReq,hgbRequested:o.pcHgbRequested,hgbTestDate:o.pcHgbTestDate,hgbTestResult:o.pcHgbTestResult,ironGiven:bu(o.pcIronGiven),comments:o.pcComments,nextScheduledCheck:o.pcNextScheduledCheck});return d(tM,l(vM,eM(l(GT,q,U({ctor:"::",_0:__,_1:{ctor:"[]"}}))),i),yT,function(t){return Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"table",_1:$r(r_(__))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"data",_1:Gr({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:Xr(t.id)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"checkDatetime",_1:Ju(t.checkDatetime)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyWeight",_1:l(Qo,Xr,t.babyWeight)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyTemp",_1:l(Qo,Qr,t.babyTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyCR",_1:l(Qo,Xr,t.babyCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyRR",_1:l(Qo,Xr,t.babyRR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyLungs",_1:l(Qo,$r,t.babyLungs)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyColor",_1:l(Qo,$r,t.babyColor)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babySkin",_1:l(Qo,$r,t.babySkin)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyCord",_1:l(Qo,$r,t.babyCord)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyUrine",_1:l(Qo,$r,t.babyUrine)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyStool",_1:l(Qo,$r,t.babyStool)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babySSInfection",_1:l(Qo,$r,t.babySSInfection)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyFeeding",_1:l(Qo,$r,t.babyFeeding)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"babyFeedingDaily",_1:l(Qo,$r,t.babyFeedingDaily)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherTemp",_1:l(Qo,Qr,t.motherTemp)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherSystolic",_1:l(Qo,Xr,t.motherSystolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherDiastolic",_1:l(Qo,Xr,t.motherDiastolic)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherCR",_1:l(Qo,Xr,t.motherCR)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherBreasts",_1:l(Qo,$r,t.motherBreasts)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFundus",_1:l(Qo,$r,t.motherFundus)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFundusNote",_1:l(Qo,$r,t.motherFundusNote)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherPerineum",_1:l(Qo,$r,t.motherPerineum)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherPerineumNote",_1:l(Qo,$r,t.motherPerineumNote)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherLochia",_1:l(Qo,$r,t.motherLochia)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherUrine",_1:l(Qo,$r,t.motherUrine)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherStool",_1:l(Qo,$r,t.motherStool)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherSSInfection",_1:l(Qo,$r,t.motherSSInfection)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"motherFamilyPlanning",_1:l(Qo,$r,t.motherFamilyPlanning)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"birthCertReq",_1:l(Qo,Kr,t.birthCertReq)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hgbRequested",_1:l(Qo,Kr,t.hgbRequested)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hgbTestDate",_1:l(Qo,Ju,t.hgbTestDate)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"hgbTestResult",_1:l(Qo,$r,t.hgbTestResult)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"ironGiven",_1:l(Qo,Xr,t.ironGiven)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"comments",_1:l(Qo,$r,t.comments)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"nextScheduledCheck",_1:l(Qo,Ju,t.nextScheduledCheck)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"labor_id",_1:Xr(t.labor_id)},_1:{ctor:"[]"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}})},_1:{ctor:"[]"}}})}(i))}return l(aM,pC,"HandlePostpartumCheckModal: did not find PPCheck in data cache.")}return CM}();return{ctor:"_Tuple3",_0:T.update(o,{postpartumCheckViewEditState:lw,currPostpartumCheckId:q}),_1:De,_2:Be({ctor:"::",_0:l($e,M(w),Ue(!0)),_1:{ctor:"::",_0:Jv,_1:{ctor:"[]"}}})}}var R=d(v,e(function(t,r){return l(N["++"],t,r)}),{ctor:"::",_0:"Record was not saved.",_1:{ctor:"[]"}},l(it,Ce,B));return{ctor:"_Tuple3",_0:T.update(o,{postpartumCheckViewEditState:lw}),_1:De,_2:l(Qv,R,10)}}case"OpenDatePickerSubMsg":return{ctor:"_Tuple3",_0:o,_1:De,_2:l($e,cM,Ue(a._0))};case"PostpartumTick":return{ctor:"_Tuple3",_0:T.update(o,{currTime:a._0}),_1:De,_2:De};default:a._0;var x=function(){switch(o.currPregHeaderContent.ctor){case"PrenatalContent":return ff;case"LaborContent":return mf;default:return pf}}();return{ctor:"_Tuple3",_0:T.update(o,{currPregHeaderContent:x}),_1:De,_2:De}}}),fw=c(function(t,r,e){var o=h(iw,T.eq(e.postpartumCheckViewEditState,sw)||T.eq(e.postpartumCheckViewEditState,lw),T.eq(e.postpartumCheckViewEditState,uw),"Postpartum Checks",e,l(jT,Za,q),YT,YT),c=function(){var r={ctor:"_Tuple2",_0:e.patientRecord,_1:e.pregnancyRecord};if("Just"===r._0.ctor&&"Just"===r._1.ctor){var o=f(lf,U(e.laborRecord),e.laborStage1Record,e.laborStage2Record,e.laborStage3Record,e.contPostpartumCheckRecords);return p(tD,r._0._0,r._1._0,o,e.currPregHeaderContent,e.currTime,t)}return en("")}();return l(dn,{ctor:"[]"},{ctor:"::",_0:l(rn,function(t){return function(t){return{ctor:"RotatePregHeaderContent",_0:t}}(t)},c),_1:{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("content-wrapper"),_1:{ctor:"[]"}},{ctor:"::",_0:ow(o),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})}),pw=function(t){return{ctor:"BirthCert",_0:t}},hw=function(t){return{ctor:"Postpartum",_0:t}},bw=function(t){return{ctor:"LaborDelIpp",_0:t}},gw=function(t){return{ctor:"ContPP",_0:t}},yw=function(t){return{ctor:"Admitting",_0:t}},Cw={ctor:"NotFound"},Tw={ctor:"Blank"},vw=c(function(t,r,e){var o=e;if("Just"===o.ctor){var c=h(QF,t,0,r,o._0,q,q,q),n=c._0,a=c._1;return c._2,{ctor:"_Tuple2",_0:bw(n),_1:a}}return{ctor:"_Tuple2",_0:Tw,_1:r}}),Mw=function(t){return{ctor:"Loaded",_0:t}},Bw=_(function(t,r,e,o,c,n){var a=d(vw,t,dB,r),_=a._0,i=a._1;return{browserSupportsDate:t,currTime:e,currPregId:r,pageState:Mw(_),session:{user:q,serverTouch:0,clientTouch:0},toast:q,processStore:i,window:q,dialogActive:!1,dataCache:Tr,siteMessages:Tr,tableMetaCollection:tm,users:o,userId:c,supervisorId:n}}),Dw=c(function(t,r,e){var o,c=l(tF,r,e);return l(is["=>"],T.update(t,{pageState:Mw((o=c,{ctor:"Errored",_0:o}))}),De)}),Sw=e(function(t,r){var o=function(t){switch(t){case"ADD":return U(vT);case"DEL":return U(TT);case"SELECT":return U(CT);case"CHG":return U(yT);case"ADD_CHG_DELETE":return U(gT);case"ADHOC_TOUCH_SESSION":return U(bT);case"ADHOC_CLIENT_CONSOLE":return U(hT);default:return q}}(t.msgType);if("Just"!==o.ctor||"AddChgDelType"!==o._0.ctor)return De;var c=n(function(t,e,o,c){return T.eq(e,o)?(n=function(){var o=r.pageState;if("Loaded"!==o.ctor)return CM;switch(o._0.ctor){case"Admitting":return d(gM,t,U(e),c);case"ContPP":return d(dM,t,U(e),c);case"LaborDelIpp":return d(uM,t,U(e),c);case"Postpartum":return d(rM,t,U(e),c);case"BirthCert":return d(pM,t,U(e),c);default:return CM}}(),l($e,M(n),Ue(!0))):De;var n}),a=e(function(t,r){return l(gc,function(r){return T.eq(r.table,t)},r)});switch(t.payload.table.ctor){case"Baby":var _=l(Cm,F_,r.dataCache);return"Just"===_.ctor&&"BabyDataCache"===_._0.ctor?m(c,F_,_._0._0.id,t.payload.id,{ctor:"[]"}):De;case"BabyLab":var i={ctor:"_Tuple2",_0:l(Cm,F_,r.dataCache),_1:l(a,F_,t.payload.foreignKeys)};return"_Tuple2"===i.ctor&&"Just"===i._0.ctor&&"BabyDataCache"===i._0._0.ctor&&"Just"===i._1.ctor?m(c,F_,i._0._0._0.id,i._1._0.id,{ctor:"::",_0:S_,_1:{ctor:"[]"}}):De;case"BabyMedication":var u={ctor:"_Tuple2",_0:l(Cm,F_,r.dataCache),_1:l(a,F_,t.payload.foreignKeys)};return"_Tuple2"===u.ctor&&"Just"===u._0.ctor&&"BabyDataCache"===u._0._0.ctor&&"Just"===u._1.ctor?m(c,F_,u._0._0._0.id,u._1._0.id,{ctor:"::",_0:B_,_1:{ctor:"[]"}}):De;case"BabyVaccination":var s={ctor:"_Tuple2",_0:l(Cm,F_,r.dataCache),_1:l(a,F_,t.payload.foreignKeys)};return"_Tuple2"===s.ctor&&"Just"===s._0.ctor&&"BabyDataCache"===s._0._0.ctor&&"Just"===s._1.ctor?m(c,F_,s._0._0._0.id,s._1._0.id,{ctor:"::",_0:v_,_1:{ctor:"[]"}}):De;case"BirthCertificate":var f=l(Cm,C_,r.dataCache);return"Just"===f.ctor&&"BirthCertificateDataCache"===f._0.ctor?m(c,C_,f._0._0.id,t.payload.id,{ctor:"[]"}):De;case"ContPostpartumCheck":var p={ctor:"_Tuple2",_0:l(Cm,h_,r.dataCache),_1:l(a,h_,t.payload.foreignKeys)};return"_Tuple2"===p.ctor&&"Just"===p._0.ctor&&"LaborDataCache"===p._0._0.ctor&&"Just"===p._1.ctor?m(c,h_,p._0._0._0.id,p._1._0.id,{ctor:"::",_0:y_,_1:{ctor:"[]"}}):De;case"Discharge":var h=l(Cm,g_,r.dataCache);return"Just"===h.ctor&&"DischargeDataCache"===h._0.ctor?m(c,g_,h._0._0.id,t.payload.id,{ctor:"[]"}):De;case"Labor":var b=l(Cm,h_,r.dataCache);return"Just"===b.ctor&&"LaborDataCache"===b._0.ctor?m(c,h_,b._0._0.id,t.payload.id,{ctor:"[]"}):De;case"LaborStage1":var g=l(Cm,p_,r.dataCache);return"Just"===g.ctor&&"LaborStage1DataCache"===g._0.ctor?m(c,p_,g._0._0.id,t.payload.id,{ctor:"[]"}):De;case"LaborStage2":var y=l(Cm,f_,r.dataCache);return"Just"===y.ctor&&"LaborStage2DataCache"===y._0.ctor?m(c,f_,y._0._0.id,t.payload.id,{ctor:"[]"}):De;case"LaborStage3":var C=l(Cm,m_,r.dataCache);return"Just"===C.ctor&&"LaborStage3DataCache"===C._0.ctor?m(c,m_,C._0._0.id,t.payload.id,{ctor:"[]"}):De;case"Membrane":var v=l(Cm,d_,r.dataCache);return"Just"===v.ctor&&"MembraneDataCache"===v._0.ctor?m(c,d_,v._0._0.id,t.payload.id,{ctor:"[]"}):De;case"MotherMedication":var B={ctor:"_Tuple2",_0:l(Cm,h_,r.dataCache),_1:l(a,h_,t.payload.foreignKeys)};return"_Tuple2"===B.ctor&&"Just"===B._0.ctor&&"LaborDataCache"===B._0._0.ctor&&"Just"===B._1.ctor?m(c,h_,B._0._0._0.id,B._1._0.id,{ctor:"::",_0:l_,_1:{ctor:"[]"}}):De;case"NewbornExam":var D=l(Cm,u_,r.dataCache);return"Just"===D.ctor&&"NewbornExamDataCache"===D._0.ctor?m(c,u_,D._0._0.id,t.payload.id,{ctor:"[]"}):De;case"PostpartumCheck":var S={ctor:"_Tuple2",_0:l(Cm,h_,r.dataCache),_1:l(a,h_,t.payload.foreignKeys)};return"_Tuple2"===S.ctor&&"Just"===S._0.ctor&&"LaborDataCache"===S._0._0.ctor&&"Just"===S._1.ctor?m(c,h_,S._0._0._0.id,S._1._0.id,{ctor:"::",_0:__,_1:{ctor:"[]"}}):De;default:return De}}),Fw=e(function(t,r){var o,c=t;switch(c.ctor){case"UnknownMessage":return l(is["=>"],r,_M(l(N["++"],"UnknownMessage: ",c._0)));case"SiteMessage":return l(is["=>"],T.update(r,{siteMessages:c._0.payload.data}),De);case"SystemMessage":var n="SystemMode"===(o=c._0).ctor&&2===o._0?la(pa("/logout")):De;return l(is["=>"],r,n);case"DataAddMessage":var a=c._0,_=e(function(t,e){return h(om,t,e,r.userId,r.supervisorId,Ro(r.currTime),r.users,r.tableMetaCollection)}),i=l(fB,gC(a.messageId),r.processStore),u=i._0,s=i._1,m=function(){var t,e,o,c,n,i;if(!0===a.response.success){var s=u;t:do{if("Just"!==s.ctor)break t;switch(s._0.ctor){case"AddBabyType":if("LaborDelIppMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){var d=l(Vg,U(r.dataCache),U({ctor:"::",_0:F_,_1:{ctor:"[]"}})),m=l(Ss,{ctor:"BabyId",_0:a.response.id},s._0._1);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Em(m),r.dataCache)}),_1:l($e,sM,Ue(d))}}break t;case"AddBabyLabType":if("ContPPMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(eh,U(r.dataCache),U({ctor:"::",_0:S_,_1:{ctor:"[]"}}));var f=l(Es,Is(a.response.id),s._0._1),p="Just"===(i=l(Cm,S_,r.dataCache)).ctor&&"BabyLabDataCache"===i._0.ctor?l(Tm,Nm({ctor:"::",_0:f,_1:i._0._0}),r.dataCache):l(Tm,Nm({ctor:"::",_0:f,_1:{ctor:"[]"}}),r.dataCache);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:p}),_1:l($e,mM,Ue(d))}}break t;case"AddBabyMedicationType":if("ContPPMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(eh,U(r.dataCache),U({ctor:"::",_0:B_,_1:{ctor:"[]"}}));var h=l(tl,el(a.response.id),s._0._1);return p="Just"===(n=l(Cm,B_,r.dataCache)).ctor&&"BabyMedicationDataCache"===n._0.ctor?l(Tm,Lm({ctor:"::",_0:h,_1:n._0._0}),r.dataCache):l(Tm,Lm({ctor:"::",_0:h,_1:{ctor:"[]"}}),r.dataCache),{ctor:"_Tuple2",_0:T.update(r,{dataCache:p}),_1:l($e,mM,Ue(d))}}break t;case"AddBabyVaccinationType":if("ContPPMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(eh,U(r.dataCache),U({ctor:"::",_0:v_,_1:{ctor:"[]"}}));var b=l(ul,ll(a.response.id),s._0._1);return p="Just"===(c=l(Cm,v_,r.dataCache)).ctor&&"BabyVaccinationDataCache"===c._0.ctor?l(Tm,Am({ctor:"::",_0:b,_1:c._0._0}),r.dataCache):l(Tm,Am({ctor:"::",_0:b,_1:{ctor:"[]"}}),r.dataCache),{ctor:"_Tuple2",_0:T.update(r,{dataCache:p}),_1:l($e,mM,Ue(d))}}break t;case"AddBirthCertificateType":if("BirthCertMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(Of,U(r.dataCache),U({ctor:"::",_0:C_,_1:{ctor:"[]"}}));var g=l(gl,yl(a.response.id),s._0._1);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Pm(g),r.dataCache)}),_1:l($e,hM,Ue(d))}}break t;case"AddContPostpartumCheckType":if("ContPPMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(eh,U(r.dataCache),U({ctor:"::",_0:y_,_1:{ctor:"[]"}}));var y=l(vl,Ml(a.response.id),s._0._1);return p="Just"===(o=l(Cm,y_,r.dataCache)).ctor&&"ContPostpartumCheckDataCache"===o._0.ctor?l(Tm,km({ctor:"::",_0:y,_1:o._0._0}),r.dataCache):l(Tm,km({ctor:"::",_0:y,_1:{ctor:"[]"}}),r.dataCache),{ctor:"_Tuple2",_0:T.update(r,{dataCache:p,tableMetaCollection:l(_,y_,y.id)}),_1:l($e,mM,Ue(d))}}break t;case"AddDischargeType":if("ContPPMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(eh,U(r.dataCache),U({ctor:"::",_0:g_,_1:{ctor:"[]"}}));var C=l(Fl,wl(a.response.id),s._0._1);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,xm(C),r.dataCache)}),_1:l($e,mM,Ue(d))}}break t;case"AddLaborType":if("AdmittingMsg"===s._0._0.ctor&&"AdmitForLaborSaved"===s._0._0._0.ctor){d=l(gf,s._0._0._0._0,U(jl(a.response.id)));var v=l(Wl,jl(a.response.id),s._0._1);return p=l(Tm,Rm(v),r.dataCache),{ctor:"_Tuple2",_0:T.update(r,{dataCache:p}),_1:l($e,yM,Ue(d))}}break t;case"AddLaborStage1Type":if("LaborDelIppMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(Vg,U(r.dataCache),U({ctor:"::",_0:p_,_1:{ctor:"[]"}}));var M=l(Xl,Zl(a.response.id),s._0._1);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,wm(M),r.dataCache)}),_1:l($e,sM,Ue(d))}}break t;case"AddLaborStage2Type":if("LaborDelIppMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(Vg,U(r.dataCache),U({ctor:"::",_0:f_,_1:{ctor:"[]"}}));var B=l(cd,nd(a.response.id),s._0._1);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Fm(B),r.dataCache)}),_1:l($e,sM,Ue(d))}}break t;case"AddLaborStage3Type":if("LaborDelIppMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(Vg,U(r.dataCache),U({ctor:"::",_0:m_,_1:{ctor:"[]"}}));var S=l(sd,ld(a.response.id),s._0._1);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Sm(S),r.dataCache)}),_1:l($e,sM,Ue(d))}}break t;case"AddMembraneType":if("LaborDelIppMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(Vg,U(r.dataCache),U({ctor:"::",_0:d_,_1:{ctor:"[]"}}));var F=l(Td,Md(a.response.id),s._0._1);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Dm(F),r.dataCache)}),_1:l($e,sM,Ue(d))}}break t;case"AddMotherMedicationType":if("ContPPMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(eh,U(r.dataCache),U({ctor:"::",_0:l_,_1:{ctor:"[]"}}));var w=l(Jd,Od(a.response.id),s._0._1);return p="Just"===(e=l(Cm,l_,r.dataCache)).ctor&&"MotherMedicationDataCache"===e._0.ctor?l(Tm,Bm({ctor:"::",_0:w,_1:e._0._0}),r.dataCache):l(Tm,Bm({ctor:"::",_0:w,_1:{ctor:"[]"}}),r.dataCache),{ctor:"_Tuple2",_0:T.update(r,{dataCache:p}),_1:l($e,mM,Ue(d))}}break t;case"AddNewbornExamType":if("ContPPMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(eh,U(r.dataCache),U({ctor:"::",_0:u_,_1:{ctor:"[]"}}));var R=l(jd,Gd(a.response.id),s._0._1);return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Mm(R),r.dataCache)}),_1:l($e,mM,Ue(d))}}break t;case"AddPostpartumCheckType":if("PostpartumMsg"===s._0._0.ctor&&"DataCache"===s._0._0._0.ctor){d=l(GT,U(r.dataCache),U({ctor:"::",_0:__,_1:{ctor:"[]"}}));var x=l(im,um(a.response.id),s._0._1);return p="Just"===(t=l(Cm,__,r.dataCache)).ctor&&"PostpartumCheckDataCache"===t._0.ctor?l(Tm,vm({ctor:"::",_0:x,_1:t._0._0}),r.dataCache):l(Tm,vm({ctor:"::",_0:x,_1:{ctor:"[]"}}),r.dataCache),{ctor:"_Tuple2",_0:T.update(r,{dataCache:p,tableMetaCollection:l(_,__,x.id)}),_1:l($e,eM,Ue(d))}}break t;default:break t}}while(0);return{ctor:"_Tuple2",_0:r,_1:_M("OOPS, unhandled processType in Medical.updateMessage in the DataAddMessage branch.")}}return"SessionExpiredErrorCode"===a.response.errorCode?{ctor:"_Tuple2",_0:r,_1:l(Kv,{ctor:"::",_0:l(N["++"],"Sorry: ",l(N["++"],a.response.msg," Please go back to Prenatal, login, and then try again.")),_1:{ctor:"[]"}},10)}:{ctor:"_Tuple2",_0:r,_1:_M(D(a.response))}}(),f=m._0;return n=m._1,l(is["=>"],T.update(f,{processStore:s}),n);case"DataChgMessage":var p=c._0,b=(_=e(function(t,e){return h(om,t,e,r.userId,r.supervisorId,Ro(r.currTime),r.users,r.tableMetaCollection)}),l(fB,gC(p.messageId),r.processStore)),g=(u=b._0,s=b._1,function(){if(!0===p.response.success){var t=u;t:do{if("Just"!==t.ctor)break t;switch(t._0.ctor){case"UpdateBabyType":if("LaborDelIppMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor){var e=l(Vg,U(r.dataCache),U({ctor:"::",_0:F_,_1:{ctor:"[]"}}));return{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Em(t._0._1),r.dataCache)}),_1:l($e,sM,Ue(e))}}break t;case"UpdateBabyLabType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor){var o=t._0._1,c=(e=l(eh,U(r.dataCache),U({ctor:"::",_0:S_,_1:{ctor:"[]"}})),function(){var t=l(Cm,S_,r.dataCache);if("Just"===t.ctor&&"BabyLabDataCache"===t._0.ctor){var e=d(pc,function(t){return T.eq(t.id,o.id)},o,t._0._0);return l(Tm,Nm(e),r.dataCache)}return r.dataCache}());return{ctor:"_Tuple2",_0:T.update(r,{dataCache:c}),_1:l($e,mM,Ue(e))}}break t;case"UpdateBabyMedicationType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor){var n=t._0._1;return e=l(eh,U(r.dataCache),U({ctor:"::",_0:B_,_1:{ctor:"[]"}})),c=function(){var t=l(Cm,B_,r.dataCache);if("Just"===t.ctor&&"BabyMedicationDataCache"===t._0.ctor){var e=d(pc,function(t){return T.eq(t.id,n.id)},n,t._0._0);return l(Tm,Lm(e),r.dataCache)}return r.dataCache}(),{ctor:"_Tuple2",_0:T.update(r,{dataCache:c}),_1:l($e,mM,Ue(e))}}break t;case"UpdateBabyVaccinationType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor){var a=t._0._1;return e=l(eh,U(r.dataCache),U({ctor:"::",_0:v_,_1:{ctor:"[]"}})),c=function(){var t=l(Cm,v_,r.dataCache);if("Just"===t.ctor&&"BabyVaccinationDataCache"===t._0.ctor){var e=d(pc,function(t){return T.eq(t.id,a.id)},a,t._0._0);return l(Tm,Am(e),r.dataCache)}return r.dataCache}(),{ctor:"_Tuple2",_0:T.update(r,{dataCache:c}),_1:l($e,mM,Ue(e))}}break t;case"UpdateBirthCertificateType":if("BirthCertMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=l(Of,U(r.dataCache),U({ctor:"::",_0:C_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Pm(t._0._1),r.dataCache)}),_1:l($e,hM,Ue(e))};break t;case"UpdateContPostpartumCheckType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor){var i=t._0._1;return e=l(eh,U(r.dataCache),U({ctor:"::",_0:y_,_1:{ctor:"[]"}})),c=function(){var t=l(Cm,y_,r.dataCache);if("Just"===t.ctor&&"ContPostpartumCheckDataCache"===t._0.ctor){var e=d(pc,function(t){return T.eq(t.id,i.id)},i,t._0._0);return l(Tm,km(e),r.dataCache)}return r.dataCache}(),{ctor:"_Tuple2",_0:T.update(r,{dataCache:c,tableMetaCollection:l(_,y_,i.id)}),_1:l($e,mM,Ue(e))}}break t;case"UpdateDischargeType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=l(eh,U(r.dataCache),U({ctor:"::",_0:g_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,xm(t._0._1),r.dataCache)}),_1:l($e,mM,Ue(e))};break t;case"UpdateLaborType":switch(t._0._0.ctor){case"LaborDelIppMsg":if("DataCache"===t._0._0._0.ctor)return e=l(Vg,U(r.dataCache),U({ctor:"::",_0:h_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Rm(t._0._1),r.dataCache)}),_1:l($e,sM,Ue(e))};break t;case"AdmittingMsg":if("DataCache"===t._0._0._0.ctor)return e=l(Cf,U(r.dataCache),U({ctor:"::",_0:h_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Rm(t._0._1),r.dataCache)}),_1:l($e,yM,Ue(e))};break t;default:break t}case"UpdateLaborStage1Type":if("LaborDelIppMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=l(Vg,U(r.dataCache),U({ctor:"::",_0:p_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,wm(t._0._1),r.dataCache)}),_1:l($e,sM,Ue(e))};break t;case"UpdateLaborStage2Type":if("LaborDelIppMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=l(Vg,U(r.dataCache),U({ctor:"::",_0:f_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Fm(t._0._1),r.dataCache)}),_1:l($e,sM,Ue(e))};break t;case"UpdateLaborStage3Type":if("LaborDelIppMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=l(Vg,U(r.dataCache),U({ctor:"::",_0:m_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Sm(t._0._1),r.dataCache)}),_1:l($e,sM,Ue(e))};break t;case"UpdateMembraneType":if("LaborDelIppMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=l(Vg,U(r.dataCache),U({ctor:"::",_0:d_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Dm(t._0._1),r.dataCache)}),_1:l($e,sM,Ue(e))};break t;case"UpdateMotherMedicationType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor){var s=t._0._1;return e=l(eh,U(r.dataCache),U({ctor:"::",_0:l_,_1:{ctor:"[]"}})),c=function(){var t=l(Cm,l_,r.dataCache);if("Just"===t.ctor&&"MotherMedicationDataCache"===t._0.ctor){var e=d(pc,function(t){return T.eq(t.id,s.id)},s,t._0._0);return l(Tm,Bm(e),r.dataCache)}return r.dataCache}(),{ctor:"_Tuple2",_0:T.update(r,{dataCache:c}),_1:l($e,mM,Ue(e))}}break t;case"UpdateNewbornExamType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=l(eh,U(r.dataCache),U({ctor:"::",_0:u_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:l(Tm,Mm(t._0._1),r.dataCache)}),_1:l($e,mM,Ue(e))};break t;case"UpdatePostpartumCheckType":if("PostpartumMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor){var m=t._0._1;return e=l(GT,U(r.dataCache),U({ctor:"::",_0:__,_1:{ctor:"[]"}})),c=function(){var t=l(Cm,__,r.dataCache);if("Just"===t.ctor&&"PostpartumCheckDataCache"===t._0.ctor){var e=d(pc,function(t){return T.eq(t.id,m.id)},m,t._0._0);return l(Tm,vm(e),r.dataCache)}return r.dataCache}(),{ctor:"_Tuple2",_0:T.update(r,{dataCache:c,tableMetaCollection:l(_,__,m.id)}),_1:l($e,eM,Ue(e))}}break t;default:break t}}while(0);var f=l(N["++"],"OOPS, unhandled processType in Medical.updateMessage in the DataChgMessage branch: ",D(u));return{ctor:"_Tuple2",_0:r,_1:_M(f)}}return"SessionExpiredErrorCode"===p.response.errorCode?{ctor:"_Tuple2",_0:r,_1:l(Kv,{ctor:"::",_0:l(N["++"],"Sorry: ",l(N["++"],p.response.msg," Please go back to Prenatal, login, and then try again.")),_1:{ctor:"[]"}},10)}:{ctor:"_Tuple2",_0:r,_1:_M(D(p.response))}}());return f=g._0,n=g._1,l(is["=>"],T.update(f,{processStore:s}),n);case"DataDelMessage":var y=c._0,C=l(fB,gC(y.messageId),r.processStore),v=(u=C._0,s=C._1,function(){if(!0===y.response.success){var t=u;t:do{if("Just"!==t.ctor)break t;switch(t._0.ctor){case"DelBabyMedicationType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor){var e=function(){var e=l(Cm,B_,r.dataCache);if("Just"===e.ctor&&"BabyMedicationDataCache"===e._0.ctor){var o=l(ut,function(r){return!T.eq(r.id,t._0._1)},e._0._0);return l(Tm,Lm(o),r.dataCache)}return r.dataCache}(),o=l(eh,U(e),U({ctor:"::",_0:B_,_1:{ctor:"[]"}}));return{ctor:"_Tuple2",_0:T.update(r,{dataCache:e}),_1:l($e,mM,Ue(o))}}break t;case"DelBabyVaccinationType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=function(){var e=l(Cm,v_,r.dataCache);if("Just"===e.ctor&&"BabyVaccinationDataCache"===e._0.ctor){var o=l(ut,function(r){return!T.eq(r.id,t._0._1)},e._0._0);return l(Tm,Am(o),r.dataCache)}return r.dataCache}(),o=l(eh,U(e),U({ctor:"::",_0:v_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:e}),_1:l($e,mM,Ue(o))};break t;case"DelBabyLabType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=function(){var e=l(Cm,S_,r.dataCache);if("Just"===e.ctor&&"BabyLabDataCache"===e._0.ctor){var o=l(ut,function(r){return!T.eq(r.id,t._0._1)},e._0._0);return l(Tm,Nm(o),r.dataCache)}return r.dataCache}(),o=l(eh,U(e),U({ctor:"::",_0:S_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:e}),_1:l($e,mM,Ue(o))};break t;case"DelMotherMedicationType":if("ContPPMsg"===t._0._0.ctor&&"DataCache"===t._0._0._0.ctor)return e=function(){var e=l(Cm,l_,r.dataCache);if("Just"===e.ctor&&"MotherMedicationDataCache"===e._0.ctor){var o=l(ut,function(r){return!T.eq(r.id,t._0._1)},e._0._0);return l(Tm,Bm(o),r.dataCache)}return r.dataCache}(),o=l(eh,U(e),U({ctor:"::",_0:l_,_1:{ctor:"[]"}})),{ctor:"_Tuple2",_0:T.update(r,{dataCache:e}),_1:l($e,mM,Ue(o))};break t;default:break t}}while(0);return l(ye,"Medical: update function, missing DataDelMessage dataDelMsg case",D(u)),{ctor:"_Tuple2",_0:r,_1:De}}return"SessionExpiredErrorCode"===y.response.errorCode?{ctor:"_Tuple2",_0:r,_1:l(Kv,{ctor:"::",_0:l(N["++"],"Sorry: ",l(N["++"],y.response.msg," Please go back to Prenatal, login, and then try again.")),_1:{ctor:"[]"}},10)}:{ctor:"_Tuple2",_0:r,_1:_M(D(y.response))}}());return f=v._0,n=v._1,l(is["=>"],T.update(f,{processStore:s}),n);case"DataNotificationMessage":return l(is["=>"],r,l(Sw,c._0,r));default:var B=c._0,S=(f=!0===B.response.success?d(et,e(function(t,r){var e,o,c,n,a,_,i,u,s,m,f,p,h=t;switch(h.ctor){case"TableRecordBaby":var b=h._0,g="Just"===(p=at(b)).ctor?l(Tm,Em(p._0),r.dataCache):r.dataCache;return l(it,function(t){return{ctor:"_Tuple2",_0:t.id,_1:t}},b),T.update(r,{dataCache:g});case"TableRecordBabyLab":return T.update(r,{dataCache:l(Tm,Nm(h._0),r.dataCache)});case"TableRecordBabyLabType":return T.update(r,{dataCache:l(Tm,(f=h._0,{ctor:"BabyLabTypeDataCache",_0:f}),r.dataCache)});case"TableRecordBabyMedication":return T.update(r,{dataCache:l(Tm,Lm(h._0),r.dataCache)});case"TableRecordBabyMedicationType":return T.update(r,{dataCache:l(Tm,{ctor:"BabyMedicationTypeDataCache",_0:h._0},r.dataCache)});case"TableRecordBabyVaccination":return T.update(r,{dataCache:l(Tm,Am(h._0),r.dataCache)});case"TableRecordBabyVaccinationType":return T.update(r,{dataCache:l(Tm,{ctor:"BabyVaccinationTypeDataCache",_0:h._0},r.dataCache)});case"TableRecordBirthCertificate":return g="Just"===(m=at(h._0)).ctor?l(Tm,Pm(m._0),r.dataCache):r.dataCache,T.update(r,{dataCache:g});case"TableRecordContPostpartumCheck":return g=l(Tm,km(h._0),r.dataCache),T.update(r,{dataCache:g,tableMetaCollection:d(Zd,h._1,r.users,r.tableMetaCollection)});case"TableRecordDischarge":return g="Just"===(s=at(h._0)).ctor?l(Tm,xm(s._0),r.dataCache):r.dataCache,T.update(r,{dataCache:g});case"TableRecordKeyValue":var y=Hr(l(it,function(t){return{ctor:"_Tuple2",_0:t.kvKey,_1:t}},h._0));return T.update(r,{dataCache:l(Tm,{ctor:"KeyValueDataCache",_0:y},r.dataCache)});case"TableRecordLabor":return g="Just"===(u=at(h._0)).ctor?l(Tm,Rm(u._0),r.dataCache):r.dataCache,T.update(r,{dataCache:g});case"TableRecordLaborStage1":return g="Just"===(i=at(h._0)).ctor?l(Tm,wm(i._0),r.dataCache):r.dataCache,T.update(r,{dataCache:g});case"TableRecordLaborStage2":return g="Just"===(_=at(h._0)).ctor?l(Tm,Fm(_._0),r.dataCache):r.dataCache,T.update(r,{dataCache:g});case"TableRecordLaborStage3":return g="Just"===(a=at(h._0)).ctor?l(Tm,Sm(a._0),r.dataCache):r.dataCache,T.update(r,{dataCache:g});case"TableRecordMembrane":return g="Just"===(n=at(h._0)).ctor?l(Tm,Dm(n._0),r.dataCache):r.dataCache,T.update(r,{dataCache:g});case"TableRecordMotherMedication":return T.update(r,{dataCache:l(Tm,Bm(h._0),r.dataCache)});case"TableRecordMotherMedicationType":return T.update(r,{dataCache:l(Tm,{ctor:"MotherMedicationTypeDataCache",_0:h._0},r.dataCache)});case"TableRecordNewbornExam":return g="Just"===(c=at(h._0)).ctor?l(Tm,Mm(c._0),r.dataCache):r.dataCache,T.update(r,{dataCache:g});case"TableRecordPatient":var C=at(h._0);return g="Just"===(o=C).ctor?l(Tm,{ctor:"PatientDataCache",_0:o._0},r.dataCache):r.dataCache,T.update(r,{dataCache:g,tableMetaCollection:d(Zd,h._1,r.users,r.tableMetaCollection)});case"TableRecordPostpartumCheck":return g=l(Tm,vm(h._0),r.dataCache),T.update(r,{dataCache:g,tableMetaCollection:d(Zd,h._1,r.users,r.tableMetaCollection)});case"TableRecordPregnancy":return g="Just"===(e=C=at(h._0)).ctor?l(Tm,{ctor:"PregnancyDataCache",_0:e._0},r.dataCache):r.dataCache,T.update(r,{dataCache:g});default:return g=l(Tm,{ctor:"SelectDataDataCache",_0:h._0},r.dataCache),T.update(r,{dataCache:g})}}),r,B.response.data):r,l(fB,gC(B.messageId),r.processStore)),F=(u=S._0,s=S._1,T.update(f,{processStore:s})),w=u;if("Just"!==w.ctor)return l(is["=>"],F,De);switch(w._0.ctor){case"AddBabyType":case"AddBabyLabType":case"AddBabyMedicationType":case"AddBabyVaccinationType":case"AddBirthCertificateType":case"AddContPostpartumCheckType":case"AddDischargeType":case"AddMotherMedicationType":case"AddPostpartumCheckType":case"UpdateContPostpartumCheckType":case"UpdateBabyType":return l(is["=>"],F,l($e,M(w._0._0),Ue(!0)));case"DelBabyLabType":return l(is["=>"],F,l($e,M(w._0._0),Ue(w._0._1)));case"UpdateBabyLabType":return l(is["=>"],F,l($e,M(w._0._0),Ue(!0)));case"DelBabyMedicationType":return l(is["=>"],F,l($e,M(w._0._0),Ue(w._0._1)));case"UpdateBabyMedicationType":return l(is["=>"],F,l($e,M(w._0._0),Ue(!0)));case"DelBabyVaccinationType":return l(is["=>"],F,l($e,M(w._0._0),Ue(w._0._1)));case"UpdateBabyVaccinationType":case"UpdateBirthCertificateType":case"UpdateDischargeType":case"AddLaborType":case"UpdateLaborType":case"AddLaborStage1Type":case"UpdateLaborStage1Type":case"AddLaborStage2Type":case"UpdateLaborStage2Type":case"AddLaborStage3Type":case"UpdateLaborStage3Type":case"AddMembraneType":case"UpdateMembraneType":case"DelMotherMedicationType":case"UpdateMotherMedicationType":case"AddNewbornExamType":case"UpdateNewbornExamType":case"UpdatePostpartumCheckType":default:return l(is["=>"],F,l($e,M(w._0._0),Ue(!0)))}}}),ww=function(t){var r=l(Cm,h_,t);return"Just"===r.ctor&&"LaborDataCache"===r._0.ctor?U(r._0._0):q},Rw=function(t){var r=l(Cm,i_,t);return"Just"===r.ctor&&"PatientDataCache"===r._0.ctor?U(r._0._0):q},xw=function(t){var r=l(Cm,a_,t);return"Just"===r.ctor&&"PregnancyDataCache"===r._0.ctor?U(r._0._0):q},kw=function(t){var r=t;return r.ctor,r._0},Pw=e(function(t,r){Dw(r);var o,c,n,a,_,i=e(function(t,e){return l(is["=>"],T.update(r,{pageState:(o=kw(r.pageState),{ctor:"TransitioningFrom",_0:o}),processStore:t}),e);var o}),u=t;if("Nothing"===u.ctor)return l(is["=>"],T.update(r,{pageState:Mw(Cw)}),De);switch(u._0.ctor){case"AdmittingRoute":var s=r.currPregId;return"Just"===s.ctor?l(i,(_=d(_D,s._0,r.session,r.processStore))._0,_._1):l(is["=>"],T.update(r,{pageState:Mw(Cw)}),De);case"BirthCertificateRoute":if(r.dialogActive)return l(is["=>"],T.update(r,{dialogActive:!1}),De);var f={ctor:"_Tuple2",_0:r.currPregId,_1:l(Cm,h_,r.dataCache)};return"Just"===f._0.ctor&&"Just"===f._1.ctor&&"LaborDataCache"===f._1._0.ctor?l(i,(a=m(vD,f._0._0,f._1._0._0,r.session,r.processStore))._0,a._1):l(is["=>"],r,De);case"BirthCertificateDialogRoute":return l(is["=>"],r,De);case"ContPPRoute":if(r.dialogActive)return l(is["=>"],T.update(r,{dialogActive:!1}),De);var p={ctor:"_Tuple2",_0:r.currPregId,_1:l(Cm,h_,r.dataCache)};return"Just"===p._0.ctor&&"Just"===p._1.ctor&&"LaborDataCache"===p._1._0.ctor?l(i,(n=m(nS,p._0._0,p._1._0._0,r.session,r.processStore))._0,n._1):l(is["=>"],r,De);case"ContPPDialogRoute":return l(is["=>"],r,De);case"LaborDelIppRoute":var h=r.currPregId;return"Just"===h.ctor?r.dialogActive?l(is["=>"],T.update(r,{dialogActive:!1}),De):l(i,(c=d(RF,h._0,r.session,r.processStore))._0,c._1):l(is["=>"],T.update(r,{pageState:Mw(Cw)}),De);case"LaborDelIppDialogRoute":return l(is["=>"],r,De);case"PostpartumRoute":if(r.dialogActive)return l(is["=>"],T.update(r,{dialogActive:!1}),De);var b={ctor:"_Tuple2",_0:r.currPregId,_1:l(Cm,h_,r.dataCache)};return"Just"===b._0.ctor&&"Just"===b._1.ctor&&"LaborDataCache"===b._1._0.ctor?l(i,(o=m(_w,b._0._0,b._1._0._0,r.session,r.processStore))._0,o._1):l(is["=>"],r,De);default:return l(is["=>"],r,De)}}),Aw=e(function(t,r){var e,o,c,n,a,i,u,s,m,b,y,C,v,M,B,S,F,w,R=_(function(t,r,e,o,c,n){var a=l(o,c,n),_=a._0,i=a._1,u=a._2;return{ctor:"_Tuple2",_0:T.update(e,{pageState:Mw(t(_))}),_1:Be({ctor:"::",_0:u,_1:{ctor:"::",_0:l(Fe,r,i),_1:{ctor:"[]"}}})}}),x=T.update(r,{session:l(aB,r.session,r.currTime)}),k={ctor:"_Tuple2",_0:t,_1:kw(x.pageState)};t:do{switch(k._0.ctor){case"Noop":return l(is["=>"],x,De);case"Tick":var P=k._0._0,A=l(iB,r.session,r.currTime),L=A._0,E=A._1,J=function(){var t=r.toast;if("Just"===t.ctor){var e=t._0;return T.cmp(e.secondsLeft-1,0)<1?q:U(T.update(e,{secondsLeft:e.secondsLeft-1}))}return q}(),I=T.update(r,{currTime:P,toast:J,session:L}),O=function(){var t=k._1;switch(t.ctor){case"Admitting":return p(R,yw,yM,I,mD(I.session),{ctor:"AdmittingTick",_0:P},t._0);case"BirthCert":return p(R,pw,hM,I,FD(I.session),Af(P),t._0);case"ContPP":return p(R,gw,mM,I,JS(I.session),Wp(P),t._0);case"LaborDelIpp":return p(R,bw,sM,I,XF(I.session),Bg(P),t._0);case"Postpartum":return p(R,hw,eM,I,mw(I.session),qT(P),t._0);default:return l(is["=>"],I,De)}}(),V=O._0,H=O._1;return l(is["=>"],V,Be({ctor:"::",_0:E,_1:{ctor:"::",_0:H,_1:{ctor:"[]"}}}));case"Log":var z=k._0._0;return l(is["=>"],x,cB(d(KC,gC(-1),hT,d(fC,z,l(ye,mC(z),k._0._1),x.currTime))));case"Toast":return l(is["=>"],T.update(x,{toast:U(d(Av,k._0._0,k._0._1,k._0._2))}),De);case"WindowResize":return l(is["=>"],T.update(x,{window:k._0._0}),De);case"SetDialogActive":return l(is["=>"],T.update(x,{dialogActive:k._0._0}),De);case"Message":return l(Fw,k._0._0,T.update(r,{session:l(_B,r.session,r.currTime)}));case"ProcessTypeMsg":var W=d(mB,k._0._0,q,x.processStore),j=W._0,G=W._1;return{ctor:"_Tuple2",_0:T.update(x,{processStore:G}),_1:cB(d(KC,j,k._0._1,k._0._2))};case"AdmittingLoaded":var Y=xw(x.dataCache),K=Rw(x.dataCache),Q=ww(x.dataCache),X=h(dD,x.browserSupportsDate,x.currTime,x.processStore,k._0._0,K,Y,Q),$=X._0,Z=X._1;return E=X._2,l(is["=>"],T.update(x,{pageState:Mw(yw($)),processStore:Z}),E);case"AdmittingSelectQuery":if("Admitting"===k._1.ctor){var tt=f(iD,x.processStore,k._0._0,k._0._1,k._0._2,x.dataCache),rt=tt._0;return E=tt._1,l(is["=>"],T.update(x,{processStore:rt}),E)}break t;case"BirthCertLoaded":Y=xw(x.dataCache),K=Rw(x.dataCache);var et="Just"===(w=l(Cm,f_,x.dataCache)).ctor&&"LaborStage2DataCache"===w._0.ctor?U(w._0._0):q,ot="Just"===(F=l(Cm,F_,x.dataCache)).ctor&&"BabyDataCache"===F._0.ctor?U(F._0._0):q,ct=g(DD,k._0._1,et,ot,x.browserSupportsDate,x.currTime,x.processStore,k._0._0,K,Y);return $=ct._0,Z=ct._1,E=ct._2,l(is["=>"],T.update(x,{pageState:Mw(pw($)),processStore:Z}),E);case"BirthCertMsg":if("BirthCert"===k._1.ctor){var nt=k._0._0,at="DataCache"===(S=nt).ctor?l(Of,U(x.dataCache),S._1):nt;return p(R,pw,hM,x,FD(x.session),at,k._1._0)}break t;case"BirthCertSelectQuery":if("BirthCert"===k._1.ctor){var _t=f(CD,x.processStore,k._0._0,k._0._1,k._0._2,x.dataCache);return rt=_t._0,E=_t._1,l(is["=>"],T.update(x,{processStore:rt}),E)}break t;case"ContPPLoaded":Y=xw(x.dataCache),K=Rw(x.dataCache);var it={ctor:"_Tuple7",_0:(B=l(Cm,F_,x.dataCache),"Just"===B.ctor&&"BabyDataCache"===B._0.ctor?U(B._0._0):q),_1:(M=l(Cm,p_,x.dataCache),"Just"===M.ctor&&"LaborStage1DataCache"===M._0.ctor?U(M._0._0):q),_2:(v=l(Cm,f_,x.dataCache),"Just"===v.ctor&&"LaborStage2DataCache"===v._0.ctor?U(v._0._0):q),_3:(C=l(Cm,m_,x.dataCache),"Just"===C.ctor&&"LaborStage3DataCache"===C._0.ctor?U(C._0._0):q),_4:(y=l(Cm,y_,x.dataCache),"Just"===y.ctor&&"ContPostpartumCheckDataCache"===y._0.ctor?y._0._0:{ctor:"[]"}),_5:(b=l(Cm,l_,x.dataCache),"Just"===b.ctor&&"MotherMedicationDataCache"===b._0.ctor?b._0._0:{ctor:"[]"}),_6:(m=l(Cm,g_,x.dataCache),"Just"===m.ctor&&"DischargeDataCache"===m._0.ctor?U(m._0._0):q)},ut=(ot=it._0,it._1),st=(et=it._2,it._3),lt=it._4,dt=it._5,mt=it._6,ft=ES(k._0._1)(ut)(et)(st)(lt)(dt)(mt)(ot)(x.tableMetaCollection)(x.browserSupportsDate)(x.currTime)(x.processStore)(k._0._0)(K)(Y);return $=ft._0,Z=ft._1,E=ft._2,l(is["=>"],T.update(x,{pageState:Mw(gw($)),processStore:Z}),E);case"ContPPMsg":if("ContPP"===k._1.ctor){var pt=k._0._0;return at=function(){var t=pt;switch(t.ctor){case"DataCache":return l(eh,U(x.dataCache),t._1);case"TableMetaCollection":return zp(U(x.tableMetaCollection));default:return pt}}(),p(R,gw,mM,x,JS(x.session),at,k._1._0)}break t;case"ContPPSelectQuery":if("ContPP"===k._1.ctor){var ht=f(oS,x.processStore,k._0._0,k._0._1,k._0._2,x.dataCache);return rt=ht._0,E=ht._1,l(is["=>"],T.update(x,{processStore:rt}),E)}break t;case"LaborDelIppLoaded":Y=xw(x.dataCache),K=Rw(x.dataCache),Q=ww(x.dataCache);var bt=h(QF,x.browserSupportsDate,x.currTime,x.processStore,k._0._0,K,Y,Q);return $=bt._0,Z=bt._1,E=bt._2,l(is["=>"],T.update(x,{pageState:Mw(bw($)),processStore:Z}),E);case"LaborDelIppMsg":if("LaborDelIpp"===k._1.ctor){var gt=k._0._0;return at="DataCache"===(s=gt).ctor?l(Vg,U(x.dataCache),s._1):gt,p(R,bw,sM,x,XF(x.session),at,k._1._0)}break t;case"LaborDelIppSelectQuery":if("LaborDelIpp"===k._1.ctor){var yt=f(xF,x.processStore,k._0._0,k._0._1,k._0._2,x.dataCache);return rt=yt._0,E=yt._1,l(is["=>"],T.update(x,{processStore:rt}),E)}break t;case"PostpartumLoaded":Y=xw(x.dataCache),K=Rw(x.dataCache);var Ct={ctor:"_Tuple6",_0:(u=l(Cm,F_,x.dataCache),"Just"===u.ctor&&"BabyDataCache"===u._0.ctor?U(u._0._0):q),_1:(i=l(Cm,p_,x.dataCache),"Just"===i.ctor&&"LaborStage1DataCache"===i._0.ctor?U(i._0._0):q),_2:(a=l(Cm,f_,x.dataCache),"Just"===a.ctor&&"LaborStage2DataCache"===a._0.ctor?U(a._0._0):q),_3:(n=l(Cm,m_,x.dataCache),"Just"===n.ctor&&"LaborStage3DataCache"===n._0.ctor?U(n._0._0):q),_4:(c=l(Cm,y_,x.dataCache),"Just"===c.ctor&&"ContPostpartumCheckDataCache"===c._0.ctor?c._0._0:{ctor:"[]"}),_5:(o=l(Cm,__,x.dataCache),"Just"===o.ctor&&"PostpartumCheckDataCache"===o._0.ctor?o._0._0:{ctor:"[]"})},Tt=(ot=Ct._0,ut=Ct._1,et=Ct._2,st=Ct._3,Ct._4),vt=Ct._5,Mt=dw(k._0._1)(ut)(et)(st)(Tt)(ot)(vt)(x.tableMetaCollection)(x.browserSupportsDate)(x.currTime)(x.processStore)(k._0._0)(K)(Y);return $=Mt._0,Z=Mt._1,E=Mt._2,l(is["=>"],T.update(x,{pageState:Mw(hw($)),processStore:Z}),E);case"PostpartumMsg":if("Postpartum"===k._1.ctor){var Bt=k._0._0;return at=function(){var t=Bt;switch(t.ctor){case"DataCache":return l(GT,U(x.dataCache),t._1);case"TableMetaCollection":return VT(U(x.tableMetaCollection));default:return Bt}}(),p(R,hw,eM,x,mw(x.session),at,k._1._0)}break t;case"PostpartumSelectQuery":if("Postpartum"===k._1.ctor){var Dt=f(nw,x.processStore,k._0._0,k._0._1,k._0._2,x.dataCache);return rt=Dt._0,E=Dt._1,l(is["=>"],T.update(x,{processStore:rt}),E)}break t;case"AdmittingMsg":if("Admitting"===k._1.ctor){var St=k._0._0;return at="DataCache"===(e=St).ctor?l(Cf,U(x.dataCache),e._1):St,p(R,yw,yM,x,mD(x.session),at,k._1._0)}break t;case"SetRoute":var Ft=l(Pw,k._0._0,x);if(I=Ft._0,E=Ft._1,!x.dialogActive||I.dialogActive)return l(is["=>"],I,E);var wt=k._1;switch(wt.ctor){case"BirthCert":return p(R,pw,hM,I,FD(x.session),Lf,wt._0);case"ContPP":return p(R,gw,mM,I,JS(x.session),jp,wt._0);case"LaborDelIpp":return p(R,bw,sM,I,XF(x.session),Mg,wt._0);case"Postpartum":return p(R,hw,eM,I,mw(x.session),HT,wt._0);default:return l(is["=>"],I,E)}case"OpenDatePicker":return l(is["=>"],x,nB($r(k._0._0)));default:switch(k._1.ctor){case"Admitting":return p(R,yw,yM,x,mD(x.session),{ctor:"DateFieldSubMsg",_0:k._0._0},k._1._0);case"BirthCert":return p(R,pw,hM,x,FD(x.session),Jf(k._0._0),k._1._0);case"LaborDelIpp":return p(R,bw,sM,x,XF(x.session),Ig(k._0._0),k._1._0);case"ContPP":return p(R,gw,mM,x,JS(x.session),Yp(k._0._0),k._1._0);case"Postpartum":return p(R,hw,eM,x,mw(x.session),UT(k._0._0),k._1._0);default:break t}}}while(0);var Rt=l(N["++"],"Unhandled msg of ",l(N["++"],D(k._0),l(N["++"]," and page of ",l(N["++"],D(k._1)," in Medical.update."))));return l(is["=>"],x,_M(Rt))}),Lw=c(function(t,r,e){var o=f($S,t.window,r,t.currPregId,t.session.user,t.toast),c=e;switch(c.ctor){case"Blank":return en("Blank page");case"NotFound":return l(o,WS,(t.session,l(_n,{ctor:"::",_0:kn("content"),_1:{ctor:"::",_0:xn("container"),_1:{ctor:"::",_0:Sn(-1),_1:{ctor:"[]"}}}},{ctor:"::",_0:l(dn,{ctor:"::",_0:xn("row"),_1:{ctor:"[]"}},{ctor:"::",_0:en("Page not found."),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})));case"Admitting":return l(rn,yM,l(o,zS,d(aD,t.window,t.session,c._0)));case"BirthCert":return l(rn,hM,l(o,VS,d(wD,t.window,t.session,c._0)));case"ContPP":return l(rn,mM,l(o,US,d(IS,t.window,t.session,c._0)));case"LaborDelIpp":return l(rn,sM,l(o,HS,d(YF,t.window,t.session,c._0)));case"Postpartum":return l(rn,eM,l(o,qS,d(fw,t.window,t.session,c._0)));default:return l(o,WS,l(ZS,t.session,c._0))}}),Nw=_(function(t,r,e,o,c,n){return{pregId:t,currTime:r,browserSupportsDate:e,users:o,userId:c,supervisorId:n}}),Ew=d(Ie,"supervisorId",fe(he),d(Ie,"userId",he,d(Ie,"users",me(Qd),d(Ie,"browserSupportsDate",be,d(Ie,"currTime",pe,d(Ie,"pregId",fe(ge),Ae(Nw))))))),Jw=l(Ca,function(t){return $v(jv(t))},{init:e(function(t,r){var e,o,c=(e=t,l(At,p(Nw,q,0,!1,{ctor:"[]"},0,q),l(ce,Ew,e))),n="Just"===(o=c.pregId).ctor?Pt(l(Et,dm,qt(o._0))):q,a=Hr(l(it,function(t){return{ctor:"_Tuple2",_0:t.id,_1:t}},c.users)),_=l(Pw,jv(r),p(Bw,c.browserSupportsDate,n,c.currTime,a,c.userId,c.supervisorId)),i=_._0,u=_._1;return{ctor:"_Tuple2",_0:i,_1:Be({ctor:"::",_0:u,_1:{ctor:"::",_0:l($e,function(t){return Gv(U(t))},xa),_1:{ctor:"[]"}}})}}),update:Aw,view:function(t){var r=t.pageState;return"Loaded"===r.ctor?d(Lw,t,!1,r._0):d(Lw,t,!0,r._0)},subscriptions:function(t){return we({ctor:"::",_0:(r=function(t){return Gv(U(t))},Pa(Aa(r))),_1:{ctor:"::",_0:l(mo,1e3,Xv),_1:{ctor:"::",_0:l(xe,nM,eB(OT)),_1:{ctor:"::",_0:l(xe,lM,oB(sf)),_1:{ctor:"[]"}}}}});var r}})(te),Iw={};Iw.Medical=Iw.Medical||{},void 0!==Jw&&Jw(Iw.Medical,"Medical",void 0),void 0===(o=function(){return Iw}.apply(r,[]))||(t.exports=o)}).call(this)},function(t,r){t.exports={supportsDateInput:function(){var t=document.createElement("input");return t.type="date","date"===t.type}}},function(t,r){var e;t.exports={setApp:function(t){(e=t).ports.openDatePicker.subscribe(function(t){!function(t){var r=jQuery("#"+t);r.datepicker({changeMonth:!0,changeYear:!0,yearRange:"-60:+5",showButtonPanel:!0,currentText:"Go to today",onSelect:function(r,o){!function(t,r,o){jQuery("#"+t).datepicker("hide"),e.ports.selectedDate.send({dateField:t,date:r})}(t,r)},dateFormat:"yy-mm-dd"}),r.datepicker().datepicker("show")}(t)})}}},function(t,r,e){io=e(51);var o,c=io.connect(window.location.origin+"/");c.on("error",function(t){o&&(console.log("=== Error ==>"),console.log(t),console.log("<== Error ==="))}),c.on("reconnect_error",function(t){o&&(console.log("=== Reconnect Error ==>"),console.log(t),console.log("<== Reconnect Error ==="))}),c.on("connect_error",function(t){o&&(console.log("=== Connect Error ==>"),console.log(t),console.log("<== Connect Error ==="))}),c.on("message",function(t){if(o)if(t){var r;try{r=JSON.parse(t)}catch(t){return console.log("ERROR parsing JSON."),void console.log(t)}r&&r.namespace&&r.msgType||(console.log("ERROR: message received from the server is in improper format."),console.log(r)),o.ports.incoming.send(r)}else console.log("ERROR: message received from the server with no content.");else console.log("ERROR: message received from the server before app has been initialized.")}),t.exports={setApp:function(t){(o=t).ports.outgoing.subscribe(function(t){var r;t.msgType&&"ADHOC_TOUCH_SESSION"===t.msgType&&((r=new XMLHttpRequest).open("PUT",window.location.origin+"/touch",!0),r.send()),c.send(JSON.stringify(t))})},errorToServer:t=>{const r={msgType:"ADHOC_CLIENT_CONSOLE",namespace:"DATA",version:2,payload:{timestamp:Date.now(),severity:"error",message:t}};c.send(JSON.stringify(r))}}},,function(t,r,e){},,function(t,r,e){},,function(t,r,e){},,function(t,r,e){},function(t,r,e){"use strict";e(63),e(61),e(59),e(57);var o,c,n=e(55),a=e(54),_=e(53),i=e(52),u=document.getElementById("app"),s=u.getAttribute("data-preg_id"),l=!!_.supportsDateInput&&_.supportsDateInput(),d=JSON.parse(u.getAttribute("data-users"));try{if(o=parseInt(u.getAttribute("data-user_id"),10),isNaN(o))throw"No user id"}catch(t){o=-1}try{if(c=parseInt(u.getAttribute("data-supervisor_id"),10),isNaN(c))throw"No supervisor id"}catch(t){c=null}var m=i.Medical.embed(u,{pregId:s,currTime:Date.now(),browserSupportsDate:l,users:d||[],userId:o,supervisorId:c});n.setApp(m),a.setApp(m),window.onerror=function(t,r,e,o,c){return t=t||"",t+=" | "+(r||""),t+=" | "+("number"==typeof e?e:""),t+=" | "+("number"==typeof o?o:""),t+=" | "+(c?JSON.stringify(c):""),n.errorToServer(t),!1}}]); \ No newline at end of file diff --git a/build_odroid/roles/build_clients/files/elm_static/app.mwemr-medical-client-bundle.js.map b/build_odroid/roles/build_clients/files/elm_static/app.mwemr-medical-client-bundle.js.map new file mode 100644 index 0000000..6df92c4 --- /dev/null +++ b/build_odroid/roles/build_clients/files/elm_static/app.mwemr-medical-client-bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"app.mwemr-medical-client-bundle.js","sources":["webpack:///webpack/bootstrap","webpack:///../node_modules/after/index.js","webpack:///../node_modules/arraybuffer.slice/index.js","webpack:///../node_modules/backo2/index.js","webpack:///../node_modules/base64-arraybuffer/lib/base64-arraybuffer.js","webpack:///../node_modules/base64-js/index.js","webpack:///../node_modules/blob/index.js","webpack:///../node_modules/buffer/index.js","webpack:///../node_modules/component-bind/index.js","webpack:///../node_modules/component-emitter/index.js","webpack:///../node_modules/component-inherit/index.js","webpack:///../node_modules/engine.io-client/lib/index.js","webpack:///../node_modules/engine.io-client/lib/socket.js","webpack:///../node_modules/engine.io-client/lib/transport.js","webpack:///../node_modules/engine.io-client/lib/transports/index.js","webpack:///../node_modules/engine.io-client/lib/transports/polling-jsonp.js","webpack:///../node_modules/engine.io-client/lib/transports/polling-xhr.js","webpack:///../node_modules/engine.io-client/lib/transports/polling.js","webpack:///../node_modules/engine.io-client/lib/transports/websocket.js","webpack:///../node_modules/engine.io-client/lib/xmlhttprequest.js","webpack:///../node_modules/engine.io-client/node_modules/debug/src/browser.js","webpack:///../node_modules/engine.io-client/node_modules/debug/src/debug.js","webpack:///../node_modules/engine.io-parser/lib/browser.js","webpack:///../node_modules/engine.io-parser/lib/keys.js","webpack:///../node_modules/engine.io-parser/lib/utf8.js","webpack:///../node_modules/has-binary2/index.js","webpack:///../node_modules/has-binary2/node_modules/isarray/index.js","webpack:///../node_modules/has-cors/index.js","webpack:///../node_modules/ieee754/index.js","webpack:///../node_modules/indexof/index.js","webpack:///../node_modules/isarray/index.js","webpack:///../node_modules/ms/index.js","webpack:///../node_modules/parseqs/index.js","webpack:///../node_modules/parseuri/index.js","webpack:///../node_modules/process/browser.js","webpack:///../node_modules/socket.io-client/lib/index.js","webpack:///../node_modules/socket.io-client/lib/manager.js","webpack:///../node_modules/socket.io-client/lib/on.js","webpack:///../node_modules/socket.io-client/lib/socket.js","webpack:///../node_modules/socket.io-client/lib/url.js","webpack:///../node_modules/socket.io-client/node_modules/debug/src/browser.js","webpack:///../node_modules/socket.io-client/node_modules/debug/src/debug.js","webpack:///../node_modules/socket.io-parser/binary.js","webpack:///../node_modules/socket.io-parser/index.js","webpack:///../node_modules/socket.io-parser/is-buffer.js","webpack:///../node_modules/socket.io-parser/node_modules/debug/src/browser.js","webpack:///../node_modules/socket.io-parser/node_modules/debug/src/debug.js","webpack:///../node_modules/socket.io-parser/node_modules/isarray/index.js","webpack:///../node_modules/to-array/index.js","webpack:///../node_modules/webpack/buildin/global.js","webpack:///../node_modules/webpack/buildin/module.js","webpack:///../node_modules/yeast/index.js","webpack:///./src/css/fonts.css?6982","webpack:///./src/css/main.css?185b","webpack:///./src/elm/Medical.elm","webpack:///./src/js/comm.js","webpack:///./src/js/datepicker.js","webpack:///./src/js/tests.js","webpack:///./src/medical.js","webpack:///./vendor/blaze.colors.min.css?8345","webpack:///./vendor/blaze.min.css?81ff","webpack:///ws (ignored)"],"sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/medical.js\");\n","module.exports = after\n\nfunction after(count, callback, err_cb) {\n var bail = false\n err_cb = err_cb || noop\n proxy.count = count\n\n return (count === 0) ? callback() : proxy\n\n function proxy(err, result) {\n if (proxy.count <= 0) {\n throw new Error('after called too many times')\n }\n --proxy.count\n\n // after first error, rest are passed to err_cb\n if (err) {\n bail = true\n callback(err)\n // future error callbacks will go to error handler\n callback = err_cb\n } else if (proxy.count === 0 && !bail) {\n callback(null, result)\n }\n }\n}\n\nfunction noop() {}\n","/**\n * An abstraction for slicing an arraybuffer even when\n * ArrayBuffer.prototype.slice is not supported\n *\n * @api public\n */\n\nmodule.exports = function(arraybuffer, start, end) {\n var bytes = arraybuffer.byteLength;\n start = start || 0;\n end = end || bytes;\n\n if (arraybuffer.slice) { return arraybuffer.slice(start, end); }\n\n if (start < 0) { start += bytes; }\n if (end < 0) { end += bytes; }\n if (end > bytes) { end = bytes; }\n\n if (start >= bytes || start >= end || bytes === 0) {\n return new ArrayBuffer(0);\n }\n\n var abv = new Uint8Array(arraybuffer);\n var result = new Uint8Array(end - start);\n for (var i = start, ii = 0; i < end; i++, ii++) {\n result[ii] = abv[i];\n }\n return result.buffer;\n};\n","\n/**\n * Expose `Backoff`.\n */\n\nmodule.exports = Backoff;\n\n/**\n * Initialize backoff timer with `opts`.\n *\n * - `min` initial timeout in milliseconds [100]\n * - `max` max timeout [10000]\n * - `jitter` [0]\n * - `factor` [2]\n *\n * @param {Object} opts\n * @api public\n */\n\nfunction Backoff(opts) {\n opts = opts || {};\n this.ms = opts.min || 100;\n this.max = opts.max || 10000;\n this.factor = opts.factor || 2;\n this.jitter = opts.jitter > 0 && opts.jitter <= 1 ? opts.jitter : 0;\n this.attempts = 0;\n}\n\n/**\n * Return the backoff duration.\n *\n * @return {Number}\n * @api public\n */\n\nBackoff.prototype.duration = function(){\n var ms = this.ms * Math.pow(this.factor, this.attempts++);\n if (this.jitter) {\n var rand = Math.random();\n var deviation = Math.floor(rand * this.jitter * ms);\n ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation;\n }\n return Math.min(ms, this.max) | 0;\n};\n\n/**\n * Reset the number of attempts.\n *\n * @api public\n */\n\nBackoff.prototype.reset = function(){\n this.attempts = 0;\n};\n\n/**\n * Set the minimum duration\n *\n * @api public\n */\n\nBackoff.prototype.setMin = function(min){\n this.ms = min;\n};\n\n/**\n * Set the maximum duration\n *\n * @api public\n */\n\nBackoff.prototype.setMax = function(max){\n this.max = max;\n};\n\n/**\n * Set the jitter\n *\n * @api public\n */\n\nBackoff.prototype.setJitter = function(jitter){\n this.jitter = jitter;\n};\n\n","/*\n * base64-arraybuffer\n * https://github.com/niklasvh/base64-arraybuffer\n *\n * Copyright (c) 2012 Niklas von Hertzen\n * Licensed under the MIT license.\n */\n(function(){\n \"use strict\";\n\n var chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\n // Use a lookup table to find the index.\n var lookup = new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n\n exports.encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer),\n i, len = bytes.length, base64 = \"\";\n\n for (i = 0; i < len; i+=3) {\n base64 += chars[bytes[i] >> 2];\n base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\n base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\n base64 += chars[bytes[i + 2] & 63];\n }\n\n if ((len % 3) === 2) {\n base64 = base64.substring(0, base64.length - 1) + \"=\";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + \"==\";\n }\n\n return base64;\n };\n\n exports.decode = function(base64) {\n var bufferLength = base64.length * 0.75,\n len = base64.length, i, p = 0,\n encoded1, encoded2, encoded3, encoded4;\n\n if (base64[base64.length - 1] === \"=\") {\n bufferLength--;\n if (base64[base64.length - 2] === \"=\") {\n bufferLength--;\n }\n }\n\n var arraybuffer = new ArrayBuffer(bufferLength),\n bytes = new Uint8Array(arraybuffer);\n\n for (i = 0; i < len; i+=4) {\n encoded1 = lookup[base64.charCodeAt(i)];\n encoded2 = lookup[base64.charCodeAt(i+1)];\n encoded3 = lookup[base64.charCodeAt(i+2)];\n encoded4 = lookup[base64.charCodeAt(i+3)];\n\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\n }\n\n return arraybuffer;\n };\n})();\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n for (var i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/**\n * Create a blob builder even when vendor prefixes exist\n */\n\nvar BlobBuilder = global.BlobBuilder\n || global.WebKitBlobBuilder\n || global.MSBlobBuilder\n || global.MozBlobBuilder;\n\n/**\n * Check if Blob constructor is supported\n */\n\nvar blobSupported = (function() {\n try {\n var a = new Blob(['hi']);\n return a.size === 2;\n } catch(e) {\n return false;\n }\n})();\n\n/**\n * Check if Blob constructor supports ArrayBufferViews\n * Fails in Safari 6, so we need to map to ArrayBuffers there.\n */\n\nvar blobSupportsArrayBufferView = blobSupported && (function() {\n try {\n var b = new Blob([new Uint8Array([1,2])]);\n return b.size === 2;\n } catch(e) {\n return false;\n }\n})();\n\n/**\n * Check if BlobBuilder is supported\n */\n\nvar blobBuilderSupported = BlobBuilder\n && BlobBuilder.prototype.append\n && BlobBuilder.prototype.getBlob;\n\n/**\n * Helper function that maps ArrayBufferViews to ArrayBuffers\n * Used by BlobBuilder constructor and old browsers that didn't\n * support it in the Blob constructor.\n */\n\nfunction mapArrayBufferViews(ary) {\n for (var i = 0; i < ary.length; i++) {\n var chunk = ary[i];\n if (chunk.buffer instanceof ArrayBuffer) {\n var buf = chunk.buffer;\n\n // if this is a subarray, make a copy so we only\n // include the subarray region from the underlying buffer\n if (chunk.byteLength !== buf.byteLength) {\n var copy = new Uint8Array(chunk.byteLength);\n copy.set(new Uint8Array(buf, chunk.byteOffset, chunk.byteLength));\n buf = copy.buffer;\n }\n\n ary[i] = buf;\n }\n }\n}\n\nfunction BlobBuilderConstructor(ary, options) {\n options = options || {};\n\n var bb = new BlobBuilder();\n mapArrayBufferViews(ary);\n\n for (var i = 0; i < ary.length; i++) {\n bb.append(ary[i]);\n }\n\n return (options.type) ? bb.getBlob(options.type) : bb.getBlob();\n};\n\nfunction BlobConstructor(ary, options) {\n mapArrayBufferViews(ary);\n return new Blob(ary, options || {});\n};\n\nmodule.exports = (function() {\n if (blobSupported) {\n return blobSupportsArrayBufferView ? global.Blob : BlobConstructor;\n } else if (blobBuilderSupported) {\n return BlobBuilderConstructor;\n } else {\n return undefined;\n }\n})();\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n","/**\n * Slice reference.\n */\n\nvar slice = [].slice;\n\n/**\n * Bind `obj` to `fn`.\n *\n * @param {Object} obj\n * @param {Function|String} fn or string\n * @return {Function}\n * @api public\n */\n\nmodule.exports = function(obj, fn){\n if ('string' == typeof fn) fn = obj[fn];\n if ('function' != typeof fn) throw new Error('bind() requires a function');\n var args = slice.call(arguments, 2);\n return function(){\n return fn.apply(obj, args.concat(slice.call(arguments)));\n }\n};\n","\r\n/**\r\n * Expose `Emitter`.\r\n */\r\n\r\nif (typeof module !== 'undefined') {\r\n module.exports = Emitter;\r\n}\r\n\r\n/**\r\n * Initialize a new `Emitter`.\r\n *\r\n * @api public\r\n */\r\n\r\nfunction Emitter(obj) {\r\n if (obj) return mixin(obj);\r\n};\r\n\r\n/**\r\n * Mixin the emitter properties.\r\n *\r\n * @param {Object} obj\r\n * @return {Object}\r\n * @api private\r\n */\r\n\r\nfunction mixin(obj) {\r\n for (var key in Emitter.prototype) {\r\n obj[key] = Emitter.prototype[key];\r\n }\r\n return obj;\r\n}\r\n\r\n/**\r\n * Listen on the given `event` with `fn`.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.on =\r\nEmitter.prototype.addEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n .push(fn);\r\n return this;\r\n};\r\n\r\n/**\r\n * Adds an `event` listener that will be invoked a single\r\n * time then automatically removed.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.once = function(event, fn){\r\n function on() {\r\n this.off(event, on);\r\n fn.apply(this, arguments);\r\n }\r\n\r\n on.fn = fn;\r\n this.on(event, on);\r\n return this;\r\n};\r\n\r\n/**\r\n * Remove the given callback for `event` or all\r\n * registered callbacks.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.off =\r\nEmitter.prototype.removeListener =\r\nEmitter.prototype.removeAllListeners =\r\nEmitter.prototype.removeEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n\r\n // all\r\n if (0 == arguments.length) {\r\n this._callbacks = {};\r\n return this;\r\n }\r\n\r\n // specific event\r\n var callbacks = this._callbacks['$' + event];\r\n if (!callbacks) return this;\r\n\r\n // remove all handlers\r\n if (1 == arguments.length) {\r\n delete this._callbacks['$' + event];\r\n return this;\r\n }\r\n\r\n // remove specific handler\r\n var cb;\r\n for (var i = 0; i < callbacks.length; i++) {\r\n cb = callbacks[i];\r\n if (cb === fn || cb.fn === fn) {\r\n callbacks.splice(i, 1);\r\n break;\r\n }\r\n }\r\n return this;\r\n};\r\n\r\n/**\r\n * Emit `event` with the given args.\r\n *\r\n * @param {String} event\r\n * @param {Mixed} ...\r\n * @return {Emitter}\r\n */\r\n\r\nEmitter.prototype.emit = function(event){\r\n this._callbacks = this._callbacks || {};\r\n var args = [].slice.call(arguments, 1)\r\n , callbacks = this._callbacks['$' + event];\r\n\r\n if (callbacks) {\r\n callbacks = callbacks.slice(0);\r\n for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n callbacks[i].apply(this, args);\r\n }\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Return array of callbacks for `event`.\r\n *\r\n * @param {String} event\r\n * @return {Array}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.listeners = function(event){\r\n this._callbacks = this._callbacks || {};\r\n return this._callbacks['$' + event] || [];\r\n};\r\n\r\n/**\r\n * Check if this emitter has `event` handlers.\r\n *\r\n * @param {String} event\r\n * @return {Boolean}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.hasListeners = function(event){\r\n return !! this.listeners(event).length;\r\n};\r\n","\nmodule.exports = function(a, b){\n var fn = function(){};\n fn.prototype = b.prototype;\n a.prototype = new fn;\n a.prototype.constructor = a;\n};","\nmodule.exports = require('./socket');\n\n/**\n * Exports parser\n *\n * @api public\n *\n */\nmodule.exports.parser = require('engine.io-parser');\n","/**\n * Module dependencies.\n */\n\nvar transports = require('./transports/index');\nvar Emitter = require('component-emitter');\nvar debug = require('debug')('engine.io-client:socket');\nvar index = require('indexof');\nvar parser = require('engine.io-parser');\nvar parseuri = require('parseuri');\nvar parseqs = require('parseqs');\n\n/**\n * Module exports.\n */\n\nmodule.exports = Socket;\n\n/**\n * Socket constructor.\n *\n * @param {String|Object} uri or options\n * @param {Object} options\n * @api public\n */\n\nfunction Socket (uri, opts) {\n if (!(this instanceof Socket)) return new Socket(uri, opts);\n\n opts = opts || {};\n\n if (uri && 'object' === typeof uri) {\n opts = uri;\n uri = null;\n }\n\n if (uri) {\n uri = parseuri(uri);\n opts.hostname = uri.host;\n opts.secure = uri.protocol === 'https' || uri.protocol === 'wss';\n opts.port = uri.port;\n if (uri.query) opts.query = uri.query;\n } else if (opts.host) {\n opts.hostname = parseuri(opts.host).host;\n }\n\n this.secure = null != opts.secure ? opts.secure\n : (global.location && 'https:' === location.protocol);\n\n if (opts.hostname && !opts.port) {\n // if no port is specified manually, use the protocol default\n opts.port = this.secure ? '443' : '80';\n }\n\n this.agent = opts.agent || false;\n this.hostname = opts.hostname ||\n (global.location ? location.hostname : 'localhost');\n this.port = opts.port || (global.location && location.port\n ? location.port\n : (this.secure ? 443 : 80));\n this.query = opts.query || {};\n if ('string' === typeof this.query) this.query = parseqs.decode(this.query);\n this.upgrade = false !== opts.upgrade;\n this.path = (opts.path || '/engine.io').replace(/\\/$/, '') + '/';\n this.forceJSONP = !!opts.forceJSONP;\n this.jsonp = false !== opts.jsonp;\n this.forceBase64 = !!opts.forceBase64;\n this.enablesXDR = !!opts.enablesXDR;\n this.timestampParam = opts.timestampParam || 't';\n this.timestampRequests = opts.timestampRequests;\n this.transports = opts.transports || ['polling', 'websocket'];\n this.transportOptions = opts.transportOptions || {};\n this.readyState = '';\n this.writeBuffer = [];\n this.prevBufferLen = 0;\n this.policyPort = opts.policyPort || 843;\n this.rememberUpgrade = opts.rememberUpgrade || false;\n this.binaryType = null;\n this.onlyBinaryUpgrades = opts.onlyBinaryUpgrades;\n this.perMessageDeflate = false !== opts.perMessageDeflate ? (opts.perMessageDeflate || {}) : false;\n\n if (true === this.perMessageDeflate) this.perMessageDeflate = {};\n if (this.perMessageDeflate && null == this.perMessageDeflate.threshold) {\n this.perMessageDeflate.threshold = 1024;\n }\n\n // SSL options for Node.js client\n this.pfx = opts.pfx || null;\n this.key = opts.key || null;\n this.passphrase = opts.passphrase || null;\n this.cert = opts.cert || null;\n this.ca = opts.ca || null;\n this.ciphers = opts.ciphers || null;\n this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;\n this.forceNode = !!opts.forceNode;\n\n // other options for Node.js client\n var freeGlobal = typeof global === 'object' && global;\n if (freeGlobal.global === freeGlobal) {\n if (opts.extraHeaders && Object.keys(opts.extraHeaders).length > 0) {\n this.extraHeaders = opts.extraHeaders;\n }\n\n if (opts.localAddress) {\n this.localAddress = opts.localAddress;\n }\n }\n\n // set on handshake\n this.id = null;\n this.upgrades = null;\n this.pingInterval = null;\n this.pingTimeout = null;\n\n // set on heartbeat\n this.pingIntervalTimer = null;\n this.pingTimeoutTimer = null;\n\n this.open();\n}\n\nSocket.priorWebsocketSuccess = false;\n\n/**\n * Mix in `Emitter`.\n */\n\nEmitter(Socket.prototype);\n\n/**\n * Protocol version.\n *\n * @api public\n */\n\nSocket.protocol = parser.protocol; // this is an int\n\n/**\n * Expose deps for legacy compatibility\n * and standalone browser access.\n */\n\nSocket.Socket = Socket;\nSocket.Transport = require('./transport');\nSocket.transports = require('./transports/index');\nSocket.parser = require('engine.io-parser');\n\n/**\n * Creates transport of the given type.\n *\n * @param {String} transport name\n * @return {Transport}\n * @api private\n */\n\nSocket.prototype.createTransport = function (name) {\n debug('creating transport \"%s\"', name);\n var query = clone(this.query);\n\n // append engine.io protocol identifier\n query.EIO = parser.protocol;\n\n // transport name\n query.transport = name;\n\n // per-transport options\n var options = this.transportOptions[name] || {};\n\n // session id if we already have one\n if (this.id) query.sid = this.id;\n\n var transport = new transports[name]({\n query: query,\n socket: this,\n agent: options.agent || this.agent,\n hostname: options.hostname || this.hostname,\n port: options.port || this.port,\n secure: options.secure || this.secure,\n path: options.path || this.path,\n forceJSONP: options.forceJSONP || this.forceJSONP,\n jsonp: options.jsonp || this.jsonp,\n forceBase64: options.forceBase64 || this.forceBase64,\n enablesXDR: options.enablesXDR || this.enablesXDR,\n timestampRequests: options.timestampRequests || this.timestampRequests,\n timestampParam: options.timestampParam || this.timestampParam,\n policyPort: options.policyPort || this.policyPort,\n pfx: options.pfx || this.pfx,\n key: options.key || this.key,\n passphrase: options.passphrase || this.passphrase,\n cert: options.cert || this.cert,\n ca: options.ca || this.ca,\n ciphers: options.ciphers || this.ciphers,\n rejectUnauthorized: options.rejectUnauthorized || this.rejectUnauthorized,\n perMessageDeflate: options.perMessageDeflate || this.perMessageDeflate,\n extraHeaders: options.extraHeaders || this.extraHeaders,\n forceNode: options.forceNode || this.forceNode,\n localAddress: options.localAddress || this.localAddress,\n requestTimeout: options.requestTimeout || this.requestTimeout,\n protocols: options.protocols || void (0)\n });\n\n return transport;\n};\n\nfunction clone (obj) {\n var o = {};\n for (var i in obj) {\n if (obj.hasOwnProperty(i)) {\n o[i] = obj[i];\n }\n }\n return o;\n}\n\n/**\n * Initializes transport to use and starts probe.\n *\n * @api private\n */\nSocket.prototype.open = function () {\n var transport;\n if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') !== -1) {\n transport = 'websocket';\n } else if (0 === this.transports.length) {\n // Emit error on next tick so it can be listened to\n var self = this;\n setTimeout(function () {\n self.emit('error', 'No transports available');\n }, 0);\n return;\n } else {\n transport = this.transports[0];\n }\n this.readyState = 'opening';\n\n // Retry with the next transport if the transport is disabled (jsonp: false)\n try {\n transport = this.createTransport(transport);\n } catch (e) {\n this.transports.shift();\n this.open();\n return;\n }\n\n transport.open();\n this.setTransport(transport);\n};\n\n/**\n * Sets the current transport. Disables the existing one (if any).\n *\n * @api private\n */\n\nSocket.prototype.setTransport = function (transport) {\n debug('setting transport %s', transport.name);\n var self = this;\n\n if (this.transport) {\n debug('clearing existing transport %s', this.transport.name);\n this.transport.removeAllListeners();\n }\n\n // set up transport\n this.transport = transport;\n\n // set up transport listeners\n transport\n .on('drain', function () {\n self.onDrain();\n })\n .on('packet', function (packet) {\n self.onPacket(packet);\n })\n .on('error', function (e) {\n self.onError(e);\n })\n .on('close', function () {\n self.onClose('transport close');\n });\n};\n\n/**\n * Probes a transport.\n *\n * @param {String} transport name\n * @api private\n */\n\nSocket.prototype.probe = function (name) {\n debug('probing transport \"%s\"', name);\n var transport = this.createTransport(name, { probe: 1 });\n var failed = false;\n var self = this;\n\n Socket.priorWebsocketSuccess = false;\n\n function onTransportOpen () {\n if (self.onlyBinaryUpgrades) {\n var upgradeLosesBinary = !this.supportsBinary && self.transport.supportsBinary;\n failed = failed || upgradeLosesBinary;\n }\n if (failed) return;\n\n debug('probe transport \"%s\" opened', name);\n transport.send([{ type: 'ping', data: 'probe' }]);\n transport.once('packet', function (msg) {\n if (failed) return;\n if ('pong' === msg.type && 'probe' === msg.data) {\n debug('probe transport \"%s\" pong', name);\n self.upgrading = true;\n self.emit('upgrading', transport);\n if (!transport) return;\n Socket.priorWebsocketSuccess = 'websocket' === transport.name;\n\n debug('pausing current transport \"%s\"', self.transport.name);\n self.transport.pause(function () {\n if (failed) return;\n if ('closed' === self.readyState) return;\n debug('changing transport and sending upgrade packet');\n\n cleanup();\n\n self.setTransport(transport);\n transport.send([{ type: 'upgrade' }]);\n self.emit('upgrade', transport);\n transport = null;\n self.upgrading = false;\n self.flush();\n });\n } else {\n debug('probe transport \"%s\" failed', name);\n var err = new Error('probe error');\n err.transport = transport.name;\n self.emit('upgradeError', err);\n }\n });\n }\n\n function freezeTransport () {\n if (failed) return;\n\n // Any callback called by transport should be ignored since now\n failed = true;\n\n cleanup();\n\n transport.close();\n transport = null;\n }\n\n // Handle any error that happens while probing\n function onerror (err) {\n var error = new Error('probe error: ' + err);\n error.transport = transport.name;\n\n freezeTransport();\n\n debug('probe transport \"%s\" failed because of error: %s', name, err);\n\n self.emit('upgradeError', error);\n }\n\n function onTransportClose () {\n onerror('transport closed');\n }\n\n // When the socket is closed while we're probing\n function onclose () {\n onerror('socket closed');\n }\n\n // When the socket is upgraded while we're probing\n function onupgrade (to) {\n if (transport && to.name !== transport.name) {\n debug('\"%s\" works - aborting \"%s\"', to.name, transport.name);\n freezeTransport();\n }\n }\n\n // Remove all listeners on the transport and on self\n function cleanup () {\n transport.removeListener('open', onTransportOpen);\n transport.removeListener('error', onerror);\n transport.removeListener('close', onTransportClose);\n self.removeListener('close', onclose);\n self.removeListener('upgrading', onupgrade);\n }\n\n transport.once('open', onTransportOpen);\n transport.once('error', onerror);\n transport.once('close', onTransportClose);\n\n this.once('close', onclose);\n this.once('upgrading', onupgrade);\n\n transport.open();\n};\n\n/**\n * Called when connection is deemed open.\n *\n * @api public\n */\n\nSocket.prototype.onOpen = function () {\n debug('socket open');\n this.readyState = 'open';\n Socket.priorWebsocketSuccess = 'websocket' === this.transport.name;\n this.emit('open');\n this.flush();\n\n // we check for `readyState` in case an `open`\n // listener already closed the socket\n if ('open' === this.readyState && this.upgrade && this.transport.pause) {\n debug('starting upgrade probes');\n for (var i = 0, l = this.upgrades.length; i < l; i++) {\n this.probe(this.upgrades[i]);\n }\n }\n};\n\n/**\n * Handles a packet.\n *\n * @api private\n */\n\nSocket.prototype.onPacket = function (packet) {\n if ('opening' === this.readyState || 'open' === this.readyState ||\n 'closing' === this.readyState) {\n debug('socket receive: type \"%s\", data \"%s\"', packet.type, packet.data);\n\n this.emit('packet', packet);\n\n // Socket is live - any packet counts\n this.emit('heartbeat');\n\n switch (packet.type) {\n case 'open':\n this.onHandshake(JSON.parse(packet.data));\n break;\n\n case 'pong':\n this.setPing();\n this.emit('pong');\n break;\n\n case 'error':\n var err = new Error('server error');\n err.code = packet.data;\n this.onError(err);\n break;\n\n case 'message':\n this.emit('data', packet.data);\n this.emit('message', packet.data);\n break;\n }\n } else {\n debug('packet received with socket readyState \"%s\"', this.readyState);\n }\n};\n\n/**\n * Called upon handshake completion.\n *\n * @param {Object} handshake obj\n * @api private\n */\n\nSocket.prototype.onHandshake = function (data) {\n this.emit('handshake', data);\n this.id = data.sid;\n this.transport.query.sid = data.sid;\n this.upgrades = this.filterUpgrades(data.upgrades);\n this.pingInterval = data.pingInterval;\n this.pingTimeout = data.pingTimeout;\n this.onOpen();\n // In case open handler closes socket\n if ('closed' === this.readyState) return;\n this.setPing();\n\n // Prolong liveness of socket on heartbeat\n this.removeListener('heartbeat', this.onHeartbeat);\n this.on('heartbeat', this.onHeartbeat);\n};\n\n/**\n * Resets ping timeout.\n *\n * @api private\n */\n\nSocket.prototype.onHeartbeat = function (timeout) {\n clearTimeout(this.pingTimeoutTimer);\n var self = this;\n self.pingTimeoutTimer = setTimeout(function () {\n if ('closed' === self.readyState) return;\n self.onClose('ping timeout');\n }, timeout || (self.pingInterval + self.pingTimeout));\n};\n\n/**\n * Pings server every `this.pingInterval` and expects response\n * within `this.pingTimeout` or closes connection.\n *\n * @api private\n */\n\nSocket.prototype.setPing = function () {\n var self = this;\n clearTimeout(self.pingIntervalTimer);\n self.pingIntervalTimer = setTimeout(function () {\n debug('writing ping packet - expecting pong within %sms', self.pingTimeout);\n self.ping();\n self.onHeartbeat(self.pingTimeout);\n }, self.pingInterval);\n};\n\n/**\n* Sends a ping packet.\n*\n* @api private\n*/\n\nSocket.prototype.ping = function () {\n var self = this;\n this.sendPacket('ping', function () {\n self.emit('ping');\n });\n};\n\n/**\n * Called on `drain` event\n *\n * @api private\n */\n\nSocket.prototype.onDrain = function () {\n this.writeBuffer.splice(0, this.prevBufferLen);\n\n // setting prevBufferLen = 0 is very important\n // for example, when upgrading, upgrade packet is sent over,\n // and a nonzero prevBufferLen could cause problems on `drain`\n this.prevBufferLen = 0;\n\n if (0 === this.writeBuffer.length) {\n this.emit('drain');\n } else {\n this.flush();\n }\n};\n\n/**\n * Flush write buffers.\n *\n * @api private\n */\n\nSocket.prototype.flush = function () {\n if ('closed' !== this.readyState && this.transport.writable &&\n !this.upgrading && this.writeBuffer.length) {\n debug('flushing %d packets in socket', this.writeBuffer.length);\n this.transport.send(this.writeBuffer);\n // keep track of current length of writeBuffer\n // splice writeBuffer and callbackBuffer on `drain`\n this.prevBufferLen = this.writeBuffer.length;\n this.emit('flush');\n }\n};\n\n/**\n * Sends a message.\n *\n * @param {String} message.\n * @param {Function} callback function.\n * @param {Object} options.\n * @return {Socket} for chaining.\n * @api public\n */\n\nSocket.prototype.write =\nSocket.prototype.send = function (msg, options, fn) {\n this.sendPacket('message', msg, options, fn);\n return this;\n};\n\n/**\n * Sends a packet.\n *\n * @param {String} packet type.\n * @param {String} data.\n * @param {Object} options.\n * @param {Function} callback function.\n * @api private\n */\n\nSocket.prototype.sendPacket = function (type, data, options, fn) {\n if ('function' === typeof data) {\n fn = data;\n data = undefined;\n }\n\n if ('function' === typeof options) {\n fn = options;\n options = null;\n }\n\n if ('closing' === this.readyState || 'closed' === this.readyState) {\n return;\n }\n\n options = options || {};\n options.compress = false !== options.compress;\n\n var packet = {\n type: type,\n data: data,\n options: options\n };\n this.emit('packetCreate', packet);\n this.writeBuffer.push(packet);\n if (fn) this.once('flush', fn);\n this.flush();\n};\n\n/**\n * Closes the connection.\n *\n * @api private\n */\n\nSocket.prototype.close = function () {\n if ('opening' === this.readyState || 'open' === this.readyState) {\n this.readyState = 'closing';\n\n var self = this;\n\n if (this.writeBuffer.length) {\n this.once('drain', function () {\n if (this.upgrading) {\n waitForUpgrade();\n } else {\n close();\n }\n });\n } else if (this.upgrading) {\n waitForUpgrade();\n } else {\n close();\n }\n }\n\n function close () {\n self.onClose('forced close');\n debug('socket closing - telling transport to close');\n self.transport.close();\n }\n\n function cleanupAndClose () {\n self.removeListener('upgrade', cleanupAndClose);\n self.removeListener('upgradeError', cleanupAndClose);\n close();\n }\n\n function waitForUpgrade () {\n // wait for upgrade to finish since we can't send packets while pausing a transport\n self.once('upgrade', cleanupAndClose);\n self.once('upgradeError', cleanupAndClose);\n }\n\n return this;\n};\n\n/**\n * Called upon transport error\n *\n * @api private\n */\n\nSocket.prototype.onError = function (err) {\n debug('socket error %j', err);\n Socket.priorWebsocketSuccess = false;\n this.emit('error', err);\n this.onClose('transport error', err);\n};\n\n/**\n * Called upon transport close.\n *\n * @api private\n */\n\nSocket.prototype.onClose = function (reason, desc) {\n if ('opening' === this.readyState || 'open' === this.readyState || 'closing' === this.readyState) {\n debug('socket close with reason: \"%s\"', reason);\n var self = this;\n\n // clear timers\n clearTimeout(this.pingIntervalTimer);\n clearTimeout(this.pingTimeoutTimer);\n\n // stop event from firing again for transport\n this.transport.removeAllListeners('close');\n\n // ensure transport won't stay open\n this.transport.close();\n\n // ignore further transport communication\n this.transport.removeAllListeners();\n\n // set ready state\n this.readyState = 'closed';\n\n // clear session id\n this.id = null;\n\n // emit close event\n this.emit('close', reason, desc);\n\n // clean buffers after, so users can still\n // grab the buffers on `close` event\n self.writeBuffer = [];\n self.prevBufferLen = 0;\n }\n};\n\n/**\n * Filters upgrades, returning only those matching client transports.\n *\n * @param {Array} server upgrades\n * @api private\n *\n */\n\nSocket.prototype.filterUpgrades = function (upgrades) {\n var filteredUpgrades = [];\n for (var i = 0, j = upgrades.length; i < j; i++) {\n if (~index(this.transports, upgrades[i])) filteredUpgrades.push(upgrades[i]);\n }\n return filteredUpgrades;\n};\n","/**\n * Module dependencies.\n */\n\nvar parser = require('engine.io-parser');\nvar Emitter = require('component-emitter');\n\n/**\n * Module exports.\n */\n\nmodule.exports = Transport;\n\n/**\n * Transport abstract constructor.\n *\n * @param {Object} options.\n * @api private\n */\n\nfunction Transport (opts) {\n this.path = opts.path;\n this.hostname = opts.hostname;\n this.port = opts.port;\n this.secure = opts.secure;\n this.query = opts.query;\n this.timestampParam = opts.timestampParam;\n this.timestampRequests = opts.timestampRequests;\n this.readyState = '';\n this.agent = opts.agent || false;\n this.socket = opts.socket;\n this.enablesXDR = opts.enablesXDR;\n\n // SSL options for Node.js client\n this.pfx = opts.pfx;\n this.key = opts.key;\n this.passphrase = opts.passphrase;\n this.cert = opts.cert;\n this.ca = opts.ca;\n this.ciphers = opts.ciphers;\n this.rejectUnauthorized = opts.rejectUnauthorized;\n this.forceNode = opts.forceNode;\n\n // other options for Node.js client\n this.extraHeaders = opts.extraHeaders;\n this.localAddress = opts.localAddress;\n}\n\n/**\n * Mix in `Emitter`.\n */\n\nEmitter(Transport.prototype);\n\n/**\n * Emits an error.\n *\n * @param {String} str\n * @return {Transport} for chaining\n * @api public\n */\n\nTransport.prototype.onError = function (msg, desc) {\n var err = new Error(msg);\n err.type = 'TransportError';\n err.description = desc;\n this.emit('error', err);\n return this;\n};\n\n/**\n * Opens the transport.\n *\n * @api public\n */\n\nTransport.prototype.open = function () {\n if ('closed' === this.readyState || '' === this.readyState) {\n this.readyState = 'opening';\n this.doOpen();\n }\n\n return this;\n};\n\n/**\n * Closes the transport.\n *\n * @api private\n */\n\nTransport.prototype.close = function () {\n if ('opening' === this.readyState || 'open' === this.readyState) {\n this.doClose();\n this.onClose();\n }\n\n return this;\n};\n\n/**\n * Sends multiple packets.\n *\n * @param {Array} packets\n * @api private\n */\n\nTransport.prototype.send = function (packets) {\n if ('open' === this.readyState) {\n this.write(packets);\n } else {\n throw new Error('Transport not open');\n }\n};\n\n/**\n * Called upon open\n *\n * @api private\n */\n\nTransport.prototype.onOpen = function () {\n this.readyState = 'open';\n this.writable = true;\n this.emit('open');\n};\n\n/**\n * Called with data.\n *\n * @param {String} data\n * @api private\n */\n\nTransport.prototype.onData = function (data) {\n var packet = parser.decodePacket(data, this.socket.binaryType);\n this.onPacket(packet);\n};\n\n/**\n * Called with a decoded packet.\n */\n\nTransport.prototype.onPacket = function (packet) {\n this.emit('packet', packet);\n};\n\n/**\n * Called upon close.\n *\n * @api private\n */\n\nTransport.prototype.onClose = function () {\n this.readyState = 'closed';\n this.emit('close');\n};\n","/**\n * Module dependencies\n */\n\nvar XMLHttpRequest = require('xmlhttprequest-ssl');\nvar XHR = require('./polling-xhr');\nvar JSONP = require('./polling-jsonp');\nvar websocket = require('./websocket');\n\n/**\n * Export transports.\n */\n\nexports.polling = polling;\nexports.websocket = websocket;\n\n/**\n * Polling transport polymorphic constructor.\n * Decides on xhr vs jsonp based on feature detection.\n *\n * @api private\n */\n\nfunction polling (opts) {\n var xhr;\n var xd = false;\n var xs = false;\n var jsonp = false !== opts.jsonp;\n\n if (global.location) {\n var isSSL = 'https:' === location.protocol;\n var port = location.port;\n\n // some user agents have empty `location.port`\n if (!port) {\n port = isSSL ? 443 : 80;\n }\n\n xd = opts.hostname !== location.hostname || port !== opts.port;\n xs = opts.secure !== isSSL;\n }\n\n opts.xdomain = xd;\n opts.xscheme = xs;\n xhr = new XMLHttpRequest(opts);\n\n if ('open' in xhr && !opts.forceJSONP) {\n return new XHR(opts);\n } else {\n if (!jsonp) throw new Error('JSONP disabled');\n return new JSONP(opts);\n }\n}\n","\n/**\n * Module requirements.\n */\n\nvar Polling = require('./polling');\nvar inherit = require('component-inherit');\n\n/**\n * Module exports.\n */\n\nmodule.exports = JSONPPolling;\n\n/**\n * Cached regular expressions.\n */\n\nvar rNewline = /\\n/g;\nvar rEscapedNewline = /\\\\n/g;\n\n/**\n * Global JSONP callbacks.\n */\n\nvar callbacks;\n\n/**\n * Noop.\n */\n\nfunction empty () { }\n\n/**\n * JSONP Polling constructor.\n *\n * @param {Object} opts.\n * @api public\n */\n\nfunction JSONPPolling (opts) {\n Polling.call(this, opts);\n\n this.query = this.query || {};\n\n // define global callbacks array if not present\n // we do this here (lazily) to avoid unneeded global pollution\n if (!callbacks) {\n // we need to consider multiple engines in the same page\n if (!global.___eio) global.___eio = [];\n callbacks = global.___eio;\n }\n\n // callback identifier\n this.index = callbacks.length;\n\n // add callback to jsonp global\n var self = this;\n callbacks.push(function (msg) {\n self.onData(msg);\n });\n\n // append to query string\n this.query.j = this.index;\n\n // prevent spurious errors from being emitted when the window is unloaded\n if (global.document && global.addEventListener) {\n global.addEventListener('beforeunload', function () {\n if (self.script) self.script.onerror = empty;\n }, false);\n }\n}\n\n/**\n * Inherits from Polling.\n */\n\ninherit(JSONPPolling, Polling);\n\n/*\n * JSONP only supports binary as base64 encoded strings\n */\n\nJSONPPolling.prototype.supportsBinary = false;\n\n/**\n * Closes the socket.\n *\n * @api private\n */\n\nJSONPPolling.prototype.doClose = function () {\n if (this.script) {\n this.script.parentNode.removeChild(this.script);\n this.script = null;\n }\n\n if (this.form) {\n this.form.parentNode.removeChild(this.form);\n this.form = null;\n this.iframe = null;\n }\n\n Polling.prototype.doClose.call(this);\n};\n\n/**\n * Starts a poll cycle.\n *\n * @api private\n */\n\nJSONPPolling.prototype.doPoll = function () {\n var self = this;\n var script = document.createElement('script');\n\n if (this.script) {\n this.script.parentNode.removeChild(this.script);\n this.script = null;\n }\n\n script.async = true;\n script.src = this.uri();\n script.onerror = function (e) {\n self.onError('jsonp poll error', e);\n };\n\n var insertAt = document.getElementsByTagName('script')[0];\n if (insertAt) {\n insertAt.parentNode.insertBefore(script, insertAt);\n } else {\n (document.head || document.body).appendChild(script);\n }\n this.script = script;\n\n var isUAgecko = 'undefined' !== typeof navigator && /gecko/i.test(navigator.userAgent);\n\n if (isUAgecko) {\n setTimeout(function () {\n var iframe = document.createElement('iframe');\n document.body.appendChild(iframe);\n document.body.removeChild(iframe);\n }, 100);\n }\n};\n\n/**\n * Writes with a hidden iframe.\n *\n * @param {String} data to send\n * @param {Function} called upon flush.\n * @api private\n */\n\nJSONPPolling.prototype.doWrite = function (data, fn) {\n var self = this;\n\n if (!this.form) {\n var form = document.createElement('form');\n var area = document.createElement('textarea');\n var id = this.iframeId = 'eio_iframe_' + this.index;\n var iframe;\n\n form.className = 'socketio';\n form.style.position = 'absolute';\n form.style.top = '-1000px';\n form.style.left = '-1000px';\n form.target = id;\n form.method = 'POST';\n form.setAttribute('accept-charset', 'utf-8');\n area.name = 'd';\n form.appendChild(area);\n document.body.appendChild(form);\n\n this.form = form;\n this.area = area;\n }\n\n this.form.action = this.uri();\n\n function complete () {\n initIframe();\n fn();\n }\n\n function initIframe () {\n if (self.iframe) {\n try {\n self.form.removeChild(self.iframe);\n } catch (e) {\n self.onError('jsonp polling iframe removal error', e);\n }\n }\n\n try {\n // ie6 dynamic iframes with target=\"\" support (thanks Chris Lambacher)\n var html = '