Skip to content

Instantly share code, notes, and snippets.

@timelyportfolio
Last active April 5, 2021 05:49
Show Gist options
  • Save timelyportfolio/7a85734b43aaa5fefed0b5b7d435bfbd to your computer and use it in GitHub Desktop.
Save timelyportfolio/7a85734b43aaa5fefed0b5b7d435bfbd to your computer and use it in GitHub Desktop.
geo pivot table with turf and leaflet
license: mit

Great Idea - Geo Pivot Table

I had this idea yesterday afternoon as I combined Tom MacWright's library simple-statistics for custom aggregation in Nicolas Kructhen's amazing pivottable. Well, Tom works at Mapbox, and I have been doing some geo recently, so I thought

**Wouldn't a geo pivot table be something amazing?! **

Last night the example didn't have a leaflet map, so I have added a map for visualization of the results.

Code

library(rpivotTable)
library(tibble)
library(randgeo)
library(htmltools)
library(dplyr)
library(leaflet)

n = 30
df_geos <- tibble(
  ltr_cat = letters[floor(runif(n, 1, 5))],
  rand_poly = lapply(1:n, function(x) {geo_polygon(count=10)})
)

rpvt <- rpivotTable(
  df_geos,
  aggregators = htmlwidgets::JS(
    '{turf_centroid: turf_centroid(), turf_centermass: turf_centermass()}'
  ),
  onRefresh = htmlwidgets::JS(
"
function(config) {
debugger;
  var feats_total = [];
  $('.pvtTotal').each(
    function(i,d){feats_total.push(JSON.parse(d.innerText))}
  );
  var map = HTMLWidgets.find('.leaflet').getMap();

  map.layerManager.clearGroup('pivots');

  var gj = L.geoJSON(feats_total);
  map.layerManager.addLayer(gj,null,null,'pivots');
}
"
  )
)

# rpivotTable auto boxes everything except inclusions and exclusions
#  https://github.com/smartinsightsfromdata/rpivotTable/blame/master/R/rpivotTable.R#L110-L117
#  so we need to unbox or unlist
rpvt$x$params$aggregators <- rpvt$x$params$aggregators[[1]]

tagList(
  tags$script(src = "https://unpkg.com/@turf/turf/turf.min.js"),
  tags$script(
"
var turf_centroid = function(formatter) {
  if (formatter == null) {
    formatter = function(d){return JSON.stringify(d)}
  }
  return function(arg) {
    var attr;
    attr = arg[0];
    return function(data, rowKey, colKey) {
      return {
        arr: [],
        push: function(record) {
          var that = this;
          if(attr) {record[attr].features.forEach(function(d) {that.arr.push(d)});}
        },
        value: function() {
          return typeof(this.arr[0]) !== 'undefined'  ?
            turf.centroid(turf.featureCollection(this.arr)) :
            null;
        },
        format: formatter,
        numInputs: attr != null ? 0 : 1
      };
    };
  };
}

var turf_centermass = function(formatter) {
  if (formatter == null) {
    formatter = function(d){return JSON.stringify(d)}
  }
  return function(arg) {
    var attr;
    attr = arg[0];
    return function(data, rowKey, colKey) {
      return {
        arr: [],
        push: function(record) {
          var that = this;
          if(attr) {record[attr].features.forEach(function(d) {that.arr.push(d)});}
        },
        value: function() {
          return this.arr.length  ?
            turf.centerOfMass(turf.featureCollection(this.arr)) :
            null;
        },
        format: formatter,
        numInputs: attr != null ? 0 : 1
      };
    };
  };
}
"
  ),
  tags$div(style="width:400px;display:inline;float:left;",leaflet() %>% addTiles()),
  tags$div(style="width:400px;display:inline;float:left;",rpvt)

) %>%
  browsable()
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,KGZ1bmN0aW9uKCkgew0KICAvLyBJZiB3aW5kb3cuSFRNTFdpZGdldHMgaXMgYWxyZWFkeSBkZWZpbmVkLCB0aGVuIHVzZSBpdDsgb3RoZXJ3aXNlIGNyZWF0ZSBhDQogIC8vIG5ldyBvYmplY3QuIFRoaXMgYWxsb3dzIHByZWNlZGluZyBjb2RlIHRvIHNldCBvcHRpb25zIHRoYXQgYWZmZWN0IHRoZQ0KICAvLyBpbml0aWFsaXphdGlvbiBwcm9jZXNzICh0aG91Z2ggbm9uZSBjdXJyZW50bHkgZXhpc3QpLg0KICB3aW5kb3cuSFRNTFdpZGdldHMgPSB3aW5kb3cuSFRNTFdpZGdldHMgfHwge307DQoNCiAgLy8gU2VlIGlmIHdlJ3JlIHJ1bm5pbmcgaW4gYSB2aWV3ZXIgcGFuZS4gSWYgbm90LCB3ZSdyZSBpbiBhIHdlYiBicm93c2VyLg0KICB2YXIgdmlld2VyTW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ICAgICAgICBlcnJvckRpdi50ZXh0KGVyci5tZXNzYWdlKTsNCiAgICAgICAgICAkZWwuYWZ0ZXIoZXJyb3JEaXYpOw0KDQogICAgICAgICAgLy8gUmVhbGx5IGR1bWIgd2F5IHRvIGtlZXAgdGhlIHNpemUvcG9zaXRpb24gb2YgdGhlIGVycm9yIGluIHN5bmMgd2l0aA0KICAgICAgICAgIC8vIHRoZSBwYXJlbnQgZWxlbWVudCBhcyB0aGUgd2luZG93IGlzIHJlc2l6ZWQgb3Igd2hhdGV2ZXIuDQogICAgICAgICAgdmFyIGludElkID0gc2V0SW50ZXJ2YWwoZnVuY3Rpb24oKSB7DQogICAgICAgICAgICBpZiAoIWVycm9yRGl2WzBdLnBhcmVudEVsZW1lbnQpIHsNCiAgICAgICAgICAgICAgY2xlYXJJbnRlcnZhbChpbnRJZCk7DQogICAgICAgICAgICAgIHJldHVybjsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGVycm9yRGl2DQogICAgICAgICAgICAgIC5jc3MoInRvcCIsIGVsLm9mZnNldFRvcCkNCiAgICAgICAgICAgICAgLmNzcygibGVmdCIsIGVsLm9mZnNldExlZnQpDQogICAgICAgICAgICAgIC5jc3MoIm1heFdpZHRoIiwgZWwub2Zmc2V0V2lkdGgpDQogICAgICAgICAgICAgIC5jc3MoImhlaWdodCIsIGVsLm9mZnNldEhlaWdodCk7DQogICAgICAgICAgfSwgNTAwKTsNCiAgICAgICAgfQ0KICAgICAgfQ0KICAgIH0sDQogICAgY2xlYXJFcnJvcjogZnVuY3Rpb24oZWwpIHsNCiAgICAgIHZhciAkZWwgPSAkKGVsKTsNCiAgICAgIHZhciBkaXNwbGF5ID0gJGVsLmRhdGEoInJlc3RvcmUtZGlzcGxheS1tb2RlIik7DQogICAgICAkZWwuZGF0YSgicmVzdG9yZS1kaXNwbGF5LW1vZGUiLCBudWxsKTsNCg0KICAgICAgaWYgKGRpc3BsYXkgPT09ICJpbmxpbmUiIHx8IGRpc3BsYXkgPT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5KSkgZGF0YS5ldmFscyA9IFtkYXRhLmV2YWxzXTsNCiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGRhdGEuZXZhbHMgJiYgaSA8IGRhdGEuZXZhbHMubGVuZ3RoOyBpKyspIHsNCiAgICAgICAgICB3aW5kb3cuSFRNTFdpZGdldHMuZXZhbHVhdGVTdHJpbmdNZW1iZXIoZGF0YS54LCBkYXRhLmV2YWxzW2ldKTsNCiAgICAgICAgfQ0KICAgICAgICBpZiAoIWJpbmRpbmdEZWYucmVuZGVyT25OdWxsVmFsdWUpIHsNCiAgICAgICAgICBpZiAoZGF0YS54ID09PSBudWxsKSB7DQogICAgICAgICAgICBlbC5zdHlsZS52aXNpYmlsaXR5ID0gImhpZGRlbiI7DQogICAgICAgICAgICByZXR1cm47DQogICAgICAgICAgfSBlbHNlIHsNCiAgICAgICAgICAgIGVsLnN0eWxlLnZpc2liaWxpdHkgPSAiaW5oZXJpdCI7DQogICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGlmICghZWxlbWVudERhdGEoZWwsICJpbml0aWFsaXplZCIpKSB7DQogICAgICAgICAgaW5pdFNpemluZyhlbCk7DQoNCiAgICAgICAgICBlbGVtZW50RGF0YShlbCwgImluaXRpYWxpemVkIiwgdHJ1ZSk7DQogICAgICAgICAgaWYgKGJpbmRpbmdEZWYuaW5pdGlhbGl6ZSkgew0KICAgICAgICAgICAgdmFyIHJlc3VsdCA9IGJpbmRpbmdEZWYuaW5pdGlhbGl6ZShlbCwgZWwub2Zmc2V0V2lkdGgsDQogICAgICAgICAgICAgIGVsLm9mZnNldEhlaWdodCk7DQogICAgICAgICAgICBlbGVtZW50RGF0YShlbCwgImluaXRfcmVzdWx0IiwgcmVzdWx0KTsNCiAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgU2hpbnkucmVuZGVyRGVwZW5kZW5jaWVzKGRhdGEuZGVwcyk7DQogICAgICAgIGJpbmRpbmdEZWYucmVuZGVyVmFsdWUoZWwsIGRh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Gl6ZShlbCwNCiAgICAgICAgICAgIHNpemVPYmogPyBzaXplT2JqLmdldFdpZHRoKCkgOiBlbC5vZmZzZXRXaWR0aCwNCiAgICAgICAgICAgIHNpemVPYmogPyBzaXplT2JqLmdldEhlaWdodCgpIDogZWwub2Zmc2V0SGVpZ2h0DQogICAgICAgICAgKTsNCiAgICAgICAgICBlbGVtZW50RGF0YShlbCwgImluaXRfcmVzdWx0IiwgaW5pdFJlc3VsdCk7DQogICAgICAgIH0NCg0KICAgICAgICBpZiAoYmluZGluZy5yZXNpemUpIHsNCiAgICAgICAgICB2YXIgbGFzdFNpemUgPSB7fTsNCiAgICAgICAgICB2YXIgcmVzaXplSGFuZGxlciA9IGZ1bmN0aW9uKGUpIHsNCiAgICAgICAgICAgIHZhciBzaXplID0gew0KICAgICAgICAgICAgICB3OiBzaXplT2JqID8gc2l6ZU9iai5nZXRXaWR0aCgpIDogZWwub2Zmc2V0V2lkdGgsDQogICAgICAgICAgICAgIGg6IHNpemVPYmogPyBzaXplT2JqLmdldEhlaWdodCgpIDogZWwub2Zmc2V0SGVpZ2h0DQogICAgICAgICAgICB9Ow0KICAgICAgICAgICAgaWYgKHNpemUudyA9PT0gMCAmJiBzaXplLmggPT09IDApDQogICAgICAgICAgICAgIHJldHVybjsNCiAgICAgICAgICAgIGlmIChzaXplLncgPT09IGxhc3RTaXplLncgJiYgc2l6ZS5oID09PSBsYXN0U2l6ZS5oKQ0KICAgICAgICAgICAgICByZXR1cm47DQogICAgICAgICAgICBsYXN0U2l6ZSA9IHNpemU7DQogICAgICAgICAgICBiaW5kaW5nLnJlc2l6ZShlbCwgc2l6ZS53LCBzaXplLmgsIGluaXRSZXN1bHQpOw0KICAgICAgICAgIH07DQoNCiAgICAgICAgICBvbih3aW5kb3csICJyZXNpemUiLCByZXNpemVIYW5kbGVyKTsNCg0KICAgICAgICAgIC8vIFRoaXMgaXMgbmVlZGVkIGZvciBjYXNlcyB3aGVyZSB3ZSdyZSBydW5uaW5nIGluIGE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ZhciBuYW1lcyA9IFtdOw0KICAgIHZhciBsZW5ndGg7DQogICAgZm9yICh2YXIgbmFtZSBpbiBkZikgew0KICAgICAgICBpZiAoZGYuaGFzT3duUHJvcGVydHkobmFtZSkpDQogICAgICAgICAgICBuYW1lcy5wdXNoKG5hbWUpOw0KICAgICAgICBpZiAodHlwZW9mKGRmW25hbWVdKSAhPT0gIm9iamVjdCIgfHwgdHlwZW9mKGRmW25hbWVdLmxlbmd0aCkgPT09ICJ1bmRlZmluZWQiKSB7DQogICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIkFsbCBmaWVsZHMgbXVzdCBiZSBhcnJheXMiKTsNCiAgICAgICAgfSBlbHNlIGlmICh0eXBlb2YobGVuZ3RoKSAhPT0gInVuZGVmaW5lZCIgJiYgbGVuZ3RoICE9PSBkZltuYW1lXS5sZW5ndGgpIHsNCiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigiQWxsIGZpZWxkcyBtdXN0IGJlIGFycmF5cyBvZiB0aGUgc2FtZSBsZW5ndGgiKTsNCiAgICAgICAgfQ0KICAgICAgICBsZW5ndGggPSBkZltuYW1lXS5sZW5ndGg7DQogICAgfQ0KICAgIHZhciByZXN1bHRzID0gW107DQogICAgdmFyIGl0ZW07DQogICAgZm9yICh2YXIgcm93ID0gMDsgcm93IDwgbGVuZ3RoOyByb3crKykgew0KICAgICAgICBpdGVtID0ge307DQogICAgICAgIGZvciAodmFyIGNvbCA9IDA7IGNvbCA8IG5hbWVzLmxlbmd0aDsgY29sKyspIHsNCiAgICAgICAgICAgIGl0ZW1bbmFtZXNbY29sXV0gPSBkZltuYW1lc1tjb2xdXVtyb3ddOw0KICAgICAgICB9DQogICAgICAgIHJlc3VsdHMucHVzaChpdGVtKTsNCiAgICB9DQogICAgcmV0dXJuIHJlc3VsdHM7DQogIH07DQoNCiAgd2luZG93LkhUTUxXaWRnZXRzLnRyYW5zcG9zZUFycmF5MkQgPSBmdW5jdGlvbihhcnJheSkgew0KICAgICAg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b2lkIDAsZixudWxsKX19KX0pLG4uZm4uZXh0ZW5kKHtiaW5kOmZ1bmN0aW9uKGEsYixjKXtyZXR1cm4gdGhpcy5vbihhLG51bGwsYixjKX0sdW5iaW5kOmZ1bmN0aW9uKGEsYil7cmV0dXJuIHRoaXMub2ZmKGEsbnVsbCxiKX0sZGVsZWdhdGU6ZnVuY3Rpb24oYSxiLGMsZCl7cmV0dXJuIHRoaXMub24oYixhLGMsZCl9LHVuZGVsZWdhdGU6ZnVuY3Rpb24oYSxiLGMpe3JldHVybiAxPT09YXJndW1lbnRzLmxlbmd0aD90aGlzLm9mZihhLCIqKiIpOnRoaXMub2ZmKGIsYXx8IioqIixjKX19KSxuLmZuLnNpemU9ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5sZW5ndGh9LG4uZm4uYW5kU2VsZj1uLmZuLmFkZEJhY2ssImZ1bmN0aW9uIj09dHlwZW9mIGRlZmluZSYmZGVmaW5lLmFtZCYmZGVmaW5lKCJqcXVlcnkiLFtdLGZ1bmN0aW9uKCl7cmV0dXJuIG59KTt2YXIgbmM9YS5qUXVlcnksb2M9YS4kO3JldHVybiBuLm5vQ29uZmxpY3Q9ZnVuY3Rpb24oYil7cmV0dXJuIGEuJD09PW4mJihhLiQ9b2MpLGImJmEualF1ZXJ5PT09biYmKGEualF1ZXJ5PW5jKSxufSxifHwoYS5qUXVlcnk9YS4kPW4pLG59KTsNCg=="></script>
<link href="data:text/css;charset=utf-8,%0A%2Eleaflet%2Dpane%2C%0A%2Eleaflet%2Dtile%2C%0A%2Eleaflet%2Dmarker%2Dicon%2C%0A%2Eleaflet%2Dmarker%2Dshadow%2C%0A%2Eleaflet%2Dtile%2Dcontainer%2C%0A%2Eleaflet%2Dpane%20%3E%20svg%2C%0A%2Eleaflet%2Dpane%20%3E%20canvas%2C%0A%2Eleaflet%2Dzoom%2Dbox%2C%0A%2Eleaflet%2Dimage%2Dlayer%2C%0A%2Eleaflet%2Dlayer%20%7B%0Aposition%3A%20absolute%3B%0Aleft%3A%200%3B%0Atop%3A%200%3B%0A%7D%0A%2Eleaflet%2Dcontainer%20%7B%0Aoverflow%3A%20hidden%3B%0A%7D%0A%2Eleaflet%2Dtile%2C%0A%2Eleaflet%2Dmarker%2Dicon%2C%0A%2Eleaflet%2Dmarker%2Dshadow%20%7B%0A%2Dwebkit%2Duser%2Dselect%3A%20none%3B%0A%2Dmoz%2Duser%2Dselect%3A%20none%3B%0Auser%2Dselect%3A%20none%3B%0A%2Dwebkit%2Duser%2Ddrag%3A%20none%3B%0A%7D%0A%0A%2Eleaflet%2Dsafari%20%2Eleaflet%2Dtile%20%7B%0Aimage%2Drendering%3A%20%2Dwebkit%2Doptimize%2Dcontrast%3B%0A%7D%0A%0A%2Eleaflet%2Dsafari%20%2Eleaflet%2Dtile%2Dcontainer%20%7B%0Awidth%3A%201600px%3B%0Aheight%3A%201600px%3B%0A%2Dwebkit%2Dtransform%2Dorigin%3A%200%200%3B%0A%7D%0A%2Eleaflet%2Dmarker%2Dicon%2C%0A%2Eleaflet%2Dmarker%2Dshadow%20%7B%0Adisplay%3A%20block%3B%0A%7D%0A%0A%0A%2Eleaflet%2Dcontainer%20%2Eleaflet%2Doverlay%2Dpane%20svg%2C%0A%2Eleaflet%2Dcontainer%20%2Eleaflet%2Dmarker%2Dpane%20img%2C%0A%2Eleaflet%2Dcontainer%20%2Eleaflet%2Dshadow%2Dpane%20img%2C%0A%2Eleaflet%2Dcontainer%20%2Eleaflet%2Dtile%2Dpane%20img%2C%0A%2Eleaflet%2Dcontainer%20img%2Eleaflet%2Dimage%2Dlayer%20%7B%0Amax%2Dwidth%3A%20none%20%21important%3B%0A%7D%0A%2Eleaflet%2Dcontainer%2Eleaflet%2Dtouch%2Dzoom%20%7B%0A%2Dms%2Dtouch%2Daction%3A%20pan%2Dx%20pan%2Dy%3B%0Atouch%2Daction%3A%20pan%2Dx%20pan%2Dy%3B%0A%7D%0A%2Eleaflet%2Dcontainer%2Eleaflet%2Dtouch%2Ddrag%20%7B%0A%2Dms%2Dtouch%2Daction%3A%20pinch%2Dzoom%3B%0A%7D%0A%2Eleaflet%2Dcontainer%2Eleaflet%2Dtouch%2Ddrag%2Eleaflet%2Dtouch%2Dzoom%20%7B%0A%2Dms%2Dtouch%2Daction%3A%20none%3B%0Atouch%2Daction%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dtile%20%7B%0Afilter%3A%20inherit%3B%0Avisibility%3A%20hidden%3B%0A%7D%0A%2Eleaflet%2Dtile%2Dloaded%20%7B%0Avisibility%3A%20inherit%3B%0A%7D%0A%2Eleaflet%2Dzoom%2Dbox%20%7B%0Awidth%3A%200%3B%0Aheight%3A%200%3B%0A%2Dmoz%2Dbox%2Dsizing%3A%20border%2Dbox%3B%0Abox%2Dsizing%3A%20border%2Dbox%3B%0Az%2Dindex%3A%20800%3B%0A%7D%0A%0A%2Eleaflet%2Doverlay%2Dpane%20svg%20%7B%0A%2Dmoz%2Duser%2Dselect%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dpane%20%7B%20z%2Dindex%3A%20400%3B%20%7D%0A%2Eleaflet%2Dtile%2Dpane%20%7B%20z%2Dindex%3A%20200%3B%20%7D%0A%2Eleaflet%2Doverlay%2Dpane%20%7B%20z%2Dindex%3A%20400%3B%20%7D%0A%2Eleaflet%2Dshadow%2Dpane%20%7B%20z%2Dindex%3A%20500%3B%20%7D%0A%2Eleaflet%2Dmarker%2Dpane%20%7B%20z%2Dindex%3A%20600%3B%20%7D%0A%2Eleaflet%2Dtooltip%2Dpane%20%7B%20z%2Dindex%3A%20650%3B%20%7D%0A%2Eleaflet%2Dpopup%2Dpane%20%7B%20z%2Dindex%3A%20700%3B%20%7D%0A%2Eleaflet%2Dmap%2Dpane%20canvas%20%7B%20z%2Dindex%3A%20100%3B%20%7D%0A%2Eleaflet%2Dmap%2Dpane%20svg%20%7B%20z%2Dindex%3A%20200%3B%20%7D%0A%2Eleaflet%2Dvml%2Dshape%20%7B%0Awidth%3A%201px%3B%0Aheight%3A%201px%3B%0A%7D%0A%2Elvml%20%7B%0Abehavior%3A%20url%28%23default%23VML%29%3B%0Adisplay%3A%20inline%2Dblock%3B%0Aposition%3A%20absolute%3B%0A%7D%0A%0A%2Eleaflet%2Dcontrol%20%7B%0Aposition%3A%20relative%3B%0Az%2Dindex%3A%20800%3B%0Apointer%2Devents%3A%20visiblePainted%3B%20%0Apointer%2Devents%3A%20auto%3B%0A%7D%0A%2Eleaflet%2Dtop%2C%0A%2Eleaflet%2Dbottom%20%7B%0Aposition%3A%20absolute%3B%0Az%2Dindex%3A%201000%3B%0Apointer%2Devents%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dtop%20%7B%0Atop%3A%200%3B%0A%7D%0A%2Eleaflet%2Dright%20%7B%0Aright%3A%200%3B%0A%7D%0A%2Eleaflet%2Dbottom%20%7B%0Abottom%3A%200%3B%0A%7D%0A%2Eleaflet%2Dleft%20%7B%0Aleft%3A%200%3B%0A%7D%0A%2Eleaflet%2Dcontrol%20%7B%0Afloat%3A%20left%3B%0Aclear%3A%20both%3B%0A%7D%0A%2Eleaflet%2Dright%20%2Eleaflet%2Dcontrol%20%7B%0Afloat%3A%20right%3B%0A%7D%0A%2Eleaflet%2Dtop%20%2Eleaflet%2Dcontrol%20%7B%0Amargin%2Dtop%3A%2010px%3B%0A%7D%0A%2Eleaflet%2Dbottom%20%2Eleaflet%2Dcontrol%20%7B%0Amargin%2Dbottom%3A%2010px%3B%0A%7D%0A%2Eleaflet%2Dleft%20%2Eleaflet%2Dcontrol%20%7B%0Amargin%2Dleft%3A%2010px%3B%0A%7D%0A%2Eleaflet%2Dright%20%2Eleaflet%2Dcontrol%20%7B%0Amargin%2Dright%3A%2010px%3B%0A%7D%0A%0A%2Eleaflet%2Dfade%2Danim%20%2Eleaflet%2Dtile%20%7B%0Awill%2Dchange%3A%20opacity%3B%0A%7D%0A%2Eleaflet%2Dfade%2Danim%20%2Eleaflet%2Dpopup%20%7B%0Aopacity%3A%200%3B%0A%2Dwebkit%2Dtransition%3A%20opacity%200%2E2s%20linear%3B%0A%2Dmoz%2Dtransition%3A%20opacity%200%2E2s%20linear%3B%0A%2Do%2Dtransition%3A%20opacity%200%2E2s%20linear%3B%0Atransition%3A%20opacity%200%2E2s%20linear%3B%0A%7D%0A%2Eleaflet%2Dfade%2Danim%20%2Eleaflet%2Dmap%2Dpane%20%2Eleaflet%2Dpopup%20%7B%0Aopacity%3A%201%3B%0A%7D%0A%2Eleaflet%2Dzoom%2Danimated%20%7B%0A%2Dwebkit%2Dtransform%2Dorigin%3A%200%200%3B%0A%2Dms%2Dtransform%2Dorigin%3A%200%200%3B%0Atransform%2Dorigin%3A%200%200%3B%0A%7D%0A%2Eleaflet%2Dzoom%2Danim%20%2Eleaflet%2Dzoom%2Danimated%20%7B%0Awill%2Dchange%3A%20transform%3B%0A%7D%0A%2Eleaflet%2Dzoom%2Danim%20%2Eleaflet%2Dzoom%2Danimated%20%7B%0A%2Dwebkit%2Dtransition%3A%20%2Dwebkit%2Dtransform%200%2E25s%20cubic%2Dbezier%280%2C0%2C0%2E25%2C1%29%3B%0A%2Dmoz%2Dtransition%3A%20%2Dmoz%2Dtransform%200%2E25s%20cubic%2Dbezier%280%2C0%2C0%2E25%2C1%29%3B%0A%2Do%2Dtransition%3A%20%2Do%2Dtransform%200%2E25s%20cubic%2Dbezier%280%2C0%2C0%2E25%2C1%29%3B%0Atransition%3A%20transform%200%2E25s%20cubic%2Dbezier%280%2C0%2C0%2E25%2C1%29%3B%0A%7D%0A%2Eleaflet%2Dzoom%2Danim%20%2Eleaflet%2Dtile%2C%0A%2Eleaflet%2Dpan%2Danim%20%2Eleaflet%2Dtile%20%7B%0A%2Dwebkit%2Dtransition%3A%20none%3B%0A%2Dmoz%2Dtransition%3A%20none%3B%0A%2Do%2Dtransition%3A%20none%3B%0Atransition%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dzoom%2Danim%20%2Eleaflet%2Dzoom%2Dhide%20%7B%0Avisibility%3A%20hidden%3B%0A%7D%0A%0A%2Eleaflet%2Dinteractive%20%7B%0Acursor%3A%20pointer%3B%0A%7D%0A%2Eleaflet%2Dgrab%20%7B%0Acursor%3A%20%2Dwebkit%2Dgrab%3B%0Acursor%3A%20%2Dmoz%2Dgrab%3B%0A%7D%0A%2Eleaflet%2Dcrosshair%2C%0A%2Eleaflet%2Dcrosshair%20%2Eleaflet%2Dinteractive%20%7B%0Acursor%3A%20crosshair%3B%0A%7D%0A%2Eleaflet%2Dpopup%2Dpane%2C%0A%2Eleaflet%2Dcontrol%20%7B%0Acursor%3A%20auto%3B%0A%7D%0A%2Eleaflet%2Ddragging%20%2Eleaflet%2Dgrab%2C%0A%2Eleaflet%2Ddragging%20%2Eleaflet%2Dgrab%20%2Eleaflet%2Dinteractive%2C%0A%2Eleaflet%2Ddragging%20%2Eleaflet%2Dmarker%2Ddraggable%20%7B%0Acursor%3A%20move%3B%0Acursor%3A%20%2Dwebkit%2Dgrabbing%3B%0Acursor%3A%20%2Dmoz%2Dgrabbing%3B%0A%7D%0A%0A%2Eleaflet%2Dmarker%2Dicon%2C%0A%2Eleaflet%2Dmarker%2Dshadow%2C%0A%2Eleaflet%2Dimage%2Dlayer%2C%0A%2Eleaflet%2Dpane%20%3E%20svg%20path%2C%0A%2Eleaflet%2Dtile%2Dcontainer%20%7B%0Apointer%2Devents%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dmarker%2Dicon%2Eleaflet%2Dinteractive%2C%0A%2Eleaflet%2Dimage%2Dlayer%2Eleaflet%2Dinteractive%2C%0A%2Eleaflet%2Dpane%20%3E%20svg%20path%2Eleaflet%2Dinteractive%20%7B%0Apointer%2Devents%3A%20visiblePainted%3B%20%0Apointer%2Devents%3A%20auto%3B%0A%7D%0A%0A%2Eleaflet%2Dcontainer%20%7B%0Abackground%3A%20%23ddd%3B%0Aoutline%3A%200%3B%0A%7D%0A%2Eleaflet%2Dcontainer%20a%20%7B%0Acolor%3A%20%230078A8%3B%0A%7D%0A%2Eleaflet%2Dcontainer%20a%2Eleaflet%2Dactive%20%7B%0Aoutline%3A%202px%20solid%20orange%3B%0A%7D%0A%2Eleaflet%2Dzoom%2Dbox%20%7B%0Aborder%3A%202px%20dotted%20%2338f%3B%0Abackground%3A%20rgba%28255%2C255%2C255%2C0%2E5%29%3B%0A%7D%0A%0A%2Eleaflet%2Dcontainer%20%7B%0Afont%3A%2012px%2F1%2E5%20%22Helvetica%20Neue%22%2C%20Arial%2C%20Helvetica%2C%20sans%2Dserif%3B%0A%7D%0A%0A%2Eleaflet%2Dbar%20%7B%0Abox%2Dshadow%3A%200%201px%205px%20rgba%280%2C0%2C0%2C0%2E65%29%3B%0Aborder%2Dradius%3A%204px%3B%0A%7D%0A%2Eleaflet%2Dbar%20a%2C%0A%2Eleaflet%2Dbar%20a%3Ahover%20%7B%0Abackground%2Dcolor%3A%20%23fff%3B%0Aborder%2Dbottom%3A%201px%20solid%20%23ccc%3B%0Awidth%3A%2026px%3B%0Aheight%3A%2026px%3B%0Aline%2Dheight%3A%2026px%3B%0Adisplay%3A%20block%3B%0Atext%2Dalign%3A%20center%3B%0Atext%2Ddecoration%3A%20none%3B%0Acolor%3A%20black%3B%0A%7D%0A%2Eleaflet%2Dbar%20a%2C%0A%2Eleaflet%2Dcontrol%2Dlayers%2Dtoggle%20%7B%0Abackground%2Dposition%3A%2050%25%2050%25%3B%0Abackground%2Drepeat%3A%20no%2Drepeat%3B%0Adisplay%3A%20block%3B%0A%7D%0A%2Eleaflet%2Dbar%20a%3Ahover%20%7B%0Abackground%2Dcolor%3A%20%23f4f4f4%3B%0A%7D%0A%2Eleaflet%2Dbar%20a%3Afirst%2Dchild%20%7B%0Aborder%2Dtop%2Dleft%2Dradius%3A%204px%3B%0Aborder%2Dtop%2Dright%2Dradius%3A%204px%3B%0A%7D%0A%2Eleaflet%2Dbar%20a%3Alast%2Dchild%20%7B%0Aborder%2Dbottom%2Dleft%2Dradius%3A%204px%3B%0Aborder%2Dbottom%2Dright%2Dradius%3A%204px%3B%0Aborder%2Dbottom%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dbar%20a%2Eleaflet%2Ddisabled%20%7B%0Acursor%3A%20default%3B%0Abackground%2Dcolor%3A%20%23f4f4f4%3B%0Acolor%3A%20%23bbb%3B%0A%7D%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dbar%20a%20%7B%0Awidth%3A%2030px%3B%0Aheight%3A%2030px%3B%0Aline%2Dheight%3A%2030px%3B%0A%7D%0A%0A%2Eleaflet%2Dcontrol%2Dzoom%2Din%2C%0A%2Eleaflet%2Dcontrol%2Dzoom%2Dout%20%7B%0Afont%3A%20bold%2018px%20%27Lucida%20Console%27%2C%20Monaco%2C%20monospace%3B%0Atext%2Dindent%3A%201px%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dzoom%2Dout%20%7B%0Afont%2Dsize%3A%2020px%3B%0A%7D%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dcontrol%2Dzoom%2Din%20%7B%0Afont%2Dsize%3A%2022px%3B%0A%7D%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dcontrol%2Dzoom%2Dout%20%7B%0Afont%2Dsize%3A%2024px%3B%0A%7D%0A%0A%2Eleaflet%2Dcontrol%2Dlayers%20%7B%0Abox%2Dshadow%3A%200%201px%205px%20rgba%280%2C0%2C0%2C0%2E4%29%3B%0Abackground%3A%20%23fff%3B%0Aborder%2Dradius%3A%205px%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dlayers%2Dtoggle%20%7B%0Abackground%2Dimage%3A%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc%2BqTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6%2Fee%2FXeCQ4D3ykPtL5tHno4n0d%2Fh3%2BxfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3V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yUPq22qFimFtxDyBBJEwNyt6TM88blFHao%2F6tWWhuuOM4SAK4EI4QmFHA%2BSEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm%2B0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1%2BTBEpF68d%2BDHR6IOWVv2BECtxo46hOFUBd%2FAPU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo%2FUEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc%2F0PstHHcfEdQ%2BUAAAAASUVORK5CYII%3D%29%3B%0Abackground%2Dsize%3A%2026px%2026px%3B%0A%7D%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dcontrol%2Dlayers%2Dtoggle%20%7B%0Awidth%3A%2044px%3B%0Aheight%3A%2044px%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dlayers%20%2Eleaflet%2Dcontrol%2Dlayers%2Dlist%2C%0A%2Eleaflet%2Dcontrol%2Dlayers%2Dexpanded%20%2Eleaflet%2Dcontrol%2Dlayers%2Dtoggle%20%7B%0Adisplay%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dlayers%2Dexpanded%20%2Eleaflet%2Dcontrol%2Dlayers%2Dlist%20%7B%0Adisplay%3A%20block%3B%0Aposition%3A%20relative%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dlayers%2Dexpanded%20%7B%0Apadding%3A%206px%2010px%206px%206px%3B%0Acolor%3A%20%23333%3B%0Abackground%3A%20%23fff%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dlayers%2Dscrollbar%20%7B%0Aoverflow%2Dy%3A%20scroll%3B%0Apadding%2Dright%3A%205px%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dlayers%2Dselector%20%7B%0Amargin%2Dtop%3A%202px%3B%0Aposition%3A%20relative%3B%0Atop%3A%201px%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dlayers%20label%20%7B%0Adisplay%3A%20block%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dlayers%2Dseparator%20%7B%0Aheight%3A%200%3B%0Aborder%2Dtop%3A%201px%20solid%20%23ddd%3B%0Amargin%3A%205px%20%2D10px%205px%20%2D6px%3B%0A%7D%0A%0A%2Eleaflet%2Ddefault%2Dicon%2Dpath%20%7B%0Abackground%2Dimage%3A%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq%2FbXZtrp%2FlWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq%2FRBpykd8oZUb%2FkaJutow8r1aP9II0WmLKLIsJyv1w%2Fkqw9Ch2MYdB%2B%2B12Onxee%2FQMwvf4%2FDk%2FLfp%2Fi4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg%2FFm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B%2BOadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7%2FXZKNH%2B9%2BhBLOHYozuKQPxyMPUKkrX%2FK0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz%2BbXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U%2Bw7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue%2FuDivd3fkWRbS6%2FIA2bID4uk0UpF1N8qLlbBlXs4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CnqXExjq10beH%2BUUA7%2BnG6mdG%2FPu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP%2B64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR%2FibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ%2BKiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf%2B%2FFrIjweHQS4%2FpduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON%2BdfNbM%2BGgIwYdwAAAAASUVORK5CYII%3D%29%3B%0A%7D%0A%0A%2Eleaflet%2Dcontainer%20%2Eleaflet%2Dcontrol%2Dattribution%20%7B%0Abackground%3A%20%23fff%3B%0Abackground%3A%20rgba%28255%2C%20255%2C%20255%2C%200%2E7%29%3B%0Amargin%3A%200%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dattribution%2C%0A%2Eleaflet%2Dcontrol%2Dscale%2Dline%20%7B%0Apadding%3A%200%205px%3B%0Acolor%3A%20%23333%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dattribution%20a%20%7B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dattribution%20a%3Ahover%20%7B%0Atext%2Ddecoration%3A%20underline%3B%0A%7D%0A%2Eleaflet%2Dcontainer%20%2Eleaflet%2Dcontrol%2Dattribution%2C%0A%2Eleaflet%2Dcontainer%20%2Eleaflet%2Dcontrol%2Dscale%20%7B%0Afont%2Dsize%3A%2011px%3B%0A%7D%0A%2Eleaflet%2Dleft%20%2Eleaflet%2Dcontrol%2Dscale%20%7B%0Amargin%2Dleft%3A%205px%3B%0A%7D%0A%2Eleaflet%2Dbottom%20%2Eleaflet%2Dcontrol%2Dscale%20%7B%0Amargin%2Dbottom%3A%205px%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dscale%2Dline%20%7B%0Aborder%3A%202px%20solid%20%23777%3B%0Aborder%2Dtop%3A%20none%3B%0Aline%2Dheight%3A%201%2E1%3B%0Apadding%3A%202px%205px%201px%3B%0Afont%2Dsize%3A%2011px%3B%0Awhite%2Dspace%3A%20nowrap%3B%0Aoverflow%3A%20hidden%3B%0A%2Dmoz%2Dbox%2Dsizing%3A%20border%2Dbox%3B%0Abox%2Dsizing%3A%20border%2Dbox%3B%0Abackground%3A%20%23fff%3B%0Abackground%3A%20rgba%28255%2C%20255%2C%20255%2C%200%2E5%29%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dscale%2Dline%3Anot%28%3Afirst%2Dchild%29%20%7B%0Aborder%2Dtop%3A%202px%20solid%20%23777%3B%0Aborder%2Dbottom%3A%20none%3B%0Amargin%2Dtop%3A%20%2D2px%3B%0A%7D%0A%2Eleaflet%2Dcontrol%2Dscale%2Dline%3Anot%28%3Afirst%2Dchild%29%3Anot%28%3Alast%2Dchild%29%20%7B%0Aborder%2Dbottom%3A%202px%20solid%20%23777%3B%0A%7D%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dcontrol%2Dattribution%2C%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dcontrol%2Dlayers%2C%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dbar%20%7B%0Abox%2Dshadow%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dcontrol%2Dlayers%2C%0A%2Eleaflet%2Dtouch%20%2Eleaflet%2Dbar%20%7B%0Aborder%3A%202px%20solid%20rgba%280%2C0%2C0%2C0%2E2%29%3B%0Abackground%2Dclip%3A%20padding%2Dbox%3B%0A%7D%0A%0A%2Eleaflet%2Dpopup%20%7B%0Aposition%3A%20absolute%3B%0Atext%2Dalign%3A%20center%3B%0Amargin%2Dbottom%3A%2020px%3B%0A%7D%0A%2Eleaflet%2Dpopup%2Dcontent%2Dwrapper%20%7B%0Apadding%3A%201px%3B%0Atext%2Dalign%3A%20left%3B%0Aborder%2Dradius%3A%2012px%3B%0A%7D%0A%2Eleaflet%2Dpopup%2Dcontent%20%7B%0Amargin%3A%2013px%2019px%3B%0Aline%2Dheight%3A%201%2E4%3B%0A%7D%0A%2Eleaflet%2Dpopup%2Dcontent%20p%20%7B%0Amargin%3A%2018px%200%3B%0A%7D%0A%2Eleaflet%2Dpopup%2Dtip%2Dcontainer%20%7B%0Awidth%3A%2040px%3B%0Aheight%3A%2020px%3B%0Aposition%3A%20absolute%3B%0Aleft%3A%2050%25%3B%0Amargin%2Dleft%3A%20%2D20px%3B%0Aoverflow%3A%20hidden%3B%0Apointer%2Devents%3A%20none%3B%0A%7D%0A%2Eleaflet%2Dpopup%2Dtip%20%7B%0Awidth%3A%2017px%3B%0Aheight%3A%2017px%3B%0Apadding%3A%201px%3B%0Amargin%3A%20%2D10px%20auto%200%3B%0A%2Dwebkit%2Dtransform%3A%20rotate%2845deg%29%3B%0A%2Dmoz%2Dtransform%3A%20rotate%2845deg%29%3B%0A%2Dms%2Dtransform%3A%20rotate%2845deg%29%3B%0A%2Do%2Dtransform%3A%20rotate%2845deg%29%3B%0Atransform%3A%20rotate%2845deg%29%3B%0A%7D%0A%2Eleaflet%2Dpopup%2Dcontent%2Dwrapper%2C%0A%2Eleaflet%2Dpopup%2Dtip%20%7B%0Abackground%3A%20white%3B%0Acolor%3A%20%23333%3B%0Abox%2Dshadow%3A%200%203px%2014px%20rgba%280%2C0%2C0%2C0%2E4%29%3B%0A%7D%0A%2Eleaflet%2Dcontainer%20a%2Eleaflet%2Dpopup%2Dclose%2Dbutton%20%7B%0Aposition%3A%20absolute%3B%0Atop%3A%200%3B%0Aright%3A%200%3B%0Apadding%3A%204px%204px%200%200%3B%0Aborder%3A%20none%3B%0Atext%2Dalign%3A%20center%3B%0Awidth%3A%2018px%3B%0Aheight%3A%2014px%3B%0Afont%3A%2016px%2F14px%20Tahoma%2C%20Verdana%2C%20sans%2Dserif%3B%0Acolor%3A%20%23c3c3c3%3B%0Atext%2Ddecoration%3A%20none%3B%0Afont%2Dweight%3A%20bold%3B%0Abackground%3A%20transparent%3B%0A%7D%0A%2Eleaflet%2Dcontainer%20a%2Eleaflet%2Dpopup%2Dclose%2Dbutton%3Ahover%20%7B%0Acolor%3A%20%23999%3B%0A%7D%0A%2Eleaflet%2Dpopup%2Dscrolled%20%7B%0Aoverflow%3A%20auto%3B%0Aborder%2Dbottom%3A%201px%20solid%20%23ddd%3B%0Aborder%2Dtop%3A%201px%20solid%20%23ddd%3B%0A%7D%0A%2Eleaflet%2Doldie%20%2Eleaflet%2Dpopup%2Dcontent%2Dwrapper%20%7B%0Azoom%3A%201%3B%0A%7D%0A%2Eleaflet%2Doldie%20%2Eleaflet%2Dpopup%2Dtip%20%7B%0Awidth%3A%2024px%3B%0Amargin%3A%200%20auto%3B%0A%2Dms%2Dfilter%3A%20%22progid%3ADXImageTransform%2EMicrosoft%2EMatrix%28M11%3D0%2E70710678%2C%20M12%3D0%2E70710678%2C%20M21%3D%2D0%2E70710678%2C%20M22%3D0%2E70710678%29%22%3B%0Afilter%3A%20progid%3ADXImageTransform%2EMicrosoft%2EMatrix%28M11%3D0%2E70710678%2C%20M12%3D0%2E70710678%2C%20M21%3D%2D0%2E70710678%2C%20M22%3D0%2E70710678%29%3B%0A%7D%0A%2Eleaflet%2Doldie%20%2Eleaflet%2Dpopup%2Dtip%2Dcontainer%20%7B%0Amargin%2Dtop%3A%20%2D1px%3B%0A%7D%0A%2Eleaflet%2Doldie%20%2Eleaflet%2Dcontrol%2Dzoom%2C%0A%2Eleaflet%2Doldie%20%2Eleaflet%2Dcontrol%2Dlayers%2C%0A%2Eleaflet%2Doldie%20%2Eleaflet%2Dpopup%2Dcontent%2Dwrapper%2C%0A%2Eleaflet%2Doldie%20%2Eleaflet%2Dpopup%2Dtip%20%7B%0Aborder%3A%201px%20solid%20%23999%3B%0A%7D%0A%0A%2Eleaflet%2Ddiv%2Dicon%20%7B%0Abackground%3A%20%23fff%3B%0Aborder%3A%201px%20solid%20%23666%3B%0A%7D%0A%0A%0A%2Eleaflet%2Dtooltip%20%7B%0Aposition%3A%20absolute%3B%0Apadding%3A%206px%3B%0Abackground%2Dcolor%3A%20%23fff%3B%0Aborder%3A%201px%20solid%20%23fff%3B%0Aborder%2Dradius%3A%203px%3B%0Acolor%3A%20%23222%3B%0Awhite%2Dspace%3A%20nowrap%3B%0A%2Dwebkit%2Duser%2Dselect%3A%20none%3B%0A%2Dmoz%2Duser%2Dselect%3A%20none%3B%0A%2Dms%2Duser%2Dselect%3A%20none%3B%0Auser%2Dselect%3A%20none%3B%0Apointer%2Devents%3A%20none%3B%0Abox%2Dshadow%3A%200%201px%203px%20rgba%280%2C0%2C0%2C0%2E4%29%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Eleaflet%2Dclickable%20%7B%0Acursor%3A%20pointer%3B%0Apointer%2Devents%3A%20auto%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dtop%3Abefore%2C%0A%2Eleaflet%2Dtooltip%2Dbottom%3Abefore%2C%0A%2Eleaflet%2Dtooltip%2Dleft%3Abefore%2C%0A%2Eleaflet%2Dtooltip%2Dright%3Abefore%20%7B%0Aposition%3A%20absolute%3B%0Apointer%2Devents%3A%20none%3B%0Aborder%3A%206px%20solid%20transparent%3B%0Abackground%3A%20transparent%3B%0Acontent%3A%20%22%22%3B%0A%7D%0A%0A%2Eleaflet%2Dtooltip%2Dbottom%20%7B%0Amargin%2Dtop%3A%206px%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dtop%20%7B%0Amargin%2Dtop%3A%20%2D6px%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dbottom%3Abefore%2C%0A%2Eleaflet%2Dtooltip%2Dtop%3Abefore%20%7B%0Aleft%3A%2050%25%3B%0Amargin%2Dleft%3A%20%2D6px%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dtop%3Abefore%20%7B%0Abottom%3A%200%3B%0Amargin%2Dbottom%3A%20%2D12px%3B%0Aborder%2Dtop%2Dcolor%3A%20%23fff%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dbottom%3Abefore%20%7B%0Atop%3A%200%3B%0Amargin%2Dtop%3A%20%2D12px%3B%0Amargin%2Dleft%3A%20%2D6px%3B%0Aborder%2Dbottom%2Dcolor%3A%20%23fff%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dleft%20%7B%0Amargin%2Dleft%3A%20%2D6px%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dright%20%7B%0Amargin%2Dleft%3A%206px%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dleft%3Abefore%2C%0A%2Eleaflet%2Dtooltip%2Dright%3Abefore%20%7B%0Atop%3A%2050%25%3B%0Amargin%2Dtop%3A%20%2D6px%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dleft%3Abefore%20%7B%0Aright%3A%200%3B%0Amargin%2Dright%3A%20%2D12px%3B%0Aborder%2Dleft%2Dcolor%3A%20%23fff%3B%0A%7D%0A%2Eleaflet%2Dtooltip%2Dright%3Abefore%20%7B%0Aleft%3A%200%3B%0Amargin%2Dleft%3A%20%2D12px%3B%0Aborder%2Dright%2Dcolor%3A%20%23fff%3B%0A%7D%0A" rel="stylesheet" />
<script src="data:application/x-javascript;base64,LyoKIExlYWZsZXQgMS4wLjMsIGEgSlMgbGlicmFyeSBmb3IgaW50ZXJhY3RpdmUgbWFwcy4gaHR0cDovL2xlYWZsZXRqcy5jb20KIChjKSAyMDEwLTIwMTYgVmxhZGltaXIgQWdhZm9ua2luLCAoYykgMjAxMC0yMDExIENsb3VkTWFkZQoqLwohZnVuY3Rpb24odCxlLGkpe2Z1bmN0aW9uIG4oKXt2YXIgZT10Lkw7by5ub0NvbmZsaWN0PWZ1bmN0aW9uKCl7cmV0dXJuIHQuTD1lLHRoaXN9LHQuTD1vfXZhciBvPXt2ZXJzaW9uOiIxLjAuMyJ9OyJvYmplY3QiPT10eXBlb2YgbW9kdWxlJiYib2JqZWN0Ij09dHlw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XMuX21hcC5hZGRMYXllcihvW3JdKTt0aGlzLl9oYW5kbGluZ0NsaWNrPSExLHRoaXMuX3JlZm9jdXNPbk1hcCgpfSxfY2hlY2tEaXNhYmxlZExheWVyczpmdW5jdGlvbigpe2Zvcih2YXIgdCxlLG49dGhpcy5fZm9ybS5nZXRFbGVtZW50c0J5VGFnTmFtZSgiaW5wdXQiKSxvPXRoaXMuX21hcC5nZXRab29tKCkscz1uLmxlbmd0aC0xO3M+PTA7cy0tKXQ9bltzXSxlPXRoaXMuX2dldExheWVyKHQubGF5ZXJJZCkubGF5ZXIsdC5kaXNhYmxlZD1lLm9wdGlvbnMubWluWm9vbSE9PWkmJm88ZS5vcHRpb25zLm1pblpvb218fGUub3B0aW9ucy5tYXhab29tIT09aSYmbz5lLm9wdGlvbnMubWF4Wm9vbX0sX2V4cGFuZDpmdW5jdGlvbigpe3JldHVybiB0aGlzLmV4cGFuZCgpfSxfY29sbGFwc2U6ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5jb2xsYXBzZSgpfX0pLG8uY29udHJvbC5sYXllcnM9ZnVuY3Rpb24odCxlLGkpe3JldHVybiBuZXcgby5Db250cm9sLkxheWVycyh0LGUsaSl9fSh3aW5kb3csZG9jdW1lbnQpOw=="></script>
<link href="data:text/css;charset=utf-8,%0Aimg%2Eleaflet%2Dtile%20%7B%0Apadding%3A%200%3B%0Amargin%3A%200%3B%0Aborder%2Dradius%3A%200%3B%0Aborder%3A%20none%3B%0A%7D%0A%2Einfo%20%7B%0Apadding%3A%206px%208px%3B%0Afont%3A%2014px%2F16px%20Arial%2C%20Helvetica%2C%20sans%2Dserif%3B%0Abackground%3A%20white%3B%0Abackground%3A%20rgba%28255%2C255%2C255%2C0%2E8%29%3B%0Abox%2Dshadow%3A%200%200%2015px%20rgba%280%2C0%2C0%2C0%2E2%29%3B%0Aborder%2Dradius%3A%205px%3B%0A%7D%0A%2Elegend%20%7B%0Aline%2Dheight%3A%2018px%3B%0Acolor%3A%20%23555%3B%0A%7D%0A%2Elegend%20svg%20text%20%7B%0Afill%3A%20%23555%3B%0A%7D%0A%2Elegend%20svg%20line%20%7B%0Astroke%3A%20%23555%3B%0A%7D%0A%2Elegend%20i%20%7B%0Awidth%3A%2018px%3B%0Aheight%3A%2018px%3B%0Afloat%3A%20left%3B%0Amargin%2Dright%3A%208px%3B%0Aopacity%3A%200%2E7%3B%0A%7D%0A" rel="stylesheet" />
<script src="data:application/x-javascript;base64,IWZ1bmN0aW9uKGEpe2lmKCJvYmplY3QiPT10eXBlb2YgZXhwb3J0cyltb2R1bGUuZXhwb3J0cz1hKCk7ZWxzZSBpZigiZnVuY3Rpb24iPT10eXBlb2YgZGVmaW5lJiZkZWZpbmUuYW1kKWRlZmluZShhKTtlbHNle3ZhciBiOyJ1bmRlZmluZWQiIT10eXBlb2Ygd2luZG93P2I9d2luZG93OiJ1bmRlZmluZWQiIT10eXBlb2YgZ2xvYmFsP2I9Z2xvYmFsOiJ1bmRlZmluZWQiIT10eXBlb2Ygc2VsZiYmKGI9c2VsZiksYi5wcm9qND1hKCl9fShmdW5jdGlvbigpe3JldHVybiBmdW5jdGlvbiBhKGIsYyxkKXtmdW5jdGlvbiBlKGcsaCl7aWYoIWNbZ10pe2lmKCFiW2ddKXt2YXIgaT0iZnVuY3Rpb24iPT10eXBlb2YgcmVxdWlyZSYmcmVxdWlyZTtpZighaCYmaSlyZXR1cm4gaShnLCEwKTtpZihmKXJldHVybiBmKGcsITApO3Rocm93IG5ldyBFcnJvcigiQ2Fubm90IGZpbmQgbW9kdWxlICciK2crIiciKX12YXIgaj1jW2ddPXtleHBvcnRzOnt9fTtiW2ddWzBdLmNhbGwoai5leHBvcnRzLGZ1bmN0aW9uKGEpe3ZhciBjPWJbZ11bMV1bYV07cmV0dXJuIGUoYz9jOmEpfSxqLGouZXhwb3J0cyxhLGIsYyxkKX1yZXR1cm4gY1tnXS5leHBvcnRzfWZvcih2YXIgZj0iZnVuY3Rpb24iPT10eXBlb2YgcmVxdWl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gICAgICBpZiAodGhpcy5fY29udHJvbHNCeUlkW2lkXSkgewogICAgICAgICAgdGhpcy5fbWFwLnJlbW92ZUNvbnRyb2wodGhpcy5fY29udHJvbHNCeUlkW2lkXSk7CiAgICAgICAgfQogICAgICAgIHRoaXMuX2NvbnRyb2xzQnlJZFtpZF0gPSBjb250cm9sOwogICAgICB9IGVsc2UgewogICAgICAgIHRoaXMuX2NvbnRyb2xzTm9JZC5wdXNoKGNvbnRyb2wpOwogICAgICB9CiAgICAgIHRoaXMuX21hcC5hZGRDb250cm9sKGNvbnRyb2wpOwogICAgfQogIH0sIHsKICAgIGtleTogInJlbW92ZSIsCiAgICB2YWx1ZTogZnVuY3Rpb24gcmVtb3ZlKGlkKSB7CiAgICAgIGlmICh0aGlzLl9jb250cm9sc0J5SWRbaWRdKSB7CiAgICAgICAgdmFyIGNvbnRyb2wgPSB0aGlzLl9jb250cm9sc0J5SWRbaWRdOwogICAgICAgIHRoaXMuX21hcC5yZW1vdmVDb250cm9sKGNvbnRyb2wpOwogICAgICAgIGRlbGV0ZSB0aGlzLl9jb250cm9sc0J5SWRbaWRdOwogICAgICB9CiAgICB9CiAgfSwgewogICAga2V5OiAiY2xlYXIiLAogICAgdmFsdWU6IGZ1bmN0aW9uIGNsZWFyKCkgewogICAgICBmb3IgKHZhciBpID0gMDsgaSA8IHRoaXMuX2NvbnRyb2xzTm9JZC5sZW5ndGg7IGkrKykgewogICAgICAgIHZhciBjb250cm9sID0gdGhpcy5fY29udHJvbHNOb0lkW2ldOwogICAgICAgIHRoaXMuX21hcC5yZW1vdmVDb250cm9sKGNvbnRyb2wpOwogICAgICB9CiAgICAgIHRoaXMuX2NvbnRyb2xzTm9JZCA9IFtdOwoKICAgICAgZm9yICh2YXIga2V5IGluIHRoaXMuX2NvbnRyb2xzQnlJZCkgewogICAgICAgIHZhciBfY29udHJvbCA9IHRoaXMuX2NvbnRyb2xzQnlJZFtrZXldOwogICAgICAgIHRoaXMuX21hcC5yZW1vdmVDb250c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gY2hhbmdlZAogICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHZhciBncm91cFRpbWVySWQgPSBudWxsOwoKICAgICAgICAgICAgbWFwLm9uKCJtb3ZlZW5kIiwgZnVuY3Rpb24gKGUpIHsKICAgICAgICAgICAgICB1cGRhdGVCb3VuZHMoZS50YXJnZXQpOwogICAgICAgICAgICB9KS5vbigibGF5ZXJhZGQgbGF5ZXJyZW1vdmUiLCBmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgIC8vIElmIHRoZSBsYXllciB0aGF0J3MgY29taW5nIG9yIGdvaW5nIGlzIGEgZ3JvdXAgd2UgY3JlYXRlZCwgdGVsbAogICAgICAgICAgICAgIC8vIHRoZSBzZXJ2ZXIuCiAgICAgICAgICAgICAgaWYgKG1hcC5sYXllck1hbmFnZXIuZ2V0R3JvdXBOYW1lRnJvbUxheWVyR3JvdXAoZS5sYXllcikpIHsKICAgICAgICAgICAgICAgIC8vIEJ1dCB0byBhdm9pZCBjaGF0dGluZXNzLCBjb2FsZXNjZSBldmVudHMKICAgICAgICAgICAgICAgIGlmIChncm91cFRpbWVySWQpIHsKICAgICAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KGdyb3VwVGltZXJJZCk7CiAgICAgICAgICAgICAgICAgIGdyb3VwVGltZXJJZCA9IG51bGw7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBncm91cFRpbWVySWQgPSBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgZ3JvdXBUaW1lcklkID0gbnVsbDsKICAgICAgICAgICAgICAgICAgX3NoaW55Mi5kZWZhdWx0Lm9uSW5wdXRDaGFuZ2UobWFwLmlkICsgIl9ncm91cHMiLCBtYXAubGF5ZXJNYW5hZ2VyLmdldFZpc2libGVHcm91cHMoKSk7CiAgICAgICAgICAgICAgICB9LCAxMDApOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAg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AgICAgICAgZGF0YS5saW1pdHMubG5nWzBdID0gZGF0YS5saW1pdHMubG5nWzBdIC0gcGFkOwogICAgICAgICAgICAgIGRhdGEubGltaXRzLmxuZ1sxXSA9IGRhdGEubGltaXRzLmxuZ1sxXSArIHBhZDsKICAgICAgICAgICAgfQogICAgICAgICAgICBtYXAuZml0Qm91bmRzKFtbZGF0YS5saW1pdHMubGF0WzBdLCBkYXRhLmxpbWl0cy5sbmdbMF1dLCBbZGF0YS5saW1pdHMubGF0WzFdLCBkYXRhLmxpbWl0cy5sbmdbMV1dXSk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBtYXAuZml0V29ybGQoKTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIGZvciAodmFyIGkgPSAwOyBkYXRhLmNhbGxzICYmIGkgPCBkYXRhLmNhbGxzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICB2YXIgY2FsbCA9IGRhdGEuY2FsbHNbaV07CiAgICAgICAgICBpZiAobWV0aG9kc1tjYWxsLm1ldGhvZF0pIG1ldGhvZHNbY2FsbC5tZXRob2RdLmFwcGx5KG1hcCwgY2FsbC5hcmdzKTtlbHNlICgwLCBfdXRpbC5sb2cpKCJVbmtub3duIG1ldGhvZCAiICsgY2FsbC5tZXRob2QpOwogICAgICAgIH0KCiAgICAgICAgbWFwLmxlYWZsZXRyLmhhc1JlbmRlcmVkID0gdHJ1ZTsKCiAgICAgICAgaWYgKF9odG1sd2lkZ2V0czIuZGVmYXVsdC5zaGlueU1vZGUpIHsKICAgICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24gKCkgewogICAgICAgICAgICB1cGRhdGVCb3VuZHMobWFwKTsKICAgICAgICAgIH0sIDEpOwogICAgICAgIH0KICAgICAgfSwKICAgICAgcmVzaXplOiBmdW5jdGlvbiByZXNpemUod2lkdGgsIGhlaWdodCkgewogICAgICAgIGlmIChtYXApIHsKICAgICAgICAgIG1hcC5pbnZhbGlkYXRlU2l6ZSgpOw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yBVcGRhdGUgc3RhbXAgaW5kZXgKICAgICAgdmFyIGxheWVySW5mbyA9IHRoaXMuX2J5U3RhbXBbc3RhbXBdID0gewogICAgICAgIGxheWVyOiBsYXllciwKICAgICAgICBncm91cDogZ3JvdXAsCiAgICAgICAgY3RHcm91cDogY3RHcm91cCwKICAgICAgICBjdEtleTogY3RLZXksCiAgICAgICAgbGF5ZXJJZDogbGF5ZXJJZCwKICAgICAgICBjYXRlZ29yeTogY2F0ZWdvcnksCiAgICAgICAgY29udGFpbmVyOiBjb250YWluZXIsCiAgICAgICAgaGlkZGVuOiBmYWxzZQogICAgICB9OwoKICAgICAgLy8gVXBkYXRlIGNyb3NzdGFsayBncm91cCBpbmRleAogICAgICBpZiAoY3RHcm91cCkgewogICAgICAgIChmdW5jdGlvbiAoKSB7CiAgICAgICAgICBpZiAobGF5ZXIuc2V0U3R5bGUpIHsKICAgICAgICAgICAgLy8gTmVlZCB0byBzYXZlIHRoaXMgaW5mbyBzbyB3ZSBrbm93IHdoYXQgdG8gc2V0IG9wYWNpdHkgdG8gbGF0ZXIKICAgICAgICAgICAgbGF5ZXIub3B0aW9ucy5vcmlnT3BhY2l0eSA9IHR5cGVvZiBsYXllci5vcHRpb25zLm9wYWNpdHkgIT09ICJ1bmRlZmluZWQiID8gbGF5ZXIub3B0aW9ucy5vcGFjaXR5IDogMC41OwogICAgICAgICAgICBsYXllci5vcHRpb25zLm9yaWdGaWxsT3BhY2l0eSA9IHR5cGVvZiBsYXllci5vcHRpb25zLmZpbGxPcGFjaXR5ICE9PSAidW5kZWZpbmVkIiA/IGxheWVyLm9wdGlvbnMuZmlsbE9wYWNpdHkgOiAwLjI7CiAgICAgICAgICB9CgogICAgICAgICAgdmFyIGN0ZyA9IF90aGlzLl9ieUNyb3NzdGFsa0dyb3VwW2N0R3JvdXBdOwogICAgICAgICAgaWYgKCFjdGcpIHsKICAgICAgICAgICAgKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICBjdGcgPSBfdGhpcy5fYnlDcm9zc3RhbGtHcm91cFtjdEdyb3VwXSA9IHt9OwogICAgICAgICAgICAgIHZhciBjcm9zc3RhbGsgPSBnbG9iYWwuY3Jvc3N0YWxrOwoKICAgICAgICAgICAgICB2YXIgaGFuZGxlRmlsdGVyID0gZnVuY3Rpb24gaGFuZGxlRmlsdGVyKGUpIHsKICAgICAgICAgICAgICAgIGlmICghZS52YWx1ZSkgewogICAgICAgICAgICAgICAgICB2YXIgZ3JvdXBLZXlzID0gT2JqZWN0LmtleXMoY3RnKTsKICAgICAgICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBncm91cEtleXMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICAgICAgICB2YXIga2V5ID0gZ3JvdXBLZXlzW2ldOwogICAgICAgICAgICAgICAgICAgIHZhciBfbGF5ZXJJbmZvID0gX3RoaXMuX2J5U3RhbXBbY3RnW2tleV1dOwogICAgICAgICAgICAgICAgICAgIF90aGlzLl9zZXRWaXNpYmlsaXR5KF9sYXllckluZm8sIHRydWUpOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICB2YXIgc2VsZWN0ZWRLZXlzID0ge307CiAgICAgICAgICAgICAgICAgIGZvciAodmFyIF9pID0gMDsgX2kgPCBlLnZhbHVlLmxlbmd0aDsgX2krKykgewogICAgICAgICAgICAgICAgICAgIHNlbGVjdGVkS2V5c1tlLnZhbHVlW19pXV0gPSB0cnVlOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIHZhciBfZ3JvdXBLZXlzID0gT2JqZWN0LmtleXMoY3RnKTsKICAgICAgICAgICAgICAgICAgZm9yICh2YXIgX2kyID0gMDsgX2kyIDwgX2dyb3VwS2V5cy5sZW5ndGg7IF9pMisrKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIF9rZXkgPSBfZ3JvdXBLZXlzW19pMl07CiAgICAgICAgICAgICAgICAgICAgdmFyIF9sYXllckluZm8yID0gX3RoaXMuX2J5U3RhbXBbY3RnW19rZXldXTsKICAgICAgICAgICAgICAgICAgICBfdGhpcy5fc2V0VmlzaWJpbGl0eShfbGF5ZXJJbmZvMiwgc2VsZWN0ZWRLZXlzW19ncm91cEtleXNbX2kyXV0pOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgICB2YXIgZmlsdGVySGFuZGxlID0gbmV3IGNyb3NzdGFsay5GaWx0ZXJIYW5kbGUoY3RHcm91cCk7CiAgICAgICAgICAgICAgZmlsdGVySGFuZGxlLm9uKCJjaGFuZ2UiLCBoYW5kbGVGaWx0ZXIpOwoKICAgICAgICAgICAgICB2YXIgaGFuZGxlU2VsZWN0aW9uID0gZnVuY3Rpb24gaGFuZGxlU2VsZWN0aW9uKGUpIHsKICAgICAgICAgICAgICAgIGlmICghZS52YWx1ZSB8fCAhZS52YWx1ZS5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgdmFyIGdyb3VwS2V5cyA9IE9iamVjdC5rZXlzKGN0Zyk7CiAgICAgICAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZ3JvdXBLZXlzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGtleSA9IGdyb3VwS2V5c1tpXTsKICAgICAgICAgICAgICAgICAgICB2YXIgX2xheWVySW5mbzMgPSBfdGhpcy5fYnlTdGFtcFtjdGdba2V5XV07CiAgICAgICAgICAgICAgICAgICAgX3RoaXMuX3NldE9wYWNpdHkoX2xheWVySW5mbzMsIDEuMCk7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgIHZhciBzZWxlY3RlZEtleXMgPSB7fTsKICAgICAgICAgICAgICAgICAgZm9yICh2YXIgX2kzID0gMDsgX2kzIDwgZS52YWx1ZS5sZW5ndGg7IF9pMysrKSB7CiAgICAgICAgICAgICAgICAgICAgc2VsZWN0ZWRLZXlzW2UudmFsdWVbX2kzXV0gPSB0cnVlOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIHZhciBfZ3JvdXBLZXlzMiA9IE9iamVjdC5rZXlzKGN0Zyk7CiAgICAgICAgICAgICAgICAgIGZvciAodmFyIF9pNCA9IDA7IF9pNCA8IF9ncm91cEtleXMyLmxlbmd0aDsgX2k0KyspIHsKICAgICAgICAgICAgICAgICAgICB2YXIgX2tleTIgPSBfZ3JvdXBLZXlzMltfaTRdOwogICAgICAgICAgICAgICAgICAgIHZhciBfbGF5ZXJJbmZvNCA9IF90aGlzLl9ieVN0YW1wW2N0Z1tfa2V5Ml1dOwogICAgICAgICAgICAgICAgICAgIF90aGlzLl9zZXRPcGFjaXR5KF9sYXllckluZm80LCBzZWxlY3RlZEtleXNbX2dyb3VwS2V5czJbX2k0XV0gPyAxLjAgOiAwLjIpOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgICB2YXIgc2VsSGFuZGxlID0gbmV3IGNyb3NzdGFsay5TZWxlY3Rpb25IYW5kbGUoY3RHcm91cCk7CiAgICAgICAgICAgICAgc2VsSGFuZGxlLm9uKCJjaGFuZ2UiLCBoYW5kbGVTZWxlY3Rpb24pOwoKICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGhhbmRsZUZpbHRlcih7IHZhbHVlOiBmaWx0ZXJIYW5kbGUuZmlsdGVyZWRLZXlzIH0pOwogICAgICAgICAgICAgICAgaGFuZGxlU2VsZWN0aW9uKHsgdmFsdWU6IHNlbEhhbmRsZS52YWx1ZSB9KTsKICAgICAgICAgICAgICB9LCAxMDApOwogICAgICAgICAgICB9KSgpOwogICAgICAgICAgfQoKICAgICAgICAgIGlmICghY3RnW2N0S2V5XSkgY3RnW2N0S2V5XSA9IFt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mhpZGRlbiBeIHZpc2libGUpIHsKICAgICAgICByZXR1cm47CiAgICAgIH0gZWxzZSBpZiAodmlzaWJsZSkgewogICAgICAgIGxheWVySW5mby5jb250YWluZXIuYWRkTGF5ZXIobGF5ZXJJbmZvLmxheWVyKTsKICAgICAgICBsYXllckluZm8uaGlkZGVuID0gZmFsc2U7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgbGF5ZXJJbmZvLmNvbnRhaW5lci5yZW1vdmVMYXllcihsYXllckluZm8ubGF5ZXIpOwogICAgICAgIGxheWVySW5mby5oaWRkZW4gPSB0cnVlOwogICAgICB9CiAgICB9CiAgfSwgewogICAga2V5OiAiX3NldE9wYWNpdHkiLAogICAgdmFsdWU6IGZ1bmN0aW9uIF9zZXRPcGFjaXR5KGxheWVySW5mbywgb3BhY2l0eSkgewogICAgICBpZiAobGF5ZXJJbmZvLmxheWVyLnNldE9wYWNpdHkpIHsKICAgICAgICBsYXllckluZm8ubGF5ZXIuc2V0T3BhY2l0eShvcGFjaXR5KTsKICAgICAgfSBlbHNlIGlmIChsYXllckluZm8ubGF5ZXIuc2V0U3R5bGUpIHsKICAgICAgICBsYXllckluZm8ubGF5ZXIuc2V0U3R5bGUoewogICAgICAgICAgb3BhY2l0eTogb3BhY2l0eSAqIGxheWVySW5mby5sYXllci5vcHRpb25zLm9yaWdPcGFjaXR5LAogICAgICAgICAgZmlsbE9wYWNpdHk6IG9wYWNpdHkgKiBsYXllckluZm8ubGF5ZXIub3B0aW9ucy5vcmlnRmlsbE9wYWNpdHkKICAgICAgICB9KTsKICAgICAgfQogICAgfQogIH0sIHsKICAgIGtleTogImdldExheWVyIiwKICAgIHZhbHVlOiBmdW5jdGlvbiBnZXRMYXllcihjYXRlZ29yeSwgbGF5ZXJJZCkgewogICAgICByZXR1cm4gdGhpcy5fYnlMYXllcklkW3RoaXMuX2xheWVySWRLZXkoY2F0ZWdvcnksIGxheWVySWQpXTsKICAgIH0KICB9LCB7CiAgICBrZXk6ICJyZW1vd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Agc3RhbXBzLnB1c2goayk7CiAgICAgIH0pOwogICAgICBfanF1ZXJ5Mi5kZWZhdWx0LmVhY2goc3RhbXBzLCBmdW5jdGlvbiAoaSwgc3RhbXApIHsKICAgICAgICBfdGhpczYuX3JlbW92ZUxheWVyKHN0YW1wKTsKICAgICAgfSk7CiAgICB9CiAgfSwgewogICAga2V5OiAiY2xlYXIiLAogICAgdmFsdWU6IGZ1bmN0aW9uIGNsZWFyKCkgewogICAgICBmdW5jdGlvbiBjbGVhckxheWVyR3JvdXAoa2V5LCBsYXllckdyb3VwKSB7CiAgICAgICAgbGF5ZXJHcm91cC5jbGVhckxheWVycygpOwogICAgICB9CiAgICAgIC8vIENsZWFyIGFsbCBpbmRpY2VzIGFuZCBsYXllckdyb3VwcwogICAgICB0aGlzLl9ieUdyb3VwID0ge307CiAgICAgIHRoaXMuX2J5Q2F0ZWdvcnkgPSB7fTsKICAgICAgdGhpcy5fYnlMYXllcklkID0ge307CiAgICAgIHRoaXMuX2J5U3RhbXAgPSB7fTsKICAgICAgdGhpcy5fYnlDcm9zc3RhbGtHcm91cCA9IHt9OwogICAgICBfanF1ZXJ5Mi5kZWZhdWx0LmVhY2godGhpcy5fY2F0ZWdvcnlDb250YWluZXJzLCBjbGVhckxheWVyR3JvdXApOwogICAgICB0aGlzLl9jYXRlZ29yeUNvbnRhaW5lcnMgPSB7fTsKICAgICAgX2pxdWVyeTIuZGVmYXVsdC5lYWNoKHRoaXMuX2dyb3VwQ29udGFpbmVycywgY2xlYXJMYXllckdyb3VwKTsKICAgICAgdGhpcy5fZ3JvdXBDb250YWluZXJzID0ge307CiAgICB9CiAgfSwgewogICAga2V5OiAiX3JlbW92ZUxheWVyIiwKICAgIHZhbHVlOiBmdW5jdGlvbiBfcmVtb3ZlTGF5ZXIobGF5ZXIpIHsKICAgICAgdmFyIHN0YW1wID0gdm9pZCAwOwogICAgICBpZiAodHlwZW9mIGxheWVyID09PSAic3RyaW5nIikgewogICAgICAgIHN0YW1wID0gb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VyaWMoZGYuZ2V0KGksICJsYXQiKSkgJiYgX2pxdWVyeTIuZGVmYXVsdC5pc051bWVyaWMoZGYuZ2V0KGksICJsbmciKSkpIHsKICAgICAgICAoZnVuY3Rpb24gKCkgewogICAgICAgICAgdmFyIG1hcmtlciA9IG1hcmtlckZ1bmMoZGYsIGkpOwogICAgICAgICAgdmFyIHRoaXNJZCA9IGRmLmdldChpLCAibGF5ZXJJZCIpOwogICAgICAgICAgdmFyIHRoaXNHcm91cCA9IGNsdXN0ZXIgPyBudWxsIDogZGYuZ2V0KGksICJncm91cCIpOwogICAgICAgICAgaWYgKGNsdXN0ZXIpIHsKICAgICAgICAgICAgY2x1c3Rlckdyb3VwLmNsdXN0ZXJMYXllclN0b3JlLmFkZChtYXJrZXIsIHRoaXNJZCk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB0aGlzLmxheWVyTWFuYWdlci5hZGRMYXllcihtYXJrZXIsICJtYXJrZXIiLCB0aGlzSWQsIHRoaXNHcm91cCwgZGYuZ2V0KGksICJjdEdyb3VwIiwgdHJ1ZSksIGRmLmdldChpLCAiY3RLZXkiLCB0cnVlKSk7CiAgICAgICAgICB9CiAgICAgICAgICB2YXIgcG9wdXAgPSBkZi5nZXQoaSwgInBvcHVwIik7CiAgICAgICAgICB2YXIgcG9wdXBPcHRpb25zID0gZGYuZ2V0KGksICJwb3B1cE9wdGlvbnMiKTsKICAgICAgICAgIGlmIChwb3B1cCAhPT0gbnVsbCkgewogICAgICAgICAgICBpZiAocG9wdXBPcHRpb25zICE9PSBudWxsKSB7CiAgICAgICAgICAgICAgbWFya2VyLmJpbmRQb3B1cChwb3B1cCwgcG9wdXBPcHRpb25zKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICBtYXJrZXIuYmluZFBvcHVwKHBvcHVwKTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgdmFyIGxhYmVsID0gZGYuZ2V0KGksICJsYWJlbCIpOwogICAgICAgICAgdmFyIGxhYmVsT3B0aW9ucyA9IGRmLmdldChpLCAibGFiZWxPcHRpb25zIik7CiAgICAgICAgICBpZiAobGFiZWwgIT09IG51bGwpIHsKICAgICAgICAgICAgaWYgKGxhYmVsT3B0aW9ucyAhPT0gbnVsbCkgewogICAgICAgICAgICAgIGlmIChsYWJlbE9wdGlvbnMucGVybWFuZW50KSB7CiAgICAgICAgICAgICAgICBtYXJrZXIuYmluZFRvb2x0aXAobGFiZWwsIGxhYmVsT3B0aW9ucykub3BlblRvb2x0aXAoKTsKICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgbWFya2VyLmJpbmRUb29sdGlwKGxhYmVsLCBsYWJlbE9wdGlvbnMpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICBtYXJrZXIuYmluZFRvb2x0aXAobGFiZWwpOwogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBtYXJrZXIub24oImNsaWNrIiwgbW91c2VIYW5kbGVyKHRoaXMuaWQsIHRoaXNJZCwgdGhpc0dyb3VwLCAibWFya2VyX2NsaWNrIiwgZXh0cmFJbmZvKSwgdGhpcyk7CiAgICAgICAgICBtYXJrZXIub24oIm1vdXNlb3ZlciIsIG1vdXNlSGFuZGxlcih0aGlzLmlkLCB0aGlzSWQsIHRoaXNHcm91cCwgIm1hcmtlcl9tb3VzZW92ZXIiLCBleHRyYUluZm8pLCB0aGlzKTsKICAgICAgICAgIG1hcmtlci5vbigibW91c2VvdXQiLCBtb3VzZUhhbmRsZXIodGhpcy5pZCwgdGhpc0lkLCB0aGlzR3JvdXAsICJtYXJrZXJfbW91c2VvdXQiLCBleHRyYUluZm8pLCB0aGlzKTsKICAgICAgICB9KS5jYWxsKF90aGlzMyk7CiAgICAgIH0KICAgIH07CgogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBkZi5ucm93KCk7IGkrKykgewogICAgICBfbG9vcDIoaSk7CiAgICB9CgogIC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CByb3cgb2YgdGhlIGljb24gZGF0YWZyYW1lLgogICAgZ2V0SWNvbiA9IGZ1bmN0aW9uIGdldEljb24oaSkgewogICAgICB2YXIgb3B0cyA9IGljb25kZi5nZXQoaSk7CiAgICAgIGlmICghb3B0cy5pY29uVXJsKSB7CiAgICAgICAgcmV0dXJuIG5ldyBfbGVhZmxldDIuZGVmYXVsdC5JY29uLkRlZmF1bHQoKTsKICAgICAgfQoKICAgICAgLy8gQ29tcG9zaXRlIG9wdGlvbnMgKGxpa2UgcG9pbnRzIG9yIHNpemVzKSBhcmUgcGFzc2VkIGZyb20gUiB3aXRoIGVhY2gKICAgICAgLy8gaW5kaXZpZHVhbCBjb21wb25lbnQgYXMgaXRzIG93biBvcHRpb24uIFdlIG5lZWQgdG8gY29tYmluZSB0aGVtIG5vdwogICAgICAvLyBpbnRvIHRoZWlyIGNvbXBvc2l0ZSBmb3JtLgogICAgICBpZiAob3B0cy5pY29uV2lkdGgpIHsKICAgICAgICBvcHRzLmljb25TaXplID0gW29wdHMuaWNvbldpZHRoLCBvcHRzLmljb25IZWlnaHRdOwogICAgICB9CiAgICAgIGlmIChvcHRzLnNoYWRvd1dpZHRoKSB7CiAgICAgICAgb3B0cy5zaGFkb3dTaXplID0gW29wdHMuc2hhZG93V2lkdGgsIG9wdHMuc2hhZG93SGVpZ2h0XTsKICAgICAgfQogICAgICBpZiAob3B0cy5pY29uQW5jaG9yWCkgewogICAgICAgIG9wdHMuaWNvbkFuY2hvciA9IFtvcHRzLmljb25BbmNob3JYLCBvcHRzLmljb25BbmNob3JZXTsKICAgICAgfQogICAgICBpZiAob3B0cy5zaGFkb3dBbmNob3JYKSB7CiAgICAgICAgb3B0cy5zaGFkb3dBbmNob3IgPSBbb3B0cy5zaGFkb3dBbmNob3JYLCBvcHRzLnNoYWRvd0FuY2hvclldOwogICAgICB9CiAgICAgIGlmIChvcHRzLnBvcHVwQW5jaG9yWCkgewogICAgICAgIG9wdHMucG9wdXBBbmNob3IgPSBbb3B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b24gKCkgewogICAgICB2YXIgX3RoaXM0ID0gdGhpczsKCiAgICAgIHZhciBsYXllciA9IGxheWVyRnVuYyhkZiwgaSk7CiAgICAgIGlmICghX2pxdWVyeTIuZGVmYXVsdC5pc0VtcHR5T2JqZWN0KGxheWVyKSkgewogICAgICAgIChmdW5jdGlvbiAoKSB7CiAgICAgICAgICB2YXIgdGhpc0lkID0gZGYuZ2V0KGksICJsYXllcklkIik7CiAgICAgICAgICB2YXIgdGhpc0dyb3VwID0gZGYuZ2V0KGksICJncm91cCIpOwogICAgICAgICAgX3RoaXM0LmxheWVyTWFuYWdlci5hZGRMYXllcihsYXllciwgY2F0ZWdvcnksIHRoaXNJZCwgdGhpc0dyb3VwLCBkZi5nZXQoaSwgImN0R3JvdXAiLCB0cnVlKSwgZGYuZ2V0KGksICJjdEtleSIsIHRydWUpKTsKICAgICAgICAgIGlmIChsYXllci5iaW5kUG9wdXApIHsKICAgICAgICAgICAgdmFyIHBvcHVwID0gZGYuZ2V0KGksICJwb3B1cCIpOwogICAgICAgICAgICB2YXIgcG9wdXBPcHRpb25zID0gZGYuZ2V0KGksICJwb3B1cE9wdGlvbnMiKTsKICAgICAgICAgICAgaWYgKHBvcHVwICE9PSBudWxsKSB7CiAgICAgICAgICAgICAgaWYgKHBvcHVwT3B0aW9ucyAhPT0gbnVsbCkgewogICAgICAgICAgICAgICAgbGF5ZXIuYmluZFBvcHVwKHBvcHVwLCBwb3B1cE9wdGlvbnMpOwogICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBsYXllci5iaW5kUG9wdXAocG9wdXApOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgICAgaWYgKGxheWVyLmJpbmRUb29sdGlwKSB7CiAgICAgICAgICAgIHZhciBsYWJlbCA9IGRmLmdldChpLCAibGFiZWwiKTsKICAgICAgICAgICAgdmFyIGxhYmVsT3B0aW9ucyA9IGRmLmdldChpLCAibGFiZWxPcHRpb25zIik7CiAgICAgICAgICAgIGlmIChsYWJlbCAhPT0gbnVsbCkgewogICAgICAgICAgICAgIGlmIChsYWJlbE9wdGlvbnMgIT09IG51bGwpIHsKICAgICAgICAgICAgICAgIGxheWVyLmJpbmRUb29sdGlwKGxhYmVsLCBsYWJlbE9wdGlvbnMpOwogICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBsYXllci5iaW5kVG9vbHRpcChsYWJlbCk7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgICBsYXllci5vbigiY2xpY2siLCBtb3VzZUhhbmRsZXIoX3RoaXM0LmlkLCB0aGlzSWQsIHRoaXNHcm91cCwgY2F0ZWdvcnkgKyAiX2NsaWNrIiksIF90aGlzNCk7CiAgICAgICAgICBsYXllci5vbigibW91c2VvdmVyIiwgbW91c2VIYW5kbGVyKF90aGlzNC5pZCwgdGhpc0lkLCB0aGlzR3JvdXAsIGNhdGVnb3J5ICsgIl9tb3VzZW92ZXIiKSwgX3RoaXM0KTsKICAgICAgICAgIGxheWVyLm9uKCJtb3VzZW91dCIsIG1vdXNlSGFuZGxlcihfdGhpczQuaWQsIHRoaXNJZCwgdGhpc0dyb3VwLCBjYXRlZ29yeSArICJfbW91c2VvdXQiKSwgX3RoaXM0KTsKICAgICAgICAgIHZhciBoaWdobGlnaHRTdHlsZSA9IGRmLmdldChpLCAiaGlnaGxpZ2h0T3B0aW9ucyIpOwoKICAgICAgICAgIGlmICghX2pxdWVyeTIuZGVmYXVsdC5pc0VtcHR5T2JqZWN0KGhpZ2hsaWdodFN0eWxlKSkgewogICAgICAgICAgICAoZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgICB2YXIgZGVmYXVsdFN0eWxlID0ge307CiAgICAgICAgICAgICAgX2pxdWVyeTIuZGVmYXVsdC5lYWNoKGhpZ2hsaWdodFN0eWxlLCBmdW5jdGlvbiAoaywgdikgewogICAgICAgICAgICAgICAgaWYgKGsgIT0gImJyaW5nVG9Gcm9udCIgJiYgayAhPSAic2VuZFRvQmFjayIpIHsKICAgICAgICAgICAgICAgICAgaWYgKGRmLmdldChpLCBrKSkgewogICAgICAgICAgICAgICAgICAgIGRlZmF1bHRTdHlsZVtrXSA9IGRmLmdldChpLCBrKTsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICBsYXllci5vbigibW91c2VvdmVyIiwgZnVuY3Rpb24gKGUpIHsKICAgICAgICAgICAgICAgIHRoaXMuc2V0U3R5bGUoaGlnaGxpZ2h0U3R5bGUpOwogICAgICAgICAgICAgICAgaWYgKGhpZ2hsaWdodFN0eWxlLmJyaW5nVG9Gcm9udCkgewogICAgICAgICAgICAgICAgICB0aGlzLmJyaW5nVG9Gcm9udCgpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgIGxheWVyLm9uKCJtb3VzZW91dCIsIGZ1bmN0aW9uIChlKSB7CiAgICAgICAgICAgICAgICB0aGlzLnNldFN0eWxlKGRlZmF1bHRTdHlsZSk7CiAgICAgICAgICAgICAgICBpZiAoaGlnaGxpZ2h0U3R5bGUuc2VuZFRvQmFjaykgewogICAgICAgICAgICAgICAgICB0aGlzLmJyaW5nVG9CYWNrKCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0pKCk7CiAgICAgICAgICB9CiAgICAgICAgfSkoKTsKICAgICAgfQogICAgfSkuY2FsbChtYXApOwogIH07CgogIGZvciAodmFyIGkgPSAwOyBpIDwgZGYubnJvdygpOyBpKyspIHsKICAgIF9sb29wMyhpKTsKICB9Cn0KCm1ldGhvZHMuYWRkR2VuZXJpY0xheWVycyA9IGFkZExheWVyczsKCm1ldGhvZHMuYWRkQ2lyY2xlcyA9IGZ1bmN0aW9uIChsYXQsIGxuZywgcmFkaXVzLCBsYXllcklkLCBncm91cCwgb3B0aW9ucywg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vIEFsd2F5cyBkcmF3IHRoZSB3aG9sZSB0aGluZyBhbmQgbGV0IGNhbnZhcyBjbGlwOyBzbyB3ZSBjYW4ganVzdAogICAgICAgICAgICAgIC8vIGNvbnZlcnQgZnJvbSBzaXplIGluIHRpbGUgY29vcmRzIHN0cmFpZ2h0IHRvIHBpeGVscwogICAgICAgICAgICAgIGV4dGVudC54ICogMjU2LCBleHRlbnQueSAqIDI1Nik7CiAgICAgICAgICAgIH0pOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgLy8gVXNlIG1hbnVhbCBuZWFyZXN0LW5laWdoYm9yIGludGVycG9sYXRpb24KCiAgICAgICAgICAgIC8vIENhbGN1bGF0ZSB0aGUgc291cmNlIGltYWdlIHBpeGVsIGNvb3JkaW5hdGVzIHRoYXQgY29ycmVzcG9uZCB3aXRoCiAgICAgICAgICAgIC8vIHRoZSB0b3AtbGVmdCBhbmQgYm90dG9tLXJpZ2h0IG9mIHRoaXMgdGlsZS4gKElmIHRoZSBzb3VyY2UgaW1hZ2UKICAgICAgICAgICAgLy8gb25seSBwYXJ0aWFsbHkgb3ZlcmxhcHMgdGhlIHRpbGUsIHdlIHVzZSBtYXgvbWluIHRvIGxpbWl0IHRoZQogICAgICAgICAgICAvLyBzb3VyY2VTdGFydC9FbmQgdG8gb25seSByZWZsZWN0IHRoZSBvdmVybGFwcGluZyBwb3J0aW9uLikKICAgICAgICAgICAgdmFyIHNvdXJjZVN0YXJ0ID0gewogICAgICAgICAgICAgIHg6IE1hdGgubWF4KDAsIE1hdGguZmxvb3IoKHRpbGVQb2ludC54IC0gdG9wTGVmdC54KSAqIGltZ1Jlcy54KSksCiAgICAgICAgICAgICAgeTogTWF0aC5tYXgoMCwgTWF0aC5mbG9vcigodGlsZVBvaW50LnkgLSB0b3BMZWZ0LnkpICogaW1nUmVzLnkpKQogICAgICAgICAgICB9OwogICAgICAgICAgICB2YXIgc291cmNlRW5kID0gewogICAgICAgICAgICAgIHg6IE1hdGgubWluKHcsIE1hdGguY2VpbCgodGlsZVBvaW50LnggKyAxIC0gdG9wTGVmdC54KSAqIGltZ1Jlcy54KSksCiAgICAgICAgICAgICAgeTogTWF0aC5taW4oaCwgTWF0aC5jZWlsKCh0aWxlUG9pbnQueSArIDEgLSB0b3BMZWZ0LnkpICogaW1nUmVzLnkpKQogICAgICAgICAgICB9OwoKICAgICAgICAgICAgLy8gVGhlIHNpemUsIGluIGRlc3QgcGl4ZWxzLCB0aGF0IGVhY2ggc291cmNlIHBpeGVsIHNob3VsZCBvY2N1cHkuCiAgICAgICAgICAgIC8vIFRoaXMgbWlnaHQgYmUgZ3JlYXRlciBvciBsZXNzIHRoYW4gMSAoZS5nLiBpZiB4IGFuZCB5IHJlc29sdXRpb24KICAgICAgICAgICAgLy8gYXJlIHZlcnkgZGlmZmVyZW50KS4KICAgICAgICAgICAgdmFyIHBpeGVsU2l6ZSA9IHsKICAgICAgICAgICAgICB4OiAyNTYgLyBpbWdSZXMueCwKICAgICAgICAgICAgICB5OiAyNTYgLyBpbWdSZXMueQogICAgICAgICAgICB9OwoKICAgICAgICAgICAgLy8gRm9yIGVhY2ggcGl4ZWwgaW4gdGhlIHNvdXJjZSBpbWFnZSB0aGF0IG92ZXJsYXBzIHRoZSB0aWxlLi4uCiAgICAgICAgICAgIGZvciAodmFyIHJvdyA9IHNvdXJjZVN0YXJ0Lnk7IHJvdyA8IHNvdXJjZUVuZC55OyByb3crKykgewogICAgICAgICAgICAgIGZvciAodmFyIGNvbCA9IHNvdXJjZVN0YXJ0Lng7IGNvbCA8IHNvdXJjZUVuZC54OyBjb2wrKykgewogICAgICAgICAgICAgICAgLy8gLi4uZXh0cmFjdCB0aGUgcGl4ZWwgZGF0YS4uLgogICAgICAgICAgICAgICAgdmFyIGkgPSAocm93ICogdyArIGNvbCkgKiA0OwogICAgICAgICAgICAgICAgdmFyIHIgPSBpbWdEYXRhW2ldOwogICAgICAgICAgICAgICAgdmFyIGcgPSBpbWdEYXRhW2kgKyAxXTsKICAgICAgICAgICAgICAgIHZhciBiID0gaW1nRGF0YVtpICsgMl07CiAgICAgICAgICAgICAgICB2YXIgYSA9IGltZ0RhdGFbaSArIDNdOwogICAgICAgICAgICAgICAgY3R4LmZpbGxTdHlsZSA9ICJyZ2JhKCIgKyBbciwgZywgYiwgYSAvIDI1NV0uam9pbigiLCIpICsgIikiOwoKICAgICAgICAgICAgICAgIC8vIC4uLmNhbGN1bGF0ZSB0aGUgY29ycmVzcG9uZGluZyBwaXhlbCBjb29yZCBpbiB0aGUgZGVzdCBpbWFnZQogICAgICAgICAgICAgICAgLy8gd2hlcmUgaXQgc2hvdWxkIGJlIGRyYXduLi4uCiAgICAgICAgICAgICAgICB2YXIgcGl4ZWxQb3MgPSB7CiAgICAgICAgICAgICAgICAgIHg6IChjb2wgLyBpbWdSZXMueCArIHRvcExlZnQueCAtIHRpbGVQb2ludC54KSAqIDI1NiwKICAgICAgICAgICAgICAgICAgeTogKHJvdyAvIGltZ1Jlcy55ICsgdG9wTGVmdC55IC0gdGlsZVBvaW50LnkpICogMjU2CiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgIC8vIC4uLmFuZCBkcmF3IGEgcmVjdGFuZ2xlIHRoZXJlLgogICAgICAgICAgICAgICAgY3R4LmZpbGxSZWN0KE1hdGgucm91bmQocGl4ZWxQb3MueCksIE1hdGgucm91bmQocGl4ZWxQb3MueSksCiAgICAgICAgICAgICAgICAvLyBMb29rcyBjcmF6eSwgYnV0IHRoaXMgaXMgbmVjZXNzYXJ5IHRvIHByZXZlbnQgcm91bmRpbmcgZnJvbQogICAgICAgICAgICAgICAgLy8gY2F1c2luZyBvdmVybGFwIGJldHdlZW4gdGhpcyByZWN0IGFuZCBpdHMgbmVpZ2hib3JzLiBUaGUKICAgICAgICAgICAgICAgIC8vIG1pbnVlbmQgaXMgdGhlIGxvY2F0aW9uIG9mIHRoZSBuZXh0IHBpeGVsLCB3aGlsZSB0aGUKICAgICAgICAgICAgICAgIC8vIHN1Y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mRlZmF1bHQuTG9jYXRpb25GaWx0ZXIyKCk7CgogICAgICAgIGlmIChjdEdyb3VwKSB7CiAgICAgICAgICAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICB2YXIgc2VsZWN0aW9uSGFuZGxlID0gbmV3IGdsb2JhbC5jcm9zc3RhbGsuU2VsZWN0aW9uSGFuZGxlKGN0R3JvdXApOwogICAgICAgICAgICBzZWxlY3Rpb25IYW5kbGUub24oImNoYW5nZSIsIGZ1bmN0aW9uIChlKSB7CiAgICAgICAgICAgICAgaWYgKGUuc2VuZGVyICE9PSBzZWxlY3Rpb25IYW5kbGUpIHsKICAgICAgICAgICAgICAgIGlmIChfdGhpczkuX2xvY2F0aW9uRmlsdGVyKSB7CiAgICAgICAgICAgICAgICAgIF90aGlzOS5fbG9jYXRpb25GaWx0ZXIuZGlzYWJsZSgpOwogICAgICAgICAgICAgICAgICBidG4uc3RhdGUoInNlbGVjdC1pbmFjdGl2ZSIpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHZhciBoYW5kbGVyID0gZnVuY3Rpb24gaGFuZGxlcihlKSB7CiAgICAgICAgICAgICAgX3RoaXM5LmxheWVyTWFuYWdlci5icnVzaChfdGhpczkuX2xvY2F0aW9uRmlsdGVyLmdldEJvdW5kcygpLCB7IHNlbmRlcjogc2VsZWN0aW9uSGFuZGxlIH0pOwogICAgICAgICAgICB9OwogICAgICAgICAgICBfdGhpczkuX2xvY2F0aW9uRmlsdGVyLm9uKCJlbmFibGVkIiwgaGFuZGxlcik7CiAgICAgICAgICAgIF90aGlzOS5fbG9jYXRpb25GaWx0ZXIub24oImNoYW5nZSIsIGhhbmRsZXIpOwogICAgICAgICAgICBfdGhpczkuX2xvY2F0aW9uRmlsdGVyLm9uKCJkaXNhYmxlZCIsIGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICBzZWxlY3Rpb25IYW5kbGUuY2xvc2UoKTsKICAgICAg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B9CiAgICAgICAgfSk7CiAgICAgIH07CiAgICAgIHRlc3ROZXh0KCk7CiAgICB9CiAgfSwgewogICAga2V5OiAiZ2V0QnlJbmRleCIsCiAgICB2YWx1ZTogZnVuY3Rpb24gZ2V0QnlJbmRleChpLCBjYWxsYmFjaykgewogICAgICB2YXIgX3RoaXMyID0gdGhpczsKCiAgICAgIGlmICh0aGlzLl9sYXllcnNbaV0pIHsKICAgICAgICBjYWxsYmFjayh0aGlzLl9sYXllcnNbaV0pOwogICAgICAgIHJldHVybjsKICAgICAgfQoKICAgICAgdGhpcy5nZXRCeUluZGV4KGkgLSAxLCBmdW5jdGlvbiAocHJldkltZykgewogICAgICAgIGlmICghcHJldkltZykgewogICAgICAgICAgLy8gcHJldkltZyBjb3VsZCBub3QgYmUgY2FsY3VsYXRlZCAodG9vIHNtYWxsLCBwb3NzaWJseSkKICAgICAgICAgIGNhbGxiYWNrKG51bGwpOwogICAgICAgICAgcmV0dXJuOwogICAgICAgIH0KICAgICAgICBpZiAocHJldkltZy53aWR0aCA8IDIgfHwgcHJldkltZy5oZWlnaHQgPCAyKSB7CiAgICAgICAgICAvLyBDYW4ndCByZWR1Y2UgdGhpcyBpbWFnZSBhbnkgZnVydGhlcgogICAgICAgICAgY2FsbGJhY2sobnVsbCk7CiAgICAgICAgICByZXR1cm47CiAgICAgICAgfQogICAgICAgIC8vIElmIHJlZHVjZSBldmVyIGJlY29tZXMgdHJ1bHkgYXN5bmNocm9ub3VzLCB3ZSBzaG91bGQgc3R1ZmYgYSBwcm9taXNlIG9yCiAgICAgICAgLy8gc29tZXRoaW5nIGludG8gdGhpcy5fbGF5ZXJzW2ldIGJlZm9yZSBjYWxsaW5nIHRoaXMucmVkdWNlKCksIHRvIHByZXZlbnQKICAgICAgICAvLyByZWR1bmRhbnQgcmVkdWNlIG9wZXJhdGlvbnMgZnJvbSBoYXBwZW5pbmcuCiAgICAgICAgX3RoaXMyLnJlZHVjZShwcmV2SW1nLCBmdW5jdGlvbiAocmV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Rlc3Quc3BsaWNlKGxlbmd0aCwgZGVzdC5sZW5ndGggLSBsZW5ndGgpOwogIH0KICByZXR1cm4gZGVzdDsKfQoKZnVuY3Rpb24gYXNBcnJheSh2YWx1ZSkgewogIGlmICh2YWx1ZSBpbnN0YW5jZW9mIEFycmF5KSByZXR1cm4gdmFsdWU7ZWxzZSByZXR1cm4gW3ZhbHVlXTsKfQoKCn0se31dfSx7fSxbMTFdKTsK"></script>
<link href="data:text/css;charset=utf-8,%0A%2Eui%2Dhelper%2Dhidden%7Bdisplay%3Anone%7D%2Eui%2Dhelper%2Dhidden%2Daccessible%7Bborder%3A0%3Bclip%3Arect%280%200%200%200%29%3Bheight%3A1px%3Bmargin%3A%2D1px%3Boverflow%3Ahidden%3Bpadding%3A0%3Bposition%3Aabsolute%3Bwidth%3A1px%7D%2Eui%2Dhelper%2Dreset%7Bmargin%3A0%3Bpadding%3A0%3Bborder%3A0%3Boutline%3A0%3Bline%2Dheight%3A1%2E3%3Btext%2Ddecoration%3Anone%3Bfont%2Dsize%3A100%25%3Blist%2Dstyle%3Anone%7D%2Eui%2Dhelper%2Dclearfix%3Abefore%2C%2Eui%2Dhelper%2Dclearfix%3Aafter%7Bcontent%3A%22%22%3Bdisplay%3Atable%3Bborder%2Dcollapse%3Acollapse%7D%2Eui%2Dhelper%2Dclearfix%3Aafter%7Bclear%3Aboth%7D%2Eui%2Dhelper%2Dclearfix%7Bmin%2Dheight%3A0%7D%2Eui%2Dhelper%2Dzfix%7Bwidth%3A100%25%3Bheight%3A100%25%3Btop%3A0%3Bleft%3A0%3Bposition%3Aabsolute%3Bopacity%3A0%3Bfilter%3AAlpha%28Opacity%3D0%29%7D%2Eui%2Dfront%7Bz%2Dindex%3A100%7D%2Eui%2Dstate%2Ddisabled%7Bcursor%3Adefault%21important%7D%2Eui%2Dicon%7Bdisplay%3Ablock%3Btext%2Dindent%3A%2D99999px%3Boverflow%3Ahidden%3Bbackground%2Drepeat%3Ano%2Drepeat%7D%2Eui%2Dwidget%2Doverlay%7Bposition%3Afixed%3Btop%3A0%3Bleft%3A0%3Bwidth%3A100%25%3Bheight%3A100%25%7D%2Eui%2Daccordion%20%2Eui%2Daccordion%2Dheader%7Bdisplay%3Ablock%3Bcursor%3Apointer%3Bposition%3Arelative%3Bmargin%3A2px%200%200%200%3Bpadding%3A%2E5em%20%2E5em%20%2E5em%20%2E7em%3Bmin%2Dheight%3A0%3Bfont%2Dsize%3A100%25%7D%2Eui%2Daccordion%20%2Eui%2Daccordion%2Dicons%7Bpadding%2Dleft%3A2%2E2em%7D%2Eui%2Daccordion%20%2Eui%2Daccordion%2Dicons%20%2Eui%2Daccordion%2Dicons%7Bpadding%2Dleft%3A2%2E2em%7D%2Eui%2Daccordion%20%2Eui%2Daccordion%2Dheader%20%2Eui%2Daccordion%2Dheader%2Dicon%7Bposition%3Aabsolute%3Bleft%3A%2E5em%3Btop%3A50%25%3Bmargin%2Dtop%3A%2D8px%7D%2Eui%2Daccordion%20%2Eui%2Daccordion%2Dcontent%7Bpadding%3A1em%202%2E2em%3Bborder%2Dtop%3A0%3Boverflow%3Aauto%7D%2Eui%2Dautocomplete%7Bposition%3Aabsolute%3Btop%3A0%3Bleft%3A0%3Bcursor%3Adefault%7D%2Eui%2Dbutton%7Bdisplay%3Ainline%2Dblock%3Bposition%3Arelative%3Bpadding%3A0%3Bline%2Dheight%3Anormal%3Bmargin%2Dright%3A%2E1em%3Bcursor%3Apointer%3Bvertical%2Dalign%3Amiddle%3Btext%2Dalign%3Acenter%3Boverflow%3Avisible%7D%2Eui%2Dbutton%2C%2Eui%2Dbutton%3Alink%2C%2Eui%2Dbutton%3Avisited%2C%2Eui%2Dbutton%3Ahover%2C%2Eui%2Dbutton%3Aactive%7Btext%2Ddecoration%3Anone%7D%2Eui%2Dbutton%2Dicon%2Donly%7Bwidth%3A2%2E2em%7Dbutton%2Eui%2Dbutton%2Dicon%2Donly%7Bwidth%3A2%2E4em%7D%2Eui%2Dbutton%2Dicons%2Donly%7Bwidth%3A3%2E4em%7Dbutton%2Eui%2Dbutton%2Dicons%2Donly%7Bwidth%3A3%2E7em%7D%2Eui%2Dbutton%20%2Eui%2Dbutton%2Dtext%7Bdisplay%3Ablock%3Bline%2Dheight%3Anormal%7D%2Eui%2Dbutton%2Dtext%2Donly%20%2Eui%2Dbutton%2Dtext%7Bpadding%3A%2E4em%201em%7D%2Eui%2Dbutton%2Dicon%2Donly%20%2Eui%2Dbutton%2Dtext%2C%2Eui%2Dbutton%2Dicons%2Donly%20%2Eui%2Dbutton%2Dtext%7Bpadding%3A%2E4em%3Btext%2Dindent%3A%2D9999999px%7D%2Eui%2Dbutton%2Dtext%2Dicon%2Dprimary%20%2Eui%2Dbutton%2Dtext%2C%2Eui%2Dbutton%2Dtext%2Dicons%20%2Eui%2Dbutton%2Dtext%7Bpadding%3A%2E4em%201em%20%2E4em%202%2E1em%7D%2Eui%2Dbutton%2Dtext%2Dicon%2Dsecondary%20%2Eui%2Dbutton%2Dtext%2C%2Eui%2Dbutton%2Dtext%2Dicons%20%2Eui%2Dbutton%2Dtext%7Bpadding%3A%2E4em%202%2E1em%20%2E4em%201em%7D%2Eui%2Dbutton%2Dtext%2Dicons%20%2Eui%2Dbutton%2Dtext%7Bpadding%2Dleft%3A2%2E1em%3Bpadding%2Dright%3A2%2E1em%7Dinput%2Eui%2Dbutton%7Bpadding%3A%2E4em%201em%7D%2Eui%2Dbutton%2Dicon%2Donly%20%2Eui%2Dicon%2C%2Eui%2Dbutton%2Dtext%2Dicon%2Dprimary%20%2Eui%2Dicon%2C%2Eui%2Dbutton%2Dtext%2Dicon%2Dsecondary%20%2Eui%2Dicon%2C%2Eui%2Dbutton%2Dtext%2Dicons%20%2Eui%2Dicon%2C%2Eui%2Dbutton%2Dicons%2Donly%20%2Eui%2Dicon%7Bposition%3Aabsolute%3Btop%3A50%25%3Bmargin%2Dtop%3A%2D8px%7D%2Eui%2Dbutton%2Dicon%2Donly%20%2Eui%2Dicon%7Bleft%3A50%25%3Bmargin%2Dleft%3A%2D8px%7D%2Eui%2Dbutton%2Dtext%2Dicon%2Dprimary%20%2Eui%2Dbutton%2Dicon%2Dprimary%2C%2Eui%2Dbutton%2Dtext%2Dicons%20%2Eui%2Dbutton%2Dicon%2Dprimary%2C%2Eui%2Dbutton%2Dicons%2Donly%20%2Eui%2Dbutton%2Dicon%2Dprimary%7Bleft%3A%2E5em%7D%2Eui%2Dbutton%2Dtext%2Dicon%2Dsecondary%20%2Eui%2Dbutton%2Dicon%2Dsecondary%2C%2Eui%2Dbutton%2Dtext%2Dicons%20%2Eui%2Dbutton%2Dicon%2Dsecondary%2C%2Eui%2Dbutton%2Dicons%2Donly%20%2Eui%2Dbutton%2Dicon%2Dsecondary%7Bright%3A%2E5em%7D%2Eui%2Dbuttonset%7Bmargin%2Dright%3A7px%7D%2Eui%2Dbuttonset%20%2Eui%2Dbutton%7Bmargin%2Dleft%3A0%3Bmargin%2Dright%3A%2D%2E3em%7Dinput%2Eui%2Dbutton%3A%3A%2Dmoz%2Dfocus%2Dinner%2Cbutton%2Eui%2Dbutton%3A%3A%2Dmoz%2Dfocus%2Dinner%7Bborder%3A0%3Bpadding%3A0%7D%2Eui%2Ddatepicker%7Bwidth%3A17em%3Bpadding%3A%2E2em%20%2E2em%200%3Bdisplay%3Anone%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dheader%7Bposition%3Arelative%3Bpadding%3A%2E2em%200%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dprev%2C%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dnext%7Bposition%3Aabsolute%3Btop%3A2px%3Bwidth%3A1%2E8em%3Bheight%3A1%2E8em%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dprev%2Dhover%2C%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dnext%2Dhover%7Btop%3A1px%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dprev%7Bleft%3A2px%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dnext%7Bright%3A2px%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dprev%2Dhover%7Bleft%3A1px%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dnext%2Dhover%7Bright%3A1px%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dprev%20span%2C%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dnext%20span%7Bdisplay%3Ablock%3Bposition%3Aabsolute%3Bleft%3A50%25%3Bmargin%2Dleft%3A%2D8px%3Btop%3A50%25%3Bmargin%2Dtop%3A%2D8px%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dtitle%7Bmargin%3A0%202%2E3em%3Bline%2Dheight%3A1%2E8em%3Btext%2Dalign%3Acenter%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dtitle%20select%7Bfont%2Dsize%3A1em%3Bmargin%3A1px%200%7D%2Eui%2Ddatepicker%20select%2Eui%2Ddatepicker%2Dmonth%2C%2Eui%2Ddatepicker%20select%2Eui%2Ddatepicker%2Dyear%7Bwidth%3A45%25%7D%2Eui%2Ddatepicker%20table%7Bwidth%3A100%25%3Bfont%2Dsize%3A%2E9em%3Bborder%2Dcollapse%3Acollapse%3Bmargin%3A0%200%20%2E4em%7D%2Eui%2Ddatepicker%20th%7Bpadding%3A%2E7em%20%2E3em%3Btext%2Dalign%3Acenter%3Bfont%2Dweight%3Abold%3Bborder%3A0%7D%2Eui%2Ddatepicker%20td%7Bborder%3A0%3Bpadding%3A1px%7D%2Eui%2Ddatepicker%20td%20span%2C%2Eui%2Ddatepicker%20td%20a%7Bdisplay%3Ablock%3Bpadding%3A%2E2em%3Btext%2Dalign%3Aright%3Btext%2Ddecoration%3Anone%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dbuttonpane%7Bbackground%2Dimage%3Anone%3Bmargin%3A%2E7em%200%200%200%3Bpadding%3A0%20%2E2em%3Bborder%2Dleft%3A0%3Bborder%2Dright%3A0%3Bborder%2Dbottom%3A0%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dbuttonpane%20button%7Bfloat%3Aright%3Bmargin%3A%2E5em%20%2E2em%20%2E4em%3Bcursor%3Apointer%3Bpadding%3A%2E2em%20%2E6em%20%2E3em%20%2E6em%3Bwidth%3Aauto%3Boverflow%3Avisible%7D%2Eui%2Ddatepicker%20%2Eui%2Ddatepicker%2Dbuttonpane%20button%2Eui%2Ddatepicker%2Dcurrent%7Bfloat%3Aleft%7D%2Eui%2Ddatepicker%2Eui%2Ddatepicker%2Dmulti%7Bwidth%3Aauto%7D%2Eui%2Ddatepicker%2Dmulti%20%2Eui%2Ddatepicker%2Dgroup%7Bfloat%3Aleft%7D%2Eui%2Ddatepicker%2Dmulti%20%2Eui%2Ddatepicker%2Dgroup%20table%7Bwidth%3A95%25%3Bmargin%3A0%20auto%20%2E4em%7D%2Eui%2Ddatepicker%2Dmulti%2D2%20%2Eui%2Ddatepicker%2Dgroup%7Bwidth%3A50%25%7D%2Eui%2Ddatepicker%2Dmulti%2D3%20%2Eui%2Ddatepicker%2Dgroup%7Bwidth%3A33%2E3%25%7D%2Eui%2Ddatepicker%2Dmulti%2D4%20%2Eui%2Ddatepicker%2Dgroup%7Bwidth%3A25%25%7D%2Eui%2Ddatepicker%2Dmulti%20%2Eui%2Ddatepicker%2Dgroup%2Dlast%20%2Eui%2Ddatepicker%2Dheader%2C%2Eui%2Ddatepicker%2Dmulti%20%2Eui%2Ddatepicker%2Dgroup%2Dmiddle%20%2Eui%2Ddatepicker%2Dheader%7Bborder%2Dleft%2Dwidth%3A0%7D%2Eui%2Ddatepicker%2Dmulti%20%2Eui%2Ddatepicker%2Dbuttonpane%7Bclear%3Aleft%7D%2Eui%2Ddatepicker%2Drow%2Dbreak%7Bclear%3Aboth%3Bwidth%3A100%25%3Bfont%2Dsize%3A0%7D%2Eui%2Ddatepicker%2Drtl%7Bdirection%3Artl%7D%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dprev%7Bright%3A2px%3Bleft%3Aauto%7D%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dnext%7Bleft%3A2px%3Bright%3Aauto%7D%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dprev%3Ahover%7Bright%3A1px%3Bleft%3Aauto%7D%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dnext%3Ahover%7Bleft%3A1px%3Bright%3Aauto%7D%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dbuttonpane%7Bclear%3Aright%7D%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dbuttonpane%20button%7Bfloat%3Aleft%7D%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dbuttonpane%20button%2Eui%2Ddatepicker%2Dcurrent%2C%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dgroup%7Bfloat%3Aright%7D%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dgroup%2Dlast%20%2Eui%2Ddatepicker%2Dheader%2C%2Eui%2Ddatepicker%2Drtl%20%2Eui%2Ddatepicker%2Dgroup%2Dmiddle%20%2Eui%2Ddatepicker%2Dheader%7Bborder%2Dright%2Dwidth%3A0%3Bborder%2Dleft%2Dwidth%3A1px%7D%2Eui%2Ddialog%7Boverflow%3Ahidden%3Bposition%3Aabsolute%3Btop%3A0%3Bleft%3A0%3Bpadding%3A%2E2em%3Boutline%3A0%7D%2Eui%2Ddialog%20%2Eui%2Ddialog%2Dtitlebar%7Bpadding%3A%2E4em%201em%3Bposition%3Arelative%7D%2Eui%2Ddialog%20%2Eui%2Ddialog%2Dtitle%7Bfloat%3Aleft%3Bmargin%3A%2E1em%200%3Bwhite%2Dspace%3Anowrap%3Bwidth%3A90%25%3Boverflow%3Ahidden%3Btext%2Doverflow%3Aellipsis%7D%2Eui%2Ddialog%20%2Eui%2Ddialog%2Dtitlebar%2Dclose%7Bposition%3Aabsolute%3Bright%3A%2E3em%3Btop%3A50%25%3Bwidth%3A20px%3Bmargin%3A%2D10px%200%200%200%3Bpadding%3A1px%3Bheight%3A20px%7D%2Eui%2Ddialog%20%2Eui%2Ddialog%2Dcontent%7Bposition%3Arelative%3Bborder%3A0%3Bpadding%3A%2E5em%201em%3Bbackground%3Anone%3Boverflow%3Aauto%7D%2Eui%2Ddialog%20%2Eui%2Ddialog%2Dbuttonpane%7Btext%2Dalign%3Aleft%3Bborder%2Dwidth%3A1px%200%200%200%3Bbackground%2Dimage%3Anone%3Bmargin%2Dtop%3A%2E5em%3Bpadding%3A%2E3em%201em%20%2E5em%20%2E4em%7D%2Eui%2Ddialog%20%2Eui%2Ddialog%2Dbuttonpane%20%2Eui%2Ddialog%2Dbuttonset%7Bfloat%3Aright%7D%2Eui%2Ddialog%20%2Eui%2Ddialog%2Dbuttonpane%20button%7Bmargin%3A%2E5em%20%2E4em%20%2E5em%200%3Bcursor%3Apointer%7D%2Eui%2Ddialog%20%2Eui%2Dresizable%2Dse%7Bwidth%3A12px%3Bheight%3A12px%3Bright%3A%2D5px%3Bbottom%3A%2D5px%3Bbackground%2Dposition%3A16px%2016px%7D%2Eui%2Ddraggable%20%2Eui%2Ddialog%2Dtitlebar%7Bcursor%3Amove%7D%2Eui%2Ddraggable%2Dhandle%7B%2Dms%2Dtouch%2Daction%3Anone%3Btouch%2Daction%3Anone%7D%2Eui%2Dmenu%7Blist%2Dstyle%3Anone%3Bpadding%3A0%3Bmargin%3A0%3Bdisplay%3Ablock%3Boutline%3Anone%7D%2Eui%2Dmenu%20%2Eui%2Dmenu%7Bposition%3Aabsolute%7D%2Eui%2Dmenu%20%2Eui%2Dmenu%2Ditem%7Bposition%3Arelative%3Bmargin%3A0%3Bpadding%3A3px%201em%203px%20%2E4em%3Bcursor%3Apointer%3Bmin%2Dheight%3A0%3Blist%2Dstyle%2Dimage%3Aurl%28%22data%3Aimage%2Fgif%3Bbase64%2CR0lGODlhAQABAIAAAAAAAP%2F%2F%2FyH5BAEAAAAALAAAAAABAAEAAAIBRAA7%22%29%7D%2Eui%2Dmenu%20%2Eui%2Dmenu%2Ddivider%7Bmargin%3A5px%200%3Bheight%3A0%3Bfont%2Dsize%3A0%3Bline%2Dheight%3A0%3Bborder%2Dwidth%3A1px%200%200%200%7D%2Eui%2Dmenu%20%2Eui%2Dstate%2Dfocus%2C%2Eui%2Dmenu%20%2Eui%2Dstate%2Dactive%7Bmargin%3A%2D1px%7D%2Eui%2Dmenu%2Dicons%7Bposition%3Arelative%7D%2Eui%2Dmenu%2Dicons%20%2Eui%2Dmenu%2Ditem%7Bpadding%2Dleft%3A2em%7D%2Eui%2Dmenu%20%2Eui%2Dicon%7Bposition%3Aabsolute%3Btop%3A0%3Bbottom%3A0%3Bleft%3A%2E2em%3Bmargin%3Aauto%200%7D%2Eui%2Dmenu%20%2Eui%2Dmenu%2Dicon%7Bleft%3Aauto%3Bright%3A0%7D%2Eui%2Dprogressbar%7Bheight%3A2em%3Btext%2Dalign%3Aleft%3Boverflow%3Ahidden%7D%2Eui%2Dprogressbar%20%2Eui%2Dprogressbar%2Dvalue%7Bmargin%3A%2D1px%3Bheight%3A100%25%7D%2Eui%2Dprogressbar%20%2Eui%2Dprogressbar%2Doverlay%7Bbackground%3Aurl%28%22data%3Aimage%2Fgif%3Bbase64%2CR0lGODlhKAAoAIABAAAAAP%2F%2F%2FyH%2FC05FVFNDQVBFMi4wAwEAAAAh%2BQQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI%2B4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc%2Bw9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA%2BHycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgA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ui%2Dprogressbar%2Dindeterminate%20%2Eui%2Dprogressbar%2Dvalue%7Bbackground%2Dimage%3Anone%7D%2Eui%2Dresizable%7Bposition%3Arelative%7D%2Eui%2Dresizable%2Dhandle%7Bposition%3Aabsolute%3Bfont%2Dsize%3A0%2E1px%3Bdisplay%3Ablock%3B%2Dms%2Dtouch%2Daction%3Anone%3Btouch%2Daction%3Anone%7D%2Eui%2Dresizable%2Ddisabled%20%2Eui%2Dresizable%2Dhandle%2C%2Eui%2Dresizable%2Dautohide%20%2Eui%2Dresizable%2Dhandle%7Bdisplay%3Anone%7D%2Eui%2Dresizable%2Dn%7Bcursor%3An%2Dresize%3Bheight%3A7px%3Bwidth%3A100%25%3Btop%3A%2D5px%3Bleft%3A0%7D%2Eui%2Dresizable%2Ds%7Bcursor%3As%2Dresize%3Bheight%3A7px%3Bwidth%3A100%25%3Bbottom%3A%2D5px%3Bleft%3A0%7D%2Eui%2Dresizable%2De%7Bcursor%3Ae%2Dresize%3Bwidth%3A7px%3Bright%3A%2D5px%3Btop%3A0%3Bheight%3A100%25%7D%2Eui%2Dresizable%2Dw%7Bcursor%3Aw%2Dresize%3Bwidth%3A7px%3Bleft%3A%2D5px%3Btop%3A0%3Bheight%3A100%25%7D%2Eui%2Dresizable%2Dse%7Bcursor%3Ase%2Dresize%3Bwidth%3A12px%3Bheight%3A12px%3Bright%3A1px%3Bbottom%3A1px%7D%2Eui%2Dresizable%2Dsw%7Bcursor%3Asw%2Dresize%3Bwidth%3A9px%3Bheight%3A9px%3Bleft%3A%2D5px%3Bbottom%3A%2D5px%7D%2Eui%2Dresizable%2Dnw%7Bcursor%3Anw%2Dresize%3Bwidth%3A9px%3Bheight%3A9px%3Bleft%3A%2D5px%3Btop%3A%2D5px%7D%2Eui%2Dresizable%2Dne%7Bcursor%3Ane%2Dresize%3Bwidth%3A9px%3Bheight%3A9px%3Bright%3A%2D5px%3Btop%3A%2D5px%7D%2Eui%2Dselectable%7B%2Dms%2Dtouch%2Daction%3Anone%3Btouch%2Daction%3Anone%7D%2Eui%2Dselectable%2Dhelper%7Bposition%3Aabsolute%3Bz%2Dindex%3A100%3Bborder%3A1px%20dotted%20black%7D%2Eui%2Dselectmenu%2Dmenu%7Bpadding%3A0%3Bmargin%3A0%3Bposition%3Aabsolute%3Btop%3A0%3Bleft%3A0%3Bdisplay%3Anone%7D%2Eui%2Dselectmenu%2Dmenu%20%2Eui%2Dmenu%7Boverflow%3Aauto%3Boverflow%2Dx%3Ahidden%3Bpadding%2Dbottom%3A1px%7D%2Eui%2Dselectmenu%2Dmenu%20%2Eui%2Dmenu%20%2Eui%2Dselectmenu%2Doptgroup%7Bfont%2Dsize%3A1em%3Bfont%2Dweight%3Abold%3Bline%2Dheight%3A1%2E5%3Bpadding%3A2px%200%2E4em%3Bmargin%3A0%2E5em%200%200%200%3Bheight%3Aauto%3Bborder%3A0%7D%2Eui%2Dselectmenu%2Dopen%7Bdisplay%3Ablock%7D%2Eui%2Dselectmenu%2Dbutton%7Bdisplay%3Ainline%2Dblock%3Boverflow%3Ahidden%3Bposition%3Arelative%3Btext%2Ddecoration%3Anone%3Bcursor%3Apointer%7D%2Eui%2Dselectmenu%2Dbutton%20span%2Eui%2Dicon%7Bright%3A0%2E5em%3Bleft%3Aauto%3Bmargin%2Dtop%3A%2D8px%3Bposition%3Aabsolute%3Btop%3A50%25%7D%2Eui%2Dselectmenu%2Dbutton%20span%2Eui%2Dselectmenu%2Dtext%7Btext%2Dalign%3Aleft%3Bpadding%3A0%2E4em%202%2E1em%200%2E4em%201em%3Bdisplay%3Ablock%3Bline%2Dheight%3A1%2E4%3Boverflow%3Ahidden%3Btext%2Doverflow%3Aellipsis%3Bwhite%2Dspace%3Anowrap%7D%2Eui%2Dslider%7Bposition%3Arelative%3Btext%2Dalign%3Aleft%7D%2Eui%2Dslider%20%2Eui%2Dslider%2Dhandle%7Bposition%3Aabsolute%3Bz%2Dindex%3A2%3Bwidth%3A1%2E2em%3Bheight%3A1%2E2em%3Bcursor%3Adefault%3B%2Dms%2Dtouch%2Daction%3Anone%3Btouch%2Daction%3Anone%7D%2Eui%2Dslider%20%2Eui%2Dslider%2Drange%7Bposition%3Aabsolute%3Bz%2Dindex%3A1%3Bfont%2Dsize%3A%2E7em%3Bdisplay%3Ablock%3Bborder%3A0%3Bbackground%2Dposition%3A0%200%7D%2Eui%2Dslider%2Eui%2Dstate%2Ddisabled%20%2Eui%2Dslider%2Dhandle%2C%2Eui%2Dslider%2Eui%2Dstate%2Ddisabled%20%2Eui%2Dslider%2Drange%7Bfilter%3Ainherit%7D%2Eui%2Dslider%2Dhorizontal%7Bheight%3A%2E8em%7D%2Eui%2Dslider%2Dhorizontal%20%2Eui%2Dslider%2Dhandle%7Btop%3A%2D%2E3em%3Bmargin%2Dleft%3A%2D%2E6em%7D%2Eui%2Dslider%2Dhorizontal%20%2Eui%2Dslider%2Drange%7Btop%3A0%3Bheight%3A100%25%7D%2Eui%2Dslider%2Dhorizontal%20%2Eui%2Dslider%2Drange%2Dmin%7Bleft%3A0%7D%2Eui%2Dslider%2Dhorizontal%20%2Eui%2Dslider%2Drange%2Dmax%7Bright%3A0%7D%2Eui%2Dslider%2Dvertical%7Bwidth%3A%2E8em%3Bheight%3A100px%7D%2Eui%2Dslider%2Dvertical%20%2Eui%2Dslider%2Dhandle%7Bleft%3A%2D%2E3em%3Bmargin%2Dleft%3A0%3Bmargin%2Dbottom%3A%2D%2E6em%7D%2Eui%2Dslider%2Dvertical%20%2Eui%2Dslider%2Drange%7Bleft%3A0%3Bwidth%3A100%25%7D%2Eui%2Dslider%2Dvertical%20%2Eui%2Dslider%2Drange%2Dmin%7Bbottom%3A0%7D%2Eui%2Dslider%2Dvertical%20%2Eui%2Dslider%2Drange%2Dmax%7Btop%3A0%7D%2Eui%2Dsortable%2Dhandle%7B%2Dms%2Dtouch%2Daction%3Anone%3Btouch%2Daction%3Anone%7D%2Eui%2Dspinner%7Bposition%3Arelative%3Bdisplay%3Ainline%2Dblock%3Boverflow%3Ahidden%3Bpadding%3A0%3Bvertical%2Dalign%3Amiddle%7D%2Eui%2Dspinner%2Dinput%7Bborder%3Anone%3Bbackground%3Anone%3Bcolor%3Ainherit%3Bpadding%3A0%3Bmargin%3A%2E2em%200%3Bvertical%2Dalign%3Amiddle%3Bmargin%2Dleft%3A%2E4em%3Bmargin%2Dright%3A22px%7D%2Eui%2Dspinner%2Dbutton%7Bwidth%3A16px%3Bheight%3A50%25%3Bfont%2Dsize%3A%2E5em%3Bpadding%3A0%3Bmargin%3A0%3Btext%2Dalign%3Acenter%3Bposition%3Aabsolute%3Bcursor%3Adefault%3Bdisplay%3Ablock%3Boverflow%3Ahidden%3Bright%3A0%7D%2Eui%2Dspinner%20a%2Eui%2Dspinner%2Dbutton%7Bborder%2Dtop%3Anone%3Bborder%2Dbottom%3Anone%3Bborder%2Dright%3Anone%7D%2Eui%2Dspinner%20%2Eui%2Dicon%7Bposition%3Aabsolute%3Bmargin%2Dtop%3A%2D8px%3Btop%3A50%25%3Bleft%3A0%7D%2Eui%2Dspinner%2Dup%7Btop%3A0%7D%2Eui%2Dspinner%2Ddown%7Bbottom%3A0%7D%2Eui%2Dspinner%20%2Eui%2Dicon%2Dtriangle%2D1%2Ds%7Bbackground%2Dposition%3A%2D65px%20%2D16px%7D%2Eui%2Dtabs%7Bposition%3Arelative%3Bpadding%3A%2E2em%7D%2Eui%2Dtabs%20%2Eui%2Dtabs%2Dnav%7Bmargin%3A0%3Bpadding%3A%2E2em%20%2E2em%200%7D%2Eui%2Dtabs%20%2Eui%2Dtabs%2Dnav%20li%7Blist%2Dstyle%3Anone%3Bfloat%3Aleft%3Bposition%3Arelative%3Btop%3A0%3Bmargin%3A1px%20%2E2em%200%200%3Bborder%2Dbottom%2Dwidth%3A0%3Bpadding%3A0%3Bwhite%2Dspace%3Anowrap%7D%2Eui%2Dtabs%20%2Eui%2Dtabs%2Dnav%20%2Eui%2Dtabs%2Danchor%7Bfloat%3Aleft%3Bpadding%3A%2E5em%201em%3Btext%2Ddecoration%3Anone%7D%2Eui%2Dtabs%20%2Eui%2Dtabs%2Dnav%20li%2Eui%2Dtabs%2Dactive%7Bmargin%2Dbottom%3A%2D1px%3Bpadding%2Dbottom%3A1px%7D%2Eui%2Dtabs%20%2Eui%2Dtabs%2Dnav%20li%2Eui%2Dtabs%2Dactive%20%2Eui%2Dtabs%2Danchor%2C%2Eui%2Dtabs%20%2Eui%2Dtabs%2Dnav%20li%2Eui%2Dstate%2Ddisabled%20%2Eui%2Dtabs%2Danchor%2C%2Eui%2Dtabs%20%2Eui%2Dtabs%2Dnav%20li%2Eui%2Dtabs%2Dloading%20%2Eui%2Dtabs%2Danchor%7Bcursor%3Atext%7D%2Eui%2Dtabs%2Dcollapsible%20%2Eui%2Dtabs%2Dnav%20li%2Eui%2Dtabs%2Dactive%20%2Eui%2Dtabs%2Danchor%7Bcursor%3Apointer%7D%2Eui%2Dtabs%20%2Eui%2Dtabs%2Dpanel%7Bdisplay%3Ablock%3Bborder%2Dwidth%3A0%3Bpadding%3A1em%201%2E4em%3Bbackground%3Anone%7D%2Eui%2Dtooltip%7Bpadding%3A8px%3Bposition%3Aabsolute%3Bz%2Dindex%3A9999%3Bmax%2Dwidth%3A300px%3B%2Dwebkit%2Dbox%2Dshadow%3A0%200%205px%20%23aaa%3Bbox%2Dshadow%3A0%200%205px%20%23aaa%7Dbody%20%2Eui%2Dtooltip%7Bborder%2Dwidth%3A2px%7D%2Eui%2Dwidget%7Bfont%2Dfamily%3ATrebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans%2Dserif%3Bfont%2Dsize%3A1%2E1em%7D%2Eui%2Dwidget%20%2Eui%2Dwidget%7Bfont%2Dsize%3A1em%7D%2Eui%2Dwidget%20input%2C%2Eui%2Dwidget%20select%2C%2Eui%2Dwidget%20textarea%2C%2Eui%2Dwidget%20button%7Bfont%2Dfamily%3ATrebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans%2Dserif%3Bfont%2Dsize%3A1em%7D%2Eui%2Dwidget%2Dcontent%7Bborder%3A1px%20solid%20%23ddd%3Bbackground%3A%23eee%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAYAAABHLFpgAAAAIUlEQVQYlWP48ePHfyYGBgaGIUT8%2F%2F8fO5cSFn6J4UQAAJSgIpAFCJPdAAAAAElFTkSuQmCC%29%2050%25%20top%20repeat%2Dx%3Bcolor%3A%23333%7D%2Eui%2Dwidget%2Dcontent%20a%7Bcolor%3A%23333%7D%2Eui%2Dwidget%2Dheader%7Bborder%3A1px%20solid%20%23e78f08%3Bbackground%3A%23f6a828%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAfQAAABkCAYAAABwx8J9AAAOeUlEQVR4nO2dW44buxFAybH2k40ESNaZBSRZVr5i4CYzzIfdcU%2B5nmz2WEOfAxgjkfVi8VGSuiX3r%2F%2F862gAAADwqXn51QEAAADAdSjoAAAAG0BBBwAA2AAKOgAAwAZQ0AEAADaAgg4AALABFHQAAIANoKADAABsAAUdAABgAyjoAAAAG0BBBwAA2AAKOgAAwAZQ0AEAADaAgg4AALABFHQAAIANoKADAABsAAUdAABgAyjoAAAAG0BBBwAA2AAKOgAAwAZQ0AEAADbg0X91BAAAAHAZ3qEDAABsAAUdAABgAyjoAAAAG%2FAYY7Tev11J1x6PMd4pHP0HR%2F8h69nS9KRuJHuOQfqW9rR4NXsaMibLd7Xdi13LgzUOawxWHNbYpD1r%2FjM5tcam%2BZGxaL6lvJUXa814Y7FkrfhndTW8MWt%2BtL1hrUlrz1l59%2BZM8xFhxRqdK9Y4tPi9teHZ1NotO9UYo%2F2s%2BZqJM2PfOrcza8bqt84lGaOno%2BXJO%2Fuz9ciKKTpXvFxa%2B9DKp%2BYzqk9RHfPmQY7n%2F%2FJf%2F%2FGXuLoBAADAU8NH7gAAABtAQQcAANgACjoAAMAGPFrjEjoAAMBnh3foAAAAG0BBBwAA2IBH876T3Xtz%2Bw%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HaVbZehYq8VTW3YrzYGWuqnYr8t%2F7H6P0sRUAAAA8I9zlDgAAsAEvren3BZ6J%2BrN6XbTJ55ZuL8h6%2FioyXemXMXm%2Bz7qW%2FShuLV%2BRjWgs8q9lPxqXFqtHdo4qa60S4xX7V%2BbPsx2tPet5FFs1Fk3e6oviysR0heoe1PqzedfkLZ9RLjJrtbrOIr%2FRGLP5y8pkYsrqZ3LhPY7GWR2PVbsqezNzHli2vLazv8fspsgye2BldaP2qC%2Fra7aoRzFUdVcVgOzGyMSUka%2FY%2ByxFPWNrxdqLZCoHZZbdi3qlzfL1UUU9q5vt%2BwxFPWvD29cri7qns6qoz9iXzx9tvAYuAAAA4Nn5H1zs1G5bhz0MAAAAAElFTkSuQmCC%29%2050%25%2050%25%20repeat%2Dx%3Bcolor%3A%23fff%3Bfont%2Dweight%3Abold%7D%2Eui%2Dwidget%2Dheader%20a%7Bcolor%3A%23fff%7D%2Eui%2Dstate%2Ddefault%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Ddefault%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Ddefault%7Bborder%3A1px%20solid%20%23ccc%3Bbackground%3A%23f6f6f6%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAL0lEQVQ4je3HsQ0AIBDDwIT9F%2F4igpYiAyDk5mRrZvaSJAD4liT32u7bqi0APMcBiYQKDwcroFAAAAAASUVORK5CYII%3D%29%2050%25%2050%25%20repeat%2Dx%3Bfont%2Dweight%3Abold%3Bcolor%3A%231c94c4%7D%2Eui%2Dstate%2Ddefault%20a%2C%2Eui%2Dstate%2Ddefault%20a%3Alink%2C%2Eui%2Dstate%2Ddefault%20a%3Avisited%7Bcolor%3A%231c94c4%3Btext%2Ddecoration%3Anone%7D%2Eui%2Dstate%2Dhover%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Dhover%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Dhover%2C%2Eui%2Dstate%2Dfocus%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Dfocus%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Dfocus%7Bborder%3A1px%20solid%20%23fbcb09%3Bbackground%3A%23fdf5ce%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAARElEQVQ4jWP4%2B%2FPhfyYGBgaGUWKUGCWGL%2FHnLQMTAwMjjGBkYmBiYGBiYGJgZEZlMcNlYRKMCMUQAwbcM6PEKDFKYCEAGrQJAcbElNQAAAAASUVORK5CYII%3D%29%2050%25%2050%25%20repeat%2Dx%3Bfont%2Dweight%3Abold%3Bcolor%3A%23c77405%7D%2Eui%2Dstate%2Dhover%20a%2C%2Eui%2Dstate%2Dhover%20a%3Ahover%2C%2Eui%2Dstate%2Dhover%20a%3Alink%2C%2Eui%2Dstate%2Dhover%20a%3Avisited%2C%2Eui%2Dstate%2Dfocus%20a%2C%2Eui%2Dstate%2Dfocus%20a%3Ahover%2C%2Eui%2Dstate%2Dfocus%20a%3Alink%2C%2Eui%2Dstate%2Dfocus%20a%3Avisited%7Bcolor%3A%23c77405%3Btext%2Ddecoration%3Anone%7D%2Eui%2Dstate%2Dactive%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Dactive%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Dactive%7Bborder%3A1px%20solid%20%23fbd850%3Bbackground%3A%23fff%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAMElEQVQ4je3LIQ4AIBTD0O3f%2F8wrFgmKhMy8pKJKwkhSKeVbbGuAPU9f4PIopTxgAeS0DRtI4yK0AAAAAElFTkSuQmCC%29%2050%25%2050%25%20repeat%2Dx%3Bfont%2Dweight%3Abold%3Bcolor%3A%23eb8f00%7D%2Eui%2Dstate%2Dactive%20a%2C%2Eui%2Dstate%2Dactive%20a%3Alink%2C%2Eui%2Dstate%2Dactive%20a%3Avisited%7Bcolor%3A%23eb8f00%3Btext%2Ddecoration%3Anone%7D%2Eui%2Dstate%2Dhighlight%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Dhighlight%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Dhighlight%7Bborder%3A1px%20solid%20%23fed22f%3Bbackground%3A%23ffe45c%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAYAAAEwK2r2AAAAbklEQVQYlbWOOw7CUBADZ33%2Fa3CxSIiWhOb9sqZ5XYIUhGimWa89%2BHmzAA7IDbktiHFHQR4jAGcF9kCMB6IvKHK7%2FvsZWZDzhdhXRK5TMlyuFfwy%2Fg2cDeGOgoqcFeGKcJm6zjqvuCO7ofiHywneAMFDuRb22m0AAAAASUVORK5CYII%3D%29%2050%25%20top%20repeat%2Dx%3Bcolor%3A%23363636%7D%2Eui%2Dstate%2Dhighlight%20a%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Dhighlight%20a%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Dhighlight%20a%7Bcolor%3A%23363636%7D%2Eui%2Dstate%2Derror%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Derror%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Derror%7Bborder%3A1px%20solid%20%23cd0a0a%3Bbackground%3A%23b81900%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM%2FrhtAAAAy0lEQVRYhe3XQQrCMBSE4d8svIH0Ft5%2F5X3EG7jRTYUYk5ekackgb5alDF8LbZjT7bq8SPJ83NNLPzlfluo9e%2FSFPctyGe37AqrhIAIq4mAFquIAgjIOMh%2FJSNkRD2sCZ%2BPAeIMKOCgAVXCQASrhIAGq4SACKuJgBariAIIyDhp%2B1D1lRzxsE3DmcVgFzj6rTeBsHBhABRwUgCo48E3im6Sv7BPfJFvLfJOMllnxTdJSlotvkp6yOL5JtpSBb5Kxstb4JimV1fKXm%2BQNcHvyUkD%2FBIAAAAAASUVORK5CYII%3D%29%2050%25%2050%25%20repeat%3Bcolor%3A%23fff%7D%2Eui%2Dstate%2Derror%20a%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Derror%20a%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Derror%20a%7Bcolor%3A%23fff%7D%2Eui%2Dstate%2Derror%2Dtext%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Derror%2Dtext%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Derror%2Dtext%7Bcolor%3A%23fff%7D%2Eui%2Dpriority%2Dprimary%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dpriority%2Dprimary%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dpriority%2Dprimary%7Bfont%2Dweight%3Abold%7D%2Eui%2Dpriority%2Dsecondary%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dpriority%2Dsecondary%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dpriority%2Dsecondary%7Bopacity%3A%2E7%3Bfilter%3AAlpha%28Opacity%3D70%29%3Bfont%2Dweight%3Anormal%7D%2Eui%2Dstate%2Ddisabled%2C%2Eui%2Dwidget%2Dcontent%20%2Eui%2Dstate%2Ddisabled%2C%2Eui%2Dwidget%2Dheader%20%2Eui%2Dstate%2Ddisabled%7Bopacity%3A%2E35%3Bfilter%3AAlpha%28Opacity%3D35%29%3Bbackground%2Dimage%3Anone%7D%2Eui%2Dstate%2Ddisabled%20%2Eui%2Dicon%7Bfilter%3AAlpha%28Opacity%3D35%29%7D%2Eui%2Dicon%7Bwidth%3A16px%3Bheight%3A16px%7D%2Eui%2Dicon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%2FK5%2Baz8jIyMhYG%2Fz5gJTMF1GtKq%2Fa3rpyCvz5gJTMl9GtKq%2Fa3rpyCmfQ4WwZmS%2BkXFVetb115ST48wEf%2FAGcfG1iw%2BtWbpbS2vJ3nQxcVr3lH3z5h972FUTLzYpOVk7l5hD%2BeYcYwDcAnewOotrZ4OtrPDucqi%2FLRX0%2FRR4qx7Nn4U8g%2BqjffvuN6Gf%2BnC85vwauHjaYyubqvWYKY4VEfSUMitdnBCT1Ue63R5439m%2BOgCn6DroAAaHPVQxKth%2FwkJgHmG8bmQMsT0D6EjDfvhVRKO3ywOQUgRA7nmL1uawZmHf1k%2BDPBwQ6NdcJ%2Bk6Md1LA5f5ONdhJ8vZ5J0vLHT99srkGOjmJbd%2FG1r2Nriqnse1AZt1AalU5jW2HsuuG0qvKGRkZGRkZGRG0gcONyXsP9v8D0%2FIdJADiBNiXl3327WRGgOL%2F9HC%2F0XwlIURkRhC4tz6Z%2Ffu7fUf2gHvfB9z3u0BGRkZGRkbGplHcnkgguQoSqtUXuhbs%2FwPtMwqV0HUJAvj5vk32b8IDuL23yn7qAXZ5u32hbRX7d3o82Df1FZXvbh9QOfhyxldr%2F%2B3xgXU9oKmvsHyr7F%2FXA269%2FeveBXrsv7N9QALe%2FtvjA0kPWAXGbvebkbHn%2BD%2FJ5nMcHzx1UAAAAABJRU5ErkJggg%3D%3D%29%7D%2Eui%2Dstate%2Derror%20%2Eui%2Dicon%2C%2Eui%2Dstate%2Derror%2Dtext%20%2Eui%2Dicon%7Bbackground%2Dimage%3Aurl%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAMAAADYSUr5AAAA7VBMVEX80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz80nz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OVk7l5hD%2BeYcYwDcAnewOotrZ4OtrPDucqi%2FLRX0%2FRR4qx7Nn4U8g%2BqjffvuN6Gf%2BnC85vwauHjaYyubqvWYKY4VEfSUMitdnBCT1Ue63R5439m%2BOgCn6DroAAaHPVQxKth%2FwkJgHmG8bmQMsT0D6EjDfvhVRKO3ywOQUgRA7nmL1uawZmHf1k%2BDPBwQ6NdcJ%2Bk6Md1LA5f5ONdhJ8vZ5J0vLHT99srkGOjmJbd%2FG1r2Nriqnse1AZt1AalU5jW2HsuuG0qvKGRkZGRkZGRG0gcONyXsP9v8D0%2FIdJADiBNiXl3327WRGgOL%2F9HC%2F0XwlIURkRhC4tz6Z%2Ffu7fUf2gHvfB9z3u0BGRkZGRkbGplHcnkgguQoSqtUXuhbs%2FwPtMwqV0HUJAvj5vk32b8IDuL23yn7qAXZ5u32hbRX7d3o82Df1FZXvbh9QOfhyxldr%2F%2B3xgXU9oKmvsHyr7F%2FXA269%2FeveBXrsv7N9QALe%2FtvjA0kPWAXGbvebkbHn%2BD%2FJ5nMcHzx1UAAAAABJRU5ErkJggg%3D%3D%29%7D%2Eui%2Dicon%2Dblank%7Bbackground%2Dposition%3A16px%2016px%7D%2Eui%2Dicon%2Dcarat%2D1%2Dn%7Bbackground%2Dposition%3A0%200%7D%2Eui%2Dicon%2Dcarat%2D1%2Dne%7Bbackground%2Dposition%3A%2D16px%200%7D%2Eui%2Dicon%2Dcarat%2D1%2De%7Bbackground%2Dposition%3A%2D32px%200%7D%2Eui%2Dicon%2Dcarat%2D1%2Dse%7Bbackground%2Dposition%3A%2D48px%200%7D%2Eui%2Dicon%2Dcarat%2D1%2Ds%7Bbackground%2Dposition%3A%2D64px%200%7D%2Eui%2Dicon%2Dcarat%2D1%2Dsw%7Bbackground%2Dposition%3A%2D80px%200%7D%2Eui%2Dicon%2Dcarat%2D1%2Dw%7Bbackground%2Dposition%3A%2D96px%200%7D%2Eui%2Dicon%2Dcarat%2D1%2Dnw%7Bbackground%2Dposition%3A%2D112px%200%7D%2Eui%2Dicon%2Dcarat%2D2%2Dn%2Ds%7Bbackground%2Dposition%3A%2D128px%200%7D%2Eui%2Dicon%2Dcarat%2D2%2De%2Dw%7Bbackground%2Dposition%3A%2D144px%200%7D%2Eui%2Dicon%2Dtriangle%2D1%2Dn%7Bbackground%2Dposition%3A0%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D1%2Dne%7Bbackground%2Dposition%3A%2D16px%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D1%2De%7Bbackground%2Dposition%3A%2D32px%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D1%2Dse%7Bbackground%2Dposition%3A%2D48px%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D1%2Ds%7Bbackground%2Dposition%3A%2D64px%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D1%2Dsw%7Bbackground%2Dposition%3A%2D80px%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D1%2Dw%7Bbackground%2Dposition%3A%2D96px%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D1%2Dnw%7Bbackground%2Dposition%3A%2D112px%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D2%2Dn%2Ds%7Bbackground%2Dposition%3A%2D128px%20%2D16px%7D%2Eui%2Dicon%2Dtriangle%2D2%2De%2Dw%7Bbackground%2Dposition%3A%2D144px%20%2D16px%7D%2Eui%2Dicon%2Darrow%2D1%2Dn%7Bbackground%2Dposition%3A0%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D1%2Dne%7Bbackground%2Dposition%3A%2D16px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D1%2De%7Bbackground%2Dposition%3A%2D32px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D1%2Dse%7Bbackground%2Dposition%3A%2D48px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D1%2Ds%7Bbackground%2Dposition%3A%2D64px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D1%2Dsw%7Bbackground%2Dposition%3A%2D80px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D1%2Dw%7Bbackground%2Dposition%3A%2D96px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D1%2Dnw%7Bbackground%2Dposition%3A%2D112px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D2%2Dn%2Ds%7Bbackground%2Dposition%3A%2D128px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D2%2Dne%2Dsw%7Bbackground%2Dposition%3A%2D144px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D2%2De%2Dw%7Bbackground%2Dposition%3A%2D160px%20%2D32px%7D%2Eui%2Dicon%2Darrow%2D2%2Dse%2Dnw%7Bbackground%2Dposition%3A%2D176px%20%2D32px%7D%2Eui%2Dicon%2Darrowstop%2D1%2Dn%7Bbackground%2Dposition%3A%2D192px%20%2D32px%7D%2Eui%2Dicon%2Darrowstop%2D1%2De%7Bbackground%2Dposition%3A%2D208px%20%2D32px%7D%2Eui%2Dicon%2Darrowstop%2D1%2Ds%7Bbackground%2Dposition%3A%2D224px%20%2D32px%7D%2Eui%2Dicon%2Darrowstop%2D1%2Dw%7Bbackground%2Dposition%3A%2D240px%20%2D32px%7D%2Eui%2Dicon%2Darrowthick%2D1%2Dn%7Bbackground%2Dposition%3A0%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D1%2Dne%7Bbackground%2Dposition%3A%2D16px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D1%2De%7Bbackground%2Dposition%3A%2D32px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D1%2Dse%7Bbackground%2Dposition%3A%2D48px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D1%2Ds%7Bbackground%2Dposition%3A%2D64px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D1%2Dsw%7Bbackground%2Dposition%3A%2D80px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D1%2Dw%7Bbackground%2Dposition%3A%2D96px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D1%2Dnw%7Bbackground%2Dposition%3A%2D112px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D2%2Dn%2Ds%7Bbackground%2Dposition%3A%2D128px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D2%2Dne%2Dsw%7Bbackground%2Dposition%3A%2D144px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D2%2De%2Dw%7Bbackground%2Dposition%3A%2D160px%20%2D48px%7D%2Eui%2Dicon%2Darrowthick%2D2%2Dse%2Dnw%7Bbackground%2Dposition%3A%2D176px%20%2D48px%7D%2Eui%2Dicon%2Darrowthickstop%2D1%2Dn%7Bbackground%2Dposition%3A%2D192px%20%2D48px%7D%2Eui%2Dicon%2Darrowthickstop%2D1%2De%7Bbackground%2Dposition%3A%2D208px%20%2D48px%7D%2Eui%2Dicon%2Darrowthickstop%2D1%2Ds%7Bbackground%2Dposition%3A%2D224px%20%2D48px%7D%2Eui%2Dicon%2Darrowthickstop%2D1%2Dw%7Bbackground%2Dposition%3A%2D240px%20%2D48px%7D%2Eui%2Dicon%2Darrowreturnthick%2D1%2Dw%7Bbackground%2Dposition%3A0%20%2D64px%7D%2Eui%2Dicon%2Darrowreturnthick%2D1%2Dn%7Bbackground%2Dposition%3A%2D16px%20%2D64px%7D%2Eui%2Dicon%2Darrowreturnthick%2D1%2De%7Bbackground%2Dposition%3A%2D32px%20%2D64px%7D%2Eui%2Dicon%2Darrowreturnthick%2D1%2Ds%7Bbackground%2Dposition%3A%2D48px%20%2D64px%7D%2Eui%2Dicon%2Darrowreturn%2D1%2Dw%7Bbackground%2Dposition%3A%2D64px%20%2D64px%7D%2Eui%2Dicon%2Darrowreturn%2D1%2Dn%7Bbackground%2Dposition%3A%2D80px%20%2D64px%7D%2Eui%2Dicon%2Darrowreturn%2D1%2De%7Bbackground%2Dposition%3A%2D96px%20%2D64px%7D%2Eui%2Dicon%2Darrowreturn%2D1%2Ds%7Bbackground%2Dposition%3A%2D112px%20%2D64px%7D%2Eui%2Dicon%2Darrowrefresh%2D1%2Dw%7Bbackground%2Dposition%3A%2D128px%20%2D64px%7D%2Eui%2Dicon%2Darrowrefresh%2D1%2Dn%7Bbackground%2Dposition%3A%2D144px%20%2D64px%7D%2Eui%2Dicon%2Darrowrefresh%2D1%2De%7Bbackground%2Dposition%3A%2D160px%20%2D64px%7D%2Eui%2Dicon%2Darrowrefresh%2D1%2Ds%7Bbackground%2Dposition%3A%2D176px%20%2D64px%7D%2Eui%2Dicon%2Darrow%2D4%7Bbackground%2Dposition%3A0%20%2D80px%7D%2Eui%2Dicon%2Darrow%2D4%2Ddiag%7Bbackground%2Dposition%3A%2D16px%20%2D80px%7D%2Eui%2Dicon%2Dextlink%7Bbackground%2Dposition%3A%2D32px%20%2D80px%7D%2Eui%2Dicon%2Dnewwin%7Bbackground%2Dposition%3A%2D48px%20%2D80px%7D%2Eui%2Dicon%2Drefresh%7Bbackground%2Dposition%3A%2D64px%20%2D80px%7D%2Eui%2Dicon%2Dshuffle%7Bbackground%2Dposition%3A%2D80px%20%2D80px%7D%2Eui%2Dicon%2Dtransfer%2De%2Dw%7Bbackground%2Dposition%3A%2D96px%20%2D80px%7D%2Eui%2Dicon%2Dtransferthick%2De%2Dw%7Bbackground%2Dposition%3A%2D112px%20%2D80px%7D%2Eui%2Dicon%2Dfolder%2Dcollapsed%7Bbackground%2Dposition%3A0%20%2D96px%7D%2Eui%2Dicon%2Dfolder%2Dopen%7Bbackground%2Dposition%3A%2D16px%20%2D96px%7D%2Eui%2Dicon%2Ddocument%7Bbackground%2Dposition%3A%2D32px%20%2D96px%7D%2Eui%2Dicon%2Ddocument%2Db%7Bbackground%2Dposition%3A%2D48px%20%2D96px%7D%2Eui%2Dicon%2Dnote%7Bbackground%2Dposition%3A%2D64px%20%2D96px%7D%2Eui%2Dicon%2Dmail%2Dclosed%7Bbackground%2Dposition%3A%2D80px%20%2D96px%7D%2Eui%2Dicon%2Dmail%2Dopen%7Bbackground%2Dposition%3A%2D96px%20%2D96px%7D%2Eui%2Dicon%2Dsuitcase%7Bbackground%2Dposition%3A%2D112px%20%2D96px%7D%2Eui%2Dicon%2Dcomment%7Bbackground%2Dposition%3A%2D128px%20%2D96px%7D%2Eui%2Dicon%2Dperson%7Bbackground%2Dposition%3A%2D144px%20%2D96px%7D%2Eui%2Dicon%2Dprint%7Bbackground%2Dposition%3A%2D160px%20%2D96px%7D%2Eui%2Dicon%2Dtrash%7Bbackground%2Dposition%3A%2D176px%20%2D96px%7D%2Eui%2Dicon%2Dlocked%7Bbackground%2Dposition%3A%2D192px%20%2D96px%7D%2Eui%2Dicon%2Dunlocked%7Bbackground%2Dposition%3A%2D208px%20%2D96px%7D%2Eui%2Dicon%2Dbookmark%7Bbackground%2Dposition%3A%2D224px%20%2D96px%7D%2Eui%2Dicon%2Dtag%7Bbackground%2Dposition%3A%2D240px%20%2D96px%7D%2Eui%2Dicon%2Dhome%7Bbackground%2Dposition%3A0%20%2D112px%7D%2Eui%2Dicon%2Dflag%7Bbackground%2Dposition%3A%2D16px%20%2D112px%7D%2Eui%2Dicon%2Dcalendar%7Bbackground%2Dposition%3A%2D32px%20%2D112px%7D%2Eui%2Dicon%2Dcart%7Bbackground%2Dposition%3A%2D48px%20%2D112px%7D%2Eui%2Dicon%2Dpencil%7Bbackground%2Dposition%3A%2D64px%20%2D112px%7D%2Eui%2Dicon%2Dclock%7Bbackground%2Dposition%3A%2D80px%20%2D112px%7D%2Eui%2Dicon%2Ddisk%7Bbackground%2Dposition%3A%2D96px%20%2D112px%7D%2Eui%2Dicon%2Dcalculator%7Bbackground%2Dposition%3A%2D112px%20%2D112px%7D%2Eui%2Dicon%2Dzoomin%7Bbackground%2Dposition%3A%2D128px%20%2D112px%7D%2Eui%2Dicon%2Dzoomout%7Bbackground%2Dposition%3A%2D144px%20%2D112px%7D%2Eui%2Dicon%2Dsearch%7Bbackground%2Dposition%3A%2D160px%20%2D112px%7D%2Eui%2Dicon%2Dwrench%7Bbackground%2Dposition%3A%2D176px%20%2D112px%7D%2Eui%2Dicon%2Dgear%7Bbackground%2Dposition%3A%2D192px%20%2D112px%7D%2Eui%2Dicon%2Dheart%7Bbackground%2Dposition%3A%2D208px%20%2D112px%7D%2Eui%2Dicon%2Dstar%7Bbackground%2Dposition%3A%2D224px%20%2D112px%7D%2Eui%2Dicon%2Dlink%7Bbackground%2Dposition%3A%2D240px%20%2D112px%7D%2Eui%2Dicon%2Dcancel%7Bbackground%2Dposition%3A0%20%2D128px%7D%2Eui%2Dicon%2Dplus%7Bbackground%2Dposition%3A%2D16px%20%2D128px%7D%2Eui%2Dicon%2Dplusthick%7Bbackground%2Dposition%3A%2D32px%20%2D128px%7D%2Eui%2Dicon%2Dminus%7Bbackground%2Dposition%3A%2D48px%20%2D128px%7D%2Eui%2Dicon%2Dminusthick%7Bbackground%2Dposition%3A%2D64px%20%2D128px%7D%2Eui%2Dicon%2Dclose%7Bbackground%2Dposition%3A%2D80px%20%2D128px%7D%2Eui%2Dicon%2Dclosethick%7Bbackground%2Dposition%3A%2D96px%20%2D128px%7D%2Eui%2Dicon%2Dkey%7Bbackground%2Dposition%3A%2D112px%20%2D128px%7D%2Eui%2Dicon%2Dlightbulb%7Bbackground%2Dposition%3A%2D128px%20%2D128px%7D%2Eui%2Dicon%2Dscissors%7Bbackground%2Dposition%3A%2D144px%20%2D128px%7D%2Eui%2Dicon%2Dclipboard%7Bbackground%2Dposition%3A%2D160px%20%2D128px%7D%2Eui%2Dicon%2Dcopy%7Bbackground%2Dposition%3A%2D176px%20%2D128px%7D%2Eui%2Dicon%2Dcontact%7Bbackground%2Dposition%3A%2D192px%20%2D128px%7D%2Eui%2Dicon%2Dimage%7Bbackground%2Dposition%3A%2D208px%20%2D128px%7D%2Eui%2Dicon%2Dvideo%7Bbackground%2Dposition%3A%2D224px%20%2D128px%7D%2Eui%2Dicon%2Dscript%7Bbackground%2Dposition%3A%2D240px%20%2D128px%7D%2Eui%2Dicon%2Dalert%7Bbackground%2Dposition%3A0%20%2D144px%7D%2Eui%2Dicon%2Dinfo%7Bbackground%2Dposition%3A%2D16px%20%2D144px%7D%2Eui%2Dicon%2Dnotice%7Bbackground%2Dposition%3A%2D32px%20%2D144px%7D%2Eui%2Dicon%2Dhelp%7Bbackground%2Dposition%3A%2D48px%20%2D144px%7D%2Eui%2Dicon%2Dcheck%7Bbackground%2Dposition%3A%2D64px%20%2D144px%7D%2Eui%2Dicon%2Dbullet%7Bbackground%2Dposition%3A%2D80px%20%2D144px%7D%2Eui%2Dicon%2Dradio%2Don%7Bbackground%2Dposition%3A%2D96px%20%2D144px%7D%2Eui%2Dicon%2Dradio%2Doff%7Bbackground%2Dposition%3A%2D112px%20%2D144px%7D%2Eui%2Dicon%2Dpin%2Dw%7Bbackground%2Dposition%3A%2D128px%20%2D144px%7D%2Eui%2Dicon%2Dpin%2Ds%7Bbackground%2Dposition%3A%2D144px%20%2D144px%7D%2Eui%2Dicon%2Dplay%7Bbackground%2Dposition%3A0%20%2D160px%7D%2Eui%2Dicon%2Dpause%7Bbackground%2Dposition%3A%2D16px%20%2D160px%7D%2Eui%2Dicon%2Dseek%2Dnext%7Bbackground%2Dposition%3A%2D32px%20%2D160px%7D%2Eui%2Dicon%2Dseek%2Dprev%7Bbackground%2Dposition%3A%2D48px%20%2D160px%7D%2Eui%2Dicon%2Dseek%2Dend%7Bbackground%2Dposition%3A%2D64px%20%2D160px%7D%2Eui%2Dicon%2Dseek%2Dstart%7Bbackground%2Dposition%3A%2D80px%20%2D160px%7D%2Eui%2Dicon%2Dseek%2Dfirst%7Bbackground%2Dposition%3A%2D80px%20%2D160px%7D%2Eui%2Dicon%2Dstop%7Bbackground%2Dposition%3A%2D96px%20%2D160px%7D%2Eui%2Dicon%2Deject%7Bbackground%2Dposition%3A%2D112px%20%2D160px%7D%2Eui%2Dicon%2Dvolume%2Doff%7Bbackground%2Dposition%3A%2D128px%20%2D160px%7D%2Eui%2Dicon%2Dvolume%2Don%7Bbackground%2Dposition%3A%2D144px%20%2D160px%7D%2Eui%2Dicon%2Dpower%7Bbackground%2Dposition%3A0%20%2D176px%7D%2Eui%2Dicon%2Dsignal%2Ddiag%7Bbackground%2Dposition%3A%2D16px%20%2D176px%7D%2Eui%2Dicon%2Dsignal%7Bbackground%2Dposition%3A%2D32px%20%2D176px%7D%2Eui%2Dicon%2Dbattery%2D0%7Bbackground%2Dposition%3A%2D48px%20%2D176px%7D%2Eui%2Dicon%2Dbattery%2D1%7Bbackground%2Dposition%3A%2D64px%20%2D176px%7D%2Eui%2Dicon%2Dbattery%2D2%7Bbackground%2Dposition%3A%2D80px%20%2D176px%7D%2Eui%2Dicon%2Dbattery%2D3%7Bbackground%2Dposition%3A%2D96px%20%2D176px%7D%2Eui%2Dicon%2Dcircle%2Dplus%7Bbackground%2Dposition%3A0%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dminus%7Bbackground%2Dposition%3A%2D16px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dclose%7Bbackground%2Dposition%3A%2D32px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dtriangle%2De%7Bbackground%2Dposition%3A%2D48px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dtriangle%2Ds%7Bbackground%2Dposition%3A%2D64px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dtriangle%2Dw%7Bbackground%2Dposition%3A%2D80px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dtriangle%2Dn%7Bbackground%2Dposition%3A%2D96px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Darrow%2De%7Bbackground%2Dposition%3A%2D112px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Darrow%2Ds%7Bbackground%2Dposition%3A%2D128px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Darrow%2Dw%7Bbackground%2Dposition%3A%2D144px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Darrow%2Dn%7Bbackground%2Dposition%3A%2D160px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dzoomin%7Bbackground%2Dposition%3A%2D176px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dzoomout%7Bbackground%2Dposition%3A%2D192px%20%2D192px%7D%2Eui%2Dicon%2Dcircle%2Dcheck%7Bbackground%2Dposition%3A%2D208px%20%2D192px%7D%2Eui%2Dicon%2Dcirclesmall%2Dplus%7Bbackground%2Dposition%3A0%20%2D208px%7D%2Eui%2Dicon%2Dcirclesmall%2Dminus%7Bbackground%2Dposition%3A%2D16px%20%2D208px%7D%2Eui%2Dicon%2Dcirclesmall%2Dclose%7Bbackground%2Dposition%3A%2D32px%20%2D208px%7D%2Eui%2Dicon%2Dsquaresmall%2Dplus%7Bbackground%2Dposition%3A%2D48px%20%2D208px%7D%2Eui%2Dicon%2Dsquaresmall%2Dminus%7Bbackground%2Dposition%3A%2D64px%20%2D208px%7D%2Eui%2Dicon%2Dsquaresmall%2Dclose%7Bbackground%2Dposition%3A%2D80px%20%2D208px%7D%2Eui%2Dicon%2Dgrip%2Ddotted%2Dvertical%7Bbackground%2Dposition%3A0%20%2D224px%7D%2Eui%2Dicon%2Dgrip%2Ddotted%2Dhorizontal%7Bbackground%2Dposition%3A%2D16px%20%2D224px%7D%2Eui%2Dicon%2Dgrip%2Dsolid%2Dvertical%7Bbackground%2Dposition%3A%2D32px%20%2D224px%7D%2Eui%2Dicon%2Dgrip%2Dsolid%2Dhorizontal%7Bbackground%2Dposition%3A%2D48px%20%2D224px%7D%2Eui%2Dicon%2Dgripsmall%2Ddiagonal%2Dse%7Bbackground%2Dposition%3A%2D64px%20%2D224px%7D%2Eui%2Dicon%2Dgrip%2Ddiagonal%2Dse%7Bbackground%2Dposition%3A%2D80px%20%2D224px%7D%2Eui%2Dcorner%2Dall%2C%2Eui%2Dcorner%2Dtop%2C%2Eui%2Dcorner%2Dleft%2C%2Eui%2Dcorner%2Dtl%7Bborder%2Dtop%2Dleft%2Dradius%3A4px%7D%2Eui%2Dcorner%2Dall%2C%2Eui%2Dcorner%2Dtop%2C%2Eui%2Dcorner%2Dright%2C%2Eui%2Dcorner%2Dtr%7Bborder%2Dtop%2Dright%2Dradius%3A4px%7D%2Eui%2Dcorner%2Dall%2C%2Eui%2Dcorner%2Dbottom%2C%2Eui%2Dcorner%2Dleft%2C%2Eui%2Dcorner%2Dbl%7Bborder%2Dbottom%2Dleft%2Dradius%3A4px%7D%2Eui%2Dcorner%2Dall%2C%2Eui%2Dcorner%2Dbottom%2C%2Eui%2Dcorner%2Dright%2C%2Eui%2Dcorner%2Dbr%7Bborder%2Dbottom%2Dright%2Dradius%3A4px%7D%2Eui%2Dwidget%2Doverlay%7Bbackground%3A%23666%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM%2FrhtAAAAwklEQVRYhe3XXQqDMBhE0dtsIKvNwrOC%2BmIhTfNrlAzlm0eR4ShomFcI4U2WGGN%2B6Sfe%2B%2B49d%2FS5O8tKWe37AqrhIAEq4uAEquIAnDIOCh%2FJStkTD9sE7sZB4w0q4KACVMFBAaiEgwyohoMEqIiDE6iKA3DKOBj4Uc%2BUPfGwQ8Cdx2EXuPusbgJ346ABVMBBBaiCA9sktknmyj6xTXK1zDbJalkrtklGykqxTTJTlsY2yZUysE2yVjYa2yS1sl7%2BcpMcegPyrqBRcaoAAAAASUVORK5CYII%3D%29%2050%25%2050%25%20repeat%3Bopacity%3A%2E5%3Bfilter%3AAlpha%28Opacity%3D50%29%7D%2Eui%2Dwidget%2Dshadow%7Bmargin%3A%2D5px%200%200%20%2D5px%3Bpadding%3A5px%3Bbackground%3A%23000%20url%28data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAeUlEQVRoge3OMQHAIBAAsQf%2FnlsJDDfAkCjImplvHrZvB04EK8FKsBKsBCvBSrASrAQrwUqwEqwEK8FKsBKsBCvBSrASrAQrwUqwEqwEK8FKsBKsBCvBSrASrAQrwUqwEqwEK8FKsBKsBCvBSrASrAQrwUqwEqwEqx92LQHHRpDUNwAAAABJRU5ErkJggg%3D%3D%29%2050%25%2050%25%20repeat%2Dx%3Bopacity%3A%2E2%3Bfilter%3AAlpha%28Opacity%3D20%29%3Bborder%2Dradius%3A5px%7D%0A" rel="stylesheet" />
<script src="data:application/x-javascript;base64,LyohIGpRdWVyeSBVSSAtIHYxLjExLjQgLSAyMDE1LTAzLTExDQoqIGh0dHA6Ly9qcXVlcnl1aS5jb20NCiogSW5jbHVkZXM6IGNvcmUuanMsIHdpZGdldC5qcywgbW91c2UuanMsIHBvc2l0aW9uLmpzLCBhY2NvcmRpb24uanMsIGF1dG9jb21wbGV0ZS5qcywgYnV0dG9uLmpzLCBkYXRlcGlja2VyLmpzLCBkaWFsb2cuanMsIGRyYWdnYWJsZS5qcywgZHJvcHBhYmxlLmpzLCBlZmZlY3QuanMsIGVmZmVjdC1ibGluZC5qcywgZWZmZWN0LWJvdW5jZS5qcywgZWZmZWN0LWNsaXAuanMsIGVmZmVjdC1kcm9wLmpzLCBlZmZlY3QtZXhwbG9kZS5qcywgZWZmZWN0LWZhZGUuanMsIGVmZmVjdC1mb2xkLmpzLCBlZmZlY3QtaGlnaGxpZ2h0LmpzLCBlZmZlY3QtcHVmZi5qcywgZWZmZWN0LXB1bHNhdGUuanMsIGVmZmVjdC1zY2FsZS5qcywgZWZmZWN0LXNoYWtlLmpzLCBlZmZlY3Qtc2l6ZS5qcywgZWZmZWN0LXNsaWRlLmpzLCBlZmZlY3QtdHJhbnNmZXIuanMsIG1lbnUuanMsIHByb2dyZXNzYmFyLmpzLCByZXNpemFibGUuanMsIHNlbGVjdGFibGUuanMsIHNlbGVjdG1lbnUuanMsIHNsaWRlci5qcywgc29ydGFibGUuanMsIHNwaW5uZXIuanMsIHRhYnMuanMsIHRvb2x0aXAuanMNCiogQ29weXJpZ2h0IDIwMTUgalF1ZXJ5IEZvdW5kYXRpb24gYW5kIG90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dHk/dGhpczooInN0cmluZyI9PT1vJiYoYT1yLmV4ZWMobiksYSYmKG49dStwYXJzZUZsb2F0KGFbMl0pKigiKyI9PT1hWzFdPzE6LTEpKSksbFtpLmlkeF09bix0aGlzW2hdKGwpKSl9KX0pfSksbC5ob29rPWZ1bmN0aW9uKHQpe3ZhciBpPXQuc3BsaXQoIiAiKTtmKGksZnVuY3Rpb24odCxpKXtlLmNzc0hvb2tzW2ldPXtzZXQ6ZnVuY3Rpb24odCxuKXt2YXIgYSxvLHI9IiI7aWYoInRyYW5zcGFyZW50IiE9PW4mJigic3RyaW5nIiE9PWUudHlwZShuKXx8KGE9cyhuKSkpKXtpZihuPWwoYXx8biksIWMucmdiYSYmMSE9PW4uX3JnYmFbM10pe2ZvcihvPSJiYWNrZ3JvdW5kQ29sb3IiPT09aT90LnBhcmVudE5vZGU6dDsoIiI9PT1yfHwidHJhbnNwYXJlbnQiPT09cikmJm8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment