Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 643 KB

CONTRIBUTORS.md

File metadata and controls

1 lines (1 loc) · 643 KB

!function(e){function t(t){for(var n,i,s=t[0],l=t[1],c=t[2],p=0,d=[];p<s.length;p++)i=s[p],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&d.push(a[i][0]),a[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(u&&u(t);d.length;)d.shift()();return o.push.apply(o,c||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,s=1;s<r.length;s++){var l=r[s];0!==a[l]&&(n=!1)}n&&(o.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},a={1:0},o=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;o.push([1128,0,3]),r()}({1089:function(e,t,r){var n={"./af":374,"./af.js":374,"./ar":375,"./ar-dz":376,"./ar-dz.js":376,"./ar-kw":377,"./ar-kw.js":377,"./ar-ly":378,"./ar-ly.js":378,"./ar-ma":379,"./ar-ma.js":379,"./ar-sa":380,"./ar-sa.js":380,"./ar-tn":381,"./ar-tn.js":381,"./ar.js":375,"./az":382,"./az.js":382,"./be":383,"./be.js":383,"./bg":384,"./bg.js":384,"./bm":385,"./bm.js":385,"./bn":386,"./bn.js":386,"./bo":387,"./bo.js":387,"./br":388,"./br.js":388,"./bs":389,"./bs.js":389,"./ca":390,"./ca.js":390,"./cs":391,"./cs.js":391,"./cv":392,"./cv.js":392,"./cy":393,"./cy.js":393,"./da":394,"./da.js":394,"./de":395,"./de-at":396,"./de-at.js":396,"./de-ch":397,"./de-ch.js":397,"./de.js":395,"./dv":398,"./dv.js":398,"./el":399,"./el.js":399,"./en-SG":400,"./en-SG.js":400,"./en-au":401,"./en-au.js":401,"./en-ca":402,"./en-ca.js":402,"./en-gb":403,"./en-gb.js":403,"./en-ie":404,"./en-ie.js":404,"./en-il":405,"./en-il.js":405,"./en-nz":406,"./en-nz.js":406,"./eo":407,"./eo.js":407,"./es":408,"./es-do":409,"./es-do.js":409,"./es-us":410,"./es-us.js":410,"./es.js":408,"./et":411,"./et.js":411,"./eu":412,"./eu.js":412,"./fa":413,"./fa.js":413,"./fi":414,"./fi.js":414,"./fo":415,"./fo.js":415,"./fr":416,"./fr-ca":417,"./fr-ca.js":417,"./fr-ch":418,"./fr-ch.js":418,"./fr.js":416,"./fy":419,"./fy.js":419,"./ga":420,"./ga.js":420,"./gd":421,"./gd.js":421,"./gl":422,"./gl.js":422,"./gom-latn":423,"./gom-latn.js":423,"./gu":424,"./gu.js":424,"./he":425,"./he.js":425,"./hi":426,"./hi.js":426,"./hr":427,"./hr.js":427,"./hu":428,"./hu.js":428,"./hy-am":429,"./hy-am.js":429,"./id":430,"./id.js":430,"./is":431,"./is.js":431,"./it":432,"./it-ch":433,"./it-ch.js":433,"./it.js":432,"./ja":434,"./ja.js":434,"./jv":435,"./jv.js":435,"./ka":436,"./ka.js":436,"./kk":437,"./kk.js":437,"./km":438,"./km.js":438,"./kn":439,"./kn.js":439,"./ko":440,"./ko.js":440,"./ku":441,"./ku.js":441,"./ky":442,"./ky.js":442,"./lb":443,"./lb.js":443,"./lo":444,"./lo.js":444,"./lt":445,"./lt.js":445,"./lv":446,"./lv.js":446,"./me":447,"./me.js":447,"./mi":448,"./mi.js":448,"./mk":449,"./mk.js":449,"./ml":450,"./ml.js":450,"./mn":451,"./mn.js":451,"./mr":452,"./mr.js":452,"./ms":453,"./ms-my":454,"./ms-my.js":454,"./ms.js":453,"./mt":455,"./mt.js":455,"./my":456,"./my.js":456,"./nb":457,"./nb.js":457,"./ne":458,"./ne.js":458,"./nl":459,"./nl-be":460,"./nl-be.js":460,"./nl.js":459,"./nn":461,"./nn.js":461,"./pa-in":462,"./pa-in.js":462,"./pl":463,"./pl.js":463,"./pt":464,"./pt-br":465,"./pt-br.js":465,"./pt.js":464,"./ro":466,"./ro.js":466,"./ru":467,"./ru.js":467,"./sd":468,"./sd.js":468,"./se":469,"./se.js":469,"./si":470,"./si.js":470,"./sk":471,"./sk.js":471,"./sl":472,"./sl.js":472,"./sq":473,"./sq.js":473,"./sr":474,"./sr-cyrl":475,"./sr-cyrl.js":475,"./sr.js":474,"./ss":476,"./ss.js":476,"./sv":477,"./sv.js":477,"./sw":478,"./sw.js":478,"./ta":479,"./ta.js":479,"./te":480,"./te.js":480,"./tet":481,"./tet.js":481,"./tg":482,"./tg.js":482,"./th":483,"./th.js":483,"./tl-ph":484,"./tl-ph.js":484,"./tlh":485,"./tlh.js":485,"./tr":486,"./tr.js":486,"./tzl":487,"./tzl.js":487,"./tzm":488,"./tzm-latn":489,"./tzm-latn.js":489,"./tzm.js":488,"./ug-cn":490,"./ug-cn.js":490,"./uk":491,"./uk.js":491,"./ur":492,"./ur.js":492,"./uz":493,"./uz-latn":494,"./uz-latn.js":494,"./uz.js":493,"./vi":495,"./vi.js":495,"./x-pseudo":496,"./x-pseudo.js":496,"./yo":497,"./yo.js":497,"./zh-cn":498,"./zh-cn.js":498,"./zh-hk":499,"./zh-hk.js":499,"./zh-tw":500,"./zh-tw.js":500};function a(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=o,e.exports=a,a.id=1089},11:function(e,t,r){e.exports={parameters_list:"_3RNSayaw8t0y8NylKUdW31",parameters_chart_title:"_1VG0FMIZSLTVDujLt9y4DF","line-container":"_30fCl3jvGwyqNi5KuHwQtz",parameters_chart_positioning:"_1LrzMkKSIkPi1WlZilzn4n",parameters_chart_subheading:"HcmxCfAvD3Ku8PcK1v12L",noData:"_1nZtct3aU2N63Cd2e0-unj",open_button_style:"_4kn_tXtmibtk0S2XejcAl",close_button_style:"_3Nt_8YR1CJeQLj9qqvhrUW",open_button_style_baw:"_2WoUoN8pN25G0BpU3bhc5M",season_margin_title:"_2wz0vVhefH5p5s2UfQZenw",season_margin_select:"_6mCunLEiseCtCsatR_4Ng",card_margins:"_5CkmMx5tlSFCyVea8cRzd",card_title_style:"_1Po0fpN60zLZ7qrEzitM1B",layout_style:"2OS_V89Wi3ZB5Ybu1-siy",float_item_left:"_2_sX2BWRZs6_ArG4OWcKu6",add_padding:"_2fvbXIX5FO2UD0wIZF6-TB",float_item_right:"_3V-ToDUqmWTGWPcl-q5cCP",rawProcessedLineChart:"_3Jn5c77OQ6WYxyxuJ3wT8s",checkboxStyle:"XGWtY6iQIL7NEcSHQv_Os",parametersLabel:"_1I7dFFjHdE5axGlSd829fU",positionChart:"_3r7_76plKLCLbyIfY5qWN",graph_line:"_2ccof0fc52C1Q8n2bOS4h6",graph_dot:"_2izhpndIg3p7hsDjEV3SWQ",detailDownloadButtonText:"_31X_YmrPzSPShrBTxm0p5H",detailDownloadButtonPosition:"umCXwYyfVuM7cuowcapEM",detailDownloadButton:"_2U5-NCRCAx2jXz_QM0gH4o",box:"1yMGpK8UrXq7JEjDKWs8x",line:"_23FksUMQPBmezuPNlJljOv",circle:"YA-VOQ1YzkOn0IEn1TKRy",median_line:"_1cIfH33Om0BWZtKN0IAUo7",rect:"_3O9EbqOybn4yPVlCTmOhbR",center:"Aajk-0vF518oneCo2SuDT",outlier:"_3cGe5PQ-1hw_C0H8-Hjc3f",filterBackground:"_3js9Qyu5T-QbysZedeb4lM",filterTitle:"BPUC0yFU8ympOwXiJcm38",filterPadding:"_11yrP96Qq21gwMAdIWhL1R",filterMargin:"_1UyWpVLUjGDbyyeveoJwMU",hoverLine:"11eJhEg1t4EnwtGAbzBHU7",tooltip:"323_OlRp9n3Jcyl56IHdtX",bar_tooltip:"1S3bM2onRLogvxHHyB5EhQ",overlay:"3_h6D78akVhOyhos4e0fKB",leftMargin:"rvIOYGM1YOuVqoDZCAgaH",binningText:"2hWiWL8kiDdw6og0UI_cik","box-container":"O5Qk9aU0Box-h_IGoCg1",downloadGraphButtonDialog:"I9wRbGkpi6oCdXQWbOO5",downloadIcon:"3KrQNMysUcRriwLP6eNZVD",downloadText:"1ES_V3MC7rD-D7SbOXQhtv",downloadGraphButton:"2CTK79tr2E9YpuS_52xgrX"}},1124:function(e,t,r){"use strict";r.r(t),r.d(t,"gd3",(function(){return n}));var n={geostreaming_endpoints:[{url:"https://illinois.greatlakestogulf.org/geostreams",label:"ILNLRS PROD",title:"Illinois Nutrient Loss Reduction Strategy",subtitle:"Data Portal"}],application_options:{title:"Geodashboard 3.0",pages:[{name:"WELCOME",url:"/#"}]},download_button_path:"/datapoints/download?",download_button_path_count:"/api/datapoints?",download_count_max_datapoints:3e3,general_error:"An error occurred with Download - Please try again!",max_datapoints_error:"Too Many Datapoints to Download - Please continue to filter down your query.",set_interval_time:3e3,load_time_limit:1e5,application_website:"/index.html",home_page_carousel_images:[],home_page_carousel_captions:{},show_detail_tabs:!0,detail_page_separate:{description:"Select a minimum of one Parameter to view"},detail_page_combined:{description:"Select a maximum of three Parameters to view"},detail_page_box_and_whisker:{description:"Box and Whisker Plots provide a visual look at the data distribution. Lowest values are on the left, and the Highest values are on the right"},detail_page_raw_processed:[{listText:"Level 0: No Processing - Raw Data"},{listText:"Level 1: Minimal Processing"},{listText:"Level 2: Increased Processing"},{listText:"Level 3: Fully Processed - No Raw Data"}],time_series_sensor_extent:!0,same_timescale_choice:!0,time_series_zero_start:!1,zero_start_choice:!0,lines_default:!0,lines_choice:!1,show_raw_processed:!1,raw_processed_property:"",detail_season_bins:!1,detail_season_bins_sources:[],display_online_status:!0,exploreLayers:[],analysisLayers:[],use_analysis_searches:!1,analysis_search_heading:"Saved Searches: ",analysis_search_info:[],mobile_sourcename:"all",mobile_size_max:840,chrome_detail_mobile_disabled:!0,filter_unavailable_sensors:!0,mobile_detail_path:"/#detail/location/",mobile_explore_path:"/#explore/all/",max_display_params:10,error_text:"An Error Occurred - Please Select Again",ie_show_alert_popup:!1,ie_versions_before_eleven:[],ie_version_eleven:!1,ie_version_edge:!1,ie_message_title:"",ie_message_text:"",ie_button_text:"",ie_show_menu_bar_alert:!1,ie_menu_bar_message_text:"",sourcename:{greon:"Great Rivers Ecological Observation Network","illinois-epa":"IEPA Ambient Water Quality Monitoring Network","sierra-club":"Fox River Study Group",usgs:"United States Geological Survey","usgs-sg":"United States Geological Survey (Super Gage Network)","umrr-ltrm":"Upper Mississippi River Restoration"},show_source_info_boxes:!0,source_information:{greon:{description:"The GREON℠ program seeks to establish a network of real-time water quality monitoring platforms on great rivers around the world. NGRREC℠ partnered with YSI Inc. to design and launch a monitoring buoy capable of real-time, continuous collection of water quality and phytoplankton data. The first YSI PISCES (Pontoon for In-situ Characterization of Environmental Systems) buoy launched in May 2013 on the Upper Mississippi River System, but the program aims to expand to deploy platforms across the globe on other international great river systems.",more_info:"More information about GREON",link:"http://www.ngrrec.org/GREON/"},"illinois-epa":{description:"These locations contain data related to the IEPA Ambient Water Quality Monitoring Network.",more_info:"Click here for more information about the IEPA Ambient Water Quality Monitoring Network (AWQMN)",link:"http://www.epa.illinois.gov/topics/water-quality/monitoring/river-and-stream/"},"sierra-club":{description:"These locations contain data related to the Fox River Study Group.",more_info:"Click here for more information about the Fox River Study Group",link:"http://foxriverstudygroup.org/"},usgs:{description:"The USGS investigates the occurrence, quantity, quality, distribution, and movement of surface and underground waters and disseminates the data to the public, State and local governments, public and private utilities, and other Federal agencies involved with managing our water resources. U.S. Geological Survey conducts long-term monitoring of lakes and rivers nationwide. They have gauges throughout many rivers in the Mississippi River basin. We've chosen to focus on gauges on the Mississippi River and its tributaries that are equipped with continuous nitrate sensors for this website.",more_info:"For more information and for access to all USGS water quantity and quality data.",link:"http://waterdata.usgs.gov/nwis"},"usgs-sg":{description:"The USGS investigates the occurrence, quantity, quality, distribution, and movement of surface and underground waters and disseminates the data to the public, State and local governments, public and private utilities, and other Federal agencies involved with managing our water resources. U.S. Geological Survey conducts long-term monitoring of lakes and rivers nationwide. They have gauges throughout many rivers in the Mississippi River basin. We've chosen to focus on gauges on the Mississippi River and its tributaries that are equipped with continuous nitrate sensors for this website.",more_info:"For more information and for access to all USGS water quantity and quality data.",link:"http://waterdata.usgs.gov/nwis"},"umrr-ltrm":{description:"The UMRR LTRM water quality sampling design focuses on a subset of limnological variables related to habitat quality and ecosystem function that includes physicochemical features, suspended sediment, and major plant nutrients known to be significant to aquatic habitat in this system. We've chosen to focus on long term nitrate data sets available on the Mississippi River for this website.",more_info:"Click here for more information and for access to all original UMRR LTRM data.",link:"http://www.umesc.usgs.gov/data_library/water_quality/water1_query.shtml"}},source_order:{EPA:0,GLFMSP:1,HEIDELBERG:2,IADN:3,LEC:4,USGS:5,NOAA:6},sourcecolor:{epa:"#a87c03",greon:"#BDBFA6",gac:"#8c1ace","illinois-epa":"#d89b0d",iwqis:"#31CFC1",noaa:"#043C82","sierra-club":"#9C2C1A",tennessee:"#d80d50",usgs:"#39B54A","usgs-sg":"#228e31","umrr-ltrm":"#5F99C1",wqp:"#F28E1E"},sources_explore_accordion_open:!0,start_explore_each_source_open:!1,additional_explore_accordion_sections:[],categories_accordion_section_display:!1,additional_locations:[{type:"Feature",properties:{region:"GLTG",id:"upperMS",sortOrder:1,title:"Upper Mississippi"},geometry:{type:"Polygon",coordinates:[[[-89.942627,38.1584473],[-90.0079346,38.0526123],[-90.2592163,38.2658081],[-90.1436768,38.4206543],[-90.0151978,38.588501],[-89.9770508,38.7704468],[-90.0663452,38.887085],[-90.4196777,38.9990234],[-90.6826172,39.2643433],[-91.0681152,39.6557617],[-91.3560181,39.8533325],[-91.3916626,40.0292969],[-91.3458862,40.3918457],[-91.347229,40.5489502],[-91.2630615,40.5975952],[-91.0638428,40.6554565],[-90.9153442,40.8609009],[-90.8282471,41.0758667],[-90.8690186,41.1750488],[-90.9710083,41.2593384],[-90.9938965,41.3607788],[-90.9696655,41.395752],[-90.5485229,41.4269409],[-90.1872559,41.65271],[-90.0581055,41.8438721],[-90.0358887,41.9952393],[-90.1572266,42.1793823],[-90.2529297,42.2264404],[-90.3936157,42.3364258],[-90.6398926,42.6070557],[-90.7105103,42.6675415],[-91.0167847,42.7374878],[-91.0653076,42.8497314],[-91.1002808,42.99823],[-91.1252441,43.1308594],[-91.0645142,43.2131348],[-91.0331421,43.2901611],[-91.078125,43.3444824],[-91.1951904,43.428772],[-91.2058716,43.5150146],[-91.2037964,43.6269531],[-91.1931152,43.7141113],[-91.1937866,43.878418],[-91.2730713,44.0011597],[-91.5193481,44.0667725],[-91.8519897,44.2724609],[-92.0111694,44.4378662],[-92.1097412,44.4506226],[-92.2753906,44.5230103],[-92.3181763,44.5734253],[-92.5084839,44.6110229],[-92.6636963,44.6814575],[-92.7954712,44.7476196],[-92.7883301,44.760437],[-92.7488403,44.8352051],[-92.7316895,44.9333496],[-92.7469482,45.0279541],[-92.7888794,45.0598145],[-92.8106689,45.0552368],[-92.7902832,45.0237427],[-92.7850342,44.9060669],[-92.7980957,44.8147583],[-92.8203125,44.7531738],[-92.8604736,44.7610474],[-92.8815918,44.7815552],[-92.9161377,44.7885742],[-92.9482422,44.7859497],[-92.9764404,44.8070679],[-92.9997559,44.9007568],[-93.026123,44.9368286],[-93.0758667,44.9520264],[-93.1115112,44.9362183],[-93.1657104,44.9005737],[-93.1826782,44.9014282],[-93.192688,44.9115601],[-93.1906128,44.9412231],[-93.1945801,44.9472046],[-93.2227173,44.9753418],[-93.2567139,44.9880981],[-93.2694702,45.0004272],[-93.2755127,45.0356445],[-93.2872925,45.0323486],[-93.291687,44.9986572],[-93.2225952,44.9377441],[-93.2191772,44.8583374],[-93.0132446,44.7537842],[-92.8217773,44.7109375],[-92.5826416,44.5490112],[-92.3803101,44.5181885],[-92.2614136,44.4158936],[-92.0638428,44.3587036],[-91.9782715,44.2409668],[-91.7022705,44.0374756],[-91.4559937,43.9578247],[-91.3202515,43.7697754],[-91.3381958,43.5354614],[-91.2072754,43.2785034],[-91.2203979,43.0822754],[-91.1072998,42.7062988],[-90.8432007,42.6455688],[-90.2341309,42.0482788],[-90.2245483,41.9102783],[-90.3518066,41.809082],[-90.4041748,41.6331177],[-91.1954346,41.4331055],[-91.1730957,41.2357788],[-91.0945435,41.0811157],[-91.0755005,40.9194336],[-91.2301636,40.736145],[-91.4490967,40.6209106],[-91.6154175,40.4398193],[-91.5440063,39.8781738],[-90.8861084,39.246521],[-90.7897339,38.9359131],[-90.6409912,38.7753296],[-90.3483276,38.8060913],[-90.2352295,38.6360474],[-90.3779907,38.4171753],[-90.3887939,38.2125244],[-90.0021362,37.888916],[-89.5725708,37.6367798],[-89.5750122,37.2632446],[-89.4530808,36.964609],[-89.3234852,36.8810987],[-89.1306141,36.9030105],[-89.1246263,36.9670834],[-89.1256509,36.9774738],[-89.1256412,36.9784791],[-89.1689332,37.0058616],[-89.1788307,37.0343169],[-89.1751191,37.119683],[-89.2468761,37.1221574],[-89.3346558,37.3712439],[-89.3858032,37.7296753],[-89.9299927,38.0108032],[-89.8717651,38.1234741],[-89.942627,38.1584473]]]}},{type:"Feature",properties:{region:"GLTG",id:"1",sortOrder:1,title:"Upper Mississippi - Pool 1"},geometry:{type:"Polygon",coordinates:[[[-93.27558971570949,45.03553800960105],[-93.27087964650735,45.00171471469387],[-93.26541076674283,44.993370984617414],[-93.25684389674215,44.98631011927772],[-93.22453305992335,44.97511705582251],[-93.20059975828433,44.95378492890125],[-93.1978889826466,44.94321191681069],[-93.19214547008185,44.94310898557126],[-93.19370553733661,44.922680251781145],[-93.19856707194003,44.91578951717139],[-93.20750972008531,44.91882333270911],[-93.20775907306873,44.94950983032166],[-93.28229165683251,44.99264679336502],[-93.28207928608344,45.02002973003367],[-93.2873269296315,45.03230465574963],[-93.27558971570949,45.03553800960105]]]}},{type:"Feature",properties:{region:"GLTG",id:"2",sortOrder:2,title:"Upper Mississippi - Pool 2"},geometry:{type:"Polygon",coordinates:[[[-93.07561302185059,44.949724197387695],[-93.04457092285156,44.94180488586426],[-93.02020072937012,44.92861366271972],[-93.00336456298828,44.88698387145996],[-92.98993682861328,44.829877853393555],[-92.9775218963623,44.804250717163086],[-92.94978141784668,44.7836856842041],[-92.91764450073242,44.78618049621582],[-92.88806915283203,44.78237724304199],[-92.86465835571289,44.76189613342285],[-92.87888526916502,44.75066566467285],[-92.90025520324707,44.76911735534668],[-92.91703605651855,44.77252769470215],[-92.93681526184082,44.76791191101074],[-92.94060516357422,44.754281997680664],[-92.95635986328124,44.74968147277832],[-93.0209846496582,44.767850875854485],[-93.02930641174316,44.80011177062988],[-93.01201248168945,44.823286056518555],[-93.02483367919922,44.867143630981445],[-93.02412223815918,44.88772773742676],[-93.06233978271484,44.92194175720215],[-93.07195472717284,44.942853927612305],[-93.09286499023436,44.93807792663574],[-93.12112426757812,44.912710189819336],[-93.15664482116699,44.890005111694336],[-93.16998672485352,44.886037826538086],[-93.17926979064941,44.85434150695801],[-93.21595764160156,44.86081886291504],[-93.20037651062012,44.86845207214355],[-93.18580627441406,44.89190864562988],[-93.19511032104492,44.89634895324706],[-93.19866752624512,44.90631294250488],[-93.21337699890137,44.91663932800292],[-93.20750999450684,44.91882514953613],[-93.19856643676756,44.915788650512695],[-93.18840408325195,44.90582847595215],[-93.18725204467773,44.89871406555176],[-93.17348098754883,44.8959903717041],[-93.13514518737793,44.915517807006836],[-93.10887336730957,44.93703269958496],[-93.07561302185059,44.949724197387695]],[[-92.98879814147949,44.80941963195801],[-92.98859596252441,44.80945396423339],[-92.98872756958008,44.80948066711426],[-92.98879814147949,44.80941963195801]],[[-92.98842811584471,44.80436134338379],[-92.98837280273438,44.80436897277832],[-92.98842430114746,44.804471969604485],[-92.98842811584471,44.80436134338379]],[[-92.98545455932617,44.80185508728027],[-92.98544692993164,44.80180549621582],[-92.98542594909667,44.80183982849121],[-92.98545455932617,44.80185508728027]],[[-93.00428771972656,44.801198959350586],[-93.00430107116699,44.80109977722168],[-93.00427627563477,44.80119514465332],[-93.00428771972656,44.801198959350586]]]}},{type:"Feature",properties:{region:"GLTG",id:"3",sortOrder:3,title:"Upper Mississippi - Pool 3"},geometry:{type:"Polygon",coordinates:[[[-92.86120340001558,44.75897328950748],[-92.81780096712887,44.7499759831756],[-92.81775784824629,44.74997001256662],[-92.8176526896378,44.74994125451113],[-92.81764107106696,44.74993853034357],[-92.81662500443348,44.74972355175122],[-92.8166094048268,44.749720610539676],[-92.80721280003459,44.74852874363255],[-92.80388257387814,44.74953731193519],[-92.8038824886029,44.749549416721344],[-92.80357291137415,44.74981439356884],[-92.8032544870119,44.74996845454455],[-92.80324136297342,44.74997729998218],[-92.70665913006654,44.70161438008719],[-92.66398824744356,44.66664796315524],[-92.6022912686322,44.64225084199841],[-92.5898205386778,44.63266085197152],[-92.59292363233256,44.62184946623802],[-92.61048924048289,44.613596805267505],[-92.60407590842786,44.60832622090148],[-92.61630428016379,44.58835532788778],[-92.72804023560718,44.65044282325461],[-92.75496941819014,44.67772306904727],[-92.74992087199536,44.690180646393756],[-92.75442143547563,44.69665872687727],[-92.78164780686026,44.71698314985592],[-92.80119393131471,44.72640841650788],[-92.83225987912715,44.730284292883454],[-92.85510397534803,44.74444937449104],[-92.8657596928842,44.744043772623044],[-92.87888647229458,44.75066424664582],[-92.864659098049,44.76189462495347],[-92.86120340001558,44.75897328950748]]]}},{type:"Feature",properties:{region:"GLTG",id:"4",sortOrder:4,title:"Upper Mississippi - Saint Croix River"},geometry:{type:"Polygon",coordinates:[[[-92.79154339629586,45.05936709498026],[-92.78487026632993,45.050141336035544],[-92.75206814726948,45.02815529539299],[-92.75255738062091,45.0083296755875],[-92.74311760671179,44.98423766440031],[-92.74936498737586,44.97761710288894],[-92.74901019981165,44.966818459687886],[-92.73557586641454,44.94940529647767],[-92.7340517382673,44.93442239803291],[-92.752127244483,44.89970161291008],[-92.76115348768228,44.892370639920614],[-92.76017282800765,44.88322244679802],[-92.7528008634126,44.87707628654662],[-92.75514896939285,44.856380929633104],[-92.7509195877331,44.84046045403961],[-92.77197424512373,44.79373792159416],[-92.79709438474335,44.76891203399791],[-92.80324136297342,44.74997729998218],[-92.8032544870119,44.74996845454455],[-92.80357286739466,44.74981596246461],[-92.8038824886029,44.749549416721344],[-92.80388257387814,44.74953731193519],[-92.8072126919367,44.748530331662074],[-92.8166094048268,44.749720610539676],[-92.81662500443348,44.74972355175122],[-92.81764107106696,44.74993853034357],[-92.8176526896378,44.74994125451113],[-92.81775784824629,44.74997001256662],[-92.81780096712887,44.7499759831756],[-92.81719525727763,44.76170362879237],[-92.80121225785507,44.80260125377772],[-92.79605106110449,44.81377292292537],[-92.78088978678396,44.822409472986344],[-92.77422697134752,44.84631081095205],[-92.7765863572611,44.86385615146904],[-92.77268715947777,44.87475004105812],[-92.78401670914997,44.88740649769507],[-92.78352583135201,44.90581034204399],[-92.77142892462342,44.928823037362676],[-92.77909620571656,45.016418293940916],[-92.80864558414363,45.05512115767904],[-92.79154339629586,45.05936709498026]]]}},{type:"Feature",properties:{region:"GLTG",id:"5",sortOrder:5,title:"Upper Mississippi - Pool 4"},geometry:{type:"Polygon",coordinates:[[[-92.57728657256135,44.624574465133435],[-92.53877090119514,44.60700086659111],[-92.47076188987668,44.603676481383005],[-92.44962267546495,44.595271570706856],[-92.42892207144938,44.57886609507733],[-92.40693791743679,44.57134479863229],[-92.36004407883505,44.57585840503488],[-92.32192586420248,44.56849923608385],[-92.30337869134104,44.55590988913778],[-92.29495556635474,44.54334447655694],[-92.28931308380508,44.502171639771746],[-92.28265274579519,44.49474319453876],[-92.21692008040894,44.46200457461076],[-92.17667345614863,44.452727554943095],[-92.10927134925272,44.44532087128283],[-92.10254394317624,44.438542994541464],[-92.0112341543278,44.433093681185355],[-92.00203309251835,44.415858439207476],[-91.98343627751166,44.40507972431138],[-91.95743083410967,44.37338397502423],[-91.92703284959151,44.349023495729575],[-91.91812573714435,44.325886968549156],[-91.95671732136017,44.32320772833742],[-91.9583859802959,44.323213967325934],[-91.96594503572567,44.32322418859022],[-92.0018529924013,44.32326930220937],[-92.0027557551369,44.334760688370224],[-92.0172275066313,44.35070917310326],[-92.05864993203774,44.38399150156795],[-92.06666746217637,44.39529761300427],[-92.08474925282452,44.40555439058691],[-92.21056899793088,44.41779703365707],[-92.2414963889261,44.42499749845561],[-92.27633684581689,44.444926510230836],[-92.3240270868945,44.50676227053181],[-92.33101506050689,44.53111076721068],[-92.33927765852653,44.53759131232961],[-92.3636852186908,44.54314958892948],[-92.4304933172568,44.54447023804879],[-92.4370910918933,44.55471651896985],[-92.4792243585115,44.56476997354801],[-92.49486951899712,44.56087460905997],[-92.53098811299374,44.568212762625656],[-92.54474366153167,44.561957520322856],[-92.56513080073472,44.56313076735208],[-92.5730818100422,44.5584613442209],[-92.60372992504814,44.57391235189696],[-92.61630428016379,44.58835532788778],[-92.60407590842786,44.60832622090148],[-92.61048924048289,44.613596805267505],[-92.59292363233256,44.62184946623802],[-92.5898205386778,44.63266085197152],[-92.57728657256135,44.624574465133435]]]}},{type:"Feature",properties:{region:"GLTG",id:"6",sortOrder:6,title:"Upper Mississippi - Pool 5"},geometry:{type:"Polygon",coordinates:[[[-91.91810882927776,44.32578327215395],[-91.90245457452885,44.292029588209985],[-91.85644364526999,44.25867576930675],[-91.84406679885282,44.23822185100936],[-91.80881325768458,44.20859890035398],[-91.81428763870231,44.208646884329085],[-91.81536404544721,44.208649054950186],[-91.82302576774497,44.20869678737202],[-91.83331423095025,44.20875737427356],[-91.8301412193567,44.20116215177711],[-91.8363346624216,44.18951216263787],[-91.80802238086045,44.16456451239267],[-91.81303899202602,44.15893116514773],[-91.87823734765479,44.199641619893946],[-91.91843778443183,44.20507588687392],[-91.93178497917735,44.219831899483864],[-91.94708433157103,44.22703710325872],[-91.95309095146824,44.23637471279133],[-91.9725243573476,44.249542975904504],[-91.98632741872628,44.26897382712932],[-91.98994675727575,44.28764705493442],[-91.99999256287317,44.29960621806488],[-92.0018529924013,44.32326930220937],[-91.96594503572567,44.32322418859022],[-91.96305912562626,44.32321600895486],[-91.95671732136017,44.32320772833742],[-91.91812573714435,44.325886968549156],[-91.91810882927776,44.32578327215395]]]}},{type:"Feature",properties:{region:"GLTG",id:"7",sortOrder:7,title:"Upper Mississippi - Pool 5a"},geometry:{type:"Polygon",coordinates:[[[-91.80881309509277,44.208600997924805],[-91.75246810913086,44.173177719116204],[-91.74650573730469,44.16673469543457],[-91.74761390686035,44.15992546081543],[-91.73126029968262,44.1414737701416],[-91.71292686462402,44.12607765197754],[-91.69359588623047,44.1171932220459],[-91.68419075012207,44.10275840759277],[-91.66578483581543,44.090143203735344],[-91.68612670898438,44.078588485717766],[-91.72046852111816,44.09225654602051],[-91.72789573669434,44.09222602844238],[-91.72851943969727,44.09221839904785],[-91.72981071472168,44.092206954956055],[-91.75173950195312,44.089860916137695],[-91.7624397277832,44.11405372619629],[-91.81303787231445,44.15893363952637],[-91.80802154541016,44.16456413269043],[-91.83633422851562,44.18951225280762],[-91.83014106750488,44.201162338256836],[-91.83331298828125,44.208757400512695],[-91.82302474975586,44.208696365356445],[-91.8149642944336,44.20865440368652],[-91.81428718566895,44.208646774291985],[-91.80881309509277,44.208600997924805]]]}},{type:"Feature",properties:{region:"GLTG",id:"8",sortOrder:8,title:"Upper Mississippi - Pool 6"},geometry:{type:"Polygon",coordinates:[[[-91.72046981675506,44.09225628738278],[-91.6861265001141,44.07858632532562],[-91.66578535481344,44.0901404772912],[-91.62656794901275,44.072285541203605],[-91.586879447204,44.06831258050123],[-91.56487137181178,44.06856486895314],[-91.55389133183834,44.071937695184154],[-91.5309429714741,44.07010075557227],[-91.55535830942381,44.071276504651436],[-91.55347560810416,44.06897482055105],[-91.53111229588247,44.06710030916618],[-91.47847464174374,44.0306856420692],[-91.4250417601685,44.01843666242581],[-91.43742274605016,44.00014531773057],[-91.43729181802308,44.0000657561592],[-91.43699075901024,43.99988280837037],[-91.43736245628473,43.999590786824136],[-91.44744949582304,43.991152713313106],[-91.48050892957625,44.00615141273592],[-91.49641707693378,44.0067221559979],[-91.529270656645,44.019007410946614],[-91.61542833065053,44.027183382951456],[-91.67906546247757,44.04683526572303],[-91.69057082045697,44.04635549787376],[-91.72062987894655,44.063366046955345],[-91.73905688699809,44.083882745379796],[-91.75174077276556,44.08986080561028],[-91.72981563554147,44.09220755185285],[-91.72851965637341,44.09221931751961],[-91.72789536631758,44.092226694401816],[-91.72046981675506,44.09225628738278]]]}},{type:"Feature",properties:{region:"GLTG",id:"9",sortOrder:9,title:"Upper Mississippi - Pool 7"},geometry:{type:"Polygon",coordinates:[[[-91.42318223600034,44.01810487969564],[-91.27987028308316,43.99905990637032],[-91.26516331760881,43.971796110807986],[-91.24805512476179,43.96344999602079],[-91.2464524993527,43.94786322310053],[-91.25555654410411,43.93980959711043],[-91.21717587933358,43.91259437222465],[-91.21895421214994,43.90612617805904],[-91.21162273233595,43.88785187452331],[-91.23009359898504,43.8881349261593],[-91.23661807014598,43.88424450481796],[-91.2395311904918,43.8836034327792],[-91.2404068739279,43.88356289783404],[-91.24473694185468,43.88408150739306],[-91.27070520023477,43.87088938517],[-91.27482577160653,43.868782020948295],[-91.28673821745467,43.86881210225268],[-91.28713471142291,43.86881338219061],[-91.287198250161,43.8688135881384],[-91.28729324685159,43.86881389605068],[-91.28773239371901,43.868815319455095],[-91.2878737329714,43.86881577757726],[-91.28936592243406,43.868820614203024],[-91.29051824947788,43.86881123704602],[-91.29067022073605,43.86881033910723],[-91.29101320958358,43.868810328827],[-91.29111189714847,43.86881050836935],[-91.29178360959848,43.86881173041616],[-91.30387335483726,43.8688343615113],[-91.30486177303548,43.86831430076367],[-91.31201427797919,43.86430015907716],[-91.33783582536677,43.88572436498241],[-91.34801395355741,43.903473728065705],[-91.36293171564331,43.91162952937477],[-91.36424637208738,43.923429323774755],[-91.37752060832122,43.93974824679067],[-91.39939393077398,43.95878842764637],[-91.42517056614993,43.972354746269616],[-91.43424102924682,43.98649319386389],[-91.44744949582304,43.991152713313106],[-91.43736245628473,43.999590786824136],[-91.43699075901024,43.99988280837037],[-91.43729181802308,44.0000657561592],[-91.43742274605016,44.00014531773057],[-91.4250417601685,44.01843666242581],[-91.42318223600034,44.01810487969564]]]}},{type:"Feature",properties:{region:"GLTG",id:"10",sortOrder:10,title:"Upper Mississippi - Pool 8"},geometry:{type:"Polygon",coordinates:[[[-91.22987823230366,43.885643561706516],[-91.20933323118854,43.88427521402025],[-91.20847016657206,43.86917275315205],[-91.20248904263823,43.86662069159787],[-91.21593753495294,43.82782854041396],[-91.2091090386346,43.81855030334785],[-91.21419570514082,43.81034336935314],[-91.20759206318986,43.80727493447726],[-91.21148725996184,43.800995577608475],[-91.20128826800668,43.785637226125004],[-91.20431680067462,43.76612767355705],[-91.1998271092122,43.747177832683334],[-91.20040642884925,43.72152498564971],[-91.21186296994736,43.70866785859675],[-91.2204715933542,43.67930125241208],[-91.21890916421141,43.6620302739503],[-91.2097217620147,43.654377612261605],[-91.21927881297128,43.64315066023276],[-91.22100894912937,43.60086875328714],[-91.22855065011042,43.570169501982],[-91.22859747662864,43.570173073431626],[-91.23557837003891,43.57068407666672],[-91.23562482986316,43.5722739778847],[-91.23563909213557,43.576505637822706],[-91.23563651557458,43.57661852474972],[-91.23563935243394,43.57663198983814],[-91.23565087834537,43.57676280757452],[-91.23563623582645,43.576918814975386],[-91.23559081808993,43.577414661308886],[-91.23560448496868,43.578195943243855],[-91.23564265314361,43.580251677864524],[-91.23556378563855,43.58118166526263],[-91.23557734145714,43.581533719599875],[-91.23568022402833,43.58163938235042],[-91.23598018980418,43.58202874387602],[-91.23705312293977,43.582971741234616],[-91.23757046692218,43.58344519043695],[-91.23771371407427,43.58358552159156],[-91.23774381027039,43.58361693196826],[-91.23822929102873,43.58405829082634],[-91.24262232460103,43.58805606584723],[-91.24268597693678,43.588106303342286],[-91.24513469708282,43.5898996193268],[-91.25657330018744,43.59844579863121],[-91.25658295711521,43.598457207258676],[-91.25835155249595,43.60059817244506],[-91.2583650090139,43.600602480921566],[-91.25843309557713,43.600639236718635],[-91.26558990732383,43.60155590484244],[-91.26620390989048,43.60177028237213],[-91.26804637579157,43.60203230998356],[-91.2690043824128,43.60213685720777],[-91.26942651811129,43.60205256654888],[-91.26959613907594,43.60205127529244],[-91.27001250166214,43.602138905959166],[-91.27199309614522,43.6024546435927],[-91.27279566878529,43.60257170957797],[-91.27101539134348,43.62252042954499],[-91.27900514354066,43.686963875823245],[-91.27072478357753,43.70061456762488],[-91.27513350445896,43.7222439775758],[-91.2720732149242,43.733225830282564],[-91.28131092960851,43.745831313067704],[-91.28220493384289,43.75946945187212],[-91.29587066718037,43.771014044475955],[-91.30361518473127,43.79123829595508],[-91.3009771787123,43.79670583475013],[-91.30626922883975,43.82385617189565],[-91.29772229430391,43.84538601408543],[-91.31176825220689,43.864118021851596],[-91.30486177303548,43.86831430076367],[-91.30375424412638,43.868981888907555],[-91.29178360959848,43.86881173041616],[-91.29127775416717,43.868805688609555],[-91.29111189714847,43.86881050836935],[-91.29107855742255,43.86881116205027],[-91.29101320958358,43.868810328827],[-91.29075604839969,43.868807049871236],[-91.29067022073605,43.86881033910723],[-91.29061770447981,43.86881235172592],[-91.29051824947788,43.86881123704602],[-91.2878737329714,43.86881577757726],[-91.28783777866627,43.86881681654208],[-91.28773239371901,43.868815319455095],[-91.28734923000748,43.86881160379781],[-91.28729324685159,43.86881389605068],[-91.28727069513546,43.86881540400942],[-91.287198250161,43.8688135881384],[-91.2871789550561,43.86881246398919],[-91.28713471142291,43.86881338219061],[-91.28708810065592,43.868814349517905],[-91.28683553043501,43.868812518572284],[-91.28676657864798,43.8688132822907],[-91.28673821745467,43.86881210225268],[-91.27534818296584,43.86882428846019],[-91.27070520023477,43.87088938517],[-91.25422721890797,43.8769869819638],[-91.24473694185468,43.88408150739306],[-91.23973876148908,43.883633034039676],[-91.23661807014598,43.88424450481796],[-91.22987823230366,43.885643561706516]],[[-91.29745883138425,43.83891002473558],[-91.29623263225712,43.83162617732113],[-91.29707765285985,43.84526403175514],[-91.29745883138425,43.83891002473558]]]}},{type:"Feature",properties:{region:"GLTG",id:"11",sortOrder:11,title:"Upper Mississippi - Pool 9"},geometry:{type:"Polygon",coordinates:[[[-91.27039164227551,43.602191485874506],[-91.27001250166214,43.602138905959166],[-91.26942651811129,43.60205256654888],[-91.26558990732383,43.60155590484244],[-91.25843309557713,43.600639236718635],[-91.2583650090139,43.600602480921566],[-91.25835155249595,43.60059817244506],[-91.25658295711521,43.598457207258676],[-91.25657330018744,43.59844579863121],[-91.24513469708282,43.5898996193268],[-91.24268597693678,43.588106303342286],[-91.24262232460103,43.58805606584723],[-91.23822929102873,43.58405829082634],[-91.23774381027039,43.58361693196826],[-91.23771371407427,43.58358552159156],[-91.23757046692218,43.58344519043695],[-91.23705312293977,43.582971741234616],[-91.23598018980418,43.58202874387602],[-91.23568022402833,43.58163938235042],[-91.23556378563855,43.58118166526263],[-91.23560448496868,43.578195943243855],[-91.23563623582645,43.576918814975386],[-91.23563935243394,43.57663198983814],[-91.23563909213557,43.576505637822706],[-91.23551795134743,43.57420362917989],[-91.23562482986316,43.5722739778847],[-91.23573229674273,43.570834832928604],[-91.23557650213547,43.5705490811485],[-91.23516980006656,43.570294203918245],[-91.22859747662864,43.570173073431626],[-91.22853870998446,43.570429275990975],[-91.22855065011042,43.570169501982],[-91.2263424164909,43.53378721135941],[-91.2155888868706,43.52328332724677],[-91.2128313786176,43.51001794548252],[-91.21551917527795,43.47321116213487],[-91.21185793225123,43.448001228252025],[-91.18803110509035,43.40107504259565],[-91.15307414622633,43.3721032011302],[-91.07941972651253,43.33926263801328],[-91.05968040187877,43.317927156716486],[-91.05275908810874,43.303110167273815],[-91.0475805293956,43.27827379386525],[-91.0586805329504,43.24478687810831],[-91.07803426787859,43.224133796769564],[-91.09823866462499,43.21073092242826],[-91.0983530715397,43.21082628767756],[-91.09842084802892,43.21087352803851],[-91.0984406936117,43.21089075295778],[-91.0984735660037,43.21091928446037],[-91.09853103045238,43.21096256092651],[-91.09863797187867,43.21104242457447],[-91.09868995162823,43.2110795021831],[-91.09877322581117,43.21114346683223],[-91.09887913236003,43.211217712424485],[-91.09891592366834,43.21124522952979],[-91.09910858826728,43.211387187498545],[-91.09930845791602,43.21152946360873],[-91.09945856747706,43.21163184116929],[-91.09984506386814,43.211775171161875],[-91.10270537966338,43.21339841657445],[-91.1149232015654,43.222258110871856],[-91.11501829423956,43.22234548263448],[-91.11611051147543,43.22319384285762],[-91.11619550309611,43.223274051581726],[-91.12139762959544,43.22983822429129],[-91.12149861001343,43.2300334759662],[-91.1219684279156,43.23104967426754],[-91.12208572292045,43.231290214227755],[-91.12285774815484,43.23231587272784],[-91.12294200460529,43.232395814129596],[-91.12303385082392,43.232436900383824],[-91.12307200253628,43.232788157951745],[-91.11011223181171,43.244162701243184],[-91.09395892266222,43.26927314572628],[-91.09190571819204,43.28674765117941],[-91.09653851606298,43.2988770136389],[-91.13032733327513,43.3248938743225],[-91.1618834245405,43.33489592871202],[-91.17049184471827,43.33335921361098],[-91.18176786173954,43.34383986498433],[-91.20592823507315,43.34875061450691],[-91.26014094468076,43.40998815729316],[-91.27400629253171,43.451040738139454],[-91.30448591289469,43.48030058942701],[-91.30320863341376,43.48766493526345],[-91.28167759068575,43.506467908790626],[-91.27738182328449,43.5837829876952],[-91.28173581651728,43.59425246698759],[-91.27279566878529,43.60257170957797],[-91.27252730809208,43.602605350044115],[-91.27199309614522,43.6024546435927],[-91.27039164227551,43.602191485874506]]]}},{type:"Feature",properties:{region:"GLTG",id:"12",sortOrder:12,title:"Upper Mississippi - Pool 10"},geometry:{type:"Polygon",coordinates:[[[-91.10270500183105,43.21339988708496],[-91.09984397888184,43.211774826049805],[-91.099458694458,43.21163368225098],[-91.09930801391602,43.211530685424805],[-91.09910774230957,43.21138954162598],[-91.09891510009764,43.21124458312988],[-91.09887886047363,43.21121788024902],[-91.0987720489502,43.21114540100097],[-91.09869003295897,43.211080551147454],[-91.09863662719727,43.211042404174805],[-91.09852981567383,43.21096229553222],[-91.09847259521484,43.2109203338623],[-91.09844017028809,43.21088981628418],[-91.09842109680176,43.21087455749512],[-91.09835243225098,43.21082878112793],[-91.09823799133301,43.21073341369629],[-91.13111495971678,43.175287246704094],[-91.14257049560545,43.142778396606445],[-91.13541984558105,43.0662899017334],[-91.12584114074707,43.04411506652832],[-91.10547256469727,43.01668739318848],[-91.11112022399902,43.009618759155266],[-91.10703659057616,43.00695991516113],[-91.10672950744627,42.994977951049805],[-91.12175369262694,42.99551200866699],[-91.13161277770996,42.989858627319336],[-91.14214706420898,42.940744400024414],[-91.13313865661621,42.92804145812988],[-91.08956909179688,42.90191459655761],[-91.07867050170898,42.88915824890137],[-91.07168960571289,42.85618019104004],[-91.07654762268066,42.82015800476074],[-91.07090187072754,42.78944587707519],[-91.07123565673828,42.78930473327637],[-91.07135009765624,42.78928184509277],[-91.07574844360352,42.788652420043945],[-91.07608985900877,42.788629531860344],[-91.10703086853027,42.781686782836914],[-91.11000251770018,42.80206489562988],[-91.1046028137207,42.87573051452637],[-91.15069198608398,42.906789779663086],[-91.17183876037596,42.93646430969238],[-91.15915298461914,42.98859596252441],[-91.17851638793944,43.041940689086914],[-91.1806755065918,43.08344841003418],[-91.18535614013672,43.08847236633301],[-91.17928504943846,43.09300422668457],[-91.17834091186523,43.10513877868652],[-91.18620109558105,43.15035820007324],[-91.17641830444336,43.1742877960205],[-91.1539134979248,43.208356857299805],[-91.12307167053223,43.23278999328613],[-91.12303352355957,43.232439041137695],[-91.1229419708252,43.23239707946777],[-91.12285804748535,43.232316970825195],[-91.12208557128906,43.23129081726074],[-91.12196731567383,43.23105049133301],[-91.12149810791016,43.23003578186035],[-91.12139701843262,43.22983741760254],[-91.11619567871094,43.223276138305664],[-91.11610984802246,43.223196029663086],[-91.11501693725586,43.222345352172844],[-91.11492347717285,43.22225761413574],[-91.10270500183105,43.21339988708496]]]}},{type:"Feature",properties:{region:"GLTG",id:"13",sortOrder:13,title:"Upper Mississippi - Pool 11"},geometry:{type:"Polygon",coordinates:[[[-91.07083892822266,42.78946495056152],[-91.05507850646973,42.760454177856445],[-91.03830146789551,42.74424171447754],[-90.96993637084961,42.70681953430176],[-90.8401699066162,42.67923164367676],[-90.70805740356445,42.661916732788086],[-90.69092178344725,42.65171241760254],[-90.66527938842773,42.61236381530762],[-90.66101264953613,42.57477378845215],[-90.64023208618164,42.56553840637207],[-90.62848472595213,42.5541934967041],[-90.62349510192871,42.5451717376709],[-90.6236343383789,42.54511833190918],[-90.62368774414062,42.545095443725586],[-90.62378883361816,42.545053482055664],[-90.62381935119629,42.54504203796387],[-90.62395477294922,42.54501152038574],[-90.62409591674805,42.54497718811035],[-90.62421226501465,42.54494667053223],[-90.62459182739258,42.54485511779785],[-90.6248092651367,42.54480171203613],[-90.62506484985352,42.54473686218262],[-90.6251220703125,42.54472541809082],[-90.62634086608887,42.54446220397949],[-90.6264533996582,42.544454574584954],[-90.62650299072266,42.544443130493164],[-90.62670516967773,42.54446601867675],[-90.62760162353516,42.54432487487793],[-90.6283550262451,42.544240951538086],[-90.63931846618652,42.542043685913086],[-90.63999557495117,42.54188346862792],[-90.64030838012695,42.541830062866204],[-90.64676094055176,42.539667129516594],[-90.64712715148926,42.53956031799316],[-90.64714813232422,42.53955268859863],[-90.64718818664551,42.53953742980957],[-90.64723014831543,42.53952598571777],[-90.64727020263672,42.53951072692871],[-90.64729690551758,42.53950309753418],[-90.64735221862793,42.539484024047844],[-90.64739990234375,42.539480209350586],[-90.64741706848145,42.539480209350586],[-90.66191673278809,42.5496768951416],[-90.70095634460449,42.5649471282959],[-90.70229721069336,42.57373237609863],[-90.69443893432617,42.59381294250488],[-90.7038402557373,42.60966682434082],[-90.70766830444336,42.60875129699707],[-90.70860671997069,42.630475997924805],[-90.72060012817383,42.63772392272949],[-90.92691802978516,42.675058364868164],[-90.94137001037598,42.68179512023926],[-90.98954391479492,42.69084358215332],[-91.04574012756348,42.71112632751465],[-91.05050086975098,42.70605278015137],[-91.06219673156738,42.70876121520996],[-91.07563972473143,42.70303535461425],[-91.07234382629395,42.727651596069336],[-91.08941650390625,42.74455070495605],[-91.10703086853027,42.781686782836914],[-91.07608985900877,42.788629531860344],[-91.07574844360352,42.788652420043945],[-91.07135200500488,42.78928184509277],[-91.07123565673828,42.78930473327637],[-91.07090187072754,42.78944587707519],[-91.07083892822266,42.78946495056152]]]}},{type:"Feature",properties:{region:"GLTG",id:"14",sortOrder:14,title:"Upper Mississippi - Pool 12"},geometry:{type:"Polygon",coordinates:[[[-90.62319564819336,42.54446601867675],[-90.62524795532227,42.52713966369629],[-90.64605140686035,42.49482536315918],[-90.62078094482422,42.47608757019043],[-90.58403396606445,42.46554756164551],[-90.58621597290039,42.46201515197754],[-90.55221176147461,42.43278312683105],[-90.50306510925293,42.41420936584473],[-90.44360160827637,42.37465858459473],[-90.42441749572754,42.354936599731445],[-90.402530670166,42.341135025024414],[-90.39830589294434,42.334638595581055],[-90.40548324584961,42.293413162231445],[-90.40192604064941,42.28682518005371],[-90.40089416503906,42.28634071350098],[-90.39870643615723,42.28420448303223],[-90.39042282104492,42.2779483795166],[-90.38764190673828,42.276063919067376],[-90.38760757446289,42.27591133117676],[-90.38764762878417,42.275861740112305],[-90.38781547546387,42.27565956115723],[-90.3878402709961,42.27563285827636],[-90.38815498352051,42.27535057067871],[-90.3883819580078,42.27514457702637],[-90.38842391967773,42.27509880065918],[-90.38867950439453,42.27484703063965],[-90.38897895812988,42.27456855773925],[-90.389102935791,42.27446937561035],[-90.3891773223877,42.2744083404541],[-90.38936614990234,42.27424430847168],[-90.38948631286621,42.27414131164551],[-90.38955497741699,42.27408790588379],[-90.38987350463867,42.273855209350586],[-90.38993072509764,42.27381706237793],[-90.39007568359375,42.273698806762695],[-90.39200592041016,42.2720890045166],[-90.39203643798828,42.272062301635735],[-90.39290428161621,42.27140235900879],[-90.39294433593749,42.27136421203613],[-90.39347839355469,42.27098655700683],[-90.39389228820801,42.2707576751709],[-90.39393043518066,42.270742416381836],[-90.39411926269531,42.27069664001465],[-90.3942699432373,42.2706356048584],[-90.39453887939453,42.27053642272949],[-90.39460182189941,42.270517349243164],[-90.39487266540527,42.270429611206055],[-90.39553833007812,42.27017784118652],[-90.39566612243652,42.27013969421387],[-90.39575386047363,42.27010536193848],[-90.39582633972168,42.27007484436035],[-90.39858055114746,42.26896858215332],[-90.39868927001952,42.26893424987793],[-90.39895439147949,42.26882743835449],[-90.39903450012207,42.268789291381836],[-90.39906311035156,42.26877784729004],[-90.3991870880127,42.268728256225586],[-90.39926910400389,42.26869392395019],[-90.39941024780272,42.268632888793945],[-90.39959907531737,42.2685489654541],[-90.39973449707031,42.26850700378418],[-90.40005302429199,42.26836585998535],[-90.40040397644043,42.268259048461914],[-90.40060043334961,42.26818656921387],[-90.40063095092773,42.268178939819336],[-90.40080833435059,42.26813316345215],[-90.40094947814941,42.268083572387695],[-90.40119743347168,42.26800346374512],[-90.40141296386719,42.26794624328613],[-90.40146255493164,42.26792335510254],[-90.40153884887695,42.26788902282715],[-90.40184211730957,42.26778602600098],[-90.40188980102539,42.267770767211914],[-90.40203857421875,42.26771354675293],[-90.40258598327637,42.267526626586914],[-90.40264701843262,42.26749992370605],[-90.40315246582031,42.26726722717285],[-90.40330123901367,42.2672061920166],[-90.40343284606934,42.26713752746582],[-90.40359687805176,42.267045974731445],[-90.40365791320801,42.26701545715331],[-90.40374183654785,42.266984939575195],[-90.40380477905273,42.26695442199707],[-90.40401649475098,42.266862869262695],[-90.40437126159668,42.26671409606933],[-90.4051342010498,42.266462326049805],[-90.40523719787596,42.26642417907714],[-90.4053211212158,42.26639366149902],[-90.40566062927246,42.26626777648926],[-90.40609931945801,42.26612281799316],[-90.40628051757812,42.26605415344238],[-90.40679168701172,42.26584815979004],[-90.40702438354492,42.26574897766113],[-90.40753936767578,42.26552009582519],[-90.4082145690918,42.265230178833],[-90.4083137512207,42.26519584655762],[-90.40859413146971,42.26509666442871],[-90.40907287597656,42.26490592956543],[-90.40914535522461,42.2648868560791],[-90.40922546386719,42.2648639678955],[-90.40934753417969,42.26480674743652],[-90.4094409942627,42.26477241516113],[-90.40947723388672,42.264760971069336],[-90.40954208374023,42.26474189758301],[-90.41012191772461,42.26457405090331],[-90.41032981872559,42.264482498168945],[-90.41068267822266,42.26432609558105],[-90.41104316711426,42.26420021057129],[-90.41165351867676,42.263986587524414],[-90.41194725036621,42.26387596130371],[-90.41307258605957,42.26342582702637],[-90.4132251739502,42.263368606567376],[-90.41341209411621,42.26329231262207],[-90.41353034973145,42.26325798034668],[-90.4135627746582,42.26324653625488],[-90.41375541687012,42.263174057006836],[-90.41389846801758,42.26312446594238],[-90.41391563415527,42.26311683654785],[-90.4141731262207,42.263044357299805],[-90.4142951965332,42.263010025024414],[-90.41472244262695,42.262887954711914],[-90.41477012634277,42.26288032531738],[-90.41481208801268,42.262887954711914],[-90.41490364074707,42.262868881225586],[-90.41509437561035,42.26279258728027],[-90.41512489318848,42.26278495788574],[-90.41518211364746,42.26278114318848],[-90.41536712646483,42.26273155212402],[-90.41610336303711,42.26258659362793],[-90.4161262512207,42.262582778930664],[-90.41669845581055,42.262434005737305],[-90.41674613952637,42.26242637634277],[-90.41690635681152,42.26239204406738],[-90.4169406890869,42.262380599975586],[-90.41748237609863,42.26227378845215],[-90.41753959655762,42.26225471496582],[-90.41759109497069,42.26226234436035],[-90.41766929626465,42.262228012084954],[-90.41768836975098,42.262224197387695],[-90.4186668395996,42.26198387145996],[-90.4188404083252,42.26192283630371],[-90.41893196105957,42.261892318725586],[-90.41897010803223,42.26188468933105],[-90.41911315917969,42.2618350982666],[-90.41928672790527,42.26178550720215],[-90.41960716247559,42.2617015838623],[-90.42014312744139,42.261552810668945],[-90.42042541503906,42.26148796081543],[-90.42048454284668,42.2614688873291],[-90.42055702209471,42.26144599914551],[-90.42108535766602,42.26131248474121],[-90.42142677307129,42.26124382019043],[-90.42168045043944,42.261186599731445],[-90.42173385620117,42.26117134094238],[-90.42178344726562,42.26117515563965],[-90.42181587219238,42.26118278503418],[-90.42183685302734,42.26119422912598],[-90.42185401916504,42.26120567321777],[-90.4219284057617,42.26146125793457],[-90.42196083068848,42.26150703430175],[-90.42197799682617,42.26152229309082],[-90.4220027923584,42.26153755187988],[-90.42208862304688,42.26158332824706],[-90.42223930358887,42.26164817810058],[-90.42222404479979,42.2616024017334],[-90.42222023010254,42.2615909576416],[-90.42218399047852,42.26150321960449],[-90.42214775085449,42.261343002319336],[-90.42217063903809,42.261308670043945],[-90.42220306396484,42.26128959655762],[-90.42223930358887,42.26128196716308],[-90.42225456237793,42.26127815246582],[-90.4222946166992,42.26127052307128],[-90.42230987548828,42.261274337768555],[-90.42237663269043,42.261308670043945],[-90.42239189147949,42.26133918762207],[-90.42242240905762,42.261388778686516],[-90.42243385314941,42.26140022277831],[-90.42247200012206,42.26144599914551],[-90.42248725891113,42.26148796081543],[-90.42250061035156,42.26152229309082],[-90.42253494262695,42.26156806945801],[-90.42263221740723,42.26164436340332],[-90.4227066040039,42.26165962219238],[-90.42275047302246,42.261667251586914],[-90.42287254333496,42.26168632507324],[-90.42295265197754,42.261674880981445],[-90.42304420471191,42.26166343688965],[-90.42312049865723,42.26164436340332],[-90.42316818237305,42.26163673400878],[-90.42327308654785,42.261613845825195],[-90.42334175109863,42.26159858703613],[-90.42371940612793,42.26149559020996],[-90.42384147644043,42.2614688873291],[-90.42392158508301,42.26144981384277],[-90.42418098449707,42.26137733459473],[-90.42434310913086,42.26135063171387],[-90.42435836791992,42.26135063171387],[-90.42447471618652,42.26130485534668],[-90.42491912841795,42.261159896850586],[-90.4251937866211,42.26106834411621],[-90.42527770996094,42.26104164123535],[-90.42540550231934,42.26099967956543],[-90.42541694641113,42.260995864868164],[-90.42544364929199,42.26098823547363],[-90.42561721801756,42.26095008850098],[-90.42578506469727,42.26091957092285],[-90.42589950561522,42.26090049743652],[-90.42598724365234,42.26090049743652],[-90.42601585388184,42.26089668273926],[-90.42605972290039,42.26088905334473],[-90.42622184753418,42.26086235046386],[-90.4262752532959,42.26084327697754],[-90.4264450073242,42.260812759399414],[-90.42653846740721,42.260786056518555],[-90.42688751220703,42.26071739196777],[-90.42712974548338,42.26067924499511],[-90.42728424072264,42.26065635681152],[-90.42731666564941,42.26064491271973],[-90.42769241333008,42.26056480407715],[-90.42829132080078,42.260419845581055],[-90.42879104614258,42.26030158996582],[-90.4288387298584,42.26029014587402],[-90.4289722442627,42.26027870178223],[-90.42903518676758,42.26026725769043],[-90.42939949035643,42.260175704956055],[-90.42947578430176,42.260149002075195],[-90.43023109436035,42.25999641418457],[-90.43025588989258,42.25998878479004],[-90.43091201782225,42.2597713470459],[-90.43105506896971,42.25971794128418],[-90.43158912658691,42.25958442687988],[-90.43165779113768,42.25954627990723],[-90.43217277526855,42.26171684265137],[-90.42710304260254,42.262094497680664],[-90.44085693359375,42.30129814147949],[-90.43108749389648,42.329668045043945],[-90.43489074707031,42.33917045593262],[-90.46278190612792,42.36551094055176],[-90.50099754333495,42.391645431518555],[-90.58076095581055,42.42514991760254],[-90.5980396270752,42.44638633728027],[-90.62223052978514,42.45546531677246],[-90.65462875366211,42.475873947143555],[-90.66541862487793,42.48890876770019],[-90.67207527160645,42.506399154663086],[-90.64741516113281,42.539480209350586],[-90.64739990234375,42.539480209350586],[-90.64735221862793,42.539484024047844],[-90.64729690551758,42.53950309753418],[-90.64727020263672,42.53951072692871],[-90.64723014831543,42.53952598571777],[-90.64718818664551,42.53953742980957],[-90.64714813232422,42.53955268859863],[-90.64712715148926,42.53956031799316],[-90.64676094055176,42.539667129516594],[-90.64030456542967,42.541830062866204],[-90.63999557495117,42.54188346862792],[-90.63931846618652,42.542043685913086],[-90.6283550262451,42.544240951538086],[-90.62760162353516,42.54432487487793],[-90.62670516967773,42.54446601867675],[-90.62650299072266,42.544443130493164],[-90.6264533996582,42.544454574584954],[-90.62634086608887,42.54446220397949],[-90.6251220703125,42.54472541809082],[-90.62506484985352,42.54473686218262],[-90.6248092651367,42.54480171203613],[-90.62459182739258,42.54485511779785],[-90.62421226501465,42.54494667053223],[-90.62409591674805,42.54497718811035],[-90.62395477294922,42.54501152038574],[-90.62381935119629,42.54504203796387],[-90.62378883361816,42.545053482055664],[-90.62349510192871,42.5451717376709],[-90.62319564819336,42.54446601867675]]]}},{type:"Feature",properties:{region:"GLTG",id:"15",sortOrder:15,title:"Upper Mississippi - Pool 13"},geometry:{type:"Polygon",coordinates:[[[-90.37617492675781,42.26748847961426],[-90.34952163696289,42.26579475402832],[-90.33091926574707,42.256052017211914],[-90.32821846008301,42.244760513305664],[-90.30692100524902,42.23475074768066],[-90.2934455871582,42.21372032165527],[-90.28027153015137,42.20541572570801],[-90.26842498779295,42.20448112487793],[-90.27125358581543,42.207704544067376],[-90.26775550842285,42.21318244934082],[-90.26113510131836,42.214887619018555],[-90.24240303039551,42.20474815368652],[-90.22680473327637,42.20768165588379],[-90.19676589965819,42.19576835632324],[-90.18718338012695,42.18311882019043],[-90.18412208557129,42.162973403930664],[-90.1580410003662,42.1272029876709],[-90.15878105163574,42.108339309692376],[-90.15345573425292,42.09354209899902],[-90.11865997314453,42.08697700500488],[-90.08814811706543,42.07269477844238],[-90.09192848205565,42.0710391998291],[-90.09100532531738,42.064870834350586],[-90.07659149169922,42.04819297790527],[-90.07093238830566,42.03267860412598],[-90.07213020324707,42.007028579711914],[-90.06624794006348,42.000837326049805],[-90.06860733032227,41.97706413269043],[-90.06599807739258,41.97051429748535],[-90.06054878234863,41.96993064880371],[-90.05570220947266,41.95225715637207],[-90.07487678527832,41.902204513549805],[-90.11661529541016,41.90041542053223],[-90.11707305908203,41.90053367614746],[-90.11709022521973,41.90053749084473],[-90.15116310119627,41.89838981628418],[-90.15158462524414,41.898324966430664],[-90.17363357543944,41.897462844848626],[-90.18006134033203,41.9066219329834],[-90.18614387512207,41.94949531555176],[-90.1959056854248,41.96571159362793],[-90.19073486328125,41.97155570983887],[-90.17980194091797,41.971323013305664],[-90.1607437133789,41.994333267211914],[-90.15921783447266,42.00471305847168],[-90.16858100891113,42.04172706604004],[-90.19103050231934,42.07047462463379],[-90.19583320617674,42.06915092468262],[-90.2035026550293,42.07964515686035],[-90.20176696777342,42.09990501403808],[-90.19307708740234,42.112112045288086],[-90.19494628906249,42.11981010437012],[-90.21344184875488,42.13683891296386],[-90.22932624816895,42.14468955993652],[-90.26062965393066,42.12045860290527],[-90.2765998840332,42.115312576293945],[-90.32999229431152,42.15475273132324],[-90.32567596435547,42.15851020812988],[-90.33903503417969,42.17196846008301],[-90.38263511657715,42.199758529663086],[-90.38602828979491,42.21907997131348],[-90.41269683837889,42.23956108093261],[-90.41692733764648,42.247610092163086],[-90.43106651306151,42.25327491760254],[-90.43165779113768,42.25954627990723],[-90.43159103393555,42.25958442687988],[-90.43105506896971,42.25971794128418],[-90.43091201782225,42.2597713470459],[-90.43025588989258,42.25998878479004],[-90.43023109436035,42.25999641418457],[-90.42947578430176,42.260149002075195],[-90.42939949035643,42.260175704956055],[-90.42903518676758,42.26026725769043],[-90.4289722442627,42.26027870178223],[-90.4288387298584,42.26029014587402],[-90.42879104614258,42.26030158996582],[-90.42829132080078,42.260419845581055],[-90.42769241333008,42.26056480407715],[-90.42731666564941,42.26064491271973],[-90.42728424072264,42.26065635681152],[-90.42712974548338,42.26067924499511],[-90.42688751220703,42.26071739196777],[-90.42653846740721,42.260786056518555],[-90.4264450073242,42.260812759399414],[-90.4262752532959,42.26084327697754],[-90.42622184753418,42.26086235046386],[-90.42605972290039,42.26088905334473],[-90.42601585388184,42.26089668273926],[-90.42598724365234,42.26090049743652],[-90.42589950561522,42.26090049743652],[-90.42578506469727,42.26091957092285],[-90.42561721801756,42.26095008850098],[-90.42544364929199,42.26098823547363],[-90.42541694641113,42.260995864868164],[-90.42540550231934,42.26099967956543],[-90.42527770996094,42.26104164123535],[-90.4251937866211,42.26106834411621],[-90.42491912841795,42.261159896850586],[-90.42447471618652,42.26130485534668],[-90.42435836791992,42.26135063171387],[-90.42434310913086,42.26135063171387],[-90.42418098449707,42.26137733459473],[-90.42392158508301,42.26144981384277],[-90.42384147644043,42.2614688873291],[-90.42371940612793,42.26149559020996],[-90.42334175109863,42.26159858703613],[-90.42327308654785,42.261613845825195],[-90.42316818237305,42.26163673400878],[-90.42312049865723,42.26164436340332],[-90.42304420471191,42.26166343688965],[-90.42295265197754,42.261674880981445],[-90.42287635803223,42.2616901397705],[-90.42275047302246,42.261667251586914],[-90.4227066040039,42.26165962219238],[-90.42263221740723,42.26164436340332],[-90.42253494262695,42.26156806945801],[-90.42250061035156,42.26152229309082],[-90.42248725891113,42.26148796081543],[-90.42247200012206,42.26144599914551],[-90.42243385314941,42.26140022277831],[-90.42242240905762,42.261388778686516],[-90.42239189147949,42.26133918762207],[-90.42237663269043,42.261308670043945],[-90.42230987548828,42.261274337768555],[-90.4222946166992,42.26127052307128],[-90.42226982116699,42.26127052307128],[-90.42225456237793,42.26127815246582],[-90.42223930358887,42.26128196716308],[-90.42220306396484,42.26128959655762],[-90.42217063903809,42.261308670043945],[-90.42214393615723,42.26132774353027],[-90.42214775085449,42.261343002319336],[-90.42218399047852,42.26150321960449],[-90.42222023010254,42.2615909576416],[-90.42222404479979,42.2616024017334],[-90.42223930358887,42.26164817810058],[-90.42213439941406,42.26161003112793],[-90.42208862304688,42.26158332824706],[-90.4220027923584,42.26153755187988],[-90.42197799682617,42.26152229309082],[-90.42196083068848,42.26150703430175],[-90.4219284057617,42.26146125793457],[-90.42185401916504,42.26120567321777],[-90.42183685302734,42.26119422912598],[-90.42181587219238,42.26118278503418],[-90.42178344726562,42.26117515563965],[-90.4217414855957,42.26117134094238],[-90.42168045043944,42.261186599731445],[-90.42142677307129,42.26124382019043],[-90.42108535766602,42.26131248474121],[-90.42055702209471,42.26144599914551],[-90.42048454284668,42.2614688873291],[-90.42042541503906,42.26148796081543],[-90.42014312744139,42.261552810668945],[-90.41960716247559,42.2617015838623],[-90.41928672790527,42.26178550720215],[-90.41911315917969,42.2618350982666],[-90.41897010803223,42.26188468933105],[-90.41893196105957,42.261892318725586],[-90.4188404083252,42.26192283630371],[-90.4186668395996,42.26198387145996],[-90.41768836975098,42.262224197387695],[-90.41767120361328,42.262228012084954],[-90.41759109497069,42.26226234436035],[-90.41753768920898,42.26225471496582],[-90.41748237609863,42.26227378845215],[-90.4169406890869,42.262380599975586],[-90.41690635681152,42.26239204406738],[-90.41674613952637,42.26242637634277],[-90.41669845581055,42.262434005737305],[-90.4161262512207,42.262582778930664],[-90.41610336303711,42.26258659362793],[-90.41536712646483,42.26273155212402],[-90.41518211364746,42.26278114318848],[-90.41512489318848,42.26278495788574],[-90.41509437561035,42.26279258728027],[-90.41490364074707,42.262868881225586],[-90.41481208801268,42.262887954711914],[-90.4147720336914,42.26288032531738],[-90.41472244262695,42.262887954711914],[-90.4142951965332,42.263010025024414],[-90.4141731262207,42.263044357299805],[-90.41391563415527,42.26311683654785],[-90.41389846801758,42.26312446594238],[-90.41375541687012,42.263174057006836],[-90.4135627746582,42.26324653625488],[-90.41353034973145,42.26325798034668],[-90.41341209411621,42.26329231262207],[-90.4132251739502,42.263368606567376],[-90.41307258605957,42.26342582702637],[-90.41194725036621,42.26387596130371],[-90.41165351867676,42.263986587524414],[-90.41104316711426,42.26420021057129],[-90.41068267822266,42.26432609558105],[-90.41032981872559,42.264482498168945],[-90.41012191772461,42.26457405090331],[-90.40954208374023,42.26474189758301],[-90.40947723388672,42.264760971069336],[-90.4094409942627,42.26477241516113],[-90.40934753417969,42.26480674743652],[-90.40922546386719,42.2648639678955],[-90.40914535522461,42.2648868560791],[-90.40907287597656,42.26490592956543],[-90.40859413146971,42.26509666442871],[-90.4083137512207,42.26519584655762],[-90.4082145690918,42.265230178833],[-90.40753936767578,42.26552009582519],[-90.40702438354492,42.26574897766113],[-90.40679168701172,42.26584815979004],[-90.40628051757812,42.26605415344238],[-90.40609931945801,42.26612281799316],[-90.40566062927246,42.26626777648926],[-90.4053211212158,42.26639366149902],[-90.40523719787596,42.26642417907714],[-90.4051342010498,42.266462326049805],[-90.40437126159668,42.26671409606933],[-90.40401649475098,42.266862869262695],[-90.40380477905273,42.26695442199707],[-90.40374183654785,42.266984939575195],[-90.40365791320801,42.26701545715331],[-90.40359687805176,42.267045974731445],[-90.40343284606934,42.26713752746582],[-90.40330123901367,42.2672061920166],[-90.40315246582031,42.26726722717285],[-90.40264701843262,42.26749992370605],[-90.40258598327637,42.267526626586914],[-90.40203857421875,42.26771354675293],[-90.40188980102539,42.267770767211914],[-90.40184211730957,42.26778602600098],[-90.40153884887695,42.26788902282715],[-90.40146255493164,42.26792335510254],[-90.40141296386719,42.26794624328613],[-90.40119743347168,42.26800346374512],[-90.40094947814941,42.268083572387695],[-90.40080833435059,42.26813316345215],[-90.40063095092773,42.268178939819336],[-90.40060043334961,42.26818656921387],[-90.40040397644043,42.268259048461914],[-90.40005302429199,42.26836585998535],[-90.39973449707031,42.26850700378418],[-90.39959907531737,42.2685489654541],[-90.39941024780272,42.268632888793945],[-90.39926910400389,42.26869392395019],[-90.3991870880127,42.268728256225586],[-90.39906311035156,42.26877784729004],[-90.39903450012207,42.268789291381836],[-90.39895439147949,42.26882743835449],[-90.39868927001952,42.26893424987793],[-90.39858055114746,42.26896858215332],[-90.39582633972168,42.27007484436035],[-90.39575386047363,42.27010536193848],[-90.39566612243652,42.27013969421387],[-90.39553833007812,42.27017784118652],[-90.39487266540527,42.270429611206055],[-90.39460182189941,42.270517349243164],[-90.39453887939453,42.27053642272949],[-90.3942699432373,42.2706356048584],[-90.39411926269531,42.27069664001465],[-90.39393043518066,42.270742416381836],[-90.39389228820801,42.2707576751709],[-90.39347839355469,42.27098655700683],[-90.39294433593749,42.27136421203613],[-90.39290428161621,42.27140235900879],[-90.39203643798828,42.272062301635735],[-90.39200592041016,42.2720890045166],[-90.39007568359375,42.273698806762695],[-90.38993072509764,42.27381706237793],[-90.38987350463867,42.273855209350586],[-90.38955497741699,42.27408790588379],[-90.38948631286621,42.27414131164551],[-90.38936614990234,42.27424430847168],[-90.3891773223877,42.2744083404541],[-90.389102935791,42.27446937561035],[-90.38897895812988,42.27456855773925],[-90.38867950439453,42.27484703063965],[-90.38842391967773,42.27509880065918],[-90.3883819580078,42.27514457702637],[-90.38815498352051,42.27535057067871],[-90.3878402709961,42.27563285827636],[-90.38781547546387,42.27565956115723],[-90.38764762878417,42.275861740112305],[-90.38760757446289,42.27591133117676],[-90.37617492675781,42.26748847961426]]]}},{type:"Feature",properties:{region:"GLTG",id:"16",sortOrder:16,title:"Upper Mississippi - Pool 14"},geometry:{type:"Polygon",coordinates:[[[-90.07484842174887,41.90219616053203],[-90.07486349351838,41.89781343351206],[-90.09554239642708,41.880363756088876],[-90.0821149319997,41.8491519106239],[-90.1435712394756,41.825860830650775],[-90.1871353292177,41.79379606960329],[-90.20942373124943,41.764504190086946],[-90.237555286131,41.755494558160564],[-90.2283443886276,41.72943467562315],[-90.181833560992,41.71707180419016],[-90.17920495434544,41.693105667324176],[-90.19337520763831,41.662405106147],[-90.22561566983589,41.67041599719094],[-90.25914659572553,41.663863399323084],[-90.30227931803766,41.66698295185972],[-90.31265752714444,41.6736385316329],[-90.32388838235896,41.670622548091586],[-90.33531972829972,41.65061565092337],[-90.33735330602177,41.58422461728139],[-90.34443500965435,41.57822827678241],[-90.39437496423412,41.56748928053282],[-90.40025262837796,41.574793116905326],[-90.40530154908258,41.57429362216358],[-90.40629639809988,41.575241881811536],[-90.39775163819483,41.581947302939135],[-90.37065947393029,41.583212862618765],[-90.34376036954157,41.595927819014705],[-90.35010749413807,41.64440579363073],[-90.341269114556,41.66485702401565],[-90.34155621942405,41.68306941685713],[-90.36019090595452,41.697710771992796],[-90.35489022541336,41.75138168093635],[-90.32528495612013,41.757923086678844],[-90.3047360448242,41.77263090699934],[-90.29682674376788,41.786462505041264],[-90.275701732572,41.79969247698156],[-90.26258378772359,41.815604288344474],[-90.23908222076332,41.82401105475237],[-90.19320246413535,41.852936387663824],[-90.18607486965068,41.87052092431302],[-90.17165062025454,41.886916682867145],[-90.17363352492096,41.89746156930522],[-90.15158566321368,41.89832564979354],[-90.15147026334499,41.89839005827209],[-90.15116405080035,41.89838722605594],[-90.11709063612365,41.900538144611026],[-90.11707320410711,41.9005336189177],[-90.11661591075183,41.90041489436315],[-90.07487697568853,41.90220397440122],[-90.07484842174887,41.90219616053203]]]}},{type:"Feature",properties:{region:"GLTG",id:"17",sortOrder:17,title:"Upper Mississippi - Pool 15"},geometry:{type:"Polygon",coordinates:[[[-90.40530154908258,41.57429362216358],[-90.40025262837796,41.574793116905326],[-90.39437496423412,41.56748928053282],[-90.41407505994262,41.548344196646674],[-90.41792625982065,41.540199038708245],[-90.41607481529212,41.52430183107378],[-90.42630876536404,41.51750200797888],[-90.51846016932201,41.50328517486536],[-90.55703502776693,41.50230685355367],[-90.55689691250208,41.508616844560706],[-90.57109104549738,41.52458323959142],[-90.54493904036909,41.53123753584402],[-90.48449312682065,41.52826930254629],[-90.4589094302642,41.54325598102992],[-90.43748308758454,41.566637922822174],[-90.40629639809988,41.575241881811536],[-90.40530154908258,41.57429362216358]]]}},{type:"Feature",properties:{region:"GLTG",id:"18",sortOrder:18,title:"Upper Mississippi - Pool 16"},geometry:{type:"Polygon",coordinates:[[[-90.60262021644762,41.52520431769859],[-90.57109104549738,41.52458323959142],[-90.55689691250208,41.508616844560706],[-90.55703502776693,41.50230685355367],[-90.56656442103802,41.50222358892141],[-90.5759383338075,41.49564415693143],[-90.58388382535887,41.46810273828858],[-90.5628312472146,41.46451529957262],[-90.54244635533178,41.46900813032219],[-90.54362559131788,41.44086534809845],[-90.64578838769421,41.433855311882944],[-90.65870381042097,41.436091347378635],[-90.6704807943121,41.44447694045314],[-90.72823466702336,41.43721070136574],[-90.79966502828027,41.44118399759218],[-90.82008025610382,41.43173277673361],[-90.83671486682105,41.43433898374835],[-90.86008831763384,41.430709539363406],[-90.89529171561442,41.416186918650475],[-90.94191584003524,41.413778829220746],[-90.98194497650623,41.41809508227989],[-90.99870605734195,41.41362702894608],[-91.008715096155,41.415623475824475],[-91.00971041522003,41.42503659479374],[-91.01795201820242,41.43965955010562],[-90.976696623396,41.44657270499727],[-90.94934162046562,41.43547383029139],[-90.91324885215562,41.43375306795246],[-90.86755415630468,41.45510340756153],[-90.829186262115,41.46225317451655],[-90.73550890902979,41.454628918900454],[-90.70846787841688,41.45779968038503],[-90.66024407444912,41.4697894378359],[-90.64546334140431,41.50284815842952],[-90.60926582132132,41.526099207550146],[-90.60262021644762,41.52520431769859]]]}},{type:"Feature",properties:{region:"GLTG",id:"19",sortOrder:19,title:"Upper Mississippi - Pool 17"},geometry:{type:"Polygon",coordinates:[[[-91.00971041522003,41.42503659479374],[-91.008715096155,41.415623475824475],[-90.99870605734195,41.41362702894608],[-91.0064689018305,41.4047824886962],[-91.01690685535102,41.36892595180572],[-91.00707408335238,41.33752437443945],[-91.01568760549458,41.32198738852268],[-91.00896031576247,41.31064846976799],[-90.99661467991595,41.30261619698296],[-91.00254958263669,41.27331567251342],[-90.97950377305033,41.2408347953195],[-90.9556382815178,41.23678372911709],[-90.9549856316745,41.233151296926145],[-90.94241781255229,41.234206426971525],[-90.93344221327382,41.20121734468147],[-90.93372170470133,41.20126941814621],[-90.93962393061814,41.201014877839775],[-90.93978518183852,41.20095921645308],[-90.95078274048032,41.20057897065796],[-90.95093727622958,41.20052317426254],[-90.951101387914,41.20056662631046],[-90.96225925192006,41.200156608951815],[-90.96572545531896,41.199952175453866],[-90.98492053636812,41.19923578937363],[-90.98573944062143,41.19914032677865],[-90.98572399550166,41.199178544585344],[-90.9893872291667,41.199043640120045],[-90.99076770748403,41.199234363702224],[-91.00009673607173,41.1990769831237],[-91.03431887463789,41.19162260070961],[-91.05633248387026,41.19256805907045],[-91.06640778977344,41.18737381488395],[-91.08121549811862,41.19457944882476],[-91.08889098326165,41.20414199155255],[-91.08889100179287,41.204142065354404],[-91.08888156709843,41.20423626251878],[-91.08896220676945,41.2044359795259],[-91.08919818436141,41.20539465553264],[-91.08946379951917,41.20620514068889],[-91.08946382140026,41.20620520475026],[-91.08945683344488,41.20624101131357],[-91.0894568128038,41.20624111707928],[-91.08947102429667,41.206290891913845],[-91.08947500988496,41.206358339783186],[-91.08964918382193,41.207059457442135],[-91.08965343170291,41.207117930320855],[-91.09003267735753,41.20853398694241],[-91.09003768690977,41.20866909111622],[-91.09014337242255,41.20908525982798],[-91.09093562693131,41.21170599856626],[-91.09244182631306,41.21423507668591],[-91.09244607583344,41.21429353381287],[-91.0925419932463,41.21461037251375],[-91.0927259248716,41.21495118676514],[-91.09302616844002,41.2156767310259],[-91.09325765086365,41.2164596837323],[-91.09393059430407,41.2177273200055],[-91.09428085643324,41.21857978947287],[-91.09478326777457,41.21935370857563],[-91.09507133789877,41.21993493177267],[-91.09534522349591,41.22036279678853],[-91.09551096888337,41.22058621311654],[-91.09563178060071,41.22079087104262],[-91.09595208436698,41.221160956300615],[-91.09670561657393,41.22224976488604],[-91.09770935374233,41.22350482959899],[-91.09882782663361,41.22463567837344],[-91.09939970044324,41.225099977170274],[-91.09976824870928,41.22555641517366],[-91.10048269455115,41.226144656179606],[-91.10063585501919,41.22623725373706],[-91.10093192999634,41.22646731336361],[-91.10104439673157,41.226523210877865],[-91.10180475538004,41.22707166846646],[-91.1023551051078,41.22740499311301],[-91.10315362508408,41.22794956729387],[-91.10335993554932,41.22806104999764],[-91.10368966321609,41.22831417557904],[-91.10423990219118,41.228651992708684],[-91.10438944265395,41.228767043609935],[-91.10474244733737,41.228989024011014],[-91.10510073191868,41.229260628619066],[-91.10520053664823,41.22931631387973],[-91.10528815749605,41.22938080504894],[-91.1053880919143,41.22943198813036],[-91.10549408513526,41.22950578868207],[-91.10590202021511,41.229814236872606],[-91.10606669732555,41.2299475479038],[-91.1067221807466,41.2303861626533],[-91.10701456869698,41.23061614695264],[-91.10787094897444,41.231148128068604],[-91.10847256386104,41.231567833733045],[-91.1085293068415,41.231591283044075],[-91.10865588483021,41.231701447647204],[-91.10880595790667,41.231798486458764],[-91.10903850596196,41.2320094687591],[-91.10924068983054,41.232161405642984],[-91.10937420479364,41.232289697379684],[-91.10949391351576,41.232431272520984],[-91.10956540312351,41.232486489145856],[-91.1096332627513,41.23256416356102],[-91.1097020307386,41.232610328201844],[-91.10976742809618,41.2326699474679],[-91.10988237558593,41.23274389084385],[-91.11044289321788,41.233167415423175],[-91.11058354179634,41.23325529050629],[-91.11062709790139,41.233296537094574],[-91.11070659337132,41.23330684796379],[-91.11100847127622,41.2332082162895],[-91.11141949463273,41.23294474117853],[-91.11205399650598,41.23268942992639],[-91.1355007275141,41.23270969338236],[-91.13660141308142,41.23222870995257],[-91.14898888219011,41.25864406423056],[-91.15624022577953,41.309457387399256],[-91.1849485858241,41.36145231377239],[-91.18220830414182,41.38587233712438],[-91.17067587834325,41.3987949320165],[-91.14860788455196,41.410507044579575],[-91.10553923067039,41.4176423541275],[-91.05400260781344,41.41552159904289],[-91.02999456181877,41.42719146822322],[-91.01795201820242,41.43965955010562],[-91.00971041522003,41.42503659479374]]]}},{type:"Feature",properties:{region:"GLTG",id:"20",sortOrder:20,title:"Upper Mississippi - Pool 18"},geometry:{type:"Polygon",coordinates:[[[-91.10976600646973,41.2326717376709],[-91.09244537353516,41.21429634094238],[-91.09244155883789,41.21423530578613],[-91.09093475341797,41.21170616149902],[-91.09014320373535,41.20908546447754],[-91.09003639221191,41.208669662475586],[-91.09003257751465,41.20853614807129],[-91.08965301513672,41.20711708068848],[-91.08964920043945,41.20705986022949],[-91.08947372436523,41.20635795593262],[-91.08946990966795,41.2062931060791],[-91.08945655822754,41.20624351501464],[-91.08946418762207,41.20620536804199],[-91.08919715881348,41.20539665222168],[-91.08896255493163,41.20443534851074],[-91.08888053894042,41.20423698425293],[-91.0888900756836,41.20414161682129],[-91.08121490478516,41.19457817077637],[-91.06640815734862,41.1873722076416],[-91.05633163452148,41.19256782531738],[-91.0343189239502,41.19162178039551],[-91.00009536743164,41.199079513549805],[-90.99076652526854,41.199239730834954],[-90.98938751220703,41.19904899597168],[-90.9857234954834,41.19917869567871],[-90.9857406616211,41.199140548706055],[-90.98565483093262,41.199201583862305],[-90.98492050170898,41.19924354553223],[-90.96572494506836,41.1999568939209],[-90.96225929260254,41.20016288757324],[-90.95110130310059,41.200571060180664],[-90.95093727111816,41.20052909851074],[-90.9507827758789,41.20058250427246],[-90.9397850036621,41.20096397399902],[-90.93962287902832,41.20102119445801],[-90.9337215423584,41.20127296447753],[-90.93344116210938,41.20121955871581],[-90.9124927520752,41.165006637573235],[-90.8959732055664,41.14846229553223],[-90.87939453125,41.142568588256836],[-90.87789344787598,41.13637351989746],[-90.85344314575195,41.11443901062012],[-90.84433364868164,41.087690353393555],[-90.85360908508301,41.0410099029541],[-90.8667106628418,41.03354072570801],[-90.89247131347656,41.03867149353027],[-90.88843727111816,41.03030967712402],[-90.86555671691895,41.01827430725098],[-90.85994720458983,41.00113868713379],[-90.8661937713623,40.99038887023926],[-90.88121032714844,40.98481559753418],[-90.88624763488768,40.97075843811035],[-90.89775085449219,40.96239280700683],[-90.90368461608885,40.95276451110839],[-90.90453147888184,40.93957710266113],[-90.9258041381836,40.9144344329834],[-90.94031143188477,40.884111404418945],[-90.95475387573242,40.86567497253418],[-91.01760864257812,40.865671157836914],[-91.01754951477051,40.86923027038574],[-91.01804733276367,40.87788200378418],[-91.04950141906738,40.898542404174805],[-91.05778694152832,40.89862251281738],[-91.04205322265625,40.97442817687988],[-91.03053855895996,40.99138069152832],[-91.04964828491211,41.024152755737305],[-91.04454231262207,41.063833236694336],[-91.06186866760252,41.08185386657714],[-91.08230209350586,41.08746528625488],[-91.0729866027832,41.103097915649414],[-91.06012535095215,41.110910415649414],[-91.05384635925293,41.13476753234863],[-91.11722946166992,41.19790077209473],[-91.13510131835938,41.22359275817871],[-91.13660049438475,41.232229232788086],[-91.10976600646973,41.2326717376709]]]}},{type:"Feature",properties:{region:"GLTG",id:"21",sortOrder:21,title:"Upper Mississippi - Pool 19"},geometry:{type:"Polygon",coordinates:[[[-91.01755001944164,40.86922988578078],[-91.01760892731062,40.8656711510124],[-90.95475347304706,40.86567326642015],[-90.96043559555726,40.85881840274267],[-90.95999549047741,40.845974429492905],[-90.96983955748652,40.83955013703197],[-90.97060436264553,40.826700368930936],[-90.98733862405119,40.792669356596775],[-90.98577088252561,40.779296668359926],[-90.99167537475259,40.76340159929061],[-91.00314176787043,40.75253567380119],[-91.00792419769023,40.73808005413448],[-91.02351467106288,40.72010725100303],[-91.03087018963924,40.703698811622296],[-91.05510025849048,40.67773005832922],[-91.07017644551051,40.67567752544769],[-91.09304088739283,40.65686628867586],[-91.10087136390395,40.65873874669641],[-91.10660601666913,40.65314443875018],[-91.12020693084182,40.655916526565036],[-91.13901494127445,40.64352925679163],[-91.15097942081498,40.64269047481194],[-91.20709412605932,40.620480180537804],[-91.23928946209327,40.62334146692696],[-91.27107715953262,40.61282258929857],[-91.30860319718919,40.61365432693857],[-91.33856390367463,40.59934347589508],[-91.39020958731275,40.56165549268919],[-91.39134086471003,40.555662616436344],[-91.38495960030515,40.55491573059704],[-91.38624931961373,40.53981749889537],[-91.35864032233683,40.517888126342314],[-91.35550545534166,40.48582657012216],[-91.3716301857349,40.43899833881174],[-91.3558254619452,40.40996835166133],[-91.35054409166524,40.40813167807237],[-91.35165135784,40.39826113497999],[-91.37063768127184,40.3994761792268],[-91.37542011138635,40.395868737969],[-91.39029020664468,40.44049915792322],[-91.38743540774855,40.46504417653495],[-91.37308616886178,40.48426083362437],[-91.37585331528754,40.50497498584977],[-91.3899659451099,40.522618119096585],[-91.40017216884655,40.5282599914577],[-91.41014385152079,40.528600695285874],[-91.41987311795117,40.518347640609655],[-91.42941648569175,40.51716285698112],[-91.45633063170663,40.52728285041531],[-91.46822641431386,40.541472452566445],[-91.47191650552308,40.55484509667042],[-91.46868650712669,40.585557286747395],[-91.45231889818498,40.610661381124544],[-91.42597167394524,40.616677882883565],[-91.4067222297467,40.628907950885],[-91.34883965720954,40.63760576113357],[-91.29423211176137,40.63133311071066],[-91.27864836637738,40.637019829968295],[-91.25861930738799,40.656942554493256],[-91.24228285472908,40.68856232589312],[-91.25260325042899,40.7069645276447],[-91.21400789063341,40.734952063537804],[-91.17143008456223,40.73721601282238],[-91.15867501747915,40.74558403394108],[-91.12956068969034,40.74112422674847],[-91.113563577059,40.75017711920183],[-91.10060467596588,40.7651021878739],[-91.09417642869684,40.787367465399946],[-91.10047247048396,40.803843593183466],[-91.09986991315229,40.81769246414237],[-91.10802555042945,40.82665011585369],[-91.11186772167301,40.84135566968016],[-91.1099487334484,40.85350293738778],[-91.0577867743733,40.89861983565714],[-91.04950224807384,40.89854072271073],[-91.0180478932679,40.87788227638682],[-91.01755001944164,40.86922988578078]]]}},{type:"Feature",properties:{region:"GLTG",id:"22",sortOrder:22,title:"Upper Mississippi - Pool 20"},geometry:{type:"Polygon",coordinates:[[[-91.46511840820312,40.41012382507324],[-91.45578575134277,40.40744972229003],[-91.45241737365723,40.39656639099121],[-91.4329662322998,40.386632919311516],[-91.3879508972168,40.38895225524902],[-91.37541961669922,40.3958683013916],[-91.37063789367676,40.39947700500488],[-91.35165023803711,40.398263931274414],[-91.35811614990234,40.386884689331055],[-91.37537384033203,40.37690544128418],[-91.4283504486084,40.36802101135253],[-91.44032287597655,40.36359977722168],[-91.4453296661377,40.35475730895996],[-91.41508865356445,40.24189949035644],[-91.41913795471191,40.21670722961426],[-91.4097671508789,40.1404972076416],[-91.50139617919922,40.1429500579834],[-91.53536224365233,40.14360237121582],[-91.53540992736815,40.14360237121582],[-91.53544807434082,40.14360237121582],[-91.53546714782713,40.14359474182129],[-91.53572273254395,40.14359855651855],[-91.53594970703125,40.14357948303223],[-91.53595161437988,40.14360237121582],[-91.53811073303223,40.15191841125488],[-91.52649116516113,40.1634464263916],[-91.52815055847167,40.17026329040527],[-91.52130126953125,40.1866397857666],[-91.5249080657959,40.21196174621582],[-91.54673957824707,40.25771522521973],[-91.5650520324707,40.27590370178223],[-91.57617950439452,40.31437873840331],[-91.58590888977051,40.32611656188964],[-91.58309745788574,40.39246940612793],[-91.52395820617676,40.392484664916985],[-91.51502799987793,40.41030311584473],[-91.4961929321289,40.4052677154541],[-91.46511840820312,40.41012382507324]]]}},{type:"Feature",properties:{region:"GLTG",id:"23",sortOrder:23,title:"Upper Mississippi - Pool 21"},geometry:{type:"Polygon",coordinates:[[[-91.50139607202281,40.14295042197033],[-91.40976746745616,40.140497704090244],[-91.40569538244156,40.12592684884983],[-91.39815899759836,40.12553419982933],[-91.39471045162689,40.1151031885641],[-91.39737485557299,40.10688777932587],[-91.39334164417693,40.080362587060286],[-91.39837679994713,40.033106753898785],[-91.4150278628183,39.9644548804521],[-91.41478321970438,39.92929219103975],[-91.40807887788142,39.902779176062595],[-91.42801810563823,39.90280062512166],[-91.43604476106131,39.9098814090349],[-91.51563065743453,39.91000734476155],[-91.52779220800744,39.94470074646192],[-91.52299693841661,39.96149186293081],[-91.52775342279692,40.01082050734339],[-91.51201936049917,40.01818682438471],[-91.50433907377399,40.02838539887425],[-91.49755306274444,40.055215437427066],[-91.52438110491154,40.125989319678254],[-91.53301064426557,40.13545096023489],[-91.53305360302079,40.137001102319445],[-91.53523385993705,40.139704548537985],[-91.53613288195645,40.1433827290673],[-91.53595299599762,40.14360199376188],[-91.53544877505155,40.14360146976521],[-91.5354102508877,40.143601429668124],[-91.535360686067,40.14360137820467],[-91.50139607202281,40.14295042197033]]]}},{type:"Feature",properties:{region:"GLTG",id:"24",sortOrder:24,title:"Upper Mississippi - Pool 22"},geometry:{type:"Polygon",coordinates:[[[-91.42801810563823,39.90280062512166],[-91.40807887788142,39.902779176062595],[-91.3924394503698,39.86730453636331],[-91.36551715987989,39.83593873009006],[-91.28130867274324,39.76939870430571],[-91.1786039161272,39.72091201828582],[-91.15948019145215,39.70515821329818],[-91.14869435597275,39.70186444920017],[-91.14881535044053,39.69343795316502],[-91.12411718657275,39.660263705348314],[-91.11374452881311,39.649004446262886],[-91.09735501503214,39.64094763170675],[-91.10711881100119,39.64098319177711],[-91.2017622014081,39.64185355656713],[-91.2356833875733,39.642097990418065],[-91.23696074338146,39.64210875235474],[-91.23698421466086,39.642106134036375],[-91.23969195698918,39.642137424022536],[-91.25014406649827,39.63623429893574],[-91.2501440676545,39.635572320978135],[-91.26504390244297,39.640000069960706],[-91.28147951856712,39.6629947077671],[-91.3067363049864,39.67320095910238],[-91.31616790031549,39.68483042557593],[-91.35350117931449,39.707062914728894],[-91.36494190472828,39.72269029450721],[-91.4015218836923,39.75126484529807],[-91.40537123129467,39.76029163779262],[-91.44019120008562,39.79241749978823],[-91.46027772306955,39.80797611703035],[-91.46736178759635,39.80844863560999],[-91.46619846599577,39.81368134751528],[-91.47594349165945,39.82874823935105],[-91.49197898584573,39.83491840920494],[-91.49053771476024,39.84996824027715],[-91.51563065743453,39.91000734476155],[-91.43604476106131,39.9098814090349],[-91.42801810563823,39.90280062512166]],[[-91.45682380948685,39.827580143874606],[-91.45658713623838,39.828773806031734],[-91.45682164850221,39.82868830114509],[-91.45682380948685,39.827580143874606]]]}},{type:"Feature",properties:{region:"GLTG",id:"25",sortOrder:25,title:"Upper Mississippi - Pool 24"},geometry:{type:"Polygon",coordinates:[[[-91.09598541259766,39.63997840881348],[-91.09142303466797,39.637628555297844],[-91.0888843536377,39.624181747436516],[-91.01306343078613,39.54247093200683],[-90.84933662414551,39.42971992492676],[-90.86786842346191,39.42111396789551],[-90.88689613342285,39.40002250671387],[-90.88728141784668,39.38186073303223],[-90.88703155517578,39.38072395324707],[-90.88718223571776,39.3801326751709],[-90.89560890197754,39.38351631164551],[-90.90778732299805,39.37302207946777],[-90.93694877624512,39.37557792663574],[-90.96800231933594,39.40077018737793],[-90.97871971130371,39.41483116149902],[-91.02900314331055,39.434125900268555],[-91.07090950012207,39.470949172973626],[-91.12801551818848,39.48822593688964],[-91.13940620422363,39.51666450500488],[-91.16682815551758,39.5407772064209],[-91.20528411865234,39.60105323791504],[-91.21449279785156,39.61113929748535],[-91.2422866821289,39.625436782836914],[-91.25014305114746,39.63557243347168],[-91.25014305114746,39.6362361907959],[-91.23969078063965,39.64213752746581],[-91.23698425292969,39.642107009887695],[-91.23568344116211,39.642099380493164],[-91.21949958801268,39.642011642456055],[-91.097354888916,39.640947341918945],[-91.09598541259766,39.63997840881348]]]}},{type:"Feature",properties:{region:"GLTG",id:"26",sortOrder:26,title:"Upper Mississippi - Pool 25"},geometry:{type:"Polygon",coordinates:[[[-90.84795122120354,39.42693997474859],[-90.84118653197076,39.42537070529696],[-90.81455082542986,39.3911726213999],[-90.76157159661805,39.317875245075015],[-90.74966880828772,39.29192455617662],[-90.73609677736789,39.28263997393146],[-90.73666493826647,39.27536148329424],[-90.72438368123656,39.26074754222781],[-90.71157976576096,39.212496066372246],[-90.67980512066029,39.15741048574748],[-90.6635368189596,39.10762780891763],[-90.67683981533233,39.03769558757772],[-90.67522931509082,39.00648510465323],[-90.67525789849464,39.00617906493814],[-90.67518174391245,39.00591455174165],[-90.67515113279978,39.00580822795897],[-90.67516373938959,39.00580890978841],[-90.73875463221744,38.99929016840652],[-90.7459799956807,39.04295234865749],[-90.74328387831135,39.06489867236071],[-90.75126191077783,39.10017508287706],[-90.78760853599938,39.18064770002104],[-90.79337900051324,39.20233061785747],[-90.81944604554313,39.24967024994392],[-90.8549503996131,39.293049093330865],[-90.86192566696083,39.316957320272266],[-90.88457292105616,39.33067572876936],[-90.89376902982666,39.35307555151126],[-90.9077382730666,39.370951401215024],[-90.89548046773999,39.38158836176597],[-90.88718243975944,39.3801304768927],[-90.88728177719123,39.38186105406022],[-90.88676715575625,39.39809305122349],[-90.86774029356059,39.41918451918621],[-90.84795122120354,39.42693997474859]]]}},{type:"Feature",properties:{region:"GLTG",id:"27",sortOrder:27,title:"Upper Mississippi - Pool 26"},geometry:{type:"Polygon",coordinates:[[[-90.67537689208983,39.007761001586914],[-90.67522811889648,39.006486892700195],[-90.67518043518066,39.005914688110344],[-90.67516326904297,39.00581169128418],[-90.6709575653076,38.96072196960449],[-90.65141487121582,38.92437934875488],[-90.6203441619873,38.891489028930664],[-90.5832118988037,38.87212562561035],[-90.55504226684569,38.87406349182129],[-90.53341484069824,38.88733482360839],[-90.51917839050292,38.90841865539551],[-90.5065288543701,38.95261192321777],[-90.49605941772461,38.96090126037597],[-90.49508285522461,38.968008041381836],[-90.48146057128906,38.97238731384277],[-90.41046714782715,38.96778678894042],[-90.31216621398926,38.93404579162598],[-90.28330039978027,38.93902778625488],[-90.22618293762207,38.91473197937012],[-90.19240379333496,38.89200019836426],[-90.13738632202148,38.886640548706055],[-90.14396095275879,38.87910270690918],[-90.14410209655762,38.87894248962402],[-90.14632034301758,38.87642860412598],[-90.14659118652344,38.87612342834473],[-90.14889526367188,38.87347602844238],[-90.14897537231444,38.8734188079834],[-90.15059089660645,38.871583938598626],[-90.1513671875,38.87071418762207],[-90.15928649902344,38.86208915710449],[-90.15699577331543,38.86002922058105],[-90.15691566467285,38.85984992980957],[-90.15607452392578,38.8558292388916],[-90.15607261657715,38.85574531555176],[-90.15654945373535,38.85433387756348],[-90.1564769744873,38.85428047180176],[-90.15567398071289,38.85372734069824],[-90.15556907653809,38.85366249084473],[-90.15275955200195,38.851850509643555],[-90.15273475646971,38.85183143615722],[-90.15161895751953,38.851144790649414],[-90.15123176574707,38.85091972351074],[-90.15044403076172,38.85042381286621],[-90.15018463134766,38.85025978088379],[-90.14759635925293,38.845537185668945],[-90.14766311645506,38.84525871276855],[-90.14800453186035,38.84488105773926],[-90.14807891845703,38.84482765197753],[-90.14812660217285,38.844770431518555],[-90.14825820922852,38.844614028930664],[-90.14840126037598,38.84440803527831],[-90.14845657348633,38.84433174133301],[-90.14846992492676,38.84431266784668],[-90.14855575561523,38.84420967102051],[-90.14858055114746,38.84417915344238],[-90.14868545532227,38.84405326843261],[-90.14869689941406,38.844038009643555],[-90.1487922668457,38.84390830993652],[-90.1488265991211,38.84387016296386],[-90.14886474609375,38.84382438659668],[-90.14945030212402,38.843122482299805],[-90.14950370788574,38.84305000305176],[-90.14957046508789,38.842966079711914],[-90.14964866638182,38.842870712280266],[-90.14995002746582,38.84246635437012],[-90.15002059936523,38.84239387512207],[-90.150239944458,38.84224510192871],[-90.15028762817381,38.84222984313965],[-90.15056800842285,38.84214973449706],[-90.15117835998535,38.8420352935791],[-90.15144729614258,38.84200096130371],[-90.15240478515625,38.84184837341308],[-90.15258598327637,38.84182548522949],[-90.15442085266113,38.84158897399902],[-90.15460968017578,38.841569900512695],[-90.15597343444823,38.84134483337402],[-90.15613746643066,38.84132194519043],[-90.15973472595215,38.84118843078613],[-90.1599063873291,38.84118461608887],[-90.1689395904541,38.83958625793457],[-90.16900825500488,38.839567184448235],[-90.17426872253418,38.83867835998535],[-90.17447853088379,38.838640213012695],[-90.17593002319336,38.83843803405761],[-90.1761302947998,38.83841133117676],[-90.17716407775879,38.838319778442376],[-90.17719459533691,38.838319778442376],[-90.17730522155762,38.83830451965332],[-90.17731475830078,38.83830451965332],[-90.17742538452148,38.83831596374512],[-90.17758560180664,38.83829307556152],[-90.17830467224121,38.83827018737793],[-90.17831993103027,38.838274002075195],[-90.17846488952637,38.83825492858886],[-90.1792984008789,38.83817481994629],[-90.17933464050293,38.838151931762695],[-90.18130683898926,38.83741569519042],[-90.18134307861328,38.837404251098626],[-90.18161582946777,38.837289810180664],[-90.18173217773438,38.83725929260254],[-90.18264579772949,38.83693122863769],[-90.1826648712158,38.83692741394043],[-90.18974304199219,38.83568000793457],[-90.18992614746094,38.83565711975098],[-90.19248390197754,38.83560371398926],[-90.19249916076659,38.83560371398926],[-90.21556663513184,38.84055137634277],[-90.21589279174803,38.84047889709473],[-90.22560501098633,38.835702896118164],[-90.29255485534668,38.86656379699707],[-90.33238792419434,38.872636795043945],[-90.33633613586426,38.87090492248535],[-90.33960151672363,38.84705543518066],[-90.36104393005371,38.82529258728027],[-90.37158203125,38.820756912231445],[-90.41174697875977,38.82254981994629],[-90.41716957092285,38.81558418273926],[-90.42639923095703,38.81447792053222],[-90.45373725891113,38.81911659240723],[-90.47052001953125,38.8000431060791],[-90.48045349121092,38.805898666381836],[-90.4810333251953,38.81989860534668],[-90.49388694763184,38.821176528930664],[-90.57507896423338,38.804555892944336],[-90.6516761779785,38.802194595336914],[-90.64986419677734,38.81240272521972],[-90.65841674804688,38.82217216491699],[-90.69548225402832,38.84286689758301],[-90.72020530700684,38.86893272399902],[-90.74507141113281,38.91744041442871],[-90.7546615600586,38.92648124694824],[-90.74595642089844,38.94775581359863],[-90.73875427246094,38.99929237365723],[-90.67537689208983,39.007761001586914]]]}},{type:"Feature",properties:{region:"GLTG",id:"28",sortOrder:28,title:"Upper Mississippi - Lock & Dam 26 to Grand Tower"},geometry:{type:"Polygon",coordinates:[[[-90.13738632202148,38.886640548706055],[-90.10843086242674,38.87874412536621],[-90.07766151428221,38.87944984436035],[-90.071044921875,38.86700248718262],[-90.07916641235352,38.86359214782715],[-90.04979705810547,38.84976005554199],[-90.04315185546875,38.83382987976074],[-90.03181838989258,38.82769584655762],[-90.01661491394043,38.81038856506348],[-90.0018253326416,38.74041175842285],[-90.0116024017334,38.712873458862305],[-90.00716018676758,38.69489860534667],[-90.01937675476074,38.65415382385254],[-90.01662063598633,38.64483833312988],[-90.04499816894531,38.615495681762695],[-90.05657386779785,38.59158134460449],[-90.0854663848877,38.572744369506836],[-90.10829544067383,38.54672813415527],[-90.12220764160156,38.54226493835449],[-90.13407135009766,38.53186225891113],[-90.15558433532715,38.542184829711914],[-90.16563034057616,38.53763008117676],[-90.16901969909668,38.52890205383301],[-90.17795181274414,38.53475379943848],[-90.20165634155273,38.50418663024902],[-90.21168899536133,38.49775505065918],[-90.22047805786133,38.48091697692871],[-90.22623825073242,38.45425224304199],[-90.25394248962402,38.39716911315917],[-90.26847839355469,38.33123970031738],[-90.30901336669922,38.3051700592041],[-90.30801582336426,38.28952217102051],[-90.29615211486816,38.25640296936035],[-90.28033447265625,38.230093002319336],[-90.21895599365234,38.17250633239746],[-90.15085029602051,38.13566780090332],[-90.09090614318848,38.08046913146973],[-90.06704330444336,38.06433296203613],[-90.04001998901367,38.05483055114746],[-89.96940231323242,38.01644706726074],[-89.96123313903809,38.01675987243652],[-89.95280838012695,38.033376693725586],[-89.97859382629395,38.05978202819824],[-89.96890830993652,38.07944679260254],[-89.96036529541016,38.07957649230957],[-89.94447326660156,38.08976173400879],[-89.93649482727051,38.1035099029541],[-89.9408016204834,38.123579025268555],[-89.93799781799315,38.12864875793456],[-89.95220184326172,38.13369178771973],[-89.94815254211424,38.13940238952637],[-89.90276718139648,38.13909721374512],[-89.89973640441895,38.11499595642089],[-89.90818595886229,38.10795783996582],[-89.92898178100586,38.102216720581055],[-89.96347045898438,38.058298110961914],[-89.93302154541014,38.03509330749511],[-89.94162750244139,38.02993965148925],[-89.95203971862793,38.01390266418457],[-89.94367790222168,37.99853706359863],[-89.87508392333984,37.93472099304199],[-89.80494689941406,37.88754844665527],[-89.78092384338377,37.88293266296387],[-89.75445938110352,37.86568641662598],[-89.67182922363281,37.82798194885253],[-89.58169937133789,37.804227828979485],[-89.4866714477539,37.77388954162597],[-89.45126914978027,37.7569522857666],[-89.43649291992188,37.75555992126465],[-89.41939163208008,37.73754692077636],[-89.4082508087158,37.7143611907959],[-89.40839576721191,37.67572593688965],[-89.4004726409912,37.66901588439941],[-89.40909004211424,37.66461753845215],[-89.42031478881836,37.62954521179199],[-89.43276596069336,37.630117416381836],[-89.43378448486327,37.63016700744628],[-89.43379783630371,37.63016700744628],[-89.44510841369627,37.63055992126465],[-89.44524765014648,37.63055610656738],[-89.45784759521484,37.63089561462402],[-89.45830917358398,37.630929946899414],[-89.46248054504395,37.631052017211914],[-89.46276473999023,37.63106346130371],[-89.50391006469727,37.63236427307129],[-89.50727081298828,37.633161544799805],[-89.50732421875,37.63311958312988],[-89.50759696960449,37.63302421569824],[-89.51658821105956,37.630083084106445],[-89.52024269104004,37.648515701293945],[-89.5318260192871,37.66025352478027],[-89.5313606262207,37.675214767456055],[-89.52409553527832,37.69003105163574],[-89.52685356140137,37.69502067565918],[-89.61026191711426,37.71835136413574],[-89.6615982055664,37.74650001525879],[-89.6821403503418,37.753225326538086],[-89.7331314086914,37.78530311584472],[-89.75446128845215,37.791364669799805],[-89.8295955657959,37.82818794250488],[-89.86026382446289,37.8348445892334],[-89.91852569580078,37.867799758911126],[-89.94307136535645,37.875619888305664],[-89.97521781921387,37.89664649963379],[-90.02092933654785,37.95388603210449],[-90.01594161987305,37.95942497253418],[-90.03987884521484,37.97823143005371],[-90.05923652648926,38.00359916687012],[-90.0894775390625,38.01381874084473],[-90.1400375366211,38.044198989868164],[-90.15712356567383,38.04982185363769],[-90.17671394348145,38.06622886657714],[-90.2450942993164,38.10674858093262],[-90.3319091796875,38.18386650085449],[-90.35644340515137,38.21294975280762],[-90.37649345397949,38.22048377990723],[-90.36992263793945,38.23581504821777],[-90.37047386169434,38.25217247009277],[-90.38089370727539,38.28654670715332],[-90.37517356872559,38.30612373352051],[-90.37588500976562,38.333696365356445],[-90.36134910583496,38.35983467102051],[-90.35904312133788,38.386404037475586],[-90.35253715515137,38.39489555358887],[-90.32884025573729,38.40396690368652],[-90.31031227111816,38.42272758483887],[-90.28619766235352,38.464826583862305],[-90.26931190490723,38.52972221374512],[-90.25839042663574,38.53851890563965],[-90.25505256652832,38.549982070922844],[-90.23275756835938,38.57512855529785],[-90.20038795471191,38.597333908081055],[-90.18645095825195,38.62836265563965],[-90.18600654602051,38.6385555267334],[-90.19778442382812,38.66232109069824],[-90.20674896240234,38.67617988586426],[-90.22252464294432,38.68838691711426],[-90.23017501831055,38.70711326599121],[-90.2272834777832,38.72671318054199],[-90.20761489868164,38.738107681274414],[-90.18426895141602,38.76149559020996],[-90.18210411071777,38.80779457092285],[-90.22560501098633,38.835702896118164],[-90.21588706970215,38.84047889709473],[-90.21556663513184,38.84055137634277],[-90.19250106811523,38.83560371398926],[-90.19248390197754,38.83560371398926],[-90.18992614746094,38.83565711975098],[-90.18974304199219,38.83568000793457],[-90.1826648712158,38.83692741394043],[-90.18264579772949,38.83693122863769],[-90.18173217773438,38.83725929260254],[-90.18161582946777,38.837289810180664],[-90.18134307861328,38.837404251098626],[-90.18130683898926,38.83741569519042],[-90.17933464050293,38.838151931762695],[-90.1792984008789,38.83817481994629],[-90.17846488952637,38.83825492858886],[-90.17830467224121,38.83827018737793],[-90.17758560180664,38.83829307556152],[-90.17756271362305,38.83828926086426],[-90.17742538452148,38.83831596374512],[-90.17731475830078,38.83830451965332],[-90.17730331420898,38.83830451965332],[-90.17716407775879,38.838319778442376],[-90.1761302947998,38.83841133117676],[-90.17593002319336,38.83843803405761],[-90.17447853088379,38.838640213012695],[-90.17426872253418,38.83867835998535],[-90.16900825500488,38.839567184448235],[-90.1689395904541,38.83958625793457],[-90.1599063873291,38.84118461608887],[-90.15973472595215,38.84118843078613],[-90.15613746643066,38.84132194519043],[-90.15597343444823,38.84134483337402],[-90.15461540222168,38.841569900512695],[-90.15442085266113,38.84158897399902],[-90.15258598327637,38.84182548522949],[-90.15240478515625,38.84184837341308],[-90.15144729614258,38.84200096130371],[-90.15130043029785,38.84200859069824],[-90.15117835998535,38.8420352935791],[-90.15056800842285,38.84214973449706],[-90.15028762817381,38.84222984313965],[-90.150239944458,38.84224510192871],[-90.15002059936523,38.84239387512207],[-90.14995002746582,38.84246635437012],[-90.14964866638182,38.842870712280266],[-90.14957046508789,38.842966079711914],[-90.14950370788574,38.84305000305176],[-90.14945030212402,38.843122482299805],[-90.14886474609375,38.84382438659668],[-90.1488265991211,38.84387016296386],[-90.1487922668457,38.84390830993652],[-90.14869689941406,38.844038009643555],[-90.14868545532227,38.84405326843261],[-90.14858055114746,38.84417915344238],[-90.14855575561523,38.84420967102051],[-90.14846992492676,38.84431266784668],[-90.14845657348633,38.84433174133301],[-90.14840126037598,38.84440803527831],[-90.14825820922852,38.844614028930664],[-90.14812660217285,38.844770431518555],[-90.14807891845703,38.84482765197753],[-90.14800453186035,38.84488105773926],[-90.14766311645506,38.84525871276855],[-90.14758682250977,38.84545707702637],[-90.14759635925293,38.845537185668945],[-90.15018463134766,38.85025978088379],[-90.15044403076172,38.85042381286621],[-90.15123176574707,38.85091972351074],[-90.15161895751953,38.851144790649414],[-90.15273475646971,38.85183143615722],[-90.15275955200195,38.851850509643555],[-90.15556907653809,38.85366249084473],[-90.15567398071289,38.85372734069824],[-90.1564769744873,38.85428047180176],[-90.15654945373535,38.85433387756348],[-90.15607070922852,38.85574913024902],[-90.15607452392578,38.8558292388916],[-90.15691566467285,38.85984992980957],[-90.15699577331543,38.86002922058105],[-90.15928649902344,38.86208915710449],[-90.1513671875,38.87071418762207],[-90.15059089660645,38.871583938598626],[-90.14897537231444,38.8734188079834],[-90.14889526367188,38.87347602844238],[-90.14659118652344,38.87612342834473],[-90.14632034301758,38.87642860412598],[-90.14410209655762,38.87894248962402],[-90.14396095275879,38.87910270690918],[-90.13738632202148,38.886640548706055]]]}},{type:"Feature",properties:{region:"GLTG",id:"29",sortOrder:29,title:"Upper Mississippi - Grand Tower to Ohio River"},geometry:{type:"Polygon",coordinates:[[[-89.50391006469727,37.63236427307129],[-89.46276473999023,37.63106346130371],[-89.46248245239258,37.631052017211914],[-89.45830917358398,37.630929946899414],[-89.45775985717773,37.63090705871582],[-89.45784759521484,37.63089561462402],[-89.44524765014648,37.63055610656738],[-89.44510841369627,37.63055992126465],[-89.43379783630371,37.63016700744628],[-89.43276596069336,37.630117416381836],[-89.42031478881836,37.62954521179199],[-89.43722343444823,37.61464500427246],[-89.43858528137207,37.60527992248535],[-89.435640335083,37.59756278991699],[-89.4393253326416,37.594411849975586],[-89.44146347045898,37.56049156188965],[-89.43457603454588,37.51290702819824],[-89.42616081237793,37.504518508911126],[-89.42126655578613,37.50576591491699],[-89.3765354156494,37.48441505432129],[-89.37950897216797,37.47681617736816],[-89.36715888977051,37.466081619262695],[-89.37204360961913,37.463796615600586],[-89.34785461425781,37.429033279418945],[-89.34602355957031,37.40070915222168],[-89.35657501220703,37.3525333404541],[-89.37795066833496,37.33695030212402],[-89.38185691833496,37.32554817199707],[-89.44990539550781,37.250051498413086],[-89.46309852600096,37.22115516662598],[-89.46205902099608,37.21096229553223],[-89.44374847412108,37.18154716491699],[-89.4219284057617,37.16312599182129],[-89.39700317382812,37.16641044616699],[-89.36821365356444,37.16205024719238],[-89.3346004486084,37.18358421325683],[-89.27305221557617,37.150930404663086],[-89.27475357055664,37.119272232055664],[-89.25588035583495,37.09277153015136],[-89.24546623229979,37.107145309448235],[-89.24520111083984,37.11419868469238],[-89.23511695861816,37.11861610412598],[-89.1801643371582,37.118356704711914],[-89.17769813537596,37.10629081726074],[-89.18413352966309,37.02911949157715],[-89.17193984985352,37.0074520111084],[-89.1378402709961,36.98364067077637],[-89.12569618225098,36.97846794128418],[-89.12564849853516,36.95872688293457],[-89.13251495361328,36.90284156799316],[-89.19086265563965,36.89627265930176],[-89.26801300048828,36.90587043762207],[-89.32852554321289,36.90450859069824],[-89.44908142089844,36.96642875671387],[-89.44117164611815,36.97542762756348],[-89.4445743560791,37.01668357849121],[-89.49466323852539,37.09130668640137],[-89.49862670898438,37.12984275817871],[-89.49520111083984,37.13786506652832],[-89.46090316772461,37.148977279663086],[-89.44411277770996,37.16230583190918],[-89.47267150878906,37.20710182189941],[-89.47439002990723,37.22497367858887],[-89.48191452026367,37.22553825378418],[-89.48017501831055,37.22149848937988],[-89.48509788513182,37.22396659851074],[-89.46731376647949,37.24664497375488],[-89.47778129577635,37.24965476989746],[-89.52204132080078,37.23885154724121],[-89.53884315490723,37.22641563415527],[-89.56513786315918,37.26082801818848],[-89.56318664550781,37.268178939819336],[-89.53350830078125,37.276933670043945],[-89.51943778991698,37.29684638977051],[-89.51593208312988,37.31337928771973],[-89.49579238891602,37.32755088806152],[-89.49297142028809,37.340654373168945],[-89.4461669921875,37.363603591918945],[-89.44538307189941,37.37505149841308],[-89.43758964538573,37.37505149841308],[-89.43412590026854,37.38710975646973],[-89.43958282470703,37.428606033325195],[-89.45169448852539,37.44562339782715],[-89.4886703491211,37.4814395904541],[-89.5147876739502,37.4780101776123],[-89.51544380187988,37.48891258239746],[-89.49936866760254,37.496259689331055],[-89.50417900085449,37.51257133483887],[-89.52115058898924,37.53505516052246],[-89.52503395080566,37.551401138305664],[-89.53681755065918,37.55575370788574],[-89.5302562713623,37.56466865539551],[-89.54090118408203,37.569536209106445],[-89.53919029235838,37.57520866394043],[-89.52612495422363,37.57200050354004],[-89.51292037963867,37.62166404724121],[-89.51658821105956,37.630083084106445],[-89.50759696960449,37.63302421569824],[-89.50732421875,37.63311958312988],[-89.50727081298828,37.633161544799805],[-89.50391006469727,37.63236427307129]]]}},{type:"Feature",properties:{region:"GLTG",id:"lowerMS",sortOrder:30,title:"Lower Mississippi"},geometry:{type:"Polygon",coordinates:[[[-89.0627977,37.1212399],[-89.1080075,37.1174328],[-89.1519025,37.0798223],[-89.1616131,37.0551429],[-89.1657371,37.037513],[-89.1633658,37.018852],[-89.1555303,37.008439],[-89.1358384,36.9987477],[-89.1297297,36.9888889],[-89.1250903,36.9771356],[-89.1235438,36.9683206],[-89.1246006,36.9568895],[-89.1284926,36.9044893],[-89.1334413,36.9001592],[-89.1824649,36.8472693],[-89.1857126,36.8178861],[-89.1792173,36.7883482],[-89.2526787,36.6767566],[-89.3783143,36.6510584],[-89.5829479,36.5682532],[-89.7161977,36.2827178],[-89.7009692,36.1133002],[-89.966517,35.7402007],[-90.1958971,35.4175458],[-90.1882828,35.2757299],[-90.3120148,35.0739516],[-90.4747699,34.9131001],[-90.6622714,34.6466004],[-90.7155713,34.4714721],[-90.9173496,34.2801635],[-91.0848637,34.0736262],[-91.1438743,33.8547158],[-91.2542813,33.783332],[-91.2676063,33.4530628],[-91.202885,33.3160059],[-91.2162099,33.1351668],[-91.2323903,32.980026],[-91.1971742,32.7268513],[-91.1505368,32.5069891],[-91.0610691,32.4061],[-91.0458405,32.3109215],[-91.1372118,32.2661877],[-91.2485706,32.0101577],[-91.3799169,31.8350293],[-91.5264916,31.6380099],[-91.661645,31.2763319],[-91.7006682,31.0193501],[-91.6844879,30.8623057],[-91.6197665,30.7576094],[-91.5598041,30.7090684],[-91.3884829,30.7185862],[-91.3056777,30.5149044],[-91.2590402,30.3502457],[-91.1914635,30.1979601],[-91.0629726,30.1227692],[-90.9240121,30.0694693],[-90.8354962,29.9723872],[-90.7431731,29.9914229],[-90.628959,30.0190247],[-90.5252145,30.0304461],[-90.4871431,30.0018926],[-90.3738807,29.9314605],[-90.1673435,29.8981481],[-90.0740687,29.8971963],[-90.0359973,29.9276534],[-89.9874563,29.9000516],[-90.0398044,29.7744161],[-89.9636617,29.6383109],[-89.6181639,29.3889434],[-89.4582641,29.3232703],[-89.476348,29.2100079],[-89.4230481,28.9187619],[-89.1441753,28.9539779],[-88.9852273,29.0938902],[-88.9595291,29.205249],[-89.0499486,29.3004275],[-89.2878947,29.3765702],[-89.4239999,29.3651488],[-89.7000174,29.5250486],[-89.9370117,29.6621055],[-89.8932296,29.8581731],[-89.8998921,29.9143284],[-90.0264794,29.9695319],[-90.2406309,29.9752426],[-90.4928538,30.0637585],[-90.6546571,30.0561443],[-90.90688,30.1275281],[-91.0220459,30.2046226],[-91.1343565,30.3321617],[-91.1914635,30.5187115],[-91.286642,30.649106],[-91.3589776,30.7652237],[-91.4922274,30.768079],[-91.5065042,30.913702],[-91.4960345,31.0345786],[-91.5236363,31.1516481],[-91.494131,31.2287427],[-91.4484453,31.4029192],[-91.3960972,31.5456869],[-91.3675437,31.6303957],[-91.3294723,31.7693562],[-91.2143064,31.8493061],[-91.0401298,31.9730381],[-90.990637,32.0006398],[-90.9849263,32.1158057],[-90.9468549,32.1624432],[-90.8630979,32.1824306],[-90.7793409,32.2890305],[-90.7869552,32.3566072],[-90.9478067,32.4422678],[-90.9830228,32.5907461],[-91.0382263,32.7563566],[-91.0534548,33.0000134],[-91.0268048,33.2398631],[-91.0382263,33.4378343],[-91.0943815,33.5872644],[-90.9972995,33.6814911],[-90.9696978,33.8604265],[-90.8792783,34.0079531],[-90.7653021,34.145248],[-90.5704242,34.3786731],[-90.4440748,34.6285165],[-90.3941062,34.7448722],[-90.3077317,34.8291051],[-90.2342064,34.8947782],[-90.1878069,35.0204138],[-90.0878695,35.0675271],[-90.0200549,35.1174958],[-90.0400424,35.2659741],[-89.8758595,35.4758426],[-89.8501614,35.5993366],[-89.7259535,35.6685789],[-89.6360099,35.7563811],[-89.4725409,35.8177712],[-89.4832485,35.9141393],[-89.6038872,35.9426929],[-89.6460036,36.0062245],[-89.5610569,36.1104449],[-89.4475566,36.2482156],[-89.3533299,36.5394617],[-89.1655904,36.5523108],[-89.026392,36.9242205],[-88.9271684,36.9898936],[-89.0035491,37.0934002],[-89.0627977,37.1212399]]]}},{type:"Feature",properties:{region:"GLTG",id:"30",sortOrder:30,title:"Lower Mississippi - Memphis"},geometry:{type:"Polygon",coordinates:[[[-88.95152066620355,37.00005370566096],[-88.93126499861224,36.99218373263215],[-88.95848104282236,36.98866854784161],[-88.99679668362037,36.99306827894319],[-89.01342785244542,36.98016670971291],[-89.06536050650449,36.96862920324857],[-89.06759557126841,36.963993733226694],[-89.0621276980081,36.95688033542514],[-89.06881895354921,36.94667009218786],[-89.09237168496473,36.9497652556231],[-89.1118597446024,36.865333492038815],[-89.11121715791393,36.84164387924242],[-89.10462102648788,36.83824578764942],[-89.0792241272127,36.857173549368724],[-89.06761145431041,36.84647319482612],[-89.06570679709411,36.82118144617614],[-89.07584269923892,36.810280123301595],[-89.08952916949595,36.80652226139089],[-89.09410983662944,36.797609140716645],[-89.10965842428739,36.76335443329239],[-89.10792137827006,36.73634875618503],[-89.12559905153536,36.72341300966166],[-89.14230128934248,36.66687174291414],[-89.17104025986504,36.63804798631875],[-89.18178895938455,36.618381192349474],[-89.1936834735434,36.567871496648124],[-89.2470051729019,36.55695475299738],[-89.26134163391703,36.55821364495659],[-89.3126096353627,36.59570102021863],[-89.346192053596,36.574940690103894],[-89.37546262635803,36.5710193091999],[-89.40435222371772,36.51095625685492],[-89.4043265560531,36.49185087066591],[-89.41248552257228,36.470325599704765],[-89.43907533005655,36.44607665368908],[-89.46757726195449,36.44070972180857],[-89.4549681880924,36.43340104645298],[-89.45061977553348,36.42267755065951],[-89.45242688338404,36.39470207915394],[-89.45634321757164,36.391557286492365],[-89.45621276347434,36.38020415345104],[-89.44976248755403,36.36988408190526],[-89.45066881371118,36.35238026931124],[-89.44225376167198,36.35048139258312],[-89.42850326838531,36.356262373962494],[-89.42366396023947,36.351045048302105],[-89.43097894577143,36.3134944932306],[-89.43839653610024,36.3120798628812],[-89.44142213747715,36.30543779823527],[-89.47216290078464,36.30209574067675],[-89.47939302730259,36.24841335442166],[-89.50506662387794,36.2403918307933],[-89.50953479903119,36.23038451978481],[-89.54343222397114,36.22587633520184],[-89.54605008761452,36.18255996646817],[-89.57252065994601,36.11061041752179],[-89.57933305900171,36.108300727673786],[-89.59147817224995,36.1129037828707],[-89.5951025929022,36.108226773215144],[-89.60385473024684,36.11092101707337],[-89.61883046989662,36.103558917002026],[-89.63030416076363,36.08438017192934],[-89.66423310307796,36.056317127404974],[-89.67431256183993,36.029144375563654],[-89.69497712916585,36.006868308351486],[-89.69734487771863,36.0000734899694],[-89.69196763672092,35.99650946842857],[-89.68255591582592,35.96734789388864],[-89.66625043980338,35.95059379334466],[-89.64354809981849,35.93794321274888],[-89.6320120946272,35.91413910707108],[-89.59230285915771,35.91978433363942],[-89.49653896615175,35.915787539533966],[-89.50682190791402,35.897370658441716],[-89.51856138340742,35.88667147327872],[-89.48332395574437,35.85415849268789],[-89.47852711417836,35.8422718163444],[-89.48388230631146,35.83287982424241],[-89.48078994294211,35.81879704869883],[-89.511762799559,35.80760753202516],[-89.55003184556259,35.803461936047995],[-89.59256596681702,35.77389344046604],[-89.61464033836536,35.77917977346814],[-89.62174313130085,35.79344153559895],[-89.63161811466327,35.77403262142195],[-89.65216362518228,35.76979258857659],[-89.69072275937677,35.74208076921745],[-89.7130532831909,35.692739384736136],[-89.72633097810967,35.68018268403985],[-89.76140775947734,35.67208061013651],[-89.80188217623513,35.65104548301218],[-89.84247939156634,35.64035933636258],[-89.85383096194737,35.63035663317284],[-89.85707306027379,35.61901580331665],[-89.89004908038424,35.60579028821153],[-89.89202642834792,35.599346776946],[-89.88618666911157,35.58416901500345],[-89.89440090881351,35.56703283378277],[-89.8911340986069,35.552784350782545],[-89.87544030977884,35.570552663011476],[-89.8615873790303,35.55944134726718],[-89.8634413110024,35.54011319532477],[-89.87034562672982,35.526432594273565],[-89.88168264974821,35.50723845724508],[-89.90405893760516,35.50102325120414],[-89.91266616459035,35.49207539300656],[-89.90768586320235,35.463811895709235],[-89.93236732027816,35.43329807781636],[-89.95069408252078,35.41933446330858],[-89.96919309484747,35.419329098368884],[-90.00356325569439,35.38004288728291],[-90.01772755187078,35.374985809828246],[-90.02645656481106,35.35898183531178],[-90.02776721264276,35.332160637440666],[-90.04136471643439,35.327267032554374],[-90.04976850245703,35.31692961332557],[-90.04304989202085,35.30811533365942],[-90.04219555488702,35.286197147125414],[-90.06070289577883,35.27295066299316],[-90.06301332772104,35.233175851507305],[-90.0602177261175,35.22535848954697],[-90.03734348208907,35.20479598605657],[-90.05505437835268,35.194865301812115],[-90.05096209177081,35.17430776697538],[-90.05548013807163,35.161623756424966],[-90.0491704899234,35.14786240828688],[-90.02552432277106,35.12502597554971],[-90.02687763103296,35.11794022503316],[-90.06999144349932,35.10880722126887],[-90.09029411765043,35.083792586985105],[-90.08303507926315,35.07821223712246],[-90.08859178320537,35.07302880028813],[-90.14373676776437,35.07334990546595],[-90.15791943576119,35.06908580962428],[-90.17237494542886,35.060049925202605],[-90.18183419021197,35.04314935470958],[-90.20055809020243,35.02438596619074],[-90.26362265375572,35.00311542331704],[-90.26770188741155,34.972950129593336],[-90.25237884661108,34.95963046825323],[-90.27605169894193,34.94925727199793],[-90.28055960159618,34.958548038397794],[-90.30802221376818,34.98249322418531],[-90.31883191650226,35.00009439472806],[-90.3197038914776,35.01373722040967],[-90.32548995144253,35.02116651204951],[-90.32060924560314,35.046564084871584],[-90.30967258863154,35.062543329888626],[-90.28929909360343,35.06190919510039],[-90.24069539136097,35.04323977168659],[-90.20794556832536,35.061867333523786],[-90.19907238308005,35.071304180012646],[-90.18618134859422,35.11795755758162],[-90.17275557357395,35.13188438024543],[-90.12705962546265,35.14261585974567],[-90.1161013438447,35.154610668116845],[-90.12471530959127,35.18752763419026],[-90.10080018025282,35.22408507269749],[-90.11317285604605,35.250152080913885],[-90.14923509758141,35.24965583686865],[-90.15851882221108,35.25447113332107],[-90.16773204541286,35.26766484490637],[-90.171418764571,35.281807220737235],[-90.16719060518447,35.299101465376175],[-90.13917661483754,35.32655909371269],[-90.14471525576859,35.34741580104243],[-90.154866393456,35.35288103796074],[-90.16590321413568,35.370894356193155],[-90.18925110407754,35.38955237267662],[-90.19220710565749,35.40277771465045],[-90.18846912862097,35.41215331641038],[-90.16304959123948,35.43057072547861],[-90.13397328986699,35.44304358538894],[-90.12193354526447,35.46879755870377],[-90.10612793727974,35.482476684989514],[-90.08010523390581,35.48284342815379],[-90.07010836203976,35.47890580468198],[-90.05366653894154,35.4643567403891],[-90.04433022652495,35.442411537004816],[-90.02883584753276,35.45041363911341],[-90.02311497708197,35.46820294945917],[-90.04728242662712,35.488350129512696],[-90.05325803620316,35.51192615878855],[-90.04400198722362,35.55098814016017],[-90.02670509380037,35.56543132424427],[-90.00137478364307,35.5672358849193],[-90.00008808625346,35.56136930385072],[-89.94916148617433,35.54695715811362],[-89.9467079073083,35.55530732355254],[-89.95908345952934,35.589060451028914],[-89.93668267560572,35.610333194332064],[-89.94037828106241,35.62997716738107],[-89.92356488933169,35.64435386624002],[-89.95821477789391,35.67981453848989],[-89.96135280069063,35.73208413615798],[-89.88263991256267,35.77211955408532],[-89.86485384966205,35.77272671864217],[-89.8517131208836,35.767093284488965],[-89.83076798813576,35.77533955970151],[-89.82081070786576,35.80044487346325],[-89.83246014567634,35.817018102093165],[-89.83216360204109,35.83053959650282],[-89.81406096615345,35.85718804455166],[-89.7435488062361,35.915952887595964],[-89.71846641035307,35.918058312005],[-89.69524398736938,35.92606367896447],[-89.69044881273176,35.93175877236658],[-89.69406117757697,35.9435700086905],[-89.72525623914437,35.96115288626193],[-89.72790630410927,35.986772403947825],[-89.73927777612627,36.00007313556845],[-89.73928953387686,36.02135633715526],[-89.72985036130183,36.03734378108424],[-89.69704283476025,36.061524553875984],[-89.67822335500462,36.10277488501407],[-89.66092900256328,36.11370781489291],[-89.63502340549533,36.11969512581276],[-89.61745332874847,36.15973721852448],[-89.64492895481789,36.1804866788211],[-89.65689811522434,36.19599003619542],[-89.70525975302961,36.23166294014026],[-89.70981559257362,36.244537858195585],[-89.70281763082781,36.257945460483725],[-89.70655152433366,36.27930861663821],[-89.68312017042656,36.307237074235104],[-89.65552312643804,36.314437294951645],[-89.63890520501822,36.32706513074378],[-89.64407981883717,36.348578310318274],[-89.63889458653364,36.36680877168057],[-89.55560432030369,36.37575355608795],[-89.53607482124248,36.40276005881337],[-89.57243019621279,36.444061852601514],[-89.57222734343803,36.47200350963026],[-89.56494979365932,36.488382629502134],[-89.56685516135974,36.4988842595199],[-89.56228717310026,36.512861921892245],[-89.58138994490989,36.54038080424662],[-89.58315688311231,36.55674572452009],[-89.57915589694389,36.567556484701285],[-89.546780683963,36.582136729225006],[-89.4956303000874,36.586653975267566],[-89.47178501368207,36.57472049473839],[-89.45536606115533,36.55352377118334],[-89.41855024357513,36.55148984318292],[-89.39750486060956,36.57931556632776],[-89.39296871451809,36.59914527296137],[-89.37679418540993,36.62605711558686],[-89.34791027923376,36.636097286452134],[-89.31513848857514,36.635934685005076],[-89.28103615503693,36.609293324838234],[-89.2575314630377,36.60055444760359],[-89.25648754268443,36.59147068484898],[-89.24263588663462,36.58002009500493],[-89.22499817526523,36.58071375332319],[-89.21200305829962,36.59546882103537],[-89.20822030244403,36.643754889263455],[-89.18518619278102,36.660047467260235],[-89.17105007897847,36.67878234050518],[-89.17333565528003,36.688565110665536],[-89.2010480303574,36.71490468505165],[-89.20195198180556,36.73111171251857],[-89.18472284203382,36.75567426894319],[-89.17879069284196,36.77588177260433],[-89.17392634027703,36.778224275896115],[-89.17755766710525,36.787891386664704],[-89.17513621627454,36.79749007891801],[-89.18445411057994,36.8180441864834],[-89.18189265810155,36.84665921919927],[-89.16531002665,36.851203909501045],[-89.14312927824437,36.87657410948659],[-89.13254903787815,36.89983781525716],[-89.12176217029553,36.91165726037881],[-89.11393139879173,36.93324772315296],[-89.11550279781935,36.945566656125955],[-89.12564825663411,36.958725005695456],[-89.13085145891372,36.96880868007228],[-89.14496989241806,36.971616760793744],[-89.1378402298747,36.98364026410299],[-89.13538378695166,36.99873762891179],[-89.15521855302775,37.00867883554914],[-89.16268016250292,37.018368755388906],[-89.16546057832753,37.03743201255418],[-89.16145294137687,37.05490370055748],[-89.15123123201936,37.07140991205155],[-89.09938251165244,37.11255304137741],[-89.08691101633892,37.117371975317035],[-89.06485973608922,37.117488117647895],[-89.04185780417616,37.111485204903055],[-89.01035120529015,37.094084067304735],[-89.0067918476624,37.06529346986131],[-88.9741375315893,37.03708211729626],[-88.95152066620355,37.00005370566096]]]}},{type:"Feature",properties:{region:"GLTG",id:"31",sortOrder:31,title:"Lower Mississippi - Helena"},geometry:{type:"Polygon",coordinates:[[[-90.27605169894193,34.94925727199793],[-90.25237884661108,34.95963046825323],[-90.24292593722747,34.95743508763478],[-90.23613789416108,34.94448553142583],[-90.23427783431315,34.90569650948438],[-90.27800062848652,34.87117359368345],[-90.29961260824423,34.84615224626181],[-90.30903510400654,34.8423053802646],[-90.32505225959702,34.844095895967946],[-90.3636988462867,34.825829579490694],[-90.39875447007451,34.820269986505245],[-90.40599548136517,34.812584810425186],[-90.39528364251635,34.79190195717165],[-90.40242492550219,34.77348921917087],[-90.39798620100837,34.76185962304653],[-90.39994897647301,34.751627873064336],[-90.41672151718949,34.739365982656764],[-90.43952079511605,34.73678078621628],[-90.46537466843196,34.71659051942326],[-90.44973805893648,34.692655725692376],[-90.44582371596191,34.64994817285267],[-90.45448313667592,34.634537170379225],[-90.46596215036502,34.630179350661436],[-90.4768586055094,34.6056205447202],[-90.50572583584204,34.592241822773914],[-90.52134374533712,34.59138521868394],[-90.5106682313255,34.57296454616984],[-90.50874460228908,34.55724541100788],[-90.51476319589452,34.545560982164474],[-90.54065917120842,34.528597949157344],[-90.54022375973628,34.50659888125471],[-90.55179382091627,34.49105628898416],[-90.55632564544116,34.46663495576476],[-90.54823608509513,34.43826571807509],[-90.55265091320426,34.42879994175303],[-90.57229789322464,34.40818796934671],[-90.60891866809335,34.38321717155809],[-90.63531442541999,34.37678578159155],[-90.64767922752372,34.35872675007931],[-90.65914549634375,34.31442245820377],[-90.67065367952411,34.31094498798185],[-90.68991914212587,34.317704529217224],[-90.70191033013285,34.31639722604653],[-90.70923835809401,34.30679718135134],[-90.7097229028934,34.289141733706316],[-90.7258238140556,34.256451836182904],[-90.72084689452728,34.22391348319774],[-90.73693258903923,34.19113112384335],[-90.75748448000873,34.17338851373459],[-90.78394907029674,34.16962668776555],[-90.78797706406682,34.165013217366244],[-90.78579490811632,34.153166760716196],[-90.8180218582306,34.131926148501684],[-90.83797740614312,34.1276789162437],[-90.8680355141523,34.13117354171884],[-90.87901009624908,34.11748013655804],[-90.88058939602172,34.10218388175223],[-90.87251861248842,34.09979212533318],[-90.8636747490352,34.08098313241454],[-90.86720163334141,34.07013738215905],[-90.86130197953041,34.05921862990692],[-90.86096226205359,34.03424612556535],[-90.8773393962486,34.02055618908492],[-90.93044140545044,34.014871425882085],[-90.93933360973124,34.00555387445185],[-90.93860374539295,33.997060821646016],[-90.94543551930593,33.99663465559148],[-90.95101925783757,33.98068176018991],[-90.9382215439111,33.9638819379531],[-90.94221372959242,33.95105611047559],[-90.96919019136928,33.93175949429012],[-90.99603698099622,33.93111526268135],[-91.01826353678481,33.90136124836435],[-91.03752208245528,33.88706380424071],[-91.02877020989635,33.849509825040045],[-91.03288165892184,33.84002002729908],[-90.9867145164305,33.808808651956895],[-90.98279752434222,33.78719826711538],[-90.99480275792067,33.76818922567747],[-91.02320063675917,33.75899811082419],[-91.02269449949792,33.7342869928803],[-91.03691918245318,33.74939022827374],[-91.06290309241409,33.76521335982054],[-91.07563449999604,33.784795165672385],[-91.06538367221255,33.7843651795566],[-91.05650361701728,33.79008643775172],[-91.05095230826736,33.810825163593236],[-91.06129188082727,33.83118181316013],[-91.0786054309721,33.849302376733775],[-91.06588287129765,33.900039651635325],[-91.06708477407442,33.908986004911654],[-91.0801921005308,33.92244153530377],[-91.07571290397492,33.94815642001629],[-91.09897833996199,33.962667880672164],[-91.10258735735002,33.980304279536774],[-91.08021757854365,34.0294418200268],[-91.07339748128346,34.07648041091115],[-91.05349685208353,34.08401184030187],[-91.02068139056226,34.08286307279284],[-91.00164230712846,34.090400424962446],[-90.97903690698496,34.09282793000627],[-90.96680755257813,34.1009221360516],[-90.96430567810458,34.114671403823024],[-90.97279336771288,34.144826516840936],[-90.96928497427055,34.15531532154492],[-90.95684914597585,34.16700862094195],[-90.9232331500376,34.17942873464487],[-90.91573219392777,34.18867948769628],[-90.94221009541262,34.2240015608105],[-90.93676793815206,34.24653478216368],[-90.93032499444824,34.25237763473434],[-90.85409483548077,34.251982660516916],[-90.8433233901401,34.25693258395605],[-90.83874858500052,34.28262986293624],[-90.82401986676409,34.29751360516675],[-90.78459303005488,34.30096124119772],[-90.76803898747612,34.310485525642925],[-90.76540259171735,34.33179892914093],[-90.77284750973283,34.3420277922277],[-90.77365711059501,34.360521470861435],[-90.7594297105612,34.37603517721388],[-90.7407473282265,34.38714150485704],[-90.71171135586546,34.39480896696085],[-90.67143401348885,34.384142770230824],[-90.63832899238956,34.397032109224284],[-90.63045650025423,34.40985964262386],[-90.61299908338312,34.419167587389296],[-90.59813051597595,34.421581409373275],[-90.59490513403922,34.431522705117665],[-90.60020365853482,34.44397338663305],[-90.59596727599343,34.46245561020198],[-90.60360563120373,34.47693542480904],[-90.5956399718254,34.500031809438234],[-90.58522276831935,34.51361760629436],[-90.58379788690118,34.54747538083091],[-90.59180795372488,34.556824934923355],[-90.6447928094739,34.586868846912175],[-90.66384077224826,34.62264950795572],[-90.64023253858089,34.63571781403442],[-90.6247292409943,34.61721474277259],[-90.60331616283597,34.61842096021496],[-90.59367207119166,34.623731102789684],[-90.59220323869495,34.629201127624896],[-90.59733400859572,34.63281609657833],[-90.61408088649891,34.63088854778983],[-90.6264837944826,34.63581354815674],[-90.63112097257246,34.64906152854794],[-90.6279584979026,34.664141295278455],[-90.59639901300845,34.687231012951855],[-90.59414732954257,34.693314889741934],[-90.60032666033156,34.70974764060519],[-90.59630632059587,34.716517593951906],[-90.57737241513043,34.72164396933068],[-90.57094807618242,34.74314534588367],[-90.55856677557844,34.75542665270105],[-90.54470666675833,34.75857553041954],[-90.54945588552243,34.782461704488526],[-90.5419053265427,34.79735912600972],[-90.52964895237754,34.80504389708849],[-90.48883621883165,34.80628888115455],[-90.48027843940824,34.82152245507721],[-90.467144599665,34.82548598023311],[-90.48668416071443,34.86211514948685],[-90.48674134283179,34.8744643026668],[-90.47909745201983,34.8881832312587],[-90.45802308242196,34.893786222263195],[-90.43710582068354,34.887311741965796],[-90.430630913769,34.88096005479739],[-90.42538968162062,34.86327782305502],[-90.41372125027556,34.85176598753374],[-90.35871177146026,34.86176738348383],[-90.31442022078677,34.8847754202518],[-90.27862790646354,34.91146692746587],[-90.27297864298981,34.92656965980367],[-90.27605169894193,34.94925727199793]]]}},{type:"Feature",properties:{region:"GLTG",id:"32",sortOrder:32,title:"Lower Mississippi - Greenville"},geometry:{type:"Polygon",coordinates:[[[-91.15389717167777,33.81672649161646],[-91.14667763378759,33.810850140557555],[-91.12688440572747,33.82164225652129],[-91.11910859140748,33.821433721857524],[-91.11189921534184,33.81519373058352],[-91.11874642205555,33.793842244577974],[-91.11508088762739,33.78864591909767],[-91.0980627291542,33.786493795905386],[-91.08580700115765,33.79351785277024],[-91.07563449999604,33.784795165672385],[-91.06290309241409,33.76521335982054],[-91.03691918245318,33.74939022827374],[-91.02269449949792,33.7342869928803],[-91.02182769560348,33.715792553260535],[-91.03103740193498,33.70484969571652],[-91.02416369191684,33.680127661257195],[-91.03251079441714,33.66899135886735],[-91.08558494971463,33.65431432020009],[-91.15211180063751,33.67001617483731],[-91.16709585086132,33.65536171947931],[-91.14730035544743,33.64316791220634],[-91.13402899028824,33.64350997254266],[-91.12084900252829,33.62005123122029],[-91.12373312173744,33.61143992850015],[-91.120374061234,33.58767715159547],[-91.15261128534347,33.55696499471816],[-91.15274947546723,33.53550965353437],[-91.11847428528768,33.50722808523716],[-91.10970279800654,33.49483205071981],[-91.10860261211198,33.48120064433783],[-91.0546269594903,33.45972412890645],[-91.04861443431808,33.449621893993495],[-91.05205007871753,33.42614445068876],[-91.06603454734537,33.411665971486364],[-91.08308961633212,33.37496383526417],[-91.09548334214026,33.36379395374018],[-91.12723411529356,33.35192230076946],[-91.13966376360791,33.338675447159865],[-91.13879342653829,33.29916929005436],[-91.10596515305326,33.27775864512785],[-91.07834769057155,33.293205750215435],[-91.05132893169322,33.29116421363849],[-91.04277727520495,33.28462957002604],[-91.03702175367332,33.26849172142967],[-91.04545944844998,33.24184490478143],[-91.07752611125717,33.218809826328204],[-91.06420086293936,33.16180327046784],[-91.07587925259948,33.14286766066165],[-91.07699483155251,33.13116299303613],[-91.11515358857451,33.10658741712939],[-91.13155024547466,33.10665466128843],[-91.14524504419823,33.09261253908883],[-91.11664758162068,33.05720077804498],[-91.12627078119371,33.02299218407591],[-91.14767919807491,33.008070997960786],[-91.14297917811547,32.991368974783406],[-91.13767480632113,32.98921511472261],[-91.10086023590551,32.99966996159582],[-91.08747437454537,32.99522731342372],[-91.07209232360162,32.979386702107554],[-91.06066870590521,32.954041851486934],[-91.06082134041246,32.94222506052875],[-91.05145198566993,32.93071408714014],[-91.05554306953556,32.89054310904828],[-91.07415305590793,32.87513195360573],[-91.07622759458798,32.85342181679015],[-91.0893124628494,32.84108263433347],[-91.09755129563173,32.840394421990446],[-91.11291666221793,32.82104945696759],[-91.13119460850207,32.77964144573617],[-91.10268144832585,32.760361897686046],[-91.06795457293357,32.76245132158501],[-91.04701222571434,32.753919320260366],[-91.03853464826719,32.727085453842506],[-91.05715375562025,32.69507498724111],[-91.06807092614348,32.66366771914117],[-91.04294340615695,32.647765282837476],[-91.01501600062296,32.64796090483927],[-91.0019313107471,32.63737979717944],[-90.9922470695806,32.61783074199893],[-90.9972119667888,32.60545987952967],[-91.03849406751749,32.56884818436816],[-91.06789410595849,32.558474118733535],[-91.06539932240179,32.55076725361527],[-91.07851243508591,32.539961006128834],[-91.07178417796817,32.51622183010745],[-91.07593920285835,32.48624360055474],[-91.06960684086289,32.478929093275674],[-91.03243365365277,32.466538652122495],[-90.99749099428449,32.46427855128686],[-90.95565751707203,32.44241010527158],[-90.96405144040445,32.41917811184291],[-90.98609765086866,32.393549764513956],[-90.9953843488574,32.37258463200959],[-90.98424278906762,32.36239443943194],[-90.95928006612131,32.35288427310025],[-90.91456351378638,32.352699490785916],[-90.89610694414276,32.337870933801014],[-90.89489080871937,32.330813822995516],[-90.92192928340666,32.328010987238336],[-90.95227402847607,32.32922385447058],[-91.01373121983293,32.35483068915241],[-91.03046434349322,32.38639591077825],[-91.01818890577668,32.408218327756416],[-91.02066477545307,32.41646643581688],[-91.03301770651575,32.42522798804337],[-91.052315358996,32.42760226090727],[-91.08485738791165,32.442170922831856],[-91.11356029565601,32.467862713035764],[-91.1280324168173,32.493067790476246],[-91.13076666867362,32.520172295253296],[-91.12439721938703,32.570240675401834],[-91.14730908418097,32.58997399039349],[-91.17494775578507,32.65000930143935],[-91.17235266751938,32.66224209938275],[-91.17846102239531,32.67631209540408],[-91.1723251855465,32.68957780709243],[-91.15433334640208,32.69851859040515],[-91.13301748960546,32.6979339838904],[-91.11218221036746,32.70989487473625],[-91.12803964185699,32.72167600127546],[-91.15613320067155,32.72488629136194],[-91.16349388841309,32.735187552630556],[-91.17846092049311,32.744066302375224],[-91.1768253795825,32.78220359551242],[-91.16475843740501,32.80828168281091],[-91.16905358388634,32.81745555724825],[-91.15690570644308,32.847050657414975],[-91.16256344766633,32.85236605068469],[-91.15788856584965,32.87683562229284],[-91.16394072154127,32.89929676743771],[-91.19778078543962,32.90655160098026],[-91.21206927932991,32.918843545172976],[-91.2145976265829,32.931240264973624],[-91.20949141637846,32.9457824827888],[-91.22495757943271,32.97965101468809],[-91.21939642438817,32.9954498515917],[-91.2038455551148,33.01511058247637],[-91.19188601787818,33.023953657617675],[-91.1718632853048,33.02907580468674],[-91.16764209140398,33.05678397979192],[-91.17877148080488,33.07786549804221],[-91.20823632419628,33.09866803200083],[-91.21115238775863,33.11322482515028],[-91.20480317118506,33.130086205365366],[-91.18732800546694,33.15075339620914],[-91.16406471615541,33.160692958088646],[-91.14644629383648,33.15709528243002],[-91.12451206998087,33.164793797198804],[-91.11371137338804,33.173287256510406],[-91.10329780713313,33.19341560833304],[-91.10669512639832,33.20491882918259],[-91.11327024793934,33.20844564276324],[-91.12078894162805,33.222984069383585],[-91.14770339639763,33.244122316716116],[-91.1533211033132,33.26764868091893],[-91.16226109248738,33.27643679961134],[-91.16637258524777,33.290200718020174],[-91.18775678428818,33.30502925953601],[-91.19416303654992,33.31720397629653],[-91.19344374995252,33.33107929612022],[-91.18153393615735,33.34560336428083],[-91.18766016536013,33.35578858524408],[-91.17193468580506,33.352314161149074],[-91.13903344510723,33.3729248140586],[-91.17402746407014,33.37533596408268],[-91.19658012814568,33.38675354758746],[-91.21402955499403,33.4007993018895],[-91.20958329145499,33.418137674727134],[-91.21249308581459,33.42304708359582],[-91.23619723344352,33.431591576656736],[-91.24493624179799,33.440911951418315],[-91.25641696504002,33.442423472804855],[-91.26190867850889,33.452870039423004],[-91.25068724607372,33.45965529234529],[-91.24289382718091,33.47243938936228],[-91.23523459507867,33.51001727248623],[-91.23309140155291,33.54091327540469],[-91.24149401674978,33.556629849834316],[-91.24173895899672,33.57619789655996],[-91.2335404580894,33.59231113831364],[-91.20390043712591,33.60270513724763],[-91.1921789384162,33.611640752313285],[-91.20916931295338,33.63938486875539],[-91.23042257008554,33.65447618490466],[-91.23751852019144,33.66602752638232],[-91.23852790640933,33.69552369682391],[-91.22995748533303,33.697746161203376],[-91.21567785909184,33.71494207439693],[-91.22384216081755,33.727139087692905],[-91.24236356240161,33.7345255593809],[-91.25372712157127,33.74892988037492],[-91.25116395269839,33.763320399691274],[-91.24431110140031,33.77620650119206],[-91.23736562259934,33.77782111178146],[-91.22543329405899,33.79063298403115],[-91.16654428968387,33.801497288617874],[-91.15389717167777,33.81672649161646]]]}},{type:"Feature",properties:{region:"GLTG",id:"33",sortOrder:33,title:"Lower Mississippi - Natchez"},geometry:{type:"Polygon",coordinates:[[[-90.81665204768987,32.36918566962977],[-90.79514765827092,32.349236270144715],[-90.78617492332113,32.329594884500395],[-90.798268543071,32.29083348323056],[-90.8120733839007,32.27302956254136],[-90.81328118389075,32.25374380359615],[-90.83431878878135,32.25257125330356],[-90.84404122904576,32.24082816884326],[-90.8394916598077,32.218017101774315],[-90.87984740670532,32.20218672018615],[-90.87928836551183,32.19432910155049],[-90.89689715556268,32.18947774061067],[-90.90429970271822,32.18112035981899],[-90.91478588513536,32.19545605093461],[-90.9179674548865,32.209312061349735],[-90.93148628758493,32.202494320148894],[-90.94344085632635,32.21315372299844],[-90.95574348295463,32.21317096818141],[-90.9765405262066,32.19374712630284],[-90.97526711379776,32.165217104324626],[-90.99167337630787,32.137508599937156],[-91.01210315056696,32.11915179518933],[-91.03097999505972,32.11349199547999],[-91.05171481394463,32.090171017612924],[-91.05528997338831,32.04664849236544],[-91.04134560606455,32.03037720896329],[-91.02077398102067,32.03204368735883],[-91.01122891850413,32.02801601255378],[-90.99735692518725,32.00015643837834],[-91.01582479401459,31.99035055469898],[-91.0444493448525,31.998101580957766],[-91.06668150217357,31.98292995450342],[-91.14762338663988,31.968445792212442],[-91.18704128007285,31.93375391090522],[-91.18686209062528,31.92139627669543],[-91.19318118822817,31.912015280827045],[-91.18781956684343,31.910407762606823],[-91.19124443774862,31.902970023797266],[-91.23022627142447,31.861131289241545],[-91.24969917364425,31.848774850704114],[-91.27560066586719,31.84272631011368],[-91.29666542788746,31.85229904375794],[-91.32208309378582,31.83793604376867],[-91.35013013166022,31.811967642016604],[-91.34873598956725,31.777769038617322],[-91.37517227729816,31.733916942046893],[-91.38448519793361,31.69633524656105],[-91.38890429260728,31.648589750795495],[-91.37765028512918,31.628784005651735],[-91.39293496189558,31.61075952654514],[-91.39983563652987,31.54680842916552],[-91.41354673849628,31.54589696409943],[-91.42643323210405,31.531444296609536],[-91.44858773090417,31.53568418198921],[-91.47004652744288,31.52475624104826],[-91.48672373442858,31.509623391552267],[-91.49294867733292,31.49589630919915],[-91.49487869768251,31.474182493613306],[-91.483186722971,31.455191991801417],[-91.4716139530187,31.448471334154576],[-91.47640551686395,31.432202405639988],[-91.4585433009787,31.40510965766487],[-91.45801124464816,31.38634338564531],[-91.48575863174122,31.33544180125447],[-91.50340310295609,31.316615761952143],[-91.49774078444743,31.296165721450077],[-91.50737306298639,31.265250732840467],[-91.49936988468801,31.24675556213911],[-91.51399892404184,31.224827521279654],[-91.52894844895548,31.21552917181406],[-91.52469337800648,31.17885888771778],[-91.53494354621137,31.160754726366736],[-91.5458836073885,31.152129748659764],[-91.56306098468791,31.14709066355698],[-91.58290109270581,31.16020985127094],[-91.59516815465152,31.139689053718435],[-91.59297349579793,31.110979865923543],[-91.58063008746353,31.087932794767838],[-91.56429064673593,31.073048084999286],[-91.55344041918545,31.069680683961447],[-91.53105723741064,31.07330451641396],[-91.5244312931452,31.081438726544402],[-91.5131766113805,31.077158897993378],[-91.50626811732982,31.06986416336121],[-91.50337567913384,31.047280186117437],[-91.51234002102414,31.050358822253322],[-91.51121656312382,31.041777658541452],[-91.5190161724847,31.032216487998692],[-91.53578210092485,31.03890173050538],[-91.54805684607342,31.03110348096868],[-91.5598742800211,31.032589317670983],[-91.56875411759373,31.02051091004846],[-91.59326838501977,31.006437897039575],[-91.63981911468169,30.990799002804494],[-91.66362467599332,30.988341337157234],[-91.67418256637652,30.982134657220833],[-91.69392761516069,31.00017490785027],[-91.67695279678087,31.000179306604604],[-91.6638904459963,31.012600614326463],[-91.64793391362302,31.00756187507662],[-91.62616165634472,31.01364715919927],[-91.59432559995555,31.034050325875],[-91.57484416339383,31.054404262346907],[-91.5797927224178,31.066907014773076],[-91.61222136676817,31.08566077938605],[-91.64075686243908,31.12809195368117],[-91.63728997261302,31.150244981485702],[-91.62437173830516,31.165620279571783],[-91.63109598084678,31.20835964339325],[-91.6611866595381,31.240517842225984],[-91.65936003542588,31.265484719531116],[-91.64688129333875,31.278613471527866],[-91.62942637823275,31.286908124299703],[-91.60868461918972,31.2828055505881],[-91.58721920470232,31.285006451261015],[-91.56450919854404,31.27925084529461],[-91.54288890668455,31.284690103672713],[-91.53136169877325,31.30295801853664],[-91.52852970901898,31.32277092512427],[-91.55432617545998,31.333347256388112],[-91.57630772718159,31.35325579845511],[-91.58540487067503,31.398277610633464],[-91.5817835909886,31.41510295308902],[-91.52525362821946,31.483916634960586],[-91.52635657118691,31.520639131555996],[-91.51857948511406,31.53281595404686],[-91.44464828446542,31.550787395536844],[-91.41765366021471,31.57075081930524],[-91.41768920925355,31.58103326507377],[-91.42354109454757,31.58399203879429],[-91.48165179072427,31.581628767716875],[-91.49727787789718,31.58641229622547],[-91.52348524946021,31.608545189099207],[-91.52224480035507,31.633424537878046],[-91.51565760264637,31.643090983475343],[-91.49691132305763,31.654506029398515],[-91.48181790158134,31.655139247237923],[-91.46063648530955,31.647668726179447],[-91.43325499702269,31.65157561800657],[-91.4213077726328,31.65945693210001],[-91.41298370404114,31.671258945272182],[-91.41684356462412,31.679964725829873],[-91.41124989521406,31.686207509900715],[-91.41312502692182,31.712206284751566],[-91.40419850189998,31.75241110361148],[-91.39405460711514,31.771042171416457],[-91.39330608274545,31.795834779781956],[-91.38724174893451,31.804327421172978],[-91.36959729474843,31.810414799287894],[-91.35733962648074,31.82243262962207],[-91.34562710142815,31.8685483069063],[-91.31901170285435,31.884521628310537],[-91.27076421218902,31.880719606088242],[-91.2600225965064,31.884090722349757],[-91.2308093949526,31.91867844001101],[-91.19806183705121,31.943559589444405],[-91.19338553741142,31.971450418076646],[-91.18270600369958,31.98166846941574],[-91.1885039008099,32.002772377738225],[-91.17537745758116,32.00827117713449],[-91.16721554190052,32.003640945328875],[-91.13816230752471,32.01161355971693],[-91.1218586553945,32.027344618647],[-91.12683311589997,32.03770196766553],[-91.15243366123914,32.03338364377105],[-91.17163355386745,32.03672847769947],[-91.1810415829261,32.05869638572147],[-91.18190061058205,32.07404759715541],[-91.1625170036712,32.10571074663206],[-91.17410359898415,32.13023782808723],[-91.17871696468367,32.15917384338247],[-91.16354295678813,32.20190325971434],[-91.12574042219539,32.21957675501021],[-91.12022273842177,32.24015575518002],[-91.08655726578814,32.24669226629843],[-91.0096982470962,32.2436188287282],[-90.99454419403854,32.247621693907355],[-90.98857053826832,32.25862389252573],[-90.99234593846079,32.279795187204094],[-90.98595269772389,32.29520961276912],[-90.92439960722524,32.322187064669514],[-90.92192928340666,32.328010987238336],[-90.89489080871937,32.330813822995516],[-90.87960264459538,32.33967112001889],[-90.86835223916243,32.35734499901699],[-90.83525784440758,32.35976127834117],[-90.82630081908951,32.36998292935575],[-90.81665204768987,32.36918566962977]]]}},{type:"Feature",properties:{region:"GLTG",id:"34",sortOrder:34,title:"Lower Mississippi - Baton Rouge"},geometry:{type:"Polygon",coordinates:[[[-91.67418256637652,30.982134657220833],[-91.66362467599332,30.988341337157234],[-91.63981911468169,30.990799002804494],[-91.63883700681856,30.978879374927597],[-91.6274244030131,30.971540743736327],[-91.62496606852947,30.953107320648837],[-91.60914583054904,30.946893006535937],[-91.60011779487729,30.93434476403335],[-91.59220877107492,30.938409206916322],[-91.57949273442762,30.93484141535449],[-91.56844929084349,30.93851066712198],[-91.53154645176171,30.915268288964505],[-91.52544125393548,30.917636790532004],[-91.52285872741264,30.929065505892044],[-91.51311166808019,30.93003623682013],[-91.51181034304525,30.912699186134923],[-91.51782449747634,30.902661412140702],[-91.50983329038687,30.87153145820058],[-91.50963043699616,30.810267006768893],[-91.54334918268907,30.778346946206067],[-91.58270298079067,30.76660095918517],[-91.58534998724994,30.7570665567544],[-91.58018426625232,30.746000442262805],[-91.56682638436229,30.738184486310484],[-91.55107853272473,30.73665860835263],[-91.50071525182028,30.751696537704436],[-91.4565577964,30.74341953869949],[-91.39659571394658,30.762905608416585],[-91.37188181167872,30.760252250148014],[-91.35952055753684,30.743857055225877],[-91.34049314776026,30.696155710115093],[-91.3275792024706,30.676232399914987],[-91.29192418406345,30.644369646076328],[-91.29149229257882,30.615493955531083],[-91.28099226274682,30.601730235697],[-91.25568496347782,30.58235721434241],[-91.23383534190819,30.551024489624247],[-91.23317146984533,30.5244013173868],[-91.20364595103638,30.526343211109246],[-91.19453689452668,30.517375661238837],[-91.18856737076185,30.457203023387404],[-91.1961307564096,30.41409053377683],[-91.20455258026843,30.397513506068716],[-91.22798352007086,30.373652271654507],[-91.23456061908321,30.355063589390657],[-91.22675577897834,30.34945394262196],[-91.1735550515098,30.351971975923824],[-91.14700368999982,30.34230511305],[-91.13662313301562,30.33024906328678],[-91.14042756099477,30.316046366169726],[-91.14684375208999,30.312167660241553],[-91.18969174909381,30.311682675403755],[-91.22442924657179,30.299708120140657],[-91.20507367701,30.283563038158746],[-91.1456358038211,30.28246601694577],[-91.1158346882882,30.26995115250776],[-91.10715643232359,30.26179606677483],[-91.10662680499254,30.246090150982113],[-91.14759510623493,30.211305505520222],[-91.15498359321059,30.193904016395894],[-91.150687276678,30.18482148810279],[-91.14273057491219,30.182724470413515],[-91.08372082739767,30.216343651867],[-91.05702778978267,30.21622092390623],[-91.03106750260343,30.205368519884747],[-91.0167624862016,30.19360511695452],[-90.99420428870319,30.158888826649537],[-90.9975712679848,30.14125558245887],[-91.01689617369033,30.119533173102802],[-90.95686934366347,30.11175891030492],[-90.95225556332791,30.11412263061365],[-90.94599251552432,30.135949834584668],[-90.93710740184484,30.138968233246878],[-90.92276153446976,30.135133142374272],[-90.91215260724033,30.12143239818578],[-90.90646594342424,30.090937283023738],[-90.8964602772386,30.07354392479617],[-90.88178385396468,30.066271630855972],[-90.85604893656935,30.066938893255973],[-90.83950224558457,30.055210895073763],[-90.82711311997011,30.000212484134774],[-90.82084515993031,29.989723200832742],[-90.77795746683981,30.015752598835796],[-90.73962758975416,30.019341460779682],[-90.72652621702109,30.01659007425334],[-90.67421981155637,30.050411055672186],[-90.66222468167791,30.05344581485746],[-90.64111085881096,30.051805477674492],[-90.6207187651928,30.03736581408682],[-90.58214404320921,30.054795767774916],[-90.52878005740831,30.049205317694188],[-90.49969654843706,30.059572230708536],[-90.48685646848675,30.058876192165908],[-90.4746049294338,30.051334842888327],[-90.46788178062624,30.038486927110483],[-90.46952860941657,30.006314410582537],[-90.44925342964325,29.999705258829195],[-90.4518287369217,29.99226644037242],[-90.46603542483275,29.99578794179284],[-90.47991044077845,30.005609363925306],[-90.48263376813914,30.03317530147968],[-90.49159517042789,30.04778173635995],[-90.53616632546328,30.044021669457578],[-90.58211869251319,30.04730823995218],[-90.59980290924987,30.0405960479807],[-90.616396884957,30.027364716461026],[-90.62825648860111,30.025594611474705],[-90.63749424310726,30.02945899697066],[-90.64793000069528,30.044079664935243],[-90.65770943191966,30.04705084224237],[-90.67390615370378,30.04165484258709],[-90.7274471183957,30.008035867656403],[-90.77680238882586,30.007162772103484],[-90.80871508198689,29.98068102392001],[-90.82059513298779,29.977538129633412],[-90.8351375260539,29.994740446470274],[-90.84775257781656,30.052547506994884],[-90.86429047201092,30.059853571812724],[-90.88897905196004,30.059530926941903],[-90.90250941630143,30.067054666122196],[-90.91130576308963,30.07784041575962],[-90.92027772253364,30.119935288272497],[-90.92703382768008,30.129336786465608],[-90.93928879533107,30.128896125889305],[-90.94175356221446,30.11016962504988],[-90.95583326899242,30.101635868123527],[-91.03318901791538,30.114275260835804],[-91.03224832878809,30.1303198416847],[-91.00853000869454,30.143406901614846],[-91.0041670220137,30.153896114356872],[-91.01244183742614,30.17089472256928],[-91.04064294240494,30.199106644611152],[-91.08666502376758,30.20375614207926],[-91.13807450847028,30.176342957000884],[-91.15672772563813,30.178320528720242],[-91.16823950383008,30.19030074543793],[-91.16769469189106,30.208520153428758],[-91.12531152929019,30.24157516276033],[-91.11723226389199,30.256618672732273],[-91.14116137290297,30.271666046295444],[-91.1671770254035,30.27555158369385],[-91.20296467796057,30.27379017665567],[-91.22564565698472,30.28411425959924],[-91.23579518260574,30.30365137353247],[-91.21964006698902,30.317326874691698],[-91.22785758912838,30.33449238888914],[-91.2390131260514,30.338793063829666],[-91.24719453992249,30.352436697920883],[-91.23967168720625,30.377509436125706],[-91.2029701299904,30.427086156447437],[-91.19969664477276,30.440934760029023],[-91.20256718337158,30.5113520283865],[-91.21718229805948,30.51552244483912],[-91.2665814441839,30.49732896977885],[-91.28320475239367,30.499894741890603],[-91.29172490252817,30.5071344218281],[-91.2961078008559,30.518649758788076],[-91.28358352494257,30.561253958375428],[-91.31895657831015,30.57136933779156],[-91.32301243857414,30.584052724648785],[-91.31198726107235,30.630557609294907],[-91.32210723478657,30.642597599224665],[-91.35152509582672,30.661288897071312],[-91.35816186261636,30.688441379743267],[-91.35403841403235,30.697681388362653],[-91.3567825433953,30.714408810907983],[-91.36615408181241,30.73446566555399],[-91.3816190107821,30.746477957296097],[-91.3964133031848,30.748736852635947],[-91.41606269517625,30.735174481237028],[-91.45754585142171,30.727281932752398],[-91.51838146039105,30.730334663147445],[-91.55416422433255,30.718826827203635],[-91.57426621844388,30.722297453154706],[-91.58437975617863,30.73052810656464],[-91.60349964528243,30.75888500606358],[-91.59594436264626,30.775587311416313],[-91.57065042362174,30.79741736486025],[-91.57946081834211,30.816553839681816],[-91.58970141840861,30.816755586035306],[-91.61880662382842,30.835384990433628],[-91.64770327146618,30.83992833768431],[-91.67121789819339,30.863362331012627],[-91.67141493953494,30.879424117097958],[-91.65722483736891,30.921866722462592],[-91.6635526415325,30.955948744107495],[-91.6697960923176,30.95862975641823],[-91.67418256637652,30.982134657220833]]]}},{type:"Feature",properties:{region:"GLTG",id:"35",sortOrder:35,title:"Lower Mississippi - New Orleans"},geometry:{type:"Polygon",coordinates:[[[-90.44925342964325,29.999705258829195],[-90.40401815599922,29.99413673025983],[-90.39070345042612,29.980431514883826],[-90.38670703006063,29.955182016452188],[-90.34272013598007,29.93870149263952],[-90.3195230567362,29.942655918481233],[-90.29854662326323,29.96388135773579],[-90.28308818222204,29.972407002567152],[-90.25269283875731,29.974125474025087],[-90.22842912464981,29.963968104772462],[-90.21135704469147,29.930231492980987],[-90.20565412614917,29.926863370838557],[-90.15845961458287,29.95896748712902],[-90.1429196531579,29.959176878890815],[-90.13539521529987,29.950803957207455],[-90.13164676003262,29.91924108295715],[-90.10343051327203,29.91420685897485],[-90.06567876151836,29.927269299952346],[-90.05973389965665,29.9602423980511],[-90.04908441963508,29.96316277677901],[-90.0316785313341,29.959977408240647],[-90.02740560143991,29.967819943208134],[-90.02392673722304,29.966388589390174],[-90.02509934308797,29.958388409236537],[-89.97648394842088,29.929074688503448],[-89.92966691939215,29.924982878569367],[-89.91400071934994,29.91324492337088],[-89.90544688004684,29.900356672079788],[-89.89909516574245,29.884803394918674],[-89.89849995193657,29.867860734211213],[-89.9240992703689,29.862157650777707],[-89.96634180352139,29.876996893905233],[-89.97596906618669,29.84927319560532],[-89.99494136276837,29.822963015702946],[-90.00007014103748,29.79993919797256],[-90.01508855249132,29.777753260975956],[-90.01719673358713,29.765981544472066],[-90.01632408731857,29.757123596582574],[-89.99002186538807,29.730815485172858],[-89.96150501825265,29.681764963860118],[-89.95113321512022,29.6485366953959],[-89.88602311268839,29.613893328008228],[-89.84393781658328,29.603889196459992],[-89.82573308091216,29.595078831253353],[-89.78718499604383,29.57063900547749],[-89.75245701433307,29.53808048439065],[-89.71900700317495,29.525416829205188],[-89.6904196135208,29.493618185566522],[-89.60260891619616,29.458830433850707],[-89.59207212809802,29.445775717935664],[-89.59523496655912,29.420278094228863],[-89.58164599880868,29.396366715721694],[-89.48488128757967,29.34840969728484],[-89.47746847230002,29.348455022024357],[-89.46198230103094,29.363806988939317],[-89.44950630355459,29.367464844287262],[-89.41588827415005,29.35689148435345],[-89.39112500708744,29.337219919394165],[-89.35280569575188,29.291710840363432],[-89.3279082954087,29.30107824083447],[-89.31800641726274,29.31378853492085],[-89.30349918575146,29.341465409285096],[-89.3003470366635,29.35694710133291],[-89.30510745543893,29.362548413082006],[-89.30139412527468,29.366850634687108],[-89.29033572568761,29.36974712850417],[-89.27801447791293,29.352997210816824],[-89.26647984927307,29.348322298650647],[-89.25511579520287,29.3373276851567],[-89.24074077087892,29.310957250128904],[-89.21086804326006,29.329046195023846],[-89.19891014398164,29.347468368319582],[-89.18700194601243,29.344415891970378],[-89.1743998270987,29.318367561458352],[-89.1538910215843,29.29776874123477],[-89.13903953708734,29.291421354520754],[-89.11880929723603,29.25881236392144],[-89.02738009715173,29.21926769451219],[-88.97770464583205,29.214143872592462],[-88.97860569468155,29.143483368675376],[-89.06504872025113,29.07207716305479],[-89.14647649275722,28.972458077698853],[-89.31789388387622,29.02167452593082],[-89.401808058663,28.93125415383239],[-89.41962350279572,28.93003322105236],[-89.39183874891354,28.974734037609252],[-89.40426786097221,29.085654417636835],[-89.42144345055871,29.13911332553451],[-89.43277976761729,29.149192580448847],[-89.453384325123,29.19004114529399],[-89.47225827529267,29.20963093258232],[-89.40900982538899,29.2135807978864],[-89.39602543113259,29.221209245726033],[-89.3853708586254,29.240615505711414],[-89.36375544754105,29.262289797762417],[-89.35407227388039,29.266247482873425],[-89.35300433333914,29.27348358749177],[-89.39951370827661,29.330574108538666],[-89.43964151343258,29.355466887599192],[-89.4487337407762,29.356743645130805],[-89.47478439101435,29.33966636465627],[-89.4851807086246,29.339563485519154],[-89.57634261164753,29.374007734739806],[-89.60180319483541,29.395072917255465],[-89.60929821757315,29.414230204717978],[-89.60793783501882,29.43752972936699],[-89.61685105193135,29.451514988887666],[-89.67042755830994,29.462630625066012],[-89.69562748072433,29.483951864287462],[-89.72933547860109,29.522140814515712],[-89.75886068781966,29.534610098816987],[-89.79686299954601,29.56989400420384],[-89.84325022253678,29.597770650223122],[-89.88989116117595,29.608397708354296],[-89.9586178440944,29.64674617622289],[-89.96823271160237,29.68224611842058],[-89.99931598983616,29.730604893180924],[-90.02697855564634,29.753300435544777],[-90.02799999152818,29.771095444256414],[-90.00116163674728,29.831923496041284],[-89.98356443856137,29.850727374103652],[-89.97514424367203,29.880676845642785],[-89.95498326544482,29.884828177535073],[-89.93405985659201,29.87366062801954],[-89.91030902312913,29.871841952703864],[-89.90882268179165,29.88476952748315],[-89.92173344771902,29.912172155508955],[-89.935066046632,29.918459864379056],[-89.97530514677987,29.92080380139829],[-90.02499313288708,29.948102312415926],[-90.04975604995302,29.95451993579549],[-90.05321066038469,29.953241888007092],[-90.05326363965882,29.930511717974685],[-90.0631121497929,29.919544061006377],[-90.10183143230022,29.90515022874455],[-90.11644982239571,29.904296398448572],[-90.13934368333463,29.914355599383903],[-90.14758299720411,29.951880002036162],[-90.19068074148413,29.92185736289385],[-90.20770657787607,29.92014019224835],[-90.22010898870657,29.92824936363456],[-90.23240685090609,29.955030329233672],[-90.25363760153749,29.966205827284014],[-90.28980459810623,29.957838867208746],[-90.31997574246999,29.933553065098167],[-90.3447763784848,29.93152523797994],[-90.37142541259301,29.937830239790987],[-90.39734770450336,29.95223341360657],[-90.40507115277887,29.98161507306595],[-90.41050203764077,29.98785840803843],[-90.4518287369217,29.99226644037242],[-90.44925342964325,29.999705258829195]]]}},{type:"Feature",properties:{region:"GLTG",id:"36",sortOrder:36,title:"Watershed - Ohio"},geometry:{type:"Polygon",coordinates:[[[-78.66517006909478,42.32156749459397],[-78.41868675165492,42.41587693122442],[-77.8362805303443,41.846355299969204],[-78.5621170176431,41.48199138824544],[-78.91452026829916,40.72388866229921],[-78.5677072805938,40.37439655635333],[-78.93638572390955,39.712150702308755],[-79.51118370529339,39.21004751309975],[-79.2910066413504,39.19266289821264],[-79.3123047491652,39.021653835577894],[-79.52091873582319,38.892232420316276],[-79.78745646809111,38.27285415097037],[-80.50321534207691,37.481518817715],[-80.5357450593747,37.33912114073703],[-80.20433849496884,37.436165779192066],[-80.46812465092071,37.29114688803239],[-80.45392356365832,37.06749737226935],[-80.12183073006261,36.99076266358527],[-80.49098781378979,36.653382884872585],[-80.82749025778381,36.623642835741045],[-80.98200920265572,36.390951585300854],[-81.17395145070523,36.43630825615796],[-81.70383058150587,36.14974544794565],[-81.70764132164523,36.5361724428024],[-81.32976238551873,36.74903147708039],[-81.2555379319,37.03195360275735],[-81.5204104891043,37.195890698303536],[-82.35630984749935,36.95978891014151],[-82.7400469801133,37.04335835042307],[-83.1365318798955,36.743068990422124],[-84.32798845124088,36.422994633842066],[-84.22675082444906,36.21929891283331],[-84.34379591397851,36.10081681417954],[-84.58647302547098,36.23469219696271],[-85.04851388325667,36.17993863644988],[-85.19677330381617,36.04901765023356],[-85.09649747838121,35.74205563576693],[-85.4910686075792,35.530048220157596],[-85.57276131032667,35.31535542662378],[-86.19076332083102,35.70222283010824],[-86.40026934339886,35.61852288626308],[-87.00350613977487,35.79622453868436],[-87.53166237559178,36.09764338114194],[-87.95733393826035,36.477213119170024],[-88.32032685540322,37.12282818946206],[-88.68186655895407,36.96358246974458],[-89.06485973608955,37.11748811855233],[-89.13788574255807,36.98355090252405],[-89.25109863432583,37.13338124240042],[-88.93076250784002,37.32567721718378],[-89.26330613757418,37.539468276754626],[-88.78804660661554,37.7179423470128],[-88.61806416710846,38.03826932910839],[-88.9015095409408,38.51519875346001],[-88.82884020959247,38.95451466123772],[-88.60536875891557,39.41325909624298],[-88.16740615916333,39.624155940259584],[-88.3418982358921,39.75684784338564],[-88.31325239731677,40.18477511550651],[-88.14426177556172,40.355565777159065],[-88.34843629342721,40.63695727714547],[-87.78089823489061,40.403826704499025],[-87.04291621339868,40.77813132385219],[-86.90417352663324,41.1859508895329],[-86.6975814597617,41.10136429888917],[-86.54365867759884,41.269051738797444],[-86.24206436793642,41.18016692910007],[-86.16253223579014,41.32222609991343],[-85.90042275606251,41.30888260915817],[-85.3297070450675,41.322910284170945],[-85.12705245098653,41.19991669245555],[-85.21144401043657,40.918894045996424],[-85.05853257034141,40.71433609362083],[-84.38341649316419,40.40881222180974],[-83.89096410641459,40.72407322483345],[-83.32134870886536,40.59134243374884],[-82.97622165424849,40.79820934327498],[-82.69364216164794,40.7525507421324],[-82.6990760599017,40.947661210469974],[-82.02026927874363,41.01079354671595],[-81.9897191197878,41.13646044595656],[-81.26126153142613,40.972279771745846],[-81.15141889679921,41.35838536605314],[-80.82156373586739,41.328483498286126],[-80.74454156772788,41.573921912251045],[-80.4900456011782,41.76237333953263],[-80.34035189143376,41.664436788125215],[-80.06849486950829,42.02761566853164],[-79.16332959566085,42.43545761657097],[-78.66517006909478,42.32156749459397]]]}},{type:"Feature",properties:{region:"GLTG",id:"37",sortOrder:37,title:"Watershed - Tennessee"},geometry:{type:"Polygon",coordinates:[[[-81.5204104891043,37.195890698303536],[-81.2555379319,37.03195360275735],[-81.32976238551873,36.74903147708039],[-81.70764132164523,36.5361724428024],[-81.70383058150587,36.14974544794565],[-82.28363399491448,35.70074700808063],[-82.31121540472185,35.38080781012878],[-82.57817384895087,35.142348292611445],[-83.0620229038729,35.1637192905202],[-83.43281309328256,34.89946421495886],[-83.55820786885894,35.03978985461973],[-83.66035550697734,34.81079648469627],[-84.1848871782222,34.62947482498018],[-84.85335984186032,35.14988426570296],[-85.07564517511977,34.70608927626404],[-85.51816356754927,34.694547556022904],[-86.10715414253515,34.12114411762344],[-86.1995617353732,34.26151069466579],[-86.49153398170873,34.12525719170449],[-86.4984250723075,34.32189531234815],[-86.86820729644688,34.24328130787415],[-87.33739104082642,34.43384595212737],[-87.7451457380726,34.22077346008307],[-88.41152953453877,34.74360431123935],[-88.54409079540248,35.25946299409719],[-88.29056545763594,36.38338618038659],[-88.68186655895407,36.96358246974458],[-88.32032685540322,37.12282818946206],[-87.95733393826035,36.477213119170024],[-87.53166237559178,36.09764338114194],[-87.00350613977487,35.79622453868436],[-86.40026934339886,35.61852288626308],[-86.19076332083102,35.70222283010824],[-85.57276131032667,35.31535542662378],[-85.4910686075792,35.530048220157596],[-85.09649747838121,35.74205563576693],[-85.19677330381617,36.04901765023356],[-85.04851388325667,36.17993863644988],[-84.58647302547098,36.23469219696271],[-84.34379591397851,36.10081681417954],[-84.22675082444906,36.21929891283331],[-84.32798845124088,36.422994633842066],[-83.1365318798955,36.743068990422124],[-82.7400469801133,37.04335835042307],[-82.35630984749935,36.95978891014151],[-81.5204104891043,37.195890698303536]]]}},{type:"Feature",properties:{region:"GLTG",id:"38",sortOrder:38,title:"Watershed - Upper Mississippi"},geometry:{type:"Polygon",coordinates:[[[-94.34150172804472,47.77085537704797],[-93.80469878204235,47.434814987402405],[-93.4537404771535,47.65993646776765],[-92.96936567586033,47.53176553420688],[-93.20528560160896,47.15388099707487],[-93.17435931323014,46.84495470021861],[-92.58897321871791,46.68491876369217],[-92.64001813796358,46.41965340538465],[-92.33183451502845,46.31860493331261],[-91.4606835612493,46.46558655372448],[-91.29123331487881,46.234353560451225],[-90.69312993944862,46.16546396344272],[-89.98975210683237,46.311743902729916],[-89.40237621731306,46.09767628476609],[-89.29398848537522,46.21426533893877],[-88.90867132627118,46.12003390241826],[-89.24037752519007,45.40931209221036],[-88.94160248125864,45.24366963487514],[-89.33362977469298,44.867327828343285],[-89.34841223576652,44.193654284702056],[-89.7097094958311,43.67851064022375],[-89.32712079380946,43.52938660884538],[-88.75844131892086,43.77411982197532],[-88.3539863175506,43.57823043055704],[-87.60402311349331,41.67356240657154],[-87.34572740740907,41.57779222954463],[-87.42961788365342,41.38761117434206],[-87.03066469822164,41.39967247168668],[-87.0502728942018,41.533892293879646],[-86.35606463919787,41.797029846876185],[-85.90042275606251,41.30888260915817],[-86.16253223579014,41.32222609991343],[-86.24206436793642,41.18016692910007],[-86.54365867759884,41.269051738797444],[-86.6975814597617,41.10136429888917],[-86.90417352663324,41.1859508895329],[-87.04291621339868,40.77813132385219],[-87.78089823489061,40.403826704499025],[-88.34843629342721,40.63695727714547],[-88.14426177556172,40.355565777159065],[-88.31325239731677,40.18477511550651],[-88.3418982358921,39.75684784338564],[-88.16740615916333,39.624155940259584],[-88.60536875891557,39.41325909624298],[-88.82884020959247,38.95451466123772],[-88.9015095409408,38.51519875346001],[-88.61806416710846,38.03826932910839],[-88.78804660661554,37.7179423470128],[-89.26330613757418,37.539468276754626],[-88.93076250784002,37.32567721718378],[-89.25109863432583,37.13338124240042],[-89.13788574255807,36.98355090252405],[-89.5766997374535,37.25150535047168],[-90.38671395638315,37.15215037567094],[-90.19677381227761,37.57103407911415],[-90.32629148411226,37.863933440196426],[-90.7128266515853,37.64908597689638],[-90.995484210202,37.69669317211937],[-91.33222095533932,37.495507401776315],[-91.79262229508902,37.5677840464953],[-91.73306753293859,38.28041302675451],[-90.82869219494194,38.481892081290404],[-90.12135244455432,38.828621577380474],[-90.32697616733198,38.905044042074685],[-90.92035621034205,38.69917080905816],[-91.65809094673705,39.11680528753318],[-91.91520132024742,39.03244909863266],[-92.31940991721643,39.212465277872944],[-92.7321491445804,40.76626459569972],[-93.35113380181559,41.04113550489134],[-93.76854893292287,40.90129068704884],[-94.64075233419153,41.486106255789565],[-95.3095939221547,42.68866804932754],[-94.86244064504206,43.11621362638067],[-94.93594240311083,43.42904991465157],[-95.1076760134014,43.66140424095855],[-95.58113598857831,43.619428472513164],[-95.84887726576906,43.75728202914695],[-95.83637533280287,43.94929688507705],[-96.65179193998839,44.57064211540247],[-96.68055514809114,44.83954425541536],[-97.35148991259565,45.776359437908695],[-97.1475922196003,45.930152429359055],[-96.8647151237616,45.60592845379927],[-96.23269552959322,45.510304322556095],[-95.90223158128363,45.74291127801489],[-96.04400087485939,46.19011928965564],[-95.80816042367309,46.352086793682346],[-95.75932304769346,46.18618434285622],[-95.42123320588303,46.187795851672206],[-95.61496085276744,46.3518455842064],[-95.33345993781043,46.64305033744654],[-95.51661677333198,46.95027203409319],[-95.22620703593452,47.39319600369825],[-95.28170408256908,47.56448600451877],[-94.34150172804472,47.77085537704797]]]}},{type:"Feature",properties:{region:"GLTG",id:"39",sortOrder:39,title:"Watershed - Lower Mississippi"},geometry:{type:"Polygon",coordinates:[[[-90.32629148411226,37.863933440196426],[-90.19677381227761,37.57103407911415],[-90.38671395638315,37.15215037567094],[-89.5766997374535,37.25150535047168],[-89.13788574255807,36.98355090252405],[-89.06485973608955,37.11748811855233],[-88.68186655895407,36.96358246974458],[-88.29056545763594,36.38338618038659],[-88.54409079540248,35.25946299409719],[-88.41152953453877,34.74360431123935],[-88.89220267911443,34.50995541492448],[-89.08679044747431,33.40964903660895],[-89.55953317268852,33.16771985729827],[-89.7639468521529,32.69550525482809],[-90.17842445785496,32.481051273505265],[-90.3809469896637,32.19784755294277],[-90.3971178865084,31.649714984422214],[-90.61617701514714,31.44966350381979],[-90.31962408491374,31.10864600125713],[-90.40192074518947,30.936690088800642],[-89.83480111858171,30.50513963756358],[-89.67943014336939,30.1794487165419],[-89.1855640338969,30.21039711843698],[-89.20147957756201,30.00020116583861],[-88.84335751352035,30.01890784280616],[-88.85524483783395,29.769159994516922],[-89.16278677959193,29.489155997237646],[-89.17439982709769,29.318367562257183],[-88.97749053901327,29.213695990791575],[-89.14536336949439,28.973197755266675],[-89.41962350279633,28.930033221850568],[-89.46142734961224,29.199636295460316],[-89.78402584522192,29.312292442948504],[-90.34337370441915,29.055167098925036],[-90.91916438771142,29.045749971312304],[-91.54656340502427,29.520920217261068],[-92.3152256408569,29.533426613021316],[-93.22495656528548,29.776365041097883],[-93.83583584873047,29.69433039812059],[-93.57707496123071,30.000212603413765],[-93.63614108866756,30.49626271569765],[-93.14819900040297,31.140752802830082],[-93.23279595499656,31.335811485691664],[-92.88178404515247,31.43387973464715],[-92.75232525983527,31.209460404523945],[-92.69513615788537,31.394234714169908],[-92.43445893799347,31.38289068087745],[-92.93298719847316,32.163995203591945],[-92.87471225805106,32.55376409410544],[-93.13406689500914,32.833117574094814],[-93.28429636083051,33.5612720823139],[-93.79253237137206,33.79504118803946],[-94.00019929446009,34.44443208794172],[-94.33098421117822,34.70123096211333],[-92.81237223149031,34.85982643082568],[-92.07750098515265,34.22907955962342],[-91.85001657121975,34.21732550432759],[-92.31094014182064,35.00009360417404],[-92.0001465442021,35.33928144666587],[-91.37803173890235,35.18852057882105],[-90.90141645036186,36.09943784823268],[-90.14538170849535,36.64670967097015],[-90.23660400145754,36.85699959682249],[-90.6675565270394,37.09055063720654],[-90.7128266515853,37.64908597689638],[-90.32629148411226,37.863933440196426]]]}},{type:"Feature",properties:{region:"GLTG",id:"40",sortOrder:40,title:"Watershed - Missouri"},geometry:{type:"Polygon",coordinates:[[[-114.00096052298822,48.99626771320642],[-103.78548515589996,49.00003147192453],[-103.88823772026221,48.8760685960641],[-103.42523355252888,48.62463061716234],[-103.01889339278478,48.792408535857646],[-102.24011656263494,48.60414265217565],[-101.20636347704543,47.84856248548335],[-100.97883777324252,47.90474394043629],[-100.24806033301097,47.510550861941496],[-100.20153831084295,47.33281583738476],[-99.63702288421547,47.845632638217836],[-98.69446949855467,47.67488190034264],[-98.73472640665408,47.29626219506302],[-98.3467740560452,47.052509956967796],[-98.22723743343013,46.68085267813768],[-97.96636939293126,46.623461732821326],[-98.06925062795875,46.189423897133324],[-97.85846641585536,46.143203407524666],[-97.95836855096337,45.892752922952496],[-97.35148991259565,45.776359437908695],[-96.68055514809114,44.83954425541536],[-96.65179193998839,44.57064211540247],[-95.83637533280287,43.94929688507705],[-95.84887726576906,43.75728202914695],[-95.58113598857831,43.619428472513164],[-95.1076760134014,43.66140424095855],[-94.93594240311083,43.42904991465157],[-94.86244064504206,43.11621362638067],[-95.3095939221547,42.68866804932754],[-94.64075233419153,41.486106255789565],[-93.76854893292287,40.90129068704884],[-93.35113380181559,41.04113550489134],[-92.7321491445804,40.76626459569972],[-92.31940991721643,39.212465277872944],[-91.91520132024742,39.03244909863266],[-91.65809094673705,39.11680528753318],[-90.92035621034205,38.69917080905816],[-90.32697616733198,38.905044042074685],[-90.12135244455432,38.828621577380474],[-90.82869219494194,38.481892081290404],[-91.73306753293859,38.28041302675451],[-91.79262229508902,37.5677840464953],[-92.01225646813143,37.04993294418093],[-92.66234502214559,37.098531003803245],[-92.9034373689399,37.33554562538524],[-93.58539438583327,37.02411564324952],[-94.19879255759777,37.58889095154554],[-94.60026072851014,37.48896901368928],[-95.0187671699279,37.663946116674005],[-95.21121374351722,37.94368134613133],[-95.15051745171199,38.127485136951634],[-95.41298803924656,38.09853740941944],[-95.56718027571227,38.354119427741985],[-95.947105105507,38.41602096516821],[-96.24748031415277,38.83502942136834],[-96.62998308689374,38.867474159963386],[-96.98733658304732,38.54854012644508],[-97.34268258324592,38.594112443385484],[-97.4357311583982,38.390382849413804],[-97.86912400464276,38.382025817744726],[-98.42173008420936,38.66140223524359],[-101.40707206352938,38.502970026557534],[-102.51328408655648,38.71306513441872],[-102.61490859041355,38.96994706804813],[-103.17610992613248,39.056769945108606],[-103.69470226679888,39.3715800442753],[-104.66293191116289,39.02648384784821],[-104.99784934625787,39.12676302353935],[-105.1299325849989,38.89440010856322],[-105.69839746710396,38.75218767402699],[-106.19419405606614,39.01896530752793],[-106.15578342297196,39.363227047645545],[-105.77654558337474,39.60478954141136],[-105.92372277890884,39.700203947488056],[-105.6953328844977,39.83954367427216],[-105.65070746626644,40.25456057044276],[-105.8505540002721,40.48671941007],[-105.96012492472893,40.348118630246496],[-106.61127867874613,40.38076598445268],[-106.65618327026517,40.850789327659754],[-107.45676073564869,41.54692931512371],[-107.33967544215676,41.85942861888472],[-107.1159858532459,41.86226897807479],[-107.08569607218452,42.2194058497255],[-107.84009107656401,42.25467461586623],[-107.95649522803821,42.40220755107387],[-108.29783313660215,42.21789316156996],[-108.84927128185184,42.26047371875061],[-109.1881881667815,42.49301194410682],[-109.13285737641232,42.717071391267126],[-109.55346734342103,43.0129291233263],[-109.69755047694605,43.36741571295446],[-110.0598207452764,43.589974135834076],[-109.85902526595143,43.9585494058244],[-110.13896528967004,44.003183994233886],[-110.62093665208188,44.48050515334037],[-110.8732927980438,44.33603034200419],[-111.38386140388468,44.7532505891657],[-111.4674433767398,44.53933527773921],[-112.28803323942786,44.56582375857792],[-112.84783501833697,44.35743943712545],[-113.13356900475861,44.77420773043164],[-113.47629941710346,44.89637122508119],[-113.91228762876064,45.75101002772921],[-113.27351631808477,46.060865118041306],[-112.45846655119837,45.81565834374668],[-112.59937633266838,46.23506859703983],[-112.30860360026496,46.41985686655363],[-112.29892280364896,46.617854557646936],[-112.54159995653774,46.77049839840313],[-112.31047581401681,47.01868000893057],[-113.11298588843152,47.494168469072996],[-113.09228325620228,47.90847267679845],[-112.89587894723425,48.01749525061927],[-113.23264576362737,48.17200935402697],[-113.46912050744207,48.549974526779565],[-113.75185196973322,48.61539708041131],[-113.78816796348579,48.84226310406905],[-114.00959895177154,48.82957519553484],[-114.00096052298822,48.99626771320642]]]}},{type:"Feature",properties:{region:"GLTG",id:"41",sortOrder:41,title:"Watershed - Arkansas White-Red"},geometry:{type:"Polygon",coordinates:[[[-106.21069953227646,39.38312789668383],[-106.15578342297196,39.363227047645545],[-106.19419405606614,39.01896530752793],[-105.69839746710396,38.75218767402699],[-105.1299325849989,38.89440010856322],[-104.99784934625787,39.12676302353935],[-104.66293191116289,39.02648384784821],[-103.69470226679888,39.3715800442753],[-103.17610992613248,39.056769945108606],[-102.61490859041355,38.96994706804813],[-102.51328408655648,38.71306513441872],[-101.40707206352938,38.502970026557534],[-98.42173008420936,38.66140223524359],[-97.86912400464276,38.382025817744726],[-97.4357311583982,38.390382849413804],[-97.34268258324592,38.594112443385484],[-96.98733658304732,38.54854012644508],[-96.62998308689374,38.867474159963386],[-96.24748031415277,38.83502942136834],[-95.947105105507,38.41602096516821],[-95.56718027571227,38.354119427741985],[-95.41298803924656,38.09853740941944],[-95.15051745171199,38.127485136951634],[-95.21121374351722,37.94368134613133],[-95.0187671699279,37.663946116674005],[-94.60026072851014,37.48896901368928],[-94.19879255759777,37.58889095154554],[-93.58539438583327,37.02411564324952],[-92.9034373689399,37.33554562538524],[-92.66234502214559,37.098531003803245],[-92.01225646813143,37.04993294418093],[-91.79262229508902,37.5677840464953],[-91.33222095533932,37.495507401776315],[-90.995484210202,37.69669317211937],[-90.7128266515853,37.64908597689638],[-90.6675565270394,37.09055063720654],[-90.23660400145754,36.85699959682249],[-90.14538170849535,36.64670967097015],[-90.90141645036186,36.09943784823268],[-91.37803173890235,35.18852057882105],[-92.0001465442021,35.33928144666587],[-92.31094014182064,35.00009360417404],[-91.85001657121975,34.21732550432759],[-92.07750098515265,34.22907955962342],[-92.81237223149031,34.85982643082568],[-94.33098421117822,34.70123096211333],[-94.00019929446009,34.44443208794172],[-93.79253237137206,33.79504118803946],[-93.28429636083051,33.5612720823139],[-93.13406689500914,32.833117574094814],[-92.87471225805106,32.55376409410544],[-92.93298719847316,32.163995203591945],[-92.43445893799347,31.38289068087745],[-92.69513615788537,31.394234714169908],[-92.75232525983527,31.209460404523945],[-92.88178404515247,31.43387973464715],[-93.23279595499656,31.335811485691664],[-93.57034624058915,32.004212841217125],[-93.77981234835006,32.038753178985125],[-94.2510694333408,32.553731448442555],[-95.05462066601797,32.67895635295861],[-95.36817590287274,33.0507487578443],[-95.97868237654241,33.161854646946566],[-97.00059623570176,33.717346903959445],[-98.80587556335732,33.39091145431252],[-99.29318915274283,33.637157502021765],[-100.56331195121535,33.52656329174628],[-100.70020484596992,33.71558740602312],[-101.03648835408956,33.753943978661184],[-101.5390806969136,34.262631548568365],[-102.31007662842914,34.5867668137658],[-103.59434638888602,34.67787711951178],[-104.07857611047575,34.980488008206365],[-104.42296857620583,34.94083586575909],[-105.11602211647428,35.72145076817328],[-105.53324495966318,35.81390762071519],[-105.13312172206888,37.41219041713097],[-105.18984720939616,37.61949216212324],[-105.49400464856262,37.584819163081804],[-105.4294405878486,37.852284686656354],[-105.67174157962916,38.15814411157612],[-106.01927222795986,38.4540257525577],[-106.24784304835346,38.34351460400478],[-106.42931800824194,38.65204611978672],[-106.32459596938011,38.90907836224267],[-106.5868273820346,39.097663526795024],[-106.40526970881376,39.37979116763024],[-106.21069953227646,39.38312789668383]]]}}],sensors_regions:[],parameter_subtitle:"",season_subtitle:"",region_subtitle:"",calculation_subtitle:"",threshold_subtitle:"",threshold_none_subtitle:"",trend_colors:{trendUp:"#FAE70B",trendDown:"#29ABE2",noTrend:"#7F7F7F",overThresholdUp:"#ED2026",overThresholdDown:"#ED2026"},trends_sources:["epa"],draw_and_all_regions:[{type:"Feature",properties:{title:"All Regions",region:"ALL",id:"all",sortOrder:0,threshold:{"total-phosphorus-glenda":5}},geometry:{type:"",coordinates:[],region_coordinate:[]}},{type:"Feature",properties:{title:"Draw Custom Region",region:"DRAW",id:"draw",sortOrder:1,threshold:{}},geometry:{type:"",coordinates:[],region_coordinate:[]}}],trend_settings:[{parameter:{id:"discharge-ft3s",title:"Discharge"},thresholds:[{title:"Standard01",region:"Region01",value:3.1},{title:"Standard02",region:"Region02",value:1.1},{title:"Standard03",region:"Region03",value:2.5}]},{parameter:{id:"dissolved-oxygen-mgl",title:"Dissolved Oxygen"},thresholds:[{title:"Standard04",region:"Region04",value:6.3},{title:"Standard05",region:"Region05",value:7},{title:"Standard06",region:"Region06",value:7.2}]},{parameter:{id:"nitrate-nitrite-as-n-mgl",title:"Nitrate and Nitrite as N"},thresholds:[{title:"Standard07",region:"Region07",value:.6},{title:"Standard08",region:"Region08",value:1.5},{title:"Standard09",region:"Region09",value:2}]},{parameter:{id:"phosphorus-insitu-orthophosphate-as-p-mgl",title:"Phosphorous in Situ Orthophosphate as P"},thresholds:[{title:"Standard01",region:"Region01",value:3.1},{title:"Standard02",region:"Region02",value:1.1},{title:"Standard03",region:"Region03",value:2.5}]},{parameter:{id:"turbidity-fnu",title:"Turbidity"},thresholds:[{title:"Standard04",region:"Region04",value:6.3},{title:"Standard05",region:"Region05",value:7},{title:"Standard06",region:"Region06",value:7.2}]},{parameter:{id:"water-temperature-c",title:"Water Temperature"},thresholds:[{title:"Standard07",region:"Region07",value:.6},{title:"Standard08",region:"Region08",value:1.5},{title:"Standard09",region:"Region09",value:2}]}],trends_page_settings:[],trends_page_lake_regions:[],trends_page_seasons:[],trends_page_timeframes:[{id:"baseline_total_year",value:30},{id:"rolling_interval",value:17}],trends_page_defaults:[],trends_analysis_defaults:[{id:"parameter",value:"None"},{id:"season",value:"all"},{id:"by-analysis",value:"Analysis"},{id:"region",value:"all"},{id:"thresholdMin",value:0},{id:"thresholdMax",value:100}],mapTileURL:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",mapAttributions:'© OpenStreetMap contributors',mapAttributionsCollapsible:!0,mapMiniAttributionsCollapsible:!0,mapClustersDistance:45,clustersChoiceOption:!0,mapMiniMinZoom:3,clustersExpandMaxNumberFeatures:10,mapMaxZoom:16,mapMinZoom:5.5,mapCenterValue:[-84.44799549,38.9203417],mapPopupZoomMax:10}},1128:function(e,t,r){"use strict";r.r(t);r(264),r(298);var n=r(0),a=r.n(n),o=r(34),i=r.n(o),s=r(18),l=r(5),c=r(8),u=r.n(c),p=r(518),d=r.n(p),f=r(519),m=r.n(f),h=r(2),y=r.n(h),b=r(17),g=r.n(b),v=r(3);function (e,t){var r;return t.length>e.length&&(r=t,t=e,e=r),e.filter((function(e){return t.indexOf(e)>-1}))}function w(e){return e.sort((function(e,t){var r=e.label.toUpperCase(),n=t.label.toUpperCase();return r<n?-1:r>n?1:0})),e}function E(e,t,r){return r.sort((function(r,n){var a=null===t?e[r.toUpperCase()]:e[r[t].toUpperCase()],o=null===t?e[n.toUpperCase()]:e[n[t].toUpperCase()];return(a=void 0===a?9999:a)<(o=void 0===o?9999:o)?-1:a>o?1:0})),r}function S(e,t,r){for(var n=[[0,0]],a=0;a<r.length;a++){for(var o=0;o<r[a].length;o++)n.push(r[a][o]);n.push(r[a][0]),n.push([0,0])}for(var i=!1,s=0,l=n.length-1;s<n.length;l=s++)n[s][0]>t!=n[l][0]>t&&e<(n[l][1]-n[s][1])(t-n[s][0])/(n[l][0]-n[s][0])+n[s][1]&&(i=!i);return i}function O(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))if(Array.isArray(e[r]))for(var n in e[r])t.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r][n]));else t.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t.join("&")}function j(e){return e.length>0&&!isNaN(e[0].name)&&e.sort((function(e,t){return e.name-t.name})),e}function C(e,t){for(var r=t,n=[],a=function(t){var a=[];e[t].geometry.coordinates.length>0&&"ER"!==e[t].properties.id.toString().toUpperCase()&&(e[t].geometry.coordinates[0].map((function(e){a.push([e[1],e[0]])})).join(","),n[t]={id:t,geometry:{type:"Point",coordinates:e[t].geometry.region_coordinate,geocode:a},name:r[t].toString(),properties:{region:e[t].properties.id.toString(),type:{id:t.toString(),title:""},name:r[t].toString(),popupContent:e[t].properties.title.toString(),online_status:""},type:"Feature",region_trends:{lastaverage:0,tenyearsaverage:0,totalaverage:0},trends_detail:{id:t,value:0},trends_deviation:{id:t,value:0}})},o=0;o<r.length;o++)a(o);return n}function k(e,t){var r=[];return t.map((function(t){T(e,t)&&r.push(t)})),r}function P(e,t){var r=t.sensors,n=[];return"reset_points"===e[0]?n=r:r.map((function(t){e.includes(t.name)&&n.push(t)})),n}function x(e,t){if(e.toUpperCase()===t.properties.region.toUpperCase())return!0;var r=Object(v.Cb)().find((function(t){return t.properties.id===e}));return!!r&&S(t.geometry.coordinates[1],t.geometry.coordinates[0],r.geometry.coordinates)}function T(e,t){if(e.toUpperCase()===t.properties.region)return!0;var r=Object(v.ub)(),n={};return r&&r.map((function(t){t.properties.id===e&&(n=t.geometry.coordinates)})),!!n&&S(t.geometry.coordinates[1],t.geometry.coordinates[0],n)}function R(e){for(var t,r=[],n=0;n<e.length;n++)t=e[n].properties.id,r=r.concat(t);return r}function N(e,t,r){for(var n=[],a=0;a<r.length;a++)r[a].parameter.id===e&&r[a].thresholds.map((function(e){e.region.toLowerCase()===t&&(n=e.value)}));return n}function D(e,t,r){var n=Object(v.Cb)().find((function(t){return t.properties.id===e.toLowerCase()}));return!!n&&(!!S(t.geometry.coordinates[1],t.geometry.coordinates[0],n.geometry.coordinates)&&n.properties.threshold[r])}function I(e){var t=e.properties.popupContent;return e.properties.popupContent===e.properties.name&&e.properties.location&&(t=e.properties.location),t}function A(e,t){var r=Array();if(screen.width<=Object(v.fb)()){var n=Object(v.gb)().toUpperCase();if("ALL"!==n){var a=e;e=a=a.filter((function(e){return n.includes(e.properties.type.id.toString().toUpperCase())}))}}return e.map((function(e){var n=new y.a.Feature({geometry:new y.a.geom.Point([e.geometry.coordinates[0],e.geometry.coordinates[1]]).transform("EPSG:4326","EPSG:3857")}),a=[];e.parameters.filter((function(e){return null!==e})).map((function(e){var r=t.find((function(t){return t.name===e}));void 0!==r&&void 0!==r.title&&a.push(r.title)}));var o="none";e.properties.online_status&&(o=e.properties.online_status),n.attributes={name:e.name,dataSource:Object(v.ob)(e.properties.type),maxEndTime:e.max_end_time,minStartTime:e.min_start_time,latitude:e.geometry.coordinates[1],longitude:e.geometry.coordinates[0],location:e.properties.region,parameters:a,color:Object(v.v)(e.properties.type.id),type:"single",onlineStatus:o,id:e.id};var i=I(e);n.setId(i),r.push(n)})),r}function L(e,t,r,n){var a=Array(),o=Object(v.yb)(),i=[];o.map((function(e){return i=e.lake}));var s=[];o.map((function(e){return s=e.regions.split(",")}));var l="";return e.map((function(e){var o=void 0!==(l=n.find((function(e){return e.name===t})))?l.unit:"",c=void 0!==l?l.title:"";if(e.name&&"ALL"!==e.name){var u=new y.a.Feature({geometry:new y.a.geom.Point([e.geometry.coordinates[0],e.geometry.coordinates[1]]).transform("EPSG:4326","EPSG:3857")}),p="",d="",f="n/a";if(e.hasOwnProperty("trends"))if(null===e.trends)p="noTrend";else{if(r.indexOf(t)>=0)if(i.indexOf(e.properties.region)>=0)for(var m=0;m<s.length;m++)x(s[m],e)&&(f=D(s[m],e,t));else f=D(e.properties.region,e,t);p="n/a"===f?e.trends.percentage_change>0?"trendUp":e.trends.percentage_change<0?"trendDown":"noTrend":e.trends.percentage_change>0&&e.trends.last_average>=f?"overThresholdUp":e.trends.percentage_change>0&&e.trends.last_average<f?"trendUp":e.trends.percentage_change<0&&e.trends.last_average<f?"trendDown":e.trends.percentage_change<0&&e.trends.last_average>f?"overThresholdDown":"noTrend",d=[Number(e.trends.total_average).toFixed(2)+" "+o,Number(e.trends.interval_average).toFixed(2)+" "+o,Number(e.trends.last_average).toFixed(2)+" "+o,new Date(e.trend_end_time).toLocaleDateString(),Number(e.trends.percentage_change).toFixed(2)+" %"]}"trendUp"===p?u.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(p)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"trendDown"===p?u.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(p)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"overThresholdUp"===p?u.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(p)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"overThresholdDown"===p?u.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(p)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"noTrend"!==p&&""!==p||u.setStyle(new y.a.style.Style({image:new y.a.style.Circle({radius:6,fill:new y.a.style.Fill({color:Object(v.tb)(p)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}));var h=[];e.parameters&&e.parameters.length>0&&e.parameters.filter((function(e){return null!==e})).map((function(e){var t=n.find((function(t){return t.name===e}));void 0!==t&&void 0!==t.title&&h.push(t.title)})),u.attributes={dataSource:Object(v.ob)(e.properties.type),maxEndTime:e.max_end_time,minStartTime:e.min_start_time,latitude:e.geometry.coordinates[1],longitude:e.geometry.coordinates[0],location:e.properties.region,name:e.name,parameters:h,color:Object(v.v)(e.properties.type.id),trend_color:Object(v.tb)(p),trend_type:p,trend_values:d,display_trends:!0,trends_detail:!0,region:Object(v.z)(e.properties.region),trend_parameter:c};var b=I(e);u.setId(b),a.push(u)}})),a}function B(e,t,r,n,a){var o=Array(),i=Object(v.yb)(),s=[];i.map((function(e){return s=e.lake}));var l=[];i.map((function(e){return l=e.regions.split(",")}));var c=a.find((function(e){return e.name===t}));return e.map((function(e){if("ALL"!==e.name){var a=new y.a.Feature({geometry:new y.a.geom.Point([e.geometry.coordinates[0],e.geometry.coordinates[1]]).transform("EPSG:4326","EPSG:3857")}),i="",u="",p="n/a";if(e.hasOwnProperty("region_trends")){var d=e.region_trends.tenyearsaverage,f=e.region_trends.totalaverage,m=e.region_trends.lastaverage;if(null===e.trends)i="noTrend";else{if(n.indexOf(t)>=0)if(s.indexOf(e.properties.region)>=0)for(var h=0;h<l.length;h++)x(l[h],e)&&(p=D(l[h],e,t));else p=D(e.properties.region,e,t);i="n/a"===p?d>f?"trendUp":d<f?"trendDown":"noTrend":d>f&&d>=p?"overThresholdUp":d>f&&d<p?"trendUp":d<f&&d<p?"trendDown":d<f&&d>p?"overThresholdDown":"noTrend"}var b=void 0!==c?c.unit:"",g=(Number(d)-Number(f))/Number(f)100;u=[Number(f).toFixed(2)+" "+b,Number(d).toFixed(2)+" "+b,Number(m).toFixed(2)+" "+b,Number(g).toFixed(2)+"%"]}"trendUp"===i?a.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"trendDown"===i?a.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"overThresholdUp"===i?a.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"overThresholdDown"===i?a.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"noTrend"!==i&&""!==i||a.setStyle(new y.a.style.Style({image:new y.a.style.Circle({radius:6,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}));var =void 0!==c?c.title:"";a.attributes={dataSource:Object(v.ob)(e.properties.type),latitude:e.geometry.coordinates[1],longitude:e.geometry.coordinates[0],location:e.properties.region,name:e.name,color:Object(v.v)(e.properties.type.id),trend_color:Object(v.tb)(i),trend_type:i,trend_values:u,display_trends:!0,trends_detail:!0,region:Object(v.z)(e.properties.region),parameter:,url_parameter:t,season:r};var w=I(e);a.setId(w),o.push(a)}})),o}function F(e,t,r,n){var a=Array();return e.map((function(e){if(e.name&&"ALL"!==e.name){var o=new y.a.Feature({geometry:new y.a.geom.Point([e.geometry.coordinates[0],e.geometry.coordinates[1]]).transform("EPSG:4326","EPSG:3857")}),i="",s="";if(e.hasOwnProperty("trends"))if(null===e.trends)i="noTrend",s=[r,"null","null","null",new Date(e.trend_end_time).toLocaleDateString(),"null"];else{i=e.trends.percentage_change>0&&e.trends.last_average>=r?"overThresholdUp":e.trends.percentage_change>0&&e.trends.last_average<r?"trendUp":e.trends.percentage_change<0&&e.trends.last_average<r?"trendDown":e.trends.percentage_change<0&&e.trends.last_average>r?"overThresholdDown":"noTrend";var l=n.find((function(e){return e.name===t})),c=void 0!==l?l.unit:"";s=[Number(e.trends.total_average).toFixed(2)+" "+c,Number(e.trends.interval_average).toFixed(2)+" "+c,Number(e.trends.last_average).toFixed(2)+" "+c,new Date(e.trend_end_time).toLocaleDateString(),Number(e.trends.percentage_change).toFixed(2)+" %"]}"trendUp"===i?o.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"trendDown"===i?o.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"overThresholdUp"===i?o.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"overThresholdDown"===i?o.setStyle(new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})):"noTrend"!==i&&""!==i||o.setStyle(new y.a.style.Style({image:new y.a.style.Circle({radius:6,fill:new y.a.style.Fill({color:Object(v.tb)(i)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}));var u=[];e.parameters&&e.parameters.length>0&&e.parameters.filter((function(e){return null!==e})).map((function(e){var t=n.find((function(t){return t.name===e}));void 0!==t&&void 0!==t.title&&u.push(t.title)})),o.attributes={dataSource:Object(v.ob)(e.properties.type),maxEndTime:e.max_end_time,minStartTime:e.min_start_time,latitude:e.geometry.coordinates[1],longitude:e.geometry.coordinates[0],location:e.properties.region,name:e.name,parameters:u,color:Object(v.v)(e.properties.type.id),trend_color:Object(v.tb)(i),trend_type:i,trend_values:s,display_trends:!0,trends_detail:!0,region:Object(v.z)(e.properties.region)};var p=I(e);o.setId(p),a.push(o)}})),a}function M(e,t,r){var n=Array();return e.map((function(e){if("epa"===e.properties.type.id){var t=new y.a.Feature({geometry:new y.a.geom.Point([e.geometry.coordinates[0],e.geometry.coordinates[1]]).transform("EPSG:4326","EPSG:3857")});t.attributes={name:e.name,color:Object(v.v)(e.properties.type.id)};var r=I(e);t.setId(r),n.push(t)}})),n}function G(e,t){var r=e.get("features")[0].getGeometry().getCoordinates(),n=t.getPixelFromCoordinate(r),a=function(e,t){var r=20;screen.width<=Object(v.fb)()&&(r=100);for(var n=2Math.PI,a=n/12,o=r(2+e)/n,i=n/e,s=[],l=e-1;l>=0;l--){var c=a+li;s[l]=[t[0]+oMath.cos(c),t[1]+oMath.sin(c)]}return s}(e.get("features").length,n),o=new y.a.geom.MultiLineString([]),i=new y.a.layer.Vector({source:new y.a.source.Vector({features:[new y.a.Feature({geometry:o})]}),style:[new y.a.style.Style({stroke:new y.a.style.Stroke({width:1,color:[128,128,128,1]}),zIndex:2})],updateWhileAnimating:!0});i.setZIndex(2);var s=Array();e.get("features").forEach((function(e,n){var i=t.getCoordinateFromPixel(a[n]);o.appendLineString(new y.a.geom.LineString([r,i])),e.setGeometry(new y.a.geom.Point(i)),s.push(e)}));var l=new y.a.source.Vector({features:s}),c=new y.a.layer.Vector({source:l,style:function(e){var t=1;screen.width<=Object(v.fb)()&&(t=4);var r='\t';return new y.a.style.Style({image:new y.a.style.Icon({anchor:[.5,1],src:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r),imgSize:[15,25],scale:t})})}});return c.setZIndex(2),[i,c]}function V(){var e=document.getElementById("about-this-data");e&&(e.innerHTML="
All trend calculations are utilizing the delta between the 10 year average minus the lifetime average over the lifetime average to calculate the trending direction. Even though this information provides a good indication towards the stability of the lake environment, it should not be used as a definitive indication and only predictor.

Trends based on sensor data are calculated using the average parameter value in the top two meters of the water column. Depth profiles for the entire water column can be found at the explore data link.
".toString())}function U(){return new y.a.Attribution({html:Object(v.Z)()})}function W(){return y.a.control.defaults({attributionOptions:{collapsible:Object(v.Y)()}})}function q(){return y.a.control.defaults({attributionOptions:{collapsible:Object(v.ab)()}})}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a Symbol.iterator method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z(e,t){var r=document.getElementById("addButton");r&&r.addEventListener("click",(function(){d()}));var n=document.getElementsByClassName("drawing_buttons"),a=document.getElementById("draw");a&&a.addEventListener("click",p);var o=document.getElementById("all");o&&o.addEventListener("click",f);var i=document.getElementsByName("location");if(i)for(var s=0;s<i.length;s++)!0===i[s].checked&&c();var l=document.getElementById("allLocations");function c(){e.getInteractions().forEach((function(t){t instanceof y.a.interaction.Draw&&e.removeInteraction(t)})),e.getLayers().forEach((function(e){"drawing_layer"===e.get("name")&&e.getSource().clear()}))}function u(){c()}function p(){if(n)for(var e=0;e<n.length;e++)n[e].style.visibility="visible"}function d(){if(n)for(var t=0;t<n.length;t++)n[t].style.visibility="hidden";e.getInteractions().forEach((function(t){t instanceof y.a.interaction.Draw&&e.removeInteraction(t)}))}function f(){u(),d()}if(l&&!0===l.checked&&c(),t)a&&o&&(!1===o.checked&&!1===a.checked&&f(),!0===o.checked&&f(),!0===a.checked&&p());else{a&&(a.checked?p():(e.getInteractions().forEach((function(t){t instanceof y.a.interaction.Draw&&e.removeInteraction(t)})),d()));var m=document.getElementById("filters-div");m&&m.children.length<=1&&(d(),u()),document.getElementById("locations")||(d(),u())}}function Y(e,t,r){var n=document.getElementById("centerButton"),a=function(){console.log(t),e.fit(t.getExtent(),r.getSize())};n?(n.addEventListener("click",a,!1),n.addEventListener("touchstart",a,!1)):console.log("cannot find button")}function Q(e,t,r,n,a,o,i,s,l,c,u,p,d){var f,m,h,b,g=n,v=a,
=[],w=[];"square"===e&&(b=y.a.interaction.Draw.createRegularPolygon(t));var E=function(){f=new y.a.interaction.Draw({type:r,source:o,geometryFunction:b}),X(l,c),u.addInteraction(f),f.on("drawstart",(function(){p.setActive(!1),i=[]})),f.on("drawend",(function(t){var r=H(function(e,t,r,n,a,o){e.getSource().clear(),t.setActive(!0),r.getInteractions().forEach((function(e){e instanceof y.a.interaction.Draw&&r.removeInteraction(e)}));for(var i,s=o.feature.getGeometry(),l=a.getSource().getFeatures(),c=0;c<l.length;c++)i=l[c].getGeometry().getExtent(),s.intersectsExtent(i)&&n.push(l[c]);var u=[];if(n.length>0)for(var p=0;p<n.length;p++)for(var d=n[p].get("features"),f=0;f<d.length;f++){var m=d[f].attributes.name;u.includes(m.toString())||u.push(m)}return[s,u]}(l,p,u,i,s,t),2);if(h=r[0],d=r[1],
=h.getExtent(),"circle"===e){var n=u.getView().getProjection().getUnits(),a=h.getCenter(),o=h.getRadius()*y.a.proj.METERS_PER_UNIT[n]/1e3;w=[a.concat(o)]}else w=h.getCoordinates();c(d,w),u.getView().fit(
,u.getSize())}))};return v&&g&&(g.addEventListener("click",E,!1),g.addEventListener("touchstart",E,!1),v.className+=" ol-unselectable ol-control",v.appendChild(g)),m=new y.a.control.Control({element:v}),[
,m]}function X(e,t){e.getSource().clear();var r=[];r[0]="reset_points";t(r,[]);var n=document.getElementById("draw");n&&n.click()}var J=r(35),K=r(1);function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a Symbol.iterator method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=se(e);if(t){var a=se(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return oe(this,r)}}function oe(e,t){if(t&&("object"===$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}function le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(87);var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(i,e);var t,r,n,o=ae(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),le(ie(t=o.call(this,e)),"centerButton",void 0),le(ie(t),"ol_centercontrol",void 0),le(ie(t),"drawCircleButton",void 0),le(ie(t),"ol_drawcirclecontrol",void 0),le(ie(t),"drawCustomButton",void 0),le(ie(t),"ol_drawsquarecontrol",void 0),le(ie(t),"drawSquareButton",void 0),le(ie(t),"ol_drawcustomcontrol",void 0),le(ie(t),"drawClearButton",void 0),le(ie(t),"ol_drawclearcontrol",void 0),le(ie(t),"state",void 0),t.state={center:Object(v.Fb)(),vectorSource:new y.a.source.Vector,clusterSource:new y.a.source.Cluster({distance:60,source:new y.a.source.Vector}),customLocationFilterVectorExtent:[],currentZoom:5.5,maxZoom:Object(v.Ib)(),map:new y.a.Map({view:new y.a.View({center:[0,0],zoom:1}),layers:[new y.a.layer.Tile({source:new y.a.source.OSM})],target:"map"})},t}return t=i,(r=[{key:"render",value:function(){var e=this;return a.a.createElement("div",null,a.a.createElement("div",{id:"map",className:g.a.root}," "),a.a.createElement("div",{style:{display:"none"}},a.a.createElement("div",{id:"marker",title:"Marker",className:"marker"}," "),a.a.createElement("div",{id:"popup",className:g.a.olPopup},a.a.createElement("a",{href:"#",id:"popup-closer",className:g.a.olPopupCloser},a.a.createElement(K.Icon,{name:"close"})),a.a.createElement("div",{id:"popup-content"}," ")),a.a.createElement("div",{id:"ol-centercontrol",className:g.a.olCenterButton,ref:function(t){e.ol_centercontrol=t}}),a.a.createElement("button",{id:"centerButton",title:"Click to Center the Map",ref:function(t){e.centerButton=t}},a.a.createElement(K.Icon,{name:"gps_fixed"})),a.a.createElement("div",{id:"ol-drawcirclecontrol",className:g.a.olDrawCircleButton+" "+g.a.olSharedDrawStyles+" drawing_buttons",ref:function(t){e.ol_drawcirclecontrol=t}}),a.a.createElement("button",{id:"drawCircleButton",title:"Click to Draw a Circle",ref:function(t){e.drawCircleButton=t}},a.a.createElement(K.Icon,{name:"panorama_fish_eye"})),a.a.createElement("div",{id:"ol-drawsquarecontrol",className:g.a.olDrawSquareButton+" "+g.a.olSharedDrawStyles+" drawing_buttons",ref:function(t){e.ol_drawsquarecontrol=t}}),a.a.createElement("button",{id:"drawSquareButton",title:"Click to Draw a Square",ref:function(t){e.drawSquareButton=t}},a.a.createElement(K.Icon,{name:"crop_square"})),a.a.createElement("div",{id:"ol-drawcustomcontrol",className:g.a.olDrawCustomButton+" "+g.a.olSharedDrawStyles+" drawing_buttons",ref:function(t){e.ol_drawcustomcontrol=t}}),a.a.createElement("button",{id:"drawCustomButton",title:"Click to Draw a Custom Shape",ref:function(t){e.drawCustomButton=t}},a.a.createElement(K.Icon,{name:"star_border"})),a.a.createElement("div",{id:"ol-drawclearcontrol",className:g.a.olDrawClearButton+" "+g.a.olSharedDrawStyles+" drawing_buttons",ref:function(t){e.ol_drawclearcontrol=t}}),a.a.createElement("button",{id:"drawClearButton",title:"Click to Reset Drawing Selection",ref:function(t){e.drawClearButton=t}},a.a.createElement(K.Icon,{name:"clear"}))))}},{key:"componentDidUpdate",value:function(){var e,t,r=this.props,n=r.features,a=r.disableClusters,o=r.mapDidUpdate;void 0!==this.state.map.getSize()&&(o(this.state.map,this.state.customLocationFilterVectorExtent),e=this.state.map,t=a?0:Object(v.u)(),e.getLayers().getArray().slice().map((function(e){"clusters_layer"===e.get("name")&&e.getSource().setDistance(t)}))),this.state.clusterSource.clear(),this.state.clusterSource.addFeatures(n),this.state.vectorSource.clear(),this.state.vectorSource.addFeatures(n)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getCluster,r=e.mapDidMount,n=e.customLayers;r&&r(this.state.map,this.state.customLocationFilterVectorExtent);var a=new y.a.source.Cluster({projection:"EPSG:3857",distance:Object(v.u)(),source:this.state.vectorSource});this.setState({clusterSource:a});var o=t(a);o.setZIndex(1);var i,s,l=new y.a.source.Vector,c=new y.a.layer.Vector({source:l,name:"drawing_layer"}),u=[new y.a.layer.Tile({source:new y.a.source.XYZ({attributions:U(),url:Object(v.bb)()})}),o,c],p=document.getElementById("popup"),d=document.getElementById("popup-closer"),f=new y.a.Overlay({id:"marker",element:p,autoPan:!0,autoPanAnimation:{duration:250}}),m=new y.a.View({projection:"EPSG:3857",center:y.a.proj.fromLonLat(this.state.center),zoom:this.state.currentZoom,minZoom:Object(v.Jb)(),maxZoom:this.state.maxZoom}),h=this;d&&(d.onclick=function(){return h.props.onMapSingleClick(i),Object(J.f)(i),!1});var b,g,
,w,E=this.centerButton,S=this.ol_centercontrol,O=function(){m.fit(h.state.vectorSource.getExtent(),h.state.map.getSize()),Object(J.f)(i)};E&&S&&(E.addEventListener("click",O,!1),E.addEventListener("touchstart",O,!1),S.className+=" ol-unselectable ol-control",S.appendChild(E),s=new y.a.control.Control({element:S}));var j,C=[];i=new y.a.Map({target:"map",layers:u,view:m,overlays:[f],controls:W()});var k=new y.a.interaction.Select({layers:[c]});i.addInteraction(k),h.setState({customLocationFilterVectorExtent:[]});var P=ee(function(e,t,r,n,a){var o=e,i=t,s=function(){r.getInteractions().forEach((function(e){e instanceof y.a.interaction.Draw&&r.removeInteraction(e)})),X(n,a)};return i&&o&&(o.addEventListener("click",s,!1),o.addEventListener("touchstart",s,!1),i.className+=" ol-unselectable ol-control",i.appendChild(o)),[[],new y.a.control.Control({element:i})]}(this.drawClearButton,this.ol_drawclearcontrol,i,c,this.props.selectShapeLocation),2);j=P[0],b=P[1],h.setState({customLocationFilterVectorExtent:j}),h.setState({customLocationFilterVectorExtent:[]});var x=ee(Q("circle",0,"Circle",this.drawCircleButton,this.ol_drawcirclecontrol,l,C,o,c,this.props.selectShapeLocation,i,k,""),2);j=x[0],g=x[1],h.setState({customLocationFilterVectorExtent:j}),h.setState({customLocationFilterVectorExtent:[]});var T=ee(Q("square",4,"Circle",this.drawSquareButton,this.ol_drawsquarecontrol,l,C,o,c,this.props.selectShapeLocation,i,k,""),2);j=T[0],
=T[1],h.setState({customLocationFilterVectorExtent:j}),h.setState({customLocationFilterVectorExtent:[]});var R=ee(Q("custom",4,"Polygon",this.drawCustomButton,this.ol_drawcustomcontrol,l,C,o,c,this.props.selectShapeLocation,i,k,""),2);j=R[0],w=R[1],h.setState({customLocationFilterVectorExtent:j}),i.addControl(s),i.addControl(b),i.addControl(
),i.addControl(g),i.addControl(w),i.getView().on("change:resolution",(function(e){h.props.onMapChangeResolution(i,e)})),i.on("singleclick",(function(e){Object(J.f)(i),k.setActive(!1),h.props.onMapSingleClick(i,e)})),i.on("pointerdrag",(function(e){Object(J.f)(i),h.props.onMapSingleClick(i,e,!0)})),n&&n.map((function(e){return i.addLayer(e)})),this.setState({map:i})}}])&&re(t.prototype,r),n&&re(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function de(e,t){return(de=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ye(e);if(t){var a=ye(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return me(this,r)}}function me(e,t){if(t&&("object"===ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return he(e)}function he(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(87);var ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(i,e);var t,r,n,o=fe(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),be(he(t=o.call(this,e)),"state",void 0),be(he(t),"selectShapeLocation",(function(e,r){(0,t.props.onSelectShapeLocation)(e,r)})),be(he(t),"displayOverlappingMarkers",(function(e,r){var n=G(e,r),a=n[0],o=n[1];r.addLayer(o),r.addLayer(a),t.setState({expandedClusterLayer:o,multiLineLayer:a,expandedCluster:!0})})),be(he(t),"removeSpiderfiedClusterLayers",(function(e){e.removeLayer(t.state.expandedClusterLayer),e.removeLayer(t.state.multiLineLayer)})),be(he(t),"popupHandler",(function(e,r){var n=he(t),a=e.getOverlayById("marker");if(void 0!==r){var o=e.forEachFeatureAtPixel(r.pixel,(function(e){return e})),i=!0;if(o&&o.attributes&&"single"===o.attributes.type)n.popupHandleHelper(o,r.coordinate,a),i=!1;else if(o&&void 0!==o.get("features")&&1===o.get("features").length){var s=o.get("features")[0];n.popupHandleHelper(s,r.coordinate,a)}else o&&void 0!==o.get("features")&&o.get("features").length>1?(n.state.expandedCluster&&n.removeSpiderfiedClusterLayers(e),n.displayOverlappingMarkers(o,e,n),i=!1):Object(J.f)(e);i&&n.state.expandedCluster&&n.removeSpiderfiedClusterLayers(e)}})),be(he(t),"popupHandleHelper",(function(e,t,r){var n=document.getElementById("popup-content");if(e&&e.getId()){var a=Object(J.b)(e,g.a)+Object(J.c)(e,g.a);n&&(n.innerHTML=a),r.setPosition(t)}})),be(he(t),"mapDidUpdate",(function(e,r){var n=t.props,a=n.drawn_sensors,o=n.selectedLocation,i=n.shapeCoordinates;Z(e,!1,t.selectShapeLocation.bind(he(t)));var s=Object(v.x)(o),l=new y.a.Feature;s&&s.geometry&&(l=new y.a.Feature({geometry:new y.a.geom.Polygon(s.geometry.coordinates).transform("EPSG:4326","EPSG:3857")})),t.state.areaPolygonSource.clear(),t.state.areaPolygonSource.addFeatures([l]);var c=t.getFeature();if(r.length>0&&"Custom Location"===o){if(!t.state.expandedCluster&&(i.length>0&&e.getView().fit(r,e.getSize()),0===a.length)){var u=new y.a.source.Vector({features:c});e.getView().fit(u.getExtent(),e.getSize())}}else if(c.length>0&&!t.state.expandedCluster){var p=new y.a.source.Vector({features:c});e.getView().fit(p.getExtent(),e.getSize())}})),be(he(t),"getFeature",(function(){var e=t.props,r=e.parameters,n=e.sensors,a=e.showSensors,o=[];return n.map((function(e){a.includes(e.id)&&o.push(e)})),A(a?o:n,r)})),be(he(t),"getCluster",(function(e){return new y.a.layer.Vector({source:e,name:"clusters_layer",style:function(e){var t,r=e.get("features").length;if(r>1){var n=20,a="14px sans-serif";screen.width<=Object(v.fb)()&&(n=20,a="20px sans-serif"),t=new y.a.style.Style({image:new y.a.style.Circle({radius:n,stroke:new y.a.style.Stroke({color:"#fff"}),fill:new y.a.style.Fill({color:"#3399CC"})}),text:new y.a.style.Text({text:r.toString(),fill:new y.a.style.Fill({color:"#fff"}),font:a})})}else{var o='\t',i=1;screen.width<=Object(v.fb)()&&(i=2),t=new y.a.style.Style({image:new y.a.style.Icon({anchor:[.5,1],src:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),scale:i})})}return t}})})),be(he(t),"onChangeZoom",(function(e){var r=he(t);Object(J.f)(e),r.state.expandedCluster&&r.removeSpiderfiedClusterLayers(e)})),be(he(t),"getCustomLayers",(function(){return[new y.a.layer.Vector({id:"areaPolygon",source:t.state.areaPolygonSource,style:[new y.a.style.Style({stroke:new y.a.style.Stroke({color:"rgba(0, 152, 254, 1)",width:2}),fill:new y.a.style.Fill({color:"rgba(254, 254, 254, 0.3)"})})]})]})),t.state={multiLineLayer:new y.a.layer.Vector,multiLineString:new y.a.geom.MultiLineString,expandedClusterLayer:new y.a.layer.Vector,areaPolygonSource:new y.a.source.Vector,expandedCluster:!1,customLocationFilterVectorExtent:[]},t}return t=i,(r=[{key:"componentWillMount",value:function(){var e=new y.a.source.Vector({features:[new y.a.Feature({})]});this.setState({areaPolygonSource:e})}},{key:"render",value:function(){var e=this.props.disable_clusters;return a.a.createElement("div",null,a.a.createElement(ce,{features:this.getFeature(),customLayers:this.getCustomLayers(),getCluster:this.getCluster,selectShapeLocation:this.selectShapeLocation,onMapSingleClick:this.popupHandler,onMapChangeResolution:this.onChangeZoom,mapDidUpdate:this.mapDidUpdate,disableClusters:e}))}}])&&pe(t.prototype,r),n&&pe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),ve="CLEAR_SENSORS",e="CLEAR_TRENDS_SENSORS";function we(e,t){return function(r){r({type:"RECEIVE_SENSORS",api:e,sensors:t,available_sensors:t,receivedAt:Date.now()}),r(Le()),r((function(e,t){e({type:"SET_TRENDS_SENSORS",sensors:t().sensors.data})})),r((function(e){e({type:"SET_AVAILABLE_LAYERS"})})),r(Ze())}}function Ee(e){return function(t){t({type:"RECEIVE_SENSOR",sensor_data:e})}}function Se(e,t,r){return function(n){n({type:"UPDATE_DETAIL",id:e,name:t,coordinates:r})}}function Oe(e){return function(t,r){var n=r().searchFilters.selected;t({type:"ADD_SEARCH_PARAMETER",parameter:e,selected_filters:n}),t(Be(n.indexOf("parameters")))}}function je(e,t,r){return function(n,a){var o,i=a(),s=ke(a).api,l=s+"/api/cache/analysis?parameter="+e+"&baseline_years="+t+"&rolling_years="+r,c=(o=i.chosenTrends.trends_sensors.length>0?i.chosenTrends.trends_sensors:i.sensors.data).filter((function(t){return t.parameters.includes(e)})),u=c.length;n({type:He,number_to_filter:u}),n({type:"RESET_TRENDS_SENSORS"});var p=[];c.map((function(e){p.push("&sensor_id="+e.id)})),p=p.sort();for(var d=[],f=[],m=[],h=0;h<=u;h+=100){l=s+"/api/cache/analysis?parameter="+e+"&baseline_years="+t+"&rolling_years="+r,[];var y=h+100;l+=p.slice(h,y).join(""),m.push(l)}var b=m.map((function(e){return fetch(e).then((function(e){return e.json()})).then((function(e){var r;e&&Object.keys(e).length>0&&e.trends.map((function(e){r=e.diff>=t?e.properties:null,d=d.concat({data:r,trend_start_time:e.first_year,trend_end_time:e.last_time,sensor:e.sensor}),f.concat(d)}))})).catch((function(t){console.log(t),console.log(e)}))}));Promise.all(b).then((function(t){return n({type:"ADD_CHOOSE_ANALYSIS",sensors_trends:d,parameter:e,sensorsToFilter:o})}))}}function Ce(e,t,r,n){return function(t,r){r();var a=ke(r).api,o=n,i=a+"/api/cache/trends?parameter="+e+"&season="+o,s=Object(v.Db)();s.length>0&&s.map((function(e){i+="&source="+e})),t({type:"RESET_TRENDS_SENSORS"});var l=[];fetch(i).then((function(e){return e.json()})).then((function(r){var n;r&&Object.keys(r).length>0&&r.trends.map((function(e){n=e.diff>=10?e.properties:null,l=l.concat({data:n,trend_start_time:e.first_year,trend_end_time:e.last_time,sensor:e.sensor})}));return t({type:"ADD_CHOOSE_TRENDS",sensors_trends:l,parameter:e,season:o})})).catch((function(e){console.log(e),console.log(i)}))}}function ke(e){return{api:e().backends.selected}}function Pe(e,t){return function(r,n){var a=ke(n).api+"/api/trends/region/"+e;return fetch(a).then((function(e){return e.json()})).then((function(n){n&&r({type:"ADD_REGION_TRENDS",regions_trends:n.trends,parameter:e,season:t})})).catch((function(n){console.log(n),console.log("Error retrieving trends by region: "+a),r({type:"FAILED_RETRIEVING_REGION_TRENDS",parameter:e,season:t})}))}}function xe(e){return function(t,r){var n=r().searchFilters.selected;t({type:"ADD_SEARCH_DATASOURCE",data_sources:e,selected_filters:n}),t(Be(n.indexOf("data_sources")))}}function Te(e){return function(t,r){var n=r(),a=n.searchFilters.selected,o=n.sensors.available_sensors;t({type:"ADD_START_DATE",date:e,selected_filters:a,availableSensors:o}),t(Be(a.indexOf("time")))}}function Re(e){return function(t,r){var n=r(),a=n.searchFilters.selected,o=n.sensors.available_sensors;t({type:"ADD_END_DATE",date:e,selected_filters:a,availableSensors:o}),t(Be(a.indexOf("time")))}}function Ne(e){return function(t,r){var n=r().searchFilters.selected;t({type:"ADD_SEARCH_LOCATION",location:e,selected_filters:n}),t(Be(n.indexOf("locations")))}}function De(e){return function(t,r){var n=r().searchFilters.selected;t({type:"ADD_SEARCH_ONLINE",online:e,selected_filters:n}),t(Be(n.indexOf("online")))}}function Ie(e){return function(t,r){var n=r(),a=n.searchFilters.selected,o=n.sensors.available_sensors;t({type:"ADD_SPAN_START",span:e,selected_filters:a,availableSensors:o}),t(Be(a.indexOf("span")))}}function Ae(e){return function(t,r){var n=r(),a=n.searchFilters.selected,o=n.sensors.available_sensors;t({type:"ADD_SPAN_END",span:e,selected_filters:a,availableSensors:o}),t(Be(a.indexOf("span")))}}function Le(){return function(e,t){var r=t(),n=r.searchFilters.selected,a=r.selectedSearch,o=r.sensors.available_sensors;e({type:"UPDATE_AVAILABLE_FILTERS",selected_filters:n,selected_search:a,allFilters:r.searchFilters.filters,searchParameters:r.parameters.search,multiParameterMap:r.parameters.multi_parameter_map,sensors:o})}}function Be(e){return function(t,r){r().searchFilters.selected.length>e+1&&t({type:"DELETE_FILTERS_AFTER",idx:e});var n=r(),a=n.searchFilters.selected,o=n.selectedSearch;t({type:"UPDATE_AVAILABLE_SENSORS",multi_parameter_map:n.parameters.multi_parameter_map,selected_filters:a,selected_search:o})}}function Fe(e,t,r){return{type:"SELECT_SENSOR",id:e,name:t,coordinates:r}}function Me(e){return function(t){return t(function(e){return{type:"REQUEST_SENSORS",api:e}}(e)),fetch(e+"/api/sensors").then((function(e){return e.json()})).then((function(r){t(we(e,r.sensors))})).then(t(Be(-1))).then(t((function(e){e({type:"SET_REGIONS_SENSORS"})}))).then(t((function(e,t){var r=ke(t).api+"/api/parameters";return fetch(r).then((function(e){return e.json()})).then((function(t){return e({type:"RECEIVE_PARAMETERS",parameters:t.parameters,categories:t.categories,mappings:t.mappings})})).then((function(r){var n=t();e({type:"RECEIVE_MULTI_PARAMETERS",parameters:n.parameters,multi_parameter_map:n.parameters.multi_parameter_map})})).catch((function(t){console.log("An ERROR occurred! "+t),e({type:"FAILED_RECEIVE_PARAMETERS"})}))}))).catch((function(e){console.log("An ERROR occurred! "+e),t((function(e,t){e({type:"SWITCH_BACKEND_ERROR",fetched_api:t().sensors.api}),e({type:ve}),e({type:e})}))}))}}function Ge(e,t,r,n){return function(e,a){var o=ke(a).api+"/api/cache/"+r+"/"+t+n;return fetch(o).then((function(e){return e.json()})).then((function(t){e(Ee(t))}))}}function Ve(e,t,r,n){return function(a,o){var i=o(),s=ke(o),l="";if(void 0!==r&&(l+="?since="+r.toISOString(),void 0!==n&&(l+="&until="+n.toISOString())),i.sensors.length>0){var c=i.sensors.data.find((function(t){return t.name===e})).id;a(Se(c.id,c.name,c.geometry.coordinates.slice(0,2))),a(Ge(s.api,c.id,t,l))}else{var u=s.api+"/api/sensors";fetch(u).then((function(e){return e.json()})).then((function(r){var n=r.sensors.find((function(t){return t.name===e}));return console.log(n.id),a(Se(n.id,n.name,n.geometry.coordinates.slice(0,2))),fetch(s.api+"/api/cache/"+t+"/"+n.id+l)})).then((function(e){return e.json()})).then((function(e){a(Ee(e))}))}}}function Ue(e,t){return function(r,n){var a=n(),o=(a.chosenTrends.baseline_total_year,a.chosenTrends.rolling_interval,a.chosenTrends.season),i=a.chosenTrends.parameter;r({type:"SELECT_TRENDS_REGION",region:e}),r(We(t)),""!==i&&("by-sensors"===t&&r(Ce(i,0,0,o)),"by-regions"===t&&r(Pe(i,o)))}}function We(e){return function(t){t({type:"UPDATE_TRENDS_SENSORS",view_type:e})}}var qe="SELECT_TRENDS_VIEW_TYPE";var He="ADD_ANALYSIS_COUNT";function ze(e){return function(t,r){var n=r().chosenTrends.sensors;t({type:"FETCH_ANALYSIS_REGION",region:e,sensors:n})}}function Ze(){return function(e,t){var r=t();e({type:"INITIALIZE_EXPLORE_DATASOURCES",explore_filtering:r.exploreFiltering,sensors:r.sensors.data})}}function Ye(e){return function(t){t({type:"UPDATE_EXPLORE_DATASOURCE",data_sources:e}),t((function(e,t){e({type:"UPDATE_EXPLORE_SENSORS",explore_filtering:t().exploreFiltering})}))}}var Qe=Object(s.connect)((function(e){return{sensors:e.sensors.data,drawn_sensors:e.sensors.draw_available_sensors,selectedLocation:e.selectedSearch.locations.selected,shapeCoordinates:e.sensors.shape_coordinates,parameters:e.parameters.search,showSensors:e.sensors.search_sensors}}),(function(e){return{onSelectShapeLocation:function(t,r){e(function(e,t){return function(r){r({type:"ADD_CUSTOM_LOCATION_FILTER",selectedPointsLocations:e,shapeCoordinates:t})}}(t,r))}}}))(ge),Xe=r(6),Je=r.n(Xe),Ke=r(152),$e=r.n(Ke);function et(e){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rt(e,t){return(rt=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=it(e);if(t){var a=it(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return at(this,r)}}function at(e,t){if(t&&("object"===et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ot(e)}function ot(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var st=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}(i,e);var t,r,n,o=nt(i);function i(e){var t,r,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),r=ot(t),a=void 0,(n="state")in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,t.state={loading_time:0,setInterval_time:0},t}return t=i,(r=[{key:"render",value:function(){var e=this,t="",r=a.a.createElement("div",{className:u.a.loading_text},t);if(this.props.loading_time_text){var n=setInterval((function(){e.state.setInterval_time<=Object(v.W)()&&(e.state.setInterval_time=e.state.setInterval_time+1e3,e.state.loading_time=e.state.setInterval_time)}),this.state.loading_time);this.state.loading_time<1e4?r=a.a.createElement("div",{className:u.a.loading_text},t):("1"!==this.state.loading_time.toString().charAt(0)&&"4"!==this.state.loading_time.toString().charAt(0)&&"7"!==this.state.loading_time.toString().charAt(0)||(t="...LOADING..."),"2"!==this.state.loading_time.toString().charAt(0)&&"5"!==this.state.loading_time.toString().charAt(0)&&"8"!==this.state.loading_time.toString().charAt(0)||(t="LOADING......"),"3"!==this.state.loading_time.toString().charAt(0)&&"6"!==this.state.loading_time.toString().charAt(0)&&"9"!==this.state.loading_time.toString().charAt(0)||(t="......LOADING"),r=a.a.createElement("div",{className:u.a.loading_text+" "+u.a.loading_text_background},t)),this.state.setInterval_time>=Object(v.W)()&&clearInterval(n)}return a.a.createElement("div",null,a.a.createElement("div",{className:u.a.make_modal},r,a.a.createElement("div",{className:u.a.loading_spinner})))}}])&&tt(t.prototype,r),n&&tt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function lt(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=Object(v.T)();return new Promise((function(o){var i=setInterval((function(){var s=!0;n?(s=Object.keys(e[n]).length>2,r=e[n]):(s=!0,r=e),void 0!==e&&s||a>=Object(v.W)()?(clearInterval(i),o(r),t||o([]),0):a+=1e3}),a)}))}function ct(e){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ut(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pt(e,t){return(pt=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ht(e);if(t){var a=ht(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ft(this,r)}}function ft(e,t){if(t&&("object"===ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mt(e)}function mt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pt(e,t)}(i,e);var t,r,n,o=dt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),yt(mt(t=o.call(this,e)),"state",void 0),yt(mt(t),"handleOpenPermalink",(function(){t.setState({loading:!0}),t.countDatapoints().then((function(e){if(t.setState({loading:!1,numDatapoints:Number(e)}),t.state.numDatapoints<=Object(v.F)()){var r=t.buildLink("csv");t.setState({alertIsOpen:!1,isOpen:!0,link:r})}else t.setState({alertIsOpen:!0,isOpen:!1,error_text:Object(v.A)()})}))})),yt(mt(t),"handleClosePermalink",(function(){t.setState({isOpen:!1})})),yt(mt(t),"buildLink",(function(e){var t,r={};"None"!==e?(r.format=e,t=this.props.api+Object(v.D)()):t=this.props.api+Object(v.E)(),this.props.selectedFilters.indexOf("time")>-1&&null!==this.props.selectedStartDate&&""!==this.props.selectedStartDate&&(r.since=this.props.selectedStartDate.toISOString().slice(0,10),null!==this.props.selectedEndDate&&""!==this.props.selectedEndDate&&(r.until=this.props.selectedEndDate.toISOString().slice(0,10))),this.props.selectedDataSources.length>0&&(r.sources=this.props.selectedDataSources);var n=this.props.multi_parameter_map;if(this.props.selectedParameters.length>0){var a=Object.assign([],this.props.selectedParameters);(Object.keys(n),this.props.selectedParameters).map((function(e){return n[e].map((function(e){a.push(e)}))})),r.attributes=a}if(null!==this.props.selectedLocation){var o=this.props.drawShapeCoordinates;if(1===o.length)r.geocode=o.map((function(e){return[e[1],e[0],e[2]]})).join(",");else if(o.length>1)r.geocode=o[0].map((function(e){return[e[1],e[0]]})).join(",");else{var i=Object(v.x)(this.props.selectedLocation);i&&i.geometry&&(r.geocode=i.geometry.coordinates[0].map((function(e){return[e[1],e[0]]})).join(","))}}var s=O(r);return console.log(s),t+s})),t.state={isOpen:!1,link:"",alertIsOpen:!1,numDatapoints:t.props.numberPoints,loading:!1,loading_time:0,error_text:""},mt(t).handleCloseAlert=t.handleCloseAlert.bind(mt(t)),t}return t=i,(r=[{key:"handleCloseAlert",value:function(){this.setState({alertIsOpen:!1})}},{key:"componentDidUpdate",value:function(e,t){t.numDatapoints!==e.numberPoints&&this.setState({numDatapoints:this.props.numberPoints})}},{key:"countDatapoints",value:function(){var e=this.buildLink("None")+"&onlyCount=true";return this.props.onSelectDownload(e),lt(this.state.numDatapoints,this.props.show_spinner)}},{key:"onDownload",value:function(e){var t=this;this.setState({loading:!0}),this.countDatapoints().then((function(r){if(t.setState({loading:!1,numDatapoints:Number(r)}),t.state.numDatapoints<=Object(v.F)())try{var n=t.buildLink(e);window.open(n)}catch(e){t.setState({alertIsOpen:!0,error_text:Object(v.J)()})}else t.setState({alertIsOpen:!0,error_text:Object(v.A)()})}))}},{key:"render",value:function(){if(this.state.loading)return a.a.createElement("div",null,a.a.createElement(st,{loading_time_text:!0}));var e=this.props.showSensors.length,t=!0;(this.props.selectedParameters.length>0||this.props.selectedDataSources.length>0||null!==this.props.selectedLocation||null!==this.props.selectedStartDate&&""!==this.props.selectedStartDate)&&0!==e&&(t=!1);var r="";return!0===this.state.alertIsOpen&&(r=a.a.createElement(K.Dialog,{open:this.state.alertIsOpen,onClose:this.handleCloseAlert},a.a.createElement(K.DialogHeader,{className:u.a.alertHeader},a.a.createElement(K.DialogTitle,null,a.a.createElement("span",{className:u.a.alertHeaderText},"DOWNLOAD ERROR")),a.a.createElement(K.Icon,{className:u.a.alertHeaderIcon,name:"warning"})),a.a.createElement(K.DialogBody,null,a.a.createElement("span",{className:u.a.alertBodyText},this.state.error_text)),a.a.createElement(K.DialogFooter,null,a.a.createElement(K.Button,{className:u.a.alertButton,onClick:this.handleCloseAlert},"Close")))),a.a.createElement("div",{className:$e.a.bottomSection},r,a.a.createElement(K.Dialog,{open:this.state.isOpen,onClose:this.handleClosePermalink},a.a.createElement(K.DialogHeader,null,a.a.createElement(K.DialogTitle,null,"Permalink")),a.a.createElement(K.DialogBody,{scrollable:!0},a.a.createElement("a",{href:this.state.link})," ",this.state.link),a.a.createElement(K.DialogFooter,null,a.a.createElement(K.Button,{onClick:this.handleClosePermalink}," Close "))),a.a.createElement(K.Button,{raised:!0,disabled:t,className:$e.a.button,onClick:this.onDownload.bind(this,"csv")},"Download"),a.a.createElement(K.Button,{className:$e.a.buttonPermalink,raised:!0,disabled:t,onClick:this.handleOpenPermalink},"Permalink"),a.a.createElement("span",{className:$e.a.counterText},"Sites: ",e))}}])&&ut(t.prototype,r),n&&ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);bt.propTypes={api:Je.a.string.isRequired,selectedStartDate:Je.a.instanceOf(Date),selectedEndDate:Je.a.instanceOf(Date),selectedParameters:Je.a.array,selectedFilters:Je.a.array,showSensors:Je.a.array,selectedLocation:Je.a.string,drawShapeCoordinates:Je.a.array,selectedDataSources:Je.a.array,numberPoints:Je.a.number};var gt=bt,vt=Object(s.connect)((function(e){return{selectedParameters:e.selectedSearch.parameters.selected,selectedDataSources:e.selectedSearch.data_sources.selected,selectedStartDate:e.selectedSearch.dates.selected.start,selectedEndDate:e.selectedSearch.dates.selected.end,selectedLocation:e.selectedSearch.locations.selected,selectedFilters:e.searchFilters.selected,api:e.backends.selected,drawShapeCoordinates:e.sensors.shape_coordinates,showSensors:e.sensors.search_sensors,availableSensors:e.sensors.available_sensors,multi_parameter_map:e.parameters.multi_parameter_map,numberPoints:e.sensors.number_datapoints}}),(function(e){return{onSelectDownload:function(t){e(function(e){return function(t){return fetch(e).then((function(e){return e.json()})).then((function(e){e&&t({type:"COUNT_NUMBER_DATAPOINTS",number_datapoints:e.datapointsLength})})).catch((function(e){console.log("An ERROR occurred! "+e)}))}}(t))}}}))(gt),t=r(27),wt=r.n(t);function Et(e){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pt(e);if(t){var a=Pt(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ct(this,r)}}function Ct(e,t){if(t&&("object"===Et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kt(e)}function kt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)}(i,e);var t,r,n,o=jt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),kt(t=o.call(this,e)).changeStartDate=t.changeStartDate.bind(kt(t)),kt(t).changeEndDate=t.changeEndDate.bind(kt(t)),t}return t=i,(r=[{key:"changeStartDate",value:function(e){var t=new Date(e.target.value.replace(/-/g,"/"));!isNaN(t.getTime())&&(null===this.props.selectedEndDate||t.getTime()<this.props.selectedEndDate.getTime())?this.props.onDateChange(e,t,!0):""===e.target.value&&this.props.onDateChange(e,null,!0)}},{key:"changeEndDate",value:function(e){var t=new Date(e.target.value.replace(/-/g,"/"));!isNaN(t.getTime())&&(null===this.props.selectedStartDate||t.getTime()>this.props.selectedStartDate.getTime())?this.props.onDateChange(e,t,!1):""===e.target.value&&this.props.onDateChange(e,null,!1)}},{key:"render",value:function(){Date.prototype.toDateInputValue=function(){var e=new Date(this);return e.setMinutes(this.getMinutes()-this.getTimezoneOffset()),e.toJSON().slice(0,10)};var e=this.props.availableStartDate.toDateInputValue(),t=this.props.availableEndDate.getTime()>(new Date).getTime()?(new Date).toDateInputValue():this.props.availableEndDate.toDateInputValue(),r=""!==this.props.selectedStartDate&&null!==this.props.selectedStartDate?this.props.selectedStartDate.toDateInputValue():"",n=""!==this.props.selectedEndDate&&null!==this.props.selectedEndDate?this.props.selectedEndDate.toDateInputValue():"",o=""!==this.props.selectedEndDate&&null!==this.props.selectedEndDate?n:t,i=""!==this.props.selectedStartDate&&null!==this.props.selectedStartDate?r:e;return a.a.createElement("div",null,a.a.createElement("h5",null," Start Date"),a.a.createElement("input",{type:"date",id:"startDate","data-filterId":this.props.filterId,min:e,max:o,value:r,onChange:this.changeStartDate}),a.a.createElement("h5",null," End Date"),a.a.createElement("input",{type:"date",id:"endDate","data-filterId":this.props.filterId,min:i,max:t,value:n,onChange:this.changeEndDate}))}}])&&St(t.prototype,r),n&&St(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Tt=Object(s.connect)((function(e,t){return"span"===t.filterType?{selectedStartDate:e.selectedSearch.span.selected.start,selectedEndDate:e.selectedSearch.span.selected.end,availableStartDate:e.selectedSearch.span.available.start,availableEndDate:e.selectedSearch.span.available.end}:{selectedStartDate:e.selectedSearch.dates.selected.start,selectedEndDate:e.selectedSearch.dates.selected.end,availableStartDate:e.selectedSearch.dates.available.start,availableEndDate:e.selectedSearch.dates.available.end}}),(function(e,t){return{onDateChange:function(r,n,a){"span"===t.filterType?e(a?Ie(n):Ae(n)):e(a?Te(n):Re(n))}}}))(xt),Rt=r(182),Nt=r.n(Rt);function Dt(e){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function At(e,t){return(At=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ft(e);if(t){var a=Ft(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Bt(this,r)}}function Bt(e,t){if(t&&("object"===Dt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ft(e){return(Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&At(e,t)}(i,e);var t,r,n,o=Lt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(r=[{key:"handleChange",value:function(e){var t=Object.assign([],this.props.selectedParameters),r=Object.assign([],this.props.selectedDataSources);this.props.onOptionChange(e,t,r)}},{key:"render",value:function(){var e="data_sources"===this.props.name&&this.props.selectedDataSources.indexOf(this.props.id)>-1||"parameters"===this.props.name&&this.props.selectedParameters.indexOf(this.props.id)>-1;return a.a.createElement("div",{className:Nt.a.col},a.a.createElement(K.FormField,{id:this.props.name},a.a.createElement("span",{className:Nt.a.checkboxWidth},a.a.createElement(K.Checkbox,{"data-filterId":this.props.filterId,name:this.props.name,value:this.props.id,onChange:this.handleChange.bind(this),checked:e})),a.a.createElement("label",{className:Nt.a.checkboxLabel}," ",this.props.label)))}}])&&It(t.prototype,r),n&&It(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Gt=Object(s.connect)((function(e){return{selectedParameters:e.selectedSearch.parameters.selected,selectedDataSources:e.selectedSearch.data_sources.selected}}),(function(e){return{onOptionChange:function(t,r,n){var a=t.target.value;if(t.target.checked)"parameters"===t.target.name?(r.push(a),e(Oe(r))):"data_sources"===t.target.name&&(n.push(a),e(xe(n)));else if("parameters"===t.target.name){var o=r.indexOf(a);o>-1&&(r.splice(o,1),e(Oe(r)))}else if("data_sources"===t.target.name){var i=n.indexOf(a);i>-1&&(n.splice(i,1),e(xe(n)))}}}}))(Mt),Vt=r(520);function Ut(e){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Zt(e);if(t){var a=Zt(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return zt(this,r)}}function zt(e,t){if(t&&("object"===Ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Zt(e){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Yt,Qt,Xt,Jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}(i,e);var t,r,n,o=Ht(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(r=[{key:"render",value:function(){var e="mdc-select "+this.props.className;return a.a.createElement("select",{id:this.props.value,value:this.props.value,className:e,onChange:this.props.onChange.bind(this),"data-idx":this.props.dataIdx,disabled:this.props.disabled},this.props.children)}}])&&Wt(t.prototype,r),n&&Wt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.PureComponent);Yt=Jt,Qt="propTypes",Xt={selectedIndex:Je.a.number,children:Je.a.arrayOf(Object),onChange:Je.a.func,label:Je.a.string,value:Je.a.string,disabled:Je.a.bool,dataIdx:Je.a.number},Qt in Yt?Object.defineProperty(Yt,Qt,{value:Xt,enumerable:!0,configurable:!0,writable:!0}):Yt[Qt]=Xt;var Kt=Jt;function $t(e){var t=[],r=e;if(r.includes("")){t=(r=(r=r.replace("","|")).replace("","|")).split("|");for(var n=0;n<t.length;n++)t[n].includes("")&&(t[n]=a.a.createElement("em",{key:e},t[n].replace("","")))}else t[0]=r;return t}function er(e){var t=e;return t.includes("")&&(t=(t=t.replace("","")).replace("","")),t}function tr(e){return(tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nr(e,t){return(nr=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=sr(e);if(t){var a=sr(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return or(this,r)}}function or(e,t){if(t&&("object"===tr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ir(e)}function ir(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var lr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nr(e,t)}(i,e);var t,r,n,o=ar(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ir(t=o.call(this,e)),"selectAll",(function(e){var r,n=e.target.getAttribute("data-name");if("data_sources"===n)r=e.target.checked?Object.assign([],t.props.sources.map((function(e){return e.id}))):Object.assign([]),t.props.onSelectAllDataSources(e,r);else if("parameters"===n){var a;a=e.target.checked?Object.assign([],t.props.parameters.map((function(e){return e.id}))):Object.assign([]),t.props.onSelectAllParameters(e,a)}})),t}return t=i,(r=[{key:"selectLocation",value:function(e){this.props.onSelectLocation(e)}},{key:"selectOnline",value:function(e){this.props.onSelectOnline(e)}},{key:"render",value:function(){var e,t,r=this,n=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"bookmark"}),o=!1;"data_sources"===this.props.attribute?o=this.props.selectedDataSources.length===this.props.sources.length:"parameters"===this.props.attribute&&(o=this.props.selectedParameters.length===this.props.parameters.length);var i,s=a.a.createElement("div",{className:wt.a.select_all},a.a.createElement(K.FormField,{id:this.props.attribute},a.a.createElement(K.Checkbox,{"data-filterId":this.props.idx,"data-name":this.props.attribute,onChange:this.selectAll,checked:o}),a.a.createElement("label",null,"Select All"))),l=[],c="",p="",d="";switch(this.props.attribute){case"data_sources":n=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"group_work"}),e=this.props.sources.map((function(e){return a.a.createElement(Gt,{id:e.id,filterId:r.props.idx,name:r.props.attribute,label:e.label,key:e.id})})),this.props.sources.filter((function(e){return r.props.selectedDataSources.indexOf(e.id)>=0})).map((function(e){(d=e.label).length>=15&&(p="...",d=e.label.substring(0,15).trim()),c=a.a.createElement(K.Body2,{key:d,component:"button",className:wt.a.filterPills},d,p),l.push(c)})),t=s;break;case"parameters":n=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"description"}),e=this.props.parameters.map((function(e){var t=$t(e.label);return a.a.createElement(Gt,{id:e.id,filterId:r.props.idx,name:r.props.attribute,label:t,key:e.id})})),this.props.selectedParameters.map((function(e){var t=r.props.parameters.find((function(t){return t.id===e})).label.replace("","").replace("",""),n=t;t.length>=15&&(p="...",t=t.substring(0,15).trim()),c=a.a.createElement(K.Body2,{key:t,component:"button",className:wt.a.filterPills,title:n},t,p),l.push(c)})),t=s;break;case"time":n=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoiceInvert,name:"access_time"}),e=a.a.createElement(Tt,{filterId:this.props.idx,filterType:"time"}),l=this.props.selectDate;break;case"locations":var f,m,h,y,b;n=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"location_on"}),this.props.locations?(b=a.a.createElement("hr",{className:wt.a.divider_style}),y=[a.a.createElement(K.Radio,{className:wt.a.radio,id:"allLocations","data-filterId":this.props.idx,value:"All Locations",key:"allLocations"},"Select All Available Locations")],screen.width>Object(v.fb)()&&(m=[a.a.createElement(K.Radio,{className:wt.a.radio,id:"draw","data-filterId":this.props.idx,value:"Custom Location",key:"draw"},"Click to Draw Custom Location")],h=a.a.createElement("span",{key:"draw"},a.a.createElement(K.RadioGroup,{name:"draw_location",onChange:this.selectLocation.bind(this),value:this.props.selectedLocation},m),b)),f=this.props.locations.map((function(e){return a.a.createElement(K.Radio,{className:wt.a.radio,"data-filterId":r.props.idx,value:e.id,key:e.id}," ",e.label)}))):(b=a.a.createElement("div",null," "),y=a.a.createElement("div",null," "),h=a.a.createElement("div",null," "),f=a.a.createElement("div",null," ")),e=a.a.createElement("div",null,a.a.createElement(K.RadioGroup,{name:"all_locations",onChange:this.selectLocation.bind(this),value:this.props.selectedLocation},y),b,h,a.a.createElement(K.RadioGroup,{name:"location",onChange:this.selectLocation.bind(this),value:this.props.selectedLocation},f)),l.push(Object(v.X)(this.props.selectedLocation));break;case"span":n=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"timelapse"}),e=a.a.createElement(Tt,{filterId:this.props.idx,filterType:"span"}),l=this.props.selectSpan,i=a.a.createElement("span",null,a.a.createElement("br",null),"(NOT reflected in Downloads)");break;case"online":var g;n=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"offline_bolt"}),g=this.props.online?this.props.online.map((function(e){return[a.a.createElement(K.Radio,{className:wt.a.radio,"data-filterId":r.props.idx,value:e.id,key:e.id}," ",e.label)]})):a.a.createElement("div",null," "),e=a.a.createElement("div",null,a.a.createElement(K.RadioGroup,{name:"online",onChange:this.selectOnline.bind(this),value:this.props.selectedOnline},g)),l=this.props.selectedOnline,i=a.a.createElement("span",null,a.a.createElement("br",null),"(NOT reflected in Downloads)")}var ,w,E=this.props,S=E.selectedValues,O=E.idx,j=Vt.map((function(e){if(S.indexOf(e.id)<0||S.indexOf(e.id)>=O)return a.a.createElement("option",{"data-filterId":r.props.idx,value:e.id,key:e.id,"data-idx":O}," ",e.name," ")}));if(this.props.idx===this.props.selectedId){var C=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconBefore,name:"label"});"data_sources"===this.props.attribute&&(C=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"group_work"})),"parameters"===this.props.attribute&&(C=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"description"})),"time"===this.props.attribute&&(C=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoiceInvert,name:"access_time"})),"locations"===this.props.attribute&&(C=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"location_on"})),"online"===this.props.attribute&&(C=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"offline_bolt"})),"span"===this.props.attribute&&(C=a.a.createElement(K.Icon,{className:wt.a.descriptiveIconChoice,name:"timelapse"})),=a.a.createElement(K.CardHeader,null,a.a.createElement("div",{className:wt.a.left},C,a.a.createElement(Kt,{value:this.props.attribute,onChange:this.props.onChangeSelection,dataIdx:O},j)),a.a.createElement("a",{className:wt.a.close_button_open_card,onClick:this.props.onClickRemove,"data-idx":O},a.a.createElement(K.Icon,{className:wt.a.closeIcon,name:"close"})),a.a.createElement("br",null))}else l=$t(l=null!=l&&l.length>1?l:"No selection"),i=null!=i&&i.toString().length>1?i:"",=a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},this.props.attribute.replace("data_sources","data source"),n,a.a.createElement("a",{className:wt.a.close_button_collapsed_card,onClick:this.props.onClickRemove,"data-idx":O},a.a.createElement(K.Icon,{className:wt.a.closeIcon,name:"close"}))),a.a.createElement(K.CardSubtitle,{className:wt.a.subtitleSpacing}," ",l," ",i," "));return w=this.props.idx===this.props.selectedId?a.a.createElement(K.CardText,{className:wt.a.listspacing},t,e):a.a.createElement("a",{id:this.props.attribute,className:wt.a.edit_filter_button,onClick:this.props.onExpand},a.a.createElement(K.Icon,{name:"keyboard_arrow_down"})),a.a.createElement(K.Card,{className:wt.a.filter_card,id:this.props.idx},,w)}}])&&rr(t.prototype,r),n&&rr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),cr=Object(s.connect)((function(e){var t,r,n,a;return t=null!==e.selectedSearch.dates.selected.start?e.selectedSearch.dates.selected.start.toISOString().slice(0,10):"",r=null!==e.selectedSearch.dates.selected.end?e.selectedSearch.dates.selected.end.toISOString().slice(0,10):"",n=null!==e.selectedSearch.span.selected.start?e.selectedSearch.span.selected.start.toISOString().slice(0,10):"",a=null!==e.selectedSearch.span.selected.end?e.selectedSearch.span.selected.end.toISOString().slice(0,10):"",{locations:e.selectedSearch.locations.available,sources:e.selectedSearch.data_sources.available,parameters:e.selectedSearch.parameters.available,online:e.selectedSearch.online.available,selectDate:t+"-"+r,selectedParameters:e.selectedSearch.parameters.selected,selectedDataSources:e.selectedSearch.data_sources.selected,selectedLocation:e.selectedSearch.locations.selected,selectedOnline:e.selectedSearch.online.selected,selectSpan:n+"-"+a}}),(function(e){return{onSelectAllParameters:function(t,r){e(Oe(r))},onSelectAllDataSources:function(t,r){e(xe(r))},onSelectLocation:function(t){e(Ne(t.target.value))},onSelectOnline:function(t){e(De(t.target.value))}}}))(lr),ur=r(521),pr=r.n(ur);function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mr(e,t){return(mr=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=gr(e);if(t){var a=gr(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return yr(this,r)}}function yr(e,t){if(t&&("object"===dr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return br(e)}function br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gr(e){return(gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var vr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mr(e,t)}(i,e);var t,r,n,o=hr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(br(t=o.call(this,e)),"state",void 0),t.state={selectedValue:0},t}return t=i,(r=[{key:"handleClickAddFilter",value:function(){var e=this,t=[];this.props.filters.map((function(r,n){e.props.selectedFilters.includes(r.id)||t.push(r.id)})),t.length>0&&(this.props.onAddFilter(t[0]),this.setState({selectedValue:this.props.selectedFilters.length}))}},{key:"handleChange",value:function(e){var t=e.target.dataset.idx,r=e.target.options[e.target.selectedIndex].value;console.log(r," was selected"),"parameters"!==r&&"parameters"!==this.props.selectedFilters[t]||this.props.onClearFilter(!0,!1),"data_sources"!==r&&"data_sources"!==this.props.selectedFilters[t]||this.props.onClearFilter(!1,!0),"time"!==r&&"time"!==this.props.selectedFilters[t]||this.props.onClearTime(),"locations"!==r&&"locations"!==this.props.selectedFilters[t]||this.props.onClearLocation(),"span"!==r&&"span"!==this.props.selectedFilters[t]||this.props.onClearSpan(),"online"!==r&&"online"!==this.props.selectedFilters[t]||this.props.onClearOnline();var n=Object.assign([],this.props.selectedFilters);(n=n.splice(0,t)).push(r),this.props.onChangeFilter(n,t)}},{key:"handleClickRemoveFilter",value:function(e){var t=e.target.parentElement.dataset.idx,r=this.props.selectedFilters[t];console.log(r," was removed"),"parameters"!==r&&"parameters"!==this.props.selectedFilters[t]||this.props.onClearFilter(!0,!1),"data_sources"!==r&&"data_sources"!==this.props.selectedFilters[t]||this.props.onClearFilter(!1,!0),"time"!==r&&"time"!==this.props.selectedFilters[t]||this.props.onClearTime(),"locations"!==r&&"locations"!==this.props.selectedFilters[t]||this.props.onClearLocation(),"span"!==r&&"span"!==this.props.selectedFilters[t]||this.props.onClearSpan(),"online"!==r&&"online"!==this.props.selectedFilters[t]||this.props.onClearOnline(),Object.assign([],this.props.selectedFilters).splice(t,1),this.props.onDeleteFilter(t),this.setState({selectedValue:t>0?t-1:0})}},{key:"componentWillMount",value:function(){this.props.selectedFilters.length<1&&this.props.onAddFilter("locations")}},{key:"componentDidUpdate",value:function(){this.state.selectedValue>=this.props.selectedFilters.length&&this.setState({selectedValue:this.props.selectedFilters.length-1})}},{key:"handleExpand",value:function(e){isNaN(parseInt(e.target.dataset.filterid))?isNaN(parseInt(e.target.parentElement.parentElement.id))?isNaN(parseInt(e.target.parentElement.parentElement.parentElement.id))?isNaN(parseInt(e.target.parentElement.parentElement.parentElement.parentElement.id))?isNaN(parseInt(e.target.parentElement.parentElement.parentElement.parentElement.parentElement.id))?this.setState({selectedValue:parseInt(e.target.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.id)}):this.setState({selectedValue:parseInt(e.target.parentElement.parentElement.parentElement.parentElement.parentElement.id)}):this.setState({selectedValue:parseInt(e.target.parentElement.parentElement.parentElement.parentElement.id)}):this.setState({selectedValue:parseInt(e.target.parentElement.parentElement.parentElement.id)}):this.setState({selectedValue:parseInt(e.target.parentElement.parentElement.id)}):this.setState({selectedValue:parseInt(e.target.dataset.filterid)})}},{key:"render",value:function(){var e,t=this,r=this.props.filters.map((function(e){return e.id})),n=this.props.selectedFilters.map((function(e){var n=r.indexOf(e),o=t.props.filters[n];return a.a.createElement(cr,{key:n,selectedId:t.state.selectedValue,onChangeSelection:t.handleChange.bind(t),selectedValues:t.props.selectedFilters,idx:t.props.selectedFilters.indexOf(o.id),attribute:o.id,onClickRemove:t.handleClickRemoveFilter.bind(t),onExpand:t.handleExpand.bind(t)})}));return this.props.selectedFilters.length<this.props.filters.length&&(e=a.a.createElement(K.Fab,{id:"addButton",className:pr.a.add,onClick:this.handleClickAddFilter.bind(this)},a.a.createElement(K.Icon,{name:"add"}))),a.a.createElement("div",null,a.a.createElement("div",{id:"filters-div"},n,e))}}])&&fr(t.prototype,r),n&&fr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),r=Object(s.connect)((function(e){return{filters:e.searchFilters.filters,selectedFilters:e.searchFilters.selected}}),(function(e){return{onClearFilter:function(t,r){if(t){e(Oe([]))}if(r){e(xe([]))}},onClearTime:function(){e(Te(null)),e(Re(null))},onClearLocation:function(){e(Ne(null))},onClearSpan:function(){e(Ie(null)),e(Ae(null))},onClearOnline:function(){e(De(null))},onAddFilter:function(t){e(function(e){return function(t){t({type:"ADD_FILTER",selectedFilter:e}),t(Le())}}(t))},onDeleteFilter:function(t){e(function(e){return function(t){t(Be(e-1))}}(t))},onChangeFilter:function(t,r){e(function(e,t){return function(r){r({type:"CHANGE_FILTER",selectedFilter:e,idx:t}),r(Be(t)),r(Le())}}(t,r))}}}))(vr);function wr(e){return(wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Or(e,t){return(Or=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=kr(e);if(t){var a=kr(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Cr(this,r)}}function Cr(e,t){if(t&&("object"===wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kr(e){return(kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Pr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Or(e,t)}(i,e);var t,r,n,o=jr(i);function i(){return Er(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){return a.a.createElement("div",{className:u.a.clusterChoicePositioning},a.a.createElement(K.FormField,{className:u.a.clusterStyleActive+(!0===this.props.disableClusters?u.a.clusterStyleActive:""),id:"toggleClusters",key:"toggleClusters"},a.a.createElement(K.Checkbox,{onChange:this.props.onChangeFunction,value:"toggleClusters",key:"toggleClusters",name:"toggleClusters",id:"toggleClusters",checked:this.props.disableClusters}),a.a.createElement("label",{className:u.a.clusterChoiceTextActive+(!0===this.props.disableClusters?u.a.clusterChoiceTextActive:"")},a.a.createElement("span",{className:u.a.clusterChoiceText},"Disable Map Clustering"))))}}])&&Sr(t.prototype,r),n&&Sr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function xr(e,t,r){var n=a.a.createElement("span",{className:u.a.tabTextStyle},"Map View"),o=!1;return navigator.userAgent.toLowerCase().indexOf("android")>-1&&!0===Object(v.t)()&&(o=!0,n=a.a.createElement("span",{className:u.a.tabTextStyleDisabled},e," (Unavailable with Chrome)")),a.a.createElement("div",{className:u.a.tabBackground},a.a.createElement(K.Tabbar,{key:"mobile_tabs"},a.a.createElement(K.Tab,{active:"list-view"===t,key:"list-view",value:"list-view",onClick:function(){r("list-view")}},a.a.createElement("span",{className:u.a.tabTextStyle},"List View")),a.a.createElement(K.Tab,{active:"map-view"===t,key:"map-view",value:"map-view",onClick:function(){!1===o&&r("map-view")}},n)))}function Tr(e){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nr(e,t){return(Nr=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Dr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Lr(e);if(t){var a=Lr(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ir(this,r)}}function Ir(e,t){if(t&&("object"===Tr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ar(e)}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lr(e){return(Lr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}Object.assign(u.a,d.a,m.a);var Br=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nr(e,t)}(i,e);var t,r,n,o=Dr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Ar(t=o.call(this,e)),"state",void 0),t.state={viewSelection:"list-view",disableClusters:!1},Ar(t).clickedViewSelection=t.clickedViewSelection.bind(Ar(t)),Ar(t).toggleClustersSearch=t.toggleClustersSearch.bind(Ar(t)),t}return t=i,(r=[{key:"clickedViewSelection",value:function(e){this.setState({viewSelection:e})}},{key:"toggleClustersSearch",value:function(){this.setState({disableClusters:!this.state.disableClusters})}},{key:"render",value:function(){var e=this.state.disableClusters,t="";(screen.width>Object(v.fb)()||"list-view"===this.state.viewSelection)&&(t=a.a.createElement(K.List,{className:u.a.list},a.a.createElement(r,null)));var r="";!0===Object(v.a)()&&screen.width>Object(v.fb)()&&(r=a.a.createElement(Pr,{onChangeFunction:this.toggleClustersSearch,disableClusters:e}));var n="";(screen.width>Object(v.fb)()||"map-view"===this.state.viewSelection)&&(screen.width<=Object(v.fb)()&&(e=!1),n=a.a.createElement(Qe,{disable_clusters:e}));var o="";return screen.width<=Object(v.fb)()&&(o=xr("Map View",this.state.viewSelection,this.clickedViewSelection)),a.a.createElement("div",null,a.a.createElement(K.Content,null,o,a.a.createElement("div",{className:u.a.bodymap},a.a.createElement(K.Grid,{className:u.a.noPadding},a.a.createElement(K.Cell,{col:3},r,t),a.a.createElement("div",{className:u.a.bottomSection},a.a.createElement(vt,null)),a.a.createElement(K.Cell,{col:9},a.a.createElement("div",{className:u.a.rightMap},n))))))}}])&&Rr(t.prototype,r),n&&Rr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Fr=r(181),Mr=r(132),Gr=r(133),Vr=r.n(Gr);function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qr(e,t){return(qr=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Yr(e);if(t){var a=Yr(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return zr(this,r)}}function zr(e,t){if(t&&("object"===Ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zr(e)}function Zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e){return(Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qr(e,t)}(i,e);var t,r,n,o=Hr(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Zr(t=o.call(this,e)).handleClickButton=t.handleClickButton.bind(Zr(t)),t}return t=i,(r=[{key:"handleClickButton",value:function(){this.props.onClickButton(this.props.button_info.parameter,this.props.button_info.region,this.props.button_info.baseline,this.props.button_info.rolling,this.props.button_info.threshold)}},{key:"render",value:function(){return a.a.createElement(l.a,{href:"/#analysis"},a.a.createElement(K.Button,{raised:!0,id:this.props.index_val,onClick:this.handleClickButton},this.props.button_info.title))}}])&&Wr(t.prototype,r),n&&Wr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);Qr.propTypes={button_info:Je.a.object.isRequired,index_val:Je.a.number.isRequired};var Xr=Qr,Jr=Object(s.connect)((function(e){return{sensors:e.chosenTrends.sensors,threshold_value:e.chosenTrends.threshold,trendSensors:e.chosenTrends.trends_sensors,selectedRegion:e.chosenTrends.region,selectedParameter:e.chosenTrends.parameter,parameters:e.parameters.parameters}}),(function(e){return{onClickButton:function(t,r,n,a,o){e(function(e,t,r,n,a){return function(o){o({type:"ANALYSIS_SAVED_SEARCH",parameter:e,region:t,baseline_total_year:r,rolling_interval:n,threshold:a})}}(t,r,n,a,o)),e(ze(r)),e(je(t,n,a))}}}))(Xr);function Kr(e){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function en(e,t){return(en=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function tn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=an(e);if(t){var a=an(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return rn(this,r)}}function rn(e,t){if(t&&("object"===Kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nn(e)}function nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function an(e){return(an=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var on=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}(i,e);var t,r,n,o=tn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(nn(t=o.call(this,e)),"state",void 0),t.state={},t}return t=i,(r=[{key:"render",value:function(){var e=[];return Object(v.i)().map((function(t,r){var n=r+1;e.push(a.a.createElement("div",{key:"button"+n,className:Vr.a.searchButtonsStyle},a.a.createElement(Jr,{button_info:t,index_val:n})))})),a.a.createElement("div",null,a.a.createElement(K.Subheading1,null,Object(v.h)()),e)}}])&&$r(t.prototype,r),n&&$r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),sn=r(4),ln=r.n(sn);function cn(e){return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dn(e,t){return(dn=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=hn(e);if(t){var a=hn(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return mn(this,r)}}function mn(e,t){if(t&&("object"===cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var yn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dn(e,t)}(i,e);var t,r,n,o=fn(i);function i(){return un(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){Object(v.q)().length>0&&Fr.a;var e="";return!0===Object(v.Lb)()&&(e=a.a.createElement(on,null)),a.a.createElement("div",null,a.a.createElement("div",{className:ln.a.custom_page},a.a.createElement("div",{className:ln.a.custom_header},a.a.createElement("h2",null,"Welcome to the ",a.a.createElement("br",null)," Illinois Nutrient Loss Reduction Strategy ",a.a.createElement("br",null)," Data Portal")),a.a.createElement("div",null,a.a.createElement("h3",null,"Welcome"),a.a.createElement("div",{className:ln.a.custom_paragraph},a.a.createElement("p",null,"Welcome to the Illinois Nutrient Loss Reduction Strategy Data Portal. The Illinois Nutrient Loss Reduction Strategy guides state efforts to improve water quality at home and downstream by reducing nitrogen and phosphorus levels in our lakes, streams, and rivers. The strategy was developed by a policy working group led by the Illinois Water Resource Center-Illinois Indiana Sea Grant, the Illinois Environmental Protection Agency, and the Illinois Department of Agriculture. Group members included representatives from state and federal agencies, agriculture, and non-profit organizations as well as scientists and wastewater treatment professionals.")),a.a.createElement("div",{className:ln.a.custom_paragraph},a.a.createElement("p",null,"This portal is powered by the Great Lakes to Gulf Virtual Observatory. The GLTG Virtual Observatory gathers data from a variety of federal, state, local, and private sources, including the Water Quality Portal. Through visualizing water quality monitoring data and land-use data across sources and agencies, the virtual observatory provides insight to changes in water quality with a user friendly interface.")),a.a.createElement("h3",null,"Application Information"),a.a.createElement("div",{className:ln.a.custom_paragraph},a.a.createElement("ul",null,a.a.createElement("li",null,"To view Station data, visit the ",a.a.createElement("strong",null,a.a.createElement(l.a,{href:"/index.html#/explore/all"},"Explore Page")),"."),a.a.createElement("li",null,"To download Station data as either CSV or JSON, visit the ",a.a.createElement("strong",null,a.a.createElement(l.a,{href:"/index.html#/search"},"Download Page")),"."),a.a.createElement("li",null,"For general application information, visit the ",a.a.createElement("strong",null,a.a.createElement(l.a,{href:"/public/pages/about.html"},"About Page")),"."))),a.a.createElement("h3",null,"For Further Information"),a.a.createElement("div",{className:ln.a.custom_paragraph},"Visit the ",a.a.createElement("strong",null,a.a.createElement(l.a,{target:"blank",href:"https://www2.illinois.gov/epa/topics/water-quality/watershed-management/excess-nutrients/Pages/nutrient-loss-reduction-strategy.aspx"},"Illinois Nutrient Loss Reduction Strategy Implementation"))," website for further information."),a.a.createElement("div",{className:ln.a.custom_button},a.a.createElement(l.a,{href:"index.html#/explore/all"},a.a.createElement(K.Button,{raised:!0},"Explore Now")))),e),a.a.createElement(Mr.a,null))}}])&&pn(t.prototype,r),n&&pn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vn(e,t){return(vn=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Sn(e);if(t){var a=Sn(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return wn(this,r)}}function wn(e,t){if(t&&("object"===bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return En(e)}function En(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}function On(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(87);var jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}(i,e);var t,r,n,o=n(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),On(En(t=o.call(this,e)),"state",void 0),On(En(t),"displayOverlappingMarkers",(function(e,r){var n=G(e,r),a=n[0],o=n[1];r.addLayer(o),r.addLayer(a),t.setState({expandedClusterLayer:o,multiLineLayer:a,expandedCluster:!0})})),On(En(t),"removeSpiderfiedClusterLayers",(function(e){e.removeLayer(t.state.expandedClusterLayer),e.removeLayer(t.state.multiLineLayer)})),On(En(t),"popupHandler",(function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=En(t);if(!0===n)a.state.areaPolygonSource.clear();else{a.props.resetDetailPageSelection(),a.state.areaPolygonSource.clear();var o=a,i=e.getOverlayById("marker");if(void 0!==r){var s=e.forEachFeatureAtPixel(r.pixel,(function(e){return e})),l=!0;if(s&&s.attributes&&"single"===s.attributes.type)o.popupHandleHelper(s,r.coordinate,i,e),l=!1;else if(s&&void 0!==s.get("features")&&1===s.get("features").length){var c=s.get("features")[0];o.popupHandleHelper(c,r.coordinate,i,e)}else s&&void 0!==s.get("features")&&s.get("features").length>1&&(s.get("features").length>Object(v.b)()&&e.getView().getZoom()<Object(v.Ib)()?(e.getView().setCenter(s.get("features")[0].getGeometry().getCoordinates()),e.getView().animate({zoom:e.getView().getZoom()+1,duration:500})):(o.removeSpiderfiedClusterLayers(e),o.displayOverlappingMarkers(s,e,o)),l=!1);l&&o.state.expandedCluster&&o.removeSpiderfiedClusterLayers(e)}}})),On(En(t),"popupHandleHelper",(function(e,r,n,a){var o=document.getElementById("popup-content");if(e&&e.getId()){a&&a.getView().setCenter(e.getGeometry().getCoordinates());var i=Object(J.b)(e,g.a,!0)+Object(J.c)(e,g.a);o&&(o.innerHTML=i);var s=e.attributes,l=[s.longitude,s.latitude],c=y.a.proj.fromLonLat(l);n.setPosition(c);var u=e.getGeometry().getCoordinates();a.getView().getZoom()<=7?u[1]=u[1]+2e5:u[1]=u[1]+25e3,a.getView().setCenter(u),t.clickSensor(s.id,s.name,c);var p=function(e){var t="";return window.configruntime.gd3.sensors_regions.map((function(r){!0===S(Number(e[1]),Number(e[0]),r.geometry.coordinates)&&(t=r.properties.id)})),t}(l),d=Object(v.l)(p),f=new y.a.Feature;d&&d.geometry&&(f=new y.a.Feature({geometry:new y.a.geom.Polygon(d.geometry.coordinates).transform("EPSG:4326","EPSG:3857")})),t.state.areaPolygonSource.clear(),t.state.areaPolygonSource.addFeatures([f])}})),On(En(t),"mapDidUpdate",(function(e){var r=t.props,n=r.exploreLayersDetails,a=r.layersVisibility,o=[];(n&&n.map((function(e){if(a){var t=a.findIndex((function(t){return t.title===e.title}));t>-1&&!0===a[t].visibility?o.push(new y.a.layer.Image({source:new y.a.source.ImageWMS({url:e.wms,params:{LAYERS:e.id}}),name:e.title,opacity:a[t].opacity,visible:!0})):t>-1&&!1===a[t].visibility&&o.push(new y.a.layer.Image({name:e.title,visible:!1}))}})),o.length>0)&&(e.getLayers().getArray().slice().map((function(t){var r=t.get("name");o.map((function(n){n.get("name")===r&&e.removeLayer(t)}))})),o.map((function(t){!0===t.get("visible")&&e.addLayer(t)})));var i=t.getFeature(),s=En(t),l=new y.a.source.Vector({features:i}),c=l.getExtent();if(i.length>0&&(t.state.expandedCluster||e.getView().fit(c,e.getSize())),!0===s.props.showPopup){var u=l.getFeatures().find((function(e){return e.attributes.name===s.props.popupSensorname})),p=e.getOverlayById("marker");void 0===u&&console.log("ERROR with popupHandleHelper: featuresAtPixel is "+u+" for "+s.props.popupSensorname),s.popupHandleHelper(u,s.props.popupCoordinates,p,e),e.getView().animate({zoom:e.getView().setZoom(Object(v.Ib)()),duration:500});var d=u.getGeometry().getCoordinates();d[1]=d[1]+500,e.getView().setCenter(d)}})),On(En(t),"mapDidMount",(function(){(0,t.props.resetDetailPageSelection)()})),On(En(t),"getCustomLayers",(function(){return[new y.a.layer.Vector({id:"areaPolygon",source:t.state.areaPolygonSource,style:[new y.a.style.Style({stroke:new y.a.style.Stroke({color:"rgba(0, 152, 254, 1)",width:2}),fill:new y.a.style.Fill({color:"rgba(254, 254, 254, 0.3)"})})]})]})),On(En(t),"getCluster",(function(e){return new y.a.layer.Vector({source:e,name:"clusters_layer",style:function(e){var t,r=e.get("features").length;if(r>1){var n=20,a="14px sans-serif";screen.width<=Object(v.fb)()&&(n=30,a="40px sans-serif"),t=new y.a.style.Style({image:new y.a.style.Circle({radius:n,stroke:new y.a.style.Stroke({color:"#fff"}),fill:new y.a.style.Fill({color:"#3399CC"})}),text:new y.a.style.Text({text:r.toString(),fill:new y.a.style.Fill({color:"#fff"}),font:a})})}else{var o=e.getProperties().features[0].attributes.color,i="black";!0===Object(v.e)()&&("online"===e.getProperties().features[0].attributes.onlineStatus&&(i="green"),"offline"===e.getProperties().features[0].attributes.onlineStatus&&(i="red"));var s='\t',l=1;screen.width<=Object(v.fb)()&&(l=4),t=new y.a.style.Style({image:new y.a.style.Icon({anchor:[.5,1],src:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(s),scale:l})})}return t}})})),On(En(t),"onChangeZoom",(function(e){var r=En(t);r.state.expandedCluster&&r.removeSpiderfiedClusterLayers(e)})),t.state={multiLineLayer:new y.a.layer.Vector,multiLineString:new y.a.geom.MultiLineString,expandedClusterLayer:new y.a.layer.Vector,expandedCluster:!1,areaPolygonSource:y.a.source.Vector},En(t).clickSensor=t.clickSensor.bind(En(t)),t}return t=i,(r=[{key:"clickSensor",value:function(e,t,r,n){this.props.popupSensorID!==e&&this.props.selectSensor(e,t,r.slice(0,2))}},{key:"componentWillMount",value:function(){var e=new y.a.source.Vector({features:[new y.a.Feature({})]});this.setState({areaPolygonSource:e})}},{key:"getFeature",value:function(){var e=this.props,t=e.sensors,r=e.userStations,n=e.parameters;if(screen.width<=Object(v.fb)()){var a=Object(v.gb)().toUpperCase(),o=t;if("ALL"!==a&&(o=o.filter((function(e){return a.includes(e.properties.type.title.toString().toUpperCase())}))),"all"!==r&&(o=o.filter((function(e){return r.includes(e.properties.type.location)}))),!0===Object(v.eb)()){var i=new Date;i.setDate(i.getDate()-14),i=i.toJSON(),o=o.filter((function(e){return e.max_end_time>=i}))}t=o}return A(t,n)}},{key:"render",value:function(){var e=this.props.disable_clusters;return a.a.createElement("div",null,a.a.createElement(ce,{features:this.getFeature(),getCluster:this.getCluster,onMapSingleClick:this.popupHandler,onMapChangeResolution:this.onChangeZoom,mapDidUpdate:this.mapDidUpdate,mapDidMount:this.mapDidMount,disableClusters:e,customLayers:this.getCustomLayers()}))}}])&&gn(t.prototype,r),n&&gn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Cn=Object(s.connect)((function(e){return{sensors:e.sensors.explore_sensors,popupSensorID:e.sensorDetail.id,popupSensorname:e.sensorDetail.name,popupCoordinates:e.sensorDetail.coordinates,showPopup:e.sensorDetail.showExplorePopup,parameters:e.parameters.explore}}),(function(e){return{resetDetailPageSelection:function(){e((function(e){e({type:"CLEAN_DETAIL"})})),e((function(e,t){var r=t();e({type:"INITIALIZE_EXPLORE_DATASOURCES",explore_filtering:r.exploreFiltering,sensors:r.sensors.data})})),e((function(e,t){e({type:"RESET_EXPLORE_SENSORS",reset_sensors:t().sensors.data})}))},selectSensor:function(t,r,n){e(Fe(t,r,n))}}}))(jn),kn=r(16),Pn=r.n(kn),xn=r(95);function Tn(e,t){var r=Nn(e[0].substr(1,6),t[0]),n=Nn(e[1].substr(1,6),t[1]),a=[255,255,255,1],o=Rn(a,r),i=Rn(a,n),s=[Math.round(.5o[0]+.5i[0]),Math.round(.5o[1]+.5i[1]),Math.round(.5o[2]+.5i[2]),1];return"rgba("+s[0]+","+s[1]+","+s[2]+","+s[3]+")"}function Rn(e,t){var r=t[3];return[(1-r)e[0]+rt[0],(1-r)e[1]+rt[1],(1-r)e[2]+rt[2]]}function Nn(e,t){var r=parseInt(e,16);return[r>>16&255,r>>8&255,255&r,t]}function Dn(e){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mn(e);if(t){var a=Mn(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Bn(this,r)}}function Bn(e,t){if(t&&("object"===Dn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fn(e)}function Fn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mn(e){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Gn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&An(e,t)}(i,e);var t,r,n,o=Ln(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={inner_accordion_icon:!1},Fn(t).clickSensor=t.clickSensor.bind(Fn(t)),Fn(t).clickedInnerAccordion=t.clickedInnerAccordion.bind(Fn(t)),t}return t=i,(r=[{key:"clickedInnerAccordion",value:function(){this.setState({inner_accordion_icon:!this.state.inner_accordion_icon})}},{key:"clickSensor",value:function(e,t,r,n){this.props.selectSensor(e,t,r.slice(0,2))}},{key:"render",value:function(){var e=this,t=[],r=[],n=this.props.sourceData;n.map((function(t){var n=6,o="",i="none",s="white";!0===Object(v.e)()&&("online"===t.properties.online_status&&(i="solid 0.3em",s="green",n=5),"offline"===t.properties.online_status&&(i="dashed",s="red",n=5)),t.name.length>=n&&(o="...");var l=[t.geometry.coordinates[0],t.geometry.coordinates[1]],c=y.a.proj.fromLonLat(l),u=Object(v.v)(t.properties.type.id);e.props.selectedSensorID!==t.id&&(u=Tn(["000000",u],[.03,.1]));var p=t.properties.name;t.properties.name!==t.properties.popupContent&&(p+=" - "+t.properties.popupContent);var d=t.properties.name.substring(0,n).trim().replace("-","").replace(" ","");e.state.inner_accordion_icon?(c[0]=c[0]+1500,c[1]=c[1]+2e4,r.push(a.a.createElement(K.Button,{key:t.id,className:Pn.a.exploreButton,style:{backgroundColor:u,border:i,borderColor:s},id:t.id,title:p,onClick:function(){e.clickSensor(t.id,t.name,c)}},a.a.createElement("span",{className:Pn.a.exploreButtonText},d,o)))):r=""}));var o=Object(v.v)(this.props.sourceId);return o=Tn(["000000",o],[.05,.2]),t.push(a.a.createElement("div",{key:this.props.id},a.a.createElement("div",{onClick:function(){e.clickedInnerAccordion()}},a.a.createElement("div",{style:{backgroundColor:o}},a.a.createElement("span",{"data-tooltip":this.props.tooltipVal,className:Pn.a.regionLabel},this.props.sectionLabel),a.a.createElement("span",{className:Pn.a.regionCount},"(",n.length,")",a.a.createElement(K.Icon,{className:"material-icons "+Pn.a.accordionIcon,name:this.state.inner_accordion_icon?"expand_more":"chevron_right"})))),a.a.createElement("div",{className:Pn.a.sectionPills},r))),a.a.createElement("div",null,t)}}])&&In(t.prototype,r),n&&In(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Vn=Object(s.connect)((function(e){return{selectedSensorID:e.sensorDetail.id}}),(function(e){return{selectSensor:function(t,r,n){e(Fe(t,r,n))}}}))(Gn);function Un(e){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qn(e,t){return(qn=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Hn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Yn(e);if(t){var a=Yn(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return zn(this,r)}}function zn(e,t){if(t&&("object"===Un(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zn(e)}function Zn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yn(e){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Qn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qn(e,t)}(i,e);var t,r,n,o=Hn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Zn(t=o.call(this,e)),"state",void 0),t.state={accordion_icon:Object(v.Kb)(),source_group_icon:!0},Zn(t).clickedSourceGroup=t.clickedSourceGroup.bind(Zn(t)),t}return t=i,(r=[{key:"clickedSourcesAccordion",value:function(){this.setState({accordion_icon:!this.state.accordion_icon})}},{key:"clickedSourceGroup",value:function(e){this.setState({source_group_icon:!this.state.source_group_icon});var t=this.props.selectedDataSources,r=this.props.availableDataSources,n=!1,a=t;if(t.map((function(t){t.id===e&&(n=!0)})),!0===n)a=t.filter((function(t){return t.id.toString().toUpperCase()!==e.toString().toUpperCase()}));else{var o=r.filter((function(t){return t.id.toString().toUpperCase()===e.toString().toUpperCase()}));a.push(o[0])}this.props.clickedSource(a)}},{key:"render",value:function(){var e=this,t=Object(v.v)(this.props.source.id),r=this.props.contents,n=a.a.createElement("div",{id:this.props.source.id,className:Pn.a.exploreCard,key:this.props.source.id},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,null,a.a.createElement("div",{className:Pn.a.exploreTitleCard},a.a.createElement("div",{className:Pn.a.exploreTitleLeft,style:{backgroundColor:t}},a.a.createElement(K.Icon,{className:"material-icons "+Pn.a.exploreSourcesSelectionIcon,style:{backgroundColor:t},name:this.state.source_group_icon?"check_circle":"radio_button_unchecked",onClick:function(){e.clickedSourceGroup(e.props.source.id)}})),a.a.createElement("div",{className:Pn.a.exploreTitleRight,onClick:function(){e.clickedSourcesAccordion()}},this.props.source.label),a.a.createElement("span",{className:Pn.a.exploreSourcesCountAndIcon,onClick:function(){e.clickedSourcesAccordion()}},"(",this.props.sites_count,")"),a.a.createElement("span",{className:Pn.a.exploreSourcesIcon,onClick:function(){e.clickedSourcesAccordion()}},this.props.dialog_contents,a.a.createElement(K.Icon,{className:"material-icons "+Pn.a.groupAccordionIcon,name:this.state.accordion_icon?"expand_more":"chevron_right"}))))),a.a.createElement(K.CardText,null,a.a.createElement("div",{key:this.props.source.id,className:this.state.accordion_icon?Pn.a.sourceItemsStyleOpen:Pn.a.sourceItemsStyleClosed},r)));return a.a.createElement("div",null,n)}}])&&Wn(t.prototype,r),n&&Wn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Xn=Object(s.connect)((function(e){return{selectedDataSources:e.exploreFiltering.data_sources.selected,availableDataSources:e.exploreFiltering.data_sources.available}}),(function(e){return{clickedSource:function(t){e((function(e){e({type:"CLEAN_DETAIL"})})),e(Ye(t))}}}))(Qn);function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $n(e,t){return($n=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function ea(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=na(e);if(t){var a=na(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ta(this,r)}}function ta(e,t){if(t&&("object"===Jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ra(e)}function ra(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function na(e){return(na=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var aa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$n(e,t)}(i,e);var t,r,n,o=ea(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ra(t=o.call(this,e)),"state",void 0),t.state={accordion_icon:Object(v.I)(),source_icon:!0},ra(t).clickSensor=t.clickSensor.bind(ra(t)),ra(t).clickedSourcesAccordion=t.clickedSourcesAccordion.bind(ra(t)),t}return t=i,(r=[{key:"clickSensor",value:function(e,t,r){this.props.selectSensor(e,t,r.slice(0,2))}},{key:"clickedSourcesAccordion",value:function(){this.setState({accordion_icon:!this.state.accordion_icon})}},{key:"render",value:function(){var e=this,t=[],r=[],n="",o="",i=0;return this.props.sources.map((function(o){var s=[];if(screen.width<=Object(v.fb)()){var l=Object(v.gb)().toUpperCase(),c=e.props.data.filter((function(e){return e.properties.type.id===o.id}));if("ALL"!==l&&(c=c.filter((function(e){return l.includes(e.properties.type.title.toString().toUpperCase())}))),"all"!==e.props.userStations&&(c=c.filter((function(t){return e.props.userStations.includes(t.properties.type.location)}))),!0===Object(v.eb)()){var p=new Date;p.setDate(p.getDate()),p=p.toJSON();var d=new Date;d.setDate(d.getDate()-14),d=d.toJSON(),c=c.filter((function(e){return e.max_end_time>=d})).filter((function(e){return e.max_end_time<=p}))}0===c.length?s.push(a.a.createElement("span",{key:"no_data"},a.a.createElement(K.Button,{className:u.a.exploreButtonMobile,raised:!0,disabled:!0},"No Data Available"),a.a.createElement("br",null))):c.map((function(e){var t=Object(v.cb)()+e.name.toString()+"/separate/";s.push(a.a.createElement("span",{key:e.id},a.a.createElement("a",{key:e.id,href:t},a.a.createElement(K.Button,{className:u.a.exploreButtonMobile,raised:!0,key:e.id,id:e.id},e.name)),a.a.createElement("br",null)))}))}else{i=0;var f=Object(v.nb)(o.id);n=Object(v.mb)()&&void 0!==f?a.a.createElement(xn.a,{title:o.label,body:f}):"";var m=Object(v.kb)();e.props.regions.map((function(t){var r=m[t];void 0===r&&(r=t);var n=t+"Sources",l=t,c=e.props.data.filter((function(e){return e.properties.type.id===o.id&&e.properties.region===t}));c=j(c),i+=c.length,c.length>0&&s.push(a.a.createElement(Vn,{sourceData:c,tooltipVal:r,id:n,key:n,sectionLabel:l,sourceId:o.id}))}))}s.length>0&&(t=a.a.createElement(Xn,{sites_count:i,source:o,contents:s,dialog_contents:n,key:o.id}),screen.width>Object(v.fb)()?r.push(a.a.createElement(K.List,{className:e.state.accordion_icon?Pn.a.listItemsStyleOpen:Pn.a.listItemsStyleClosed,key:o.id+"sources"},t)):r.push(t))})),o=screen.width>Object(v.fb)()?a.a.createElement(K.ListGroup,{className:Pn.a.listWidthStyle},a.a.createElement(K.ListHeader,{className:Pn.a.listHeaderStyle,onClick:function(){e.clickedSourcesAccordion()}},"Explore Sources",a.a.createElement(K.Icon,{className:"material-icons "+Pn.a.accordionIcon,name:this.state.accordion_icon?"expand_more":"chevron_right"})),r):a.a.createElement(K.List,{className:u.a.leftColumn},r),a.a.createElement("div",null,o)}}])&&Kn(t.prototype,r),n&&Kn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function oa(e){return(oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ia(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sa(e,t){return(sa=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function la(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=pa(e);if(t){var a=pa(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ca(this,r)}}function ca(e,t){if(t&&("object"===oa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ua(e)}function ua(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pa(e){return(pa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var da=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sa(e,t)}(i,e);var t,r,n,o=la(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={accordion_icon:!1},ua(t).clickedItemsAccordion=t.clickedItemsAccordion.bind(ua(t)),t}return t=i,(r=[{key:"clickedItemsAccordion",value:function(){this.setState({accordion_icon:!this.state.accordion_icon})}},{key:"render",value:function(){var e=this,t=[],r=[],n=0;this.props.item.sections.map((function(r){var o=[];n=0,e.props.sources.map((function(t){var i,s=t.id,l=t.label,c=t.id.toUpperCase(),u=e.props.data.filter((function(e){return void 0!==e.properties.huc&&e.properties.type.id===t.id&&r.value.includes(e.properties.huc[r.property].code)}));u=j(u),n+=u.length,u.length>0&&(i=a.a.createElement(Vn,{sourceData:u,tooltipVal:l,id:s,key:s,sectionLabel:c,sourceId:t.id})).props.sourceData.length>0&&o.push(i)})),o.length>0&&t.push(a.a.createElement(K.List,{className:e.state.accordion_icon?Pn.a.listItemsStyleOpen:Pn.a.listItemsStyleClosed},a.a.createElement(K.Card,{id:r.title,className:Pn.a.exploreCard,key:r.title},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:Pn.a.exploreTitleCard},r.title,": ",r.value.toString().replace(/,/g,", ")," (",n,")")),a.a.createElement(K.CardText,null,a.a.createElement("div",{key:e.id},o)))))}));var o="";return t.length>0?(r.push(t),o=a.a.createElement(K.ListGroup,{className:Pn.a.listWidthStyle},a.a.createElement(K.ListHeader,{className:Pn.a.listHeaderStyle,onClick:function(){e.clickedItemsAccordion()}},this.props.item.title,a.a.createElement(K.Icon,{className:"material-icons "+Pn.a.accordionIcon,name:this.state.accordion_icon?"expand_more":"chevron_right"})),r)):o=a.a.createElement(K.ListGroup,{className:Pn.a.listWidthStyle},a.a.createElement(K.ListHeader,{className:Pn.a.listHeaderStyle},this.props.item.title),a.a.createElement(K.Card,{className:Pn.a.exploreCard},a.a.createElement(K.CardText,null,"None Available"))),a.a.createElement("div",null,o)}}])&&ia(t.prototype,r),n&&ia(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function fa(e){return(fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ma(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ha(e,t){return(ha=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=va(e);if(t){var a=va(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ba(this,r)}}function ba(e,t){if(t&&("object"===fa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ga(e)}function ga(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function va(e){return(va=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var a=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ha(e,t)}(i,e);var t,r,n,o=ya(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={accordion_icon:!1},ga(t).clickedCategoriesAccordion=t.clickedCategoriesAccordion.bind(ga(t)),t}return t=i,(r=[{key:"clickedCategoriesAccordion",value:function(){this.setState({accordion_icon:!this.state.accordion_icon})}},{key:"render",value:function(){var e=this,t=[],r=[],n=this.props.parameterCategory;this.props.parameterMappings.filter((function(e){return e.category_id===n.id})).map((function(r){var n=e.props.parameters.filter((function(e){return e.id===r.parameter_id}));n&&(n=n[0]);var o=[];e.props.sources.map((function(t){var r=t.id,i=t.label,s=t.id.toUpperCase(),l=e.props.data.filter((function(e){return e.properties.type.id===t.id&&e.parameters.includes(n.name)}));l=j(l);var c=a.a.createElement(Vn,{sourceData:l,tooltipVal:i,id:r,key:r,sectionLabel:s});c.props.sourceData.length>0&&o.push(c)})),o.length>0&&t.push(a.a.createElement(K.List,{className:e.state.accordion_icon?Pn.a.listItemsStyleOpen:Pn.a.listItemsStyleClosed},a.a.createElement(K.Card,{id:n.title,className:Pn.a.exploreSubCard,key:n.title},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:Pn.a.exploreTitleCard},n.title)),a.a.createElement(K.CardText,null,a.a.createElement("div",{key:e.id},o)))))}));var o="";if(t.length>0){r.push(t);var i=n.name;0===i.length&&(i="other"),o=a.a.createElement(K.ListGroup,{className:Pn.a.listWidthStyle},a.a.createElement(K.ListHeader,{className:Pn.a.listSubheaderStyle,onClick:function(){e.clickedCategoriesAccordion()}},i,a.a.createElement(K.Icon,{className:"material-icons "+Pn.a.accordionIcon,name:this.state.accordion_icon?"expand_more":"chevron_right"})),r)}return a.a.createElement("div",null,o)}}])&&ma(t.prototype,r),n&&ma(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function wa(e){return(wa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ea(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Sa(e,t){return(Sa=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ca(e);if(t){var a=Ca(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ja(this,r)}}function ja(e,t){if(t&&("object"===wa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var ka=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sa(e,t)}(i,e);var t,r,n,o=Oa(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(r=[{key:"render",value:function(){var e=a.a.createElement("div",null," "),t="";return this.props.availableLayer.legendShow&&(this.props.availableLayer.legendStartOpen&&(t="open"),e=a.a.createElement("div",null,a.a.createElement("details",{open:t,className:Pn.a.layersLegendDetails},a.a.createElement("summary",null,this.props.availableLayer.legendTitle),a.a.createElement("div",{className:Pn.a.layersLegendText},this.props.availableLayer.legendText),a.a.createElement("img",{src:this.props.availableLayer.legendImage})))),e}}])&&Ea(t.prototype,r),n&&Ea(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Pa(e){return(Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ta(e,t){return(Ta=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Ra(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Da(e);if(t){var a=Da(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Na(this,r)}}function Na(e,t){if(t&&("object"===Pa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Da(e){return(Da=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Ia=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ta(e,t)}(i,e);var t,r,n,o=Ra(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(r=[{key:"render",value:function(){var e=this,t=this.props.availableLayer.opacity,r=this.props.layersVisibility.findIndex((function(t){return t.title===e.props.availableLayer.title}));return r>-1&&(t=this.props.layersVisibility[r].opacity),a.a.createElement("div",{className:Pn.a.col,key:this.props.availableLayer.title},a.a.createElement(K.FormField,{id:"explore-layers"},a.a.createElement("span",{className:Pn.a.checkboxWidth},a.a.createElement(K.Checkbox,{name:this.props.availableLayer.title,id:this.props.availableLayer.title,value:this.props.availableLayer.opacity,onChange:this.props.selectLayers,checked:this.props.layersVisibility.findIndex((function(t){return t.title===e.props.availableLayer.title&&!0===t.visibility}))>-1})),a.a.createElement("label",{className:Pn.a.checkboxLabel}," ",this.props.availableLayer.title)),a.a.createElement(ka,{availableLayer:this.props.availableLayer}),a.a.createElement("input",{className:Pn.a.sliderStyle,type:"range",name:this.props.availableLayer.title,min:"0",max:"1",step:"0.05",value:t,disabled:this.props.layersVisibility.findIndex((function(t){return t.title===e.props.availableLayer.title&&!0===t.visibility}))<0,onChange:this.props.handleOpacityChange}))}}])&&xa(t.prototype,r),n&&xa(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Aa(e){return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function La(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ba(e,t){return(Ba=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Fa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Va(e);if(t){var a=Va(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ma(this,r)}}function Ma(e,t){if(t&&("object"===Aa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ga(e)}function Ga(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Va(e){return(Va=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Ua=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ba(e,t)}(i,e);var t,r,n,o=Fa(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ga(t=o.call(this,e)).selectLayers=t.selectLayers.bind(Ga(t)),Ga(t).handleOpacityChange=t.handleOpacityChange.bind(Ga(t)),Ga(t).selectGroupLayers=t.selectGroupLayers.bind(Ga(t)),t}return t=i,(r=[{key:"selectLayers",value:function(e){var t=Object.assign([],this.props.layersVisibility),r=e.target.name,n=e.target.value,a=e.target.checked,o=this.props.layersVisibility.findIndex((function(e){return e.title===r}));a?o>-1?t[o].visibility=!0:t.push({title:r,opacity:n,visibility:!0}):o>-1&&(t[o].visibility=!1),this.props.onSelectLayers(t)}},{key:"selectGroupLayers",value:function(e){var t=this,r=e.target.name,n=e.target.checked;this.props.layersVisibility.filter((function(e){return e.layerGroup===r})).map((function(e){var r=Object.assign([],t.props.layersVisibility),a=t.props.layersVisibility.findIndex((function(t){return t.title===e.title})),o=document.getElementById(e.title.toString());o instanceof HTMLInputElement&&(!1===n?(o.checked=!1,a>-1&&(r[a].visibility=!1)):(o.checked=!0,a>-1?r[a].visibility=!0:r.push({title:e.title,opacity:e.opacity,visibility:!0}))),t.props.onSelectLayers(r)}))}},{key:"handleOpacityChange",value:function(e){var t=Object.assign([],this.props.layersVisibility),r=e.target.name,n=Number(e.target.value.toString()),a=t.findIndex((function(e){return e.title===r}));t[a].opacity=n,this.props.onOpacityChange(t)}},{key:"render",value:function(){var e=this,t=[],r="",n=[],o="",i=[];return this.props.layersVisibility.filter((function(e){return""!==e.layerGroup})).map((function(e){i.indexOf(e.layerGroup)<0&&i.push(e.layerGroup)})),i.map((function(i){n=[],e.props.layersVisibility.filter((function(e){return e.layerGroup===i})).map((function(t){r=a.a.createElement(Ia,{key:t.title,availableLayer:t,layersVisibility:e.props.layersVisibility,selectLayers:e.selectLayers,handleOpacityChange:e.handleOpacityChange}),n.push(r)}));var s=!1,l=e.props.layersVisibility.filter((function(e){return e.layerGroup===i})).filter((function(e){return!0===e.visibility})).length;n.length===l&&(s=!0);var c=a.a.createElement("div",{className:Pn.a.col,key:i},a.a.createElement(K.FormField,{id:"explore-group-layers"},a.a.createElement("span",{className:Pn.a.checkboxWidth},a.a.createElement(K.Checkbox,{name:i,value:i,onChange:e.selectGroupLayers,checked:s})),a.a.createElement("label",{className:Pn.a.checkboxLabel},"Select All")));o=a.a.createElement("div",{key:i},a.a.createElement("details",{className:Pn.a.layersGroup},a.a.createElement("summary",{className:Pn.a.layersGroupTitle},i),a.a.createElement("div",null,c),a.a.createElement("div",null,n))),t.push(o)})),this.props.layersVisibility.filter((function(e){return""===e.layerGroup})).map((function(n){r=a.a.createElement(Ia,{key:n.title,availableLayer:n,layersVisibility:e.props.layersVisibility,selectLayers:e.selectLayers,handleOpacityChange:e.handleOpacityChange}),t.push(r)})),a.a.createElement("div",null,t)}}])&&La(t.prototype,r),n&&La(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Wa=Object(s.connect)((function(e){return{layersVisibility:e.exploreLayers.layers_visibility}}),(function(e){return{onSelectLayers:function(t){e({type:"UPDATE_LAYER",layer:t})},onOpacityChange:function(t){e({type:"SET_LAYER_OPACITY",opacity:t})}}}))(Ua);function qa(e){return(qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ha(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function za(e,t){return(za=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Za(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Xa(e);if(t){var a=Xa(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ya(this,r)}}function Ya(e,t){if(t&&("object"===qa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qa(e)}function Qa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xa(e){return(Xa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Ja=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&za(e,t)}(i,e);var t,r,n,o=Za(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Qa(t=o.call(this,e)).openLayersDrawer=t.openLayersDrawer.bind(Qa(t)),Qa(t).closeLayersDrawer=t.closeLayersDrawer.bind(Qa(t)),t}return t=i,(r=[{key:"openLayersDrawer",value:function(){var e=document.getElementById("layersDrawer");e&&(e.style.visibility="visible")}},{key:"closeLayersDrawer",value:function(){var e=document.getElementById("layersDrawer");e&&(e.style.visibility="hidden")}},{key:"render",value:function(){return a.a.createElement("div",null,a.a.createElement("div",{className:Pn.a.layersButton},a.a.createElement(K.Button,{id:"openButton",raised:!0,onClick:this.openLayersDrawer},a.a.createElement("span",{className:Pn.a.layersButtonText},"Explore Layers"))),a.a.createElement("div",{id:"layersDrawer",className:Pn.a.layersDrawerClass},a.a.createElement("span",null,a.a.createElement(K.Drawer,{className:Pn.a.drawerSettings,open:!0},a.a.createElement(K.DrawerSpacer,{className:Pn.a.layersHeader},a.a.createElement("div",{className:Pn.a.layersCloseButtonDiv},a.a.createElement(K.Button,{className:Pn.a.layersCloseButton,id:"closeButton",default:!0,onClick:this.closeLayersDrawer},a.a.createElement(K.Icon,{name:"close"}))),a.a.createElement("span",null,"Explore Layers")),a.a.createElement(K.DrawerContent,null,a.a.createElement(Wa,null))))))}}])&&Ha(t.prototype,r),n&&Ha(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Ka(e){return(Ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eo(e,t){return(eo=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function to(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ao(e);if(t){var a=ao(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ro(this,r)}}function ro(e,t){if(t&&("object"===Ka(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return no(e)}function no(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ao(e){return(ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var oo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eo(e,t)}(i,e);var t,r,n,o=to(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(no(t=o.call(this,e)),"state",void 0),t.state={viewSelection:"list-view",disableClusters:!1,categories_accordion_icon:!1},no(t).clickedViewSelection=t.clickedViewSelection.bind(no(t)),no(t).toggleClustersExplore=t.toggleClustersExplore.bind(no(t)),no(t).clickedCategoriesAccordion=t.clickedCategoriesAccordion.bind(no(t)),t}return t=i,(r=[{key:"clickedCategoriesAccordion",value:function(){this.setState({categories_accordion_icon:!this.state.categories_accordion_icon})}},{key:"clickedViewSelection",value:function(e){this.setState({viewSelection:e})}},{key:"toggleClustersExplore",value:function(){this.setState({disableClusters:!this.state.disableClusters})}},{key:"render",value:function(){var e,t,r,n,o=this,i=this.state.disableClusters,s="",l=[],c=[],p=[],d=Object(v.gb)();if(0===(e=screen.width<=Object(v.fb)()&&"ALL"!==d.toUpperCase()?this.props.sources.filter((function(e){return d.toUpperCase().includes(e.id.toString().toUpperCase())})).filter((function(e){return""!==e.id.toString()})):this.props.sources).length)return a.a.createElement("div",null,a.a.createElement(st,null));(screen.width>Object(v.fb)()||"list-view"===this.state.viewSelection)&&(s=a.a.createElement(aa,{key:"source_data",regions:this.props.regions,data:this.props.data,userStations:this.props.params.stations,sources:e}),screen.width>Object(v.fb)()&&(Object(v.H)().length>0&&Object(v.H)().map((function(t){l.push(a.a.createElement(da,{key:t.title,data:o.props.explore_data,sources:e,item:t}))})),Object(v.G)()&&this.props.parameterCategories.length>0&&(this.props.parameterCategories.map((function(t){c.push(a.a.createElement(a,{key:t.title,data:o.props.explore_data,sources:e,parameterCategory:t,parameterMappings:o.props.parameterMappings,parameters:o.props.parameters}))})),p=a.a.createElement(K.ListGroup,{className:Pn.a.listWidthStyle},a.a.createElement(K.ListHeader,{className:Pn.a.listHeaderStyle,onClick:function(){o.clickedCategoriesAccordion()}},"Categories",a.a.createElement(K.Icon,{className:"material-icons "+Pn.a.accordionIcon,name:this.state.categories_accordion_icon?"expand_more":"chevron_right"})),a.a.createElement("div",{className:this.state.categories_accordion_icon?Pn.a.listItemsStyleOpen:Pn.a.listItemsStyleClosed},c))))),this.props.layersVisibility.length>0&&(r=Object(v.V)(),t=a.a.createElement(Ja,null),n=this.props.layersVisibility);var f="";!0===Object(v.a)()&&screen.width>Object(v.fb)()&&(f=a.a.createElement(Pr,{onChangeFunction:this.toggleClustersExplore,disableClusters:i}));var m="";(screen.width>Object(v.fb)()||"map-view"===this.state.viewSelection)&&(screen.width<=Object(v.fb)()&&(i=!1),m=a.a.createElement(Cn,{disable_clusters:i,userStations:this.props.params.stations,exploreLayersDetails:r,layersVisibility:n}));var h="";return screen.width<=Object(v.fb)()&&(h=xr("Map View",this.state.viewSelection,this.clickedViewSelection)),a.a.createElement("div",null,a.a.createElement(K.Content,null,h,a.a.createElement("div",{className:u.a.bodymap},a.a.createElement(K.Grid,{className:u.a.noPadding},a.a.createElement(K.Cell,{col:3},a.a.createElement("div",{className:Pn.a.leftColumnExplore},s,l,p)),a.a.createElement(K.Cell,{col:9},a.a.createElement("div",{id:"mapItems",className:u.a.rightMap},f,m))),t)))}}])&&$a(t.prototype,r),n&&$a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),io=Object(s.connect)((function(e){return{sources:e.sensors.sources,layersVisibility:e.exploreLayers.layers_visibility,data:e.sensors.data,regions:e.sensors.regions,parameters:e.parameters.parameters,parameterCategories:e.parameters.categories,parameterMappings:e.parameters.mappings,explore_data:e.sensors.explore_sensors}}))(oo),so=r(21),lo=r.n(so);function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function po(e,t){return(po=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function fo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=yo(e);if(t){var a=yo(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return mo(this,r)}}function mo(e,t){if(t&&("object"===co(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ho(e)}function ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yo(e){return(yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}r(87);var bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&po(e,t)}(i,e);var t,r,n,o=fo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ho(t=o.call(this,e)),"state",void 0),t.state={center:[-84,44],vectorSource:new y.a.source.Vector,clusterSource:new y.a.source.Cluster({distance:1,source:new y.a.source.Vector}),areaPolygonSource:new y.a.source.Vector,currentZoom:5.5,maxZoom:Object(v.Ib)(),map:new y.a.Map({view:new y.a.View({center:[0,0],zoom:1}),layers:[new y.a.layer.Tile({source:new y.a.source.OSM})],target:"map"}),openAboutButton:!1},ho(t).handleInfoIcon=t.handleInfoIcon.bind(ho(t)),t}return t=i,(r=[{key:"handleInfoIcon",value:function(e){this.setState({openAboutButton:e})}},{key:"render",value:function(){var e=this;return a.a.createElement("div",null,a.a.createElement("div",{id:"map",className:g.a.root}," "),a.a.createElement("div",{id:"trends_legend",className:g.a.trends_legend}," "),a.a.createElement("div",{id:"search",style:{position:"absolute",bottom:"10px",left:"25em",padding:"5px"}},a.a.createElement("button",{id:"centerButton"},a.a.createElement(K.Icon,{name:"gps_fixed"}))),a.a.createElement("div",{style:{display:"none"}},a.a.createElement("div",{id:"marker",title:"Marker",className:"marker"}," "),a.a.createElement("div",{id:"popup",className:g.a.olPopup},a.a.createElement("a",{href:"#",id:"popup-closer",className:g.a.olPopupCloser},a.a.createElement(K.Icon,{name:"close"})),a.a.createElement("div",{id:"popup-content"}," "))),a.a.createElement(K.Dialog,{open:Boolean(this.state.openAboutButton),onClose:function(){e.setState({openAboutButton:!1})}},a.a.createElement(K.DialogHeader,null,a.a.createElement(K.DialogTitle,null,"About This Data"),a.a.createElement("a",{className:lo.a.close_button_style,onClick:function(){e.setState({openAboutButton:!1})}},a.a.createElement(K.Icon,{name:"close"}))),a.a.createElement(K.DialogBody,{scrollable:!0,id:"about-this-data"}," ")),a.a.createElement("div",{className:lo.a.about_button},a.a.createElement("a",{className:lo.a.locations_button_style,onClick:this.handleInfoIcon},a.a.createElement(K.Icon,{name:"info"}))))}},{key:"popupHandler",value:function(e,t){var r=document.getElementById("popup-content");if(e&&e.getId()){var n=Object(J.b)(e,g.a)+Object(J.e)(e,g.a);r&&(r.innerHTML=n),this.state.map.getOverlayById("marker").setPosition(t)}}},{key:"componentDidUpdate",value:function(){var e,t=this.props,r=t.trends_settings,n=t.trendSensors,a=t.parameters,o=t.selectedParameter;V();var i,s=this.state.map;Object(J.f)(s),Z(s,!0);var l=new y.a.Feature,c=[];"all"!==this.props.selectedRegion&&"draw"!==this.props.selectedRegion&&(i=Object(v.x)(this.props.selectedRegion))&&i.geometry&&(l=new y.a.Feature({geometry:new y.a.geom.Polygon(i.geometry.coordinates).transform("EPSG:4326","EPSG:3857")}),c.push(l)),this.state.areaPolygonSource.clear(),this.state.areaPolygonSource.addFeatures(c);var u=[];r.map((function(e){!0===e.parameter.lake_regions&&u.push(e.parameter.id)})),e=L(n,o,u,a),this.state.vectorSource.clear(),this.state.vectorSource.addFeatures(e),i?this.state.map.getView().fit(this.state.areaPolygonSource.getExtent(),this.state.map.getSize()):(this.state.map.getView().setZoom(this.state.map.getView().getZoom()-10),this.state.map.getView().setCenter(y.a.proj.fromLonLat(this.state.center)))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.trends_settings,r=e.sensors,n=e.parameters,a=e.selectedParameter,o=[];t.map((function(e){!0===e.parameter.lake_regions&&o.push(e.parameter.id)}));var i=L(r,a,o,n),s=new y.a.source.Vector({features:i}),l=new y.a.source.Cluster({distance:1,source:this.state.vectorSource});this.setState({clusterSource:l});var c=new y.a.layer.Vector({source:l,style:function(e){e.get("features").length;var t,r=e.getProperties().features[0].attributes.trend_type;return"trendUp"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"trendDown"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"overThresholdUp"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"overThresholdDown"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"noTrend"!==r&&""!==r||(t=new y.a.style.Style({image:new y.a.style.Circle({radius:6,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})),t}});c.setZIndex(1);var u=[new y.a.layer.Tile({source:new y.a.source.XYZ({attributions:U(),url:Object(v.bb)()})}),c],p=document.getElementById("popup"),d=document.getElementById("popup-closer"),f=new y.a.Overlay({id:"marker",element:p,autoPan:!0,autoPanAnimation:{duration:250}});d&&(d.onclick=function(){return f.setPosition(void 0),d.blur(),!1});var m,h=new y.a.View({projection:"EPSG:3857",center:y.a.proj.fromLonLat(this.state.center),zoom:this.state.currentZoom,minZoom:5.5,maxZoom:this.state.maxZoom}),b=this;m=new y.a.Map({target:"map",layers:u,view:h,overlays:[f],controls:W()});var =new y.a.interaction.Select;m.addInteraction(),m.getView().on("change:resolution",(function(){d&&(f.setPosition(void 0),d.blur())})),m.on("singleclick",(function(e){.setActive(!1);var t=m.forEachFeatureAtPixel(e.pixel,(function(e){return e}));if(t&&void 0!==t.get("features")&&1===t.get("features").length){var r=t.get("features")[0];b.popupHandler(r,e.coordinate)}else d&&(f.setPosition(void 0),d.blur())})),m.on("pointerdrag",(function(e){Object(J.f)(m)}));var w=document.getElementById("trends_legend"),E="<p class="+g.a.noValueLegend+' style="background: '+Object(v.tb)("noTrend")+"; border-color: "+Object(v.tb)("noTrend")+'; margin-left: 1em;">

',S="<p class="+g.a.upArrowLegend+' style="border-color: '+Object(v.tb)("trendUp")+'; margin-left: 1em; ">

',O="<p class="+g.a.downArrowLegend+' style="border-color: '+Object(v.tb)("trendDown")+'; margin-left: 1em;">

',j="<p class="+g.a.upArrowLegend+' style="border-color: '+Object(v.tb)("overThresholdUp")+';">

',C="<p class="+g.a.downArrowLegend+' style="border-color: '+Object(v.tb)("overThresholdDown")+';">

';w&&(w.innerHTML="
"+S+" - Trending Up
"+O+" - Trending Down
"+E+" - No Data Available
"+j+C+" - Over Threshold
");var k=new y.a.source.Vector({features:[new y.a.Feature({})]});this.setState({areaPolygonSource:k});var P=new y.a.layer.Vector({id:"areaPolygon",source:k,style:[new y.a.style.Style({stroke:new y.a.style.Stroke({color:"rgba(0, 152, 254, 1)",width:2}),fill:new y.a.style.Fill({color:"rgba(254, 254, 254, 0.3)"})})]});m.addLayer(P),Y(h,s,m),this.setState({map:m})}}])&&uo(t.prototype,r),n&&uo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),go=Object(s.connect)((function(e){return{sensors:e.chosenTrends.sensors,threshold_value:e.chosenTrends.threshold,trendSensors:e.chosenTrends.trends_sensors,trendRegions:e.chosenTrends.trends_regions,selectedParameter:e.chosenTrends.parameter,selectedRegion:e.chosenTrends.region,trendViewType:e.chosenTrends.view_type,trendAllRegions:e.chosenTrends.all_regions,parameters:e.parameters.parameters}}))(bo);function vo(e){return(vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wo(e,t){return(wo=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Eo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jo(e);if(t){var a=jo(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return So(this,r)}}function So(e,t){if(t&&("object"===vo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oo(e)}function Oo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Co=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wo(e,t)}(i,e);var t,r,n,o=Eo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Oo(t=o.call(this,e)).handleParameterChange=t.handleParameterChange.bind(Oo(t)),t}return t=i,(r=[{key:"handleParameterChange",value:function(e){var t=this.props.trends_threshold_choice;this.props.onSelectTrendsParameter(e.target.value,t,this.props.trends_view_type)}},{key:"render",value:function(){var e=this.props.trends_settings,t=[],r=[],n=window.configruntime.gd3.parameter_subtitle,o=[];return e&&e.map((function(e){o=$t(e.parameter.title),r.push(a.a.createElement(K.Radio,{id:e.parameter.id,value:e.parameter.id,key:e.parameter.id}," ",o))})),t=t.concat(r),0===r.length&&(t=[a.a.createElement(K.Radio,{id:"9999",value:"9999",key:"9999",disabled:!0}," None Available ")]),a.a.createElement(K.Card,{className:this.props.className},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},"Select Parameter"),a.a.createElement(K.CardSubtitle,null,n)),a.a.createElement(K.CardActions,null,a.a.createElement(K.RadioGroup,{name:"params",value:this.props.chosenParameter,onChange:this.handleParameterChange},t)))}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);Co.propTypes={chosenParameter:Je.a.string.isRequired,className:Je.a.string.isRequired,trends_settings:Je.a.array.isRequired,trends_threshold_choice:Je.a.bool.isRequired,trends_view_type:Je.a.string.isRequired};var ko=Co,Po=Object(s.connect)((function(e){return{chosenParameter:e.chosenTrends.parameter}}),(function(e){return{onSelectTrendsParameter:function(t,r,n){"by-analysis"===n&&e(function(e,t,r){return function(n){n({type:"SELECT_ANALYSIS_PARAMETER",parameter:e,threshold_choice:t}),n({type:qe,view_type:r})}}(t,r,n)),"by-sensors"!==n&&"by-regions"!==n||e(function(e,t,r){return function(n,a){var o=a(),i=(o.chosenTrends.baseline_total_year,o.chosenTrends.rolling_interval,o.chosenTrends.season);n({type:"SELECT_TRENDS_PARAMETER",parameter:e,threshold_choice:t}),n({type:qe,view_type:r}),"by-sensors"===r&&n(Ce(e,0,0,i)),"by-regions"===r&&n(Pe(e,i))}}(t,r,n))}}}))(ko);function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function To(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ro(e,t){return(Ro=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function No(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ao(e);if(t){var a=Ao(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Do(this,r)}}function Do(e,t){if(t&&("object"===xo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Io(e)}function Io(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ao(e){return(Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Lo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ro(e,t)}(i,e);var t,r,n,o=No(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Io(t=o.call(this,e)),"state",void 0),t.state={chosenSeason:t.props.trends_defaults[1].value},Io(t).handleSeasonChange=t.handleSeasonChange.bind(Io(t)),t}return t=i,(r=[{key:"handleSeasonChange",value:function(e){this.setState({chosenSeason:e.target.value}),this.props.onSelectTrendsSeason(e.target.value,this.props.trends_view_type)}},{key:"render",value:function(){var e=this.props.trends_seasons,t=[],r=[];return e&&(r=e.map((function(e){return a.a.createElement(K.Radio,{id:e.id,value:e.id,key:e.id}," ",e.title)}))),t=t.concat(r),0===r.length&&(t=[a.a.createElement(K.Radio,{id:"9998",value:"9998",key:"9998",disabled:!0}," None Available ")]),a.a.createElement(K.Card,{className:lo.a.cardMargin},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},"Select Season"),a.a.createElement(K.CardSubtitle,null,window.configruntime.gd3.season_subtitle)),a.a.createElement(K.CardActions,null,a.a.createElement(K.RadioGroup,{name:"season",value:this.state.chosenSeason.toString(),onChange:this.handleSeasonChange},t)))}}])&&To(t.prototype,r),n&&To(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);Lo.propTypes={trends_view_type:Je.a.string.isRequired,trends_defaults:Je.a.array.isRequired,trends_seasons:Je.a.array.isRequired};var Bo=Lo,Fo=Object(s.connect)(null,(function(e){return{onSelectTrendsSeason:function(t,r){e(function(e,t){return function(r,n){var a=n(),o=(a.chosenTrends.baseline_total_year,a.chosenTrends.rolling_interval,a.chosenTrends.parameter);r({type:"SELECT_TRENDS_SEASON",season:e}),r(We(t)),""!==o&&("by-sensors"===t&&r(Ce(o,0,0,e)),"by-regions"===t&&r(Pe(o,e)))}}(t,r))}}}))(Bo);function Mo(e){return(Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Go(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vo(e,t){return(Vo=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ho(e);if(t){var a=Ho(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Wo(this,r)}}function Wo(e,t){if(t&&("object"===Mo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qo(e)}function qo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ho(e){return(Ho=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var zo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vo(e,t)}(i,e);var t,r,n,o=Uo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),qo(t=o.call(this,e)).handleRegionChange=t.handleRegionChange.bind(qo(t)),t}return t=i,(r=[{key:"handleRegionChange",value:function(e){this.props.onSelectTrendsRegion(e.target.value,this.props.trends_view_type)}},{key:"render",value:function(){var e=this.props.trends_regions,t=[],r=[];return e&&e.map((function(e){"ER"!==e.properties.id.toString().toUpperCase()&&r.push(a.a.createElement(K.Radio,{id:e.properties.id,value:e.properties.id,key:e.properties.id}," ",e.properties.title))})),t=t.concat(r),0===r.length&&(t=[a.a.createElement(K.Radio,{id:"9999",value:"9999",key:"9999",disabled:!0}," None Available ")]),0!==t.length?a.a.createElement(K.Card,{className:lo.a.cardMargin},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},"Select Region"),a.a.createElement(K.CardSubtitle,null,window.configruntime.gd3.region_subtitle)),a.a.createElement(K.CardActions,null,a.a.createElement(K.RadioGroup,{name:"regions",value:this.props.chosenRegion.toString(),onChange:this.handleRegionChange},t))):null}}])&&Go(t.prototype,r),n&&Go(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);zo.propTypes={trends_view_type:Je.a.string.isRequired,trends_regions:Je.a.array.isRequired,chosenRegion:Je.a.string.isRequired};var Zo=zo,Yo=Object(s.connect)((function(e){return{chosenRegion:e.chosenTrends.region}}),(function(e){return{onSelectTrendsRegion:function(t,r){"by-analysis"===r&&e(function(e,t){return function(r){r({type:"SELECT_ANALYSIS_REGION",region:e}),r(We(t))}}(t,r)),"by-sensors"!==r&&"by-regions"!==r||e(Ue(t,r))}}}))(Zo);function Qo(e){return(Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jo(e,t){return(Jo=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ti(e);if(t){var a=ti(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return $o(this,r)}}function $o(e,t){if(t&&("object"===Qo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ei(e)}function ei(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var ri=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jo(e,t)}(i,e);var t,r,n,o=Ko(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ei(t=o.call(this,e)),"state",void 0),t.state={viewSelection:"list-view"},ei(t).clickedViewSelection=t.clickedViewSelection.bind(ei(t)),t}return t=i,(r=[{key:"clickedViewSelection",value:function(e){this.setState({viewSelection:e})}},{key:"render",value:function(){var e,t=Object(v.Ab)(),r=Object(v.xb)(),n=Object(v.zb)(),o=Object(v.Cb)();!0===this.props.show_spinner&&""!==this.props.parameter&&(e=a.a.createElement(st,null));var i="";""!==this.props.sensor_parameter&&(i=a.a.createElement(K.Card,{className:lo.a.cardMargin},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,null,"Trends Selections")),a.a.createElement(K.CardText,null,"Season: ",a.a.createElement("span",{className:lo.a.capitalize_word},this.props.sensor_season)," ",a.a.createElement("br",null),"Parameter: ",a.a.createElement("span",{className:lo.a.capitalize_word},$t(this.props.sensor_parameter.slice(0,-7)))," ",a.a.createElement("br",null),"Region: ",a.a.createElement("span",{className:lo.a.capitalize_word},this.props.sensor_region)," ",a.a.createElement("br",null))));var s="";(screen.width>Object(v.fb)()||"map-view"===this.state.viewSelection)&&(s=a.a.createElement(go,{display_draw:"False",trends_settings:t}));var l="";return screen.width<=Object(v.fb)()&&(l=xr("Map View",this.state.viewSelection,this.clickedViewSelection)),a.a.createElement("div",null,e,a.a.createElement(K.Content,null,l,a.a.createElement("div",{className:u.a.body},a.a.createElement(K.Grid,{className:u.a.noPadding},a.a.createElement(K.Cell,{col:3},a.a.createElement(K.List,{className:lo.a.liststyle},i,a.a.createElement(Fo,{trends_seasons:n,trends_defaults:r,trends_view_type:"by-sensors"}),a.a.createElement(Po,{className:lo.a.parametersCardStyle,trends_settings:t,trends_threshold_choice:!1,trends_defaults:r,trends_view_type:"by-sensors"}),a.a.createElement(Yo,{trends_regions:o,trends_defaults:r,trends_view_type:"by-sensors"}))),a.a.createElement(K.Cell,{col:9},a.a.createElement("div",{className:u.a.rightMap},s))))))}}])&&Xo(t.prototype,r),n&&Xo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),ni=Object(s.connect)((function(e){return{view_type:e.chosenTrends.view_type,parameter:e.chosenTrends.parameter,sensor_season:e.chosenTrends.sensor_season,sensor_region:e.chosenTrends.sensor_region,sensor_parameter:e.chosenTrends.sensor_parameter,show_spinner:e.chosenTrends.show_spinner}}))(ri);function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ii(e,t){return(ii=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function si(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ui(e);if(t){var a=ui(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return li(this,r)}}function li(e,t){if(t&&("object"===ai(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ci(e)}function ci(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ui(e){return(ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}r(87);var pi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}(i,e);var t,r,n,o=si(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ci(t=o.call(this,e)),"state",void 0),t.state={center:[-84.44799549,42.9203417],vectorSource:new y.a.source.Vector,clusterSource:new y.a.source.Cluster({distance:1,source:new y.a.source.Vector}),areaPolygonSource:new y.a.source.Vector,currentZoom:5.5,maxZoom:Object(v.Ib)(),map:new y.a.Map({view:new y.a.View({center:[0,0],zoom:1}),layers:[new y.a.layer.Tile({source:new y.a.source.OSM})],target:"map"}),openAboutButton:!1},ci(t).handleInfoIcon=t.handleInfoIcon.bind(ci(t)),t}return t=i,(r=[{key:"handleInfoIcon",value:function(e){this.setState({openAboutButton:e})}},{key:"render",value:function(){var e=this;return a.a.createElement("div",null,a.a.createElement("div",{id:"map",className:g.a.root}),a.a.createElement("div",{id:"trends_legend",className:g.a.trends_legend}),a.a.createElement("div",{id:"search",style:{position:"absolute",bottom:"10px",left:"25em",padding:"5px"}},a.a.createElement("button",{id:"centerButton"},a.a.createElement(K.Icon,{name:"gps_fixed"}))),a.a.createElement("div",{style:{display:"none"}},a.a.createElement("div",{id:"marker",title:"Marker",className:"marker"}),a.a.createElement("div",{id:"popup",className:g.a.olPopup},a.a.createElement("a",{href:"#",id:"popup-closer",className:g.a.olPopupCloser},a.a.createElement(K.Icon,{name:"close"})),a.a.createElement("div",{id:"popup-content"}))),a.a.createElement(K.Dialog,{open:Boolean(this.state.openAboutButton),onClose:function(){e.setState({openAboutButton:!1})}},a.a.createElement(K.DialogHeader,null,a.a.createElement(K.DialogTitle,null,"About This Data"),a.a.createElement("a",{className:lo.a.close_button_style,onClick:function(){e.setState({openAboutButton:!1})}},a.a.createElement(K.Icon,{name:"close"}))),a.a.createElement(K.DialogBody,{scrollable:!0,id:"about-this-data"}," ")),a.a.createElement("div",{className:lo.a.about_button},a.a.createElement("a",{className:lo.a.locations_button_style,onClick:this.handleInfoIcon},a.a.createElement(K.Icon,{name:"info"}))))}},{key:"popupHandler",value:function(e,t){var r=document.getElementById("popup-content");if(e&&e.getId()){var n=Object(J.d)(e,g.a);r&&(r.innerHTML=n),this.state.map.getOverlayById("marker").setPosition(t)}}},{key:"componentDidUpdate",value:function(){var e,t=this.props,r=t.trendRegions,n=t.trendAllRegions,a=t.trends_settings,o=t.selectedSeason,i=t.parameters,s=t.selectedParameter;V();var l,c=this.state.map;Object(J.f)(c),Z(c,!0);for(var u=new y.a.Feature,p=[],d=0;d<n.length;d++)"ALL"!==n[d]&&"er"!==n[d]&&(l=Object(v.x)(n[d].toLowerCase()))&&l.geometry&&(u=new y.a.Feature({geometry:new y.a.geom.Polygon(l.geometry.coordinates).transform("EPSG:4326","EPSG:3857")}),p.push(u));this.state.areaPolygonSource.clear(),this.state.areaPolygonSource.addFeatures(p);var f=[];a.map((function(e){!0===e.parameter.lake_regions&&f.push(e.parameter.id)})),e=B(r,s,o,f,i),this.state.vectorSource.clear(),this.state.vectorSource.addFeatures(e),l&&(this.state.map.getView().setZoom(this.state.map.getView().getZoom()-10),this.state.map.getView().setCenter(y.a.proj.fromLonLat(this.state.center)))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.trendRegions,r=e.trends_settings,n=e.selectedSeason,a=e.parameters,o=e.selectedParameter,i=[];r.map((function(e){!0===e.parameter.lake_regions&&i.push(e.parameter.id)}));var s=B(t,o,n,i,a),l=new y.a.source.Vector({features:s}),c=new y.a.source.Cluster({distance:1,source:this.state.vectorSource});this.setState({clusterSource:c});var u=new y.a.layer.Vector({source:c,style:function(e){e.get("features").length;var t,r=e.getProperties().features[0].attributes.trend_type;return"trendUp"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"trendDown"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"overThresholdUp"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"overThresholdDown"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"noTrend"!==r&&""!==r||(t=new y.a.style.Style({image:new y.a.style.Circle({radius:6,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})),t}});u.setZIndex(1);var p=[new y.a.layer.Tile({source:new y.a.source.XYZ({attributions:U(),url:Object(v.bb)()})}),u],d=document.getElementById("popup"),f=document.getElementById("popup-closer"),m=new y.a.Overlay({id:"marker",element:d,autoPan:!0,autoPanAnimation:{duration:250}});f&&(f.onclick=function(){return m.setPosition(void 0),f.blur(),!1});var h,b=new y.a.View({projection:"EPSG:3857",center:y.a.proj.fromLonLat(this.state.center),zoom:this.state.currentZoom,minZoom:5.5,maxZoom:this.state.maxZoom}),=this;h=new y.a.Map({target:"map",layers:p,view:b,overlays:[m],controls:W()});var w=new y.a.interaction.Select;h.addInteraction(w),h.getView().on("change:resolution",(function(){f&&(m.setPosition(void 0),f.blur())})),h.on("singleclick",(function(e){w.setActive(!1);var t=h.forEachFeatureAtPixel(e.pixel,(function(e){return e}));if(t&&void 0!==t.get("features")&&1===t.get("features").length){var r=t.get("features")[0];.popupHandler(r,e.coordinate)}else f&&(m.setPosition(void 0),f.blur())})),h.on("pointerdrag",(function(e){Object(J.f)(h)}));var E=document.getElementById("trends_legend"),S="<p class="+g.a.noValueLegend+' style="background: '+Object(v.tb)("noTrend")+"; border-color: "+Object(v.tb)("noTrend")+'; margin-left: 1em;">

',O="<p class="+g.a.upArrowLegend+' style="border-color: '+Object(v.tb)("trendUp")+'; margin-left: 1em; ">

',j="<p class="+g.a.downArrowLegend+' style="border-color: '+Object(v.tb)("trendDown")+'; margin-left: 1em;">

',C="<p class="+g.a.upArrowLegend+' style="border-color: '+Object(v.tb)("overThresholdUp")+';">

',k="<p class="+g.a.downArrowLegend+' style="border-color: '+Object(v.tb)("overThresholdDown")+';">

';E&&(E.innerHTML="
"+O+" - Trending Up
"+j+" - Trending Down
"+S+" - No Data Available
"+C+k+" - Over Threshold
");var P=new y.a.source.Vector({features:[new y.a.Feature({})]});this.setState({areaPolygonSource:P});var x=new y.a.layer.Vector({id:"areaPolygon",source:P,style:[new y.a.style.Style({stroke:new y.a.style.Stroke({color:"rgba(0, 152, 254, 1)",width:2}),fill:new y.a.style.Fill({color:"rgba(254, 254, 254, 0.3)"})})]});h.addLayer(x),Y(b,l,h),this.setState({map:h})}}])&&oi(t.prototype,r),n&&oi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),di=Object(s.connect)((function(e){return{sensors:e.chosenTrends.sensors,threshold_value:e.chosenTrends.threshold,trendRegions:e.chosenTrends.trends_regions,selectedParameter:e.chosenTrends.parameter,selectedSeason:e.chosenTrends.season,selectedRegion:e.chosenTrends.region,trendViewType:e.chosenTrends.view_type,trendAllRegions:e.chosenTrends.all_regions,parameters:e.parameters.parameters}}))(pi);function fi(e){return(fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hi(e,t){return(hi=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function yi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=vi(e);if(t){var a=vi(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return bi(this,r)}}function bi(e,t){if(t&&("object"===fi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gi(e)}function gi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vi(e){return(vi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hi(e,t)}(i,e);var t,r,n,o=yi(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(gi(t=o.call(this,e)),"state",void 0),t.state={viewSelection:"list-view"},gi(t).clickedViewSelection=t.clickedViewSelection.bind(gi(t)),t}return t=i,(r=[{key:"clickedViewSelection",value:function(e){this.setState({viewSelection:e})}},{key:"render",value:function(){var e,t=Object(v.Ab)(),r=Object(v.xb)(),n=Object(v.zb)();!0===this.props.show_spinner&&""!==this.props.parameter&&(e=a.a.createElement(st,null));var o="";""!==this.props.region_parameter&&(o=a.a.createElement(K.Card,{className:lo.a.cardMargin},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,null,"Trends Selections")),a.a.createElement(K.CardText,null,"Season: ",a.a.createElement("span",{className:lo.a.capitalize_word},this.props.region_season)," ",a.a.createElement("br",null),"Parameter: ",a.a.createElement("span",{className:lo.a.capitalize_word},$t(this.props.region_parameter.slice(0,-7)))," ",a.a.createElement("br",null))));var i="";(screen.width>Object(v.fb)()||"map-view"===this.state.viewSelection)&&(i=a.a.createElement(di,{display_draw:"False",trends_settings:t}));var s="";return screen.width<=Object(v.fb)()&&(s=xr("Map View",this.state.viewSelection,this.clickedViewSelection)),a.a.createElement("div",null,e,a.a.createElement(K.Content,null,s,a.a.createElement("div",{className:u.a.body},a.a.createElement(K.Grid,{className:u.a.noPadding},a.a.createElement(K.Cell,{col:3},a.a.createElement(K.List,{className:lo.a.liststyle},o,a.a.createElement(Fo,{trends_seasons:n,trends_defaults:r,trends_view_type:"by-regions"}),a.a.createElement(Po,{className:lo.a.parametersCardStyle,trends_settings:t,trends_threshold_choice:!1,trends_defaults:r,trends_view_type:"by-regions"}))),a.a.createElement(K.Cell,{col:9},a.a.createElement("div",{className:u.a.rightMap},i))))))}}])&&mi(t.prototype,r),n&&mi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),wi=Object(s.connect)((function(e){return{view_type:e.chosenTrends.view_type,show_spinner:e.chosenTrends.show_spinner,parameter:e.chosenTrends.parameter,region_season:e.chosenTrends.region_season,region_parameter:e.chosenTrends.region_parameter}}))(i);function Ei(e){return(Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Si(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Oi(e,t){return(Oi=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pi(e);if(t){var a=Pi(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ci(this,r)}}function Ci(e,t){if(t&&("object"===Ei(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ki(e)}function ki(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pi(e){return(Pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}r(87);var xi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oi(e,t)}(i,e);var t,r,n,o=ji(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ki(t=o.call(this,e)),"state",void 0),t.state={center:[-84.44799549,38.9203417],vectorSource:new y.a.source.Vector,clusterSource:new y.a.source.Cluster({distance:1,source:new y.a.source.Vector}),areaPolygonSource:new y.a.source.Vector,currentZoom:5.5,maxZoom:Object(v.Ib)(),openMenu:!1,map:new y.a.Map({view:new y.a.View({center:[0,0],zoom:1}),layers:[new y.a.layer.Tile({source:new y.a.source.OSM})],target:"map"}),openAboutButton:!1},t}return t=i,(r=[{key:"render",value:function(){return a.a.createElement("div",null,a.a.createElement("div",{id:"map",className:g.a.root}," "),a.a.createElement("div",{id:"trends_legend",className:g.a.trends_legend}," "),a.a.createElement("div",{id:"search",style:{position:"absolute",bottom:"10px",left:"25em",padding:"5px"}},a.a.createElement("button",{id:"centerButton"},a.a.createElement(K.Icon,{name:"gps_fixed"}))),a.a.createElement("div",{style:{display:"none"}},a.a.createElement("div",{id:"marker",title:"Marker",className:"marker"}," "),a.a.createElement("div",{id:"popup",className:g.a.olPopup},a.a.createElement("a",{href:"#",id:"popup-closer",className:g.a.olPopupCloser},a.a.createElement(K.Icon,{name:"close"})),a.a.createElement("div",{id:"popup-content"}," ")),a.a.createElement("div",{id:"ol-drawcirclecontrol",className:g.a.olDrawCircleButton+" "+g.a.olSharedDrawStyles+" drawing_buttons"}," "),a.a.createElement("button",{id:"drawCircleButton",title:"Click to Draw a Circle"},a.a.createElement(K.Icon,{name:"panorama_fish_eye"})),a.a.createElement("div",{id:"ol-drawsquarecontrol",className:g.a.olDrawSquareButton+" "+g.a.olSharedDrawStyles+" drawing_buttons"}," "),a.a.createElement("button",{id:"drawSquareButton",title:"Click to Draw a Square"},a.a.createElement(K.Icon,{name:"crop_square"})),a.a.createElement("div",{id:"ol-drawcustomcontrol",className:g.a.olDrawCustomButton+" "+g.a.olSharedDrawStyles+" drawing_buttons"}," "),a.a.createElement("button",{id:"drawCustomButton",title:"Click to Draw a Custom Shape"},a.a.createElement(K.Icon,{name:"star_border"})),a.a.createElement("div",{id:"ol-drawclearcontrol",className:g.a.olDrawClearButton+" "+g.a.olSharedDrawStyles+" drawing_buttons"}," "),a.a.createElement("button",{id:"drawClearButton",title:"Click to Reset Drawing Selection"},a.a.createElement(K.Icon,{name:"clear"}))))}},{key:"selectShapeLocation",value:function(e){this.props.onSelectShapeLocationTrend(e)}},{key:"popupHandler",value:function(e,t){var r=document.getElementById("popup-content");if(e&&e.getId()){var n=Object(J.b)(e,g.a)+Object(J.a)(e,g.a);r&&(r.innerHTML=n),this.state.map.getOverlayById("marker").setPosition(t)}}},{key:"componentDidUpdate",value:function(){var e,t,r=this.props,n=r.threshold_value,a=r.trendSensors,o=r.parameters,i=r.selectedParameter;Z(this.state.map,!0,this.selectShapeLocation.bind(this),this.props.drawn_sensors);var s=new y.a.Feature,l=[];"all"!==this.props.selectedRegion&&"draw"!==this.props.selectedRegion&&(t=Object(v.y)(this.props.selectedRegion))&&t.geometry&&(s=new y.a.Feature({geometry:new y.a.geom.Polygon(t.geometry.coordinates).transform("EPSG:4326","EPSG:3857")}),l.push(s)),this.state.areaPolygonSource.clear(),this.state.areaPolygonSource.addFeatures(l),e=F(a,i,n,o),this.state.vectorSource.clear(),this.state.vectorSource.addFeatures(e),t?this.state.map.getView().fit(this.state.areaPolygonSource.getExtent(),this.state.map.getSize()):e.length>0&&this.state.map.getView().fit(this.state.vectorSource.getExtent(),this.state.map.getSize())}},{key:"componentDidMount",value:function(){var e=this.props,t=e.threshold,r=e.sensors,n=e.parameters,a=F(r,e.selectedParameter,t,n),o=new y.a.source.Vector({features:a}),i=new y.a.source.Cluster({distance:1,source:this.state.vectorSource}),s=new y.a.layer.Vector({source:i,style:function(e){var t,r=e.getProperties().features[0].attributes.trend_type;return"trendUp"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"trendDown"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"overThresholdUp"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"overThresholdDown"===r?t=new y.a.style.Style({image:new y.a.style.RegularShape({points:3,radius:10,rotation:3.141592654,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})}):"noTrend"!==r&&""!==r||(t=new y.a.style.Style({image:new y.a.style.Circle({radius:4,fill:new y.a.style.Fill({color:Object(v.tb)(r)}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})})),t}}),l=new y.a.source.Vector,c=new y.a.layer.Vector({source:l,name:"drawing_layer"});s.setZIndex(1);var u=[new y.a.layer.Tile({source:new y.a.source.XYZ({attributions:U(),url:Object(v.bb)()})}),s,c],p=document.getElementById("popup"),d=document.getElementById("popup-closer"),f=new y.a.Overlay({id:"marker",element:p,autoPan:!0,autoPanAnimation:{duration:250}});d&&(d.onclick=function(){return f.setPosition(void 0),d.blur(),!1});var m,h=new y.a.View({projection:"EPSG:3857",center:y.a.proj.fromLonLat(this.state.center),zoom:this.state.currentZoom,minZoom:5.5,maxZoom:this.state.maxZoom});window.app={};var b=[],=this,w=window.app;w.drawClearControl=function(e){var t=e||{},r=document.getElementById("drawClearButton"),n=function(){m.getInteractions().forEach((function(e){e instanceof y.a.interaction.Draw&&m.removeInteraction(e)})),c.getSource().clear(),b=[];var e=[];e[0]="reset_points",.selectShapeLocation(e);var t=document.getElementById("draw");t&&t.click()};r&&(r.addEventListener("click",n,!1),r.addEventListener("touchstart",n,!1));var a=document.getElementById("ol-drawclearcontrol");a&&r&&(a.className+=" ol-unselectable ol-control",a.appendChild(r),y.a.control.Control.call(this,{element:a,target:t.target}))};var E=window.app;E.drawSquareControl=function(e){var t=e||{},r=document.getElementById("drawSquareButton"),n=function(){var e=new y.a.interaction.Draw({type:"Circle",source:l,geometryFunction:y.a.interaction.Draw.createRegularPolygon(4)});m.addInteraction(e),e.on("drawstart",(function(){j.setActive(!1),b=[]})),e.on("drawend",(function(e){c.getSource().clear(),j.setActive(!0),m.getInteractions().forEach((function(e){e instanceof y.a.interaction.Draw&&m.removeInteraction(e)}));var t=e.feature.getGeometry();h.fit(t.getExtent(),m.getSize());for(var r,n=s.getSource().getFeatures(),a=0;a<n.length;a++)r=n[a].getGeometry().getExtent(),t.intersectsExtent(r)&&b.push(n[a]);var o=[];if(b.length>0)for(var i=0;i<b.length;i++)for(var l=b[i].get("features"),u=0;u<l.length;u++){var p=l[u].attributes.name;o.includes(p.toString())||o.push(p)}
.selectShapeLocation(o)}))};r&&(r.addEventListener("click",n,!1),r.addEventListener("touchstart",n,!1));var a=document.getElementById("ol-drawsquarecontrol");a&&r&&(a.className+=" ol-unselectable ol-control",a.appendChild(r),y.a.control.Control.call(this,{element:a,target:t.target}))};var S=window.app;S.drawCircleControl=function(e){var t=e||{},r=document.getElementById("drawCircleButton"),n=function(){var e=new y.a.interaction.Draw({type:"Circle",source:l});m.addInteraction(e),e.on("drawstart",(function(){j.setActive(!1),b=[]})),e.on("drawend",(function(e){c.getSource().clear(),j.setActive(!0),m.getInteractions().forEach((function(e){e instanceof y.a.interaction.Draw&&m.removeInteraction(e)}));var t=e.feature.getGeometry();h.fit(t.getExtent(),m.getSize());for(var r,n=s.getSource().getFeatures(),a=0;a<n.length;a++)r=n[a].getGeometry().getExtent(),t.intersectsExtent(r)&&b.push(n[a]);var o=[];if(b.length>0)for(var i=0;i<b.length;i++)for(var l=b[i].get("features"),u=0;u<l.length;u++){var p=l[u].attributes.name;o.includes(p.toString())||o.push(p)}
.selectShapeLocation(o)}))};r&&(r.addEventListener("click",n,!1),r.addEventListener("touchstart",n,!1));var a=document.getElementById("ol-drawcirclecontrol");a&&r&&(a.className+=" ol-unselectable ol-control",a.appendChild(r),y.a.control.Control.call(this,{element:a,target:t.target}))};var O=window.app;O.drawCustomControl=function(e){var t=e||{},r=document.getElementById("drawCustomButton"),n=function(){var e=new y.a.interaction.Draw({type:"Polygon",source:l});m.addInteraction(e),e.on("drawstart",(function(){j.setActive(!1),b=[]})),e.on("drawend",(function(e){c.getSource().clear(),j.setActive(!0),m.getInteractions().forEach((function(e){e instanceof y.a.interaction.Draw&&m.removeInteraction(e)}));var t=e.feature.getGeometry();h.fit(t.getExtent(),m.getSize());for(var r,n=s.getSource().getFeatures(),a=0;a<n.length;a++)r=n[a].getGeometry().getExtent(),t.intersectsExtent(r)&&b.push(n[a]);var o=[];if(b.length>0)for(var i=0;i<b.length;i++)for(var l=b[i].get("features"),u=0;u<l.length;u++){var p=l[u].attributes.name;o.includes(p.toString())||o.push(p)}.selectShapeLocation(o)}))};r&&(r.addEventListener("click",n,!1),r.addEventListener("touchstart",n,!1));var a=document.getElementById("ol-drawcustomcontrol");a&&r&&(a.className+=" ol-unselectable ol-control",a.appendChild(r),y.a.control.Control.call(this,{element:a,target:t.target}))},y.a.inherits(w.drawClearControl,y.a.control.Control),y.a.inherits(E.drawSquareControl,y.a.control.Control),y.a.inherits(S.drawCircleControl,y.a.control.Control),y.a.inherits(O.drawCustomControl,y.a.control.Control),m=new y.a.Map({target:"map",layers:u,view:h,overlays:[f],controls:W().extend([new S.drawCircleControl,new E.drawSquareControl,new O.drawCustomControl,new w.drawClearControl])});var j=new y.a.interaction.Select;m.addInteraction(j),m.getView().on("change:resolution",(function(){d&&(f.setPosition(void 0),d.blur())})),m.on("singleclick",(function(e){j.setActive(!1);var t=m.forEachFeatureAtPixel(e.pixel,(function(e){return e}));if(t&&void 0!==t.get("features")&&1===t.get("features").length){var r=t.get("features")[0];.popupHandler(r,e.coordinate)}else d&&(f.setPosition(void 0),d.blur())})),m.on("pointerdrag",(function(e){Object(J.f)(m)}));var C=document.getElementById("trends_legend"),k="<p class="+g.a.noValueLegend+' style="background: '+Object(v.tb)("noTrend")+"; border-color: "+Object(v.tb)("noTrend")+'; margin-left: 1em;">

',P="<p class="+g.a.upArrowLegend+' style="border-color: '+Object(v.tb)("trendUp")+'; margin-left: 1em; ">

',x="<p class="+g.a.downArrowLegend+' style="border-color: '+Object(v.tb)("trendDown")+'; margin-left: 1em;">

',T="<p class="+g.a.upArrowLegend+' style="border-color: '+Object(v.tb)("overThresholdUp")+';">

',R="<p class="+g.a.downArrowLegend+' style="border-color: '+Object(v.tb)("overThresholdDown")+';">

';C&&(C.innerHTML="
"+P+" - Trending Up
"+x+" - Trending Down
"+k+" - No Data Available
"+T+R+" - Over Threshold
");var N=new y.a.source.Vector({features:[new y.a.Feature({})]}),D=new y.a.layer.Vector({id:"areaPolygon",source:N,style:[new y.a.style.Style({stroke:new y.a.style.Stroke({color:"rgba(0, 152, 254, 1)",width:2}),fill:new y.a.style.Fill({color:"rgba(254, 254, 254, 0.3)"})})]});m.addLayer(D),Y(h,o,m);var I=[],A=Object(v.g)(),L=Object(v.f)();A&&A.map((function(e){if(L){var t=L.findIndex((function(t){return t.title===e.title}));t>-1&&!0===L[t].visibility?I.push(new y.a.layer.Image({source:new y.a.source.ImageWMS({url:e.wms,params:{LAYERS:e.id}}),name:e.title,opacity:L[t].opacity,visible:!0})):t>-1&&!1===L[t].visibility&&I.push(new y.a.layer.Image({name:e.title,visible:!1}))}})),I.length>0&&(this.state.map.getLayers().getArray().slice().map((function(e){var t=e.get("name");I.map((function(r){r.get("name")===t&&m.removeLayer(e)}))})),I.map((function(e){!0===e.get("visible")&&m.addLayer(e)}))),this.setState({clusterSource:i,areaPolygonSource:N,map:m})}}])&&Si(t.prototype,r),n&&Si(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Ti=Object(s.connect)((function(e){return{sensors:e.chosenTrends.sensors,threshold_value:e.chosenTrends.threshold,trendSensors:e.chosenTrends.trends_sensors,selectedRegion:e.chosenTrends.region,selectedParameter:e.chosenTrends.parameter,parameters:e.parameters.parameters}}),(function(e){return{onSelectShapeLocationTrend:function(t){e(function(e){return function(t){t({type:"ADD_CUSTOM_TREND_LOCATIONS_FILTER",selectedPointsLocations:e})}}(t))}}}))(xi);function Ri(e){return(Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ni(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Di(e,t){return(Di=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Ii(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Bi(e);if(t){var a=Bi(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ai(this,r)}}function Ai(e,t){if(t&&("object"===Ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Li(e)}function Li(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bi(e){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Fi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Di(e,t)}(i,e);var t,r,n,o=Ii(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Li(t=o.call(this,e)),"state",void 0),t.state={chosenThreshold:Number(t.props.chosenThreshold)?Number(t.props.chosenThreshold):Number(""),thresholdMin:t.props.trends_defaults[4].value,thresholdMax:t.props.trends_defaults[5].value},Li(t).handleThresholdChooseValue=t.handleThresholdChooseValue.bind(Li(t)),t}return t=i,(r=[{key:"handleThresholdChooseValue",value:function(e){var t=e.target.value;t<this.state.thresholdMin&&(t=this.state.thresholdMin),t>this.state.thresholdMax&&(t=this.state.thresholdMax),t=parseFloat(t),this.setState({chosenThreshold:t}),this.props.onSelectTrendsThreshold(t)}},{key:"render",value:function(){var e,t=this.props.trends_threshold_choice,r=this.props.trends_thresholds,n=this.props.chosenParameter,o=[],i=[];if(!1===t){if(r&&n)for(var s=0;s<r.length;s++)r[s].parameter.id===n&&(i=r[s].thresholds.map((function(e){return a.a.createElement("p",null,e.title,": ",e.value," ")})),o=o.concat(i));e=a.a.createElement(K.Card,{className:lo.a.cardMargin},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},"Threshold")),a.a.createElement(K.CardText,null,o))}if(!0===t){if(r&&n)for(var l=0;l<r.length;l++)r[l].parameter.id===n&&(i=r[l].thresholds.map((function(e){return a.a.createElement("option",{value:e.value,key:e.value,id:e.title}," ",e.title," ")})),o=(o=o.concat(a.a.createElement("option",{value:"none",key:0}," Enter a Value"))).concat(i));e=a.a.createElement(K.Card,{className:lo.a.cardMargin,key:"Threshold"},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},"Select Threshold Value"),a.a.createElement(K.CardSubtitle,null,window.configruntime.gd3.threshold_subtitle)),a.a.createElement(K.CardText,null,a.a.createElement(K.Grid,null,a.a.createElement(K.Cell,{col:6},a.a.createElement(Kt,{className:lo.a.select,value:this.state.chosenThreshold.toString(),onChange:this.handleThresholdChooseValue},o)),a.a.createElement(K.Cell,{col:6},a.a.createElement(K.Textfield,{floatingLabel:"Threshold",type:"number",step:"any",min:this.state.thresholdMin,max:this.state.thresholdMax,className:lo.a.textField,value:this.state.chosenThreshold.toString(),onChange:this.handleThresholdChooseValue,helptext:"Must be a Number"})))))}return 0===i.length&&(e=a.a.createElement(K.Card,{className:lo.a.cardMargin},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},"Select Threshold"),a.a.createElement(K.CardSubtitle,null,window.configruntime.gd3.threshold_none_subtitle)),a.a.createElement(K.CardText,null,"None Available"))),e}}])&&Ni(t.prototype,r),n&&Ni(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);Fi.propTypes={chosenParameter:Je.a.string.isRequired,trends_thresholds:Je.a.array.isRequired,trends_threshold_choice:Je.a.bool.isRequired,trends_defaults:Je.a.array.isRequired};var Mi=Fi,Gi=Object(s.connect)((function(e){return{chosenThreshold:e.chosenTrends.threshold,chosenParameter:e.chosenTrends.parameter}}),(function(e){return{onSelectTrendsThreshold:function(t){e(function(e){return{type:"SELECT_TRENDS_THRESHOLD",threshold:e}}(t))}}}))(Mi);function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ui(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wi(e,t){return(Wi=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function qi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Zi(e);if(t){var a=Zi(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Hi(this,r)}}function Hi(e,t){if(t&&("object"===Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zi(e)}function zi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zi(e){return(Zi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Yi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wi(e,t)}(i,e);var t,r,n,o=qi(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(zi(t=o.call(this,e)),"state",void 0),t.state={baselinePeriod:t.props.chosenBaseline,baselineMin:0,baselineMax:30,rollingPeriod:t.props.chosenRolling,rollingMin:0,rollingMax:30},zi(t).handleBaselineChange=t.handleBaselineChange.bind(zi(t)),zi(t).handleRollingChange=t.handleRollingChange.bind(zi(t)),t}return t=i,(r=[{key:"handleBaselineChange",value:function(e){var t=e.target.value;t<this.state.baselineMin&&(t=this.state.baselineMin),t>this.state.baselineMax&&(t=this.state.baselineMax),t=parseInt(t),this.setState({baselinePeriod:t}),this.props.onSelectTrendsCalcBaselineSetting(t)}},{key:"handleRollingChange",value:function(e){var t=e.target.value;t<this.state.rollingMin&&(t=this.state.rollingMin),t>this.state.rollingMax&&(t=this.state.rollingMax),t=parseInt(t),this.setState({rollingPeriod:t}),this.props.onSelectTrendsCalcRollingSetting(t)}},{key:"render",value:function(){var e;return screen.width<=Object(v.fb)()&&(e=a.a.createElement("div",null,a.a.createElement("br",null),a.a.createElement("br",null))),a.a.createElement(K.Card,{className:lo.a.cardMargin,key:"calculate"},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},"Change Calculation Setting"),a.a.createElement(K.CardSubtitle,null,window.configruntime.gd3.calculation_subtitle)),e,a.a.createElement(K.CardText,null,a.a.createElement(K.Grid,null,a.a.createElement(K.Cell,{col:6},a.a.createElement(K.Textfield,{floatingLabel:"Baseline (yr)",type:"number",min:this.state.baselineMin,max:this.state.baselineMax,className:lo.a.textField,value:this.state.baselinePeriod,onChange:this.handleBaselineChange,helptext:"Must be a Number"})),a.a.createElement(K.Cell,{col:6},a.a.createElement(K.Textfield,{floatingLabel:"Rolling (yr)",type:"number",min:this.state.rollingMin,max:this.state.rollingMax,className:lo.a.textField,value:this.state.rollingPeriod,onChange:this.handleRollingChange,helptext:"Must be a Number"})))))}}])&&Ui(t.prototype,r),n&&Ui(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);Yi.propTypes={trends_defaults:Je.a.array.isRequired};var Qi=Yi,Xi=Object(s.connect)((function(e){return{chosenCalculationSetting:e.chosenTrends.threshold,chosenParameter:e.chosenTrends.parameter,chosenBaseline:e.chosenTrends.baseline_total_year,chosenRolling:e.chosenTrends.rolling_interval}}),(function(e){return{onSelectTrendsCalcBaselineSetting:function(t){e(function(e){return{type:"SELECT_TRENDS_CALC_BASELINE_SETTING",baseline_total_year:e}}(t))},onSelectTrendsCalcRollingSetting:function(t){e(function(e){return{type:"SELECT_TRENDS_CALC_ROLLING_SETTING",rolling_interval:e}}(t))}}}))(Qi);function Ji(e){return(Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ki(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $i(e,t){return($i=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ns(e);if(t){var a=ns(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ts(this,r)}}function ts(e,t){if(t&&("object"===Ji(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rs(e)}function rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ns(e){return(ns=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var as=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$i(e,t)}(i,e);var t,r,n,o=es(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(rs(t=o.call(this,e)),"state",void 0),t.state={showResults:!1},rs(t).handleClickAnalysis=t.handleClickAnalysis.bind(rs(t)),t}return t=i,(r=[{key:"handleClickAnalysis",value:function(){this.state.showResults=!0;var e=this.props.chosenParameter,t=this.props.chosenRegion,r=this.props.baselinePeriod,n=this.props.rollingPeriod;this.props.onClickAnalysis(e,t,r,n)}},{key:"render",value:function(){var e,t=this,r=0,n=0;return!0===this.state.showResults&&(r=this.props.trendNumberCompleted,n=this.props.originalSensors.filter((function(e){return e.parameters.indexOf(t.props.chosenParameter)>=0})).length),e=""===this.props.chosenRegion||""===this.props.chosenParameter||""===this.props.baselinePeriod||""===this.props.rollingPeriod||isNaN(this.props.baselinePeriod)||isNaN(this.props.rollingPeriod)||"none"===this.props.thresholdChooseValue||void 0===this.props.thresholdChooseValue||isNaN(this.props.thresholdChooseValue)?a.a.createElement(K.Button,{disabled:!0,raised:!0,className:lo.a.submitButtonStyle,onClick:this.handleClickAnalysis}," Apply Settings "):a.a.createElement(K.Button,{raised:!0,className:lo.a.submitButtonStyle,onClick:this.handleClickAnalysis}," Apply Settings "),a.a.createElement("div",null,e,a.a.createElement("div",{className:lo.a.counterText},"Processed: ",r,a.a.createElement("br",null),"Available: ",n))}}])&&Ki(t.prototype,r),n&&Ki(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);as.propTypes={chosenParameter:Je.a.string.isRequired,chosenRegion:Je.a.string.isRequired,baselinePeriod:Je.a.oneOfType([Je.a.string,Je.a.number]),rollingPeriod:Je.a.oneOfType([Je.a.string,Je.a.number]),thresholdChooseValue:Je.a.oneOfType([Je.a.string,Je.a.number]),trends_defaults:Je.a.array.isRequired};var os=as,is=Object(s.connect)((function(e){return{chosenParameter:e.chosenTrends.parameter,chosenRegion:e.chosenTrends.region,baselinePeriod:e.chosenTrends.baseline_total_year,rollingPeriod:e.chosenTrends.rolling_interval,thresholdChooseValue:e.chosenTrends.threshold,originalSensors:e.chosenTrends.sensors,trendNumberCompleted:e.chosenTrends.number_to_filter,parameters:e.sensors.parameters}}),(function(e){return{onClickAnalysis:function(t,r,n,a){e(ze(r)),e(je(t,n,a))}}}))(os);function ss(e){return(ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ls(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cs(e,t){return(cs=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function us(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=fs(e);if(t){var a=fs(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ps(this,r)}}function ps(e,t){if(t&&("object"===ss(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ds(e)}function ds(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fs(e){return(fs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var ms=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cs(e,t)}(i,e);var t,r,n,o=us(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ds(t=o.call(this,e)),"state",void 0),t.state={viewSelection:"list-view"},ds(t).clickedViewSelection=t.clickedViewSelection.bind(ds(t)),t}return t=i,(r=[{key:"clickedViewSelection",value:function(e){this.setState({viewSelection:e})}},{key:"render",value:function(){var e,t=Object(v.vb)(),r=Object(v.wb)(),n=Object(v.ub)();!0===this.props.show_spinner&&""!==this.props.parameter&&(e=a.a.createElement(st,null));var o="";(screen.width>Object(v.fb)()||"map-view"===this.state.viewSelection)&&(o=a.a.createElement(Ti,{display_trends:"True",display_draw:"True",chosen_region:"all"}));var i="";return screen.width<=Object(v.fb)()&&(i=xr("Map View",this.state.viewSelection,this.clickedViewSelection)),a.a.createElement("div",null,e,a.a.createElement(K.Content,null,i,a.a.createElement("div",{className:u.a.body},a.a.createElement(K.Grid,{className:u.a.noPadding},a.a.createElement(K.Cell,{col:3},a.a.createElement(Po,{className:Vr.a.parametersCardStyle,trends_settings:t,trends_threshold_choice:!0,trends_defaults:r,trends_view_type:"by-analysis"}),a.a.createElement(K.List,{className:Vr.a.liststyle},a.a.createElement(Xi,{trends_defaults:r}),a.a.createElement(Gi,{trends_thresholds:t,trends_threshold_choice:!0,trends_defaults:r}),a.a.createElement(Yo,{trends_regions:n,trends_defaults:r,trends_view_type:"by-analysis"})),a.a.createElement("div",{className:Vr.a.actionStyle},a.a.createElement(is,{trends_defaults:r,trends_view_type:"by-analysis"}))),a.a.createElement(K.Cell,{col:9},a.a.createElement("div",{className:u.a.rightMap},a.a.createElement(K.Card,null,o)))))))}}])&&ls(t.prototype,r),n&&ls(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),hs=Object(s.connect)((function(e){return{show_spinner:e.chosenTrends.show_spinner}}))(ms),ys=r(523),bs=r.n(ys);function gs(e){return(gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ws(e,t){return(ws=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Os(e);if(t){var a=Os(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ss(this,r)}}function Ss(e,t){if(t&&("object"===gs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Os(e){return(Os=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var js=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ws(e,t)}(i,e);var t,r,n,o=Es(i);function i(){return vs(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e,t="#/detail/location/"+this.props.sensorName,r=this;return this.props.categories&&Object.keys(this.props.categories).length>0&&(e=Object.keys(this.props.categories).map((function(e){return a.a.createElement(K.Tab,{active:r.props.selected===e,key:e,href:t+"/"+e},a.a.createElement("span",{className:bs.a.tabTextStyle},e))}))),a.a.createElement("div",null,a.a.createElement(K.Tabbar,{key:"detail_tabs"},e))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Cs(e){return(Cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ks(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ps(e,t){return(Ps=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function xs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Rs(e);if(t){var a=Rs(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ts(this,r)}}function Ts(e,t){if(t&&("object"===Cs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Rs(e){return(Rs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}r(87);var Ns=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ps(e,t)}(i,e);var t,r,n,o=xs(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,n=[{key:"getColor",value:function(e){var t=window.configruntime.gd3.sourcecolor;return void 0!==t[e]?t[e]:"#17495B"}}],(r=[{key:"render",value:function(){return a.a.createElement("div",{id:"miniMap",className:"miniMap",style:{height:"200px",width:"100%"}})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.center,r=e.sensor,n=new y.a.Feature({geometry:new y.a.geom.Point(t).transform("EPSG:4326","EPSG:3857")}),a='\t';n.setStyle(new y.a.style.Style({image:new y.a.style.Icon({anchor:[.5,1],src:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(a),scale:1})}));var o=new y.a.source.Vector({features:[n]}),i=new y.a.layer.Vector({source:o}),s=[new y.a.layer.Tile({source:new y.a.source.XYZ({attributions:U(),url:Object(v.bb)()})}),i];new y.a.Map({target:"miniMap",layers:s,view:new y.a.View({projection:"EPSG:3857",center:y.a.proj.fromLonLat(this.props.center),zoom:5,minZoom:Object(v.Gb)()}),controls:q()})}}])&&ks(t.prototype,r),n&&ks(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Ds(e){return(Ds="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Is(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function As(e,t){return(As=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Ls(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ms(e);if(t){var a=Ms(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Bs(this,r)}}function Bs(e,t){if(t&&("object"===Ds(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fs(e)}function Fs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ms(e){return(Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Gs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&As(e,t)}(i,e);var t,r,n,o=Ls(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Fs(t=o.call(this,e)),"state",void 0),t.state={},t}return t=i,(r=[{key:"render",value:function(){var e=this,t=[],r=[];return this.props.category_parameters.map((function(n){var o=e.props.selected_parameters.includes(n.name),i=!1;e.props.maxParameters>0&&!o&&e.props.selected_parameters.length>=e.props.maxParameters&&(i=!0),r=$t(n.title),t.push(a.a.createElement("div",{key:n.name},a.a.createElement(K.FormField,{id:n.name,key:n.name},a.a.createElement(K.Checkbox,{onChange:function(){e.props.handleSelectParam(n.name)},value:n.name,key:n.name,name:"param",checked:o,disabled:i}),a.a.createElement("label",null,r))))})),a.a.createElement("div",null,t)}}])&&Is(t.prototype,r),n&&Is(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Vs=r(20),Us=r(11),Ws=r.n(Us),qs={},Hs=r(46),zs=30,Zs=60;qs.create=function(e,t,r){Hs.select(e).append("svg").attr("class","d3").attr("class",r.boxClass).attr("width",t.width).attr("height",t.height);this.update(e,r)},qs.update=function(e,t){this.drawPoints(e,t)},qs.destroy=function(){},qs.drawPoints=function(e,t){var r=t.data,n=t.height,a=t.lineClass,o=t.rectClass,i=t.circleClass,s=t.centerClass,l=t.outlierClass,c=t.medianClass,u=t.boxClass,p=t.startAtZero;n=n-zs-Zs+1,r=r.sort(Hs.ascending);var d=Hs.select(e).selectAll("svg");d.selectAll("*").remove();var f=d.append("g").attr("transform","translate(50,36)"),m=r.length,h=p?0:r[0],y=r[m-1],b=Xs(1.5),g=r.quartiles=Qs(r),v=b&&b.call(this,r),=v&&v.map((function(e){return r[e]})),w=v?Hs.range(0,v[0]).concat(Hs.range(v[1]+1,m)):Hs.range(m),E=Hs.scaleLinear().domain([h,y]).range([n,0]);this.chart=E;var S=a+" center "+s;f.selectAll("line.center").data(?[]:[]).enter().insert("line","rect").attr("class",S).style("opacity",1).attr("x1",25).attr("y1",(function(e){return E(e[0])})).attr("x2",25).attr("y2",(function(e){return E(e[1])}));var O="box "+u+" "+o;f.selectAll("rect.box").data([g]).enter().append("rect").attr("class",O).attr("x",0).attr("y",(function(e){return E(e[2])})).attr("width",50).attr("height",(function(e){return E(e[0])-E(e[2])}));var j="median "+c+" "+a;f.selectAll("line.median").data([g[1]]).enter().append("line").attr("class",j).attr("x1",0).attr("y1",E).attr("x2",50).attr("y2",E);var C="whisker "+a+" "+i;f.selectAll("line.whisker").data(||[]).enter().insert("line","circle , text").attr("class",C).attr("x1",0).attr("y1",E).attr("x2",50).attr("y2",E).style("opacity",1);var k="circle "+l;f.selectAll("circle.outlier").data(w,Number).enter().insert("circle","text").attr("class",k).attr("r",2).attr("cx",25).attr("cy",(function(e){return E(r[e])})).style("opacity",1);var P=E.tickFormat(8);f.selectAll("text.box").data(g).enter().append("text").attr("class",u).attr("dy",".3em").attr("dx",(function(e,t){return 1&t?6:-6})).attr("x",(function(e,t){return 1&t?50:0})).attr("y",E).attr("text-anchor",(function(e,t){return 1&t?"start":"end"})).text(P),f.selectAll("text.whisker").data(||[]).enter().append("text").attr("class","whisker").attr("dy",".3em").attr("dx",6).attr("x",50).attr("y",E).text(P).style("opacity",1)};var Ys=qs;function Qs(e){return[Hs.quantile(e,.25),Hs.quantile(e,.5),Hs.quantile(e,.75)]}function Xs(e){return function(t,r){var n=t.quartiles[0],a=t.quartiles[2],o=(a-n)e;r=-1;for(var i=t.length;t[++r]<n-o;);for(;t[--i]>a+o;);return[r,i]}}function Js(e){return(Js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ks(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function el(e,t){return(el=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function tl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=nl(e);if(t){var a=nl(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return rl(this,r)}}function rl(e,t){if(t&&("object"===Js(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var al=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&el(e,t)}(i,e);var t,r,n,o=tl(i);function i(){return Ks(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentDidMount",value:function(){var e=this._rootNode;Ys.create(e,{width:200,height:400},this.getBoxAndWhiskersState())}},{key:"componentDidUpdate",value:function(){var e=this._rootNode;Ys.update(e,this.getBoxAndWhiskersState())}},{key:"getBoxAndWhiskersState",value:function(){return{width:200,height:400,boxClass:Ws.a.box,lineClass:Ws.a.line,rectClass:Ws.a.rect,circleClass:Ws.a.circle,centerClass:Ws.a.center,outlierClass:Ws.a.outlier,medianClass:Ws.a.median_line,data:this.props.data,startAtZero:this.props.startAtZero}}},{key:"componentWillUnmount",value:function(){Ys.destroy(this._rootNode)}},{key:"_setRef",value:function(e){this._rootNode=e}},{key:"render",value:function(){return a.a.createElement("div",{className:"box-container",ref:this._setRef.bind(this)})}}])&&$s(t.prototype,r),n&&$s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(al,"propTypes",{data:Je.a.array});var ol=al,il={},sl=r(46),ll=30,cl=20,ul=50,pl=50;il.create=function(e,t,r){sl.select(e).append("svg").attr("class","d3").attr("width",t.width).attr("height",t.height);this.update(e,r)},il.update=function(e,t){this._drawPoints(e,t)},il.destroy=function(){},il._scales=function(e,t,r){if(!t)return null;var n=e.offsetWidth-pl-cl,a=e.offsetHeight-ll-ul,o=sl.scaleTime().range([0,n]);r.use_sensor_extent?o.domain([r.selectedStartDate,r.selectedEndDate]):o.domain(sl.extent(t,(function(e){return e.date})));var i=sl.extent(t,(function(e){return e.average})),s=i[1]-i[0],l=sl.scaleLinear().range([a,0]);return r.startAtZero?l.domain([0-.02i[1],sl.max(t,(function(e){return e.average}))+.02i[1]]):l.domain([sl.min(t,(function(e){return e.average}))-.02s,sl.max(t,(function(e){return e.average}))+.02*s]),{x:o,y:l}},il.drawPoints=function(e,t){var r=t.width,n=t.height,a=t.sources,o=t.displayLines,i=t.startAtZero,s=t.binType,l=t.tooltipClass,c=t.overlayClass,u=r-cl-pl,p=n-ll-ul,d=t.data,f=t.title,m=t.yAxisLabel;f=er(f);var h=sl.select(e).selectAll("svg"),y="fill: #fff; stroke: #000; stroke-width: 1px;";if(!(t.width<=0)){h.attr("width",t.width);var b=h.selectAll(".d3-line-charts"),g=h.selectAll(".d3-dots");b.remove(),g.remove(),h.selectAll("text").remove(),sl.selectAll(l).remove(),h.selectAll(".focus").remove(),h.selectAll("rect").remove(),b=h.append("g").attr("class","d3-line-charts").attr("transform","translate("+pl+","+ll+")"),g=h.append("g").attr("class","d3-dots").attr("transform","translate("+pl+","+ll+")");sl.timeParse("%d-%b-%y");var v=[];d.forEach((function(e){e.average=+e.average,v.push(e.average)})),d=d.sort((function(e,t){return e.date-t.date}));var =this.scales(e,d,t);v=v.sort(sl.ascending);i||v[0],v[v.length-1];var w=v.quartiles=Qs(v);b.selectAll("rect.box").data([w]).enter().append("rect").attr("class","box ").attr("style","font: 10px sans-serif;").attr("style","fill: #DCEEF5;").attr("x",0).attr("y",(function(e){return .y(e[2])})).attr("width",u).attr("height",(function(e){return .y(e[0])-.y(e[2])}));b.selectAll("line.median").data([w[1]]).enter().append("line").attr("class","median ").attr("style","stroke-dasharray: 3, 3;").attr("style",y).attr("x1",0).attr("y1",.y).attr("x2",u).attr("y2",.y);var E=Xs(1.5),S=E&&E.call(this,v),O=S&&S.map((function(e){return v[e]}));if(b.selectAll("line.whisker").data(O||[]).enter().insert("line").attr("class","whisker ").attr("style",y).attr("x1",0).attr("y1",.y).attr("x2",u).attr("y2",.y).style("opacity",1),o){var j=sl.line().x((function(e){return .x(e.date)})).y((function(e){return .y(e.average)}));b.append("path").data([d]).attr("style","fill: none; stroke: #56B4E9; stroke-width: 2px;").attr("d",j)}b.append("g").attr("transform","translate(0,"+(p+3)+")").call(sl.axisBottom(.x)).append("text").attr("fill","#000000").attr("transform","translate("+u/2+",28)").attr("text-anchor","end"),b.append("g").call(sl.axisLeft(.y)).append("text").attr("fill","#000").attr("transform","rotate(-90)").attr("y",6).attr("dy","-4em").attr("dx","-15em").attr("text-anchor","end").text(er(m)),g.selectAll(".dot").data(d).enter().append("circle").attr("style",(function(e){return e.average>O[1]||e.average<O[0]?"fill: #D55E00; stroke: #D55E00;":"fill: #0072B2; stroke: #0072B2;"})).attr("cx",(function(e){return .x(e.date)})).attr("cy",(function(e){return .y(e.average)})).attr("r",2);var C=f;if(f.length>35&&(C=f.substring(0,35)+"..."),h.append("text").attr("x",pl).attr("y",ll/2).attr("text-anchor","left").style("font-size","16px").style("text-decoration","bold").text(C).append("svg:title").text(f),a.length>0){var k=h.append("text").attr("x",r-cl).attr("y",ll/2).style("text-anchor","end").text("Sources: ").selectAll(".graphs-sourceLabelIndex").data(a,(function(e){return e}));k.enter().append("a").attr("xlink:href",(function(e){return e})).attr("target","clowder").attr("class","graphs-sourceLabelIndex").style("cursor","pointer").text((function(e,t){return"..."===e?e:"["+(t+1)+"]"})).append("title").text("Original data source"),k.exit().remove()}var P=h.append("rect"),x=h.append("g").attr("class","focus").style("display","none");x.append("line").attr("class","y-hover-line").attr("style","stroke: #009E73; stroke-width: 2px; stroke-dasharray: 3, 3;").attr("y1",0).attr("y2",p),x.append("circle").attr("r",6).style("fill","#009E73");var T=x.append("text").attr("x",10).attr("dy",".31em").style("fill","white"),R=(h.append("rect").attr("transform","translate("+pl+","+ll+")").attr("class",c).attr("style","fill: none;").attr("width",u).attr("height",p).on("mouseover",(function(){x.style("display",null)})).on("mousemove",(function(){sl.select(this).attr("r",6),x.style("display",null);var e,r=.x.invert(sl.mouse(this)[0]),n=R(d,r,1);if(n>=d.length)e=d[n-1];else{var a=d[n-1],o=d[n];e=r.getTime()-a.date.getTime()>o.date.getTime()-r.getTime()?o:a}var i=pl+.x(e.date),l=ll+.y(e.average);x.attr("transform","translate("+i+","+l+")");var c="Date: "+e.date.getFullYear();"month"===s&&(c="Date: "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.date.getMonth()]+" "+e.date.getFullYear());"day"===s&&(c="Date: "+e.date.toLocaleDateString());T.selectAll("tspan").remove(),T.append("tspan").attr("x",8).attr("dx","0.2em").attr("dy","0.6em").text(c),T.append("tspan").attr("x",8).attr("dx","0.2em").attr("dy","1.2em").text("Average: "+e.average.toFixed(2)+" "+er(m)),x.select(".y-hover-line").attr("y2",p-.y(e.average));var u=T.node().getBBox();if(!0===t.use_sensor_extent){var f=new Date((t.selectedStartDate.getTime()+t.selectedEndDate.getTime())/2);r>=f?(i-=u.width+20,l+=4,T.attr("transform","translate("+-(u.width+20)+",4)")):T.attr("transform","translate(0,0)")}else{var h=new Date((d[0].date.getTime()+d[d.length-1].date.getTime())/2);r>=h?(i-=u.width+20,l+=4,T.attr("transform","translate("+-(u.width+20)+",4)")):T.attr("transform","translate(0,0)")}P.attr("transform","translate("+i+","+l+")"),P.style("display",null),P.attr("x",4).attr("y",u.y-4).attr("width",u.width+10).attr("height",u.height+10).style("fill","#1B4557").style("fill-opacity",.9)})).on("mouseout",(function(){sl.select(this).attr("r",2),x.style("display","none"),P.style("fill-opacity",0)})),sl.bisector((function(e){return e.date})).left)}};var dl=il;function fl(e){return e.replace(/[\s()^/, ]/g,"")}function ml(e){return(ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yl(e,t){return(yl=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function bl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_l(e);if(t){var a=_l(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return gl(this,r)}}function gl(e,t){if(t&&("object"===ml(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vl(e)}function vl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _l(e){return(_l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var wl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yl(e,t)}(s,e);var t,r,n,o=bl(s);function s(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(r=o.call(this,e,t)).state={width:200,height:400},r.measure=r.measure.bind(vl(r)),r}return t=s,(r=[{key:"measure",value:function(){var e=this.container.getBoundingClientRect();this.state.width!==e.width&&this.setState({width:e.width})}},{key:"componentDidMount",value:function(){var e=i.a.findDOMNode(this);dl.create(e,{width:e.clientWidth,height:400},this.getLineState()),this.measure()}},{key:"componentDidUpdate",value:function(){this.measure();var e=i.a.findDOMNode(this);dl.update(e,this.getLineState())}},{key:"componentWillMount",value:function(){window.addEventListener("resize",this.measure,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.measure,!1)}},{key:"getLineState",value:function(){return{width:i.a.findDOMNode(this).clientWidth,height:400,class_name_line:Ws.a.graph_line,class_name_dots:Ws.a.graph_dot,boxClass:Ws.a.box,lineClass:Ws.a.line,rectClass:Ws.a.rect,medianClass:Ws.a.median_line,outlierClass:Ws.a.outlier,hoverClass:Ws.a.hoverLine,overlayClass:Ws.a.overlay,tooltipClass:Ws.a.tooltip,use_sensor_extent:this.props.sameTimeScale,selectedStartDate:this.props.selectedStartDate,selectedEndDate:this.props.selectedEndDate,sources:this.props.sources,displayLines:this.props.displayLines,data:this.props.data,domain:this.props.domain,yAxisLabel:this.props.yAxisLabel,title:this.props.title,startAtZero:this.props.startAtZero,binType:this.props.binType}}},{key:"render",value:function(){var e=this,t=fl(this.props.title)+"Download",r=fl(this.props.title)+"Chart",n=document.getElementById(r),o=document.getElementById(t);if(null!==n){var i=(new XMLSerializer).serializeToString(n);null!==o&&(o.alt=i)}return a.a.createElement("div",{className:"line-container",id:r,ref:function(t){e.container=t},style:{width:"100%"}})}}])&&hl(t.prototype,r),n&&hl(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(wl,"propTypes",{data:Je.a.array,domain:Je.a.object,selectedStartDate:Je.a.instanceOf(Date),selectedEndDate:Je.a.instanceOf(Date),sources:Je.a.array,yAxisLabel:Je.a.string,title:Je.a.string});var El=wl,Sl={},Ol=r(46),jl=30,Cl=20,kl=50,Pl=50;Sl.create=function(e,t,r){Ol.select(e).append("svg").attr("class","d3").attr("width",t.width).attr("height",t.height);this.update(e,r)},Sl.update=function(e,t){this._drawPoints(e,t)},Sl.destroy=function(){},Sl._scales=function(e,t){if(!t)return null;var r=e.offsetWidth-Pl-Cl,n=e.offsetHeight-jl-kl;return{x:Ol.scaleLinear().range([0,r]).domain([Ol.min(t,(function(e){return e.date})),Ol.max(t,(function(e){return e.date}))]),y:Ol.scaleLinear().range([n,0]).domain([Ol.min(t,(function(e){return e.average})),Ol.max(t,(function(e){return e.average}))])}},Sl._drawPoints=function(e,t){var r=t.width,n=t.height,a=r-Cl-Pl,o=n-jl-kl,i=t.data,s=t.title,l=t.yAxisLabel,c=Ol.select(e).selectAll("svg"),u=c.selectAll(".d3-line-charts");u.remove(),c.selectAll("text").remove(),u=c.append("g").attr("class","d3-line-charts").attr("transform","translate("+Pl+","+jl+")");var p=[];i.forEach((function(e){e.average=+e.average,p.push(e.average)})),i=i.sort((function(e,t){return e.date-t.date}));var d=this._scales(e,i,t);u.append("text").attr("text-anchor","start").attr("font-size","1em").attr("x",150).attr("y",165).text("No Data Available"),u.append("g").attr("transform","translate(0,"+(o+3)+")").call(Ol.axisBottom(d.x)).append("text").attr("fill","#000").attr("transform","translate("+a/2+",28)").attr("text-anchor","end"),u.append("g").call(Ol.axisLeft(d.y)).append("text").attr("fill","#000").attr("transform","rotate(-90)").attr("y",6).attr("dy","-4em").attr("dx","-15em").attr("text-anchor","end").text(er(l));var f=s=er(s);s.length>35&&(f=s.substring(0,35)+"..."),c.append("text").attr("x",Pl).attr("y",jl/2).attr("text-anchor","left").style("font-size","16px").style("text-decoration","bold").text(f).append("svg:title").text(s)};var xl=Sl;function Tl(e){return(Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Dl(e,t){return(Dl=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Il(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ll(e);if(t){var a=Ll(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Al(this,r)}}function Al(e,t){if(t&&("object"===Tl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ll(e){return(Ll=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Bl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dl(e,t)}(i,e);var t,r,n,o=Il(i);function i(){return Rl(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentDidMount",value:function(){var e=this._rootNode;xl.create(e,{width:500,height:400},this.getLineState())}},{key:"componentDidUpdate",value:function(){var e=this._rootNode;xl.update(e,this.getLineState())}},{key:"getLineState",value:function(){return{width:500,height:400,data:this.props.data,yAxisLabel:this.props.yAxisLabel,title:this.props.title}}},{key:"componentWillUnmount",value:function(){xl.destroy(this._rootNode)}},{key:"_setRef",value:function(e){this._rootNode=e}},{key:"render",value:function(){return a.a.createElement("div",{className:"line-container",ref:this._setRef.bind(this)})}}])&&Nl(t.prototype,r),n&&Nl(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Bl,"propTypes",{data:Je.a.array,domain:Je.a.object,selectedStartDate:Je.a.instanceOf(Date),selectedEndDate:Je.a.instanceOf(Date),sources:Je.a.array,yAxisLabel:Je.a.string,title:Je.a.string});var Fl=Bl;function Ml(e){return(Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vl(e,t){return(Vl=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Ul(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Hl(e);if(t){var a=Hl(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Wl(this,r)}}function Wl(e,t){if(t&&("object"===Ml(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ql(e)}function ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hl(e){return(Hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var zl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}(i,e);var t,r,n,o=Ul(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ql(t=o.call(this,e)),"state",void 0),t.state={displayDownload:!1,openInfoButton:!1},ql(t).handleOpenDownload=t.handleOpenDownload.bind(ql(t)),ql(t).handleCloseDownload=t.handleCloseDownload.bind(ql(t)),t}return t=i,(r=[{key:"handleCloseDownload",value:function(){this.setState({displayDownload:!this.state.displayDownload})}},{key:"handleOpenDownload",value:function(){this.setState({displayDownload:!this.state.displayDownload})}},{key:"render",value:function(){var e,t=this,r="",n=[],o=[],i="",s=this.props,c=s.units,p=s.title,d=[],f=this;if(this.props.sensorData[this.props.param]){var m=this.props.sensorData[this.props.param];if(this.props.filterBySeason){var h=this.props.selectedSeason.length>0?this.props.selectedSeason:"spring";m=m.filter((function(e){return e.label.includes(h)}))}m.map((function(e){var t=new Date(e.date);t.getTime()>f.props.selectedStartDate.getTime()&&t.getTime()<f.props.selectedEndDate.getTime()&&(d.push({date:t,average:e.average}),n.push(e.average))})),o.push(a.a.createElement(ol,{key:p,data:n,startAtZero:this.props.startAtZero}))}var y=[];if(this.props.parameterSources&&(y=this.props.parameterSources[this.props.param]),0===d.length)d.push({date:new Date(0),average:0}),o="",r=a.a.createElement(Fl,{data:d,yAxisLabel:c,title:p});else{r=a.a.createElement(El,{data:d,selectedStartDate:this.props.selectedStartDate,selectedEndDate:this.props.selectedEndDate,yAxisLabel:c,displayLines:this.props.displayLines,title:p,sources:y,startAtZero:this.props.startAtZero,sameTimeScale:this.props.sameTimeScale,binType:this.props.binType});var b=fl(p)+"Download",g=document.getElementById(b),v="";null!==g&&(v=void 0===g.alt?"
No Data Available
":"
"+g.alt+"
");var =b+".svg",w="displayDownload"+b;i=a.a.createElement(K.Button,{dense:!0,className:Ws.a.downloadGraphButtonDialog,key:w,id:w,onClick:function(){t.handleOpenDownload()}},a.a.createElement("div",{className:Ws.a.downloadIcon},a.a.createElement(K.Icon,{name:"get_app"})),a.a.createElement("div",{className:Ws.a.downloadText},"Download Chart")),e=a.a.createElement(K.Dialog,{open:this.state.displayDownload,onClose:this.handleCloseDownload},a.a.createElement(K.DialogHeader,null,a.a.createElement(K.DialogTitle,null,"DOWNLOAD CHART")),a.a.createElement(K.DialogBody,null,"Download ",p," Chart"),a.a.createElement(K.DialogFooter,null,a.a.createElement(K.Button,{onClick:this.handleCloseDownload},"Decline"),a.a.createElement(K.Button,null,a.a.createElement(l.a,{className:Ws.a.downloadGraphButton,id:b,download:,href:"#",onClick:function(){var e=v,r=b,n=null;null!==n&&window.URL.revokeObjectURL(n);var a=new Blob([e],{type:"image/svg+xml"});n=window.URL.createObjectURL(a);var o=document.getElementById(r);o&&(o.href=n),t.handleCloseDownload()}},"Download"))))}return a.a.createElement(Vs.Row,{className:u.a.fullWidth},a.a.createElement(Vs.Col,{md:10},a.a.createElement("div",{className:Ws.a.layout_style},a.a.createElement("div",{className:Ws.a.float_item_left},i,r,e))),a.a.createElement(Vs.Col,{md:2,className:Ws.a.float_item_left},o))}}])&&Gl(t.prototype,r),n&&Gl(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Zl={},Yl=r(46),Ql=30,Xl=20,Jl=50,Kl=50;Zl.create=function(e,t,r){Yl.select(e).append("svg").attr("class","d3").attr("width",t.width).attr("height",t.height);this.update(e,r)},Zl.update=function(e,t){this._drawPoints(e,t)},Zl.destroy=function(){},Zl.scales=function(e,t,r){if(!t)return null;var n=e.offsetWidth-Kl-Xl,a=e.offsetHeight-Ql-Jl,o=Yl.scaleTime().range([0,n]);o.domain([Yl.min(t,(function(e){return Yl.min(e.values,(function(e){return e.date}))})),Yl.max(t,(function(e){return Yl.max(e.values,(function(e){return e.date}))}))]);var i=Yl.scaleLinear().range([a,0]);return r.startAtZero?i.domain([0,Yl.max(t,(function(e){return Yl.max(e.values,(function(e){return e.average}))}))]):i.domain([Yl.min(t,(function(e){return Yl.min(e.values,(function(e){return e.average}))})),Yl.max(t,(function(e){return Yl.max(e.values,(function(e){return e.average}))}))]),{x:o,y:i}},Zl.drawPoints=function(e,t){var r=t.class_name_line,n=t.width,a=t.height,o=t.hoverClass,i=t.overlayClass,s=t.tooltipClass,l=n-Xl-Kl,c=a-Ql-Jl,u=t.data,p=t.title,d=t.pointData,f=t.yAxisLabel,m=Yl.select(e).selectAll("svg"),h=m.selectAll(".d3-line-charts"),y=m.selectAll(".d3-dots");h.remove(),y.remove(),m.selectAll("text").remove(),Yl.selectAll(s).remove(),m.selectAll(".focus").remove(),m.selectAll("rect").remove(),h=m.append("g").attr("class","d3-line-charts").attr("transform","translate("+Kl+","+Ql+")"),y=m.append("g").attr("class","d3-dots").attr("transform","translate("+Kl+","+Ql+")");var b=this.scales(e,u,t),g=Yl.line().x((function(e){return b.x(e.date)})).y((function(e){return b.y(e.average)}));m.selectAll(".dataLine").data(u).enter().append("g").attr("class","d3-line-charts").attr("transform","translate("+Kl+","+Ql+")").append("path").attr("class",r).attr("d",(function(e){return g(e.values)})).style("stroke",(function(e){return e.color})),h.append("g").attr("transform","translate(0,"+(c+3)+")").call(Yl.axisBottom(b.x)),h.append("g").call(Yl.axisLeft(b.y)).append("text").attr("fill","#000").attr("transform","rotate(-90)").attr("y",6).attr("dy","-4em").attr("dx","-15em").attr("text-anchor","end").text(er(f)),y.selectAll(".dot").data(d).enter().append("circle").attr("fill",(function(e){return e.color})).attr("cx",(function(e){return b.x(e.date)})).attr("cy",(function(e){return b.y(e.average)})).attr("r",2);var v=p=er(p);p.length>35&&(v=p.substring(0,35)+"..."),m.append("text").attr("x",Kl).attr("y",Ql/2).attr("text-anchor","left").style("font-size","16px").style("text-decoration","bold").text(v).append("svg:title").text(p);var =m.append("rect"),w=m.append("g").attr("class","focus").style("display","none"),E=o+" y-hover-line";w.append("line").attr("class",E).style("stroke","gray").attr("y1",0).attr("y2",c),w.append("circle").attr("r",6).style("fill","gray");var S=w.append("text").attr("x",10).attr("dy",".31em").style("fill","white"),O=(m.append("rect").attr("transform","translate("+Kl+","+Ql+")").attr("class",i).attr("width",l).attr("height",c).on("mouseover",(function(){w.style("display",null)})).on("mousemove",(function(){var e,t=b.x.invert(Yl.mouse(this)[0]),r=O(d,t,1);if(r>=d.length)e=d[r-1];else{var n=d[r-1],a=d[r];e=t.getTime()-n.date.getTime()>a.date.getTime()-t.getTime()?a:n}var o=Kl+b.x(e.date),i=Ql+b.y(e.average);w.attr("transform","translate("+o+","+i+")"),S.selectAll("tspan").remove(),S.append("tspan").attr("x",8).attr("dx","0.2em").attr("dy","0.6em").text("Date: "+e.date.getFullYear()),S.append("tspan").attr("x",8).attr("dx","0.2em").attr("dy","1.2em").text("Average: "+e.average.toFixed(2)+" "+er(f)),w.select(".y-hover-line").attr("y2",c-b.y(e.average));var s=S.node().getBBox();r>.65*d.length?(o-=s.width+20,i+=4,S.attr("transform","translate("+-(s.width+20)+",4)")):S.attr("transform","translate(0,0)");.attr("transform","translate("+o+","+i+")"),.style("display",null),.attr("x",4).attr("y",s.y-4).attr("width",s.width+10).attr("height",s.height+10).style("fill","#1B4557").style("fill-opacity",.9)})).on("mouseout",(function(){w.style("display","none"),.style("fill-opacity",0)})),Yl.bisector((function(e){return e.date})).left)};var $l=Zl;function ec(e){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nc(e,t){return(nc=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function ac(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ic(e);if(t){var a=ic(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return oc(this,r)}}function oc(e,t){if(t&&("object"===ec(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ic(e){return(ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var sc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nc(e,t)}(i,e);var t,r,n,o=ac(i);function i(){return tc(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentDidMount",value:function(){var e=this._rootNode;$l.create(e,{width:500,height:400},this.getLineState())}},{key:"componentDidUpdate",value:function(){var e=this._rootNode;$l.update(e,this.getLineState())}},{key:"getLineState",value:function(){return{width:500,height:400,class_name_line:Ws.a.graph_line,class_name_dots:Ws.a.graph_dot,boxClass:Ws.a.box,lineClass:Ws.a.line,rectClass:Ws.a.rect,medianClass:Ws.a.median_line,outlierClass:Ws.a.outlier,hoverClass:Ws.a.hoverLine,overlayClass:Ws.a.overlay,tooltipClass:Ws.a.tooltip,selectedStartDate:this.props.selectedStartDate,selectedEndDate:this.props.selectedEndDate,sources:this.props.sources,displayLines:this.props.displayLines,data:this.props.data,pointData:this.props.pointData,domain:this.props.domain,yAxisLabel:this.props.yAxisLabel,title:this.props.title,startAtZero:this.props.startAtZero}}},{key:"componentWillUnmount",value:function(){$l.destroy(this._rootNode)}},{key:"_setRef",value:function(e){this._rootNode=e}},{key:"render",value:function(){return a.a.createElement("div",{className:"line-container",ref:this._setRef.bind(this)})}}])&&rc(t.prototype,r),n&&rc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(sc,"propTypes",{data:Je.a.array,pointData:Je.a.array,domain:Je.a.object,selectedStartDate:Je.a.instanceOf(Date),selectedEndDate:Je.a.instanceOf(Date),sources:Je.a.array,yAxisLabel:Je.a.string,title:Je.a.string});var lc=sc;function cc(e){return(cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pc(e,t){return(pc=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function dc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=hc(e);if(t){var a=hc(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return fc(this,r)}}function fc(e,t){if(t&&("object"===cc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mc(e)}function mc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hc(e){return(hc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var yc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pc(e,t)}(i,e);var t,r,n,o=dc(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(mc(t=o.call(this,e)),"state",void 0),t.state={openInfoButton:!1},t}return t=i,(r=[{key:"render",value:function(){var e=this.props.units,t=this.props.title,r=[],n=[],o=this,i=[],s=[],l=[],c=[],u=[],p=[],d=["#FF6600","#008000","#800080","#000000"],f=Object(v.jb)();if(this.props.sensorData[this.props.param]){var m=this.props.sensorData[this.props.param];if(this.props.filterBySeason){var h=this.props.selectedSeason.length>0?this.props.selectedSeason:"spring";m=m.filter((function(e){return e.label.includes(h)}))}m.map((function(e){var t=new Date(e.date);t.getTime()>o.props.selectedStartDate.getTime()&&t.getTime()<o.props.selectedEndDate.getTime()&&(0!==e[f]&&0!==f.length||(i.push({date:t,average:e.average}),u.push({date:t,average:e.average,color:d[0]})),1===e[f]&&(s.push({date:t,average:e.average}),u.push({date:t,average:e.average,color:d[1]})),2===e[f]&&(l.push({date:t,average:e.average}),u.push({date:t,average:e.average,color:d[2]})),3===e[f]&&(c.push({date:t,average:e.average}),u.push({date:t,average:e.average,color:d[3]})),r.push(e.average))})),n.push(a.a.createElement(ol,{key:t,data:r,startAtZero:this.props.startAtZero}))}return 0!==u.length&&(u=u.sort((function(e,t){return e.date-t.date}))),0!==i.length&&(i=i.sort((function(e,t){return e.date-t.date})),p.push({name:"Level 0",values:i,color:d[0]})),0!==s.length&&(s=s.sort((function(e,t){return e.date-t.date})),p.push({name:"Level 1",values:s,color:d[1]})),0!==l.length&&(l=l.sort((function(e,t){return e.date-t.date})),p.push({name:"Level 2",values:l,color:d[2]})),0!==c.length&&(c=c.sort((function(e,t){return e.date-t.date})),p.push({name:"Level 3",values:c,color:d[3]})),0===p.length&&p.push({name:"No Data",values:[{date:0,average:0}],color:"#FFFFFF"}),a.a.createElement(Vs.Row,null,a.a.createElement(Vs.Col,{md:8},a.a.createElement("div",{className:Ws.a.layout_style},a.a.createElement("div",{className:Ws.a.float_item_left},a.a.createElement(lc,{data:p,pointData:u,yAxisLabel:e,selectedStartDate:this.props.selectedStartDate,selectedEndDate:this.props.selectedEndDate,startAtZero:this.props.startAtZero,title:t})))),a.a.createElement(Vs.Col,{md:4,className:Ws.a.float_item_left},n))}}])&&uc(t.prototype,r),n&&uc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),bc=r(524);function gc(e){return(gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _c(e,t){return(_c=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function wc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Sc(e);if(t){var a=Sc(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ec(this,r)}}function Ec(e,t){if(t&&("object"===gc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sc(e){return(Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Oc=r.n(bc).a.LineChart,jc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_c(e,t)}(i,e);var t,r,n,o=wc(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(r=[{key:"render",value:function(){var e=[],t=this.props,r=t.title,n=t.units;this.props.sensorData[this.props.param]&&this.props.sensorData[this.props.param].map((function(t){var r;r=new Date(t.label),e.push({x:r,y:t.average})}));var o="";0===e.length&&(e.push({x:0,y:0}),o=a.a.createElement("div",{className:Ws.a.noData},"No Data to Display for ",r));var i=[{values:e}];return e.length>0&&o.length<1?a.a.createElement(Vs.Row,null,a.a.createElement(Vs.Col,{md:10,className:Ws.a.positionChart},o,a.a.createElement(Oc,{data:i,width:800,height:600,margins:{top:10,right:50,bottom:100,left:200},title:r,yAxisLabel:n,yAxisLabelOffset:Number(150),xAxisLabel:"Time (last two weeks)",xAxisLabelOffset:Number(75),gridHorizontal:!0,gridVertical:!0,hoverAnimation:!0,xAxisTickInterval:{unit:"week",interval:1}}))):a.a.createElement(Vs.Row,null,a.a.createElement(Vs.Col,{md:10},o))}}])&&vc(t.prototype,r),n&&vc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Cc(e){return(Cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xc(e,t){return(xc=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Tc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Nc(e);if(t){var a=Nc(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Rc(this,r)}}function Rc(e,t){if(t&&("object"===Cc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nc(e){return(Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Dc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xc(e,t)}(i,e);var t,r,n,o=Tc(i);function i(){return kc(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentWillMount",value:function(){this.props.loadSensor(null,this.props.sensor.name,this.props.filterBySeason,this.props.binType,this.props.selectedStartDate,this.props.selectedEndDate)}},{key:"render",value:function(){var e=this;if(0===Object.keys(this.props.sensorData).length)return a.a.createElement(st,null);var t=this.props,r=t.sensor,n=t.selected_parameters,o=t.num_years,i=[];if(r){var s=function(e){var t=5;return e<=5&&(t=1),e>=20&&(t=10),e>=40&&(t=20),e>=100&&(t=50),t}(o);n.map((function(t){var n=e.props.category_parameters.find((function(e){return e.name===t}));n&&(screen.width>Object(v.fb)()?!0===Object(v.lb)()?i.push(a.a.createElement(Vs.Row,{key:t},a.a.createElement(yc,{interval_val:s,title:n.title,units:n.unit,selectedStartDate:e.props.selectedStartDate,selectedEndDate:e.props.selectedEndDate,filterBySeason:e.props.filterBySeason,selectedSeason:e.props.selectedSeason,category_parameters:e.props.category_parameters,parameterSources:e.props.parameterSources,displayLines:e.props.displayLines,binType:e.props.binType,id:r.name,param:t,sensorData:e.props.sensorData,startAtZero:e.props.startAtZero,sameTimeScale:e.props.sameTimeScale}))):i.push(a.a.createElement(Vs.Row,{key:t,className:u.a.fullWidth},a.a.createElement(zl,{interval_val:s,title:n.title,units:n.unit,selectedStartDate:e.props.selectedStartDate,selectedEndDate:e.props.selectedEndDate,filterBySeason:e.props.filterBySeason,selectedSeason:e.props.selectedSeason,category_parameters:e.props.category_parameters,parameterSources:e.props.parameterSources,displayLines:e.props.displayLines,binType:e.props.binType,id:r.name,param:t,sensorData:e.props.sensorData,startAtZero:e.props.startAtZero,sameTimeScale:e.props.sameTimeScale}))):i.push(a.a.createElement(Vs.Row,{key:t},a.a.createElement(jc,{interval_val:s,title:n.title,id:r.name,param:t,sensorData:e.props.sensorData}))))}))}return a.a.createElement(Vs.Row,{className:u.a.fullWidth},i)}}])&&Pc(t.prototype,r),n&&Pc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Ic=r(525),Ac=r.n(Ic),Lc=r(526),Bc=r.n(Lc);function Fc(e){return(Fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Gc(e,t){return(Gc=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Vc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Wc(e);if(t){var a=Wc(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Uc(this,r)}}function Uc(e,t){if(t&&("object"===Fc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Wc(e){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var qc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gc(e,t)}(i,e);var t,r,n,o=Vc(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.paramName,r=e.paramValues,n=e.paramColor,o=Math.min.apply(null,r),i=Math.max.apply(null,r),s=Bc()(r);return a.a.createElement("div",{className:Ws.a.add_padding},a.a.createElement("span",{style:{color:n}},t),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement(Ac.a,{width:300,height:20,orientation:"horizontal",min:Math.floor(o),max:Math.ceil(i),stats:s}),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement("p",{className:Ws.a.float_item_right},"Range: ",o.toFixed(2)," - ",i.toFixed(2)))}}])&&Mc(t.prototype,r),n&&Mc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Hc={},zc=r(46),Zc=30,Yc=20,Qc=50,Xc=50;Hc.create=function(e,t,r){zc.select(e).append("svg").attr("class","d3").attr("width",t.width).attr("height",t.height);this.update(e,r)},Hc.update=function(e,t){this._drawPoints(e,t)},Hc.destroy=function(){},Hc._scales=function(e,t,r){if(!t)return null;var n=e.offsetWidth-Xc-Yc,a=e.offsetHeight-Zc-Qc,o=zc.scaleTime().range([0,n]);o.domain([zc.min(t,(function(e){return zc.min(e.values,(function(e){return e.date}))})),zc.max(t,(function(e){return zc.max(e.values,(function(e){return e.date}))}))]);var i=zc.scaleLinear().range([a,0]);return r.startAtZero?i.domain([0,zc.max(t,(function(e){return zc.max(e.values,(function(e){return e.average}))}))]):i.domain([zc.min(t,(function(e){return zc.min(e.values,(function(e){return e.average}))})),zc.max(t,(function(e){return zc.max(e.values,(function(e){return e.average}))}))]),{x:o,y:i}},Hc._drawPoints=function(e,t){var r=t.class_name_line,n=t.yAxisLabel,a=(t.width,t.height),o=a-Zc-Qc,i=t.data,s=zc.select(e).selectAll("svg"),l=s.selectAll(".d3-line-charts");l.remove(),s.selectAll("text").remove(),s.selectAll(".focus").remove(),l=s.append("g").attr("class","d3-line-charts").attr("transform","translate("+Xc+","+Zc+")");var c=this._scales(e,i,t),u=zc.line().x((function(e){return c.x(e.date)})).y((function(e){return c.y(e.average)}));s.selectAll(".dataLine").data(i).enter().append("g").attr("class","d3-line-charts").attr("transform","translate("+Xc+","+Zc+")").append("path").attr("class",r).attr("d",(function(e){return u(e.values)})).style("stroke",(function(e){return e.color})),l.append("g").attr("transform","translate(0,"+(o+3)+")").call(zc.axisBottom(c.x)),l.append("g").call(zc.axisLeft(c.y)).append("text").attr("fill","#000").attr("transform","rotate(-90)").attr("y",6).attr("dy","-4em").attr("dx","-15em").attr("text-anchor","end").text(n)};var Jc=Hc;function Kc(e){return(Kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tu(e,t){return(tu=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function ru(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=au(e);if(t){var a=au(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return nu(this,r)}}function nu(e,t){if(t&&("object"===Kc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function au(e){return(au=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var ou=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tu(e,t)}(i,e);var t,r,n,o=ru(i);function i(){return $c(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentDidMount",value:function(){var e=this._rootNode;Jc.create(e,{width:500,height:400},this.getLineState())}},{key:"componentDidUpdate",value:function(){var e=this._rootNode;Jc.update(e,this.getLineState())}},{key:"getLineState",value:function(){return{width:500,height:400,class_name_line:Ws.a.graph_line,class_name_dots:Ws.a.graph_dot,boxClass:Ws.a.box,lineClass:Ws.a.line,rectClass:Ws.a.rect,medianClass:Ws.a.median_line,outlierClass:Ws.a.outlier,hoverClass:Ws.a.hoverLine,overlayClass:Ws.a.overlay,tooltipClass:Ws.a.tooltip,selectedStartDate:this.props.selectedStartDate,selectedEndDate:this.props.selectedEndDate,sources:this.props.sources,data:this.props.data,domain:this.props.domain,yAxisLabel:this.props.yAxisLabel,title:this.props.title,startAtZero:this.props.startAtZero}}},{key:"componentWillUnmount",value:function(){Jc.destroy(this._rootNode)}},{key:"_setRef",value:function(e){this._rootNode=e}},{key:"render",value:function(){return a.a.createElement("div",{className:"line-container",ref:this.setRef.bind(this)})}}])&&eu(t.prototype,r),n&&eu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ou,"propTypes",{data:Je.a.array,domain:Je.a.object,selectedStartDate:Je.a.instanceOf(Date),selectedEndDate:Je.a.instanceOf(Date),sources:Je.a.array,yAxisLabel:Je.a.string,title:Je.a.string});var iu=ou;function su(e){return(su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cu(e,t){return(cu=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function uu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=fu(e);if(t){var a=fu(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return pu(this,r)}}function pu(e,t){if(t&&("object"===su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return du(e)}function du(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fu(e){return(fu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var mu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cu(e,t)}(i,e);var t,r,n,o=uu(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(du(t=o.call(this,e)),"state",void 0),t.state={openInfoButton:!1},t}return t=i,(r=[{key:"render",value:function(){var e=this,t=[],r={},n=[],o=this.props.params,i=[],s="",l="",c=[],p=[],d=["#FF6600","#006600","#000099"],f=this;return i=i.concat(" | "),o.map((function(u){var m=e.props.category_parameters.find((function(e){return e.name===u}));if(t=[],r={},c=[],e.props.sensorData[u]){var h=e.props.sensorData[u];if(e.props.filterBySeason){var y=e.props.selectedSeason.length>0?e.props.selectedSeason:"spring";h=h.filter((function(e){return e.label.includes(y)}))}h.map((function(e){var r=new Date(e.date);r.getTime()>f.props.selectedStartDate.getTime()&&r.getTime()<f.props.selectedEndDate.getTime()&&(t.push({date:r,average:e.average}),c.push(e.average))})),s=$t(m.title),l=d[o.indexOf(u)],t=t.sort((function(e,t){return e.date-t.date})),r={name:s,color:l,values:t},n.push(r),p.push(a.a.createElement(qc,{key:s,paramName:s,paramValues:c,paramColor:l})),s.toString(),i=i.concat(a.a.createElement("span",{key:s,style:{color:l}},s)).concat(" | ")}})),a.a.createElement(Vs.Row,{className:u.a.fullWidth},a.a.createElement(Vs.Col,{md:8},a.a.createElement("div",{className:Ws.a.layout_style},a.a.createElement("div",{className:Ws.a.float_item_left},a.a.createElement(K.Subheading2,{className:Ws.a.parameters_chart_subheading},i),a.a.createElement(iu,{data:n,selectedStartDate:this.props.selectedStartDate,selectedEndDate:this.props.selectedEndDate,startAtZero:this.props.startAtZero})))),a.a.createElement(Vs.Col,{md:4,className:Ws.a.float_item_left},p))}}])&&lu(t.prototype,r),n&&lu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function hu(e){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gu(e,t){return(gu=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function vu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=wu(e);if(t){var a=wu(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){if(t&&("object"===hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wu(e){return(wu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Eu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gu(e,t)}(i,e);var t,r,n,o=vu(i);function i(){return yu(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentWillMount",value:function(){this.props.loadSensor(null,this.props.sensor.name,this.props.filterBySeason)}},{key:"render",value:function(){if(0===Object.keys(this.props.sensorData).length)return a.a.createElement(st,null);var e=this.props,t=e.sensor,r=e.selected_parameters,n=e.num_years,o=e.sensorData,i=[];if(t){var s=5;n<=5&&(s=1),r.length>0&&i.push(a.a.createElement(Vs.Row,{key:"multi-line-chart",className:u.a.fullWidth},a.a.createElement(mu,{interval_val:s,selectedStartDate:this.props.selectedStartDate,selectedEndDate:this.props.selectedEndDate,filterBySeason:this.props.filterBySeason,selectedSeason:this.props.selectedSeason,category_parameters:this.props.category_parameters,parameterSources:this.props.parameterSources,binType:this.props.binType,id:t.name,sensorData:o,startAtZero:this.props.startAtZero,params:r,num_params:r.length,open_box_and_whiskers:this.props.open_box_and_whiskers})))}return a.a.createElement(Vs.Row,{className:u.a.fullWidth},i)}}])&&bu(t.prototype,r),n&&bu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Su={},Ou=r(46),ju=30,Cu=200,ku=50,Pu=70;Su.create=function(e,t,r){if(!(t.width<=0||t.height<=0)){Ou.select(e).append("svg").attr("class","d3").attr("width",t.width).attr("height",t.height);this.update(e,r)}},Su.update=function(e,t,r,n){this.drawBars(e,t)},Su.destroy=function(){},Su.scales=function(e,t,r){if(!t)return null;if(!(e.offsetWidth<=0||e.offsetHeight<=0)){var n=e.offsetWidth-Pu-Cu,a=e.offsetHeight-ju-ku;return{x:Ou.scaleBand().rangeRound([0,n]).padding(.1).align(.1),y:Ou.scaleLinear().rangeRound([a,0]),z:Ou.scaleOrdinal().range(r.scaleColors).domain(r.scaleNames)}}},Su.drawBars=function(e,t){var r=t.width,n=t.height,a=t.scaleNames,o=t.tooltipClass,i=t.season;if(!(t.width<=0||t.height<=0)){var s=t.data,l=t.title,c=t.yAxisLabel,u=Ou.select(e).selectAll("svg"),p=r-Cu-Pu,d=n-ju-ku;u.selectAll("d3-stacked-bar-charts").remove(),u.selectAll("text").remove(),u.selectAll("g").remove(),u.selectAll("div").remove();var f=u.selectAll(".d3-stacked-bar-charts"),m=Ou.stack();f=u.append("g").attr("class","d3-stacked-bar-charts").attr("transform","translate("+Pu+","+ju+")");var h=this.scales(e,s,t);if(void 0!==h){(s=s.sort((function(e,t){return e.date-t.date}))).forEach((function(e){for(var t in e.total=0,e.data)e.data.hasOwnProperty(t)&&(e.total+=e.data[t],e[t]=e.data[t]);e.year=e.date.getFullYear()})),h.x.domain(s.map((function(e){return e.year}))),h.y.domain([0,Ou.max(s,(function(e){return e.total}))]).nice();var y=f.selectAll(".d3-stacked-bar-charts").data(m.keys(a)(s)).enter().append("g").attr("class","d3-stacked-bar-charts").attr("fill",(function(e){return h.z(e.key)})).selectAll("rect").data((function(e){return e})).enter().append("rect").attr("x",(function(e){return h.x(e.data.year)})).attr("y",(function(e){return h.y(e[1])})).attr("height",(function(e){return h.y(e[0])-h.y(e[1])})).attr("width",h.x.bandwidth());f.append("g").attr("transform","translate(0,"+(d+3)+")").call(Ou.axisBottom(h.x)).append("text").attr("fill","#000").attr("transform","translate("+p/2+",28)").attr("text-anchor","end"),f.append("g").call(Ou.axisLeft(h.y)).append("text").attr("fill","#000").attr("transform","rotate(-90)").attr("y",6).attr("dy","-6em").attr("dx","-15em").attr("text-anchor","end").text(er(c));var b=u.selectAll(".legend").data(a.slice().reverse()).enter().append("g").attr("class","legend").attr("transform",(function(e,t){return"translate(25, "+(10+20t)+")"}));b.append("rect").attr("x",r-230).attr("width",10).attr("height",10).style("fill",h.z),b.append("text").attr("x",r-217).attr("y",6).attr("dy",".35em").text((function(e){return e}));var g=l=er(l);l.length>35&&(g=l.substring(0,35)+"..."),u.append("text").attr("x",Pu).attr("y",ju/2).attr("text-anchor","left").style("font-size","16px").style("text-decoration","bold").text(g).append("svg:title").text(l),y.on("mouseout",(function(){v.style("opacity",0)})).on("mouseover",(function(e){var t=Ou.event.pageX,r=Ou.event.pageY,n=e.data.year,a=" Date: "+(i.charAt(0).toUpperCase()+i.slice(1))+" "+n+"
";for(var o in e.data.data)e.data.hasOwnProperty(o)&&(a+=""+o+": "+e.data.data[o].toFixed(2)+" ("+er(c)+") Avg.
");v.html(a).style("left",t+"px").style("top",r+"px").style("opacity",.9)}));var v=Ou.select(e).append("div").attr("class",o).style("opacity",0)}}};var xu=Su;function Tu(e){return(Tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ru(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Du(e,t){return(Du=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Iu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Lu(e);if(t){var a=Lu(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Au(this,r)}}function Au(e,t){if(t&&("object"===Tu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Lu(e){return(Lu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Bu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Du(e,t)}(i,e);var t,r,n,o=Iu(i);function i(){return Ru(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentDidMount",value:function(){var e=this._rootNode;xu.create(e,{width:800,height:400},this.getStackedBarState())}},{key:"componentDidUpdate",value:function(){var e=this._rootNode;xu.update(e,this.getStackedBarState())}},{key:"getStackedBarState",value:function(){return{width:800,height:400,selectedStartDate:this.props.selectedStartDate,selectedEndDate:this.props.selectedEndDate,data:this.props.data,yAxisLabel:this.props.yAxisLabel,title:this.props.title,scaleColors:this.props.scale_colors,scaleNames:this.props.scale_names,season:this.props.selectedSeason,tooltipClass:Ws.a.bar_tooltip}}},{key:"componentWillUnmount",value:function(){xu.destroy(this._rootNode)}},{key:"_setRef",value:function(e){this._rootNode=e}},{key:"render",value:function(){return a.a.createElement("div",{className:"stacked-bar-container",ref:this.setRef.bind(this)})}}])&&Nu(t.prototype,r),n&&Nu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Bu,"PropTypes",{data:Je.a.array,selectedStartDate:Je.a.instanceOf(Date),selectedEndDate:Je.a.instanceOf(Date),title:Je.a.string,yAxisLabel:Je.a.string});var Fu=Bu;function Mu(e){return(Mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Uu(e,t){return(Uu=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Wu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Hu(e);if(t){var a=Hu(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return qu(this,r)}}function qu(e,t){if(t&&("object"===Mu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hu(e){return(Hu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var zu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uu(e,t)}(i,e);var t,r,n,o=Wu(i);function i(){return Gu(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentWillMount",value:function(){this.props.loadSensor(null,this.props.sensor.name,this.props.filterBySeason,this.props.binType,this.props.selectedStartDate,this.props.selectedEndDate)}},{key:"render",value:function(){var e=this;if(0===Object.keys(this.props.sensorData).length)return a.a.createElement(st,null);var t=this.props,r=t.sensor,n=t.sensorData,o=t.selected_parameters,i=(t.num_years,t.category_parameters),s=t.filterBySeason,l=t.selectedSeason,c=t.selectedStartDate,p=t.selectedEndDate,d=[];return r&&o.map((function(t){var r=i.find((function(e){return e.name===t}));if(r){var o,f=n[t],m=[];void 0!==f&&(s&&(o=l.length>0?e.props.selectedSeason:"spring",f=f.filter((function(e){return e.label.includes(o)}))),f.map((function(e){var t=new Date(e.date);t.getTime()>c.getTime()&&t.getTime()<p.getTime()&&m.push({date:t,data:e.data})})),d.push(a.a.createElement(Vs.Row,{key:t,className:u.a.fullWidth},a.a.createElement(Fu,{title:r.title,yAxisLabel:r.unit,selectedStartDate:e.props.selectedStartDate,selectedEndDate:e.props.selectedEndDate,filterBySeason:e.props.filterBySeason,selectedSeason:o,data:m,scale_colors:r.scale_colors,scale_names:r.scale_names}))))}})),a.a.createElement("div",null,d)}}])&&Vu(t.prototype,r),n&&Vu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Zu=r(96),Yu=r.n(Zu),Qu=(r(362),r(135));function Xu(e){return(Xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ju(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ku(e,t){return(Ku=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function $u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=rp(e);if(t){var a=rp(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ep(this,r)}}function ep(e,t){if(t&&("object"===Xu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tp(e)}function tp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rp(e){return(rp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var np=r(7),ap=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ku(e,t)}(i,e);var t,r,n,o=$u(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(tp(t=o.call(this,e)),"state",void 0),t.state={},tp(t).onSliderChange=t.onSliderChange.bind(tp(t)),tp(t).popupDateValue=t.popupDateValue.bind(tp(t)),t}return t=i,(r=[{key:"onSliderChange",value:function(e){var t=np(this.props.start),r=t.add(e[0],"days").toDate(),n=(t=np(this.props.start)).add(e[1],"days").toDate();this.props.onSliderChange([r,n])}},{key:"popupDateValue",value:function(e){return np(this.props.start).add(e,"days").format("MM/DD/YYYY")}},{key:"render",value:function(){var e=this,t=np(this.props.start),r=np(this.props.end),n=np(this.props.selectedStart),o=np(this.props.selectedEnd),i=r.diff(t,"days"),s=n.diff(t,"days"),l=o.diff(t,"days"),c=(0,Qu.a.createSliderWithTooltip)(Qu.a.Range);return a.a.createElement("div",null,a.a.createElement("span",{className:Yu.a.start},n.format("MM/DD/YYYY")),a.a.createElement("div",{className:Yu.a.dateWrapper},a.a.createElement(c,{min:0,max:i,defaultValue:[s,l],allowCross:!1,tipFormatter:function(t){return e.popupDateValue(t)},onAfterChange:this.onSliderChange})),a.a.createElement("span",{className:Yu.a.end},o.format("MM/DD/YYYY"))," ",a.a.createElement("br",null))}}])&&Ju(t.prototype,r),n&&Ju(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function op(e){return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ip(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sp(e,t){return(sp=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function lp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=pp(e);if(t){var a=pp(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return cp(this,r)}}function cp(e,t){if(t&&("object"===op(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return up(e)}function up(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pp(e){return(pp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var dp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sp(e,t)}(i,e);var t,r,n,o=lp(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(up(t=o.call(this,e)),"state",void 0),t.state={displayErrorMessage:!1},up(t).handleCloseAlert=t.handleCloseAlert.bind(up(t)),t}return t=i,(r=[{key:"handleCloseAlert",value:function(){this.setState({displayErrorMessage:!1})}},{key:"buildLink",value:function(e){var t=this.props.api+Object(v.D)();t+="sensor_id="+this.props.sensor_id+"&";var r={};if(r.format=e,this.props.selected_parameters.length>0){var n=Object.assign([],this.props.selected_parameters);(Object.keys(this.props.multi_param_map),this.props.selected_parameters).map((function(e){return window.configruntime.gd3.multi_parameter_map[e].map((function(e){n.push(e)}))})),r.attributes=n}return r.since=this.props.selected_start_date.toISOString().slice(0,10),r.until=this.props.selected_end_date.toISOString().slice(0,10),t+O(r)}},{key:"onDownload",value:function(e){try{var t=this.buildLink(e);window.open(t)}catch(e){this.setState({displayErrorMessage:!0})}}},{key:"render",value:function(){var e=!0;this.props.selected_parameters&&this.props.selected_parameters.length>0&&(e=!1);var t="";return!0===this.state.displayErrorMessage&&(t=a.a.createElement(K.Dialog,{open:this.state.displayErrorMessage,onClose:this.handleCloseAlert},a.a.createElement(K.DialogHeader,{className:u.a.alertHeader},a.a.createElement(K.DialogTitle,null,a.a.createElement("span",{className:u.a.alertHeaderText},"DOWNLOAD ERROR")),a.a.createElement(K.Icon,{className:u.a.alertHeaderIcon,name:"warning"})),a.a.createElement(K.DialogBody,null,a.a.createElement("span",{className:u.a.alertBodyText},"An ERROR occurred with Download - Please try again!")),a.a.createElement(K.DialogFooter,null,a.a.createElement(K.Button,{className:u.a.alertButton,onClick:this.handleCloseAlert},"Close")))),a.a.createElement("div",{className:Ws.a.detailDownloadButtonPosition},t,a.a.createElement(K.Button,{className:!1===e?Ws.a.detailDownloadButton:"",onClick:this.onDownload.bind(this,"csv"),raised:!0,disabled:e},a.a.createElement("span",{className:!1===e?Ws.a.detailDownloadButtonText:""},"Download")))}}])&&ip(t.prototype,r),n&&ip(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);dp.propTypes={api:Je.a.string.isRequired,selected_parameters:Je.a.array,id:Je.a.number,selected_start_date:Je.a.instanceOf(Date),selected_end_date:Je.a.instanceOf(Date),multi_param_map:Je.a.any};var fp=dp,mp=Object(s.connect)((function(e){return{id:e.sensorDetail.id,api:e.backends.selected,multi_param_map:e.parameters.multi_parameter_map}}))(fp);function hp(e){return(hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bp(e,t){return(bp=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function gp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=wp(e);if(t){var a=wp(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return vp(this,r)}}function vp(e,t){if(t&&("object"===hp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _p(e)}function _p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wp(e){return(wp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Ep=r(7),Sp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bp(e,t)}(i,e);var t,r,n,o=gp(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(_p(t=o.call(this,e)),"state",void 0),t.state={openParameterDialog:!1,openBoxAndWhiskerDialog:!1,selected_parameters:[],selectedStartDate:new Date(e.sensor.min_start_time),selectedEndDate:new Date(e.sensor.max_end_time),showSeasonFilter:!1,selectedSeason:"",displayLines:Object(v.s)(),startAtZero:Object(v.sb)(),sameTimeScale:Object(v.rb)(),selectAllDates:!0,binType:"year"},_p(t).closeParameterDialog=t.closeParameterDialog.bind(_p(t)),_p(t).openParameterDialog=t.openParameterDialog.bind(_p(t)),_p(t).openBoxAndWhiskerDialog=t.openBoxAndWhiskerDialog.bind(_p(t)),_p(t).closeBoxAndWhiskerDialog=t.closeBoxAndWhiskerDialog.bind(_p(t)),_p(t).handleSelectedParameter=t.handleSelectedParameter.bind(_p(t)),_p(t).updateParametersAndSeason=t.updateParametersAndSeason.bind(_p(t)),_p(t).onSliderChange=t.onSliderChange.bind(_p(t)),_p(t).onChangeSeason=t.onChangeSeason.bind(_p(t)),_p(t).displayChartLines=t.displayChartLines.bind(_p(t)),_p(t).updateBinningType=t.updateBinningType.bind(_p(t)),_p(t).startAtZero=t.startAtZero.bind(_p(t)),p(t).sameTimeScale=t.sameTimeScale.bind(p(t)),p(t).selectAllDates=t.selectAllDates.bind(p(t)),t}return t=i,n=[{key:"getBinType",value:function(e,t){var r="day";return e>10?r="year":e>=2&&e<=10?r="month":t>3&&t<=14&&(r="hour"),r}}],(r=[{key:"componentWillMount",value:function(){this.updateParametersAndSeason(this.props);var e=this.state.selectedStartDate,t=this.state.selectedEndDate;this.props.start_date&&(this.setState({selectAllDates:!1}),e=this.props.start_date),this.props.end_date&&(this.setState({selectAllDates:!1}),t=this.props.end_date),this.updateBinningType(new Date(e),new Date(t)),this.onSliderChange([new Date(e),new Date(t)])}},{key:"componentDidUpdate",value:function(e,t){if(t.sensorID!==e.sensorID){var r=this;window.onhashchange=function(){window.location.href.indexOf("detail/location")>-1&&(r.props.loadSensor(r.props.sensor.id,r.props.sensor.name,r.state.showSeasonFilter,r.state.binType,r.props.selectedStartDate,r.props.selectedEndDate),r.selectAllDates())}}var n=document.getElementById("miniMap");if(n)for(var a=n.getElementsByClassName("ol-viewport"),o=1;o<a.length;o++)a[o].style.display="none"}},{key:"componentWillReceiveProps",value:function(e){this.updateParametersAndSeason(e)}},{key:"onChangeSeason",value:function(e){if(this.state.showSeasonFilter){var t=e.target.options[e.target.selectedIndex].value;this.setState({selectedSeason:t})}}},{key:"updateParametersAndSeason",value:function(e){var t=e.sensor;if(!0===Object(v.c)()&&t&&t.properties&&Object(v.d)().includes(t.properties.type.id.toLowerCase())&&this.setState({showSeasonFilter:!0}),"stacked_line"!==e.chart_type){var r=e.category_parameters.map((function(e){return e.name}));if(this.props.parameters_list&&this.props.parameters_list.length>=1)this.state.selected_parameters!==this.props.parameters_list&&0!==this.state.selected_parameters.length?this.setState({selected_parameters:this.state.selected_parameters}):this.setState({selected_parameters:this.props.parameters_list.split(",")});else{var n=location.hash.indexOf("?params=");if(n<1){var a=location.hash,o="?params="+r.sort();window.history.pushState("","",location.hash.slice(0,n)),window.history.pushState("","",a+o)}this.setState({selected_parameters:r})}}else this.setState({selected_parameters:[]})}},{key:"updateBinningType",value:function(e,t){var r=Ep(e),n=Ep(t),a=n.diff(r,"days"),o=n.diff(r,"years"),s=i.getBinType(o,a);this.state.binType!==s&&(this.props.loadSensor(this.props.sensor.id,this.props.sensor.name,this.state.showSeasonFilter,s,e,t),this.setState({binType:s}))}},{key:"onSliderChange",value:function(e){this.setState({selectedStartDate:e[0],selectedEndDate:e[1]});var t=location.hash.indexOf("&"),r=location.hash;if(e[0].getTime()!==new Date(this.props.sensor.min_start_time).getTime()||e[1].getTime()!==new Date(this.props.sensor.max_end_time).getTime()){this.setState({selectAllDates:!1}),t>-1&&(r=location.hash.slice(0,t));var n=location.href,a="&start="+e[0].toISOString().split("T")[0]+"&end="+e[1].toISOString().split("T")[0];"/"===n.slice(-1)&&(a="&start="+e[0].toISOString().split("T")[0]+"&end="+e[1].toISOString().split("T")[0]),r+=a,window.history.pushState("","",r)}else r=r.slice(0,t),window.history.pushState("","",r);e[0].getTime()===new Date(this.props.sensor.min_start_time).getTime()&&e[1].getTime()===new Date(this.props.sensor.max_end_time).getTime()&&(this.setState({selectAllDates:!0}),t>-1&&window.history.pushState("","",location.hash.slice(0,t))),this.updateBinningType(e[0],e[1])}},{key:"selectAllDates",value:function(){var e=new Date(this.props.sensor.min_start_time),t=new Date(this.props.sensor.max_end_time);this.setState({selectedStartDate:e,selectedEndDate:t,selectAllDates:!0}),this.updateBinningType(e,t);var r=location.hash.indexOf("&start=");r>-1&&window.history.pushState("","",location.hash.slice(0,r))}},{key:"closeParameterDialog",value:function(){this.setState({openParameterDialog:!1})}},{key:"openParameterDialog",value:function(){this.setState({openParameterDialog:!0})}},{key:"closeBoxAndWhiskerDialog",value:function(){this.setState({openBoxAndWhiskerDialog:!1})}},{key:"openBoxAndWhiskerDialog",value:function(){this.setState({openBoxAndWhiskerDialog:!0})}},{key:"handleSelectedParameter",value:function(e){var t=Object.assign([],this.state.selected_parameters),r=this.state.selected_parameters.indexOf(e);-1===r?t.push(e):t.splice(r,1),this.setState({selected_parameters:t.sort()});var n=location.href,a=location.hash.indexOf("?params="),o=location.hash.indexOf("&start="),i="",s="";a>-1&&(s=location.hash.slice(0,a)),o>-1&&(i=location.hash.slice(o));var l=location.hash;if(t.sort().length>0){var c="?params="+t.sort();"/"===n.slice(-1)&&(c="?params="+t.sort()),a>-1?(l=location.hash.slice(0,a),window.history.pushState("","",l+c+i)):o>-1?(l=location.hash.slice(0,o),window.history.pushState("","",l+c+i)):(l=location.hash,window.history.pushState("","",l+c+i))}else window.history.pushState("","",s+i)}},{key:"displayChartLines",value:function(){this.setState({displayLines:!this.state.displayLines})}},{key:"startAtZero",value:function(){this.setState({startAtZero:!this.state.startAtZero})}},{key:"sameTimeScale",value:function(){this.setState({sameTimeScale:!this.state.sameTimeScale})}},{key:"render",value:function(){var e,t,r,n=Object(v.B)(),o=Object(v.ob)(this.props.sensor.properties.type),i=Object(v.nb)(this.props.sensor.properties.type.id),s=0,l=this.props,c=l.sensor,u=l.chart_type,p={},d=new Date(c.min_start_time),f=new Date(c.max_end_time),m=this.state.selectedStartDate,h=this.state.selectedEndDate;if(c){var y=m.getFullYear(),b=h.getFullYear()-y,g=c.geometry.coordinates.slice(0,2);if(screen.width>Object(v.fb)()){var ,w,E,S;e=a.a.createElement(Vs.Row,{key:"miniMap",className:Ws.a.parameters_list},a.a.createElement(Ns,{sensor:c,center:g})),t=a.a.createElement("h3",null,"Box and Whiskers",a.a.createElement("span",{className:Ws.a.position_icon},a.a.createElement(xn.a,{title:"Box and Whisker Plots ",body:n,isOpen:this.openBoxAndWhiskerDialog,closeDialog:this.closeBoxAndWhiskerDialog}))),this.state.showSeasonFilter&&(=a.a.createElement("div",{className:Ws.a.filterPadding},a.a.createElement("span",{className:[Ws.a.filterTitle,Ws.a.season_margin_title].join(" ")},"Season"),a.a.createElement("br",null),a.a.createElement(Kt,{className:Ws.a.season_margin_select,value:this.props.season,onChange:this.onChangeSeason},a.a.createElement("option",{value:"spring",key:"spring"}," Spring"),a.a.createElement("option",{value:"summer",key:"summer"}," Summer")))),Object(v.r)()&&(w=a.a.createElement(K.FormField,{id:"displayLines",key:"displayLines"},a.a.createElement(K.Checkbox,{onChange:this.displayChartLines,value:"displayLines",key:"displayLines",name:"displayLines",id:"displayLines",checked:this.state.displayLines}),a.a.createElement("label",null,"Display Graph Lines"))),Object(v.qb)()&&(E=a.a.createElement(K.FormField,{id:"startAtZero",key:"startAtZero"},a.a.createElement(K.Checkbox,{onChange:this.startAtZero,value:"startAtZero",key:"startAtZero",name:"startAtZero",id:"startAtZero",checked:this.state.startAtZero}),a.a.createElement("label",null,"Start Data at Zero"))),Object(v.Eb)()&&"stacked_line"!==u&&(S=a.a.createElement(K.FormField,{id:"sameTimescale",key:"sameTimescale"},a.a.createElement(K.Checkbox,{onChange:this.sameTimeScale,value:"sameTimescale",key:"sameTimescale",name:"sameTimescale",id:"sameTimescale",checked:this.state.sameTimeScale}),a.a.createElement("label",null,"Use Same Timescale")));var O=a.a.createElement(Vs.Col,{md:3,className:Ws.a.filterPadding},a.a.createElement("span",{className:Ws.a.filterTitle}," Graph Options "),a.a.createElement("br",null),a.a.createElement(Vs.Row,{className:Ws.a.filterMargin},w,E,S));r=a.a.createElement(Vs.Row,{key:"detail_filters",around:"xs",className:Ws.a.filterBackground},a.a.createElement(Vs.Col,{md:2},),a.a.createElement(Vs.Col,{md:4},a.a.createElement("div",{className:Ws.a.filterTitle},"Date Range"),a.a.createElement(K.FormField,{id:"selectAllDates",key:"selectAllDates"},a.a.createElement(K.Checkbox,{onChange:this.selectAllDates,value:"selectAllDates",key:"selectAllDates",name:"selectAllDates",id:"selectAllDates",checked:this.state.selectAllDates}),a.a.createElement("label",null,"Select All Dates")),a.a.createElement("br",null),a.a.createElement("div",{className:Ws.a.leftMargin},a.a.createElement(ap,{start:d,end:f,selectedStart:m,selectedEnd:h,onSliderChange:this.onSliderChange}))),a.a.createElement(Vs.Col,{md:1},a.a.createElement("div",{className:Ws.a.filterTitle},"Binning"),a.a.createElement("div",{className:Ws.a.binningText},this.state.binType.charAt(0).toUpperCase()+this.state.binType.slice(1))),O,a.a.createElement(Vs.Col,{md:1},a.a.createElement(mp,{selected_parameters:this.state.selected_parameters,sensor_id:c.id,selected_start_date:m,selected_end_date:h})))}"time"===u?p=a.a.createElement(Dc,{sensorName:c.name,sensor:c,sensorData:this.props.sensorData,parameterSources:this.props.parameterSources,selectedStartDate:m,selectedEndDate:h,filterBySeason:this.state.showSeasonFilter,selectedSeason:this.state.selectedSeason,num_years:b,loadSensor:this.props.loadSensor,category_parameters:this.props.category_parameters,selected_parameters:this.state.selected_parameters,displayLines:this.state.displayLines,binType:this.state.binType,startAtZero:this.state.startAtZero,sameTimeScale:this.state.sameTimeScale}):"stacked_line"===u?(p=a.a.createElement(Eu,{sensorName:c.name,sensor:c,sensorData:this.props.sensorData,parameterSources:this.props.parameterSources,selectedStartDate:m,selectedEndDate:h,filterBySeason:this.state.showSeasonFilter,selectedSeason:this.state.selectedSeason,num_years:b,loadSensor:this.props.loadSensor,category_parameters:this.props.category_parameters,selected_parameters:this.state.selected_parameters,displayLines:this.state.displayLines,binType:this.state.binType,startAtZero:this.state.startAtZero}),i=Object(v.C)(),s=3):"stacked_bar"===u?(p=a.a.createElement(zu,{sensorName:c.name,sensor:c,sensorData:this.props.sensorData,selectedStartDate:m,selectedEndDate:h,filterBySeason:this.state.showSeasonFilter,selectedSeason:this.state.selectedSeason,category_parameters:this.props.category_parameters,selected_parameters:this.state.selected_parameters,loadSensor:this.props.loadSensor}),t=""):p=a.a.createElement("div",null," Coming Soon")}return a.a.createElement("div",null,r,a.a.createElement(Vs.Grid,{fluid:!0},a.a.createElement(Vs.Row,{key:"detail_contents",around:"xs"},a.a.createElement(Vs.Col,{md:3},a.a.createElement(Vs.Row,{key:"parameter_title",className:Ws.a.parameters_list},a.a.createElement("h3",null,"Selected Parameters",a.a.createElement("span",{className:Ws.a.position_icon},a.a.createElement(xn.a,{title:o,body:i,isOpen:this.openParameterDialog,closeDialog:this.closeParameterDialog})))),a.a.createElement(Vs.Row,{key:"parameter_list",className:Ws.a.parameters_list},a.a.createElement(Gs,{sensor:c,category_parameters:this.props.category_parameters,selected_parameters:this.state.selected_parameters,handleSelectParam:this.handleSelectedParameter,maxParameters:s})),e),a.a.createElement(Vs.Col,{md:9},a.a.createElement(Vs.Row,{key:"paramChartTitle",className:Ws.a.parameters_chart_title},a.a.createElement(Vs.Col,{md:10},a.a.createElement("h3",null,"Parameter Charts")),a.a.createElement(Vs.Col,{md:2},t)),a.a.createElement(Vs.Row,{className:Ws.a.parameters_chart_positioning},p)))))}}])&&yp(t.prototype,r),n&&yp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Op=Object(s.connect)((function(e,t){return{sensorData:e.sensorDetail.datapoints,parameterSources:e.sensorDetail.sources,sensorID:e.sensorDetail.id}}),(function(e){return{loadSensor:function(t,r,n,a,o,i){screen.width<=Object(v.fb)()&&!0===Object(v.eb)()?e(function(e){return function(t,r){var n=r(),a=ke(r),o=new Date;o.setDate(o.getDate()),o=o.toJSON();var i=new Date;i.setDate(i.getDate()-14),i=i.toJSON();var s="";if(s="?since="+i.toString(),s+="&until="+o.toString(),n.sensors.length>0){var l=n.sensors.data.find((function(t){return t.name===e})).id;t(Se(l.id,l.name,l.geometry.coordinates.slice(0,2))),t(Ge(a.api,l.id,"day",s))}else{var c=a.api+"/api/sensors";fetch(c).then((function(e){return e.json()})).then((function(r){var n=r.sensors.find((function(t){return t.name===e}));return console.log(n.id),t(Se(n.id,n.name,n.geometry.coordinates.slice(0,2))),fetch(a.api+"/api/cache/day/"+n.id+s)})).then((function(e){return e.json()})).then((function(e){t(Ee(e))}))}}}(r)):e(Ve(r,n?"season":a,o,i))}}}))(Sp);function jp(e){return(jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kp(e,t){return(kp=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Pp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Rp(e);if(t){var a=Rp(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return xp(this,r)}}function xp(e,t){if(t&&("object"===jp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tp(e)}function Tp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rp(e){return(Rp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Np=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kp(e,t)}(i,e);var t,r,n,o=Pp(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Tp(t=o.call(this,e)),"state",void 0),t.state={category_mappings:{},sensor:{},isPageReady:!1,showError:!1},Tp(t).setUpCategoryMappings=t.setUpCategoryMappings.bind(Tp(t)),t}return t=i,(r=[{key:"componentWillMount",value:function(){this.setUpCategoryMappings(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.setUpCategoryMappings(e)}},{key:"componentWillUnmount",value:function(){this.props.cleanPreviousSelection()}},{key:"setUpCategoryMappings",value:function(e){var t=e.sensors.find((function(t){return t.name===e.params.name}));if(t){var r=e.parameters,n=r.parameters,a=r.categories,o=r.mappings,i={All:{parameters:[],type:"time"}};t.parameters.map((function(e){var t=n.find((function(t){return t.name===e}));t&&o.filter((function(e){return e.parameter_id===t.id})).map((function(e){var r=a.find((function(t){return t.id===e.category_id}));-1===Object.keys(i).indexOf(r.name)?i[r.name]={type:r.detail_type,parameters:[t]}:i[r.name].parameters.push(t),i.All.parameters.push(t)}))})),this.setState({category_mappings:i,sensor:t})}}},{key:"render",value:function(){var e,t=window.location.href.split("#"),r=a.a.createElement(l.a,{href:t[0].concat("#/explore/all")}," ",a.a.createElement(K.Icon,{name:"close"}));if(0===Object.keys(this.state.category_mappings).length)return e=this.props.parameters.failed?a.a.createElement("span",null,a.a.createElement("h1",null,this.props.params.name),a.a.createElement("div",{className:[u.a.error_text,u.a.contentscenter].join(" ")},"Error retrieving parameter Configuration")):this.props.selected_detail!==this.props.params.name?a.a.createElement("span",null,a.a.createElement("h1",{style:{backgroundColor:"grey"}},a.a.createElement(Vs.Row,null,a.a.createElement(Vs.Col,{md:11,className:u.a.detail_header},a.a.createElement("span",{className:u.a.detail_title},this.props.params.name)),a.a.createElement(Vs.Col,{md:1,className:u.a.detail_header},a.a.createElement("span",{className:u.a.close_detail},r)))),a.a.createElement("div",{className:[u.a.error_text,u.a.contentscenter].join(" ")},"No Parameters Available")):a.a.createElement("span",null,a.a.createElement("h1",null,this.props.params.name),a.a.createElement(st,null)),a.a.createElement("div",null,a.a.createElement("h1",null," ",this.props.selected_detail),e);var n="",o=this.state.category_mappings,i=Object.keys(o).indexOf(this.props.params.category)>0?this.props.params.category:Object.keys(o)[0];screen.width>Object(v.fb)()&&(n=a.a.createElement(js,{sensorName:this.props.params.name,categories:this.state.category_mappings,selected:i}));var s="";if(this.state.sensor){var c=this.state.sensor,p=Object(v.ob)(c.properties.type);if(screen.width<=Object(v.fb)())s=a.a.createElement("h1",null,a.a.createElement(l.a,{href:Object(v.db)()},"Explore Mobile"),a.a.createElement(K.Icon,{name:"chevron_right"})," ",c.name);else{var d=Object(v.v)(c.properties.type.id);s=a.a.createElement("h1",{style:{backgroundColor:d}},a.a.createElement(Vs.Row,null,a.a.createElement(Vs.Col,{md:11,className:u.a.detail_header},a.a.createElement("span",{className:u.a.detail_title},c.properties.popupContent," - ",p)),a.a.createElement(Vs.Col,{md:1,className:u.a.detail_header},a.a.createElement("span",{className:u.a.close_detail},r))))}}var f=!1,m="",h=this.state.category_mappings[i].parameters.map((function(e){return e.name})),y=this.props.location.search,b=y.indexOf("?params="),g=y.indexOf("&"),="",w="",E="";if(b>-1&&(=-1===g?y.slice(b,y.length).replace("?params=",""):y.slice(b,g).replace("?params=","")),g>-1&&y.indexOf("&start")>-1&&y.indexOf("&end=")>-1){var S=y.indexOf("&end=");w=y.slice(g,S).replace("&start=",""),E=y.slice(S,y.length).replace("&end=","")}return .length>0&&(f=.split(",").some((function(e){return-1===h.indexOf(e)}))),!1===f&&(m=),a.a.createElement("div",null,s,n,a.a.createElement("div",null,a.a.createElement(Op,{parameters_list:m,start_date:w,end_date:E,sensor:this.state.sensor,category_parameters:this.state.category_mappings[i].parameters,chart_type:this.state.category_mappings[i].type})))}}])&&Cp(t.prototype,r),n&&Cp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Dp=Object(s.connect)((function(e){return{sensors:e.sensors.data,parameters:e.parameters,selected_detail:e.sensorDetail.name}}),(function(e){return{cleanPreviousSelection:function(){e((function(e){e({type:"CLEAN_DETAIL"})}))}}}))(Np),Ip=r(113),Ap=r.n(Ip);function Lp(e){return(Lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fp(e,t){return(Fp=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Mp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Up(e);if(t){var a=Up(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Gp(this,r)}}function Gp(e,t){if(t&&("object"===Lp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vp(e)}function Vp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Up(e){return(Up=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}r(87);var Wp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fp(e,t)}(i,e);var t,r,n,o=Mp(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Vp(t=o.call(this,e)),"state",void 0),t.state={center:[-84.44799549,38.9203417],vectorSource:new y.a.source.Vector,clusterSource:new y.a.source.Cluster({distance:1,source:new y.a.source.Vector}),areaPolygonSource:new y.a.source.Vector,currentZoom:5.5,maxZoom:Object(v.Ib)(),map:new y.a.Map({view:new y.a.View({center:[0,0],zoom:1}),layers:[new y.a.layer.Tile({source:new y.a.source.OSM})],target:"map"}),openAboutButton:!1},Vp(t).handleInfoIcon=t.handleInfoIcon.bind(Vp(t)),t}return t=i,(r=[{key:"handleInfoIcon",value:function(e){this.setState({openAboutButton:e})}},{key:"render",value:function(){var e=this;return a.a.createElement("div",null,a.a.createElement(K.Dialog,{open:Boolean(this.state.openAboutButton),onClose:function(){e.setState({openAboutButton:!1})}},a.a.createElement(K.DialogHeader,null,a.a.createElement(K.DialogTitle,null,"Monitoring Stations"),a.a.createElement("a",{className:lo.a.close_button_style,onClick:function(){e.setState({openAboutButton:!1})}},a.a.createElement(K.Icon,{name:"close"}))),a.a.createElement(K.DialogBody,{scrollable:!0,id:"stations-content"}," ")),a.a.createElement(K.Card,{className:lo.a.cardMargin},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},a.a.createElement("p",{className:Ap.a.locations_text_style},"Location"),a.a.createElement("a",{className:lo.a.locations_button_style,onClick:this.handleInfoIcon},a.a.createElement(K.Icon,{name:"info"})))),a.a.createElement(K.CardMedia,null,a.a.createElement("div",null,a.a.createElement("div",{id:"map",className:Ap.a.map_style}," "),a.a.createElement("div",{style:{display:"none"}},a.a.createElement("div",{id:"marker",title:"Marker",className:"marker"}," "),a.a.createElement("div",{id:"popup",className:Ap.a.regionPopup},a.a.createElement("a",{href:"#",id:"popup-closer",className:Ap.a.regionPopupCloser},a.a.createElement(K.Icon,{name:"close"})),a.a.createElement("div",{id:"popup-content"}," ")))))))}},{key:"stationsPopupMenu",value:function(e){var t=this.props.trends_region_title,r=document.getElementById("stations-content"),n="",a="
    ";e&&e.map((function(e){(n=e.getId().toUpperCase())!==t.toUpperCase()&&(a+="
  • "+n+"
  • ")})),a+="
",r&&(r.innerHTML=a.toString())}},{key:"popupHandler",value:function(e,t){var r=document.getElementById("popup-content");if(e&&e.getId()){var n=function(e,t){var r=e.getId().toUpperCase(),n=e.attributes.color;return"<p class="+t.regionPopupText+' style="background-color: '+n+';">'+r+"

"}(e,Ap.a);r&&(r.innerHTML=n),this.state.map.getOverlayById("marker").setPosition(t)}}},{key:"componentDidUpdate",value:function(){var e,t,r,n=this.props,a=n.trends_region,o=n.allSensors,i=(n.parameter,n.selectedParameter,a.toLowerCase());Z(this.state.map,!0);var s=new y.a.Feature,l=[];t=o,(r=Object(v.x)(i))&&r.geometry&&(s=new y.a.Feature({geometry:new y.a.geom.Polygon(r.geometry.coordinates).transform("EPSG:4326","EPSG:3857")}),l.push(s)),this.state.areaPolygonSource.clear(),this.state.areaPolygonSource.addFeatures(l);var c=[];t.map((function(e){x(a,e)&&c.push(e)})),e=M(c),this.state.vectorSource.clear(),this.state.vectorSource.addFeatures(e),r&&this.state.map.getSize()&&this.state.map.getView().fit(this.state.areaPolygonSource.getExtent(),this.state.map.getSize()),this.stationsPopupMenu(e)}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.trends_region,e.allSensors),r=(e.selectedParameter,M(t)),n=new y.a.source.Cluster({distance:1,source:this.state.vectorSource});this.setState({clusterSource:n});var a=new y.a.layer.Vector({source:n,style:function(){var e=new y.a.style.Style({image:new y.a.style.Circle({radius:6,fill:new y.a.style.Fill({color:Object(v.tb)("noTrend")}),stroke:new y.a.style.Stroke({color:"#000000",width:1})})});return e}});a.setZIndex(1);var o,i=[new y.a.layer.Tile({source:new y.a.source.XYZ({attributions:U(),url:Object(v.bb)()})}),a],s=this,l=document.getElementById("popup"),c=document.getElementById("popup-closer");if(l){var u=new y.a.Overlay({id:"marker",element:l,autoPan:!0,autoPanAnimation:{duration:250}}),p=new y.a.View({projection:"EPSG:3857",center:y.a.proj.fromLonLat(this.state.center),zoom:this.state.currentZoom,minZoom:5.5,maxZoom:this.state.maxZoom});o=new y.a.Map({target:"map",layers:i,view:p,overlays:[u],controls:q()});var d=new y.a.interaction.Select;o.addInteraction(d),c&&(c.onclick=function(){return u.setPosition(void 0),c.blur(),!1}),o.on("singleclick",(function(e){d.setActive(!1);var t=o.forEachFeatureAtPixel(e.pixel,(function(e){return e}));if(t&&void 0!==t.get("features")&&1===t.get("features").length){var r=t.get("features")[0];s.popupHandler(r,e.coordinate)}else c&&(u.setPosition(void 0),c.blur())}));var f=new y.a.source.Vector({features:[new y.a.Feature({})]});this.setState({areaPolygonSource:f});var m=new y.a.layer.Vector({id:"areaPolygon",source:f,style:[new y.a.style.Style({stroke:new y.a.style.Stroke({color:"rgba(0, 152, 254, 1)",width:2}),fill:new y.a.style.Fill({color:"rgba(254, 254, 254, 0.3)"})})]});o.addLayer(m),this.setState({map:o}),this.stationsPopupMenu(r)}}}])&&Bp(t.prototype,r),n&&Bp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);Wp.propTypes={trends_region:Je.a.string.isRequired,trends_region_title:Je.a.string.isRequired,trendSensors:Je.a.array.isRequired,selectedParameter:Je.a.string.isRequired};var qp=Wp,Hp=Object(s.connect)((function(e){return{trendSensors:e.chosenTrends.trends_sensors,allSensors:e.sensors.available_sensors,selectedParameter:e.chosenTrends.parameter}}))(qp);function zp(e){return(zp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qp(e,t){return(Qp=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Xp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Kp(e);if(t){var a=Kp(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Jp(this,r)}}function Jp(e,t){if(t&&("object"===zp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kp(e){return(Kp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var $p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qp(e,t)}(i,e);var t,r,n,o=Xp(i);function i(){return Zp(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props.trends_region_name,t=[];Object(v.Ab)().map((function(e){!0===e.parameter.lake_regions&&t.push(e.parameter.id)}));var r=B(this.props.regionsStations,this.props.trends_parameter,this.props.trends_season,t,this.props.parameters),n="";if(r&&e)for(var o=0;o<r.length;o++)r[o].attributes.location.toUpperCase()===e.toUpperCase()&&(n=a.a.createElement("ul",{className:lo.a.list_style},a.a.createElement("li",{className:lo.a.capitalize_word},"Season: ",this.props.trends_season),a.a.createElement("li",null,"Total Avg: ",r[o].attributes.trend_values[0]," "),a.a.createElement("li",null,"Ten Year Avg: ",r[o].attributes.trend_values[1]),a.a.createElement("li",null,"Latest Avg: ",r[o].attributes.trend_values[2])));return a.a.createElement(K.Card,{className:lo.a.cardMargin},a.a.createElement(K.CardHeader,null,a.a.createElement(K.CardTitle,{className:u.a.title_card},"Trends Summary")),a.a.createElement(K.CardText,null,n))}}])&&Yp(t.prototype,r),n&&Yp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);$p.propTypes={selectedParameter:Je.a.string.isRequired,trends_region_name:Je.a.string.isRequired,regionsStations:Je.a.array.isRequired,selectedSeason:Je.a.string.isRequired};var ed=$p,td=Object(s.connect)((function(e){return{regionsStations:e.chosenTrends.trends_regions,selectedParameter:e.chosenTrends.parameter,selectedSeason:e.chosenTrends.season,detailRegion:e.chosenTrends.detail_region,parameters:e.parameters.parameters}}))(ed),rd=r(261);function nd(e){return(nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ad(){return(ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function od(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function id(e,t){return(id=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function sd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ud(e);if(t){var a=ud(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ld(this,r)}}function ld(e,t){if(t&&("object"===nd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cd(e)}function cd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ud(e){return(ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var pd=r(46),dd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&id(e,t)}(i,e);var t,r,n,o=sd(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={xline:pd.scaleLinear(),yline:pd.scaleLinear()},t.setUpGraph=t.setUpGraph.bind(cd(t)),t}return t=i,(r=[{key:"componentWillMount",value:function(){this.setUpGraph(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.setUpGraph(e)}},{key:"setUpGraph",value:function(e){var t=e.width,r=e.height,n=e.margins,a=e.chartData,o=[0,t-n.left-n.right],i=[r-n.top-n.bottom,0],s=pd.extent(a,(function(e){return e.x})),l=pd.extent(a,(function(e){return e.y+e.d}))[1],c=[pd.extent(a,(function(e){return e.y-e.d}))[0],l];this.setState({xRange:o,xDomain:s,yRange:i,yDomain:c}),this.setState({xline:pd.scaleLinear().domain(s).range(o)}),this.setState({yline:pd.scaleLinear().domain(c).range(i)}),this.setState({barLength:o[1]/a.length
.3});var u=this;pd.select(this.refs.svgContainer).on("mousemove",(function(){var e=pd.bisector((function(e){return e.x})).left,t=u.state.xline.invert(pd.mouse(this)[0]-n.left),r=e(a,t,1)-1,o=a[r-1],i=a[r],s=void 0!==i||t-o.x>i.x-t?i:o;if(s){u.setState({dFocus:s}),u.setState({xFocus:u.state.xline(s.x)}),u.setState({yFocus:u.state.yline(s.y)});var l=pd.select("text").node().getBBox();pd.select("rect").attr("width",l.width+8).attr("height",l.height+8),r>.65a.length?u.setState({xFocusText:u.state.xline(s.x)-l.width-u.state.barLength}):u.setState({xFocusText:u.state.xline(s.x)+u.state.barLength})}})),pd.select(this.refs.svgContainer).on("mouseleave",(function(){u.setState({dFocus:void 0,xFocus:void 0,yFocus:void 0})}))}},{key:"_mkLine",value:function(){return a.a.createElement("path",{stroke:"black",strokeWidth:"2",fill:"none",d:this._setAxes(this.props.chartData),strokeDasharray:"5,5"})}},{key:"_setAxes",value:function(e){var t=this;return pd.line().x((function(e){return t.state.xline(e.x)})).y((function(e){return t.state.yline(e.y)}))(e)}},{key:"_setDeviations",value:function(e,t,r){var n=[{x:e,y:t+r},{x:e,y:t-r}];return this._setAxes(n)}},{key:"_mkMarker",value:function(){var e=this,t=this.state.barLength;return a.a.createElement("g",null,this.props.chartData.map((function(r,n){return a.a.createElement("g",{key:n},a.a.createElement("path",{stroke:"black",strokeWidth:1,fill:"none",d:e._setDeviations(r.x,r.y,r.d)}),a.a.createElement("line",{stroke:"black",strokeWidth:1,fill:"none",x1:e.state.xline(r.x)-t,y1:e.state.yline(r.y+r.d),x2:e.state.xline(r.x)+t,y2:e.state.yline(r.y+r.d)}),a.a.createElement("line",{stroke:"black",strokeWidth:1,fill:"none",x1:e.state.xline(r.x)-t,y1:e.state.yline(r.y-r.d),x2:e.state.xline(r.x)+t,y2:e.state.yline(r.y-r.d)}),a.a.createElement("circle",{stroke:"black",strokeWidth:"2",fill:"black",cx:e.state.xline(r.x),cy:e.state.yline(r.y),r:3}))})))}},{key:"_mkFocus",value:function(){var e=this.state,t=e.xFocus,r=e.xFocusText,n=e.yFocus,o=e.dFocus,i=e.barLength;return o?a.a.createElement("g",null,a.a.createElement("circle",{stroke:"black",strokeWidth:"2",fill:"black",cx:t,cy:n,r:6,display:focus}),a.a.createElement("rect",{x:r,y:n+i,rx:10,ry:10,width:150,height:50,fill:"rgb(29, 133, 172)",stroke:"rgb(29, 133, 172)"}),a.a.createElement("text",{x:r,y:n+i+10,fill:"white"},a.a.createElement("tspan",{x:r,dx:"0.2em",dy:".6em"},this.props.xLabel+": "+o.x.getFullYear()),a.a.createElement("tspan",{x:r,dx:"0.2em",dy:"1.2em"},this.props.yLabel+": "+o.y.toFixed(2)),a.a.createElement("tspan",{x:r,dx:"0.2em",dy:"1.2em"},"Deviation: "+o.d.toFixed(2)))):null}},{key:"render",value:function(){var e=this.props,t=(e.chartData,e.width),r=e.margins,n=e.height,o=e.id,i="translate(".concat(r.left,", ").concat(r.top,")");return"translate(0, ".concat(n-r.top,")"),a.a.createElement("div",{style:{width:"100%"}},a.a.createElement("svg",{height:n,width:"100%",id:o,ref:"svgContainer"},a.a.createElement("g",{transform:i,height:n,width:"100%"},a.a.createElement("g",{id:"line"},this._mkLine()),a.a.createElement("g",{id:"marker"},this._mkMarker()),a.a.createElement("g",{id:"focus"},this._mkFocus()),a.a.createElement("g",{id:"Xaxis-line",transform:"translate(0, ".concat(n-r.top-r.bottom,")")},a.a.createElement("line",{x1:0,y1:0,x2:t-r.left-r.right,y2:0,stroke:"black",strokeWidth:2,fill:"none"})),a.a.createElement("g",{id:"Yaxis-line"},a.a.createElement("line",{x1:0,y1:0,x2:0,y2:n-r.top-r.bottom,stroke:"black",strokeWidth:2,fill:"none"})),a.a.createElement(rd.Xaxis,ad({id:"Xaxis"},this.props,{xDomain:this.state.xDomain,xRange:this.state.xRange,x:function(e){return e.x}})),a.a.createElement(rd.Yaxis,ad({id:"Yaxis"},this.props,{y:function(e){return e.y},yDomain:this.state.yDomain,yRange:this.state.yRange,yAxisClassName:"y-axis"})))))}}])&&od(t.prototype,r),n&&od(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function fd(e){return(fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function md(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hd(e,t){return(hd=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function yd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=vd(e);if(t){var a=vd(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return bd(this,r)}}function bd(e,t){if(t&&("object"===fd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gd(e)}function gd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vd(e){return(vd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var _d=r(46),wd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hd(e,t)}(i,e);var t,r,n,o=yd(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(gd(t=o.call(this,e)),"state",void 0),t.state={loading:!1},t}return t=i,(r=[{key:"render",value:function(){var e=this,t=this.props,r=(t.trends_settings,t.start_year),n=t.end_year,o=t.title,i=(t.units,[]),s=this.props.trends_regions.find((function(t){return void 0!==t&&t.name===e.props.trends_region_id}));if(Array.isArray(s.trends_detail)&&Array.isArray(s.trends_deviation)){var l={};s.trends_detail.map((function(e){l=Object.assign({},l,e)}));var c={};s.trends_deviation.map((function(e){return c=Object.assign({},c,e)}));var u=_d.timeParse("%Y");Object.keys(l).forEach((function(e){parseInt(e)>=parseInt(r)&&parseInt(e)<=parseInt(n)&&i.push({x:u(e),y:parseFloat(l[e]),d:parseFloat(c[e])})})),i.sort((function(e,t){return Number(e.x)-Number(t.x)}))}return a.a.createElement("div",null,a.a.createElement(dd,{width:800,height:600,margins:{top:10,right:10,bottom:50,left:60},chartData:i,xScale:"time",xLabel:"Year",yScale:"linear",yLabel:er(o)}))}}])&&md(t.prototype,r),n&&md(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Ed(e){return(Ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Od(e,t){return(Od=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function jd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=kd(e);if(t){var a=kd(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Cd(this,r)}}function Cd(e,t){if(t&&("object"===Ed(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kd(e){return(kd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Pd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Od(e,t)}(i,e);var t,r,n,o=jd(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(r=[{key:"render",value:function(){var e=(0,Qu.a.createSliderWithTooltip)(Qu.a.Range);return a.a.createElement("div",null,a.a.createElement("span",{className:Yu.a.start},this.props.start_year),a.a.createElement("div",{className:Yu.a.yearWrapper},a.a.createElement(e,{min:this.props.start_year,max:this.props.end_year,defaultValue:[this.props.selectedStartYear,this.props.selectedEndYear],allowCross:!1,tipFormatter:function(e){return"".concat(e)},onAfterChange:this.props.onSliderChange,dots:!0})),a.a.createElement("span",{className:Yu.a.end},this.props.end_year)," ",a.a.createElement("br",null),"Selected: ",this.props.selectedStartYear," - ",this.props.selectedEndYear)}}])&&Sd(t.prototype,r),n&&Sd(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function xd(e){return(xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Td(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rd(e,t){return(Rd=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Nd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ad(e);if(t){var a=Ad(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Dd(this,r)}}function Dd(e,t){if(t&&("object"===xd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Id(e)}function Id(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ad(e){return(Ad=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Ld=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rd(e,t)}(i,e);var t,r,n,o=Nd(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Id(t=o.call(this,e)),"state",void 0),t.state={selectedStartYear:0,selectedEndYear:0,loading:!1,data:{},loading_time:0},Id(t).onSliderChange=t.onSliderChange.bind(Id(t)),t}return t=i,(r=[{key:"loadDetailData",value:function(){var e=this;return this.props.fetchRegionDetailTrends(this.props.trends_parameter,this.props.trends_season,this.props.trends_region_id),lt(e.props.trends_regions.find((function(t){return void 0!==t&&t.name===e.props.trends_region_id})),e.props.show_spinner,"trends_detail")}},{key:"componentWillMount",value:function(){var e=this;this.setState({loading:!0}),this.loadDetailData().then((function(t){e.setState({loading:!1,data:t});var r=[e.state.selectedStartYear,e.state.selectedEndYear];e.onSliderChange(r)}))}},{key:"componentDidUpdate",value:function(){var e=this;window.onhashchange=function(){window.location.href.indexOf("trendsdetail/region")>-1&&(e.setState({loading:!0}),e.loadDetailData().then((function(t){e.setState({loading:!1,data:t,loading_time:0})})))}}},{key:"onSliderChange",value:function(e){this.setState({selectedStartYear:e[0],selectedEndYear:e[1]})}},{key:"render",value:function(){var e=this;if(this.state.loading)return a.a.createElement("div",null,a.a.createElement(st,{loading_time_text:!0}));var t=[];this.state.data.map((function(e){Object.keys(e).map((function(e){return t.push(parseInt(e))}))}));var r=Math.min.apply(null,t),n=Math.max.apply(null,t),o=0===this.state.selectedStartYear?r:this.state.selectedStartYear,i=0===this.state.selectedEndYear?n:this.state.selectedEndYear,s=this.props.parameters.find((function(t){return t.name===e.props.trends_parameter})),l=a.a.createElement("div",null," ERROR! Please Try Again! ");return s&&!this.state.loading&&this.state.data.length>0&&(l=a.a.createElement("div",null,a.a.createElement(Pd,{start_year:r,end_year:n,selectedStartYear:o,selectedEndYear:i,onSliderChange:this.onSliderChange}),a.a.createElement(wd,{trends_settings:this.props.trends_settings,trends_region_id:this.props.trends_region_id,trends_parameter:this.props.trends_parameter,title:s.title,units:s.unit,trends_season:this.props.trends_season,start_year:o,end_year:i,trends_regions:this.props.trends_regions}))),a.a.createElement("div",null,l)}}])&&Td(t.prototype,r),n&&Td(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),Bd=Object(s.connect)((function(e){return{trends_regions:e.chosenTrends.trends_regions,show_spinner:e.chosenTrends.show_spinner,parameters:e.parameters.parameters}}),(function(e){return{fetchRegionDetailTrends:function(t,r,n){e(Pe(t,r)),e(function(e,t,r){return function(n,a){var o=a(),i=ke(a).api+"/api/trends/region/detail/",s=o.chosenTrends.trends_regions.filter((function(e){return e.properties.region.toUpperCase()===r.toUpperCase()})),l=[],c=s.filter((function(e){return e.geometry.geocode.length>0})).map((function(r){var n=i+e+"?geocode="+r.geometry.geocode.toString().replace(/,/g,"%2C")+"&season="+t;return fetch(n).then((function(e){return e.json()})).then((function(e){e&&(l=Object.assign(r,{trends_detail:e.average,trends_deviation:e.deviation}))})).catch((function(e){console.log(e),console.log(n)}))}));Promise.all(c).then((function(a){return n({type:"ADD_REGION_DETAIL_TRENDS",regions_trends:l,region:r,parameter:e,season:t})}))}}(t,r,n))}}}))(Ld);function Fd(e){return(Fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Md(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Gd(e,t){return(Gd=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Vd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=qd(e);if(t){var a=qd(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Ud(this,r)}}function Ud(e,t){if(t&&("object"===Fd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wd(e)}function Wd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qd(e){return(qd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Hd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gd(e,t)}(i,e);var t,r,n,o=Vd(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Wd(t=o.call(this,e)),"state",void 0),t.state={selectedStartYear:0,selectedEndYear:0},t}return t=i,(r=[{key:"render",value:function(){var e=Object(v.Ab)(),t=Object(v.z)(this.props.params.region),r=" > "+Object(v.z)(this.props.params.region);return a.a.createElement("div",null,a.a.createElement(K.Content,null,a.a.createElement("div",{className:u.a.body},a.a.createElement(K.Grid,{className:u.a.noPadding},a.a.createElement(K.Cell,{col:4},a.a.createElement(K.Card,{className:lo.a.detailTitle},a.a.createElement(K.CardTitle,{className:u.a.title_card},a.a.createElement(l.a,{href:"#trendsregions"},"Trends Regions"),r)),a.a.createElement(K.List,{className:lo.a.detailListStyle},a.a.createElement(td,{trends_region_name:this.props.params.region,trends_season:this.props.params.season,trends_parameter:this.props.params.parameter}),a.a.createElement(Hp,{trends_region:this.props.params.region,trends_parameter:this.props.params.parameter,trends_region_title:t}))),a.a.createElement(K.Cell,{col:8},a.a.createElement("div",{className:lo.a.detailChart},a.a.createElement(Bd,{trends_settings:e,trends_region_id:this.props.params.region,trends_parameter:this.props.params.parameter,trends_season:this.props.params.season,start_year:this.state.selectedStartYear,end_year:this.state.selectedEndYear})))))))}}])&&Md(t.prototype,r),n&&Md(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function zd(e){return(zd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qd(e,t){return(Qd=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Xd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Kd(e);if(t){var a=Kd(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Jd(this,r)}}function Jd(e,t){if(t&&("object"===zd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kd(e){return(Kd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var $d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qd(e,t)}(i,e);var t,r,n,o=Xd(i);function i(){return Zd(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){return a.a.createElement("div",null,a.a.createElement("div",{className:ln.a.custom_page},a.a.createElement("div",{className:ln.a.custom_header},a.a.createElement("h2",null,"Welcome to the ",a.a.createElement("br",null)," Illinois Nutrient Loss Reduction Strategy ",a.a.createElement("br",null)," Data Portal")),a.a.createElement("div",null,a.a.createElement("h3",null,"About This Application"),a.a.createElement("div",{className:ln.a.custom_paragraph},a.a.createElement("p",null,"The Illinois Nutrient Loss Reduction Strategy guides state efforts to improve water quality at home and downstream by reducing nitrogen and phosphorus levels in our lakes, streams, and rivers. The strategy lays out a comprehensive suite of best management practices for reducing nutrient loads from wastewater treatment plants and urban and agricultural runoff. Recommended activities target the state’s most critical watersheds and are based on the latest science and best-available technology. It also calls for more collaboration between state and federal agencies, cities, non-profits, and technical experts on issues such as water quality monitoring, funding, and outreach.")),a.a.createElement("div",{className:ln.a.custom_paragraph},a.a.createElement("p",null,"The strategy was developed by a policy working group led by the Illinois Water Resource Center-Illinois Indiana Sea Grant, the Illinois Environmental Protection Agency, and the Illinois Department of Agriculture. Group members included representatives from state and federal agencies, agriculture, and non-profit organizations as well as scientists and wastewater treatment professionals.")),a.a.createElement("div",{className:ln.a.custom_paragraph},a.a.createElement("p",null,"This portal is powered by the Great Lakes to Gulf Virtual Observatory. The National Great Rivers Research and Education Center (NGRREC",a.a.createElement("sup",null,"SM"),"), Illinois-Indiana Sea Grant, and the National Center for Supercomputing Applications (NCSA) partnered in the development of the ",a.a.createElement("strong",null,a.a.createElement(l.a,{href:"http://gltg.ncsa.illinois.edu/"},"Great Lakes to Gulf (GLTG",a.a.createElement("sup",null,"SM"),") Virtual Observatory")),". The GLTG virtual observatory gathers data from a variety of federal, state, local, and private sources, including the Water Quality Portal. Through visualizing water quality monitoring data and land-use data across sources and agencies, the virtual observatory provides insight to changes in water quality with a user friendly interface.")))),a.a.createElement(Mr.a,null))}}])&&Yd(t.prototype,r),n&&Yd(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),ef=r(52),tf=r.n(ef);function rf(e){return(rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function af(e,t){return(af=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function of(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=cf(e);if(t){var a=cf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return sf(this,r)}}function sf(e,t){if(t&&("object"===rf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lf(e)}function lf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cf(e){return(cf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var uf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&af(e,t)}(i,e);var t,r,n,o=of(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(lf(t=o.call(this,e)),"state",void 0),t.state={openMenu:!1},lf(t).toggleTrendMenu=t.toggleTrendMenu.bind(lf(t)),lf(t).onClickMenuItem=t.onClickMenuItem.bind(lf(t)),t}return t=i,(r=[{key:"toggleTrendMenu",value:function(e){this.setState({openMenu:e})}},{key:"onClickMenuItem",value:function(e){l.d.push(e)}},{key:"render",value:function(){var e=this,t=this.props.pageChildren.map((function(t){return a.a.createElement(K.MenuItem,{role:"menuitem",key:t.name,onClick:function(){return e.onClickMenuItem(t.url)}},a.a.createElement("span",{className:tf.a.menu_list_item},t.name))}));return a.a.createElement("div",null,a.a.createElement(K.Tab,{key:this.props.pageName,active:this.props.selected===this.props.pageName.toLowerCase(),onClick:function(){return e.toggleTrendMenu(!0)}},this.props.pageName,a.a.createElement(K.Icon,{className:tf.a.buttonTrends,name:"arrow_drop_down"})),a.a.createElement(K.MenuAnchor,{className:tf.a.inline},a.a.createElement(K.Menu,{className:tf.a.menu_style,open:this.state.openMenu,onClose:function(){return e.toggleTrendMenu(!1)}},t)))}}])&&nf(t.prototype,r),n&&nf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function pf(e){return(pf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ff(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mf(e,t){return(mf=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function hf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=bf(e);if(t){var a=bf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return yf(this,r)}}function yf(e,t){if(t&&("object"===pf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bf(e){return(bf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var gf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mf(e,t)}(s,e);var t,n,o,i=hf(s);function s(){return df(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"render",value:function(){var e,t=this;try{e=a.a.createElement("div",null," ",a.a.createElement("img",{className:tf.a.header_image,src:r(345)})," ")}catch(e){}var n=Object(v.j)(),o=[];n.pages.map((function(e){if(e.url)e.url.includes("explore")&&e.url.includes("geodashboard")&&screen.width<=Object(v.fb)()&&(e.url=Object(v.db)()),o.push(a.a.createElement(K.Tab,{href:e.url,key:e.name,active:t.props.selected===e.name.toLowerCase()},e.name));else if(e.children){var r=a.a.createElement(uf,{key:e.name,pageName:e.name,pageChildren:e.children});o.push(r)}}));var i="";if(!0===Object(v.O)()){var s=navigator.userAgent.toLowerCase(),l="false";-1!==s.indexOf("msie")&&(l=parseInt(s.split("msie")[1]).toString(),-1!==Object(v.S)().indexOf(l)&&(i=a.a.createElement("span",{className:tf.a.header_alert},Object(v.N)()))),(-1===s.indexOf("msie")&&-1!==s.indexOf("trident")&&!0===Object(v.R)()||-1!==s.indexOf("edge")&&!0===Object(v.Q)())&&(i=a.a.createElement("span",{className:tf.a.header_alert},Object(v.N)()))}return a.a.createElement("div",{className:tf.a.header_background},a.a.createElement("div",{className:tf.a.header_banner},e,a.a.createElement("div",{className:tf.a.header_title},a.a.createElement("p",{id:"header-title-text",className:tf.a.header_title_text},this.props.header_title)),a.a.createElement("div",{className:tf.a.header_subtitle},a.a.createElement("p",{id:"header-subtitle-text",className:tf.a.header_subtitle_text},this.props.subtitle," ")),a.a.createElement("div",{className:tf.a.header_hr_div},i,a.a.createElement("hr",{className:tf.a.header_hr})),a.a.createElement(K.Tabbar,{className:tf.a.navbar,id:"navigation"},o)))}}])&&ff(t.prototype,n),o&&ff(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component),vf=Object(s.connect)((function(e){return{header_title:e.backends.title,subtitle:e.backends.subtitle}}))(gf);function _f(e){return(_f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ef(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Sf(e,t){return(Sf=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Of(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Cf(e);if(t){var a=Cf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return jf(this,r)}}function jf(e,t){if(t&&("object"===_f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Cf(e){return(Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var kf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sf(e,t)}(i,e);var t,r,n,o=Of(i);function i(){return wf(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){return a.a.createElement("div",null,a.a.createElement(vf,{selected:"about"}),a.a.createElement("div",{className:ln.a.custom_page},a.a.createElement("div",{className:ln.a.custom_other_header_image},a.a.createElement("div",{className:ln.a.custom_about_header_wrapper},a.a.createElement("p",{id:"toc"}," "),a.a.createElement("h2",{className:ln.a.custom_about_header},"Partners"))),a.a.createElement("div",{className:ln.a.custom_list},a.a.createElement(K.List,null,a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("usgs").scrollIntoView()}},"United States Geological Survey (USGS)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("epa").scrollIntoView()}},"United States Environmental Protection Agency (USEPA)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("wqp").scrollIntoView()}},"Water Quality Portal (WQP)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("usace").scrollIntoView()}},"United States Army Corps of Engineers (USACE)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("ngrrec").scrollIntoView()}},"National Great Rivers Research and Education Center (NGRREC)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("inhs").scrollIntoView()}},"Illinois Natural History Survey Center (INHS)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("lac").scrollIntoView()}},"Lewis and Clark Community College (LCC)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("uiuc").scrollIntoView()}},"University of Illinois at Urbana-Champaign (UIUC)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("seagrant").scrollIntoView()}},"Illinois-Indiana Sea Grant (IISG)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("ncsa").scrollIntoView()}},"National Center for Supercomputing Applications (NCSA)")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("ilepa").scrollIntoView()}},"Illinois Environmental Protection Agency")))),a.a.createElement("br",null),a.a.createElement("div",{className:ln.a.custom_paragraph},a.a.createElement("p",{className:ln.a.custom_header_second,id:"usgs"},"United States Geological Survey (USGS)"),a.a.createElement("p",null,"The United States Geological Survey (USGS) investigates the occurrence, quantity, quality, distribution, and movement of surface waters and ground waters and disseminates the data to the public, state, and local governments, public and private utilities, and other federal agencies involved with managing our water resources.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_third},"NWIS"),a.a.createElement("p",{className:ln.a.custom_subparagraph},"As part of the U.S. Geological Survey's (USGS) program for disseminating water data within USGS, to USGS cooperators, and to the general public, the USGS maintains a distributed network of servers for the acquisition, processing, review, and long-term storage of water data. This distributed network of computers is called the National Water Information System (NWIS) and includes water data collected at over 1.5 million sites around the country and at some border and territorial sites.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"epa"},"United States Environmental Protection Agency (USEPA)"),a.a.createElement("p",null,"The Environmental Protection Agency (USEPA) gathers and distributes water quality monitoring data collected by states, tribes, watershed groups, other federal agencies, volunteer groups, and universities through the Water Quality Exchange (WQX) framework in the STORET Warehouse.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_third},"STORET"),a.a.createElement("p",{className:ln.a.custom_subparagraph},"The STORET Data Warehouse is USEPA's repository of the water quality monitoring data collected by water resource management groups across the country. These organizations, including states, tribes, watershed groups, other federal agencies, volunteer groups and universities, submit data to the STORET Warehouse in order to make their data publically accessible. Data can then be re-used for analysis. WQX is the framework by which organizations submit data to the Warehouse.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_third},"WQX"),a.a.createElement("p",{className:ln.a.custom_subparagraph},"Groups submit data to the STORET Data Warehouse through a framework called the Water Quality Exchange, or WQX. WQX is not a distributed database that people use, but rather a standard way of sharing data to the STORET Data Warehouse, using the National Environmental Information Exchange Network. The WQX framework consists of different pieces. First, WQX defines a standard set of data elements that must be captured in a data submission file in order for the data to come into the STORET Data Warehouse. Second, WQX uses a standard set of internet protocols that define how a data submission is made to the USEPA. Please go to the WQX page for more information about how WQX works.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_third},"UMESC/LTRM - NGRREC",a.a.createElement("sup",null,"SM")),a.a.createElement("p",{className:ln.a.custom_subparagraph},"UMESC/LTRM - NGRREC affiliates with the Illinois Natural History Survey (INHS) are one of six groups (Lake City, Minnesota; La Crosse, Wisconsin; Bellevue, Iowa; Great Rivers and Havana, Illinois; and Open Rivers and Wetlands, Missouri) nationally collecting fish population and water quality data for the Upper Mississippi Environmental Sciences Center’s (UMESC) Long Term Resource Monitoring Program (LTRM). An element of the Upper Mississippi River Restoration – Environmental Management Program (UMRR-EMP) funded by the U.S. Army Corps of Engineers, LTRM conducts monitoring, focused research projects and evaluates the success of habitat projects on the Upper Mississippi River System. Since beginning in 1986, LTRM has compiled one of the most comprehensive long-term data sets for any major ecosystem in the world.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"wqp"},"Water Quality Portal (WQP)"),a.a.createElement("p",{className:ln.a.custom_paragraph},"The Water Quality Portal (WQP) is a cooperative service sponsored by the United States Geological Survey (USGS), the Environmental Protection Agency (USEPA) and the National Water Quality Monitoring Council (NWQMC) that integrates publicly available water quality data from the USGS National Water Information System (NWIS), the USEPA STOrage and RETrieval (STORET) Data Warehouse, and the USDA ARS Sustaining The Earth’s Watersheds - Agricultural Research Database System (STEWARDS). The WQP serves data collected by over 400 state, federal, tribal, and local agencies. As of February 2014, over 228 million results from over 2.2 million monitoring locations are currently accessible through the portal. The portal reports samples and results collected from each location since the beginning of the databases.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"usace"},"United States Army Corps of Engineers (USACE)"),a.a.createElement("p",{className:ln.a.custom_paragraph},"The U.S. Army Corps of Engineers (USACE) is a dynamic organization with 36,500 civilian and 700 military employees. This diverse workforce provides vital public engineering services in peace and war to strengthen the nation’s security, energize the economy, and reduce risks from disasters. The Corps aims to energize the economy by dredging America’s waterways to support the movement of critical commodities and providing recreation opportunities at our campgrounds, lakes and marinas, as well as reduce disaster risk by devising hurricane and storm damage reduction infrastructure. The Corps is active in protecting and restoring the Nation’s environment including critical efforts in the Everglades, the Louisiana coast, and along many of our nation’s major waterways. The Corps is also responsible for managing a large portion of the nation’s water resources infrastructure including 700 dams, 55,000 acres of shoreline, and 422 lakes in 43 states.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"ngrrec"},"National Great Rivers Research and Education Center (NGRREC)"),a.a.createElement("p",{className:ln.a.custom_paragraph},"National Great Rivers Research and Education Center (NGRREC) was established in 2002 as a partnersship between the Illinois Natural History Survey, the University of Illinois at Urbana-Champaign and Lewis and Clark Community College in Godfrey, IL. Each institution brings unique strengths to the partnership including the Survey’s history and experience with monitoring the state’s rivers, the University of Illinois’ world-class research expertise and Lewis and Clark’s location as a hub in the community at the confluence of the state’s great rivers. The unique partnership has enabled the Center’s rapid growth and contributions to watershed research and education."),a.a.createElement("p",{className:ln.a.custom_paragraph},"Learn more about the ",a.a.createElement(l.a,{href:"http://www.ngrrec.org",target:"_blank"},"National Great Rivers Research and Education Center"),a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"inhs"},"Illinois Natural History Survey Center (INHS)"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Since 1858, the Illinois Natural History Survey Center (INHS) has been the guardian and recorder of the biological resources of Illinois---the state's biological memory. With a staff of over 200 scientists and technicians, it is recognized as the premier natural history survey in the nation. Over the years, its mission has remained fairly constant: to investigate the diversity, life histories, and ecology of the plants and animals of the state; to publish research results so that those resources can be managed wisely; and to provide information to the public in order to foster an understanding and appreciation of our natural heritage."),a.a.createElement("p",{className:ln.a.custom_paragraph},"Learn more about the ",a.a.createElement(l.a,{href:"http://www.inhs.illinois.edu",target:"_blank"},"Illinois Natural History Survey"),".",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"lac"},"Lewis and Clark Community College (LCC)"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Lewis and Clark Community College (LCC) is a two-year higher education institution with multiple campuses, a river research center, Community Education Centers and training centers located throughout the 220,891-person college district, which reaches into seven counties. Founded in 1970 with 450 students, today Lewis and Clark serves approximately 26,000 students annually."),a.a.createElement("p",{className:ln.a.custom_paragraph},"Learn more about ",a.a.createElement(l.a,{href:"http://www.lc.edu",target:"_blank"},"Lewis and Clark Community College"),".",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"uiuc"},"University of Illinois at Urbana-Champaign (UIUC)"),a.a.createElement("p",{className:ln.a.custom_paragraph},"The University of Illinois at Urbana-Champaign (UIUC) is the state’s flagship public university and a world leader in research, teaching, and public engagement. A land-grant university, Illinois is distinguished by the breadth of its programs, broad academic excellence, and internationally renowned faculty. The University of Illinois serves the state, the nation, and the world by creating knowledge, preparing students for lives of impact, and addressing critical societal needs through the transfer and application of knowledge."),a.a.createElement("p",{className:ln.a.custom_paragraph},"Learn more about the ",a.a.createElement(l.a,{href:"http://www.illinois.edu",target:"_blank"},"University of Illinois at Urbana-Champaign"),".",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"seagrant"},"Illinois-Indiana Sea Grant (IISG)"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Illinois-Indiana Sea Grant (IISG), with its unique mandate to bring the latest science to those who can best use the information, serves a critical role in empowering people to solve problems in sustainable ways. One of more than 30 Sea Grant Programs in the U.S., IISG is focused on the southern Lake Michigan region--104 miles of heavily urbanized and industrialized shoreline in Illinois and Indiana. One third of the population of the Great Lakes lives along the shore of Lake Michigan between Milwaukee, Wisconsin and Michigan City, Indiana. The program is funded through National Oceanic and Atmospheric Administration (NOAA), the University of Illinois and Purdue University, but IISG also works in partnerships with key organizations, institutions, and agencies in the region to reach more audiences and multiply opportunities for success. IISG brings together scientists, educators, policy makers, community decision makers, outreach specialists, business leaders, and the general public to work towards a healthy environment and economy."),a.a.createElement("p",{className:ln.a.custom_paragraph},"Learn more about ",a.a.createElement(l.a,{href:"http://www.iisgcp.org/",target:"_blank"},"Illinois-Indiana Sea Grant"),".",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"ncsa"},"National Center for Supercomputing Applications (NCSA)"),a.a.createElement("p",{className:ln.a.custom_paragraph},"The National Center for Supercomputing Applications (NCSA provides computing, data, networking, and visualization resources and services that help scientists and engineers across the country better understand our world. NCSA is an interdisciplinary hub and is engaged in research and education collaborations with colleagues and students across the campus of the University of Illinois at Urbana-Champaign. Established in 1986 as one of the original sites of the National Science Foundation's Supercomputer Centers Program, NCSA is supported by the state of Illinois, the University of Illinois, the National Science Foundation, and grants from other federal agencies. The center focuses on big computing, big data, and big research."),a.a.createElement("p",{className:ln.a.custom_paragraph},"Learn more about the ",a.a.createElement(l.a,{href:"http://www.ncsa.illinois.edu",target:"_blank"},"NCSA"),".",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"ilepa"},"Illinois Environmental Protection Agency"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Learn more about the ",a.a.createElement(l.a,{href:"http://www.epa.illinois.gov",target:"_blank"},"Illinois EPA"),".",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]")))),a.a.createElement("br",null)))}}])&&Ef(t.prototype,r),n&&Ef(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Pf(e){return(Pf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rf(e,t){return(Rf=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Nf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=If(e);if(t){var a=If(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Df(this,r)}}function Df(e,t){if(t&&("object"===Pf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function If(e){return(If=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Af=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rf(e,t)}(i,e);var t,r,n,o=Nf(i);function i(){return xf(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){return a.a.createElement("div",null,a.a.createElement(vf,{selected:"about"}),a.a.createElement("div",{className:ln.a.custom_page},a.a.createElement("div",{className:ln.a.custom_other_header_image},a.a.createElement("div",{className:ln.a.custom_about_header_wrapper},a.a.createElement("p",{id:"toc"}," "),a.a.createElement("h2",{className:ln.a.custom_about_header},"Glossary"))),a.a.createElement("div",{className:ln.a.custom_list},a.a.createElement(K.List,null,a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("contaminants").scrollIntoView()}},"Contaminants")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("delta").scrollIntoView()}},"Delta")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("flood").scrollIntoView()}},"Flood")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("floodRisk").scrollIntoView()}},"Flood Risk")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("specialFloodHazardAreas").scrollIntoView()}},"Special Flood Hazard Areas")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("nonSpecialFloodHazardAreas").scrollIntoView()}},"Non-Special Flood Hazard Areas")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("undeterminedRiskAreas").scrollIntoView()}},"Undetermined Risk Areas")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("geospatial").scrollIntoView()}},"Geospatial")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("GREON").scrollIntoView()}},"GREON",a.a.createElement("sup",null,"SM"))),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("gulfOfMexicoHypoxicZone").scrollIntoView()}},"Gulf of Mexico Hypoxic Zone")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("HUC").scrollIntoView()}},"HUC")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("hydrology").scrollIntoView()}},"Hydrology")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("hypoxia").scrollIntoView()}},"Hypoxia")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("infrastructure").scrollIntoView()}},"Infrastructure")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("macroinvertebrates").scrollIntoView()}},"Macroinvertebrates")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("navigationChannels").scrollIntoView()}},"Navigation Channels")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("nutrients").scrollIntoView()}},"Nutrients")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("nutrientPollution").scrollIntoView()}},"Nutrient Pollution")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("phosphorus").scrollIntoView()}},"Phosphorus")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("phytoplankton").scrollIntoView()}},"Phytoplankton")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("reaches").scrollIntoView()}},"Reaches")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("riverMile").scrollIntoView()}},"River Mile")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("salinity").scrollIntoView()}},"Salinity")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("sediment").scrollIntoView()}},"Sediment")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("stratification").scrollIntoView()}},"Stratification")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("totalSuspendedSolids").scrollIntoView()}},"Total Suspended Solids")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("tributary").scrollIntoView()}},"Tributary")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("wastewater").scrollIntoView()}},"Wastewater")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("waterQuality").scrollIntoView()}},"Water Quality")),a.a.createElement(K.ListItem,{className:ln.a.custom_list_items},a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("watershed").scrollIntoView()}},"Watershed")))),a.a.createElement("br",null),a.a.createElement("div",{className:ln.a.custom_paragraph},a.a.createElement("p",{className:ln.a.custom_header_second,id:"contaminants"},"Contaminants"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Established by the EPA to protect public health by limiting the levels of contaminants in drinking water, National Primary Drinking Water Regulations (NPDWRs or primary standards) are legally enforceable standards that apply to public water systems. Drinking water, including bottled water, may reasonably be expected to contain at least small amounts of some contaminants. The presence of contaminants does not necessarily indicate that water poses a health risk. EPA sets standards for approximately 90 contaminants and indicators in drinking water. (Source: ",a.a.createElement(l.a,{href:"http://water.epa.gov/drink/contaminants/basicinformation/index.cfm",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"delta"},"Delta"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Deltas are wetlands that form as rivers empty their water and sediment into another body of water, such as an ocean, lake, or another river. Deltas can also empty into land, although this is less common. A river moves more slowly as it nears its mouth, or end. This causes sediment, solid material carried downstream by currents, to fall to the river bottom. ",a.a.createElement("br",null),"The slowing velocity of the river and the build-up of sediment allow the river to break from its single channel as it nears its mouth. Under the right conditions, a river forms a deltaic lobe. A mature deltaic lobe includes a distributary network—a series of smaller, shallower channels, called distributaries, which branch off from the main stem of the river. ",a.a.createElement("br",null),"In a deltaic lobe, heavier, coarser material settles first. Smaller, finer sediment is carried farther downstream. The finest material is deposited beyond the river's mouth. This material is called alluvium or silt. As silt builds up the delta forms, extending a river's mouth into the body of water into which it is emptying. ",a.a.createElement("br",null),"A delta is sometimes divided into two parts: subaqueous and subaerial. The subaqueous part of a delta is underwater. This is the most steeply sloping part of the delta, and contains the finest silt. The newest part of the subaqueous delta, furthest from the mouth of the river, is called the prodelta. The subaerial part of a delta is above water. The subaerial region most influenced by waves and tides is called the lower delta. The region most influenced by the river's flow is called the upper delta. ",a.a.createElement("br",null),"Past decades of river management has prevented the Mississippi River from naturally flowing through its delta wetlands, causing erosion. Between 1990 and 2000, the Mississippi River Delta lost 62 square kilometers (24 square miles) of wetlands per year. (Source: ",a.a.createElement(l.a,{href:"http://education.nationalgeographic.com/education/encyclopedia/delta/?ar_a=1",target:"_blank"},"National Geographic"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"flood"},"Flood"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Floods are one of the most common hazards in the United States. Anywhere it rains, it can flood. A flood is a general and temporary condition where two or more acres of normally dry land or two or more properties are inundated by water or mudflow. However not all floods are alike with some floods developing slowly, while others such as flash floods, develop in just a few minutes and without visible signs of rain. Additionally, floods can be local, impacting a neighborhood or community, or very large, affecting entire river basins and multiple states. ",a.a.createElement("br",null),"Many conditions can result in a flood: hurricanes, overtopped levees, outdated or clogged drainage systems and rapid accumulation of rainfall. Overland flooding, the most common type of flooding event typically occurs when waterways such as rivers or streams overflow their banks as a result of rainwater or a possible levee breach and cause flooding in surrounding areas. (Sources: ",a.a.createElement(l.a,{href:"https://www.floodsmart.gov/floodsmart/pages/flooding_flood_risks/ffr_overview.jsp",target:"_blank"},"NFIP"),", ",a.a.createElement(l.a,{href:"http://ready.gov/floods",target:"_blank"},"Ready.gov"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"floodRisk"},"Flood Risk"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Flooding can happen anywhere, but certain areas are especially prone to serious flooding. Flood risk can be informed by history, but risk is also based on a number of factors: rainfall, river-flow and tidal-surge data, topography, flood-control measures, climate change, and changes due to building and development. To help communities understand their risk, flood maps (Flood Insurance Rate Maps, FIRMs) have been created to show the locations of high-risk, moderate-to-low risk and undetermined-risk areas. (Source: ",a.a.createElement(l.a,{href:"https://www.floodsmart.gov/floodsmart/pages/flooding_flood_risks/defining_flood_risks.jsp",target:"_blank"},"NFIP"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"specialFloodHazardAreas"},"Special Flood Hazard Areas"),a.a.createElement("p",{className:ln.a.custom_paragraph},"In high-risk areas, there is at least a 1 in 4 chance of flooding during a 30-year mortgage. All home and business owners in these areas with mortgages from federally regulated or insured lenders are required to buy flood insurance. They are shown on the flood maps as zones labeled with the letters A or V. (Source: ",a.a.createElement(l.a,{href:"https://www.floodsmart.gov/floodsmart/pages/flooding_flood_risks/defining_flood_risks.jsp",target:"_blank"},"NFIP"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"nonSpecialFloodHazardAreas"},"Non-Special Flood Hazard Areas"),a.a.createElement("p",{className:ln.a.custom_paragraph},"In moderate-to-low risk areas, the risk of being flooded is reduced but not completely removed. These areas submit over 20% of NFIP claims and receive one-third of disaster assistance for flooding. Flood insurance isn't federally required in moderate-to-low areas, but it is recommended for all property owners and renters. They are shown on flood maps as zones labeled with the letters B, C or X (or a shaded X). (Source: ",a.a.createElement(l.a,{href:"https://www.floodsmart.gov/floodsmart/pages/flooding_flood_risks/defining_flood_risks.jsp",target:"_blank"},"NFIP"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"undeterminedRiskAreas"},"Undetermined Risk Areas"),a.a.createElement("p",{className:ln.a.custom_paragraph},"No flood-hazard analysis has been conducted in these areas, but a flood risk still exists. Flood insurance rates reflect the uncertainty of the flood risk. These areas are labeled with the letter D on the flood maps. (Source: ",a.a.createElement(l.a,{href:"https://www.floodsmart.gov/floodsmart/pages/flooding_flood_risks/defining_flood_risks.jsp",target:"_blank"},"NFIP"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"geospatial"},"Geospatial"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Geospatial is a term used to refer to data derived from or related to the earth’s surface, including both geographic and spatial characteristics.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"GREON"},"GREON",a.a.createElement("sup",null,"SM")),a.a.createElement("p",{className:ln.a.custom_paragraph},"The Great Rivers Ecological Observatory Network (GREON",a.a.createElement("sup",null,"SM"),") consists of a series of water quality monitoring platforms on the Mississippi River collecting near real-time, continuous water quality data. Data collected from the network will lead to a greater understanding of water quality and aquatic ecology in the Mississippi River system and the factors the drive and influence Gulf hypoxia. The platforms use state-of-the-art sensor technology mounted on a floating platform for in-stream measurement of a suite of water quality parameters.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"gulfOfMexicoHypoxicZone"},"Gulf of Mexico Hypoxic Zone"),a.a.createElement("p",{className:ln.a.custom_paragraph},"The hypoxic zone in the northern Gulf of Mexico is an area along the Louisiana-Texas coast, where water near the bottom of the Gulf contains less than 2 parts per million of dissolved oxygen, causing a condition referred to as hypoxia. ",a.a.createElement("br",null),"Each summer, the size of the hypoxic zone is measured. The size of the zone is an important indicator of how much progress is being made to reduce nutrient inputs into the Gulf of Mexico. Sometimes the size of the zone is influenced by other factors, such as droughts or hurricanes that can reduce the size of the zone, or floods that can increase the size. (Source: ",a.a.createElement(l.a,{href:"http://water.epa.gov/type/watersheds/named/msbasin/zone.cfm",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"HUC"},"HUC"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Hydrologic Unit Code (HUC) – Just as a phone is assigned a numeric area code, watersheds are assigned a numeric locator, called a Hydrologic Unit Code (HUC). A HUC can have anywhere from 2 to 12 digits. The more digits, the smaller the land area of the watershed. ",a.a.createElement("br",null),"The United States is divided and sub-divided into successively smaller hydrologic units which are classified into four levels: regions, sub-regions, accounting units, and cataloging units. The hydrologic units are arranged or nested within each other, from the largest geographic area (regions) to the smallest geographic area (cataloging units). Each hydrologic unit is identified by a unique hydrologic unit code (HUC) based on the four levels of classification in the hydrologic unit system. (Sources: ",a.a.createElement(l.a,{href:"http://arkansaswater.org/index.php?option=com_content&task=view&id=312&Itemid=86",target:"_blank"},"Arkansas Water"),", ",a.a.createElement(l.a,{href:"http://water.usgs.gov/GIS/huc.html",target:"_blank"},"USGS"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"hydrology"},"Hydrology"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Hydrology is the science that encompasses the occurrence, distribution, movement and properties of the waters of the earth and their relationship with the environment within each phase of the hydrologic cycle. The water cycle, or hydrologic cycle, is a continuous process by which water is purified by evaporation and transported from the earth's surface (including the oceans) to the atmosphere and back to the land and oceans. All of the physical, chemical and biological processes involving water as it travels its various paths in the atmosphere, over and beneath the earth's surface and through growing plants, are of interest to those who study the hydrologic cycle. (Source: ",a.a.createElement(l.a,{href:"http://water.usgs.gov/edu/hydrology.html#HDR2",target:"_blank"},"USGS"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"hypoxia"},"Hypoxia"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Hypoxia, meaning low oxygen, occurs when dissolved oxygen levels are too low to support aquatic organisms creating “dead zones.” The causes of hypoxia include excess nutrients in the water column, which facilitate algal blooms and phytoplankton growth. ",a.a.createElement("br",null),"The phytoplankton soon die and decompose, consuming oxygen in the process, which causes the death of aquatic organisms that cannot escape to areas with higher oxygen levels. Although the Gulf’s waters are rich in oxygen, a process called stratification, caused by the natural layering of fresh water from the river and salt water from the Gulf, prevents the two from mixing and keeps the dead zone in place for months at a time. ",a.a.createElement("br",null),"Direct effects of hypoxia include fish kills, which deplete valuable fisheries and disrupt ecosystems. The Gulf of Mexico hypoxic zone is located in the northern Gulf of Mexico off the coast of Louisiana and Texas. The zone was first documented in 1972. (Source: ",a.a.createElement(l.a,{href:"http://water.epa.gov/type/watersheds/named/msbasin/hypoxia101.cfm",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"infrastructure"},"Infrastructure"),a.a.createElement("p",{className:ln.a.custom_paragraph},"River infrastructure refers to the various levees, locks, dams, flood walls, and other man-made structures used to support and maintain transportation on the Mississippi. The existing 9-foot Channel Navigation Project was largely constructed in the 1930s and extends down the Upper Mississippi River from Minneapolis-St. Paul to its confluence with the Ohio River and up the Illinois Waterway to the Thomas J. O’Brien Lock in Chicago. It includes 37 Locks and approximately 1,200 miles of navigable waterway in Illinois, Iowa, Minnesota, Missouri and Wisconsin. (Source: ",a.a.createElement(l.a,{href:"http://www.mvr.usace.army.mil/Portals/48/docs/CC/FactSheets/Miss/Mississippi River Locks and Dams (2012).pdf",target:"_blank"},"USACE"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"macroinvertebrates"},"Macroinvertebrates"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Macroinvertebrates are organisms that are large (macro) enough to be seen with the naked eye and lack a backbone (invertebrate). They inhabit all types of running waters, from fastflowing mountain streams to slowmoving muddy rivers. Examples of aquatic macroinvertebrates include insects in their larval or nymph form, crayfish, clams, snails, and worms (Fig. 4.1). Most live part or most of their life cycle attached to submerged rocks, logs, and vegetation. ",a.a.createElement("br",null),"Being relatively easy to sample and identify, aquatic macroinvertebrates are good indicators of stream quality because they are affected by the physical, chemical, and biological conditions of the stream. The basic principle behind the study of macroinvertebrates is that some are more sensitive to pollution than others. Therefore, if a stream site is inhabited by organisms that can tolerate pollution and the more pollution sensitive organisms are missing a pollution problem is likely. (Source: ",a.a.createElement(l.a,{href:"http://water.epa.gov/type/rsl/monitoring/vms40.cfm",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"navigationChannels"},"Navigation Channels"),a.a.createElement("p",{className:ln.a.custom_paragraph},"The navigation system on the Mississippi River refers to 1,200 miles of a 9-foot navigation channel, 37 lock and dam sites, and thousands of channel training structures, all maintained by the US Army Corps of Engineers. The 1,200 miles of 9-foot channel created by the 37 locks and dams allow waterway traffic to move from one pool to another providing an integral regional, national, and international transportation network.",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"nutrients"},"Nutrients"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Nitrogen and phosphorus are nutrients that are natural parts of aquatic ecosystems. Nitrogen is also the most abundant element in the air we breathe. Nitrogen and phosphorus support the growth of algae and aquatic plants, which provide food and habitat for fish, shellfish and smaller organisms that live in water. Excess nitrogen and phosphorus (nutrients) are among the most prevalent cause of water quality impairment in the United States. (Source: ",a.a.createElement(l.a,{href:"http://www2.epa.gov/nutrientpollution/problem",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"nutrientPollution"},"Nutrient Pollution"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Nutrient pollution is one of America's most widespread, costly and challenging environmental problems, and is caused by excess nitrogen and phosphorus in the air and water. Nitrogen and phosphorus are nutrients that are natural parts of aquatic ecosystems. Nitrogen and phosphorus support the growth of algae and aquatic plants, which provide food and habitat for fish, shellfish and smaller organisms that live in water. But when too much nitrogen and phosphorus enter the environment - usually from a wide range of human activities - the air and water can become polluted. Nutrient pollution in ground water - which millions of people in the United States use as their drinking water source - can be harmful, even at low levels. ",a.a.createElement("br",null),"Nutrient pollution has impacted many streams, rivers, lakes, bays and coastal waters for the past several decades, resulting in serious environmental and human health issues and negative economic impacts. Too much nitrogen and phosphorus in the water causes excessive algal growth or algal blooms that harm water quality, food resources and habitats, and decrease the oxygen that aquatic life need to survive. Some algal blooms are harmful to humans because they produce elevated toxins and bacterial growth that can make people sick if they come into contact with polluted water, consume tainted fish or shellfish, or drink contaminated water. (Source: ",a.a.createElement(l.a,{href:"http://www2.epa.gov/nutrientpollution/problem",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"phosphorus"},"Phosphorus"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Both phosphorus and nitrogen are essential nutrients for the plants and animals that make up the aquatic food web. Since phosphorus is the nutrient in short supply in most fresh waters, even a modest increase in phosphorus can, under the right conditions, set off a whole chain of undesirable events in a stream including accelerated plant growth, algae blooms, low dissolved oxygen, and the death of certain fish, invertebrates, and other aquatic animals. ",a.a.createElement("br",null),"There are many sources of phosphorus, both natural and human. These include soil and rocks, wastewater treatment plants, runoff from fertilized lawns and cropland, failing septic systems, runoff from animal manure storage areas, disturbed land areas, drained wetlands, water treatment, and commercial cleaning preparations. In a stream system, the phosphorus cycle tends to move phosphorus downstream as the current carries decomposing plant and animal tissue and dissolved phosphorus. It becomes stationary only when it is taken up by plants or is bound to particles that settle to the bottom of pools. ",a.a.createElement("br",null),"Monitoring phosphorus is challenging because it involves measuring very low concentrations down to 0.01 milligram per liter (mg/L) or even lower. Even such very low concentrations of phosphorus can have a dramatic impact on streams. Less sensitive methods should be used only to identify serious problem areas. (Source: ",a.a.createElement(l.a,{href:"http://water.epa.gov/type/rsl/monitoring/vms56.cfm",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"phytoplankton"},"Phytoplankton"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Phytoplankton, also known as microalgae, are similar to terrestrial plants in that they contain chlorophyll and require sunlight in order to live and grow. Most phytoplankton are buoyant and float in the upper part of the ocean, where sunlight penetrates the water. Phytoplankton also require inorganic nutrients such as nitrates, phosphates, and sulfur which they convert into proteins, fats, and carbohydrates. ",a.a.createElement("br",null),"In a balanced ecosystem, phytoplankton provide food for a wide range of sea creatures including whales, shrimp, snails, and jellyfish. When too many nutrients are available, phytoplankton may grow out of control and form harmful algal blooms. (Source: ",a.a.createElement(l.a,{href:"http://oceanservice.noaa.gov/facts/phyto.html",target:"_blank"},"NOAA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"reaches"},"Reaches"),a.a.createElement("p",{className:ln.a.custom_paragraph},"On the Mississippi River, the term reach is used to describe areas of similar geomorphology, vegetation cover, and land use practices. On the Mississippi River, the term Pool is used to describe the area between navigation dams. For example, Pool 13 is the area upstream of Lock and Dam 13, to Lock and Dam 12. There are 26 navigation pools in the Upper Mississippi River. (Source: ",a.a.createElement(l.a,{href:"http://www.umesc.usgs.gov/rivers/upper_mississippi/reach_1/sel_a_pool_r1.html",target:"_blank"},"USGS"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"riverMile"},"River Mile"),a.a.createElement("p",{className:ln.a.custom_paragraph},"The term river mile is the distance from the mouth of the creek or river to the given location, to the nearest tenth of a mile. The USACE uses river miles in its navigation charts. (Source: ",a.a.createElement(l.a,{href:"http://www.mvr.usace.army.mil/Missions/Navigation/NavigationCharts.aspx",target:"_blank"},"USACE"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"salinity"},"Salinity"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Conductivity measurements, along with temperature, also allow for salinity values to be calculated through algorithms. (Source: ",a.a.createElement(l.a,{href:"http://www.ysi.com/parametersdetail.php?Conductivity-7",target:"_blank"},"YSI"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"sediment"},"Sediment"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Sediments are fragmented materials that originate from weathering and erosion of rocks or unconsolidated deposits and are transported by, suspended in, or deposited by water. Many of the sediments in our rivers, lakes, and oceans have been contaminated by pollutants. Many of the contaminants were released years ago while other contaminants enter our water every day. Some contaminants flow directly from industrial and municipal waste dischargers, while others come from polluted runoff in urban and agricultural areas. ",a.a.createElement("br",null),"Suspended and bedded sediments (SABS) are defined by EPA as particulate organic and inorganic matter that suspend in or are carried by the water, and/or accumulate in a loose, unconsolidated form on the bottom of natural water bodies. This includes the frequently used terms of clean sediment, suspended sediment, total suspended solids, bedload, turbidity, or in common terms, dirt, soils or eroded materials. (Source: ",a.a.createElement(l.a,{href:"http://water.epa.gov/polwaste/sediments/",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"stratification"},"Stratification"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Stratification occurs when water masses with different properties form layers that prevent the mixing of oxygen-rich surface water with oxygen-poor water on the bottom of the Gulf. Nutrient-laden freshwater from the Mississippi River flows into the Gulf of Mexico. This freshwater is less dense and remains above the more dense saline Gulf water. In addition to the saline gradient caused where the freshwater and saline water meet, the freshwater is warmer than the deeper ocean water, further contributing to the stratification. Without mixing, oxygen in the bottom water is limited and the hypoxic condition remains. (Source: ",a.a.createElement(l.a,{href:"http://water.epa.gov/type/watersheds/named/msbasin/hypoxia101.cfm",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"totalSuspendedSolids"},"Total Suspended Solids"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Total solids are dissolved solids plus suspended and settleable solids in water. In stream water, dissolved solids consist of calcium, chlorides, nitrate, phosphorus, iron, sulfur, and other ions particles that will pass through a filter with pores of around 2 microns (0.002 cm) in size. Suspended solids include silt and clay particles, plankton, algae, fine organic debris, and other particulate matter. These are particles that will not pass through a 2-micron filter. Sources of total solids include industrial discharges, sewage, fertilizers, road runoff, and soil erosion. Total solids are measured in milligrams per liter (mg/L). ",a.a.createElement("br",null),"The concentration of total dissolved solids affects the water balance in the cells of aquatic organisms. Higher concentrations of suspended solids can serve as carriers of toxics, which readily cling to suspended particles. A high concentration of total solids will make drinking water unpalatable and might have an adverse effect on people who are not used to drinking such water. Higher solids decrease the passage of light through water, thereby slowing photosynthesis by aquatic plants. Levels of total solids that are too high or too low can also reduce the efficiency of wastewater treatment plants, as well as the operation of industrial processes that use raw water. ",a.a.createElement("br",null),"Total solids are important to measure in areas where there are discharges from sewage treatment plants, industrial plants, or extensive crop irrigation. In particular, streams and rivers in arid regions where water is scarce and evaporation is high tend to have higher concentrations of solids and are more readily affected by human introduction of solids from land use activities. (Source: ",a.a.createElement(l.a,{href:"http://water.epa.gov/type/rsl/monitoring/vms58.cfm",target:"_blank"},"EPA"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"tributary"},"Tributary"),a.a.createElement("p",{className:ln.a.custom_paragraph},"A tributary is a freshwater stream that feeds into a larger stream or river. The larger, or parent, river is called the mainstem. The point where a tributary meets the mainstem is called the confluence. Tributaries, also called affluents, do not flow directly into the ocean. ",a.a.createElement("br",null),"Most large rivers are formed from many tributaries. Each tributary drains a different watershed, carrying runoff and snowmelt from that area. Each tributary's watershed makes up the larger watershed of the mainstem. (Source: ",a.a.createElement(l.a,{href:"http://education.nationalgeographic.com/education/encyclopedia/tributary/?ar_a=1",target:"_blank"},"National Geographic"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"wastewater"},"Wastewater"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Wastewater is used water. Much of the water used by homes, industries, and businesses must be treated before it is released back to the environment. Wastewater includes substances such as human waste, food scraps, oils, soaps and chemicals. In homes, this includes water from sinks, showers, bathtubs, toilets, washing machines and dishwashers. Businesses and industries also contribute their share of used water that must be cleaned. Wastewater also includes storm runoff. Harmful substances that wash off roads, parking lots, and rooftops can harm our rivers and lakes. ",a.a.createElement("br",null),"Nature has an amazing ability to cope with small amounts of water wastes and pollution, but it would be overwhelmed if we didn't treat the billions of gallons of wastewater and sewage produced every day before releasing it back to the environment. Treatment plants reduce pollutants in wastewater to a level nature can handle. (Source: ",a.a.createElement(l.a,{href:"http://water.usgs.gov/edu/wuww.html",target:"_blank"},"USGS"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"waterQuality"},"Water Quality"),a.a.createElement("p",{className:ln.a.custom_paragraph},"Water quality can be thought of as a measure of the suitability of water for a particular use based on selected physical, chemical, and biological characteristics. Water quality can be thought of as a measure of the suitability of water for a particular use based on selected physical, chemical, and biological characteristics. To determine water quality, scientists first measure and analyze characteristics of the water such as temperature, dissolved mineral content, and number of bacteria. ",a.a.createElement("br",null),"Selected characteristics are then compared to numeric standards and guidelines to decide if the water is suitable for a particular use. Some aspects of water quality can be determined right in the stream or at the well. These include temperature, acidity (pH), dissolved oxygen, and electrical conductance (an indirect indicator of dissolved minerals in the water). Analyses of individual chemicals generally are done at a laboratory. (Source: ",a.a.createElement(l.a,{href:"http://pubs.usgs.gov/fs/fs-027-01/",target:"_blank"},"USGS"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]"))),a.a.createElement("p",{className:ln.a.custom_header_second,id:"watershed"},"Watershed"),a.a.createElement("p",{className:ln.a.custom_paragraph},"A watershed is the area of land where all of the water that is under it or drains off of it goes into the same place. Watersheds range from a few acres draining to a neighborhood stream, to hundreds of thousands of square miles draining to a major river, such as the Mississippi. The Mississippi River watershed is the fourth largest in the world, including all or parts of 31 states and 2 Canadian Provinces. The watershed measures approximately 1.2 million square miles, covering about 40% of the lower 48 states. (Sources: ",a.a.createElement(l.a,{href:"http://water.epa.gov/type/watersheds/whatis.cfm",target:"_blank"},"EPA"),", ",a.a.createElement(l.a,{href:"http://www.nps.gov/miss/riverfacts.htm",target:"_blank"},"NPS"),")",a.a.createElement("br",null),a.a.createElement(l.a,{className:ln.a.custom_links,onClick:function(){document.getElementById("toc").scrollIntoView()}},a.a.createElement("sub",null,"[top]")))),a.a.createElement("br",null)))}}])&&Tf(t.prototype,r),n&&Tf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function Lf(e){return(Lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ff(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mf(e,t){return(Mf=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Gf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Uf(e);if(t){var a=Uf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Vf(this,r)}}function Vf(e,t){if(t&&("object"===Lf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Uf(e){return(Uf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Wf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mf(e,t)}(i,e);var t,r,n,o=Gf(i);function i(){return Bf(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){return a.a.createElement("div",null,a.a.createElement(vf,{selected:"about"}),a.a.createElement("div",{className:u.a.contentcenter},a.a.createElement("h2",null,"Help"),a.a.createElement("br",null),a.a.createElement("p",null,"Coming Soon!")))}}])&&Ff(t.prototype,r),n&&Ff(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);function qf(e){return(qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zf(e,t){return(Zf=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function Yf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Xf(e);if(t){var a=Xf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Qf(this,r)}}function Qf(e,t){if(t&&("object"===qf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xf(e){return(Xf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var Jf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zf(e,t)}(s,e);var t,n,o,i=Yf(s);function s(){return Hf(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"render",value:function(){return a.a.createElement("div",null,a.a.createElement(vf,{selected:"home"}),a.a.createElement("div",{className:ln.a.custom_page},a.a.createElement("div",{className:ln.a.custom_header},a.a.createElement("h2",null,"Frequently Asked Questions (FAQ)")),a.a.createElement("div",null,a.a.createElement("div",{className:ln.a.faqSection},a.a.createElement("input",{type:"checkbox",id:"q1"}),a.a.createElement("label",{htmlFor:"q1"},"Q: How are gaps in data filled? How are load and cumulative load calculated?"),a.a.createElement("p",{className:ln.a.faqSectionAnswers}," "),a.a.createElement("p",{className:ln.a.faqSectionAnswers},a.a.createElement("b",null,"A: Read this document.")),a.a.createElement("p",null,a.a.createElement("object",{data:r(351),width:"75%",height:"75%"}," "))),a.a.createElement("div",{className:ln.a.faqSection},a.a.createElement("input",{type:"checkbox",id:"q2"}),a.a.createElement("label",{for:"q2"},"Q: Definitions of continuous and static stations."),a.a.createElement("p",{className:ln.a.faqSectionAnswers}," "),a.a.createElement("p",{className:ln.a.faqSectionAnswers},a.a.createElement("b",null,"Continuous Online:")," A station that is updated daily and is showing data within the last five days.",a.a.createElement("img",{src:r(349)}),a.a.createElement("br",null),a.a.createElement("b",null,"Continuous Offline:")," A station that is updated daily and is NOT showing data within the last five days.",a.a.createElement("img",{src:r(348)}),a.a.createElement("br",null),a.a.createElement("b",null,"Static:")," A station that is not updated on a regular basis and only shows historical data.",a.a.createElement("img",{src:r(342)}),a.a.createElement("br",null)),a.a.createElement("br",null),a.a.createElement("p",{className:ln.a.faqSectionAnswers},a.a.createElement("i",null,"The pills that show in the accordion of the explore page appear like the pill to the right of each definition. The markers on the map of the explore page have the same border color as the pill. In the detail view above the graphs, there is text classifying the sensor as online, offline, or static."))))))}}])&&zf(t.prototype,n),o&&zf(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function Kf(e){return(Kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tm(e,t){return(tm=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function rm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=am(e);if(t){var a=am(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return nm(this,r)}}function nm(e,t){if(t&&("object"===Kf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function am(e){return(am=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var om=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tm(e,t)}(i,e);var t,r,n,o=rm(i);function i(){return $f(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){return a.a.createElement("div",null,a.a.createElement("div",{className:u.a.contentcenter},a.a.createElement("h3",null,"404 Not Found.")))}}])&&em(t.prototype,r),n&&em(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);r(509);function im(e){return(im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lm(e,t){return(lm=Object.setPrototypeOf||function(e,t){return e.proto=t,e})(e,t)}function cm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=dm(e);if(t){var a=dm(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return um(this,r)}}function um(e,t){if(t&&("object"===im(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pm(e)}function pm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dm(e){return(dm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.proto||Object.getPrototypeOf(e)})(e)}var fm=a.a.createElement(l.b,{component:mm},a.a.createElement(l.b,{path:"/",component:yn}),a.a.createElement(l.b,{path:"/explore/:stations",component:io}),a.a.createElement(l.b,{path:"/detail/location/:name/:category(?params=(:parameters_list))(&start=(:start_date))(&end=(:end_date))",component:Dp}),a.a.createElement(l.b,{path:"/search",component:Br}),a.a.createElement(l.b,{path:"/trendsstations",component:ni}),a.a.createElement(l.b,{path:"/trendsregions",component:wi}),a.a.createElement(l.b,{path:"/trendsdetail/region/:region/:parameter/:season",component:Hd}),a.a.createElement(l.b,{path:"/analysis",component:hs}),a.a.createElement(l.b,{path:"/about",component:$d}),a.a.createElement(l.b,{path:"/partners",component:kf}),a.a.createElement(l.b,{path:"/glossary",component:Af}),a.a.createElement(l.b,{path:"/help",component:Wf}),a.a.createElement(l.b,{path:"/faq",component:Jf}),a.a.createElement(l.b,{path:"",component:om})),mm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lm(e,t)}(i,e);var t,r,n,o=cm(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(pm(t=o.call(this,e)),"state",void 0),t.state={isOpen:!1},pm(t).handleCloseAlert=t.handleCloseAlert.bind(pm(t)),t}return t=i,(r=[{key:"handleCloseAlert",value:function(){this.setState({isOpen:!1})}},{key:"componentWillMount",value:function(){console.log("App did mount"),console.log(window.configruntime),(0,this.props.loadSensors)(window.configruntime.gd3.geostreaming_endpoints[0].url)}},{key:"componentDidMount",value:function(){if(!0===Object(v.P)()){var e=navigator.userAgent.toLowerCase(),t="false";-1!==e.indexOf("msie")&&(t=parseInt(e.split("msie")[1]).toString(),-1!==Object(v.S)().indexOf(t)&&this.setState({isOpen:!0})),(-1===e.indexOf("msie")&&-1!==e.indexOf("trident")&&!0===Object(v.R)()||-1!==e.indexOf("edge")&&!0===Object(v.Q)())&&this.setState({isOpen:!0})}}},{key:"render",value:function(){var e="";return 0!==Object(v.K)().length&&(e=a.a.createElement(K.Dialog,{open:this.state.isOpen,onClose:this.handleCloseAlert},a.a.createElement(K.DialogHeader,{className:u.a.alertHeader},a.a.createElement(K.DialogTitle,null,a.a.createElement("span",{className:u.a.alertHeaderText},Object(v.L)())),a.a.createElement(K.Icon,{className:u.a.alertHeaderIcon,name:"warning"})),a.a.createElement(K.DialogBody,null,a.a.createElement("span",{className:u.a.alertBodyText},Object(v.K)())),a.a.createElement(K.DialogFooter,null,a.a.createElement(K.Button,{className:u.a.alertButton,onClick:this.handleCloseAlert},Object(v.M)())))),a.a.createElement("div",null,a.a.createElement(l.c,{history:l.d},fm),e)}}])&&sm(t.prototype,r),n&&sm(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component),hm=mm,ym=Object(s.connect)((function(e){return{sensors:e.sensors}}),(function(e){return{loadSensors:function(t){e({type:"ADD_ENDPOINTS"}),e(Me(t))}}}))(hm),bm=(r(510),r(112)),gm=r(530),vm=r.n(gm),m=r(531),wm=r.n(m),Em=r(532),Sm=r.n(Em),Om={endpoints:[],selected:"",title:"",subtitle:"",error:!1},jm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Om,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENDPOINTS":return Object.assign({},e,{endpoints:window.configruntime.gd3.geostreaming_endpoints,selected:window.configruntime.gd3.geostreaming_endpoints[0].url,title:window.configruntime.gd3.geostreaming_endpoints[0].title,subtitle:window.configruntime.gd3.geostreaming_endpoints[0].subtitle,error:!1});case"SWITCH_BACKEND":return Object.assign({},e,{selected:t.selected,title:t.title,subtitle:t.subtitle,error:!1});case"SWITCH_BACKEND_ERROR":return Object.assign({},e,{error:!0});default:return e}},Cm={data:[],parameters:[],sources:[],regions:[],locations:[],sensors:[],available_sensors:[],draw_available_sensors:[],shape_coordinates:[],explore_sensors:[],search_sensors:[]};function km(e,t){var r=e.data,n=[];return void 0!==t[0]&&"reset_points"!==t[0]&&e.available_sensors.length<e.draw_available_sensors.length&&(r=e.available_sensors),"reset_points"===t[0]||void 0===t[0]||0===t.length?n=r:r.map((function(e){t.includes(e.name)&&n.push(e)})),n}function Pm(e,t,r){var n=[],a=function(e){var t={};e&&Object.keys(e).map((function(r){return e[r].map((function(e){t[e]=r}))}));return t}(r);return e.map((function(e){e.parameters.map((function(r){var o=n.some((function(e){return e.id===r||e.id===a[r]}));if(null===r)console.log("Found sensor ".concat(e.id," with null parameters"));else if(!o){var i=t.find((function(e){return e.name===r}));i&&""!==i.name&&n.push({id:r,label:i.title||""})}}))})),w(n)}function xm(e){var t=[];e.map((function(e){var r=e.properties.region,n=t.filter((function(e){return e===r}));null===r?console.log("Found sensor ".concat(e.id," with null region")):0===n.length&&t.push(r)}));var r=Object(v.U)("region");return function(e,t){return Object.keys(t).length>0?e=E(t,null,e):e.sort(),e}(t,r)}function Tm(e){var t=[];e.map((function(e){var r=e.properties.type;null!=r?t.some((function(e){return e.id===r.id}))||t.push({id:r.id,label:Object(v.ob)(r)||""}):console.log("Found sensor ".concat(e.id," with null data source"))}));var r,n,a=Object(v.pb)();return r=t,n=a,r=Object.keys(n).length>0?E(n,"id",r):w(r)}function Rm(e){var t=new Date,r=new Date("1983-01-01");return e.map((function(e){var n=new Date(e.min_start_time),a=new Date(e.max_end_time);n.getTime()<t.getTime()&&(t=n),a.getTime()>r&&(r=a)})),{start:t,end:r}}function Nm(e){var t=new Date,r=new Date("1983-01-01");return e.map((function(e){var n=new Date(e.min_start_time),a=new Date(e.max_end_time);n.getTime()<t.getTime()&&(t=n),a.getTime()>r&&(r=a)})),{start:t,end:r}}function Dm(e){var t=[],r=window.configruntime.gd3.additional_locations;e.map((function(e){r.map((function(r){!t.find((function(e){return e.id===r.properties.id}))&&S(Number(e.geometry.coordinates[1]),Number(e.geometry.coordinates[0]),r.geometry.coordinates)&&t.push({id:r.properties.id,label:r.properties.title})}))}));var n=Object(v.U)("title");return function(e,t){return E(t,"label",e)}(t,n)}function Im(e){var t=[];return e.map((function(e){t.push(e.id)})),t}function Am(e,t,r,n){for(var a=e.data,o=[],i=e.draw_available_sensors,s=[],l=0;l<i.length;l++)s.includes(i[l].name.toString())||s.push(i[l]);return t.map((function(e){switch(e){case"data_sources":return void(r.data_sources.selected.length>0&&(o=[],a.map((function(e){r.data_sources.selected.indexOf(e.properties.type.id)>-1&&o.push(e)})),a=o));case"parameters":if(r.parameters.selected.length>0){o=[];var t=Object.assign([],r.parameters.selected);(Object.keys(n),r.parameters.selected).map((function(e){return n[e].map((function(e){t.push(e)}))})),a.map((function(e){(function(e,t){if(e.length>0&&t.length>0)for(var r=0;r<e.length;r++)if(t.indexOf(e[r])>-1)return!0;return!1})(t,e.parameters)&&o.push(e)})),a=o}return;case"time":return void(""!==r.dates.selected.start&&""!==r.dates.selected.end&&null!==r.dates.selected.start&&null!==r.dates.selected.end&&(o=[],a.map((function(e){r.dates.selected.start<=new Date(e.max_end_time)&&r.dates.selected.end>=new Date(e.min_start_time)&&o.push(e)})),a=o));case"locations":if(null!==r.locations.selected)switch(o=[],r.locations.selected){case"All Locations":return;case"Custom Location":return o=s.length<=0?a:a.filter((function(e){return this.indexOf(e)>=0}),s),void(a=o);default:return a.map((function(e){(function(e,t){if(e===t.properties.region)return!0;var r=window.configruntime.gd3.additional_locations.find((function(t){return t.properties.id===e}));return!!r&&S(Number(t.geometry.coordinates[1]),Number(t.geometry.coordinates[0]),r.geometry.coordinates)})(r.locations.selected,e)&&o.push(e)})),void(a=o)}return;case"span":return void(""!==r.span.selected.start&&""!==r.span.selected.end&&null!==r.span.selected.start&&null!==r.span.selected.end&&(o=[],a.map((function(e){r.span.selected.end<=new Date(e.max_end_time)&&r.span.selected.start>=new Date(e.min_start_time)&&o.push(e)})),a=o));case"online":return void(null!==r.online.selected&&(o=[],"eitherOption"===r.online.selected||"none"===r.online.selected?o=a:a.map((function(e){void 0!==e.properties.online_status&&e.properties.online_status===r.online.selected&&o.push(e)})),a=o))}})),a}function Lm(e,t){var r=e.data,n=[],a=[];return t.data_sources.selected.map((function(e){return a.push(e.id)})),r.map((function(e){a.indexOf(e.properties.type.id)>-1&&n.push(e)})),r=n}var Bm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cm,t=arguments.length>1?arguments[1]:void 0,r=[];switch(t.type){case"RECEIVE_SENSORS":return Object.assign({},e,{data:t.sensors,receivedAt:t.receivedAt,api:t.api,sources:Tm(t.sensors),regions:xm(t.sensors),locations:Dm(t.sensors),available_sensors:t.sensors,shape_coordinates:[],explore_sensors:t.sensors,search_sensors:Im(t.sensors)});case"RECEIVE_MULTI_PARAMETERS":var n=e.sensors.slice(0);return Object.assign({},e,{parameters:Pm(n,t.parameters,t.multi_parameter_map)});case"COUNT_NUMBER_DATAPOINTS":return Object.assign({},e,{number_datapoints:t.number_datapoints});case"UPDATE_AVAILABLE_SENSORS":var a=Am(e,t.selected_filters,t.selected_search,t.multi_parameter_map),o=Im(a);return"Custom Location"===t.selected_search.locations.selected?(r=e.shape_coordinates,Object.assign({},e,{available_sensors:a,shape_coordinates:r,search_sensors:o})):(r=[],Object.assign({},e,{available_sensors:a,draw_available_sensors:[],shape_coordinates:r,search_sensors:o}));case"UPDATE_EXPLORE_SENSORS":var i=Lm(e,t.explore_filtering);return Object.assign({},e,{explore_sensors:i});case"RESET_EXPLORE_SENSORS":return Object.assign({},e,{explore_sensors:t.reset_sensors});case"ADD_CUSTOM_LOCATION_FILTER":var s=km(e,t.selectedPointsLocations),l=s;return r=t.shapeCoordinates,0===t.selectedPointsLocations.length&&(l=[]),Object.assign({},e,{available_sensors:l,draw_available_sensors:s,shape_coordinates:r});case ve:return Object.assign({},e,{api:"",data:[],parameters:[],sources:[],locations:[],available_sensors:[],draw_available_sensors:[],shape_coordinates:[],explore_sensors:[],search_sensors:[]});default:return e}},Fm={filters:[{id:"locations"},{id:"data_sources"},{id:"parameters"},{id:"time"},{id:"span"},{id:"online"}],selected:[]},Mm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_SEARCH_FILTER":return Object.assign({},e,{filters:{$push:t.filter}});case"ADD_FILTER":var r=e.selected.concat(t.selectedFilter);return Object.assign({},e,{selected:r});case"CHANGE_FILTER":return Object.assign({},e,{selected:t.selectedFilter});case"DELETE_FILTER":var n=e.selected.slice(0,t.idx);return n=n.concat(e.selected.slice(parseInt(t.idx)+1)),Object.assign({},e,{selected:n});case"DELETE_FILTERS_AFTER":var a=e.selected.slice(0,t.idx+1);return Object.assign({},e,{selected:a});default:return e}},Gm={data_sources:{selected:[],available:[]},parameters:{selected:[],available:[]},locations:{selected:null,available:[]},dates:{selected:{start:null,end:null},available:{start:new Date("1951-04-10"),end:new Date}},span:{selected:{start:null,end:null},available:{start:new Date("1951-04-10"),end:new Date}},online:{selected:null,available:[]}};function Vm(e,t,r){var n=Object.assign({},t),a=e.indexOf(r);a>-1&&e.slice(a+1).map((function(e){switch(e){case"data_sources":return void(n=Object.assign({},n,{data_sources:{selected:[]}}));case"parameters":return void(n=Object.assign({},n,{parameters:{selected:[]}}));case"locations":return void(n=Object.assign({},n,{locations:{selected:null}}));case"online":n=Object.assign({},n,{online:{selected:null}})}}));return n}function Um(e,t,r,n,a,o){var i=Object.assign({},o);return r.map((function(r){if(t.indexOf(r.id)===t.length-1)switch(r.id){case"data_sources":var s=Tm(e),l=(s,o.data_sources.selected);return void(i=Object.assign({},i,{data_sources:{selected:l,available:s}}));case"parameters":var c=Pm(e,n,a),u=
(c,o.parameters.selected);return void(i=Object.assign({},i,{parameters:{selected:u,available:c}}));case"locations":var p=Dm(e);o.locations.selected;return null,void(i=Object.assign({},i,{locations:{selected:null,available:p}}));case"time":var d=Rm(e),f=o.dates.selected;return void(i=Object.assign({},{dates:{selected:{start:f.start,end:f.end},available:{start:d.start,end:d.end}}}));case"span":var m=Rm(e),h=o.span.selected;return void(i=Object.assign({},{span:{selected:{start:h.start,end:h.end},available:{start:m.start,end:m.end}}}));case"online":var y=(b=[],g=!1,e.map((function(e){void 0!==e.properties.online_status&&!1===g&&(g=!0)})),!0===g?(b.push({id:"online",label:"Online"}),b.push({id:"offline",label:"Offline"}),b.push({id:"none",label:"All Options"})):b.push({id:"none",label:"All Options"}),b);o.online.selected;return null,void(i=Object.assign({},i,{online:{selected:null,available:y}}))}var b,g})),i}var Wm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_SEARCH_DATASOURCE":var r=Object.assign({},e,{data_sources:{selected:t.data_sources,available:e.data_sources.available}}),n=Vm(t.selected_filters,r,"data_sources");return Object.assign({},e,n);case"ADD_SEARCH_PARAMETER":var a=Object.assign({},e,{parameters:{selected:t.parameter,available:e.parameters.available}}),o=Vm(t.selected_filters,a,"parameters");return Object.assign({},e,o);case"ADD_SEARCH_LOCATION":var i=Object.assign({},e,{locations:{selected:t.location,available:e.locations.available}}),s=Vm(t.selected_filters,i,"locations");return Object.assign({},e,s);case"ADD_START_DATE":var l=Rm(t.availableSensors),c=t.date;""!==c&&null!=c&&c.getTime()<l.start.getTime()&&(c=l.start);var u=Object.assign({},e,{dates:{selected:{start:c,end:e.dates.selected.end},available:{start:l.start,end:l.end}}});return Object.assign({},e,u);case"ADD_END_DATE":var p=Rm(t.availableSensors),d=t.date;""!==d&&null!=d&&d.getTime()>p.end.getTime()&&(d=p.end);var f=Object.assign({},e,{dates:{selected:{start:e.dates.selected.start,end:d},available:{start:p.start,end:p.end}}});return Object.assign({},e,f);case"ADD_SEARCH_ONLINE":var m=Object.assign({},e,{online:{selected:t.online,available:e.online.available}}),h=Vm(t.selected_filters,m,"online");return Object.assign({},e,h);case"ADD_SPAN_START":var y=Nm(t.availableSensors),b=t.span;""!==b&&null!=b&&b.getTime()<y.start.getTime()&&(b=y.start);var g=Object.assign({},e,{span:{selected:{start:b,end:e.span.selected.end},available:{start:y.start,end:y.end}}});return Object.assign({},e,g);case"ADD_SPAN_END":var v=Nm(t.availableSensors),
=t.span;""!==
&&null!=
&&
.getTime()>v.end.getTime()&&(
=v.end);var w=Object.assign({},e,{span:{selected:{start:e.span.selected.start,end:
},available:{start:v.start,end:v.end}}});return Object.assign({},e,w);case"UPDATE_AVAILABLE_FILTERS":var E=Um(t.sensors,t.selected_filters,t.allFilters,t.searchParameters,t.multi_parameter_map,e);return Object.assign({},e,E);case"RECEIVE_SENSORS":var S=Rm(t.sensors),O=Object.assign({},e,{dates:{selected:{start:e.dates.selected.start,end:e.dates.selected.end}},available:{start:S.start,end:S.end}});return Object.assign({},e,O);default:return e}},qm={id:null,datapoints:[]};function Hm(e,t,r,n,a,o){var i=[],s={},l=e;return e.forEach((function(e){if(!s[e[t]]){s[e[t]]={},s[e[t]][t]=e[t],s[e[t]][r]=e[r],s[e[t]][n]=e[n],s[e[t]][o]=e[o];var c=l.filter((function(r){return r[t]===e[t]})),u=0,p=0;c.forEach((function(e){u+=e.count,p+=e.count*e.average})),s[e[t]][a]=p/u,i.push(s[e[t]])}})),i}function zm(e){if(e.length<=0)return[];var t=[];for(var r in e.properties)t[r]=Hm(e.properties[r],"date","label","data","average",Object(v.jb)());return t}function Zm(e){var t=[],r=function(r){var n=[];e.properties[r].forEach((function(e){e.sources.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}))})),t[r]=n};for(var n in e.properties)r(n);return t}var Ym=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECT_SENSOR":return Object.assign({},e,{id:t.id,name:t.name,coordinates:t.coordinates,showExplorePopup:!0});case"RECEIVE_SENSOR":var r=Object.assign({},t.sensor_data),n=Object.assign({},t.sensor_data);return Object.assign({},e,{datapoints:zm(r),sources:Zm(n),showExplorePopup:!1});case"UPDATE_DETAIL":return Object.assign({},e,{id:t.id,name:t.name,coordinates:t.coordinates,showExplorePopup:!1});case"CLEAN_DETAIL":return Object.assign({},e,{datapoints:[],id:null,name:null,showExplorePopup:!1});default:return e}},Qm={parameter:"",season:"spring",region:"",all_regions:[],threshold_choice:!1,threshold:"",sensors:[],trends_sensors:[],trends_regions:[],baseline_total_year:30,rolling_interval:17,view_type:"",number_to_filter:0,draw_available_sensors:[],detail_region:"",show_spinner:!1,region_parameter:"",region_season:"",sensor_parameter:"",sensor_season:"",sensor_region:""};function Xm(e,t){var r,n=e.sensors,a=Object(v.Db)(),o=[];n.map((function(e){a.size>0?a.indexOf(e.properties.type.id)>-1&&(r=e,o=o.concat(r)):o=o.concat(e)}));for(var i=[],s=e.parameter,l=e.season,c=e.region,u=e.draw_available_sensors,p=[],d=0;d<u.length;d++)p.includes(u[d].name.toString())||p.push(u[d]);var f=[];return""!==c&&(f=f.concat("region")),""!==l&&(f=f.concat("season")),""!==s&&(f=f.concat("parameter")),f.map((function(e){switch(e){case"region":return void(""!==c&&("all"===c?o=i=o:"draw"===c?(i=p.length<=0?o:o.filter((function(e){return this.indexOf(e)>=0}),p),o=i):(o.map((function(e){"by-sensors"!==t&&"by-regions"!==t||x(c,e)&&i.push(e),"by-analysis"===t&&T(c,e)&&i.push(e)})),o=i)));case"season":return void(""!==l&&(o=i=o));case"parameter":return void(""!==s&&(i=[],o.map((function(e){e.parameters.includes(s)&&i.push(e)})),o=i))}})),o}function Jm(e){var t=Object.assign({},e);return t.trends_regions.map((function(e){e.trends_detail={id:0,value:0},e.trends_deviation={id:0,value:0}})),t}var Km=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ANALYSIS_SAVED_SEARCH":return Object.assign({},e,{parameter:t.parameter,region:t.region,baseline_total_year:t.baseline_total_year,rolling_interval:t.rolling_interval,threshold:t.threshold.toString()});case qe:return Object.assign({},e,{view_type:t.view_type});case"SET_TRENDS_SENSORS":var r,n=t.sensors,a=Object(v.Db)(),o=[];return n.map((function(e){a.size>0?a.indexOf(e.properties.type.id)>-1&&(r=e,o=o.concat(r)):o=o.concat(e)})),Object.assign({},e,{sensors:n,trends_sensors:o,view_type:e.view_type,show_spinner:!1});case"SET_REGIONS_SENSORS":var i=Object(v.Cb)(),s=R(i),l=C(i,s);return Object.assign({},e,{trends_regions:l,view_type:e.view_type,all_regions:s,show_spinner:!1});case"ADD_CHOOSE_ANALYSIS":var c=[];t.sensors_trends.map((function(e){var t=e.sensor;t.trends=e.data,t.trend_start_time=e.trend_start_time,t.trend_end_time=e.trend_end_time,c=c.concat(t)}));var u=Object(v.vb)(),p=u.find((function(e){return e.parameter.id.toString()===t.parameter.toString()}));return p&&(p=p.parameter.title),Object.assign({},e,{trends_sensors:c,show_spinner:!1,analysis_parameter:p,sensor_season:"all",sensor_region:e.region});case"ADD_CHOOSE_TRENDS":var d=[];t.sensors_trends.map((function(e){var t=e.sensor;t.trends=e.data,t.trend_start_time=e.trend_start_time,t.trend_end_time=e.trend_end_time,d=d.concat(t)}));var f=Object(v.Ab)(),m=t.parameter;return f&&f.map((function(e){e.parameter.id===t.parameter&&(m=e.parameter.title)})),Object.assign({},e,{trends_sensors:d,show_spinner:!1,sensor_parameter:m,sensor_season:t.season,sensor_region:e.region});case"FAILED_RETRIEVING_REGION_TRENDS":return Object.assign({},e,{show_spinner:!1,region_parameter:t.parameter,region_season:t.season});case"ADD_REGION_TRENDS":var h=[],y=Object.assign([],e.trends_regions);y.map((function(e){var r=t.regions_trends.filter((function(t){return t.region_id===e.name}));r.length>0?e.region_trends=r[0]:e.region_trends="no data",h=h.concat(e)}));var b=Object(v.Ab)(),g=t.parameter;return b&&b.map((function(e){e.parameter.id===t.parameter&&(g=e.parameter.title)})),Object.assign({},e,{trends_regions:h,show_spinner:!1,region_parameter:g,region_season:t.season});case"ADD_REGION_DETAIL_TRENDS":var =[t.sensor],w=.concat(e.trends_sensors);return Object.assign({},e,{trends_sensors:w,trends_regions:e.trends_regions,detail_region:t.region,show_spinner:!1});case"SET_TRENDS_TIMEFRAMES":var E=Object(v.Bb)();return Object.assign({},e,{baseline_total_year:E[0].value,rolling_interval:E[1].value,show_spinner:!1});case"SELECT_ANALYSIS_PARAMETER":var S,O=Object(v.vb)();return!1===t.threshold_choice&&(S=N(t.parameter,e.region,O)),Object.assign({},e,{parameter:t.parameter,threshold_choice:t.threshold_choice,threshold:S,show_spinner:!1});case"SELECT_TRENDS_PARAMETER":var j=Jm(e);return Object.assign({},j,{parameter:t.parameter,threshold_choice:t.threshold_choice,show_spinner:!0});case"SELECT_TRENDS_SEASON":return Object.assign({},e,{season:t.season,show_spinner:!0});case"SELECT_ANALYSIS_REGION":return Object.assign({},e,{region:t.region,show_spinner:!1});case"SELECT_TRENDS_REGION":return Object.assign({},e,{region:t.region,show_spinner:!0});case"UPDATE_TRENDS_SENSORS":var x=Xm(e,t.view_type),T=!0;return"by-analysis"===t.view_type&&(T=!1),Object.assign({},e,{trends_sensors:x,trends_regions:e.trends_regions,view_type:t.view_type,show_spinner:T});case"SELECT_TRENDS_THRESHOLD":return Object.assign({},e,{threshold:t.threshold,show_spinner:!1});case"SELECT_TRENDS_CALC_BASELINE_SETTING":return Object.assign({},e,{baseline_total_year:t.baseline_total_year,show_spinner:!1});case"SELECT_TRENDS_CALC_ROLLING_SETTING":return Object.assign({},e,{rolling_interval:t.rolling_interval,show_spinner:!1});case He:return Object.assign({},e,{number_to_filter:t.number_to_filter,show_spinner:!0});case"ADD_CUSTOM_TREND_LOCATIONS_FILTER":var D=P(t.selectedPointsLocations,e);return Object.assign({},e,{trends_sensors:D});case"FETCH_ANALYSIS_REGION":var I=e.trends_sensors;if(""!==e.parameter){var A=[];e.trends_sensors.map((function(t){t.parameters.includes(e.parameter)&&A.push(t)})),I=A}return"all"!==t.region&&"draw"!==t.region&&""!==t.region&&(I=k(t.region,I)),Object.assign({},e,{trends_sensors:I,show_spinner:!1});case _e:return Object.assign({},e,{parameter:"",season:"spring",region:"",all_regions:[],threshold_choice:!1,threshold:"",sensors:[],trends_sensors:[],trends_regions:[],baseline_total_year:30,rolling_interval:17,view_type:"by-sensors",number_to_filter:0,draw_available_sensors:[],show_spinner:!1});case"RESET_TRENDS_SENSORS":return Object.assign({},e,{trends_sensors:[],show_spinner:!0});default:return e}},$m={layers_visibility:[]},eh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_AVAILABLE_LAYERS":var r=Object(v.m)();return Object.assign({},e,{layers_visibility:r});case"UPDATE_LAYER":return Object.assign({},e,{layers_visibility:t.layer});case"SET_LAYER_OPACITY":return Object.assign({},e,{layers_visibility:t.opacity});default:return e}},th={data_sources:{selected:[],available:[]}};function rh(e,t){return Object.assign({},t,{data_sources:{selected:Tm(e),available:Tm(e)}})}var nh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:th,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INITIALIZE_EXPLORE_DATASOURCES":var r=rh(t.sensors,e);return Object.assign({},e,r);case"UPDATE_EXPLORE_DATASOURCE":var n=Object.assign({},e,{data_sources:{selected:t.data_sources,available:e.data_sources.available}});return Object.assign({},e,n);default:return e}},ah={parameters:[],categories:[],mappings:[],explore:[],search:[],failed:!1,multi_parameter_map:[]};function oh(e){var t=[];return e.map((function(e){var r=e.title,n=e.unit;""!==n&&(r+=" ("+n+")");var a=Object.assign({},e,{title:r});t.push(a)})),t}function ih(e){return oh(e.filter((function(e){return!0===e.explore_view})))}function sh(e){var t=e.filter((function(e){return!0===e.search_view})),r=[],n=[],a={};return t.map((function(e){if(-1===n.indexOf(e.name)){var o=t.filter((function(t){return t.title===e.title&&t.unit===e.unit}));o.length>1&&(a[e.name]=o.filter((function(t){return t.name!==e.name})).map((function(e){return e.name})),o.map((function(e){return n.push(e.name)}))),r.push(e)}})),{search_parameters:oh(r),multi_parameters:a}}var lh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ah,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_PARAMETERS":var r=sh(t.parameters),n=r.search_parameters,a=r.multi_parameters;return Object.assign({},e,{parameters:oh(t.parameters),categories:t.categories,mappings:t.mappings,explore:ih(t.parameters),search:n,multi_parameter_map:a});case"FAILED_RECEIVE_PARAMETERS":return Object.assign({},e,{failed:!0});default:return e}},ch=Object(bm.combineReducers)({backends:jm,searchFilters:Mm,sensors:Bm,selectedSearch:Wm,sensorDetail:Ym,chosenTrends:Km,exploreLayers:eh,exploreFiltering:nh,parameters:lh});var uh=r(1124);window.configruntime=uh,console.log("Running App version 0.1-prod");var ph,dh=Object(bm.createStore)(ch,ph,Object(bm.compose)(Object(bm.applyMiddleware)(vm.a,wm.a,Sm()()),window.devToolsExtension?window.devToolsExtension():function(e){return e}));Object(o.render)(a.a.createElement(s.Provider,{store:dh},a.a.createElement(ym,null)),document.getElementById("root"))},113:function(e,t,r){e.exports={root:"_1ZqFiS_lh35Jmaj_WM5Qal",marker:"_2QZ7aV4ZjFTx6JGNNjl7pB",upArrow:"_3LFy3HozFGYCwoo-JJ4f6-",downArrow:"_1O3QG5UI9si9rPcA2pZqQP",noValue:"_1hWlxoMqfI4xhCKs_Zb_ap",upArrowLegend:"_2q_3ZrmCmB1R-3UrXzagd9",downArrowLegend:"_3FHgELaD_f2N6JHOK2J5ip",noValueLegend:"_2QMIxvjkUe8Oy9MJMZuyex",viewdetail:"_2UQliO8lPiDVS69yvE61lg",viewsitedetail:"_1UC6pTPvM5VicLNKl-T_4t",regionPopupText:"BCd2HUabpNk2YP4qtPJ9E",regionPopup:"_1C9t5PalUsraNpCqZ5kto8",regionPopupCloser:"_2p2j2NAVIBQZ5bwsxQKHOi",locations_text_style:"_1eXI6Bsc5KnChKCUpH-fvY",dialog_style:"_2iOp7GHeOTHUTJ2S7Ee8pE",list_style:"_32j0yF9ptmCqphs0GfsRqP",map_style:"_3DdtCZU1PYMT2ongAr626D"}},133:function(e,t,r){e.exports={liststyle:"t1K7ZzWRCdnk6oCMmn140",parametersCardStyle:"xpcJJnY-G2zXhyR4dUZnz",centeredcontent:"_1CeoGqpZOyS_ABx6GZZuJQ",mapstyle:"_14dKGHjnoB5ZAqXo3tyLY8",root:"_2yV1vyMjFUJdvz6G5g5xnr",bodystyle:"EvS28OSCSzpmT9AF4pRB7",menustyle:"_1kVnrLF--17WNWLo3ps4UZ",paperstyle:"wW2BqkSxzE5YCSifzcgVy",thresholdStyle:"w1jnp0jCKCDTSZeamnojX",sliderStyle:"_168lAMR4aDKwzEaJ612y7W",showScroll:"_1Nig770TXEYSYC0S---M-X",actionStyle:"_2iTSGUpsSg9yyuEpSoxNZC",buttonStyle:"xd02Rx9xF0D_oZ3bWdLcY",counterText:"_3mgj0ssuCWiEJtcUNq9qe",cardMargin:"_y8rD2bdVwY_2CkWj__zg",select:"_2ro3Md1Tc7E08feVN97zFJ",textField:"_2aUqjcM70HC0_9q_sABft3",searchButtonsStyle:"_3Uv4bHFys4g0TsrsZ8zZaQ"}},152:function(e,t,r){e.exports={button:"_3-VoFha4EUx3BDI2xytilm",buttonPermalink:"lEFq3f3SW5GEJJWNSyGmW",counterText:"_1mkBx3vF6yAhigjIRa33QR"}},16:function(e,t,r){e.exports={layersButton:"_3aQt3wJ3YDJzrHSMCLUdqp",layersButtonText:"_12KYHFoIxfVeWtPCXSKymC",layersCloseButton:"_1PV_rwtTQTFhJ7_QZFxm1Y",layersCloseButtonDiv:"gXdNoFbXGkZalShUEYN6d",layersHeader:"dTdZEFP6v_Kg3MP9XWKrT",drawerSettings:"_3_Pu3uGf-TNCsRxr-zewb8",layersDrawerClass:"_3KYLJWkieuXt-Zkxdm17I-",exploreCard:"_232tGGtzsglsAHw3lS3PoG",checkboxWidth:"_3-Tw4ylmfDy-FhDsMCs10o",checkboxLabel:"KQfjvtLYq9-S9dd7ezPYE",col:"qeqYTLY8199YTCAbZ9c6c",sliderStyle:"_1Q32MonDjxGtlDTgnxm9or",leftColumnExplore:"_3P8hMBOPp3ZbJodWEmQykK",listHeaderStyle:"_35BZZj2KbdniruVV-Kr5r3",listHeadlineStyle:"ifsuk4tHu5om6GKYRWjVF",listItemsStyleOpen:"_3Oxy0OBz80YQMf88zubXES",listItemsStyleClosed:"_3MCQlpVg3yhdUQseG7vfzY",layersLegendDetails:"_2Bbmj4fDT_f8R15eHUjMBy",layersLegendText:"_1GaEGUQbZOXBWCzQt8XwrU",layersGroup:"_2BnNEynTnnlM5j6Uj5UR2Q",layersGroupTitle:"_1R4iqgyJsU8nqmqm-TyyWl",sectionPills:"_2S1zLxjL6Q42doH_AbOhD-",exploreButton:"_1AnNFW34uGP19cqA5b8Rw2",exploreButtonText:"_3VVRGTEVrsTrYcflHqlxih",regionCount:"_280bpTmxdn-CZt0bRb2k_c",regionLabel:"_1OlJinXs1N3RmKgz8c6Ud",tabBackground:"_3ksM0Pvkd4LTlgPii_OiTK",tabTextStyle:"_1tN9Na3Rs2UQjxSxw4w9aP",tabTextStyleDisabled:"_1z4EgjyNDWy8auLkfd64Lj",accordionIcon:"_3p6faCaW_dPHf_oJbX0oST",groupAccordionIcon:"_3IylV-TESIvKGCV79pfg_2",exploreSourcesIcon:"_1IXx1WWb3iIq4G_HehBxWS",exploreSourcesCountAndIcon:"_2pt6zWuNY_0U7Dg8ZQEpSN",listWidthStyle:"_3nqBMB0kIYIdS1IwmNOlcF",listSubheaderStyle:"xJ_jrVYmlldA91JrLEORd",exploreSubCard:"_3GK96oy7rBdGzF5NrH4Lf",exploreTitleCard:"_1eBOp5IBCGPe-D3dEt2BAV",exploreTitleLeft:"_3_tqIFV5fQgnWLB2C--9OL",exploreTitleRight:"_2yGMUVzqZPb7wP4ix6CFh9",exploreSourcesSelectionIcon:"_2Dkb6SNb3hBlI_iSAT0gx6",sourceItemsStyleOpen:"_24pS4dQOJ9XHKJ4soEny3Q",sourceItemsStyleClosed:"_1OKh3DjIKLTdVpAG4sWrXn"}},182:function(e,t,r){e.exports={row:"_3aLdLpA63qCQRQg5JDl9nw",col:"_2cYlGLZyz-Kwrn3j3EqXfN",checkboxWidth:"_2VLPRnW1ezd5kEcd6dmq4L",checkboxLabel:"_3zBTkpYJr3ITGCF8JGvrQI"}},21:function(e,t,r){e.exports={liststyle:"dfa1yj6Iu6qhzoJvLSNpi",parametersCardStyle:"_1JdvNujkyqoRmupVPw0wUu",parametersCardStyleDetail:"_2sJjUZiM2atxDfzMoPqN5C",cardMargin:"_1QdDUiCDDcnzAd6lR7mXyN",paperstyle:"_3FeFhEcRvrwCMjksw7uGK6",buttonstyle:"_2XuY4a61avNRbZHDQD527n",select:"_2RxbHg7pCru2AiWJ1twRq2",detailListStyle:"_1JSE6sT3s8qWpP1nPjNCy-",detailChart:"_2n4tlg3v_Z9vC3eRlU7GM1",detailTitle:"mqvdULgWAf9kUQ-d31iRK",list_style:"_1E_D7Nb5cMuM4w-jnWBOeo",textField:"Q4U79XfHr81o4bqdTShEy",counterText:"f8z1rFBPcVG4TNjs97y4c",submitButtonStyle:"m2cntA1GVJKQ-ox0bSMOd",selectedParameter:"_1hL8sCYQ11CZUenr7t0CC5",capitalize_word:"_3_LtprfJPu_1p8piTSrDIl",about_button:"_1Qm39hYvPODKrWvGyw0Qp7",locations_button_style:"_11xWzf-8k2XjGh6MYtrIeC",close_button_style:"_3uwfXj0xKVG7VNy0MC4tZU"}},27:function(e,t,r){e.exports={root:"t_VaFu8jRJENiVFRXyyVW",select:"_3obiS2vOiFBtPS5QwJ4Spn","semi-square":"_3jYRSS_esPHWlEOcf-i4Cu","styled-select":"_2Tjb1Tea5mrddDJ2rP42xO",slate:"_2S8RT4rT3P3ZUbbRXhtjQY",listspacing:"_21bLI_I1bDf7XrF47I0Cos",close_button_collapsed_card:"_2GdvQNkXfOG6xRjvPa4Yal",close_button_open_card:"GA9c8uEbp0JDdcaplChvq",right:"_2-aQ2nBSn8RcvvKkyvps3",left:"DoKMVENHV8fX8SD8-B4D5",closeIcon:"_1f4qGn7zt2glVoX1sAkT9g",descriptiveIconBefore:"_1RVo2scGHT2nwqFuk2sKQz",descriptiveIconChoice:"_3n6GE5CMJZQTEg7dtjpg8J",descriptiveIconChoiceInvert:"XTMTvEZx8c09GWtLjd21N",subtitleSpacing:"_2pG5EaBGbf-Yet7g2mPPGe",filter_card:"_1Lu3SHvdfV2cK028DMWw-U",select_all:"_2WszAqsd0jOfAeAonhZbMI",draw_location_style:"_2apt6HQadVZwR5qWDu4eAC",radio:"_3QcJZxKYCB224qgGnGhR1p",divider_style:"UASIusUsCbGrjYP7_1q-w",edit_filter_button:"_9JO7U3prqkLRFgG239A8q",filterPills:"_259s-X0yHvaJvChkoy1bV4"}},518:function(e,t,r){e.exports={list:"_2Bi2mL9t5v8FV93UnKaPaj",bottomSection:"_3XLRJay5jYqXnIFqwTQHQw"}},519:function(e,t,r){e.exports={tabBackground:"_8DyB-vGFW-MpWEEwLE89L",tabTextStyle:"_2gkwb4ULf4YWaD0mGGtmOW",tabTextStyleDisabled:"_3qDe489YdXqdX5YqVG-v78"}},52:function(e,t,r){e.exports={header_container:"_39JwA36RsdVVN_Dx7Abhu-",header_banner:"_3ar2Fb01sNysTVrv3ayCBZ",header_image:"_2FmFMw56xtCrpqvmruaXrz",header_title:"rmDBj-spdDkcGrVKnFOt9",header_title_text:"_1LOFX3K1SbyJXFcd0NvIfC",header_subtitle:"_1eL6dsLbtW1dwK1N-kx260",header_subtitle_text:"JqlIKAjY96YwDrAVeHLFQ",header_hr_div:"_23sAAkQVSMtqE09irmJklh",header_hr:"zhukj9a5n7qZ88VQD4R1",header_alert:"_2SdypugaP9WJqirNDrLRBP",navbar:"AmAkhHgGwihnZ1AFzJ1ZQ",navigation_item:"_1VV708OEti732wAwtpdoXw",menu_list_item:"_20vGS6Iegkgs4NnLCzm5NC",dropdown:"_2HAJREQVJz74x7I_SaDWUJ",active:"_1mrU7o933K4JgHSWOTzz7a","rounded-btn":"_2StldbGesG5HJwVvK39NEw",btn:"_2ovq4SiB11qJH0QueGLxuD",hover:"_M_z5i46dLOhwArBFRbue","link-clickable":"uHoHJb9rp_09w0OyyqDqt",trendsButton:"_2q4Io7UGP2xsgSWmkxZvE9",menu_style:"_3yRCjvDZF2FXrudCRgihXP",menu_anchor_style:"_1IL7LVEcYYYno7xbfuYCw-",buttonTrends:"XixTx2Z_lCJnBjnV_GIdS"}},520:function(e){e.exports=JSON.parse('[{"id":"data_sources","name":"Data Sources"},{"id":"parameters","name":"Parameters"},{"id":"time","name":"Time"},{"id":"locations","name":"Locations"},{"id":"online","name":"Online"},{"id":"span","name":"Span"}]')},521:function(e,t,r){e.exports={container:"X0cCQ3s61zN7zMvpzBTt5","button-wrapper":"_1EZMlDGUbE_DoECsANjnRB",add:"JKXqJuAybNE5AR-J2Py7e",inline:"_2lRmcGt2ry_6GGNTB25Jgh"}},523:function(e,t,r){e.exports={tabTextStyle:"_2DyZa_fQ7ZlptKDezEwXYT"}},96:function(e,t,r){e.exports={dateWrapper:"_1yTxsF8phtS9oAi9ztqqg",yearWrapper:"_2hP6LBo084R7SHejDNfrnS",start:"_38apu_oI6DI4Do8eU7hA5O",end:"hIRK5oA0sVNDEjelq78wa"}}});