Skip to content

Instantly share code, notes, and snippets.

@timelyportfolio
Last active August 15, 2016 21:39
Show Gist options
  • Save timelyportfolio/d0a486b9070f484c69d045bf3ccb4ecd to your computer and use it in GitHub Desktop.
Save timelyportfolio/d0a486b9070f484c69d045bf3ccb4ecd to your computer and use it in GitHub Desktop.
jquery.sparkline in rhandsontable with NA
license: mit-cmu

Built with blockbuilder.org and R htmlwidgets


NULL/NA in rhandsontable sparkline

Prompted by #rstats friend @TimSalabim3 I recently remembered that the htmlwidget rhandsontable gives us sparklines in cells through a jquery.sparkline renderer. These sparklines can digest NA values from R, but just need one argument na="null" added to the jsonlite::toJSON call.

library(rhandsontable)

DF = data.frame(int = 1:10,
                numeric = rnorm(10),
                logical = TRUE,
                character = LETTERS[1:10],
                fact = factor(letters[1:10]),
                date = seq(from = Sys.Date(), by = "days", length.out = 10),
                stringsAsFactors = FALSE)

# add a sparkline chart
DF$chart = sapply(1:10, function(x) jsonlite::toJSON(list(values=rnorm(10))))

# add some NAs to our chart data
#   note: the na="null" is the important piece
DF$chart[1] <- jsonlite::toJSON(list(values=c(1,2,3,4,5,NA,NA,8,10)),na="null")

rhandsontable(DF, rowHeaders = NULL) %>%
  hot_col("chart", renderer = htmlwidgets::JS("renderSparkline"))

live example

screenshot of sparkline line with na

This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script src="data:application/x-javascript;base64,KGZ1bmN0aW9uKCkgewogIC8vIElmIHdpbmRvdy5IVE1MV2lkZ2V0cyBpcyBhbHJlYWR5IGRlZmluZWQsIHRoZW4gdXNlIGl0OyBvdGhlcndpc2UgY3JlYXRlIGEKICAvLyBuZXcgb2JqZWN0LiBUaGlzIGFsbG93cyBwcmVjZWRpbmcgY29kZSB0byBzZXQgb3B0aW9ucyB0aGF0IGFmZmVjdCB0aGUKICAvLyBpbml0aWFsaXphdGlvbiBwcm9jZXNzICh0aG91Z2ggbm9uZSBjdXJyZW50bHkgZXhpc3QpLgogIHdpbmRv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N0aW9uCiAgLy8gICBleGVjdXRpb24uCiAgLy8gQHBhcmFtIGFyZ3MgQXJyYXkgb2YgYXJndW1lbnRzIHRvIGJlIHBhc3NlZCB0byB0aGUgZnVuY3Rpb25zLiAoVGhlCiAgLy8gICBzYW1lIGFyZ3VtZW50cyB3aWxsIGJlIHBhc3NlZCB0byBhbGwgZnVuY3Rpb25zLikKICBmdW5jdGlvbiBldmFsQW5kUnVuKHRhc2tzLCB0YXJnZXQsIGFyZ3MpIHsKICAgIGlmICh0YXNrcykgewogICAgICBmb3JFYWNoKHRhc2tzLCBmdW5jdGlvbih0YXNrKSB7CiAgICAgICAgdmFyIHRoZXNlQXJncyA9IGFyZ3M7CiAgICAgICAgaWYgKHR5cGVvZih0YXNrKSA9PT0gIm9iamVjdCIpIHsKICAgICAgICAgIHRoZXNlQXJncyA9IHRoZXNlQXJncy5jb25jYXQoW3Rhc2suZGF0YV0pOwogICAgICAgICAgdGFzayA9IHRhc2suY29kZTsKICAgICAgICB9CiAgICAgICAgdmFyIHRhc2tGdW5jID0gZXZhbCgiKCIgKyB0YXNrICsgIikiKTsKICAgICAgICBpZiAodHlwZW9mKHRhc2tGdW5jKSAhPT0gImZ1bmN0aW9uIikgewogICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJUYXNrIG11c3QgYmUgYSBmdW5jdGlvbiEgU291cmNlOlxuIiArIHRhc2spOwogICAgICAgIH0KICAgICAgICB0YXNrRnVuYy5hcHBseSh0YXJnZXQsIHRoZXNlQXJncyk7CiAgICAgIH0pOwogICAgfQogIH0KCiAgZnVuY3Rpb24gaW5pdFNpemluZyhlbCkgewogICAgdmFyIHNpemluZyA9IHNpemluZ1BvbGljeShlbCk7CiAgICBpZiAoIXNpemluZykKICAgICAgcmV0dXJuOwoKICAgIHZhciBjZWwgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiaHRtbHdpZGdldF9jb250YWluZXIiKTsKICAgIGlmICghY2VsKQogICAgICByZXR1cm47CgogICAgaWY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CiAgICAgICAgICAgIGlmICghZXJyb3JEaXZbMF0ucGFyZW50RWxlbWVudCkgewogICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwoaW50SWQpOwogICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvckRpdgogICAgICAgICAgICAgIC5jc3MoInRvcCIsIGVsLm9mZnNldFRvcCkKICAgICAgICAgICAgICAuY3NzKCJsZWZ0IiwgZWwub2Zmc2V0TGVmdCkKICAgICAgICAgICAgICAuY3NzKCJtYXhXaWR0aCIsIGVsLm9mZnNldFdpZHRoKQogICAgICAgICAgICAgIC5jc3MoImhlaWdodCIsIGVsLm9mZnNldEhlaWdodCk7CiAgICAgICAgICB9LCA1MDApOwogICAgICAgIH0KICAgICAgfQogICAgfSwKICAgIGNsZWFyRXJyb3I6IGZ1bmN0aW9uKGVsKSB7CiAgICAgIHZhciAkZWwgPSAkKGVsKTsKICAgICAgdmFyIGRpc3BsYXkgPSAkZWwuZGF0YSgicmVzdG9yZS1kaXNwbGF5LW1vZGUiKTsKICAgICAgJGVsLmRhdGEoInJlc3RvcmUtZGlzcGxheS1tb2RlIiwgbnVsbCk7CgogICAgICBpZiAoZGlzcGxheSA9PT0gImlubGluZSIgfHwgZGlzcGxheSA9PT0gImlubGluZS1ibG9jayIpIHsKICAgICAgICBpZiAoZGlzcGxheSkKICAgICAgICAgICRlbC5jc3MoImRpc3BsYXkiLCBkaXNwbGF5KTsKICAgICAgICAkKGVsLm5leHRTaWJsaW5nKS5maWx0ZXIoIi5odG1sd2lkZ2V0cy1lcnJvciIpLnJlbW92ZSgpOwogICAgICB9IGVsc2UgaWYgKGRpc3BsYXkgPT09ICJibG9jayIpewogICAgICAgICRlbC5jc3MoInZpc2liaWxpdHkiLCAiaW5oZXJpdCIpOwogICAgICAgICQoZWwubmV4dFNpYmxpbmcpLmZpbHRlcigiLmh0bWx3aWRnZXRzLWVycm9yIikucmVtb3ZlKCk7CiAgICAgIH0KICAgIH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0aCkKICAgICAgICAgIHNjaGVkdWxlU3RhdGljUmVuZGVyKCk7CgogICAgICAgIHJldHVybiBkeW5hbWljUmVzdWx0czsKICAgICAgfTsKCiAgICAgIC8vIFdyYXAgcmVuZGVyVmFsdWUgdG8gaGFuZGxlIGluaXRpYWxpemF0aW9uLCB3aGljaCB1bmZvcnR1bmF0ZWx5IGlzbid0CiAgICAgIC8vIHN1cHBvcnRlZCBuYXRpdmVseSBieSBTaGlueSBhdCB0aGUgdGltZSBvZiB0aGlzIHdyaXRpbmcuCgogICAgICBzaGlueUJpbmRpbmcucmVuZGVyVmFsdWUgPSBmdW5jdGlvbihlbCwgZGF0YSkgewogICAgICAgIC8vIFJlc29sdmUgc3RyaW5ncyBtYXJrZWQgYXMgamF2YXNjcmlwdCBsaXRlcmFscyB0byBvYmplY3RzCiAgICAgICAgaWYgKCEoZGF0YS5ldmFscyBpbnN0YW5jZW9mIEFycmF5KSkgZGF0YS5ldmFscyA9IFtkYXRhLmV2YWxzXTsKICAgICAgICBmb3IgKHZhciBpID0gMDsgZGF0YS5ldmFscyAmJiBpIDwgZGF0YS5ldmFscy5sZW5ndGg7IGkrKykgewogICAgICAgICAgd2luZG93LkhUTUxXaWRnZXRzLmV2YWx1YXRlU3RyaW5nTWVtYmVyKGRhdGEueCwgZGF0YS5ldmFsc1tpXSk7CiAgICAgICAgfQogICAgICAgIGlmICghYmluZGluZ0RlZi5yZW5kZXJPbk51bGxWYWx1ZSkgewogICAgICAgICAgaWYgKGRhdGEueCA9PT0gbnVsbCkgewogICAgICAgICAgICBlbC5zdHlsZS52aXNpYmlsaXR5ID0gImhpZGRlbiI7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGVsLnN0eWxlLnZpc2liaWxpdHkgPSAiaW5oZXJpdCI7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmICghZWxlbWVudERhdGEoZWwsICJpbml0aWFsaXplZCIpKSB7CiAgICA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lcywgZnVuY3Rpb24oZWwpIHsKICAgICAgICB2YXIgc2l6ZU9iaiA9IGluaXRTaXppbmcoZWwsIGJpbmRpbmcpOwoKICAgICAgICBpZiAoaGFzQ2xhc3MoZWwsICJodG1sLXdpZGdldC1zdGF0aWMtYm91bmQiKSkKICAgICAgICAgIHJldHVybjsKICAgICAgICBlbC5jbGFzc05hbWUgPSBlbC5jbGFzc05hbWUgKyAiIGh0bWwtd2lkZ2V0LXN0YXRpYy1ib3VuZCI7CgogICAgICAgIHZhciBpbml0UmVzdWx0OwogICAgICAgIGlmIChiaW5kaW5nLmluaXRpYWxpemUpIHsKICAgICAgICAgIGluaXRSZXN1bHQgPSBiaW5kaW5nLmluaXRpYWxpemUoZWwsCiAgICAgICAgICAgIHNpemVPYmogPyBzaXplT2JqLmdldFdpZHRoKCkgOiBlbC5vZmZzZXRXaWR0aCwKICAgICAgICAgICAgc2l6ZU9iaiA/IHNpemVPYmouZ2V0SGVpZ2h0KCkgOiBlbC5vZmZzZXRIZWlnaHQKICAgICAgICAgICk7CiAgICAgICAgICBlbGVtZW50RGF0YShlbCwgImluaXRfcmVzdWx0IiwgaW5pdFJlc3VsdCk7CiAgICAgICAgfQoKICAgICAgICBpZiAoYmluZGluZy5yZXNpemUpIHsKICAgICAgICAgIHZhciBsYXN0U2l6ZSA9IHt9OwogICAgICAgICAgdmFyIHJlc2l6ZUhhbmRsZXIgPSBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgIHZhciBzaXplID0gewogICAgICAgICAgICAgIHc6IHNpemVPYmogPyBzaXplT2JqLmdldFdpZHRoKCkgOiBlbC5vZmZzZXRXaWR0aCwKICAgICAgICAgICAgICBoOiBzaXplT2JqID8gc2l6ZU9iai5nZXRIZWlnaHQoKSA6IGVsLm9mZnNldEhlaWdodAogICAgICAgICAgICB9OwogICAgICAgICAgICBpZiAoc2l6ZS53ID09PSAwICYmIHNpemUuaCA9PT0gMCkKICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgIGlmIChzaXplLncgPT09IGxhc3RTaXplLncgJiYgc2l6ZS5oID09PSBsYXN0U2l6ZS5oKQogICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgbGFzdFNpemUgPSBzaXplOwogICAgICAgICAgICBiaW5kaW5nLnJlc2l6ZShlbCwgc2l6ZS53LCBzaXplLmgsIGluaXRSZXN1bHQpOwogICAgICAgICAgfTsKCiAgICAgICAgICBvbih3aW5kb3csICJyZXNpemUiLCByZXNpemVIYW5kbGVyKTsKCiAgICAgICAgICAvLyBUaGlzIGlzIG5lZWRlZCBmb3IgY2FzZXMgd2hlcmUgd2UncmUgcnVubmluZyBpbiBhIFNoaW55CiAgICAgICAgICAvLyBhcHAsIGJ1dCB0aGUgd2lkZ2V0IGl0c2VsZiBpcyBub3QgYSBTaGlueSBvdXRwdXQsIGJ1dAogICAgICAgICAgLy8gcmF0aGVyIGEgc2ltcGxlIHN0YXRpYyB3aWRnZXQuIE9uZSBleGFtcGxlIG9mIHRoaXMgaXMKICAgICAgICAgIC8vIGFuIHJtYXJrZG93biBkb2N1bWVudCB0aGF0IGhhcyBydW50aW1lOnNoaW55IGFuZCB3aWRnZXQKICAgICAgICAgIC8vIHRoYXQgaXNuJ3QgaW4gYSByZW5kZXIgZnVuY3Rpb24uIFNoaW55IG9ubHkga25vd3MgdG8KICAgICAgICAgIC8vIGNhbGwgcmVzaXplIGhhbmRsZXJzIGZvciBTaGlueSBvdXRwdXRzLCBub3QgZm9yIHN0YXRpYwogICAgICAgICAgLy8gd2lkZ2V0cywgc28gd2UgZG8gaXQgb3Vyc2VsdmVzLgogICAgICAgICAgaWYgKHdpbmRvdy5qUXVlcnkpIHsKICAgICAgICAgICAgd2luZG93LmpRdWVyeShkb2N1bWVudCkub24oCiAgICAgICAgICAgICAgInNob3duLmh0bWx3aWRnZXRzIHNob3duLmJzLnRhYi5odG1sd2lkZ2V0cyBzaG93bi5icy5jb2xsYXBzZS5odG1sd2lkZ2V0cyIsCiAgICAgICAgICA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JBdHRhY2htZW50ICIgKyBkZXBuYW1lICsgIi8iICsga2V5ICsgIiBub3QgZm91bmQgaW4gZG9jdW1lbnQiKTsKICAgIH0KICAgIHJldHVybiBsaW5rLmdldEF0dHJpYnV0ZSgiaHJlZiIpOwogIH07CgogIHdpbmRvdy5IVE1MV2lkZ2V0cy5kYXRhZnJhbWVUb0QzID0gZnVuY3Rpb24oZGYpIHsKICAgIHZhciBuYW1lcyA9IFtdOwogICAgdmFyIGxlbmd0aDsKICAgIGZvciAodmFyIG5hbWUgaW4gZGYpIHsKICAgICAgICBpZiAoZGYuaGFzT3duUHJvcGVydHkobmFtZSkpCiAgICAgICAgICAgIG5hbWVzLnB1c2gobmFtZSk7CiAgICAgICAgaWYgKHR5cGVvZihkZltuYW1lXSkgIT09ICJvYmplY3QiIHx8IHR5cGVvZihkZltuYW1lXS5sZW5ndGgpID09PSAidW5kZWZpbmVkIikgewogICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIkFsbCBmaWVsZHMgbXVzdCBiZSBhcnJheXMiKTsKICAgICAgICB9IGVsc2UgaWYgKHR5cGVvZihsZW5ndGgpICE9PSAidW5kZWZpbmVkIiAmJiBsZW5ndGggIT09IGRmW25hbWVdLmxlbmd0aCkgewogICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIkFsbCBmaWVsZHMgbXVzdCBiZSBhcnJheXMgb2YgdGhlIHNhbWUgbGVuZ3RoIik7CiAgICAgICAgfQogICAgICAgIGxlbmd0aCA9IGRmW25hbWVdLmxlbmd0aDsKICAgIH0KICAgIHZhciByZXN1bHRzID0gW107CiAgICB2YXIgaXRlbTsKICAgIGZvciAodmFyIHJvdyA9IDA7IHJvdyA8IGxlbmd0aDsgcm93KyspIHsKICAgICAgICBpdGVtID0ge307CiAgICAgICAgZm9yICh2YXIgY29sID0gMDsgY29sIDwgbmFtZXMubGVuZ3RoOyBjb2wrKykgewogICAgICAgICAgICBpdGVtW25hbWVzW2NvbF1dID0gZGZbbmFtZXNb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b3IpCiAgICAgIHJlc3VsdC5jbGVhckVycm9yID0gZGVmbi5jbGVhckVycm9yOwoKICAgIHJldHVybiByZXN1bHQ7CiAgfQp9KSgpOwoK"></script>
<link href="data:text/css;charset=utf-8,%40charset%20%22UTF%2D8%22%3B%2Ehandsontable%7Bposition%3Arelative%7D%2Ehandsontable%20%2Ehide%7Bdisplay%3Anone%7D%2Ehandsontable%20%2Erelative%7Bposition%3Arelative%7D%2Ehandsontable%2EhtAutoSize%7Bvisibility%3Ahidden%3Bleft%3A%2D99000px%3Bposition%3Aabsolute%3Btop%3A%2D99000px%7D%2Ehandsontable%20%2EwtHider%7Bwidth%3A0%7D%2Ehandsontable%20%2EwtSpreader%7Bposition%3Arelative%3Bwidth%3A0%3Bheight%3Aauto%7D%2Ehandsontable%20table%2C%2Ehandsontable%20tbody%2C%2Ehandsontable%20thead%2C%2Ehandsontable%20td%2C%2Ehandsontable%20th%2C%2Ehandsontable%20input%2C%2Ehandsontable%20textarea%2C%2Ehandsontable%20div%7Bbox%2Dsizing%3Acontent%2Dbox%3B%2Dwebkit%2Dbox%2Dsizing%3Acontent%2Dbox%3B%2Dmoz%2Dbox%2Dsizing%3Acontent%2Dbox%7D%2Ehandsontable%20input%2C%2Ehandsontable%20textarea%7Bmin%2Dheight%3Ainitial%7D%2Ehandsontable%20table%2EhtCore%7Bborder%2Dcollapse%3Aseparate%3Bborder%2Dspacing%3A0%3Bmargin%3A0%3Bborder%2Dwidth%3A0%3Btable%2Dlayout%3Afixed%3Bwidth%3A0%3Boutline%2Dwidth%3A0%3Bmax%2Dwidth%3Anone%3Bmax%2Dheight%3Anone%7D%2Ehandsontable%20col%7Bwidth%3A50px%7D%2Ehandsontable%20col%2ErowHeader%7Bwidth%3A50px%7D%2Ehandsontable%20th%2C%2Ehandsontable%20td%7Bborder%2Dtop%2Dwidth%3A0%3Bborder%2Dleft%2Dwidth%3A0%3Bborder%2Dright%3A1px%20solid%20%23CCC%3Bborder%2Dbottom%3A1px%20solid%20%23CCC%3Bheight%3A22px%3Bempty%2Dcells%3Ashow%3Bline%2Dheight%3A21px%3Bpadding%3A0%204px%200%204px%3Bbackground%2Dcolor%3A%23FFF%3Bvertical%2Dalign%3Atop%3Boverflow%3Ahidden%3Boutline%2Dwidth%3A0%3Bwhite%2Dspace%3Apre%2Dline%7D%2Ehandsontable%20td%2EhtInvalid%7Bbackground%2Dcolor%3A%23ff4c42%21important%7D%2Ehandsontable%20td%2EhtNoWrap%7Bwhite%2Dspace%3Anowrap%7D%2Ehandsontable%20th%3Alast%2Dchild%7Bborder%2Dright%3A1px%20solid%20%23CCC%3Bborder%2Dbottom%3A1px%20solid%20%23CCC%7D%2Ehandsontable%20tr%3Afirst%2Dchild%20th%2EhtNoFrame%2C%2Ehandsontable%20th%3Afirst%2Dchild%2EhtNoFrame%2C%2Ehandsontable%20th%2EhtNoFrame%7Bborder%2Dleft%2Dwidth%3A0%3Bbackground%2Dcolor%3Awhite%3Bborder%2Dcolor%3A%23FFF%7D%2Ehandsontable%20th%3Afirst%2Dchild%2C%2Ehandsontable%20td%3Afirst%2Dof%2Dtype%2C%2Ehandsontable%20%2EhtNoFrame%2Bth%2C%2Ehandsontable%20%2EhtNoFrame%2Btd%7Bborder%2Dleft%3A1px%20solid%20%23CCC%7D%2Ehandsontable%2EhtRowHeaders%20thead%20tr%20th%3Anth%2Dchild%282%29%7Bborder%2Dleft%3A1px%20solid%20%23CCC%7D%2Ehandsontable%20tr%3Afirst%2Dchild%20th%2C%2Ehandsontable%20tr%3Afirst%2Dchild%20td%7Bborder%2Dtop%3A1px%20solid%20%23CCC%7D%2Eht%5Fmaster%3Anot%28%2EinnerBorderLeft%29%20%7E%20%2Ehandsontable%20tbody%20tr%20th%2C%2Eht%5Fmaster%3Anot%28%2EinnerBorderLeft%29%20%7E%20%2Ehandsontable%3Anot%28%2Eht%5Fclone%5Ftop%29%20thead%20tr%20th%3Afirst%2Dchild%7Bborder%2Dright%2Dwidth%3A0%7D%2Eht%5Fmaster%3Anot%28%2EinnerBorderTop%29%20thead%20tr%3Alast%2Dchild%20th%2C%2Eht%5Fmaster%3Anot%28%2EinnerBorderTop%29%20%7E%20%2Ehandsontable%20thead%20tr%3Alast%2Dchild%20th%2C%2Eht%5Fmaster%3Anot%28%2EinnerBorderTop%29%20thead%20tr%2ElastChild%20th%2C%2Eht%5Fmaster%3Anot%28%2EinnerBorderTop%29%20%7E%20%2Ehandsontable%20thead%20tr%2ElastChild%20th%7Bborder%2Dbottom%2Dwidth%3A0%7D%2Ehandsontable%20th%7Bbackground%2Dcolor%3A%23EEE%3Bcolor%3A%23222%3Btext%2Dalign%3Acenter%3Bfont%2Dweight%3Anormal%3Bwhite%2Dspace%3Anowrap%7D%2Ehandsontable%20thead%20th%7Bpadding%3A0%7D%2Ehandsontable%20th%2Eactive%7Bbackground%2Dcolor%3A%23CCC%7D%2Ehandsontable%20thead%20th%20%2Erelative%7Bpadding%3A2px%204px%7D%2Ehandsontable%20%2EmanualColumnMover%7Bposition%3Afixed%3Bleft%3A0%3Btop%3A0%3Bbackground%2Dcolor%3Atransparent%3Bwidth%3A5px%3Bheight%3A25px%3Bz%2Dindex%3A999%3Bcursor%3Amove%7D%2Ehandsontable%20%2EmanualRowMover%7Bposition%3Afixed%3Bleft%3A%2D4px%3Btop%3A0%3Bbackground%2Dcolor%3Atransparent%3Bheight%3A5px%3Bwidth%3A50px%3Bz%2Dindex%3A999%3Bcursor%3Amove%7D%2Ehandsontable%20%2EmanualColumnMoverGuide%2C%2Ehandsontable%20%2EmanualRowMoverGuide%7Bposition%3Afixed%3Bleft%3A0%3Btop%3A0%3Bbackground%2Dcolor%3A%23CCC%3Bwidth%3A25px%3Bheight%3A25px%3Bopacity%3A%2E7%3Bdisplay%3Anone%7D%2Ehandsontable%20%2EmanualColumnMoverGuide%2Eactive%2C%2Ehandsontable%20%2EmanualRowMoverGuide%2Eactive%7Bdisplay%3Ablock%3Bz%2Dindex%3A199%7D%2Ehandsontable%20%2EmanualColumnMover%3Ahover%2C%2Ehandsontable%20%2EmanualColumnMover%2Eactive%2C%2Ehandsontable%20%2EmanualRowMover%3Ahover%2C%2Ehandsontable%20%2EmanualRowMover%2Eactive%7Bbackground%2Dcolor%3A%2388F%7D%2Ehandsontable%20%2EmanualColumnResizer%7Bposition%3Afixed%3Btop%3A0%3Bcursor%3Acol%2Dresize%3Bz%2Dindex%3A110%3Bwidth%3A5px%3Bheight%3A25px%7D%2Ehandsontable%20%2EmanualRowResizer%7Bposition%3Afixed%3Bleft%3A0%3Bcursor%3Arow%2Dresize%3Bz%2Dindex%3A110%3Bheight%3A5px%3Bwidth%3A50px%7D%2Ehandsontable%20%2EmanualColumnResizer%3Ahover%2C%2Ehandsontable%20%2EmanualColumnResizer%2Eactive%2C%2Ehandsontable%20%2EmanualRowResizer%3Ahover%2C%2Ehandsontable%20%2EmanualRowResizer%2Eactive%7Bbackground%2Dcolor%3A%23AAB%7D%2Ehandsontable%20%2EmanualColumnResizerGuide%7Bposition%3Afixed%3Bright%3A0%3Btop%3A0%3Bbackground%2Dcolor%3A%23AAB%3Bdisplay%3Anone%3Bwidth%3A0%3Bborder%2Dright%3A1px%20dashed%20%23777%3Bmargin%2Dleft%3A5px%7D%2Ehandsontable%20%2EmanualRowResizerGuide%7Bposition%3Afixed%3Bleft%3A0%3Bbottom%3A0%3Bbackground%2Dcolor%3A%23AAB%3Bdisplay%3Anone%3Bheight%3A0%3Bborder%2Dbottom%3A1px%20dashed%20%23777%3Bmargin%2Dtop%3A5px%7D%2Ehandsontable%20%2EmanualColumnResizerGuide%2Eactive%2C%2Ehandsontable%20%2EmanualRowResizerGuide%2Eactive%7Bdisplay%3Ablock%3Bz%2Dindex%3A199%7D%2Ehandsontable%20%2EcolumnSorting%7Bposition%3Arelative%7D%2Ehandsontable%20%2EcolumnSorting%3Ahover%7Btext%2Ddecoration%3Aunderline%3Bcursor%3Apointer%7D%2Ehandsontable%20%2EcolumnSorting%2Eascending%3A%3Aafter%7Bcontent%3A%27%5C25B2%27%3Bcolor%3A%235f5f5f%3Bposition%3Aabsolute%3Bright%3A%2D15px%7D%2Ehandsontable%20%2EcolumnSorting%2Edescending%3A%3Aafter%7Bcontent%3A%27%5C25BC%27%3Bcolor%3A%235f5f5f%3Bposition%3Aabsolute%3Bright%3A%2D15px%7D%2Ehandsontable%20th%2EbeforeHiddenColumn%7Bposition%3Arelative%7D%2Ehandsontable%20th%2EbeforeHiddenColumn%3A%3Aafter%2C%2Ehandsontable%20th%2EafterHiddenColumn%3A%3Abefore%7Bcontent%3A%27%5C25C0%27%3Bcolor%3A%23bbb%3Bposition%3Aabsolute%3Bright%3A1px%3Btop%3A2px%3Bfont%2Dsize%3A5pt%7D%2Ehandsontable%20th%2EafterHiddenColumn%7Bposition%3Arelative%7D%2Ehandsontable%20th%2EafterHiddenColumn%3A%3Abefore%7Bleft%3A1px%3Btop%3A2px%3Bright%3Aauto%3Bcontent%3A%27%5C25B6%27%7D%2Ehandsontable%20td%2EafterHiddenColumn%2EfirstVisible%7Bborder%2Dleft%3A1px%20solid%20%23CCC%7D%2Ehandsontable%20thead%20th%2EhiddenHeader%7Bdisplay%3Anone%7D%2Ehandsontable%20%2EwtBorder%7Bposition%3Aabsolute%3Bfont%2Dsize%3A0%7D%2Ehandsontable%20%2EwtBorder%2Ehidden%7Bdisplay%3Anone%21important%7D%2Ehandsontable%20td%2Earea%7Bbackground%3A%2Dmoz%2Dlinear%2Dgradient%28top%2Crgba%28181%2C209%2C255%2C0%2E34%29%200%2Crgba%28181%2C209%2C255%2C0%2E34%29%20100%25%29%3Bbackground%3A%2Dwebkit%2Dgradient%28linear%2Cleft%20top%2Cleft%20bottom%2Ccolor%2Dstop%280%25%2Crgba%28181%2C209%2C255%2C0%2E34%29%29%2Ccolor%2Dstop%28100%25%2Crgba%28181%2C209%2C255%2C0%2E34%29%29%29%3Bbackground%3A%2Dwebkit%2Dlinear%2Dgradient%28top%2Crgba%28181%2C209%2C255%2C0%2E34%29%200%2Crgba%28181%2C209%2C255%2C0%2E34%29%20100%25%29%3Bbackground%3A%2Do%2Dlinear%2Dgradient%28top%2Crgba%28181%2C209%2C255%2C0%2E34%29%200%2Crgba%28181%2C209%2C255%2C0%2E34%29%20100%25%29%3Bbackground%3A%2Dms%2Dlinear%2Dgradient%28top%2Crgba%28181%2C209%2C255%2C0%2E34%29%200%2Crgba%28181%2C209%2C255%2C0%2E34%29%20100%25%29%3Bbackground%3Alinear%2Dgradient%28to%20bottom%2Crgba%28181%2C209%2C255%2C0%2E34%29%200%2Crgba%28181%2C209%2C255%2C0%2E34%29%20100%25%29%3Bfilter%3Aprogid%3ADXImageTransform%2EMicrosoft%2Egradient%28startColorstr%3D%27%2357b5d1ff%27%2CendColorstr%3D%27%2357b5d1ff%27%2CGradientType%3D0%29%3Bbackground%2Dcolor%3A%23fff%7D%2Ehandsontable%20%2EwtBorder%2Ecorner%7Bfont%2Dsize%3A0%3Bcursor%3Acrosshair%7D%2Ehandsontable%20%2EhtBorder%2EhtFillBorder%7Bbackground%3Ared%3Bwidth%3A1px%3Bheight%3A1px%7D%2EhandsontableInput%7Bborder%3A0%3Boutline%2Dwidth%3A0%3Bmargin%3A0%3Bpadding%3A1px%205px%200%205px%3Bfont%2Dfamily%3Ainherit%3Bline%2Dheight%3A21px%3Bfont%2Dsize%3Ainherit%3Bbox%2Dshadow%3A0%200%200%202px%20%235292f7%20inset%3Bresize%3Anone%3Bdisplay%3Ainline%2Dblock%3Bcolor%3A%23000%3Bborder%2Dradius%3A0%3Bbackground%2Dcolor%3A%23FFF%7D%2EhandsontableInputHolder%7Bposition%3Aabsolute%3Btop%3A0%3Bleft%3A0%3Bz%2Dindex%3A100%7D%2EhtSelectEditor%7B%2Dwebkit%2Dappearance%3Amenulist%2Dbutton%21important%3Bposition%3Aabsolute%3Bwidth%3Aauto%7D%2Ehandsontable%20%2EhtDimmed%7Bcolor%3A%23777%7D%2Ehandsontable%20%2EhtSubmenu%7Bposition%3Arelative%7D%2Ehandsontable%20%2EhtSubmenu%20%3Aafter%7Bcontent%3A%27%E2%96%B6%27%3Bcolor%3A%23777%3Bposition%3Aabsolute%3Bright%3A5px%7D%2Ehandsontable%20%2EhtLeft%7Btext%2Dalign%3Aleft%7D%2Ehandsontable%20%2EhtCenter%7Btext%2Dalign%3Acenter%7D%2Ehandsontable%20%2EhtRight%7Btext%2Dalign%3Aright%7D%2Ehandsontable%20%2EhtJustify%7Btext%2Dalign%3Ajustify%7D%2Ehandsontable%20%2EhtTop%7Bvertical%2Dalign%3Atop%7D%2Ehandsontable%20%2EhtMiddle%7Bvertical%2Dalign%3Amiddle%7D%2Ehandsontable%20%2EhtBottom%7Bvertical%2Dalign%3Abottom%7D%2Ehandsontable%20%2EhtPlaceholder%7Bcolor%3A%23999%7D%2Ehandsontable%20%2EhtAutocompleteArrow%7Bfloat%3Aright%3Bfont%2Dsize%3A10px%3Bcolor%3A%23EEE%3Bcursor%3Adefault%3Bwidth%3A16px%3Btext%2Dalign%3Acenter%7D%2Ehandsontable%20td%20%2EhtAutocompleteArrow%3Ahover%7Bcolor%3A%23777%7D%2Ehandsontable%20td%2Earea%20%2EhtAutocompleteArrow%7Bcolor%3A%23d3d3d3%7D%2Ehandsontable%20%2EhtCheckboxRendererInput%7Bdisplay%3Ainline%2Dblock%3Bvertical%2Dalign%3Amiddle%7D%2Ehandsontable%20%2EhtCheckboxRendererInput%2EnoValue%7Bopacity%3A%2E5%7D%2Ehandsontable%20%2EhtCheckboxRendererLabel%7Bcursor%3Apointer%3Bdisplay%3Ainline%2Dblock%3Bwidth%3A100%25%7D%2EhtCommentCell%7Bposition%3Arelative%7D%2EhtCommentCell%3Aafter%7Bcontent%3A%27%27%3Bposition%3Aabsolute%3Btop%3A0%3Bright%3A0%3Bborder%2Dleft%3A6px%20solid%20transparent%3Bborder%2Dtop%3A6px%20solid%20red%7D%40%2Dwebkit%2Dkeyframes%20opacity%2Dhide%7Bfrom%7Bopacity%3A1%7Dto%7Bopacity%3A0%7D%7D%40keyframes%20opacity%2Dhide%7Bfrom%7Bopacity%3A1%7Dto%7Bopacity%3A0%7D%7D%40%2Dwebkit%2Dkeyframes%20opacity%2Dshow%7Bfrom%7Bopacity%3A0%7Dto%7Bopacity%3A1%7D%7D%40keyframes%20opacity%2Dshow%7Bfrom%7Bopacity%3A0%7Dto%7Bopacity%3A1%7D%7D%2Ehandsontable%20%2Ehandsontable%2Eht%5Fclone%5Ftop%20%2EwtHider%7Bpadding%3A0%200%205px%200%7D%2Ehandsontable%20%2EautocompleteEditor%2Ehandsontable%7Bpadding%2Dright%3A17px%7D%2Ehandsontable%20%2EautocompleteEditor%2Ehandsontable%2EhtMacScroll%7Bpadding%2Dright%3A15px%7D%2Ehandsontable%2Elistbox%7Bmargin%3A0%7D%2Ehandsontable%2Elistbox%20%2Eht%5Fmaster%20table%7Bborder%3A1px%20solid%20%23ccc%3Bborder%2Dcollapse%3Aseparate%3Bbackground%3Awhite%7D%2Ehandsontable%2Elistbox%20th%2C%2Ehandsontable%2Elistbox%20tr%3Afirst%2Dchild%20th%2C%2Ehandsontable%2Elistbox%20tr%3Alast%2Dchild%20th%2C%2Ehandsontable%2Elistbox%20tr%3Afirst%2Dchild%20td%2C%2Ehandsontable%2Elistbox%20td%7Bborder%2Dcolor%3Atransparent%7D%2Ehandsontable%2Elistbox%20th%2C%2Ehandsontable%2Elistbox%20td%7Bwhite%2Dspace%3Anowrap%3Btext%2Doverflow%3Aellipsis%7D%2Ehandsontable%2Elistbox%20td%2EhtDimmed%7Bcursor%3Adefault%3Bcolor%3Ainherit%3Bfont%2Dstyle%3Ainherit%7D%2Ehandsontable%2Elistbox%20%2EwtBorder%7Bvisibility%3Ahidden%7D%2Ehandsontable%2Elistbox%20tr%20td%2Ecurrent%2C%2Ehandsontable%2Elistbox%20tr%3Ahover%20td%7Bbackground%3A%23eee%7D%2Eht%5Fclone%5Ftop%7Bz%2Dindex%3A101%7D%2Eht%5Fclone%5Fleft%7Bz%2Dindex%3A102%7D%2Eht%5Fclone%5Ftop%5Fleft%5Fcorner%2C%2Eht%5Fclone%5Fbottom%5Fleft%5Fcorner%7Bz%2Dindex%3A103%7D%2Eht%5Fclone%5Fdebug%7Bz%2Dindex%3A103%7D%2Ehandsontable%20td%2EhtSearchResult%7Bbackground%3A%23fcedd9%3Bcolor%3A%23583707%7D%2EhtBordered%7Bborder%2Dwidth%3A1px%7D%2EhtBordered%2EhtTopBorderSolid%7Bborder%2Dtop%2Dstyle%3Asolid%3Bborder%2Dtop%2Dcolor%3A%23000%7D%2EhtBordered%2EhtRightBorderSolid%7Bborder%2Dright%2Dstyle%3Asolid%3Bborder%2Dright%2Dcolor%3A%23000%7D%2EhtBordered%2EhtBottomBorderSolid%7Bborder%2Dbottom%2Dstyle%3Asolid%3Bborder%2Dbottom%2Dcolor%3A%23000%7D%2EhtBordered%2EhtLeftBorderSolid%7Bborder%2Dleft%2Dstyle%3Asolid%3Bborder%2Dleft%2Dcolor%3A%23000%7D%2EhtCommentTextArea%7B%2Dmoz%2Dbox%2Dshadow%3A1px%201px%202px%20%23bbb%3B%2Dwebkit%2Dbox%2Dshadow%3A1px%201px%202px%20%23bbb%3Bbackground%2Dcolor%3A%23fffacd%3Bborder%3A1px%20solid%20%23999%3Bbox%2Dshadow%3A1px%201px%202px%20%23bbb%3Bfont%2Dfamily%3A%27Arial%27%7D%2Ehandsontable%20tbody%20tr%20th%3Anth%2Dlast%2Dchild%282%29%7Bborder%2Dright%3A1px%20solid%20%23CCC%7D%2Ehandsontable%20thead%20tr%3Anth%2Dlast%2Dchild%282%29%20th%2EhtGroupIndicatorContainer%7Bborder%2Dbottom%3A1px%20solid%20%23CCC%3Bpadding%2Dbottom%3A5px%7D%2Eht%5Fclone%5Ftop%5Fleft%5Fcorner%20thead%20tr%20th%3Anth%2Dlast%2Dchild%282%29%7Bborder%2Dright%3A1px%20solid%20%23CCC%7D%2EhtCollapseButton%7Bwidth%3A10px%3Bheight%3A10px%3Bline%2Dheight%3A10px%3Btext%2Dalign%3Acenter%3Bborder%2Dradius%3A5px%3Bborder%3A1px%20solid%20%23f3f3f3%3B%2Dwebkit%2Dbox%2Dshadow%3A1px%201px%203px%20rgba%280%2C0%2C0%2C0%2E4%29%3Bbox%2Dshadow%3A1px%201px%203px%20rgba%280%2C0%2C0%2C0%2E4%29%3Bcursor%3Apointer%3Bmargin%2Dbottom%3A3px%3Bposition%3Arelative%7D%2EhtCollapseButton%3Aafter%7Bcontent%3A%22%22%3Bheight%3A300%25%3Bwidth%3A1px%3Bdisplay%3Ablock%3Bbackground%3A%23ccc%3Bmargin%2Dleft%3A4px%3Bposition%3Aabsolute%3Bbottom%3A10px%7Dthead%20%2EhtCollapseButton%7Bright%3A5px%3Bposition%3Aabsolute%3Btop%3A5px%3Bbackground%3A%23fff%7Dthead%20%2EhtCollapseButton%3Aafter%7Bheight%3A1px%3Bwidth%3A700%25%3Bright%3A10px%3Btop%3A4px%7D%2Ehandsontable%20tr%20th%20%2EhtExpandButton%7Bposition%3Aabsolute%3Bwidth%3A10px%3Bheight%3A10px%3Bline%2Dheight%3A10px%3Btext%2Dalign%3Acenter%3Bborder%2Dradius%3A5px%3Bborder%3A1px%20solid%20%23f3f3f3%3B%2Dwebkit%2Dbox%2Dshadow%3A1px%201px%203px%20rgba%280%2C0%2C0%2C0%2E4%29%3Bbox%2Dshadow%3A1px%201px%203px%20rgba%280%2C0%2C0%2C0%2E4%29%3Bcursor%3Apointer%3Btop%3A0%3Bdisplay%3Anone%7D%2Ehandsontable%20thead%20tr%20th%20%2EhtExpandButton%7Btop%3A5px%7D%2Ehandsontable%20tr%20th%20%2EhtExpandButton%2Eclickable%7Bdisplay%3Ablock%7D%2EcollapsibleIndicator%7Bposition%3Aabsolute%3Btop%3A50%25%3Btransform%3Atranslate%280%25%2C%2D50%25%29%3Bright%3A5px%3Bborder%3A1px%20solid%20%23a6a6a6%3Bline%2Dheight%3A10px%3Bcolor%3A%23222%3Bborder%2Dradius%3A10px%3Bfont%2Dsize%3A10px%3Bwidth%3A10px%3Bheight%3A10px%3Bcursor%3Apointer%3B%2Dwebkit%2Dbox%2Dshadow%3A0%200%200%206px%20rgba%28238%2C238%2C238%2C1%29%3B%2Dmoz%2Dbox%2Dshadow%3A0%200%200%206px%20rgba%28238%2C238%2C238%2C1%29%3Bbox%2Dshadow%3A0%200%200%206px%20rgba%28238%2C238%2C238%2C1%29%3Bbackground%3A%23eee%7D%2Ehandsontable%20col%2Ehidden%7Bwidth%3A0%21important%7D%2Ehandsontable%20table%20tr%20th%2ElightRightBorder%7Bborder%2Dright%3A1px%20solid%20%23e6e6e6%7D%2Ehandsontable%20tr%2Ehidden%2C%2Ehandsontable%20tr%2Ehidden%20td%2C%2Ehandsontable%20tr%2Ehidden%20th%7Bdisplay%3Anone%7D%2Eht%5Fmaster%2C%2Eht%5Fclone%5Fleft%2C%2Eht%5Fclone%5Ftop%2C%2Eht%5Fclone%5Fbottom%7Boverflow%3Ahidden%7D%2Eht%5Fmaster%20%2EwtHolder%7Boverflow%3Aauto%7D%2Eht%5Fclone%5Fleft%20%2EwtHolder%7Boverflow%2Dx%3Ahidden%3Boverflow%2Dy%3Aauto%7D%2Eht%5Fclone%5Ftop%20%2EwtHolder%2C%2Eht%5Fclone%5Fbottom%20%2EwtHolder%7Boverflow%2Dx%3Aauto%3Boverflow%2Dy%3Ahidden%7D%2EwtDebugHidden%7Bdisplay%3Anone%7D%2EwtDebugVisible%7Bdisplay%3Ablock%3B%2Dwebkit%2Danimation%2Dduration%3A%2E5s%3B%2Dwebkit%2Danimation%2Dname%3AwtFadeInFromNone%3Banimation%2Dduration%3A%2E5s%3Banimation%2Dname%3AwtFadeInFromNone%7D%40keyframes%20wtFadeInFromNone%7B0%25%7Bdisplay%3Anone%3Bopacity%3A0%7D1%25%7Bdisplay%3Ablock%3Bopacity%3A0%7D100%25%7Bdisplay%3Ablock%3Bopacity%3A1%7D%7D%40%2Dwebkit%2Dkeyframes%20wtFadeInFromNone%7B0%25%7Bdisplay%3Anone%3Bopacity%3A0%7D1%25%7Bdisplay%3Ablock%3Bopacity%3A0%7D100%25%7Bdisplay%3Ablock%3Bopacity%3A1%7D%7D%2Ehandsontable%2Emobile%2C%2Ehandsontable%2Emobile%20%2EwtHolder%7B%2Dwebkit%2Dtouch%2Dcallout%3Anone%3B%2Dwebkit%2Duser%2Dselect%3Anone%3B%2Dkhtml%2Duser%2Dselect%3Anone%3B%2Dmoz%2Duser%2Dselect%3Anone%3B%2Dms%2Duser%2Dselect%3Anone%3Buser%2Dselect%3Anone%3B%2Dwebkit%2Dtap%2Dhighlight%2Dcolor%3Argba%280%2C0%2C0%2C0%29%3B%2Dwebkit%2Doverflow%2Dscrolling%3Atouch%7D%2EhtMobileEditorContainer%7Bdisplay%3Anone%3Bposition%3Aabsolute%3Btop%3A0%3Bwidth%3A70%25%3Bheight%3A54pt%3Bbackground%3A%23f8f8f8%3Bborder%2Dradius%3A20px%3Bborder%3A1px%20solid%20%23ebebeb%3Bz%2Dindex%3A999%3Bbox%2Dsizing%3Aborder%2Dbox%3B%2Dwebkit%2Dbox%2Dsizing%3Aborder%2Dbox%3B%2Dwebkit%2Dtext%2Dsize%2Dadjust%3Anone%7D%2EtopLeftSelectionHandle%3Anot%28%2Eht%5Fmaster%20%2EtopLeftSelectionHandle%29%2C%2EtopLeftSelectionHandle%2DHitArea%3Anot%28%2Eht%5Fmaster%20%2EtopLeftSelectionHandle%2DHitArea%29%7Bz%2Dindex%3A9999%7D%2EtopLeftSelectionHandle%2C%2EtopLeftSelectionHandle%2DHitArea%2C%2EbottomRightSelectionHandle%2C%2EbottomRightSelectionHandle%2DHitArea%7Bleft%3A%2D10000px%3Btop%3A%2D10000px%7D%2EhtMobileEditorContainer%2Eactive%7Bdisplay%3Ablock%7D%2EhtMobileEditorContainer%20%2Einputs%7Bposition%3Aabsolute%3Bright%3A210pt%3Bbottom%3A10pt%3Btop%3A10pt%3Bleft%3A14px%3Bheight%3A34pt%7D%2EhtMobileEditorContainer%20%2Einputs%20textarea%7Bfont%2Dsize%3A13pt%3Bborder%3A1px%20solid%20%23a1a1a1%3B%2Dwebkit%2Dappearance%3Anone%3B%2Dwebkit%2Dbox%2Dshadow%3Anone%3B%2Dmoz%2Dbox%2Dshadow%3Anone%3Bbox%2Dshadow%3Anone%3Bposition%3Aabsolute%3Bleft%3A14px%3Bright%3A14px%3Btop%3A0%3Bbottom%3A0%3Bpadding%3A7pt%7D%2EhtMobileEditorContainer%20%2EcellPointer%7Bposition%3Aabsolute%3Btop%3A%2D13pt%3Bheight%3A0%3Bwidth%3A0%3Bleft%3A30px%3Bborder%2Dleft%3A13pt%20solid%20transparent%3Bborder%2Dright%3A13pt%20solid%20transparent%3Bborder%2Dbottom%3A13pt%20solid%20%23ebebeb%7D%2EhtMobileEditorContainer%20%2EcellPointer%2Ehidden%7Bdisplay%3Anone%7D%2EhtMobileEditorContainer%20%2EcellPointer%3Abefore%7Bcontent%3A%27%27%3Bdisplay%3Ablock%3Bposition%3Aabsolute%3Btop%3A2px%3Bheight%3A0%3Bwidth%3A0%3Bleft%3A%2D13pt%3Bborder%2Dleft%3A13pt%20solid%20transparent%3Bborder%2Dright%3A13pt%20solid%20transparent%3Bborder%2Dbottom%3A13pt%20solid%20%23f8f8f8%7D%2EhtMobileEditorContainer%20%2EmoveHandle%7Bposition%3Aabsolute%3Btop%3A10pt%3Bleft%3A5px%3Bwidth%3A30px%3Bbottom%3A0%3Bcursor%3Amove%3Bz%2Dindex%3A9999%7D%2EhtMobileEditorContainer%20%2EmoveHandle%3Aafter%7Bcontent%3A%22%2E%2E%5Ca%2E%2E%5Ca%2E%2E%5Ca%2E%2E%22%3Bwhite%2Dspace%3Apre%3Bline%2Dheight%3A10px%3Bfont%2Dsize%3A20pt%3Bdisplay%3Ainline%2Dblock%3Bmargin%2Dtop%3A%2D8px%3Bcolor%3A%23ebebeb%7D%2EhtMobileEditorContainer%20%2EpositionControls%7Bwidth%3A205pt%3Bposition%3Aabsolute%3Bright%3A5pt%3Btop%3A0%3Bbottom%3A0%7D%2EhtMobileEditorContainer%20%2EpositionControls%3Ediv%7Bwidth%3A50pt%3Bheight%3A100%25%3Bfloat%3Aleft%7D%2EhtMobileEditorContainer%20%2EpositionControls%3Ediv%3Aafter%7Bcontent%3A%22%20%22%3Bdisplay%3Ablock%3Bwidth%3A15pt%3Bheight%3A15pt%3Btext%2Dalign%3Acenter%3Bline%2Dheight%3A50pt%7D%2EhtMobileEditorContainer%20%2EleftButton%3Aafter%2C%2EhtMobileEditorContainer%20%2ErightButton%3Aafter%2C%2EhtMobileEditorContainer%20%2EupButton%3Aafter%2C%2EhtMobileEditorContainer%20%2EdownButton%3Aafter%7Btransform%2Dorigin%3A5pt%205pt%3B%2Dwebkit%2Dtransform%2Dorigin%3A5pt%205pt%3Bmargin%3A21pt%200%200%2021pt%7D%2EhtMobileEditorContainer%20%2EleftButton%3Aafter%7Bborder%2Dtop%3A2px%20solid%20%23288ffe%3Bborder%2Dleft%3A2px%20solid%20%23288ffe%3B%2Dwebkit%2Dtransform%3Arotate%28%2D45deg%29%7D%2EhtMobileEditorContainer%20%2EleftButton%3Aactive%3Aafter%7Bborder%2Dcolor%3A%23cfcfcf%7D%2EhtMobileEditorContainer%20%2ErightButton%3Aafter%7Bborder%2Dtop%3A2px%20solid%20%23288ffe%3Bborder%2Dleft%3A2px%20solid%20%23288ffe%3B%2Dwebkit%2Dtransform%3Arotate%28135deg%29%7D%2EhtMobileEditorContainer%20%2ErightButton%3Aactive%3Aafter%7Bborder%2Dcolor%3A%23cfcfcf%7D%2EhtMobileEditorContainer%20%2EupButton%3Aafter%7Bborder%2Dtop%3A2px%20solid%20%23288ffe%3Bborder%2Dleft%3A2px%20solid%20%23288ffe%3B%2Dwebkit%2Dtransform%3Arotate%2845deg%29%7D%2EhtMobileEditorContainer%20%2EupButton%3Aactive%3Aafter%7Bborder%2Dcolor%3A%23cfcfcf%7D%2EhtMobileEditorContainer%20%2EdownButton%3Aafter%7Bborder%2Dtop%3A2px%20solid%20%23288ffe%3Bborder%2Dleft%3A2px%20solid%20%23288ffe%3B%2Dwebkit%2Dtransform%3Arotate%28225deg%29%7D%2EhtMobileEditorContainer%20%2EdownButton%3Aactive%3Aafter%7Bborder%2Dcolor%3A%23cfcfcf%7D%2Ehandsontable%2Ehide%2Dtween%7B%2Dwebkit%2Danimation%3Aopacity%2Dhide%20%2E3s%3Banimation%3Aopacity%2Dhide%20%2E3s%3Banimation%2Dfill%2Dmode%3Aforwards%3B%2Dwebkit%2Danimation%2Dfill%2Dmode%3Aforwards%7D%2Ehandsontable%2Eshow%2Dtween%7B%2Dwebkit%2Danimation%3Aopacity%2Dshow%20%2E3s%3Banimation%3Aopacity%2Dshow%20%2E3s%3Banimation%2Dfill%2Dmode%3Aforwards%3B%2Dwebkit%2Danimation%2Dfill%2Dmode%3Aforwards%7D%2EhtContextMenu%7Bdisplay%3Anone%3Bposition%3Aabsolute%3Bz%2Dindex%3A1060%7D%2EhtContextMenu%20%2Eht%5Fclone%5Ftop%2C%2EhtContextMenu%20%2Eht%5Fclone%5Fleft%2C%2EhtContextMenu%20%2Eht%5Fclone%5Fcorner%2C%2EhtContextMenu%20%2Eht%5Fclone%5Fdebug%7Bdisplay%3Anone%7D%2EhtContextMenu%20table%2EhtCore%7Bborder%3A1px%20solid%20%23bbb%3Bborder%2Dbottom%2Dwidth%3A2px%3Bborder%2Dright%2Dwidth%3A2px%7D%2EhtContextMenu%20%2EwtBorder%7Bvisibility%3Ahidden%7D%2EhtContextMenu%20table%20tbody%20tr%20td%7Bbackground%3Awhite%3Bborder%2Dwidth%3A0%3Bpadding%3A4px%206px%200%206px%3Bcursor%3Apointer%3Boverflow%3Ahidden%3Bwhite%2Dspace%3Anowrap%3Btext%2Doverflow%3Aellipsis%7D%2EhtContextMenu%20table%20tbody%20tr%20td%3Afirst%2Dchild%7Bborder%3A0%7D%2EhtContextMenu%20table%20tbody%20tr%20td%2EhtDimmed%7Bfont%2Dstyle%3Anormal%3Bcolor%3A%23323232%7D%2EhtContextMenu%20table%20tbody%20tr%20td%2Ecurrent%2C%2EhtContextMenu%20table%20tbody%20tr%20td%2Ezeroclipboard%2Dis%2Dhover%7Bbackground%3A%23e9e9e9%7D%2EhtContextMenu%20table%20tbody%20tr%20td%2EhtSeparator%7Bborder%2Dtop%3A1px%20solid%20%23bbb%3Bheight%3A0%3Bpadding%3A0%3Bcursor%3Adefault%7D%2EhtContextMenu%20table%20tbody%20tr%20td%2EhtDisabled%7Bcolor%3A%23999%7D%2EhtContextMenu%20table%20tbody%20tr%20td%2EhtDisabled%3Ahover%7Bbackground%3A%23fff%3Bcolor%3A%23999%3Bcursor%3Adefault%7D%2EhtContextMenu%20table%20tbody%20tr%2EhtHidden%7Bdisplay%3Anone%7D%2EhtContextMenu%20table%20tbody%20tr%20td%20%2EhtItemWrapper%7Bmargin%2Dleft%3A10px%3Bmargin%2Dright%3A6px%7D%2EhtContextMenu%20table%20tbody%20tr%20td%20div%20span%2Eselected%7Bmargin%2Dtop%3A%2D2px%3Bposition%3Aabsolute%3Bleft%3A4px%7D%2EhtContextMenu%20%2Eht%5Fmaster%20%2EwtHolder%7Boverflow%3Ahidden%7D%2Epika%2Dsingle%7Bz%2Dindex%3A9999%3Bdisplay%3Ablock%3Bposition%3Arelative%3Bcolor%3A%23333%3Bbackground%3A%23fff%3Bborder%3A1px%20solid%20%23ccc%3Bborder%2Dbottom%2Dcolor%3A%23bbb%3Bfont%2Dfamily%3A%22Helvetica%20Neue%22%2CHelvetica%2CArial%2Csans%2Dserif%7D%2Epika%2Dsingle%3Abefore%2C%2Epika%2Dsingle%3Aafter%7Bcontent%3A%22%20%22%3Bdisplay%3Atable%7D%2Epika%2Dsingle%3Aafter%7Bclear%3Aboth%7D%2Epika%2Dsingle%7B%2Azoom%3A1%7D%2Epika%2Dsingle%2Eis%2Dhidden%7Bdisplay%3Anone%7D%2Epika%2Dsingle%2Eis%2Dbound%7Bposition%3Aabsolute%3Bbox%2Dshadow%3A0%205px%2015px%20%2D5px%20rgba%280%2C0%2C0%2C%2E5%29%7D%2Epika%2Dlendar%7Bfloat%3Aleft%3Bwidth%3A240px%3Bmargin%3A8px%7D%2Epika%2Dtitle%7Bposition%3Arelative%3Btext%2Dalign%3Acenter%7D%2Epika%2Dlabel%7Bdisplay%3Ainline%2Dblock%3B%2Adisplay%3Ainline%3Bposition%3Arelative%3Bz%2Dindex%3A9999%3Boverflow%3Ahidden%3Bmargin%3A0%3Bpadding%3A5px%203px%3Bfont%2Dsize%3A14px%3Bline%2Dheight%3A20px%3Bfont%2Dweight%3Abold%3Bbackground%2Dcolor%3A%23fff%7D%2Epika%2Dtitle%20select%7Bcursor%3Apointer%3Bposition%3Aabsolute%3Bz%2Dindex%3A9998%3Bmargin%3A0%3Bleft%3A0%3Btop%3A5px%3Bfilter%3Aalpha%28opacity%3D0%29%3Bopacity%3A0%7D%2Epika%2Dprev%2C%2Epika%2Dnext%7Bdisplay%3Ablock%3Bcursor%3Apointer%3Bposition%3Arelative%3Boutline%3A0%3Bborder%3A0%3Bpadding%3A0%3Bwidth%3A20px%3Bheight%3A30px%3Btext%2Dindent%3A20px%3Bwhite%2Dspace%3Anowrap%3Boverflow%3Ahidden%3Bbackground%2Dcolor%3Atransparent%3Bbackground%2Dposition%3Acenter%20center%3Bbackground%2Drepeat%3Ano%2Drepeat%3Bbackground%2Dsize%3A75%25%2075%25%3Bopacity%3A%2E5%3B%2Aposition%3Aabsolute%3B%2Atop%3A0%7D%2Epika%2Dprev%3Ahover%2C%2Epika%2Dnext%3Ahover%7Bopacity%3A1%7D%2Epika%2Dprev%2C%2Eis%2Drtl%20%2Epika%2Dnext%7Bfloat%3Aleft%3Bbackground%2Dimage%3Aurl%28%27data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj%2BOD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8%2BAqBIl6kKgHiXqQqAeJepBo%2Fz38J%2FU0uAHlaBkBl9I4GwAAAABJRU5ErkJggg%3D%3D%27%29%3B%2Aleft%3A0%7D%2Epika%2Dnext%2C%2Eis%2Drtl%20%2Epika%2Dprev%7Bfloat%3Aright%3Bbackground%2Dimage%3Aurl%28%27data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO%2BBJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII%3D%27%29%3B%2Aright%3A0%7D%2Epika%2Dprev%2Eis%2Ddisabled%2C%2Epika%2Dnext%2Eis%2Ddisabled%7Bcursor%3Adefault%3Bopacity%3A%2E2%7D%2Epika%2Dselect%7Bdisplay%3Ainline%2Dblock%3B%2Adisplay%3Ainline%7D%2Epika%2Dtable%7Bwidth%3A100%25%3Bborder%2Dcollapse%3Acollapse%3Bborder%2Dspacing%3A0%3Bborder%3A0%7D%2Epika%2Dtable%20th%2C%2Epika%2Dtable%20td%7Bwidth%3A14%2E285714285714286%25%3Bpadding%3A0%7D%2Epika%2Dtable%20th%7Bcolor%3A%23999%3Bfont%2Dsize%3A12px%3Bline%2Dheight%3A25px%3Bfont%2Dweight%3Abold%3Btext%2Dalign%3Acenter%7D%2Epika%2Dbutton%7Bcursor%3Apointer%3Bdisplay%3Ablock%3Bbox%2Dsizing%3Aborder%2Dbox%3B%2Dmoz%2Dbox%2Dsizing%3Aborder%2Dbox%3Boutline%3A0%3Bborder%3A0%3Bmargin%3A0%3Bwidth%3A100%25%3Bpadding%3A5px%3Bcolor%3A%23666%3Bfont%2Dsize%3A12px%3Bline%2Dheight%3A15px%3Btext%2Dalign%3Aright%3Bbackground%3A%23f5f5f5%7D%2Epika%2Dweek%7Bfont%2Dsize%3A11px%3Bcolor%3A%23999%7D%2Eis%2Dtoday%20%2Epika%2Dbutton%7Bcolor%3A%233af%3Bfont%2Dweight%3Abold%7D%2Eis%2Dselected%20%2Epika%2Dbutton%7Bcolor%3A%23fff%3Bfont%2Dweight%3Abold%3Bbackground%3A%233af%3Bbox%2Dshadow%3Ainset%200%201px%203px%20%23178fe5%3Bborder%2Dradius%3A3px%7D%2Eis%2Dinrange%20%2Epika%2Dbutton%7Bbackground%3A%23d5e9f7%7D%2Eis%2Dstartrange%20%2Epika%2Dbutton%7Bcolor%3A%23fff%3Bbackground%3A%236cb31d%3Bbox%2Dshadow%3Anone%3Bborder%2Dradius%3A3px%7D%2Eis%2Dendrange%20%2Epika%2Dbutton%7Bcolor%3A%23fff%3Bbackground%3A%233af%3Bbox%2Dshadow%3Anone%3Bborder%2Dradius%3A3px%7D%2Eis%2Ddisabled%20%2Epika%2Dbutton%7Bpointer%2Devents%3Anone%3Bcursor%3Adefault%3Bcolor%3A%23999%3Bopacity%3A%2E3%7D%2Epika%2Dbutton%3Ahover%7Bcolor%3A%23fff%3Bbackground%3A%23ff8000%3Bbox%2Dshadow%3Anone%3Bborder%2Dradius%3A3px%7D%2Epika%2Dtable%20abbr%7Bborder%2Dbottom%3A0%3Bcursor%3Ahelp%7D" rel="stylesheet" />
<script src="data:application/x-javascript;base64,LyohDQooVGhlIE1JVCBMaWNlbnNlKQ0KDQpDb3B5cmlnaHQgKGMpIDIwMTItMjAxNCBNYXJjaW4gV2FycGVjaG93c2tpDQpDb3B5cmlnaHQgKGMpIDIwMTUgSGFuZHNvbmNvZGUgc3AuIHogby5vLiA8aGVsbG9AaGFuZHNvbmNvZGUubmV0Pg0KDQpQZXJtaXNzaW9uIGlzIGhlcmVieSBncmFudGVkLCBmcmVlIG9mIGNoYXJnZSwgdG8gYW55IHBlcnNvbiBvYnRhaW5pbmcNCmEgY29weSBvZiB0aGlzIHNvZnR3YXJlIGFuZCBhc3NvY2lhdGVkIGRvY3VtZW50YXRpb24gZmlsZXMgKHRoZQ0KJ1NvZnR3YXJlJyksIHRvIGRlYWw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cmF0aW9uDQogKiBsYW5ndWFnZSA6IGJlbGdpdW0tZHV0Y2ggKGJlLW5sKQ0KICogYXV0aG9yIDogRGlldGVyIEx1eXBhZXJ0IDogaHR0cHM6Ly9naXRodWIuY29tL21vZXJpa2kNCiAqLw0KKGZ1bmN0aW9uICgpIHsNCiAgICB2YXIgbGFuZ3VhZ2UgPSB7DQogICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kczogJyAnLA0KICAgICAgICAgICAgZGVjaW1hbCAgOiAnLCcNCiAgICAgICAgfSwNCiAgICAgICAgYWJicmV2aWF0aW9uczogew0KICAgICAgICAgICAgdGhvdXNhbmQgOiAnaycsDQogICAgICAgICAgICBtaWxsaW9uICA6ICcgbWxuJywNCiAgICAgICAgICAgIGJpbGxpb24gIDogJyBtbGQnLA0KICAgICAgICAgICAgdHJpbGxpb24gOiAnIGJsbicNCiAgICAgICAgfSwNCiAgICAgICAgb3JkaW5hbCA6IGZ1bmN0aW9uIChudW1iZXIpIHsNCiAgICAgICAgICAgIHZhciByZW1haW5kZXIgPSBudW1iZXIgJSAxMDA7DQogICAgICAgICAgICByZXR1cm4gKG51bWJlciAhPT0gMCAmJiByZW1haW5kZXIgPD0gMSB8fCByZW1haW5kZXIgPT09IDggfHwgcmVtYWluZGVyID49IDIwKSA/ICdzdGUnIDogJ2RlJzsNCiAgICAgICAgfSwNCiAgICAgICAgY3VycmVuY3k6IHsNCiAgICAgICAgICAgIHN5bWJvbDogJ+KCrCAnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdiZS1ubCcsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KLyohIA0KICogbnVtZXJhbC5qcyBsYW5ndWFnZSBjb25maWd1cmF0aW9uDQogKiBsYW5ndWFnZSA6IHNpbXBsaWZpZWQgY2hpbmVzZQ0KICogYXV0aG9yIDogYmFkcGx1bSA6IGh0dHBzOi8vZ2l0aHViLmNvbS9iYWRwbHVtDQogKi8NCihmdW5jdGlvbiAoKSB7DQogICAgdmFyIGxhbmd1YWdlID0gew0KICAgICAgICBkZWxpbWl0ZXJzOiB7DQogICAgICAgICAgICB0aG91c2FuZHM6ICcsJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcuJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ+WNgycsDQogICAgICAgICAgICBtaWxsaW9uOiAn55m+5LiHJywNCiAgICAgICAgICAgIGJpbGxpb246ICfljYHkur8nLA0KICAgICAgICAgICAgdHJpbGxpb246ICflhYYnDQogICAgICAgIH0sDQogICAgICAgIG9yZGluYWw6IGZ1bmN0aW9uIChudW1iZXIpIHsNCiAgICAgICAgICAgIHJldHVybiAnLic7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICfCpScNCiAgICAgICAgfQ0KICAgIH07DQoNCiAgICAvLyBOb2RlDQogICAgaWYgKHR5cGVvZiBtb2R1bGUgIT09ICd1bmRlZmluZWQnICYmIG1vZHVsZS5leHBvcnRzKSB7DQogICAgICAgIG1vZHVsZS5leHBvcnRzID0gbGFuZ3VhZ2U7DQogICAgfQ0KICAgIC8vIEJyb3dzZXINCiAgICBpZiAodHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCcgJiYgdGhpcy5udW1lcmFsICYmIHRoaXMubnVtZXJhbC5sYW5ndWFnZSkgew0KICAgICAgICB0aGlzLm51bWVyYWwubGFuZ3VhZ2UoJ2NocycsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KDQovKiENCiAqIG51bWVyYWwuanMgbGFuZ3VhZ2UgY29uZmlndXJhdGlvbg0KICogbGFuZ3VhZ2UgOiBjemVjaCAoY3MpDQogKiBhdXRob3IgOiBBbmF0b2xpIFBhcGlyb3Zza2kgOiBodHRwczovL2dpdGh1Yi5jb20vYXBhcGlyb3Zza2kNCiAqLw0KKGZ1bmN0aW9uICgpIHsNCiAgICB2YXIgbGFuZ3VhZ2UgPSB7DQogICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kczogJyAnLA0KICAgICAgICAgICAgZGVjaW1hbDogJywnDQogICAgICAgIH0sDQogICAgICAgIGFiYnJldmlhdGlvbnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kOiAndGlzLicsDQogICAgICAgICAgICBtaWxsaW9uOiAnbWlsLicsDQogICAgICAgICAgICBiaWxsaW9uOiAnYicsDQogICAgICAgICAgICB0cmlsbGlvbjogJ3QnDQogICAgICAgIH0sDQogICAgICAgIG9yZGluYWw6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIHJldHVybiAnLic7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICdLxI0nDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdjcycsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KDQovKiEgDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogZGFuaXNoIGRlbm1hcmsgKGRrKQ0KICogYXV0aG9yIDogTWljaGFlbCBTdG9yZ2FhcmQgOiBodHRwczovL2dpdGh1Yi5jb20vbXN0b3JnYWFyZA0KICovDQooZnVuY3Rpb24gKCkgew0KICAgIHZhciBsYW5ndWFnZSA9IHsNCiAgICAgICAgZGVsaW1pdGVyczogew0KICAgICAgICAgICAgdGhvdXNhbmRzOiAnLicsDQogICAgICAgICAgICBkZWNpbWFsOiAnLCcNCiAgICAgICAgfSwNCiAgICAgICAgYWJicmV2aWF0aW9uczogew0KICAgICAgICAgICAgdGhvdXNhbmQ6ICdrJywNCiAgICAgICAgICAgIG1pbGxpb246ICdtaW8nLA0KICAgICAgICAgICAgYmlsbGlvbjogJ21pYScsDQogICAgICAgICAgICB0cmlsbGlvbjogJ2InDQogICAgICAgIH0sDQogICAgICAgIG9yZGluYWw6IGZ1bmN0aW9uIChudW1iZXIpIHsNCiAgICAgICAgICAgIHJldHVybiAnLic7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICdES0snDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyY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sZS5leHBvcnRzID0gbGFuZ3VhZ2U7DQogICAgfQ0KICAgIC8vIEJyb3dzZXINCiAgICBpZiAodHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCcgJiYgdGhpcy5udW1lcmFsICYmIHRoaXMubnVtZXJhbC5sYW5ndWFnZSkgew0KICAgICAgICB0aGlzLm51bWVyYWwubGFuZ3VhZ2UoJ2RlJywgbGFuZ3VhZ2UpOw0KICAgIH0NCn0oKSk7DQovKiEgDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogZW5nbGlzaCB1bml0ZWQga2luZ2RvbSAodWspDQogKiBhdXRob3IgOiBEYW4gUmlzdGljIDogaHR0cHM6Ly9naXRodWIuY29tL2RyaXN0aWMNCiAqLw0KKGZ1bmN0aW9uICgpIHsNCiAgICB2YXIgbGFuZ3VhZ2UgPSB7DQogICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kczogJywnLA0KICAgICAgICAgICAgZGVjaW1hbDogJy4nDQogICAgICAgIH0sDQogICAgICAgIGFiYnJldmlhdGlvbnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kOiAnaycsDQogICAgICAgICAgICBtaWxsaW9uOiAnbScsDQogICAgICAgICAgICBiaWxsaW9uOiAnYicsDQogICAgICAgICAgICB0cmlsbGlvbjogJ3QnDQogICAgICAgIH0sDQogICAgICAgIG9yZGluYWw6IGZ1bmN0aW9uIChudW1iZXIpIHsNCiAgICAgICAgICAgIHZhciBiID0gbnVtYmVyICUgMTA7DQogICAgICAgICAgICByZXR1cm4gKH5+IChudW1iZXIgJSAxMDAgLyAxMCkgPT09IDEpID8gJ3RoJyA6DQogICAgICAgICAgICAgICAgKGIgPT09IDEpID8gJ3N0JyA6DQogICAgICAgICAgICAgICAgKGIgPT09IDIpID8gJ25kJyA6DQogICAgICAgICAgICAgICAgKGIgPT09IDMpID8gJ3JkJyA6ICd0aCc7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICfCoycNCiAgICAgICAgfQ0KICAgIH07DQoNCiAgICAvLyBOb2RlDQogICAgaWYgKHR5cGVvZiBtb2R1bGUgIT09ICd1bmRlZmluZWQnICYmIG1vZHVsZS5leHBvcnRzKSB7DQogICAgICAgIG1vZHVsZS5leHBvcnRzID0gbGFuZ3VhZ2U7DQogICAgfQ0KICAgIC8vIEJyb3dzZXINCiAgICBpZiAodHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCcgJiYgdGhpcy5udW1lcmFsICYmIHRoaXMubnVtZXJhbC5sYW5ndWFnZSkgew0KICAgICAgICB0aGlzLm51bWVyYWwubGFuZ3VhZ2UoJ2VuLWdiJywgbGFuZ3VhZ2UpOw0KICAgIH0NCn0oKSk7DQovKiEgDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogc3BhbmlzaCBTcGFpbg0KICogYXV0aG9yIDogSGVybmFuIEdhcmNpYSA6IGh0dHBzOi8vZ2l0aHViLmNvbS9oZ2FyY2lhDQogKi8NCihmdW5jdGlvbiAoKSB7DQogICAgdmFyIGxhbmd1YWdlID0gew0KICAgICAgICBkZWxpbWl0ZXJzOiB7DQogICAgICAgICAgICB0aG91c2FuZHM6ICcuJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcsJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ2snLA0KICAgICAgICAgICAgbWlsbGlvbjogJ21tJywNCiAgICAgICAgICAgIGJpbGxpb246ICdiJywNCiAgICAgICAgICAgIHRyaWxsaW9uOiAndCcNCiAgICAgICAgfSwNCiAgICAgICAgb3JkaW5hbDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgdmFyIGIgPSBudW1iZXIgJSAxMDsNCiAgICAgICAgICAgIHJldHVybiAoYiA9PT0gMSB8fCBiID09PSAzKSA/ICdlcicgOg0KICAgICAgICAgICAgICAgIChiID09PSAyKSA/ICdkbycgOg0KICAgICAgICAgICAgICAgICAgICAoYiA9PT0gNyB8fCBiID09PSAwKSA/ICdtbycgOg0KICAgICAgICAgICAgICAgICAgICAgICAgKGIgPT09IDgpID8gJ3ZvJyA6DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgKGIgPT09IDkpID8gJ25vJyA6ICd0byc7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICfigqwnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdlcycsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KDQovKiEgDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogc3BhbmlzaA0KICogYXV0aG9yIDogSGVybmFuIEdhcmNpYSA6IGh0dHBzOi8vZ2l0aHViLmNvbS9oZ2FyY2lhDQogKi8NCihmdW5jdGlvbiAoKSB7DQogICAgdmFyIGxhbmd1YWdlID0gew0KICAgICAgICBkZWxpbWl0ZXJzOiB7DQogICAgICAgICAgICB0aG91c2FuZHM6ICcuJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcsJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ2snLA0KICAgICAgICAgICAgbWlsbGlvbjogJ21tJywNCiAgICAgICAgICAgIGJpbGxpb246ICdiJywNCiAgICAgICAgICAgIHRyaWxsaW9uOiAndCcNCiAgICAgICAgfSwNCiAgICAgICAgb3JkaW5hbDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgdmFyIGIgPSBudW1iZXIgJSAxMDsNCiAgICAgICAgICAgIHJldHVybiAoYiA9PT0gMSB8fCBiID09PSAzKSA/ICdlcicgOg0KICAgICAgICAgICAgICAgIChiID09PSAyKSA/ICdkbycgOg0KICAgICAgICAgICAgICAgIChiID09PSA3IHx8IGIgPT09IDApID8gJ21vJyA6IA0KCQkoYiA9PT0gOCkgPyAndm8nIDoNCgkJKGIgPT09IDkpID8gJ25vJyA6ICd0byc7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICckJw0KICAgICAgICB9DQogICAgfTsNCg0KICAgIC8vIE5vZGUNCiAgICBpZiAodHlwZW9mIG1vZHVsZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbW9kdWxlLmV4cG9ydHMpIHsNCiAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBsYW5ndWFnZTsNCiAgICB9DQogICAgLy8gQnJvd3Nlcg0KICAgIGlmICh0eXBlb2Ygd2luZG93ICE9PSAndW5kZWZpbmVkJyAmJiB0aGlzLm51bWVyYWwgJiYgdGhpcy5udW1lcmFsLmxhbmd1YWdlKSB7DQogICAgICAgIHRoaXMubnVtZXJhbC5sYW5ndWFnZSgnZXMnLCBsYW5ndWFnZSk7DQogICAgfQ0KfSgpKTsNCg0KLyohIA0KICogbnVtZXJhbC5qcyBsYW5ndWFnZSBjb25maWd1cmF0aW9uDQogKiBsYW5ndWFnZSA6IEVzdG9uaWFuDQogKiBhdXRob3IgOiBJbGxpbWFyIFRhbWJlayA6IGh0dHBzOi8vZ2l0aHViLmNvbS9yYWd1bGthDQogKg0KICogTm90ZTogaW4gRXN0b25pYW4sIGFiYnJldmlhdGlvbnMgYXJlIGFsd2F5cyBzZXBhcmF0ZWQNCiAqIGZyb20gbnVtYmVycyB3aXRoIGEgc3BhY2UNCiAqLw0KKGZ1bmN0aW9uICgpIHsNCiAgICB2YXIgbGFuZ3VhZ2UgPSB7DQogICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kczogJyAnLA0KICAgICAgICAgICAgZGVjaW1hbDogJywnDQogICAgICAgIH0sDQogICAgICAgIGFiYnJldmlhdGlvbnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kOiAnIHR1aCcsDQogICAgICAgICAgICBtaWxsaW9uOiAnIG1sbicsDQogICAgICAgICAgICBiaWxsaW9uOiAnIG1sZCcsDQogICAgICAgICAgICB0cmlsbGlvbjogJyB0cmwnDQogICAgICAgIH0sDQogICAgICAgIG9yZGluYWw6IGZ1bmN0aW9uIChudW1iZXIpIHsNCiAgICAgICAgICAgIHJldHVybiAnLic7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICfigqwnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdldCcsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KDQovKiEgDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogRmlubmlzaA0KICogYXV0aG9yIDogU2FtaSBTYWFkYSA6IGh0dHBzOi8vZ2l0aHViLmNvbS9zYW1pdGhlYmVyYmVyDQogKi8NCihmdW5jdGlvbiAoKSB7DQogICAgdmFyIGxhbmd1YWdlID0gew0KICAgICAgICBkZWxpbWl0ZXJzOiB7DQogICAgICAgICAgICB0aG91c2FuZHM6ICcgJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcsJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ2snLA0KICAgICAgICAgICAgbWlsbGlvbjogJ00nLA0KICAgICAgICAgICAgYmlsbGlvbjogJ0cnLA0KICAgICAgICAgICAgdHJpbGxpb246ICdUJw0KICAgICAgICB9LA0KICAgICAgICBvcmRpbmFsOiBmdW5jdGlvbiAobnVtYmVyKSB7DQogICAgICAgICAgICByZXR1cm4gJy4nOw0KICAgICAgICB9LA0KICAgICAgICBjdXJyZW5jeTogew0KICAgICAgICAgICAgc3ltYm9sOiAn4oKsJw0KICAgICAgICB9DQogICAgfTsNCg0KICAgIC8vIE5vZGUNCiAgICBpZiAodHlwZW9mIG1vZHVsZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbW9kdWxlLmV4cG9ydHMpIHsNCiAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBsYW5ndWFnZTsNCiAgICB9DQogICAgLy8gQnJvd3Nlcg0KICAgIGlmICh0eXBlb2Ygd2luZG93ICE9PSAndW5kZWZpbmVkJyAmJiB0aGlzLm51bWVyYWwgJiYgdGhpcy5udW1lcmFsLmxhbmd1YWdlKSB7DQogICAgICAgIHRoaXMubnVtZXJhbC5sYW5ndWFnZSgnZmknLCBsYW5ndWFnZSk7DQogICAgfQ0KfSgpKTsNCg0KLyohDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogZnJlbmNoIChDYW5hZGEpIChmci1DQSkNCiAqIGF1dGhvciA6IEzDqW8gUmVuYXVkLUFsbGFpcmUgOiBodHRwczovL2dpdGh1Yi5jb20vcmVuYXVkbGVvDQogKi8NCihmdW5jdGlvbiAoKSB7DQogICAgdmFyIGxhbmd1YWdlID0gew0KICAgICAgICBkZWxpbWl0ZXJzOiB7DQogICAgICAgICAgICB0aG91c2FuZHM6ICcgJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcsJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ2snLA0KICAgICAgICAgICAgbWlsbGlvbjogJ00nLA0KICAgICAgICAgICAgYmlsbGlvbjogJ0cnLA0KICAgICAgICAgICAgdHJpbGxpb246ICdUJw0KICAgICAgICB9LA0KICAgICAgICBvcmRpbmFsIDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgcmV0dXJuIG51bWJlciA9PT0gMSA/ICdlcicgOiAnZSc7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICckJw0KICAgICAgICB9DQogICAgfTsNCg0KICAgIC8vIE5vZGUNCiAgICBpZiAodHlwZW9mIG1vZHVsZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbW9kdWxlLmV4cG9ydHMpIHsNCiAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBsYW5ndWFnZTsNCiAgICB9DQogICAgLy8gQnJvd3Nlcg0KICAgIGlmICh0eXBlb2Ygd2luZG93ICE9PSAndW5kZWZpbmVkJyAmJiB0aGlzLm51bWVyYWwgJiYgdGhpcy5udW1lcmFsLmxhbmd1YWdlKSB7DQogICAgICAgIHRoaXMubnVtZXJhbC5sYW5ndWFnZSgnZnItQ0EnLCBsYW5ndWFnZSk7DQogICAgfQ0KfSgpKTsNCi8qISANCiAqIG51bWVyYWwuanMgbGFuZ3VhZ2UgY29uZmlndXJhdGlvbg0KICogbGFuZ3VhZ2UgOiBmcmVuY2ggKGZyLWNoKQ0KICogYXV0aG9yIDogQWRhbSBEcmFwZXIgOiBodHRwczovL2dpdGh1Yi5jb20vYWRhbXdkcmFwZXINCiAqLw0KKGZ1bmN0aW9uICgpIHsNCiAgICB2YXIgbGFuZ3VhZ2UgPSB7DQogICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kczogJ1wnJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcuJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ2snLA0KICAgICAgICAgICAgbWlsbGlvbjogJ20nLA0KICAgICAgICAgICAgYmlsbGlvbjogJ2InLA0KICAgICAgICAgICAgdHJpbGxpb246ICd0Jw0KICAgICAgICB9LA0KICAgICAgICBvcmRpbmFsIDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgcmV0dXJuIG51bWJlciA9PT0gMSA/ICdlcicgOiAnZSc7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICdDSEYnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdmci1jaCcsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KDQovKiEgDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogZnJlbmNoIChmcikNCiAqIGF1dGhvciA6IEFkYW0gRHJhcGVyIDogaHR0cHM6Ly9naXRodWIuY29tL2FkYW13ZHJhcGVyDQogKi8NCihmdW5jdGlvbiAoKSB7DQogICAgdmFyIGxhbmd1YWdlID0gew0KICAgICAgICBkZWxpbWl0ZXJzOiB7DQogICAgICAgICAgICB0aG91c2FuZHM6ICcgJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcsJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ2snLA0KICAgICAgICAgICAgbWlsbGlvbjogJ20nLA0KICAgICAgICAgICAgYmlsbGlvbjogJ2InLA0KICAgICAgICAgICAgdHJpbGxpb246ICd0Jw0KICAgICAgICB9LA0KICAgICAgICBvcmRpbmFsIDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgcmV0dXJuIG51bWJlciA9PT0gMSA/ICdlcicgOiAnZSc7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICfigqwnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdmcicsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KLyohDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogSHVuZ2FyaWFuIChodSkNCiAqIGF1dGhvciA6IFBldGVyIEJha29uZHkgOiBodHRwczovL2dpdGh1Yi5jb20vcGJha29uZHkNCiAqLw0KKGZ1bmN0aW9uICgpIHsNCiAgICB2YXIgbGFuZ3VhZ2UgPSB7DQogICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kczogJyAnLA0KICAgICAgICAgICAgZGVjaW1hbDogJywnDQogICAgICAgIH0sDQogICAgICAgIGFiYnJldmlhdGlvbnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kOiAnRScsICAvLyBlemVyDQogICAgICAgICAgICBtaWxsaW9uOiAnTScsICAgLy8gbWlsbGnDsw0KICAgICAgICAgICAgYmlsbGlvbjogJ01yZCcsIC8vIG1pbGxpw6FyZA0KICAgICAgICAgICAgdHJpbGxpb246ICdUJyAgIC8vIHRyaWxsacOzDQogICAgICAgIH0sDQogICAgICAgIG9yZGluYWw6IGZ1bmN0aW9uIChudW1iZXIpIHsNCiAgICAgICAgICAgIHJldHVybiAnLic7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICcgRnQnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdodScsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KLyohIA0KICogbnVtZXJhbC5qcyBsYW5ndWFnZSBjb25maWd1cmF0aW9uDQogKiBsYW5ndWFnZSA6IGl0YWxpYW4gSXRhbHkgKGl0KQ0KICogYXV0aG9yIDogR2lhY29tbyBUcm9tYmkgOiBodHRwOi8vY2lucXVlcHVudGkuaXQNCiAqLw0KKGZ1bmN0aW9uICgpIHsNCiAgICB2YXIgbGFuZ3VhZ2UgPSB7DQogICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kczogJy4nLA0KICAgICAgICAgICAgZGVjaW1hbDogJywnDQogICAgICAgIH0sDQogICAgICAgIGFiYnJldmlhdGlvbnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kOiAnbWlsYScsDQogICAgICAgICAgICBtaWxsaW9uOiAnbWlsJywNCiAgICAgICAgICAgIGJpbGxpb246ICdiJywNCiAgICAgICAgICAgIHRyaWxsaW9uOiAndCcNCiAgICAgICAgfSwNCiAgICAgICAgb3JkaW5hbDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgcmV0dXJuICfCuic7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICfigqwnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdp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ndWFnZSk7DQogICAgfQ0KfSgpKTsNCg0KLyohIA0KICogbnVtZXJhbC5qcyBsYW5ndWFnZSBjb25maWd1cmF0aW9uDQogKiBsYW5ndWFnZSA6IG5ldGhlcmxhbmRzLWR1dGNoIChubC1ubCkNCiAqIGF1dGhvciA6IERhdmUgQ2xheXRvbiA6IGh0dHBzOi8vZ2l0aHViLmNvbS9kYXZlZHgNCiAqLw0KKGZ1bmN0aW9uICgpIHsNCiAgICB2YXIgbGFuZ3VhZ2UgPSB7DQogICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgIHRob3VzYW5kczogJy4nLA0KICAgICAgICAgICAgZGVjaW1hbCAgOiAnLCcNCiAgICAgICAgfSwNCiAgICAgICAgYWJicmV2aWF0aW9uczogew0KICAgICAgICAgICAgdGhvdXNhbmQgOiAnaycsDQogICAgICAgICAgICBtaWxsaW9uICA6ICdtbG4nLA0KICAgICAgICAgICAgYmlsbGlvbiAgOiAnbXJkJywNCiAgICAgICAgICAgIHRyaWxsaW9uIDogJ2JsbicNCiAgICAgICAgfSwNCiAgICAgICAgb3JkaW5hbCA6IGZ1bmN0aW9uIChudW1iZXIpIHsNCiAgICAgICAgICAgIHZhciByZW1haW5kZXIgPSBudW1iZXIgJSAxMDA7DQogICAgICAgICAgICByZXR1cm4gKG51bWJlciAhPT0gMCAmJiByZW1haW5kZXIgPD0gMSB8fCByZW1haW5kZXIgPT09IDggfHwgcmVtYWluZGVyID49IDIwKSA/ICdzdGUnIDogJ2RlJzsNCiAgICAgICAgfSwNCiAgICAgICAgY3VycmVuY3k6IHsNCiAgICAgICAgICAgIHN5bWJvbDogJ+KCrCAnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCdubC1ubCcsIGxhbmd1YWdlKTsNCiAgICB9DQp9KCkpOw0KLyohIA0KICogbnVtZXJhbC5qcyBsYW5ndWFnZSBjb25maWd1cmF0aW9uDQogKiBsYW5ndWFnZSA6IHBvbGlzaCAocGwpDQogKiBhdXRob3IgOiBEb21pbmlrIEJ1bGFqIDogaHR0cHM6Ly9naXRodWIuY29tL2RvbWluaWtidWxhag0KICovDQooZnVuY3Rpb24gKCkgew0KICAgIHZhciBsYW5ndWFnZSA9IHsNCiAgICAgICAgZGVsaW1pdGVyczogew0KICAgICAgICAgICAgdGhvdXNhbmRzOiAnICcsDQogICAgICAgICAgICBkZWNpbWFsOiAnLCcNCiAgICAgICAgfSwNCiAgICAgICAgYWJicmV2aWF0aW9uczogew0KICAgICAgICAgICAgdGhvdXNhbmQ6ICd0eXMuJywNCiAgICAgICAgICAgIG1pbGxpb246ICdtbG4nLA0KICAgICAgICAgICAgYmlsbGlvbjogJ21sZCcsDQogICAgICAgICAgICB0cmlsbGlvbjogJ2JsbicNCiAgICAgICAgfSwNCiAgICAgICAgb3JkaW5hbDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgcmV0dXJuICcuJzsNCiAgICAgICAgfSwNCiAgICAgICAgY3VycmVuY3k6IHsNCiAgICAgICAgICAgIHN5bWJvbDogJ1BMTicNCiAgICAgICAgfQ0KICAgIH07DQoNCiAgICAvLyBOb2RlDQogICAgaWYgKHR5cGVvZiBtb2R1bGUgIT09ICd1bmRlZmluZWQnICYmIG1vZHVsZS5leHBvcnRzKSB7DQogICAgICAgIG1vZHVsZS5leHBvcnRzID0gbGFuZ3VhZ2U7DQogICAgfQ0KICAgIC8vIEJyb3dzZXINCiAgICBpZiAodHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCcgJiYgdGhpcy5udW1lcmFsICYmIHRoaXMubnVtZXJhbC5sYW5ndWFnZSkgew0KICAgICAgICB0aGlzLm51bWVyYWwubGFuZ3VhZ2UoJ3BsJywgbGFuZ3VhZ2UpOw0KICAgIH0NCn0oKSk7DQovKiEgDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogcG9ydHVndWVzZSBicmF6aWwgKHB0LWJyKQ0KICogYXV0aG9yIDogUmFtaXJvIFZhcmFuZGFzIEpyIDogaHR0cHM6Ly9naXRodWIuY29tL3JhbWlyb3Zqcg0KICovDQooZnVuY3Rpb24gKCkgew0KICAgIHZhciBsYW5ndWFnZSA9IHsNCiAgICAgICAgZGVsaW1pdGVyczogew0KICAgICAgICAgICAgdGhvdXNhbmRzOiAnLicsDQogICAgICAgICAgICBkZWNpbWFsOiAnLCcNCiAgICAgICAgfSwNCiAgICAgICAgYWJicmV2aWF0aW9uczogew0KICAgICAgICAgICAgdGhvdXNhbmQ6ICdtaWwnLA0KICAgICAgICAgICAgbWlsbGlvbjogJ21pbGjDtWVzJywNCiAgICAgICAgICAgIGJpbGxpb246ICdiJywNCiAgICAgICAgICAgIHRyaWxsaW9uOiAndCcNCiAgICAgICAgfSwNCiAgICAgICAgb3JkaW5hbDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgcmV0dXJuICfCuic7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICdSJCcNCiAgICAgICAgfQ0KICAgIH07DQoNCiAgICAvLyBOb2RlDQogICAgaWYgKHR5cGVvZiBtb2R1bGUgIT09ICd1bmRlZmluZWQnICYmIG1vZHVsZS5leHBvcnRzKSB7DQogICAgICAgIG1vZHVsZS5leHBvcnRzID0gbGFuZ3VhZ2U7DQogICAgfQ0KICAgIC8vIEJyb3dzZXINCiAgICBpZiAodHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCcgJiYgdGhpcy5udW1lcmFsICYmIHRoaXMubnVtZXJhbC5sYW5ndWFnZSkgew0KICAgICAgICB0aGlzLm51bWVyYWwubGFuZ3VhZ2UoJ3B0LWJyJywgbGFuZ3VhZ2UpOw0KICAgIH0NCn0oKSk7DQovKiEgDQogKiBudW1lcmFsLmpzIGxhbmd1YWdlIGNvbmZpZ3VyYXRpb24NCiAqIGxhbmd1YWdlIDogcG9ydHVndWVzZSAocHQtcHQpDQogKiBhdXRob3IgOiBEaW9nbyBSZXNlbmRlIDogaHR0cHM6Ly9naXRodWIuY29tL2RyZXNlbmRlDQogKi8NCihmdW5jdGlvbiAoKSB7DQogICAgdmFyIGxhbmd1YWdlID0gew0KICAgICAgICBkZWxpbWl0ZXJzOiB7DQogICAgICAgICAgICB0aG91c2FuZHM6ICcgJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcsJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ2snLA0KICAgICAgICAgICAgbWlsbGlvbjogJ20nLA0KICAgICAgICAgICAgYmlsbGlvbjogJ2InLA0KICAgICAgICAgICAgdHJpbGxpb246ICd0Jw0KICAgICAgICB9LA0KICAgICAgICBvcmRpbmFsIDogZnVuY3Rpb24gKG51bWJlcikgew0KICAgICAgICAgICAgcmV0dXJuICfCuic7DQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICfigqwnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBC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ICAgICAgIG1pbGxpb246ICdtaWwuJywNCiAgICAgICAgICAgIGJpbGxpb246ICdiJywNCiAgICAgICAgICAgIHRyaWxsaW9uOiAndCcNCiAgICAgICAgfSwNCiAgICAgICAgb3JkaW5hbDogZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgcmV0dXJuICcuJzsNCiAgICAgICAgfSwNCiAgICAgICAgY3VycmVuY3k6IHsNCiAgICAgICAgICAgIHN5bWJvbDogJ+KCrCcNCiAgICAgICAgfQ0KICAgIH07DQoNCiAgICAvLyBOb2RlDQogICAgaWYgKHR5cGVvZiBtb2R1bGUgIT09ICd1bmRlZmluZWQnICYmIG1vZHVsZS5leHBvcnRzKSB7DQogICAgICAgIG1vZHVsZS5leHBvcnRzID0gbGFuZ3VhZ2U7DQogICAgfQ0KICAgIC8vIEJyb3dzZXINCiAgICBpZiAodHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCcgJiYgdGhpcy5udW1lcmFsICYmIHRoaXMubnVtZXJhbC5sYW5ndWFnZSkgew0KICAgICAgICB0aGlzLm51bWVyYWwubGFuZ3VhZ2UoJ3NrJywgbGFuZ3VhZ2UpOw0KICAgIH0NCn0oKSk7DQoNCi8qISANCiAqIG51bWVyYWwuanMgbGFuZ3VhZ2UgY29uZmlndXJhdGlvbg0KICogbGFuZ3VhZ2UgOiB0aGFpICh0aCkNCiAqIGF1dGhvciA6IFNhdGhpdCBKaXR0YW51cGF0IDogaHR0cHM6Ly9naXRodWIuY29tL2pvam9zYXRpDQogKi8NCihmdW5jdGlvbiAoKSB7DQogICAgdmFyIGxhbmd1YWdlID0gew0KICAgICAgICBkZWxpbWl0ZXJzOiB7DQogICAgICAgICAgICB0aG91c2FuZHM6ICcsJywNCiAgICAgICAgICAgIGRlY2ltYWw6ICcuJw0KICAgICAgICB9LA0KICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICB0aG91c2FuZDogJ+C4nuC4seC4mScsDQogICAgICAgICAgICBtaW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AgICAgICAgICAgIDU6ICdcJ2luY2knLA0KICAgICAgICAgICAgODogJ1wnaW5jaScsDQogICAgICAgICAgICA3MDogJ1wnaW5jaScsDQogICAgICAgICAgICA4MDogJ1wnaW5jaScsDQoNCiAgICAgICAgICAgIDI6ICdcJ25jaScsDQogICAgICAgICAgICA3OiAnXCduY2knLA0KICAgICAgICAgICAgMjA6ICdcJ25jaScsDQogICAgICAgICAgICA1MDogJ1wnbmNpJywNCg0KICAgICAgICAgICAgMzogJ1wnw7xuY8O8JywNCiAgICAgICAgICAgIDQ6ICdcJ8O8bmPDvCcsDQogICAgICAgICAgICAxMDA6ICdcJ8O8bmPDvCcsDQoNCiAgICAgICAgICAgIDY6ICdcJ25jxLEnLA0KDQogICAgICAgICAgICA5OiAnXCd1bmN1JywNCiAgICAgICAgICAgIDEwOiAnXCd1bmN1JywNCiAgICAgICAgICAgIDMwOiAnXCd1bmN1JywNCg0KICAgICAgICAgICAgNjA6ICdcJ8SxbmPEsScsDQogICAgICAgICAgICA5MDogJ1wnxLFuY8SxJw0KICAgICAgICB9LA0KICAgICAgICBsYW5ndWFnZSA9IHsNCiAgICAgICAgICAgIGRlbGltaXRlcnM6IHsNCiAgICAgICAgICAgICAgICB0aG91c2FuZHM6ICcuJywNCiAgICAgICAgICAgICAgICBkZWNpbWFsOiAnLCcNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICBhYmJyZXZpYXRpb25zOiB7DQogICAgICAgICAgICAgICAgdGhvdXNhbmQ6ICdiaW4nLA0KICAgICAgICAgICAgICAgIG1pbGxpb246ICdtaWx5b24nLA0KICAgICAgICAgICAgICAgIGJpbGxpb246ICdtaWx5YXInLA0KICAgICAgICAgICAgICAgIHRyaWxsaW9uOiAndHJpbHlvbicNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICBvcmRpbmFsOiBmdW5jdGlvbiAobnVtYmVyKSB7DQogICAgICAgICAgICAgICAgaWYgKG51bWJlciA9PT0gMCkgeyAgLy8gc3BlY2lhbC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rpb24gKCkgew0KICAgIHZhciBsYW5ndWFnZSA9IHsNCiAgICAgICAgZGVsaW1pdGVyczogew0KICAgICAgICAgICAgdGhvdXNhbmRzOiAnICcsDQogICAgICAgICAgICBkZWNpbWFsOiAnLCcNCiAgICAgICAgfSwNCiAgICAgICAgYWJicmV2aWF0aW9uczogew0KICAgICAgICAgICAgdGhvdXNhbmQ6ICfRgtC40YEuJywNCiAgICAgICAgICAgIG1pbGxpb246ICfQvNC70L0nLA0KICAgICAgICAgICAgYmlsbGlvbjogJ9C80LvRgNC0JywNCiAgICAgICAgICAgIHRyaWxsaW9uOiAn0LHQu9C9Jw0KICAgICAgICB9LA0KICAgICAgICBvcmRpbmFsOiBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAvLyBub3QgaWRlYWwsIGJ1dCBzaW5jZSBpbiBVa3JhaW5pYW4gaXQgY2FuIHRha2VuIG9uIA0KICAgICAgICAgICAgLy8gZGlmZmVyZW50IGZvcm1zIChtYXNjdWxpbmUsIGZlbWluaW5lLCBuZXV0ZXIpDQogICAgICAgICAgICAvLyB0aGlzIGlzIGFsbCB3ZSBjYW4gZG8NCiAgICAgICAgICAgIHJldHVybiAnJzsgDQogICAgICAgIH0sDQogICAgICAgIGN1cnJlbmN5OiB7DQogICAgICAgICAgICBzeW1ib2w6ICdcdTIwQjQnDQogICAgICAgIH0NCiAgICB9Ow0KDQogICAgLy8gTm9kZQ0KICAgIGlmICh0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyAmJiBtb2R1bGUuZXhwb3J0cykgew0KICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IGxhbmd1YWdlOw0KICAgIH0NCiAgICAvLyBCcm93c2VyDQogICAgaWYgKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHRoaXMubnVtZXJhbCAmJiB0aGlzLm51bWVyYWwubGFuZ3VhZ2UpIHsNCiAgICAgICAgdGhpcy5udW1lcmFsLmxhbmd1YWdlKCd1ay1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uLmNzc0hvb2tzW2JdPXtnZXQ6ZnVuY3Rpb24oYSxjLGQpe3JldHVybiBjP0hhLnRlc3Qobi5jc3MoYSwiZGlzcGxheSIpKSYmMD09PWEub2Zmc2V0V2lkdGg/RGEoYSxJYSxmdW5jdGlvbigpe3JldHVybiBQYShhLGIsZCl9KTpQYShhLGIsZCk6dm9pZCAwfSxzZXQ6ZnVuY3Rpb24oYSxjLGQpe3ZhciBlLGY9ZCYmQ2EoYSksZz1kJiZPYShhLGIsZCwiYm9yZGVyLWJveCI9PT1uLmNzcyhhLCJib3hTaXppbmciLCExLGYpLGYpO3JldHVybiBnJiYoZT1ULmV4ZWMoYykpJiYicHgiIT09KGVbM118fCJweCIpJiYoYS5zdHlsZVtiXT1jLGM9bi5jc3MoYSxiKSksTmEoYSxjLGcpfX19KSxuLmNzc0hvb2tzLm1hcmdpbkxlZnQ9R2EobC5yZWxpYWJsZU1hcmdpbkxlZnQsZnVuY3Rpb24oYSxiKXtyZXR1cm4gYj8ocGFyc2VGbG9hdChGYShhLCJtYXJnaW5MZWZ0IikpfHxhLmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpLmxlZnQtRGEoYSx7bWFyZ2luTGVmdDowfSxmdW5jdGlvbigpe3JldHVybiBhLmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpLmxlZnR9KSkrInB4Ijp2b2lkIDB9KSxuLmNzc0hvb2tzLm1hcmdpblJpZ2h0PUdhKGwucmVsaWFibGVNYXJnaW5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment