function defer(n){window.jQuery?n():setTimeout(function(){defer(n)},50)}function debounce(n,t,i){console.log("debounce");var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}}var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n},App=App||{},umbracoForms,FC,View,CustomView,Dropdown,dateFormat,GoogleMapEvent,GoogleMapInfobox;App.Common=function(){function n(){svg4everybody()}function t(){var t=$(".key-points"),n;t.length>0&&(n=t.find(".item"),n.length===3&&n.addClass("item--3"))}function i(){var n,t;if($(".live-stats").length){$(".live-stats").each(function(){var t=$(this),n=t.find(".stats-slider");if(!ni[n])try{n.slick({dots:!0,autoplay:!0,autoplaySpeed:4e3})}catch(i){}});var i=0,r=$("#js-live-activities").find("li"),u=4e3,f=9e3,e=function(){var e=r.eq(n);t=Math.floor(Math.random()*(+f-+u))+ +u;i+=t;setTimeout(function(){e.removeClass("u-hidden");setTimeout(function(){e.addClass("is-visible")},100)},i)};for(n=r.length-6;n>=0;n--)e()}}function r(){$(".uploadphotos input").change(function(){if($.inArray($(this).val().split(".").pop().toLowerCase(),["png","jpeg","jpg"])==-1)return alert("Only '.png,.jpeg,.jpg' format is allowed."),this.value="",!1})}function u(){$("#btnUnsubscribe").click(function(){alert("Your Email has been unsubscribed from the mailing list for this Story Comment service")})}function f(){if($(".iframe-form").length)$(".iframe-form iframe").on("load",function(){$("html, body").animate({scrollTop:$(".iframe-form").position().top},1e3)})}function e(){$(".contour.editprofile").length&&($(".contour.editprofile .contourNavigation").before('<div class="edit-success"><p>Your details have been updated.<\/p><a href="/">Back to profile page<\/a><\/div>'),$(".contour.editprofile form").validate({rules:{"61678124-7dcf-45b2-f53c-b46b43ba7e68":"required","dce97312-df73-44fe-8142-cab5b9f04290":"required"},messages:{"61678124-7dcf-45b2-f53c-b46b43ba7e68":"Please enter your first name","dce97312-df73-44fe-8142-cab5b9f04290":"Please enter your suburb"},errorElement:"span",errorClass:"field-validation-error",submitHandler:function(n){var t=$(n).attr("action");(t===undefined||t==null)&&(t="");$.post(t,$(n).serialize(),function(){$(".contour.editprofile .edit-success").addClass("visible")})}}))}function o(){if($(".form-edit-organisation").length){var n='<div class="edit-organisation-success"><p>Your details have been updated.<\/p><a href="'+window.editOrganisation.organisationUrl+'">Back to profile page<\/a><\/div>';$(".form-edit-organisation").find(".contourNavigation").before(n)}$(".contour.editworkplace form").length&&$(".contour.editworkplace form").validate({rules:{"ca31c561-151c-48f3-d78f-7c1671288635":"required","b1a86374-4603-476a-daba-59b6c0274ea4":"required","7642977c-465d-4636-cf09-1c430d521f0f":"required"},messages:{"ca31c561-151c-48f3-d78f-7c1671288635":"Please enter your workplace's email address","b1a86374-4603-476a-daba-59b6c0274ea4":"Please enter your workplace's phone number","7642977c-465d-4636-cf09-1c430d521f0f":"Please enter your workplace's address"},errorElement:"span",errorClass:"field-validation-error",submitHandler:function(n){var t=$(n).attr("action");(t===undefined||t==null)&&(t="");$.post(t,$(n).serialize(),function(){$(".contour.editworkplace .edit-success").addClass("visible")})}});$(".contour.editschool form").length&&$(".contour.editschool form").validate({rules:{"2970d908-7a95-41df-fb05-f7f5a917ff54":"required","8575e8d2-41e8-45b6-a788-1a1fd6965424":"required","005f130f-8496-4205-e170-aa5ea6ac1a6f":"required"},messages:{"2970d908-7a95-41df-fb05-f7f5a917ff54":"Please enter your school's email address","8575e8d2-41e8-45b6-a788-1a1fd6965424":"Please enter your school's phone number","005f130f-8496-4205-e170-aa5ea6ac1a6f":"Please enter your school's address"},errorElement:"span",errorClass:"field-validation-error",submitHandler:function(n){var t=$(n).attr("action");(t===undefined||t==null)&&(t="");$.post(t,$(n).serialize(),function(){$(".contour.editschool .edit-success").addClass("visible")})}})}function s(){function n(n,t){$("#member-role").text(t);$("[data-member-minlevel]").each(function(){var t=$(this).data("member-minlevel");n>=t?$(this).addClass("active"):$(this).removeClass("active")});$(".contourField.membertype input").val(t)}$("[data-member-permissions-list] button").click(function(){$("[data-member-permissions-list] button").removeClass("active");$(this).addClass("active");$(".form-wrap").show();n($(this).data("member-level"),$(this).data("member-name"))})}function h(){$("#form-create-organisation-workplace").length>0&&$("form").submit(function(n){if(console.log("form submit"),window.WorkplaceSites!=undefined&&window.WorkplaceSites.length>0)for(var t=0;t<=window.WorkplaceSites.length-1;t++)if(!window.WorkplaceSites[t])return console.log("form dont submit"),$(".workplace-additional-sites-name-"+t).focus(),n.preventDefault(),!1;return!0})}function c(){var n=$(".new-survey-details").data("survey-name");$("input[name=7201f1f5-ce77-461d-aec9-944ef24311b5]").length>0&&$("input[name=7201f1f5-ce77-461d-aec9-944ef24311b5]").val(n);$("form.HandsUpSurveyClassEntry input.primary").click(function(){var n=[],t=$("th"),i=$("tbody tr").each(function(i){$cells=$(this).find("td");$input=$(this).find("input");n[i]={};$input.each(function(r){n[i][$(t[r]).html()]=$(this).val()})});if(n.length===0)return alert("Please add atleast a row"),!1})}function l(){$("[data-reveal]").click(function(n){n.preventDefault();var t=$(this).data("reveal")!=""?"#"+$(this).data("reveal"):$(this).attr("href");$(t).toggle()})}function a(){function n(){$("#is-related-yes").is(":checked")?$("#story-related-select").slideDown(200):$("#story-related-select").slideUp(200)}n();$("input[name=isRelated]").change(n)}function v(){function n(n,t){n.children("span").text(t)}$("[data-dropdown]").each(function(){var t=$(this),i=function(){return t.find("option:selected").length?t.find("option:selected").text():t.find("option").first().text()};n(t,i);t.change(function(){i=t.find("option:selected").text();n(t,i)})})}function y(){function t(){n.slick({adaptiveHeight:!0,dots:!0,infinite:!1,slide:".welcome-slide",speed:800,swipe:!1});n.find(".slick-dots li").unbind("click");n.on("beforeChange",function(t,i,r,u){u==i.slideCount-1?n.slick("slickSetOption","dots",!1,!0):(n.slick("slickSetOption","dots",!0,!0),n.find(".slick-dots li").unbind("click"))})}var n=$(".contour.welcome .contourPage");n.find(".contourFieldSet").wrap('<div class="welcome-slide"><\/div>');n.find(".contourNavigation").detach().appendTo(".welcome-slide:last");t();$(document).on("click",".contour.welcome input[type=submit]",function(){if($(".field-validation-error span").length){var t=$(".field-validation-error span").first().parents(".slick-slide").data("slick-index");n.slick("slickGoTo",t,!1)}})}function p(){$("[data-switch]").click(function(n){n.preventDefault();$(".switch").removeClass("active");$($(this).attr("href")).addClass("active")})}function w(){$(document).ready(function(){$(".reportComment").on("click",function(n){n.preventDefault();var t=$(this),i=$(this).data("content"),r="/Umbraco/Api/Comment/Report?commentId="+i;return $.get(r,function(){$(t).before('<span class="comment-reported">Comment has been reported<\/span>');$(t).addClass("hide-report-comment")}),!1})})}function b(){$(document).ready(function(){$("#Selectedfile_delete").on("click",function(n){n.preventDefault();var r=$(this),t=$(this).data("content"),i="/umbraco/surface/ReviewStorySurface/DeleteAttachment?attachId="+t;return $.get(i,function(){}).done(function(){$(".label-text").text("Upload document");$("#Selectedfile").html("");$("#Selectedfile_delete").html("");$("#file-info").slideUp(200)}),!1})})}function k(){$("#categoriesDDL").on("change",function(){var t=$("#categoriesDDL option:selected"),n=$("#categoriesDDL option:selected").val();n!=null&&n!=0&&($(".tag-ul").append('<li class="tag-li"><span id='+n+">"+t.text()+'<\/span><a class="tagClose" href=""><img src="/Images/base/ui-delete.svg" /><\/a><\/li>'),$("#selectedCategories").val($("#selectedCategories").val()+n+","),$("#categoriesDDL option[value='"+n+"']").remove(),$("#categoriesDDL").val(0))});$(document).on("click",".tagClose",function(n){var i;n.preventDefault();var t=n.currentTarget.parentNode,r=t.children[0].id,u=t.children[0].textContent;$("#categoriesDDL").append('<option value="'+r+'">'+u+"<\/option>");i=$("#selectedCategories").val().replace(r+",","");$("#selectedCategories").val(i);t.remove()})}function d(){$(".btn-nav").click(function(n){n.preventDefault();$("html").toggleClass("nav-open")});$(".nav-toggle").click(function(){$(this).parent().toggleClass("open")})}function g(){$(".btn-quick-links").click(function(n){n.preventDefault();$(this).parent().toggleClass("open")})}function nt(){function r(){var f=$(window).outerWidth(),r=$(window).scrollTop(),e=$(".col-md-4").width();t.length>0&&(r>=u?(t.addClass("fixed"),$("#journey-planner").length&&$("#journey-planner").addClass("fixed")):(t.removeClass("fixed"),$("#journey-planner").length&&$("#journey-planner").removeClass("fixed")));n.length>0&&(r>=i?(n.addClass("fixed"),n.css({width:e})):n.removeClass("fixed"),f<768&&n.removeAttr("style"))}var t=$(".quick-links"),n=$(".call-to-action.to-be-sticky"),u,i;t.length>0&&(u=t.offset().top);n.length>0&&(i=n.offset().top-20,t.length>0&&(i=i-50));r();$(window).scroll(function(){r()});$(window).resize(function(){r()})}function tt(){var r=$(".site-header .account-utilities"),n=r.find(".name"),i=r.find(".search-btn"),t=$(".search-popup");n.click(function(n){n.preventDefault();$(this).parent().toggleClass("visible")});n.keydown(function(n){n.keyCode==13&&($(this).trigger("click",!0),n.preventDefault())});$("body").click(function(t){n.parent().hasClass("visible")&&t.originalEvent.srcElement.id!="li-name-ul"&&n.parent().removeClass("visible")}).find(n).click(function(){return!1});i.click(function(n){n.preventDefault();t.toggleClass("visible");t.find("input[type=text]").focus()});i.keydown(function(n){n.keyCode==13&&($(this).trigger("click",!0),n.preventDefault())});$("body").click(function(n){t.hasClass("visible")&&n.originalEvent.srcElement.id!="searchSite"&&t.removeClass("visible")}).find(i).click(function(){return!1})}function it(){var i=$(".site-header .member-navigation"),n=i.find(".btn-switch-organisations"),t=i.find(".panel-switch-organisations");n.click(function(n){n.preventDefault();$(this).toggleClass("visible");t.toggleClass("visible")});n.keydown(function(n){n.keyCode==13&&($(this).trigger("click",!0),n.preventDefault())});t.click(function(){for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var i=t[n],r=i.indexOf("="),u=r>-1?i.substr(0,r):i;u.indexOf("ncbt_segment")>-1&&(document.cookie=u+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT")}});$("body").click(function(i){n.hasClass("visible")&&i.originalEvent.srcElement.id!="panel-switch-organisations"&&(n.removeClass("visible"),t.removeClass("visible"))}).find(n).click(function(){return!1})}function rt(){function n(n){function r(){e();$(".contourPage select",i).each(function(){t[$(this).attr("id")]=$('option[value="'+$(this).val()+'"]',$(this)).text()});$(".contourPage textarea",i).each(function(){t[$(this).attr("id")]=$(this).val()});$(".contourPage input",i).each(function(){($(this).attr("type")=="text"||$(this).attr("type")=="hidden")&&(t[$(this).attr("id")]=$(this).val());$(this).attr("type")=="radio"&&$(this).is(":checked")&&(t[$(this).attr("name")]=$(this).val());$(this).attr("type")=="checkbox"&&($(this).attr("id")!=$(this).attr("name")?$(this).is(":checked")&&(t[$(this).attr("name")]==null?t[$(this).attr("name")]=$(this).val():t[$(this).attr("name")]+=","+$(this).val()):t[$(this).attr("name")]=$(this).is(":checked").toString())})}function e(){var n;t=[];for(n in f)$("#"+n).length===0&&(t[n]=f[n])}function u(){umbracoForms.conditions.handle({fsConditions:o,fieldConditions:s,values:t})}var t,f=JSON.parse($("#values_"+n).val()),o=JSON.parse($("#fsConditions_"+n).val()),s=JSON.parse($("#fieldConditions_"+n).val()),i=$("#contour_form_"+n);$(function(){$(".contourPage input, .contourPage textarea, .contourPage select",i).change(function(){r();u()});r();u()})}$(document).on("click",".contour input.prev",function(n){n.preventDefault();window.history.back()});$(document).on("submit",".contour form",function(){$(this).find("input[type=submit]").attr("disabled","disabled");$(this).find("input[type=file]").length>0});$(".contour:not(#login-form):not(#reset-form)").each(function(){n($(this).data("clientid"),$(this).data("formname"))});$(".contourMessageOnSubmit").length>0&&$("body, html").animate({scrollTop:$(".contourMessageOnSubmit").offset().top},0)}function ut(){$(".sir-trevor").length>0&&(SirTrevor.config.debug=!0,SirTrevor.config.scribeDebug=!0,SirTrevor.config.language="en",SirTrevor.setDefaults({ajaxOptions:{credentials:"same-origin"},iconUrl:"/images/sir-trevor-icons.svg",required:["Text"],defaultType:"Text",uploadUrl:"/Umbraco/Api/Image/Upload"}),window.editor=new SirTrevor.Editor({el:document.querySelector(".sir-trevor"),blockTypes:["Heading","Text","List","Image","Video"],onEditorRender:function(){var n,t,i;$("#story-title").focus();n={};document.addEventListener("keydown",function(t){n[t.key]=!0});document.addEventListener("keyup",function(){});t=[];i=$("#txtLgaIdHidden").val();$.get("/Umbraco/Api/MemberTag/GetAll",function(n){t=JSON.parse(n)});$(document).on("keyup",function(){$(this).find(".st-text-block").each(function(){var f=$(this),e=SirTrevor.getInstance(),o;if(f.is(":focus")?f.addClass("isTyping"):f.removeClass("isTyping"),o=$(this).text(),o.length){if($(this).addClass("has-content"),n["@"]){n={};var i=$(".isTyping").first(),r=ft(i.get(0).childNodes[0]),u="";$.fancybox.open('<div class="message"><h3>Tag another user<\/h3><input type="text" id="trevor-user-selector" name="trevor-user-selector"/><input type="hidden" id="trevor-user-name"/><\/div>',{afterShow:function(){$("#trevor-user-selector").focus();$("#trevor-user-selector").devbridgeAutocomplete("setOptions",{lookup:t,zIndex:99995,minChars:1,onSelect:function(n){var f,t,e,o;console.log("You selected: "+n.value+", "+n.data);$("#trevor-user-name").val(n.data);$.fancybox.close();f=window.getSelection();t=document.createRange();f.removeAllRanges();e=r+u.length;o=i.get(0).childNodes[0];r===0&&e++;t.setStart(o,e);t.collapse(!0);f.addRange(t);i.get(0).focus()}})},beforeClose:function(){var t=$("#trevor-user-name").val(),o,n,f,s;t!==""&&(o=$("#userMentions").val(),$("#userMentions").val(o+t+";"),n=i.text(),f="",u="["+t+"]",f=r===0?n+u:n.slice(0,r)+u+n.slice(r),i.text(f),e.onFormSubmit(),s=e.store.retrieve())},afterClose:function(){}})}}else $(this).removeClass("has-content")})});$(".st-text-block").each(function(n,t){var i=$(t),r=i.text();r.length>0&&i.addClass("has-content")});console.log("Sir Trevor editor rendered")}}))}function ft(n){var r=0,u,t,f,i;return window.getSelection?(u=window.getSelection(),u.rangeCount&&(t=u.getRangeAt(0),t.commonAncestorContainer.parentNode==n&&(r=t.endOffset))):document.selection&&document.selection.createRange&&(t=document.selection.createRange(),t.parentElement()==n&&(f=document.createElement("span"),n.insertBefore(f,n.firstChild),i=t.duplicate(),i.moveToElementText(f),i.setEndPoint("EndToEnd",t),r=i.text.length)),r}function et(){if($(".create-story form").length){$(".create-story form").validate({rules:{title:"required",storyFileUpload:{extension:"pdf|doc|docx|xls|xlsx|csv"},activity:{required:function(){return $("#is-related-yes").prop("checked")?!0:!1}},fileTitle:{required:function(){return $('[name="storyFileUpload"]').val()==""?!1:!0}},fileDescription:{required:function(){return $('[name="storyFileUpload"]').val()==""?!1:!0}}},submitHandler:function(n){if(SirTrevor.onBeforeSubmit(),$(".st-errors").attr("style")==""||$(".st-errors").attr("style")==undefined)return!1;n.submit();$.blockUI({message:'<img alt="Loading" src="/Images/ajax-loader.gif" />'})},messages:{title:"Please enter a title",storyFileUpload:"Please upload a valid filetype"},errorElement:"span",errorClass:"field-validation-error"});$(".create-story form").on("keyup keypress",function(n){var t=n.keyCode||n.which;if(t===13&&!n.shiftKey)return n.preventDefault(),!1});$("#btn-draft").click(function(){$("#isDraft").val("on")})}}function ot(){if($("#form-create-organisation-workplace").length>0){var i=$("#form-create-organisation-workplace"),r=$("#form-create-organisation-school"),n=$("#organisation-switcher-workplace"),t=$("#organisation-switcher-school");n.click(function(){i.removeClass("hide");r.addClass("hide");n.addClass("selected");t.removeClass("selected")});t.click(function(){i.addClass("hide");r.removeClass("hide");t.addClass("selected");n.removeClass("selected")})}}function st(){function r(){function t(){console.log("close lightbox");n.removeClass("open");$("html").removeClass("lightbox-open");i.focus();n.hasClass("video")&&n.find("iframe").attr("src","")}n.add(n.find("[data-lightbox-close]")).click(function(n){n.preventDefault();t()}).children().click(function(){return!1});n.find(".lightbox-wrap a").not("[data-lightbox-close]").click(function(){var n=$(this).attr("href");window.location.href=n});n.focusin(function(){$(this).keydown(function(n){var i=n.keyCode||n.which;i==27&&t()})})}var t,n,i;$(window).on("load",function(){$(".lightbox").each(function(){$(this).addClass("ready")})});$(".open-lightbox").click(function(u){if(u.preventDefault(),t=$(this).data("lightbox"),n=$('.lightbox[data-lightbox="'+t+'"]'),n.addClass("open"),$("html").addClass("lightbox-open"),n.hasClass("video")){var f=n.find("iframe").data("url");n.find("iframe").attr("src",f+"?autoplay=1")}i=document.activeElement;n.find(".btn-close").focus();r()})}function ht(){var t=$(".similar-organisations"),r=t.waypoint(function(){t.find(".my-organisation").addClass("in-view");setTimeout(function(){t.find(".organisation").addClass("in-view")},500)},{offset:"80%"}),i=$(".bar-chart-vertical"),u,n;$(".pdf-container").length?i.find(".bar").each(function(){var n=$(this).data("height")+"%";$(this).attr("style","height: "+n);$(this).addClass("visible")}):r=i.waypoint(function(){i.find(".bar").each(function(){var n=$(this).data("height")+"%";$(this).attr("style","height: "+n);$(this).addClass("visible")})},{offset:"80%"});u=$(".report-item.stats-overview");u.each(function(){var n=$(this);n.waypoint(function(){n.addClass("visible");var u=n.find(".mode-car .value"),t=n.find(".mode-walked .value"),i=n.find(".mode-public .value"),r=n.find(".mode-rode .value"),g=n.find(".stat-stories .value"),nt=n.find(".stat-comments .value"),w=n.find(".stat-points .value"),f=parseInt(u.data("value")),e=parseInt(t.data("value")),o=parseInt(i.data("value")),s=parseInt(r.data("value")),ht=g.data("value"),ct=nt.data("value"),tt=w.data("value"),lt=n.find(".mode-car .value").data("direction"),at=t.data("direction"),vt=i.data("direction"),yt=r.data("direction"),h=0,c=0,l=0,a=0,b=0,k=0,d=0,it=Math.floor(f)/100,rt=Math.floor(e)/100,ut=Math.floor(o)/100,ft=Math.floor(s)/100,v=null,y=null,p=null,et=null,ot=null,st=null;setTimeout(function(){v=setInterval(function(){if(f==0)u.html("<span>NA<\/span>"),clearInterval(v);else if(h<f&&!u.hasClass("animation-complete")){var n="";lt=="decrease"&&(n="-");h+=it;h+it>=f&&(clearInterval(v),u.addClass("animation-complete"),h=f);u.html(n+Math.floor(h)+"%")}else clearInterval(v),u.addClass("animation-complete")},25);y=setInterval(function(){if(e==0)t.html("<span>NA<\/span>"),clearInterval(y);else if(c<e&&!t.hasClass("animation-complete")){var n="";at=="decrease"&&(n="-");c+=rt;c+rt>=e&&(clearInterval(y),t.addClass("animation-complete"),c=e);t.html(n+Math.floor(c)+"%")}else clearInterval(y),t.addClass("animation-complete")},25);p=setInterval(function(){if(o==0)i.html("<span>NA<\/span>"),clearInterval(p);else if(l<o&&!i.hasClass("animation-complete")){var n="";vt=="decrease"&&(n="-");l+=ut;l+ut>=o&&(clearInterval(p),i.addClass("animation-complete"),l=o);i.html(n+Math.floor(l)+"%")}else clearInterval(p),i.addClass("animation-complete")},25);intervalCycling=setInterval(function(){if(s==0)r.html("<span>NA<\/span>"),clearInterval(intervalCycling);else if(a<s&&!r.hasClass("animation-complete")){var n="";yt=="decrease"&&(n="-");a+=ft;a+ft>=s&&(clearInterval(intervalCycling),r.addClass("animation-complete"),a=s);r.html(n+Math.floor(a)+"%")}else clearInterval(intervalCycling),r.addClass("animation-complete")},25);et=setInterval(function(){b<ht?(b+=1,g.html(b)):clearInterval(et)},25);ot=setInterval(function(){k<ct?(k+=1,nt.html(k)):clearInterval(ot)},25);st=setInterval(function(){d<tt?(d+=50,w.html(d)):(clearInterval(st),w.html(tt))},25)},1e3)},{offset:"80%"})});n=$(".report-item.commute-trips:not(.no-animate)");$(".pdf-container").length?(n.find(".bar").each(function(){var n=$(this).data("width")+"%";$(this).attr("style","width: "+n)}),n.addClass("visible")):r=n.waypoint(function(){n.find(".bar").each(function(){var n=$(this).data("width")+"%";$(this).attr("style","width: "+n)});n.addClass("visible")},{offset:"80%"})}function ct(){function n(n,t){n.each(function(){var n=$(this);google.charts.setOnLoadCallback(function(){t(n)})})}function o(n){var f=parseInt(n.attr("data-slice-car")),e=parseInt(n.attr("data-slice-other")),o=n.data("legend-position"),s=n.data("legend-alignment"),t=n.data("reactid"),i=google.visualization.arrayToDataTable([["Mode","Students"],["Car",f],["Bus/Train, walk, cycle",e]]),r={chartArea:{width:"100%",height:"75%",top:"20px",bottom:"20px"},titleTextStyle:{color:"#505050",fontSize:25},colors:["#8ed8f8","#00a3cc"],pieSliceText:"none",legend:{position:o,alignment:s,textStyle:{color:"#505050",bold:!0,fontSize:14}},tooltip:{textStyle:{fontSize:14}}},u;console.log("drawPieChartTransport ",n);t!=null?(console.log("reactId != null"),h[t]==null&&(h[t]=new google.visualization.PieChart(n[0])),h[t].draw(i,r)):(console.log("reactId == null"),u=new google.visualization.PieChart(n[0]),u.draw(i,r))}function f(){var n=t.data("slice-before"),i=t.data("slice-between"),r=t.data("slice-after"),u=google.visualization.arrayToDataTable([["Time","Participants"],["Before 7am",n],["Between 7-8am",i],["After 8am",r]]),f=new google.visualization.PieChart(document.getElementById("piechart-staff-start"));f.draw(u,{chartArea:{width:"95%",height:"75%",top:"20px",bottom:"20px"},titleTextStyle:{color:"#505050",fontSize:25},colors:["#8ed8f8","#00a3cc","#007cba"],pieSliceText:"none",legend:{position:"right",alignment:"center",textStyle:{color:"#505050",bold:!0,fontSize:14}},tooltip:{textStyle:{fontSize:14}}})}function e(){var n=i.data("slice-before"),t=i.data("slice-between"),r=i.data("slice-after"),u=google.visualization.arrayToDataTable([["Time","Participants"],["Before 3pm",n],["Between 3-4pm",t],["After 4pm",r]]),f=new google.visualization.PieChart(document.getElementById("piechart-staff-finish"));f.draw(u,{chartArea:{width:"95%",height:"75%",top:"20px",bottom:"20px"},titleTextStyle:{color:"#505050",fontSize:25},colors:["#8ed8f8","#00a3cc","#007cba"],pieSliceText:"none",legend:{position:"right",alignment:"center",textStyle:{color:"#505050",bold:!0,fontSize:14}},tooltip:{textStyle:{fontSize:14}}})}function s(n){var i=n.data("completed"),t=n.data("not-completed"),r,u;i==0&&t==0&&(t=1);r=google.visualization.arrayToDataTable([["Activities","Completed"],["Completed",i],["Not Completed",t]]);u=new google.visualization.PieChart(n[0]);u.draw(r,{chartArea:{width:"100%",height:"100%"},backgroundColor:"transparent",pieSliceBorderColor:"transparent",pieHole:.8,enableInteractivity:!1,colors:["#00a3cc","#e3dbbd"],pieSliceText:"none",legend:{position:"none"},tooltip:{trigger:"none"}})}var r=$(".piechart-graph.transport"),t=$(".piechart-graph.staff-start"),i=$(".piechart-graph.staff-finish"),u=$(".donut-chart"),h=[];(r.length>0||t.length>0||u.length>0)&&google.charts.load("current",{packages:["corechart"]});$(window).on("load",function(){r.length>0&&(n(r,o),$(window).resize(function(){n(r,o)}));t.length>0&&i.length>0&&(n(t,f),n(i,e),$(window).resize(function(){n(t,f);n(i,e)}));u.length>0&&(n(u,s),$(window).resize(function(){n(u,s)}))});window.drawCharts=function(){r=$(".piechart-graph.transport");t=$(".piechart-graph.staff-start");i=$(".piechart-graph.staff-finish");u=$(".donut-chart");(r.length>0||t.length>0||u.length>0)&&google.charts.load("current",{packages:["corechart"]});console.log("window.drawCharts");n(r,o);n(t,f);n(i,e);n(u,s)};$(".piechart .staff-toggle button").click(function(){$(this).parent().find("button").removeClass("selected");$(this).addClass("selected");var n=$(".piechart-graph.staff-start"),t=$(".piechart-graph.staff-finish");$(this).hasClass("btn-start")?(t.removeClass("show"),n.addClass("show"),f()):(n.removeClass("show"),t.addClass("show"),e())})}function lt(){if($("#dynamic-calendar-list-element").length>0){var i,e,o,r,u,f,s,h,c,l,n,t;(function(){var a=function(){r.parent().find("span").text(r.find("option:selected").text());u.parent().find("span").text(u.find("option:selected").text());f.parent().find("span").text(f.find("option:selected").text())};i=$("#grid-events-listing");e=$("#search-filter-text");o=$("#search-filter-text-submit");r=$("#events-filter-category");u=$("#events-filter-area");f=$("#events-filter-audience");s=$("#events-list-button");h=$("#events-calendar-button");c=$("#calendar-prev");l=$("#calendar-next");n={elem:$("#calendar-event-popup"),init:function(){this.hide();this.close.click(function(){n.hide()});this.popupBackground.click(function(){n.hide()})},show:function(){this.elem.addClass("visible")},hide:function(){this.elem.removeClass("visible")},title:$("#calendar-event-title"),time:$("#calendar-event-time"),location:$("#calendar-event-location"),description:$("#calendar-event-description"),link:$("#calendar-event-link"),close:$("#calendar-event-close"),popupBackground:$(".popup-background"),image:$("#calendar-event-image"),featured:$("#calendar-event-featured")};n.init();window.events.view=$("#dynamic-calendar-list-element").fullCalendar({firstDay:1,header:!1,allDaySlot:!1,minTime:"05:00:00",maxTime:"22:00:00",slotLabelFormat:"h:mma",timeFormat:"h:mma",columnFormat:"dddd",height:"auto",events:function(n,t,i,r){var u=window.events.rawEvents.map(function(n){return{title:n.Name,start:n.StartTime,end:n.EndTime,description:n.Description,location:n.Location.Label,link:n.Url,image:n.Image,featured:n.Featured}}),f=window.events.rawEvents.map(function(n){return n.Name});e.autocomplete("setOptions",{lookup:f});r(u)},defaultView:"listView",header:{left:"title",center:"",right:""},eventRender:function(n,t){if(n.categories){var i="",r=n.categories.split(",");r.forEach(function(n){i+=n.replace(/ /g,"-").toLowerCase()+" "});t.addClass(i)}},eventClick:function(t){n.title.text(t.title);n.time.text(t.start.format("D MMM YYYY, h:mm A"));n.location.text("TBA");n.description.text(t.description);n.link.attr("href",t.link);t.featured?n.featured.show():n.featured.hide();n.show()}});s.click(function(){i.addClass("list-view");i.removeClass("calendar-view");window.events.view.fullCalendar("changeView","listView");$("html").removeClass("calendar-view");$("html").addClass("list-view")});h.click(function(){i.addClass("calendar-view");i.removeClass("list-view");window.events.view.fullCalendar("changeView","month");$("html").removeClass("list-view");$("html").addClass("calendar-view")});c.click(function(){window.events.view.fullCalendar("prev")});l.click(function(){window.events.view.fullCalendar("next")});$(window).resize(function(){var n=$(window).innerWidth();n<768&&(window.events.view.fullCalendar("changeView","listView"),$("html").removeClass("calendar-view"),$("html").addClass("list-view"))});t=function(){a();var n={EventCategory:r.val(),EventArea:u.val(),Audience:f.val(),SearchText:e.val(),refresh:!0},t=$.extend({altTemplate:"JSON",alias:"eventListing"},n);$.getJSON(location.protocol+"//"+location.host+location.pathname,t,function(n){window.events.rawEvents=n.AllEvents;window.events.view.fullCalendar("refetchEvents")})};r.change(t);u.change(t);f.change(t);o.click(t);e.autocomplete({onSelect:t,lookup:[]});a();$("#events-list-button").click();t()})()}}function at(){var t=$(".page-activities"),n;t.length>0&&(n=window.location.hash,$(n).addClass("open"))}function vt(){$(document).ready(function(){$form=$("#create-activity");$form.length>0&&($switcher=$("#create-activity-switcher"),$cancelBtn=$(".js-create-activity-cancel"),$customBtn=$("#create-custom-activity-button"),$predefinedBtn=$("#create-predefined-activity-button"),$customForm=$("#create-custom-activity-form"),$predefinedForm=$("#create-predefined-activity-form"),$customForm.hide(),$predefinedForm.hide(),$customBtn.click(function(){$switcher.hide();$customForm.show();$predefinedForm.hide()}),$predefinedBtn.click(function(){$switcher.hide();$predefinedForm.show();$customForm.hide()}),$cancelBtn.click(function(){$switcher.show();$customForm.hide();$predefinedForm.hide()}))});$(".activity .btn-remove").click(function(){if($(this).data("remove-activity")){$(this).addClass("disabled");$(this).parent().parent().children("a").css("background-color","#efefef");$(this).text("Removing...");var n=$(this),t=$(this).parent().parent();$.ajax({type:"POST",url:window.location.href,data:{removeActivity:$(this).val()},success:function(){t.addClass("animate-remove")},error:function(){n.text("Error, try again later");setTimeout(function(){window.location.reload()},800)}})}else $(this).parent().parent().addClass("animate-remove")});$(".activity .activity-toggle").click(function(n){n.preventDefault();$(this).parent().toggleClass("open")}).find(".btn-remove").click(function(){return!1})}function yt(){$("#create-activity").validate({rules:{title:"required"},messages:{title:"Please enter a title"},errorElement:"span",errorClass:"field-validation-error",submitHandler:function(n){$(".submission-loader").removeClass("hide");var t=$(n).attr("action");(t===undefined||t==null)&&(t="");console.log("submission-loader submit");$.post(t,$(n).serialize(),function(){console.log("submission-loader post");window.location.reload()})}});$(".js-ajax-form").submit(function(n){n.preventDefault();var i=$(this),t=i.attr("action");(t===undefined||t==null)&&(t="");$(".submission-loader").removeClass("hide");console.log("js-ajax-form submit");$.post(t,$(n.target).serialize(),function(n,t,i){console.log("js-ajax-form post",n,t,i);var r=window.location.href;window.location.href=r+"#"+n.contentId}).fail(function(){}).always(function(){window.location.reload()})});$(".js-ajax-btn").click(function(){var t=$(this),n=t.attr("action"),r=t.attr("name"),u=t.attr("value"),i;(n===undefined||n==null)&&(n="");i={};i[r]=u;$.post(n,i,function(){window.location.reload()})})}function pt(){for(var n=0,u=[],r,i,f,t=0;t<48;t++)r=n.toString().length==1?"0"+n:n,r+=t%2==0||t==0?":00":":30",i=n<=12?n:n-12,i+=t%2==0||t==0?":00":":30",i+=n<12?" AM":" PM",f={value:r,label:i},u.push(f),n=t%2?n+1:n;return u}function wt(){$(".btn-add-activity").on("click",function(){$(this).attr("disabled","disabled");$(this).fadeOut();$(this).after("<p>Added activity<\/p>");$.get("/umbraco/api/activity/createactivity/?activityId="+$(this).data("activity-id"))})}function bt(){if($(".edit-survey-information").length){var n=$(".edit-survey-information");n.find(".value-container a").on("click",function(n){n.preventDefault();$(this).parents("td").find(".input-container").addClass("-isVisible")});n.find(".input-container input").on("input change",function(){$(this).parents("td").find(".value-container span").text($(this).val());$("#"+$(this).data("copy")).text($(this).val())});n.find(".input-container select").on("change",function(){$(this).parents("td").find(".value-container span").text($(this).find("option:selected").text());$("#"+$(this).data("copy")).text($(this).find("option:selected").text())});n.find(".input-container input").on("keypress",function(n){n.which==13&&$(this).parent().removeClass("-isVisible")});n.find(".input-container a").on("click",function(){$(this).parent().removeClass("-isVisible")})}}function kt(){if($("#c9864cf2-e8b1-4d5d-9087-9c4e7ef1e785").length>0){var n=$("#travel-survey-site").val();$("#c9864cf2-e8b1-4d5d-9087-9c4e7ef1e785").val(n);console.log("set site",n)}}function dt(){if($("input[name=FormId]").val()==="c5a58dfd-6e23-434c-9962-030d2872c51a"){var t,i,r,n;(function(){var f=function(n,t){var f="",u;for(f+="<div class='styled-select mode-select'><select name='"+n+"_"+r[t].toLowerCase()+"'>",u=0;u<i.length;u++)f+='<option value="'+i[u]+'">'+i[u]+"<\/option>";return f+"<\/select><\/div>"},e=function(t,i,u){var e="",f;for(e+="<div class='styled-select time-select'><select name='"+t+"_"+r[i].toLowerCase()+"'>",f=0;f<n.length;f++)e+="<option value='"+n[f].value+"'",n[f].label==u&&(e+="selected='selected'"),e+=">"+n[f].label+"<\/option>";return e+"<\/select><\/div>"},s=function(){monsterForm+="<div class='monsterform'>";for(var n=0;n<7;n++)monsterForm+="<div class='monsterrow'>",monsterForm+="<label>"+r[n]+"<\/label>",monsterForm+="<div class='monstersection transport'>",monsterForm+="<div class='heading-group'>",monsterForm+="<div class='main-heading'>Mode of transport<\/div>",monsterForm+="<div class='sub-heading'>to work<\/div>",monsterForm+="<div class='sub-heading'>from work<\/div>",monsterForm+="<\/div>",monsterForm+="<div class='input-group'>",monsterForm+=f("modeTransportToWork",n),monsterForm+=f("modeTransportFromWork",n),monsterForm+="<\/div>",monsterForm+="<\/div>",monsterForm+="<div class='monstersection time'>",monsterForm+="<div class='heading-group'>",monsterForm+="<div class='main-heading'>Time at work<\/div>",monsterForm+="<div class='sub-heading'>start time<\/div>",monsterForm+="<div class='sub-heading'>finish time<\/div>",monsterForm+="<\/div>",monsterForm+="<div class='input-group'>",monsterForm+=e("startTime",n,"8:30 AM"),monsterForm+=e("finishTime",n,"5:00 PM"),monsterForm+="<\/div>",monsterForm+="<\/div>",monsterForm+="<\/div>";monsterForm+="<\/div>";t.before(monsterForm).css({display:"none"});h(t.attr("id"))},h=function(n){var e=$("#"+n).val(),t,r,f;if(e.length!=0){if(t=JSON.parse($("#"+n).val()),r=[],t.status!="INVALID")if(t=t.response,(typeof t=="undefined"?"undefined":_typeof(t))==="object"){for(row in t){var i=t[row].day,s="modeTransportToWork_"+i.toLowerCase(),h="modeTransportFromWork_"+i.toLowerCase(),c="startTime_"+i.toLowerCase(),l="finishTime_"+i.toLowerCase();r[i]=[];r[i][s]=t[row].modeTransportToWork;r[i][h]=t[row].modeTransportFromWork;r[i][c]=t[row].startTime;r[i][l]=t[row].finishTime}$(".monsterrow").each(function(){var t=$(this),i=t.children("label").text(),n=r[i];for(data in n)typeof n[data]=="boolean"?t.find("input[type=checkbox]").prop("checked",n[data]):t.find("select[name="+data+"]").val(n[data])})}else o()}else f={status:"INVALID",response:"Initial state"},u(JSON.stringify(f))},u=function(n){var n;n=n||"";var t=$(".monsterform"),i=t.next("textarea"),r=[];n.length?i.val(n):(t.find(".monsterrow").each(function(n){var t={day:$(this).find("label").first().text()},i=$(this).find("select");i.each(function(n,i){var r=i.name.replace("_"+t.day.toLowerCase(),"");t[r]=i.value});r[n]=t}),n={status:"OK",response:r},i.val(JSON.stringify(n)))},o=function(n){n=n||!0;var i=$("#ceffcbf9-8ed8-4289-e373-2bfc4c9822c6"),t="";i.is(":checked")?($(".monsterform").addClass("disabled").find("select, input").prop("readonly",!0).attr("disabled",""),t={status:"OK",response:"Non-standard hours"}):n&&($(".monsterform").removeClass("disabled").find("select, input").prop("readonly",!1).removeAttr("disabled"),t={status:"INVALID",response:"Initial state"});u(JSON.stringify(t))};t=$("#238651c6-eaf1-4f53-eb06-a95f55e3ca7e");i=["I didn't work on this day","I worked from home on this day","Car as driver alone","Car with others (family, friend, taxi, Uber)","Public transport and walk/bike","Public transport and car as driver or passenger","Bike the whole way","Walk/run the whole way","Motorbike/scooter the whole way","I got to work another way"];r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];n=pt();monsterForm="";t.length!=0&&(s(),$(".monsterform input, .monsterform select").change(u));$(".monsterform input[type=checkbox]").change(function(){var n=$(this).parent();$(this).is(":checked")?n.prevAll("select").attr("disabled","").addClass("disabled"):n.prevAll("select").removeAttr("disabled").removeClass("disabled")});$("#ceffcbf9-8ed8-4289-e373-2bfc4c9822c6").change(function(){o()});$("#fa0b87c0-e1c3-4599-e53f-f73531aa9db1").change(function(){var n=$("#8355bd34-61e6-4f5c-997f-d31aef138167"),t=$("#fa0b87c0-e1c3-4599-e53f-f73531aa9db1");(n.val()===""||n.val()==='{"status":"INVALID","response":"Initial state"}')&&t.val()!==""&&n.val('{"status":"OK","response":"Initial state"}');t.val()===""&&n.val()==='{"status":"OK","response":"Initial state"}'&&n.val('{"status":"INVALID","response":"Initial state"}')})})()}}var gt=function(){d();g();nt();tt();it();dt();rt();et();ut();c();ot();st();ht();ct();lt();w();at();vt();yt();p();y();k();v();a();l();wt();s();o();e();f();b();u();bt();h();kt();r();i();t();n()},ni=[];return $(".fileupload input").each(function(){var n=$(this),r=n.parent().find(".label-text"),u="Upload document",t="",i;n.attr("ms-upload")!=""&&(fileName=n.attr("ms-upload"),fileName?$("#file-info").slideDown(200):$("#file-info").slideUp(200));i=n.parent().parent().find(".fieldLabel");n.on("change",function(n){this.files&&($("#Selectedfile")!=null&&($("#Selectedfile").html(""),$("#Selectedfile_delete").html("")),fileName=n.target.value.split("\\").pop(),fileName?$("#file-info").slideDown(200):$("#file-info").slideUp(200));t=fileName?fileName:u;r.html(t);i.html(t)})}),{init:gt}}();defer(function(){$(document).ready(function(){if($("#travel-survey-sites")){$("#travel-survey-sites").prependTo(".span12:first");$("#travel-survey-sites").show();$("select[name=sites]").on("change",function(){$("#7cc609d1-8628-4ff8-9301-58bee60154fa").val($(this).val());console.log("site",$(this).val())})}})});!function(n,t){"object"==(typeof exports=="undefined"?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function i(){return rh.apply(null,arguments)}function pc(n){rh=n}function ui(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function ou(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function wc(n){var t;for(t in n)return!1;return!0}function su(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function oo(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function a(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function fi(n,t){for(var i in t)a(t,i)&&(n[i]=t[i]);return a(t,"toString")&&(n.toString=t.toString),a(t,"valueOf")&&(n.valueOf=t.valueOf),n}function vt(n,t,i,r){return fs(n,t,i,r,!0).utc()}function bc(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function f(n){return null==n._pf&&(n._pf=bc()),n._pf}function sf(n){if(null==n._isValid){var t=f(n),r=uh.call(t.parsedDateParts,function(n){return null!=n}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function hu(n){var t=vt(NaN);return null!=n?fi(f(t),n):f(t).userInvalidated=!0,t}function k(n){return void 0===n}function hf(n,t){var u,i,r;if(k(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),k(t._i)||(n._i=t._i),k(t._f)||(n._f=t._f),k(t._l)||(n._l=t._l),k(t._strict)||(n._strict=t._strict),k(t._tzm)||(n._tzm=t._tzm),k(t._isUTC)||(n._isUTC=t._isUTC),k(t._offset)||(n._offset=t._offset),k(t._pf)||(n._pf=f(t)),k(t._locale)||(n._locale=t._locale),ce.length>0)for(u in ce)i=ce[u],r=t[i],k(r)||(n[i]=r);return n}function ar(n){hf(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);le===!1&&(le=!0,i.updateOffset(this),le=!1)}function ei(n){return n instanceof ar||null!=n&&null!=n._isAMomentObject}function d(n){return 0>n?Math.ceil(n)||0:Math.floor(n)}function e(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=d(t)),i}function so(n,t,i){for(var f=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;f>r;r++)(i&&n[r]!==t[r]||!i&&e(n[r])!==e(t[r]))&&u++;return u+o}function ho(n){i.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,t){var r=!0;return fi(function(){var u,e,f,o;if(null!=i.deprecationHandler&&i.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="","object"==_typeof(arguments[f])){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}ho(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return t.apply(this,arguments)},t)}function cf(n,t){null!=i.deprecationHandler&&i.deprecationHandler(n,t);ph[n]||(ho(t),ph[n]=!0)}function yt(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function kc(n){var t,i;for(i in n)t=n[i],yt(t)?this[i]=t:this["_"+i]=t;this._config=n;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function co(n,t){var i,r=fi({},n);for(i in t)a(t,i)&&(ou(n[i])&&ou(t[i])?(r[i]={},fi(r[i],n[i]),fi(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)a(n,i)&&!a(t,i)&&ou(n[i])&&(r[i]=fi({},r[i]));return r}function lf(n){null!=n&&this.set(n)}function dc(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return yt(r)?r.call(t,i):r}function gc(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function nl(){return this._invalidDate}function tl(n){return this._ordinal.replace("%d",n)}function il(n,t,i,r){var u=this._relativeTime[i];return yt(u)?u(n,t,i,r):u.replace(/%d/i,n)}function rl(n,t){var i=this._relativeTime[n>0?"future":"past"];return yt(i)?i(t):i.replace(/%s/i,t)}function w(n,t){var i=n.toLowerCase();fu[i]=fu[i+"s"]=fu[t]=n}function nt(n){if("string"==typeof n)return fu[n]||fu[n.toLowerCase()]}function af(n){var i,t,r={};for(t in n)a(n,t)&&(i=nt(t),i&&(r[i]=n[t]));return r}function b(n,t){wh[n]=t}function ul(n){var t=[],i;for(i in n)t.push({unit:i,priority:wh[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function rr(n,t){return function(r){return null!=r?(lo(this,n,r),i.updateOffset(this,t),this):cu(this,n)}}function cu(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function lo(n,t,i){n.isValid()&&n._d["set"+(n._isUTC?"UTC":"")+t](i)}function fl(n){return n=nt(n),yt(this[n])?this[n]():this}function el(n,t){if("object"==(typeof n=="undefined"?"undefined":_typeof(n))){n=af(n);for(var r=ul(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit])}else if(n=nt(n),yt(this[n]))return this[n](t);return this}function kt(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function u(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(lr[n]=u);t&&(lr[t[0]]=function(){return kt(u.apply(this,arguments),t[1],t[2])});i&&(lr[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ol(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function sl(n){for(var t=n.match(bh),i=0,r=t.length;r>i;i++)t[i]=lr[t[i]]?lr[t[i]]:ol(t[i]);return function(i){for(var f="",u=0;r>u;u++)f+=t[u]instanceof Function?t[u].call(i,n):t[u];return f}}function vf(n,t){return n.isValid()?(t=ao(t,n.localeData()),ae[t]=ae[t]||sl(t),ae[t](n)):n.localeData().invalidDate()}function ao(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(du.lastIndex=0;i>=0&&du.test(n);)n=n.replace(du,r),du.lastIndex=0,i-=1;return n}function r(n,t,i){pe[n]=yt(t)?t:function(n){return n&&i?i:t}}function hl(n,t){return a(pe,n)?pe[n](t._strict,t._locale):new RegExp(cl(n))}function cl(n){return wi(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function wi(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),"number"==typeof t&&(r=function(n,i){i[t]=e(n)}),i=0;i<n.length;i++)we[n[i]]=r}function vr(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function ll(n,t,i){null!=t&&a(we,n)&&we[n](t,i._a,i,n)}function yf(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function al(n,t){return n?ui(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ic).test(t)?"format":"standalone"][n.month()]:this._months}function vl(n,t){return n?ui(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ic.test(t)?"format":"standalone"][n.month()]:this._monthsShort}function yl(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;12>u;++u)e=vt([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?"MMM"===t?(r=y.call(this._shortMonthsParse,f),-1!==r?r:null):(r=y.call(this._longMonthsParse,f),-1!==r?r:null):"MMM"===t?(r=y.call(this._shortMonthsParse,f),-1!==r?r:(r=y.call(this._longMonthsParse,f),-1!==r?r:null)):(r=y.call(this._longMonthsParse,f),-1!==r?r:(r=y.call(this._shortMonthsParse,f),-1!==r?r:null))}function pl(n,t,i){var r,u,f;if(this._monthsParseExact)return yl.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++)if((u=vt([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function vo(n,t){var i;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=e(t);else if(t=n.localeData().monthsParse(t),"number"!=typeof t)return n;return i=Math.min(n.date(),yf(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function yo(n){return null!=n?(vo(this,n),i.updateOffset(this,!0),this):cu(this,"Month")}function wl(){return yf(this.year(),this.month())}function bl(n){return this._monthsParseExact?(a(this,"_monthsRegex")||po.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=db),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function kl(n){return this._monthsParseExact?(a(this,"_monthsRegex")||po.call(this),n?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=gb),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function po(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;12>n;n++)i=vt([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;12>n;n++)r[n]=wi(r[n]),u[n]=wi(u[n]);for(n=0;24>n;n++)t[n]=wi(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function yr(n){return wo(n)?366:365}function wo(n){return n%4==0&&n%100!=0||n%400==0}function dl(){return wo(this.year())}function gl(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 100>n&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function lu(n){var t=new Date(Date.UTC.apply(null,arguments));return 100>n&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function au(n,t,i){var r=7+t-i,u=(7+lu(n,0,r).getUTCDay()-t)%7;return-u+r-1}function bo(n,t,i,r,u){var f,o,s=(7+i-r)%7,h=au(n,r,u),e=1+7*(t-1)+s+h;return 0>=e?(f=n-1,o=yr(f)+e):e>yr(n)?(f=n+1,o=e-yr(n)):(f=n,o=e),{year:f,dayOfYear:o}}function pr(n,t,i){var f,r,e=au(n.year(),t,i),u=Math.floor((n.dayOfYear()-e-1)/7)+1;return 1>u?(r=n.year()-1,f=u+bi(r,t,i)):u>bi(n.year(),t,i)?(f=u-bi(n.year(),t,i),r=n.year()+1):(r=n.year(),f=u),{week:f,year:r}}function bi(n,t,i){var r=au(n,t,i),u=au(n+1,t,i);return(yr(n)-r+u)/7}function na(n){return pr(n,this._week.dow,this._week.doy).week}function ta(){return this._week.dow}function ia(){return this._week.doy}function ra(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function ua(n){var t=pr(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function fa(n,t){return"string"!=typeof n?n:isNaN(n)?(n=t.weekdaysParse(n),"number"==typeof n?n:null):parseInt(n,10)}function ea(n,t){return"string"==typeof n?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function oa(n,t){return n?ui(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:this._weekdays}function sa(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort}function ha(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin}function ca(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;7>f;++f)e=vt([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?"dddd"===t?(r=y.call(this._weekdaysParse,u),-1!==r?r:null):"ddd"===t?(r=y.call(this._shortWeekdaysParse,u),-1!==r?r:null):(r=y.call(this._minWeekdaysParse,u),-1!==r?r:null):"dddd"===t?(r=y.call(this._weekdaysParse,u),-1!==r?r:(r=y.call(this._shortWeekdaysParse,u),-1!==r?r:(r=y.call(this._minWeekdaysParse,u),-1!==r?r:null))):"ddd"===t?(r=y.call(this._shortWeekdaysParse,u),-1!==r?r:(r=y.call(this._weekdaysParse,u),-1!==r?r:(r=y.call(this._minWeekdaysParse,u),-1!==r?r:null))):(r=y.call(this._minWeekdaysParse,u),-1!==r?r:(r=y.call(this._weekdaysParse,u),-1!==r?r:(r=y.call(this._shortWeekdaysParse,u),-1!==r?r:null)))}function la(n,t,i){var r,u,f;if(this._weekdaysParseExact)return ca.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;7>r;r++)if((u=vt([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function aa(n){if(!this.isValid())return null!=n?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=fa(n,this.localeData()),this.add(n-t,"d")):t}function va(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function ya(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var t=ea(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function pa(n){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||pf.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=rk),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function wa(n){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||pf.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=uk),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ba(n){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||pf.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fk),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function pf(){function u(n,t){return t.length-n.length}for(var f,e,o,s,h=[],i=[],r=[],t=[],n=0;7>n;n++)f=vt([2e3,1]).day(n),e=this.weekdaysMin(f,""),o=this.weekdaysShort(f,""),s=this.weekdays(f,""),h.push(e),i.push(o),r.push(s),t.push(e),t.push(o),t.push(s);for(h.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;7>n;n++)i[n]=wi(i[n]),r[n]=wi(r[n]),t[n]=wi(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function wf(){return this.hours()%12||12}function ka(){return this.hours()||24}function ko(n,t){u(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function go(n,t){return t._meridiemParse}function da(n){return"p"===(n+"").toLowerCase().charAt(0)}function ga(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function ns(n){return n?n.toLowerCase().replace("_","-"):n}function nv(n){for(var i,t,f,r,u=0;u<n.length;){for(r=ns(n[u]).split("-"),i=r.length,t=ns(n[u+1]),t=t?t.split("-"):null;i>0;){if(f=ts(r.slice(0,i).join("-")))return f;if(t&&t.length>=i&&so(r,t,!0)>=i-1)break;i--}u++}return null}function ts(n){var t=null;if(!v[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=ff._abbr;require("./locale/"+n);ur(t)}catch(i){}return v[n]}function ur(n,t){var i;return n&&(i=k(t)?oi(n):is(n,t),i&&(ff=i)),ff._abbr}function is(n,t){if(null!==t){var i=rc;return t.abbr=n,null!=v[n]?(cf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=v[n]._config):null!=t.parentLocale&&(null!=v[t.parentLocale]?i=v[t.parentLocale]._config:cf("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),v[n]=new lf(co(i,t)),ur(n),v[n]}return delete v[n],null}function tv(n,t){if(null!=t){var i,r=rc;null!=v[n]&&(r=v[n]._config);t=co(r,t);i=new lf(t);i.parentLocale=v[n];v[n]=i;ur(n)}else null!=v[n]&&(null!=v[n].parentLocale?v[n]=v[n].parentLocale:null!=v[n]&&delete v[n]);return v[n]}function oi(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ff;if(!ui(n)){if(t=ts(n))return t;n=[n]}return nv(n)}function iv(){return fh(v)}function bf(n){var i,t=n._a;return t&&-2===f(n).overflow&&(i=t[dt]<0||t[dt]>11?dt:t[bt]<1||t[bt]>yf(t[ht],t[dt])?bt:t[p]<0||t[p]>24||24===t[p]&&(0!==t[ct]||0!==t[gt]||0!==t[ir])?p:t[ct]<0||t[ct]>59?ct:t[gt]<0||t[gt]>59?gt:t[ir]<0||t[ir]>999?ir:-1,f(n)._overflowDayOfYear&&(ht>i||i>bt)&&(i=bt),f(n)._overflowWeeks&&-1===i&&(i=pb),f(n)._overflowWeekday&&-1===i&&(i=wb),f(n).overflow=i),n}function rs(n){var t,r,o,e,u,s,h=n._i,i=ok.exec(h)||sk.exec(h);if(i){for(f(n).iso=!0,t=0,r=ef.length;r>t;t++)if(ef[t][1].exec(i[1])){e=ef[t][0];o=ef[t][2]!==!1;break}if(null==e)return void(n._isValid=!1);if(i[3]){for(t=0,r=be.length;r>t;t++)if(be[t][1].exec(i[3])){u=(i[2]||" ")+be[t][0];break}if(null==u)return void(n._isValid=!1)}if(!o&&null!=u)return void(n._isValid=!1);if(i[4]){if(!hk.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=e+(u||"")+(s||"");df(n)}else n._isValid=!1}function rv(n){var t=ck.exec(n._i);return null!==t?void(n._d=new Date(+t[1])):(rs(n),void(n._isValid===!1&&(delete n._isValid,i.createFromInputFallback(n))))}function fr(n,t,i){return null!=n?n:null!=t?t:i}function uv(n){var t=new Date(i.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function kf(n){var t,i,r,u,e=[];if(!n._d){for(r=uv(n),n._w&&null==n._a[bt]&&null==n._a[dt]&&fv(n),n._dayOfYear&&(u=fr(n._a[ht],r[ht]),n._dayOfYear>yr(u)&&(f(n)._overflowDayOfYear=!0),i=lu(u,0,n._dayOfYear),n._a[dt]=i.getUTCMonth(),n._a[bt]=i.getUTCDate()),t=0;3>t&&null==n._a[t];++t)n._a[t]=e[t]=r[t];for(;7>t;t++)n._a[t]=e[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[p]&&0===n._a[ct]&&0===n._a[gt]&&0===n._a[ir]&&(n._nextDay=!0,n._a[p]=0);n._d=(n._useUTC?lu:gl).apply(null,e);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[p]=24)}}function fv(n){var t,o,u,i,r,e,h,s;t=n._w;null!=t.GG||null!=t.W||null!=t.E?(r=1,e=4,o=fr(t.GG,n._a[ht],pr(c(),1,4).year),u=fr(t.W,1),i=fr(t.E,1),(1>i||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,o=fr(t.gg,n._a[ht],pr(c(),r,e).year),u=fr(t.w,1),null!=t.d?(i=t.d,(0>i||i>6)&&(s=!0)):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);1>u||u>bi(o,r,e)?f(n)._overflowWeeks=!0:null!=s?f(n)._overflowWeekday=!0:(h=bo(o,u,i,r,e),n._a[ht]=h.year,n._dayOfYear=h.dayOfYear)}function df(n){if(n._f===i.ISO_8601)return void rs(n);n._a=[];f(n).empty=!0;for(var t,u,e,r=""+n._i,c=r.length,s=0,h=ao(n._f,n._locale).match(bh)||[],o=0;o<h.length;o++)u=h[o],t=(r.match(hl(u,n))||[])[0],t&&(e=r.substr(0,r.indexOf(t)),e.length>0&&f(n).unusedInput.push(e),r=r.slice(r.indexOf(t)+t.length),s+=t.length),lr[u]?(t?f(n).empty=!1:f(n).unusedTokens.push(u),ll(u,t,n)):n._strict&&!t&&f(n).unusedTokens.push(u);f(n).charsLeftOver=c-s;r.length>0&&f(n).unusedInput.push(r);n._a[p]<=12&&f(n).bigHour===!0&&n._a[p]>0&&(f(n).bigHour=void 0);f(n).parsedDateParts=n._a.slice(0);f(n).meridiem=n._meridiem;n._a[p]=ev(n._locale,n._a[p],n._meridiem);kf(n);bf(n)}function ev(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?(r=n.isPM(i),r&&12>t&&(t+=12),r||12!==t||(t=0),t):t}function ov(n){var t,e,u,r,i;if(0===n._f.length)return f(n).invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=hf({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],df(t),sf(t)&&(i+=f(t).charsLeftOver,i+=10*f(t).unusedTokens.length,f(t).score=i,(null==u||u>i)&&(u=i,e=t));fi(n,e||t)}function sv(n){if(!n._d){var t=af(n._i);n._a=oo([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});kf(n)}}function hv(n){var t=new ar(bf(us(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function us(n){var t=n._i,i=n._f;return n._locale=n._locale||oi(n._l),null===t||void 0===i&&""===t?hu({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),ei(t)?new ar(bf(t)):(ui(i)?ov(n):su(t)?n._d=t:i?df(n):cv(n),sf(n)||(n._d=null),n))}function cv(n){var t=n._i;void 0===t?n._d=new Date(i.now()):su(t)?n._d=new Date(t.valueOf()):"string"==typeof t?rv(n):ui(t)?(n._a=oo(t.slice(0),function(n){return parseInt(n,10)}),kf(n)):"object"==(typeof t=="undefined"?"undefined":_typeof(t))?sv(n):"number"==typeof t?n._d=new Date(t):i.createFromInputFallback(n)}function fs(n,t,i,r,u){var f={};return"boolean"==typeof i&&(r=i,i=void 0),(ou(n)&&wc(n)||ui(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,hv(f)}function c(n,t,i,r){return fs(n,t,i,r,!1)}function es(n,t){var r,i;if(1===t.length&&ui(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function lv(){var n=[].slice.call(arguments,0);return es("isBefore",n)}function av(){var n=[].slice.call(arguments,0);return es("isAfter",n)}function vu(n){var t=af(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*h+6e4*s+36e5*o;this._days=+e+7*f;this._months=+u+3*r+12*i;this._data={};this._locale=oi();this._bubble()}function gf(n){return n instanceof vu}function ne(n){return 0>n?-1*Math.round(-1*n):Math.round(n)}function os(n,t){u(n,0,0,function(){var n=this.utcOffset(),i="+";return 0>n&&(n=-n,i="-"),i+kt(~~(n/60),2)+t+kt(~~n%60,2)})}function yu(n,t){var r=(t||"").match(n)||[],f=r[r.length-1]||[],i=(f+"").match(oh)||["-",0,0],u=+(60*i[1])+e(i[2]);return"+"===i[0]?u:-u}function te(n,t){var r,u;return t._isUTC?(r=t.clone(),u=(ei(n)||su(n)?n.valueOf():c(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),i.updateOffset(r,!1),r):c(n).local()}function ie(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function vv(n,t){var r,u=this._offset||0;return this.isValid()?null!=n?("string"==typeof n?n=yu(uf,n):Math.abs(n)<16&&(n=60*n),!this._isUTC&&t&&(r=ie(this)),this._offset=n,this._isUTC=!0,null!=r&&this.add(r,"m"),u!==n&&(!t||this._changeInProgress?ls(this,si(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?u:ie(this):null!=n?this:NaN}function yv(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function pv(n){return this.utcOffset(0,n)}function wv(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(ie(this),"m")),this}function bv(){if(this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var n=yu(tc,this._i);0===n?this.utcOffset(0,!0):this.utcOffset(yu(tc,this._i))}return this}function kv(n){return this.isValid()?(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function dv(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function gv(){var n,t;return k(this._isDSTShifted)?(n={},(hf(n,this),n=us(n),n._a)?(t=n._isUTC?vt(n._a):c(n._a),this._isDSTShifted=this.isValid()&&so(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function ny(){return this.isValid()?!this._isUTC:!1}function ty(){return this.isValid()?this._isUTC:!1}function ss(){return this.isValid()?this._isUTC&&0===this._offset:!1}function si(n,t){var u,f,o,i=n,r=null;return gf(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:"number"==typeof n?(i={},t?i[t]=n:i.milliseconds=n):(r=sh.exec(n))?(u="-"===r[1]?-1:1,i={y:0,d:e(r[bt])*u,h:e(r[p])*u,m:e(r[ct])*u,s:e(r[gt])*u,ms:e(ne(1e3*r[ir]))*u}):(r=hh.exec(n))?(u="-"===r[1]?-1:1,i={y:ki(r[2],u),M:ki(r[3],u),w:ki(r[4],u),d:ki(r[5],u),h:ki(r[6],u),m:ki(r[7],u),s:ki(r[8],u)}):null==i?i={}:"object"==(typeof i=="undefined"?"undefined":_typeof(i))&&("from"in i||"to"in i)&&(o=iy(c(i.from),c(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),f=new vu(i),gf(n)&&a(n,"_locale")&&(f._locale=n._locale),f}function ki(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function hs(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function iy(n,t){var i;return n.isValid()&&t.isValid()?(t=te(t,n),n.isBefore(t)?i=hs(n,t):(i=hs(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function cs(n,t){return function(i,r){var u,f;return null===r||isNaN(+r)||(cf(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i="string"==typeof i?+i:i,u=si(i,r),ls(this,u,n),this}}function ls(n,t,r,u){var o=t._milliseconds,f=ne(t._days),e=ne(t._months);n.isValid()&&(u=null==u?!0:u,o&&n._d.setTime(n._d.valueOf()+o*r),f&&lo(n,"Date",cu(n,"Date")+f*r),e&&vo(n,cu(n,"Month")+e*r),u&&i.updateOffset(n,f||e))}function ry(n,t){var i=n.diff(t,"days",!0);return-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse"}function uy(n,t){var u=n||c(),f=te(u,this).startOf("day"),r=i.calendarFormat(this,f)||"sameElse",e=t&&(yt(t[r])?t[r].call(this,u):t[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))}function fy(){return new ar(this)}function ey(n,t){var i=ei(n)?n:c(n);return this.isValid()&&i.isValid()?(t=nt(k(t)?"millisecond":t),"millisecond"===t?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function oy(n,t){var i=ei(n)?n:c(n);return this.isValid()&&i.isValid()?(t=nt(k(t)?"millisecond":t),"millisecond"===t?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function sy(n,t,i,r){return r=r||"()",("("===r[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))}function hy(n,t){var i,r=ei(n)?n:c(n);return this.isValid()&&r.isValid()?(t=nt(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function cy(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function ly(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function ay(n,t,i){var f,e,r,u;return this.isValid()?(f=te(n,this),f.isValid()?(e=6e4*(f.utcOffset()-this.utcOffset()),t=nt(t),"year"===t||"month"===t||"quarter"===t?(u=vy(this,f),"quarter"===t?u/=3:"year"===t&&(u/=12)):(r=this-f,u="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-e)/864e5:"week"===t?(r-e)/6048e5:r),i?u:d(u)):NaN):NaN}function vy(n,t){var r,f,u=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(u,"months");return 0>t-i?(r=n.clone().add(u-1,"months"),f=(t-i)/(i-r)):(r=n.clone().add(u+1,"months"),f=(t-i)/(r-i)),-(u+f)||0}function yy(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function py(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?yt(Date.prototype.toISOString)?this.toDate().toISOString():vf(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):vf(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function wy(n){n||(n=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=vf(this,n);return this.localeData().postformat(t)}function by(n,t){return this.isValid()&&(ei(n)&&n.isValid()||c(n).isValid())?si({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ky(n){return this.from(c(),n)}function dy(n,t){return this.isValid()&&(ei(n)&&n.isValid()||c(n).isValid())?si({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gy(n){return this.to(c(),n)}function as(n){var t;return void 0===n?this._locale._abbr:(t=oi(n),null!=t&&(this._locale=t),this)}function vs(){return this._locale}function np(n){switch(n=nt(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this}function tp(n){return n=nt(n),void 0===n||"millisecond"===n?this:("date"===n&&(n="day"),this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms"))}function ip(){return this._d.valueOf()-6e4*(this._offset||0)}function rp(){return Math.floor(this.valueOf()/1e3)}function up(){return new Date(this.valueOf())}function fp(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function ep(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function op(){return this.isValid()?this.toISOString():null}function sp(){return sf(this)}function hp(){return fi({},f(this))}function cp(){return f(this).overflow}function lp(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function pu(n,t){u(0,[n,n.length],0,t)}function ap(n){return ys.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function vp(n){return ys.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function yp(){return bi(this.year(),1,4)}function pp(){var n=this.localeData()._week;return bi(this.year(),n.dow,n.doy)}function ys(n,t,i,r,u){var f;return null==n?pr(this,r,u).year:(f=bi(n,r,u),t>f&&(t=f),wp.call(this,n,t,i,r,u))}function wp(n,t,i,r,u){var e=bo(n,t,i,r,u),f=lu(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function bp(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)}function kp(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")}function dp(n,t){t[ir]=e(1e3*("0."+n))}function gp(){return this._isUTC?"UTC":""}function nw(){return this._isUTC?"Coordinated Universal Time":""}function tw(n){return c(1e3*n)}function iw(){return c.apply(null,arguments).parseZone()}function ps(n){return n}function wu(n,t,i,r){var u=oi(),f=vt().set(r,t);return u[i](f,n)}function ws(n,t,i){if("number"==typeof n&&(t=n,n=void 0),n=n||"",null!=t)return wu(n,t,i,"month");for(var u=[],r=0;12>r;r++)u[r]=wu(n,r,i,"month");return u}function re(n,t,i,r){var o,f,u,e;if("boolean"==typeof n?("number"==typeof t&&(i=t,t=void 0),t=t||""):(t=n,i=t,n=!1,"number"==typeof t&&(i=t,t=void 0),t=t||""),o=oi(),f=n?o._week.dow:0,null!=i)return wu(t,(i+f)%7,r,"day");for(e=[],u=0;7>u;u++)e[u]=wu(t,(u+f)%7,r,"day");return e}function rw(n,t){return ws(n,t,"months")}function uw(n,t){return ws(n,t,"monthsShort")}function fw(n,t,i){return re(n,t,i,"weekdays")}function ew(n,t,i){return re(n,t,i,"weekdaysShort")}function ow(n,t,i){return re(n,t,i,"weekdaysMin")}function sw(){var n=this._data;return this._milliseconds=ni(this._milliseconds),this._days=ni(this._days),this._months=ni(this._months),n.milliseconds=ni(n.milliseconds),n.seconds=ni(n.seconds),n.minutes=ni(n.minutes),n.hours=ni(n.hours),n.months=ni(n.months),n.years=ni(n.years),this}function bs(n,t,i,r){var u=si(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function hw(n,t){return bs(this,n,t,1)}function cw(n,t){return bs(this,n,t,-1)}function ks(n){return 0>n?Math.floor(n):Math.ceil(n)}function lw(){var u,f,e,s,o,r=this._milliseconds,n=this._days,t=this._months,i=this._data;return r>=0&&n>=0&&t>=0||0>=r&&0>=n&&0>=t||(r+=864e5*ks(ue(t)+n),n=0,t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=d(e/24),o=d(ds(n)),t+=o,n-=ks(ue(o)),s=d(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function ds(n){return 4800*n/146097}function ue(n){return 146097*n/4800}function aw(n){var t,r,i=this._milliseconds;if(n=nt(n),"month"===n||"year"===n)return t=this._days+i/864e5,r=this._months+ds(t),"month"===n?r:r/12;switch(t=this._days+Math.round(ue(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}}function vw(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*e(this._months/12)}function hi(n){return function(){return this.as(n)}}function yw(n){return n=nt(n),this[n+"s"]()}function di(n){return function(){return this._data[n]}}function pw(){return d(this.days()/7)}function ww(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function bw(n,t,i){var r=si(n).abs(),h=yi(r.as("s")),f=yi(r.as("m")),e=yi(r.as("h")),o=yi(r.as("d")),s=yi(r.as("M")),c=yi(r.as("y")),u=h<pi.s&&["s",h]||1>=f&&["m"]||f<pi.m&&["mm",f]||1>=e&&["h"]||e<pi.h&&["hh",e]||1>=o&&["d"]||o<pi.d&&["dd",o]||1>=s&&["M"]||s<pi.M&&["MM",s]||1>=c&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,ww.apply(null,u)}function kw(n){return void 0===n?yi:"function"==typeof n?(yi=n,!0):!1}function dw(n,t){return void 0===pi[n]?!1:void 0===t?pi[n]:(pi[n]=t,!0)}function gw(n){var t=this.localeData(),i=bw(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function bu(){var n,e,o,t=ke(this._milliseconds)/1e3,a=ke(this._days),i=ke(this._months);n=d(t/60);e=d(n/60);t%=60;n%=60;o=d(i/12);i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(0>l?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}function nb(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function gi(n,t,i){var r={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":n+" "+nb(r[i],+n)}function fe(n,t,i){return n+" "+ib({mm:"munutenn",MM:"miz",dd:"devezh"}[i],n)}function tb(n){switch(gs(n)){case 1:case 3:case 4:case 5:case 9:return n+" bloaz";default:return n+" vloaz"}}function gs(n){return n>9?gs(n%10):n}function ib(n,t){return 2===t?rb(n):n}function rb(n){var t={m:"v",b:"v",d:"z"};return void 0===t[n.charAt(0)]?n:t[n.charAt(0)]+n.substring(1)}function nr(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function wr(n){return n>1&&5>n&&1!=~~(n/10)}function it(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekund":"pár sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?u+(wr(n)?"minuty":"minut"):u+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(wr(n)?"hodiny":"hodin"):u+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?u+(wr(n)?"dny":"dní"):u+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?u+(wr(n)?"měsíce":"měsíců"):u+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?u+(wr(n)?"roky":"let"):u+"lety"}}function ci(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function li(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function pt(n,t,i,r){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[n+" minuti",n+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[n+" tunni",n+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[n+" kuu",n+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[n+" aasta",n+" aastat"]};return t?u[i][2]?u[i][2]:u[i][1]:r?u[i][0]:u[i][1]}function rt(n,t,i,r){var u="";switch(i){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":u=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":u=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":u=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":u=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":u=r?"vuoden":"vuotta"}return ub(n,r)+" "+u}function ub(n,t){return 10>n?t?ug[n]:of[n]:n}function tr(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function ut(n,t,i,r){var u=n;switch(i){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return u+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return u+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return u+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return u+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return u+(r||t?" év":" éve")}return""}function nh(n){return(n?"":"[múlt] ")+"["+cg[this.day()]+"] LT[-kor]"}function br(n){return n%100==11?!0:n%10!=1}function wt(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return t?"mínúta":"mínútu";case"mm":return br(n)?u+(t||r?"mínútur":"mínútum"):t?u+"mínúta":u+"mínútu";case"hh":return br(n)?u+(t||r?"klukkustundir":"klukkustundum"):u+"klukkustund";case"d":return t?"dagur":r?"dag":"degi";case"dd":return br(n)?t?u+"dagar":u+(r?"daga":"dögum"):t?u+"dagur":u+(r?"dag":"degi");case"M":return t?"mánuður":r?"mánuð":"mánuði";case"MM":return br(n)?t?u+"mánuðir":u+(r?"mánuði":"mánuðum"):t?u+"mánuður":u+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":return br(n)?u+(t||r?"ár":"árum"):u+(t||r?"ár":"ári")}}function kr(n,t,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function fb(n){var t=n.substr(0,n.indexOf(" "));return dr(t)?"a "+n:"an "+n}function eb(n){var t=n.substr(0,n.indexOf(" "));return dr(t)?"viru "+n:"virun "+n}function dr(n){if(n=parseInt(n,10),isNaN(n))return!1;if(0>n)return!0;if(10>n)return n>=4&&7>=n;if(100>n){var t=n%10,i=n/10;return dr(0===t?i:t)}if(1e4>n){for(;n>=10;)n/=10;return dr(n)}return n/=1e3,dr(n)}function ob(n,t,i,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function er(n,t,i,r){return t?ai(i)[0]:r?ai(i)[1]:ai(i)[2]}function th(n){return n%10==0||n>10&&20>n}function ai(n){return lg[n].split("_")}function gr(n,t,i,r){var u=n+" ";return 1===n?u+er(n,t,i[0],r):t?u+(th(n)?ai(i)[1]:ai(i)[0]):r?u+ai(i)[1]:u+(th(n)?ai(i)[1]:ai(i)[2])}function ih(n,t,i){return i?t%10==1&&t%100!=11?n[2]:n[3]:t%10==1&&t%100!=11?n[0]:n[1]}function nu(n,t,i){return n+" "+ih(cc[i],n,t)}function tu(n,t,i){return ih(cc[i],n,t)}function sb(n,t){return t?"dažas sekundes":"dažām sekundēm"}function ft(n,t,i){var r="";if(t)switch(i){case"s":r="काही सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(i){case"s":r="काही सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,n)}function ku(n){return 5>n%10&&n%10>1&&~~(n/10)%10!=1}function or(n,t,i){var r=n+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return r+(ku(n)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(ku(n)?"godziny":"godzin");case"MM":return r+(ku(n)?"miesiące":"miesięcy");case"yy":return r+(ku(n)?"lata":"lat")}}function iu(n,t,i){var r=" ";return(n%100>=20||n>=100&&n%100==0)&&(r=" de "),n+r+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}function hb(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function sr(n,t,i){var r={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?t?"минута":"минуту":n+" "+hb(r[i],+n)}function ru(n){return n>1&&5>n}function et(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?u+(ru(n)?"minúty":"minút"):u+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(ru(n)?"hodiny":"hodín"):u+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?u+(ru(n)?"dni":"dní"):u+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?u+(ru(n)?"mesiace":"mesiacov"):u+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?u+(ru(n)?"roky":"rokov"):u+"rokmi"}}function ot(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return u+(1===n?t?"minuta":"minuto":2===n?t||r?"minuti":"minutama":5>n?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return u+(1===n?t?"ura":"uro":2===n?t||r?"uri":"urama":5>n?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return u+(1===n?t||r?"dan":"dnem":2===n?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return u+(1===n?t||r?"mesec":"mesecem":2===n?t||r?"meseca":"mesecema":5>n?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return u+(1===n?t||r?"leto":"letom":2===n?t||r?"leti":"letoma":5>n?t||r?"leta":"leti":t||r?"let":"leti")}}function cb(n){var t=n;return-1!==n.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==n.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==n.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function lb(n){var t=n;return-1!==n.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==n.indexOf("jar")?t.slice(0,-3)+"wen":-1!==n.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function uu(n,t,i){var r=ab(n);switch(i){case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function ab(n){var i=Math.floor(n%1e3/100),r=Math.floor(n%100/10),u=n%10,t="";return i>0&&(t+=fo[i]+"vatlh"),r>0&&(t+=(""!==t?" ":"")+fo[r]+"maH"),u>0&&(t+=(""!==t?" ":"")+fo[u]),""===t?"pagh":t}function st(n,t,i,r){var u={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[n+" míuts",""+n+" míuts"],h:["'n þora","'iensa þora"],hh:[n+" þoras",""+n+" þoras"],d:["'n ziua","'iensa ziua"],dd:[n+" ziuas",""+n+" ziuas"],M:["'n mes","'iens mes"],MM:[n+" mesen",""+n+" mesen"],y:["'n ar","'iens ar"],yy:[n+" ars",""+n+" ars"]};return r?u[i][0]:t?u[i][0]:u[i][1]}function vb(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function hr(n,t,i){var r={mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":n+" "+vb(r[i],+n)}function yb(n,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[r][n.day()]}function cr(n){return function(){return n+"о"+(11===this.hours()?"б":"")+"] LT"}}var rh,uh,fh,ee,eh,oh,sh,hh,ch,lh,oe,se,ah,vh,vi,yh,t,he,s;uh=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;r>t;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};var ce=i.momentProperties=[],le=!1,ph={};i.suppressDeprecationWarnings=!1;i.deprecationHandler=null;fh=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)a(n,t)&&i.push(t);return i};var y,fu={},wh={},bh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,du=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ae={},lr={},kh=/\d/,tt=/\d\d/,dh=/\d{3}/,ve=/\d{4}/,gu=/[+-]?\d{6}/,l=/\d\d?/,gh=/\d\d\d\d?/,nc=/\d\d\d\d\d\d?/,nf=/\d{1,3}/,ye=/\d{1,4}/,tf=/[+-]?\d{1,6}/,rf=/[+-]?\d+/,tc=/Z|[+-]\d\d:?\d\d/gi,uf=/Z|[+-]\d\d(?::?\d\d)?/gi,eu=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,pe={},we={},ht=0,dt=1,bt=2,p=3,ct=4,gt=5,ir=6,pb=7,wb=8;y=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};u("M",["MM",2],"Mo",function(){return this.month()+1});u("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});u("MMMM",0,0,function(n){return this.localeData().months(this,n)});w("month","M");b("month",8);r("M",l);r("MM",l,tt);r("MMM",function(n,t){return t.monthsShortRegex(n)});r("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[dt]=e(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);null!=u?t[dt]=u:f(i).invalidMonth=n});var ic=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,bb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),kb="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),db=eu,gb=eu;u("Y",0,0,function(){var n=this.year();return 9999>=n?""+n:"+"+n});u(0,["YY",2],0,function(){return this.year()%100});u(0,["YYYY",4],0,"year");u(0,["YYYYY",5],0,"year");u(0,["YYYYYY",6,!0],0,"year");w("year","y");b("year",1);r("Y",rf);r("YY",l,tt);r("YYYY",ye,ve);r("YYYYY",tf,gu);r("YYYYYY",tf,gu);h(["YYYYY","YYYYYY"],ht);h("YYYY",function(n,t){t[ht]=2===n.length?i.parseTwoDigitYear(n):e(n)});h("YY",function(n,t){t[ht]=i.parseTwoDigitYear(n)});h("Y",function(n,t){t[ht]=parseInt(n,10)});i.parseTwoDigitYear=function(n){return e(n)+(e(n)>68?1900:2e3)};ee=rr("FullYear",!0);u("w",["ww",2],"wo","week");u("W",["WW",2],"Wo","isoWeek");w("week","w");w("isoWeek","W");b("week",5);b("isoWeek",5);r("w",l);r("ww",l,tt);r("W",l);r("WW",l,tt);vr(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=e(n)});eh={dow:0,doy:6};u("d",0,"do","day");u("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});u("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});u("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});u("e",0,0,"weekday");u("E",0,0,"isoWeekday");w("day","d");w("weekday","e");w("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);r("d",l);r("e",l);r("E",l);r("dd",function(n,t){return t.weekdaysMinRegex(n)});r("ddd",function(n,t){return t.weekdaysShortRegex(n)});r("dddd",function(n,t){return t.weekdaysRegex(n)});vr(["dd","ddd","dddd"],function(n,t,i,r){var u=i._locale.weekdaysParse(n,r,i._strict);null!=u?t.d=u:f(i).invalidWeekday=n});vr(["d","e","E"],function(n,t,i,r){t[r]=e(n)});var nk="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),tk="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ik="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rk=eu,uk=eu,fk=eu;u("H",["HH",2],0,"hour");u("h",["hh",2],0,wf);u("k",["kk",2],0,ka);u("hmm",0,0,function(){return""+wf.apply(this)+kt(this.minutes(),2)});u("hmmss",0,0,function(){return""+wf.apply(this)+kt(this.minutes(),2)+kt(this.seconds(),2)});u("Hmm",0,0,function(){return""+this.hours()+kt(this.minutes(),2)});u("Hmmss",0,0,function(){return""+this.hours()+kt(this.minutes(),2)+kt(this.seconds(),2)});ko("a",!0);ko("A",!1);w("hour","h");b("hour",13);r("a",go);r("A",go);r("H",l);r("h",l);r("HH",l,tt);r("hh",l,tt);r("hmm",gh);r("hmmss",nc);r("Hmm",gh);r("Hmmss",nc);h(["H","HH"],p);h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[p]=e(n);f(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[p]=e(n.substr(0,r));t[ct]=e(n.substr(r));f(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,u=n.length-2;t[p]=e(n.substr(0,r));t[ct]=e(n.substr(r,2));t[gt]=e(n.substr(u));f(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[p]=e(n.substr(0,i));t[ct]=e(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[p]=e(n.substr(0,i));t[ct]=e(n.substr(i,2));t[gt]=e(n.substr(r))});var ff,ek=rr("Hours",!0),rc={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",ordinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:bb,monthsShort:kb,week:eh,weekdays:nk,weekdaysMin:ik,weekdaysShort:tk,meridiemParse:/[ap]\.?m?\.?/i},v={},ok=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,sk=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,hk=/Z|[+-]\d\d(?::?\d\d)?/,ef=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],be=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ck=/^\/?Date\((\-?\d+)/i;i.createFromInputFallback=g("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});i.ISO_8601=function(){};var lk=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?this>n?this:n:hu()}),ak=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:hu()}),vk=function(){return Date.now?Date.now():+new Date};for(os("Z",":"),os("ZZ",""),r("Z",uf),r("ZZ",uf),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=yu(uf,n)}),oh=/([\+\-]|\d\d)/gi,i.updateOffset=function(){},sh=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,hh=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/,si.fn=vu.prototype,ch=cs(1,"add"),lh=cs(-1,"subtract"),i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",oe=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),u(0,["gg",2],0,function(){return this.weekYear()%100}),u(0,["GG",2],0,function(){return this.isoWeekYear()%100}),pu("gggg","weekYear"),pu("ggggg","weekYear"),pu("GGGG","isoWeekYear"),pu("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),r("G",rf),r("g",rf),r("GG",l,tt),r("gg",l,tt),r("GGGG",ye,ve),r("gggg",ye,ve),r("GGGGG",tf,gu),r("ggggg",tf,gu),vr(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=e(n)}),vr(["gg","GG"],function(n,t,r,u){t[u]=i.parseTwoDigitYear(n)}),u("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),r("Q",kh),h("Q",function(n,t){t[dt]=3*(e(n)-1)}),u("D",["DD",2],"Do","date"),w("date","D"),b("date",9),r("D",l),r("DD",l,tt),r("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient}),h(["D","DD"],bt),h("Do",function(n,t){t[bt]=e(n.match(l)[0],10)}),se=rr("Date",!0),u("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),r("DDD",nf),r("DDDD",dh),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=e(n)}),u("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),r("m",l),r("mm",l,tt),h(["m","mm"],ct),ah=rr("Minutes",!1),u("s",["ss",2],0,"second"),w("second","s"),b("second",15),r("s",l),r("ss",l,tt),h(["s","ss"],gt),vh=rr("Seconds",!1),u("S",0,0,function(){return~~(this.millisecond()/100)}),u(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),u(0,["SSS",3],0,"millisecond"),u(0,["SSSS",4],0,function(){return 10*this.millisecond()}),u(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),u(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),u(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),u(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),u(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),w("millisecond","ms"),b("millisecond",16),r("S",nf,kh),r("SS",nf,tt),r("SSS",nf,dh),vi="SSSS";vi.length<=9;vi+="S")r(vi,/\d+/);for(vi="S";vi.length<=9;vi+="S")h(vi,dp);yh=rr("Milliseconds",!1);u("z",0,0,"zoneAbbr");u("zz",0,0,"zoneName");t=ar.prototype;t.add=ch;t.calendar=uy;t.clone=fy;t.diff=ay;t.endOf=tp;t.format=wy;t.from=by;t.fromNow=ky;t.to=dy;t.toNow=gy;t.get=fl;t.invalidAt=cp;t.isAfter=ey;t.isBefore=oy;t.isBetween=sy;t.isSame=hy;t.isSameOrAfter=cy;t.isSameOrBefore=ly;t.isValid=sp;t.lang=oe;t.locale=as;t.localeData=vs;t.max=ak;t.min=lk;t.parsingFlags=hp;t.set=el;t.startOf=np;t.subtract=lh;t.toArray=fp;t.toObject=ep;t.toDate=up;t.toISOString=py;t.toJSON=op;t.toString=yy;t.unix=rp;t.valueOf=ip;t.creationData=lp;t.year=ee;t.isLeapYear=dl;t.weekYear=ap;t.isoWeekYear=vp;t.quarter=t.quarters=bp;t.month=yo;t.daysInMonth=wl;t.week=t.weeks=ra;t.isoWeek=t.isoWeeks=ua;t.weeksInYear=pp;t.isoWeeksInYear=yp;t.date=se;t.day=t.days=aa;t.weekday=va;t.isoWeekday=ya;t.dayOfYear=kp;t.hour=t.hours=ek;t.minute=t.minutes=ah;t.second=t.seconds=vh;t.millisecond=t.milliseconds=yh;t.utcOffset=vv;t.utc=pv;t.local=wv;t.parseZone=bv;t.hasAlignedHourOffset=kv;t.isDST=dv;t.isLocal=ny;t.isUtcOffset=ty;t.isUtc=ss;t.isUTC=ss;t.zoneAbbr=gp;t.zoneName=nw;t.dates=g("dates accessor is deprecated. Use date instead.",se);t.months=g("months accessor is deprecated. Use month instead",yo);t.years=g("years accessor is deprecated. Use year instead",ee);t.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yv);t.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",gv);he=t;s=lf.prototype;s.calendar=dc;s.longDateFormat=gc;s.invalidDate=nl;s.ordinal=tl;s.preparse=ps;s.postformat=ps;s.relativeTime=il;s.pastFuture=rl;s.set=kc;s.months=al;s.monthsShort=vl;s.monthsParse=pl;s.monthsRegex=kl;s.monthsShortRegex=bl;s.week=na;s.firstDayOfYear=ia;s.firstDayOfWeek=ta;s.weekdays=oa;s.weekdaysMin=ha;s.weekdaysShort=sa;s.weekdaysParse=la;s.weekdaysRegex=pa;s.weekdaysShortRegex=wa;s.weekdaysMinRegex=ba;s.isPM=da;s.meridiem=ga;ur("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=1===e(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}});i.lang=g("moment.lang is deprecated. Use moment.locale instead.",ur);i.langData=g("moment.langData is deprecated. Use moment.localeData instead.",oi);var ni=Math.abs,yk=hi("ms"),pk=hi("s"),wk=hi("m"),bk=hi("h"),kk=hi("d"),dk=hi("w"),gk=hi("M"),nd=hi("y"),td=di("milliseconds"),id=di("seconds"),rd=di("minutes"),ud=di("hours"),fd=di("days"),ed=di("months"),od=di("years"),yi=Math.round,pi={s:45,m:45,h:22,d:26,M:11},ke=Math.abs,o=vu.prototype;o.abs=sw;o.add=hw;o.subtract=cw;o.as=aw;o.asMilliseconds=yk;o.asSeconds=pk;o.asMinutes=wk;o.asHours=bk;o.asDays=kk;o.asWeeks=dk;o.asMonths=gk;o.asYears=nd;o.valueOf=vw;o._bubble=lw;o.get=yw;o.milliseconds=td;o.seconds=id;o.minutes=rd;o.hours=ud;o.days=fd;o.weeks=pw;o.months=ed;o.years=od;o.humanize=gw;o.toISOString=bu;o.toString=bu;o.toJSON=bu;o.locale=as;o.localeData=vs;o.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bu);o.lang=oe;u("X",0,0,"unix");u("x",0,0,"valueOf");r("x",rf);r("X",/[+-]?\d+(\.\d{1,3})?/);h("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))});h("x",function(n,t,i){i._d=new Date(e(n))});i.version="2.15.1";pc(c);i.fn=he;i.min=lv;i.max=av;i.now=vk;i.utc=vt;i.unix=tw;i.months=rw;i.isDate=su;i.locale=ur;i.invalid=hu;i.duration=si;i.isMoment=ei;i.weekdays=fw;i.parseZone=iw;i.localeData=oi;i.isDuration=gf;i.monthsShort=uw;i.weekdaysMin=ow;i.defineLocale=is;i.updateLocale=tv;i.locales=iv;i.weekdaysShort=ew;i.normalizeUnits=nt;i.relativeTimeRounding=kw;i.relativeTimeThreshold=dw;i.calendarFormat=ry;i.prototype=he;var n=i,sd=(n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,i){return 12>n?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"}),uc=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&10>=n%100?3:n%100>=11?4:5},hd={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},lt=function(n){return function(t,i){var u=uc(t),r=hd[n][uc(t)];return 2===u&&(r=r[i?0:1]),r.replace(/%d/i,t)}},fc=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],cd=(n.defineLocale("ar-ly",{months:fc,monthsShort:fc,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return 12>n?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:lt("s"),m:lt("m"),mm:lt("m"),h:lt("h"),hh:lt("h"),d:lt("d"),dd:lt("d"),M:lt("M"),MM:lt("M"),y:lt("y"),yy:lt("y")},preparse:function(n){return n.replace(/\u200f/g,"").replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return sd[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),n.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),ld={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ad=(n.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return 12>n?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(n){return n.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return ld[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return cd[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),n.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),vd={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ec=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&10>=n%100?3:n%100>=11?4:5},yd={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},at=function(n){return function(t,i){var u=ec(t),r=yd[n][ec(t)];return 2===u&&(r=r[i?0:1]),r.replace(/%d/i,t)}},oc=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],de=(n.defineLocale("ar",{months:oc,monthsShort:oc,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return 12>n?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:at("s"),m:at("m"),mm:at("m"),h:at("h"),hh:at("h"),d:at("d"),dd:at("d"),M:at("M"),MM:at("M"),y:at("y"),yy:at("y")},preparse:function(n){return n.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return vd[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return ad[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),{1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"}),pd=(n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(n){return/^(gündüz|axşam)$/.test(n)},meridiem:function(n){return 4>n?"gecə":12>n?"səhər":17>n?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(n){if(0===n)return n+"-ıncı";var t=n%10,i=n%100-t,r=n>=100?100:null;return n+(de[t]||de[i]||de[r])},week:{dow:1,doy:7}}),n.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:gi,mm:gi,h:gi,hh:gi,d:"дзень",dd:gi,M:"месяц",MM:gi,y:"год",yy:gi},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(n){return/^(дня|вечара)$/.test(n)},meridiem:function(n){return 4>n?"ночы":12>n?"раніцы":17>n?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n%10!=2&&n%10!=3||n%100==12||n%100==13?n+"-ы":n+"-і";case"D":return n+"-га";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&20>i?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}}),{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}),wd={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},bd=(n.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(n){return n.replace(/[১২৩৪৫৬৭৮৯০]/g,function(n){return wd[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return pd[n]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(n,t){return 12===n&&(n=0),"রাত"===t&&n>=4||"দুপুর"===t&&5>n||"বিকাল"===t?n+12:n},meridiem:function(n){return 4>n?"রাত":10>n?"সকাল":17>n?"দুপুর":20>n?"বিকাল":"রাত"},week:{dow:0,doy:6}}),{1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"}),kd={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},ge=(n.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(n){return n.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(n){return kd[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return bd[n]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(n,t){return 12===n&&(n=0),"མཚན་མོ"===t&&n>=4||"ཉིན་གུང"===t&&5>n||"དགོང་དག"===t?n+12:n},meridiem:function(n){return 4>n?"མཚན་མོ":10>n?"ཞོགས་ཀས":17>n?"ཉིན་གུང":20>n?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),n.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:fe,h:"un eur",hh:"%d eur",d:"un devezh",dd:fe,M:"ur miz",MM:fe,y:"ur bloaz",yy:tb},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(n){var t=1===n?"añ":"vet";return n+t},week:{dow:1,doy:4}}),n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:nr,mm:nr,h:nr,hh:nr,d:"dan",dd:nr,M:"mjesec",MM:nr,y:"godinu",yy:nr},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(n,t){var i=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"è";return"w"!==t&&"W"!==t||(i="a"),n+i},week:{dow:1,doy:4}}),"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_")),no="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),sc=(n.defineLocale("cs",{months:ge,monthsShort:no,monthsParse:function(n,t){for(var r=[],i=0;12>i;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(ge,no),shortMonthsParse:function(n){for(var i=[],t=0;12>t;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(no),longMonthsParse:function(n){for(var i=[],t=0;12>t;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(ge),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:it,m:it,mm:it,h:it,hh:it,d:it,dd:it,M:it,MM:it,y:it,yy:it},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(n){var t=/сехет$/i.exec(n)?"рен":/ҫул$/i.exec(n)?"тан":"ран";return n+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var t=n,i="";return t>20?i=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),n+i},week:{dow:1,doy:4}}),n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:ci,mm:"%d Minuten",h:ci,hh:"%d Stunden",d:ci,dd:ci,M:ci,MM:ci,y:ci,yy:ci},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:li,mm:"%d Minuten",h:li,hh:"%d Stunden",d:li,dd:li,M:li,MM:li,y:li,yy:li},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"]),hc=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],dd=(n.defineLocale("dv",{months:sc,monthsShort:sc,weekdays:hc,weekdaysShort:hc,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(n){return"މފ"===n},meridiem:function(n){return 12>n?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(n){return n.replace(/،/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:7,doy:12}}),n.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(n,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[n.month()]:this._monthsNominativeEl[n.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(n,t,i){return n>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(n){return"μ"===(n+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(n,t){var i=this._calendarEl[n],r=t&&t.hours();return yt(i)&&(i=i.apply(t)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}}),n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return"p"===n.charAt(0).toLowerCase()},meridiem:function(n,t,i){return n>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}}),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),gd="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ng=(n.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?gd[n.month()]:dd[n.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),tg="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ig=(n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?tg[n.month()]:ng[n.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:pt,m:pt,mm:pt,h:pt,hh:pt,d:pt,dd:"%d päeva",M:pt,MM:pt,y:pt,yy:pt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"}),rg={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},of=(n.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(n){return/بعد از ظهر/.test(n)},meridiem:function(n){return 12>n?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(n){return n.replace(/[۰-۹]/g,function(n){return rg[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return ig[n]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}}),"nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ")),ug=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",of[7],of[8],of[9]],fg=(n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:rt,m:rt,mm:rt,h:rt,hh:rt,d:rt,dd:rt,M:rt,MM:rt,y:rt,yy:rt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(n){return n+(1===n?"er":"e")}}),n.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(n){return n+(1===n?"er":"e")},week:{dow:1,doy:4}}),n.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(n){return n+(1===n?"er":"")},week:{dow:1,doy:4}}),"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_")),eg="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),og=(n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?eg[n.month()]:fg[n.month()]},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"]),sg=(n.defineLocale("gd",{months:og,monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(n){var t=1===n?"d":n%10==2?"na":"mh";return n+t},week:{dow:1,doy:4}}),n.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return 0===n.indexOf("un")?"n"+n:"en "+n},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(n){return 2===n?"שעתיים":n+" שעות"},d:"יום",dd:function(n){return 2===n?"יומיים":n+" ימים"},M:"חודש",MM:function(n){return 2===n?"חודשיים":n+" חודשים"},y:"שנה",yy:function(n){return 2===n?"שנתיים":n%10==0&&10!==n?n+" שנה":n+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(n){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(n)},meridiem:function(n,t,i){return 5>n?"לפנות בוקר":10>n?"בבוקר":12>n?i?'לפנה"צ':"לפני הצהריים":18>n?i?'אחה"צ':"אחרי הצהריים":"בערב"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),hg={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},cg=(n.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return hg[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return sg[n]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात"===t?4>n?n:n+12:"सुबह"===t?n:"दोपहर"===t?n>=10?n:n+12:"शाम"===t?n+12:void 0},meridiem:function(n){return 4>n?"रात":10>n?"सुबह":17>n?"दोपहर":20>n?"शाम":"रात"},week:{dow:0,doy:6}}),n.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:tr,mm:tr,h:tr,hh:tr,d:"dan",dd:tr,M:"mjesec",MM:tr,y:"godinu",yy:tr},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),"vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ")),to=(n.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(n){return"u"===n.charAt(1).toLowerCase()},meridiem:function(n,t,i){return 12>n?i===!0?"de":"DE":i===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return nh.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return nh.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:ut,m:ut,mm:ut,h:ut,hh:ut,d:ut,dd:ut,M:ut,MM:ut,y:ut,yy:ut},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(n){return/^(ցերեկվա|երեկոյան)$/.test(n)},meridiem:function(n){return 4>n?"գիշերվա":12>n?"առավոտվա":17>n?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(n,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-ին":n+"-րդ";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"siang"===t?n>=11?n:n+12:"sore"===t||"malam"===t?n+12:void 0},meridiem:function(n){return 11>n?"pagi":15>n?"siang":19>n?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),n.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:wt,m:wt,mm:wt,h:"klukkustund",hh:wt,d:wt,dd:wt,M:wt,MM:wt,y:wt,yy:wt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(n){return"午後"===n},meridiem:function(n){return 12>n?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},ordinalParse:/\d{1,2}日/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";default:return n}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,t){return 12===n&&(n=0),"enjing"===t?n:"siyang"===t?n>=11?n:n+12:"sonten"===t||"ndalu"===t?n+12:void 0},meridiem:function(n){return 11>n?"enjing":15>n?"siyang":19>n?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),n.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(n){return/(წამი|წუთი|საათი|წელი)/.test(n)?n.replace(/ი$/,"ში"):n+"ში"},past:function(n){return/(წამი|წუთი|საათი|დღე|თვე)/.test(n)?n.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(n)?n.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(n){return 0===n?n:1===n?n+"-ლი":20>n||100>=n&&n%20==0||n%100==0?"მე-"+n:n+"-ე"},week:{dow:1,doy:7}}),{0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"}),io=(n.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(n){var t=n%10,i=n>=100?100:null;return n+(to[n]||to[t]||to[i])},week:{dow:1,doy:7}}),n.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}}),n.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"일분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(n){return"오후"===n},meridiem:function(n){return 12>n?"오전":"오후"}}),{0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"}),lg=(n.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(n){var t=n%10,i=n>=100?100:null;return n+(io[n]||io[t]||io[i])},week:{dow:1,doy:7}}),n.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:fb,past:eb,s:"e puer Sekonnen",m:kr,mm:"%d Minutten",h:kr,hh:"%d Stonnen",d:kr,dd:"%d Deeg",M:kr,MM:"%d Méint",y:kr,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(n){return"ຕອນແລງ"===n},meridiem:function(n){return 12>n?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(n){return"ທີ່"+n}}),{m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"}),cc=(n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?|MMMM?(\[[^\[\]]*\]|\s+)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:ob,m:er,mm:gr,h:er,hh:gr,d:er,dd:gr,M:er,MM:gr,y:er,yy:gr},ordinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}}),{m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")}),ti=(n.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:sb,m:tu,mm:nu,h:tu,hh:nu,d:tu,dd:nu,M:tu,MM:nu,y:tu,yy:nu},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=ti.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+ti.correctGrammaticalCase(n,r)}}),ag=(n.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:ti.translate,mm:ti.translate,h:ti.translate,hh:ti.translate,d:"dan",dd:ti.translate,M:"mjesec",MM:ti.translate,y:"godinu",yy:ti.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&20>i?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}}),n.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(n,t){return 12===n&&(n=0),"രാത്രി"===t&&n>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?n+12:n},meridiem:function(n){return 4>n?"രാത്രി":12>n?"രാവിലെ":17>n?"ഉച്ച കഴിഞ്ഞ്":20>n?"വൈകുന്നേരം":"രാത്രി"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),vg={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},yg=(n.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:ft,m:ft,mm:ft,h:ft,hh:ft,d:ft,dd:ft,M:ft,MM:ft,y:ft,yy:ft},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return vg[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ag[n]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात्री"===t?4>n?n:n+12:"सकाळी"===t?n:"दुपारी"===t?n>=10?n:n+12:"सायंकाळी"===t?n+12:void 0},meridiem:function(n){return 4>n?"रात्री":10>n?"सकाळी":17>n?"दुपारी":20>n?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return 11>n?"pagi":15>n?"tengahari":19>n?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),n.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return 11>n?"pagi":15>n?"tengahari":19>n?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),{1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"}),pg={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},wg=(n.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(n){return n.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(n){return pg[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return yg[n]})},week:{dow:1,doy:4}}),n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),bg={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},kg=(n.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return bg[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return wg[n]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(n,t){return 12===n&&(n=0),"राति"===t?4>n?n:n+12:"बिहान"===t?n:"दिउँसो"===t?n>=10?n:n+12:"साँझ"===t?n+12:void 0},meridiem:function(n){return 3>n?"राति":12>n?"बिहान":16>n?"दिउँसो":20>n?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}}),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_")),dg="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ro=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],lc=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,gg=(n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?dg[n.month()]:kg[n.month()]},monthsRegex:lc,monthsShortRegex:lc,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:ro,longMonthsParse:ro,shortMonthsParse:ro,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"}),nn={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},ac=(n.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(n){return n.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(n){return nn[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return gg[n]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(n,t){return 12===n&&(n=0),"ਰਾਤ"===t?4>n?n:n+12:"ਸਵੇਰ"===t?n:"ਦੁਪਹਿਰ"===t?n>=10?n:n+12:"ਸ਼ਾਮ"===t?n+12:void 0},meridiem:function(n){return 4>n?"ਰਾਤ":10>n?"ਸਵੇਰ":17>n?"ਦੁਪਹਿਰ":20>n?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}}),"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_")),vc="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),uo=(n.defineLocale("pl",{months:function(n,t){return""===t?"("+vc[n.month()]+"|"+ac[n.month()]+")":/D MMMM/.test(t)?vc[n.month()]:ac[n.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:or,mm:or,h:or,hh:or,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:or,y:"rok",yy:or},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"}),n.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:iu,h:"o oră",hh:iu,d:"o zi",dd:iu,M:"o lună",MM:iu,y:"un an",yy:iu},week:{dow:1,doy:7}}),[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i]),tn=(n.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:uo,longMonthsParse:uo,shortMonthsParse:uo,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:sr,mm:sr,h:"час",hh:sr,d:"день",dd:sr,M:"месяц",MM:sr,y:"год",yy:sr},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(n){return/^(дня|вечера)$/.test(n)},meridiem:function(n){return 4>n?"ночи":12>n?"утра":17>n?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":return n+"-й";case"D":return n+"-го";case"w":case"W":return n+"-я";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(n){return n+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(n){return"ප.ව."===n||"පස් වරු"===n},meridiem:function(n,t,i){return n>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}}),"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_")),rn="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),ii=(n.defineLocale("sk",{months:tn,monthsShort:rn,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:et,m:et,mm:et,h:et,hh:et,d:et,dd:et,M:et,MM:et,y:et,yy:et},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:ot,m:ot,mm:ot,h:ot,hh:ot,d:ot,dd:ot,M:ot,MM:ot,y:ot,yy:ot},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(n){return"M"===n.charAt(0)},meridiem:function(n){return 12>n?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=ii.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+ii.correctGrammaticalCase(n,r)}}),ri=(n.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:ii.translate,mm:ii.translate,h:ii.translate,hh:ii.translate,d:"дан",dd:ii.translate,M:"месец",MM:ii.translate,y:"годину",yy:ii.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=ri.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+ri.correctGrammaticalCase(n,r)}}),un=(n.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:ri.translate,mm:ri.translate,h:ri.translate,hh:ri.translate,d:"dan",dd:ri.translate,M:"mesec",MM:ri.translate,y:"godinu",yy:ri.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(n){return 11>n?"ekuseni":15>n?"emini":19>n?"entsambama":"ebusuku"},meridiemHour:function(n,t){return 12===n&&(n=0),"ekuseni"===t?n:"emini"===t?n>=11?n:n+12:"entsambama"===t||"ebusuku"===t?0===n?0:n+12:void 0},ordinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"e":1===t?"a":2===t?"a":"e";return n+i},week:{dow:1,doy:4}}),n.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}}),{1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"}),fn={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},fo=(n.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(n){return n+"வது"},preparse:function(n){return n.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(n){return fn[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return un[n]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(n){return 2>n?" யாமம்":6>n?" வைகறை":10>n?" காலை":14>n?" நண்பகல்":18>n?" எற்பாடு":22>n?" மாலை":" யாமம்"},meridiemHour:function(n,t){return 12===n&&(n=0),"யாமம்"===t?2>n?n:n+12:"வைகறை"===t||"காலை"===t?n:"நண்பகல்"===t&&n>=10?n:n+12},week:{dow:0,doy:6}}),n.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(n,t){return 12===n&&(n=0),"రాత్రి"===t?4>n?n:n+12:"ఉదయం"===t?n:"మధ్యాహ్నం"===t?n>=10?n:n+12:"సాయంత్రం"===t?n+12:void 0},meridiem:function(n){return 4>n?"రాత్రి":10>n?"ఉదయం":17>n?"మధ్యాహ్నం":20>n?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),n.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(n){return"หลังเที่ยง"===n},meridiem:function(n){return 12>n?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),"pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_")),eo=(n.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:cb,past:lb,s:"puS lup",m:"wa’ tup",mm:uu,h:"wa’ rep",hh:uu,d:"wa’ jaj",dd:uu,M:"wa’ jar",MM:uu,y:"wa’ DIS",yy:uu},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"}),yc=(n.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(n){if(0===n)return n+"'ıncı";var t=n%10,i=n%100-t,r=n>=100?100:null;return n+(eo[t]||eo[i]||eo[r])},week:{dow:1,doy:7}}),n.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(n){return"d'o"===n.toLowerCase()},meridiem:function(n,t,i){return n>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:st,m:st,mm:st,h:st,hh:st,d:st,dd:st,M:st,MM:st,y:st,yy:st},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),n.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),n.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:yb,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:cr("[Сьогодні "),nextDay:cr("[Завтра "),lastDay:cr("[Вчора "),nextWeek:cr("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return cr("[Минулої] dddd [").call(this);case 1:case 2:case 4:return cr("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:hr,mm:hr,h:"годину",hh:hr,d:"день",dd:hr,M:"місяць",MM:hr,y:"рік",yy:hr},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(n){return/^(дня|вечора)$/.test(n)},meridiem:function(n){return 4>n?"ночі":12>n?"ранку":17>n?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-й";case"D":return n+"-го";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),n.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(n){return/^ch$/i.test(n)},meridiem:function(n,t,i){return 12>n?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),n.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"下午"===t||"晚上"===t?n+12:n>=11?n:n+12},meridiem:function(n,t){var i=100*n+t;return 600>i?"凌晨":900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var i,t;return i=n().startOf("week"),t=this.diff(i,"days")>=7?"[下]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()<i.unix()?"[上]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"周";default:return n}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),n.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"中午"===t?n>=11?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return 600>i?"凌晨":900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"中午"===t?n>=11?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return 600>i?"凌晨":900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),n);return yc.locale("en"),yc}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):(typeof module=="undefined"?"undefined":_typeof(module))==="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var i=n.data(this[0],"validator");if(i)return i;if(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit){this.on("click.validate",":submit",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(this).hasClass("cancel")&&(i.cancelSubmit=!0);n(this).attr("formnovalidate")!==undefined&&(i.cancelSubmit=!0)});this.on("submit.validate",function(t){function r(){var u,r;return i.settings.submitHandler?(i.submitButton&&(u=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&u.remove(),r!==undefined)?r:!1:!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})}return i},valid:function(){var t,i,r;return n(this[0]).is("form")?t=this.validate().form():(r=[],t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t;t||(r=r.concat(i.errorList))}),i.errorList=r),t},rules:function(t,i){if(this.length){var r=this[0],e,s,f,u,o,h;if(t){e=n.data(r.form,"validator").settings;s=e.rules;f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(t,i){h[i]=f[i];delete f[i];i==="required"&&n(r).removeAttr("aria-required")}),h):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u),n(r).attr("aria-required","true")),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){var i=n(t).val();return i!==null&&!!n.trim(""+i)},unchecked:function(t){return!n(t).prop("checked")}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return arguments.length===1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:i===undefined?t:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(t,i){(i.which!==9||this.elementValue(t)!=="")&&n.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])===-1&&(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}."),step:n.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var r=n.data(this.form,"validator"),u="on"+t.type.replace(/^validate/,""),i=r.settings;i[u]&&!n(this).is(i.ignore)&&i[u].call(r,this,t)}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var r=this.groups={},t;n.each(this.settings.groups,function(t,i){typeof i=="string"&&(i=i.split(/\s/));n.each(i,function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i);if(this.settings.invalidHandler)n(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler);n(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var i=this.clean(t),r=this.validationTargetFor(i),u=this,f=!0,e,o;return r===undefined?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=n(r),o=this.groups[r.name],o&&n.each(this.groups,function(n,t){t===o&&n!==r.name&&(i=u.validationTargetFor(u.clean(u.findByName(n))),i&&i.name in u.invalid&&(u.currentElements.push(i),f=f&&u.check(i)))}),e=this.check(r)!==!1,f=f&&e,this.invalid[r.name]=e?!1:!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n(t).attr("aria-invalid",!e)),f},showErrors:function(t){if(t){var i=this;n.extend(this.errorMap,t);this.errorList=n.map(this.errorMap,function(n,t){return{message:n,element:i.findByName(t)[0]}});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(n){var t;if(this.settings.unhighlight)for(t=0;n[t];t++)this.settings.unhighlight.call(this,n[t],this.settings.errorClass,""),this.findByName(n[t].name).removeClass(this.settings.validClass);else n.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0,i;for(i in n)n[i]&&t++;return t},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name===t.name}).length===1&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var r=this.name||n(this).attr("name");return(!r&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=n(this).closest("form")[0]),r in i||!t.objectLength(n(this).rules()))?!1:(i[r]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([])},reset:function(){this.resetInternals();this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var f=n(t),u=t.type,i,r;return u==="radio"||u==="checkbox"?this.findByName(t.name).filter(":checked").val():u==="number"&&typeof t.validity!="undefined"?t.validity.badInput?"NaN":f.val():(i=t.hasAttribute("contenteditable")?f.text():f.val(),u==="file")?i.substr(0,12)==="C:\\fakepath\\"?i.substr(12):(r=i.lastIndexOf("/"),r>=0)?i.substr(r+1):(r=i.lastIndexOf("\\"),r>=0)?i.substr(r+1):i:typeof i=="string"?i.replace(/\r/g,""):i},check:function(t){t=this.validationTargetFor(this.clean(t));var i=n(t).rules(),h=n.map(i,function(n,t){return t}).length,s=!1,u=this.elementValue(t),f,e,r;if(typeof i.normalizer=="function"){if(u=i.normalizer.call(t,u),typeof u!="string")throw new TypeError("The normalizer should return a string value.");delete i.normalizer}for(e in i){r={method:e,parameters:i[e]};try{if(f=n.validator.methods[e].call(this,u,t,r.parameters),f==="dependency-mismatch"&&h===1){s=!0;continue}if(s=!1,f==="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!f)return this.formatAndAdd(t,r),!1}catch(o){this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",o);o instanceof TypeError&&(o.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.");throw o;}}if(!s)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"<\/strong>"),u=/\$?\{(\d+)\}/g;return typeof r=="function"?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters)),r},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t);this.errorList.push({message:i,element:n,method:t.method});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,s,e,o,r=this.errorsFor(t),h=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement(u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",h):r.parents("label[for='"+this.escapeCssMeta(h)+"']").length===0&&(e=r.attr("id"),f?f.match(new RegExp("\\b"+this.escapeCssMeta(e)+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),s=this.groups[t.name],s&&(o=this,n.each(o.groups,function(t,i){i===s&&n("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))}))));!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.escapeCssMeta(this.idOrName(t)),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+this.escapeCssMeta(u).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(n){return n.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n=="undefined"?"undefined":_typeof(n)]?this.dependTypes[typeof n=="undefined"?"undefined":_typeof(n)](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,n(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];n(t).removeClass(this.settings.pendingClass);i&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest===0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm();n(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(n,t,i,r){/min|max|step/.test(i)&&(t===null||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=undefined));r||r===0?n[i]=r:t===i&&t!=="range"&&(n[i]=!0)},attributeRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),u,i;for(u in n.validator.methods)u==="required"?(i=t.getAttribute(u),i===""&&(i=!0),i=!!i):i=f.attr(u),this.normalizeAttributeRule(r,e,u,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),i,u;for(i in n.validator.methods)u=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,e,i,u);return r},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(_typeof(u.depends)){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:(n.data(i.form,"validator").resetElements(n(i)),delete t[r])}}),n.each(t,function(r,u){t[r]=n.isFunction(u)&&r!=="normalizer"?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:typeof t[this]=="string"&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(t.min!=null&&t.max!=null&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength!=null&&t.maxlength!=null&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=r!==undefined?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if(i.nodeName.toLowerCase()==="select"){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:t.length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u<=r},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},step:function(t,i,r){var u=n(i).attr("type"),f="Step attribute on input type "+u+" is not supported.",e=new RegExp("\\b"+u+"\\b"),o=u&&!e.test("text,number,range");if(o)throw new Error(f);return this.optional(i)||t%r==0},equalTo:function(t,i,r){var u=n(r);if(this.settings.onfocusout&&u.not(".validate-equalTo-blur").length)u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){n(i).valid()});return t===u.val()},remote:function(t,i,r,u){if(this.optional(i))return"dependency-mismatch";u=typeof u=="string"&&u||"remote";var e=this.previousValue(i,u),f,o,s;return(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),e.originalMessage=e.originalMessage||this.settings.messages[i.name][u],this.settings.messages[i.name][u]=e.message,r=typeof r=="string"&&{url:r}||r,s=n.param(n.extend({data:t},r.data)),e.old===s)?e.valid:(e.old=s,f=this,this.startRequest(i),o={},o[i.name]=t,n.ajax(n.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:f.currentForm,success:function(n){var r=n===!0||n==="true",o,s,h;f.settings.messages[i.name][u]=e.originalMessage;r?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(i),f.formSubmitted=h,f.successList.push(i),f.invalid[i.name]=!1,f.showErrors()):(o={},s=n||f.defaultMessage(i,{method:u,parameters:t}),o[i.name]=e.message=s,f.invalid[i.name]=!0,f.showErrors(o));e.valid=r;f.stopRequest(i,r)}},r)),"pending")}}});var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode==="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return f==="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)})}),function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this),i="__jquery_unobtrusive_validation_form_reset";if(!t.data(i)){t.data(i,!0);try{t.data("validator").resetForm()}finally{t.removeData(i)}t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function s(t){var i=n(t),f=i.data(u),s=n.proxy(v,t),e=r.unobtrusive.options||{},o=function(i,r){var u=e[i];u&&n.isFunction(u)&&u.apply(t,r)};return f||(f={options:{errorClass:e.errorClass||"input-validation-error",errorElement:e.errorElement||"span",errorPlacement:function(){c.apply(t,arguments);o("errorPlacement",arguments)},invalidHandler:function(){l.apply(t,arguments);o("invalidHandler",arguments)},messages:{},rules:{},success:function(){a.apply(t,arguments);o("success",arguments)}},attachValidation:function(){i.off("reset."+u,s).on("reset."+u,s).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,f)),f}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t),u=i.parents().addBack().filter("form").add(i.find("form")).has("[data-val=true]");i.find("[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});u.each(function(){var n=s(this);n&&n.attachValidation()})}};t=r.unobtrusive.adapters;t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this};t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})};t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})};t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})};r.addMethod("__dummy__",function(){return!0});r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)});r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r});r.methods.extension?(t.addSingleVal("accept","mimtype"),t.addSingleVal("extension","extension")):t.addSingleVal("extension","extension","accept");t.addSingleVal("regex","pattern");t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");t.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input").filter("[name='"+f(s)+"']")[0];i(t,"equalTo",h)});t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)});t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){var i=n(t.form).find(":input").filter("[name='"+f(s)+"']");return i.is(":checkbox")?i.filter(":checked").val()||i.filter(":hidden").val()||"":i.is(":radio")?i.filter(":checked").val()||"":i.val()}});i(t,"remote",r)});t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);n.params.regex&&i(n,"regex",n.params.regex)});n(function(){r.unobtrusive.parse(document)})}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery","./jquery.validate"],n):(typeof module=="undefined"?"undefined":_typeof(module))==="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){return function(){function t(n){return n.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}n.validator.addMethod("maxWords",function(n,i,r){return this.optional(i)||t(n).match(/\b\w+\b/g).length<=r},n.validator.format("Please enter {0} words or less."));n.validator.addMethod("minWords",function(n,i,r){return this.optional(i)||t(n).match(/\b\w+\b/g).length>=r},n.validator.format("Please enter at least {0} words."));n.validator.addMethod("rangeWords",function(n,i,r){var u=t(n),f=/\b\w+\b/g;return this.optional(i)||u.match(f).length>=r[0]&&u.match(f).length<=r[1]},n.validator.format("Please enter between {0} and {1} words."))}(),n.validator.addMethod("accept",function(t,i,r){var f=typeof r=="string"?r.replace(/\s/g,""):"image/*",e=this.optional(i),u,o,s;if(e)return e;if(n(i).attr("type")==="file"&&(f=f.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace(/\/\*/g,"/.*"),i.files&&i.files.length))for(s=new RegExp(".?("+f+")$","i"),u=0;u<i.files.length;u++)if(o=i.files[u],!o.type.match(s))return!1;return!0},n.validator.format("Please enter a value with a valid mimetype.")),n.validator.addMethod("alphanumeric",function(n,t){return this.optional(t)||/^\w+$/i.test(n)},"Letters, numbers, and underscores only please"),n.validator.addMethod("bankaccountNL",function(n,t){if(this.optional(t))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(n))return!1;for(var u=n.replace(/ /g,""),r=0,f=u.length,e,o,i=0;i<f;i++)e=f-i,o=u.substring(i,i+1),r=r+e*o;return r%11==0},"Please specify a valid bank account number"),n.validator.addMethod("bankorgiroaccountNL",function(t,i){return this.optional(i)||n.validator.methods.bankaccountNL.call(this,t,i)||n.validator.methods.giroaccountNL.call(this,t,i)},"Please specify a valid bank or giro account number"),n.validator.addMethod("bic",function(n,t){return this.optional(t)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(n.toUpperCase())},"Please specify a valid BIC code"),n.validator.addMethod("cifES",function(n,t){"use strict";function a(n){return n%2==0}if(this.optional(t))return!0;var v=new RegExp(/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi),o=n.substring(0,1),s=n.substring(1,8),f=n.substring(8,9),h=0,c=0,l=0,u,r,i,e;if(n.length!==9||!v.test(n))return!1;for(u=0;u<s.length;u++)r=parseInt(s[u],10),a(u)?(r*=2,l+=r<10?r:r-9):c+=r;return(h=c+l,i=(10-h.toString().substr(-1)).toString(),i=parseInt(i,10)>9?"0":i,e="JABCDEFGHI".substr(i,1).toString(),o.match(/[ABEH]/))?f===i:o.match(/[KPQS]/)?f===e:f===i||f===e},"Please specify a valid CIF number."),n.validator.addMethod("cpfBR",function(n){if(n=n.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),n.length!==11)return!1;var i=0,u,f,r,t;if(u=parseInt(n.substring(9,10),10),f=parseInt(n.substring(10,11),10),r=function(n,t){var i=n*10%11;return(i===10||i===11)&&(i=0),i===t},n===""||n==="00000000000"||n==="11111111111"||n==="22222222222"||n==="33333333333"||n==="44444444444"||n==="55555555555"||n==="66666666666"||n==="77777777777"||n==="88888888888"||n==="99999999999")return!1;for(t=1;t<=9;t++)i=i+parseInt(n.substring(t-1,t),10)*(11-t);if(r(i,u)){for(i=0,t=1;t<=10;t++)i=i+parseInt(n.substring(t-1,t),10)*(12-t);return r(i,f)}return!1},"Please specify a valid CPF number"),n.validator.addMethod("creditcard",function(n,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var f=0,i=0,u=!1,r,e;if(n=n.replace(/\D/g,""),n.length<13||n.length>19)return!1;for(r=n.length-1;r>=0;r--)e=n.charAt(r),i=parseInt(e,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return f%10==0},"Please enter a valid credit card number."),n.validator.addMethod("creditcardtypes",function(n,t,i){if(/[^0-9\-]+/.test(n))return!1;n=n.replace(/\D/g,"");var r=0;return(i.mastercard&&(r|=1),i.visa&&(r|=2),i.amex&&(r|=4),i.dinersclub&&(r|=8),i.enroute&&(r|=16),i.discover&&(r|=32),i.jcb&&(r|=64),i.unknown&&(r|=128),i.all&&(r=255),r&1&&/^(5[12345])/.test(n))?n.length===16:r&2&&/^(4)/.test(n)?n.length===16:r&4&&/^(3[47])/.test(n)?n.length===15:r&8&&/^(3(0[012345]|[68]))/.test(n)?n.length===14:r&16&&/^(2(014|149))/.test(n)?n.length===15:r&32&&/^(6011)/.test(n)?n.length===16:r&64&&/^(3)/.test(n)?n.length===16:r&64&&/^(2131|1800)/.test(n)?n.length===15:r&128?!0:!1},"Please enter a valid credit card number."),n.validator.addMethod("currency",function(n,t,i){var f=typeof i=="string",r=f?i:i[0],e=f?!0:i[1],u;return r=r.replace(/,/g,""),r=e?r+"]":r+"]?",u="^["+r+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$",u=new RegExp(u),this.optional(t)||u.test(n)},"Please specify a valid currency"),n.validator.addMethod("dateFA",function(n,t){return this.optional(t)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(n)},n.validator.messages.date),n.validator.addMethod("dateITA",function(n,t){var u=!1,i,f,e,o,r;return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)?(i=n.split("/"),f=parseInt(i[0],10),e=parseInt(i[1],10),o=parseInt(i[2],10),r=new Date(Date.UTC(o,e-1,f,12,0,0,0)),u=r.getUTCFullYear()===o&&r.getUTCMonth()===e-1&&r.getUTCDate()===f?!0:!1):u=!1,this.optional(t)||u},n.validator.messages.date),n.validator.addMethod("dateNL",function(n,t){return this.optional(t)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(n)},n.validator.messages.date),n.validator.addMethod("extension",function(n,t,i){return i=typeof i=="string"?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||n.match(new RegExp("\\.("+i+")$","i"))},n.validator.format("Please enter a value with a valid extension.")),n.validator.addMethod("giroaccountNL",function(n,t){return this.optional(t)||/^[0-9]{1,7}$/.test(n)},"Please specify a valid giro account number"),n.validator.addMethod("iban",function(n,t){if(this.optional(t))return!0;var i=n.replace(/ /g,"").toUpperCase(),f="",c=!0,e="",l="",a,o,s,v,h,y,p,r,u;if(i.length<5||(a=i.substring(0,2),y={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"},h=y[a],typeof h!="undefined"&&(p=new RegExp("^[A-Z]{2}\\d{2}"+h+"$",""),!p.test(i))))return!1;for(o=i.substring(4,i.length)+i.substring(0,4),r=0;r<o.length;r++)s=o.charAt(r),s!=="0"&&(c=!1),c||(f+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(s));for(u=0;u<f.length;u++)v=f.charAt(u),l=""+e+""+v,e=l%97;return e===1},"Please specify a valid IBAN"),n.validator.addMethod("integer",function(n,t){return this.optional(t)||/^-?\d+$/.test(n)},"A positive or negative non-decimal number please"),n.validator.addMethod("ipv4",function(n,t){return this.optional(t)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(n)},"Please enter a valid IP v4 address."),n.validator.addMethod("ipv6",function(n,t){return this.optional(t)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(n)},"Please enter a valid IP v6 address."),n.validator.addMethod("lettersonly",function(n,t){return this.optional(t)||/^[a-z]+$/i.test(n)},"Letters only please"),n.validator.addMethod("letterswithbasicpunc",function(n,t){return this.optional(t)||/^[a-z\-.,()'"\s]+$/i.test(n)},"Letters or punctuation only please"),n.validator.addMethod("mobileNL",function(n,t){return this.optional(t)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(n)},"Please specify a valid mobile number"),n.validator.addMethod("mobileUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number"),n.validator.addMethod("netmask",function(n,t){return this.optional(t)||/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(254|252|248|240|224|192|128|0)/i.test(n)},"Please enter a valid netmask."),n.validator.addMethod("nieES",function(n,t){"use strict";if(this.optional(t))return!0;var r=new RegExp(/^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi),u=n.substr(n.length-1).toUpperCase(),i;return(n=n.toString().toUpperCase(),n.length>10||n.length<9||!r.test(n))?!1:(n=n.replace(/^[X]/,"0").replace(/^[Y]/,"1").replace(/^[Z]/,"2"),i=n.length===9?n.substr(0,8):n.substr(0,9),"TRWAGMYFPDXBNJZSQVHLCKET".charAt(parseInt(i,10)%23)===u)},"Please specify a valid NIE number."),n.validator.addMethod("nifES",function(n,t){"use strict";return this.optional(t)?!0:(n=n.toUpperCase(),!n.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)"))?!1:/^[0-9]{8}[A-Z]{1}$/.test(n)?"TRWAGMYFPDXBNJZSQVHLCKE".charAt(n.substring(8,0)%23)===n.charAt(8):/^[KLM]{1}/.test(n)?n[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(n.substring(8,1)%23):!1},"Please specify a valid NIF number."),n.validator.addMethod("nipPL",function(n){"use strict";var u,i,t,r,f;if(n=n.replace(/[^0-9]/g,""),n.length!==10)return!1;for(u=[6,5,7,2,3,4,5,6,7],i=0,t=0;t<9;t++)i+=u[t]*n[t];return r=i%11,f=r===10?0:r,f===parseInt(n[9],10)},"Please specify a valid NIP number."),n.validator.addMethod("notEqualTo",function(t,i,r){return this.optional(i)||!n.validator.methods.equalTo.call(this,t,i,r)},"Please enter a different value, values must not be the same."),n.validator.addMethod("nowhitespace",function(n,t){return this.optional(t)||/^\S+$/i.test(n)},"No white space please"),n.validator.addMethod("pattern",function(n,t,i){return this.optional(t)?!0:(typeof i=="string"&&(i=new RegExp("^(?:"+i+")$")),i.test(n))},"Invalid format."),n.validator.addMethod("phoneNL",function(n,t){return this.optional(t)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(n)},"Please specify a valid phone number."),n.validator.addMethod("phonesUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number"),n.validator.addMethod("phoneUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)},"Please specify a valid phone number"),n.validator.addMethod("phoneUS",function(n,t){return n=n.replace(/\s+/g,""),this.optional(t)||n.length>9&&n.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/)},"Please specify a valid phone number"),n.validator.addMethod("postalcodeBR",function(n,t){return this.optional(t)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(n)},"Informe um CEP válido."),n.validator.addMethod("postalCodeCA",function(n,t){return this.optional(t)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(n)},"Please specify a valid postal code"),n.validator.addMethod("postalcodeIT",function(n,t){return this.optional(t)||/^\d{5}$/.test(n)},"Please specify a valid postal code"),n.validator.addMethod("postalcodeNL",function(n,t){return this.optional(t)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(n)},"Please specify a valid postal code"),n.validator.addMethod("postcodeUK",function(n,t){return this.optional(t)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(n)},"Please specify a valid UK postcode"),n.validator.addMethod("require_from_group",function(t,i,r){var u=n(r[1],i.form),f=u.eq(0),e=f.data("valid_req_grp")?f.data("valid_req_grp"):n.extend({},this),o=u.filter(function(){return e.elementValue(this)}).length>=r[0];return f.data("valid_req_grp",e),n(i).data("being_validated")||(u.data("being_validated",!0),u.each(function(){e.element(this)}),u.data("being_validated",!1)),o},n.validator.format("Please fill at least {0} of these fields.")),n.validator.addMethod("skip_or_fill_minimum",function(t,i,r){var u=n(r[1],i.form),f=u.eq(0),e=f.data("valid_skip")?f.data("valid_skip"):n.extend({},this),o=u.filter(function(){return e.elementValue(this)}).length,s=o===0||o>=r[0];return f.data("valid_skip",e),n(i).data("being_validated")||(u.data("being_validated",!0),u.each(function(){e.element(this)}),u.data("being_validated",!1)),s},n.validator.format("Please either skip these fields or fill at least {0} of them.")),n.validator.addMethod("stateUS",function(n,t,i){var u=typeof i=="undefined",o=u||typeof i.caseSensitive=="undefined"?!1:i.caseSensitive,f=u||typeof i.includeTerritories=="undefined"?!1:i.includeTerritories,e=u||typeof i.includeMilitary=="undefined"?!1:i.includeMilitary,r;return r=f||e?f&&e?"^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":f?"^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":"^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$":"^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$",r=o?new RegExp(r):new RegExp(r,"i"),this.optional(t)||r.test(n)},"Please specify a valid state"),n.validator.addMethod("strippedminlength",function(t,i,r){return n(t).text().length>=r},n.validator.format("Please enter at least {0} characters")),n.validator.addMethod("time",function(n,t){return this.optional(t)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(n)},"Please enter a valid time, between 00:00 and 23:59"),n.validator.addMethod("time12h",function(n,t){return this.optional(t)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(n)},"Please enter a valid time in 12-hour am/pm format"),n.validator.addMethod("url2",function(n,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},n.validator.messages.url),n.validator.addMethod("vinUS",function(n){if(n.length!==17)return!1;for(var e=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],h=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],c=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],s=0,i,t,o,u,f,r=0;r<17;r++){if(o=c[r],t=n.slice(r,r+1),r===8&&(f=t),isNaN(t)){for(i=0;i<e.length;i++)if(t.toUpperCase()===e[i]){t=h[i];t*=o;isNaN(f)&&i===8&&(f=e[i]);break}}else t*=o;s+=t}return(u=s%11,u===10&&(u="X"),u===f)?!0:!1},"The specified vehicle identification number (VIN) is invalid."),n.validator.addMethod("zipcodeUS",function(n,t){return this.optional(t)||/^\d{5}(-\d{4})?$/.test(n)},"The specified US ZIP Code is invalid"),n.validator.addMethod("ziprange",function(n,t){return this.optional(t)||/^90[2-5]\d\{2\}-\d{4}$/.test(n)},"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx"),n}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&typeof require=="function"?n(require("jquery")):n(jQuery)}(function(n){"use strict";function i(t,r){var u=this;u.element=t;u.el=n(t);u.suggestions=[];u.badQueries=[];u.selectedIndex=-1;u.currentValue=u.element.value;u.timeoutId=null;u.cachedResponse={};u.onChangeTimeout=null;u.onChange=null;u.isLocal=!1;u.suggestionsContainer=null;u.noSuggestionsContainer=null;u.options=n.extend(!0,{},i.defaults,r);u.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};u.hint=null;u.hintValue="";u.selection=null;u.initialize();u.setOptions(r)}function f(n,t,i){return n.value.toLowerCase().indexOf(i)!==-1}function e(t){return typeof t=="string"?n.parseJSON(t):t}function o(n,t){if(!t)return n.value;var i="("+u.escapeRegExChars(t)+")";return n.value.replace(new RegExp(i,"gi"),"<strong>$1<\/strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")}function s(n,t){return'<div class="autocomplete-group">'+t+"<\/div>"}var u=function(){return{escapeRegExChars:function(n){return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(n){var t=document.createElement("div");return t.className=n,t.style.position="absolute",t.style.display="none",t.setAttribute("unselectable","on"),t}}}(),t={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},r=n.noop;i.utils=u;n.Autocomplete=i;i.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:o,formatGroup:s,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:r,onSearchComplete:r,onSearchError:r,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:f,paramName:"query",transformResult:e,showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};i.prototype={initialize:function(){var t=this,f="."+t.classes.suggestion,e=t.classes.selected,u=t.options,r;t.element.setAttribute("autocomplete","off");t.noSuggestionsContainer=n('<div class="autocomplete-no-suggestion"><\/div>').html(this.options.noSuggestionNotice).get(0);t.suggestionsContainer=i.utils.createNode(u.containerClass);r=n(t.suggestionsContainer);r.appendTo(u.appendTo||"body");u.width!=="auto"&&r.css("width",u.width);r.on("mouseover.autocomplete",f,function(){t.activate(n(this).data("index"))});r.on("mouseout.autocomplete",function(){t.selectedIndex=-1;r.children("."+e).removeClass(e)});r.on("click.autocomplete",f,function(){t.select(n(this).data("index"))});r.on("click.autocomplete",function(){clearTimeout(t.blurTimeoutId)});t.fixPositionCapture=function(){t.visible&&t.fixPosition()};n(window).on("resize.autocomplete",t.fixPositionCapture);t.el.on("keydown.autocomplete",function(n){t.onKeyPress(n)});t.el.on("keyup.autocomplete",function(n){t.onKeyUp(n)});t.el.on("blur.autocomplete",function(){t.onBlur()});t.el.on("focus.autocomplete",function(){t.onFocus()});t.el.on("change.autocomplete",function(n){t.onKeyUp(n)});t.el.on("input.autocomplete",function(n){t.onKeyUp(n)})},onFocus:function(){var n=this;n.fixPosition();n.el.val().length>=n.options.minChars&&n.onValueChange()},onBlur:function(){var n=this;n.blurTimeoutId=setTimeout(function(){n.hide()},200)},abortAjax:function(){var n=this;n.currentRequest&&(n.currentRequest.abort(),n.currentRequest=null)},setOptions:function(t){var r=this,i=n.extend({},r.options,t);r.isLocal=Array.isArray(i.lookup);r.isLocal&&(i.lookup=r.verifySuggestionsFormat(i.lookup));i.orientation=r.validateOrientation(i.orientation,"bottom");n(r.suggestionsContainer).css({"max-height":i.maxHeight+"px",width:i.width+"px","z-index":i.zIndex});this.options=i},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){var n=this;n.disabled=!0;clearTimeout(n.onChangeTimeout);n.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,i=n(t.suggestionsContainer),f=i.parent().get(0),h,e;if(f===document.body||t.options.forceFixPosition){var o=t.options.orientation,s=i.outerHeight(),c=t.el.outerHeight(),u=t.el.offset(),r={top:u.top,left:u.left};if(o==="auto"){var v=n(window).height(),l=n(window).scrollTop(),a=-l+u.top-s,y=l+v-(u.top+c+s);o=Math.max(a,y)===a?"top":"bottom"}r.top+=o==="top"?-s:c;f!==document.body&&(h=i.css("opacity"),t.visible||i.css("opacity",0).show(),e=i.offsetParent().offset(),r.top-=e.top,r.top+=f.scrollTop,r.left-=e.left,t.visible||i.css("opacity",h).hide());t.options.width==="auto"&&(r.width=t.el.outerWidth()+"px");i.css(r)}},isCursorAtEnd:function(){var i=this,n=i.el.val().length,r=i.element.selectionStart,t;return typeof r=="number"?r===n:document.selection?(t=document.selection.createRange(),t.moveStart("character",-n),n===t.text.length):!0},onKeyPress:function(n){var i=this;if(!i.disabled&&!i.visible&&n.which===t.DOWN&&i.currentValue){i.suggest();return}if(!i.disabled&&i.visible){switch(n.which){case t.ESC:i.el.val(i.currentValue);i.hide();break;case t.RIGHT:if(i.hint&&i.options.onHint&&i.isCursorAtEnd()){i.selectHint();break}return;case t.TAB:if(i.hint&&i.options.onHint){i.selectHint();return}if(i.selectedIndex===-1){i.hide();return}if(i.select(i.selectedIndex),i.options.tabDisabled===!1)return;break;case t.RETURN:if(i.selectedIndex===-1){i.hide();return}i.select(i.selectedIndex);break;case t.UP:i.moveUp();break;case t.DOWN:i.moveDown();break;default:return}n.stopImmediatePropagation();n.preventDefault()}},onKeyUp:function(n){var i=this;if(!i.disabled){switch(n.which){case t.UP:case t.DOWN:return}clearTimeout(i.onChangeTimeout);i.currentValue!==i.el.val()&&(i.findBestHint(),i.options.deferRequestBy>0?i.onChangeTimeout=setTimeout(function(){i.onValueChange()},i.options.deferRequestBy):i.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange){this.ignoreValueChange=!1;return}var t=this,r=t.options,u=t.el.val(),i=t.getQuery(u);if(t.selection&&t.currentValue!==i&&(t.selection=null,(r.onInvalidateSelection||n.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=u,t.selectedIndex=-1,r.triggerSelectOnValidInput&&t.isExactMatch(i)){t.select(0);return}i.length<r.minChars?t.hide():t.getSuggestions(i)},isExactMatch:function(n){var t=this.suggestions;return t.length===1&&t[0].value.toLowerCase()===n.toLowerCase()},getQuery:function(t){var r=this.options.delimiter,i;return r?(i=t.split(r),n.trim(i[i.length-1])):t},getSuggestionsLocal:function(t){var f=this,r=f.options,e=t.toLowerCase(),o=r.lookupFilter,u=parseInt(r.lookupLimit,10),i;return i={suggestions:n.grep(r.lookup,function(n){return o(n,t,e)})},u&&i.suggestions.length>u&&(i.suggestions=i.suggestions.slice(0,u)),i},getSuggestions:function(t){var u,i=this,r=i.options,f=r.serviceUrl,e,o,s;if(r.params[r.paramName]=t,r.onSearchStart.call(i.element,r.params)!==!1){if(e=r.ignoreParams?null:r.params,n.isFunction(r.lookup)){r.lookup(t,function(n){i.suggestions=n.suggestions;i.suggest();r.onSearchComplete.call(i.element,t,n.suggestions)});return}i.isLocal?u=i.getSuggestionsLocal(t):(n.isFunction(f)&&(f=f.call(i.element,t)),o=f+"?"+n.param(e||{}),u=i.cachedResponse[o]);u&&Array.isArray(u.suggestions)?(i.suggestions=u.suggestions,i.suggest(),r.onSearchComplete.call(i.element,t,u.suggestions)):i.isBadQuery(t)?r.onSearchComplete.call(i.element,t,[]):(i.abortAjax(),s={url:f,data:e,type:r.type,dataType:r.dataType},n.extend(s,r.ajaxSettings),i.currentRequest=n.ajax(s).done(function(n){var u;i.currentRequest=null;u=r.transformResult(n,t);i.processResponse(u,t,o);r.onSearchComplete.call(i.element,t,u.suggestions)}).fail(function(n,u,f){r.onSearchError.call(i.element,t,n,u,f)}))}},isBadQuery:function(n){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,i=t.length;i--;)if(n.indexOf(t[i])===0)return!0;return!1},hide:function(){var t=this,i=n(t.suggestionsContainer);n.isFunction(t.options.onHide)&&t.visible&&t.options.onHide.call(t.element,i);t.visible=!1;t.selectedIndex=-1;clearTimeout(t.onChangeTimeout);n(t.suggestionsContainer).hide();t.signalHint(null)},suggest:function(){if(!this.suggestions.length){this.options.showNoSuggestionNotice?this.noSuggestions():this.hide();return}var t=this,i=t.options,o=i.groupBy,c=i.formatResult,u=t.getQuery(t.currentValue),s=t.classes.suggestion,l=t.classes.selected,r=n(t.suggestionsContainer),a=n(t.noSuggestionsContainer),h=i.beforeRender,f="",e,v=function(n){var t=n.data[o];return e===t?"":(e=t,i.formatGroup(n,e))};if(i.triggerSelectOnValidInput&&t.isExactMatch(u)){t.select(0);return}n.each(t.suggestions,function(n,t){o&&(f+=v(t,u,n));f+='<div class="'+s+'" data-index="'+n+'">'+c(t,u,n)+"<\/div>"});this.adjustContainerWidth();a.detach();r.html(f);n.isFunction(h)&&h.call(t.element,r,t.suggestions);t.fixPosition();r.show();i.autoSelectFirst&&(t.selectedIndex=0,r.scrollTop(0),r.children("."+s).first().addClass(l));t.visible=!0;t.findBestHint()},noSuggestions:function(){var t=this,r=t.options.beforeRender,i=n(t.suggestionsContainer),u=n(t.noSuggestionsContainer);this.adjustContainerWidth();u.detach();i.empty();i.append(u);n.isFunction(r)&&r.call(t.element,i,t.suggestions);t.fixPosition();i.show();t.visible=!0},adjustContainerWidth:function(){var t=this,r=t.options,i,u=n(t.suggestionsContainer);r.width==="auto"?(i=t.el.outerWidth(),u.css("width",i>0?i:300)):r.width==="flex"&&u.css("width","")},findBestHint:function(){var t=this,i=t.el.val().toLowerCase(),r=null;i&&(n.each(t.suggestions,function(n,t){var u=t.value.toLowerCase().indexOf(i)===0;return u&&(r=t),!u}),t.signalHint(r))},signalHint:function(t){var r="",i=this;t&&(r=i.currentValue+t.value.substr(i.currentValue.length));i.hintValue!==r&&(i.hintValue=r,i.hint=t,(this.options.onHint||n.noop)(r))},verifySuggestionsFormat:function(t){return t.length&&typeof t[0]=="string"?n.map(t,function(n){return{value:n,data:null}}):t},validateOrientation:function(t,i){return t=n.trim(t||"").toLowerCase(),n.inArray(t,["auto","bottom","top"])===-1&&(t=i),t},processResponse:function(n,t,i){var r=this,u=r.options;(n.suggestions=r.verifySuggestionsFormat(n.suggestions),u.noCache||(r.cachedResponse[i]=n,u.preventBadQueries&&!n.suggestions.length&&r.badQueries.push(t)),t===r.getQuery(r.currentValue))&&(r.suggestions=n.suggestions,r.suggest())},activate:function(t){var i=this,r,u=i.classes.selected,f=n(i.suggestionsContainer),e=f.find("."+i.classes.suggestion);return(f.find("."+u).removeClass(u),i.selectedIndex=t,i.selectedIndex!==-1&&e.length>i.selectedIndex)?(r=e.get(i.selectedIndex),n(r).addClass(u),r):null},selectHint:function(){var t=this,i=n.inArray(t.hint,t.suggestions);t.select(i)},select:function(n){var t=this;t.hide();t.onSelect(n)},moveUp:function(){var t=this;if(t.selectedIndex!==-1){if(t.selectedIndex===0){n(t.suggestionsContainer).children("."+t.classes.suggestion).first().removeClass(t.classes.selected);t.selectedIndex=-1;t.ignoreValueChange=!1;t.el.val(t.currentValue);t.findBestHint();return}t.adjustScroll(t.selectedIndex-1)}},moveDown:function(){var n=this;n.selectedIndex!==n.suggestions.length-1&&n.adjustScroll(n.selectedIndex+1)},adjustScroll:function(t){var i=this,u=i.activate(t),r,f,o,e;u&&(e=n(u).outerHeight(),r=u.offsetTop,f=n(i.suggestionsContainer).scrollTop(),o=f+i.options.maxHeight-e,r<f?n(i.suggestionsContainer).scrollTop(r):r>o&&n(i.suggestionsContainer).scrollTop(r-i.options.maxHeight+e),i.options.preserveInput||(i.ignoreValueChange=!0,i.el.val(i.getValue(i.suggestions[t].value))),i.signalHint(null))},onSelect:function(t){var i=this,u=i.options.onSelect,r=i.suggestions[t];i.currentValue=i.getValue(r.value);i.currentValue===i.el.val()||i.options.preserveInput||i.el.val(i.currentValue);i.signalHint(null);i.suggestions=[];i.selection=r;n.isFunction(u)&&u.call(i.element,r)},getValue:function(n){var r=this,u=r.options.delimiter,t,i;return u?(t=r.currentValue,i=t.split(u),i.length===1)?n:t.substr(0,t.length-i[i.length-1].length)+n:n},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete");n(window).off("resize.autocomplete",t.fixPositionCapture);n(t.suggestionsContainer).remove()}};n.fn.devbridgeAutocomplete=function(t,r){var u="autocomplete";return arguments.length?this.each(function(){var e=n(this),f=e.data(u);f===undefined&&(f=new i(this,t),e.data(u,f));typeof t=="string"?f&&typeof f[t]=="function"&&f[t](r):(f&&f.dispose&&f.dispose(),f=new i(this,t),e.data(u,f))}):this.first().data(u)};n.fn.autocomplete||(n.fn.autocomplete=n.fn.devbridgeAutocomplete)});!function(n,t){"function"==typeof define&&define.amd?define([],function(){return n.svg4everybody=t()}):"object"==(typeof module=="undefined"?"undefined":_typeof(module))&&module.exports?module.exports=t():n.svg4everybody=t()}(this,function(){function n(n,t,i){var r,u,f;if(i){for(r=document.createDocumentFragment(),u=!t.hasAttribute("viewBox")&&i.getAttribute("viewBox"),u&&t.setAttribute("viewBox",u),f=i.cloneNode(!0);f.childNodes.length;)r.appendChild(f.firstChild);n.appendChild(r)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var i=t._cachedDocument;i||(i=t._cachedDocument=document.implementation.createHTMLDocument(""),i.body.innerHTML=t.responseText,t._cachedTarget={});t._embeds.splice(0).map(function(r){var u=t._cachedTarget[r.id];u||(u=t._cachedTarget[r.id]=i.getElementById(r.id));n(r.parent,r.svg,u)})}};t.onreadystatechange()}function i(i){function o(){for(var i,a=0;a<f.length;){var c=f[a],y=c.parentNode,p=r(y),v=c.getAttribute("xlink:href")||c.getAttribute("href");if(!v&&u.attributeName&&(v=c.getAttribute(u.attributeName)),p&&v){if(e)if(!u.validate||u.validate(v,p,c)){y.removeChild(c);var b=v.split("#"),w=b.shift(),k=b.join("#");w.length?(i=s[w],i||(i=s[w]=new XMLHttpRequest,i.open("GET",w),i.send(),i._embeds=[]),i._embeds.push({parent:y,svg:p,id:k}),t(i)):n(y,p,document.getElementById(k))}else++a,++h}else++a}(!f.length||f.length-h>0)&&l(o,67)}var e,u=Object(i),c=window.top!==window.self;e="polyfill"in u?u.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&c;var s={},l=window.requestAnimationFrame||setTimeout,f=document.getElementsByTagName("use"),h=0;e&&o()}function r(n){for(var t=n;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}return i}),function(n,t){(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&(typeof module=="undefined"?"undefined":_typeof(module))==="object"?module.exports=t():typeof define=="function"&&define.amd?define([],t):(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"?exports.SirTrevor=t():n.SirTrevor=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}(function(n){for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))switch(_typeof(n[t])){case"function":break;case"object":n[t]=function(t){var i=t.slice(1),r=n[t[0]];return function(n,t,u){r.apply(this,[n,t,u].concat(i))}}(n[t]);break;default:n[t]=n[n[t]]}return n}([function(n,t,i){"use strict";n.exports=i(1);i(314)},function(n,t,i){"use strict";var u=i(2)["default"],f,r;i(17);i(18).shim();i(21);i(22);i(23).polyfill();f=i(29);r={config:i(82),log:f.log,Locales:i(86),Events:i(87),EventBus:i(89),EditorStore:i(90),Submittable:i(91),FileUploader:i(92),BlockMixins:i(142),BlockPositioner:i(268),BlockReorder:i(271),BlockDeletion:i(272),BlockValidations:i(273),BlockStore:i(274),BlockManager:i(275),SimpleBlock:i(279),Block:i(278),Blocks:i(276),FormatBar:i(303),Editor:i(305),toMarkdown:i(313),toHTML:i(287),setDefaults:function(n){u(r.config.defaults,n||{})},getInstance:f.getInstance,setBlockOptions:function(n,t){var i=r.Blocks[n];typeof i!="undefined"&&u(i.prototype,t||{})},runOnAllInstances:function(n){if(r.Editor.prototype.hasOwnProperty(n)){var t=Array.prototype.slice.call(arguments,1);Array.prototype.forEach.call(r.config.instances,function(i){i[n].apply(null,t)})}else r.log("method doesn't exist")}};u(r,i(306));n.exports=r},function(n,t,i){n.exports={"default":i(3),__esModule:!0}},function(n,t,i){i(4);n.exports=i(7).Object.assign},function(n,t,i){var r=i(5);r(r.S+r.F,"Object",{assign:i(10)})},function(n,t,i){var f=i(6),e=i(7),o=i(8),u="prototype",r=function r(n,t,i){var p=n&r.F,l=n&r.G,w=n&r.S,y=n&r.P,b=n&r.B,k=n&r.W,a=l?e:e[t]||(e[t]={}),c=l?f:w?f[t]:(f[t]||{})[u],s,v,h;l&&(i=t);for(s in i)(v=!p&&c&&s in c,v&&s in a)||(h=v?c[s]:i[s],a[s]=l&&typeof c[s]!="function"?i[s]:b&&v?o(h,f):k&&c[s]==h?function(n){var t=function(t){return this instanceof n?new n(t):n(t)};return t[u]=n[u],t}(h):y&&typeof h=="function"?o(Function.call,h):h,y&&((a[u]||(a[u]={}))[s]=h))};r.F=1;r.G=2;r.S=4;r.P=8;r.B=16;r.W=32;n.exports=r},function(n){var t=n.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=t)},function(n){var t=n.exports={version:"1.2.6"};typeof __e=="number"&&(__e=t)},function(n,t,i){var r=i(9);n.exports=function(n,t,i){if(r(n),t===undefined)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},function(n){n.exports=function(n){if(typeof n!="function")throw TypeError(n+" is not a function!");return n}},function(n,t,i){var r=i(11),u=i(12),f=i(14);n.exports=i(16)(function(){var n=Object.assign,t={},i={},r=Symbol(),u="abcdefghijklmnopqrst";return t[r]=7,u.split("").forEach(function(n){i[n]=n}),n({},t)[r]!=7||Object.keys(n({},i)).join("")!=u})?function(n){for(var e=u(n),o=arguments,v=o.length,s=1,h=r.getKeys,c=r.getSymbols,y=r.isEnum;v>s;)for(var t=f(o[s++]),l=c?h(t).concat(c(t)):h(t),p=l.length,a=0,i;p>a;)y.call(t,i=l[a++])&&(e[i]=t[i]);return e}:Object.assign},function(n){var t=Object;n.exports={create:t.create,getProto:t.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:t.getOwnPropertyDescriptor,setDesc:t.defineProperty,setDescs:t.defineProperties,getKeys:t.keys,getNames:t.getOwnPropertyNames,getSymbols:t.getOwnPropertySymbols,each:[].forEach}},function(n,t,i){var r=i(13);n.exports=function(n){return Object(r(n))}},function(n){n.exports=function(n){if(n==undefined)throw TypeError("Can't call method on  "+n);return n}},function(n,t,i){var r=i(15);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return r(n)=="String"?n.split(""):Object(n)}},function(n){var t={}.toString;n.exports=function(n){return t.call(n).slice(8,-1)}},function(n){n.exports=function(n){try{return!!n()}catch(t){return!0}}},function(){},function(n,t,i){"use strict";var u=i(19),f=function(n){return typeof n!="undefined"&&n!==null},r=function(n){if(!f(n))throw new TypeError("target must be an object");for(var o=Object(n),r,t,i,e=1;e<arguments.length;++e)for(r=Object(arguments[e]),i=u(r),t=0;t<i.length;++t)o[i[t]]=r[i[t]];return o};r.shim=function(){return Object.assign||(Object.assign=r),Object.assign||r};n.exports=r},function(n,t,i){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,c=Array.prototype.slice,s=i(20),h=Object.prototype.propertyIsEnumerable,l=!h.call({toString:null},"toString"),a=h.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e=function(n){var t=n.constructor;return t&&t.prototype===n},v={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if(typeof window=="undefined")return!1;for(var n in window)try{if(!v["$"+n]&&r.call(window,n)&&window[n]!==null&&_typeof(window[n])==="object")try{e(window[n])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(n){if(typeof window=="undefined"||!y)return e(n);try{return e(n)}catch(t){return!1}},f=function(n){var c=n!==null&&(typeof n=="undefined"?"undefined":_typeof(n))==="object",v=o.call(n)==="[object Function]",y=s(n),k=c&&o.call(n)==="[object String]",i=[],w,f,e,h,b,t;if(!c&&!v&&!y)throw new TypeError("Object.keys called on a non-object");if(w=a&&v,k&&n.length>0&&!r.call(n,0))for(f=0;f<n.length;++f)i.push(String(f));if(y&&n.length>0)for(e=0;e<n.length;++e)i.push(String(e));else for(h in n)w&&h==="prototype"||!r.call(n,h)||i.push(String(h));if(l)for(b=p(n),t=0;t<u.length;++t)b&&u[t]==="constructor"||!r.call(n,u[t])||i.push(u[t]);return i};f.shim=function(){var t,n;return Object.keys?(t=function(){return(Object.keys(arguments)||"").length===2}(1,2),t||(n=Object.keys,Object.keys=function(t){return s(t)?n(c.call(t)):n(t)})):Object.keys=f,Object.keys||f};n.exports=f},function(n){"use strict";var t=Object.prototype.toString;n.exports=function(n){var r=t.call(n),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&n!==null&&(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&typeof n.length=="number"&&n.length>=0&&t.call(n.callee)==="[object Function]"),i}},function(){(function(){if(!Array.prototype.find){var n=function(n){var i=Object(this),u=i.length<0?0:i.length>>>0,f,t,r;if(u===0)return undefined;if(typeof n!="function"||Object.prototype.toString.call(n)!=="[object Function]")throw new TypeError("Array#find: predicate must be a function");for(f=arguments[1],t=0;t<u;t++)if(r=i[t],n.call(f,r,t,i))return r;return undefined};if(Object.defineProperty)try{Object.defineProperty(Array.prototype,"find",{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(t){}Array.prototype.find||(Array.prototype.find=n)}})(this)},function(){"use strict";Array.prototype.includes||(Array.prototype.includes=function(n){var f=Object(this),u=parseInt(f.length)||0,i,t,r;if(u===0)return!1;for(i=parseInt(arguments[1])||0,i>=0?t=i:(t=u+i,t<0&&(t=0));t<u;){if(r=f[t],n===r||n!==n&&r!==r)return!0;t++}return!1})},function(n,t,i){var u,r;(function(n,f,e,o){(function(){"use strict";function ui(n){return typeof n=="function"||(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&n!==null}function ut(n){return typeof n=="function"}function fi(n){return(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&n!==null}function ei(n){st=n}function oi(n){v=n}function si(){var i=n.nextTick,t=n.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(t)&&t[1]==="0"&&t[2]==="10"&&(i=f),function(){i(w)}}function hi(){return function(){ni(w)}}function ci(){var n=0,i=new ri(w),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function li(){var n=new MessageChannel;return n.port1.onmessage=w,function(){n.port2.postMessage(0)}}function ht(){return function(){setTimeout(w,1)}}function w(){for(var t,i,n=0;n<d;n+=2)t=a[n],i=a[n+1],t(i),a[n]=undefined,a[n+1]=undefined;d=0}function ai(){try{var t=u,n=i(27);return ni=n.runOnLoop||n.runOnContext,hi()}catch(r){return ht()}}function b(){}function vi(){return new TypeError("You cannot resolve a promise with itself")}function yi(){return new TypeError("A promises callback cannot return that same promise.")}function pi(n){try{return n.then}catch(t){return rt.error=t,rt}}function wi(n,t,i,r){try{n.call(t,i,r)}catch(u){return u}}function bi(n,t,i){v(function(n){var r=!1,u=wi(i,t,function(i){r||(r=!0,t!==i?k(n,i):c(n,i))},function(t){r||(r=!0,s(n,t))},"Settle: "+(n._label||" unknown promise"));!r&&u&&(r=!0,s(n,u))},n)}function ki(n,t){t._state===g?c(n,t._result):t._state===p?s(n,t._result):nt(t,undefined,function(t){k(n,t)},function(t){s(n,t)})}function di(n,t){if(t.constructor===n.constructor)ki(n,t);else{var i=pi(t);i===rt?s(n,rt.error):i===undefined?c(n,t):ut(i)?bi(n,t,i):c(n,t)}}function k(n,t){n===t?s(n,vi()):ui(t)?di(n,t):c(n,t)}function gi(n){n._onerror&&n._onerror(n._result);ft(n)}function c(n,t){n._state===y&&(n._result=t,n._state=g,n._subscribers.length!==0&&v(ft,n))}function s(n,t){n._state===y&&(n._state=p,n._result=t,v(gi,n))}function nt(n,t,i,r){var u=n._subscribers,f=u.length;n._onerror=null;u[f]=t;u[f+g]=i;u[f+p]=r;f===0&&n._state&&v(ft,n)}function ft(n){var i=n._subscribers,e=n._state,r,u,f,t;if(i.length!==0){for(f=n._result,t=0;t<i.length;t+=3)r=i[t],u=i[t+e],r?lt(e,r,u,f):u(f);n._subscribers.length=0}}function ct(){this.error=null}function nr(n,t){try{return n(t)}catch(i){return tt.error=i,tt}}function lt(n,t,i,r){var e=ut(i),u,o,f,h;if(e){if(u=nr(i,r),u===tt?(h=!0,o=u.error,u=null):f=!0,t===u){s(t,yi());return}}else u=r,f=!0;t._state!==y||(e&&f?k(t,u):h?s(t,o):n===g?c(t,u):n===p&&s(t,u))}function tr(n,t){try{t(function(t){k(n,t)},function(t){s(n,t)})}catch(i){s(n,i)}}function l(n,t){var i=this;i._instanceConstructor=n;i.promise=new n(b);i._validateInput(t)?(i._input=t,i.length=t.length,i._remaining=t.length,i._init(),i.length===0?c(i.promise,i._result):(i.length=i.length||0,i._enumerate(),i._remaining===0&&c(i.promise,i._result))):s(i.promise,i._validationError())}function ir(n){return new yt(this,n).promise}function rr(n){function f(n){k(t,n)}function e(n){s(t,n)}var r=this,t=new r(b),u,i;if(!gt(n))return s(t,new TypeError("You must pass an array to race.")),t;for(u=n.length,i=0;t._state===y&&i<u;i++)nt(r.resolve(n[i]),undefined,f,e);return t}function ur(n){var i=this,t;return n&&(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&n.constructor===i?n:(t=new i(b),k(t,n),t)}function fr(n){var i=this,t=new i(b);return s(t,n),t}function er(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function or(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function h(n){this._id=dt++;this._state=undefined;this._result=undefined;this._subscribers=[];b!==n&&(ut(n)||er(),this instanceof h||or(),tr(this,n))}function sr(){var n,t;if(typeof e!="undefined")n=e;else if(typeof self!="undefined")n=self;else try{n=Function("return this")()}catch(i){throw new Error("polyfill failed because global object is unavailable in this environment");}(t=n.Promise,!t||Object.prototype.toString.call(t.resolve())!=="[object Promise]"||t.cast)&&(n.Promise=et)}var at,a,vt,tt,yt,pt,wt,bt,kt,dt,et,ot,it;at=Array.isArray?Array.isArray:function(n){return Object.prototype.toString.call(n)==="[object Array]"};var gt=at,d=0,lr={}.toString,ni,st,v=function(n,t){a[d]=n;a[d+1]=t;d+=2;d===2&&(st?st(w):vt())},ti=typeof window!="undefined"?window:undefined,ii=ti||{},ri=ii.MutationObserver||ii.WebKitMutationObserver,hr=typeof n!="undefined"&&{}.toString.call(n)==="[object process]",cr=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";a=new Array(1e3);vt=hr?si():ri?ci():cr?li():ti===undefined&&!0?ai():ht();var y=void 0,g=1,p=2,rt=new ct;tt=new ct;l.prototype._validateInput=function(n){return gt(n)};l.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")};l.prototype._init=function(){this._result=new Array(this.length)};yt=l;l.prototype._enumerate=function(){for(var n=this,i=n.length,r=n.promise,u=n._input,t=0;r._state===y&&t<i;t++)n._eachEntry(u[t],t)};l.prototype._eachEntry=function(n,t){var i=this,r=i._instanceConstructor;fi(n)?n.constructor===r&&n._state!==y?(n._onerror=null,i._settledAt(n._state,t,n._result)):i._willSettleAt(r.resolve(n),t):(i._remaining--,i._result[t]=n)};l.prototype._settledAt=function(n,t,i){var r=this,u=r.promise;u._state===y&&(r._remaining--,n===p?s(u,i):r._result[t]=i);r._remaining===0&&c(u,r._result)};l.prototype._willSettleAt=function(n,t){var i=this;nt(n,undefined,function(n){i._settledAt(g,t,n)},function(n){i._settledAt(p,t,n)})};pt=ir;wt=rr;bt=ur;kt=fr;dt=0;et=h;h.all=pt;h.race=wt;h.resolve=bt;h.reject=kt;h._setScheduler=ei;h._setAsap=oi;h._asap=v;h.prototype={constructor:h,then:function(n,t){var u=this,i=u._state,r,f,e;return i===g&&!n||i===p&&!t?this:(r=new this.constructor(b),f=u._result,i?(e=arguments[i-1],v(function(){lt(i,r,e,f)})):nt(u,r,n,t),r)},"catch":function(n){return this.then(null,n)}};ot=sr;it={Promise:et,polyfill:ot};!0&&i(28).amd?!(r=function(){return it}.call(t,i,t,o),r!==undefined&&(o.exports=r)):typeof o!="undefined"&&o.exports?o.exports=it:typeof this!="undefined"&&(this.ES6Promise=it);ot()}).call(this)}).call(t,i(24),i(25).setImmediate,function(){return this}(),i(26)(n))},function(n){function h(){throw new Error("setTimeout has not been defined");}function c(){throw new Error("clearTimeout has not been defined");}function l(n){if(i===setTimeout)return setTimeout(n,0);if((i===h||!i)&&setTimeout)return i=setTimeout,setTimeout(n,0);try{return i(n,0)}catch(t){try{return i.call(null,n,0)}catch(t){return i.call(this,n,0)}}}function y(n){if(r===clearTimeout)return clearTimeout(n);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(n);try{return r(n)}catch(t){try{return r.call(null,n)}catch(t){return r.call(this,n)}}}function p(){o&&e&&(o=!1,e.length?u=e.concat(u):s=-1,u.length&&a())}function a(){var t,n;if(!o){for(t=l(p),o=!0,n=u.length;n;){for(e=u,u=[];++s<n;)e&&e[s].run();s=-1;n=u.length}e=null;o=!1;y(t)}}function v(n,t){this.fun=n;this.array=t}function f(){}var t=n.exports={},i,r;(function(){try{i=typeof setTimeout=="function"?setTimeout:h}catch(n){i=h}try{r=typeof clearTimeout=="function"?clearTimeout:c}catch(n){r=c}})();var u=[],o=!1,e,s=-1;t.nextTick=function(n){var i=new Array(arguments.length-1),t;if(arguments.length>1)for(t=1;t<arguments.length;t++)i[t-1]=arguments[t];u.push(new v(n,i));u.length!==1||o||l(a)};v.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=!0;t.env={};t.argv=[];t.version="";t.versions={};t.on=f;t.addListener=f;t.once=f;t.off=f;t.removeListener=f;t.removeAllListeners=f;t.emit=f;t.binding=function(){throw new Error("process.binding is not supported");};t.cwd=function(){return"/"};t.chdir=function(){throw new Error("process.chdir is not supported");};t.umask=function(){return 0}},function(n,t,i){(function(n,r){function u(n,t){this._id=n;this._clearFn=t}var o=i(24).nextTick,e=Function.prototype.apply,s=Array.prototype.slice,f={},h=0;t.setTimeout=function(){return new u(e.call(setTimeout,window,arguments),clearTimeout)};t.setInterval=function(){return new u(e.call(setInterval,window,arguments),clearInterval)};t.clearTimeout=t.clearInterval=function(n){n.close()};u.prototype.unref=u.prototype.ref=function(){};u.prototype.close=function(){this._clearFn.call(window,this._id)};t.enroll=function(n,t){clearTimeout(n._idleTimeoutId);n._idleTimeout=t};t.unenroll=function(n){clearTimeout(n._idleTimeoutId);n._idleTimeout=-1};t._unrefActive=t.active=function(n){clearTimeout(n._idleTimeoutId);var t=n._idleTimeout;t>=0&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},t))};t.setImmediate=typeof n=="function"?n:function(n){var i=h++,r=arguments.length<2?!1:s.call(arguments,1);return f[i]=!0,o(function(){f[i]&&(r?n.apply(null,r):n.call(null),t.clearImmediate(i))}),i};t.clearImmediate=typeof r=="function"?r:function(n){delete f[n]}}).call(t,i(25).setImmediate,i(25).clearImmediate)},function(n){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children=[],n.webpackPolyfill=1),n}},function(){},function(n){n.exports=function(){throw new Error("define cannot be used indirect");}},function(n,t,i){"use strict";var o=i(30)["default"],f=i(34),r=i(82),e=i(83),s=/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,u={getInstance:function(n){return f.isUndefined(n)?r.instances[0]:f.isString(n)?r.instances.find(function(t){return t.ID===n}):r.instances[n]},getInstanceBySelection:function(){return u.getInstance(e.getClosest(window.getSelection().anchorNode.parentNode,".st-block").getAttribute("data-instance"))},getBlockBySelection:function(){return u.getInstanceBySelection().findBlockById(e.getClosest(window.getSelection().anchorNode.parentNode,".st-block").id)},log:function(){!f.isUndefined(console)&&r.debug&&console.log.apply(console,arguments)},isURI:function(n){return s.test(n)},titleize:function(n){return n===null?"":(n=String(n).toLowerCase(),n.replace(/(?:^|\s|-)\S/g,function(n){return n.toUpperCase()}))},classify:function(n){return u.titleize(String(n).replace(/[\W_]/g," ")).replace(/\s/g,"")},capitalize:function(n){return n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()},flatten:function(n){var t={};return(Array.isArray(n)?n:o(n)).forEach(function(n){t[n]=!0}),t},underscored:function(n){return n.trim().replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase()},reverse:function(n){return n.split("").reverse().join("")},toSlug:function(n){return n.toLowerCase().replace(/[^\w ]+/g,"").replace(/ +/g,"-")},leftTrim:function(n){return n.replace(/^\s+/,"")}};n.exports=u},function(n,t,i){n.exports={"default":i(31),__esModule:!0}},function(n,t,i){i(32);n.exports=i(7).Object.keys},function(n,t,i){var r=i(12);i(33)("keys",function(n){return function(t){return n(r(t))}})},function(n,t,i){var r=i(5),u=i(7),f=i(16);n.exports=function(n,t){var i=(u.Object||{})[n]||Object[n],e={};e[n]=t(i);r(r.S+r.F*f(function(){i(1)}),"Object",e)}},function(n,t,i){"use strict";t.isEmpty=i(35);t.isFunction=i(54);t.isObject=i(43);t.isString=i(62);t.isUndefined=i(63);t.result=i(64);t.template=i(65);t.uniqueId=i(81)},function(n,t,i){function r(n){var i=!0,t,r;return n?(t=l.call(n),r=n.length,t==o||t==h||t==e||t==s&&typeof r=="number"&&f(n.splice))?!r:(u(n,function(){return i=!1}),i):i}var u=i(36),f=i(54),e="[object Arguments]",o="[object Array]",s="[object Object]",h="[object String]",c=Object.prototype,l=c.toString;n.exports=r},function(n,t,i){var u=i(37),f=i(58),r=i(61),e=function(n,t,i){var o,e=n,s=e;if(!e||!r[typeof e=="undefined"?"undefined":_typeof(e)])return s;t=t&&typeof i=="undefined"?t:u(t,i,3);for(var c=-1,h=r[typeof e=="undefined"?"undefined":_typeof(e)]&&f(e),l=h?h.length:0;++c<l;)if(o=h[c],t(e[o],o,n)===!1)return s;return s};n.exports=e},function(n,t,i){function u(n,t,i){var u,l;if(typeof n!="function")return e;if(typeof t=="undefined"||!("prototype"in n)||(u=n.__bindData__,typeof u=="undefined"&&(r.funcNames&&(u=!n.name),u=u||!r.funcDecomp,u||(l=c.call(n),r.funcNames||(u=!s.test(l)),u||(u=h.test(l),o(n,u)))),u===!1||u!==!0&&u[1]&1))return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return f(n,t)}var f=i(38),e=i(55),o=i(46),r=i(56),s=/^\s*function[ \n\r\t]+\w/,h=/\bthis\b/,c=Function.prototype.toString;n.exports=u},function(n,t,i){function u(n,t){return arguments.length>2?r(n,17,f(arguments,2),null,t):r(n,1,null,null,t)}var r=i(39),f=i(49);n.exports=u},function(n,t,i){function u(n,t,i,f,l,a){var w=t&1,k=t&2,d=t&4,g=t&8,y=t&16,p=t&32,v,b;if(!k&&!s(n))throw new TypeError;return(y&&!i.length&&(t&=-17,y=i=!1),p&&!f.length&&(t&=-33,p=f=!1),v=n&&n.__bindData__,v&&v!==!0)?(v=r(v),v[2]&&(v[2]=r(v[2])),v[3]&&(v[3]=r(v[3])),!w||v[1]&1||(v[4]=l),!w&&v[1]&1&&(t|=8),!d||v[1]&4||(v[5]=a),y&&h.apply(v[2]||(v[2]=[]),i),p&&c.apply(v[3]||(v[3]=[]),f),v[1]|=t,u.apply(null,v)):(b=t==1||t===17?e:o,b([n,t,i,f,l,a]))}var e=i(40),o=i(50),s=i(54),r=i(49),f=[],h=f.push,c=f.unshift;n.exports=u},function(n,t,i){function r(n){function t(){var n,e,c;return(r&&(n=o(r),s.apply(n,arguments)),this instanceof t)?(e=u(i.prototype),c=i.apply(e,n||arguments),f(c)?c:e):i.apply(h,n||arguments)}var i=n[0],r=n[2],h=n[4];return e(t,n),t}var u=i(41),f=i(43),e=i(46),o=i(49),s=[].push;n.exports=r},[316,42,45],function(n){function t(n){return typeof n=="function"&&u.test(n)}var i=Object.prototype,r=i.toString,u=RegExp("^"+String(r).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");n.exports=t},function(n,t,i){function r(n){return!!(n&&u[typeof n=="undefined"?"undefined":_typeof(n)])}var u=i(44);n.exports=r},function(n){n.exports={boolean:!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1}},function(n){function t(){}n.exports=t},function(n,t,i){var f=i(47),e=i(48),r={configurable:!1,enumerable:!1,value:null,writable:!1},u=function(){try{var t={},n=f(n=Object.defineProperty)&&n,i=n(t,t,t)&&n}catch(r){}return i}(),o=u?function(n,t){r.value=t;u(n,"__bindData__",r)}:e;n.exports=o},42,45,function(n){function t(n,t,i){t||(t=0);typeof i=="undefined"&&(i=n?n.length:0);for(var r=-1,u=i-t||0,f=Array(u<0?0:u);++r<u;)f[r]=n[t+r];return f}n.exports=t},function(n,t,i){function r(n){function h(){var s=p?a:this,n,d;return(l&&(n=u(l),f.apply(n,arguments)),(c||y)&&(n||(n=u(arguments)),c&&f.apply(n,c),y&&n.length<v))?(t|=16,r([i,b?t:t&-4,n,null,a,v])):(n||(n=arguments),w&&(i=s[k]),this instanceof h)?(s=e(i.prototype),d=i.apply(s,n),o(d)?d:s):i.apply(s,n)}var i=n[0],t=n[1],l=n[2],c=n[3],a=n[4],v=n[5],p=t&1,w=t&2,y=t&4,b=t&8,k=i;return s(h,n),h}var e=i(51),o=i(43),s=i(46),u=i(49),f=[].push;n.exports=r},[316,52,53],42,45,function(n){function t(n){return typeof n=="function"}n.exports=t},function(n){function t(n){return n}n.exports=t},function(n,t,i){(function(t){var u=i(57),r={};r.funcDecomp=!u(t.WinRTError)&&/\bthis\b/.test(function(){return this});r.funcNames=typeof Function.name=="string";n.exports=r}).call(t,function(){return this}())},42,[317,59,60],42,[318,61],44,function(n){function t(n){return typeof n=="string"||n&&(typeof n=="undefined"?"undefined":_typeof(n))=="object"&&u.call(n)==i||!1}var i="[object String]",r=Object.prototype,u=r.toString;n.exports=t},function(n){function t(n){return typeof n=="undefined"}n.exports=t},function(n,t,i){function r(n,t){if(n){var i=n[t];return u(i)?n[t]():i}}var u=i(54);n.exports=r},function(n,t,i){function e(n,t,i){var g=f.imports._.templateSettings||f,w,k,b;n=String(n||"");i=u({},i,g);var nt=u({},i.imports,g.imports),ut=s(nt),ft=c(nt),d,tt=0,it=i.interpolate||r,e="__p += '",et=RegExp((i.escape||r).source+"|"+it.source+"|"+(it===h?y:r).source+"|"+(i.evaluate||r).source+"|$","g");n.replace(et,function(t,i,r,u,f,s){return r||(r=u),e+=n.slice(tt,s).replace(p,o),i&&(e+="' +\n__e("+i+") +\n'"),f&&(d=!0,e+="';\n"+f+";\n__p += '"),r&&(e+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),tt=s+t.length,t});e+="';\n";w=i.variable;k=w;k||(w="obj",e="with ("+w+") {\n"+e+"\n}\n");e=(d?e.replace(l,""):e).replace(a,"$1").replace(v,"$1;");e="function("+w+") {\n"+(k?"":w+" || ("+w+" = {});\n")+"var __t, __p = '', __e = _.escape"+(d?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+e+"return __p\n}";try{b=Function(ut,"return "+e).apply(undefined,ft)}catch(rt){rt.source=e;throw rt;}return t?b(t):(b.source=e,b)}var u=i(66),w=i(72),o=i(77),s=i(67),h=i(78),f=i(79),c=i(80),l=/\b__p \+= '';/g,a=/\b(__p \+=) '' \+/g,v=/(__e\(.*?\)|\b__t\)) \+\n'';/g,y=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,r=/($^)/,p=/['\n\r\t\u2028\u2029\\]/g;n.exports=e},function(n,t,i){var u=i(67),r=i(71),f=function(n,t,i){var e,f=n,o=f;if(!f)return o;for(var h=arguments,c=0,a=typeof i=="number"?2:h.length;++c<a;)if(f=h[c],f&&r[typeof f=="undefined"?"undefined":_typeof(f)])for(var l=-1,s=r[typeof f=="undefined"?"undefined":_typeof(f)]&&u(f),v=s?s.length:0;++l<v;)e=s[l],typeof o[e]=="undefined"&&(o[e]=f[e]);return o};n.exports=f},[317,68,69],42,[318,70],44,44,function(n,t,i){function r(n){return n==null?"":String(n).replace(f,u)}var u=i(73),e=i(67),f=i(75);n.exports=r},function(n,t,i){function r(n){return u[n]}var u=i(74);n.exports=r},function(n){n.exports={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}},function(n,t,i){var r=i(76),u=i(67),f=RegExp("["+u(r).join("")+"]","g");n.exports=f},74,function(n){function t(n){return"\\"+i[n]}var i={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"};n.exports=t},function(n){n.exports=/<%=([\s\S]+?)%>/g},function(n,t,i){var r=i(72),u=i(78),f={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:u,variable:"",imports:{_:{escape:r}}};n.exports=f},function(n,t,i){function r(n){for(var t=-1,i=u(n),r=i.length,f=Array(r);++t<r;)f[t]=n[i[t]];return f}var u=i(67);n.exports=r},function(n){function t(n){var t=++i;return String(n==null?"":n)+t}var i=0;n.exports=t},function(n){"use strict";var t={html:['<div class="st-block__dropzone">','<svg role="img" class="st-icon"><use xlink:href="<%= config.defaults.iconUrl %>#<%= _.result(block, "icon_name") %>"/><\/svg>','<p><%= i18n.t("general:drop", { block: "<span>" + _.result(block, "dropText") + "<\/span>" }) %>',"<\/p><\/div>"].join("\n"),re_render_on_reorder:!1},i={html:['<input type="text" placeholder="<%= i18n.t("general:paste") %>"',' class="st-block__paste-input st-paste-block">'].join("")},r={html:['<div class="st-block__upload-container">','<input type="file" type="st-file-upload">','<button class="st-upload-btn"><%= i18n.t("general:upload") %><\/button>',"<\/div>"].join("\n")};n.exports={debug:!1,scribeDebug:!1,skipValidation:!1,version:"0.4.0",language:"en",instances:[],defaults:{defaultType:!1,spinner:{className:"st-spinner",lines:9,length:8,width:3,radius:6,color:"#000",speed:1.4,trail:57,shadow:!1,left:"50%",top:"50%"},Block:{drop_options:t,paste_options:i,upload_options:r},blockLimit:0,blockTypeLimits:{},required:[],uploadUrl:"/attachments",attachmentName:"attachment[name]",attachmentFile:"attachment[file]",attachmentUid:"attachment[uid]",baseImageUrl:"/sir-trevor-uploads/",iconUrl:"../src/icons/sir-trevor-icons.svg",errorsContainer:undefined,convertFromMarkdown:!0,formatBar:{commands:[{name:"Bold",title:"bold",iconName:"fmt-bold",cmd:"bold",keyCode:66,text:"B"},{name:"Italic",title:"italic",iconName:"fmt-italic",cmd:"italic",keyCode:73,text:"i"},{name:"Link",title:"link",iconName:"fmt-link",cmd:"linkPrompt",text:"link"},{name:"Unlink",title:"unlink",iconName:"fmt-unlink",cmd:"unlink",text:"link"},{name:"Heading",title:"heading",iconName:"fmt-heading",cmd:"heading",text:"heading"},{name:"Quote",title:"quote",iconName:"fmt-quote",cmd:"quote",text:"quote"}]},ajaxOptions:{headers:{}}}}},function(n,t,i){"use strict";var u=i(84)["default"],f=i(30)["default"],e=i(34),r=u(null);r.setAttributes=function(n){var t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];return t.html&&(n.innerHTML=e.result(t,"html"),delete t.html),t.text&&(n.textContent=t.text,delete t.text),f(t).forEach(function(i){n.setAttribute(i,t[i])}),n};r.createElement=function(n){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],t=document.createElement(n);return r.setAttributes(t,i),t};r.insertAfter=function(n,t){t.parentNode.insertBefore(n,t.nextSibling)};r.remove=function(n){n&&n.parentNode&&n.parentNode.removeChild(n)};r.replaceWith=function(n,t){r.remove(t);n.parentNode.replaceChild(t,n)};r.hide=function(n){n.style.display="none"};r.show=function(n){n.style.display=""};r.matches=function(n){var t=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(n){for(var i=this,r=(i.document||i.ownerDocument).querySelectorAll(n),t=0;r[t]&&r[t]!==i;)t++;return r[t]?!0:!1};return function(n,i){return t.call(n,i)}}(Element.prototype);r.getClosest=function(n,t){for(n;n&&n!==document.body;n=n.parentNode)if(r.matches(n,t))break;return n};r.wrap=function(n,t){return t=t||document.createElement("div"),n.nextSibling?n.parentNode.insertBefore(t,n.nextSibling):n.parentNode.appendChild(t),t.appendChild(n)};r.createDocumentFragmentFromString=function(n){var i=document.createDocumentFragment(),t=document.createElement("div");for(t.innerHTML=n;t.childNodes[0];)i.appendChild(t.childNodes[0]);return i};n.exports=r},function(n,t,i){n.exports={"default":i(85),__esModule:!0}},function(n,t,i){var r=i(11);n.exports=function(n,t){return r.create(n,t)}},function(n,t,i){"use strict";var o=i(30)["default"],u=i(34),f=i(82),e=i(29),r={en:{general:{"delete":"Delete?",drop:"&nbsp; __block__ &nbsp;",paste:"Paste URL here",upload:"...or choose a file",close:"close",position:"Position",wait:"Please wait...",link:"Enter a link",yes:"Yes",no:"No"},errors:{title:"You have the following errors:",validation_fail:"__type__ block is invalid",block_empty:"__name__ must not be empty",type_missing:"You must have a block of type __type__",required_type_empty:"A required block type __type__ is empty",load_fail:"There was a problem loading the contents of the document"},blocks:{text:{title:"Text"},list:{title:"List"},quote:{title:"Quote",credit_field:"Credit"},image:{title:"Image",dropText:"Drag Image here",upload_error:"There was a problem with your upload"},video:{title:"Video",dropText:"Video"},tweet:{title:"Tweet",fetch_error:"There was a problem fetching your tweet"},embedly:{title:"Embedly",fetch_error:"There was a problem fetching your embed",key_missing:"An Embedly API key must be present"},heading:{title:"Heading"}}}};window.i18n===undefined?(e.log("Using i18n stub"),window.i18n={t:function(n,t){for(var c=n.split(":"),i,s,e=r[f.language],h=0;h<c.length;h++)s=c[h],u.isUndefined(e[s])||(e=e[s]);return(i=e,!u.isString(i))?"":(i.indexOf("__")>=0&&o(t).forEach(function(n){i=i.replace("__"+n+"__",t[n])}),i)}}):(e.log("Using i18next"),i18n.init({resStore:r,fallbackLng:f.language,ns:{namespaces:["general","blocks"],defaultNs:"general"}}));n.exports=r},function(n,t,i){"use strict";n.exports=i(88)},function(n,t,i){var r;(function(u,f){!(r=function(){return u.Eventable=f()}.call(t,i,t,n),r!==undefined&&(n.exports=r))})(this,function(){function f(n){var t,i=2;return function(){return--i>0?t=n.apply(this,arguments):n=null,t}}function i(t,i){n[t]=function(n,t,r){var u=this._listeners||(this._listeners={}),f=n._listenerId||(n._listenerId=(new Date).getTime());return u[f]=n,(typeof t=="undefined"?"undefined":_typeof(t))==="object"&&(r=this),n[i](t,r,this),this}}var e=[].slice,n={on:function(n,i,r){if(!t(this,"on",n,[i,r])||!i)return this;this._events||(this._events={});var u=this._events[n]||(this._events[n]=[]);return u.push({callback:i,context:r,ctx:r||this}),this},once:function(n,i,r){if(!t(this,"once",n,[i,r])||!i)return this;var e=this,u=f(function(){e.off(n,u);i.apply(this,arguments)});u._callback=i;return this.on(n,u,r)},off:function(n,i,r){var o,u,s,h,f,c,e,l;if(!this._events||!t(this,"off",n,[i,r]))return this;if(!n&&!i&&!r)return this._events={},this;for(h=n?[n]:Object.keys(this._events),f=0,c=h.length;f<c;f++)if(n=h[f],s=this._events[n]){if(this._events[n]=o=[],i||r)for(e=0,l=s.length;e<l;e++)u=s[e],(i&&i!==u.callback&&i!==u.callback._callback||r&&r!==u.context)&&o.push(u);o.length||delete this._events[n]}return this},trigger:function(n){var i,r,f;return this._events?(i=e.call(arguments,1),!t(this,"trigger",n,i))?this:(r=this._events[n],f=this._events.all,r&&u(r,i),f&&u(f,arguments),this):this},stopListening:function(n,t,i){var r=this._listeners,f,u;if(!r)return this;f=!t&&!i;(typeof t=="undefined"?"undefined":_typeof(t))==="object"&&(i=this);n&&((r={})[n._listenerId]=n);for(u in r)r[u].off(t,i,this),f&&delete this._listeners[u];return this}},r=/\s+/,t=function(n,t,i,u){var e,o,f,s;if(!i)return!0;if((typeof i=="undefined"?"undefined":_typeof(i))==="object"){for(e in i)n[t].apply(n,[e,i[e]].concat(u));return!1}if(r.test(i)){for(o=i.split(r),f=0,s=o.length;f<s;f++)n[t].apply(n,[o[f]].concat(u));return!1}return!0},u=function(n,t){var i,r=-1,u=n.length,f=t[0],e=t[1],o=t[2];switch(t.length){case 0:while(++r<u)(i=n[r]).callback.call(i.ctx);return;case 1:while(++r<u)(i=n[r]).callback.call(i.ctx,f);return;case 2:while(++r<u)(i=n[r]).callback.call(i.ctx,f,e);return;case 3:while(++r<u)(i=n[r]).callback.call(i.ctx,f,e,o);return;default:while(++r<u)(i=n[r]).callback.apply(i.ctx,t)}};return i("listenTo","on"),i("listenToOnce","once"),n.bind=n.on,n.unbind=n.off,n})},function(n,t,i){"use strict";var r=i(2)["default"];n.exports=r({},i(87))},function(n,t,i){"use strict";var u=i(2)["default"],f=i(34),e=i(29),r=function(n,t){this.mediator=t;this.initialize(n?n.trim():"")};u(r.prototype,{initialize:function(n){this.store=this._parseData(n)||{data:[]}},retrieve:function(){return this.store},toString:function(n){return JSON.stringify(this.store,undefined,n)},reset:function(){e.log("Resetting the EditorStore");this.store={data:[]}},addData:function(n){return this.store.data.push(n),this.store},_parseData:function(n){var t,i;if(n.length===0)return t;try{i=JSON.parse(n);f.isUndefined(i.data)||(t=i)}catch(r){this.mediator.trigger("errors:add",{text:i18n.t("errors:load_fail")});this.mediator.trigger("errors:render");console.log("Sorry there has been a problem with parsing the JSON");console.log(r)}return t}});n.exports=r},function(n,t,i){"use strict";var f=i(2)["default"],e=i(30)["default"],r=i(29),o=i(89),u=function(n){this.form=n;this.initialize()};f(u.prototype,{initialize:function(){this.submitBtns=this.form.querySelectorAll("input[type='submit']");var n=[];Array.prototype.forEach.call(this.submitBtns,function(t){n.push(t.getAttribute("value"))});this.submitBtnTitles=n;this.canSubmit=!0;this.globalUploadCount=0;this._bindEvents()},setSubmitButton:function(n,t){Array.prototype.forEach.call(this.submitBtns,function(n){n.setAttribute("value",t)})},resetSubmitButton:function(){var n=this.submitBtnTitles;Array.prototype.forEach.call(this.submitBtns,function(t,i){t.setAttribute("value",n[i])})},onUploadStart:function(){this.globalUploadCount++;r.log("onUploadStart called "+this.globalUploadCount);this.globalUploadCount===1&&this._disableSubmitButton()},onUploadStop:function(){this.globalUploadCount=this.globalUploadCount<=0?0:this.globalUploadCount-1;r.log("onUploadStop called "+this.globalUploadCount);this.globalUploadCount===0&&this._enableSubmitButton()},onError:function(){r.log("onError called");this.canSubmit=!1},_disableSubmitButton:function(n){this.setSubmitButton(null,n||i18n.t("general:wait"));Array.prototype.forEach.call(this.submitBtns,function(n){n.setAttribute("disabled","disabled");n.classList.add("disabled")})},_enableSubmitButton:function(){this.resetSubmitButton();Array.prototype.forEach.call(this.submitBtns,function(n){n.removeAttribute("disabled");n.classList.remove("disabled")})},_events:{disableSubmitButton:"_disableSubmitButton",enableSubmitButton:"_enableSubmitButton",setSubmitButton:"setSubmitButton",resetSubmitButton:"resetSubmitButton",onError:"onError",onUploadStart:"onUploadStart",onUploadStop:"onUploadStop"},_bindEvents:function(){e(this._events).forEach(function(n){o.on(n,this[this._events[n]],this)},this)}});n.exports=u},function(n,t,i){"use strict";var r=i(34),u=i(82),e=i(29),o=i(93),f=i(89);n.exports=function(n,t,i,s){var c=[n.blockID,(new Date).getTime(),"raw"].join("-"),h=new FormData,a=n.attachmentName||u.defaults.attachmentName,v=n.attachmentFile||u.defaults.attachmentFile,y=n.attachmentUid||u.defaults.attachmentUid;h.append(a,t.name);h.append(v,t);h.append(y,c);f.trigger("onUploadStart",h);n.resetMessages();var p=function(t){e.log("Upload callback called");f.trigger("onUploadStop",t);!r.isUndefined(i)&&r.isFunction(i)&&i.apply(n,arguments,t);n.removeQueuedItem(c)},w=function(t,i,u){e.log("Upload callback error called");f.trigger("onUploadStop",undefined,u,i,t);!r.isUndefined(s)&&r.isFunction(s)&&s.call(n,i);n.removeQueuedItem(c)},b=n.uploadUrl||u.defaults.uploadUrl,l=o.fetch(b,{body:h,method:"POST",dataType:"json"});return n.addQueuedItem(c,l),l.then(p)["catch"](w),l}},function(n,t,i){"use strict";var u=i(84)["default"],f=i(2)["default"];i(94);var e=i(95),o=i(96),s=i(82),r=u(null);r.fetch=function(n){var t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i;return t=f({},s.defaults.ajaxOptions,t),i=t.jsonp?e(n).promise:fetch(n,t).then(function(n){return t.dataType==="json"?n.json():n.text()}),o(i)};n.exports=r},function(){(function(){"use strict";function t(n){if(typeof n!="string"&&(n=n.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(n))throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function e(n){return typeof n!="string"&&(n=n.toString()),n}function n(t){this.map={};t instanceof n?t.forEach(function(n,t){this.append(t,n)},this):t&&Object.getOwnPropertyNames(t).forEach(function(n){this.append(n,t[n])},this)}function u(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function o(n){return new Promise(function(t,i){n.onload=function(){t(n.result)};n.onerror=function(){i(n.error)}})}function c(n){var t=new FileReader;return t.readAsArrayBuffer(n),o(t)}function l(n){var t=new FileReader;return t.readAsText(n),o(t)}function s(){return this.bodyUsed=!1,this._initBody=function(n){if(this._bodyInit=n,typeof n=="string")this._bodyText=n;else if(i.blob&&Blob.prototype.isPrototypeOf(n))this._bodyBlob=n;else if(i.formData&&FormData.prototype.isPrototypeOf(n))this._bodyFormData=n;else if(n)throw new Error("unsupported BodyInit type");else this._bodyText=""},i.blob?(this.blob=function(){var n=u(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");else return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(c)},this.text=function(){var n=u(this);if(n)return n;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");else return Promise.resolve(this._bodyText)}):this.text=function(){var n=u(this);return n?n:Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}function a(n){var t=n.toUpperCase();return h.indexOf(t)>-1?t:n}function r(t,i){if(i=i||{},this.url=t,this.credentials=i.credentials||"omit",this.headers=new n(i.headers),this.method=a(i.method||"GET"),this.mode=i.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&i.body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i.body)}function v(n){var t=new FormData;return n.trim().split("&").forEach(function(n){if(n){var i=n.split("="),r=i.shift().replace(/\+/g," "),u=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(u))}}),t}function y(t){var i=new n,r=t.getAllResponseHeaders().trim().split("\n");return r.forEach(function(n){var t=n.trim().split(":"),r=t.shift().trim(),u=t.join(":").trim();i.append(r,u)}),i}function f(t,i){i||(i={});this._initBody(t);this.type="default";this.url=null;this.status=i.status;this.ok=this.status>=200&&this.status<300;this.statusText=i.statusText;this.headers=i.headers instanceof n?i.headers:new n(i.headers);this.url=i.url||""}var i,h;self.fetch||(n.prototype.append=function(n,i){n=t(n);i=e(i);var r=this.map[n];r||(r=[],this.map[n]=r);r.push(i)},n.prototype["delete"]=function(n){delete this.map[t(n)]},n.prototype.get=function(n){var i=this.map[t(n)];return i?i[0]:null},n.prototype.getAll=function(n){return this.map[t(n)]||[]},n.prototype.has=function(n){return this.map.hasOwnProperty(t(n))},n.prototype.set=function(n,i){this.map[t(n)]=[e(i)]},n.prototype.forEach=function(n,t){Object.getOwnPropertyNames(this.map).forEach(function(i){this.map[i].forEach(function(r){n.call(t,r,i,this)},this)},this)},i={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(n){return!1}}(),formData:"FormData"in self},h=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],s.call(r.prototype),s.call(f.prototype),self.Headers=n,self.Request=r,self.Response=f,self.fetch=function(n,t){var u;return u=r.prototype.isPrototypeOf(n)&&!t?n:new r(n,t),new Promise(function(n,t){function e(){return"responseURL"in r?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):void 0}var r=new XMLHttpRequest;r.onload=function(){var i=r.status===1223?204:r.status,u,o;if(i<100||i>599){t(new TypeError("Network request failed"));return}u={status:i,statusText:r.statusText,headers:y(r),url:e()};o="response"in r?r.response:r.responseText;n(new f(o,u))};r.onerror=function(){t(new TypeError("Network request failed"))};r.open(u.method,u.url,!0);u.credentials==="include"&&(r.withCredentials=!0);"responseType"in r&&i.blob&&(r.responseType="blob");u.headers.forEach(function(n,t){r.setRequestHeader(t,n)});r.send(typeof u._bodyInit=="undefined"?null:u._bodyInit)})},self.fetch.polyfill=!0)})()},function(n){var t=0,i=function(n,i){i=i||{};var l=i.prefix||"__jp",a=i.param||"callback",o=i.timeout?i.timeout:15e3,s=document.getElementsByTagName("script")[0]||document.head,r,e,u,h,c,v=function(){},f=l+t++;return u=function(){r&&r.parentNode&&r.parentNode.removeChild(r);window[f]=v;e&&clearTimeout(e)},c=new Promise(function(t,i){o&&(e=setTimeout(function(){u();i(new Error("Timeout"))},o));window[f]=function(n){u();t(n)};n+=(~n.indexOf("?")?"&":"?")+a+"="+encodeURIComponent(f);n=n.replace("?&","?");r=document.createElement("script");r.src=n;s.parentNode.insertBefore(r,s);h=function(){window[f]&&(u(),i(new Error("Canceled")))}}),{promise:c,cancel:h}};n.exports=i},function(n,t,i){"use strict";var r=i(97)["default"],u=function(n){var i,u,t=new r(function(n,t){i=n;u=t});return n.then(function(n){t.cancelled||i(n)},function(n){t.cancelled||u(n)}),t.cancel=function(){this.cancelled=!0},t};n.exports=u},function(n,t,i){n.exports={"default":i(98),__esModule:!0}},function(n,t,i){i(99);i(100);i(116);i(121);n.exports=i(7).Promise},function(){},function(n,t,i){"use strict";var r=i(101)(!0);i(103)(String,"String",function(n){this._t=String(n);this._i=0},function(){var t=this._t,i=this._i,n;return i>=t.length?{value:undefined,done:!0}:(n=r(t,i),this._i+=n.length,{value:n,done:!1})})},function(n,t,i){var r=i(102),u=i(13);n.exports=function(n){return function(t,i){var e=String(u(t)),f=r(i),h=e.length,o,s;return f<0||f>=h?n?"":undefined:(o=e.charCodeAt(f),o<55296||o>56319||f+1===h||(s=e.charCodeAt(f+1))<56320||s>57343?n?e.charAt(f):o:n?e.slice(f,f+2):(o-55296<<10)+(s-56320)+65536)}}},function(n){var t=Math.ceil,i=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?i:t)(n)}},function(n,t,i){"use strict";var o=i(104),f=i(5),v=i(105),s=i(106),y=i(109),h=i(110),p=i(111),w=i(112),b=i(11).getProto,r=i(113)("iterator"),e=!([].keys&&"next"in[].keys()),c="@@iterator",l="keys",u="values",a=function(){return this};n.exports=function(n,t,i,k,d,g,nt){var ot;p(i,t,k);var ut=function(n){if(!e&&n in tt)return tt[n];switch(n){case l:return function(){return new i(this,n)};case u:return function(){return new i(this,n)}}return function(){return new i(this,n)}},ct=t+" Iterator",st=d==u,ht=!1,tt=n.prototype,ft=tt[r]||tt[c]||d&&tt[d],it=ft||ut(d),rt,et;if(ft&&(ot=b(it.call(new n)),w(ot,ct,!0),!o&&y(tt,c)&&s(ot,r,a),st&&ft.name!==u&&(ht=!0,it=function(){return ft.call(this)})),(!o||nt)&&(e||ht||!tt[r])&&s(tt,r,it),h[t]=it,h[ct]=a,d)if(rt={values:st?it:ut(u),keys:g?it:ut(l),entries:st?ut("entries"):it},nt)for(et in rt)et in tt||v(tt,et,rt[et]);else f(f.P+f.F*(e||ht),t,rt);return rt}},function(n){n.exports=!0},function(n,t,i){n.exports=i(106)},function(n,t,i){var r=i(11),u=i(107);n.exports=i(108)?function(n,t,i){return r.setDesc(n,t,u(1,i))}:function(n,t,i){return n[t]=i,n}},function(n){n.exports=function(n,t){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:t}}},function(n,t,i){n.exports=!i(16)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n){var t={}.hasOwnProperty;n.exports=function(n,i){return t.call(n,i)}},function(n){n.exports={}},function(n,t,i){"use strict";var u=i(11),f=i(107),e=i(112),r={};i(106)(r,i(113)("iterator"),function(){return this});n.exports=function(n,t,i){n.prototype=u.create(r,{next:f(1,i)});e(n,t+" Iterator")}},function(n,t,i){var u=i(11).setDesc,f=i(109),r=i(113)("toStringTag");n.exports=function(n,t,i){n&&!f(n=i?n:n.prototype,r)&&u(n,r,{configurable:!0,value:t})}},function(n,t,i){var u=i(114)("wks"),f=i(115),r=i(6).Symbol;n.exports=function(n){return u[n]||(u[n]=r&&r[n]||(r||f)("Symbol."+n))}},function(n,t,i){var r=i(6),u="__core-js_shared__",f=r[u]||(r[u]={});n.exports=function(n){return f[n]||(f[n]={})}},function(n){var t=0,i=Math.random();n.exports=function(n){return"Symbol(".concat(n===undefined?"":n,")_",(++t+i).toString(36))}},function(n,t,i){i(117);var r=i(110);r.NodeList=r.HTMLCollection=r.Array},function(n,t,i){"use strict";var u=i(118),r=i(119),f=i(110),e=i(120);n.exports=i(103)(Array,"Array",function(n,t){this._t=e(n);this._i=0;this._k=t},function(){var t=this._t,i=this._k,n=this._i++;return!t||n>=t.length?(this._t=undefined,r(1)):i=="keys"?r(0,n):i=="values"?r(0,t[n]):r(0,[n,t[n]])},"values");f.Arguments=f.Array;u("keys");u("values");u("entries")},function(n){n.exports=function(){}},function(n){n.exports=function(n,t){return{value:t,done:!!n}}},function(n,t,i){var r=i(14),u=i(13);n.exports=function(n){return r(u(n))}},function(n,t,i){"use strict";var a=i(11),ft=i(104),h=i(6),c=i(8),et=i(122),u=i(5),ot=i(123),st=i(124),v=i(9),ht=i(125),p=i(126),w=i(131).set,ct=i(132),lt=i(113)("species"),at=i(133),b=i(134),f="Promise",k=h.process,vt=et(k)=="process",r=h[f],l=function(){},d,g=function(n){var t=new r(l),i;return n&&(t.constructor=function(n){n(l,l)}),(i=r.resolve(t))["catch"](l),i===t},e=function(){function n(t){var i=new r(t);return w(i,n.prototype),i}var t=!1,u;try{t=r&&r.resolve&&g();w(n,r);n.prototype=a.create(r.prototype,{constructor:{value:n}});n.resolve(5).then(function(){})instanceof n||(t=!1);t&&i(108)&&(u=!1,r.resolve(a.setDesc({},"then",{get:function(){u=!0}})),t=u)}catch(f){t=!1}return t}(),yt=function(n,t){return ft&&n===r&&t===d?!0:ct(n,t)},nt=function(n){var t=st(n)[lt];return t!=undefined?t:n},tt=function(n){var t;return ot(n)&&typeof(t=n.then)=="function"?t:!1},o=function(n){var t,i;this.promise=new n(function(n,r){if(t!==undefined||i!==undefined)throw TypeError("Bad Promise constructor");t=n;i=r});this.resolve=v(t);this.reject=v(i)},it=function(n){try{n()}catch(t){return{error:t}}},y=function(n,t){if(!n.n){n.n=!0;var i=n.c;b(function(){for(var r=n.v,u=n.s==1,f=0,e=function(t){var e=u?t.ok:t.fail,o=t.resolve,f=t.reject,i,s;try{e?(u||(n.h=!0),i=e===!0?r:e(r),i===t.promise?f(TypeError("Promise-chain cycle")):(s=tt(i))?s.call(i,o,f):o(i)):f(r)}catch(h){f(h)}};i.length>f;)e(i[f++]);i.length=0;n.n=!1;t&&setTimeout(function(){var t=n.p,u,i;rt(t)&&(vt?k.emit("unhandledRejection",r,t):(u=h.onunhandledrejection)?u({promise:t,reason:r}):(i=h.console)&&i.error&&i.error("Unhandled promise rejection",r));n.a=undefined},1)})}},rt=function rt(n){var t=n._d,r=t.a||t.c,u=0,i;if(t.h)return!1;while(r.length>u)if(i=r[u++],i.fail||!rt(i.promise))return!1;return!0},s=function(n){var t=this;t.d||(t.d=!0,t=t.r||t,t.v=n,t.s=2,t.a=t.c.slice(),y(t,!0))},ut=function ut(n){var t=this,i;if(!t.d){t.d=!0;t=t.r||t;try{if(t.p===n)throw TypeError("Promise can't be resolved itself");(i=tt(n))?b(function(){var r={r:t,d:!1};try{i.call(n,c(ut,r,1),c(s,r,1))}catch(u){s.call(r,u)}}):(t.v=n,t.s=1,y(t,!1))}catch(r){s.call({r:t,d:!1},r)}}};e||(r=function(n){v(n);var t=this._d={p:ht(this,r,f),c:[],a:undefined,s:0,d:!1,v:undefined,h:!1,n:!1};try{n(c(ut,t,1),c(s,t,1))}catch(i){s.call(t,i)}},i(139)(r.prototype,{then:function(n,t){var i=new o(at(this,r)),f=i.promise,u=this._d;return i.ok=typeof n=="function"?n:!0,i.fail=typeof t=="function"&&t,u.c.push(i),u.a&&u.a.push(i),u.s&&y(u,!1),f},"catch":function(n){return this.then(undefined,n)}}));u(u.G+u.W+u.F*!e,{Promise:r});i(112)(r,f);i(140)(f);d=i(7)[f];u(u.S+u.F*!e,f,{reject:function(n){var t=new o(this),i=t.reject;return i(n),t.promise}});u(u.S+u.F*(!e||g(!0)),f,{resolve:function(n){if(n instanceof r&&yt(n.constructor,this))return n;var t=new o(this),i=t.resolve;return i(n),t.promise}});u(u.S+u.F*!(e&&i(141)(function(n){r.all(n)["catch"](function(){})})),f,{all:function(n){var r=nt(this),i=new o(r),u=i.resolve,f=i.reject,t=[],e=it(function(){p(n,!1,t.push,t);var i=t.length,e=Array(i);i?a.each.call(t,function(n,t){var o=!1;r.resolve(n).then(function(n){o||(o=!0,e[t]=n,--i||u(e))},f)}):u(e)});return e&&f(e.error),i.promise},race:function(n){var i=nt(this),t=new o(i),r=t.reject,u=it(function(){p(n,!1,function(n){i.resolve(n).then(t.resolve,r)})});return u&&r(u.error),t.promise}})},function(n,t,i){var r=i(15),u=i(113)("toStringTag"),f=r(function(){return arguments}())=="Arguments";n.exports=function(n){var t,i,e;return n===undefined?"Undefined":n===null?"Null":typeof(i=(t=Object(n))[u])=="string"?i:f?r(t):(e=r(t))=="Object"&&typeof t.callee=="function"?"Arguments":e}},function(n){n.exports=function(n){return(typeof n=="undefined"?"undefined":_typeof(n))==="object"?n!==null:typeof n=="function"}},function(n,t,i){var r=i(123);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n){n.exports=function(n,t,i){if(!(n instanceof t))throw TypeError(i+": use the 'new' operator!");return n}},function(n,t,i){var r=i(8),u=i(127),f=i(128),e=i(124),o=i(129),s=i(130);n.exports=function(n,t,i,h){var a=s(n),v=r(i,h,t?2:1),c=0,p,l,y;if(typeof a!="function")throw TypeError(n+" is not iterable!");if(f(a))for(p=o(n.length);p>c;c++)t?v(e(l=n[c])[0],l[1]):v(n[c]);else for(y=a.call(n);!(l=y.next()).done;)u(y,v,l.value,t)}},function(n,t,i){var r=i(124);n.exports=function(n,t,i,u){try{return u?t(r(i)[0],i[1]):t(i)}catch(e){var f=n["return"];f!==undefined&&r(f.call(n));throw e;}}},function(n,t,i){var r=i(110),u=i(113)("iterator"),f=Array.prototype;n.exports=function(n){return n!==undefined&&(r.Array===n||f[u]===n)}},function(n,t,i){var r=i(102),u=Math.min;n.exports=function(n){return n>0?u(r(n),9007199254740991):0}},function(n,t,i){var r=i(122),u=i(113)("iterator"),f=i(110);n.exports=i(7).getIteratorMethod=function(n){if(n!=undefined)return n[u]||n["@@iterator"]||f[r(n)]}},function(n,t,i){var u=i(11).getDesc,f=i(123),e=i(124),r=function(n,t){if(e(n),!f(t)&&t!==null)throw TypeError(t+": can't set as prototype!");};n.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(n,t,f){try{f=i(8)(Function.call,u(Object.prototype,"__proto__").set,2);f(n,[]);t=!(n instanceof Array)}catch(e){t=!0}return function(n,i){return r(n,i),t?n.__proto__=i:f(n,i),n}}({},!1):undefined),check:r}},function(n){n.exports=Object.is||function(n,t){return n===t?n!==0||1/n==1/t:n!=n&&t!=t}},function(n,t,i){var r=i(124),u=i(9),f=i(113)("species");n.exports=function(n,t){var i=r(n).constructor,e;return i===undefined||(e=r(i)[f])==undefined?t:u(e)}},function(n,t,i){var u=i(6),y=i(135).set,v=u.MutationObserver||u.WebKitMutationObserver,f=u.process,h=u.Promise,c=i(15)(f)=="process",r,e,o,s=function(){var t,n,i;for(c&&(t=f.domain)&&(f.domain=null,t.exit());r;)n=r.domain,i=r.fn,n&&n.enter(),i(),n&&n.exit(),r=r.next;e=undefined;t&&t.enter()},l,a;c?o=function(){f.nextTick(s)}:v?(l=1,a=document.createTextNode(""),new v(s).observe(a,{characterData:!0}),o=function(){a.data=l=-l}):o=h&&h.resolve?function(){h.resolve().then(s)}:function(){y.call(u,s)};n.exports=function(n){var t={fn:n,next:undefined,domain:c&&f.domain};e&&(e.next=t);r||(r=t,o());e=t}},function(n,t,i){var o=i(8),d=i(136),v=i(137),y=i(138),r=i(6),p=r.process,s=r.setImmediate,h=r.clearImmediate,w=r.MessageChannel,c=0,u={},b="onreadystatechange",f,l,a,e=function(){var n=+this,t;u.hasOwnProperty(n)&&(t=u[n],delete u[n],t())},k=function(n){e.call(n.data)};s&&h||(s=function(n){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return u[++c]=function(){d(typeof n=="function"?n:Function(n),t)},f(c),c},h=function(n){delete u[n]},i(15)(p)=="process"?f=function(n){p.nextTick(o(e,n,1))}:w?(l=new w,a=l.port2,l.port1.onmessage=k,f=o(a.postMessage,a,1)):r.addEventListener&&typeof postMessage=="function"&&!r.importScripts?(f=function(n){r.postMessage(n+"","*")},r.addEventListener("message",k,!1)):f=b in y("script")?function(n){v.appendChild(y("script"))[b]=function(){v.removeChild(this);e.call(n)}}:function(n){setTimeout(o(e,n,1),0)});n.exports={set:s,clear:h}},function(n){n.exports=function(n,t,i){var r=i===undefined;switch(t.length){case 0:return r?n():n.call(i);case 1:return r?n(t[0]):n.call(i,t[0]);case 2:return r?n(t[0],t[1]):n.call(i,t[0],t[1]);case 3:return r?n(t[0],t[1],t[2]):n.call(i,t[0],t[1],t[2]);case 4:return r?n(t[0],t[1],t[2],t[3]):n.call(i,t[0],t[1],t[2],t[3])}return n.apply(i,t)}},function(n,t,i){n.exports=i(6).document&&document.documentElement},function(n,t,i){var u=i(123),r=i(6).document,f=u(r)&&u(r.createElement);n.exports=function(n){return f?r.createElement(n):{}}},function(n,t,i){var r=i(105);n.exports=function(n,t){for(var i in t)r(n,i,t[i]);return n}},function(n,t,i){"use strict";var u=i(7),f=i(11),e=i(108),r=i(113)("species");n.exports=function(n){var t=u[n];e&&t&&!t[r]&&f.setDesc(t,r,{configurable:!0,get:function(){return this}})}},function(n,t,i){var r=i(113)("iterator"),f=!1,u;try{u=[7][r]();u["return"]=function(){f=!0};Array.from(u,function(){throw 2;})}catch(e){}n.exports=function(n,t){var u,i,e;if(!t&&!f)return!1;u=!1;try{i=[7];e=i[r]();e.next=function(){return{done:u=!0}};i[r]=function(){return e};n(i)}catch(o){}return u}},function(n,t,i){"use strict";n.exports={Ajaxable:i(143),Controllable:i(144),Droppable:i(146),Fetchable:i(148),Pastable:i(149),Uploadable:i(150),MultiEditable:i(151),Textable:i(263)}},function(n,t,i){"use strict";var r=i(29);n.exports={mixinName:"Ajaxable",ajaxable:!0,initializeAjaxable:function(){this._queued=[]},addQueuedItem:function(n,t){r.log("Adding queued item for "+this.blockID+" called "+n);this._queued.push({name:n,deferred:t})},removeQueuedItem:function(n){r.log("Removing queued item for "+this.blockID+" called "+n);this._queued=this._queued.filter(function(t){return t.name!==n})},hasItemsInQueue:function(){return this._queued.length>0},resolveAllInQueue:function(){this._queued.forEach(function(n){r.log("Aborting queued request: "+n.name);n.deferred.cancel()},this)}}},function(n,t,i){"use strict";var r=i(30)["default"],f=i(29),e=i(82),u=i(83),o=i(145);n.exports={mixinName:"Controllable",initializeControllable:function(){f.log("Adding controllable to block "+this.blockID);this.inner.classList.add("st-block__inner--controllable");this.control_ui=u.createElement("div",{"class":"st-block__control-ui"});r(this.controls).forEach(function(n){this.addUiControl(n,this.controls[n].bind(this))},this);this.inner.appendChild(this.control_ui)},getControlTemplate:function(n){return u.createElement("a",{"data-icon":n,"class":"st-icon st-block-control-ui-btn st-block-control-ui-btn--"+n,html:'<svg role="img" class="st-icon">\n                  <use xlink:href="'+e.defaults.iconUrl+"#"+n+'"/>\n                <\/svg>'})},addUiControl:function(n,t){var i=this;this.control_ui.appendChild(this.getControlTemplate(n));o.delegate(this.control_ui,".st-block-control-ui-btn--"+n,"click",function(r){i.selectUiControl(n);t(r)})},selectUiControl:function(n){var i=this,t="st-block-control-ui-btn--selected";r(this.controls).forEach(function(n){i.getControlUiBtn(n).classList.remove(t)});this.getControlUiBtn(n).classList.add(t)},getControlUiBtn:function(n){return this.control_ui.querySelector(".st-block-control-ui-btn--"+n)}}},function(n,t,i){"use strict";var r=i(83),u=function(n,t){for(var i={},r={shared:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),mouseEvent:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),keyEvent:"char charCode key keyCode".split(" ")},e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(n.type)?r.shared.concat(r.mouseEvent):/^key/.test(n.type)?r.shared.concat(r.keyEvent):r.shared,u,f=0;f<e.length;f++)u=e[f],i[u]=n[u];return i.currentTarget=t,i.originalEvent=n,i.preventDefault=function(){this.originalEvent&&this.originalEvent.preventDefault()},i.stopPropagation=function(){this.originalEvent&&this.originalEvent.stopPropagation()},i};n.exports.delegate=function(n,t,i,f){var e=arguments.length<=4||arguments[4]===undefined?!1:arguments[4];n.addEventListener(i,function(i){var e=i.target;for(e;e&&e!==n;e=e.parentNode)if(r.matches(e,t)){f.call(e,u(i,e));break}e=null},e)}},function(n,t,i){"use strict";var f=i(2)["default"],r=i(34),u=i(82),e=i(29),o=i(83),s=i(147),h=i(89);n.exports={mixinName:"Droppable",valid_drop_file_types:["File","Files","text/plain","text/uri-list"],requireInputs:!0,initializeDroppable:function(){e.log("Adding droppable to block "+this.blockID);this.drop_options=f({},u.defaults.Block.drop_options,this.drop_options);o.hide(this.editor);this.inputs.insertAdjacentHTML("beforeend",r.template(this.drop_options.html,{block:this,_:r,config:u}));s.dropArea(this.inputs.lastElementChild).addEventListener("drop",this._handleDrop.bind(this));this.el.classList.add("st-block--droppable");this.inner.classList.add("st-block__inner--droppable");this._setupKeyEvents()},_handleDrop:function(n){n.preventDefault();n.stopPropagation();var i=n.target,t=[].slice.call(n.dataTransfer.types);if(i.classList.remove("st-dropzone--dragover"),t&&t.some(function(n){return this.valid_drop_file_types.includes(n)},this))this.onDrop(n.dataTransfer);h.trigger("block:content:dropped",this.blockID)},focus:function(){this.inner.focus()},_setupKeyEvents:function(){var n=this;this.inner.setAttribute("tabindex",0);this.inner.addEventListener("keyup",function(t){if(t.target===n.inner)switch(t.keyCode){case 13:n.mediator.trigger("block:create","Text",null,n.el);break;case 8:n.onDeleteClick.call(n,new CustomEvent("click"));return}})}}},function(n){"use strict";function t(n){n.preventDefault();n.stopPropagation()}function i(n){n.dataTransfer.dropEffect="copy";n.currentTarget.classList.add("st-drag-over");n.preventDefault();n.stopPropagation()}function r(n){n.currentTarget.classList.remove("st-drag-over");n.preventDefault();n.stopPropagation()}n.exports={dropArea:function(n){return n.addEventListener("dragenter",t),n.addEventListener("dragover",i),n.addEventListener("dragleave",r),n},noDropArea:function(n){return n.removeEventListener("dragenter"),n.removeEventListener("dragover"),n.removeEventListener("dragleave"),n}}},function(n,t,i){"use strict";var r=i(34),u=i(93);n.exports={mixinName:"Fetchable",initializeFetchable:function(){this.withMixin(i(143))},fetch:function(n,t,i,f){function o(n,t){n.call(this,t);this.removeQueuedItem(s)}var s=r.uniqueId(this.blockID+"_fetch"),e=u.fetch(n,t);return this.resetMessages(),this.addQueuedItem(s,e),r.isUndefined(i)||e.then(o.bind(this,i)),r.isUndefined(f)||e["catch"](o.bind(this,f)),e}}},function(n,t,i){"use strict";var r=i(2)["default"],u=i(34),f=i(82),e=i(29);n.exports={mixinName:"Pastable",requireInputs:!0,initializePastable:function(){var n=this;e.log("Adding pastable to block "+this.blockID);this.paste_options=r({},f.defaults.Block.paste_options,this.paste_options);this.inputs.insertAdjacentHTML("beforeend",u.template(this.paste_options.html,this));Array.prototype.forEach.call(this.$(".st-paste-block"),function(t){t.addEventListener("click",function(){var n=document.createEvent("HTMLEvents");n.initEvent("select",!0,!1);this.dispatchEvent(n)});t.addEventListener("paste",n._handleContentPaste);t.addEventListener("submit",n._handleContentPaste)})}}},function(n,t,i){"use strict";var r=i(2)["default"],u=i(34),f=i(82),e=i(29),o=i(92);n.exports={mixinName:"Uploadable",uploadsCount:0,requireInputs:!0,initializeUploadable:function(){e.log("Adding uploadable to block "+this.blockID);this.withMixin(i(143));this.upload_options=r({},f.defaults.Block.upload_options,this.upload_options);this.inputs.insertAdjacentHTML("beforeend",u.template(this.upload_options.html,this));Array.prototype.forEach.call(this.inputs.querySelectorAll("button"),function(n){n.addEventListener("click",function(n){n.preventDefault()})});Array.prototype.forEach.call(this.inputs.querySelectorAll("input"),function(n){n.addEventListener("change",function(n){this.onDrop(n.currentTarget)}.bind(this))}.bind(this))},uploader:function(n,t,i){return o(this,n,t,i)}}},function(n,t,i){"use strict";var u=i(34),r=i(152);n.exports={mixinName:"MultiEditable",initializeMultiEditable:function(){this.editors={}},newTextEditor:function(n,t){var i,o,f,e,c,s,h;return o=n.tagName===undefined,o?(f=document.createElement("div"),f.innerHTML=n,i=f.querySelector(".st-block__editor")):i=n,e=u.uniqueId("editor-"),i.setAttribute("data-editorId",e),i.addEventListener("keyup",this.getSelectionForFormatter),i.addEventListener("mouseup",this.getSelectionForFormatter),c=u.isFunction(this.configureScribe)?this.configureScribe.bind(this):null,s=r.initScribeInstance(i,this.scribeOptions,c),s.setContent(t),h={node:o?f.removeChild(f.firstChild):i,el:i,scribe:s,id:e},this.editors[e]=h,h},getCurrentTextEditor:function(){var t=document.activeElement.getAttribute("data-editorId"),n=this.getTextEditor(t);return n&&(this.currentEditor=n),this.currentEditor},appendToTextEditor:function(n,t){var i=this.getTextEditor(n).scribe,r=new i.api.Selection,u=r.range.cloneRange(),f=i.el.lastChild;u.setStartAfter(f);u.collapse(!0);r.selection.removeAllRanges();r.selection.addRange(u);t&&i.insertHTML(t)},getCurrentScribeInstance:function(){return this.getCurrentTextEditor().scribe},getTextEditor:function(n){return this.editors[n]},removeTextEditor:function(n){delete this.editors[n]},execTextBlockCommand:function(n){return r.execTextBlockCommand(this.getCurrentScribeInstance(),n)},queryTextBlockCommandState:function(n){return r.queryTextBlockCommandState(this.getCurrentScribeInstance(),n)}}},function(n,t,i){"use strict";var u=i(2)["default"],r=i(34),e=i(153),o=i(82),s=i(220),h=i(221),c=i(222),f={p:!0,a:{href:!0,target:"_blank",rel:!0},i:!0,b:!0,strong:!0,em:!0};n.exports={initScribeInstance:function(n,t,i){var a,v,l;return t=t||{},a={debug:o.scribeDebug},v=f,r.isObject(t)&&(a=u(a,t)),l=new e(n,a),t.hasOwnProperty("tags")&&(v=u(f,t.tags)),l.use(s()),l.use(h()),l.use(c({tags:v})),r.isFunction(i)&&i.call(this,l),l},execTextBlockCommand:function(n,t){if(r.isUndefined(n))throw"No Scribe instance found to query command";var i=n.getCommand(t);return n.el.focus(),i.execute()},queryTextBlockCommandState:function(n,t){if(r.isUndefined(n))throw"No Scribe instance found to query command";var i=n.getCommand(t),u=new n.api.Selection;return u.range&&i.queryState()}}},function(n,t,i){var u,r;!(u=[i(176),i(206),i(185),i(190),i(193),i(201),i(154),i(214),i(215),i(181),i(179),i(216)],r=function(n,t,i,r,u,f,e,o,s,h,c,l){"use strict";function a(h,a){var p;s.call(this);this.el=h;this.commands={};this.options=l.checkOptions(a);this.commandPatches={};this._plainTextFormatterFactory=new y;this._htmlFormatterFactory=new v;this.api=new f(this);this.Immutable=c;p=e(this);this.transactionManager=new p;this.undoManager=!1;this.options.undo.enabled&&(this.undoManager=this.options.undo.manager?this.options.undo.manager:new o(this.options.undo.limit,this.el),this._merge=!1,this._forceMerge=!1,this._mergeTimer=0,this._lastItem={content:""});this.setHTML(this.getHTML());this.el.setAttribute("contenteditable",!0);this.el.addEventListener("input",function(){this.transactionManager.run()}.bind(this),!1);var w=c.OrderedSet(this.options.defaultPlugins).sort(l.sortByPlugin("setRootPElement")).filter(l.filterByBlockLevelMode(this.allowsBlockElements())).map(function(t){return n[t]}),b=c.List(this.options.defaultFormatters).filter(function(n){return!!i[n]}).map(function(n){return i[n]}),k=c.List.of(u.events),d=c.List(this.options.defaultCommandPatches).map(function(n){return u.commands[n]}),g=c.List.of("indent","insertList","outdent","redo","subscript","superscript","undo").map(function(n){return t[n]}),nt=c.List().concat(w,b,k,d,g);nt.forEach(function(n){this.use(n())}.bind(this));this.use(r())}function y(){this.formatters=c.List()}function v(){this.formatters={sanitize:c.List(),normalize:c.List(),"export":c.List()}}return a.prototype=Object.create(s.prototype),a.prototype.node=h,a.prototype.element=a.prototype.node,a.prototype.use=function(n){return n(this),this},a.prototype.setHTML=function(n,t){this._lastItem.content=n;t&&(this._skipFormatters=!0);this.el.innerHTML!==n&&(this.el.innerHTML=n)},a.prototype.getHTML=function(){return this.el.innerHTML},a.prototype.getContent=function(){return this._htmlFormatterFactory.formatForExport(this.getHTML().replace(/<br>$/,""))},a.prototype.getTextContent=function(){return this.el.textContent},a.prototype.pushHistory=function(){var n=this,u,t,i,r;return n.options.undo.enabled&&(u=n._lastItem.content.replace(/<em [^>]*class="scribe-marker"[^>]*>[^<]*?<\/em>/g,""),n.getHTML()!==u)?(t=new n.api.Selection,t.placeMarkers(),i=n.getHTML(),t.removeMarkers(),r=n.undoManager.item(n.undoManager.position),(n._merge||n._forceMerge)&&r&&n._lastItem==r[0]?n._lastItem.content=i:(n._lastItem={previousItem:n._lastItem,content:i,scribe:n,execute:function(){},undo:function(){this.scribe.restoreFromHistory(this.previousItem)},redo:function(){this.scribe.restoreFromHistory(this)}},n.undoManager.transact(n._lastItem,!1)),clearTimeout(n._mergeTimer),n._merge=!0,n._mergeTimer=setTimeout(function(){n._merge=!1},n.options.undo.interval),!0):!1},a.prototype.getCommand=function(n){return this.commands[n]||this.commandPatches[n]||new this.api.Command(n)},a.prototype.restoreFromHistory=function(n){this._lastItem=n;this.setHTML(n.content,!0);var t=new this.api.Selection;t.selectMarkers();this.trigger("content-changed")},a.prototype.allowsBlockElements=function(){return this.options.allowBlockElements},a.prototype.setContent=function(n){this.allowsBlockElements()||(n=n+"<br>");this.setHTML(n);this.trigger("content-changed")},a.prototype.insertPlainText=function(n){this.insertHTML("<p>"+this._plainTextFormatterFactory.format(n)+"<\/p>")},a.prototype.insertHTML=function(n){this.getCommand("insertHTML").execute(this._htmlFormatterFactory.format(n))},a.prototype.isDebugModeEnabled=function(){return this.options.debug},a.prototype.registerHTMLFormatter=function(n,t){this._htmlFormatterFactory.formatters[n]=this._htmlFormatterFactory.formatters[n].push(t)},a.prototype.registerPlainTextFormatter=function(n){this._plainTextFormatterFactory.formatters=this._plainTextFormatterFactory.formatters.push(n)},y.prototype.format=function(n){return this.formatters.reduce(function(n,t){return t(n)},n)},v.prototype=Object.create(y.prototype),v.prototype.constructor=v,v.prototype.format=function(n){var t=this.formatters.sanitize.concat(this.formatters.normalize);return t.reduce(function(n,t){return t(n)},n)},v.prototype.formatForExport=function(n){return this.formatters["export"].reduce(function(n,t){return t(n)},n)},a}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(155)],r=function(n){"use strict";return function(t){function i(){this.history=[]}return n(i.prototype,{start:function(){this.history.push(1)},end:function(){this.history.pop();this.history.length===0&&(t.pushHistory(),t.trigger("content-changed"))},run:function(n,i){this.start();try{n&&n()}finally{t._forceMerge=i===!0;this.end();t._forceMerge=!1}}}),i}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(156),i(172)],r=function(n,t){return t(n)}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(157),i(158)],r=function(n,t){function i(i,r,u){var s=t(r),h,c;if(!u)return n(r,i,s);for(h=-1,c=s.length;++h<c;){var f=s[h],e=i[f],o=u(e,r[f],f,i,r);(o===o?o===e:e!==e)&&(typeof e!="undefined"||f in i)||(i[f]=o)}return i}return i}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t){var r,i;!(r=[],i=function(){function n(n,t,i){var r,f,u;for(i||(i=t,t={}),r=-1,f=i.length;++r<f;)u=i[r],t[u]=n[u];return t}return n}.apply(t,r),i!==undefined&&(n.exports=i))},[319,159,160,164,165],function(n,t){var r,i;!(r=[],i=function(){function n(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}var t=Math.pow(2,53)-1;return n}.apply(t,r),i!==undefined&&(n.exports=i))},[320,161,163],[321,162],function(n,t){var r,i;!(r=[],i=function(){function n(n){return typeof n=="string"?n:n==null?"":n+""}return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t){var r,i;!(r=[],i=function(){function n(n){return n&&(typeof n=="undefined"?"undefined":_typeof(n))=="object"||!1}return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t){var r,i;!(r=[],i=function(){function n(n){var t=typeof n=="undefined"?"undefined":_typeof(n);return t=="function"||n&&t=="object"||!1}return n}.apply(t,r),i!==undefined&&(n.exports=i))},[322,166,167,168,159,169,170],[323,159,163],[324,159,160,163],function(n,t){var r,i;!(r=[],i=function(){function n(n,i){return n=+n,i=i==null?t:i,n>-1&&n%1==0&&n<i}var t=Math.pow(2,53)-1;return n}.apply(t,r),i!==undefined&&(n.exports=i))},[325,166,167,168,159,164,170],[326,160,171],function(n,t,i){var u,r;(function(n,i){!(u=[],r=function(){var r={"function":!0,object:!0},f=r[typeof t=="undefined"?"undefined":_typeof(t)]&&t&&!t.nodeType&&t,e=r[typeof n=="undefined"?"undefined":_typeof(n)]&&n&&!n.nodeType&&n,o=f&&e&&(typeof i=="undefined"?"undefined":_typeof(i))=="object"&&i,u=r[typeof window=="undefined"?"undefined":_typeof(window)]&&window;return o||u!==(this&&this.window)&&u||this}.apply(t,u),r!==undefined&&(n.exports=r))}).call(t,i(26)(n),function(){return this}())},[327,173,175],[328,174],function(n,t){var r,i;!(r=[],i=function(){function n(n){return n}return n}.apply(t,r),i!==undefined&&(n.exports=i))},[329,168,159,164],function(n,t,i){var u,r;!(u=[i(177),i(178),i(180),i(184)],r=function(n,t,i,r){"use strict";return{setRootPElement:n,enforcePElements:t,ensureSelectableContainers:i,inlineElementsMode:r}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){n.getHTML().trim()===""&&n.setContent("<p><br><\/p>")}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(179)],r=function(n){"use strict";return function(){return function(t){function i(t){var i=0;n.List(t.childNodes).filter(function(n){return n.nodeType===Node.TEXT_NODE||!r.isBlockElement(n)}).groupBy(function(n,t,r){return t===0||n.previousSibling===r.get(t-1)?i:i+=1}).forEach(function(n){r.wrap(n.toArray(),document.createElement("p"))})}function u(n){for(var r=0,t;t=n.children[r++];)t.tagName==="BLOCKQUOTE"&&i(t)}var r=t.node;t.registerHTMLFormatter("normalize",function(n){var t=document.createElement("div");return t.innerHTML=n,i(t),u(t),t.innerHTML})}}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n){(function(t,i){n.exports=i()})(this,function(){"use strict";function u(n,t){t&&(n.prototype=Object.create(t.prototype));n.prototype.constructor=n}function c(n){return k(n)?n:w(n)}function it(n){return y(n)?n:at(n)}function wt(n){return ct(n)?n:l(n)}function ht(n){return k(n)&&!lu(n)?n:dt(n)}function k(n){return!!(n&&n[rh])}function y(n){return!!(n&&n[uh])}function ct(n){return!!(n&&n[fh])}function lu(n){return y(n)||ct(n)}function kt(n){return!!(n&&n[ur])}function au(n){return n.value=!1,n}function lt(n){n&&(n.value=!0)}function vu(){}function ei(n,t){var r,u,i;for(t=t||0,r=Math.max(0,n.length-t),u=new Array(r),i=0;i<r;i++)u[i]=n[i+t];return u}function yu(n){return n.size===undefined&&(n.size=n.__iterate(ye)),n.size}function oi(n,t){if(typeof t!="number"){var i=t>>>0;if(""+i!==t||i===4294967295)return NaN;t=i}return t<0?yu(n)+t:t}function ye(){return!0}function fr(n,t,i){return(n===0||i!==undefined&&n<=-i)&&(t===undefined||i!==undefined&&t>=i)}function yi(n,t){return pe(n,t,0)}function er(n,t){return pe(n,t,t)}function pe(n,t,i){return n===undefined?i:n<0?Math.max(0,t+n):t===undefined?n:Math.min(t,n)}function r(n){this.next=n}function e(n,t,i,r){var u=n===0?t:n===1?i:[t,i];return r?r.value=u:r={value:u,done:!1},r}function ut(){return{value:undefined,done:!0}}function we(n){return!!be(n)}function gr(n){return n&&typeof n.next=="function"}function or(n){var t=be(n);return t&&t.call(n)}function be(n){var t=n&&(ce&&n[ce]||n[oh]);if(typeof t=="function")return t}function ke(n){return n&&typeof n.length=="number"}function w(n){return n===null||n===undefined?nu():k(n)?n.toSeq():sh(n)}function at(n){return n===null||n===undefined?nu().toKeyedSeq():k(n)?y(n)?n.toSeq():n.fromEntrySeq():de(n)}function l(n){return n===null||n===undefined?nu():k(n)?y(n)?n.entrySeq():n.toIndexedSeq():wu(n)}function dt(n){return(n===null||n===undefined?nu():k(n)?y(n)?n.entrySeq():n:wu(n)).toSetSeq()}function gt(n){this._array=n;this.size=n.length}function si(n){var t=Object.keys(n);this._object=n;this._keys=t;this.size=t.length}function sr(n){this._iterable=n;this.size=n.length||n.size}function hr(n){this._iterator=n;this._iteratorCache=[]}function pu(n){return!!(n&&n[ne])}function nu(){return bs||(bs=new gt([]))}function de(n){var t=Array.isArray(n)?new gt(n).fromEntrySeq():gr(n)?new hr(n).fromEntrySeq():we(n)?new sr(n).fromEntrySeq():(typeof n=="undefined"?"undefined":_typeof(n))==="object"?new si(n):undefined;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+n);return t}function wu(n){var t=ge(n);if(!t)throw new TypeError("Expected Array or iterable object of values: "+n);return t}function sh(n){var t=ge(n)||(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&new si(n);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+n);return t}function ge(n){return ke(n)?new gt(n):gr(n)?new hr(n):we(n)?new sr(n):undefined}function no(n,t,i,r){var f=n._cache,e,u,o;if(f){for(e=f.length-1,u=0;u<=e;u++)if(o=f[i?e-u:u],t(o[1],r?o[0]:u,n)===!1)return u+1;return u}return n.__iterateUncached(t,i)}function to(n,t,i,u){var o=n._cache,s,f;return o?(s=o.length-1,f=0,new r(function(){var n=o[i?s-f:f];return f++>s?ut():e(t,u?n[0]:f-1,n[1])})):n.__iteratorUncached(t,i)}function bu(n,t){return t?ku(t,n,"",{"":n}):du(n)}function ku(n,t,i,r){return Array.isArray(t)?n.call(r,i,l(t).map(function(i,r){return ku(n,i,r,t)})):io(t)?n.call(r,i,at(t).map(function(i,r){return ku(n,i,r,t)})):t}function du(n){return Array.isArray(n)?l(n).map(du).toList():io(n)?at(n).map(du).toMap():n}function io(n){return n&&(n.constructor===Object||n.constructor===undefined)}function a(n,t){if(n===t||n!==n&&t!==t)return!0;if(!n||!t)return!1;if(typeof n.valueOf=="function"&&typeof t.valueOf=="function"){if(n=n.valueOf(),t=t.valueOf(),n===t||n!==n&&t!==t)return!0;if(!n||!t)return!1}return typeof n.equals=="function"&&typeof t.equals=="function"&&n.equals(t)?!0:!1}function gu(n,i){var r,u,f,o,e,s;return n===i?!0:!k(i)||n.size!==undefined&&i.size!==undefined&&n.size!==i.size||n.__hash!==undefined&&i.__hash!==undefined&&n.__hash!==i.__hash||y(n)!==y(i)||ct(n)!==ct(i)||kt(n)!==kt(i)?!1:n.size===0&&i.size===0?!0:(r=!lu(n),kt(n))?(u=n.entries(),i.every(function(n,t){var i=u.next().value;return i&&a(i[1],n)&&(r||a(i[0],t))})&&u.next().done):(f=!1,n.size===undefined&&(i.size===undefined?typeof n.cacheResult=="function"&&n.cacheResult():(f=!0,o=n,n=i,i=o)),e=!0,s=i.__iterate(function(i,u){if(r?!n.has(i):f?!a(i,n.get(u,t)):!a(n.get(u,t),i))return e=!1,!1}),e&&n.size===s)}function g(n,t){if(!(this instanceof g))return new g(n,t);if(this._value=n,this.size=t===undefined?Infinity:Math.max(0,t),this.size===0){if(te)return te;te=this}}function tu(n,t){if(!n)throw new Error(t);}function nt(n,t,i){if(!(this instanceof nt))return new nt(n,t,i);if(tu(i!==0,"Cannot step a Range by 0"),n=n||0,t===undefined&&(t=Infinity),i=i===undefined?1:Math.abs(i),t<n&&(i=-i),this._start=n,this._end=t,this._step=i,this.size=Math.max(0,Math.ceil((t-n)/i-1)+1),this.size===0){if(ie)return ie;ie=this}}function hi(){throw TypeError("Abstract");}function cr(){}function pi(){}function iu(){}function nf(n){return n>>>1&1073741824|n&3221225471}function et(n){var t,i;if(n===!1||n===null||n===undefined||typeof n.valueOf=="function"&&(n=n.valueOf(),n===!1||n===null||n===undefined))return 0;if(n===!0)return 1;if(t=typeof n=="undefined"?"undefined":_typeof(n),t==="number"){for(i=n|0,i!==n&&(i^=n*4294967295);n>4294967295;)n/=4294967295,i^=n;return nf(i)}if(t==="string")return n.length>lc?hh(n):tf(n);if(typeof n.hashCode=="function")return n.hashCode();if(t==="object")return ch(n);if(typeof n.toString=="function")return tf(n.toString());throw new Error("Value type "+t+" cannot be hashed.");}function hh(n){var t=ve[n];return t===undefined&&(t=tf(n),ae===ac&&(ae=0,ve={}),ae++,ve[n]=t),t}function tf(n){for(var t=0,i=0;i<n.length;i++)t=31*t+n.charCodeAt(i)|0;return nf(t)}function ch(n){var t;if(hu&&(t=fe.get(n),t!==undefined)||(t=n[ai],t!==undefined)||!ue&&((t=n.propertyIsEnumerable&&n.propertyIsEnumerable[ai],t!==undefined)||(t=lh(n),t!==undefined)))return t;if(t=++cu,cu&1073741824&&(cu=0),hu)fe.set(n,t);else if(re!==undefined&&re(n)===!1)throw new Error("Non-extensible objects are not allowed as keys.");else if(ue)Object.defineProperty(n,ai,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(n.propertyIsEnumerable!==undefined&&n.propertyIsEnumerable===n.constructor.prototype.propertyIsEnumerable)n.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},n.propertyIsEnumerable[ai]=t;else if(n.nodeType!==undefined)n[ai]=t;else throw new Error("Unable to set a non-enumerable property on object.");return t}function lh(n){if(n&&n.nodeType>0)switch(n.nodeType){case 1:return n.uniqueID;case 9:return n.documentElement&&n.documentElement.uniqueID}}function ot(n){tu(n!==Infinity,"Cannot perform this action with an infinite size.")}function i(n){return n===null||n===undefined?ni():rf(n)&&!kt(n)?n:ni().withMutations(function(t){var i=it(n);ot(i.size);i.forEach(function(n,i){return t.set(i,n)})})}function rf(n){return!!(n&&n[ee])}function lr(n,t){this.ownerID=n;this.entries=t}function wi(n,t,i){this.ownerID=n;this.bitmap=t;this.nodes=i}function ar(n,t,i){this.ownerID=n;this.count=t;this.nodes=i}function bi(n,t,i){this.ownerID=n;this.keyHash=t;this.entries=i}function fi(n,t,i){this.ownerID=n;this.keyHash=t;this.entry=i}function uf(n,t,i){this._type=t;this._reverse=i;this._stack=n._root&&ro(n._root)}function ff(n,t){return e(n,t[0],t[1])}function ro(n,t){return{node:n,index:0,__prev:t}}function ef(t,i,r,u){var f=Object.create(n);return f.size=t,f._root=i,f.__ownerID=r,f.__hash=u,f.__altered=!1,f}function ni(){return ks||(ks=ef(0))}function uo(n,i,r){var u,f,e,o;if(n._root){if(e=au(cc),o=au(eh),u=of(n._root,n.__ownerID,0,undefined,i,r,e,o),!o.value)return n;f=n.size+(e.value?r===t?-1:1:0)}else{if(r===t)return n;f=1;u=new lr(n.__ownerID,[[i,r]])}return n.__ownerID?(n.size=f,n._root=u,n.__hash=undefined,n.__altered=!0,n):u?ef(f,u):ni()}function of(n,i,r,u,f,e,o,s){return n?n.update(i,r,u,f,e,o,s):e===t?n:(lt(s),lt(o),new fi(i,u,[f,e]))}function fo(n){return n.constructor===fi||n.constructor===bi}function sf(n,t,i,r,u){if(n.keyHash===r)return new bi(t,r,[n.entry,u]);var f=(i===0?n.keyHash:n.keyHash>>>i)&rt,e=(i===0?r:r>>>i)&rt,o,h=f===e?[sf(n,t,i+s,r,u)]:(o=new fi(t,r,u),f<e?[n,o]:[o,n]);return new wi(t,1<<f|1<<e,h)}function ah(n,t,i,r){var u,f,e;for(n||(n=new vu),u=new fi(n,et(i),[i,r]),f=0;f<t.length;f++)e=t[f],u=u.update(n,0,undefined,e[0],e[1]);return u}function vh(n,t,i,r){for(var e=0,h=0,o=new Array(i),f,u=0,s=1,c=t.length;u<c;u++,s<<=1)f=t[u],f!==undefined&&u!==r&&(e|=s,o[h++]=f);return new wi(n,e,o)}function yh(n,t,i,r,u){for(var e=0,f=new Array(yt),o=0;i!==0;o++,i>>>=1)f[o]=i&1?t[e++]:undefined;return f[r]=u,new ar(n,e+1,f)}function ru(n,t,i){for(var e=[],u,r,f=0;f<i.length;f++)u=i[f],r=it(u),k(u)||(r=r.map(function(n){return bu(n)})),e.push(r);return so(n,t,e)}function eo(n,t){return n&&n.mergeDeep&&k(t)?n.mergeDeep(t):a(n,t)?n:t}function oo(n){return function(t,i,r){if(t&&t.mergeDeepWith&&k(i))return t.mergeDeepWith(n,i);var u=n(t,i,r);return a(t,u)?t:u}}function so(n,i,r){return(r=r.filter(function(n){return n.size!==0}),r.length===0)?n:n.size===0&&!n.__ownerID&&r.length===1?n.constructor(r[0]):n.withMutations(function(n){for(var f=i?function(r,u){n.update(u,t,function(n){return n===t?r:i(n,r,u)})}:function(t,i){n.set(i,t)},u=0;u<r.length;u++)r[u].forEach(f)})}function ho(n,i,r,u){var f=n===t,c=i.next(),e,o;if(c.done)return e=f?r:n,o=u(e),o===e?n:o;tu(f||n&&n.set,"invalid keyPath");var s=c.value,l=f?t:n.get(s,t),h=ho(l,i,r,u);return h===l?n:h===t?n.remove(s):(f?ni():n).set(s,h)}function co(n){return n=n-(n>>1&1431655765),n=(n&858993459)+(n>>2&858993459),n=n+(n>>4)&252645135,n=n+(n>>8),n=n+(n>>16),n&127}function lo(n,t,i,r){var u=r?n:ei(n);return u[t]=i,u}function ph(n,t,i,r){var e=n.length+1,f,o,u;if(r&&t+1===e)return n[t]=i,n;for(f=new Array(e),o=0,u=0;u<e;u++)u===t?(f[u]=i,o=-1):f[u]=n[u+o];return f}function wh(n,t,i){var u=n.length-1,f,e,r;if(i&&t===u)return n.pop(),n;for(f=new Array(u),e=0,r=0;r<u;r++)r===t&&(e=1),f[r]=n[r+e];return f}function o(n){var r=hf(),i,t;return n===null||n===undefined?r:ao(n)?n:(i=wt(n),t=i.size,t===0)?r:(ot(t),t>0&&t<yt)?vr(0,t,s,null,new ci(i.toArray())):r.withMutations(function(n){n.setSize(t);i.forEach(function(t,i){return n.set(i,t)})})}function ao(n){return!!(n&&n[oe])}function ci(n,t){this.array=n;this.ownerID=t}function vo(n,t){function u(n,t,i){return t===0?e(n,i):o(n,t,i)}function e(n,u){var o=u===h?f&&f.array:n&&n.array,s=u>i?0:i-u,e=r-u;return e>yt&&(e=yt),function(){if(s===e)return rr;var n=t?--e:s++;return o&&o[n]}}function o(n,f,e){var o,c=n&&n.array,l=e>i?0:i-e>>f,h=(r-e>>f)+1;return h>yt&&(h=yt),function(){var n,i;do{if(o){if(n=o(),n!==rr)return n;o=null}if(l===h)return rr;i=t?--h:l++;o=u(c&&c[i],f-s,e+(i<<f))}while(1)}}var i=n._origin,r=n._capacity,h=yr(r),f=n._tail;return u(n._root,n._level,0)}function vr(n,t,i,r,u,f,e){var o=Object.create(tt);return o.size=t-n,o._origin=n,o._capacity=t,o._level=i,o._root=r,o._tail=u,o.__ownerID=f,o.__hash=e,o.__altered=!1,o}function hf(){return ds||(ds=vr(0,0,s))}function bh(n,t,i){if(t=oi(n,t),t!==t)return n;if(t>=n.size||t<0)return n.withMutations(function(n){t<0?li(n,t).set(0,i):li(n,0,t+1).set(t,i)});t+=n._origin;var r=n._tail,u=n._root,f=au(eh);return(t>=yr(n._capacity)?r=cf(r,n.__ownerID,0,t,i,f):u=cf(u,n.__ownerID,n._level,t,i,f),!f.value)?n:n.__ownerID?(n._root=u,n._tail=r,n.__hash=undefined,n.__altered=!0,n):vr(n._origin,n._capacity,n._level,u,r)}function cf(n,t,i,r,u,f){var o=r>>>i&rt,l=n&&o<n.array.length,e,h,c;return!l&&u===undefined?n:i>0?(h=n&&n.array[o],c=cf(h,t,i-s,r,u,f),c===h)?n:(e=ki(n,t),e.array[o]=c,e):l&&n.array[o]===u?n:(lt(f),e=ki(n,t),u===undefined&&o===e.array.length-1?e.array.pop():e.array[o]=u,e)}function ki(n,t){return t&&n&&t===n.ownerID?n:new ci(n?n.array.slice():[],t)}function yo(n,t){if(t>=yr(n._capacity))return n._tail;if(t<1<<n._level+s){for(var i=n._root,r=n._level;i&&r>0;)i=i.array[t>>>r&rt],r-=s;return i}}function li(n,t,i){var a,o,p,c,w,k,d,b;t!==undefined&&(t=t|0);i!==undefined&&(i=i|0);var l=n.__ownerID||new vu,y=n._origin,v=n._capacity,u=y+t,h=i===undefined?v:i<0?v+i:y+i;if(u===y&&h===v)return n;if(u>=h)return n.clear();for(var f=n._level,r=n._root,e=0;u+e<0;)r=new ci(r&&r.array.length?[undefined,r]:[],l),f+=s,e+=1<<f;for(e&&(u+=e,y+=e,h+=e,v+=e),a=yr(v),o=yr(h);o>=1<<f+s;)r=new ci(r&&r.array.length?[r]:[],l),f+=s;if(p=n._tail,c=o<a?yo(n,h-1):o>a?new ci([],l):p,p&&o>a&&u<v&&p.array.length){for(r=ki(r,l),w=r,k=f;k>s;k-=s)d=a>>>k&rt,w=w.array[d]=ki(w.array[d],l);w.array[a>>>s&rt]=p}if(h<v&&(c=c&&c.removeAfter(l,0,h)),u>=o)u-=o,h-=o,f=s,r=null,c=c&&c.removeBefore(l,0,u);else if(u>y||o<a){for(e=0;r;){if(b=u>>>f&rt,b!==o>>>f&rt)break;b&&(e+=(1<<f)*b);f-=s;r=r.array[b]}r&&u>y&&(r=r.removeBefore(l,f,u-e));r&&o<a&&(r=r.removeAfter(l,f,o-e));e&&(u-=e,h-=e)}return n.__ownerID?(n.size=h-u,n._origin=u,n._capacity=h,n._level=f,n._root=r,n._tail=c,n.__hash=undefined,n.__altered=!0,n):vr(u,h,f,r,c)}function uu(n,t,i){for(var o=[],u=0,f,r,e=0;e<i.length;e++)f=i[e],r=wt(f),r.size>u&&(u=r.size),k(f)||(r=r.map(function(n){return bu(n)})),o.push(r);return u>n.size&&(n=n.setSize(u)),so(n,t,o)}function yr(n){return n<yt?0:n-1>>>s<<s}function v(n){return n===null||n===undefined?fu():po(n)?n:fu().withMutations(function(t){var i=it(n);ot(i.size);i.forEach(function(n,i){return t.set(i,n)})})}function po(n){return rf(n)&&kt(n)}function lf(n,t,i,r){var u=Object.create(v.prototype);return u.size=n?n.size:0,u._map=n,u._list=t,u.__ownerID=i,u.__hash=r,u}function fu(){return gs||(gs=lf(ni(),hf()))}function wo(n,i,r){var s=n._map,u=n._list,o=s.get(i),h=o!==undefined,f,e;if(r===t){if(!h)return n;u.size>=yt&&u.size>=s.size*2?(e=u.filter(function(n,t){return n!==undefined&&o!==t}),f=e.toKeyedSeq().map(function(n){return n[0]}).flip().toMap(),n.__ownerID&&(f.__ownerID=e.__ownerID=n.__ownerID)):(f=s.remove(i),e=o===u.size-1?u.pop():u.set(o,undefined))}else if(h){if(r===u.get(o)[1])return n;f=s;e=u.set(o,[i,r])}else f=s.set(i,u.size),e=u.set(u.size,[i,r]);return n.__ownerID?(n.size=f.size,n._map=f,n._list=e,n.__hash=undefined,n):lf(f,e)}function vt(n,t){this._iter=n;this._useKeys=t;this.size=n.size}function di(n){this._iter=n;this.size=n.size}function gi(n){this._iter=n;this.size=n.size}function nr(n){this._iter=n;this.size=n.size}function bo(n){var t=ti(n);return t._iter=n,t.size=n.size,t.flip=function(){return n},t.reverse=function(){var t=n.reverse.apply(this);return t.flip=function(){return n.reverse()},t},t.has=function(t){return n.includes(t)},t.includes=function(t){return n.has(t)},t.cacheResult=pf,t.__iterateUncached=function(t,i){var r=this;return n.__iterate(function(n,i){return t(i,n,r)!==!1},i)},t.__iteratorUncached=function(t,i){if(t===ui){var u=n.__iterator(t,i);return new r(function(){var n=u.next(),t;return n.done||(t=n.value[0],n.value[0]=n.value[1],n.value[1]=t),n})}return n.__iterator(t===pt?dr:pt,i)},t}function ko(n,i,u){var f=ti(n);return f.size=n.size,f.has=function(t){return n.has(t)},f.get=function(r,f){var e=n.get(r,t);return e===t?f:i.call(u,e,r,n)},f.__iterateUncached=function(t,r){var f=this;return n.__iterate(function(n,r,e){return t(i.call(u,n,r,e),r,f)!==!1},r)},f.__iteratorUncached=function(t,f){var o=n.__iterator(ui,f);return new r(function(){var r=o.next(),f,s;return r.done?r:(f=r.value,s=f[0],e(t,s,i.call(u,f[1],s,n),r))})},f}function af(n,t){var i=ti(n);return i._iter=n,i.size=n.size,i.reverse=function(){return n},n.flip&&(i.flip=function(){var t=bo(n);return t.reverse=function(){return n.flip()},t}),i.get=function(i,r){return n.get(t?i:-1-i,r)},i.has=function(i){return n.has(t?i:-1-i)},i.includes=function(t){return n.includes(t)},i.cacheResult=pf,i.__iterate=function(t,i){var r=this;return n.__iterate(function(n,i){return t(n,i,r)},!i)},i.__iterator=function(t,i){return n.__iterator(t,!i)},i}function go(n,i,u,f){var o=ti(n);return f&&(o.has=function(r){var f=n.get(r,t);return f!==t&&!!i.call(u,f,r,n)},o.get=function(r,f){var e=n.get(r,t);return e!==t&&i.call(u,e,r,n)?e:f}),o.__iterateUncached=function(t,r){var o=this,e=0;return n.__iterate(function(n,r,s){if(i.call(u,n,r,s))return e++,t(n,f?r:e-1,o)},r),e},o.__iteratorUncached=function(t,o){var s=n.__iterator(ui,o),h=0;return new r(function(){for(var r;;){if(r=s.next(),r.done)return r;var o=r.value,c=o[0],l=o[1];if(i.call(u,l,c,n))return e(t,f?c:h++,l,r)}})},o}function kh(n,t,r){var u=i().asMutable();return n.__iterate(function(i,f){u.update(t.call(r,i,f,n),0,function(n){return n+1})}),u.asImmutable()}function dh(n,t,r){var o=y(n),u=(kt(n)?v():i()).asMutable(),e;return n.__iterate(function(i,f){u.update(t.call(r,i,f,n),function(n){return n=n||[],n.push(o?[f,i]:i),n})}),e=fs(n),u.map(function(t){return f(n,e(t))})}function vf(n,t,i,u){var l=n.size,o,c,h,f,s;return(t!==undefined&&(t=t|0),i!==undefined&&(i=i|0),fr(t,i,l))?n:(o=yi(t,l),c=er(i,l),o!==o||c!==c)?vf(n.toSeq().cacheResult(),t,i,u):(h=c-o,h===h&&(f=h<0?0:h),s=ti(n),s.size=f===0?f:n.size&&f||undefined,!u&&pu(n)&&f>=0&&(s.get=function(t,i){return t=oi(this,t),t>=0&&t<f?n.get(t+o,i):i}),s.__iterateUncached=function(t,i){var s=this;if(f===0)return 0;if(i)return this.cacheResult().__iterate(t,i);var h=0,e=!0,r=0;return n.__iterate(function(n,i){if(!(e&&(e=h++<o)))return r++,t(n,u?i:r-1,s)!==!1&&r!==f}),r},s.__iteratorUncached=function(t,i){if(f!==0&&i)return this.cacheResult().__iterator(t,i);var h=f!==0&&n.__iterator(t,i),c=0,s=0;return new r(function(){while(c++<o)h.next();if(++s>f)return ut();var n=h.next();return u||t===pt?n:t===dr?e(t,s-1,undefined,n):e(t,s-1,n.value[1],n)})},s)}function gh(n,t,i){var u=ti(n);return u.__iterateUncached=function(r,u){var e=this,f;return u?this.cacheResult().__iterate(r,u):(f=0,n.__iterate(function(n,u,o){return t.call(i,n,u,o)&&++f&&r(n,u,e)}),f)},u.__iteratorUncached=function(u,f){var h=this,s,o;return f?this.cacheResult().__iterator(u,f):(s=n.__iterator(ui,f),o=!0,new r(function(){var n;if(!o)return ut();if(n=s.next(),n.done)return n;var r=n.value,f=r[0],c=r[1];return t.call(i,c,f,h)?u===ui?n:e(u,f,c,n):(o=!1,ut())}))},u}function ns(n,t,i,u){var f=ti(n);return f.__iterateUncached=function(r,f){var s=this,o,e;return f?this.cacheResult().__iterate(r,f):(o=!0,e=0,n.__iterate(function(n,f,h){if(!(o&&(o=t.call(i,n,f,h))))return e++,r(n,u?f:e-1,s)}),e)},f.__iteratorUncached=function(f,o){var c=this;if(o)return this.cacheResult().__iterator(f,o);var l=n.__iterator(ui,o),s=!0,h=0;return new r(function(){var n,r,o,a;do{if(n=l.next(),n.done)return u||f===pt?n:f===dr?e(f,h++,undefined,n):e(f,h++,n.value[1],n);a=n.value;r=a[0];o=a[1];s&&(s=t.call(i,o,r,c))}while(s);return f===ui?n:e(f,r,o,n)})},f}function nc(n,t){var f=y(n),r=[n].concat(t).map(function(n){return k(n)?f&&(n=it(n)):n=f?de(n):wu(Array.isArray(n)?n:[n]),n}).filter(function(n){return n.size!==0}),u,i;return r.length===0?n:r.length===1&&(u=r[0],u===n||f&&y(u)||ct(n)&&ct(u))?u:(i=new gt(r),f?i=i.toKeyedSeq():ct(n)||(i=i.toSetSeq()),i=i.flatten(!0),i.size=r.reduce(function(n,t){if(n!==undefined){var i=t.size;if(i!==undefined)return n+i}},0),i)}function ts(n,t,i){var u=ti(n);return u.__iterateUncached=function(r,u){function f(n,s){var h=this;n.__iterate(function(n,u){return(!t||s<t)&&k(n)?f(n,s+1):r(n,i?u:e++,h)===!1&&(o=!0),!o},u)}var e=0,o=!1;return f(n,0),e},u.__iteratorUncached=function(u,f){var o=n.__iterator(u,f),s=[],h=0;return new r(function(){for(var r,n;o;){if(r=o.next(),r.done!==!1){o=s.pop();continue}if(n=r.value,u===ui&&(n=n[1]),(!t||s.length<t)&&k(n))s.push(o),o=n.__iterator(u,f);else return i?r:e(u,h++,n,r)}return ut()})},u}function tc(n,t,i){var r=fs(n);return n.toSeq().map(function(u,f){return r(t.call(i,u,f,n))}).flatten(!0)}function ic(n,t){var i=ti(n);return i.size=n.size&&n.size*2-1,i.__iterateUncached=function(i,r){var f=this,u=0;return n.__iterate(function(n){return(!u||i(t,u++,f)!==!1)&&i(n,u++,f)!==!1},r),u},i.__iteratorUncached=function(i,u){var s=n.__iterator(pt,u),o=0,f;return new r(function(){return(!f||o%2)&&(f=s.next(),f.done)?f:o%2?e(i,o++,t):e(i,o++,f.value,f)})},i}function tr(n,t,i){t||(t=es);var u=y(n),f=0,r=n.toSeq().map(function(t,r){return[r,t,f++,i?i(t,r,n):t]}).toArray();return r.sort(function(n,i){return t(n[3],i[3])||n[2]-i[2]}).forEach(u?function(n,t){r[t].length=2}:function(n,t){r[t]=n[1]}),u?at(r):ct(n)?l(r):dt(r)}function eu(n,t,i){if(t||(t=es),i){var r=n.toSeq().map(function(t,r){return[t,i(t,r,n)]}).reduce(function(n,i){return is(t,n[1],i[1])?i:n});return r&&r[0]}return n.reduce(function(n,i){return is(t,n,i)?i:n})}function is(n,t,i){var r=n(i,t);return r===0&&i!==t&&(i===undefined||i===null||i!==i)||r>0}function yf(n,t,i){var u=ti(n);return u.size=new gt(i).map(function(n){return n.size}).min(),u.__iterate=function(n,t){for(var u=this.__iterator(pt,t),i,r=0;!(i=u.next()).done;)if(n(i.value,r++,this)===!1)break;return r},u.__iteratorUncached=function(n,u){var o=i.map(function(n){return n=c(n),or(u?n.reverse():n)}),s=0,f=!1;return new r(function(){var i;return(f||(i=o.map(function(n){return n.next()}),f=i.some(function(n){return n.done})),f)?ut():e(n,s++,t.apply(null,i.map(function(n){return n.value})))})},u}function f(n,t){return pu(n)?t:n.constructor(t)}function rs(n){if(n!==Object(n))throw new TypeError("Expected [K, V] tuple: "+n);}function us(n){return ot(n.size),yu(n)}function fs(n){return y(n)?it:ct(n)?wt:ht}function ti(n){return Object.create((y(n)?at:ct(n)?l:dt).prototype)}function pf(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):w.prototype.cacheResult.call(this)}function es(n,t){return n>t?1:n<t?-1:0}function os(n){var t=or(n);if(!t){if(!ke(n))throw new TypeError("Expected iterable or array-like: "+n);t=or(c(n))}return t}function st(n,t){var f,r=function(e){if(e instanceof r)return e;if(!(this instanceof r))return new r(e);if(!f){f=!0;var o=Object.keys(n);rc(u,o);u.size=o.length;u._name=t;u._keys=o;u._defaultValues=n}this._map=i(e)},u=r.prototype=Object.create(b);return u.constructor=r,r}function ou(n,t,i){var r=Object.create(Object.getPrototypeOf(n));return r._map=t,r.__ownerID=i,r}function ss(n){return n._name||n.constructor.name||"Record"}function rc(n,t){try{t.forEach(uc.bind(undefined,n))}catch(i){}}function uc(n,t){Object.defineProperty(n,t,{get:function(){return this.get(t)},set:function(n){tu(this.__ownerID,"Cannot set on an immutable record.");this.set(t,n)}})}function h(n){return n===null||n===undefined?kf():wf(n)&&!kt(n)?n:kf().withMutations(function(t){var i=ht(n);ot(i.size);i.forEach(function(n){return t.add(n)})})}function wf(n){return!!(n&&n[se])}function bf(n,t){return n.__ownerID?(n.size=t.size,n._map=t,n):t===n._map?n:t.size===0?n.__empty():n.__make(t)}function hs(n,t){var i=Object.create(ft);return i.size=n?n.size:0,i._map=n,i.__ownerID=t,i}function kf(){return nh||(nh=hs(ni()))}function ii(n){return n===null||n===undefined?df():cs(n)?n:df().withMutations(function(t){var i=ht(n);ot(i.size);i.forEach(function(n){return t.add(n)})})}function cs(n){return wf(n)&&kt(n)}function ls(n,t){var i=Object.create(wr);return i.size=n?n.size:0,i._map=n,i.__ownerID=t,i}function df(){return th||(th=ls(fu()))}function p(n){return n===null||n===undefined?gf():as(n)?n:gf().unshiftAll(n)}function as(n){return!!(n&&n[he])}function pr(n,t,i,r){var u=Object.create(vi);return u.size=n,u._head=t,u.__ownerID=i,u.__hash=r,u.__altered=!1,u}function gf(){return ih||(ih=pr(0))}function ri(n,t){var i=function(i){n.prototype[i]=t[i]};return Object.keys(t).forEach(i),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(i),n}function fc(n,t){return t}function ec(n,t){return[t,n]}function su(n){return function(){return!n.apply(this,arguments)}}function vs(n){return function(){return-n.apply(this,arguments)}}function ys(n){return typeof n=="string"?JSON.stringify(n):n}function oc(){return ei(arguments)}function ps(n,t){return n<t?1:n>t?-1:0}function sc(n){if(n.size===Infinity)return 0;var i=kt(n),r=y(n),t=i?1:0,u=n.__iterate(r?i?function(n,i){t=31*t+ws(et(n),et(i))|0}:function(n,i){t=t+ws(et(n),et(i))|0}:i?function(n){t=31*t+et(n)|0}:function(n){t=t+et(n)|0});return hc(u,t)}function hc(n,t){return t=ir(t,3432918353),t=ir(t<<15|t>>>-15,461845907),t=ir(t<<13|t>>>-13,5),t=(t+3864292196|0)^n,t=ir(t^t>>>16,2246822507),t=ir(t^t>>>13,3266489909),nf(t^t>>>16)}function ws(n,t){return n^t+2654435769+(n<<6)+(n>>2)|0}var bt=Array.prototype.slice,ne,bs,te,ie,ir,re,ue,hu,fe,cu,ai,ee,n,ks,oe,tt,rr,ds,gs,b,se,ft,nh,wr,th,he,vi,ih,d,br;u(it,c);u(wt,c);u(ht,c);c.isIterable=k;c.isKeyed=y;c.isIndexed=ct;c.isAssociative=lu;c.isOrdered=kt;c.Keyed=it;c.Indexed=wt;c.Set=ht;var rh="@@__IMMUTABLE_ITERABLE__@@",uh="@@__IMMUTABLE_KEYED__@@",fh="@@__IMMUTABLE_INDEXED__@@",ur="@@__IMMUTABLE_ORDERED__@@",kr="delete",s=5,yt=1<<s,rt=yt-1,t={},cc={value:!1},eh={value:!1},dr=0,pt=1,ui=2,ce=typeof Symbol=="function"&&Symbol.iterator,oh="@@iterator",le=ce||oh;r.prototype.toString=function(){return"[Iterator]"};r.KEYS=dr;r.VALUES=pt;r.ENTRIES=ui;r.prototype.inspect=r.prototype.toSource=function(){return this.toString()};r.prototype[le]=function(){return this};u(w,c);w.of=function(){return w(arguments)};w.prototype.toSeq=function(){return this};w.prototype.toString=function(){return this.__toString("Seq {","}")};w.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this};w.prototype.__iterate=function(n,t){return no(this,n,t,!0)};w.prototype.__iterator=function(n,t){return to(this,n,t,!0)};u(at,w);at.prototype.toKeyedSeq=function(){return this};u(l,w);l.of=function(){return l(arguments)};l.prototype.toIndexedSeq=function(){return this};l.prototype.toString=function(){return this.__toString("Seq [","]")};l.prototype.__iterate=function(n,t){return no(this,n,t,!1)};l.prototype.__iterator=function(n,t){return to(this,n,t,!1)};u(dt,w);dt.of=function(){return dt(arguments)};dt.prototype.toSetSeq=function(){return this};w.isSeq=pu;w.Keyed=at;w.Set=dt;w.Indexed=l;ne="@@__IMMUTABLE_SEQ__@@";w.prototype[ne]=!0;u(gt,l);gt.prototype.get=function(n,t){return this.has(n)?this._array[oi(this,n)]:t};gt.prototype.__iterate=function(n,t){for(var r=this._array,u=r.length-1,i=0;i<=u;i++)if(n(r[t?u-i:i],i,this)===!1)return i+1;return i};gt.prototype.__iterator=function(n,t){var u=this._array,f=u.length-1,i=0;return new r(function(){return i>f?ut():e(n,i,u[t?f-i++:i++])})};u(si,at);si.prototype.get=function(n,t){return t!==undefined&&!this.has(n)?t:this._object[n]};si.prototype.has=function(n){return this._object.hasOwnProperty(n)};si.prototype.__iterate=function(n,t){for(var e=this._object,u=this._keys,f=u.length-1,r,i=0;i<=f;i++)if(r=u[t?f-i:i],n(e[r],r,this)===!1)return i+1;return i};si.prototype.__iterator=function(n,t){var o=this._object,u=this._keys,f=u.length-1,i=0;return new r(function(){var r=u[t?f-i:i];return i++>f?ut():e(n,r,o[r])})};si.prototype[ur]=!0;u(sr,l);sr.prototype.__iterateUncached=function(n,t){var i;if(t)return this.cacheResult().__iterate(n,t);var f=this._iterable,r=or(f),u=0;if(gr(r))while(!(i=r.next()).done)if(n(i.value,u++,this)===!1)break;return u};sr.prototype.__iteratorUncached=function(n,t){var u,i,f;return t?this.cacheResult().__iterator(n,t):(u=this._iterable,i=or(u),!gr(i))?new r(ut):(f=0,new r(function(){var t=i.next();return t.done?t:e(n,f++,t.value)}))};u(hr,l);hr.prototype.__iterateUncached=function(n,t){var f,r;if(t)return this.cacheResult().__iterate(n,t);for(var e=this._iterator,u=this._iteratorCache,i=0;i<u.length;)if(n(u[i],i++,this)===!1)return i;while(!(f=e.next()).done)if(r=f.value,u[i]=r,n(r,i++,this)===!1)break;return i};hr.prototype.__iteratorUncached=function(n,t){if(t)return this.cacheResult().__iterator(n,t);var f=this._iterator,u=this._iteratorCache,i=0;return new r(function(){if(i>=u.length){var t=f.next();if(t.done)return t;u[i]=t.value}return e(n,i,u[i++])})};u(g,l);g.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"};g.prototype.get=function(n,t){return this.has(n)?this._value:t};g.prototype.includes=function(n){return a(this._value,n)};g.prototype.slice=function(n,t){var i=this.size;return fr(n,t,i)?this:new g(this._value,er(t,i)-yi(n,i))};g.prototype.reverse=function(){return this};g.prototype.indexOf=function(n){return a(this._value,n)?0:-1};g.prototype.lastIndexOf=function(n){return a(this._value,n)?this.size:-1};g.prototype.__iterate=function(n){for(var t=0;t<this.size;t++)if(n(this._value,t,this)===!1)return t+1;return t};g.prototype.__iterator=function(n){var t=this,i=0;return new r(function(){return i<t.size?e(n,i++,t._value):ut()})};g.prototype.equals=function(n){return n instanceof g?a(this._value,n._value):gu(n)};u(nt,l);nt.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"};nt.prototype.get=function(n,t){return this.has(n)?this._start+oi(this,n)*this._step:t};nt.prototype.includes=function(n){var t=(n-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)};nt.prototype.slice=function(n,t){return fr(n,t,this.size)?this:(n=yi(n,this.size),t=er(t,this.size),t<=n)?new nt(0,0):new nt(this.get(n,this._end),this.get(t,this._end),this._step)};nt.prototype.indexOf=function(n){var i=n-this._start,t;return i%this._step==0&&(t=i/this._step,t>=0&&t<this.size)?t:-1};nt.prototype.lastIndexOf=function(n){return this.indexOf(n)};nt.prototype.__iterate=function(n,t){for(var u=this.size-1,r=this._step,f=t?this._start+u*r:this._start,i=0;i<=u;i++){if(n(f,i,this)===!1)return i+1;f+=t?-r:r}return i};nt.prototype.__iterator=function(n,t){var u=this.size-1,i=this._step,f=t?this._start+u*i:this._start,o=0;return new r(function(){var r=f;return f+=t?-i:i,o>u?ut():e(n,o++,r)})};nt.prototype.equals=function(n){return n instanceof nt?this._start===n._start&&this._end===n._end&&this._step===n._step:gu(this,n)};u(hi,c);u(cr,hi);u(pi,hi);u(iu,hi);hi.Keyed=cr;hi.Indexed=pi;hi.Set=iu;ir=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(n,t){n=n|0;t=t|0;var i=n&65535,r=t&65535;return i*r+((n>>>16)*r+i*(t>>>16)<<16>>>0)|0};re=Object.isExtensible;ue=function(){try{return Object.defineProperty({},"@",{}),!0}catch(n){return!1}}();hu=typeof WeakMap=="function";hu&&(fe=new WeakMap);cu=0;ai="__immutablehash__";typeof Symbol=="function"&&(ai=Symbol(ai));var lc=16,ac=255,ae=0,ve={};u(i,cr);i.prototype.toString=function(){return this.__toString("Map {","}")};i.prototype.get=function(n,t){return this._root?this._root.get(0,undefined,n,t):t};i.prototype.set=function(n,t){return uo(this,n,t)};i.prototype.setIn=function(n,i){return this.updateIn(n,t,function(){return i})};i.prototype.remove=function(n){return uo(this,n,t)};i.prototype.deleteIn=function(n){return this.updateIn(n,function(){return t})};i.prototype.update=function(n,t,i){return arguments.length===1?n(this):this.updateIn([n],t,i)};i.prototype.updateIn=function(n,i,r){r||(r=i,i=undefined);var u=ho(this,os(n),i,r);return u===t?undefined:u};i.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=undefined,this.__altered=!0,this):ni()};i.prototype.merge=function(){return ru(this,undefined,arguments)};i.prototype.mergeWith=function(n){var t=bt.call(arguments,1);return ru(this,n,t)};i.prototype.mergeIn=function(n){var t=bt.call(arguments,1);return this.updateIn(n,ni(),function(n){return typeof n.merge=="function"?n.merge.apply(n,t):t[t.length-1]})};i.prototype.mergeDeep=function(){return ru(this,eo,arguments)};i.prototype.mergeDeepWith=function(n){var t=bt.call(arguments,1);return ru(this,oo(n),t)};i.prototype.mergeDeepIn=function(n){var t=bt.call(arguments,1);return this.updateIn(n,ni(),function(n){return typeof n.mergeDeep=="function"?n.mergeDeep.apply(n,t):t[t.length-1]})};i.prototype.sort=function(n){return v(tr(this,n))};i.prototype.sortBy=function(n,t){return v(tr(this,t,n))};i.prototype.withMutations=function(n){var t=this.asMutable();return n(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this};i.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new vu)};i.prototype.asImmutable=function(){return this.__ensureOwner()};i.prototype.wasAltered=function(){return this.__altered};i.prototype.__iterator=function(n,t){return new uf(this,n,t)};i.prototype.__iterate=function(n,t){var r=this,i=0;return this._root&&this._root.iterate(function(t){return i++,n(t[1],t[0],r)},t),i};i.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?ef(this.size,this._root,n,this.__hash):(this.__ownerID=n,this.__altered=!1,this)};i.isMap=rf;ee="@@__IMMUTABLE_MAP__@@";n=i.prototype;n[ee]=!0;n[kr]=n.remove;n.removeIn=n.deleteIn;lr.prototype.get=function(n,t,i,r){for(var f=this.entries,u=0,e=f.length;u<e;u++)if(a(i,f[u][0]))return f[u][1];return r};lr.prototype.update=function(n,i,r,u,f,e,o){for(var l=f===t,s=this.entries,h=0,v,y,c,p=s.length;h<p;h++)if(a(u,s[h][0]))break;return(v=h<p,v?s[h][1]===f:l)?this:(lt(o),(l||!v)&&lt(e),l&&s.length===1)?void 0:!v&&!l&&s.length>=vc?ah(n,s,u,f):(y=n&&n===this.ownerID,c=y?s:ei(s),v?l?h===p-1?c.pop():c[h]=c.pop():c[h]=[u,f]:c.push([u,f]),y)?(this.entries=c,this):new lr(n,c)};wi.prototype.get=function(n,t,i,r){t===undefined&&(t=et(i));var u=1<<((n===0?t:t>>>n)&rt),f=this.bitmap;return(f&u)==0?r:this.nodes[co(f&u-1)].get(n+s,t,i,r)};wi.prototype.update=function(n,i,r,u,f,e,o){r===undefined&&(r=et(u));var w=(i===0?r:r>>>i)&rt,y=1<<w,a=this.bitmap,l=(a&y)!=0;if(!l&&f===t)return this;var v=co(a&y-1),c=this.nodes,b=l?c[v]:undefined,h=of(b,n,i+s,r,u,f,e,o);if(h===b)return this;if(!l&&h&&c.length>=yc)return yh(n,c,a,w,h);if(l&&!h&&c.length===2&&fo(c[v^1]))return c[v^1];if(l&&h&&c.length===1&&fo(h))return h;var p=n&&n===this.ownerID,k=l?h?a:a^y:a|y,d=l?h?lo(c,v,h,p):wh(c,v,p):ph(c,v,h,p);return p?(this.bitmap=k,this.nodes=d,this):new wi(n,k,d)};ar.prototype.get=function(n,t,i,r){t===undefined&&(t=et(i));var f=(n===0?t:t>>>n)&rt,u=this.nodes[f];return u?u.get(n+s,t,i,r):r};ar.prototype.update=function(n,i,r,u,f,e,o){var c,h,a,v;r===undefined&&(r=et(u));var y=(i===0?r:r>>>i)&rt,w=f===t,p=this.nodes,l=p[y];if(w&&!l||(c=of(l,n,i+s,r,u,f,e,o),c===l))return this;if(h=this.count,l){if(!c&&(h--,h<pc))return vh(n,p,h,y)}else h++;return(a=n&&n===this.ownerID,v=lo(p,y,c,a),a)?(this.count=h,this.nodes=v,this):new ar(n,h,v)};bi.prototype.get=function(n,t,i,r){for(var f=this.entries,u=0,e=f.length;u<e;u++)if(a(i,f[u][0]))return f[u][1];return r};bi.prototype.update=function(n,i,r,u,f,e,o){var l,c,s,v,y,p,h;if(r===undefined&&(r=et(u)),l=f===t,r!==this.keyHash)return l?this:(lt(o),lt(e),sf(this,n,i,r,[u,f]));for(c=this.entries,s=0,v=c.length;s<v;s++)if(a(u,c[s][0]))break;return(y=s<v,y?c[s][1]===f:l)?this:(lt(o),(l||!y)&&lt(e),l&&v===2)?new fi(n,this.keyHash,c[s^1]):(p=n&&n===this.ownerID,h=p?c:ei(c),y?l?s===v-1?h.pop():h[s]=h.pop():h[s]=[u,f]:h.push([u,f]),p)?(this.entries=h,this):new bi(n,this.keyHash,h)};fi.prototype.get=function(n,t,i,r){return a(i,this.entry[0])?this.entry[1]:r};fi.prototype.update=function(n,i,r,u,f,e,o){var s=f===t,h=a(u,this.entry[0]);if(h?f===this.entry[1]:s)return this;if(lt(o),s){lt(e);return}return h?n&&n===this.ownerID?(this.entry[1]=f,this):new fi(n,this.keyHash,[u,f]):(lt(e),sf(this,n,i,et(u),[u,f]))};lr.prototype.iterate=bi.prototype.iterate=function(n,t){for(var r=this.entries,i=0,u=r.length-1;i<=u;i++)if(n(r[t?u-i:i])===!1)return!1};wi.prototype.iterate=ar.prototype.iterate=function(n,t){for(var u=this.nodes,r,i=0,f=u.length-1;i<=f;i++)if(r=u[t?f-i:i],r&&r.iterate(n,t)===!1)return!1};fi.prototype.iterate=function(n){return n(this.entry)};u(uf,r);uf.prototype.next=function(){for(var f=this._type,i=this._stack,n,t,r,u;i;){if(n=i.node,t=i.index++,n.entry){if(t===0)return ff(f,n.entry)}else if(n.entries){if(r=n.entries.length-1,t<=r)return ff(f,n.entries[this._reverse?r-t:t])}else if(r=n.nodes.length-1,t<=r){if(u=n.nodes[this._reverse?r-t:t],u){if(u.entry)return ff(f,u.entry);i=this._stack=ro(u,i)}continue}i=this._stack=this._stack.__prev}return ut()};var vc=yt/4,yc=yt/2,pc=yt/4;return u(o,pi),o.of=function(){return this(arguments)},o.prototype.toString=function(){return this.__toString("List [","]")},o.prototype.get=function(n,t){if(n=oi(this,n),n>=0&&n<this.size){n+=this._origin;var i=yo(this,n);return i&&i.array[n&rt]}return t},o.prototype.set=function(n,t){return bh(this,n,t)},o.prototype.remove=function(n){return this.has(n)?n===0?this.shift():n===this.size-1?this.pop():this.splice(n,1):this},o.prototype.insert=function(n,t){return this.splice(n,0,t)},o.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=s,this._root=this._tail=null,this.__hash=undefined,this.__altered=!0,this):hf()},o.prototype.push=function(){var n=arguments,t=this.size;return this.withMutations(function(i){li(i,0,t+n.length);for(var r=0;r<n.length;r++)i.set(t+r,n[r])})},o.prototype.pop=function(){return li(this,0,-1)},o.prototype.unshift=function(){var n=arguments;return this.withMutations(function(t){li(t,-n.length);for(var i=0;i<n.length;i++)t.set(i,n[i])})},o.prototype.shift=function(){return li(this,1)},o.prototype.merge=function(){return uu(this,undefined,arguments)},o.prototype.mergeWith=function(n){var t=bt.call(arguments,1);return uu(this,n,t)},o.prototype.mergeDeep=function(){return uu(this,eo,arguments)},o.prototype.mergeDeepWith=function(n){var t=bt.call(arguments,1);return uu(this,oo(n),t)},o.prototype.setSize=function(n){return li(this,0,n)},o.prototype.slice=function(n,t){var i=this.size;return fr(n,t,i)?this:li(this,yi(n,i),er(t,i))},o.prototype.__iterator=function(n,t){var i=0,u=vo(this,t);return new r(function(){var t=u();return t===rr?ut():e(n,i++,t)})},o.prototype.__iterate=function(n,t){for(var i=0,u=vo(this,t),r;(r=u())!==rr;)if(n(r,i++,this)===!1)break;return i},o.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?vr(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):(this.__ownerID=n,this)},o.isList=ao,oe="@@__IMMUTABLE_LIST__@@",tt=o.prototype,tt[oe]=!0,tt[kr]=tt.remove,tt.setIn=n.setIn,tt.deleteIn=tt.removeIn=n.removeIn,tt.update=n.update,tt.updateIn=n.updateIn,tt.mergeIn=n.mergeIn,tt.mergeDeepIn=n.mergeDeepIn,tt.withMutations=n.withMutations,tt.asMutable=n.asMutable,tt.asImmutable=n.asImmutable,tt.wasAltered=n.wasAltered,ci.prototype.removeBefore=function(n,t,i){var r,f,u,e,o,h;if(i===t?1<<t:0||this.array.length===0)return this;if(r=i>>>t&rt,r>=this.array.length)return new ci([],n);if((f=r===0,t>0&&(e=this.array[r],u=e&&e.removeBefore(n,t-s,i),u===e&&f))||f&&!u)return this;if(o=ki(this,n),!f)for(h=0;h<r;h++)o.array[h]=undefined;return u&&(o.array[r]=u),o},ci.prototype.removeAfter=function(n,t,i){var r,u,f,e;return i===(t?1<<t:0)||this.array.length===0?this:(r=i-1>>>t&rt,r>=this.array.length)?this:t>0&&(f=this.array[r],u=f&&f.removeAfter(n,t-s,i),u===f&&r===this.array.length-1)?this:(e=ki(this,n),e.array.splice(r+1),u&&(e.array[r]=u),e)},rr={},u(v,i),v.of=function(){return this(arguments)},v.prototype.toString=function(){return this.__toString("OrderedMap {","}")},v.prototype.get=function(n,t){var i=this._map.get(n);return i!==undefined?this._list.get(i)[1]:t},v.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):fu()},v.prototype.set=function(n,t){return wo(this,n,t)},v.prototype.remove=function(n){return wo(this,n,t)},v.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},v.prototype.__iterate=function(n,t){var i=this;return this._list.__iterate(function(t){return t&&n(t[1],t[0],i)},t)},v.prototype.__iterator=function(n,t){return this._list.fromEntrySeq().__iterator(n,t)},v.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var t=this._map.__ensureOwner(n),i=this._list.__ensureOwner(n);return n?lf(t,i,n,this.__hash):(this.__ownerID=n,this._map=t,this._list=i,this)},v.isOrderedMap=po,v.prototype[ur]=!0,v.prototype[kr]=v.prototype.remove,u(vt,at),vt.prototype.get=function(n,t){return this._iter.get(n,t)},vt.prototype.has=function(n){return this._iter.has(n)},vt.prototype.valueSeq=function(){return this._iter.valueSeq()},vt.prototype.reverse=function(){var t=this,n=af(this,!0);return this._useKeys||(n.valueSeq=function(){return t._iter.toSeq().reverse()}),n},vt.prototype.map=function(n,t){var r=this,i=ko(this,n,t);return this._useKeys||(i.valueSeq=function(){return r._iter.toSeq().map(n,t)}),i},vt.prototype.__iterate=function(n,t){var r=this,i;return this._iter.__iterate(this._useKeys?function(t,i){return n(t,i,r)}:(i=t?us(this):0,function(u){return n(u,t?--i:i++,r)}),t)},vt.prototype.__iterator=function(n,t){if(this._useKeys)return this._iter.__iterator(n,t);var u=this._iter.__iterator(pt,t),i=t?us(this):0;return new r(function(){var r=u.next();return r.done?r:e(n,t?--i:i++,r.value,r)})},vt.prototype[ur]=!0,u(di,l),di.prototype.includes=function(n){return this._iter.includes(n)},di.prototype.__iterate=function(n,t){var i=this,r=0;return this._iter.__iterate(function(t){return n(t,r++,i)},t)},di.prototype.__iterator=function(n,t){var i=this._iter.__iterator(pt,t),u=0;return new r(function(){var t=i.next();return t.done?t:e(n,u++,t.value,t)})},u(gi,dt),gi.prototype.has=function(n){return this._iter.includes(n)},gi.prototype.__iterate=function(n,t){var i=this;return this._iter.__iterate(function(t){return n(t,t,i)},t)},gi.prototype.__iterator=function(n,t){var i=this._iter.__iterator(pt,t);return new r(function(){var t=i.next();return t.done?t:e(n,t.value,t.value,t)})},u(nr,at),nr.prototype.entrySeq=function(){return this._iter.toSeq()},nr.prototype.__iterate=function(n,t){var i=this;return this._iter.__iterate(function(t){if(t){rs(t);var r=k(t);return n(r?t.get(1):t[1],r?t.get(0):t[0],i)}},t)},nr.prototype.__iterator=function(n,t){var i=this._iter.__iterator(pt,t);return new r(function(){for(var r,t,u;;){if(r=i.next(),r.done)return r;if(t=r.value,t)return rs(t),u=k(t),e(n,u?t.get(0):t[0],u?t.get(1):t[1],r)}})},di.prototype.cacheResult=vt.prototype.cacheResult=gi.prototype.cacheResult=nr.prototype.cacheResult=pf,u(st,cr),st.prototype.toString=function(){return this.__toString(ss(this)+" {","}")},st.prototype.has=function(n){return this._defaultValues.hasOwnProperty(n)},st.prototype.get=function(n,t){if(!this.has(n))return t;var i=this._defaultValues[n];return this._map?this._map.get(n,i):i},st.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var n=this.constructor;return n._empty||(n._empty=ou(this,ni()))},st.prototype.set=function(n,t){if(!this.has(n))throw new Error('Cannot set unknown key "'+n+'" on '+ss(this));var i=this._map&&this._map.set(n,t);return this.__ownerID||i===this._map?this:ou(this,i)},st.prototype.remove=function(n){if(!this.has(n))return this;var t=this._map&&this._map.remove(n);return this.__ownerID||t===this._map?this:ou(this,t)},st.prototype.wasAltered=function(){return this._map.wasAltered()},st.prototype.__iterator=function(n,t){var i=this;return it(this._defaultValues).map(function(n,t){return i.get(t)}).__iterator(n,t)},st.prototype.__iterate=function(n,t){var i=this;return it(this._defaultValues).map(function(n,t){return i.get(t)}).__iterate(n,t)},st.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(n);return n?ou(this,t,n):(this.__ownerID=n,this._map=t,this)},b=st.prototype,b[kr]=b.remove,b.deleteIn=b.removeIn=n.removeIn,b.merge=n.merge,b.mergeWith=n.mergeWith,b.mergeIn=n.mergeIn,b.mergeDeep=n.mergeDeep,b.mergeDeepWith=n.mergeDeepWith,b.mergeDeepIn=n.mergeDeepIn,b.setIn=n.setIn,b.update=n.update,b.updateIn=n.updateIn,b.withMutations=n.withMutations,b.asMutable=n.asMutable,b.asImmutable=n.asImmutable,u(h,iu),h.of=function(){return this(arguments)},h.fromKeys=function(n){return this(it(n).keySeq())},h.prototype.toString=function(){return this.__toString("Set {","}")},h.prototype.has=function(n){return this._map.has(n)},h.prototype.add=function(n){return bf(this,this._map.set(n,!0))},h.prototype.remove=function(n){return bf(this,this._map.remove(n))},h.prototype.clear=function(){return bf(this,this._map.clear())},h.prototype.union=function(){var n=bt.call(arguments,0);return(n=n.filter(function(n){return n.size!==0}),n.length===0)?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(t){for(var i=0;i<n.length;i++)ht(n[i]).forEach(function(n){return t.add(n)})})},h.prototype.intersect=function(){var n=bt.call(arguments,0),t;return n.length===0?this:(n=n.map(function(n){return ht(n)}),t=this,this.withMutations(function(i){t.forEach(function(t){n.every(function(n){return n.includes(t)})||i.remove(t)})}))},h.prototype.subtract=function(){var n=bt.call(arguments,0),t;return n.length===0?this:(n=n.map(function(n){return ht(n)}),t=this,this.withMutations(function(i){t.forEach(function(t){n.some(function(n){return n.includes(t)})&&i.remove(t)})}))},h.prototype.merge=function(){return this.union.apply(this,arguments)},h.prototype.mergeWith=function(){var n=bt.call(arguments,1);return this.union.apply(this,n)},h.prototype.sort=function(n){return ii(tr(this,n))},h.prototype.sortBy=function(n,t){return ii(tr(this,t,n))},h.prototype.wasAltered=function(){return this._map.wasAltered()},h.prototype.__iterate=function(n,t){var i=this;return this._map.__iterate(function(t,r){return n(r,r,i)},t)},h.prototype.__iterator=function(n,t){return this._map.map(function(n,t){return t}).__iterator(n,t)},h.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var t=this._map.__ensureOwner(n);return n?this.__make(t,n):(this.__ownerID=n,this._map=t,this)},h.isSet=wf,se="@@__IMMUTABLE_SET__@@",ft=h.prototype,ft[se]=!0,ft[kr]=ft.remove,ft.mergeDeep=ft.merge,ft.mergeDeepWith=ft.mergeWith,ft.withMutations=n.withMutations,ft.asMutable=n.asMutable,ft.asImmutable=n.asImmutable,ft.__empty=kf,ft.__make=hs,u(ii,h),ii.of=function(){return this(arguments)},ii.fromKeys=function(n){return this(it(n).keySeq())},ii.prototype.toString=function(){return this.__toString("OrderedSet {","}")},ii.isOrderedSet=cs,wr=ii.prototype,wr[ur]=!0,wr.__empty=df,wr.__make=ls,u(p,pi),p.of=function(){return this(arguments)},p.prototype.toString=function(){return this.__toString("Stack [","]")},p.prototype.get=function(n,t){var i=this._head;for(n=oi(this,n);i&&n--;)i=i.next;return i?i.value:t},p.prototype.peek=function(){return this._head&&this._head.value},p.prototype.push=function(){var i,n,t;if(arguments.length===0)return this;for(i=this.size+arguments.length,n=this._head,t=arguments.length-1;t>=0;t--)n={value:arguments[t],next:n};return this.__ownerID?(this.size=i,this._head=n,this.__hash=undefined,this.__altered=!0,this):pr(i,n)},p.prototype.pushAll=function(n){if(n=wt(n),n.size===0)return this;ot(n.size);var i=this.size,t=this._head;return(n.reverse().forEach(function(n){i++;t={value:n,next:t}}),this.__ownerID)?(this.size=i,this._head=t,this.__hash=undefined,this.__altered=!0,this):pr(i,t)},p.prototype.pop=function(){return this.slice(1)},p.prototype.unshift=function(){return this.push.apply(this,arguments)},p.prototype.unshiftAll=function(n){return this.pushAll(n)},p.prototype.shift=function(){return this.pop.apply(this,arguments)},p.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=undefined,this.__hash=undefined,this.__altered=!0,this):gf()},p.prototype.slice=function(n,t){var r,f,u,i;if(fr(n,t,this.size))return this;if(r=yi(n,this.size),f=er(t,this.size),f!==this.size)return pi.prototype.slice.call(this,n,t);for(u=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=u,this._head=i,this.__hash=undefined,this.__altered=!0,this):pr(u,i)},p.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?pr(this.size,this._head,n,this.__hash):(this.__ownerID=n,this.__altered=!1,this)},p.prototype.__iterate=function(n,t){if(t)return this.reverse().__iterate(n);for(var r=0,i=this._head;i;){if(n(i.value,r++,this)===!1)break;i=i.next}return r},p.prototype.__iterator=function(n,t){if(t)return this.reverse().__iterator(n);var u=0,i=this._head;return new r(function(){if(i){var t=i.value;return i=i.next,e(n,u++,t)}return ut()})},p.isStack=as,he="@@__IMMUTABLE_STACK__@@",vi=p.prototype,vi[he]=!0,vi.withMutations=n.withMutations,vi.asMutable=n.asMutable,vi.asImmutable=n.asImmutable,vi.wasAltered=n.wasAltered,c.Iterator=r,ri(c,{toArray:function(){ot(this.size);var n=new Array(this.size||0);return this.valueSeq().__iterate(function(t,i){n[i]=t}),n},toIndexedSeq:function(){return new di(this)},toJS:function(){return this.toSeq().map(function(n){return n&&typeof n.toJS=="function"?n.toJS():n}).__toJS()},toJSON:function(){return this.toSeq().map(function(n){return n&&typeof n.toJSON=="function"?n.toJSON():n}).__toJS()},toKeyedSeq:function(){return new vt(this,!0)},toMap:function(){return i(this.toKeyedSeq())},toObject:function(){ot(this.size);var n={};return this.__iterate(function(t,i){n[i]=t}),n},toOrderedMap:function(){return v(this.toKeyedSeq())},toOrderedSet:function(){return ii(y(this)?this.valueSeq():this)},toSet:function(){return h(y(this)?this.valueSeq():this)},toSetSeq:function(){return new gi(this)},toSeq:function(){return ct(this)?this.toIndexedSeq():y(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return p(y(this)?this.valueSeq():this)},toList:function(){return o(y(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(n,t){return this.size===0?n+t:n+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var n=bt.call(arguments,0);return f(this,nc(this,n))},includes:function(n){return this.some(function(t){return a(t,n)})},entries:function(){return this.__iterator(ui)},every:function(n,t){ot(this.size);var i=!0;return this.__iterate(function(r,u,f){if(!n.call(t,r,u,f))return i=!1,!1}),i},filter:function(n,t){return f(this,go(this,n,t,!0))},find:function(n,t,i){var r=this.findEntry(n,t);return r?r[1]:i},findEntry:function(n,t){var i;return this.__iterate(function(r,u,f){if(n.call(t,r,u,f))return i=[u,r],!1}),i},findLastEntry:function(n,t){return this.toSeq().reverse().findEntry(n,t)},forEach:function(n,t){return ot(this.size),this.__iterate(t?n.bind(t):n)},join:function(n){ot(this.size);n=n!==undefined?""+n:",";var t="",i=!0;return this.__iterate(function(r){i?i=!1:t+=n;t+=r!==null&&r!==undefined?r.toString():""}),t},keys:function(){return this.__iterator(dr)},map:function(n,t){return f(this,ko(this,n,t))},reduce:function(n,t,i){ot(this.size);var r,u;return arguments.length<2?u=!0:r=t,this.__iterate(function(t,f,e){u?(u=!1,r=t):r=n.call(i,r,t,f,e)}),r},reduceRight:function(){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return f(this,af(this,!0))},slice:function(n,t){return f(this,vf(this,n,t,!0))},some:function(n,t){return!this.every(su(n),t)},sort:function(n){return f(this,tr(this,n))},values:function(){return this.__iterator(pt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==undefined?this.size===0:!this.some(function(){return!0})},count:function(n,t){return yu(n?this.toSeq().filter(n,t):this)},countBy:function(n,t){return kh(this,n,t)},equals:function(n){return gu(this,n)},entrySeq:function(){var n=this,t;return n._cache?new gt(n._cache):(t=n.toSeq().map(ec).toIndexedSeq(),t.fromEntrySeq=function(){return n.toSeq()},t)},filterNot:function(n,t){return this.filter(su(n),t)},findLast:function(n,t,i){return this.toKeyedSeq().reverse().find(n,t,i)},first:function(){return this.find(ye)},flatMap:function(n,t){return f(this,tc(this,n,t))},flatten:function(n){return f(this,ts(this,n,!0))},fromEntrySeq:function(){return new nr(this)},get:function(n,t){return this.find(function(t,i){return a(i,n)},undefined,t)},getIn:function(n,i){for(var r=this,e=os(n),u,f;!(u=e.next()).done;)if(f=u.value,r=r&&r.get?r.get(f,t):t,r===t)return i;return r},groupBy:function(n,t){return dh(this,n,t)},has:function(n){return this.get(n,t)!==t},hasIn:function(n){return this.getIn(n,t)!==t},isSubset:function(n){return n=typeof n.includes=="function"?n:c(n),this.every(function(t){return n.includes(t)})},isSuperset:function(n){return n=typeof n.isSubset=="function"?n:c(n),n.isSubset(this)},keySeq:function(){return this.toSeq().map(fc).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(n){return eu(this,n)},maxBy:function(n,t){return eu(this,t,n)},min:function(n){return eu(this,n?vs(n):ps)},minBy:function(n,t){return eu(this,t?vs(t):ps,n)},rest:function(){return this.slice(1)},skip:function(n){return this.slice(Math.max(0,n))},skipLast:function(n){return f(this,this.toSeq().reverse().skip(n).reverse())},skipWhile:function(n,t){return f(this,ns(this,n,t,!0))},skipUntil:function(n,t){return this.skipWhile(su(n),t)},sortBy:function(n,t){return f(this,tr(this,t,n))},take:function(n){return this.slice(0,Math.max(0,n))},takeLast:function(n){return f(this,this.toSeq().reverse().take(n).reverse())},takeWhile:function(n,t){return f(this,gh(this,n,t))},takeUntil:function(n,t){return this.takeWhile(su(n),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=sc(this))}}),d=c.prototype,d[rh]=!0,d[le]=d.values,d.__toJS=d.toArray,d.__toStringMapper=ys,d.inspect=d.toSource=function(){return this.toString()},d.chain=d.flatMap,d.contains=d.includes,function(){try{Object.defineProperty(d,"length",{get:function(){if(!c.noLengthWarning){var n;try{throw new Error;}catch(t){n=t.stack}if(n.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+n),this.size}}})}catch(n){}}(),ri(it,{flip:function(){return f(this,bo(this))},findKey:function(n,t){var i=this.findEntry(n,t);return i&&i[0]},findLastKey:function(n,t){return this.toSeq().reverse().findKey(n,t)},keyOf:function(n){return this.findKey(function(t){return a(t,n)})},lastKeyOf:function(n){return this.findLastKey(function(t){return a(t,n)})},mapEntries:function(n,t){var i=this,r=0;return f(this,this.toSeq().map(function(u,f){return n.call(t,[f,u],r++,i)}).fromEntrySeq())},mapKeys:function(n,t){var i=this;return f(this,this.toSeq().flip().map(function(r,u){return n.call(t,r,u,i)}).flip())}}),br=it.prototype,br[uh]=!0,br[le]=d.entries,br.__toJS=d.toObject,br.__toStringMapper=function(n,t){return JSON.stringify(t)+": "+ys(n)},ri(wt,{toKeyedSeq:function(){return new vt(this,!1)},filter:function(n,t){return f(this,go(this,n,t,!1))},findIndex:function(n,t){var i=this.findEntry(n,t);return i?i[0]:-1},indexOf:function(n){var t=this.toKeyedSeq().keyOf(n);return t===undefined?-1:t},lastIndexOf:function(n){var t=this.toKeyedSeq().reverse().keyOf(n);return t===undefined?-1:t},reverse:function(){return f(this,af(this,!1))},slice:function(n,t){return f(this,vf(this,n,t,!1))},splice:function(n,t){var i=arguments.length,r;return(t=Math.max(t|0,0),i===0||i===2&&!t)?this:(n=yi(n,n<0?this.count():this.size),r=this.slice(0,n),f(this,i===1?r:r.concat(ei(arguments,2),this.slice(n+t))))},findLastIndex:function(n,t){var i=this.toKeyedSeq().findLastKey(n,t);return i===undefined?-1:i},first:function(){return this.get(0)},flatten:function(n){return f(this,ts(this,n,!1))},get:function(n,t){return n=oi(this,n),n<0||this.size===Infinity||this.size!==undefined&&n>this.size?t:this.find(function(t,i){return i===n},undefined,t)},has:function(n){return n=oi(this,n),n>=0&&(this.size!==undefined?this.size===Infinity||n<this.size:this.indexOf(n)!==-1)},interpose:function(n){return f(this,ic(this,n))},interleave:function(){var t=[this].concat(ei(arguments)),n=yf(this.toSeq(),l.of,t),i=n.flatten(!0);return n.size&&(i.size=n.size*t.length),f(this,i)},last:function(){return this.get(-1)},skipWhile:function(n,t){return f(this,ns(this,n,t,!1))},zip:function(){var n=[this].concat(ei(arguments));return f(this,yf(this,oc,n))},zipWith:function(n){var t=ei(arguments);return t[0]=this,f(this,yf(this,n,t))}}),wt.prototype[fh]=!0,wt.prototype[ur]=!0,ri(ht,{get:function(n,t){return this.has(n)?n:t},includes:function(n){return this.has(n)},keySeq:function(){return this.valueSeq()}}),ht.prototype.has=d.includes,ri(at,it.prototype),ri(l,wt.prototype),ri(dt,ht.prototype),ri(cr,it.prototype),ri(pi,wt.prototype),ri(iu,ht.prototype),{Iterable:c,Seq:w,Collection:hi,Map:i,OrderedMap:v,List:o,Stack:p,Set:h,OrderedSet:ii,Record:st,Range:nt,Repeat:g,is:a,fromJS:bu}})},function(n,t,i){var u,r;!(u=[i(181),i(179)],r=function(n,t){"use strict";function r(t){return n.isCaretPositionNode(t)?!0:t.parentNode.textContent.trim()===""}function i(t){function e(t){return t.children.length===0&&n.isBlockElement(t)||t.children.length===1&&n.isSelectionMarkerNode(t.children[0])?!0:!n.isBlockElement(t)&&t.children.length===0?r(t):!1}for(var f=t.firstElementChild;f;)n.isSelectionMarkerNode(f)||(e(f)&&f.textContent.trim()===""&&!u.includes(f.nodeName)?f.appendChild(document.createElement("br")):f.children.length>0&&i(f)),f=f.nextElementSibling}var u=t.Set.of("AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR");return function(){return function(n){n.registerHTMLFormatter("normalize",function(n){var t=document.createElement("div");return t.innerHTML=n,i(t),t.innerHTML})}}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(182),i(183),i(179)],r=function(n,t,i){"use strict";function s(n){return t.includes(n.nodeName)}function h(t){return n.includes(t.nodeName)}function u(n){return n.children.length>1?!1:n.children.length===1&&n.textContent.trim()!==""?!1:n.children.length===0?n.textContent.trim()==="":u(n.children[0])}function f(n){return n.nodeType===Node.TEXT_NODE}function c(n){return f(n)&&n.data===""}function l(n){return n.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function a(n,t){return n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING}function r(n,t){return function(i){return i.nodeType===n.ELEMENT_NODE&&i.className===t}}function v(n){return r(Node,"scribe-marker")(n)}function y(n){return r(Node,"caret-position")(n)}function e(n){var t=n.firstChild;return!t||t.nodeName==="BR"?n:e(t)}function p(n,t){return t.parentNode.insertBefore(n,t.nextSibling)}function w(n){return n.parentNode.removeChild(n)}function b(n,t,i){function u(n){return t===n}if(!u(n))for(var r=n.parentNode;r&&!u(r);){if(i(r))return r;r=r.parentNode}}function k(n){for(var t=i.List();n=n.nextSibling;)t=t.push(n);return t}function d(n,t){return n[0].parentNode.insertBefore(t,n[0]),n.forEach(function(n){t.appendChild(n)}),t}function o(n,t){while(t.childNodes.length>0)n.insertBefore(t.childNodes[0],t);n.removeChild(t)}function g(t){function f(n,t){return window.getComputedStyle(t).lineHeight===n.lineHeight}var u=i.List(t.querySelectorAll(n.map(function(n){return n+'[style*="line-height"]'}).join(","))),r;u=u.filter(f.bind(null,window.getComputedStyle(t)));r=i.List();u.forEach(function(n){n.style.lineHeight=null;n.getAttribute("style")||n.removeAttribute("style");n.nodeName==="SPAN"&&n.attributes.length===0&&(r=r.push(n))});r.forEach(function(n){o(n.parentNode,n)})}return{isInlineElement:h,isBlockElement:s,isEmptyInlineElement:u,isText:f,isEmptyTextNode:c,isFragment:l,isBefore:a,isSelectionMarkerNode:v,isCaretPositionNode:y,firstDeepestChild:e,insertAfter:p,removeNode:w,getAncestor:b,nextSiblings:k,wrap:d,unwrap:o,removeChromeArtifacts:g,elementHasClass:r}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(179)],r=function(n){return n.Set.of("B","BIG","I","SMALL","TT","ABBR","ACRONYM","CITE","CODE","DFN","EM","KBD","STRONG","SAMP","VAR","A","BDO","BR","IMG","MAP","OBJECT","Q","SCRIPT","SPAN","SUB","SUP","BUTTON","INPUT","LABEL","SELECT","TEXTAREA")}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(179)],r=function(n){return n.Set.of("ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","CANVAS","DD","DIV","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TD","TH","TFOOT","UL","VIDEO")}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";function n(n){for(var t=document.createTreeWalker(n,NodeFilter.SHOW_ALL,null,!1);t.nextNode();)if(t.currentNode&&(~["br"].indexOf(t.currentNode.nodeName.toLowerCase())||t.currentNode.length>0))return!0;return!1}return function(){return function(t){t.el.addEventListener("keydown",function(i){if(i.keyCode===13){var u=new t.api.Selection,r=u.range,f=u.getContaining(function(n){return n.nodeName==="LI"||/^(H[1-6])$/.test(n.nodeName)});f||(i.preventDefault(),t.transactionManager.run(function(){var i,e,o,s,f;t.el.lastChild.nodeName==="BR"&&t.el.removeChild(t.el.lastChild);i=document.createElement("br");r.insertNode(i);r.collapse(!1);e=r.cloneRange();e.setEndAfter(t.el.lastChild,0);o=e.cloneContents();n(o)||(s=document.createElement("br"),r.insertNode(s));f=r.cloneRange();f.setStartAfter(i,0);f.setEndAfter(i,0);u.selection.removeAllRanges();u.selection.addRange(f)}))}}.bind(this));t.getHTML().trim()===""&&t.setContent("")}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(186),i(187)],r=function(n,t){"use strict";return{replaceNbspCharsFormatter:n,escapeHtmlCharactersFormatter:t}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=/(\s|&nbsp;)+/g;n.registerHTMLFormatter("export",function(n){return n.replace(t," ")})}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(188)],r=function(n){"use strict";return function(){return function(t){t.registerPlainTextFormatter(n)}}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(162),i(189)],r=function(n,t){function r(r){return r=n(r),r&&u.test(r)?r.replace(i,t):r}var i=/[&<>"'`]/g,u=RegExp(i.source);return r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t){var r,i;!(r=[],i=function(){function n(n){return t[n]}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"};return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t,i){var u,r;!(u=[i(191),i(179)],r=function(n,t){"use strict";return function(){return function(i){var u=i.node,r;i.el.addEventListener("focus",function(){var n=new i.api.Selection,f,r,t;n.range&&(f=i.allowsBlockElements()&&n.range.startContainer===i.el,f&&(r=u.firstDeepestChild(i.el),t=n.range,t.setStart(r,0),t.setEnd(r,0),n.selection.removeAllRanges(),n.selection.addRange(t)))}.bind(i));r=function(){if(!i._skipFormatters){var n=new i.api.Selection,t=n.range,r=function(){t&&n.placeMarkers();i.setHTML(i._htmlFormatterFactory.format(i.getHTML()));n.selectMarkers()}.bind(i);i.transactionManager.run(r)}delete i._skipFormatters}.bind(i);n(i.el,r);i.allowsBlockElements()&&i.el.addEventListener("keydown",function(n){var f,e;if(n.keyCode===13){var r=new i.api.Selection,t=r.range,u=r.getContaining(function(n){return/^(H[1-6])$/.test(n.nodeName)});u&&t.collapsed&&(f=t.cloneRange(),f.setEndAfter(u,0),e=f.cloneContents(),e.firstChild.textContent===""&&(n.preventDefault(),i.transactionManager.run(function(){var n=document.createElement("p"),i=document.createElement("br");n.appendChild(i);u.parentNode.insertBefore(n,u.nextElementSibling);t.setStart(n,0);t.setEnd(n,0);r.selection.removeAllRanges();r.selection.addRange(t)})))}});i.allowsBlockElements()&&i.el.addEventListener("keydown",function(n){var t,f,r,e,u;(n.keyCode===13||n.keyCode===8)&&(t=new i.api.Selection,f=t.range,f.collapsed&&(r=t.getContaining(function(n){return n.nodeName==="LI"}),r&&r.textContent.trim()===""&&(n.preventDefault(),e=t.getContaining(function(n){return n.nodeName==="UL"||n.nodeName==="OL"}),u=i.getCommand(e.nodeName==="OL"?"insertOrderedList":"insertUnorderedList"),u.event=n,u.execute())))});i.el.addEventListener("paste",function(n){var u,r;n.clipboardData&&n.clipboardData.types.length>0?(n.preventDefault(),t.List(n.clipboardData.types).includes("text/html")?i.insertHTML(n.clipboardData.getData("text/html")):i.insertPlainText(n.clipboardData.getData("text/plain"))):(u=new i.api.Selection,u.placeMarkers(),r=document.createElement("div"),document.body.appendChild(r),r.setAttribute("contenteditable",!0),r.focus(),setTimeout(function(){var n=r.innerHTML;r.parentNode.removeChild(r);u.selectMarkers();i.el.focus();i.insertHTML(n)},1))})}}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(181),i(192)],r=function(n,t){function i(t){return!n.isEmptyTextNode(t)&&!n.isSelectionMarkerNode(t)}function r(n){return n.some(function(n){return Array.prototype.some.call(n.addedNodes,i)||Array.prototype.some.call(n.removedNodes,i)})}function u(n,t){var i=!1,u=new e(function(n){if(!i&&r(n)){i=!0;try{t()}catch(u){throw u;}finally{setTimeout(function(){i=!1},0)}}});return u.observe(n,{childList:!0,subtree:!0}),u}var f=(typeof window=="undefined"?"undefined":_typeof(window))==="object"?window:undefined,e=t.determineMutationObserver(f);return u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t){var r,i;!(r=[],i=function(){function n(n){return typeof n=="undefined"?function(){return{observe:function(){}}}:n.MutationObserver||n.WebKitMutationObserver||n.MozMutationObserver}return{determineMutationObserver:n}}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t,i){var u,r;!(u=[i(194),i(195),i(196),i(197),i(198),i(199),i(200)],r=function(n,t,i,r,u,f,e){"use strict";return{commands:{bold:n,indent:t,insertHTML:i,insertList:r,outdent:u,createLink:f},events:e}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.CommandPatch("bold");t.queryEnabled=function(){var t=new n.api.Selection,i=t.getContaining(function(n){return/^(H[1-6])$/.test(n.nodeName)});return n.api.CommandPatch.prototype.queryEnabled.apply(this,arguments)&&!i};n.commandPatches.bold=t}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";var n="﻿";return function(){return function(t){var i=new t.api.CommandPatch("indent");i.execute=function(i){t.transactionManager.run(function(){var u=new t.api.Selection,r=u.range,o=r.commonAncestorContainer.nodeName==="P"&&r.commonAncestorContainer.innerHTML==="<br>",f,e;o&&(f=document.createTextNode(n),r.insertNode(f),r.setStart(f,0),r.setEnd(f,0),u.selection.removeAllRanges(),u.selection.addRange(r));t.api.CommandPatch.prototype.execute.call(this,i);u=new t.api.Selection;e=u.getContaining(function(n){return n.nodeName==="BLOCKQUOTE"});e&&e.removeAttribute("style")}.bind(this))};t.commandPatches.indent=i}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t){var r,i;!(r=[],i=function(){"use strict";return function(){return function(n){var t=new n.api.CommandPatch("insertHTML"),i=n.node;t.execute=function(t){n.transactionManager.run(function(){n.api.CommandPatch.prototype.execute.call(this,t);i.removeChromeArtifacts(n.el)}.bind(this))};n.commandPatches.insertHTML=t}}}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t){var r,i;!(r=[],i=function(){"use strict";return function(){return function(n){var i=n.node,t=function(t){n.api.CommandPatch.call(this,t)};t.prototype=Object.create(n.api.CommandPatch.prototype);t.prototype.constructor=t;t.prototype.execute=function(t){n.transactionManager.run(function(){var f,u,r;n.api.CommandPatch.prototype.execute.call(this,t);this.queryState()&&(f=new n.api.Selection,u=f.getContaining(function(n){return n.nodeName==="OL"||n.nodeName==="UL"}),u.nextElementSibling&&u.nextElementSibling.childNodes.length===0&&i.removeNode(u.nextElementSibling),u&&(r=u.parentNode,r&&/^(H[1-6]|P)$/.test(r.nodeName)&&(f.placeMarkers(),i.insertAfter(u,r),f.selectMarkers(),r.childNodes.length===2&&i.isEmptyTextNode(r.firstChild)&&i.removeNode(r),r.childNodes.length===0&&i.removeNode(r))),i.removeChromeArtifacts(u))}.bind(this))};t.prototype.queryState=function(){try{return n.api.CommandPatch.prototype.queryState.apply(this,arguments)}catch(t){if(t.name=="NS_ERROR_UNEXPECTED")return!1;throw t;}};n.commandPatches.insertOrderedList=new t("insertOrderedList");n.commandPatches.insertUnorderedList=new t("insertUnorderedList")}}}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var i=n.node,t=new n.api.CommandPatch("outdent");t.execute=function(){n.transactionManager.run(function(){var r=new n.api.Selection,e=r.range,t=r.getContaining(function(n){return n.nodeName==="BLOCKQUOTE"}),s,f,u,o;if(e.commonAncestorContainer.nodeName==="BLOCKQUOTE")r.placeMarkers(),r.selectMarkers(!0),s=e.cloneContents(),t.parentNode.insertBefore(s,t),e.deleteContents(),r.selectMarkers(),t.textContent===""&&t.parentNode.removeChild(t);else if(f=r.getContaining(function(n){return n.nodeName==="P"}),f){if(u=i.nextSiblings(f),!!u.size){for(o=document.createElement(t.nodeName);!!u.size;)o.appendChild(u.first()),u=u.shift();t.parentNode.insertBefore(o,t.nextElementSibling)}r.placeMarkers();t.parentNode.insertBefore(f,t.nextElementSibling);r.selectMarkers();t.innerHTML===""&&t.parentNode.removeChild(t)}else n.api.CommandPatch.prototype.execute.call(this)}.bind(this))};n.commandPatches.outdent=t}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.CommandPatch("createLink");n.commandPatches.createLink=t;t.execute=function(t){var r=new n.api.Selection,i,u;r.range.collapsed?(i=document.createElement("a"),i.setAttribute("href",t),i.textContent=t,r.range.insertNode(i),u=document.createRange(),u.setStartBefore(i),u.setEndAfter(i),r.selection.removeAllRanges(),r.selection.addRange(u)):n.api.CommandPatch.prototype.execute.call(this,t)}}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t){var r,i;!(r=[],i=function(){"use strict";return function(){return function(n){var t=n.node;n.allowsBlockElements()&&n.el.addEventListener("keyup",function(i){if(i.keyCode===8||i.keyCode===46){var r=new n.api.Selection,u=r.getContaining(function(n){return n.nodeName==="P"});u&&n.transactionManager.run(function(){r.placeMarkers();t.removeChromeArtifacts(u);r.selectMarkers()},!0)}})}}}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t,i){var u,r;!(u=[i(202),i(203),i(204),i(205)],r=function(n,t,i,r){"use strict";return function(u){this.CommandPatch=n(u);this.Command=t(u);this.Selection=i(u);this.SimpleCommand=r(this,u)}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(n){function t(n){this.commandName=n}return t.prototype.execute=function(t){n.transactionManager.run(function(){document.execCommand(this.commandName,!1,t||null)}.bind(this))},t.prototype.queryState=function(){return document.queryCommandState(this.commandName)},t.prototype.queryEnabled=function(){return document.queryCommandEnabled(this.commandName)},t}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(n){function t(t){this.commandName=t;this.patch=n.commandPatches[this.commandName]}return t.prototype.execute=function(t){this.patch?this.patch.execute(t):n.transactionManager.run(function(){document.execCommand(this.commandName,!1,t||null)}.bind(this))},t.prototype.queryState=function(){return this.patch?this.patch.queryState():document.queryCommandState(this.commandName)},t.prototype.queryEnabled=function(){return this.patch?this.patch.queryEnabled():document.queryCommandEnabled(this.commandName)},t}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(n){function f(){var n=document.createElement("em");return n.style.display="none",n.classList.add("scribe-marker"),n}function e(n,i){n.insertNode(i);i.nextSibling&&t.isEmptyTextNode(i.nextSibling)&&t.removeNode(i.nextSibling);i.previousSibling&&t.isEmptyTextNode(i.previousSibling)&&t.removeNode(i.previousSibling)}function r(){var e,o,s;if(this.selection=u.getSelection(),this.selection.rangeCount&&this.selection.anchorNode){var r=this.selection.anchorNode,n=this.selection.anchorOffset,f=this.selection.focusNode,i=this.selection.focusOffset;r===f&&i<n?(e=n,n=i,i=e):t.isBefore(f,r)&&(o=r,s=n,r=f,n=i,f=o,i=s);this.range=document.createRange();this.range.setStart(r,n);this.range.setEnd(f,i)}}var u=n.el.ownerDocument,t=n.node,i;if(u.compareDocumentPosition(n.el)&Node.DOCUMENT_POSITION_DISCONNECTED){for(i=n.el.parentNode;i&&t.isFragment(i);)i=i.parentNode;i&&i.getSelection&&(u=i)}return r.prototype.getContaining=function(i){var u=this.range,r;if(u)return r=this.range.commonAncestorContainer,!(r&&n.el===r)&&i(r)?r:t.getAncestor(r,n.el,i)},r.prototype.placeMarkers=function(){var t=this.range,i;t&&document.contains(n.el)&&n.el.contains(t.startContainer)&&n.el.contains(t.endContainer)&&(e(t.cloneRange(),f()),t.collapsed||(i=t.cloneRange(),i.collapse(!1),e(i,f())),this.selection.removeAllRanges(),this.selection.addRange(t))},r.prototype.getMarkers=function(){return n.el.querySelectorAll("em.scribe-marker")},r.prototype.removeMarkers=function(){Array.prototype.forEach.call(this.getMarkers(),function(n){var i=n.parentNode;t.removeNode(n);i.normalize()})},r.prototype.selectMarkers=function(n){var t=this.getMarkers(),i;t.length&&(i=document.createRange(),i.setStartBefore(t[0]),i.setEndAfter(t.length>=2?t[1]:t[0]),n||this.removeMarkers(),this.selection.removeAllRanges(),this.selection.addRange(i))},r.prototype.isCaretOnNewLine=function(){var n=this.getContaining(function(n){return n.nodeName==="P"});return!!n&&t.isEmptyInlineElement(n)},r}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(n,t){function i(n,i){t.api.Command.call(this,n);this._nodeName=i}return i.prototype=Object.create(n.Command.prototype),i.prototype.constructor=i,i.prototype.queryState=function(){var n=new t.api.Selection;return t.api.Command.prototype.queryState.call(this)&&!!n.getContaining(function(n){return n.nodeName===this._nodeName}.bind(this))},i}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(207),i(208),i(209),i(210),i(211),i(212),i(213)],r=function(n,t,i,r,u,f,e){"use strict";return{indent:n,insertList:t,outdent:i,redo:r,subscript:u,superscript:f,undo:e}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.Command("indent");t.queryEnabled=function(){var t=new n.api.Selection,i=t.getContaining(function(n){return n.nodeName==="UL"||n.nodeName==="OL"});return n.api.Command.prototype.queryEnabled.call(this)&&n.allowsBlockElements()&&!i};n.commands.indent=t}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(179)],r=function(n){"use strict";return function(){return function(t){var r=t.node,i=function(n){t.api.Command.call(this,n)};i.prototype=Object.create(t.api.Command.prototype);i.prototype.constructor=i;i.prototype.execute=function(i){function o(n){if(!!n.size){for(var t=document.createElement(u.nodeName);!!n.size;)t.appendChild(n.first()),n=n.shift();u.parentNode.insertBefore(t,u.nextElementSibling)}}if(this.queryState()){var f=new t.api.Selection,s=f.range,u=f.getContaining(function(n){return n.nodeName==="OL"||n.nodeName==="UL"}),e=f.getContaining(function(n){return n.nodeName==="LI"});t.transactionManager.run(function(){var c,t,i;if(e)c=r.nextSiblings(e),o(c),f.placeMarkers(),t=document.createElement("p"),t.innerHTML=e.innerHTML,u.parentNode.insertBefore(t,u.nextElementSibling),e.parentNode.removeChild(e);else{var h=n.List(u.querySelectorAll("li")).filter(function(n){return s.intersectsNode(n)}),l=h.last(),a=r.nextSiblings(l);o(a);f.placeMarkers();i=document.createDocumentFragment();h.forEach(function(n){var t=document.createElement("p");t.innerHTML=n.innerHTML;i.appendChild(t)});u.parentNode.insertBefore(i,u.nextElementSibling);h.forEach(function(n){n.parentNode.removeChild(n)})}u.childNodes.length===0&&u.parentNode.removeChild(u);f.selectMarkers()}.bind(this))}else t.api.Command.prototype.execute.call(this,i)};i.prototype.queryEnabled=function(){return t.api.Command.prototype.queryEnabled.call(this)&&t.allowsBlockElements()};t.commands.insertOrderedList=new i("insertOrderedList");t.commands.insertUnorderedList=new i("insertUnorderedList")}}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.Command("outdent");t.queryEnabled=function(){var t=new n.api.Selection,i=t.getContaining(function(n){return n.nodeName==="UL"||n.nodeName==="OL"});return n.api.Command.prototype.queryEnabled.call(this)&&n.allowsBlockElements()&&!i};n.commands.outdent=t}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.Command("redo");t.execute=function(){n.undoManager.redo()};t.queryEnabled=function(){return n.undoManager.position>0};n.commands.redo=t;n.options.undo.enabled&&n.el.addEventListener("keydown",function(n){n.shiftKey&&(n.metaKey||n.ctrlKey)&&n.keyCode===90&&(n.preventDefault(),t.execute())})}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.Command("subscript");n.commands.subscript=t}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.Command("superscript");n.commands.superscript=t}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.Command("undo");t.execute=function(){n.undoManager.undo()};t.queryEnabled=function(){return n.undoManager.position<n.undoManager.length};n.commands.undo=t;n.options.undo.enabled&&n.el.addEventListener("keydown",function(n){!n.shiftKey&&(n.metaKey||n.ctrlKey)&&n.keyCode===90&&(n.preventDefault(),t.execute())})}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(179)],r=function(n){"use strict";function t(t,i){this._stack=n.List();this._limit=t;this._fireEvent=typeof CustomEvent!="undefined"&&i&&i.dispatchEvent;this._ush=i;this.position=0;this.length=0}return t.prototype.transact=function(t,i){if(arguments.length<2)throw new TypeError("Not enough arguments to UndoManager.transact.");t.execute();this.position>0&&this.clearRedo();var r;i&&this.length?(r=this._stack.first().push(t),this._stack=this._stack.shift().unshift(r)):(r=n.List.of(t),this._stack=this._stack.unshift(r),this.length++,this._limit&&this.length>this._limit&&this.clearUndo(this._limit));this._dispatch("DOMTransaction",r)},t.prototype.undo=function(){if(!(this.position>=this.length)){for(var n=this._stack.get(this.position),t=n.size;t--;)n.get(t).undo();this.position++;this._dispatch("undo",n)}},t.prototype.redo=function(){var n,t;if(this.position!==0){for(this.position--,n=this._stack.get(this.position),t=0;t<n.size;t++)n.get(t).redo();this._dispatch("redo",n)}},t.prototype.item=function(n){return n>=0&&n<this.length?this._stack.get(n).toArray():null},t.prototype.clearUndo=function(n){this._stack=this._stack.take(n!==undefined?n:this.position);this.length=this._stack.size},t.prototype.clearRedo=function(){this._stack=this._stack.skip(this.position);this.length=this._stack.size;this.position=0},t.prototype._dispatch=function(n,t){this._fireEvent&&this._ush.dispatchEvent(new CustomEvent(n,{detail:{transactions:t.toArray()},bubbles:!0,cancelable:!1}))},t}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(179)],r=function(n){"use strict";function t(){this._listeners={}}return t.prototype.on=function(t,i){var r=this._listeners[t]||n.Set();this._listeners[t]=r.add(i)},t.prototype.off=function(t,i){var r=this._listeners[t]||n.Set();this._listeners[t]=i?r.delete(i):r.clear()},t.prototype.trigger=function(t,i){for(var r=t.split(":"),u,f;!!r.length;)u=r.join(":"),f=this._listeners[u]||n.Set(),f.forEach(function(n){n.apply(null,i)}),r.splice(r.length-1,1)},t}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(217)],r=function(n){function f(r){var u=r||{};return u.defaultPlugins&&(u.defaultPlugins=u.defaultPlugins.filter(i(t.defaultPlugins))),u.defaultFormatters&&(u.defaultFormatters=u.defaultFormatters.filter(i(t.defaultFormatters))),Object.freeze(n(u,t))}function e(n){return function(t,i){return t===n?-1:i===n?1:0}}function o(n){return function(t){return(n?r:u).indexOf(t)!==-1}}function i(n){return function(t){return n.indexOf(t)!==-1}}var r=["setRootPElement","enforcePElements","ensureSelectableContainers"],u=["inlineElementsMode"],t={allowBlockElements:!0,debug:!1,undo:{manager:!1,enabled:!0,limit:100,interval:250},defaultCommandPatches:["bold","indent","insertHTML","insertList","outdent","createLink"],defaultPlugins:r.concat(u),defaultFormatters:["escapeHtmlCharactersFormatter","replaceNbspCharsFormatter"]};return{defaultOptions:t,checkOptions:f,sortByPlugin:e,filterByBlockLevelMode:o,filterByPluginExists:i}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(218),i(155),i(219)],r=function(n,t,i){function r(r){if(r==null)return r;var f=n(arguments);return f.push(i),t.apply(u,f)}var u;return r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t){var r,i;!(r=[],i=function(){function n(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t){var r,i;!(r=[],i=function(){function n(n,t){return typeof n=="undefined"?t:n}return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){n.registerPlainTextFormatter(function(n){return n.replace(/\n([ \t]*\n)+/g,"<\/p><p>").replace(/\n/g,"<br>")})}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var r;!(r=function(){"use strict";return function(){return function(n){var t=new n.api.Command("createLink");t.nodeName="A";t.execute=function(){var i=new n.api.Selection,u=i.range,r=i.getContaining(function(n){return n.nodeName===this.nodeName}.bind(this)),h=r?r.href:"",t=window.prompt("Enter a link.",h),f,e,o,s;r&&(u.selectNode(r),i.selection.removeAllRanges(),i.selection.addRange(u));t&&(f=/^https?\:\/\//,e=/^mailto\:/,f.test(t)||e.test(t)||(/@/.test(t)?(o=window.confirm("The URL you entered appears to be an email address. Do you want to add the required “mailto:” prefix?"),o&&(t="mailto:"+t)):(s=window.confirm("The URL you entered appears to be a link. Do you want to add the required “http://” prefix?"),s&&(t="http://"+t))),n.api.SimpleCommand.prototype.execute.call(this,t))};t.queryState=function(){var t=new n.api.Selection;return!!t.getContaining(function(n){return n.nodeName===this.nodeName}.bind(this))};n.commands.linkPrompt=t}}}.call(t,i,t,n),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(223),i(224),i(256)],r=function(n,t,i){"use strict";return function(r){var u=t(i(r),{tags:{em:{"class":"scribe-marker"},br:{}}});return function(t){var i=new n(u);t.registerHTMLFormatter("sanitize",i.clean.bind(i))}}}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var r,u;(function(f,e){!(r=e,u=typeof r=="function"?r.call(t,i,t,n):r,u!==undefined&&(n.exports=u))})(this,function(){function t(n){var t=n.tags,i=Object.keys(t),r=i.map(function(n){return _typeof(t[n])}).every(function(n){return n==="object"||n==="boolean"||n==="function"});if(!r)throw new Error("The configuration was invalid");this.config=n}function n(n){return o.indexOf(n.nodeName)!==-1}function i(n){return s.indexOf(n.nodeName)!==-1}function r(n){return document.createTreeWalker(n,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT,null,!1)}function u(n,t,i){return typeof n.tags[t]=="function"?n.tags[t](i):n.tags[t]}function f(n,t){return typeof t=="undefined"?!0:typeof t=="boolean"?!t:!1}function e(n,t,i){var r=n.name.toLowerCase();return t===!0?!1:typeof t[r]=="function"?!t[r](n.value,i):typeof t[r]=="undefined"||t[r]===!1?!0:typeof t[r]=="string"?t[r]!==n.value:!1}var o=["P","LI","TD","TH","DIV","H1","H2","H3","H4","H5","H6","PRE"],s=["A","B","STRONG","I","EM","SUB","SUP","U","STRIKE"];return t.prototype.clean=function(n){var t=document.createElement("div");return t.innerHTML=n,this._sanitize(t),t.innerHTML},t.prototype._sanitize=function(t){var l=r(t),o=l.firstChild(),h,a,s,c;if(o)do if(!o._sanitized){if(o.nodeType===Node.TEXT_NODE)if(o.data.trim()===""&&(o.previousElementSibling&&n(o.previousElementSibling)||o.nextElementSibling&&n(o.nextElementSibling))){t.removeChild(o);this._sanitize(t);break}else continue;if(o.nodeType===Node.COMMENT_NODE){t.removeChild(o);this._sanitize(t);break}h=i(o);h&&(a=Array.prototype.some.call(o.childNodes,n));var y=!!t.parentNode,p=n(t)&&n(o)&&y,w=o.nodeName.toLowerCase(),v=u(this.config,w,o),b=h&&a;if(b||f(o,v)||!this.config.keepNestedBlockElements&&p){if(!(o.nodeName==="SCRIPT"||o.nodeName==="STYLE"))while(o.childNodes.length>0)t.insertBefore(o.childNodes[0],o);t.removeChild(o);this._sanitize(t);break}for(s=0;s<o.attributes.length;s+=1)c=o.attributes[s],e(c,v,o)&&(o.removeAttribute(c.name),s=s-1);this._sanitize(o);o._sanitized=!0}while(o=l.nextSibling())},t})},function(n,t,i){var u,r;!(u=[i(225),i(252)],r=function(n,t){return t(n)}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(226),i(227),i(244),i(239),i(232),i(230),i(236),i(249)],r=function(n,t,i,r,u,f,e,o){function s(c,l,a,v,y){if(!f(c))return c;var p=u(l.length)&&(r(l)||o(l));return(p?n:t)(l,function(n,t,r){if(e(n))return v||(v=[]),y||(y=[]),i(c,r,t,s,a,v,y);var f=c[t],u=a?a(f,n,t,c,r):h,o=typeof u=="undefined";o&&(u=n);(p||typeof u!="undefined")&&(o||(u===u?u!==f:f===f))&&(c[t]=u)}),c}var h;return s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t){var r,i;!(r=[],i=function(){function n(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n)===!1)break;return n}return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t,i){var u,r;!(u=[i(228),i(231)],r=function(n,t){function i(i,r){return n(i,r,t)}return i}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(229)],r=function(n){function t(t,i,r){for(var f=-1,e=n(t),o=r(t),s=o.length,u;++f<s;)if(u=o[f],i(e[u],u,e)===!1)break;return t}return t}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(230)],r=function(n){function t(t){return n(t)?t:Object(t)}return t}.apply(t,u),r!==undefined&&(n.exports=r))},164,[319,232,233,230,237],159,[320,234,236],[321,235],162,163,[322,238,239,240,232,241,242],[323,232,236],[324,232,233,236],168,[325,238,239,240,232,230,242],[326,233,243],171,function(n,t,i){var u,r;!(u=[i(245),i(238),i(239),i(232),i(246),i(249),i(250)],r=function(n,t,i,r,u,f,e){function o(o,h,c,l,a,v,y){for(var k=v.length,w=h[c];k--;)if(v[k]==w){o[c]=y[k];return}var p=o[c],b=a?a(p,w,c,o,h):s,d=typeof b=="undefined";d&&(b=w,r(w.length)&&(i(w)||f(w))?b=i(p)?p:p?n(p):[]:u(w)||t(w)?b=t(p)?e(p):u(p)?p:{}:d=!1);v.push(w);y.push(b);d?o[c]=l(b,w,a,v,y):(b===b?b!==p:p===p)&&(o[c]=b)}var s;return o}.apply(t,u),r!==undefined&&(n.exports=r))},218,function(n,t,i){var u,r;!(u=[i(233),i(247)],r=function(n,t){var r="[object Object]",u=Object.prototype,f=u.toString,i=n(i=Object.getPrototypeOf)&&i;return i?function(u){if(!(u&&f.call(u)==r))return!1;var o=u.valueOf,e=n(o)&&(e=i(o))&&i(e);return e?u==e||i(u)==e:t(u)}:t}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(248),i(236)],r=function(n,t){function u(i){var u,o;return!(t(i)&&e.call(i)==f)||!r.call(i,"constructor")&&(u=i.constructor,typeof u=="function"&&!(u instanceof u))?!1:(n(i,function(n,t){o=t}),typeof o=="undefined"||r.call(i,o))}var f="[object Object]",i=Object.prototype,r=i.hasOwnProperty,e=i.toString;return u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(228),i(241)],r=function(n,t){function i(i,r){return n(i,r,t)}return i}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(232),i(236)],r=function(n,t){function f(r){return t(r)&&n(r.length)&&i[u.call(r)]||!1}var i={},r,u;return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,r=Object.prototype,u=r.toString,f}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(251),i(241)],r=function(n,t){function i(i){return n(i,t(i))}return i}.apply(t,u),r!==undefined&&(n.exports=r))},157,[327,253,255],[328,254],174,[329,240,232,230],function(n,t,i){var u,r;!(u=[i(257),i(253)],r=function(n,t){function i(i,r,u){return r=typeof r=="function"&&t(r,u,1),n(i,!0,r)}return i}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(245),i(226),i(251),i(227),i(261),i(258),i(262),i(239),i(230),i(231)],r=function(n,t,i,r,u,f,e,o,s,h){function l(p,b,k,d,g,nt,tt){var it,ft,rt,et,ut;if(k&&(it=g?k(p,d,g):k(p)),typeof it!="undefined")return it;if(!s(p))return p;if(ft=o(p),ft){if(it=u(p),!b)return n(p,it)}else if(rt=w.call(p),et=rt==v,rt==y||rt==a||et&&!g){if(it=e(et?{}:p),!b)return i(p,it,h(p))}else return c[rt]?f(p,rt,b):g?p:{};for(nt||(nt=[]),tt||(tt=[]),ut=nt.length;ut--;)if(nt[ut]==p)return tt[ut];return nt.push(p),tt.push(it),(ft?t:r)(p,function(n,t){it[t]=l(n,b,k,t,p,nt,tt)}),it}var a="[object Arguments]",v="[object Function]",y="[object Object]",c={},p,w;return c[a]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object Date]"]=c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Number]"]=c[y]=c["[object RegExp]"]=c["[object String]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Error]"]=c[v]=c["[object Map]"]=c["[object Set]"]=c["[object WeakMap]"]=!1,p=Object.prototype,w=p.toString,l}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(259)],r=function(n){function t(t,k,d){var g=t.constructor,nt,tt;switch(k){case o:return n(t);case i:case r:return new g(+t);case s:case h:case c:case l:case a:case v:case y:case p:case w:return nt=t.buffer,new g(d?n(nt):nt,t.byteOffset,t.length);case u:case e:return new g(t);case f:tt=new g(t.source,b.exec(t));tt.lastIndex=t.lastIndex}return tt}var i="[object Boolean]",r="[object Date]",u="[object Number]",f="[object RegExp]",e="[object String]",o="[object ArrayBuffer]",s="[object Float32Array]",h="[object Float64Array]",c="[object Int8Array]",l="[object Int16Array]",a="[object Int32Array]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",p="[object Uint16Array]",w="[object Uint32Array]",b=/\w*$/;return t}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i(260),i(233),i(243)],r=function(n,t,i){function o(n){return e.call(n,0)}var r=t(r=i.ArrayBuffer)&&r,e=t(e=r&&new r(0).slice)&&e,h=Math.floor,u=t(u=i.Uint8Array)&&u,f=function(){try{var n=t(n=i.Float64Array)&&n,u=new n(new r(10),0,1)&&n}catch(f){}return u}(),s=f?f.BYTES_PER_ELEMENT:0;return e||(o=r&&u?function(n){var e=n.byteLength,t=f?h(e/s):0,o=t*s,c=new r(e),i;return t&&(i=new f(c,0,t),i.set(new f(n,0,t))),e!=o&&(i=new u(c,o),i.set(new u(n,o))),c}:n(null)),o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t){var r,i;!(r=[],i=function(){function n(n){return function(){return n}}return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t){var r,i;!(r=[],i=function(){function n(n){var r=n.length,t=new n.constructor(r);return r&&typeof n[0]=="string"&&i.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var t=Object.prototype,i=t.hasOwnProperty;return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t){var r,i;!(r=[],i=function(){function n(n){var t=n.constructor;return typeof t=="function"&&t instanceof t||(t=Object),new t}return n}.apply(t,r),i!==undefined&&(n.exports=i))},function(n,t,i){"use strict";var r=i(264);n.exports={mixinName:"Textable",initializeTextable:function(){this.el.classList.add("st-block--textable")},focusAtEnd:function(){this.focus();this.selectText()},selectText:function(){var n=document.createRange(),t;this._scribe.allowsBlockElements()?n.setStartAfter(this._scribe.el.firstChild,0):n.selectNodeContents(this._scribe.el);n.collapse(!1);t=new this._scribe.api.Selection;t.selection.removeAllRanges();t.selection.addRange(n)},getScribeInnerContent:function(){var t="",n;return this._scribe.getTextContent()!==""?(n=document.createElement("div"),n.innerHTML=this.getTextBlockHTML(),t=n.children&&Array.prototype.slice.call(n.children).reduce(function(n,t){return n+t.innerHTML},"")||n.innerHTML,t.replace(/^[\s\uFEFF\xA0]+|$/g,"")):t},getCaretPositionAtEnd:function(){return this.selectText(),r(this._scribe.el)},appendContent:function(n,t){t=t||{};var i=this.getCaretPositionAtEnd(),u=this.getScribeInnerContent();u!==""&&(n=u+n);n===""&&(n="<br>");this.setTextBlockHTML(n);this.focus();t.keepCaretPosition&&i.start!==0&&i.end!==0&&r(this._scribe.el,{start:i.start,end:i.end})}}},function(n,t,i){function f(n,t){var c,a;if(1==arguments.length){if(!r.rangeCount)return;var o={},i=r.getRangeAt(0),f=i.cloneRange();return f.selectNodeContents(n),f.setEnd(i.endContainer,i.endOffset),o.end=f.toString().length,f.setStart(i.startContainer,i.startOffset),o.start=o.end-f.toString().length,o.atStart=f.startOffset===0,o}for(var v=t.end&&t.end!==t.start,s=0,i=document.createRange(),w=e(n).select(Node.TEXT_NODE).revisit(!1),h,y,l=t.start>n.textContent.length?n.textContent.length:t.start,p=t.end>n.textContent.length?n.textContent.length:t.end,b=t.atStart;h=w.next();){if(c=s,s+=h.textContent.length,a=b?s>l:s>=l,!y&&a&&(y=!0,i.setStart(h,l-c),!v)){i.collapse(!0);u(n,i);break}if(v&&s>=p){i.setEnd(h,p-c);u(n,i);break}}}function u(n,t){n.focus();r.removeAllRanges();r.addRange(t)}var e=i(265),r=window.getSelection();n.exports=f},function(n,t,i){function r(n,t){if(!(this instanceof r))return new r(n,t);if(this.node=this.start=this.peeked=n,this.root=t,this.closingTag=!1,this._revisit=!0,this._selects=[],this._rejects=[],n&&this.higher(n))throw new Error("root must be a parent or ancestor to node");}function e(n,t){var i=n=="nextSibling";return function(r,f,e){r=this.compile(r);f=f&&f>0?f:1;for(var o=this.node,s=this.closingTag,h=this._revisit;o;){if(u(i,s)&&o[t])o=o[t],s=!i;else if(1==o.nodeType&&!o[t]&&u(i,s)){if(s=i,!h)continue}else if(o[n])o=o[n],s=!i;else if(o=o.parentNode,s=i,!h)continue;if(!o||this.higher(o,this.root))break;if(r(o)&&this.selects(o,e)&&this.rejects(o,e)){if(--f)continue;return e||(this.node=o),this.closingTag=s,o}}return null}}var u,f;try{u=i(266)}catch(o){u=i(266)}try{f=i(267)}catch(o){f=i(267)}n.exports=r;r.prototype.reset=function(n){return this.node=n||this.start,this};r.prototype.revisit=function(n){return this._revisit=undefined==n?!0:n,this};r.prototype.opening=function(){return 1==this.node.nodeType&&(this.closingTag=!1),this};r.prototype.atOpening=function(){return!this.closingTag};r.prototype.closing=function(){return 1==this.node.nodeType&&(this.closingTag=!0),this};r.prototype.atClosing=function(){return this.closingTag};r.prototype.next=e("nextSibling","firstChild");r.prototype.previous=r.prototype.prev=e("previousSibling","lastChild");r.prototype.select=function(n){return n=this.compile(n),this._selects.push(n),this};r.prototype.selects=function(n,t){var r=this._selects,u=r.length,i;if(!u)return!0;for(i=0;i<u;i++)if(r[i].call(this,n,t))return!0;return!1};r.prototype.reject=function(n){return n=this.compile(n),this._rejects.push(n),this};r.prototype.rejects=function(n,t){var r=this._rejects,u=r.length,i;if(!u)return!0;for(i=0;i<u;i++)if(r[i].call(this,n,t))return!1;return!0};r.prototype.higher=function(n){var t=this.root;if(!t)return!1;for(n=n.parentNode;n&&n!=t;)n=n.parentNode;return n!=t};r.prototype.compile=function(n){switch(typeof n=="undefined"?"undefined":_typeof(n)){case"number":return function(t){return n==t.nodeType};case"string":return new Function("node","return "+f(n,"node."));case"function":return n;default:return function(){return!0}}};r.prototype.peak=r.prototype.peek=function(n,t){return arguments.length==1&&(t=n,n=!0),t=undefined==t?1:t,t?t>0?this.next(n,t,!0):this.prev(n,Math.abs(t),!0):this.node};r.prototype.use=function(n){return n(this),this}},function(n){function t(n,t){return!n!=!t}n.exports=t},function(n){function t(n){return n.replace(/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^/]+)\//g,"").replace(f,"").match(/[a-zA-Z_]\w*/g)||[]}function i(n,t,i){return n.replace(/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^/]+)\/|[a-zA-Z_]\w*/g,function(n){return"("==n[n.length-1]?i(n):~t.indexOf(n)?i(n):n})}function r(n){for(var i=[],t=0;t<n.length;t++)~i.indexOf(n[t])||i.push(n[t]);return i}function u(n){return function(t){return n+t}}var f=/\b(Array|Date|Object|Math|JSON)\b/g;n.exports=function(n,f){var e=r(t(n));return(f&&"string"==typeof f&&(f=u(f)),f)?i(n,e,f):e}},function(n,t,i){"use strict";var u=i(2)["default"],f="<div class='st-block-positioner__inner'>\n<span class='st-block-positioner__selected-value'><\/span>\n<select class='st-block-positioner__select'><\/select>\n<\/div>",r=function(n,t){this.mediator=t;this.block=n;this._ensureElement();this._bindFunctions();this.initialize()};u(r.prototype,i(269),i(270),{total_blocks:0,bound:["onBlockCountChange","onSelectChange","toggle","show","hide"],className:"st-block-positioner",visibleClass:"active",initialize:function(){this.el.insertAdjacentHTML("beforeend",f);this.select=this.$(".st-block-positioner__select")[0];this.select.addEventListener("change",this.onSelectChange);this.mediator.on("block:countUpdate",this.onBlockCountChange)},onBlockCountChange:function(n){n!==this.total_blocks&&(this.total_blocks=n,this.renderPositionList())},onSelectChange:function(){var n=this.select.value;n!==0&&(this.mediator.trigger("block:changePosition",this.block,n,n===1?"before":"after"),this.toggle())},renderPositionList:function(){for(var t="<option value='0'>"+i18n.t("general:position")+"<\/option>",n=1;n<=this.total_blocks;n++)t+="<option value="+n+">"+n+"<\/option>";this.select.innerHTML=t},toggle:function(){this.select.value=0;this.el.classList.toggle(this.visibleClass)},show:function(){this.el.classList.add(this.visibleClass)},hide:function(){this.el.classList.remove(this.visibleClass)}});n.exports=r},function(n){"use strict";n.exports={bound:[],_bindFunctions:function(){this.bound.forEach(function(n){this[n]=this[n].bind(this)},this)}}},function(n,t,i){"use strict";var f=i(2)["default"],r=i(34),u=i(83);n.exports={tagName:"div",className:"sir-trevor__view",attributes:{},$:function(n){return this.el.querySelectorAll(n)},render:function(){return this},destroy:function(){r.isUndefined(this.stopListening)||this.stopListening();u.remove(this.el)},_ensureElement:function(){var n,t;this.el?this._setElement(this.el):(n=f({},r.result(this,"attributes")),this.id&&(n.id=this.id),this.className&&(n["class"]=this.className),t=u.createElement(this.tagName,n),this._setElement(t))},_setElement:function(n){return this.el=n,this}}},function(n,t,i){"use strict";var f=i(2)["default"],e=i(147),r=i(89),o=i(83),s=i(82),u=function(n,t){this.block=n;this.blockID=this.block.getAttribute("id");this.mediator=t;this._ensureElement();this._bindFunctions();this.initialize()};f(u.prototype,i(269),i(270),{bound:["onMouseDown","onDragStart","onDragEnd","onDrop"],className:"st-block-ui-btn__reorder",tagName:"a",attributes:function(){return{html:'<svg role="img" class="st-icon">\n                 <use xlink:href="'+s.defaults.iconUrl+'#move"/>\n               <\/svg>',draggable:"true","data-icon":"move"}},initialize:function(){this.el.addEventListener("mousedown",this.onMouseDown);this.el.addEventListener("dragstart",this.onDragStart);this.el.addEventListener("dragend",this.onDragEnd);e.dropArea(this.block);this.block.addEventListener("drop",this.onDrop)},blockId:function(){return this.block.getAttribute("id")},onMouseDown:function(){r.trigger("block:reorder:down")},onDrop:function(n){n.preventDefault();var i=this.block,t=n.dataTransfer.getData("text/plain"),u=document.querySelector("#"+t);(!!t,!!u,i.id!==t)&&o.insertAfter(u,i);this.mediator.trigger("block:rerender",t);r.trigger("block:reorder:dropped",t)},onDragStart:function(n){var t=this.block;this.dragEl=t.cloneNode(!0);this.dragEl.classList.add("st-drag-element");this.dragEl.style.top=t.offsetTop+"px";this.dragEl.style.left=t.offsetLeft+"px";t.parentNode.appendChild(this.dragEl);n.dataTransfer.setDragImage(this.dragEl,0,0);n.dataTransfer.setData("text/plain",this.blockId());this.mediator.trigger("block-controls:hide");r.trigger("block:reorder:dragstart");t.classList.add("st-block--dragging")},onDragEnd:function(){r.trigger("block:reorder:dragend");this.block.classList.remove("st-block--dragging");this.dragEl.parentNode.removeChild(this.dragEl)},render:function(){return this}});n.exports=u},function(n,t,i){"use strict";var u=i(2)["default"],f=i(82),r=function(){this._ensureElement();this._bindFunctions()};u(r.prototype,i(269),i(270),{tagName:"a",className:"st-block-ui-btn__delete",attributes:{html:function(){return'<svg role="img" class="st-icon">\n                   <use xlink:href="'+f.defaults.iconUrl+'#cross"/>\n                 <\/svg>'},"data-icon":"close"}});n.exports=r},function(n,t,i){"use strict";var r=i(34),u=i(29),f=function(n){var t=n.getAttribute("data-st-name")||n.getAttribute("name");return t||(t="Field"),u.capitalize(t)};n.exports={errors:[],valid:function(){return this.performValidations(),this.errors.length===0},performValidations:function(){this.resetErrors();var n=this.$(".st-required");Array.prototype.forEach.call(n,function(n){this.validateField(n)}.bind(this));this.validations.forEach(this.runValidator,this);this.el.classList.toggle("st-block--with-errors",this.errors.length>0)},validations:[],validateField:function(n){var t=n.getAttribute("contenteditable")?n.textContent:n.value;t.length===0&&this.setError(n,i18n.t("errors:block_empty",{name:f(n)}))},runValidator:function(n){r.isUndefined(this[n])||this[n].call(this)},setError:function(n,t){var i=this.addMessage(t,"st-msg--error");n.classList.add("st-error");this.errors.push({field:n,reason:t,msg:i})},resetErrors:function(){this.errors.forEach(function(n){n.field.classList.remove("st-error");n.msg.remove()});this.messages.classList.remove("st-block__messages--is-visible");this.errors=[]}}},function(n,t,i){"use strict";var f=i(2)["default"],u=i(34),r=i(29),e=i(89);n.exports={blockStorage:{},createStore:function(n){this.blockStorage={type:r.underscored(this.type),data:n||{}}},save:function(){var n=this._serializeData();u.isEmpty(n)||this.setData(n)},getData:function(){return this.save(),this.blockStorage},getBlockData:function(){return this.save(),this.blockStorage.data},_getData:function(){return this.blockStorage.data},setData:function(n){r.log("Setting data for block "+this.blockID);f(this.blockStorage.data,n||{})},setAndLoadData:function(n){this.setData(n);this.beforeLoadingData()},_serializeData:function(){},loadData:function(){},beforeLoadingData:function(){r.log("loadData for "+this.blockID);e.trigger("editor/block/loadData");this.loadData(this._getData())},_loadData:function(){r.log("_loadData is deprecated and will be removed in the future. Please use beforeLoadingData instead.");this.beforeLoadingData()},checkAndLoadData:function(){u.isEmpty(this._getData())||this.beforeLoadingData()}}},function(n,t,i){"use strict";var f=i(2)["default"],h=i(30)["default"],u=i(34),r=i(29),c=i(82),e=i(89),o=i(276),l=i(83),a=["convertToMarkdown","convertFromMarkdown","formatBar"],s=function(n){this.options=n.options;this.blockOptions=a.reduce(function(t,i){return t[i]=n.options[i],t},{});this.instance_scope=n.ID;this.mediator=n.mediator;this.wrapper=n.wrapper;this.blocks=[];this.blockCounts={};this.blockTypes=[];this._setBlocksTypes();this._setRequired();this._bindMediatedEvents();this.initialize()};f(s.prototype,i(269),i(302),i(87),{eventNamespace:"block",mediatedEvents:{create:"createBlock",remove:"removeBlock",rerender:"rerenderBlock",replace:"replaceBlock",focusPrevious:"focusPreviousBlock",focusNext:"focusNextBlock"},initialize:function(){},createBlock:function(n,t,i){if(n=r.classify(n),this.canCreateBlock(n)){var u=new o[n](t,this.instance_scope,this.mediator,this.blockOptions);this.blocks.push(u);this._incrementBlockTypeCount(n);this.renderBlock(u,i);this.triggerBlockCountUpdate();this.mediator.trigger("block:limitReached",this.blockLimitReached());e.trigger(t?"block:create:existing":"block:create:new",u);r.log("Block created of type "+n)}},removeBlock:function(n,t){t=f({transposeContent:!1,focusOnPrevious:!1},t);var i=this.findBlockById(n),s=r.classify(i.type),u=this.getPreviousBlock(i),o=this.getNextBlock(i);if(t.transposeContent&&i.textable){if(!u&&this.blocks.length===1)return;if(u&&u.textable)u.appendContent(i.getScribeInnerContent(),{keepCaretPosition:!0});else{if(i.getScribeInnerContent()!=="")return;u?u.focusAtEnd():o&&o.focus()}}this.mediator.trigger("block-controls:reset");this.blocks=this.blocks.filter(function(n){return n.blockID!==i.blockID});i.remove();t.focusOnPrevious&&u&&u.focusAtEnd();this._decrementBlockTypeCount(s);this.triggerBlockCountUpdate();this.mediator.trigger("block:limitReached",this.blockLimitReached());e.trigger("block:remove",n)},replaceBlock:function(n,t,i){var r=this.findBlockById(n.id);this.createBlock(t,i||null,n);this.removeBlock(n.id);r.remove()},renderBlock:function(n,t){t?l.insertAfter(n.render().el,t):this.wrapper.appendChild(n.render().el);n.trigger("onRender")},rerenderBlock:function(n){var t=this.findBlockById(n);u.isUndefined(t)||t.isEmpty()||!t.drop_options.re_render_on_reorder||t.beforeLoadingData()},getPreviousBlock:function(n){var t=this.getBlockPosition(n.el),i;if(!(t<1))return i=this.wrapper.querySelectorAll(".st-block")[t-1],this.findBlockById(i.getAttribute("id"))},getNextBlock:function(n){var t=this.getBlockPosition(n.el);if(!(t<0)&&!(t>=this.blocks.length-1))return this.findBlockById(this.wrapper.querySelectorAll(".st-block")[t+1].getAttribute("id"))},getBlockPosition:function(n){return Array.prototype.indexOf.call(this.wrapper.querySelectorAll(".st-block"),n)},focusPreviousBlock:function(n){var i=this.findBlockById(n),t;i.textable&&(t=this.getPreviousBlock(i),t&&t.textable&&t.focusAtEnd())},focusNextBlock:function(n){var i=this.findBlockById(n),t;i&&i.textable&&(t=this.getNextBlock(i),t&&t.textable&&t.focus())},triggerBlockCountUpdate:function(){this.mediator.trigger("block:countUpdate",this.blocks.length)},canCreateBlock:function(n){return this.blockLimitReached()?(r.log("Cannot add any more blocks. Limit reached."),!1):this.isBlockTypeAvailable(n)?this.canAddBlockType(n)?!0:(r.log("Block Limit reached for type "+n),!1):(r.log("Block type not available "+n),!1)},validateBlockTypesExist:function(n){if(c.skipValidation||!n)return!1;(this.required||[]).forEach(function(n){if(this.isBlockTypeAvailable(n))if(this._getBlockTypeCount(n)===0)r.log("Failed validation on required block type "+n),this.mediator.trigger("errors:add",{text:i18n.t("errors:type_missing",{type:n})});else{var t=this.getBlocksByType(n).filter(function(n){return!n.isEmpty()});if(t.length>0)return!1;this.mediator.trigger("errors:add",{text:i18n.t("errors:required_type_empty",{type:n})});r.log("A required block type "+n+" is empty")}},this)},findBlockById:function(n){return this.blocks.find(function(t){return t.blockID===n})},getBlocksByType:function(n){return this.blocks.filter(function(t){return r.classify(t.type)===n})},getBlocksByIDs:function(n){return this.blocks.filter(function(t){return n.includes(t.blockID)})},blockLimitReached:function(){return this.options.blockLimit!==0&&this.blocks.length>=this.options.blockLimit},isBlockTypeAvailable:function(n){return this.blockTypes.includes(n)},canAddBlockType:function(n){var t=this._getBlockTypeLimit(n);return!(t!==0&&this._getBlockTypeCount(n)>=t)},_setBlocksTypes:function(){this.blockTypes=this.options.blockTypes||h(o)},_setRequired:function(){this.required=!1;Array.isArray(this.options.required)&&!u.isEmpty(this.options.required)&&(this.required=this.options.required)},_incrementBlockTypeCount:function(n){this.blockCounts[n]=u.isUndefined(this.blockCounts[n])?1:this.blockCounts[n]+1},_decrementBlockTypeCount:function(n){this.blockCounts[n]=u.isUndefined(this.blockCounts[n])?1:this.blockCounts[n]-1},_getBlockTypeCount:function(n){return u.isUndefined(this.blockCounts[n])?0:this.blockCounts[n]},_blockLimitReached:function(){return this.options.blockLimit!==0&&this.blocks.length>=this.options.blockLimit},_getBlockTypeLimit:function(n){return this.isBlockTypeAvailable(n)?parseInt(u.isUndefined(this.options.blockTypeLimits[n])?0:this.options.blockTypeLimits[n],10):0}});n.exports=s},function(n,t,i){"use strict";n.exports={Text:i(277),Quote:i(295),Image:i(296),Heading:i(297),List:i(298),Tweet:i(300),Video:i(301)}},function(n,t,i){"use strict";var r=i(278),u=i(287),f=i(288),e=i(292),o=i(293),s=i(294);n.exports=r.extend({type:"text",editorHTML:'<div class="st-text-block" contenteditable="true"><\/div>',icon_name:"text",textable:!0,toolbarEnabled:!1,configureScribe:function(n){n.use(new f(this));n.use(new e(this));n.use(new o(this));n.use(new s(this));n.on("content-changed",this.toggleEmptyClass.bind(this))},scribeOptions:{allowBlockElements:!0,tags:{p:!0}},loadData:function(n){this.options.convertFromMarkdown&&n.format!=="html"?this.setTextBlockHTML(u(n.text,this.type)):this.setTextBlockHTML(n.text)},onBlockRender:function(){this.focus();this.toggleEmptyClass()},toggleEmptyClass:function(){this.el.classList.toggle("st-block--empty",this.isEmpty())},isEmpty:function(){return this._scribe.getTextContent()===""}})},function(n,t,i){"use strict";var a=i(84)["default"],o=i(2)["default"],r=i(34),s=i(152),v=i(82),e=i(29),h=i(83),c=i(145),l=i(142),f=i(279),y=i(271),p=i(272),w=i(268),b=i(89),k=i(285),d=i(286),u=function(){f.apply(this,arguments)};u.prototype=a(f.prototype);u.prototype.constructor=u;o(u.prototype,f.fn,i(273),{bound:["_handleContentPaste","_onFocus","_onBlur","onDrop","onDeleteClick","clearInsertedStyles","getSelectionForFormatter","onBlockRender","onDeleteConfirm","onPositionerClick"],className:"st-block",attributes:function(){return o(f.fn.attributes.call(this))},icon_name:"default",validationFailMsg:function(){return i18n.t("errors:validation_fail",{type:r.isFunction(this.title)?this.title():this.title})},editorHTML:'<div class="st-block__editor"><\/div>',toolbarEnabled:!0,availableMixins:["droppable","pastable","uploadable","fetchable","ajaxable","controllable","multi_editable","textable"],droppable:!1,pastable:!1,uploadable:!1,fetchable:!1,ajaxable:!1,multi_editable:!1,textable:!1,drop_options:{},paste_options:{},upload_options:{},formattable:!0,supressKeyListeners:!1,_previousSelection:"",initialize:function(){},toMarkdown:function(n){return n},toHTML:function(n){return n},withMixin:function(n){if(r.isObject(n)){var t="initialize"+n.mixinName;r.isUndefined(this[t])&&(o(this,n),this[t]())}},render:function(){if(this.beforeBlockRender(),this._setBlockInner(),this.editor=this.inner.children[0],this.mixinsRequireInputs=!1,this.availableMixins.forEach(function(n){if(this[n]){var t=l[e.classify(n)];!r.isUndefined(t.requireInputs)&&t.requireInputs&&(this.mixinsRequireInputs=!0)}},this),this.mixinsRequireInputs){var n=document.createElement("div");n.classList.add("st-block__inputs");this.inner.appendChild(n);this.inputs=n}return this.hasTextBlock()&&this._initTextBlocks(),this.availableMixins.forEach(function(n){this[n]&&this.withMixin(l[e.classify(n)])},this),this.formattable&&this._initFormatting(),this._blockPrepare(),this},remove:function(){this.ajaxable&&this.resolveAllInQueue();h.remove(this.el)},loading:function(){r.isUndefined(this.spinner)||this.ready();this.spinner=new k(v.defaults.spinner);this.spinner.spin(this.el);this.el.classList.add("st--is-loading")},ready:function(){this.el.classList.remove("st--is-loading");r.isUndefined(this.spinner)||(this.spinner.stop(),delete this.spinner)},_serializeData:function(){var n,t;return e.log("toData for "+this.blockID),n={},this.hasTextBlock()&&(n.text=this.getTextBlockHTML(),n.format="html"),t='input:not([class="st-paste-block"]),textarea:not([class="st-paste-block"]),select:not([class="st-paste-block"]),button:not([class="st-paste-block"])',this.$(t).length>0&&Array.prototype.forEach.call(this.$("input, textarea, select, button"),function(t){var i=t.getAttribute("data-name")||t.getAttribute("name"),r;i&&(t.getAttribute("type")==="number"?n[i]=parseInt(t.value):t.getAttribute("type")==="checkbox"?(r="",t.getAttribute("data-toggle")?(r="off",t.checked===!0&&(r="on")):t.checked===!0&&(r=t.value),n[i]=r):t.getAttribute("type")==="radio"?t.checked===!0&&(n[i]=t.value):n[i]=t.value)}),n},focus:function(){Array.prototype.forEach.call(this.getTextBlock(),function(n){n.focus()})},focusAtEnd:function(){this.focus()},blur:function(){Array.prototype.forEach.call(this.getTextBlock(),function(n){n.blur()})},onFocus:function(){var n=this;Array.prototype.forEach.call(this.getTextBlock(),function(t){t.addEventListener("focus",n._onFocus)})},onBlur:function(){var n=this;Array.prototype.forEach.call(this.getTextBlock(),function(t){t.addEventListener("blur",n._onBlur)})},_onFocus:function(){this.trigger("blockFocus",this.el)},_onBlur:function(){},onBlockRender:function(){this.focus()},onDrop:function(){},onDeleteConfirm:function(n){n.preventDefault();this.mediator.trigger("block:remove",this.blockID,{focusOnPrevious:!0})},addDeleteControls:function(){var n=this,t=function(t){t.preventDefault();n.deleteEl.classList.remove("active")};this.ui.insertAdjacentHTML("beforeend",d());c.delegate(this.el,".js-st-block-confirm-delete","click",this.onDeleteConfirm);c.delegate(this.el,".js-st-block-deny-delete","click",t)},onDeleteClick:function(n){if(n.preventDefault(),n.stopPropagation(),this.isEmpty()){this.onDeleteConfirm.call(this,new CustomEvent("click"));return}this.deleteEl=this.el.querySelector(".st-block__ui-delete-controls");this.deleteEl.classList.toggle("active")},onPositionerClick:function(n){n.preventDefault();this.positioner.toggle()},beforeLoadingData:function(){this.loading();this.mixinsRequireInputs&&(h.show(this.editor),h.hide(this.inputs));f.fn.beforeLoadingData.call(this);this.ready()},execTextBlockCommand:function(n){if(r.isUndefined(this._scribe))throw"No Scribe instance found to send a command to";return s.execTextBlockCommand(this._scribe,n)},queryTextBlockCommandState:function(n){if(r.isUndefined(this._scribe))throw"No Scribe instance found to query command";return s.queryTextBlockCommandState(this._scribe,n)},_handleContentPaste:function(n){setTimeout(this.onContentPasted.bind(this,n,n.currentTarget),0)},_getBlockClass:function(){return"st-block--"+this.className},_initUIComponents:function(){this.addDeleteControls();this.positioner=new w(this.el,this.mediator);this._withUIComponent(this.positioner,".st-block-ui-btn__reorder",this.onPositionerClick);this._withUIComponent(new y(this.el,this.mediator));this._withUIComponent(new p,".st-block-ui-btn__delete",this.onDeleteClick);this.onFocus();this.onBlur()},_initFormatting:function(){var n=this;this.options.formatBar&&this.options.formatBar.commands.forEach(function(t){r.isUndefined(t.keyCode)||c.delegate(n.el,".st-text-block","keydown",function(i){(i.metaKey||i.ctrlKey)&&i.keyCode===t.keyCode&&(i.preventDefault(),n.execTextBlockCommand(t.cmd))})})},_initTextBlocks:function(){var n=this,t,i;Array.prototype.forEach.call(this.getTextBlock(),function(t){t.addEventListener("keyup",n.getSelectionForFormatter);t.addEventListener("mouseup",n.getSelectionForFormatter);t.addEventListener("DOMNodeInserted",n.clearInsertedStyles)});t=this.getTextBlock()[0];!r.isUndefined(t)&&r.isUndefined(this._scribe)&&(i=r.isFunction(this.configureScribe)?this.configureScribe.bind(this):null,this._scribe=s.initScribeInstance(t,this.scribeOptions,i))},getSelectionForFormatter:function(){var n=this;setTimeout(function(){var i=window.getSelection(),r=i.toString().trim(),t="formatter:"+(r===""?"hide":"position");n.mediator.trigger(t,n);b.trigger(t,n)},1)},clearInsertedStyles:function(n){var t=n.target;r.isUndefined(t.tagName)&&(t=t.parentNode);t.removeAttribute("style")},hasTextBlock:function(){return this.getTextBlock().length>0},getTextBlock:function(){return r.isUndefined(this.text_block)&&(this.text_block=this.$(".st-text-block")),this.text_block},getTextBlockHTML:function(){return this._scribe.getContent()},setTextBlockHTML:function(n){var i=this._scribe.setContent(n),t=this._scribe.node.firstDeepestChild(this._scribe.el);for(t.nodeName==="#text"&&(t.textContent=e.leftTrim(t.textContent));this._scribe.el.firstChild&&this._scribe.el.firstChild.textContent==="";)this._scribe.el.removeChild(this._scribe.el.firstChild);while(this._scribe.el.lastChild&&this._scribe.el.lastChild.nodeName==="BR")this._scribe.el.removeChild(this._scribe.el.lastChild);return i},isEmpty:function(){return r.isEmpty(this.getBlockData())}});u.extend=i(284);n.exports=u},function(n,t,i){"use strict";var o=i(2)["default"],e=i(34),u=i(29),f=i(83),s=i(145),h=i(271),c=i(280),r=function(n,t,i,r){this.createStore(n);this.blockID=e.uniqueId("st-block-");this.instanceID=t;this.mediator=i;this.options=r||{};this._ensureElement();this._bindFunctions();this.initialize.apply(this,arguments)};o(r.prototype,i(269),i(87),i(270),i(274),{focus:function(){},valid:function(){return!0},className:"st-block",block_template:c,attributes:function(){return{id:this.blockID,"data-type":this.type,"data-instance":this.instanceID}},title:function(){return i18n.t("blocks:"+this.type+":title")||u.titleize(this.type.replace(/[\W_]/g," "))},dropText:function(){return i18n.t("blocks:"+this.type+":dropText")||u.titleize(this.type.replace(/[\W_]/g," "))},blockCSSClass:function(){return this.blockCSSClass=u.toSlug(this.type),this.blockCSSClass},type:"","class":function(){return u.classify(this.type)},editorHTML:"",initialize:function(){},onBlockRender:function(){},beforeBlockRender:function(){},_setBlockInner:function(){var n=e.result(this,"editorHTML");this.el.insertAdjacentHTML("beforeend",this.block_template(n));this.inner=this.el.querySelector(".st-block__inner")},render:function(){return this.beforeBlockRender(),this._setBlockInner(),this._blockPrepare(),this},_blockPrepare:function(){this._initUI();this._initMessages();this.checkAndLoadData();this.el.classList.add("st-item-ready");this.on("onRender",this.onBlockRender);this.save()},_withUIComponent:function(n,t,i){this.ui.appendChild(n.render().el);t&&i&&s.delegate(this.ui,t,"click",i)},_initUI:function(){var n=f.createElement("div",{"class":"st-block__ui"});this.el.appendChild(n);this.ui=n;this._initUIComponents()},_initMessages:function(){var n=f.createElement("div",{"class":"st-block__messages"});this.inner.insertBefore(n,this.inner.firstChild);this.messages=n},addMessage:function(n,t){return n=f.createElement("span",{html:n,"class":"st-msg "+t}),this.messages.appendChild(n),this.messages.classList.add("st-block__messages--is-visible"),n},resetMessages:function(){this.messages.innerHTML="";this.messages.classList.remove("st-block__messages--is-visible")},_initUIComponents:function(){this._withUIComponent(new h(this.el))}});r.fn=r.prototype;r.extend=i(284);n.exports=r},function(n,t,i){"use strict";var r=i(281),u=i(282),f=i(283);n.exports=function(n){return"\n    <div class='st-block__inner'>\n      "+n+"\n    <\/div>\n    "+f()+"\n    "+r()+"\n    "+u()+"\n  "}},function(n,t,i){"use strict";var r=i(82);n.exports=function(){return'\n    <div class="st-block-addition-top">\n      <div class="st-block-addition-top__button" type="button"><\/div>\n      <div class="st-block-addition-top__icon">\n        <svg role="img" class="st-icon">\n          <use xlink:href="'+r.defaults.iconUrl+'#add-block"/>\n        <\/svg>\n      <\/div>\n    <\/div>\n  '}},function(n,t,i){"use strict";var r=i(82);n.exports=function(){return'\n    <button class="st-block-addition" type="button">\n      <span class="st-block-addition__button">\n        <svg role="img" class="st-icon">\n          <use xlink:href="'+r.defaults.iconUrl+'#plus"/>\n        <\/svg>\n      <\/span>\n    <\/button>\n  '}},function(n,t,i){"use strict";var r=i(82);n.exports=function(){return'\n    <button class="st-block-replacer" type="button">\n      <span class="st-block-replacer__button">\n        <svg role="img" class="st-icon">\n          <use xlink:href="'+r.defaults.iconUrl+'#add-block"/>\n        <\/svg>\n      <\/span>\n    <\/button>\n  '}},function(n,t,i){"use strict";var r=i(2)["default"];n.exports=function(n,t){var u=this,i,f;return i=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return u.apply(this,arguments)},r(i,u,t),f=function(){this.constructor=i},f.prototype=u.prototype,i.prototype=new f,n&&r(i.prototype,n),i.__super__=u.prototype,i}},function(n,t,i){var r,u;(function(f,e){(typeof n=="undefined"?"undefined":_typeof(n))=="object"&&n.exports?n.exports=e():!(r=e,u=typeof r=="function"?r.call(t,i,t,n):r,u!==undefined&&(n.exports=u))})(this,function(){"use strict";function i(n,t){var r=document.createElement(n||"div"),i;for(i in t)r[i]=t[i];return r}function t(n){for(var t=1,i=arguments.length;t<i;t++)n.appendChild(arguments[t]);return n}function a(n,t,i,r){var e=["opacity",t,~~(n*100),i,r].join("-"),o=.01+i/r*100,s=Math.max(1-(1-n)/t*(100-o),n),h=u.substring(0,u.indexOf("Animation")).toLowerCase(),c=h&&"-"+h+"-"||"";return l[e]||(f.insertRule("@"+c+"keyframes "+e+"{0%{opacity:"+s+"}"+o+"%{opacity:"+n+"}"+(o+.01)+"%{opacity:1}"+(o+t)%100+"%{opacity:"+n+"}100%{opacity:"+s+"}}",f.cssRules.length),l[e]=1),e}function o(n,t){var u=n.style,r,i;if(t=t.charAt(0).toUpperCase()+t.slice(1),u[t]!==undefined)return t;for(i=0;i<c.length;i++)if(r=c[i]+t,u[r]!==undefined)return r}function n(n,t){for(var i in t)n.style[o(n,i)||i]=t[i];return n}function s(n){for(var i,t,r=1;r<arguments.length;r++){i=arguments[r];for(t in i)n[t]===undefined&&(n[t]=i[t])}return n}function h(n,t){return typeof n=="string"?n:n[t%n.length]}function r(n){this.opts=s(n||{},r.defaults,y)}function v(){function u(n,t){return i("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}f.addRule(".spin-vml","behavior:url(#default#VML)");r.prototype.lines=function(i,r){function s(){return n(u("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function c(i,f,o){t(a,t(n(s(),{rotation:360/r.lines*i+"deg",left:~~f}),t(n(u("roundrect",{arcsize:r.corners}),{width:e,height:r.scale*r.width,left:r.scale*r.radius,top:-r.scale*r.width>>1,filter:o}),u("fill",{color:h(r.color,i),opacity:r.opacity}),u("stroke",{opacity:0}))))}var e=r.scale*(r.length+r.width),o=r.scale*2*e,l=-(r.width+r.length)*r.scale*2+"px",a=n(s(),{position:"absolute",top:l,left:l}),f;if(r.shadow)for(f=1;f<=r.lines;f++)c(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=r.lines;f++)c(f);return t(i,a)};r.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}}var c=["webkit","Moz","ms","O"],l={},u,f,y={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",opacity:1/4,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"},e;return r.defaults={},s(r.prototype,{spin:function(t){this.stop();var f=this,r=f.opts,e=f.el=i(null,{className:r.className});if(n(e,{position:r.position,width:0,zIndex:r.zIndex,left:r.left,top:r.top}),t&&t.insertBefore(e,t.firstChild||null),e.setAttribute("role","progressbar"),f.lines(e,f.opts),!u){var s=0,l=(r.lines-1)*(1-r.direction)/2,h,c=r.fps,o=c/r.speed,a=(1-r.opacity)/(o*r.trail/100),v=o/r.lines;(function y(){s++;for(var n=0;n<r.lines;n++)h=Math.max(1-(s+(r.lines-n)*v)%o*a,r.opacity),f.opacity(e,n*r.direction+l,h,r);f.timeout=f.el&&setTimeout(y,~~(1e3/c))})()}return f},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=undefined),this},lines:function(r,f){function s(t,r){return n(i(),{position:"absolute",width:f.scale*(f.length+f.width)+"px",height:f.scale*f.width+"px",background:t,boxShadow:r,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*e+f.rotate)+"deg) translate("+f.scale*f.radius+"px,0)",borderRadius:(f.corners*f.scale*f.width>>1)+"px"})}for(var e=0,c=(f.lines-1)*(1-f.direction)/2,o;e<f.lines;e++)o=n(i(),{position:"absolute",top:1+~(f.scale*f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:u&&a(f.opacity,f.trail,c+e*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&t(o,n(s("#000","0 0 4px #000"),{top:"2px"})),t(r,t(o,s(h(f.color,e),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),typeof document!="undefined"&&(f=function(){var n=i("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),e=n(i("group"),{behavior:"url(#default#VML)"}),!o(e,"transform")&&e.adj?v():u=o(e,"animation")),r})},function(n){"use strict";n.exports=function(){return'\n    <div class="st-block__ui-delete-controls">\n      <label class="st-block__delete-label">\n        '+i18n.t("general:delete")+"\n      <\/label>\n      <button class='st-block-ui__confirm js-st-block-confirm-delete' type=\"button\">\n        "+i18n.t("general:yes")+"\n      <\/button>\n      <button class='st-block-ui__confirm js-st-block-deny-delete' type=\"button\">\n        "+i18n.t("general:no")+"\n      <\/button>\n    <\/div>\n  "}},function(n,t,i){"use strict";var r=i(34),u=i(29);n.exports=function(n,t){var s=i(276),f,e,o;return t=u.classify(t),f=n,e=t==="Text",r.isUndefined(e)&&(e=!1),e&&(f="<p>"+f),f=f.replace(/\[([^\]]+)\]\(([^\)]+)\)/gm,function(n,t,i){return"<a href='"+i+"'>"+t.replace(/\n/g,"")+"<\/a>"}),f=u.reverse(u.reverse(f).replace(/_(?!\\)((_\\|[^_])*)_(?=$|[^\\])/gm,function(n,t){return">i/<"+t.replace(/\n/g,"").replace(/[\s]+$/,"")+">i<"}).replace(/\*\*(?!\\)((\*\*\\|[^\*\*])*)\*\*(?=$|[^\\])/gm,function(n,t){return">b/<"+t.replace(/\n/g,"").replace(/[\s]+$/,"")+">b<"})),f=f.replace(/^\> (.+)$/mg,"$1"),s.hasOwnProperty(t)&&(o=s[t],!r.isUndefined(o.prototype.toHTML)&&r.isFunction(o.prototype.toHTML)&&(f=o.prototype.toHTML(f))),e&&(f=f.replace(/\n\s*\n/gm,"<\/p><p>"),f=f.replace(/\n/gm,"<br>")),f=f.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\n/g,"<br>").replace(/\*\*/,"").replace(/__/,""),f=f.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\\-/g,"-"),e&&(f+="<\/p>"),f}},function(n,t,i){"use strict";var r=i(289)["default"],u=i(264),f=function(n){return function(t){var f=function(n){if(n.firstChild!==null){var t=n.firstChild.childNodes[0];t&&t.nodeName!=="#text"&&t.innerText===""&&n.firstChild.removeChild(t)}},h=function(n,t){var i=document.createElement("div");return t?i.appendChild(n.extractContents()):i.appendChild(n.cloneContents()),f(i),i.firstChild&&i.firstChild.nodeName!=="#text"&&(i=i.lastChild),i.innerHTML.trim()},e=function(){var i=new t.api.Selection,n=i.range.cloneRange();return n.setEndAfter(t.el.lastChild,0),n},o=function(){var i,n,r;return t.getTextContent()===""?!0:(i=new t.api.Selection,n=i.range.cloneRange(),n.setStartBefore(t.el.firstChild,0),r=n.endContainer.nodeType===3?n.endContainer.parentNode:n.endContainer,t.el.firstChild!==r)?!1:h(n,!1)===""},c=function(){var i=new t.api.Selection,n=i.range.cloneRange();return n.selectNodeContents(t.el),n.toString().length},s=function(){var n=u(t.el);return c()===n.end&&n.start===n.end},l=function(){var i=document.createElement("div"),u,o,s;i.appendChild(e().extractContents());f(i);t.allowsBlockElements()||(u=document.createElement("div"),u.appendChild(i),i=u);i.childNodes.length>=1&&(s=r(i.childNodes),s.reverse().forEach(function(t){t.innerText!==""&&(o={format:"html",text:t.innerHTML.trim()},n.mediator.trigger("block:create","Text",o,n.el))}))},i=!1;t.el.addEventListener("keydown",function(r){n.supressKeyListeners||(r.keyCode!==13||r.shiftKey?(r.keyCode===37||r.keyCode===38)&&o()?(r.preventDefault(),n.mediator.trigger("block:focusPrevious",n.blockID)):r.keyCode===8&&o()?(r.preventDefault(),i=!0):(r.keyCode===39||r.keyCode===40)&&s()&&(r.preventDefault(),n.mediator.trigger("block:focusNext",n.blockID)):(r.preventDefault(),s()?(e().extractContents(),n.mediator.trigger("block:create","Text",null,n.el)):l(),t.allowsBlockElements()&&t.getTextContent()===""&&t.setContent("<p><br><\/p>")))});t.el.addEventListener("keyup",function(t){n.supressKeyListeners||t.keyCode===8&&i&&(t.preventDefault(),n.mediator.trigger("block:remove",n.blockID,{transposeContent:!0}),i=!1)})}};n.exports=f},function(n,t,i){n.exports={"default":i(290),__esModule:!0}},function(n,t,i){i(100);i(291);n.exports=i(7).Array.from},function(n,t,i){"use strict";var u=i(8),r=i(5),f=i(12),e=i(127),o=i(128),s=i(129),h=i(130);r(r.S+r.F*!i(141)(function(n){Array.from(n)}),"Array",{from:function(n){var r=f(n),l=typeof this=="function"?this:Array,a=arguments,k=a.length,c=k>1?a[1]:undefined,v=c!==undefined,t=0,y=h(r),p,i,w,b;if(v&&(c=u(c,k>2?a[2]:undefined,2)),y==undefined||l==Array&&o(y))for(p=s(r.length),i=new l(p);p>t;t++)i[t]=v?c(r[t],t):r[t];else for(b=y.call(r),i=new l;!(w=b.next()).done;t++)i[t]=v?e(b,c,[w.value,t],!0):w.value;return i.length=t,i}})},function(n,t,i){"use strict";var r=i(289)["default"],u=function(n){return function(t){var i=new t.api.CommandPatch("insertHTML");i.execute=function(i){var u=this;t.transactionManager.run(function(){var f,e;t.api.CommandPatch.prototype.execute.call(u,i);f=document.createElement("div");f.innerHTML=t.getContent();f.childNodes.length>1&&(e=r(f.childNodes),t.setContent(e.shift().innerHTML),e.reverse().forEach(function(t){var i={format:"html",text:t.innerHTML};n.mediator.trigger("block:create","Text",i,n.el)}),t.el.focus())})};t.commandPatches.insertHTML=i}};n.exports=u},function(n){"use strict";var t=function(n){return function(t){var i=new t.api.Command("heading"),r;i.queryEnabled=function(){return n.inline_editable};i.queryState=function(){return n.type==="heading"};r=function(){return i.queryState()?"Text":"Heading"};i.execute=function(){var t={format:"html",text:n.getScribeInnerContent()};n.mediator.trigger("block:replace",n.el,r(),t)};t.commands.heading=i}};n.exports=t},function(n){"use strict";var t=function(n){return function(t){var i=new t.api.Command("quote"),r;i.queryEnabled=function(){return n.inline_editable};i.queryState=function(){return n.type==="quote"};r=function(){return i.queryState()?"Text":"Quote"};i.execute=function(){var t={format:"html",text:n.getScribeInnerContent()};n.mediator.trigger("block:replace",n.el,r(),t)};t.commands.quote=i}};n.exports=t},function(n,t,i){"use strict";var r=i(34),u=i(278),f=i(287),e=i(293),o=i(294),s=r.template(['<blockquote class="st-required st-text-block st-text-block--quote" contenteditable="true"><\/blockquote>','<label class="st-input-label"> <%= i18n.t("blocks:quote:credit_field") %><\/label>','<input maxlength="140" name="cite" placeholder="<%= i18n.t("blocks:quote:credit_field") %>"',' class="st-input-string js-cite-input" type="text" />'].join("\n"));n.exports=u.extend({type:"quote",icon_name:"quote",textable:!0,toolbarEnabled:!1,editorHTML:function(){return s(this)},configureScribe:function(n){n.use(new e(this));n.use(new o(this))},loadData:function(n){this.options.convertFromMarkdown&&n.format!=="html"?this.setTextBlockHTML(f(n.text,this.type)):this.setTextBlockHTML(n.text);n.cite&&(this.$(".js-cite-input")[0].value=n.cite)}})},function(n,t,i){"use strict";var r=i(83),u=i(278);n.exports=u.extend({type:"image",droppable:!0,uploadable:!0,icon_name:"image",loadData:function(n){this.editor.innerHTML="";this.editor.appendChild(r.createElement("img",{src:n.file.url}))},onDrop:function(n){var t=n.files[0],i=typeof URL!="undefined"?URL:typeof webkitURL!="undefined"?webkitURL:null;/image/.test(t.type)&&(this.loading(),r.hide(this.inputs),this.editor.innerHTML="",this.editor.appendChild(r.createElement("img",{src:i.createObjectURL(t)})),r.show(this.editor),this.uploader(t,function(n){this.setData(n);this.ready()},function(){this.addMessage(i18n.t("blocks:image:upload_error"));this.ready()}))}})},function(n,t,i){"use strict";var r=i(278),u=i(287),f=i(288),e=i(293),o=i(294);n.exports=r.extend({type:"heading",editorHTML:'<h2 class="st-required st-text-block st-text-block--heading" contenteditable="true"><\/h2>',configureScribe:function(n){n.use(new f(this));n.use(new e(this));n.use(new o(this));n.on("content-changed",this.toggleEmptyClass.bind(this))},textable:!0,toolbarEnabled:!1,scribeOptions:{allowBlockElements:!1,tags:{p:!1}},icon_name:"heading",loadData:function(n){this.options.convertFromMarkdown&&n.format!=="html"?this.setTextBlockHTML(u(n.text,this.type)):this.setTextBlockHTML(n.text)},onBlockRender:function(){this.focus();this.toggleEmptyClass()},toggleEmptyClass:function(){this.el.classList.toggle("st-block--empty",this._scribe.getTextContent().length===0)}})},function(n,t,i){"use strict";var r=i(278),u=i(287),f=i(299);n.exports=r.extend({type:"list",icon_name:"list",multi_editable:!0,scribeOptions:{allowBlockElements:!1,tags:{p:!1}},configureScribe:function(n){n.use(new f(this))},editorHTML:'<ul class="st-list-block__list"><\/ul>',listItemEditorHTML:'<li class="st-list-block__item"><div class="st-list-block__editor st-block__editor"><\/div><\/li>',initialize:function(){this.editorIds=[]},beforeLoadingData:function(){this.setupListVariables();this.loadData(this._getData())},onBlockRender:function(){this.ul||this.setupListVariables();this.editorIds.length<1&&this.addListItem()},setupListVariables:function(){this.ul=this.inner.querySelector("ul")},loadData:function(n){var t=this;this.options.convertFromMarkdown&&n.format!=="html"&&(n=this.parseFromMarkdown(n.text));n.listItems.length?n.listItems.forEach(function(n){t.addListItem(n.content)}):t.addListItem()},parseFromMarkdown:function(n){var t=n.replace(/^ - (.+)$/mg,"$1").split("\n");return t=t.filter(function(n){return n.length}).map(function(n){return{content:u(n,this.type)}}.bind(this)),{listItems:t,format:"html"}},_serializeData:function(){var n={format:"html",listItems:[]};return this.editorIds.forEach(function(t){var i={content:this.getTextEditor(t).scribe.getContent()};n.listItems.push(i)}.bind(this)),n},addListItemAfterCurrent:function(n){this.addListItem(n,this.getCurrentTextEditor())},addListItem:function(n,t){var i,r,u;n=n||"";n.trim()==="<br>"&&(n="");i=this.newTextEditor(this.listItemEditorHTML,n);t&&this.ul.lastchild!==t.node?(r=t.node.nextSibling,this.ul.insertBefore(i.node,r),u=this.editorIds.indexOf(t.id)+1,this.editorIds.splice(u,0,i.id)):(this.ul.appendChild(i.node),this.editorIds.push(i.id));n||this.focusOn(i)},focusOnNeighbor:function(){var n=this.previousListItem()||this.nextListItem();n&&this.focusOn(n)},focusOn:function(n){var i=n.scribe,r=new i.api.Selection,u=i.el.lastChild,t;r.range&&(t=r.range.cloneRange());n.el.focus();t&&(t.setStartAfter(u,1),t.collapse(!1))},focusAtEnd:function(){var n=this.editorIds[this.editorIds.length-1];this.appendToTextEditor(n)},removeCurrentListItem:function(){if(this.editorIds.length!==1){var n=this.getCurrentTextEditor(),t=this.editorIds.indexOf(n.id);this.focusOnNeighbor(n);this.editorIds.splice(t,1);this.ul.removeChild(n.node);this.removeTextEditor(n.id)}},appendToCurrentItem:function(n){this.appendToTextEditor(this.getCurrentTextEditor().id,n)},isLastListItem:function(){return this.editorIds.length===1},nextListItem:function(){var t=this.editorIds.indexOf(this.getCurrentTextEditor().id),n=this.editorIds[t+1];return n!==undefined?this.getTextEditor(n):null},previousListItem:function(){var t=this.editorIds.indexOf(this.getCurrentTextEditor().id),n=this.editorIds[t-1];return n!==undefined?this.getTextEditor(n):null}})},function(n){"use strict";var t=function(n){return function(t){t.el.addEventListener("keydown",function(i){if(!n.supressKeyListeners){var u=function(n){var t=document.createElement("div");return t.appendChild(n.extractContents()),t.innerHTML},f=function(){var i=new t.api.Selection,n=i.range.cloneRange();return n.setEndAfter(t.el.lastChild,0),n},e=function(){var n=new t.api.Selection;return n.range.startOffset},r;i.keyCode!==13||i.shiftKey?i.keyCode===8&&e()===0?(i.preventDefault(),n.isLastListItem()?n.mediator.trigger("block:remove",n.blockID):(r=t.getContent(),n.removeCurrentListItem(),n.appendToCurrentItem(r))):i.keyCode===46:(i.preventDefault(),t.getTextContent().length===0?(n.removeCurrentListItem(),n.mediator.trigger("block:create","Text",null,n.el)):(r=u(f()),n.addListItemAfterCurrent(r)))}})}};n.exports=t},function(n,t,i){"use strict";var r=i(34),u=i(29),f=i(83),e=i(278),o=r.template(["<blockquote class='twitter-tweet' align='center'>","<p><%= text %><\/p>","&mdash; <%= user.name %> (@<%= user.screen_name %>)","<a href='<%= status_url %>' data-datetime='<%= created_at %>'><%= created_at %><\/a>","<\/blockquote>"].join("\n"));n.exports=e.extend({type:"tweet",icon_name:"tweet",droppable:!0,pastable:!0,fetchable:!0,drop_options:{re_render_on_reorder:!0},fetchUrl:function(n){return"/tweets/?tweet_id="+n},loadData:function(n){var t,i;r.isUndefined(n.status_url)&&(n.status_url="");t=this.inner.querySelector("twitterwidget");f.remove(t);this.inner.insertAdjacentHTML("afterbegin",o(n));i=f.createElement("script",{src:"//platform.twitter.com/widgets.js"});this.inner.appendChild(i)},onContentPasted:function(n){var t=n.target,i=t.value;this.handleTwitterDropPaste(i)},handleTwitterDropPaste:function(n){if(!this.validTweetUrl(n)){u.log("Invalid Tweet URL");return}var t=n.match(/[^\/]+$/);r.isEmpty(t)||(this.loading(),t=t[0],this.fetch(this.fetchUrl(t),{dataType:"json"},this.onTweetSuccess,this.onTweetFail))},validTweetUrl:function(n){return u.isURI(n)&&n.indexOf("twitter")!==-1&&n.indexOf("status")!==-1},onTweetSuccess:function(n){var t={user:{profile_image_url:n.user.profile_image_url,profile_image_url_https:n.user.profile_image_url_https,screen_name:n.user.screen_name,name:n.user.name},id:n.id_str,text:n.text,created_at:n.created_at,entities:n.entities,status_url:"https://twitter.com/"+n.user.screen_name+"/status/"+n.id_str};this.setAndLoadData(t);this.ready()},onTweetFail:function(){this.addMessage(i18n.t("blocks:tweet:fetch_error"));this.ready()},onDrop:function(n){var t=n.getData("text/plain");this.handleTwitterDropPaste(t)}})},function(n,t,i){"use strict";var r=i(34),u=i(29),f=i(278);n.exports=f.extend({providers:{vimeo:{regex:/(?:http[s]?:\/\/)?(?:www.)?vimeo\.co(?:.+(?:\/)([^\/].*)+$)/,html:'<iframe src="<%= protocol %>//player.vimeo.com/video/<%= remote_id %>?title=0&byline=0" width="580" height="320" frameborder="0"><\/iframe>'},youtube:{regex:/^.*(?:(?:youtu\.be\/)|(?:youtube\.com)\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*)/,html:'<iframe src="<%= protocol %>//www.youtube.com/embed/<%= remote_id %>" width="580" height="320" frameborder="0" allowfullscreen><\/iframe>'}},type:"video",droppable:!0,pastable:!0,icon_name:"video",loadData:function(n){if(this.providers.hasOwnProperty(n.source)){var t=this.providers[n.source],i=window.location.protocol==="file:"?"http:":window.location.protocol,u=t.square?"with-square-media":"with-sixteen-by-nine-media";this.editor.classList.add("st-block__editor--"+u);this.editor.innerHTML=r.template(t.html,{protocol:i,remote_id:n.remote_id,width:this.editor.style.width})}},onContentPasted:function(n){this.handleDropPaste(n.target.value)},matchVideoProvider:function(n,t,i){var u=n.regex.exec(i);return u==null||r.isUndefined(u[1])?{}:{source:t,remote_id:u[1]}},handleDropPaste:function(n){if(u.isURI(n))for(var t in this.providers)this.providers.hasOwnProperty(t)&&this.setAndLoadData(this.matchVideoProvider(this.providers[t],t,n))},onDrop:function(n){var t=n.getData("text/plain");this.handleDropPaste(t)}})},function(n,t,i){"use strict";var r=i(30)["default"];n.exports={mediatedEvents:{},eventNamespace:null,_bindMediatedEvents:function(){r(this.mediatedEvents).forEach(function(n){var t=this.mediatedEvents[n];n=this.eventNamespace?this.eventNamespace+":"+n:n;this.mediator.on(n,this[t].bind(this))},this)}}},function(n,t,i){"use strict";var r=i(2)["default"],u=i(34),o=i(82),f=i(83),s=i(145),h=i(304),e=function(n,t,i){this.editor=i;this.options=r({},o.defaults.formatBar,n||{});this.commands=this.options.commands;this.mediator=t;this.isShown=!1;this._ensureElement();this._bindFunctions();this._bindMediatedEvents();this.initialize.apply(this,arguments)};r(e.prototype,i(269),i(302),i(87),i(270),{className:"st-format-bar",bound:["onFormatButtonClick","renderBySelection","hide"],eventNamespace:"formatter",mediatedEvents:{position:"renderBySelection",show:"show",hide:"hide"},initialize:function(){var n=this.commands.reduce(function(n,t){return n+h(t)},"");this.el.insertAdjacentHTML("beforeend",n);s.delegate(this.el,".st-format-btn","mousedown",this.onFormatButtonClick)},hide:function(){this.block=undefined;this.isShown=!1;this.el.classList.remove("st-format-bar--is-ready");f.remove(this.el)},show:function(){this.isShown||(this.isShown=!0,this.editor.outer.appendChild(this.el),this.el.classList.add("st-format-bar--is-ready"))},remove:function(){f.remove(this.el)},renderBySelection:function(n){this.block=n;this.highlightSelectedButtons();this.show();this.calculatePosition()},calculatePosition:function(){var r=window.getSelection(),u=r.getRangeAt(0),t=u.getBoundingClientRect(),n={},f=this.editor.outer,i=f.getBoundingClientRect();n.top=t.top-i.top+"px";n.left=(t.left+t.right)/2-this.el.offsetWidth/2-i.left+"px";this.el.style.top=n.top;this.el.style.left=n.left},highlightSelectedButtons:function(){var n=this;[].forEach.call(this.el.querySelectorAll(".st-format-btn"),function(t){var i=t.getAttribute("data-cmd");t.classList.toggle("st-format-btn--is-active",n.block.queryTextBlockCommandState(i));t=null})},onFormatButtonClick:function(n){if(n.preventDefault(),n.stopPropagation(),u.isUndefined(this.block))throw"Associated block not found";var i=n.currentTarget,t=i.getAttribute("data-cmd");return u.isUndefined(t)?!1:(this.block.execTextBlockCommand(t),this.highlightSelectedButtons(),document.activeElement.focus(),!1)}});n.exports=e},function(n,t,i){"use strict";var r=i(82);n.exports=function(n){var t=n.name,f=n.text,i=n.cmd,u=n.iconName;return'\n    <button type="button" class="st-format-btn st-format-btn--'+t+'" data-cmd="'+i+'">\n      <svg role="img" class="st-icon">\n        <use xlink:href="'+r.defaults.iconUrl+"#"+u+'"/>\n      <\/svg>\n    <\/button>\n  '}},function(n,t,i){"use strict";var o=i(2)["default"],h=i(30)["default"],u=i(34),e=i(82),f=i(29),r=i(83),c=i(87),l=i(89),a=i(306),v=i(307),y=i(309),p=i(311),w=i(275),b=i(303),k=i(90),d=i(312),s=function(n){this.initialize(n)};o(s.prototype,i(269),i(87),{bound:["onFormSubmit","hideAllTheThings","changeBlockPosition","removeBlockDragOver","blockLimitReached","blockOrderUpdated"],events:{"block:reorder:dragend":"removeBlockDragOver","block:reorder:dropped":"removeBlockDragOver","block:content:dropped":"removeBlockDragOver"},initialize:function(n){if(f.log("Init SirTrevor.Editor"),this.options=o({},e.defaults,n||{}),this.ID=u.uniqueId("st-editor-"),!this._ensureAndSetElements())return!1;!u.isUndefined(this.options.onEditorRender)&&u.isFunction(this.options.onEditorRender)&&(this.onEditorRender=this.options.onEditorRender);this.mediator=o({},c);this._bindFunctions();e.instances.push(this);this.build();a.bindFormSubmit(this.form)},build:function(){r.hide(this.el);this.errorHandler=new d(this.outer,this.mediator,this.options.errorsContainer);this.store=new k(this.el.value,this.mediator);this.blockManager=new w(this);this.blockAddition=y.create(this);this.BlockAdditionTop=p.create(this);this.blockControls=v.create(this);this.formatBar=new b(this.options.formatBar,this.mediator,this);this.mediator.on("block:changePosition",this.changeBlockPosition);this.mediator.on("block:limitReached",this.blockLimitReached);this.mediator.on("block:rerender",this.blockOrderUpdated);this.mediator.on("block:create",this.blockOrderUpdated);this.mediator.on("block:remove",this.blockOrderUpdated);this.mediator.on("block:replace",this.blockOrderUpdated);this.dataStore="Please use store.retrieve();";this._setEvents();window.addEventListener("click",this.hideAllTheThings);document.body.addEventListener("keydown",this.disableBackButton);this.createBlocks();this.wrapper.classList.add("st-ready");u.isUndefined(this.onEditorRender)||this.onEditorRender()},createBlocks:function(){var n=this.store.retrieve();n.data.length>0?n.data.forEach(function(n){this.mediator.trigger("block:create",n.type,n.data)},this):this.options.defaultType!==!1&&this.mediator.trigger("block:create",this.options.defaultType,{})},destroy:function(){this.formatBar.destroy();this.blockAddition.destroy();this.blockControls.destroy();this.blockManager.blocks.forEach(function(n){this.mediator.trigger("block:remove",n.blockID)},this);this.mediator.stopListening();this.stopListening();e.instances=e.instances.filter(function(n){return n.ID!==this.ID},this);window.removeEventListener("click",this.hideAllTheThings);document.body.removeEventListener("keydown",this.disableBackButton);this.store.reset();r.replaceWith(this.outer,this.el)},reinitialize:function(n){this.destroy();this.initialize(n||this.options)},blockLimitReached:function(n){this.wrapper.classList.toggle("st--block-limit-reached",n)},blockOrderUpdated:function(){var t=this.wrapper.querySelectorAll(".st-block")[0],i=!1,n;t&&(n=this.blockManager.findBlockById(t.getAttribute("id")),i=n&&n.textable);this._toggleHideTopControls(i)},_toggleHideTopControls:function(n){this.wrapper.classList.toggle("st--hide-top-controls",n)},_setEvents:function(){h(this.events).forEach(function(n){l.on(n,this[this.events[n]],this)},this)},hideAllTheThings:function(){this.blockControls.hide();this.blockAddition.hide();document.activeElement.getAttribute("contenteditable")===null&&this.formatBar.hide();Array.prototype.forEach.call(this.wrapper.querySelectorAll(".st-block__ui-delete-controls"),function(n){n.classList.remove("active")})},store:function(n,t){return f.log("The store method has been removed, please call store[methodName]"),this.store[n].call(this,t||{})},removeBlockDragOver:function(){var n=this.outer.querySelector(".st-drag-over");n&&n.classList.remove("st-drag-over")},changeBlockPosition:function(n,t){t=t-1;var u=this.blockManager.getBlockPosition(n),i=this.wrapper.querySelectorAll(".st-block")[t];i&&i.getAttribute("id")!==n.getAttribute("id")&&(this.hideAllTheThings(),u>t?i.parentNode.insertBefore(n,i):r.insertAfter(n,i))},onFormSubmit:function(n){return n=n===!1?!1:!0,f.log("Handling form submission for Editor "+this.ID),this.mediator.trigger("errors:reset"),this.store.reset(),this.validateBlocks(n),this.blockManager.validateBlockTypesExist(n),this.mediator.trigger("errors:render"),this.el.value=this.store.toString(),this.errorHandler.errors.length},validateBlocks:function(n){var t=this;Array.prototype.forEach.call(this.wrapper.querySelectorAll(".st-block"),function(i){var r=t.blockManager.findBlockById(i.getAttribute("id"));u.isUndefined(r)||t.validateAndSaveBlock(r,n)})},validateAndSaveBlock:function(n,t){if(!e.skipValidation&&t&&!n.valid()){this.mediator.trigger("errors:add",{text:u.result(n,"validationFailMsg")});f.log("Block "+n.blockID+" failed validation");return}if(n.type!=="text"||!n.isEmpty()){var i=n.getData();f.log("Adding data for block "+n.blockID+" to block store:",i);this.store.addData(i)}},disableBackButton:function(n){var t=n.target||n.srcElement;if(n.keyCode===8){if(t.getAttribute("contenteditable")||t.tagName==="INPUT"||t.tagName==="TEXTAREA")return;n.preventDefault()}},findBlockById:function(n){return this.blockManager.findBlockById(n)},getBlocksByType:function(n){return this.blockManager.getBlocksByType(n)},getBlocksByIDs:function(n){return this.blockManager.getBlocksByIDs(n)},getBlockPosition:function(n){return f.log("This method has been moved to blockManager.getBlockPosition()"),this.blockManager.getBlockPosition(n)},_ensureAndSetElements:function(){if(u.isUndefined(this.options.el))return f.log("You must provide an el"),!1;this.el=this.options.el;this.form=r.getClosest(this.el,"form");var n=r.createElement("div",{id:this.ID,"class":"st-outer notranslate",dropzone:"copy link move"}),t=r.createElement("div",{"class":"st-blocks"});return r.wrap(r.wrap(this.el,n),t),this.outer=this.form.querySelector("#"+this.ID),this.wrapper=this.outer.querySelector(".st-blocks"),!0}});n.exports=s},function(n,t,i){"use strict";var f=i(82),e=i(29),o=i(89),s=i(91),r=!1,u={bindFormSubmit:function(n){r||(new s(n),n.addEventListener("submit",this.onFormSubmit),r=!0)},onBeforeSubmit:function(n){var t=0;return f.instances.forEach(function(i){t+=i.onFormSubmit(n)}),e.log("Total errors: "+t),t},onFormSubmit:function(n){var t=u.onBeforeSubmit();t>0&&(o.trigger("onError"),n.preventDefault())}};n.exports=u},function(n,t,i){"use strict";function u(n,t){return t.reduce(function(t,i){return n.hasOwnProperty(i)&&n[i].prototype.toolbarEnabled?t+o(n[i].prototype):t},"")}function f(){var t=document.createElement("div"),n;return t.className="st-block-controls__buttons",t.innerHTML=u.apply(null,arguments),n=document.createElement("div"),n.className="st-block-controls",n.appendChild(t),n}var e=i(276),r=i(145),o=i(308);n.exports.create=function(n){function u(){n.mediator.trigger("block:replace",t.parentNode,this.getAttribute("data-type"))}function o(n){n.stopPropagation();var r=this.parentNode;r&&i()!==r&&(r.appendChild(t),r.classList.toggle("st-block--controls-active"))}function i(){var n=t.parentNode;if(n)return n.removeChild(t),n.classList.remove("st-block--controls-active"),n}function s(){n=null;t=null}var t=f(e,n.blockManager.blockTypes);return r.delegate(n.wrapper,".st-block-replacer","click",o),r.delegate(n.wrapper,".st-block-controls__button","click",u),{el:t,hide:i,destroy:s}}},function(n,t,i){"use strict";var r=i(82);n.exports=function(n){return'\n    <button class="st-block-controls__button" data-type="'+n.type+'" type="button">\n      <svg role="img" class="st-icon">\n        <use xlink:href="'+r.defaults.iconUrl+"#"+n.icon_name+'"/>\n      <\/svg>\n      '+n.title()+"\n    <\/button>\n  "}},function(n,t,i){"use strict";var r=i(147),u=i(89),f=i(83),e=i(145),o=i(310);n.exports.create=function(n){function i(){n.mediator.trigger("block:create","Text",null,this.parentNode.parentNode.id?this.parentNode.parentNode:this.parentNode)}function s(){}function h(){n=null}function c(i){i.preventDefault();var e=t,r=i.dataTransfer.getData("text/plain"),o=document.querySelector("#"+r);(!!r,!!o,e.id!==r)&&f.insertAfter(o,e);n.mediator.trigger("block:rerender",r);u.trigger("block:reorder:dropped",r)}n.wrapper.insertAdjacentHTML("beforeend",o());var t=n.wrapper.querySelector(".st-top-controls");return r.dropArea(t),t.addEventListener("drop",c),e.delegate(n.wrapper,".st-block-addition","click",i),{destroy:h,hide:s}}},function(n,t,i){"use strict";var r=i(282);n.exports=function(){return'\n    <div id="st_top" class="st-top-controls">\n      '+r()+"\n    <\/div>\n  "}},function(n,t,i){"use strict";var r=i(145);n.exports.create=function(n){function t(){n.mediator.trigger("block:create","Text",null,this.parentNode.parentNode.previousSibling)}function i(){}function u(){n=null}return r.delegate(n.wrapper,".st-block-addition-top__button","click",t),r.delegate(n.wrapper,".st-block-addition-top__icon","click",t),{destroy:u,hide:i}}},function(n,t,i){"use strict";var f=i(2)["default"],e=i(34),r=i(83),u=function(n,t,i){this.wrapper=n;this.mediator=t;this.el=i;e.isUndefined(this.el)&&(this._ensureElement(),this.wrapper.insertBefore(this.el,this.wrapper.firstChild));r.hide(this.el);this._bindFunctions();this._bindMediatedEvents();this.initialize()};f(u.prototype,i(269),i(302),i(270),{errors:[],className:"st-errors",eventNamespace:"errors",mediatedEvents:{reset:"reset",add:"addMessage",render:"render"},initialize:function(){var n=document.createElement("ul"),t=document.createElement("p");t.innerHTML=i18n.t("errors:title");this.el.appendChild(t).appendChild(n);this.list=n},render:function(){if(this.errors.length===0)return!1;this.errors.forEach(this.createErrorItem,this);r.show(this.el)},createErrorItem:function(n){var t=document.createElement("li");t.classList.add("st-errors__msg");t.innerHTML=n.text;this.list.appendChild(t)},addMessage:function(n){this.errors.push(n)},reset:function(){if(this.errors.length===0)return!1;this.errors=[];this.list.innerHTML="";r.hide(this.el)}});n.exports=u},function(n,t,i){"use strict";var r=i(34),u=i(29);n.exports=function(n,t){function l(n,t,i){return r.isUndefined(i)&&(i=""),"**"+t.replace(/<(.)?br(.)?>/g,"")+"**"+i}function a(n,t,i){return r.isUndefined(i)&&(i=""),"_"+t.replace(/<(.)?br(.)?>/g,"")+"_"+i}var v=i(276),f,o,s,e,h,c;for(t=u.classify(t),f=n,f=f.replace(/&nbsp;/g," "),f=f.replace(/( class=(")?Mso[a-zA-Z]+(")?)/g,"").replace(/<!--(.*?)-->/g,"").replace(/\/\*(.*?)\*\//g,"").replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,""),o=["style","script","applet","embed","noframes","noscript"],e=0;e<o.length;e++)s=new RegExp("<"+o[e]+".*?"+o[e]+"(.*?)>","gi"),f=f.replace(s,"");for(f=f.replace(/\*/g,"\\*").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\_/g,"\\_").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\-/g,"\\-"),h=["em","i","strong","b"],e=0;e<h.length;e++)s=new RegExp("<"+h[e]+"><br><\/"+h[e]+">","gi"),f=f.replace(s,"<br>");return f=f.replace(/<(\w+)(?:\s+\w+="[^"]+(?:"\$[^"]+"[^"]+)?")*>\s*<\/\1>/gim,"").replace(/\n/mg,"").replace(/<a.*?href=[""'](.*?)[""'].*?>(.*?)<\/a>/gim,function(n,t,i){return"["+i.trim().replace(/<(.)?br(.)?>/g,"")+"]("+t+")"}).replace(/<strong>(?:\s*)(.*?)(\s)*?<\/strong>/gim,l).replace(/<b>(?:\s*)(.*?)(\s*)?<\/b>/gim,l).replace(/<em>(?:\s*)(.*?)(\s*)?<\/em>/gim,a).replace(/<i>(?:\s*)(.*?)(\s*)?<\/i>/gim,a),f=f.replace(/([^<>]+)(<div>)/g,"$1\n$2").replace(/<div><div>/g,"\n<div>").replace(/(?:<div>)([^<>]+)(?:<div>)/g,"$1\n").replace(/(?:<div>)(?:<br>)?([^<>]+)(?:<br>)?(?:<\/div>)/g,"$1\n").replace(/<\/p>/g,"\n\n").replace(/<(.)?br(.)?>/g,"\n").replace(/&lt;/g,"<").replace(/&gt;/g,">"),v.hasOwnProperty(t)&&(c=v[t],!r.isUndefined(c.prototype.toMarkdown)&&r.isFunction(c.prototype.toMarkdown)&&(f=c.prototype.toMarkdown(f))),f.replace(/<\/?[^>]+(>|$)/g,"")}},17,,function(n,t,i,r,u){(function(t){function e(n){return o(n)?f(n):{}}var s=i(r),o=i(43),h=i(u),f=s(f=Object.create)&&f;f||(e=function(){function n(){}return function(i){return o(i)&&(n.prototype=i,n.prototype=null),{}||t.Object()}}());n.exports=e}).call(t,function(){return this}())},function(n,t,i,r,u){var e=i(r),o=i(43),s=i(u),f=e(f=Object.keys)&&f,h=f?function(n){return o(n)?f(n):[]}:s;n.exports=h},function(n,t,i,r){var u=i(r),f=Object.prototype,e=f.hasOwnProperty,o=function(n){var t,i=n,r=[];if(!i||!u[typeof n=="undefined"?"undefined":_typeof(n)])return r;for(t in i)e.call(i,t)&&r.push(t);return r};n.exports=o},function(n,t,i,r,u,f,e){var s,o;!(s=[i(r),i(u),i(f),i(e)],o=function(n,t,i,r){var u=t(u=Object.keys)&&u;return u?function(t){if(t)var f=t.constructor,e=t.length;return typeof f=="function"&&f.prototype===t||typeof t!="function"&&e&&n(e)?r(t):i(t)?u(t):[]}:r}.apply(t,s),o!==undefined&&(n.exports=o))},function(n,t,i,r,u){var e,f;!(e=[i(r),i(u)],f=function(n,t){function r(n){return n==null?!1:i.call(n)==u?s.test(o.call(n)):t(n)&&f.test(n)||!1}var u="[object Function]",f=/^\[object .+?Constructor\]$/,e=Object.prototype,o=Function.prototype.toString,i=e.toString,s=RegExp("^"+n(i).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return r}.apply(t,e),f!==undefined&&(n.exports=f))},function(n,t,i,r){var f,u;!(f=[i(r)],u=function(n){function i(i){return i=n(i),i&&r.test(i)?i.replace(t,"\\$&"):i}var t=/[.*+?^${}()|[\]\/\\]/g,r=RegExp(t.source);return i}.apply(t,f),u!==undefined&&(n.exports=u))},function(n,t,i,r,u,f,e,o,s){var c,h;!(c=[i(r),i(u),i(f),i(e),i(o),i(s)],h=function(n,t,i,r,u,f){function e(e){for(var c=u(e),l=c.length,h=l&&e.length,y=h&&r(h)&&(t(e)||f.nonEnumArgs&&n(e)),a=-1,v=[],o;++a<l;)o=c[a],(y&&i(o,h)||s.call(e,o))&&v.push(o);return v}var o=Object.prototype,s=o.hasOwnProperty;return e}.apply(t,c),h!==undefined&&(n.exports=h))},function(n,t,i,r,u){var e,f;!(e=[i(r),i(u)],f=function(n,t){function i(i){var f=t(i)?i.length:r;return n(f)&&e.call(i)==u||!1}var r,u="[object Arguments]",f=Object.prototype,e=f.toString;return i}.apply(t,e),f!==undefined&&(n.exports=f))},function(n,t,i,r,u,f){var o,e;!(o=[i(r),i(u),i(f)],e=function(n,t,i){var u="[object Array]",f=Object.prototype,e=f.toString,r=t(r=Array.isArray)&&r;return r||function(t){return i(t)&&n(t.length)&&e.call(t)==u||!1}}.apply(t,o),e!==undefined&&(n.exports=e))},function(n,t,i,r,u,f,e,o,s){var c,h;!(c=[i(r),i(u),i(f),i(e),i(o),i(s)],h=function(n,t,i,r,u,f){function e(e){var o,h;if(e==null)return[];u(e)||(e=Object(e));o=e.length;o=o&&r(o)&&(t(e)||f.nonEnumArgs&&n(e))&&o||0;for(var a=e.constructor,c=-1,v=typeof a=="function"&&a.prototype===e,l=Array(o),y=o>0;++c<o;)l[c]=c+"";for(h in e)y&&i(h,o)||h=="constructor"&&(v||!s.call(e,h))||l.push(h);return l}var o=Object.prototype,s=o.hasOwnProperty;return e}.apply(t,c),h!==undefined&&(n.exports=h))},function(n,t,i,r,u){var e,f;!(e=[i(r),i(u)],f=function(n,t){var u=/\bthis\b/,f=Object.prototype,r=(r=t.window)&&r.document,e=f.propertyIsEnumerable,i={};return function(){i.funcDecomp=!n(t.WinRTError)&&u.test(function(){return this});i.funcNames=typeof Function.name=="string";try{i.dom=r.createDocumentFragment().nodeType===11}catch(f){i.dom=!1}try{i.nonEnumArgs=!e.call(arguments,1)}catch(f){i.nonEnumArgs=!0}}(0,0),i}.apply(t,e),f!==undefined&&(n.exports=f))},function(n,t,i,r,u){var e,f;!(e=[i(r),i(u)],f=function(n,t){function i(i){return function(){var u=arguments,r=u.length,e=u[0],o,s;if(r<2||e==null)return e;var f=u[r-2],h=u[r-1],c=u[3];for(r>3&&typeof f=="function"?(f=n(f,h,5),r-=2):(f=r>2&&typeof h=="function"?h:null,r-=f?1:0),c&&t(u[1],u[2],c)&&(f=r==3?null:f,r=2),o=0;++o<r;)s=u[o],s&&i(e,s,f);return e}}return i}.apply(t,e),f!==undefined&&(n.exports=f))},function(n,t,i,r){var f,u;!(f=[i(r)],u=function(n){function t(t,i,r){if(typeof t!="function")return n;if(typeof i=="undefined")return t;switch(r){case 1:return function(n){return t.call(i,n)};case 3:return function(n,r,u){return t.call(i,n,r,u)};case 4:return function(n,r,u,f){return t.call(i,n,r,u,f)};case 5:return function(n,r,u,f,e){return t.call(i,n,r,u,f,e)}}return function(){return t.apply(i,arguments)}}return t}.apply(t,f),u!==undefined&&(n.exports=u))},function(n,t,i,r,u,f){var o,e;!(o=[i(r),i(u),i(f)],e=function(n,t,i){function r(r,u,f){var o,s,h,e;return i(f)?(o=typeof u=="undefined"?"undefined":_typeof(u),o=="number"?(s=f.length,h=t(s)&&n(u,s)):h=o=="string"&&u in f,h)?(e=f[u],r===r?r===e:e!==e):!1:!1}return r}.apply(t,o),e!==undefined&&(n.exports=e))}]))}),function(n,t,i,r){"use strict";function e(n,t){var r=[],u=0,f,e;n&&n.isDefaultPrevented()||(n.preventDefault(),t=n&&n.data?n.data.options:t||{},f=t.$target||i(n.currentTarget),e=f.attr("data-fancybox")||"",e?(r=t.selector?i(t.selector):n.data?n.data.items:[],r=r.length?r.filter('[data-fancybox="'+e+'"]'):i('[data-fancybox="'+e+'"]'),u=r.index(f),u<0&&(u=0)):r=[f],i.fancybox.open(r,t,u))}if(n.console=n.console||{info:function(){}},i){if(i.fn.fancybox){console.info("fancyBox already initialized");return}var a={loop:!1,gutter:50,keyboard:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""><\/iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"><\/div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index><\/span>&nbsp;/&nbsp;<span data-fancybox-count><\/span><\/div><div class="fancybox-toolbar">{{buttons}}<\/div><div class="fancybox-navigation">{{arrows}}<\/div><div class="fancybox-stage"><\/div><div class="fancybox-caption"><\/div><\/div><\/div>',spinnerTpl:'<div class="fancybox-loading"><\/div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}<\/p><\/div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M13,16 L20,23 L27,16 M20,7 L20,23 M10,24 L10,28 L30,28 L30,24" /><\/svg><\/a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg viewBox="0 0 40 40"><path d="M18,17 m-8,0 a8,8 0 1,0 16,0 a8,8 0 1,0 -16,0 M24,22 L31,29" /><\/svg><\/button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg viewBox="0 0 40 40"><path d="M10,10 L30,30 M30,10 L10,30" /><\/svg><\/button>',smallBtn:'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"><svg viewBox="0 0 32 32"><path d="M10,10 L22,22 M22,10 L10,22"><\/path><\/svg><\/button>',arrowLeft:'<a data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M18,12 L10,20 L18,28 M10,20 L30,20"><\/path><\/svg><\/a>',arrowRight:'<a data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M10,20 L30,20 M22,12 L30,20 L22,28"><\/path><\/svg><\/a>'},parentEl:"body",autoFocus:!1,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop,clickContent:function(n){return n.type==="image"?"zoom":!1},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{idleTime:!1,clickContent:function(n){return n.type==="image"?"toggleControls":!1},clickSlide:function(n){return n.type==="image"?"toggleControls":"close"},dblclickContent:function(n){return n.type==="image"?"zoom":!1},dblclickSlide:function(n){return n.type==="image"?"zoom":!1}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Maßstab"}}},o=i(n),u=i(t),v=0,y=function(n){return n&&n.hasOwnProperty&&n instanceof i},c=function(){return n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||function(t){return n.setTimeout(t,1e3/60)}}(),l=function(){var u=t.createElement("fakeelement"),n,i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in i)if(u.style[n]!==r)return i[n];return"transitionend"}(),f=function(n){return n&&n.length&&n[0].offsetHeight},s=function(n,t){var r=i.extend(!0,{},n,t);return i.each(t,function(n,t){i.isArray(t)&&(r[n]=t)}),r},h=function(n,r,u){var f=this;(f.opts=s({index:u},i.fancybox.defaults),i.isPlainObject(r)&&(f.opts=s(f.opts,r)),i.fancybox.isMobile&&(f.opts=s(f.opts,f.opts.mobile)),f.id=f.opts.id||++v,f.currIndex=parseInt(f.opts.index,10)||0,f.prevIndex=null,f.prevPos=null,f.currPos=0,f.firstRun=!0,f.group=[],f.slides={},f.addContent(n),f.group.length)&&(f.$lastFocus=i(t.activeElement).trigger("blur"),f.init())};i.extend(h.prototype,{init:function(){var u=this,c=u.group[u.currIndex],f=c.opts,o=i.fancybox.scrollbarWidth,e,s,h;i.fancybox.getInstance()||f.hideScrollbar===!1||(i("body").addClass("fancybox-active"),!i.fancybox.isMobile&&t.body.scrollHeight>n.innerHeight&&(o===r&&(e=i('<div style="width:100px;height:100px;overflow:scroll;" />').appendTo("body"),o=i.fancybox.scrollbarWidth=e[0].offsetWidth-e[0].clientWidth,e.remove()),i("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar { margin-right: '+o+"px; }<\/style>"),i("body").addClass("compensate-for-scrollbar")));h="";i.each(f.buttons,function(n,t){h+=f.btnTpl[t]||""});s=i(u.translate(u,f.baseTpl.replace("{{buttons}}",h).replace("{{arrows}}",f.btnTpl.arrowLeft+f.btnTpl.arrowRight))).attr("id","fancybox-container-"+u.id).addClass("fancybox-is-hidden").addClass(f.baseClass).data("FancyBox",u).appendTo(f.parentEl);u.$refs={container:s};["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(n){u.$refs[n]=s.find(".fancybox-"+n)});u.trigger("onInit");u.activate();u.jumpTo(u.currIndex)},translate:function(n,t){var i=n.opts.i18n[n.opts.lang];return t.replace(/\{\{(\w+)\}\}/g,function(n,t){var u=i[t];return u===r?n:u})},addContent:function(n){var t=this,f=i.makeArray(n),u;i.each(f,function(n,u){var f={},e={},h,o,l,s,c;i.isPlainObject(u)?(f=u,e=u.opts||u):i.type(u)==="object"&&i(u).length?(h=i(u),e=h.data()||{},e=i.extend(!0,{},e,e.options),e.$orig=h,f.src=t.opts.src||e.src||h.attr("href"),f.type||f.src||(f.type="inline",f.src=u)):f={type:"html",src:u+""};f.opts=i.extend(!0,{},t.opts,e);i.isArray(e.buttons)&&(f.opts.buttons=e.buttons);o=f.type||f.opts.type;s=f.src||"";!o&&s&&((l=s.match(/\.(mp4|mov|ogv)((\?|#).*)?$/i))?(o="video",f.opts.videoFormat||(f.opts.videoFormat="video/"+(l[1]==="ogv"?"ogg":l[1]))):s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?o="image":s.match(/\.(pdf)((\?|#).*)?$/i)?o="iframe":s.charAt(0)==="#"&&(o="inline"));o?f.type=o:t.trigger("objectNeedsType",f);f.contentType||(f.contentType=i.inArray(f.type,["html","inline","ajax"])>-1?"html":f.type);f.index=t.group.length;f.opts.smallBtn=="auto"&&(f.opts.smallBtn=i.inArray(f.type,["html","inline","ajax"])>-1);f.opts.toolbar==="auto"&&(f.opts.toolbar=!f.opts.smallBtn);f.opts.$trigger&&f.index===t.opts.index&&(f.opts.$thumb=f.opts.$trigger.find("img:first"));f.opts.$thumb&&f.opts.$thumb.length||!f.opts.$orig||(f.opts.$thumb=f.opts.$orig.find("img:first"));i.type(f.opts.caption)==="function"&&(f.opts.caption=f.opts.caption.apply(u,[t,f]));i.type(t.opts.caption)==="function"&&(f.opts.caption=t.opts.caption.apply(u,[t,f]));f.opts.caption instanceof i||(f.opts.caption=f.opts.caption===r?"":f.opts.caption+"");f.type==="ajax"&&(c=s.split(/\s+/,2),c.length>1&&(f.src=c.shift(),f.opts.filter=c.shift()));f.opts.modal&&(f.opts=i.extend(!0,f.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1}));t.group.push(f)});Object.keys(t.slides).length&&(t.updateControls(),u=t.Thumbs,u&&u.isActive&&(u.create(),u.focus()))},addEvents:function(){var r=this;r.removeEvents();r.$refs.container.on("click.fb-close","[data-fancybox-close]",function(n){n.stopPropagation();n.preventDefault();r.close(n)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(n){n.stopPropagation();n.preventDefault();r.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(n){n.stopPropagation();n.preventDefault();r.next()}).on("click.fb","[data-fancybox-zoom]",function(){r[r.isScaledDown()?"scaleToActual":"scaleToFit"]()});o.on("orientationchange.fb resize.fb",function(n){n&&n.originalEvent&&n.originalEvent.type==="resize"?c(function(){r.update()}):(r.$refs.stage.hide(),setTimeout(function(){r.$refs.stage.show();r.update()},i.fancybox.isMobile?600:250))});u.on("focusin.fb",function(n){var r=i.fancybox?i.fancybox.getInstance():null;r.isClosing||!r.current||!r.current.opts.trapFocus||i(n.target).hasClass("fancybox-container")||i(n.target).is(t)||r&&i(n.target).css("position")!=="fixed"&&!r.$refs.container.has(n.target).length&&(n.stopPropagation(),r.focus())});u.on("keydown.fb",function(n){var u=r.current,t=n.keyCode||n.which;if(u&&u.opts.keyboard&&!n.ctrlKey&&!n.altKey&&!n.shiftKey&&!i(n.target).is("input")&&!i(n.target).is("textarea")){if(t===8||t===27){n.preventDefault();r.close(n);return}if(t===37||t===38){n.preventDefault();r.previous();return}if(t===39||t===40){n.preventDefault();r.next();return}r.trigger("afterKeydown",n,t)}});if(r.group[r.currIndex].opts.idleTime){r.idleSecondsCounter=0;u.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(){r.idleSecondsCounter=0;r.isIdle&&r.showControls();r.isIdle=!1});r.idleInterval=n.setInterval(function(){r.idleSecondsCounter++;r.idleSecondsCounter>=r.group[r.currIndex].opts.idleTime&&!r.isDragging&&(r.isIdle=!0,r.idleSecondsCounter=0,r.hideControls())},1e3)}},removeEvents:function(){var t=this;o.off("orientationchange.fb resize.fb");u.off("focusin.fb keydown.fb .fb-idle");this.$refs.container.off(".fb-close .fb-prev .fb-next");t.idleInterval&&(n.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(n){return this.jumpTo(this.currPos-1,n)},next:function(n){return this.jumpTo(this.currPos+1,n)},jumpTo:function(n,t){var u=this,c=u.group.length,h,l,e,o,v,a,s;if(!u.isDragging&&!u.isClosing&&(!u.isAnimating||!u.firstRun)){if(n=parseInt(n,10),l=u.current?u.current.opts.loop:u.opts.loop,!l&&(n<0||n>=c))return!1;if(h=u.firstRun=!Object.keys(u.slides).length,!(c<2)||h||!u.isDragging){if(o=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,e=u.createSlide(n),c>1&&((l||e.index>0)&&u.createSlide(n-1),(l||e.index<c-1)&&u.createSlide(n+1)),u.current=e,u.currIndex=e.index,u.currPos=e.pos,u.trigger("beforeShow",h),u.updateControls(),a=i.fancybox.getTranslate(e.$slide),e.isMoved=(a.left!==0||a.top!==0)&&!e.$slide.hasClass("fancybox-animated"),e.forcedDuration=r,i.isNumeric(t)?e.forcedDuration=t:t=e.opts[h?"animationDuration":"transitionDuration"],t=parseInt(t,10),h){e.opts.animationEffect&&t&&u.$refs.container.css("transition-duration",t+"ms");u.$refs.container.removeClass("fancybox-is-hidden");f(u.$refs.container);u.$refs.container.addClass("fancybox-is-open");f(u.$refs.container);e.$slide.addClass("fancybox-slide--previous");u.loadSlide(e);e.$slide.removeClass("fancybox-slide--previous").addClass("fancybox-slide--current");u.preload("image");return}(i.each(u.slides,function(n,t){i.fancybox.stop(t.$slide)}),e.$slide.removeClass("fancybox-slide--next fancybox-slide--previous").addClass("fancybox-slide--current"),e.isMoved?(v=Math.round(e.$slide.width()),i.each(u.slides,function(n,r){var f=r.pos-e.pos;i.fancybox.animate(r.$slide,{top:0,left:f*v+f*r.opts.gutter},t,function(){r.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous");r.pos===u.currPos&&(e.isMoved=!1,u.complete())})})):u.$refs.stage.children().removeAttr("style"),e.isLoaded?u.revealContent(e):u.loadSlide(e),u.preload("image"),o.pos!==e.pos)&&(s="fancybox-slide--"+(o.pos>e.pos?"next":"previous"),o.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),o.isComplete=!1,t&&(e.isMoved||e.opts.transitionEffect))&&(e.isMoved?o.$slide.addClass(s):(s="fancybox-animated "+s+" fancybox-fx-"+e.opts.transitionEffect,i.fancybox.animate(o.$slide,s,t,function(){o.$slide.removeClass(s).removeAttr("style")})))}}},createSlide:function(n){var t=this,u,r;return r=n%t.group.length,r=r<0?t.group.length+r:r,!t.slides[n]&&t.group[r]&&(u=i('<div class="fancybox-slide"><\/div>').appendTo(t.$refs.stage),t.slides[n]=i.extend(!0,{},t.group[r],{pos:n,$slide:u,isLoaded:!1}),t.updateSlide(t.slides[n])),t.slides[n]},scaleToActual:function(n,t,u){var e=this,f=e.current,y=f.$content,a=i.fancybox.getTranslate(f.$slide).width,v=i.fancybox.getTranslate(f.$slide).height,c=f.width,l=f.height,o,s,h,p,w;!e.isAnimating&&y&&f.type=="image"&&f.isLoaded&&!f.hasError&&(i.fancybox.stop(y),e.isAnimating=!0,n=n===r?a*.5:n,t=t===r?v*.5:t,o=i.fancybox.getTranslate(y),o.top-=i.fancybox.getTranslate(f.$slide).top,o.left-=i.fancybox.getTranslate(f.$slide).left,p=c/o.width,w=l/o.height,s=a*.5-c*.5,h=v*.5-l*.5,c>a&&(s=o.left*p-(n*p-n),s>0&&(s=0),s<a-c&&(s=a-c)),l>v&&(h=o.top*w-(t*w-t),h>0&&(h=0),h<v-l&&(h=v-l)),e.updateCursor(c,l),i.fancybox.animate(y,{top:h,left:s,scaleX:p,scaleY:w},u||330,function(){e.isAnimating=!1}),e.SlideShow&&e.SlideShow.isActive&&e.SlideShow.stop())},scaleToFit:function(n){var r=this,u=r.current,f=u.$content,t;!r.isAnimating&&f&&u.type=="image"&&u.isLoaded&&!u.hasError&&(i.fancybox.stop(f),r.isAnimating=!0,t=r.getFitPos(u),r.updateCursor(t.width,t.height),i.fancybox.animate(f,{top:t.top,left:t.left,scaleX:t.width/f.width(),scaleY:t.height/f.height()},n||330,function(){r.isAnimating=!1}))},getFitPos:function(n){var h=this,c=n.$content,t=n.width||n.opts.width,i=n.height||n.opts.height,e,o,s,r,u,f={};return!n.isLoaded||!c||!c.length?!1:(r={top:parseInt(n.$slide.css("paddingTop"),10),right:parseInt(n.$slide.css("paddingRight"),10),bottom:parseInt(n.$slide.css("paddingBottom"),10),left:parseInt(n.$slide.css("paddingLeft"),10)},e=parseInt(h.$refs.stage.width(),10)-(r.left+r.right),o=parseInt(h.$refs.stage.height(),10)-(r.top+r.bottom),t&&i||(t=e,i=o),s=Math.min(1,e/t,o/i),t=Math.floor(s*t),i=Math.floor(s*i),n.type==="image"?(f.top=Math.floor((o-i)*.5)+r.top,f.left=Math.floor((e-t)*.5)+r.left):n.contentType==="video"&&(u=n.opts.width&&n.opts.height?t/i:n.opts.ratio||16/9,i>t/u?i=t/u:t>i*u&&(t=i*u)),f.width=t,f.height=i,f)},update:function(){var n=this;i.each(n.slides,function(t,i){n.updateSlide(i)})},updateSlide:function(n){var t=this,r=n&&n.$content,u=n.width||n.opts.width,f=n.height||n.opts.height;r&&(u||f||n.contentType==="video")&&!n.hasError&&(i.fancybox.stop(r),i.fancybox.setTranslate(r,t.getFitPos(n)),n.pos===t.currPos&&(t.isAnimating=!1,t.updateCursor()));n.$slide.trigger("refresh");t.$refs.toolbar.toggleClass("compensate-for-scrollbar",n.$slide.get(0).scrollHeight>n.$slide.get(0).clientHeight);t.trigger("onUpdate",n)},centerSlide:function(n,t){var f=this,e,u;f.current&&(e=Math.round(n.$slide.width()),u=n.pos-f.current.pos,i.fancybox.animate(n.$slide,{top:0,left:u*e+u*n.opts.gutter,opacity:1},t===r?0:t,null,!1))},updateCursor:function(n,t){var u=this,r=u.current,f=u.$refs.container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut"),e;r&&!u.isClosing&&(e=u.isZoomable(),f.toggleClass("fancybox-is-zoomable",e),i("[data-fancybox-zoom]").prop("disabled",!e),e&&(r.opts.clickContent==="zoom"||i.isFunction(r.opts.clickContent)&&r.opts.clickContent(r)==="zoom")?u.isScaledDown(n,t)?f.addClass("fancybox-can-zoomIn"):r.opts.touch?f.addClass("fancybox-can-drag"):f.addClass("fancybox-can-zoomOut"):r.opts.touch&&r.contentType!=="video"&&f.addClass("fancybox-can-drag"))},isZoomable:function(){var t=this,n=t.current,i;return n&&!t.isClosing&&n.type==="image"&&!n.hasError&&(!n.isLoaded||(i=t.getFitPos(n),n.width>i.width||n.height>i.height))?!0:!1},isScaledDown:function(n,t){var o=this,u=!1,f=o.current,e=f.$content;return n!==r&&t!==r?u=n<f.width&&t<f.height:e&&(u=i.fancybox.getTranslate(e),u=u.width<f.width&&u.height<f.height),u},canPan:function(){var r=this,n=!1,t=r.current,i;return t.type==="image"&&(i=t.$content)&&!t.hasError&&(n=r.getFitPos(t),n=Math.abs(i.width()-n.width)>1||Math.abs(i.height()-n.height)>1),n},loadSlide:function(n){var t=this,u,r,f;if(!n.isLoading&&!n.isLoaded){n.isLoading=!0;t.trigger("beforeLoad",n);u=n.type;r=n.$slide;r.off("refresh").trigger("onReset").addClass(n.opts.slideClass);switch(u){case"image":t.setImage(n);break;case"iframe":t.setIframe(n);break;case"html":t.setContent(n,n.src||n.content);break;case"video":t.setContent(n,'<video class="fancybox-video" controls controlsList="nodownload"><source src="'+n.src+'" type="'+n.opts.videoFormat+"\">Your browser doesn't support HTML5 video<\/video");break;case"inline":i(n.src).length?t.setContent(n,i(n.src)):t.setError(n);break;case"ajax":t.showLoading(n);f=i.ajax(i.extend({},n.opts.ajax.settings,{url:n.src,success:function(i,r){r==="success"&&t.setContent(n,i)},error:function(i,r){i&&r!=="abort"&&t.setError(n)}}));r.one("onReset",function(){f.abort()});break;default:t.setError(n)}return!0}},setImage:function(t){var o=this,s=t.opts.srcset||t.opts.image.srcset,h,r,u,c,l,e,f;if(t.timouts=setTimeout(function(){var n=t.$image;!t.isLoading||n&&n[0].complete||t.hasError||o.showLoading(t)},350),s){for(c=n.devicePixelRatio||1,l=n.innerWidth*c,u=s.split(",").map(function(n){var t={};return n.trim().split(/\s+/).forEach(function(n,i){var r=parseInt(n.substring(0,n.length-1),10);if(i===0)return t.url=n;r&&(t.value=r,t.postfix=n[n.length-1])}),t}),u.sort(function(n,t){return n.value-t.value}),e=0;e<u.length;e++)if(f=u[e],f.postfix==="w"&&f.value>=l||f.postfix==="x"&&f.value>=c){r=f;break}!r&&u.length&&(r=u[u.length-1]);r&&(t.src=r.url,t.width&&t.height&&r.postfix=="w"&&(t.height=t.width/t.height*r.value,t.width=r.value),t.opts.srcset=s)}t.$content=i('<div class="fancybox-content"><\/div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image"));h=t.opts.thumb||(t.opts.$thumb&&t.opts.$thumb.length?t.opts.$thumb.attr("src"):!1);t.opts.preload!==!1&&t.opts.width&&t.opts.height&&h&&(t.width=t.opts.width,t.height=t.opts.height,t.$ghost=i("<img />").one("error",function(){i(this).remove();t.$ghost=null}).one("load",function(){o.afterLoad(t)}).addClass("fancybox-image").appendTo(t.$content).attr("src",h));o.setBigImage(t)},setBigImage:function(n){var r=this,t=i("<img />");n.$image=t.one("error",function(){r.setError(n)}).one("load",function(){var i;(n.$ghost||(r.resolveImageSlideSize(n,this.naturalWidth,this.naturalHeight),r.afterLoad(n)),n.timouts&&(clearTimeout(n.timouts),n.timouts=null),r.isClosing)||(n.opts.srcset&&(i=n.opts.sizes,i&&i!=="auto"||(i=(n.width/n.height>1&&o.width()/o.height()>1?"100":Math.round(n.width/n.height*100))+"vw"),t.attr("sizes",i).attr("srcset",n.opts.srcset)),n.$ghost&&setTimeout(function(){n.$ghost&&!r.isClosing&&n.$ghost.hide()},Math.min(300,Math.max(1e3,n.height/1600))),r.hideLoading(n))}).addClass("fancybox-image").attr("src",n.src).appendTo(n.$content);(t[0].complete||t[0].readyState=="complete")&&t[0].naturalWidth&&t[0].naturalHeight?t.trigger("load"):t[0].error&&t.trigger("error")},resolveImageSlideSize:function(n,t,i){var r=parseInt(n.opts.width,10),u=parseInt(n.opts.height,10);n.width=t;n.height=i;r>0&&(n.width=r,n.height=Math.floor(r*i/t));u>0&&(n.width=Math.floor(u*t/i),n.height=u)},setIframe:function(n){var e=this,t=n.opts.iframe,f=n.$slide,u;if(n.$content=i('<div class="fancybox-content'+(t.preload?" fancybox-is-hidden":"")+'"><\/div>').css(t.css).appendTo(f),f.addClass("fancybox-slide--"+n.contentType),n.$iframe=u=i(t.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(t.attr).appendTo(n.$content),t.preload){e.showLoading(n);u.on("load.fb error.fb",function(){this.isReady=1;n.$slide.trigger("refresh");e.afterLoad(n)});f.on("refresh.fb",function(){var f=n.$content,e=t.css.width,o=t.css.height,s,i;if(u[0].isReady===1){try{s=u.contents();i=s.find("body")}catch(h){}i&&i.length&&i.children().length&&(f.css({width:"",height:""}),e===r&&(e=Math.ceil(Math.max(i[0].clientWidth,i.outerWidth(!0)))),e&&f.width(e),o===r&&(o=Math.ceil(Math.max(i[0].clientHeight,i.outerHeight(!0)))),o&&f.height(o));f.removeClass("fancybox-is-hidden")}})}else this.afterLoad(n);u.attr("src",n.src);f.one("onReset",function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}i(this).off("refresh.fb").empty();n.isLoaded=!1})},setContent:function(n,t){var r=this;if(!r.isClosing){r.hideLoading(n);n.$content&&i.fancybox.stop(n.$content);n.$slide.empty();y(t)&&t.parent().length?(t.parent().parent(".fancybox-slide--inline").trigger("onReset"),n.$placeholder=i("<div>").hide().insertAfter(t),t.css("display","inline-block")):n.hasError||(i.type(t)==="string"&&(t=i("<div>").append(i.trim(t)).contents(),t[0].nodeType===3&&(t=i("<div>").html(t))),n.opts.filter&&(t=i("<div>").html(t).find(n.opts.filter)));n.$slide.one("onReset",function(){i(this).find("video,audio").trigger("pause");n.$placeholder&&(n.$placeholder.after(t.hide()).remove(),n.$placeholder=null);n.$smallBtn&&(n.$smallBtn.remove(),n.$smallBtn=null);n.hasError||(i(this).empty(),n.isLoaded=!1)});i(t).appendTo(n.$slide);i(t).is("video,audio")&&(i(t).addClass("fancybox-video"),i(t).wrap("<div><\/div>"),n.contentType="video",n.opts.width=n.opts.width||i(t).attr("width"),n.opts.height=n.opts.height||i(t).attr("height"));n.$content=n.$slide.children().filter("div,form,main,video,audio").first().addClass("fancybox-content");n.$slide.addClass("fancybox-slide--"+n.contentType);this.afterLoad(n)}},setError:function(n){n.hasError=!0;n.$slide.trigger("onReset").removeClass("fancybox-slide--"+n.contentType).addClass("fancybox-slide--error");n.contentType="html";this.setContent(n,this.translate(n,n.opts.errorTpl));n.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(n){var t=this;n=n||t.current;n&&!n.$spinner&&(n.$spinner=i(t.translate(t,t.opts.spinnerTpl)).appendTo(n.$slide))},hideLoading:function(n){var t=this;n=n||t.current;n&&n.$spinner&&(n.$spinner.remove(),delete n.$spinner)},afterLoad:function(n){var t=this;if(!t.isClosing){if(n.isLoading=!1,n.isLoaded=!0,t.trigger("afterLoad",n),t.hideLoading(n),n.pos===t.currPos&&t.updateCursor(),!n.opts.smallBtn||n.$smallBtn&&n.$smallBtn.length||(n.$smallBtn=i(t.translate(n,n.opts.btnTpl.smallBtn)).prependTo(n.$content)),n.opts.protect&&n.$content&&!n.hasError){n.$content.on("contextmenu.fb",function(n){return n.button==2&&n.preventDefault(),!0});n.type==="image"&&i('<div class="fancybox-spaceball"><\/div>').appendTo(n.$content)}t.revealContent(n)}},revealContent:function(n){var t=this,h=n.$slide,e=!1,o=!1,u,l,s,c;if(u=n.opts[t.firstRun?"animationEffect":"transitionEffect"],s=n.opts[t.firstRun?"animationDuration":"transitionDuration"],s=parseInt(n.forcedDuration===r?s:n.forcedDuration,10),n.pos===t.currPos&&(n.isComplete?u=!1:t.isAnimating=!0),(n.isMoved||n.pos!==t.currPos||!s)&&(u=!1),u==="zoom"&&(n.pos===t.currPos&&s&&n.type==="image"&&!n.hasError&&(o=t.getThumbPos(n))?e=t.getFitPos(n):u="fade"),u==="zoom"){e.scaleX=e.width/o.width;e.scaleY=e.height/o.height;c=n.opts.zoomOpacity;c=="auto"&&(c=Math.abs(n.width/n.height-o.width/o.height)>.1);c&&(o.opacity=.1,e.opacity=1);i.fancybox.setTranslate(n.$content.removeClass("fancybox-is-hidden"),o);f(n.$content);i.fancybox.animate(n.$content,e,s,function(){t.isAnimating=!1;t.complete()});return}if(t.updateSlide(n),!u){f(h);n.$content.removeClass("fancybox-is-hidden");n.pos===t.currPos&&t.complete();return}i.fancybox.stop(h);l="fancybox-animated fancybox-slide--"+(n.pos>=t.prevPos?"next":"previous")+" fancybox-fx-"+u;h.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(l);n.$content.removeClass("fancybox-is-hidden");f(h);i.fancybox.animate(h,"fancybox-slide--current",s,function(){h.removeClass(l).removeAttr("style");n.pos===t.currPos&&t.complete()},!0)},getThumbPos:function(r){var s=this,o=!1,u=r.opts.$thumb,f=u&&u.length&&u[0].ownerDocument===t?u.offset():0,e,h=function(t){for(var u=t[0],r=u.getBoundingClientRect(),f=[],e;u.parentElement!==null;)(i(u.parentElement).css("overflow")==="hidden"||i(u.parentElement).css("overflow")==="auto")&&f.push(u.parentElement.getBoundingClientRect()),u=u.parentElement;return e=f.every(function(n){var t=Math.min(r.right,n.right)-Math.max(r.left,n.left),i=Math.min(r.bottom,n.bottom)-Math.max(r.top,n.top);return t>0&&i>0}),e&&r.bottom>0&&r.right>0&&r.left<i(n).width()&&r.top<i(n).height()};return f&&h(u)&&(e=s.$refs.stage.offset(),o={top:f.top-e.top+parseFloat(u.css("border-top-width")||0),left:f.left-e.left+parseFloat(u.css("border-left-width")||0),width:u.width(),height:u.height(),scaleX:1,scaleY:1}),o},complete:function(){var r=this,n=r.current,u={};!n.isMoved&&n.isLoaded&&(n.isComplete||(n.isComplete=!0,n.$slide.siblings().trigger("onReset"),r.preload("inline"),f(n.$slide),n.$slide.addClass("fancybox-slide--complete"),i.each(r.slides,function(n,t){t.pos>=r.currPos-1&&t.pos<=r.currPos+1?u[t.pos]=t:t&&(i.fancybox.stop(t.$slide),t.$slide.off().remove())}),r.slides=u),r.isAnimating=!1,r.updateCursor(),r.trigger("afterShow"),n.$slide.find("video,audio").filter(":visible:first").trigger("play"),!i(t.activeElement).is("[disabled]")&&(!n.opts.autoFocus||n.type=="image"||n.type==="iframe")||r.focus())},preload:function(n){var t=this,i=t.slides[t.currPos+1],r=t.slides[t.currPos-1];i&&i.type===n&&t.loadSlide(i);r&&r.type===n&&t.loadSlide(r)},focus:function(){var t=this.current,n;this.isClosing||t&&t.isComplete&&t.$content&&(n=t.$content.find("input[autofocus]:enabled:visible:first"),n.length||(n=t.$content.find("button,:input,[tabindex],a").filter(":enabled:visible:first")),n=n&&n.length?n:t.$content,n.trigger("focus"))},activate:function(){var n=this;i(".fancybox-container").each(function(){var t=i(this).data("FancyBox");t&&t.id!==n.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)});n.isVisible=!0;(n.current||n.isIdle)&&(n.update(),n.updateControls());n.trigger("onActivate");n.addEvents()},close:function(n,t){var u=this,r=u.current,o,s,h,a,v,p,e,y=function(){u.cleanUp(n)};return u.isClosing?!1:(u.isClosing=!0,u.trigger("beforeClose",n)===!1)?(u.isClosing=!1,c(function(){u.update()}),!1):(u.removeEvents(),r.timouts&&clearTimeout(r.timouts),h=r.$content,o=r.opts.animationEffect,s=i.isNumeric(t)?t:o?r.opts.animationDuration:0,r.$slide.off(l).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),r.$slide.siblings().trigger("onReset").remove(),s&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),u.hideLoading(r),u.hideControls(),u.updateCursor(),o!=="zoom"||n!==!0&&h&&s&&r.type==="image"&&!r.hasError&&(e=u.getThumbPos(r))||(o="fade"),o==="zoom")?(i.fancybox.stop(h),a=i.fancybox.getTranslate(h),p={top:a.top,left:a.left,scaleX:a.width/e.width,scaleY:a.height/e.height,width:e.width,height:e.height},v=r.opts.zoomOpacity,v=="auto"&&(v=Math.abs(r.width/r.height-e.width/e.height)>.1),v&&(e.opacity=0),i.fancybox.setTranslate(h,p),f(h),i.fancybox.animate(h,e,s,y),!0):(o&&s?n===!0?setTimeout(y,s):i.fancybox.animate(r.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,s,y):y(),!0)},cleanUp:function(n){var t=this,u=i("body"),r;t.current.$slide.trigger("onReset");t.$refs.container.empty().remove();t.trigger("afterClose",n);t.$lastFocus&&!!t.current.opts.backFocus&&t.$lastFocus.trigger("focus");t.current=null;r=i.fancybox.getInstance();r?r.activate():(u.removeClass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(n,t){var f=Array.prototype.slice.call(arguments,1),e=this,r=t&&t.opts?t:e.current,o;if(r?f.unshift(r):r=e,f.unshift(e),i.isFunction(r.opts[n])&&(o=r.opts[n].apply(r,f)),o===!1)return o;n!=="afterClose"&&e.$refs?e.$refs.container.trigger(n+".fb",f):u.trigger(n+".fb",f)},updateControls:function(){var n=this,t=n.current,r=t.index,u=t.opts.caption,i=n.$refs.container,f=n.$refs.caption;t.$slide.trigger("refresh");n.$caption=u&&u.length?f.html(u):null;n.isHiddenControls||n.isIdle||n.showControls();i.find("[data-fancybox-count]").html(n.group.length);i.find("[data-fancybox-index]").html(r+1);i.find("[data-fancybox-prev]").toggleClass("disabled",!t.opts.loop&&r<=0);i.find("[data-fancybox-next]").toggleClass("disabled",!t.opts.loop&&r>=n.group.length-1);t.type==="image"?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",t.opts.image.src||t.src).show():t.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide()},hideControls:function(){this.isHiddenControls=!0;this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var n=this,t=n.current?n.current.opts:n.opts,i=n.$refs.container;n.isHiddenControls=!1;n.idleSecondsCounter=0;i.toggleClass("fancybox-show-toolbar",!!(t.toolbar&&t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&n.group.length>1)).toggleClass("fancybox-show-nav",!!(t.arrows&&n.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal);n.$caption?i.addClass("fancybox-show-caption "):i.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}});i.fancybox={version:"3.3.5",defaults:a,getInstance:function(n){var t=i('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),r=Array.prototype.slice.call(arguments,1);return t instanceof h?(i.type(n)==="string"?t[n].apply(t,r):i.type(n)==="function"&&n.apply(t,r),t):!1},open:function(n,t,i){return new h(n,t,i)},close:function(n){var t=this.getInstance();t&&(t.close(),n===!0&&this.close())},destroy:function(){this.close(!0);u.add("body").off("click.fb-start","**")},isMobile:t.createTouch!==r&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var i=t.createElement("div");return n.getComputedStyle&&n.getComputedStyle(i)&&n.getComputedStyle(i).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(n){var t;return!n||!n.length?!1:(t=n[0].getBoundingClientRect(),{top:t.top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(n.css("opacity"))})},setTranslate:function(n,t){var i="",u={};if(n&&t)return(t.left!==r||t.top!==r)&&(i=(t.left===r?n.position().left:t.left)+"px, "+(t.top===r?n.position().top:t.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),t.scaleX!==r&&t.scaleY!==r&&(i=(i.length?i+" ":"")+"scale("+t.scaleX+", "+t.scaleY+")"),i.length&&(u.transform=i),t.opacity!==r&&(u.opacity=t.opacity),t.width!==r&&(u.width=t.width),t.height!==r&&(u.height=t.height),n.css(u)},animate:function(n,t,u,f,e){var o=!1;i.isFunction(u)&&(f=u,u=null);i.isPlainObject(t)||n.removeAttr("style");i.fancybox.stop(n);n.on(l,function(r){r&&r.originalEvent&&(!n.is(r.originalEvent.target)||r.originalEvent.propertyName=="z-index")||(i.fancybox.stop(n),o&&i.fancybox.setTranslate(n,o),i.isPlainObject(t)?e===!1&&n.removeAttr("style"):e!==!0&&n.removeClass(t),i.isFunction(f)&&f(r))});i.isNumeric(u)&&n.css("transition-duration",u+"ms");i.isPlainObject(t)?(t.scaleX!==r&&t.scaleY!==r&&(o=i.extend({},t,{width:n.width()*t.scaleX,height:n.height()*t.scaleY,scaleX:1,scaleY:1}),delete t.width,delete t.height,n.parent().hasClass("fancybox-slide--image")&&n.parent().addClass("fancybox-is-scaling")),i.fancybox.setTranslate(n,t)):n.addClass(t);n.data("timer",setTimeout(function(){n.trigger("transitionend")},u+16))},stop:function(n){n&&n.length&&(clearTimeout(n.data("timer")),n.off("transitionend").css("transition-duration",""),n.parent().removeClass("fancybox-is-scaling"))}};i.fn.fancybox=function(n){var t;if(n=n||{},t=n.selector||!1,t)i("body").off("click.fb-start",t).on("click.fb-start",t,{options:n},e);else this.off("click.fb-start").on("click.fb-start",{items:this,options:n},e);return this};u.on("click.fb-start","[data-fancybox]",e);u.on("click.fb-start","[data-trigger]",function(n){e(n,{$target:i('[data-fancybox="'+i(n.currentTarget).attr("data-trigger")+'"]').eq(i(n.currentTarget).attr("data-index")||0),$trigger:i(this)})})}}(window,document,window.jQuery||jQuery),function(n){"use strict";var t=function(t,i,r){if(t)return r=r||"",n.type(r)==="object"&&(r=n.param(r,!0)),n.each(i,function(n,i){t=t.replace("$"+n,i||"")}),r.length&&(t+=(t.indexOf("?")>0?"&":"?")+r),t},i={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(n){return"//maps.google."+n[2]+"/?ll="+(n[9]?n[9]+"&z="+Math.floor(n[10])+(n[12]?n[12].replace(/^\//,"&"):""):n[12]+"").replace(/\?/,"&")+"&output="+(n[12]&&n[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(n){return"//maps.google."+n[2]+"/maps?q="+n[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};n(document).on("objectNeedsType.fb",function(r,u,f){var e=f.src||"",h=!1,v,y,o,c,s,a,l;v=n.extend(!0,{},i,f.opts.media);n.each(v,function(i,r){var u,v;if(o=e.match(r.matcher),o){if(h=r.type,l=i,a={},r.paramPlace&&o[r.paramPlace])for(s=o[r.paramPlace],s[0]=="?"&&(s=s.substring(1)),s=s.split("&"),u=0;u<s.length;++u)v=s[u].split("=",2),v.length==2&&(a[v[0]]=decodeURIComponent(v[1].replace(/\+/g," ")));return c=n.extend(!0,{},r.params,f.opts[i],a),e=n.type(r.url)==="function"?r.url.call(this,o,c,f):t(r.url,o,c),y=n.type(r.thumb)==="function"?r.thumb.call(this,o,c,f):t(r.thumb,o),i==="youtube"?e=e.replace(/&t=((\d+)m)?(\d+)s/,function(n,t,i,r){return"&start="+((i?parseInt(i,10)*60:0)+parseInt(r,10))}):i==="vimeo"&&(e=e.replace("&%23","#")),!1}});h?(f.opts.thumb||f.opts.$thumb&&f.opts.$thumb.length||(f.opts.thumb=y),h==="iframe"&&(f.opts=n.extend(!0,f.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),n.extend(f,{type:h,src:e,origSrc:f.src,contentSource:l,contentType:h==="image"?"image":l=="gmap_place"||l=="gmap_search"?"map":"video"})):e&&(f.type=f.opts.defaultType)})}(window.jQuery||jQuery),function(n,t,i){"use strict";var s=function(){return n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||function(t){return n.setTimeout(t,1e3/60)}}(),f=function(){return n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.oCancelAnimationFrame||function(t){n.clearTimeout(t)}}(),e=function(t){var r=[],i;t=t.originalEvent||t||n.e;t=t.touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t];for(i in t)t[i].pageX?r.push({x:t[i].pageX,y:t[i].pageY}):t[i].clientX&&r.push({x:t[i].clientX,y:t[i].clientY});return r},u=function(n,t,i){return!t||!n?0:i==="x"?n.x-t.x:i==="y"?n.y-t.y:Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},h=function(n){if(n.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio')||i.isFunction(n.get(0).onclick)||n.data("selectable"))return!0;for(var t=0,r=n[0].attributes,u=r.length;t<u;t++)if(r[t].nodeName.substr(0,14)==="data-fancybox-")return!0;return!1},c=function(t){var i=n.getComputedStyle(t)["overflow-y"],r=n.getComputedStyle(t)["overflow-x"],u=(i==="scroll"||i==="auto")&&t.scrollHeight>t.clientHeight,f=(r==="scroll"||r==="auto")&&t.scrollWidth>t.clientWidth;return u||f},o=function(n){for(var t=!1;;){if(t=c(n.get(0)),t)break;if(n=n.parent(),!n.length||n.hasClass("fancybox-stage")||n.is("body"))break}return t},r=function(n){var t=this;t.instance=n;t.$bg=n.$refs.bg;t.$stage=n.$refs.stage;t.$container=n.$refs.container;t.destroy();t.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(t,"ontouchstart"))};r.prototype.destroy=function(){this.$container.off(".fb.touch")};r.prototype.ontouchstart=function(r){var f=this,s=i(r.target),l=f.instance,c=l.current,v=c.$content,a=r.type=="touchstart";if((a&&f.$container.off("mousedown.fb.touch"),!r.originalEvent||r.originalEvent.button!=2)&&s.length&&!h(s)&&!h(s.parent())&&(s.is("img")||!(r.originalEvent.clientX>s[0].clientWidth+s.offset().left))){if(!c||l.isAnimating||l.isClosing){r.stopPropagation();r.preventDefault();return}if(f.realPoints=f.startPoints=e(r),f.startPoints.length){r.stopPropagation();f.startEvent=r;f.canTap=!0;f.$target=s;f.$content=v;f.opts=c.opts.touch;f.isPanning=!1;f.isSwiping=!1;f.isZooming=!1;f.isScrolling=!1;f.startTime=(new Date).getTime();f.distanceX=f.distanceY=f.distance=0;f.canvasWidth=Math.round(c.$slide[0].clientWidth);f.canvasHeight=Math.round(c.$slide[0].clientHeight);f.contentLastPos=null;f.contentStartPos=i.fancybox.getTranslate(f.$content)||{top:0,left:0};f.sliderStartPos=f.sliderLastPos||i.fancybox.getTranslate(c.$slide);f.stagePos=i.fancybox.getTranslate(l.$refs.stage);f.sliderStartPos.top-=f.stagePos.top;f.sliderStartPos.left-=f.stagePos.left;f.contentStartPos.top-=f.stagePos.top;f.contentStartPos.left-=f.stagePos.left;i(t).off(".fb.touch").on(a?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(f,"ontouchend")).on(a?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(f,"ontouchmove"));if(i.fancybox.isMobile&&t.addEventListener("scroll",f.onscroll,!0),!(f.opts||l.canPan())||!(s.is(f.$stage)||f.$stage.find(s).length)){s.is(".fancybox-image")&&r.preventDefault();return}i.fancybox.isMobile&&(o(s)||o(s.parent()))||r.preventDefault();(f.startPoints.length===1||c.hasError)&&(f.instance.canPan()?(i.fancybox.stop(f.$content),f.$content.css("transition-duration",""),f.isPanning=!0):f.isSwiping=!0,f.$container.addClass("fancybox-controls--isGrabbing"));f.startPoints.length===2&&c.type==="image"&&(c.isLoaded||c.$ghost)&&(f.canTap=!1,f.isSwiping=!1,f.isPanning=!1,f.isZooming=!0,i.fancybox.stop(f.$content),f.$content.css("transition-duration",""),f.centerPointStartX=(f.startPoints[0].x+f.startPoints[1].x)*.5-i(n).scrollLeft(),f.centerPointStartY=(f.startPoints[0].y+f.startPoints[1].y)*.5-i(n).scrollTop(),f.percentageOfImageAtPinchPointX=(f.centerPointStartX-f.contentStartPos.left)/f.contentStartPos.width,f.percentageOfImageAtPinchPointY=(f.centerPointStartY-f.contentStartPos.top)/f.contentStartPos.height,f.startDistanceBetweenFingers=u(f.startPoints[0],f.startPoints[1]))}}};r.prototype.onscroll=function(){var n=this;n.isScrolling=!0;t.removeEventListener("scroll",n.onscroll,!0)};r.prototype.ontouchmove=function(n){var t=this,r=i(n.target);if(n.originalEvent.buttons!==undefined&&n.originalEvent.buttons===0){t.ontouchend(n);return}if(t.isScrolling||!(r.is(t.$stage)||t.$stage.find(r).length)){t.canTap=!1;return}if((t.newPoints=e(n),(t.opts||t.instance.canPan())&&t.newPoints.length&&t.newPoints.length)&&(t.isSwiping&&t.isSwiping===!0||n.preventDefault(),t.distanceX=u(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=u(t.newPoints[0],t.startPoints[0],"y"),t.distance=u(t.newPoints[0],t.startPoints[0]),t.distance>0))if(t.isSwiping)t.onSwipe(n);else t.isPanning?t.onPan():t.isZooming&&t.onZoom()};r.prototype.onSwipe=function(){var t=this,u=t.isSwiping,r=t.sliderStartPos.left||0,e;if(u===!0){if(Math.abs(t.distance)>10){if(t.canTap=!1,t.instance.group.length<2&&t.opts.vertical?t.isSwiping="y":t.instance.isDragging||t.opts.vertical===!1||t.opts.vertical==="auto"&&i(n).width()>800?t.isSwiping="x":(e=Math.abs(Math.atan2(t.distanceY,t.distanceX)*180/Math.PI),t.isSwiping=e>45&&e<135?"y":"x"),t.canTap=!1,t.isSwiping==="y"&&i.fancybox.isMobile&&(o(t.$target)||o(t.$target.parent()))){t.isScrolling=!0;return}t.instance.isDragging=t.isSwiping;t.startPoints=t.newPoints;i.each(t.instance.slides,function(n,r){i.fancybox.stop(r.$slide);r.$slide.css("transition-duration","");r.inTransition=!1;r.pos===t.instance.current.pos&&(t.sliderStartPos.left=i.fancybox.getTranslate(r.$slide).left-i.fancybox.getTranslate(t.instance.$refs.stage).left)});t.instance.SlideShow&&t.instance.SlideShow.isActive&&t.instance.SlideShow.stop()}return}u=="x"&&(r=t.distanceX>0&&(t.instance.group.length<2||t.instance.current.index===0&&!t.instance.current.opts.loop)?r+Math.pow(t.distanceX,.8):t.distanceX<0&&(t.instance.group.length<2||t.instance.current.index===t.instance.group.length-1&&!t.instance.current.opts.loop)?r-Math.pow(-t.distanceX,.8):r+t.distanceX);t.sliderLastPos={top:u=="x"?0:t.sliderStartPos.top+t.distanceY,left:r};t.requestId&&(f(t.requestId),t.requestId=null);t.requestId=s(function(){t.sliderLastPos&&(i.each(t.instance.slides,function(n,r){var u=r.pos-t.instance.currPos;i.fancybox.setTranslate(r.$slide,{top:t.sliderLastPos.top,left:t.sliderLastPos.left+u*t.canvasWidth+u*r.opts.gutter})}),t.$container.addClass("fancybox-is-sliding"))})};r.prototype.onPan=function(){var n=this;if(u(n.newPoints[0],n.realPoints[0])<(i.fancybox.isMobile?10:5)){n.startPoints=n.newPoints;return}n.canTap=!1;n.contentLastPos=n.limitMovement();n.requestId&&(f(n.requestId),n.requestId=null);n.requestId=s(function(){i.fancybox.setTranslate(n.$content,n.contentLastPos)})};r.prototype.limitMovement=function(){var i=this,f=i.canvasWidth,v=i.canvasHeight,r=i.distanceX,u=i.distanceY,e=i.contentStartPos,o=e.left,y=e.top,s=e.width,p=e.height,h,c,l,a,n,t;return n=s>f?o+r:o,t=y+u,h=Math.max(0,f*.5-s*.5),c=Math.max(0,v*.5-p*.5),l=Math.min(f-s,f*.5-s*.5),a=Math.min(v-p,v*.5-p*.5),r>0&&n>h&&(n=h-1+Math.pow(-h+o+r,.8)||0),r<0&&n<l&&(n=l+1-Math.pow(l-o-r,.8)||0),u>0&&t>c&&(t=c-1+Math.pow(-c+y+u,.8)||0),u<0&&t<a&&(t=a+1-Math.pow(a-y-u,.8)||0),{top:t,left:n}};r.prototype.limitPosition=function(n,t,i,r){var e=this,u=e.canvasWidth,f=e.canvasHeight;return i>u?(n=n>0?0:n,n=n<u-i?u-i:n):n=Math.max(0,u/2-i/2),r>f?(t=t>0?0:t,t=t<f-r?f-r:t):t=Math.max(0,f/2-r/2),{top:t,left:n}};r.prototype.onZoom=function(){var t=this,r=t.contentStartPos,o=r.width,h=r.height,a=r.left,v=r.top,y=u(t.newPoints[0],t.newPoints[1]),e=y/t.startDistanceBetweenFingers,c=Math.floor(o*e),l=Math.floor(h*e),p=(o-c)*t.percentageOfImageAtPinchPointX,w=(h-l)*t.percentageOfImageAtPinchPointY,b=(t.newPoints[0].x+t.newPoints[1].x)/2-i(n).scrollLeft(),k=(t.newPoints[0].y+t.newPoints[1].y)/2-i(n).scrollTop(),d=b-t.centerPointStartX,g=k-t.centerPointStartY,nt=a+(p+d),tt=v+(w+g),it={top:tt,left:nt,scaleX:e,scaleY:e};t.canTap=!1;t.newWidth=c;t.newHeight=l;t.contentLastPos=it;t.requestId&&(f(t.requestId),t.requestId=null);t.requestId=s(function(){i.fancybox.setTranslate(t.$content,t.contentLastPos)})};r.prototype.ontouchend=function(n){var r=this,u=Math.max((new Date).getTime()-r.startTime,1),o=r.isSwiping,s=r.isPanning,h=r.isZooming,c=r.isScrolling;if(r.endPoints=e(n),r.$container.removeClass("fancybox-controls--isGrabbing"),i(t).off(".fb.touch"),t.removeEventListener("scroll",r.onscroll,!0),r.requestId&&(f(r.requestId),r.requestId=null),r.isSwiping=!1,r.isPanning=!1,r.isZooming=!1,r.isScrolling=!1,r.instance.isDragging=!1,r.canTap)return r.onTap(n);r.speed=366;r.velocityX=r.distanceX/u*.5;r.velocityY=r.distanceY/u*.5;r.speedX=Math.max(r.speed*.5,Math.min(r.speed*1.5,1/Math.abs(r.velocityX)*r.speed));s?r.endPanning():h?r.endZooming():r.endSwiping(o,c);return};r.prototype.endSwiping=function(n,t){var r=this,u=!1,f=r.instance.group.length;r.sliderLastPos=null;n=="y"&&!t&&Math.abs(r.distanceY)>50?(i.fancybox.animate(r.instance.current.$slide,{top:r.sliderStartPos.top+r.distanceY+r.velocityY*150,opacity:0},200),u=r.instance.close(!0,200)):n=="x"&&r.distanceX>50&&f>1?u=r.instance.previous(r.speedX):n=="x"&&r.distanceX<-50&&f>1&&(u=r.instance.next(r.speedX));u===!1&&(n=="x"||n=="y")&&(t||f<2?r.instance.centerSlide(r.instance.current,150):r.instance.jumpTo(r.instance.current.index));r.$container.removeClass("fancybox-is-sliding")};r.prototype.endPanning=function(){var n=this,r,u,t;n.contentLastPos&&(n.opts.momentum===!1?(r=n.contentLastPos.left,u=n.contentLastPos.top):(r=n.contentLastPos.left+n.velocityX*n.speed,u=n.contentLastPos.top+n.velocityY*n.speed),t=n.limitPosition(r,u,n.contentStartPos.width,n.contentStartPos.height),t.width=n.contentStartPos.width,t.height=n.contentStartPos.height,i.fancybox.animate(n.$content,t,330))};r.prototype.endZooming=function(){var n=this,e=n.instance.current,u,f,o,s,t=n.newWidth,r=n.newHeight;n.contentLastPos&&(u=n.contentLastPos.left,f=n.contentLastPos.top,s={top:f,left:u,width:t,height:r,scaleX:1,scaleY:1},i.fancybox.setTranslate(n.$content,s),t<n.canvasWidth&&r<n.canvasHeight?n.instance.scaleToFit(150):t>e.width||r>e.height?n.instance.scaleToActual(n.centerPointStartX,n.centerPointStartY,150):(o=n.limitPosition(u,f,t,r),i.fancybox.setTranslate(n.$content,i.fancybox.getTranslate(n.$content)),i.fancybox.animate(n.$content,o,150)))};r.prototype.onTap=function(t){var r=this,s=i(t.target),u=r.instance,o=u.current,h=t&&e(t)||r.startPoints,c=h[0]?h[0].x-i(n).scrollLeft()-r.stagePos.left:0,l=h[0]?h[0].y-i(n).scrollTop()-r.stagePos.top:0,f,a=function(n){var f=o.opts[n];if(i.isFunction(f)&&(f=f.apply(u,[o,t])),f)switch(f){case"close":u.close(r.startEvent);break;case"toggleControls":u.toggleControls(!0);break;case"next":u.next();break;case"nextOrClose":u.group.length>1?u.next():u.close(r.startEvent);break;case"zoom":o.type=="image"&&(o.isLoaded||o.$ghost)&&(u.canPan()?u.scaleToFit():u.isScaledDown()?u.scaleToActual(c,l):u.group.length<2&&u.close(r.startEvent))}};if((!t.originalEvent||t.originalEvent.button!=2)&&(s.is("img")||!(c>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))f="Outside";else if(s.is(".fancybox-slide"))f="Slide";else if(u.current.$content&&u.current.$content.find(s).addBack().filter(s).length)f="Content";else return;if(r.tapped){if(clearTimeout(r.tapped),r.tapped=null,Math.abs(c-r.tapX)>50||Math.abs(l-r.tapY)>50)return this;a("dblclick"+f)}else r.tapX=c,r.tapY=l,o.opts["dblclick"+f]&&o.opts["dblclick"+f]!==o.opts["click"+f]?r.tapped=setTimeout(function(){r.tapped=null;a("click"+f)},500):a("click"+f);return this}};i(t).on("onActivate.fb",function(n,t){t&&!t.Guestures&&(t.Guestures=new r(t))})}(window,document,window.jQuery||jQuery),function(n,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg viewBox="0 0 40 40"><path d="M13,12 L27,20 L13,27 Z" /><path d="M15,10 v19 M23,10 v19" /><\/svg><\/button>'},slideShow:{autoStart:!1,speed:3e3}});var i=function(n){this.instance=n;this.init()};t.extend(i.prototype,{timer:null,isActive:!1,$button:null,init:function(){var n=this;n.$button=n.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){n.toggle()});(n.instance.group.length<2||!n.instance.group[n.instance.currIndex].opts.slideShow)&&n.$button.hide()},set:function(n){var t=this;t.instance&&t.instance.current&&(n===!0||t.instance.current.opts.loop||t.instance.currIndex<t.instance.group.length-1)?t.timer=setTimeout(function(){t.isActive&&t.instance.jumpTo((t.instance.currIndex+1)%t.instance.group.length)},t.instance.current.opts.slideShow.speed):(t.stop(),t.instance.idleSecondsCounter=0,t.instance.showControls())},clear:function(){var n=this;clearTimeout(n.timer);n.timer=null},start:function(){var n=this,t=n.instance.current;t&&(n.isActive=!0,n.$button.attr("title",t.opts.i18n[t.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),n.set(!0))},stop:function(){var n=this,t=n.instance.current;n.clear();n.$button.attr("title",t.opts.i18n[t.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play");n.isActive=!1},toggle:function(){var n=this;n.isActive?n.stop():n.start()}});t(n).on({"onInit.fb":function(n,t){t&&!t.SlideShow&&(t.SlideShow=new i(t))},"beforeShow.fb":function(n,t,i,r){var u=t&&t.SlideShow;r?u&&i.opts.slideShow.autoStart&&u.start():u&&u.isActive&&u.clear()},"afterShow.fb":function(n,t){var i=t&&t.SlideShow;i&&i.isActive&&i.set()},"afterKeydown.fb":function(i,r,u,f,e){var o=r&&r.SlideShow;o&&u.opts.slideShow&&(e===80||e===32)&&!t(n.activeElement).is("button,a,input")&&(f.preventDefault(),o.toggle())},"beforeClose.fb onDeactivate.fb":function(n,t){var i=t&&t.SlideShow;i&&i.stop()}});t(n).on("visibilitychange",function(){var r=t.fancybox.getInstance(),i=r&&r.SlideShow;i&&i.isActive&&(n.hidden?i.clear():i.set())})}(document,window.jQuery||jQuery),function(n,t){"use strict";var i=function(){for(var r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],f={},t,i,u=0;u<r.length;u++)if(t=r[u],t&&t[1]in n){for(i=0;i<t.length;i++)f[r[0][i]]=t[i];return f}return!1}(),r;if(!i){t&&t.fancybox&&(t.fancybox.defaults.btnTpl.fullScreen=!1);return}r={request:function(t){t=t||n.documentElement;t[i.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){n[i.exitFullscreen]()},toggle:function(t){t=t||n.documentElement;this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(n[i.fullscreenElement])},enabled:function(){return Boolean(n[i.fullscreenEnabled])}};t.extend(!0,t.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="{{FULL_SCREEN}}"><svg viewBox="0 0 40 40"><path d="M9,12 v16 h22 v-16 h-22 v8" /><\/svg><\/button>'},fullScreen:{autoStart:!1}});t(n).on({"onInit.fb":function(n,t){var i;if(t&&t.group[t.currIndex].opts.fullScreen){i=t.$refs.container;i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(n){n.stopPropagation();n.preventDefault();r.toggle()});t.opts.fullScreen&&t.opts.fullScreen.autoStart===!0&&r.request();t.FullScreen=r}else t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(n,t,i,r,u){t&&t.FullScreen&&u===70&&(r.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(n,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&r.exit()}});t(n).on(i.fullscreenchange,function(){var i=r.isFullscreen(),n=t.fancybox.getInstance();n&&(n.current&&n.current.type==="image"&&n.isAnimating&&(n.current.$content.css("transition","none"),n.isAnimating=!1,n.update(!0,!0,0)),n.trigger("onFullscreenChange",i),n.$refs.container.toggleClass("fancybox-is-fullscreen",i))})}(document,window.jQuery||jQuery),function(n,t){"use strict";var i="fancybox-thumbs",u=i+"-active",f=i+"-loading",r;t.fancybox.defaults=t.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg viewBox="0 0 120 120"><path d="M30,30 h14 v14 h-14 Z M50,30 h14 v14 h-14 Z M70,30 h14 v14 h-14 Z M30,50 h14 v14 h-14 Z M50,50 h14 v14 h-14 Z M70,50 h14 v14 h-14 Z M30,70 h14 v14 h-14 Z M50,70 h14 v14 h-14 Z M70,70 h14 v14 h-14 Z" /><\/svg><\/button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},t.fancybox.defaults);r=function(n){this.init(n)};t.extend(r.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(n){var t=this,i,r;if(t.instance=n,n.Thumbs=t,t.opts=n.group[n.currIndex].opts.thumbs,i=n.group[0],i=i.opts.thumb||(i.opts.$thumb&&i.opts.$thumb.length?i.opts.$thumb.attr("src"):!1),n.group.length>1&&(r=n.group[1],r=r.opts.thumb||(r.opts.$thumb&&r.opts.$thumb.length?r.opts.$thumb.attr("src"):!1)),t.$button=n.$refs.toolbar.find("[data-fancybox-thumbs]"),t.opts&&i&&r&&i&&r){t.$button.show().on("click",function(){t.toggle()});t.isActive=!0}else t.$button.hide()},create:function(){var n=this,u=n.instance,e=n.opts.parentEl,o=[],r;if(!n.$grid){n.$grid=t('<div class="'+i+" "+i+"-"+n.opts.axis+'"><\/div>').appendTo(u.$refs.container.find(e).addBack().filter(e));n.$grid.on("click","li",function(){u.jumpTo(t(this).attr("data-index"))})}n.$list||(n.$list=t("<ul>").appendTo(n.$grid));t.each(u.group,function(n,t){r=t.opts.thumb||(t.opts.$thumb?t.opts.$thumb.attr("src"):null);r||t.type!=="image"||(r=t.src);o.push('<li data-index="'+n+'" tabindex="0" class="'+f+'"'+(r&&r.length?' style="background-image:url('+r+')" />':"")+"><\/li>")});n.$list[0].innerHTML=o.join("");n.opts.axis==="x"&&n.$list.width(parseInt(n.$grid.css("padding-right"),10)+u.group.length*n.$list.children().eq(0).outerWidth(!0))},focus:function(n){var i=this,r=i.$list,e=i.$grid,f,t;i.instance.current&&(f=r.children().removeClass(u).filter('[data-index="'+i.instance.current.index+'"]').addClass(u),t=f.position(),i.opts.axis==="y"&&(t.top<0||t.top>r.height()-f.outerHeight())?r.stop().animate({scrollTop:r.scrollTop()+t.top},n):i.opts.axis==="x"&&(t.left<e.scrollLeft()||t.left>e.scrollLeft()+(e.width()-f.outerWidth()))&&r.parent().stop().animate({scrollLeft:t.left},n))},update:function(){var n=this;n.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible);n.isVisible?(n.$grid||n.create(),n.instance.trigger("onThumbsShow"),n.focus(0)):n.$grid&&n.instance.trigger("onThumbsHide");n.instance.update()},hide:function(){this.isVisible=!1;this.update()},show:function(){this.isVisible=!0;this.update()},toggle:function(){this.isVisible=!this.isVisible;this.update()}});t(n).on({"onInit.fb":function(n,t){var i;t&&!t.Thumbs&&(i=new r(t),i.isActive&&i.opts.autoStart===!0&&i.show())},"beforeShow.fb":function(n,t,i,r){var u=t&&t.Thumbs;u&&u.isVisible&&u.focus(r?0:250)},"afterKeydown.fb":function(n,t,i,r,u){var f=t&&t.Thumbs;f&&f.isActive&&u===71&&(r.preventDefault(),f.toggle())},"beforeClose.fb":function(n,t){var i=t&&t.Thumbs;i&&i.isVisible&&i.opts.hideOnClose!==!1&&i.$grid.hide()}})}(document,window.jQuery||jQuery),function(n,t){"use strict";function i(n){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(n).replace(/[&<>"'`=\/]/g,function(n){return t[n]})}t.extend(!0,t.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg viewBox="0 0 40 40"><path d="M6,30 C8,18 19,16 23,16 L23,16 L23,10 L33,20 L23,29 L23,24 C19,24 8,27 6,30 Z"><\/svg><\/button>'},share:{url:function(n,t){return(!n.currentHash&&!(t.type==="inline"||t.type==="html")?t.origSrc||t.src:!1)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}<\/h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /><\/svg><span>Facebook<\/span><\/a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /><\/svg><span>Twitter<\/span><\/a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/><\/svg><span>Pinterest<\/span><\/a><\/p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" /><\/p><\/div>'}});t(n).on("click","[data-fancybox-share]",function(){var r=t.fancybox.getInstance(),n=r.current||null,u,f;n&&(t.type(n.opts.share.url)==="function"&&(u=n.opts.share.url.apply(n,[r,n])),f=n.opts.share.tpl.replace(/\{\{media\}\}/g,n.type==="image"?encodeURIComponent(n.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(u)).replace(/\{\{url_raw\}\}/g,i(u)).replace(/\{\{descr\}\}/g,r.$caption?encodeURIComponent(r.$caption.text()):""),t.fancybox.open({src:r.translate(r,f),type:"html",opts:{animationEffect:!1,afterLoad:function(n,t){r.$refs.container.one("beforeClose.fb",function(){n.close(null,0)});t.$content.find(".fancybox-share__links a").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})}}}))})}(document,window.jQuery||jQuery),function(n,t,i){"use strict";function r(){var i=t.location.hash.substr(1),n=i.split("-"),r=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,u=n.join("-");return{hash:i,index:r<1?1:r,gallery:u}}function f(n){var t;n.gallery!==""&&(t=i("[data-fancybox='"+i.escapeSelector(n.gallery)+"']").eq(n.index-1).trigger("click.fb-start"))}function u(n){var t,i;return n?(t=n.current?n.current.opts:n.opts,i=t.hash||(t.$orig?t.$orig.data("fancybox"):""),i===""?!1:i):!1}i.escapeSelector||(i.escapeSelector=function(n){var t=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n};return(n+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,t)});i(function(){if(i.fancybox.defaults.hash!==!1){i(n).on({"onInit.fb":function(n,t){var i,f;t.group[t.currIndex].opts.hash!==!1&&(i=r(),f=u(t),f&&i.gallery&&f==i.gallery&&(t.currIndex=i.index-1))},"beforeShow.fb":function(i,r,f,e){var o;f&&f.opts.hash!==!1&&(o=u(r),o)&&(r.currentHash=o+(r.group.length>1?"-"+(f.index+1):""),t.location.hash!=="#"+r.currentHash)&&(r.origHash||(r.origHash=t.location.hash),r.hashTimer&&clearTimeout(r.hashTimer),r.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[e?"pushState":"replaceState"]({},n.title,t.location.pathname+t.location.search+"#"+r.currentHash),e&&(r.hasCreatedHistory=!0)):t.location.hash=r.currentHash;r.hashTimer=null},300))},"beforeClose.fb":function(i,r,f){var e;f.opts.hash!==!1&&(e=u(r),r.currentHash&&r.hasCreatedHistory?t.history.back():r.currentHash&&("replaceState"in t.history?t.history.replaceState({},n.title,t.location.pathname+t.location.search+(r.origHash||"")):t.location.hash=r.origHash),r.currentHash=null,clearTimeout(r.hashTimer))}});i(t).on("hashchange.fb",function(){var t=r(),n;i.each(i(".fancybox-container").get().reverse(),function(t,r){var u=i(r).data("FancyBox");if(u.currentHash)return n=u,!1});n?!n.currentHash||n.currentHash===t.gallery+"-"+t.index||t.index===1&&n.currentHash==t.gallery||(n.currentHash=null,n.close()):t.gallery!==""&&f(t)});setTimeout(function(){i.fancybox.getInstance()||f(r())},50)}})}(document,window,window.jQuery||jQuery),function(n,t){"use strict";var i=(new Date).getTime();t(n).on({"onInit.fb":function(n,t){t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(n){var r=t.current,u=(new Date).getTime();t.group.length<2||r.opts.wheel===!1||r.opts.wheel==="auto"&&r.type!=="image"||(n.preventDefault(),n.stopPropagation(),r.$slide.hasClass("fancybox-animated"))||(n=n.originalEvent||n,u-i<250)||(i=u,t[(-n.deltaY||-n.deltaX||n.wheelDelta||-n.detail)<0?"next":"previous"]())})}})}(document,window.jQuery||jQuery);!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function t(t,r){var f,u=this;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(t),appendDots:n(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous<\/button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(n,t){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(t+1)+"<\/button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!1,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3};u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};n.extend(u,u.initials);u.activeBreakpoint=null;u.animType=null;u.animProp=null;u.breakpoints=[];u.breakpointSettings=[];u.cssTransitions=!1;u.hidden="hidden";u.paused=!1;u.positionProp=null;u.respondTo=null;u.rowCount=1;u.shouldClick=!0;u.$slider=n(t);u.$slidesCache=null;u.transformType=null;u.transitionType=null;u.visibilityChange="visibilitychange";u.windowWidth=0;u.windowTimer=null;f=n(t).data("slick")||{};u.options=n.extend({},u.defaults,f,r);u.currentSlide=u.options.initialSlide;u.originalSettings=u.options;"undefined"!=typeof document.mozHidden?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange");u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.instanceUid=i++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.registerBreakpoints();u.init(!0);u.checkResponsive(!0)}var i=0;return t}();t.prototype.addSlide=t.prototype.slickAdd=function(t,i,r){var u=this;if("boolean"==typeof i)r=i,i=null;else if(0>i||i>=u.slideCount)return!1;u.unload();"number"==typeof i?0===i&&0===u.$slides.length?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):r===!0?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("data-slick-index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateHeight=function(){var n=this,t;1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.animate({height:t},n.options.speed))};t.prototype.animateSlide=function(t,i){var u={},r=this;r.animateHeight();r.options.rtl===!0&&r.options.vertical===!1&&(t=-t);r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){n=Math.ceil(n);r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.asNavFor=function(t){var r=this,i=r.options.asNavFor;i&&null!==i&&(i=n(i).not(r.$slider));null!==i&&"object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i.each(function(){var i=n(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer);n.slideCount>n.options.slidesToShow&&n.paused!==!0&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this;n.options.infinite===!1?1===n.direction?(n.currentSlide+1===n.slideCount-1&&(n.direction=0),n.slideHandler(n.currentSlide+n.options.slidesToScroll)):(n.currentSlide-1==0&&(n.direction=1),n.slideHandler(n.currentSlide-n.options.slidesToScroll)):n.slideHandler(n.currentSlide+n.options.slidesToScroll)};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=n(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=n(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};t.prototype.buildDots=function(){var i,r,t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(r='<ul class="'+t.options.dotsClass+'">',i=0;i<=t.getDotCount();i+=1)r+="<li>"+t.options.customPaging.call(this,t,i)+"<\/li>";r+="<\/ul>";t.$dots=n(r).appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("data-slick-index",t).data("originalStyling",n(i).attr("style")||"")});t.$slider.addClass("slick-slider");t.$slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.buildRows=function(){var t,i,r,f,c,u,e,n=this,o,s,h;if(f=document.createDocumentFragment(),u=n.$slider.children(),n.options.rows>1){for(e=n.options.slidesPerRow*n.options.rows,c=Math.ceil(u.length/e),t=0;c>t;t++){for(o=document.createElement("div"),i=0;i<n.options.rows;i++){for(s=document.createElement("div"),r=0;r<n.options.slidesPerRow;r++)h=t*e+(i*n.options.slidesPerRow+r),u.get(h)&&s.appendChild(u.get(h));o.appendChild(s)}f.appendChild(o)}n.$slider.html(f);n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}};t.prototype.checkResponsive=function(t,i){var f,u,e,r=this,o=!1,s=r.$slider.width(),h=window.innerWidth||n(window).width();if("window"===r.respondTo?e=h:"slider"===r.respondTo?e=s:"min"===r.respondTo&&(e=Math.min(h,s)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){u=null;for(f in r.breakpoints)r.breakpoints.hasOwnProperty(f)&&(r.originalSettings.mobileFirst===!1?e<r.breakpoints[f]&&(u=r.breakpoints[f]):e>r.breakpoints[f]&&(u=r.breakpoints[f]));null!==u?null!==r.activeBreakpoint?(u!==r.activeBreakpoint||i)&&(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=u);t||o===!1||r.$slider.trigger("breakpoint",[r,o])}};t.prototype.changeSlide=function(t,i){var f,e,o,r=this,u=n(t.target),s;switch(u.is("a")&&t.preventDefault(),u.is("li")||(u=u.closest("li")),o=r.slideCount%r.options.slidesToScroll!=0,f=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":e=0===f?r.options.slidesToScroll:r.options.slidesToShow-f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-e,!1,i);break;case"next":e=0===f?r.options.slidesToScroll:f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+e,!1,i);break;case"index":s=0===t.data.index?0:t.data.index||u.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,i);u.children().trigger("focus");break;default:return}};t.prototype.checkNavigable=function(n){var t,i,u=this,r;if(t=u.getNavigableIndexes(),i=0,n>t[t.length-1])n=t[t.length-1];else for(r in t){if(n<t[r]){n=i;break}i=t[r]}return n};t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(n("li",t.$dots).off("click.slick",t.changeSlide),t.options.pauseOnDotsHover===!0&&t.options.autoplay===!0&&n("li",t.$dots).off("mouseenter.slick",n.proxy(t.setPaused,t,!0)).off("mouseleave.slick",n.proxy(t.setPaused,t,!1)));t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide));t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler);t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler);t.$list.off("touchend.slick mouseup.slick",t.swipeHandler);t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler);t.$list.off("click.slick",t.clickHandler);n(document).off(t.visibilityChange,t.visibility);t.$list.off("mouseenter.slick",n.proxy(t.setPaused,t,!0));t.$list.off("mouseleave.slick",n.proxy(t.setPaused,t,!1));t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().off("click.slick",t.selectHandler);n(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange);n(window).off("resize.slick.slick-"+t.instanceUid,t.resize);n("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault);n(window).off("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.cleanUpRows=function(){var n,t=this;t.options.rows>1&&(n=t.$slides.children().children(),n.removeAttr("style"),t.$slider.html(n))};t.prototype.clickHandler=function(n){var t=this;t.shouldClick===!1&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(t){var i=this;i.autoPlayClear();i.touchObject={};i.cleanUpEvents();n(".slick-cloned",i.$slider).detach();i.$dots&&i.$dots.remove();i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove());i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove());i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides));i.cleanUpRows();i.$slider.removeClass("slick-slider");i.$slider.removeClass("slick-initialized");i.unslicked=!0;t||i.$slider.trigger("destroy",[i])};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;i.cssTransitions===!1?(i.$slides.eq(n).css({zIndex:i.options.zIndex}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.fadeSlideOut=function(n){var t=this;t.cssTransitions===!1?t.$slides.eq(n).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(n),t.$slides.eq(n).css({opacity:0,zIndex:t.options.zIndex-2}))};t.prototype.filterSlides=t.prototype.slickFilter=function(n){var t=this;null!==n&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){var n=this;return n.currentSlide};t.prototype.getDotCount=function(){var n=this,t=0,i=0,r=0;if(n.options.infinite===!0)for(;t<n.slideCount;)++r,t=i+n.options.slidesToScroll,i+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else if(n.options.centerMode===!0)r=n.slideCount;else for(;t<n.slideCount;)++r,t=i+n.options.slidesToScroll,i+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return r-1};t.prototype.getLeft=function(n){var f,r,i,t=this,u=0;return t.slideOffset=0,r=t.$slides.first().outerHeight(!0),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,u=r*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(n-t.slideCount))*r*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*r*-1))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=t.options.vertical===!1?n*t.slideWidth*-1+t.slideOffset:n*r*-1+u,t.options.variableWidth===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=t.options.rtl===!0?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t.options.centerMode===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=t.options.rtl===!0?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,f+=(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getOption=t.prototype.slickGetOption=function(n){var t=this;return t.options[n]};t.prototype.getNavigableIndexes=function(){var i,n=this,t=0,r=0,u=[];for(n.options.infinite===!1?i=n.slideCount:(t=-1*n.options.slidesToScroll,r=-1*n.options.slidesToScroll,i=2*n.slideCount);i>t;)u.push(t),t=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return u};t.prototype.getSlick=function(){return this};t.prototype.getSlideCount=function(){var u,i,r,t=this;return r=t.options.centerMode===!0?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,t.options.swipeToSlide===!0?(t.$slideTrack.find(".slick-slide").each(function(u,f){if(f.offsetLeft-r+n(f).outerWidth()/2>-1*t.swipeLeft)return i=f,!1}),u=Math.abs(n(i).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll};t.prototype.goTo=t.prototype.slickGoTo=function(n,t){var i=this;i.changeSlide({data:{message:"index",index:parseInt(n)}},t)};t.prototype.init=function(t){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots());t&&i.$slider.trigger("init",[i]);i.options.accessibility===!0&&i.initADA()};t.prototype.initArrowEvents=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.on("click.slick",{message:"previous"},n.changeSlide),n.$nextArrow.on("click.slick",{message:"next"},n.changeSlide))};t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide);t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&t.options.autoplay===!0&&n("li",t.$dots).on("mouseenter.slick",n.proxy(t.setPaused,t,!0)).on("mouseleave.slick",n.proxy(t.setPaused,t,!1))};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);n(document).on(t.visibilityChange,n.proxy(t.visibility,t));t.$list.on("mouseenter.slick",n.proxy(t.setPaused,t,!0));t.$list.on("mouseleave.slick",n.proxy(t.setPaused,t,!1));t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,n.proxy(t.orientationChange,t));n(window).on("resize.slick.slick-"+t.instanceUid,n.proxy(t.resize,t));n("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault);n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.show();n.options.autoplay===!0&&n.autoPlay()};t.prototype.keyHandler=function(n){var t=this;n.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===n.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:"previous"}}):39===n.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:"next"}}))};t.prototype.lazyLoad=function(){function f(t){n("img[data-lazy]",t).each(function(){var t=n(this),i=n(this).attr("data-lazy"),r=document.createElement("img");r.onload=function(){t.animate({opacity:0},100,function(){t.attr("src",i).animate({opacity:1},200,function(){t.removeAttr("data-lazy").removeClass("slick-loading")})})};r.src=i})}var e,r,i,u,t=this;t.options.centerMode===!0?t.options.infinite===!0?(i=t.currentSlide+(t.options.slidesToShow/2+1),u=i+t.options.slidesToShow+2):(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),u=2+(t.options.slidesToShow/2+1)+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,u=i+t.options.slidesToShow,t.options.fade===!0&&(i>0&&i--,u<=t.slideCount&&u++));e=t.$slider.find(".slick-slide").slice(i,u);f(e);t.slideCount<=t.options.slidesToShow?(r=t.$slider.find(".slick-slide"),f(r)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),f(r)):0===t.currentSlide&&(r=t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow),f(r))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();"progressive"===n.options.lazyLoad&&n.progressiveLazyLoad()};t.prototype.next=t.prototype.slickNext=function(){var n=this;n.changeSlide({data:{message:"next"}})};t.prototype.orientationChange=function(){var n=this;n.checkResponsive();n.setPosition()};t.prototype.pause=t.prototype.slickPause=function(){var n=this;n.autoPlayClear();n.paused=!0};t.prototype.play=t.prototype.slickPlay=function(){var n=this;n.paused=!1;n.autoPlay()};t.prototype.postSlide=function(n){var t=this;t.$slider.trigger("afterChange",[t,n]);t.animating=!1;t.setPosition();t.swipeLeft=null;t.options.autoplay===!0&&t.paused===!1&&t.autoPlay();t.options.accessibility===!0&&t.initADA()};t.prototype.prev=t.prototype.slickPrev=function(){var n=this;n.changeSlide({data:{message:"previous"}})};t.prototype.preventDefault=function(n){n.preventDefault()};t.prototype.progressiveLazyLoad=function(){var r,t,i=this;r=n("img[data-lazy]",i.$slider).length;r>0&&(t=n("img[data-lazy]",i.$slider).first(),t.attr("src",null),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load(function(){t.removeAttr("data-lazy");i.progressiveLazyLoad();i.options.adaptiveHeight===!0&&i.setPosition()}).error(function(){t.removeAttr("data-lazy");i.progressiveLazyLoad()}))};t.prototype.refresh=function(t){var r,u,i=this;u=i.slideCount-i.options.slidesToShow;i.options.infinite||(i.slideCount<=i.options.slidesToShow?i.currentSlide=0:i.currentSlide>u&&(i.currentSlide=u));r=i.currentSlide;i.destroy(!0);n.extend(i,i.initials,{currentSlide:r});i.init();t||i.changeSlide({data:{message:"index",index:r}},!1)};t.prototype.registerBreakpoints=function(){var u,f,i,t=this,r=t.options.responsive||null;if("array"===n.type(r)&&r.length){t.respondTo=t.options.respondTo||"window";for(u in r)if(i=t.breakpoints.length-1,f=r[u].breakpoint,r.hasOwnProperty(u)){for(;i>=0;)t.breakpoints[i]&&t.breakpoints[i]===f&&t.breakpoints.splice(i,1),i--;t.breakpoints.push(f);t.breakpointSettings[f]=r[u].settings}t.breakpoints.sort(function(n,i){return t.options.mobileFirst?n-i:i-n})}};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0);t.registerBreakpoints();t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.checkResponsive(!1,!0);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);t.setSlideClasses(0);t.setPosition();t.$slider.trigger("reInit",[t]);t.options.autoplay===!0&&t.focusHandler()};t.prototype.resize=function(){var t=this;n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.unslicked||t.setPosition()},50))};t.prototype.removeSlide=t.prototype.slickRemove=function(n,t,i){var r=this;return"boolean"==typeof n?(t=n,n=t===!0?0:r.slideCount-1):n=t===!0?--n:n,r.slideCount<1||0>n||n>r.slideCount-1?!1:(r.unload(),i===!0?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove(),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slidesCache=r.$slides,void r.reinit())};t.prototype.setCSS=function(n){var r,u,t=this,i={};t.options.rtl===!0&&(n=-n);r="left"==t.positionProp?Math.ceil(n)+"px":"0px";u="top"==t.positionProp?Math.ceil(n)+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;n.options.vertical===!1?n.options.centerMode===!0&&n.$list.css({padding:"0px "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),n.options.centerMode===!0&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();n.options.vertical===!1&&n.options.variableWidth===!1?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):n.options.variableWidth===!0?n.$slideTrack.width(5e3*n.slideCount):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();n.options.variableWidth===!1&&n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var i,t=this;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;t.options.rtl===!0?n(u).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})};t.prototype.setHeight=function(){var n=this,t;1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setOption=t.prototype.slickSetOption=function(t,i,r){var f,e,u=this;if("responsive"===t&&"array"===n.type(i))for(e in i)if("array"!==n.type(u.options.responsive))u.options.responsive=[i[e]];else{for(f=u.options.responsive.length-1;f>=0;)u.options.responsive[f].breakpoint===i[e].breakpoint&&u.options.responsive.splice(f,1),f--;u.options.responsive.push(i[e])}else u.options[t]=i;r===!0&&(u.unload(),u.reinit())};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();n.options.fade===!1?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();n.$slider.trigger("setPosition",[n])};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=n.options.vertical===!0?"top":"left";"top"===n.positionProp?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&n.options.useCSS===!0&&(n.cssTransitions=!0);n.options.fade&&("number"==typeof n.options.zIndex?n.options.zIndex<3&&(n.options.zIndex=3):n.options.zIndex=n.defaults.zIndex);void 0!==t.OTransform&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.MozTransform&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(n.animType=!1));void 0!==t.webkitTransform&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.msTransform&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",void 0===t.msTransform&&(n.animType=!1));void 0!==t.transform&&n.animType!==!1&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.options.useTransform&&null!==n.animType&&n.animType!==!1};t.prototype.setSlideClasses=function(n){var u,i,r,f,t=this;i=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");t.$slides.eq(n).addClass("slick-current");t.options.centerMode===!0?(u=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active").attr("aria-hidden","false"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active").attr("aria-hidden","false")),0===n?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=t.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,r=t.options.infinite===!0?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"===t.options.lazyLoad&&t.lazyLoad()};t.prototype.setupInfinite=function(){var i,r,u,t=this;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;u>i;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.setPaused=function(n){var t=this;t.options.autoplay===!0&&t.options.pauseOnHover===!0&&(t.paused=n,n?t.autoPlayClear():t.autoPlay())};t.prototype.selectHandler=function(t){var i=this,u=n(t.target).is(".slick-slide")?n(t.target):n(t.target).parents(".slick-slide"),r=parseInt(u.attr("data-slick-index"));return r||(r=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(r),void i.asNavFor(r)):void i.slideHandler(r)};t.prototype.slideHandler=function(n,t,i){var u,f,o,e,s=null,r=this;return t=t||!1,r.animating===!0&&r.options.waitForAnimate===!0||r.options.fade===!0&&r.currentSlide===n||r.slideCount<=r.options.slidesToShow?void 0:(t===!1&&r.asNavFor(n),u=n,s=r.getLeft(u),e=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?e:r.swipeLeft,r.options.infinite===!1&&r.options.centerMode===!1&&(0>n||n>r.getDotCount()*r.options.slidesToScroll)?void(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u))):r.options.infinite===!1&&r.options.centerMode===!0&&(0>n||n>r.slideCount-r.options.slidesToScroll)?void(r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u))):(r.options.autoplay===!0&&clearInterval(r.autoPlayTimer),f=0>u?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:u-r.slideCount:u,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,f]),o=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),r.options.fade===!0?(i!==!0?(r.fadeSlideOut(o),r.fadeSlide(f,function(){r.postSlide(f)})):r.postSlide(f),void r.animateHeight()):void(i!==!0?r.animateSlide(s,function(){r.postSlide(f)}):r.postSlide(f))))};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(180*u/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0?t.options.rtl===!1?"left":"right":360>=n&&n>=315?t.options.rtl===!1?"left":"right":n>=135&&225>=n?t.options.rtl===!1?"right":"left":t.options.verticalSwiping===!0?n>=35&&135>=n?"left":"right":"vertical"};t.prototype.swipeEnd=function(){var t,n=this;if(n.dragging=!1,n.shouldClick=n.touchObject.swipeLength>10?!1:!0,void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe)switch(n.swipeDirection()){case"left":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount();n.slideHandler(t);n.currentDirection=0;n.touchObject={};n.$slider.trigger("swipe",[n,"left"]);break;case"right":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount();n.slideHandler(t);n.currentDirection=1;n.touchObject={};n.$slider.trigger("swipe",[n,"right"])}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1||t.options.draggable===!1&&-1!==n.type.indexOf("mouse")))switch(t.touchObject.fingerCount=n.originalEvent&&void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};t.prototype.swipeMove=function(n){var f,e,r,u,i,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,!t.dragging||i&&1!==i.length?!1:(f=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),t.options.verticalSwiping===!0&&(t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2)))),e=t.swipeDirection(),"vertical"!==e?(void 0!==n.originalEvent&&t.touchObject.swipeLength>4&&n.preventDefault(),u=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.options.verticalSwiping===!0&&(u=t.touchObject.curY>t.touchObject.startY?1:-1),r=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,t.options.infinite===!1&&(0===t.currentSlide&&"right"===e||t.currentSlide>=t.getDotCount()&&"left"===e)&&(r=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.swipeLeft=t.options.vertical===!1?f+r*u:f+r*(t.$list.height()/t.listWidth)*u,t.options.verticalSwiping===!0&&(t.swipeLeft=f+r*u),t.options.fade===!0||t.options.touchMove===!1?!1:t.animating===!0?(t.swipeLeft=null,!1):void t.setCSS(t.swipeLeft)):void 0)};t.prototype.swipeStart=function(n){var i,t=this;return 1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY,void(t.dragging=!0))};t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var n=this;null!==n.$slidesCache&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove();t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};t.prototype.unslick=function(n){var t=this;t.$slider.trigger("unslick",[t,n]);t.destroy()};t.prototype.updateArrows=function(){var t,n=this;t=Math.floor(n.options.slidesToShow/2);n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&!n.options.infinite&&(n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===n.currentSlide?(n.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&n.options.centerMode===!1?(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-1&&n.options.centerMode===!0&&(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};t.prototype.updateDots=function(){var n=this;null!==n.$dots&&(n.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))};t.prototype.visibility=function(){var n=this;document[n.hidden]?(n.paused=!0,n.autoPlayClear()):n.options.autoplay===!0&&(n.paused=!1,n.autoPlay())};t.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"});t.$slideTrack.attr("role","listbox");t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){n(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+i})});null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(i){n(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+i,id:"slick-slide"+t.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar");t.activateADA()};t.prototype.activateADA=function(){var n=this;n.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};t.prototype.focusHandler=function(){var t=this;t.$slider.on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var r=n(this);setTimeout(function(){t.isPlay&&(r.is(":focus")?(t.autoPlayClear(),t.paused=!0):(t.paused=!1,t.autoPlay()))},0)})};n.fn.slick=function(){for(var u,n=this,r=arguments[0],f=Array.prototype.slice.call(arguments,1),e=n.length,i=0;e>i;i++)if("object"==(typeof r=="undefined"?"undefined":_typeof(r))||"undefined"==typeof r?n[i].slick=new t(n[i],r):u=n[i].slick[r].apply(n[i].slick,f),"undefined"!=typeof u)return u;return n}}),function(n,t){var f={Identity:function(n){return n},True:function(){return!0},Blank:function(){}},e={Boolean:_typeof(!0),Number:_typeof(0),String:_typeof(""),Object:_typeof({}),Undefined:typeof t=="undefined"?"undefined":_typeof(t),Function:_typeof(function(){})},p={"":f.Identity},r={createLambda:function(n){var t,l,i,a,u,o,r,s,h,v,c;if(n==null)return f.Identity;if((typeof n=="undefined"?"undefined":_typeof(n))===e.String){if(t=p[n],t!=null)return t;if(n.indexOf("=>")===-1){for(l=new RegExp("[$]+","g"),i=0;(a=l.exec(n))!=null;)u=a[0].length,u>i&&(i=u);for(o=[],r=1;r<=i;r++){for(s="",h=0;h<r;h++)s+="$";o.push(s)}return v=Array.prototype.join.call(o,","),t=new Function(v,"return "+n),p[n]=t,t}return c=n.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/),t=new Function(c[1],"return "+c[2]),p[n]=t,t}return n},isIEnumerable:function(n){if((typeof Enumerator=="undefined"?"undefined":_typeof(Enumerator))!==e.Undefined)try{return new Enumerator(n),!0}catch(t){}return!1},defineProperty:Object.defineProperties!=null?function(n,t,i){Object.defineProperty(n,t,{enumerable:!1,configurable:!0,writable:!0,value:i})}:function(n,t,i){n[t]=i},compare:function(n,t){return n===t?0:n>t?1:-1},dispose:function(n){n!=null&&n.dispose()}},l={Before:0,Running:1,After:2},u=function(n,t,i){var u=new b,r=l.Before;this.current=u.current;this.moveNext=function(){try{switch(r){case l.Before:r=l.Running;n();case l.Running:return t.apply(u)?!0:(this.dispose(),!1);case l.After:return!1}}catch(i){this.dispose();throw i;}};this.dispose=function(){if(r==l.Running)try{i()}finally{r=l.After}}},b=function(){var n=null;this.current=function(){return n};this.yieldReturn=function(t){return n=t,!0};this.yieldBreak=function(){return!1}},i=function(n){this.getEnumerator=n},s,a,y,o,h,c;i.Utils={};i.Utils.createLambda=function(n){return r.createLambda(n)};i.Utils.createEnumerable=function(n){return new i(n)};i.Utils.createEnumerator=function(n,t,i){return new u(n,t,i)};i.Utils.extendTo=function(n){var u=n.prototype,e,t,f;n===Array?(e=o.prototype,r.defineProperty(u,"getSource",function(){return this})):(e=i.prototype,r.defineProperty(u,"getEnumerator",function(){return i.from(this).getEnumerator()}));for(t in e)(f=e[t],u[t]!=f)&&(u[t]==null||(t=t+"ByLinq",u[t]!=f))&&f instanceof Function&&r.defineProperty(u,t,f)};i.choice=function(){var n=arguments;return new i(function(){return new u(function(){n=n[0]instanceof Array?n[0]:n[0].getEnumerator!=null?n[0].toArray():n},function(){return this.yieldReturn(n[Math.floor(Math.random()*n.length)])},f.Blank)})};i.cycle=function(){var n=arguments;return new i(function(){var t=0;return new u(function(){n=n[0]instanceof Array?n[0]:n[0].getEnumerator!=null?n[0].toArray():n},function(){return t>=n.length&&(t=0),this.yieldReturn(n[t++])},f.Blank)})};i.empty=function(){return new i(function(){return new u(f.Blank,function(){return!1},f.Blank)})};i.from=function(n){if(n==null)return i.empty();if(n instanceof i)return n;if((typeof n=="undefined"?"undefined":_typeof(n))==e.Number||(typeof n=="undefined"?"undefined":_typeof(n))==e.Boolean)return i.repeat(n,1);if((typeof n=="undefined"?"undefined":_typeof(n))==e.String)return new i(function(){var t=0;return new u(f.Blank,function(){return t<n.length?this.yieldReturn(n.charAt(t++)):!1},f.Blank)});if((typeof n=="undefined"?"undefined":_typeof(n))!=e.Function){if(_typeof(n.length)==e.Number)return new o(n);if(!(n instanceof Object)&&r.isIEnumerable(n))return new i(function(){var i=!0,t;return new u(function(){t=new Enumerator(n)},function(){return i?i=!1:t.moveNext(),t.atEnd()?!1:this.yieldReturn(t.item())},f.Blank)});if((typeof Windows=="undefined"?"undefined":_typeof(Windows))===e.Object&&_typeof(n.first)===e.Function)return new i(function(){var i=!0,t;return new u(function(){t=n.first()},function(){return i?i=!1:t.moveNext(),t.hasCurrent?this.yieldReturn(t.current):this.yieldBreak()},f.Blank)})}return new i(function(){var t=[],i=0;return new u(function(){var i,r;for(i in n)r=n[i],r instanceof Function||!Object.prototype.hasOwnProperty.call(n,i)||t.push({key:i,value:r})},function(){return i<t.length?this.yieldReturn(t[i++]):!1},f.Blank)})};i.make=function(n){return i.repeat(n,1)};i.matches=function(n,t,r){return r==null&&(r=""),t instanceof RegExp&&(r+=t.ignoreCase?"i":"",r+=t.multiline?"m":"",t=t.source),r.indexOf("g")===-1&&(r+="g"),new i(function(){var i;return new u(function(){i=new RegExp(t,r)},function(){var t=i.exec(n);return t?this.yieldReturn(t):!1},f.Blank)})};i.range=function(n,t,r){return r==null&&(r=1),new i(function(){var i,e=0;return new u(function(){i=n-r},function(){return e++<t?this.yieldReturn(i+=r):this.yieldBreak()},f.Blank)})};i.rangeDown=function(n,t,r){return r==null&&(r=1),new i(function(){var i,e=0;return new u(function(){i=n+r},function(){return e++<t?this.yieldReturn(i-=r):this.yieldBreak()},f.Blank)})};i.rangeTo=function(n,t,r){return r==null&&(r=1),n<t?new i(function(){var i;return new u(function(){i=n-r},function(){var n=i+=r;return n<=t?this.yieldReturn(n):this.yieldBreak()},f.Blank)}):new i(function(){var i;return new u(function(){i=n+r},function(){var n=i-=r;return n>=t?this.yieldReturn(n):this.yieldBreak()},f.Blank)})};i.repeat=function(n,t){return t!=null?i.repeat(n).take(t):new i(function(){return new u(f.Blank,function(){return this.yieldReturn(n)},f.Blank)})};i.repeatWithFinalize=function(n,t){return n=r.createLambda(n),t=r.createLambda(t),new i(function(){var i;return new u(function(){i=n()},function(){return this.yieldReturn(i)},function(){i!=null&&(t(i),i=null)})})};i.generate=function(n,t){return t!=null?i.generate(n).take(t):(n=r.createLambda(n),new i(function(){return new u(f.Blank,function(){return this.yieldReturn(n())},f.Blank)}))};i.toInfinity=function(n,t){return n==null&&(n=0),t==null&&(t=1),new i(function(){var i;return new u(function(){i=n-t},function(){return this.yieldReturn(i+=t)},f.Blank)})};i.toNegativeInfinity=function(n,t){return n==null&&(n=0),t==null&&(t=1),new i(function(){var i;return new u(function(){i=n+t},function(){return this.yieldReturn(i-=t)},f.Blank)})};i.unfold=function(n,t){return t=r.createLambda(t),new i(function(){var r=!0,i;return new u(f.Blank,function(){return r?(r=!1,i=n,this.yieldReturn(i)):(i=t(i),this.yieldReturn(i))},f.Blank)})};i.defer=function(n){return new i(function(){var t;return new u(function(){t=i.from(n()).getEnumerator()},function(){return t.moveNext()?this.yieldReturn(t.current()):this.yieldBreak()},function(){r.dispose(t)})})};i.prototype.traverseBreadthFirst=function(n,t){var f=this;return n=r.createLambda(n),t=r.createLambda(t),new i(function(){var e,s=0,o=[];return new u(function(){e=f.getEnumerator()},function(){for(;;){if(e.moveNext())return o.push(e.current()),this.yieldReturn(t(e.current(),s));var u=i.from(o).selectMany(function(t){return n(t)});if(u.any())s++,o=[],r.dispose(e),e=u.getEnumerator();else return!1}},function(){r.dispose(e)})})};i.prototype.traverseDepthFirst=function(n,t){var f=this;return n=r.createLambda(n),t=r.createLambda(t),new i(function(){var o=[],e;return new u(function(){e=f.getEnumerator()},function(){for(;;){if(e.moveNext()){var u=t(e.current(),o.length);return o.push(e),e=i.from(n(e.current())).getEnumerator(),this.yieldReturn(u)}if(o.length<=0)return!1;r.dispose(e);e=o.pop()}},function(){try{r.dispose(e)}finally{i.from(o).forEach(function(n){n.dispose()})}})})};i.prototype.flatten=function(){var n=this;return new i(function(){var e,t=null;return new u(function(){e=n.getEnumerator()},function(){for(;;){if(t!=null){if(t.moveNext())return this.yieldReturn(t.current());t=null}if(e.moveNext())if(e.current()instanceof Array){r.dispose(t);t=i.from(e.current()).selectMany(f.Identity).flatten().getEnumerator();continue}else return this.yieldReturn(e.current());return!1}},function(){try{r.dispose(e)}finally{r.dispose(t)}})})};i.prototype.pairwise=function(n){var t=this;return n=r.createLambda(n),new i(function(){var i;return new u(function(){i=t.getEnumerator();i.moveNext()},function(){var t=i.current();return i.moveNext()?this.yieldReturn(n(t,i.current())):!1},function(){r.dispose(i)})})};i.prototype.scan=function(n,t){var f,e;return t==null?(t=r.createLambda(n),f=!1):(t=r.createLambda(t),f=!0),e=this,new i(function(){var i,o,s=!0;return new u(function(){i=e.getEnumerator()},function(){if(s){if(s=!1,f)return this.yieldReturn(o=n);if(i.moveNext())return this.yieldReturn(o=i.current())}return i.moveNext()?this.yieldReturn(o=t(o,i.current())):!1},function(){r.dispose(i)})})};i.prototype.select=function(n){if(n=r.createLambda(n),n.length<=1)return new c(this,null,n);var t=this;return new i(function(){var i,f=0;return new u(function(){i=t.getEnumerator()},function(){return i.moveNext()?this.yieldReturn(n(i.current(),f++)):!1},function(){r.dispose(i)})})};i.prototype.selectMany=function(n,f){var e=this;return n=r.createLambda(n),f==null&&(f=function(n,t){return t}),f=r.createLambda(f),new i(function(){var s,o=t,h=0;return new u(function(){s=e.getEnumerator()},function(){if(o===t&&!s.moveNext())return!1;do{if(o==null){var u=n(s.current(),h++);o=i.from(u).getEnumerator()}if(o.moveNext())return this.yieldReturn(f(s.current(),o.current()));r.dispose(o);o=null}while(s.moveNext());return!1},function(){try{r.dispose(s)}finally{r.dispose(o)}})})};i.prototype.where=function(n){if(n=r.createLambda(n),n.length<=1)return new h(this,n);var t=this;return new i(function(){var i,f=0;return new u(function(){i=t.getEnumerator()},function(){while(i.moveNext())if(n(i.current(),f++))return this.yieldReturn(i.current());return!1},function(){r.dispose(i)})})};i.prototype.choose=function(n){n=r.createLambda(n);var t=this;return new i(function(){var i,f=0;return new u(function(){i=t.getEnumerator()},function(){while(i.moveNext()){var t=n(i.current(),f++);if(t!=null)return this.yieldReturn(t)}return this.yieldBreak()},function(){r.dispose(i)})})};i.prototype.ofType=function(n){var t;switch(n){case Number:t=e.Number;break;case String:t=e.String;break;case Boolean:t=e.Boolean;break;case Function:t=e.Function;break;default:t=null}return t===null?this.where(function(t){return t instanceof n}):this.where(function(n){return(typeof n=="undefined"?"undefined":_typeof(n))===t})};i.prototype.zip=function(){var e=arguments,n=r.createLambda(arguments[arguments.length-1]),t=this,f;return arguments.length==2?(f=arguments[0],new i(function(){var e,o,s=0;return new u(function(){e=t.getEnumerator();o=i.from(f).getEnumerator()},function(){return e.moveNext()&&o.moveNext()?this.yieldReturn(n(e.current(),o.current(),s++)):!1},function(){try{r.dispose(e)}finally{r.dispose(o)}})})):new i(function(){var f,o=0;return new u(function(){var n=i.make(t).concat(i.from(e).takeExceptLast().select(i.from)).select(function(n){return n.getEnumerator()}).toArray();f=i.from(n)},function(){if(f.all(function(n){return n.moveNext()})){var t=f.select(function(n){return n.current()}).toArray();return t.push(o++),this.yieldReturn(n.apply(null,t))}return this.yieldBreak()},function(){i.from(f).forEach(r.dispose)})})};i.prototype.merge=function(){var n=arguments,t=this;return new i(function(){var f,e=-1;return new u(function(){f=i.make(t).concat(i.from(n).select(i.from)).select(function(n){return n.getEnumerator()}).toArray()},function(){while(f.length>0){e=e>=f.length-1?0:e+1;var n=f[e];if(n.moveNext())return this.yieldReturn(n.current());n.dispose();f.splice(e--,1)}return this.yieldBreak()},function(){i.from(f).forEach(r.dispose)})})};i.prototype.join=function(n,e,o,s,h){e=r.createLambda(e);o=r.createLambda(o);s=r.createLambda(s);h=r.createLambda(h);var c=this;return new i(function(){var l,v,a=null,y=0;return new u(function(){l=c.getEnumerator();v=i.from(n).toLookup(o,f.Identity,h)},function(){for(var n,i;;){if(a!=null){if(n=a[y++],n!==t)return this.yieldReturn(s(l.current(),n));n=null;y=0}if(l.moveNext())i=e(l.current()),a=v.get(i).toArray();else return!1}},function(){r.dispose(l)})})};i.prototype.groupJoin=function(n,t,e,o,s){t=r.createLambda(t);e=r.createLambda(e);o=r.createLambda(o);s=r.createLambda(s);var h=this;return new i(function(){var c=h.getEnumerator(),l=null;return new u(function(){c=h.getEnumerator();l=i.from(n).toLookup(e,f.Identity,s)},function(){if(c.moveNext()){var n=l.get(t(c.current()));return this.yieldReturn(o(c.current(),n))}return!1},function(){r.dispose(c)})})};i.prototype.all=function(n){n=r.createLambda(n);var t=!0;return this.forEach(function(i){if(!n(i))return t=!1,!1}),t};i.prototype.any=function(n){n=r.createLambda(n);var t=this.getEnumerator();try{if(arguments.length==0)return t.moveNext();while(t.moveNext())if(n(t.current()))return!0;return!1}finally{r.dispose(t)}};i.prototype.isEmpty=function(){return!this.any()};i.prototype.concat=function(){var n=this,t,f;return arguments.length==1?(t=arguments[0],new i(function(){var e,f;return new u(function(){e=n.getEnumerator()},function(){if(f==null){if(e.moveNext())return this.yieldReturn(e.current());f=i.from(t).getEnumerator()}return f.moveNext()?this.yieldReturn(f.current()):!1},function(){try{r.dispose(e)}finally{r.dispose(f)}})})):(f=arguments,new i(function(){var t;return new u(function(){t=i.make(n).concat(i.from(f).select(i.from)).select(function(n){return n.getEnumerator()}).toArray()},function(){while(t.length>0){var n=t[0];if(n.moveNext())return this.yieldReturn(n.current());n.dispose();t.splice(0,1)}return this.yieldBreak()},function(){i.from(t).forEach(r.dispose)})}))};i.prototype.insert=function(n,t){var f=this;return new i(function(){var o,e,s=0,h=!1;return new u(function(){o=f.getEnumerator();e=i.from(t).getEnumerator()},function(){return s==n&&e.moveNext()?(h=!0,this.yieldReturn(e.current())):o.moveNext()?(s++,this.yieldReturn(o.current())):!h&&e.moveNext()?this.yieldReturn(e.current()):!1},function(){try{r.dispose(o)}finally{r.dispose(e)}})})};i.prototype.alternate=function(n){var t=this;return new i(function(){var f,e,s,o;return new u(function(){s=n instanceof Array||n.getEnumerator!=null?i.from(i.from(n).toArray()):i.make(n);e=t.getEnumerator();e.moveNext()&&(f=e.current())},function(){for(;;){if(o!=null){if(o.moveNext())return this.yieldReturn(o.current());o=null}if(f==null&&e.moveNext()){f=e.current();o=s.getEnumerator();continue}else if(f!=null){var n=f;return f=null,this.yieldReturn(n)}return this.yieldBreak()}},function(){try{r.dispose(e)}finally{r.dispose(o)}})})};i.prototype.contains=function(n,t){t=r.createLambda(t);var i=this.getEnumerator();try{while(i.moveNext())if(t(i.current())===n)return!0;return!1}finally{r.dispose(i)}};i.prototype.defaultIfEmpty=function(n){var f=this;return n===t&&(n=null),new i(function(){var t,i=!0;return new u(function(){t=f.getEnumerator()},function(){return t.moveNext()?(i=!1,this.yieldReturn(t.current())):i?(i=!1,this.yieldReturn(n)):!1},function(){r.dispose(t)})})};i.prototype.distinct=function(n){return this.except(i.empty(),n)};i.prototype.distinctUntilChanged=function(n){n=r.createLambda(n);var t=this;return new i(function(){var i,f,e;return new u(function(){i=t.getEnumerator()},function(){while(i.moveNext()){var t=n(i.current());if(e)return e=!1,f=t,this.yieldReturn(i.current());if(f!==t)return f=t,this.yieldReturn(i.current())}return this.yieldBreak()},function(){r.dispose(i)})})};i.prototype.except=function(n,t){t=r.createLambda(t);var f=this;return new i(function(){var e,o;return new u(function(){e=f.getEnumerator();o=new v(t);i.from(n).forEach(function(n){o.add(n)})},function(){while(e.moveNext()){var n=e.current();if(!o.contains(n))return o.add(n),this.yieldReturn(n)}return!1},function(){r.dispose(e)})})};i.prototype.intersect=function(n,t){t=r.createLambda(t);var f=this;return new i(function(){var e,o,s;return new u(function(){e=f.getEnumerator();o=new v(t);i.from(n).forEach(function(n){o.add(n)});s=new v(t)},function(){while(e.moveNext()){var n=e.current();if(!s.contains(n)&&o.contains(n))return s.add(n),this.yieldReturn(n)}return!1},function(){r.dispose(e)})})};i.prototype.sequenceEqual=function(n,t){var f,u;t=r.createLambda(t);f=this.getEnumerator();try{u=i.from(n).getEnumerator();try{while(f.moveNext())if(!u.moveNext()||t(f.current())!==t(u.current()))return!1;return u.moveNext()?!1:!0}finally{r.dispose(u)}}finally{r.dispose(f)}};i.prototype.union=function(n,f){f=r.createLambda(f);var e=this;return new i(function(){var h,o,s;return new u(function(){h=e.getEnumerator();s=new v(f)},function(){var r;if(o===t){while(h.moveNext())if(r=h.current(),!s.contains(r))return s.add(r),this.yieldReturn(r);o=i.from(n).getEnumerator()}while(o.moveNext())if(r=o.current(),!s.contains(r))return s.add(r),this.yieldReturn(r);return!1},function(){try{r.dispose(h)}finally{r.dispose(o)}})})};i.prototype.orderBy=function(n){return new s(this,n,!1)};i.prototype.orderByDescending=function(n){return new s(this,n,!0)};i.prototype.reverse=function(){var n=this;return new i(function(){var t,i;return new u(function(){t=n.toArray();i=t.length},function(){return i>0?this.yieldReturn(t[--i]):!1},f.Blank)})};i.prototype.shuffle=function(){var n=this;return new i(function(){var t;return new u(function(){t=n.toArray()},function(){if(t.length>0){var n=Math.floor(Math.random()*t.length);return this.yieldReturn(t.splice(n,1)[0])}return!1},f.Blank)})};i.prototype.weightedSample=function(n){n=r.createLambda(n);var t=this;return new i(function(){var i,r=0;return new u(function(){i=t.choose(function(t){var i=n(t);return i<=0?null:(r+=i,{value:t,bound:r})}).toArray()},function(){var n;if(i.length>0){for(var f=Math.floor(Math.random()*r)+1,u=-1,t=i.length;t-u>1;)n=Math.floor((u+t)/2),i[n].bound>=f?t=n:u=n;return this.yieldReturn(i[t].value)}return this.yieldBreak()},f.Blank)})};i.prototype.groupBy=function(n,t,f,e){var o=this;return n=r.createLambda(n),t=r.createLambda(t),f!=null&&(f=r.createLambda(f)),e=r.createLambda(e),new i(function(){var i;return new u(function(){i=o.toLookup(n,t,e).toEnumerable().getEnumerator()},function(){while(i.moveNext())return f==null?this.yieldReturn(i.current()):this.yieldReturn(f(i.current().key(),i.current()));return!1},function(){r.dispose(i)})})};i.prototype.partitionBy=function(n,t,f,e){var s=this,o;return n=r.createLambda(n),t=r.createLambda(t),e=r.createLambda(e),f==null?(o=!1,f=function(n,t){return new w(n,t)}):(o=!0,f=r.createLambda(f)),new i(function(){var h,l,a,c=[];return new u(function(){h=s.getEnumerator();h.moveNext()&&(l=n(h.current()),a=e(l),c.push(t(h.current())))},function(){for(var r,u;(r=h.moveNext())==!0;)if(a===e(n(h.current())))c.push(t(h.current()));else break;return c.length>0?(u=o?f(l,i.from(c)):f(l,c),r?(l=n(h.current()),a=e(l),c=[t(h.current())]):c=[],this.yieldReturn(u)):!1},function(){r.dispose(h)})})};i.prototype.buffer=function(n){var t=this;return new i(function(){var i;return new u(function(){i=t.getEnumerator()},function(){for(var t=[],r=0;i.moveNext();)if(t.push(i.current()),++r>=n)return this.yieldReturn(t);return t.length>0?this.yieldReturn(t):!1},function(){r.dispose(i)})})};i.prototype.aggregate=function(n,t,i){return i=r.createLambda(i),i(this.scan(n,t,i).last())};i.prototype.average=function(n){n=r.createLambda(n);var t=0,i=0;return this.forEach(function(r){t+=n(r);++i}),t/i};i.prototype.count=function(n){n=n==null?f.True:r.createLambda(n);var t=0;return this.forEach(function(i,r){n(i,r)&&++t}),t};i.prototype.max=function(n){return n==null&&(n=f.Identity),this.select(n).aggregate(function(n,t){return n>t?n:t})};i.prototype.min=function(n){return n==null&&(n=f.Identity),this.select(n).aggregate(function(n,t){return n<t?n:t})};i.prototype.maxBy=function(n){return n=r.createLambda(n),this.aggregate(function(t,i){return n(t)>n(i)?t:i})};i.prototype.minBy=function(n){return n=r.createLambda(n),this.aggregate(function(t,i){return n(t)<n(i)?t:i})};i.prototype.sum=function(n){return n==null&&(n=f.Identity),this.select(n).aggregate(0,function(n,t){return n+t})};i.prototype.elementAt=function(n){var t,i=!1;if(this.forEach(function(r,u){if(u==n)return t=r,i=!0,!1}),!i)throw new Error("index is less than 0 or greater than or equal to the number of elements in source.");return t};i.prototype.elementAtOrDefault=function(n,i){i===t&&(i=null);var r,u=!1;return this.forEach(function(t,i){if(i==n)return r=t,u=!0,!1}),u?r:i};i.prototype.first=function(n){if(n!=null)return this.where(n).first();var t,i=!1;if(this.forEach(function(n){return t=n,i=!0,!1}),!i)throw new Error("first:No element satisfies the condition.");return t};i.prototype.firstOrDefault=function(n,t){if(n){if((typeof n=="undefined"?"undefined":_typeof(n))===e.Function||_typeof(r.createLambda(n))===e.Function)return this.where(n).firstOrDefault(null,t);t=n}t=t||null;var i,u=!1;return this.forEach(function(n){return i=n,u=!0,!1}),u?i:t};i.prototype.last=function(n){if(n!=null)return this.where(n).last();var t,i=!1;if(this.forEach(function(n){i=!0;t=n}),!i)throw new Error("last:No element satisfies the condition.");return t};i.prototype.lastOrDefault=function(n,t){if(n){if((typeof n=="undefined"?"undefined":_typeof(n))===e.Function||_typeof(r.createLambda(n))===e.Function)return this.where(n).lastOrDefault(null,t);t=n}t=t||null;var i,u=!1;return this.forEach(function(n){u=!0;i=n}),u?i:t};i.prototype.single=function(n){if(n!=null)return this.where(n).single();var i,t=!1;if(this.forEach(function(n){if(t)throw new Error("single:sequence contains more than one element.");else t=!0,i=n}),!t)throw new Error("single:No element satisfies the condition.");return i};i.prototype.singleOrDefault=function(n,i){if(i===t&&(i=null),n!=null)return this.where(n).singleOrDefault(null,i);var u,r=!1;return this.forEach(function(n){if(r)throw new Error("single:sequence contains more than one element.");else r=!0,u=n}),r?u:i};i.prototype.skip=function(n){var t=this;return new i(function(){var i,f=0;return new u(function(){for(i=t.getEnumerator();f++<n&&i.moveNext(););},function(){return i.moveNext()?this.yieldReturn(i.current()):!1},function(){r.dispose(i)})})};i.prototype.skipWhile=function(n){n=r.createLambda(n);var t=this;return new i(function(){var i,e=0,f=!1;return new u(function(){i=t.getEnumerator()},function(){while(!f)if(i.moveNext()){if(!n(i.current(),e++))return f=!0,this.yieldReturn(i.current());continue}else return!1;return i.moveNext()?this.yieldReturn(i.current()):!1},function(){r.dispose(i)})})};i.prototype.take=function(n){var t=this;return new i(function(){var i,f=0;return new u(function(){i=t.getEnumerator()},function(){return f++<n&&i.moveNext()?this.yieldReturn(i.current()):!1},function(){r.dispose(i)})})};i.prototype.takeWhile=function(n){n=r.createLambda(n);var t=this;return new i(function(){var i,f=0;return new u(function(){i=t.getEnumerator()},function(){return i.moveNext()&&n(i.current(),f++)?this.yieldReturn(i.current()):!1},function(){r.dispose(i)})})};i.prototype.takeExceptLast=function(n){n==null&&(n=1);var t=this;return new i(function(){if(n<=0)return t.getEnumerator();var i,f=[];return new u(function(){i=t.getEnumerator()},function(){while(i.moveNext()){if(f.length==n)return f.push(i.current()),this.yieldReturn(f.shift());f.push(i.current())}return!1},function(){r.dispose(i)})})};i.prototype.takeFromLast=function(n){if(n<=0||n==null)return i.empty();var t=this;return new i(function(){var o,f,e=[];return new u(function(){o=t.getEnumerator()},function(){while(o.moveNext())e.length==n&&e.shift(),e.push(o.current());return f==null&&(f=i.from(e).getEnumerator()),f.moveNext()?this.yieldReturn(f.current()):!1},function(){r.dispose(f)})})};i.prototype.indexOf=function(n){var t=null;return(typeof n=="undefined"?"undefined":_typeof(n))===e.Function?this.forEach(function(i,r){if(n(i,r))return t=r,!1}):this.forEach(function(i,r){if(i===n)return t=r,!1}),t!==null?t:-1};i.prototype.lastIndexOf=function(n){var t=-1;return(typeof n=="undefined"?"undefined":_typeof(n))===e.Function?this.forEach(function(i,r){n(i,r)&&(t=r)}):this.forEach(function(i,r){i===n&&(t=r)}),t};i.prototype.cast=function(){return this};i.prototype.asEnumerable=function(){return i.from(this)};i.prototype.toArray=function(){var n=[];return this.forEach(function(t){n.push(t)}),n};i.prototype.toLookup=function(n,i,u){n=r.createLambda(n);i=r.createLambda(i);u=r.createLambda(u);var f=new v(u);return this.forEach(function(r){var u=n(r),e=i(r),o=f.get(u);o!==t?o.push(e):f.add(u,[e])}),new k(f)};i.prototype.toObject=function(n,t){n=r.createLambda(n);t=r.createLambda(t);var i={};return this.forEach(function(r){i[n(r)]=t(r)}),i};i.prototype.toDictionary=function(n,t,i){n=r.createLambda(n);t=r.createLambda(t);i=r.createLambda(i);var u=new v(i);return this.forEach(function(i){u.add(n(i),t(i))}),u};i.prototype.toJSONString=function(n,t){if((typeof JSON=="undefined"?"undefined":_typeof(JSON))===e.Undefined||JSON.stringify==null)throw new Error("toJSONString can't find JSON.stringify. This works native JSON support Browser or include json2.js");return JSON.stringify(this.toArray(),n,t)};i.prototype.toJoinedString=function(n,t){return n==null&&(n=""),t==null&&(t=f.Identity),this.select(t).toArray().join(n)};i.prototype.doAction=function(n){var t=this;return n=r.createLambda(n),new i(function(){var i,f=0;return new u(function(){i=t.getEnumerator()},function(){return i.moveNext()?(n(i.current(),f++),this.yieldReturn(i.current())):!1},function(){r.dispose(i)})})};i.prototype.forEach=function(n){n=r.createLambda(n);var i=0,t=this.getEnumerator();try{while(t.moveNext())if(n(t.current(),i++)===!1)break}finally{r.dispose(t)}};i.prototype.write=function(n,t){n==null&&(n="");t=r.createLambda(t);var i=!0;this.forEach(function(r){i?i=!1:document.write(n);document.write(t(r))})};i.prototype.writeLine=function(n){n=r.createLambda(n);this.forEach(function(t){document.writeln(n(t)+"<br />")})};i.prototype.force=function(){var n=this.getEnumerator();try{while(n.moveNext());}finally{r.dispose(n)}};i.prototype.letBind=function(n){n=r.createLambda(n);var t=this;return new i(function(){var f;return new u(function(){f=i.from(n(t)).getEnumerator()},function(){return f.moveNext()?this.yieldReturn(f.current()):!1},function(){r.dispose(f)})})};i.prototype.share=function(){var i=this,n,t=!1;return new y(function(){return new u(function(){n==null&&(n=i.getEnumerator())},function(){if(t)throw new Error("enumerator is disposed");return n.moveNext()?this.yieldReturn(n.current()):!1},f.Blank)},function(){t=!0;r.dispose(n)})};i.prototype.memoize=function(){var e=this,n,t,i=!1;return new y(function(){var r=-1;return new u(function(){t==null&&(t=e.getEnumerator(),n=[])},function(){if(i)throw new Error("enumerator is disposed");return(r++,n.length<=r)?t.moveNext()?this.yieldReturn(n[r]=t.current()):!1:this.yieldReturn(n[r])},f.Blank)},function(){i=!0;r.dispose(t);n=null})};i.prototype.catchError=function(n){n=r.createLambda(n);var t=this;return new i(function(){var i;return new u(function(){i=t.getEnumerator()},function(){try{return i.moveNext()?this.yieldReturn(i.current()):!1}catch(t){return n(t),!1}},function(){r.dispose(i)})})};i.prototype.finallyAction=function(n){n=r.createLambda(n);var t=this;return new i(function(){var i;return new u(function(){i=t.getEnumerator()},function(){return i.moveNext()?this.yieldReturn(i.current()):!1},function(){try{r.dispose(i)}finally{n()}})})};i.prototype.log=function(n){return n=r.createLambda(n),this.doAction(function(t){(typeof console=="undefined"?"undefined":_typeof(console))!==e.Undefined&&console.log(n(t))})};i.prototype.trace=function(n,t){return n==null&&(n="Trace"),t=r.createLambda(t),this.doAction(function(i){(typeof console=="undefined"?"undefined":_typeof(console))!==e.Undefined&&console.log(n,t(i))})};s=function(n,t,i,u){this.source=n;this.keySelector=r.createLambda(t);this.descending=i;this.parent=u};s.prototype=new i;s.prototype.createOrderedEnumerable=function(n,t){return new s(this.source,n,t,this)};s.prototype.thenBy=function(n){return this.createOrderedEnumerable(n,!1)};s.prototype.thenByDescending=function(n){return this.createOrderedEnumerable(n,!0)};s.prototype.getEnumerator=function(){var i=this,t,n,r=0;return new u(function(){t=[];n=[];i.source.forEach(function(i,r){t.push(i);n.push(r)});var r=a.create(i,null);r.GenerateKeys(t);n.sort(function(n,t){return r.compare(n,t)})},function(){return r<n.length?this.yieldReturn(t[n[r++]]):!1},f.Blank)};a=function(n,t,i){this.keySelector=n;this.descending=t;this.child=i;this.keys=null};a.create=function(n,t){var i=new a(n.keySelector,n.descending,t);return n.parent!=null?a.create(n.parent,i):i};a.prototype.GenerateKeys=function(n){for(var i=n.length,u=this.keySelector,r=new Array(i),t=0;t<i;t++)r[t]=u(n[t]);this.keys=r;this.child!=null&&this.child.GenerateKeys(n)};a.prototype.compare=function(n,t){var i=r.compare(this.keys[n],this.keys[t]);return i==0?this.child!=null?this.child.compare(n,t):r.compare(n,t):this.descending?-i:i};y=function(n,t){this.dispose=t;i.call(this,n)};y.prototype=new i;o=function(n){this.getSource=function(){return n}};o.prototype=new i;o.prototype.any=function(n){return n==null?this.getSource().length>0:i.prototype.any.apply(this,arguments)};o.prototype.count=function(n){return n==null?this.getSource().length:i.prototype.count.apply(this,arguments)};o.prototype.elementAt=function(n){var t=this.getSource();return 0<=n&&n<t.length?t[n]:i.prototype.elementAt.apply(this,arguments)};o.prototype.elementAtOrDefault=function(n,i){i===t&&(i=null);var r=this.getSource();return 0<=n&&n<r.length?r[n]:i};o.prototype.first=function(n){var t=this.getSource();return n==null&&t.length>0?t[0]:i.prototype.first.apply(this,arguments)};o.prototype.firstOrDefault=function(n,r){if(r===t&&(r=null),n!=null)return i.prototype.firstOrDefault.apply(this,arguments);var u=this.getSource();return u.length>0?u[0]:r};o.prototype.last=function(n){var t=this.getSource();return n==null&&t.length>0?t[t.length-1]:i.prototype.last.apply(this,arguments)};o.prototype.lastOrDefault=function(n,r){if(r===t&&(r=null),n!=null)return i.prototype.lastOrDefault.apply(this,arguments);var u=this.getSource();return u.length>0?u[u.length-1]:r};o.prototype.skip=function(n){var t=this.getSource();return new i(function(){var i;return new u(function(){i=n<0?0:n},function(){return i<t.length?this.yieldReturn(t[i++]):!1},f.Blank)})};o.prototype.takeExceptLast=function(n){return n==null&&(n=1),this.take(this.getSource().length-n)};o.prototype.takeFromLast=function(n){return this.skip(this.getSource().length-n)};o.prototype.reverse=function(){var n=this.getSource();return new i(function(){var t;return new u(function(){t=n.length},function(){return t>0?this.yieldReturn(n[--t]):!1},f.Blank)})};o.prototype.sequenceEqual=function(n,t){return(n instanceof o||n instanceof Array)&&t==null&&i.from(n).count()!=this.count()?!1:i.prototype.sequenceEqual.apply(this,arguments)};o.prototype.toJoinedString=function(n,t){var r=this.getSource();return t!=null||!(r instanceof Array)?i.prototype.toJoinedString.apply(this,arguments):(n==null&&(n=""),r.join(n))};o.prototype.getEnumerator=function(){var n=this.getSource(),t=-1;return{current:function(){return n[t]},moveNext:function(){return++t<n.length},dispose:f.Blank}};h=function(n,t){this.prevSource=n;this.prevPredicate=t};h.prototype=new i;h.prototype.where=function(n){if(n=r.createLambda(n),n.length<=1){var t=this.prevPredicate,u=function(i){return t(i)&&n(i)};return new h(this.prevSource,u)}return i.prototype.where.call(this,n)};h.prototype.select=function(n){return n=r.createLambda(n),n.length<=1?new c(this.prevSource,this.prevPredicate,n):i.prototype.select.call(this,n)};h.prototype.getEnumerator=function(){var t=this.prevPredicate,i=this.prevSource,n;return new u(function(){n=i.getEnumerator()},function(){while(n.moveNext())if(t(n.current()))return this.yieldReturn(n.current());return!1},function(){r.dispose(n)})};c=function(n,t,i){this.prevSource=n;this.prevPredicate=t;this.prevSelector=i};c.prototype=new i;c.prototype.where=function(n){return n=r.createLambda(n),n.length<=1?new h(this,n):i.prototype.where.call(this,n)};c.prototype.select=function(n){if(n=r.createLambda(n),n.length<=1){var t=this.prevSelector,u=function(i){return n(t(i))};return new c(this.prevSource,this.prevPredicate,u)}return i.prototype.select.call(this,n)};c.prototype.getEnumerator=function(){var t=this.prevPredicate,i=this.prevSelector,f=this.prevSource,n;return new u(function(){n=f.getEnumerator()},function(){while(n.moveNext())if(t==null||t(n.current()))return this.yieldReturn(i(n.current()));return!1},function(){r.dispose(n)})};var v=function(){var n=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r=function(n){return n===null?"null":n===t?"undefined":_typeof(n.toString)===e.Function?n.toString():Object.prototype.toString.call(n)},h=function(n,t){this.key=n;this.value=t;this.prev=null;this.next=null},o=function(){this.first=null;this.last=null},s;return o.prototype={addLast:function(n){this.last!=null?(this.last.next=n,n.prev=this.last,this.last=n):this.first=this.last=n},replace:function(n,t){n.prev!=null?(n.prev.next=t,t.prev=n.prev):this.first=t;n.next!=null?(n.next.prev=t,t.next=n.next):this.last=t},remove:function(n){n.prev!=null?n.prev.next=n.next:this.first=n.next;n.next!=null?n.next.prev=n.prev:this.last=n.prev}},s=function(n){this.countField=0;this.entryList=new o;this.buckets={};this.compareSelector=n==null?f.Identity:n},s.prototype={add:function(t,i){var s=this.compareSelector(t),o=r(s),e=new h(t,i),u,f;if(n(this.buckets,o)){for(u=this.buckets[o],f=0;f<u.length;f++)if(this.compareSelector(u[f].key)===s){this.entryList.replace(u[f],e);u[f]=e;return}u.push(e)}else this.buckets[o]=[e];this.countField++;this.entryList.addLast(e)},get:function(i){var o=this.compareSelector(i),s=r(o),f,u,e;if(!n(this.buckets,s))return t;for(f=this.buckets[s],u=0;u<f.length;u++)if(e=f[u],this.compareSelector(e.key)===o)return e.value;return t},set:function(t,i){var o=this.compareSelector(t),s=r(o),f,u,e;if(n(this.buckets,s))for(f=this.buckets[s],u=0;u<f.length;u++)if(this.compareSelector(f[u].key)===o)return e=new h(t,i),this.entryList.replace(f[u],e),f[u]=e,!0;return!1},contains:function(t){var f=this.compareSelector(t),e=r(f),u,i;if(!n(this.buckets,e))return!1;for(u=this.buckets[e],i=0;i<u.length;i++)if(this.compareSelector(u[i].key)===f)return!0;return!1},clear:function(){this.countField=0;this.buckets={};this.entryList=new o},remove:function(t){var e=this.compareSelector(t),f=r(e),i,u;if(n(this.buckets,f))for(i=this.buckets[f],u=0;u<i.length;u++)if(this.compareSelector(i[u].key)===e){this.entryList.remove(i[u]);i.splice(u,1);i.length==0&&delete this.buckets[f];this.countField--;return}},count:function(){return this.countField},toEnumerable:function(){var n=this;return new i(function(){var t;return new u(function(){t=n.entryList.first},function(){if(t!=null){var n={key:t.key,value:t.value};return t=t.next,this.yieldReturn(n)}return!1},f.Blank)})}},s}(),k=function(n){this.count=function(){return n.count()};this.get=function(t){return i.from(n.get(t))};this.contains=function(t){return n.contains(t)};this.toEnumerable=function(){return n.toEnumerable().select(function(n){return new w(n.key,n.value)})}},w=function(n,t){this.key=function(){return n};o.call(this,t)};w.prototype=new o;(typeof define=="undefined"?"undefined":_typeof(define))===e.Function&&define.amd?define("linqjs",[],function(){return i}):(typeof module=="undefined"?"undefined":_typeof(module))!==e.Undefined&&module.exports?module.exports=i:n.Enumerable=i}(this),function(n){n.validator!=undefined&&(n.validator.setDefaults({ignore:":hidden"}),n.validator.unobtrusive.adapters.addBool("requiredcb","required"),n.validator.unobtrusive.adapters.addBool("time","required"),n.validator.unobtrusive.adapters.addBool("date","required"),n.validator.addMethod("umbracoforms_selectonefromlist",function(t,i){var r=!1;return n("input",n(i).closest(".checkboxlist, .radiobuttonlist")).each(function(){n(this).is(":checked")&&(r=!0)}),r}),n.validator.unobtrusive.adapters.addBool("requiredlist","umbracoforms_selectonefromlist"),n.validator.addMethod("umbracoforms_regex",function(t,i){var u=n(i).attr("data-regex"),r=n(i).val();return r.length==0?!0:r.match(u)}),n.validator.unobtrusive.adapters.addBool("regex","umbracoforms_regex"),n(".contour input[type=submit]").not(".cancel").click(function(t){var r=n(this),i=r.closest("form");if(i.children('input[name="FormId"]').val()==="c5a58dfd-6e23-434c-9962-030d2872c51a"){console.log("tavel survey - handled elsewhere");return}t.preventDefault();i.validate();i.valid()&&(i.submit(),r.attr("disabled","disabled"))}))}(jQuery);umbracoForms=umbracoForms||{},function(n){var t=n.conditions||{},i=t.operators||{Is:function(n,t){return(n||"")===t},IsNot:function(n,t){return(n||"")!==t},GreaterThen:function(n,t){return parseInt(n)>parseInt(t)},LessThen:function(n,t){return parseInt(n)<parseInt(t)},StartsWith:function(n,t){return n&&n.indexOf(t)===0},EndsWith:function(n,t){return n&&n.indexOf(t)===n.length-t.length},Contains:function(n,t){return n&&n.indexOf(t)>-1}};n.conditions=t;n.conditions.operators=i;t.handle=function(n){function h(n){var t=v[n.field],r=i[n.operator];return t!==null&&r(t,n.value)}function c(n){var t=!0;return f[n.field]&&(t=e(n.field,f[n.field])),t?h(n):!1}function l(n,t){for(var l=t.logicType==="Any",s=t.logicType==="All",f={},h=!1,o=!0,i,r=0;r<t.rules.length;r++){if(i=t.rules[r],n===i.field||n===i.fieldsetId)throw new Error("Field or fieldset "+n+" has a condition on itself.");f[i.fieldsetId]===undefined&&(u[i.fieldsetId]?(f[i.fieldsetId]=e(i.fieldsetId,u[i.fieldsetId]),f[i.fieldsetId]||(h=!0)):f[i.fieldsetId]=!0)}if(s&&h)return!1;for(r=0;r<t.rules.length;r++){if(i=t.rules[r],o=f[i.fieldsetId]?c(t.rules[r]):!1,l&&o)break;if(s&&!o)break}return o}function a(n,t){var r=t.actionType==="Show",i=s[n],u=i===undefined?s[n]=l(n,t):i;return!(u^r)}function e(n,t){return t?a(n,t):!0}function o(n,t,i){var r=e(t,i);r?n.show():n.hide()}var t,r,u=n.fsConditions||{},f=n.fieldConditions||{},v=n.values||{},s={};for(t in u)o($("#"+t),t,u[t],"Fieldset");for(r in f)o($("#"+r).closest(".contourField"),r,f[r],"Field")}}(umbracoForms);$(document).ready(function(){var n=$(".js-accordion");if(n.length){n.each(function(n){var t=$(this);$options=t.data();$accordions_headers=t.find(".js-accordion__header");$accordions_prefix_classes=$options.accordionPrefixClasses||"";$accordions_multiselectable=$options.accordionMultiselectable||"";$index_accordion=n+1;t.attr({role:"tablist","aria-multiselectable":"true","class":$accordions_prefix_classes});$accordions_multiselectable==="none"&&t.attr("aria-multiselectable","false");$accordions_headers.each(function(n){var i=$(this),u=i.text(),r=i.next(".js-accordion__panel"),t=n+1;r.prepend(i.removeClass("js-accordion__header").addClass($accordions_prefix_classes+"__title").attr("tabindex","0"));$accordion_header=$('<button class="js-accordion__header '+$accordions_prefix_classes+'__header">'+u+"<\/button>");r.before($accordion_header);$accordion_header.attr({"aria-controls":"accordion"+$index_accordion+"_panel"+t,"aria-expanded":"false",role:"tab",id:"accordion"+$index_accordion+"_tab"+t,tabindex:"-1","aria-selected":"false"});r.attr({"aria-labelledby":"accordion"+$index_accordion+"_tab"+t,role:"tabpanel",id:"accordion"+$index_accordion+"_panel"+t,"aria-hidden":"true"}).addClass($accordions_prefix_classes+"__panel");i.attr("data-accordion-opened")=="true"&&($accordion_header.attr("aria-expanded","true").removeAttr("data-accordion-opened"),r.attr("aria-hidden","false"));t===1&&$accordion_header.removeAttr("tabindex")})});$("body").on("focus",".js-accordion__header",function(){var n=$(this),t=n.parent(),i=t.find(".js-accordion__header");i.attr({tabindex:"-1","aria-selected":"false"});n.attr("aria-selected","true").removeAttr("tabindex")}).on("click",".js-accordion__header",function(n){var t=$(this),i=$("#"+t.attr("aria-controls")),r=t.parent(),f=r.attr("aria-multiselectable"),u=r.find(".js-accordion__header"),e=r.find(".js-accordion__panel");u.attr("aria-selected","false");t.attr("aria-selected","true");t.attr("aria-expanded")=="false"?(t.attr("aria-expanded","true"),i.attr("aria-hidden","false")):(t.attr("aria-expanded","false"),i.attr("aria-hidden","true"));f=="false"&&(e.not(i).attr("aria-hidden","true"),u.not(t).attr("aria-expanded","false"));setTimeout(function(){t.focus()},0);n.preventDefault()}).on("keydown",".js-accordion__header",function(n){var t=$(this),f=t.parent(),u=f.find(".js-accordion__header"),i=f.find(".js-accordion__header").first(),r=f.find(".js-accordion__header").last(),e=t.prevAll(".js-accordion__header").first(),o=t.nextAll(".js-accordion__header").first();n.keyCode!=37&&n.keyCode!=38||n.ctrlKey?n.keyCode!=40&&n.keyCode!=39||n.ctrlKey?n.keyCode==36?(u.attr({tabindex:"-1","aria-selected":"false"}),i.attr("aria-selected","true").removeAttr("tabindex"),setTimeout(function(){i.focus()},0),n.preventDefault()):n.keyCode==35&&(u.attr({tabindex:"-1","aria-selected":"false"}),r.attr("aria-selected","true").removeAttr("tabindex"),setTimeout(function(){r.focus()},0),n.preventDefault()):(u.attr({tabindex:"-1","aria-selected":"false"}),t.is(r)?(i.attr("aria-selected","true").removeAttr("tabindex"),setTimeout(function(){i.focus()},0)):(o.attr("aria-selected","true").removeAttr("tabindex"),setTimeout(function(){o.focus()},0)),n.preventDefault()):(u.attr({tabindex:"-1","aria-selected":"false"}),t.is(i)?(r.attr("aria-selected","true").removeAttr("tabindex"),setTimeout(function(){r.focus()},0)):(e.attr("aria-selected","true").removeAttr("tabindex"),setTimeout(function(){e.focus()},0)),n.preventDefault())}).on("keydown",".js-accordion__panel",function(n){var i=$(this),t=$("#"+i.attr("aria-labelledby")),r=i.parent(),u=r.find(".js-accordion__header").first(),e=t.prevAll(".js-accordion__header").first(),o=t.nextAll(".js-accordion__header").first(),f=r.find(".js-accordion__header").last();n.keyCode==38&&n.ctrlKey?(setTimeout(function(){t.focus()},0),n.preventDefault()):n.keyCode==33&&n.ctrlKey?t.is(u)?(setTimeout(function(){f.focus()},0),n.preventDefault()):(setTimeout(function(){e.focus()},0),n.preventDefault()):n.keyCode==34&&n.ctrlKey&&(t.is(f)?(setTimeout(function(){u.focus()},0),n.preventDefault()):(setTimeout(function(){o.focus()},0),n.preventDefault()))})}}),function(n,t,i){function s(){var t=n.L;r.noConflict=function(){return n.L=t,this};n.L=r}var r={version:"1.0.1+ffcfcc1"},u,e,f,o;(typeof module=="undefined"?"undefined":_typeof(module))==="object"&&_typeof(module.exports)==="object"?module.exports=r:typeof define=="function"&&define.amd&&define(r);typeof n!="undefined"&&s();r.Util={extend:function(n){for(var t,i,r=1,u=arguments.length;r<u;r++){i=arguments[r];for(t in i)n[t]=i[t]}return n},create:Object.create||function(){function n(){}return function(t){return n.prototype=t,new n}}(),bind:function(n,t){var i=Array.prototype.slice,r;return n.bind?n.bind.apply(n,i.call(arguments,1)):(r=i.call(arguments,2),function(){return n.apply(t,r.length?r.concat(i.call(arguments)):arguments)})},stamp:function(n){return n._leaflet_id=n._leaflet_id||++r.Util.lastId,n._leaflet_id},lastId:0,throttle:function(n,t,i){var u,r,f,e;return e=function(){u=!1;r&&(f.apply(i,r),r=!1)},f=function(){u?r=arguments:(n.apply(i,arguments),setTimeout(e,t),u=!0)}},wrapNum:function(n,t,i){var f=t[1],r=t[0],u=f-r;return n===f&&i?n:((n-r)%u+u)%u+r},falseFn:function(){return!1},formatNum:function(n,t){var i=Math.pow(10,t||5);return Math.round(n*i)/i},trim:function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},splitWords:function(n){return r.Util.trim(n).split(/\s+/)},setOptions:function(n,t){n.hasOwnProperty("options")||(n.options=n.options?r.Util.create(n.options):{});for(var i in t)n.options[i]=t[i];return n.options},getParamString:function(n,t,i){var u=[],r;for(r in n)u.push(encodeURIComponent(i?r.toUpperCase():r)+"="+encodeURIComponent(n[r]));return(!t||t.indexOf("?")===-1?"?":"&")+u.join("&")},template:function(n,t){return n.replace(r.Util.templateRe,function(n,r){var u=t[r];if(u===i)throw new Error("No value provided for variable "+n);else typeof u=="function"&&(u=u(t));return u})},templateRe:/\{ *([\w_\-]+) *\}/g,isArray:Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"},indexOf:function(n,t){for(var i=0;i<n.length;i++)if(n[i]===t)return i;return-1},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function t(t){return n["webkit"+t]||n["moz"+t]||n["ms"+t]}function i(t){var i=+new Date,r=Math.max(0,16-(i-u));return u=i+r,n.setTimeout(t,r)}var u=0,f=n.requestAnimationFrame||t("RequestAnimationFrame")||i,e=n.cancelAnimationFrame||t("CancelAnimationFrame")||t("CancelRequestAnimationFrame")||function(t){n.clearTimeout(t)};r.Util.requestAnimFrame=function(t,u,e){if(e&&f===i)t.call(u);else return f.call(n,r.bind(t,u))};r.Util.cancelAnimFrame=function(t){t&&e.call(n,t)}}();r.extend=r.Util.extend;r.bind=r.Util.bind;r.stamp=r.Util.stamp;r.setOptions=r.Util.setOptions;r.Class=function(){};r.Class.extend=function(n){var i=function(){this.initialize&&this.initialize.apply(this,arguments);this.callInitHooks()},f=i.__super__=this.prototype,t=r.Util.create(f),u;t.constructor=i;i.prototype=t;for(u in this)this.hasOwnProperty(u)&&u!=="prototype"&&(i[u]=this[u]);return n.statics&&(r.extend(i,n.statics),delete n.statics),n.includes&&(r.Util.extend.apply(null,[t].concat(n.includes)),delete n.includes),t.options&&(n.options=r.Util.extend(r.Util.create(t.options),n.options)),r.extend(t,n),t._initHooks=[],t.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this);this._initHooksCalled=!0;for(var n=0,i=t._initHooks.length;n<i;n++)t._initHooks[n].call(this)}},i};r.Class.include=function(n){return r.extend(this.prototype,n),this};r.Class.mergeOptions=function(n){return r.extend(this.prototype.options,n),this};r.Class.addInitHook=function(n){var t=Array.prototype.slice.call(arguments,1),i=typeof n=="function"?n:function(){this[n].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};r.Evented=r.Class.extend({on:function(n,t,i){var f,u,e;if((typeof n=="undefined"?"undefined":_typeof(n))==="object")for(f in n)this._on(f,n[f],t);else for(n=r.Util.splitWords(n),u=0,e=n.length;u<e;u++)this._on(n[u],t,i);return this},off:function(n,t,i){var f,u,e;if(n)if((typeof n=="undefined"?"undefined":_typeof(n))==="object")for(f in n)this._off(f,n[f],t);else for(n=r.Util.splitWords(n),u=0,e=n.length;u<e;u++)this._off(n[u],t,i);else delete this._events;return this},_on:function(n,t,r){var u,o,f,e,s;for(this._events=this._events||{},u=this._events[n],u||(u=[],this._events[n]=u),r===this&&(r=i),o={fn:t,ctx:r},f=u,e=0,s=f.length;e<s;e++)if(f[e].fn===t&&f[e].ctx===r)return;f.push(o);u.count++},_off:function(n,t,u){var f,e,o,s;if(this._events&&(f=this._events[n],f)){if(!t){for(e=0,o=f.length;e<o;e++)f[e].fn=r.Util.falseFn;delete this._events[n];return}if(u===this&&(u=i),f)for(e=0,o=f.length;e<o;e++)if((s=f[e],s.ctx===u)&&s.fn===t){s.fn=r.Util.falseFn;this._firingCount&&(this._events[n]=f=f.slice());f.splice(e,1);return}}},fire:function(n,t,i){var e,u,f,s,o;if(!this.listens(n,i))return this;if(e=r.Util.extend({},t,{type:n,target:this}),this._events&&(u=this._events[n],u)){for(this._firingCount=this._firingCount+1||1,f=0,s=u.length;f<s;f++)o=u[f],o.fn.call(o.ctx||this,e);this._firingCount--}return i&&this._propagateEvent(e),this},listens:function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return!0;if(t)for(r in this._eventParents)if(this._eventParents[r].listens(n,t))return!0;return!1},once:function(n,t,i){var u,f;if((typeof n=="undefined"?"undefined":_typeof(n))==="object"){for(u in n)this.once(u,n[u],t);return this}f=r.bind(function(){this.off(n,t,i).off(n,f,i)},this);return this.on(n,t,i).on(n,f,i)},addEventParent:function(n){return this._eventParents=this._eventParents||{},this._eventParents[r.stamp(n)]=n,this},removeEventParent:function(n){return this._eventParents&&delete this._eventParents[r.stamp(n)],this},_propagateEvent:function(n){for(var t in this._eventParents)this._eventParents[t].fire(n.type,r.extend({layer:n.target},n),!0)}});u=r.Evented.prototype;u.addEventListener=u.on;u.removeEventListener=u.clearAllEventListeners=u.off;u.addOneTimeEventListener=u.once;u.fireEvent=u.fire;u.hasEventListeners=u.listens;r.Mixin={Events:u},function(){var i=navigator.userAgent.toLowerCase(),e=t.documentElement,f="ActiveXObject"in n,o=i.indexOf("webkit")!==-1,b=i.indexOf("phantom")!==-1,h=i.search("android [23]")!==-1,c=i.indexOf("chrome")!==-1,l=i.indexOf("gecko")!==-1&&!o&&!n.opera&&!f,k=navigator.platform.indexOf("Win")===0,u=typeof orientation!="undefined"||i.indexOf("mobile")!==-1,a=!n.PointerEvent&&n.MSPointerEvent,v=n.PointerEvent||a,y=f&&"transition"in e.style,s="WebKitCSSMatrix"in n&&"m11"in new n.WebKitCSSMatrix&&!h,p="MozPerspective"in e.style,w="OTransition"in e.style,d=!n.L_NO_TOUCH&&(v||"ontouchstart"in n||n.DocumentTouch&&t instanceof n.DocumentTouch);r.Browser={ie:f,ielt9:f&&!t.addEventListener,edge:"msLaunchUri"in navigator&&!("documentMode"in t),webkit:o,gecko:l,android:i.indexOf("android")!==-1,android23:h,chrome:c,safari:!c&&i.indexOf("safari")!==-1,win:k,ie3d:y,webkit3d:s,gecko3d:p,opera12:w,any3d:!n.L_DISABLE_3D&&(y||s||p)&&!w&&!b,mobile:u,mobileWebkit:u&&o,mobileWebkit3d:u&&s,mobileOpera:u&&n.opera,mobileGecko:u&&l,touch:!!d,msPointer:!!a,pointer:!!v,retina:(n.devicePixelRatio||n.screen.deviceXDPI/n.screen.logicalXDPI)>1}}();r.Point=function(n,t,i){this.x=i?Math.round(n):n;this.y=i?Math.round(t):t};r.Point.prototype={clone:function(){return new r.Point(this.x,this.y)},add:function(n){return this.clone()._add(r.point(n))},_add:function(n){return this.x+=n.x,this.y+=n.y,this},subtract:function(n){return this.clone()._subtract(r.point(n))},_subtract:function(n){return this.x-=n.x,this.y-=n.y,this},divideBy:function(n){return this.clone()._divideBy(n)},_divideBy:function(n){return this.x/=n,this.y/=n,this},multiplyBy:function(n){return this.clone()._multiplyBy(n)},_multiplyBy:function(n){return this.x*=n,this.y*=n,this},scaleBy:function(n){return new r.Point(this.x*n.x,this.y*n.y)},unscaleBy:function(n){return new r.Point(this.x/n.x,this.y/n.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},distanceTo:function(n){n=r.point(n);var t=n.x-this.x,i=n.y-this.y;return Math.sqrt(t*t+i*i)},equals:function(n){return n=r.point(n),n.x===this.x&&n.y===this.y},contains:function(n){return n=r.point(n),Math.abs(n.x)<=Math.abs(this.x)&&Math.abs(n.y)<=Math.abs(this.y)},toString:function(){return"Point("+r.Util.formatNum(this.x)+", "+r.Util.formatNum(this.y)+")"}};r.point=function(n,t,u){return n instanceof r.Point?n:r.Util.isArray(n)?new r.Point(n[0],n[1]):n===i||n===null?n:(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&"x"in n&&"y"in n?new r.Point(n.x,n.y):new r.Point(n,t,u)};r.Bounds=function(n,t){var r,i,u;if(n)for(r=t?[n,t]:n,i=0,u=r.length;i<u;i++)this.extend(r[i])};r.Bounds.prototype={extend:function(n){return n=r.point(n),this.min||this.max?(this.min.x=Math.min(n.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(n.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=n.clone(),this.max=n.clone()),this},getCenter:function(n){return new r.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,n)},getBottomLeft:function(){return new r.Point(this.min.x,this.max.y)},getTopRight:function(){return new r.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(n){var t,i;return n=typeof n[0]=="number"||n instanceof r.Point?r.point(n):r.bounds(n),n instanceof r.Bounds?(t=n.min,i=n.max):t=i=n,t.x>=this.min.x&&i.x<=this.max.x&&t.y>=this.min.y&&i.y<=this.max.y},intersects:function(n){n=r.bounds(n);var t=this.min,i=this.max,u=n.min,f=n.max,e=f.x>=t.x&&u.x<=i.x,o=f.y>=t.y&&u.y<=i.y;return e&&o},overlaps:function(n){n=r.bounds(n);var t=this.min,i=this.max,u=n.min,f=n.max,e=f.x>t.x&&u.x<i.x,o=f.y>t.y&&u.y<i.y;return e&&o},isValid:function(){return!!(this.min&&this.max)}};r.bounds=function(n,t){return!n||n instanceof r.Bounds?n:new r.Bounds(n,t)};r.Transformation=function(n,t,i,r){this._a=n;this._b=t;this._c=i;this._d=r};r.Transformation.prototype={transform:function(n,t){return this._transform(n.clone(),t)},_transform:function(n,t){return t=t||1,n.x=t*(this._a*n.x+this._b),n.y=t*(this._c*n.y+this._d),n},untransform:function(n,t){return t=t||1,new r.Point((n.x/t-this._b)/this._a,(n.y/t-this._d)/this._c)}};r.DomUtil={get:function(n){return typeof n=="string"?t.getElementById(n):n},getStyle:function(n,i){var r=n.style[i]||n.currentStyle&&n.currentStyle[i],u;return(!r||r==="auto")&&t.defaultView&&(u=t.defaultView.getComputedStyle(n,null),r=u?u[i]:null),r==="auto"?null:r},create:function(n,i,r){var u=t.createElement(n);return u.className=i||"",r&&r.appendChild(u),u},remove:function(n){var t=n.parentNode;t&&t.removeChild(n)},empty:function(n){while(n.firstChild)n.removeChild(n.firstChild)},toFront:function(n){n.parentNode.appendChild(n)},toBack:function(n){var t=n.parentNode;t.insertBefore(n,t.firstChild)},hasClass:function(n,t){if(n.classList!==i)return n.classList.contains(t);var u=r.DomUtil.getClass(n);return u.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(u)},addClass:function(n,t){var f,u,o,e;if(n.classList!==i)for(f=r.Util.splitWords(t),u=0,o=f.length;u<o;u++)n.classList.add(f[u]);else r.DomUtil.hasClass(n,t)||(e=r.DomUtil.getClass(n),r.DomUtil.setClass(n,(e?e+" ":"")+t))},removeClass:function(n,t){n.classList!==i?n.classList.remove(t):r.DomUtil.setClass(n,r.Util.trim((" "+r.DomUtil.getClass(n)+" ").replace(" "+t+" "," ")))},setClass:function(n,t){n.className.baseVal===i?n.className=t:n.className.baseVal=t},getClass:function(n){return n.className.baseVal===i?n.className:n.className.baseVal},setOpacity:function(n,t){"opacity"in n.style?n.style.opacity=t:"filter"in n.style&&r.DomUtil._setOpacityIE(n,t)},_setOpacityIE:function(n,t){var i=!1,r="DXImageTransform.Microsoft.Alpha";try{i=n.filters.item(r)}catch(u){if(t===1)return}t=Math.round(t*100);i?(i.Enabled=t!==100,i.Opacity=t):n.style.filter+=" progid:"+r+"(opacity="+t+")"},testProp:function(n){for(var r=t.documentElement.style,i=0;i<n.length;i++)if(n[i]in r)return n[i];return!1},setTransform:function(n,t,i){var u=t||new r.Point(0,0);n.style[r.DomUtil.TRANSFORM]=(r.Browser.ie3d?"translate("+u.x+"px,"+u.y+"px)":"translate3d("+u.x+"px,"+u.y+"px,0)")+(i?" scale("+i+")":"")},setPosition:function(n,t){n._leaflet_pos=t;r.Browser.any3d?r.DomUtil.setTransform(n,t):(n.style.left=t.x+"px",n.style.top=t.y+"px")},getPosition:function(n){return n._leaflet_pos||new r.Point(0,0)}},function(){var u,i;r.DomUtil.TRANSFORM=r.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]);u=r.DomUtil.TRANSITION=r.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);r.DomUtil.TRANSITION_END=u==="webkitTransition"||u==="OTransition"?u+"End":"transitionend";"onselectstart"in t?(r.DomUtil.disableTextSelection=function(){r.DomEvent.on(n,"selectstart",r.DomEvent.preventDefault)},r.DomUtil.enableTextSelection=function(){r.DomEvent.off(n,"selectstart",r.DomEvent.preventDefault)}):(i=r.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),r.DomUtil.disableTextSelection=function(){if(i){var n=t.documentElement.style;this._userSelect=n[i];n[i]="none"}},r.DomUtil.enableTextSelection=function(){i&&(t.documentElement.style[i]=this._userSelect,delete this._userSelect)});r.DomUtil.disableImageDrag=function(){r.DomEvent.on(n,"dragstart",r.DomEvent.preventDefault)};r.DomUtil.enableImageDrag=function(){r.DomEvent.off(n,"dragstart",r.DomEvent.preventDefault)};r.DomUtil.preventOutline=function(t){while(t.tabIndex===-1)t=t.parentNode;if(t&&t.style){r.DomUtil.restoreOutline();this._outlineElement=t;this._outlineStyle=t.style.outline;t.style.outline="none";r.DomEvent.on(n,"keydown",r.DomUtil.restoreOutline,this)}};r.DomUtil.restoreOutline=function(){this._outlineElement&&(this._outlineElement.style.outline=this._outlineStyle,delete this._outlineElement,delete this._outlineStyle,r.DomEvent.off(n,"keydown",r.DomUtil.restoreOutline,this))}}();r.LatLng=function(n,t,r){if(isNaN(n)||isNaN(t))throw new Error("Invalid LatLng object: ("+n+", "+t+")");this.lat=+n;this.lng=+t;r!==i&&(this.alt=+r)};r.LatLng.prototype={equals:function(n,t){if(!n)return!1;n=r.latLng(n);var u=Math.max(Math.abs(this.lat-n.lat),Math.abs(this.lng-n.lng));return u<=(t===i?1e-9:t)},toString:function(n){return"LatLng("+r.Util.formatNum(this.lat,n)+", "+r.Util.formatNum(this.lng,n)+")"},distanceTo:function(n){return r.CRS.Earth.distance(this,r.latLng(n))},wrap:function(){return r.CRS.Earth.wrapLatLng(this)},toBounds:function(n){var t=180*n/40075017,i=t/Math.cos(Math.PI/180*this.lat);return r.latLngBounds([this.lat-t,this.lng-i],[this.lat+t,this.lng+i])},clone:function(){return new r.LatLng(this.lat,this.lng,this.alt)}};r.latLng=function(n,t,u){return n instanceof r.LatLng?n:r.Util.isArray(n)&&_typeof(n[0])!=="object"?n.length===3?new r.LatLng(n[0],n[1],n[2]):n.length===2?new r.LatLng(n[0],n[1]):null:n===i||n===null?n:(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&"lat"in n?new r.LatLng(n.lat,"lng"in n?n.lng:n.lon,n.alt):t===i?null:new r.LatLng(n,t,u)};r.LatLngBounds=function(n,t){var r,i,u;if(n)for(r=t?[n,t]:n,i=0,u=r.length;i<u;i++)this.extend(r[i])};r.LatLngBounds.prototype={extend:function(n){var u=this._southWest,f=this._northEast,t,i;if(n instanceof r.LatLng)t=n,i=n;else if(n instanceof r.LatLngBounds){if(t=n._southWest,i=n._northEast,!t||!i)return this}else return n?this.extend(r.latLng(n)||r.latLngBounds(n)):this;return u||f?(u.lat=Math.min(t.lat,u.lat),u.lng=Math.min(t.lng,u.lng),f.lat=Math.max(i.lat,f.lat),f.lng=Math.max(i.lng,f.lng)):(this._southWest=new r.LatLng(t.lat,t.lng),this._northEast=new r.LatLng(i.lat,i.lng)),this},pad:function(n){var t=this._southWest,i=this._northEast,u=Math.abs(t.lat-i.lat)*n,f=Math.abs(t.lng-i.lng)*n;return new r.LatLngBounds(new r.LatLng(t.lat-u,t.lng-f),new r.LatLng(i.lat+u,i.lng+f))},getCenter:function(){return new r.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new r.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new r.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(n){n=typeof n[0]=="number"||n instanceof r.LatLng?r.latLng(n):r.latLngBounds(n);var u=this._southWest,f=this._northEast,t,i;return n instanceof r.LatLngBounds?(t=n.getSouthWest(),i=n.getNorthEast()):t=i=n,t.lat>=u.lat&&i.lat<=f.lat&&t.lng>=u.lng&&i.lng<=f.lng},intersects:function(n){n=r.latLngBounds(n);var t=this._southWest,i=this._northEast,u=n.getSouthWest(),f=n.getNorthEast(),e=f.lat>=t.lat&&u.lat<=i.lat,o=f.lng>=t.lng&&u.lng<=i.lng;return e&&o},overlaps:function(n){n=r.latLngBounds(n);var t=this._southWest,i=this._northEast,u=n.getSouthWest(),f=n.getNorthEast(),e=f.lat>t.lat&&u.lat<i.lat,o=f.lng>t.lng&&u.lng<i.lng;return e&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(n){return n?(n=r.latLngBounds(n),this._southWest.equals(n.getSouthWest())&&this._northEast.equals(n.getNorthEast())):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};r.latLngBounds=function(n,t){return n instanceof r.LatLngBounds?n:new r.LatLngBounds(n,t)};r.Projection={};r.Projection.LonLat={project:function(n){return new r.Point(n.lng,n.lat)},unproject:function(n){return new r.LatLng(n.y,n.x)},bounds:r.bounds([-180,-90],[180,90])};r.Projection.SphericalMercator={R:6378137,MAX_LATITUDE:85.0511287798,project:function(n){var t=Math.PI/180,i=this.MAX_LATITUDE,f=Math.max(Math.min(i,n.lat),-i),u=Math.sin(f*t);return new r.Point(this.R*n.lng*t,this.R*Math.log((1+u)/(1-u))/2)},unproject:function(n){var t=180/Math.PI;return new r.LatLng((2*Math.atan(Math.exp(n.y/this.R))-Math.PI/2)*t,n.x*t/this.R)},bounds:function(){var n=6378137*Math.PI;return r.bounds([-n,-n],[n,n])}()};r.CRS={latLngToPoint:function(n,t){var i=this.projection.project(n),r=this.scale(t);return this.transformation._transform(i,r)},pointToLatLng:function(n,t){var i=this.scale(t),r=this.transformation.untransform(n,i);return this.projection.unproject(r)},project:function(n){return this.projection.project(n)},unproject:function(n){return this.projection.unproject(n)},scale:function(n){return 256*Math.pow(2,n)},zoom:function(n){return Math.log(n/256)/Math.LN2},getProjectedBounds:function(n){if(this.infinite)return null;var t=this.projection.bounds,i=this.scale(n),u=this.transformation.transform(t.min,i),f=this.transformation.transform(t.max,i);return r.bounds(u,f)},infinite:!1,wrapLatLng:function(n){var t=this.wrapLng?r.Util.wrapNum(n.lng,this.wrapLng,!0):n.lng,i=this.wrapLat?r.Util.wrapNum(n.lat,this.wrapLat,!0):n.lat,u=n.alt;return r.latLng(i,t,u)}};r.CRS.Simple=r.extend({},r.CRS,{projection:r.Projection.LonLat,transformation:new r.Transformation(1,0,-1,0),scale:function(n){return Math.pow(2,n)},zoom:function(n){return Math.log(n)/Math.LN2},distance:function(n,t){var i=t.lng-n.lng,r=t.lat-n.lat;return Math.sqrt(i*i+r*r)},infinite:!0});r.CRS.Earth=r.extend({},r.CRS,{wrapLng:[-180,180],R:6371e3,distance:function(n,t){var i=Math.PI/180,r=n.lat*i,u=t.lat*i,f=Math.sin(r)*Math.sin(u)+Math.cos(r)*Math.cos(u)*Math.cos((t.lng-n.lng)*i);return this.R*Math.acos(Math.min(f,1))}});r.CRS.EPSG3857=r.extend({},r.CRS.Earth,{code:"EPSG:3857",projection:r.Projection.SphericalMercator,transformation:function(){var n=.5/(Math.PI*r.Projection.SphericalMercator.R);return new r.Transformation(n,.5,-n,.5)}()});r.CRS.EPSG900913=r.extend({},r.CRS.EPSG3857,{code:"EPSG:900913"});r.CRS.EPSG4326=r.extend({},r.CRS.Earth,{code:"EPSG:4326",projection:r.Projection.LonLat,transformation:new r.Transformation(1/180,1,-1/180,.5)});r.Map=r.Evented.extend({options:{crs:r.CRS.EPSG3857,center:i,zoom:i,minZoom:i,maxZoom:i,layers:[],maxBounds:i,renderer:i,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(n,t){t=r.setOptions(this,t);this._initContainer(n);this._initLayout();this._onResize=r.bind(this._onResize,this);this._initEvents();t.maxBounds&&this.setMaxBounds(t.maxBounds);t.zoom!==i&&(this._zoom=this._limitZoom(t.zoom));t.center&&t.zoom!==i&&this.setView(r.latLng(t.center),t.zoom,{reset:!0});this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=!0;this.callInitHooks();this._addLayers(this.options.layers)},setView:function(n,t){return t=t===i?this.getZoom():t,this._resetView(r.latLng(n),t),this},setZoom:function(n,t){return this._loaded?this.setView(this.getCenter(),n,{zoom:t}):(this._zoom=n,this)},zoomIn:function(n,t){return n=n||(r.Browser.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+n,t)},zoomOut:function(n,t){return n=n||(r.Browser.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-n,t)},setZoomAround:function(n,t,i){var f=this.getZoomScale(t),u=this.getSize().divideBy(2),e=n instanceof r.Point?n:this.latLngToContainerPoint(n),o=e.subtract(u).multiplyBy(1-1/f),s=this.containerPointToLatLng(u.add(o));return this.setView(s,t,{zoom:i})},_getBoundsCenterZoom:function(n,t){t=t||{};n=n.getBounds?n.getBounds():r.latLngBounds(n);var u=r.point(t.paddingTopLeft||t.padding||[0,0]),f=r.point(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(n,!1,u.add(f));i=typeof t.maxZoom=="number"?Math.min(t.maxZoom,i):i;var e=f.subtract(u).divideBy(2),o=this.project(n.getSouthWest(),i),s=this.project(n.getNorthEast(),i),h=this.unproject(o.add(s).divideBy(2).add(e),i);return{center:h,zoom:i}},fitBounds:function(n,t){if(n=r.latLngBounds(n),!n.isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(n,t);return this.setView(i.center,i.zoom,t)},fitWorld:function(n){return this.fitBounds([[-90,-180],[90,180]],n)},panTo:function(n,t){return this.setView(n,this._zoom,{pan:t})},panBy:function(n){return this.fire("movestart"),this._rawPanBy(r.point(n)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(n){if(n=r.latLngBounds(n),n.isValid())this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds);else return this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds);this.options.maxBounds=n;this._loaded&&this._panInsideMaxBounds();return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(n){return(this.options.minZoom=n,this._loaded&&this.getZoom()<this.options.minZoom)?this.setZoom(n):this},setMaxZoom:function(n){return(this.options.maxZoom=n,this._loaded&&this.getZoom()>this.options.maxZoom)?this.setZoom(n):this},panInsideBounds:function(n,t){this._enforcingBounds=!0;var i=this.getCenter(),u=this._limitCenter(i,this._zoom,r.latLngBounds(n));return i.equals(u)||this.panTo(u,t),this._enforcingBounds=!1,this},invalidateSize:function(n){var i;if(!this._loaded)return this;n=r.extend({animate:!1,pan:!0},n===!0?{animate:!0}:n);i=this.getSize();this._sizeChanged=!0;this._lastCenter=null;var u=this.getSize(),f=i.divideBy(2).round(),e=u.divideBy(2).round(),t=f.subtract(e);return!t.x&&!t.y?this:(n.animate&&n.pan?this.panBy(t):(n.pan&&this._rawPanBy(t),this.fire("move"),n.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},addHandler:function(n,t){if(!t)return this;var i=this[n]=new t(this);return this._handlers.push(i),this.options[n]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id;delete this._containerId}catch(t){this._container._leaflet_id=i;this._containerId=i}r.DomUtil.remove(this._mapPane);this._clearControlPos&&this._clearControlPos();this._clearHandlers();this._loaded&&this.fire("unload");for(var n in this._layers)this._layers[n].remove();return this},createPane:function(n,t){var u="leaflet-pane"+(n?" leaflet-"+n.replace("Pane","")+"-pane":""),i=r.DomUtil.create("div",u,t||this._mapPane);return n&&(this._panes[n]=i),i},getCenter:function(){return(this._checkIfLoaded(),this._lastCenter&&!this._moved())?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var n=this.getPixelBounds(),t=this.unproject(n.getBottomLeft()),i=this.unproject(n.getTopRight());return new r.LatLngBounds(t,i)},getMinZoom:function(){return this.options.minZoom===i?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===i?this._layersMaxZoom===i?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(n,t,i){n=r.latLngBounds(n);i=r.point(i||[0,0]);var u=this.getZoom()||0,s=this.getMinZoom(),h=this.getMaxZoom(),c=n.getNorthWest(),l=n.getSouthEast(),e=this.getSize().subtract(i),o=this.project(l,u).subtract(this.project(c,u)),f=r.Browser.any3d?this.options.zoomSnap:1,a=Math.min(e.x/o.x,e.y/o.y);return u=this.getScaleZoom(a,u),f&&(u=Math.round(u/(f/100))*(f/100),u=t?Math.ceil(u/f)*f:Math.floor(u/f)*f),Math.max(s,Math.min(h,u))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new r.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(n,t){var i=this._getTopLeftPoint(n,t);return new r.Bounds(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(n){return this.options.crs.getProjectedBounds(n===i?this.getZoom():n)},getPane:function(n){return typeof n=="string"?this._panes[n]:n},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(n,t){var r=this.options.crs;return t=t===i?this._zoom:t,r.scale(n)/r.scale(t)},getScaleZoom:function(n,t){var u=this.options.crs,r;return t=t===i?this._zoom:t,r=u.zoom(n*u.scale(t)),isNaN(r)?Infinity:r},project:function(n,t){return t=t===i?this._zoom:t,this.options.crs.latLngToPoint(r.latLng(n),t)},unproject:function(n,t){return t=t===i?this._zoom:t,this.options.crs.pointToLatLng(r.point(n),t)},layerPointToLatLng:function(n){var t=r.point(n).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(n){var t=this.project(r.latLng(n))._round();return t._subtract(this.getPixelOrigin())},wrapLatLng:function(n){return this.options.crs.wrapLatLng(r.latLng(n))},distance:function(n,t){return this.options.crs.distance(r.latLng(n),r.latLng(t))},containerPointToLayerPoint:function(n){return r.point(n).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(n){return r.point(n).add(this._getMapPanePos())},containerPointToLatLng:function(n){var t=this.containerPointToLayerPoint(r.point(n));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(n){return this.layerPointToContainerPoint(this.latLngToLayerPoint(r.latLng(n)))},mouseEventToContainerPoint:function(n){return r.DomEvent.getMousePosition(n,this._container)},mouseEventToLayerPoint:function(n){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(n))},mouseEventToLatLng:function(n){return this.layerPointToLatLng(this.mouseEventToLayerPoint(n))},_initContainer:function(n){var t=this._container=r.DomUtil.get(n);if(t){if(t._leaflet_id)throw new Error("Map container is already initialized.");}else throw new Error("Map container not found.");r.DomEvent.addListener(t,"scroll",this._onScroll,this);this._containerId=r.Util.stamp(t)},_initLayout:function(){var t=this._container,n;this._fadeAnimated=this.options.fadeAnimation&&r.Browser.any3d;r.DomUtil.addClass(t,"leaflet-container"+(r.Browser.touch?" leaflet-touch":"")+(r.Browser.retina?" leaflet-retina":"")+(r.Browser.ielt9?" leaflet-oldie":"")+(r.Browser.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));n=r.DomUtil.getStyle(t,"position");n!=="absolute"&&n!=="relative"&&n!=="fixed"&&(t.style.position="relative");this._initPanes();this._initControlPos&&this._initControlPos()},_initPanes:function(){var n=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);r.DomUtil.setPosition(this._mapPane,new r.Point(0,0));this.createPane("tilePane");this.createPane("shadowPane");this.createPane("overlayPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");this.options.markerZoomAnimation||(r.DomUtil.addClass(n.markerPane,"leaflet-zoom-hide"),r.DomUtil.addClass(n.shadowPane,"leaflet-zoom-hide"))},_resetView:function(n,t){var u,i;r.DomUtil.setPosition(this._mapPane,new r.Point(0,0));u=!this._loaded;this._loaded=!0;t=this._limitZoom(t);this.fire("viewprereset");i=this._zoom!==t;this._moveStart(i)._move(n,t)._moveEnd(i);this.fire("viewreset");u&&this.fire("load")},_moveStart:function(n){return n&&this.fire("zoomstart"),this.fire("movestart")},_move:function(n,t,r){t===i&&(t=this._zoom);var u=this._zoom!==t;return this._zoom=t,this._lastCenter=n,this._pixelOrigin=this._getNewPixelOrigin(n),(u||r&&r.pinch)&&this.fire("zoom",r),this.fire("move",r)},_moveEnd:function(n){return n&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return r.Util.cancelAnimFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(n){r.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(n))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.");},_initEvents:function(t){if(r.DomEvent){this._targets={};this._targets[r.stamp(this._container)]=this;var i=t?"off":"on";r.DomEvent[i](this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this);this.options.trackResize&&r.DomEvent[i](n,"resize",this._onResize,this);r.Browser.any3d&&this.options.transform3DLimit&&this[i]("moveend",this._onMoveEnd)}},_onResize:function(){r.Util.cancelAnimFrame(this._resizeRequest);this._resizeRequest=r.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var n=this._getMapPanePos();Math.max(Math.abs(n.x),Math.abs(n.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(n,t){for(var f=[],u,e=t==="mouseout"||t==="mouseover",i=n.target||n.srcElement,o=!1;i;){if(u=this._targets[r.stamp(i)],u&&(t==="click"||t==="preclick")&&!n._simulated&&this._draggableMoved(u)){o=!0;break}if(u&&u.listens(t,!0)){if(e&&!r.DomEvent._isExternalTarget(i,n))break;if(f.push(u),e)break}if(i===this._container)break;i=i.parentNode}return f.length||o||e||!r.DomEvent._isExternalTarget(i,n)||(f=[this]),f},_handleDOMEvent:function(n){if(this._loaded&&!r.DomEvent._skipped(n)){var t=n.type==="keypress"&&n.keyCode===13?"click":n.type;t==="mousedown"&&r.DomUtil.preventOutline(n.target||n.srcElement);this._fireDOMEvent(n,t)}},_fireDOMEvent:function(n,t,i){var o,e,u,s,f;if((n.type==="click"&&(o=r.Util.extend({},n),o.type="preclick",this._fireDOMEvent(o,o.type,i)),!n._stopped)&&(i=(i||[]).concat(this._findEventTargets(n,t)),i.length))for(e=i[0],t==="contextmenu"&&e.listens(t,!0)&&r.DomEvent.preventDefault(n),u={originalEvent:n},n.type!=="keypress"&&(s=e instanceof r.Marker,u.containerPoint=s?this.latLngToContainerPoint(e.getLatLng()):this.mouseEventToContainerPoint(n),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=s?e.getLatLng():this.layerPointToLatLng(u.layerPoint)),f=0;f<i.length;f++)if(i[f].fire(t,u,!0),u.originalEvent._stopped||i[f].options.nonBubblingEvents&&r.Util.indexOf(i[f].options.nonBubblingEvents,t)!==-1)return},_draggableMoved:function(n){return n=n.dragging&&n.dragging.enabled()?n:this,n.dragging&&n.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var n=0,t=this._handlers.length;n<t;n++)this._handlers[n].disable()},whenReady:function(n,t){if(this._loaded)n.call(t||this,{target:this});else this.on("load",n,t);return this},_getMapPanePos:function(){return r.DomUtil.getPosition(this._mapPane)||new r.Point(0,0)},_moved:function(){var n=this._getMapPanePos();return n&&!n.equals([0,0])},_getTopLeftPoint:function(n,t){var r=n&&t!==i?this._getNewPixelOrigin(n,t):this.getPixelOrigin();return r.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(n,t){var i=this.getSize()._divideBy(2);return this.project(n,t)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(n,t,i){var r=this._getNewPixelOrigin(i,t);return this.project(n,t)._subtract(r)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(n){return this.latLngToLayerPoint(n).subtract(this._getCenterLayerPoint())},_limitCenter:function(n,t,i){if(!i)return n;var u=this.project(n,t),f=this.getSize().divideBy(2),o=new r.Bounds(u.subtract(f),u.add(f)),e=this._getBoundsOffset(o,i,t);return e.round().equals([0,0])?n:this.unproject(u.add(e),t)},_limitOffset:function(n,t){if(!t)return n;var i=this.getPixelBounds(),u=new r.Bounds(i.min.add(n),i.max.add(n));return n.add(this._getBoundsOffset(u,t))},_getBoundsOffset:function(n,t,i){var u=r.bounds(this.project(t.getNorthEast(),i),this.project(t.getSouthWest(),i)),f=u.min.subtract(n.min),e=u.max.subtract(n.max),o=this._rebound(f.x,-e.x),s=this._rebound(f.y,-e.y);return new r.Point(o,s)},_rebound:function(n,t){return n+t>0?Math.round(n-t)/2:Math.max(0,Math.ceil(n))-Math.max(0,Math.floor(t))},_limitZoom:function(n){var i=this.getMinZoom(),u=this.getMaxZoom(),t=r.Browser.any3d?this.options.zoomSnap:1;return t&&(n=Math.round(n/t)*t),Math.max(i,Math.min(u,n))}});r.map=function(n,t){return new r.Map(n,t)};r.Layer=r.Evented.extend({options:{pane:"overlayPane",nonBubblingEvents:[]},addTo:function(n){return n.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(n){return n&&n.removeLayer(this),this},getPane:function(n){return this._map.getPane(n?this.options[n]||n:this.options.pane)},addInteractiveTarget:function(n){return this._map._targets[r.stamp(n)]=this,this},removeInteractiveTarget:function(n){return delete this._map._targets[r.stamp(n)],this},_layerAdd:function(n){var t=n.target,i;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){i=this.getEvents();t.on(i,this);this.once("remove",function(){t.off(i,this)},this)}this.onAdd(t);this.getAttribution&&this._map.attributionControl&&this._map.attributionControl.addAttribution(this.getAttribution());this.fire("add");t.fire("layeradd",{layer:this})}}});r.Map.include({addLayer:function(n){var t=r.stamp(n);return this._layers[t]?this:(this._layers[t]=n,n._mapToAdd=this,n.beforeAdd&&n.beforeAdd(this),this.whenReady(n._layerAdd,n),this)},removeLayer:function(n){var t=r.stamp(n);if(!this._layers[t])return this;if(this._loaded)n.onRemove(this);return n.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(n.getAttribution()),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:n}),n.fire("remove")),n._map=n._mapToAdd=null,this},hasLayer:function(n){return!!n&&r.stamp(n)in this._layers},eachLayer:function(n,t){for(var i in this._layers)n.call(t,this._layers[i]);return this},_addLayers:function(n){n=n?r.Util.isArray(n)?n:[n]:[];for(var t=0,i=n.length;t<i;t++)this.addLayer(n[t])},_addZoomLimit:function(n){(isNaN(n.options.maxZoom)||!isNaN(n.options.minZoom))&&(this._zoomBoundLayers[r.stamp(n)]=n,this._updateZoomLevels())},_removeZoomLimit:function(n){var t=r.stamp(n);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var n=Infinity,t=-Infinity,f=this._getZoomSpan(),u,r;for(u in this._zoomBoundLayers)r=this._zoomBoundLayers[u].options,n=r.minZoom===i?n:Math.min(n,r.minZoom),t=r.maxZoom===i?t:Math.max(t,r.maxZoom);this._layersMaxZoom=t===-Infinity?i:t;this._layersMinZoom=n===Infinity?i:n;f!==this._getZoomSpan()&&this.fire("zoomlevelschange")}});r.Projection.Mercator={R:6378137,R_MINOR:6356752.3142451793,bounds:r.bounds([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(n){var u=Math.PI/180,i=this.R,t=n.lat*u,f=this.R_MINOR/i,e=Math.sqrt(1-f*f),o=e*Math.sin(t),s=Math.tan(Math.PI/4-t/2)/Math.pow((1-o)/(1+o),e/2);return t=-i*Math.log(Math.max(s,1e-10)),new r.Point(n.lng*u*i,t)},unproject:function(n){for(var e=180/Math.PI,u=this.R,o=this.R_MINOR/u,s=Math.sqrt(1-o*o),h=Math.exp(-n.y/u),i=Math.PI/2-2*Math.atan(h),t,c=0,f=.1;c<15&&Math.abs(f)>1e-7;c++)t=s*Math.sin(i),t=Math.pow((1-t)/(1+t),s/2),f=Math.PI/2-2*Math.atan(h*t)-i,i+=f;return new r.LatLng(i*e,n.x*e/u)}};r.CRS.EPSG3395=r.extend({},r.CRS.Earth,{code:"EPSG:3395",projection:r.Projection.Mercator,transformation:function(){var n=.5/(Math.PI*r.Projection.Mercator.R);return new r.Transformation(n,.5,-n,.5)}()});r.GridLayer=r.Layer.extend({options:{tileSize:256,opacity:1,updateWhenIdle:r.Browser.mobile,updateWhenZooming:!0,updateInterval:200,attribution:null,zIndex:1,bounds:null,minZoom:0,maxZoom:i,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(n){r.setOptions(this,n)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView();this._update()},beforeAdd:function(n){n._addZoomLimit(this)},onRemove:function(n){this._removeAllTiles();r.DomUtil.remove(this._container);n._removeZoomLimit(this);this._container=null;this._tileZoom=null},bringToFront:function(){return this._map&&(r.DomUtil.toFront(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(r.DomUtil.toBack(this._container),this._setAutoZIndex(Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(n){return this.options.opacity=n,this._updateOpacity(),this},setZIndex:function(n){return this.options.zIndex=n,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var n={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=r.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),n.move=this._onMove),this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},createTile:function(){return t.createElement("div")},getTileSize:function(){var n=this.options.tileSize;return n instanceof r.Point?n:new r.Point(n,n)},_updateZIndex:function(){this._container&&this.options.zIndex!==i&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(n){for(var r=this.getPane().children,t=-n(-Infinity,Infinity),u,i=0,f=r.length;i<f;i++)u=r[i].style.zIndex,r[i]!==this._container&&u&&(t=n(t,+u));isFinite(t)&&(this.options.zIndex=t+n(-1,1),this._updateZIndex())},_updateOpacity:function(){var i,n,t;if(this._map&&!r.Browser.ielt9){r.DomUtil.setOpacity(this._container,this.options.opacity);var e=+new Date,u=!1,f=!1;for(i in this._tiles)(n=this._tiles[i],n.current&&n.loaded)&&(t=Math.min(1,(e-n.loaded)/200),r.DomUtil.setOpacity(n.el,t),t<1?u=!0:(n.active&&(f=!0),n.active=!0));f&&!this._noPrune&&this._pruneTiles();u&&(r.Util.cancelAnimFrame(this._fadeFrame),this._fadeFrame=r.Util.requestAnimFrame(this._updateOpacity,this))}},_initContainer:function(){this._container||(this._container=r.DomUtil.create("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,e=this.options.maxZoom,t,n,f;if(u===i)return i;for(t in this._levels)this._levels[t].el.children.length||t===u?this._levels[t].el.style.zIndex=e-Math.abs(u-t):(r.DomUtil.remove(this._levels[t].el),this._removeTilesAtZoom(t),delete this._levels[t]);return n=this._levels[u],f=this._map,n||(n=this._levels[u]={},n.el=r.DomUtil.create("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=f.project(f.unproject(f.getPixelOrigin()),u).round(),n.zoom=u,this._setZoomTransform(n,f.getCenter(),f.getZoom()),r.Util.falseFn(n.el.offsetWidth)),this._level=n,n},_pruneTiles:function(){var t,i,r,n;if(this._map){if(r=this._map.getZoom(),r>this.options.maxZoom||r<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)i=this._tiles[t],i.current&&!i.active&&(n=i.coords,this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2));for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(n){for(var t in this._tiles)this._tiles[t].coords.z===n&&this._removeTile(t)},_removeAllTiles:function(){for(var n in this._tiles)this._removeTile(n)},_invalidateAll:function(){for(var n in this._levels)r.DomUtil.remove(this._levels[n].el),delete this._levels[n];this._removeAllTiles();this._tileZoom=null},_retainParent:function(n,t,i,u){var o=Math.floor(n/2),s=Math.floor(t/2),e=i-1,h=new r.Point(+o,+s),c,f;return(h.z=+e,c=this._tileCoordsToKey(h),f=this._tiles[c],f&&f.active)?(f.retain=!0,!0):(f&&f.loaded&&(f.retain=!0),e>u)?this._retainParent(o,s,e,u):!1},_retainChildren:function(n,t,i,u){for(var e,s,h,f,o=2*n;o<2*n+2;o++)for(e=2*t;e<2*t+2;e++){if(s=new r.Point(o,e),s.z=i+1,h=this._tileCoordsToKey(s),f=this._tiles[h],f&&f.active){f.retain=!0;continue}else f&&f.loaded&&(f.retain=!0);i+1<u&&this._retainChildren(o,e,i+1,u)}},_resetView:function(n){var t=n&&(n.pinch||n.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(n){this._setView(n.center,n.zoom,!0,n.noUpdate)},_setView:function(n,t,r,u){var f=Math.round(t),e;(this.options.maxZoom!==i&&f>this.options.maxZoom||this.options.minZoom!==i&&f<this.options.minZoom)&&(f=i);e=this.options.updateWhenZooming&&f!==this._tileZoom;(!u||e)&&(this._tileZoom=f,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),f!==i&&this._update(n),r||this._pruneTiles(),this._noPrune=!!r);this._setZoomTransforms(n,t)},_setZoomTransforms:function(n,t){for(var i in this._levels)this._setZoomTransform(this._levels[i],n,t)},_setZoomTransform:function(n,t,i){var u=this._map.getZoomScale(i,n.zoom),f=n.origin.multiplyBy(u).subtract(this._map._getNewPixelOrigin(t,i)).round();r.Browser.any3d?r.DomUtil.setTransform(n.el,f,u):r.DomUtil.setPosition(n.el,f)},_resetGrid:function(){var t=this._map,n=t.options.crs,i=this._tileSize=this.getTileSize(),r=this._tileZoom,u=this._map.getPixelWorldBounds(this._tileZoom);u&&(this._globalTileRange=this._pxBoundsToTileRange(u));this._wrapX=n.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,n.wrapLng[0]],r).x/i.x),Math.ceil(t.project([0,n.wrapLng[1]],r).x/i.y)];this._wrapY=n.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([n.wrapLat[0],0],r).y/i.x),Math.ceil(t.project([n.wrapLat[1],0],r).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(n){var t=this._map,f=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),e=t.getZoomScale(f,this._tileZoom),i=t.project(n,this._tileZoom).floor(),u=t.getSize().divideBy(e*2);return new r.Bounds(i.subtract(u),i.add(u))},_update:function(n){var l=this._map,a,v,s,h,u,e,y,p;if(l&&(a=l.getZoom(),n===i&&(n=l.getCenter()),this._tileZoom!==i)){var b=this._getTiledPixelBounds(n),f=this._pxBoundsToTileRange(b),w=f.getCenter(),o=[],c=this.options.keepBuffer,k=new r.Bounds(f.getBottomLeft().subtract([c,-c]),f.getTopRight().add([c,-c]));for(v in this._tiles)s=this._tiles[v].coords,s.z===this._tileZoom&&k.contains(r.point(s.x,s.y))||(this._tiles[v].current=!1);if(Math.abs(a-this._tileZoom)>1){this._setView(n,a);return}for(h=f.min.y;h<=f.max.y;h++)for(u=f.min.x;u<=f.max.x;u++)(e=new r.Point(u,h),e.z=this._tileZoom,this._isValidTile(e))&&(y=this._tiles[this._tileCoordsToKey(e)],y?y.current=!0:o.push(e));if(o.sort(function(n,t){return n.distanceTo(w)-t.distanceTo(w)}),o.length!==0){for(this._loading||(this._loading=!0,this.fire("loading")),p=t.createDocumentFragment(),u=0;u<o.length;u++)this._addTile(o[u],p);this._level.el.appendChild(p)}}},_isValidTile:function(n){var i=this._map.options.crs,t,u;return!i.infinite&&(t=this._globalTileRange,!i.wrapLng&&(n.x<t.min.x||n.x>t.max.x)||!i.wrapLat&&(n.y<t.min.y||n.y>t.max.y))?!1:this.options.bounds?(u=this._tileCoordsToBounds(n),r.latLngBounds(this.options.bounds).overlaps(u)):!0},_keyToBounds:function(n){return this._tileCoordsToBounds(this._keyToTileCoords(n))},_tileCoordsToBounds:function(n){var t=this._map,f=this.getTileSize(),e=n.scaleBy(f),o=e.add(f),i=t.unproject(e,n.z),u=t.unproject(o,n.z);return this.options.noWrap||(i=t.wrapLatLng(i),u=t.wrapLatLng(u)),new r.LatLngBounds(i,u)},_tileCoordsToKey:function(n){return n.x+":"+n.y+":"+n.z},_keyToTileCoords:function(n){var t=n.split(":"),i=new r.Point(+t[0],+t[1]);return i.z=+t[2],i},_removeTile:function(n){var t=this._tiles[n];t&&(r.DomUtil.remove(t.el),delete this._tiles[n],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(n)}))},_initTile:function(n){r.DomUtil.addClass(n,"leaflet-tile");var t=this.getTileSize();n.style.width=t.x+"px";n.style.height=t.y+"px";n.onselectstart=r.Util.falseFn;n.onmousemove=r.Util.falseFn;r.Browser.ielt9&&this.options.opacity<1&&r.DomUtil.setOpacity(n,this.options.opacity);r.Browser.android&&!r.Browser.android23&&(n.style.WebkitBackfaceVisibility="hidden")},_addTile:function(n,t){var u=this._getTilePos(n),f=this._tileCoordsToKey(n),i=this.createTile(this._wrapCoords(n),r.bind(this._tileReady,this,n));this._initTile(i);this.createTile.length<2&&r.Util.requestAnimFrame(r.bind(this._tileReady,this,n,null,i));r.DomUtil.setPosition(i,u);this._tiles[f]={el:i,coords:n,current:!0};t.appendChild(i);this.fire("tileloadstart",{tile:i,coords:n})},_tileReady:function(n,t,i){if(this._map){t&&this.fire("tileerror",{error:t,tile:i,coords:n});var u=this._tileCoordsToKey(n);(i=this._tiles[u],i)&&(i.loaded=+new Date,this._map._fadeAnimated?(r.DomUtil.setOpacity(i.el,0),r.Util.cancelAnimFrame(this._fadeFrame),this._fadeFrame=r.Util.requestAnimFrame(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),t||(r.DomUtil.addClass(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:n})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),r.Browser.ielt9||!this._map._fadeAnimated?r.Util.requestAnimFrame(this._pruneTiles,this):setTimeout(r.bind(this._pruneTiles,this),250)))}},_getTilePos:function(n){return n.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(n){var t=new r.Point(this._wrapX?r.Util.wrapNum(n.x,this._wrapX):n.x,this._wrapY?r.Util.wrapNum(n.y,this._wrapY):n.y);return t.z=n.z,t},_pxBoundsToTileRange:function(n){var t=this.getTileSize();return new r.Bounds(n.min.unscaleBy(t).floor(),n.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var n in this._tiles)if(!this._tiles[n].loaded)return!1;return!0}});r.gridLayer=function(n){return new r.GridLayer(n)};r.TileLayer=r.GridLayer.extend({options:{minZoom:0,maxZoom:18,maxNativeZoom:null,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(n,t){if(this._url=n,t=r.setOptions(this,t),t.detectRetina&&r.Browser.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),typeof t.subdomains=="string"&&(t.subdomains=t.subdomains.split("")),!r.Browser.android)this.on("tileunload",this._onTileRemove)},setUrl:function(n,t){return this._url=n,t||this.redraw(),this},createTile:function(n,i){var u=t.createElement("img");r.DomEvent.on(u,"load",r.bind(this._tileOnLoad,this,i,u));r.DomEvent.on(u,"error",r.bind(this._tileOnError,this,i,u));return this.options.crossOrigin&&(u.crossOrigin=""),u.alt="",u.src=this.getTileUrl(n),u},getTileUrl:function(n){var t={r:r.Browser.retina?"@2x":"",s:this._getSubdomain(n),x:n.x,y:n.y,z:this._getZoomForUrl()},i;return this._map&&!this._map.options.crs.infinite&&(i=this._globalTileRange.max.y-n.y,this.options.tms&&(t.y=i),t["-y"]=i),r.Util.template(this._url,r.extend(t,this.options))},_tileOnLoad:function(n,t){r.Browser.ielt9?setTimeout(r.bind(n,this,null,t),0):n(null,t)},_tileOnError:function(n,t,i){var r=this.options.errorTileUrl;r&&(t.src=r);n(i,t)},getTileSize:function(){var u=this._map,t=r.GridLayer.prototype.getTileSize.call(this),i=this._tileZoom+this.options.zoomOffset,n=this.options.maxNativeZoom;return n!==null&&i>n?t.divideBy(u.getZoomScale(n,i)).round():t},_onTileRemove:function(n){n.tile.onload=null},_getZoomForUrl:function(){var n=this.options,t=this._tileZoom;return n.zoomReverse&&(t=n.maxZoom-t),t+=n.zoomOffset,n.maxNativeZoom!==null?Math.min(t,n.maxNativeZoom):t},_getSubdomain:function(n){var t=Math.abs(n.x+n.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var t,n;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&(n=this._tiles[t].el,n.onload=r.Util.falseFn,n.onerror=r.Util.falseFn,n.complete||(n.src=r.Util.emptyImageUrl,r.DomUtil.remove(n)))}});r.tileLayer=function(n,t){return new r.TileLayer(n,t)};r.TileLayer.WMS=r.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(n,t){var i,u;this._url=n;i=r.extend({},this.defaultWmsParams);for(u in t)u in this.options||(i[u]=t[u]);t=r.setOptions(this,t);i.width=i.height=t.tileSize*(t.detectRetina&&r.Browser.retina?2:1);this.wmsParams=i},onAdd:function(n){this._crs=this.options.crs||n.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code;r.TileLayer.prototype.onAdd.call(this,n)},getTileUrl:function(n){var u=this._tileCoordsToBounds(n),t=this._crs.project(u.getNorthWest()),i=this._crs.project(u.getSouthEast()),e=(this._wmsVersion>=1.3&&this._crs===r.CRS.EPSG4326?[i.y,t.x,t.y,i.x]:[t.x,i.y,i.x,t.y]).join(","),f=r.TileLayer.prototype.getTileUrl.call(this,n);return f+r.Util.getParamString(this.wmsParams,f,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+e},setParams:function(n,t){return r.extend(this.wmsParams,n),t||this.redraw(),this}});r.tileLayer.wms=function(n,t){return new r.TileLayer.WMS(n,t)};r.ImageOverlay=r.Layer.extend({options:{opacity:1,alt:"",interactive:!1,attribution:null,crossOrigin:!1},initialize:function(n,t,i){this._url=n;this._bounds=r.latLngBounds(t);r.setOptions(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity());this.options.interactive&&(r.DomUtil.addClass(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image));this.getPane().appendChild(this._image);this._reset()},onRemove:function(){r.DomUtil.remove(this._image);this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(n){return this.options.opacity=n,this._image&&this._updateOpacity(),this},setStyle:function(n){return n.opacity&&this.setOpacity(n.opacity),this},bringToFront:function(){return this._map&&r.DomUtil.toFront(this._image),this},bringToBack:function(){return this._map&&r.DomUtil.toBack(this._image),this},setUrl:function(n){return this._url=n,this._image&&(this._image.src=n),this},setBounds:function(n){return this._bounds=n,this._map&&this._reset(),this},getAttribution:function(){return this.options.attribution},getEvents:function(){var n={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var n=this._image=r.DomUtil.create("img","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":""));n.onselectstart=r.Util.falseFn;n.onmousemove=r.Util.falseFn;n.onload=r.bind(this.fire,this,"load");this.options.crossOrigin&&(n.crossOrigin="");n.src=this._url;n.alt=this.options.alt},_animateZoom:function(n){var t=this._map.getZoomScale(n.zoom),i=this._map._latLngToNewLayerPoint(this._bounds.getNorthWest(),n.zoom,n.center);r.DomUtil.setTransform(this._image,i,t)},_reset:function(){var n=this._image,t=new r.Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=t.getSize();r.DomUtil.setPosition(n,t.min);n.style.width=i.x+"px";n.style.height=i.y+"px"},_updateOpacity:function(){r.DomUtil.setOpacity(this._image,this.options.opacity)}});r.imageOverlay=function(n,t,i){return new r.ImageOverlay(n,t,i)};r.Icon=r.Class.extend({initialize:function(n){r.setOptions(this,n)},createIcon:function(n){return this._createIcon("icon",n)},createShadow:function(n){return this._createIcon("shadow",n)},_createIcon:function(n,t){var r=this._getIconUrl(n),i;if(!r){if(n==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}return i=this._createImg(r,t&&t.tagName==="IMG"?t:null),this._setIconStyles(i,n),i},_setIconStyles:function(n,t){var f=this.options,u=f[t+"Size"],i,e;typeof u=="number"&&(u=[u,u]);i=r.point(u);e=r.point(t==="shadow"&&f.shadowAnchor||f.iconAnchor||i&&i.divideBy(2,!0));n.className="leaflet-marker-"+t+" "+(f.className||"");e&&(n.style.marginLeft=-e.x+"px",n.style.marginTop=-e.y+"px");i&&(n.style.width=i.x+"px",n.style.height=i.y+"px")},_createImg:function(n,i){return i=i||t.createElement("img"),i.src=n,i},_getIconUrl:function(n){return r.Browser.retina&&this.options[n+"RetinaUrl"]||this.options[n+"Url"]}});r.icon=function(n){return new r.Icon(n)};r.Icon.Default=r.Icon.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(n){return r.Icon.Default.imagePath||(r.Icon.Default.imagePath=this._detectIconPath()),(this.options.imagePath||r.Icon.Default.imagePath)+r.Icon.prototype._getIconUrl.call(this,n)},_detectIconPath:function(){var n=r.DomUtil.create("div","leaflet-default-icon-path",t.body),i=r.DomUtil.getStyle(n,"background-image")||r.DomUtil.getStyle(n,"backgroundImage");return t.body.removeChild(n),i.indexOf("url")===0?i.replace(/^url\([\"\']?/,"").replace(/marker-icon\.png[\"\']?\)$/,""):""}});r.Marker=r.Layer.extend({options:{icon:new r.Icon.Default,interactive:!0,draggable:!1,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",nonBubblingEvents:["click","dblclick","mouseover","mouseout","contextmenu"]},initialize:function(n,t){r.setOptions(this,t);this._latlng=r.latLng(n)},onAdd:function(n){if(this._zoomAnimated=this._zoomAnimated&&n.options.markerZoomAnimation,this._zoomAnimated)n.on("zoomanim",this._animateZoom,this);this._initIcon();this.update()},onRemove:function(n){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks());this._zoomAnimated&&n.off("zoomanim",this._animateZoom,this);this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(n){var t=this._latlng;return this._latlng=r.latLng(n),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(n){return this.options.zIndexOffset=n,this.update()},setIcon:function(n){return this.options.icon=n,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon){var n=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(n)}return this},_initIcon:function(){var n=this.options,f="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),t=n.icon.createIcon(this._icon),e=!1,i,u;if(t!==this._icon&&(this._icon&&this._removeIcon(),e=!0,n.title&&(t.title=n.title),n.alt&&(t.alt=n.alt)),r.DomUtil.addClass(t,f),n.keyboard&&(t.tabIndex="0"),this._icon=t,n.riseOnHover)this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});i=n.icon.createShadow(this._shadow);u=!1;i!==this._shadow&&(this._removeShadow(),u=!0);i&&r.DomUtil.addClass(i,f);this._shadow=i;n.opacity<1&&this._updateOpacity();e&&this.getPane().appendChild(this._icon);this._initInteraction();i&&u&&this.getPane("shadowPane").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex});r.DomUtil.remove(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){this._shadow&&r.DomUtil.remove(this._shadow);this._shadow=null},_setPos:function(n){r.DomUtil.setPosition(this._icon,n);this._shadow&&r.DomUtil.setPosition(this._shadow,n);this._zIndex=n.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(n){this._icon.style.zIndex=this._zIndex+n},_animateZoom:function(n){var t=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(r.DomUtil.addClass(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),r.Handler.MarkerDrag)){var n=this.options.draggable;this.dragging&&(n=this.dragging.enabled(),this.dragging.disable());this.dragging=new r.Handler.MarkerDrag(this);n&&this.dragging.enable()}},setOpacity:function(n){return this.options.opacity=n,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var n=this.options.opacity;r.DomUtil.setOpacity(this._icon,n);this._shadow&&r.DomUtil.setOpacity(this._shadow,n)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}});r.marker=function(n,t){return new r.Marker(n,t)};r.DivIcon=r.Icon.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(n){var i=n&&n.tagName==="DIV"?n:t.createElement("div"),u=this.options,f;return i.innerHTML=u.html!==!1?u.html:"",u.bgPos&&(f=r.point(u.bgPos),i.style.backgroundPosition=-f.x+"px "+-f.y+"px"),this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});r.divIcon=function(n){return new r.DivIcon(n)};r.DivOverlay=r.Layer.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(n,t){r.setOptions(this,n);this._source=t},onAdd:function(n){this._zoomAnimated=n._zoomAnimated;this._container||this._initLayout();n._fadeAnimated&&r.DomUtil.setOpacity(this._container,0);clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();n._fadeAnimated&&r.DomUtil.setOpacity(this._container,1);this.bringToFront()},onRemove:function(n){n._fadeAnimated?(r.DomUtil.setOpacity(this._container,0),this._removeTimeout=setTimeout(r.bind(r.DomUtil.remove,r.DomUtil,this._container),200)):r.DomUtil.remove(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(n){return this._latlng=r.latLng(n),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(n){return this._content=n,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var n={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&r.DomUtil.toFront(this._container),this},bringToBack:function(){return this._map&&r.DomUtil.toBack(this._container),this},_updateContent:function(){if(this._content){var n=this._contentNode,t=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof t=="string")n.innerHTML=t;else{while(n.hasChildNodes())n.removeChild(n.firstChild);n.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){var t,i;if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),n=r.point(this.options.offset),f=this._getAnchor();this._zoomAnimated?r.DomUtil.setPosition(this._container,u.add(f)):n=n.add(u).add(f);t=this._containerBottom=-n.y;i=this._containerLeft=-Math.round(this._containerWidth/2)+n.x;this._container.style.bottom=t+"px";this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});r.Popup=r.DivOverlay.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,className:""},openOn:function(n){return n.openPopup(this),this},onAdd:function(n){if(r.DivOverlay.prototype.onAdd.call(this,n),n.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),!(this._source instanceof r.Path)))this._source.on("preclick",r.DomEvent.stopPropagation)},onRemove:function(n){r.DivOverlay.prototype.onRemove.call(this,n);n.fire("popupclose",{popup:this});this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof r.Path||this._source.off("preclick",r.DomEvent.stopPropagation))},getEvents:function(){var n=r.DivOverlay.prototype.getEvents.call(this);return("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(n.preclick=this._close),this.options.keepInView&&(n.moveend=this._adjustPan),n},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var n="leaflet-popup",u=this._container=r.DomUtil.create("div",n+" "+(this.options.className||"")+" leaflet-zoom-animated"),t,i;if(this.options.closeButton){t=this._closeButton=r.DomUtil.create("a",n+"-close-button",u);t.href="#close";t.innerHTML="&#215;";r.DomEvent.on(t,"click",this._onCloseButtonClick,this)}i=this._wrapper=r.DomUtil.create("div",n+"-content-wrapper",u);this._contentNode=r.DomUtil.create("div",n+"-content",i);r.DomEvent.disableClickPropagation(i).disableScrollPropagation(this._contentNode).on(i,"contextmenu",r.DomEvent.stopPropagation);this._tipContainer=r.DomUtil.create("div",n+"-tip-container",u);this._tip=r.DomUtil.create("div",n+"-tip",this._tipContainer)},_updateLayout:function(){var i=this._contentNode,n=i.style,t;n.width="";n.whiteSpace="nowrap";t=i.offsetWidth;t=Math.min(t,this.options.maxWidth);t=Math.max(t,this.options.minWidth);n.width=t+1+"px";n.whiteSpace="";n.height="";var e=i.offsetHeight,u=this.options.maxHeight,f="leaflet-popup-scrolled";u&&e>u?(n.height=u+"px",r.DomUtil.addClass(i,f)):r.DomUtil.removeClass(i,f);this._containerWidth=this._container.offsetWidth},_animateZoom:function(n){var t=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center),i=this._getAnchor();r.DomUtil.setPosition(this._container,t.add(i))},_adjustPan:function(){if(this.options.autoPan&&(!this._map._panAnim||!this._map._panAnim._inProgress)){var o=this._map,a=parseInt(r.DomUtil.getStyle(this._container,"marginBottom"),10)||0,s=this._container.offsetHeight+a,h=this._containerWidth,c=new r.Point(this._containerLeft,-s-this._containerBottom);c._add(r.DomUtil.getPosition(this._container));var n=o.layerPointToContainerPoint(c),l=r.point(this.options.autoPanPadding),u=r.point(this.options.autoPanPaddingTopLeft||l),f=r.point(this.options.autoPanPaddingBottomRight||l),e=o.getSize(),t=0,i=0;n.x+h+f.x>e.x&&(t=n.x+h-e.x+f.x);n.x-t-u.x<0&&(t=n.x-u.x);n.y+s+f.y>e.y&&(i=n.y+s-e.y+f.y);n.y-i-u.y<0&&(i=n.y-u.y);(t||i)&&o.fire("autopanstart").panBy([t,i])}},_onCloseButtonClick:function(n){this._close();r.DomEvent.stop(n)},_getAnchor:function(){return r.point(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});r.popup=function(n,t){return new r.Popup(n,t)};r.Map.mergeOptions({closePopupOnClick:!0});r.Map.include({openPopup:function(n,t,i){return(n instanceof r.Popup||(n=new r.Popup(i).setContent(n)),t&&n.setLatLng(t),this.hasLayer(n))?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=n,this.addLayer(n))},closePopup:function(n){return n&&n!==this._popup||(n=this._popup,this._popup=null),n&&this.removeLayer(n),this}});r.Layer.include({bindPopup:function(n,t){if(n instanceof r.Popup?(r.setOptions(n,t),this._popup=n,n._source=this):((!this._popup||t)&&(this._popup=new r.Popup(t,this)),this._popup.setContent(n)),!this._popupHandlersAdded){this.on({click:this._openPopup,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=!0}return this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(n,t){if(n instanceof r.Layer||(t=n,n=this),n instanceof r.FeatureGroup)for(var i in this._layers){n=this._layers[i];break}return t||(t=n.getCenter?n.getCenter():n.getLatLng()),this._popup&&this._map&&(this._popup._source=n,this._popup.update(),this._map.openPopup(this._popup,t)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(n){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(n)),this},isPopupOpen:function(){return this._popup.isOpen()},setPopupContent:function(n){return this._popup&&this._popup.setContent(n),this},getPopup:function(){return this._popup},_openPopup:function(n){var t=n.layer||n.target;if(this._popup&&this._map){if(r.DomEvent.stop(n),t instanceof r.Path){this.openPopup(n.layer||n.target,n.latlng);return}this._map.hasLayer(this._popup)&&this._popup._source===t?this.closePopup():this.openPopup(t,n.latlng)}},_movePopup:function(n){this._popup.setLatLng(n.latlng)}});r.Marker.include({_getPopupAnchor:function(){return this.options.icon.options.popupAnchor||[0,0]}});r.Tooltip=r.DivOverlay.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(n){r.DivOverlay.prototype.onAdd.call(this,n);this.setOpacity(this.options.opacity);n.fire("tooltipopen",{tooltip:this});this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(n){r.DivOverlay.prototype.onRemove.call(this,n);n.fire("tooltipclose",{tooltip:this});this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var n=r.DivOverlay.prototype.getEvents.call(this);return r.Browser.touch&&!this.options.permanent&&(n.preclick=this._close),n},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var n="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=r.DomUtil.create("div",n)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(n){var s=this._map,i=this._container,h=s.latLngToContainerPoint(s.getCenter()),c=s.layerPointToContainerPoint(n),u=this.options.direction,e=i.offsetWidth,o=i.offsetHeight,t=r.point(this.options.offset),f=this._getAnchor();u==="top"?n=n.add(r.point(-e/2+t.x,-o+t.y+f.y)):u==="bottom"?n=n.subtract(r.point(e/2-t.x,-t.y)):u==="center"?n=n.subtract(r.point(e/2+t.x,o/2-f.y+t.y)):u==="right"||u==="auto"&&c.x<h.x?(u="right",n=n.add([t.x+f.x,f.y-o/2+t.y])):(u="left",n=n.subtract(r.point(e+f.x-t.x,o/2-f.y-t.y)));r.DomUtil.removeClass(i,"leaflet-tooltip-right");r.DomUtil.removeClass(i,"leaflet-tooltip-left");r.DomUtil.removeClass(i,"leaflet-tooltip-top");r.DomUtil.removeClass(i,"leaflet-tooltip-bottom");r.DomUtil.addClass(i,"leaflet-tooltip-"+u);r.DomUtil.setPosition(i,n)},_updatePosition:function(){var n=this._map.latLngToLayerPoint(this._latlng);this._setPosition(n)},setOpacity:function(n){this.options.opacity=n;this._container&&r.DomUtil.setOpacity(this._container,n)},_animateZoom:function(n){var t=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center);this._setPosition(t)},_getAnchor:function(){return r.point(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});r.tooltip=function(n,t){return new r.Tooltip(n,t)};r.Map.include({openTooltip:function(n,t,i){return(n instanceof r.Tooltip||(n=new r.Tooltip(i).setContent(n)),t&&n.setLatLng(t),this.hasLayer(n))?this:this.addLayer(n)},closeTooltip:function(n){return n&&this.removeLayer(n),this}});r.Layer.include({bindTooltip:function(n,t){return n instanceof r.Tooltip?(r.setOptions(n,t),this._tooltip=n,n._source=this):((!this._tooltip||t)&&(this._tooltip=r.tooltip(t,this)),this._tooltip.setContent(n)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(n){if(n||!this._tooltipHandlersAdded){var i=n?"off":"on",t={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?t.add=this._openTooltip:(t.mouseover=this._openTooltip,t.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(t.mousemove=this._moveTooltip),r.Browser.touch&&(t.click=this._openTooltip));this[i](t);this._tooltipHandlersAdded=!n}},openTooltip:function(n,t){if(n instanceof r.Layer||(t=n,n=this),n instanceof r.FeatureGroup)for(var i in this._layers){n=this._layers[i];break}return t||(t=n.getCenter?n.getCenter():n.getLatLng()),this._tooltip&&this._map&&(this._tooltip._source=n,this._tooltip.update(),this._map.openTooltip(this._tooltip,t),this._tooltip.options.interactive&&this._tooltip._container&&(r.DomUtil.addClass(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(r.DomUtil.removeClass(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(n){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(n)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(n){return this._tooltip&&this._tooltip.setContent(n),this},getTooltip:function(){return this._tooltip},_openTooltip:function(n){var t=n.layer||n.target;this._tooltip&&this._map&&this.openTooltip(t,this._tooltip.options.sticky?n.latlng:i)},_moveTooltip:function(n){var t=n.latlng,i,r;this._tooltip.options.sticky&&n.originalEvent&&(i=this._map.mouseEventToContainerPoint(n.originalEvent),r=this._map.containerPointToLayerPoint(i),t=this._map.layerPointToLatLng(r));this._tooltip.setLatLng(t)}});r.Marker.include({_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor||[0,0]}});r.LayerGroup=r.Layer.extend({initialize:function(n){this._layers={};var t,i;if(n)for(t=0,i=n.length;t<i;t++)this.addLayer(n[t])},addLayer:function(n){var t=this.getLayerId(n);return this._layers[t]=n,this._map&&this._map.addLayer(n),this},removeLayer:function(n){var t=n in this._layers?n:this.getLayerId(n);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(n){return!!n&&(n in this._layers||this.getLayerId(n)in this._layers)},clearLayers:function(){for(var n in this._layers)this.removeLayer(this._layers[n]);return this},invoke:function(n){var r=Array.prototype.slice.call(arguments,1),i,t;for(i in this._layers)t=this._layers[i],t[n]&&t[n].apply(t,r);return this},onAdd:function(n){for(var t in this._layers)n.addLayer(this._layers[t])},onRemove:function(n){for(var t in this._layers)n.removeLayer(this._layers[t])},eachLayer:function(n,t){for(var i in this._layers)n.call(t,this._layers[i]);return this},getLayer:function(n){return this._layers[n]},getLayers:function(){var n=[],t;for(t in this._layers)n.push(this._layers[t]);return n},setZIndex:function(n){return this.invoke("setZIndex",n)},getLayerId:function(n){return r.stamp(n)}});r.layerGroup=function(n){return new r.LayerGroup(n)};r.FeatureGroup=r.LayerGroup.extend({addLayer:function(n){return this.hasLayer(n)?this:(n.addEventParent(this),r.LayerGroup.prototype.addLayer.call(this,n),this.fire("layeradd",{layer:n}))},removeLayer:function(n){return this.hasLayer(n)?(n in this._layers&&(n=this._layers[n]),n.removeEventParent(this),r.LayerGroup.prototype.removeLayer.call(this,n),this.fire("layerremove",{layer:n})):this},setStyle:function(n){return this.invoke("setStyle",n)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new r.LatLngBounds,i,n;for(i in this._layers)n=this._layers[i],t.extend(n.getBounds?n.getBounds():n.getLatLng());return t}});r.featureGroup=function(n){return new r.FeatureGroup(n)};r.Renderer=r.Layer.extend({options:{padding:.1},initialize:function(n){r.setOptions(this,n);r.stamp(this)},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&r.DomUtil.addClass(this._container,"leaflet-zoom-animated"));this.getPane().appendChild(this._container);this._update()},onRemove:function(){r.DomUtil.remove(this._container)},getEvents:function(){var n={viewreset:this._reset,zoom:this._onZoom,moveend:this._update};return this._zoomAnimated&&(n.zoomanim=this._onAnimZoom),n},_onAnimZoom:function(n){this._updateTransform(n.center,n.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(n,t){var i=this._map.getZoomScale(t,this._zoom),e=r.DomUtil.getPosition(this._container),u=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,t),s=this._map.project(n,t),h=s.subtract(o),f=u.multiplyBy(-i).add(e).add(u).subtract(h);r.Browser.any3d?r.DomUtil.setTransform(this._container,f,i):r.DomUtil.setPosition(this._container,f)},_reset:function(){this._update();this._updateTransform(this._center,this._zoom)},_update:function(){var n=this.options.padding,t=this._map.getSize(),i=this._map.containerPointToLayerPoint(t.multiplyBy(-n)).round();this._bounds=new r.Bounds(i,i.add(t.multiplyBy(1+n*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});r.Map.include({getRenderer:function(n){var t=n.options.renderer||this._getPaneRenderer(n.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this.options.preferCanvas&&r.canvas()||r.svg()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(n){if(n==="overlayPane"||n===i)return!1;var t=this._paneRenderers[n];return t===i&&(t=r.SVG&&r.svg({pane:n})||r.Canvas&&r.canvas({pane:n}),this._paneRenderers[n]=t),t}});r.Path=r.Layer.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0},beforeAdd:function(n){this._renderer=n.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this);this._renderer.on("update",this._update,this)},onRemove:function(){this._renderer._removePath(this);this._renderer.off("update",this._update,this)},getEvents:function(){return{zoomend:this._project,viewreset:this._reset}},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(n){return r.setOptions(this,n),this._renderer&&this._renderer._updateStyle(this),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(r.Browser.touch?10:0)}});r.LineUtil={simplify:function(n,t){if(!t||!n.length)return n.slice();var i=t*t;return n=this._reducePoints(n,i),this._simplifyDP(n,i)},pointToSegmentDistance:function(n,t,i){return Math.sqrt(this._sqClosestPointOnSegment(n,t,i,!0))},closestPointOnSegment:function(n,t,i){return this._sqClosestPointOnSegment(n,t,i)},_simplifyDP:function(n,t){var u=n.length,o=(typeof Uint8Array=="undefined"?"undefined":_typeof(Uint8Array))!==i+""?Uint8Array:Array,f=new o(u),r,e;for(f[0]=f[u-1]=1,this._simplifyDPStep(n,f,t,0,u-1),e=[],r=0;r<u;r++)f[r]&&e.push(n[r]);return e},_simplifyDPStep:function(n,t,i,r,u){for(var o=0,f,s,e=r+1;e<=u-1;e++)s=this._sqClosestPointOnSegment(n[e],n[r],n[u],!0),s>o&&(f=e,o=s);o>i&&(t[f]=1,this._simplifyDPStep(n,t,i,r,f),this._simplifyDPStep(n,t,i,f,u))},_reducePoints:function(n,t){for(var r=[n[0]],i=1,u=0,f=n.length;i<f;i++)this._sqDist(n[i],n[u])>t&&(r.push(n[i]),u=i);return u<f-1&&r.push(n[f-1]),r},clipSegment:function(n,t,i,r,u){var f=r?this._lastCode:this._getBitCode(n,i),e=this._getBitCode(t,i),s,o,h;for(this._lastCode=e;;){if(!(f|e))return[n,t];if(f&e)return!1;s=f||e;o=this._getEdgeIntersection(n,t,s,i,u);h=this._getBitCode(o,i);s===f?(n=o,f=h):(t=o,e=h)}},_getEdgeIntersection:function(n,t,i,u,f){var s=t.x-n.x,h=t.y-n.y,c=u.min,l=u.max,e,o;return i&8?(e=n.x+s*(l.y-n.y)/h,o=l.y):i&4?(e=n.x+s*(c.y-n.y)/h,o=c.y):i&2?(e=l.x,o=n.y+h*(l.x-n.x)/s):i&1&&(e=c.x,o=n.y+h*(c.x-n.x)/s),new r.Point(e,o,f)},_getBitCode:function(n,t){var i=0;return n.x<t.min.x?i|=1:n.x>t.max.x&&(i|=2),n.y<t.min.y?i|=4:n.y>t.max.y&&(i|=8),i},_sqDist:function(n,t){var i=t.x-n.x,r=t.y-n.y;return i*i+r*r},_sqClosestPointOnSegment:function(n,t,i,u){var o=t.x,s=t.y,f=i.x-o,e=i.y-s,c=f*f+e*e,h;return c>0&&(h=((n.x-o)*f+(n.y-s)*e)/c,h>1?(o=i.x,s=i.y):h>0&&(o+=f*h,s+=e*h)),f=n.x-o,e=n.y-s,u?f*f+e*e:new r.Point(o,s)}};r.Polyline=r.Path.extend({options:{smoothFactor:1,noClip:!1},initialize:function(n,t){r.setOptions(this,t);this._setLatLngs(n)},getLatLngs:function(){return this._latlngs},setLatLngs:function(n){return this._setLatLngs(n),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(n){for(var f=Infinity,i=null,c=r.LineUtil._sqClosestPointOnSegment,e,o,u,t,l,s,h=0,a=this._parts.length;h<a;h++)for(u=this._parts[h],t=1,l=u.length;t<l;t++)e=u[t-1],o=u[t],s=c(n,e,o,!0),s<f&&(f=s,i=c(n,e,o));return i&&(i.distance=Math.sqrt(f)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var n,r,e,u,f,t,o,i=this._rings[0],s=i.length;if(!s)return null;for(n=0,r=0;n<s-1;n++)r+=i[n].distanceTo(i[n+1])/2;if(r===0)return this._map.layerPointToLatLng(i[0]);for(n=0,u=0;n<s-1;n++)if(f=i[n],t=i[n+1],e=f.distanceTo(t),u+=e,u>r)return o=(u-r)/e,this._map.layerPointToLatLng([t.x-o*(t.x-f.x),t.y-o*(t.y-f.y)])},getBounds:function(){return this._bounds},addLatLng:function(n,t){return t=t||this._defaultShape(),n=r.latLng(n),t.push(n),this._bounds.extend(n),this.redraw()},_setLatLngs:function(n){this._bounds=new r.LatLngBounds;this._latlngs=this._convertLatLngs(n)},_defaultShape:function(){return r.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(n){for(var i=[],u=r.Polyline._flat(n),t=0,f=n.length;t<f;t++)u?(i[t]=r.latLng(n[t]),this._bounds.extend(i[t])):i[t]=this._convertLatLngs(n[t]);return i},_project:function(){var n=new r.Bounds,t,i;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,n);t=this._clickTolerance();i=new r.Point(t,t);this._bounds.isValid()&&n.isValid()&&(n.min._subtract(i),n.max._add(i),this._pxBounds=n)},_projectLatlngs:function(n,t,i){var o=n[0]instanceof r.LatLng,e=n.length,u,f;if(o){for(f=[],u=0;u<e;u++)f[u]=this._map.latLngToLayerPoint(n[u]),i.extend(f[u]);t.push(f)}else for(u=0;u<e;u++)this._projectLatlngs(n[u],t,i)},_clipPoints:function(){var s=this._renderer._bounds,i,e,n,t,h,o,u,f;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(s)){if(this.options.noClip){this._parts=this._rings;return}for(i=this._parts,e=0,t=0,h=this._rings.length;e<h;e++)for(f=this._rings[e],n=0,o=f.length;n<o-1;n++)(u=r.LineUtil.clipSegment(f[n],f[n+1],s,n,!0),u)&&(i[t]=i[t]||[],i[t].push(u[0]),(u[1]!==f[n+1]||n===o-2)&&(i[t].push(u[1]),t++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,n=0,u=t.length;n<u;n++)t[n]=r.LineUtil.simplify(t[n],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)}});r.polyline=function(n,t){return new r.Polyline(n,t)};r.Polyline._flat=function(n){return!r.Util.isArray(n[0])||_typeof(n[0][0])!=="object"&&typeof n[0][0]!="undefined"};r.PolyUtil={};r.PolyUtil.clipPolygon=function(n,t,i){for(var o,y=[1,4,2,8],v,l,s,h,e,u,c=r.LineUtil,f=0,a=n.length;f<a;f++)n[f]._code=c._getBitCode(n[f],t);for(l=0;l<4;l++){for(e=y[l],o=[],f=0,a=n.length,v=a-1;f<a;v=f++)s=n[f],h=n[v],s._code&e?h._code&e||(u=c._getEdgeIntersection(h,s,e,t,i),u._code=c._getBitCode(u,t),o.push(u)):(h._code&e&&(u=c._getEdgeIntersection(h,s,e,t,i),u._code=c._getBitCode(u,t),o.push(u)),o.push(s));n=o}return n};r.Polygon=r.Polyline.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var r,e,n,t,u,i,o,s,c,f=this._rings[0],h=f.length;if(!h)return null;for(i=o=s=0,r=0,e=h-1;r<h;e=r++)n=f[r],t=f[e],u=n.y*t.x-t.y*n.x,o+=(n.x+t.x)*u,s+=(n.y+t.y)*u,i+=u*3;return c=i===0?f[0]:[o/i,s/i],this._map.layerPointToLatLng(c)},_convertLatLngs:function(n){var t=r.Polyline.prototype._convertLatLngs.call(this,n),i=t.length;return i>=2&&t[0]instanceof r.LatLng&&t[0].equals(t[i-1])&&t.pop(),t},_setLatLngs:function(n){r.Polyline.prototype._setLatLngs.call(this,n);r.Polyline._flat(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return r.Polyline._flat(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var n=this._renderer._bounds,u=this.options.weight,f=new r.Point(u,u),t,e,i;if(n=new r.Bounds(n.min.subtract(f),n.max.add(f)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(n)){if(this.options.noClip){this._parts=this._rings;return}for(t=0,e=this._rings.length;t<e;t++)i=r.PolyUtil.clipPolygon(this._rings[t],n,!0),i.length&&this._parts.push(i)}},_updatePath:function(){this._renderer._updatePoly(this,!0)}});r.polygon=function(n,t){return new r.Polygon(n,t)};r.Rectangle=r.Polygon.extend({initialize:function(n,t){r.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(n),t)},setBounds:function(n){return this.setLatLngs(this._boundsToLatLngs(n))},_boundsToLatLngs:function(n){return n=r.latLngBounds(n),[n.getSouthWest(),n.getNorthWest(),n.getNorthEast(),n.getSouthEast()]}});r.rectangle=function(n,t){return new r.Rectangle(n,t)};r.CircleMarker=r.Path.extend({options:{fill:!0,radius:10},initialize:function(n,t){r.setOptions(this,t);this._latlng=r.latLng(n);this._radius=this.options.radius},setLatLng:function(n){return this._latlng=r.latLng(n),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(n){return this.options.radius=this._radius=n,this.redraw()},getRadius:function(){return this._radius},setStyle:function(n){var t=n&&n.radius||this._radius;return r.Path.prototype.setStyle.call(this,n),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var n=this._radius,u=this._radiusY||n,t=this._clickTolerance(),i=[n+t,u+t];this._pxBounds=new r.Bounds(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)}});r.circleMarker=function(n,t){return new r.CircleMarker(n,t)};r.Circle=r.CircleMarker.extend({initialize:function(n,t,i){if(typeof t=="number"&&(t=r.extend({},i,{radius:t})),r.setOptions(this,t),this._latlng=r.latLng(n),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(n){return this._mRadius=n,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var n=[this._radius,this._radiusY||this._radius];return new r.LatLngBounds(this._map.layerPointToLatLng(this._point.subtract(n)),this._map.layerPointToLatLng(this._point.add(n)))},setStyle:r.Path.prototype.setStyle,_project:function(){var o=this._latlng.lng,i=this._latlng.lat,n=this._map,s=n.options.crs,c;if(s.distance===r.CRS.Earth.distance){var t=Math.PI/180,f=this._mRadius/r.CRS.Earth.R/t,l=n.project([i+f,o]),a=n.project([i-f,o]),e=l.add(a).divideBy(2),h=n.unproject(e).lat,u=Math.acos((Math.cos(f*t)-Math.sin(i*t)*Math.sin(h*t))/(Math.cos(i*t)*Math.cos(h*t)))/t;(isNaN(u)||u===0)&&(u=f/Math.cos(Math.PI/180*i));this._point=e.subtract(n.getPixelOrigin());this._radius=isNaN(u)?0:Math.max(Math.round(e.x-n.project([h,o-u]).x),1);this._radiusY=Math.max(Math.round(e.y-l.y),1)}else c=s.unproject(s.project(this._latlng).subtract([this._mRadius,0])),this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(c).x;this._updateBounds()}});r.circle=function(n,t,i){return new r.Circle(n,t,i)};r.SVG=r.Renderer.extend({getEvents:function(){var n=r.Renderer.prototype.getEvents.call(this);return n.zoomstart=this._onZoomStart,n},_initContainer:function(){this._container=r.SVG.create("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=r.SVG.create("g");this._container.appendChild(this._rootGroup)},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){r.Renderer.prototype._update.call(this);var t=this._bounds,n=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(n)||(this._svgSize=n,i.setAttribute("width",n.x),i.setAttribute("height",n.y));r.DomUtil.setPosition(i,t.min);i.setAttribute("viewBox",[t.min.x,t.min.y,n.x,n.y].join(" "));this.fire("update")}},_initPath:function(n){var t=n._path=r.SVG.create("path");n.options.className&&r.DomUtil.addClass(t,n.options.className);n.options.interactive&&r.DomUtil.addClass(t,"leaflet-interactive");this._updateStyle(n)},_addPath:function(n){this._rootGroup.appendChild(n._path);n.addInteractiveTarget(n._path)},_removePath:function(n){r.DomUtil.remove(n._path);n.removeInteractiveTarget(n._path)},_updatePath:function(n){n._project();n._update()},_updateStyle:function(n){var t=n._path,i=n.options;t&&(i.stroke?(t.setAttribute("stroke",i.color),t.setAttribute("stroke-opacity",i.opacity),t.setAttribute("stroke-width",i.weight),t.setAttribute("stroke-linecap",i.lineCap),t.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?t.setAttribute("stroke-dasharray",i.dashArray):t.removeAttribute("stroke-dasharray"),i.dashOffset?t.setAttribute("stroke-dashoffset",i.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),i.fill?(t.setAttribute("fill",i.fillColor||i.color),t.setAttribute("fill-opacity",i.fillOpacity),t.setAttribute("fill-rule",i.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(n,t){this._setPath(n,r.SVG.pointsToPath(n._parts,t))},_updateCircle:function(n){var i=n._point,t=n._radius,u=n._radiusY||t,r="a"+t+","+u+" 0 1,0 ",f=n._empty()?"M0 0":"M"+(i.x-t)+","+i.y+r+t*2+",0 "+r+-t*2+",0 ";this._setPath(n,f)},_setPath:function(n,t){n._path.setAttribute("d",t)},_bringToFront:function(n){r.DomUtil.toFront(n._path)},_bringToBack:function(n){r.DomUtil.toBack(n._path)}});r.extend(r.SVG,{create:function(n){return t.createElementNS("http://www.w3.org/2000/svg",n)},pointsToPath:function(n,t){for(var u="",i,s,f,e,o=0,h=n.length;o<h;o++){for(f=n[o],i=0,s=f.length;i<s;i++)e=f[i],u+=(i?"L":"M")+e.x+" "+e.y;u+=t?r.Browser.svg?"z":"x":""}return u||"M0 0"}});r.Browser.svg=!!(t.createElementNS&&r.SVG.create("svg").createSVGRect);r.svg=function(n){return r.Browser.svg||r.Browser.vml?new r.SVG(n):null};r.Browser.vml=!r.Browser.svg&&function(){var i,n;try{return i=t.createElement("div"),i.innerHTML='<v:shape adj="1"/>',n=i.firstChild,n.style.behavior="url(#default#VML)",n&&_typeof(n.adj)==="object"}catch(r){return!1}}();r.SVG.include(r.Browser.vml?{_initContainer:function(){this._container=r.DomUtil.create("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(r.Renderer.prototype._update.call(this),this.fire("update"))},_initPath:function(n){var t=n._container=r.SVG.create("shape");r.DomUtil.addClass(t,"leaflet-vml-shape "+(this.options.className||""));t.coordsize="1 1";n._path=r.SVG.create("path");t.appendChild(n._path);this._updateStyle(n)},_addPath:function(n){var t=n._container;this._container.appendChild(t);n.options.interactive&&n.addInteractiveTarget(t)},_removePath:function(n){var t=n._container;r.DomUtil.remove(t);n.removeInteractiveTarget(t)},_updateStyle:function(n){var i=n._stroke,u=n._fill,t=n.options,f=n._container;f.stroked=!!t.stroke;f.filled=!!t.fill;t.stroke?(i||(i=n._stroke=r.SVG.create("stroke")),f.appendChild(i),i.weight=t.weight+"px",i.color=t.color,i.opacity=t.opacity,i.dashStyle=t.dashArray?r.Util.isArray(t.dashArray)?t.dashArray.join(" "):t.dashArray.replace(/( *, *)/g," "):"",i.endcap=t.lineCap.replace("butt","flat"),i.joinstyle=t.lineJoin):i&&(f.removeChild(i),n._stroke=null);t.fill?(u||(u=n._fill=r.SVG.create("fill")),f.appendChild(u),u.color=t.fillColor||t.color,u.opacity=t.fillOpacity):u&&(f.removeChild(u),n._fill=null)},_updateCircle:function(n){var t=n._point.round(),i=Math.round(n._radius),r=Math.round(n._radiusY||i);this._setPath(n,n._empty()?"M0 0":"AL "+t.x+","+t.y+" "+i+","+r+" 0,23592600")},_setPath:function(n,t){n._path.v=t},_bringToFront:function(n){r.DomUtil.toFront(n._container)},_bringToBack:function(n){r.DomUtil.toBack(n._container)}}:{});r.Browser.vml&&(r.SVG.create=function(){try{return t.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(n){return t.createElement("<lvml:"+n+' class="lvml">')}}catch(n){return function(n){return t.createElement("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}());r.Canvas=r.Renderer.extend({onAdd:function(){r.Renderer.prototype.onAdd.call(this);this._layers=this._layers||{};this._draw()},_initContainer:function(){var n=this._container=t.createElement("canvas");r.DomEvent.on(n,"mousemove",r.Util.throttle(this._onMouseMove,32,this),this).on(n,"click dblclick mousedown mouseup contextmenu",this._onClick,this).on(n,"mouseout",this._handleMouseOut,this);this._ctx=n.getContext("2d")},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={};r.Renderer.prototype._update.call(this);var t=this._bounds,n=this._container,i=t.getSize(),u=r.Browser.retina?2:1;r.DomUtil.setPosition(n,t.min);n.width=u*i.x;n.height=u*i.y;n.style.width=i.x+"px";n.style.height=i.y+"px";r.Browser.retina&&this._ctx.scale(2,2);this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")}},_initPath:function(n){this._updateDashArray(n);this._layers[r.stamp(n)]=n},_addPath:r.Util.falseFn,_removePath:function(n){n._removed=!0;this._requestRedraw(n)},_updatePath:function(n){this._redrawBounds=n._pxBounds;this._draw(!0);n._project();n._update();this._draw();this._redrawBounds=null},_updateStyle:function(n){this._updateDashArray(n);this._requestRedraw(n)},_updateDashArray:function(n){if(n.options.dashArray){for(var i=n.options.dashArray.split(","),r=[],t=0;t<i.length;t++)r.push(Number(i[t]));n.options._dashArray=r}},_requestRedraw:function(n){if(this._map){var t=(n.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new r.Bounds;this._redrawBounds.extend(n._pxBounds.min.subtract([t,t]));this._redrawBounds.extend(n._pxBounds.max.add([t,t]));this._redrawRequest=this._redrawRequest||r.Util.requestAnimFrame(this._redraw,this)}},_redraw:function(){this._redrawRequest=null;this._draw(!0);this._draw();this._redrawBounds=null},_draw:function(n){var i,t,r;this._clear=n;t=this._redrawBounds;this._ctx.save();t&&(this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,t.max.x-t.min.x,t.max.y-t.min.y),this._ctx.clip());for(r in this._layers)i=this._layers[r],(!t||i._pxBounds&&i._pxBounds.intersects(t))&&i._updatePath(),n&&i._removed&&(delete i._removed,delete this._layers[r]);this._ctx.restore()},_updatePoly:function(n,t){var r,u,o,f,e=n._parts,s=e.length,i=this._ctx;if(s){for(this._drawnLayers[n._leaflet_id]=n,i.beginPath(),i.setLineDash&&i.setLineDash(n.options&&n.options._dashArray||[]),r=0;r<s;r++){for(u=0,o=e[r].length;u<o;u++)f=e[r][u],i[u?"lineTo":"moveTo"](f.x,f.y);t&&i.closePath()}this._fillStroke(i,n)}},_updateCircle:function(n){if(!n._empty()){var u=n._point,t=this._ctx,r=n._radius,i=(n._radiusY||r)/r;this._drawnLayers[n._leaflet_id]=n;i!==1&&(t.save(),t.scale(1,i));t.beginPath();t.arc(u.x,u.y/i,r,0,Math.PI*2,!1);i!==1&&t.restore();this._fillStroke(t,n)}},_fillStroke:function(n,t){var r=this._clear,i=t.options;n.globalCompositeOperation=r?"destination-out":"source-over";i.fill&&(n.globalAlpha=r?1:i.fillOpacity,n.fillStyle=i.fillColor||i.color,n.fill(i.fillRule||"evenodd"));i.stroke&&i.weight!==0&&(n.globalAlpha=r?1:i.opacity,t._prevWeight=n.lineWidth=r?t._prevWeight+1:i.weight,n.strokeStyle=i.color,n.lineCap=i.lineCap,n.lineJoin=i.lineJoin,n.stroke())},_onClick:function(n){var f=this._map.mouseEventToLayerPoint(n),i=[],t,u;for(u in this._layers)t=this._layers[u],t.options.interactive&&t._containsPoint(f)&&!this._map._draggableMoved(t)&&(r.DomEvent._fakeStop(n),i.push(t));i.length&&this._fireEvent(i,n)},_onMouseMove:function(n){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(n);this._handleMouseOut(n,t);this._handleMouseHover(n,t)}},_handleMouseOut:function(n,t){var i=this._hoveredLayer;i&&(n.type==="mouseout"||!i._containsPoint(t))&&(r.DomUtil.removeClass(this._container,"leaflet-interactive"),this._fireEvent([i],n,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(n,t){var u,i;for(u in this._drawnLayers)i=this._drawnLayers[u],i.options.interactive&&i._containsPoint(t)&&(r.DomUtil.addClass(this._container,"leaflet-interactive"),this._fireEvent([i],n,"mouseover"),this._hoveredLayer=i);this._hoveredLayer&&this._fireEvent([this._hoveredLayer],n)},_fireEvent:function(n,t,i){this._map._fireDOMEvent(t,i||t.type,n)},_bringToFront:r.Util.falseFn,_bringToBack:r.Util.falseFn});r.Browser.canvas=function(){return!!t.createElement("canvas").getContext}();r.canvas=function(n){return r.Browser.canvas?new r.Canvas(n):null};r.Polyline.prototype._containsPoint=function(n,t){var u,i,e,s,o,f,h=this._clickTolerance();if(!this._pxBounds.contains(n))return!1;for(u=0,s=this._parts.length;u<s;u++)for(f=this._parts[u],i=0,o=f.length,e=o-1;i<o;e=i++)if((t||i!==0)&&r.LineUtil.pointToSegmentDistance(n,f[e],f[i])<=h)return!0;return!1};r.Polygon.prototype._containsPoint=function(n){var o=!1,i,t,u,f,e,s,c,h;if(!this._pxBounds.contains(n))return!1;for(f=0,c=this._parts.length;f<c;f++)for(i=this._parts[f],e=0,h=i.length,s=h-1;e<h;s=e++)t=i[e],u=i[s],t.y>n.y!=u.y>n.y&&n.x<(u.x-t.x)*(n.y-t.y)/(u.y-t.y)+t.x&&(o=!o);return o||r.Polyline.prototype._containsPoint.call(this,n,!0)};r.CircleMarker.prototype._containsPoint=function(n){return n.distanceTo(this._point)<=this._radius+this._clickTolerance()};r.GeoJSON=r.FeatureGroup.extend({initialize:function(n,t){r.setOptions(this,t);this._layers={};n&&this.addData(n)},addData:function(n){var e=r.Util.isArray(n)?n:n.features,f,o,i,u,t;if(e){for(f=0,o=e.length;f<o;f++)i=e[f],(i.geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}if((u=this.options,u.filter&&!u.filter(n))||(t=r.GeoJSON.geometryToLayer(n,u),!t))return this;if(t.feature=r.GeoJSON.asFeature(n),t.defaultOptions=t.options,this.resetStyle(t),u.onEachFeature)u.onEachFeature(n,t);return this.addLayer(t)},resetStyle:function(n){return n.options=r.Util.extend({},n.defaultOptions),this._setLayerStyle(n,this.options.style),this},setStyle:function(n){return this.eachLayer(function(t){this._setLayerStyle(t,n)},this)},_setLayerStyle:function(n,t){typeof t=="function"&&(t=t(n.feature));n.setStyle&&n.setStyle(t)}});r.extend(r.GeoJSON,{geometryToLayer:function(n,t){var i=n.type==="Feature"?n.geometry:n,f=i?i.coordinates:null,o=[],s=t&&t.pointToLayer,h=t&&t.coordsToLatLng||this.coordsToLatLng,e,c,u,l,a;if(!f&&!i)return null;switch(i.type){case"Point":return e=h(f),s?s(n,e):new r.Marker(e);case"MultiPoint":for(u=0,l=f.length;u<l;u++)e=h(f[u]),o.push(s?s(n,e):new r.Marker(e));return new r.FeatureGroup(o);case"LineString":case"MultiLineString":return c=this.coordsToLatLngs(f,i.type==="LineString"?0:1,h),new r.Polyline(c,t);case"Polygon":case"MultiPolygon":return c=this.coordsToLatLngs(f,i.type==="Polygon"?1:2,h),new r.Polygon(c,t);case"GeometryCollection":for(u=0,l=i.geometries.length;u<l;u++)a=this.geometryToLayer({geometry:i.geometries[u],type:"Feature",properties:n.properties},t),a&&o.push(a);return new r.FeatureGroup(o);default:throw new Error("Invalid GeoJSON object.");}},coordsToLatLng:function(n){return new r.LatLng(n[1],n[0],n[2])},coordsToLatLngs:function(n,t,i){for(var u=[],f,r=0,e=n.length;r<e;r++)f=t?this.coordsToLatLngs(n[r],t-1,i):(i||this.coordsToLatLng)(n[r]),u.push(f);return u},latLngToCoords:function(n){return n.alt!==i?[n.lng,n.lat,n.alt]:[n.lng,n.lat]},latLngsToCoords:function(n,t,i){for(var u=[],f=0,e=n.length;f<e;f++)u.push(t?r.GeoJSON.latLngsToCoords(n[f],t-1,i):r.GeoJSON.latLngToCoords(n[f]));return!t&&i&&u.push(u[0]),u},getFeature:function(n,t){return n.feature?r.extend({},n.feature,{geometry:t}):r.GeoJSON.asFeature(t)},asFeature:function(n){return n.type==="Feature"?n:{type:"Feature",properties:{},geometry:n}}});e={toGeoJSON:function(){return r.GeoJSON.getFeature(this,{type:"Point",coordinates:r.GeoJSON.latLngToCoords(this.getLatLng())})}};r.Marker.include(e);r.Circle.include(e);r.CircleMarker.include(e);r.Polyline.prototype.toGeoJSON=function(){var n=!r.Polyline._flat(this._latlngs),t=r.GeoJSON.latLngsToCoords(this._latlngs,n?1:0);return r.GeoJSON.getFeature(this,{type:(n?"Multi":"")+"LineString",coordinates:t})};r.Polygon.prototype.toGeoJSON=function(){var n=!r.Polyline._flat(this._latlngs),i=n&&!r.Polyline._flat(this._latlngs[0]),t=r.GeoJSON.latLngsToCoords(this._latlngs,i?2:n?1:0,!0);return n||(t=[t]),r.GeoJSON.getFeature(this,{type:(i?"Multi":"")+"Polygon",coordinates:t})};r.LayerGroup.include({toMultiPoint:function(){var n=[];return this.eachLayer(function(t){n.push(t.toGeoJSON().geometry.coordinates)}),r.GeoJSON.getFeature(this,{type:"MultiPoint",coordinates:n})},toGeoJSON:function(){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type,t,n;return i==="MultiPoint"?this.toMultiPoint():(t=i==="GeometryCollection",n=[],this.eachLayer(function(i){if(i.toGeoJSON){var u=i.toGeoJSON();n.push(t?u.geometry:r.GeoJSON.asFeature(u))}}),t)?r.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});r.geoJSON=function(n,t){return new r.GeoJSON(n,t)};r.geoJson=r.geoJSON;f="_leaflet_events";r.DomEvent={on:function(n,t,i,u){var e,f,o;if((typeof t=="undefined"?"undefined":_typeof(t))==="object")for(e in t)this._on(n,e,t[e],i);else for(t=r.Util.splitWords(t),f=0,o=t.length;f<o;f++)this._on(n,t[f],i,u);return this},off:function(n,t,i,u){var e,f,o;if((typeof t=="undefined"?"undefined":_typeof(t))==="object")for(e in t)this._off(n,e,t[e],i);else for(t=r.Util.splitWords(t),f=0,o=t.length;f<o;f++)this._off(n,t[f],i,u);return this},_on:function(t,i,u,e){var s=i+r.stamp(u)+(e?"_"+r.stamp(e):""),o,h;return t[f]&&t[f][s]?this:(o=function(i){return u.call(e||t,i||n.event)},h=o,r.Browser.pointer&&i.indexOf("touch")===0?this.addPointerListener(t,i,o,s):r.Browser.touch&&i==="dblclick"&&this.addDoubleTapListener?this.addDoubleTapListener(t,o,s):"addEventListener"in t?i==="mousewheel"?t.addEventListener("onwheel"in t?"wheel":"mousewheel",o,!1):i==="mouseenter"||i==="mouseleave"?(o=function(i){i=i||n.event;r.DomEvent._isExternalTarget(t,i)&&h(i)},t.addEventListener(i==="mouseenter"?"mouseover":"mouseout",o,!1)):(i==="click"&&r.Browser.android&&(o=function(n){return r.DomEvent._filterClick(n,h)}),t.addEventListener(i,o,!1)):"attachEvent"in t&&t.attachEvent("on"+i,o),t[f]=t[f]||{},t[f][s]=o,this)},_off:function(n,t,i,u){var e=t+r.stamp(i)+(u?"_"+r.stamp(u):""),o=n[f]&&n[f][e];return o?(r.Browser.pointer&&t.indexOf("touch")===0?this.removePointerListener(n,t,e):r.Browser.touch&&t==="dblclick"&&this.removeDoubleTapListener?this.removeDoubleTapListener(n,e):"removeEventListener"in n?t==="mousewheel"?n.removeEventListener("onwheel"in n?"wheel":"mousewheel",o,!1):n.removeEventListener(t==="mouseenter"?"mouseover":t==="mouseleave"?"mouseout":t,o,!1):"detachEvent"in n&&n.detachEvent("on"+t,o),n[f][e]=null,this):this},stopPropagation:function(n){return n.stopPropagation?n.stopPropagation():n.originalEvent?n.originalEvent._stopped=!0:n.cancelBubble=!0,r.DomEvent._skipped(n),this},disableScrollPropagation:function(n){return r.DomEvent.on(n,"mousewheel",r.DomEvent.stopPropagation)},disableClickPropagation:function(n){var t=r.DomEvent.stopPropagation;r.DomEvent.on(n,r.Draggable.START.join(" "),t);return r.DomEvent.on(n,{click:r.DomEvent._fakeStop,dblclick:t})},preventDefault:function(n){return n.preventDefault?n.preventDefault():n.returnValue=!1,this},stop:function(n){return r.DomEvent.preventDefault(n).stopPropagation(n)},getMousePosition:function(n,t){if(!t)return new r.Point(n.clientX,n.clientY);var i=t.getBoundingClientRect();return new r.Point(n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop)},_wheelPxFactor:r.Browser.win&&r.Browser.chrome?2:r.Browser.gecko?n.devicePixelRatio:1,getWheelDelta:function(n){return r.Browser.edge?n.wheelDeltaY/2:n.deltaY&&n.deltaMode===0?-n.deltaY/r.DomEvent._wheelPxFactor:n.deltaY&&n.deltaMode===1?-n.deltaY*20:n.deltaY&&n.deltaMode===2?-n.deltaY*60:n.deltaX||n.deltaZ?0:n.wheelDelta?(n.wheelDeltaY||n.wheelDelta)/2:n.detail&&Math.abs(n.detail)<32765?-n.detail*20:n.detail?n.detail/-32765*60:0},_skipEvents:{},_fakeStop:function(n){r.DomEvent._skipEvents[n.type]=!0},_skipped:function(n){var t=this._skipEvents[n.type];return this._skipEvents[n.type]=!1,t},_isExternalTarget:function(n,t){var i=t.relatedTarget;if(!i)return!0;try{while(i&&i!==n)i=i.parentNode}catch(r){return!1}return i!==n},_filterClick:function(n,t){var u=n.timeStamp||n.originalEvent&&n.originalEvent.timeStamp,i=r.DomEvent._lastClick&&u-r.DomEvent._lastClick;if(i&&i>100&&i<500||n.target._simulatedClick&&!n._simulated){r.DomEvent.stop(n);return}r.DomEvent._lastClick=u;t(n)}};r.DomEvent.addListener=r.DomEvent.on;r.DomEvent.removeListener=r.DomEvent.off;r.Draggable=r.Evented.extend({options:{clickTolerance:3},statics:{START:r.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(n,t,i){this._element=n;this._dragStartTarget=t||n;this._preventOutline=i},enable:function(){if(!this._enabled){r.DomEvent.on(this._dragStartTarget,r.Draggable.START.join(" "),this._onDown,this);this._enabled=!0}},disable:function(){this._enabled&&(r.DomEvent.off(this._dragStartTarget,r.Draggable.START.join(" "),this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(n){if(!n._simulated&&this._enabled&&(this._moved=!1,!r.DomUtil.hasClass(this._element,"leaflet-zoom-anim"))&&!r.Draggable._dragging&&!n.shiftKey&&(n.which===1||n.button===1||n.touches)&&this._enabled&&(r.Draggable._dragging=!0,this._preventOutline&&r.DomUtil.preventOutline(this._element),r.DomUtil.disableImageDrag(),r.DomUtil.disableTextSelection(),!this._moving)){this.fire("down");var i=n.touches?n.touches[0]:n;this._startPoint=new r.Point(i.clientX,i.clientY);r.DomEvent.on(t,r.Draggable.MOVE[n.type],this._onMove,this).on(t,r.Draggable.END[n.type],this._onUp,this)}},_onMove:function(i){if(!i._simulated&&this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var f=i.touches&&i.touches.length===1?i.touches[0]:i,e=new r.Point(f.clientX,f.clientY),u=e.subtract(this._startPoint);(u.x||u.y)&&(Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(r.DomEvent.preventDefault(i),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=r.DomUtil.getPosition(this._element).subtract(u),r.DomUtil.addClass(t.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,n.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),r.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,r.Util.cancelAnimFrame(this._animRequest),this._lastEvent=i,this._animRequest=r.Util.requestAnimFrame(this._updatePosition,this,!0)))}},_updatePosition:function(){var n={originalEvent:this._lastEvent};this.fire("predrag",n);r.DomUtil.setPosition(this._element,this._newPos);this.fire("drag",n)},_onUp:function(n){if(!n._simulated&&this._enabled){r.DomUtil.removeClass(t.body,"leaflet-dragging");this._lastTarget&&(r.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var i in r.Draggable.MOVE)r.DomEvent.off(t,r.Draggable.MOVE[i],this._onMove,this).off(t,r.Draggable.END[i],this._onUp,this);r.DomUtil.enableImageDrag();r.DomUtil.enableTextSelection();this._moved&&this._moving&&(r.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)}));this._moving=!1;r.Draggable._dragging=!1}}});r.Handler=r.Class.extend({initialize:function(n){this._map=n},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});r.Map.mergeOptions({dragging:!0,inertia:!r.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});r.Map.Drag=r.Handler.extend({addHooks:function(){if(!this._draggable){var n=this._map;this._draggable=new r.Draggable(n._mapPane,n._container);this._draggable.on({down:this._onDown,dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(n.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);n.on("zoomend",this._onZoomEnd,this);n.whenReady(this._onZoomEnd,this)}}r.DomUtil.addClass(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){r.DomUtil.removeClass(this._map._container,"leaflet-grab");r.DomUtil.removeClass(this._map._container,"leaflet-touch-drag");this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDown:function(){this._map._stop()},_onDragStart:function(){var t=this._map,n;this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(n=r.latLngBounds(this._map.options.maxBounds),this._offsetLimit=r.bounds(this._map.latLngToContainerPoint(n.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(n.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null;t.fire("movestart").fire("dragstart");t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(n){if(this._map.options.inertia){var t=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i);this._times.push(t);t-this._times[0]>50&&(this._positions.shift(),this._times.shift())}this._map.fire("move",n).fire("drag",n)},_onZoomEnd:function(){var n=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(n).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(n,t){return n-(n-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var n=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;n.x<t.min.x&&(n.x=this._viscousLimit(n.x,t.min.x));n.y<t.min.y&&(n.y=this._viscousLimit(n.y,t.min.y));n.x>t.max.x&&(n.x=this._viscousLimit(n.x,t.max.x));n.y>t.max.y&&(n.y=this._viscousLimit(n.y,t.max.y));this._draggable._newPos=this._draggable._startPos.add(n)}},_onPreDragWrap:function(){var i=this._worldWidth,t=Math.round(i/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,u=(r-t+n)%i+t-n,f=(r+t+n)%i-t-n,e=Math.abs(u+n)<Math.abs(f+n)?u:f;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=e},_onDragEnd:function(n){var t=this._map,u=t.options,c=!u.inertia||this._times.length<2;if(t.fire("dragend",n),c)t.fire("moveend");else{var l=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,f=u.easeLinearity,e=l.multiplyBy(f/a),o=e.distanceTo([0,0]),s=Math.min(u.inertiaMaxSpeed,o),v=e.multiplyBy(s/o),h=s/(u.inertiaDeceleration*f),i=v.multiplyBy(-h/2).round();i.x||i.y?(i=t._limitOffset(i,t.options.maxBounds),r.Util.requestAnimFrame(function(){t.panBy(i,{duration:h,easeLinearity:f,noMoveStart:!0,animate:!0})})):t.fire("moveend")}}});r.Map.addInitHook("addHandler","dragging",r.Map.Drag);r.Map.mergeOptions({doubleClickZoom:!0});r.Map.DoubleClickZoom=r.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(n){var t=this._map,i=t.getZoom(),r=t.options.zoomDelta,u=n.originalEvent.shiftKey?i-r:i+r;t.options.doubleClickZoom==="center"?t.setZoom(u):t.setZoomAround(n.containerPoint,u)}});r.Map.addInitHook("addHandler","doubleClickZoom",r.Map.DoubleClickZoom);r.Map.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});r.Map.ScrollWheelZoom=r.Handler.extend({addHooks:function(){r.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){r.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(n){var i=r.DomEvent.getWheelDelta(n),u=this._map.options.wheelDebounceTime,t;this._delta+=i;this._lastMousePos=this._map.mouseEventToContainerPoint(n);this._startTime||(this._startTime=+new Date);t=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(r.bind(this._performZoom,this),t);r.DomEvent.stop(n)},_performZoom:function(){var n=this._map,t=n.getZoom(),i=this._map.options.zoomSnap||0;n._stop();var e=this._delta/(this._map.options.wheelPxPerZoomLevel*4),u=4*Math.log(2/(1+Math.exp(-Math.abs(e))))/Math.LN2,f=i?Math.ceil(u/i)*i:u,r=n._limitZoom(t+(this._delta>0?f:-f))-t;(this._delta=0,this._startTime=null,r)&&(n.options.scrollWheelZoom==="center"?n.setZoom(t+r):n.setZoomAround(this._lastMousePos,t+r))}});r.Map.addInitHook("addHandler","scrollWheelZoom",r.Map.ScrollWheelZoom);r.extend(r.DomEvent,{_touchstart:r.Browser.msPointer?"MSPointerDown":r.Browser.pointer?"pointerdown":"touchstart",_touchend:r.Browser.msPointer?"MSPointerUp":r.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(n,t,i){function o(n){var e,t,i;(e=r.Browser.pointer?r.DomEvent._pointersCount:n.touches.length,e>1)||(t=Date.now(),i=t-(f||t),u=n.touches?n.touches[0]:n,h=i>0&&i<=a,f=t)}function s(){if(h&&!u.cancelBubble){if(r.Browser.pointer){var e={},n,i;for(i in u)n=u[i],e[i]=n&&n.bind?n.bind(u):n;u=e}u.type="dblclick";t(u);f=null}}var f,u,h=!1,a=250,e="_leaflet_",c=this._touchstart,l=this._touchend;return n[e+c+i]=o,n[e+l+i]=s,n[e+"dblclick"+i]=t,n.addEventListener(c,o,!1),n.addEventListener(l,s,!1),r.Browser.edge||n.addEventListener("dblclick",t,!1),this},removeDoubleTapListener:function(n,t){var i="_leaflet_",u=n[i+this._touchstart+t],f=n[i+this._touchend+t],e=n[i+"dblclick"+t];return n.removeEventListener(this._touchstart,u,!1),n.removeEventListener(this._touchend,f,!1),r.Browser.edge||n.removeEventListener("dblclick",e,!1),this}});r.extend(r.DomEvent,{POINTER_DOWN:r.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:r.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:r.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:r.Browser.msPointer?"MSPointerCancel":"pointercancel",TAG_WHITE_LIST:["INPUT","SELECT","OPTION"],_pointers:{},_pointersCount:0,addPointerListener:function(n,t,i,r){return t==="touchstart"?this._addPointerStart(n,i,r):t==="touchmove"?this._addPointerMove(n,i,r):t==="touchend"&&this._addPointerEnd(n,i,r),this},removePointerListener:function(n,t,i){var r=n["_leaflet_"+t+i];return t==="touchstart"?n.removeEventListener(this.POINTER_DOWN,r,!1):t==="touchmove"?n.removeEventListener(this.POINTER_MOVE,r,!1):t==="touchend"&&(n.removeEventListener(this.POINTER_UP,r,!1),n.removeEventListener(this.POINTER_CANCEL,r,!1)),this},_addPointerStart:function(n,i,u){var e=r.bind(function(n){if(n.pointerType!=="mouse"&&n.pointerType!==n.MSPOINTER_TYPE_MOUSE)if(this.TAG_WHITE_LIST.indexOf(n.target.tagName)<0)r.DomEvent.preventDefault(n);else return;this._handlePointer(n,i)},this),f;n["_leaflet_touchstart"+u]=e;n.addEventListener(this.POINTER_DOWN,e,!1);this._pointerDocListener||(f=r.bind(this._globalPointerUp,this),t.documentElement.addEventListener(this.POINTER_DOWN,r.bind(this._globalPointerDown,this),!0),t.documentElement.addEventListener(this.POINTER_MOVE,r.bind(this._globalPointerMove,this),!0),t.documentElement.addEventListener(this.POINTER_UP,f,!0),t.documentElement.addEventListener(this.POINTER_CANCEL,f,!0),this._pointerDocListener=!0)},_globalPointerDown:function(n){this._pointers[n.pointerId]=n;this._pointersCount++},_globalPointerMove:function(n){this._pointers[n.pointerId]&&(this._pointers[n.pointerId]=n)},_globalPointerUp:function(n){delete this._pointers[n.pointerId];this._pointersCount--},_handlePointer:function(n,t){n.touches=[];for(var i in this._pointers)n.touches.push(this._pointers[i]);n.changedTouches=[n];t(n)},_addPointerMove:function(n,t,i){var u=r.bind(function(n){(n.pointerType!==n.MSPOINTER_TYPE_MOUSE&&n.pointerType!=="mouse"||n.buttons!==0)&&this._handlePointer(n,t)},this);n["_leaflet_touchmove"+i]=u;n.addEventListener(this.POINTER_MOVE,u,!1)},_addPointerEnd:function(n,t,i){var u=r.bind(function(n){this._handlePointer(n,t)},this);n["_leaflet_touchend"+i]=u;n.addEventListener(this.POINTER_UP,u,!1);n.addEventListener(this.POINTER_CANCEL,u,!1)}});r.Map.mergeOptions({touchZoom:r.Browser.touch&&!r.Browser.android23,bounceAtZoomLimits:!0});r.Map.TouchZoom=r.Handler.extend({addHooks:function(){r.DomUtil.addClass(this._map._container,"leaflet-touch-zoom");r.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){r.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom");r.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(n){var i=this._map,u,f;if(n.touches&&n.touches.length===2&&!i._animatingZoom&&!this._zooming){u=i.mouseEventToContainerPoint(n.touches[0]);f=i.mouseEventToContainerPoint(n.touches[1]);this._centerPoint=i.getSize()._divideBy(2);this._startLatLng=i.containerPointToLatLng(this._centerPoint);i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(u.add(f)._divideBy(2)));this._startDist=u.distanceTo(f);this._startZoom=i.getZoom();this._moved=!1;this._zooming=!0;i._stop();r.DomEvent.on(t,"touchmove",this._onTouchMove,this).on(t,"touchend",this._onTouchEnd,this);r.DomEvent.preventDefault(n)}},_onTouchMove:function(n){var u,f;if(n.touches&&n.touches.length===2&&this._zooming){var t=this._map,e=t.mouseEventToContainerPoint(n.touches[0]),o=t.mouseEventToContainerPoint(n.touches[1]),i=e.distanceTo(o)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),t.options.touchZoom==="center"){if(this._center=this._startLatLng,i===1)return}else{if(u=e._add(o)._divideBy(2)._subtract(this._centerPoint),i===1&&u.x===0&&u.y===0)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(u),this._zoom)}this._moved||(t._moveStart(!0),this._moved=!0);r.Util.cancelAnimFrame(this._animRequest);f=r.bind(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=r.Util.requestAnimFrame(f,this,!0);r.DomEvent.preventDefault(n)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1;r.Util.cancelAnimFrame(this._animRequest);r.DomEvent.off(t,"touchmove",this._onTouchMove).off(t,"touchend",this._onTouchEnd);this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});r.Map.addInitHook("addHandler","touchZoom",r.Map.TouchZoom);r.Map.mergeOptions({tap:!0,tapTolerance:15});r.Map.Tap=r.Handler.extend({addHooks:function(){r.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){r.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(n){if(n.touches){if(r.DomEvent.preventDefault(n),this._fireClick=!0,n.touches.length>1){this._fireClick=!1;clearTimeout(this._holdTimeout);return}var i=n.touches[0],u=i.target;this._startPos=this._newPos=new r.Point(i.clientX,i.clientY);u.tagName&&u.tagName.toLowerCase()==="a"&&r.DomUtil.addClass(u,"leaflet-active");this._holdTimeout=setTimeout(r.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3);this._simulateEvent("mousedown",i);r.DomEvent.on(t,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(n){if(clearTimeout(this._holdTimeout),r.DomEvent.off(t,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&n&&n.changedTouches){var u=n.changedTouches[0],i=u.target;i&&i.tagName&&i.tagName.toLowerCase()==="a"&&r.DomUtil.removeClass(i,"leaflet-active");this._simulateEvent("mouseup",u);this._isTapValid()&&this._simulateEvent("click",u)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(n){var t=n.touches[0];this._newPos=new r.Point(t.clientX,t.clientY);this._simulateEvent("mousemove",t)},_simulateEvent:function(i,r){var u=t.createEvent("MouseEvents");u._simulated=!0;r.target._simulatedClick=!0;u.initMouseEvent(i,!0,!0,n,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null);r.target.dispatchEvent(u)}});r.Browser.touch&&!r.Browser.pointer&&r.Map.addInitHook("addHandler","tap",r.Map.Tap);r.Map.mergeOptions({boxZoom:!0});r.Map.BoxZoom=r.Handler.extend({initialize:function(n){this._map=n;this._container=n._container;this._pane=n._panes.overlayPane},addHooks:function(){r.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){r.DomEvent.off(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_resetState:function(){this._moved=!1},_onMouseDown:function(n){if(!n.shiftKey||n.which!==1&&n.button!==1)return!1;this._resetState();r.DomUtil.disableTextSelection();r.DomUtil.disableImageDrag();this._startPoint=this._map.mouseEventToContainerPoint(n);r.DomEvent.on(t,{contextmenu:r.DomEvent.stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(n){this._moved||(this._moved=!0,this._box=r.DomUtil.create("div","leaflet-zoom-box",this._container),r.DomUtil.addClass(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart"));this._point=this._map.mouseEventToContainerPoint(n);var t=new r.Bounds(this._point,this._startPoint),i=t.getSize();r.DomUtil.setPosition(this._box,t.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(r.DomUtil.remove(this._box),r.DomUtil.removeClass(this._container,"leaflet-crosshair"));r.DomUtil.enableTextSelection();r.DomUtil.enableImageDrag();r.DomEvent.off(t,{contextmenu:r.DomEvent.stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(n){if((n.which===1||n.button===1)&&(this._finish(),this._moved)){setTimeout(r.bind(this._resetState,this),0);var t=new r.LatLngBounds(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(n){n.keyCode===27&&this._finish()}});r.Map.addInitHook("addHandler","boxZoom",r.Map.BoxZoom);r.Map.mergeOptions({keyboard:!0,keyboardPanDelta:80});r.Map.Keyboard=r.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(n){this._map=n;this._setPanDelta(n.options.keyboardPanDelta);this._setZoomDelta(n.options.zoomDelta)},addHooks:function(){var n=this._map._container;n.tabIndex<=0&&(n.tabIndex="0");r.DomEvent.on(n,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();r.DomEvent.off(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=t.body,r=t.documentElement,u=i.scrollTop||r.scrollTop,f=i.scrollLeft||r.scrollLeft;this._map._container.focus();n.scrollTo(f,u)}},_onFocus:function(){this._focused=!0;this._map.fire("focus")},_onBlur:function(){this._focused=!1;this._map.fire("blur")},_setPanDelta:function(n){for(var u=this._panKeys={},i=this.keyCodes,t=0,r=i.left.length;t<r;t++)u[i.left[t]]=[-1*n,0];for(t=0,r=i.right.length;t<r;t++)u[i.right[t]]=[n,0];for(t=0,r=i.down.length;t<r;t++)u[i.down[t]]=[0,n];for(t=0,r=i.up.length;t<r;t++)u[i.up[t]]=[0,-1*n]},_setZoomDelta:function(n){for(var u=this._zoomKeys={},i=this.keyCodes,t=0,r=i.zoomIn.length;t<r;t++)u[i.zoomIn[t]]=n;for(t=0,r=i.zoomOut.length;t<r;t++)u[i.zoomOut[t]]=-n},_addHooks:function(){r.DomEvent.on(t,"keydown",this._onKeyDown,this)},_removeHooks:function(){r.DomEvent.off(t,"keydown",this._onKeyDown,this)},_onKeyDown:function(n){if(!n.altKey&&!n.ctrlKey&&!n.metaKey){var i=n.keyCode,t=this._map,u;if(i in this._panKeys){if(t._panAnim&&t._panAnim._inProgress)return;u=this._panKeys[i];n.shiftKey&&(u=r.point(u).multiplyBy(3));t.panBy(u);t.options.maxBounds&&t.panInsideBounds(t.options.maxBounds)}else if(i in this._zoomKeys)t.setZoom(t.getZoom()+(n.shiftKey?3:1)*this._zoomKeys[i]);else if(i===27)t.closePopup();else return;r.DomEvent.stop(n)}}});r.Map.addInitHook("addHandler","keyboard",r.Map.Keyboard);r.Handler.MarkerDrag=r.Handler.extend({initialize:function(n){this._marker=n},addHooks:function(){var n=this._marker._icon;this._draggable||(this._draggable=new r.Draggable(n,n,!0));this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).enable();r.DomUtil.addClass(n,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).disable();this._marker._icon&&r.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(n){var t=this._marker,i=t._shadow,u=r.DomUtil.getPosition(t._icon),f=t._map.layerPointToLatLng(u);i&&r.DomUtil.setPosition(i,u);t._latlng=f;n.latlng=f;n.oldLatLng=this._oldLatLng;t.fire("move",n).fire("drag",n)},_onDragEnd:function(n){delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",n)}});r.Control=r.Class.extend({options:{position:"topright"},initialize:function(n){r.setOptions(this,n)},getPosition:function(){return this.options.position},setPosition:function(n){var t=this._map;return t&&t.removeControl(this),this.options.position=n,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(n){this.remove();this._map=n;var t=this._container=this.onAdd(n),u=this.getPosition(),i=n._controlCorners[u];return r.DomUtil.addClass(t,"leaflet-control"),u.indexOf("bottom")!==-1?i.insertBefore(t,i.firstChild):i.appendChild(t),this},remove:function(){if(!this._map)return this;if(r.DomUtil.remove(this._container),this.onRemove)this.onRemove(this._map);return this._map=null,this},_refocusOnMap:function(n){this._map&&n&&n.screenX>0&&n.screenY>0&&this._map.getContainer().focus()}});r.control=function(n){return new r.Control(n)};r.Map.include({addControl:function(n){return n.addTo(this),this},removeControl:function(n){return n.remove(),this},_initControlPos:function(){function n(n,f){var e=t+n+" "+t+f;i[n+f]=r.DomUtil.create("div",e,u)}var i=this._controlCorners={},t="leaflet-",u=this._controlContainer=r.DomUtil.create("div",t+"control-container",this._container);n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){r.DomUtil.remove(this._controlContainer)}});r.Control.Zoom=r.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(n){var i="leaflet-control-zoom",u=r.DomUtil.create("div",i+" leaflet-bar"),t=this.options;this._zoomInButton=this._createButton(t.zoomInText,t.zoomInTitle,i+"-in",u,this._zoomIn);this._zoomOutButton=this._createButton(t.zoomOutText,t.zoomOutTitle,i+"-out",u,this._zoomOut);this._updateDisabled();n.on("zoomend zoomlevelschange",this._updateDisabled,this);return u},onRemove:function(n){n.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(n){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(n.shiftKey?3:1))},_zoomOut:function(n){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(n.shiftKey?3:1))},_createButton:function(n,t,i,u,f){var e=r.DomUtil.create("a",i,u);e.innerHTML=n;e.href="#";e.title=t;r.DomEvent.on(e,"mousedown dblclick",r.DomEvent.stopPropagation).on(e,"click",r.DomEvent.stop).on(e,"click",f,this).on(e,"click",this._refocusOnMap,this);return e},_updateDisabled:function(){var n=this._map,t="leaflet-disabled";r.DomUtil.removeClass(this._zoomInButton,t);r.DomUtil.removeClass(this._zoomOutButton,t);(this._disabled||n._zoom===n.getMinZoom())&&r.DomUtil.addClass(this._zoomOutButton,t);(this._disabled||n._zoom===n.getMaxZoom())&&r.DomUtil.addClass(this._zoomInButton,t)}});r.Map.mergeOptions({zoomControl:!0});r.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new r.Control.Zoom,this.addControl(this.zoomControl))});r.control.zoom=function(n){return new r.Control.Zoom(n)};r.Control.Attribution=r.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet<\/a>'},initialize:function(n){r.setOptions(this,n);this._attributions={}},onAdd:function(n){n.attributionControl=this;this._container=r.DomUtil.create("div","leaflet-control-attribution");r.DomEvent&&r.DomEvent.disableClickPropagation(this._container);for(var t in n._layers)n._layers[t].getAttribution&&this.addAttribution(n._layers[t].getAttribution());return this._update(),this._container},setPrefix:function(n){return this.options.prefix=n,this._update(),this},addAttribution:function(n){return n?(this._attributions[n]||(this._attributions[n]=0),this._attributions[n]++,this._update(),this):this},removeAttribution:function(n){return n?(this._attributions[n]&&(this._attributions[n]--,this._update()),this):this},_update:function(){var n,i,t;if(this._map){n=[];for(i in this._attributions)this._attributions[i]&&n.push(i);t=[];this.options.prefix&&t.push(this.options.prefix);n.length&&t.push(n.join(", "));this._container.innerHTML=t.join(" | ")}}});r.Map.mergeOptions({attributionControl:!0});r.Map.addInitHook(function(){this.options.attributionControl&&(new r.Control.Attribution).addTo(this)});r.control.attribution=function(n){return new r.Control.Attribution(n)};r.Control.Scale=r.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(n){var t="leaflet-control-scale",i=r.DomUtil.create("div",t),u=this.options;this._addScales(u,t+"-line",i);n.on(u.updateWhenIdle?"moveend":"move",this._update,this);return n.whenReady(this._update,this),i},onRemove:function(n){n.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(n,t,i){n.metric&&(this._mScale=r.DomUtil.create("div",t,i));n.imperial&&(this._iScale=r.DomUtil.create("div",t,i))},_update:function(){var n=this._map,t=n.getSize().y/2,i=n.distance(n.containerPointToLatLng([0,t]),n.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(i)},_updateScales:function(n){this.options.metric&&n&&this._updateMetric(n);this.options.imperial&&n&&this._updateImperial(n)},_updateMetric:function(n){var t=this._getRoundNum(n),i=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,i,t/n)},_updateImperial:function(n){var t=n*3.2808399,i,r,u;t>5280?(i=t/5280,r=this._getRoundNum(i),this._updateScale(this._iScale,r+" mi",r/i)):(u=this._getRoundNum(t),this._updateScale(this._iScale,u+" ft",u/t))},_updateScale:function(n,t,i){n.style.width=Math.round(this.options.maxWidth*i)+"px";n.innerHTML=t},_getRoundNum:function(n){var i=Math.pow(10,(Math.floor(n)+"").length-1),t=n/i;return t=t>=10?10:t>=5?5:t>=3?3:t>=2?2:1,i*t}});r.control.scale=function(n){return new r.Control.Scale(n)};r.Control.Layers=r.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1},initialize:function(n,t,i){r.setOptions(this,i);this._layers=[];this._lastZIndex=0;this._handlingClick=!1;for(var u in n)this._addLayer(n[u],u);for(u in t)this._addLayer(t[u],u,!0)},onAdd:function(n){this._initLayout();this._update();this._map=n;n.on("zoomend",this._checkDisabledLayers,this);return this._container},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var n=0;n<this._layers.length;n++)this._layers[n].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(n,t){return this._addLayer(n,t),this._map?this._update():this},addOverlay:function(n,t){return this._addLayer(n,t,!0),this._map?this._update():this},removeLayer:function(n){n.off("add remove",this._onLayerChange,this);var t=this._getLayer(r.stamp(n));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){r.DomUtil.addClass(this._container,"leaflet-control-layers-expanded");this._form.style.height=null;var n=this._map.getSize().y-(this._container.offsetTop+50);return n<this._form.clientHeight?(r.DomUtil.addClass(this._form,"leaflet-control-layers-scrollbar"),this._form.style.height=n+"px"):r.DomUtil.removeClass(this._form,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return r.DomUtil.removeClass(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var n="leaflet-control-layers",t=this._container=r.DomUtil.create("div",n),i,u;if(t.setAttribute("aria-haspopup",!0),r.DomEvent.disableClickPropagation(t),r.Browser.touch||r.DomEvent.disableScrollPropagation(t),i=this._form=r.DomUtil.create("form",n+"-list"),this.options.collapsed){if(!r.Browser.android)r.DomEvent.on(t,{mouseenter:this.expand,mouseleave:this.collapse},this);if(u=this._layersLink=r.DomUtil.create("a",n+"-toggle",t),u.href="#",u.title="Layers",r.Browser.touch)r.DomEvent.on(u,"click",r.DomEvent.stop).on(u,"click",this.expand,this);else r.DomEvent.on(u,"focus",this.expand,this);r.DomEvent.on(i,"click",function(){setTimeout(r.bind(this._onInputClick,this),0)},this);this._map.on("click",this.collapse,this)}else this.expand();this._baseLayersList=r.DomUtil.create("div",n+"-base",i);this._separator=r.DomUtil.create("div",n+"-separator",i);this._overlaysList=r.DomUtil.create("div",n+"-overlays",i);t.appendChild(i)},_getLayer:function(n){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&r.stamp(this._layers[t].layer)===n)return this._layers[t]},_addLayer:function(n,t,i){n.on("add remove",this._onLayerChange,this);this._layers.push({layer:n,name:t,overlay:i});this.options.autoZIndex&&n.setZIndex&&(this._lastZIndex++,n.setZIndex(this._lastZIndex))},_update:function(){if(!this._container)return this;r.DomUtil.empty(this._baseLayersList);r.DomUtil.empty(this._overlaysList);for(var n,i,t,f=0,u=0;u<this._layers.length;u++)t=this._layers[u],this._addItem(t),i=i||t.overlay,n=n||!t.overlay,f+=t.overlay?0:1;return this.options.hideSingleBase&&(n=n&&f>1,this._baseLayersList.style.display=n?"":"none"),this._separator.style.display=i&&n?"":"none",this},_onLayerChange:function(n){this._handlingClick||this._update();var t=this._getLayer(r.stamp(n.target)),i=t.overlay?n.type==="add"?"overlayadd":"overlayremove":n.type==="add"?"baselayerchange":null;i&&this._map.fire(i,t)},_createRadioElement:function(n,i){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+n+'"'+(i?' checked="checked"':"")+"/>",r=t.createElement("div");return r.innerHTML=u,r.firstChild},_addItem:function(n){var f=t.createElement("label"),o=this._map.hasLayer(n.layer),i,e,u,s;n.overlay?(i=t.createElement("input"),i.type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=o):i=this._createRadioElement("leaflet-base-layers",o);i.layerId=r.stamp(n.layer);r.DomEvent.on(i,"click",this._onInputClick,this);return e=t.createElement("span"),e.innerHTML=" "+n.name,u=t.createElement("div"),f.appendChild(u),u.appendChild(i),u.appendChild(e),s=n.overlay?this._overlaysList:this._baseLayersList,s.appendChild(f),this._checkDisabledLayers(),f},_onInputClick:function(){var e=this._form.getElementsByTagName("input"),t,i,r,u=[],f=[],n;for(this._handlingClick=!0,n=e.length-1;n>=0;n--)t=e[n],i=this._getLayer(t.layerId).layer,r=this._map.hasLayer(i),t.checked&&!r?u.push(i):!t.checked&&r&&f.push(i);for(n=0;n<f.length;n++)this._map.removeLayer(f[n]);for(n=0;n<u.length;n++)this._map.addLayer(u[n]);this._handlingClick=!1;this._refocusOnMap()},_checkDisabledLayers:function(){for(var u=this._form.getElementsByTagName("input"),t,n,f=this._map.getZoom(),r=u.length-1;r>=0;r--)t=u[r],n=this._getLayer(t.layerId).layer,t.disabled=n.options.minZoom!==i&&f<n.options.minZoom||n.options.maxZoom!==i&&f>n.options.maxZoom},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}});r.control.layers=function(n,t,i){return new r.Control.Layers(n,t,i)};r.PosAnimation=r.Evented.extend({run:function(n,t,i,u){this.stop();this._el=n;this._inProgress=!0;this._duration=i||.25;this._easeOutPower=1/Math.max(u||.5,.2);this._startPos=r.DomUtil.getPosition(n);this._offset=t.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=r.Util.requestAnimFrame(this._animate,this);this._step()},_step:function(n){var t=+new Date-this._startTime,i=this._duration*1e3;t<i?this._runFrame(this._easeOut(t/i),n):(this._runFrame(1),this._complete())},_runFrame:function(n,t){var i=this._startPos.add(this._offset.multiplyBy(n));t&&i._round();r.DomUtil.setPosition(this._el,i);this.fire("step")},_complete:function(){r.Util.cancelAnimFrame(this._animId);this._inProgress=!1;this.fire("end")},_easeOut:function(n){return 1-Math.pow(1-n,this._easeOutPower)}});r.Map.include({setView:function(n,t,u){if(t=t===i?this._zoom:this._limitZoom(t),n=this._limitCenter(r.latLng(n),t,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==i&&(u.zoom=r.extend({animate:u.animate},u.zoom),u.pan=r.extend({animate:u.animate,duration:u.duration},u.pan));var f=this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(n,t,u.zoom):this._tryAnimatedPan(n,u.pan);if(f)return clearTimeout(this._sizeTimer),this}return this._resetView(n,t),this},panBy:function(n,t){if(n=r.point(n).round(),t=t||{},!n.x&&!n.y)return this.fire("moveend");if(t.animate!==!0&&!this.getSize().contains(n))return this._resetView(this.unproject(this.project(this.getCenter()).add(n)),this.getZoom()),this;if(!this._panAnim){this._panAnim=new r.PosAnimation;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(t.noMoveStart||this.fire("movestart"),t.animate!==!1){r.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(n).round();this._panAnim.run(this._mapPane,i,t.duration||.25,t.easeLinearity)}else this._rawPanBy(n),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){r.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(n,t){var i=this._getCenterOffset(n)._floor();return(t&&t.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,t),!0)}});r.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4});o=r.DomUtil.TRANSITION&&r.Browser.any3d&&!r.Browser.mobileOpera;o&&r.Map.addInitHook(function(){if(this._zoomAnimated=this.options.zoomAnimation,this._zoomAnimated){this._createAnimProxy();r.DomEvent.on(this._proxy,r.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}});r.Map.include(o?{_createAnimProxy:function(){var n=this._proxy=r.DomUtil.create("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(n);this.on("zoomanim",function(t){var i=r.DomUtil.TRANSFORM,u=n.style[i];r.DomUtil.setTransform(n,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));u===n.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this);this.on("load moveend",function(){var i=this.getCenter(),t=this.getZoom();r.DomUtil.setTransform(n,this.project(i,t),this.getZoomScale(t,1))},this)},_catchTransitionEnd:function(n){this._animatingZoom&&n.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(n,t,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var u=this.getZoomScale(t),f=this._getCenterOffset(n)._divideBy(1-1/u);return i.animate!==!0&&!this.getSize().contains(f)?!1:(r.Util.requestAnimFrame(function(){this._moveStart(!0)._animateZoom(n,t,!0)},this),!0)},_animateZoom:function(n,t,i,u){i&&(this._animatingZoom=!0,this._animateToCenter=n,this._animateToZoom=t,r.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"));this.fire("zoomanim",{center:n,zoom:t,noUpdate:u});setTimeout(r.bind(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){this._animatingZoom&&(r.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),r.Util.requestAnimFrame(function(){this._moveEnd(!0)},this))}}:{});r.Map.include({flyTo:function(n,t,u){function y(n){var r=n?-1:1,u=n?v:e,f=v*v-e*e+r*l*l*c*c,o=2*u*l*c,t=f/o,i=Math.sqrt(t*t+1)-t;return i<1e-9?-18:Math.log(i)}function p(n){return(Math.exp(n)-Math.exp(-n))/2}function s(n){return(Math.exp(n)+Math.exp(-n))/2}function g(n){return p(n)/s(n)}function nt(n){return e*(s(f)/s(f+o*n))}function tt(n){return e*(s(f)*g(f+o*n)-p(f))/l}function it(n){return 1-Math.pow(1-n,1.5)}function w(){var i=(Date.now()-rt)/ut,u=it(i)*d;i<=1?(this._flyToFrame=r.Util.requestAnimFrame(w,this),this._move(this.unproject(a.add(b.subtract(a).multiplyBy(tt(u)/c)),h),this.getScaleZoom(e/nt(u),h),{flyTo:!0})):this._move(n,t)._moveEnd(!0)}var f;if(u=u||{},u.animate===!1||!r.Browser.any3d)return this.setView(n,t,u);this._stop();var a=this.project(this.getCenter()),b=this.project(n),k=this.getSize(),h=this._zoom;n=r.latLng(n);t=t===i?h:t;var e=Math.max(k.x,k.y),v=e*this.getZoomScale(h,t),c=b.distanceTo(a)||1,o=1.42,l=o*o;f=y(0);var rt=Date.now(),d=(y(1)-f)/o,ut=u.duration?1e3*u.duration:1e3*d*.8;return this._moveStart(!0),w.call(this),this},flyToBounds:function(n,t){var i=this._getBoundsCenterZoom(n,t);return this.flyTo(i.center,i.zoom,t)}});r.Map.include({_defaultLocateOptions:{timeout:1e4,watch:!1},locate:function(n){if(n=this._locateOptions=r.extend({},this._defaultLocateOptions,n),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=r.bind(this._handleGeolocationResponse,this),i=r.bind(this._handleGeolocationError,this);return n.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,i,n):navigator.geolocation.getCurrentPosition(t,i,n),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(n){var t=n.code,i=n.message||(t===1?"permission denied":t===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld();this.fire("locationerror",{code:t,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(n){var s=n.coords.latitude,h=n.coords.longitude,i=new r.LatLng(s,h),o=i.toBounds(n.coords.accuracy),u=this._locateOptions,f,e,t;u.setView&&(f=this.getBoundsZoom(o),this.setView(i,u.maxZoom?Math.min(f,u.maxZoom):f));e={latlng:i,bounds:o,timestamp:n.timestamp};for(t in n.coords)typeof n.coords[t]=="number"&&(e[t]=n.coords[t]);this.fire("locationfound",e)}})}(window,document);!function(){"use strict";function n(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i;this.options=n.Adapter.extend({},n.defaults,r);this.element=this.options.element;this.adapter=new n.Adapter(this.element);this.callback=r.handler;this.axis=this.options.horizontal?"horizontal":"vertical";this.enabled=this.options.enabled;this.triggerPoint=null;this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis});this.context=n.Context.findOrCreateByElement(this.options.context);n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]);this.group.add(this);this.context.add(this);t[this.key]=this;i+=1}var i=0,t={};n.prototype.queueTrigger=function(n){this.group.queueTrigger(this,n)};n.prototype.trigger=function(n){this.enabled&&this.callback&&this.callback.apply(this,n)};n.prototype.destroy=function(){this.context.remove(this);this.group.remove(this);delete t[this.key]};n.prototype.disable=function(){return this.enabled=!1,this};n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};n.prototype.next=function(){return this.group.next(this)};n.prototype.previous=function(){return this.group.previous(this)};n.invokeAll=function(n){var r=[],u,i,f;for(u in t)r.push(t[u]);for(i=0,f=r.length;f>i;i++)r[i][n]()};n.destroyAll=function(){n.invokeAll("destroy")};n.disableAll=function(){n.invokeAll("disable")};n.enableAll=function(){n.Context.refreshAll();for(var i in t)t[i].enabled=!0;return this};n.refreshAll=function(){n.Context.refreshAll()};n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight};n.viewportWidth=function(){return document.documentElement.clientWidth};n.adapters=[];n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0};n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}};window.Waypoint=n}(),function(){"use strict";function f(n){window.setTimeout(n,1e3/60)}function n(u){this.element=u;this.Adapter=t.Adapter;this.adapter=new this.Adapter(u);this.key="waypoint-context-"+r;this.didScroll=!1;this.didResize=!1;this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()};this.waypoints={vertical:{},horizontal:{}};u.waypointContextKey=this.key;i[u.waypointContextKey]=this;r+=1;t.windowContext||(t.windowContext=!0,t.windowContext=new n(window));this.createThrottledScrollHandler();this.createThrottledResizeHandler()}var r=0,i={},t=window.Waypoint,u=window.onload;n.prototype.add=function(n){var t=n.options.horizontal?"horizontal":"vertical";this.waypoints[t][n.key]=n;this.refresh()};n.prototype.checkEmpty=function(){var n=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),r=this.element==this.element.window;n&&t&&!r&&(this.adapter.off(".waypoints"),delete i[this.key])};n.prototype.createThrottledResizeHandler=function(){function i(){n.handleResize();n.didResize=!1}var n=this;this.adapter.on("resize.waypoints",function(){n.didResize||(n.didResize=!0,t.requestAnimationFrame(i))})};n.prototype.createThrottledScrollHandler=function(){function i(){n.handleScroll();n.didScroll=!1}var n=this;this.adapter.on("scroll.waypoints",function(){(!n.didScroll||t.isTouch)&&(n.didScroll=!0,t.requestAnimationFrame(i))})};n.prototype.handleResize=function(){t.Context.refreshAll()};n.prototype.handleScroll=function(){var u={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},r,f,n,e;for(r in i){var t=i[r],h=t.newScroll>t.oldScroll,c=h?t.forward:t.backward;for(f in this.waypoints[r])if(n=this.waypoints[r][f],null!==n.triggerPoint){var o=t.oldScroll<n.triggerPoint,s=t.newScroll>=n.triggerPoint,l=o&&s,a=!o&&!s;(l||a)&&(n.queueTrigger(c),u[n.group.id]=n.group)}}for(e in u)u[e].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}};n.prototype.innerHeight=function(){return this.element==this.element.window?t.viewportHeight():this.adapter.innerHeight()};n.prototype.remove=function(n){delete this.waypoints[n.axis][n.key];this.checkEmpty()};n.prototype.innerWidth=function(){return this.element==this.element.window?t.viewportWidth():this.adapter.innerWidth()};n.prototype.destroy=function(){var t=[],i,r,n,u;for(i in this.waypoints)for(r in this.waypoints[i])t.push(this.waypoints[i][r]);for(n=0,u=t.length;u>n;n++)t[n].destroy()};n.prototype.refresh=function(){var o,u=this.element==this.element.window,l=u?void 0:this.adapter.offset(),f={},e,i,a;this.handleScroll();o={horizontal:{contextOffset:u?0:l.left,contextScroll:u?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:u?0:l.top,contextScroll:u?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(e in o){i=o[e];for(a in this.waypoints[e]){var v,s,h,y,p,n=this.waypoints[e][a],r=n.options.offset,w=n.triggerPoint,b=0,c=null==w;n.element!==n.element.window&&(b=n.adapter.offset()[i.offsetProp]);"function"==typeof r?r=r.apply(n):"string"==typeof r&&(r=parseFloat(r),n.options.offset.indexOf("%")>-1&&(r=Math.ceil(i.contextDimension*r/100)));v=i.contextScroll-i.contextOffset;n.triggerPoint=Math.floor(b+v-r);s=w<i.oldScroll;h=n.triggerPoint>=i.oldScroll;y=s&&h;p=!s&&!h;!c&&y?(n.queueTrigger(i.backward),f[n.group.id]=n.group):!c&&p?(n.queueTrigger(i.forward),f[n.group.id]=n.group):c&&i.oldScroll>=n.triggerPoint&&(n.queueTrigger(i.forward),f[n.group.id]=n.group)}}return t.requestAnimationFrame(function(){for(var n in f)f[n].flushTriggers()}),this};n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)};n.refreshAll=function(){for(var n in i)i[n].refresh()};n.findByElement=function(n){return i[n.waypointContextKey]};window.onload=function(){u&&u();n.refreshAll()};t.requestAnimationFrame=function(n){var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||f;t.call(window,n)};t.Context=n}(),function(){"use strict";function i(n,t){return n.triggerPoint-t.triggerPoint}function u(n,t){return t.triggerPoint-n.triggerPoint}function n(n){this.name=n.name;this.axis=n.axis;this.id=this.name+"-"+this.axis;this.waypoints=[];this.clearTriggerQueues();r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},t=window.Waypoint;n.prototype.add=function(n){this.waypoints.push(n)};n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}};n.prototype.flushTriggers=function(){var n,t,e,r,o,f;for(n in this.triggerQueues)for(t=this.triggerQueues[n],e="up"===n||"left"===n,t.sort(e?u:i),r=0,o=t.length;o>r;r+=1)f=t[r],(f.options.continuous||r===t.length-1)&&f.trigger([n]);this.clearTriggerQueues()};n.prototype.next=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints),u=r===this.waypoints.length-1;return u?null:this.waypoints[r+1]};n.prototype.previous=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints);return r?this.waypoints[r-1]:null};n.prototype.queueTrigger=function(n,t){this.triggerQueues[t].push(n)};n.prototype.remove=function(n){var i=t.Adapter.inArray(n,this.waypoints);i>-1&&this.waypoints.splice(i,1)};n.prototype.first=function(){return this.waypoints[0]};n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]};n.findOrCreate=function(t){return r[t.axis][t.name]||new n(t)};t.Group=n}(),function(){"use strict";function n(n){this.$element=t(n)}var t=window.jQuery,i=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,i){n.prototype[i]=function(){var n=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,n)}});t.each(["extend","inArray","isEmptyObject"],function(i,r){n[r]=t[r]});i.adapters.push({name:"jquery",Adapter:n});i.Adapter=n}(),function(){"use strict";function n(n){return function(){var r=[],i=arguments[0];return n.isFunction(arguments[0])&&(i=n.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var u=n.extend({},i,{element:this});"string"==typeof u.context&&(u.context=n(this).closest(u.context)[0]);r.push(new t(u))}),r}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=n(window.jQuery));window.Zepto&&(window.Zepto.fn.waypoint=n(window.Zepto))}(),function(n){typeof define=="function"&&define.amd?define(["jquery","moment"],n):(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"?module.exports=n(require("jquery"),require("moment")):n(jQuery,moment)}(function(n,t){function nt(n){return ii(n,ou)}function bi(n,t){t.left&&n.css({"border-left-width":1,"margin-left":t.left-1});t.right&&n.css({"border-right-width":1,"margin-right":t.right-1})}function ki(n){n.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function ut(){n("body").addClass("fc-not-allowed")}function ft(){n("body").removeClass("fc-not-allowed")}function di(t,i,r){var u=Math.floor(i/t.length),e=Math.floor(i-u*(t.length-1)),f=[],o=[],s=[],h=0;gi(t);t.each(function(i,r){var l=i===t.length-1?e:u,c=n(r).outerHeight(!0);c<l?(f.push(r),o.push(c),s.push(n(r).height())):h+=c});r&&(i-=h,u=Math.floor(i/f.length),e=Math.floor(i-u*(f.length-1)));n(f).each(function(t,i){var r=t===f.length-1?e:u,h=o[t],c=s[t],l=r-(h-c);h<r&&n(i).height(l)})}function gi(n){n.height("")}function nr(t){var i=0;return t.find("> *").each(function(t,r){var u=n(r).outerWidth();u>i&&(i=u)}),i++,t.width(i),i}function bt(n,t){var i=n.add(t),r;return i.css({position:"relative",left:-1}),r=n.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),r}function kt(t){var r=t.css("position"),i=t.parents().filter(function(){var t=n(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return r==="fixed"||!i.length?n(t[0].ownerDocument||document):i}function dt(n,t){var i=n.offset(),r=i.left-(t?t.left:0),u=i.top-(t?t.top:0);return{left:r,right:r+n.outerWidth(),top:u,bottom:u+n.outerHeight()}}function tr(n,t){var i=n.offset(),r=gt(n),u=i.left+g(n,"border-left-width")+r.left-(t?t.left:0),f=i.top+g(n,"border-top-width")+r.top-(t?t.top:0);return{left:u,right:u+n[0].clientWidth,top:f,bottom:f+n[0].clientHeight}}function du(n,t){var i=n.offset(),r=i.left+g(n,"border-left-width")+g(n,"padding-left")-(t?t.left:0),u=i.top+g(n,"border-top-width")+g(n,"padding-top")-(t?t.top:0);return{left:r,right:r+n.width(),top:u,bottom:u+n.height()}}function gt(n){var i=n.innerWidth()-n[0].clientWidth,t={left:0,right:0,top:0,bottom:n.innerHeight()-n[0].clientHeight};return gu()&&n.css("direction")=="rtl"?t.left=i:t.right=i,t}function gu(){return vt===null&&(vt=nf()),vt}function nf(){var t=n("<div><div/><\/div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),i=t.children(),r=i.offset().left>t.offset().left;return t.remove(),r}function g(n,t){return parseFloat(n.css(t))||0}function ir(n){return n.which==1&&!n.ctrlKey}function l(n){if(n.pageX!==undefined)return n.pageX;var t=n.originalEvent.touches;if(t)return t[0].pageX}function a(n){if(n.pageY!==undefined)return n.pageY;var t=n.originalEvent.touches;if(t)return t[0].pageY}function rr(n){return/^touch/.test(n.type)}function tf(n){n.addClass("fc-unselectable").on("selectstart",et)}function et(n){n.preventDefault()}function rf(n){return window.addEventListener?(window.addEventListener("scroll",n,!0),!0):!1}function uf(n){return window.removeEventListener?(window.removeEventListener("scroll",n,!0),!0):!1}function ur(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom?i:!1}function ff(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}}function ef(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function of(n,t){return{left:n.left-t.left,top:n.top-t.top}}function fr(t){var f=[],r=[],u,i;for(typeof t=="string"?r=t.split(/\s*,\s*/):typeof t=="function"?r=[t]:n.isArray(t)&&(r=t),u=0;u<r.length;u++)i=r[u],typeof i=="string"?f.push(i.charAt(0)=="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&f.push({func:i});return f}function er(n,t,i){for(var r,u=0;u<i.length;u++)if(r=or(n,t,i[u]),r)return r;return 0}function or(n,t,i){return i.func?i.func(n,t):sr(n[i.field],t[i.field])*(i.order||1)}function sr(t,i){return!t&&!i?0:i==null?-1:t==null?1:n.type(t)==="string"||n.type(i)==="string"?String(t).localeCompare(String(i)):t-i}function ot(n,t){var i=n.start,r=n.end,u=t.start,f=t.end,e,o,s,h;if(r>u&&i<f)return i>=u?(e=i.clone(),s=!0):(e=u.clone(),s=!1),r<=f?(o=r.clone(),h=!0):(o=f.clone(),h=!1),{start:e,end:o,isStart:s,isEnd:h}}function hr(n,i){return t.duration({days:n.clone().stripTime().diff(i.clone().stripTime(),"days"),ms:n.time()-i.time()})}function sf(n,i){return t.duration({days:n.clone().stripTime().diff(i.clone().stripTime(),"days")})}function cr(n,i,r){return t.duration(Math.round(n.diff(i,r,!0)),r)}function ni(n,t){for(var i,r,u=0;u<yt.length;u++)if(i=yt[u],r=hf(i,n,t),r>=1&&y(r))break;return i}function hf(n,i,r){return r!=null?r.diff(i,n,!0):t.isDuration(i)?i.as(n):i.end.diff(i.start,n,!0)}function cf(n,t,i){var r;return k(i)?(t-n)/i:(r=i.asMonths(),Math.abs(r)>=1&&y(r))?t.diff(n,"months",!0)/r:t.diff(n,"days",!0)/i.asDays()}function ti(n,t){var i,r;return k(n)||k(t)?n/t:(i=n.asMonths(),r=t.asMonths(),Math.abs(i)>=1&&y(i)&&Math.abs(r)>=1&&y(r))?i/r:n.asDays()/t.asDays()}function lf(n,i){var r;return k(n)?t.duration(n*i):(r=n.asMonths(),Math.abs(r)>=1&&y(r))?t.duration({months:r*i}):t.duration({days:n.asDays()*i})}function k(n){return Boolean(n.hours()||n.minutes()||n.seconds()||n.milliseconds())}function af(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function lr(n){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(n)}function ii(n,t){var f={},i,r,e,o,u,s;if(t)for(i=0;i<t.length;i++){for(r=t[i],e=[],o=n.length-1;o>=0;o--)if(u=n[o][r],(typeof u=="undefined"?"undefined":_typeof(u))==="object")e.unshift(u);else if(u!==undefined){f[r]=u;break}e.length&&(f[r]=ii(e))}for(i=n.length-1;i>=0;i--){s=n[i];for(r in s)r in f||(f[r]=s[r])}return f}function st(n){var t=function(){};return t.prototype=n,new t}function ri(n,t){for(var i in n)ar(n,i)&&(t[i]=n[i])}function ar(n,t){return su.call(n,t)}function vf(t){return/undefined|null|boolean|number|string/.test(n.type(t))}function ht(t,i,r){if(n.isFunction(t)&&(t=[t]),t){for(var u,f=0;f<t.length;f++)u=t[f].apply(i,r)||u;return u}}function f(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n]}function r(n){return(n+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function ui(n){return n.replace(/&.*?;/g,"")}function ct(t){var i=[];return n.each(t,function(n,t){t!=null&&i.push(n+":"+t)}),i.join(";")}function yf(t){var i=[];return n.each(t,function(n,t){t!=null&&i.push(n+'="'+r(t)+'"')}),i.join(" ")}function vr(n){return n.charAt(0).toUpperCase()+n.slice(1)}function pf(n,t){return n-t}function y(n){return n%1==0}function d(n,t){var i=n[t];return function(){return i.apply(n,arguments)}}function lt(n,t,i){var r,u,f,o,e,s=function s(){var h=+new Date-o;h<t?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u),f=u=null))};return function(){f=this;u=arguments;o=+new Date;var h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u),f=u=null),e}}function fi(t,i){if(t&&t.then&&t.state()!=="resolved"){if(i)return t.then(i)}else return n.when(i())}function ei(i,r,u){var f=i[0],h=i.length==1&&typeof f=="string",o,s,c,e;return t.isMoment(f)||af(f)||f===undefined?e=t.apply(null,i):(o=!1,s=!1,h?ce.test(f)?(f+="-01",i=[f],o=!0,s=!0):(c=le.exec(f))&&(o=!c[5],s=!0):n.isArray(f)&&(s=!0),e=r||o?t.utc.apply(t,i):t.apply(null,i),o?(e._ambigTime=!0,e._ambigZone=!0):u&&(s?e._ambigZone=!0:h&&e.utcOffset(f))),e._fullCalendar=!0,e}function p(n,t){return v.format.call(n,t)}function wf(n,t){return yr(n,si(t))}function yr(n,t){for(var r="",i=0;i<t.length;i++)r+=oi(n,t[i]);return r}function oi(n,t){var i,r;return typeof t=="string"?t:(i=t.token)?ci[i]?ci[i](n):p(n,i):t.maybe&&(r=yr(n,t.maybe),r.match(/[1-9]/))?r:""}function pr(n,t,r,u,f){var e;return n=i.moment.parseZone(n),t=i.moment.parseZone(t),e=n.localeData(),r=e.longDateFormat(r)||r,u=u||" - ",bf(n,t,si(r),u,f)}function bf(n,t,i,r,u){for(var a=n.clone().stripZone(),v=t.clone().stripZone(),f,y="",e,l="",o,h="",c="",p="",s=0;s<i.length;s++){if(f=wr(n,t,a,v,i[s]),f===!1)break;y+=f}for(e=i.length-1;e>s;e--){if(f=wr(n,t,a,v,i[e]),f===!1)break;l=f+l}for(o=s;o<=e;o++)h+=oi(n,i[o]),c+=oi(t,i[o]);return(h||c)&&(p=u?c+r+h:h+r+c),y+p+l}function wr(n,t,i,r,u){var f,e;return typeof u=="string"?u:(f=u.token)&&(e=hu[f.charAt(0)],e&&i.isSame(r,e))?p(n,f):!1}function si(n){return n in pt?pt[n]:pt[n]=br(n)}function br(n){for(var i=[],r=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g,t;t=r.exec(n);)t[1]?i.push(t[1]):t[2]?i.push({maybe:br(t[2])}):t[3]?i.push({token:t[3]}):t[5]&&i.push(t[5]);return i}function s(){}function kf(n,t){var i;return ar(t,"constructor")&&(i=t.constructor),typeof i!="function"&&(i=t.constructor=function(){n.apply(this,arguments)}),i.prototype=st(n.prototype),ri(t,i.prototype),ri(n,i),i}function kr(n,t){ri(t,n.prototype)}function dr(n,t){return!n&&!t?!0:n&&t?n.component===t.component&&gr(n,t)&&gr(t,n):!1}function gr(n,t){for(var i in n)if(!/^(component|left|right|top|bottom)$/.test(i)&&n[i]!==t[i])return!1;return!0}function nu(n){return{start:n.start.clone(),end:n.end?n.end.clone():null,allDay:n.allDay}}function tu(n){var t=iu(n);return t==="background"||t==="inverse-background"}function df(n){return iu(n)==="inverse-background"}function iu(n){return f((n.source||{}).rendering,n.rendering)}function gf(n){for(var i={},t,r=0;r<n.length;r++)t=n[r],(i[t._id]||(i[t._id]=[])).push(t);return i}function ne(n,t){return n.start-t.start}function te(r){var e=i.dataAttrPrefix,u,f,o,s;return e&&(e+="-"),u=r.data(e+"event")||null,u&&(u=(typeof u=="undefined"?"undefined":_typeof(u))==="object"?n.extend({},u):{},f=u.start,f==null&&(f=u.time),o=u.duration,s=u.stick,delete u.start,delete u.time,delete u.duration,delete u.stick),f==null&&(f=r.data(e+"start")),f==null&&(f=r.data(e+"time")),o==null&&(o=r.data(e+"duration")),s==null&&(s=r.data(e+"stick")),f=f!=null?t.duration(f):null,o=o!=null?t.duration(o):null,s=Boolean(s),{eventProps:u,startTime:f,duration:o,stick:s}}function ie(n,t){for(var i,r=0;r<t.length;r++)if(i=t[r],i.leftCol<=n.rightCol&&i.rightCol>=n.leftCol)return!0;return!1}function re(n,t){return n.leftCol-t.leftCol}function ue(n){for(var i=[],r,t,u=0;u<n.length;u++){for(r=n[u],t=0;t<i.length;t++)if(!uu(r,i[t]).length)break;r.level=t;(i[t]||(i[t]=[])).push(r)}return i}function fe(n){for(var f,t,i,r,u=0;u<n.length;u++)for(f=n[u],t=0;t<f.length;t++)for(i=f[t],i.forwardSegs=[],r=u+1;r<n.length;r++)uu(i,n[r],i.forwardSegs)}function ru(n){var u=n.forwardSegs,i=0,t,r;if(n.forwardPressure===undefined){for(t=0;t<u.length;t++)r=u[t],ru(r),i=Math.max(i,1+r.forwardPressure);n.forwardPressure=i}}function uu(n,t,i){i=i||[];for(var r=0;r<t.length;r++)ee(n,t[r])&&i.push(t[r]);return i}function ee(n,t){return n.bottom>t.top&&n.top<t.bottom}function oe(r,u){function k(n){n._locale=c}function yt(){l?v()&&(ut(),s()):pt()}function pt(){r.addClass("fc");r.on("click.fc","a[data-goto]",function(t){var s=n(this),u=s.data("goto"),o=f.moment(u.date),r=u.type,i=e.opt("navLink"+vr(r)+"Click");typeof i=="function"?i(o,t):(typeof i=="string"&&(r=i),ht(o,r))});f.bindOption("theme",function(n){nr=n?"ui":"fc";r.toggleClass("ui-widget",n);r.toggleClass("fc-unthemed",!n)});f.bindOptions(["isRTL","locale"],function(n){r.toggleClass("fc-ltr",!n);r.toggleClass("fc-rtl",n)});l=n("<div class='fc-view-container'/>").prependTo(r);h=f.header=new se(f);tt();s(f.options.defaultView);f.options.handleWindowResize&&(b=lt(kt,f.options.windowResizeDelay),n(window).resize(b))}function tt(){h.render();h.el&&r.prepend(h.el)}function wt(){e&&e.removeElement();h.removeElement();l.remove();r.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget");r.off(".fc");b&&n(window).unbind("resize",b)}function v(){return r.is(":visible")}function s(t,i){a++;e&&t&&e.type!==t&&(w(),it());!e&&t&&(e=f.view=g[t]||(g[t]=f.instantiateView(t)),e.setElement(n("<div class='fc-view fc-"+t+"-view' />").appendTo(l)),h.activateButton(t));e&&(o=e.massageCurrentDate(o),e.displaying&&o>=e.intervalStart&&o<e.intervalEnd||v()&&(e.display(o,i),y(),ii(),ri(),gt()));y();a--}function it(){h.deactivateButton(e.type);e.removeElement();e=f.view=null}function bt(){a++;w();var n=e.type,t=e.queryScroll();it();s(n,t);y();a--}function rt(n){if(v())return n&&ft(),a++,e.updateSize(!0),a--,!0}function ut(){v()&&ft()}function ft(){var t=f.options.contentHeight,n=f.options.height;nt=typeof t=="number"?t:typeof t=="function"?t():typeof n=="number"?n-d():typeof n=="function"?n()-d():n==="parent"?r.parent().height()-d():Math.round(l.width()/Math.max(f.options.aspectRatio,.5))}function d(){return h.el?h.el.outerHeight(!0):0}function kt(n){!a&&n.target===window&&e.start&&rt(!0)&&e.trigger("windowResize",at)}function et(){ot()}function dt(n){gi(f.getEventSourcesByMatchArray(n))}function p(){v()&&(w(),e.displayEvents(vt),y())}function gt(){!f.options.lazyFetching||ki(e.start,e.end)?ot():p()}function ot(){di(e.start,e.end)}function ni(n){vt=n;p()}function ti(){p()}function ii(){h.updateTitle(e.title)}function ri(){var n=f.getNow();n>=e.intervalStart&&n<e.intervalEnd?h.disableButton("today"):h.enableButton("today")}function ui(){e.select(f.buildSelectSpan.apply(f,arguments))}function fi(){e&&e.unselect()}function ei(){o=e.computePrevDate(o);s()}function oi(){o=e.computeNextDate(o);s()}function si(){o.add(-1,"years");s()}function hi(){o.add(1,"years");s()}function ci(){o=f.getNow();s()}function li(n){o=f.moment(n).stripZone();s()}function ai(n){o.add(t.duration(n));s()}function ht(n,t){var i;t=t||"day";i=f.getViewSpec(t)||f.getUnitViewSpec(t);o=n.clone();s(i?i.type:null)}function vi(){return f.applyTimezone(o)}function w(){l.css({width:"100%",height:l.height(),overflow:"hidden"})}function y(){l.css({width:"",height:"",overflow:""})}function yi(){return f}function pi(){return e}function wi(n,t){var i;if(typeof n=="string"){if(t===undefined)return f.options[n];i={};i[n]=t;ct(i)}else(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&ct(n)}function ct(n){var i=0,t;for(t in n)f.dynamicOverrides[t]=n[t];f.viewSpecCache={};f.populateOptionsHash();for(t in n)f.triggerOptionHandlers(t),i++;if(i===1){if(t==="height"||t==="contentHeight"||t==="aspectRatio"){rt(!0);return}if(t==="defaultDate")return;if(t==="businessHours"){e&&(e.unrenderBusinessHours(),e.renderBusinessHours());return}if(t==="timezone"){f.rezoneArrayEventSources();et();return}}tt();g={};bt()}function bi(n,t){var i=Array.prototype.slice.call(arguments,2);return t=t||at,this.triggerWith(n,t,i),f.options[n]?f.options[n].apply(t,i):void 0}var f=this,c;f.render=yt;f.destroy=wt;f.refetchEvents=et;f.refetchEventSources=dt;f.reportEvents=ni;f.reportEventChange=ti;f.rerenderEvents=p;f.changeView=s;f.select=ui;f.unselect=fi;f.prev=ei;f.next=oi;f.prevYear=si;f.nextYear=hi;f.today=ci;f.gotoDate=li;f.incrementDate=ai;f.zoomTo=ht;f.getDate=vi;f.getCalendar=yi;f.getView=pi;f.option=wi;f.trigger=bi;f.dynamicOverrides={};f.viewSpecCache={};f.optionHandlers={};f.overrides=n.extend({},u);f.populateOptionsHash();f.bindOptions(["locale","monthNames","monthNamesShort","dayNames","dayNamesShort","firstDay","weekNumberCalculation"],function(n,t,i,r,u,f,e){if(e==="iso"&&(e="ISO"),c=st(eu(n)),t&&(c._months=t),i&&(c._monthsShort=i),r&&(c._weekdays=r),u&&(c._weekdaysShort=u),f==null&&e==="ISO"&&(f=1),f!=null){var s=st(c._week);s.dow=f;c._week=s}(e==="ISO"||e==="local"||typeof e=="function")&&(c._fullCalendar_weekCalc=e);o&&k(o)});f.defaultAllDayEventDuration=t.duration(f.options.defaultAllDayEventDuration);f.defaultTimedEventDuration=t.duration(f.options.defaultTimedEventDuration);f.moment=function(){var n;return f.options.timezone==="local"?(n=i.moment.apply(null,arguments),n.hasTime()&&n.local()):n=f.options.timezone==="UTC"?i.moment.utc.apply(null,arguments):i.moment.parseZone.apply(null,arguments),k(n),n};f.localizeMoment=k;f.getIsAmbigTimezone=function(){return f.options.timezone!=="local"&&f.options.timezone!=="UTC"};f.applyTimezone=function(n){if(!n.hasTime())return n.clone();var t=f.moment(n.toArray()),r=n.time()-t.time(),i;return r&&(i=t.clone().add(r),n.time()-i.time()==0&&(t=i)),t};f.getNow=function(){var n=f.options.now;return typeof n=="function"&&(n=n()),f.moment(n).stripZone()};f.getEventEnd=function(n){return n.end?n.end.clone():f.getDefaultEventEnd(n.allDay,n.start)};f.getDefaultEventEnd=function(n,t){var i=t.clone();return n?i.stripTime().add(f.defaultAllDayEventDuration):i.add(f.defaultTimedEventDuration),f.getIsAmbigTimezone()&&i.stripZone(),i};f.humanizeDuration=function(n){return n.locale(f.options.locale).humanize()};he.call(f);var ki=f.isFetchNeeded,di=f.fetchEvents,gi=f.fetchEventSources,at=r[0],h,l,nr,e,g={},nt,b,a=0,vt=[],o;o=f.options.defaultDate!=null?f.moment(f.options.defaultDate).stripZone():f.getNow();f.getSuggestedViewHeight=function(){return nt===undefined&&ut(),nt};f.isHeightAuto=function(){return f.options.contentHeight==="auto"||f.options.height==="auto"};f.freezeContentHeight=w;f.unfreezeContentHeight=y;f.initialize()}function fu(t){n.each(pe,function(n,i){t[n]==null&&(t[n]=i(t))})}function eu(n){return t.localeData(n)||t.localeData("en")}function se(t){function h(){var r=t.options,f=r.header;i=r.theme?"ui":"fc";f?(u?u.empty():u=this.el=n("<div class='fc-toolbar'/>"),u.append(e("left")).append(e("right")).append(e("center")).append('<div class="fc-clear"/>')):s()}function s(){u&&(u.remove(),u=f.el=null)}function e(u){var e=n('<div class="fc-'+u+'"/>'),f=t.options,s=f.header[u];return s&&n.each(s.split(" "),function(){var u=n(),h=!0,s;n.each(this.split(","),function(e,s){var l,p,a,v,y,w,b,k,d,c;s=="title"?(u=u.add(n("<h2>&nbsp;<\/h2>")),h=!1):((l=(f.customButtons||{})[s])?(a=function(n){l.click&&l.click.call(c[0],n)},v="",y=l.text):(p=t.getViewSpec(s))?(a=function(){t.changeView(s)},o.push(s),v=p.buttonTextOverride,y=p.buttonTextDefault):t[s]&&(a=function(){t[s]()},v=(t.overrides.buttonText||{})[s],y=f.buttonText[s]),a&&(w=l?l.themeIcon:f.themeButtonIcons[s],b=l?l.icon:f.buttonIcons[s],k=v?r(v):w&&f.theme?"<span class='ui-icon ui-icon-"+w+"'><\/span>":b&&!f.theme?"<span class='fc-icon fc-icon-"+b+"'><\/span>":r(y),d=["fc-"+s+"-button",i+"-button",i+"-state-default"],c=n('<button type="button" class="'+d.join(" ")+'">'+k+"<\/button>").click(function(n){c.hasClass(i+"-state-disabled")||(a(n),(c.hasClass(i+"-state-active")||c.hasClass(i+"-state-disabled"))&&c.removeClass(i+"-state-hover"))}).mousedown(function(){c.not("."+i+"-state-active").not("."+i+"-state-disabled").addClass(i+"-state-down")}).mouseup(function(){c.removeClass(i+"-state-down")}).hover(function(){c.not("."+i+"-state-active").not("."+i+"-state-disabled").addClass(i+"-state-hover")},function(){c.removeClass(i+"-state-hover").removeClass(i+"-state-down")}),u=u.add(c)))});h&&u.first().addClass(i+"-corner-left").end().last().addClass(i+"-corner-right").end();u.length>1?(s=n("<div/>"),h&&s.addClass("fc-button-group"),s.append(u),e.append(s)):e.append(u)}),e}function c(n){u&&u.find("h2").text(n)}function l(n){u&&u.find(".fc-"+n+"-button").addClass(i+"-state-active")}function a(n){u&&u.find(".fc-"+n+"-button").removeClass(i+"-state-active")}function v(n){u&&u.find(".fc-"+n+"-button").prop("disabled",!0).addClass(i+"-state-disabled")}function y(n){u&&u.find(".fc-"+n+"-button").prop("disabled",!1).removeClass(i+"-state-disabled")}function p(){return o}var f=this,u,o,i;f.render=h;f.removeElement=s;f.updateTitle=c;f.activateButton=l;f.deactivateButton=a;f.disableButton=v;f.enableButton=y;f.getViewsWithButtons=p;f.el=null;o=[]}function he(){function ct(n,t){return!o||n<o||t>s}function lt(n,t){o=n;s=t;a(e,"reset")}function a(n,t){var i,r;for(t==="reset"?u=[]:t!=="add"&&(u=rt(u,n)),i=0;i<n.length;i++)r=n[i],r._status!=="pending"&&b++,r._fetchId=(r._fetchId||0)+1,r._status="pending";for(i=0;i<n.length;i++)r=n[i],vt(r,r._fetchId)}function vt(t,i){d(t,function(r){var s=n.isArray(t.events),f,e,o;if(i===t._fetchId&&t._status!=="rejected"){if(t._status="resolved",r)for(f=0;f<r.length;f++)e=r[f],o=s?e:l(e,t),o&&u.push.apply(u,p(o));k()}})}function yt(n){var t=n._status==="pending";n._status="rejected";t&&k()}function k(){b--;b||c(u)}function d(t,u){for(var h,e,v,a=i.sourceFetchers,c=0;c<a.length;c++){if(h=a[c].call(r,t,o.clone(),s.clone(),r.options.timezone,u),h===!0)return;if((typeof h=="undefined"?"undefined":_typeof(h))=="object"){d(h,u);return}}if(e=t.events,e)n.isFunction(e)?(r.pushLoading(),e.call(r,o.clone(),s.clone(),r.options.timezone,function(n){u(n);r.popLoading()})):n.isArray(e)?u(e):u();else if(v=t.url,v){var w=t.success,b=t.error,k=t.complete,g=n.isFunction(t.data)?t.data():t.data,l=n.extend({},g||{}),y=f(t.startParam,r.options.startParam),p=f(t.endParam,r.options.endParam),nt=f(t.timezoneParam,r.options.timezoneParam);y&&(l[y]=o.format());p&&(l[p]=s.format());r.options.timezone&&r.options.timezone!="local"&&(l[nt]=r.options.timezone);r.pushLoading();n.ajax(n.extend({},au,t,{data:l,success:function(t){t=t||[];var i=ht(w,this,arguments);n.isArray(i)&&(t=i);u(t)},error:function(){ht(b,this,arguments);u()},complete:function(){ht(k,this,arguments);r.popLoading()}}))}else u()}function pt(n){var t=g(n);t&&(e.push(t),a([t],"add"))}function g(t){var e=i.sourceNormalizers,u,f;if(n.isFunction(t)||n.isArray(t)?u={events:t}:typeof t=="string"?u={url:t}:(typeof t=="undefined"?"undefined":_typeof(t))==="object"&&(u=n.extend({},t)),u){for(u.className?typeof u.className=="string"&&(u.className=u.className.split(/\s+/)):u.className=[],n.isArray(u.events)&&(u.origArray=u.events,u.events=n.map(u.events,function(n){return l(n,u)})),f=0;f<e.length;f++)e[f].call(r,u);return u}}function wt(n){v(y(n))}function bt(n){n==null?v(e,!0):v(tt(n))}function v(t,i){for(var r=0;r<t.length;r++)yt(t[r]);i?(e=[],u=[]):(e=n.grep(e,function(n){for(r=0;r<t.length;r++)if(n===t[r])return!1;return!0}),u=rt(u,t));c(u)}function kt(){return e.slice(1)}function nt(t){return n.grep(e,function(n){return n.id&&n.id===t})[0]}function tt(t){t?n.isArray(t)||(t=[t]):t=[];for(var i=[],r=0;r<t.length;r++)i.push.apply(i,y(t[r]));return i}function y(t){for(var i,r=0;r<e.length;r++)if(i=e[r],i===t)return[i];return(i=nt(t),i)?[i]:n.grep(e,function(n){return dt(t,n)})}function dt(n,t){return n&&t&&it(n)==it(t)}function it(n){return((typeof n=="undefined"?"undefined":_typeof(n))==="object"?n.origArray||n.googleCalendarId||n.url||n.events:null)||n}function rt(t,i){return n.grep(t,function(n){for(var t=0;t<i.length;t++)if(n.source===i[t])return!1;return!0})}function gt(n){n.start=r.moment(n.start);n.end=n.end?r.moment(n.end):null;st(n,ni(n));c(u)}function ni(t){var i={};return n.each(t,function(n,t){ut(n)&&t!==undefined&&vf(t)&&(i[n]=t)}),i}function ut(n){return!/^_|^(id|allDay|start|end)$/.test(n)}function ti(n,t){var e=l(n),r,f,i;if(e){for(r=p(e),f=0;f<r.length;f++)i=r[f],i.source||(t&&(w.events.push(i),i.source=w),u.push(i));return c(u),r}return[]}function ii(t){var r,i;for(t==null?t=function(){return!0}:n.isFunction(t)||(r=t+"",t=function(n){return n._id==r}),u=n.grep(u,t,!0),i=0;i<e.length;i++)n.isArray(e[i].events)&&(e[i].events=n.grep(e[i].events,t,!0));c(u)}function ft(t){return n.isFunction(t)?n.grep(u,t):t!=null?(t+="",n.grep(u,function(n){return n._id==t})):u}function ri(n){n.start=r.moment(n.start);n.end&&(n.end=r.moment(n.end));at(n)}function l(i,u){var s={},o,e,h;if(r.options.eventDataTransform&&(i=r.options.eventDataTransform(i)),u&&u.eventDataTransform&&(i=u.eventDataTransform(i)),n.extend(s,i),u&&(s.source=u),s._id=i._id||(i.id===undefined?"_fc"+vu++:i.id+""),s.className=i.className?typeof i.className=="string"?i.className.split(/\s+/):i.className:[],o=i.start||i.date,e=i.end,lr(o)&&(o=t.duration(o)),lr(e)&&(e=t.duration(e)),i.dow||t.isDuration(o)||t.isDuration(e))s.start=o?t.duration(o):null,s.end=e?t.duration(e):null,s._recurring=!0;else{if(o&&(o=r.moment(o),!o.isValid()))return!1;e&&(e=r.moment(e),e.isValid()||(e=null));h=i.allDay;h===undefined&&(h=f(u?u.allDayDefault:undefined,r.options.allDayDefault));et(o,e,h,s)}return r.normalizeEvent(s),s}function et(n,t,i,r){r.start=n;r.end=t;r.allDay=i;h(r);at(r)}function h(n){ot(n);n.end&&!n.end.isAfter(n.start)&&(n.end=null);n.end||(n.end=r.options.forceEventDuration?r.getDefaultEventEnd(n.allDay,n.start):null)}function ot(n){n.allDay==null&&(n.allDay=!(n.start.hasTime()||n.end&&n.end.hasTime()));n.allDay?(n.start.stripTime(),n.end&&n.end.stripTime()):(n.start.hasTime()||(n.start=r.applyTimezone(n.start.time(0))),n.end&&!n.end.hasTime()&&(n.end=r.applyTimezone(n.end.time(0))))}function p(t,i,r){var a=[],f,v,e,u,h,c,l,y,p;if(i=i||o,r=r||s,t)if(t._recurring){if(v=t.dow)for(f={},e=0;e<v.length;e++)f[v[e]]=!0;for(u=i.clone().stripTime();u.isBefore(r);)(!f||f[u.day()])&&(h=t.start,c=t.end,l=u.clone(),y=null,h&&(l=l.time(h)),c&&(y=u.clone().time(c)),p=n.extend({},t),et(l,y,!h&&!c,p),a.push(p)),u.add(1,"days")}else a.push(t);return a}function st(t,i,u){function s(n,t){return u?cr(n,t,u):i.allDay?sf(n,t):hr(n,t)}var c={},f,l,e,a,o,v;return i=i||{},i.start||(i.start=t.start.clone()),i.end===undefined&&(i.end=t.end?t.end.clone():null),i.allDay==null&&(i.allDay=t.allDay),h(i),f={start:t._start.clone(),end:t._end?t._end.clone():r.getDefaultEventEnd(t._allDay,t._start),allDay:i.allDay},h(f),l=t._end!==null&&i.end===null,e=s(i.start,f.start),i.end?(a=s(i.end,f.end),o=a.subtract(e)):o=null,n.each(i,function(n,t){ut(n)&&t!==undefined&&(c[n]=t)}),v=ui(ft(t._id),l,i.allDay,e,o,c),{dateDelta:e,durationDelta:o,undo:v}}function ui(t,i,u,f,e,o){var c=r.getIsAmbigTimezone(),s=[];return f&&!f.valueOf()&&(f=null),e&&!e.valueOf()&&(e=null),n.each(t,function(t,l){var v,a;v={start:l.start.clone(),end:l.end?l.end.clone():null,allDay:l.allDay};n.each(o,function(n){v[n]=l[n]});a={start:l._start,end:l._end,allDay:u};h(a);i?a.end=null:e&&!a.end&&(a.end=r.getDefaultEventEnd(a.allDay,a.start));f&&(a.start.add(f),a.end&&a.end.add(f));e&&a.end.add(e);c&&!a.allDay&&(f||e)&&(a.start.stripZone(),a.end&&a.end.stripZone());n.extend(l,o,a);at(l);s.push(function(){n.extend(l,v);at(l)})}),function(){for(var n=0;n<s.length;n++)s[n]()}}var r=this;r.isFetchNeeded=ct;r.fetchEvents=lt;r.fetchEventSources=a;r.getEventSources=kt;r.getEventSourceById=nt;r.getEventSourcesByMatchArray=tt;r.getEventSourcesByMatch=y;r.addEventSource=pt;r.removeEventSource=wt;r.removeEventSources=bt;r.updateEvent=gt;r.renderEvent=ti;r.removeEvents=ii;r.clientEvents=ft;r.mutateEvent=st;r.normalizeEventDates=h;r.normalizeEventTimes=ot;var c=r.reportEvents,w={events:[]},e=[w],o,s,b=0,u=[];n.each((r.options.events?[r.options.events]:[]).concat(r.options.eventSources||[]),function(n,t){var i=g(t);i&&e.push(i)});r.rezoneArrayEventSources=function(){for(var t,i,r=0;r<e.length;r++)if(t=e[r].events,n.isArray(t))for(i=0;i<t.length;i++)ri(t[i])};r.buildEventFromInput=l;r.expandEvent=p;r.getEventCache=function(){return u}}function at(n){n._allDay=n.allDay;n._start=n.start.clone();n._end=n.end?n.end.clone():null}var i=n.fullCalendar={version:"3.0.1",internalApiVersion:6},e=i.views={},ou,vt,hi,yt,su,ci,hu,pt,cu,tt,lu,h,li,it,ai,w,au,vu,vi,yu,pu;n.fn.fullCalendar=function(t){var r=Array.prototype.slice.call(arguments,1),i=this;return this.each(function(f,e){var s=n(e),o=s.data("fullCalendar"),h;typeof t=="string"?o&&n.isFunction(o[t])&&(h=o[t].apply(o,r),f||(i=h),t==="destroy"&&s.removeData("fullCalendar")):o||(o=new u(s,t),s.data("fullCalendar",o),o.render())}),i};ou=["header","buttonText","buttonIcons","themeButtonIcons"];i.intersectRanges=ot;i.applyAll=ht;i.debounce=lt;i.isInt=y;i.htmlEscape=r;i.cssToStr=ct;i.proxy=d;i.capitaliseFirstLetter=vr;i.getOuterRect=dt;i.getClientRect=tr;i.getContentRect=du;i.getScrollbarWidths=gt;vt=null;i.preventDefault=et;i.intersectRects=ur;i.parseFieldSpecs=fr;i.compareByFieldSpecs=er;i.compareByFieldSpec=or;i.flexibleCompare=sr;i.computeIntervalUnit=ni;i.divideRangeByDuration=cf;i.divideDurationByDuration=ti;i.multiplyDuration=lf;i.durationHasTime=k;hi=["sun","mon","tue","wed","thu","fri","sat"];yt=["year","month","week","day","hour","minute","second","millisecond"];i.log=function(){var n=window.console;if(n&&n.log)return n.log.apply(n,arguments)};i.warn=function(){var n=window.console;return n&&n.warn?n.warn.apply(n,arguments):i.log.apply(i,arguments)};su={}.hasOwnProperty;var ce=/^\s*\d{4}-\d\d$/,le=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,o=t.fn,v=n.extend({},o),yi=t.momentProperties;yi.push("_fullCalendar");yi.push("_ambigTime");yi.push("_ambigZone");i.moment=function(){return ei(arguments)};i.moment.utc=function(){var n=ei(arguments,!0);return n.hasTime()&&n.utc(),n};i.moment.parseZone=function(){return ei(arguments,!0,!0)};o.week=o.weeks=function(n){var t=this._locale._fullCalendar_weekCalc;return n==null&&typeof t=="function"?t(this):t==="ISO"?v.isoWeek.apply(this,arguments):v.week.apply(this,arguments)};o.time=function(n){if(!this._fullCalendar)return v.time.apply(this,arguments);if(n==null)return t.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1;t.isDuration(n)||t.isMoment(n)||(n=t.duration(n));var i=0;return t.isDuration(n)&&(i=Math.floor(n.asDays())*24),this.hours(i+n.hours()).minutes(n.minutes()).seconds(n.seconds()).milliseconds(n.milliseconds())};o.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this};o.hasTime=function(){return!this._ambigTime};o.stripZone=function(){var n;return this._ambigZone||(n=this._ambigTime,this.utc(!0),this._ambigTime=n||!1,this._ambigZone=!0),this};o.hasZone=function(){return!this._ambigZone};o.local=function(n){return v.local.call(this,this._ambigZone||n),this._ambigTime=!1,this._ambigZone=!1,this};o.utc=function(n){return v.utc.call(this,n),this._ambigTime=!1,this._ambigZone=!1,this};o.utcOffset=function(n){return n!=null&&(this._ambigTime=!1,this._ambigZone=!1),v.utcOffset.apply(this,arguments)};o.format=function(){return this._fullCalendar&&arguments[0]?wf(this,arguments[0]):this._ambigTime?p(this,"YYYY-MM-DD"):this._ambigZone?p(this,"YYYY-MM-DD[T]HH:mm:ss"):v.format.apply(this,arguments)};o.toISOString=function(){return this._ambigTime?p(this,"YYYY-MM-DD"):this._ambigZone?p(this,"YYYY-MM-DD[T]HH:mm:ss"):v.toISOString.apply(this,arguments)};ci={t:function(n){return p(n,"a").charAt(0)},T:function(n){return p(n,"A").charAt(0)}};i.formatRange=pr;hu={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"};pt={};cu={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};i.queryMostGranularFormatUnit=function(n){for(var f=si(n),r,i,t,u=0;u<f.length;u++)r=f[u],r.token&&(i=cu[r.token.charAt(0)],i&&(!t||i.value>t.value)&&(t=i));return t?t.unit:null};i.Class=s;s.extend=function(){for(var i=arguments.length,t,n=0;n<i;n++)t=arguments[n],n<i-1&&kr(this,t);return kf(this,t||{})};s.mixin=function(n){kr(this,n)};var wu=i.EmitterMixin={on:function(t,i){var r=function(n,t){return i.apply(t.context||this,t.args||[])};i.guid||(i.guid=n.guid++);r.guid=i.guid;n(this).on(t,r);return this},off:function(t,i){return n(this).off(t,i),this},trigger:function(t){var i=Array.prototype.slice.call(arguments,1);return n(this).triggerHandler(t,{args:i}),this},triggerWith:function(t,i,r){return n(this).triggerHandler(t,{context:i,args:r}),this}},rt=i.ListenerMixin=function(){var t=0;return{listenerId:null,listenTo:function(t,i,r){if((typeof i=="undefined"?"undefined":_typeof(i))==="object")for(var u in i)i.hasOwnProperty(u)&&this.listenTo(t,u,i[u]);else if(typeof i=="string")t.on(i+"."+this.getListenerNamespace(),n.proxy(r,this))},stopListeningTo:function(n,t){n.off((t||"")+"."+this.getListenerNamespace())},getListenerNamespace:function(){return this.listenerId==null&&(this.listenerId=t++),"_listener"+this.listenerId}}}(),bu={isIgnoringMouse:!1,delayUnignoreMouse:null,initMouseIgnoring:function(n){this.delayUnignoreMouse=lt(d(this,"unignoreMouse"),n||1e3)},tempIgnoreMouse:function(){this.isIgnoringMouse=!0;this.delayUnignoreMouse()},unignoreMouse:function(){this.isIgnoringMouse=!1}},ae=s.extend(rt,{isHidden:!0,options:null,el:null,margin:10,constructor:function(n){this.options=n||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var i=this,t=this.options;this.el=n('<div class="fc-popover"/>').addClass(t.className||"").css({top:0,left:0}).append(t.content).appendTo(t.parentEl);this.el.on("click",".fc-close",function(){i.hide()});t.autoHide&&this.listenTo(n(document),"mousedown",this.documentMousedown)},documentMousedown:function(t){this.el&&!n(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide();this.el&&(this.el.remove(),this.el=null);this.stopListeningTo(n(document),"mousedown")},position:function(){var t=this.options,h=this.el.offsetParent().offset(),c=this.el.outerWidth(),l=this.el.outerHeight(),o=n(window),i=kt(this.el),f,e,s,r,u;r=t.top||0;u=t.left!==undefined?t.left:t.right!==undefined?t.right-c:0;i.is(window)||i.is(document)?(i=o,f=0,e=0):(s=i.offset(),f=s.top,e=s.left);f+=o.scrollTop();e+=o.scrollLeft();t.viewportConstrain!==!1&&(r=Math.min(r,f+i.outerHeight()-l-this.margin),r=Math.max(r,f+this.margin),u=Math.min(u,e+i.outerWidth()-c-this.margin),u=Math.max(u,e+this.margin));this.el.css({top:r-h.top,left:u-h.left})},trigger:function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1))}}),wt=i.CoordCache=s.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(t){this.els=n(t.els);this.isHorizontal=t.isHorizontal;this.isVertical=t.isVertical;this.forcedOffsetParentEl=t.offsetParent?n(t.offsetParent):null},build:function(){var n=this.forcedOffsetParentEl||this.els.eq(0).offsetParent();this.origin=n.offset();this.boundingRect=this.queryBoundingRect();this.isHorizontal&&this.buildElHorizontals();this.isVertical&&this.buildElVerticals()},clear:function(){this.origin=null;this.boundingRect=null;this.lefts=null;this.rights=null;this.tops=null;this.bottoms=null},ensureBuilt:function(){this.origin||this.build()},buildElHorizontals:function(){var t=[],i=[];this.els.each(function(r,u){var f=n(u),e=f.offset().left,o=f.outerWidth();t.push(e);i.push(e+o)});this.lefts=t;this.rights=i},buildElVerticals:function(){var t=[],i=[];this.els.each(function(r,u){var f=n(u),e=f.offset().top,o=f.outerHeight();t.push(e);i.push(e+o)});this.tops=t;this.bottoms=i},getHorizontalIndex:function(n){this.ensureBuilt();for(var i=this.lefts,r=this.rights,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},getVerticalIndex:function(n){this.ensureBuilt();for(var i=this.tops,r=this.bottoms,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},getLeftOffset:function(n){return this.ensureBuilt(),this.lefts[n]},getLeftPosition:function(n){return this.ensureBuilt(),this.lefts[n]-this.origin.left},getRightOffset:function(n){return this.ensureBuilt(),this.rights[n]},getRightPosition:function(n){return this.ensureBuilt(),this.rights[n]-this.origin.left},getWidth:function(n){return this.ensureBuilt(),this.rights[n]-this.lefts[n]},getTopOffset:function(n){return this.ensureBuilt(),this.tops[n]},getTopPosition:function(n){return this.ensureBuilt(),this.tops[n]-this.origin.top},getBottomOffset:function(n){return this.ensureBuilt(),this.bottoms[n]},getBottomPosition:function(n){return this.ensureBuilt(),this.bottoms[n]-this.origin.top},getHeight:function(n){return this.ensureBuilt(),this.bottoms[n]-this.tops[n]},queryBoundingRect:function(){var n=kt(this.els.eq(0));if(!n.is(document))return tr(n)},isPointInBounds:function(n,t){return this.isLeftInBounds(n)&&this.isTopInBounds(t)},isLeftInBounds:function(n){return!this.boundingRect||n>=this.boundingRect.left&&n<this.boundingRect.right},isTopInBounds:function(n){return!this.boundingRect||n>=this.boundingRect.top&&n<this.boundingRect.bottom}}),c=i.DragListener=s.extend(rt,bu,{options:null,subjectEl:null,originX:null,originY:null,scrollEl:null,isInteracting:!1,isDistanceSurpassed:!1,isDelayEnded:!1,isDragging:!1,isTouch:!1,delay:null,delayTimeoutId:null,minDistance:null,handleTouchScrollProxy:null,constructor:function(n){this.options=n||{};this.handleTouchScrollProxy=d(this,"handleTouchScroll");this.initMouseIgnoring(500)},startInteraction:function(t,i){var r=rr(t);if(t.type==="mousedown"){if(this.isIgnoringMouse)return;if(ir(t))t.preventDefault();else return}this.isInteracting||(i=i||{},this.delay=f(i.delay,this.options.delay,0),this.minDistance=f(i.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,this.isInteracting=!0,this.isTouch=r,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=l(t),this.originY=a(t),this.scrollEl=kt(n(t.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(t),this.startDelay(t),this.minDistance||this.handleDistanceSurpassed(t))},handleInteractionStart:function(n){this.trigger("interactionStart",n)},endInteraction:function(n,t){this.isInteracting&&(this.endDrag(n),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(n,t),this.isTouch&&this.tempIgnoreMouse())},handleInteractionEnd:function(n,t){this.trigger("interactionEnd",n,t||!1)},bindHandlers:function(){var i=this,t=1;this.isTouch?(this.listenTo(n(document),{touchmove:this.handleTouchMove,touchend:this.endInteraction,touchcancel:this.endInteraction,touchstart:function(n){t?t--:i.endInteraction(n,!0)}}),!rf(this.handleTouchScrollProxy)&&this.scrollEl&&this.listenTo(this.scrollEl,"scroll",this.handleTouchScroll)):this.listenTo(n(document),{mousemove:this.handleMouseMove,mouseup:this.endInteraction});this.listenTo(n(document),{selectstart:et,contextmenu:et})},unbindHandlers:function(){this.stopListeningTo(n(document));uf(this.handleTouchScrollProxy);this.scrollEl&&this.stopListeningTo(this.scrollEl,"scroll")},startDrag:function(n,t){this.startInteraction(n,t);this.isDragging||(this.isDragging=!0,this.handleDragStart(n))},handleDragStart:function(n){this.trigger("dragStart",n)},handleMove:function(n){var t=l(n)-this.originX,i=a(n)-this.originY,r=this.minDistance,u;this.isDistanceSurpassed||(u=t*t+i*i,u>=r*r&&this.handleDistanceSurpassed(n));this.isDragging&&this.handleDrag(t,i,n)},handleDrag:function(n,t,i){this.trigger("drag",n,t,i);this.updateAutoScroll(i)},endDrag:function(n){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(n))},handleDragEnd:function(n){this.trigger("dragEnd",n)},startDelay:function(n){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(n)},this.delay):this.handleDelayEnd(n)},handleDelayEnd:function(n){this.isDelayEnded=!0;this.isDistanceSurpassed&&this.startDrag(n)},handleDistanceSurpassed:function(n){this.isDistanceSurpassed=!0;this.isDelayEnded&&this.startDrag(n)},handleTouchMove:function(n){this.isDragging&&n.preventDefault();this.handleMove(n)},handleMouseMove:function(n){this.handleMove(n)},handleTouchScroll:function(n){this.isDragging||this.endInteraction(n,!0)},trigger:function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1));this["_"+n]&&this["_"+n].apply(this,Array.prototype.slice.call(arguments,1))}});c.mixin({isAutoScroll:!1,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,initAutoScroll:function(){var n=this.scrollEl;this.isAutoScroll=this.options.scroll&&n&&!n.is(window)&&!n.is(document);this.isAutoScroll&&this.listenTo(n,"scroll",lt(this.handleDebouncedScroll,100))},destroyAutoScroll:function(){this.endAutoScroll();this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},computeScrollBounds:function(){this.isAutoScroll&&(this.scrollBounds=dt(this.scrollEl))},updateAutoScroll:function(n){var t=this.scrollSensitivity,i=this.scrollBounds,r,u,f,e,o=0,s=0;i&&(r=(t-(a(n)-i.top))/t,u=(t-(i.bottom-a(n)))/t,f=(t-(l(n)-i.left))/t,e=(t-(i.right-l(n)))/t,r>=0&&r<=1?o=r*this.scrollSpeed*-1:u>=0&&u<=1&&(o=u*this.scrollSpeed),f>=0&&f<=1?s=f*this.scrollSpeed*-1:e>=0&&e<=1&&(s=e*this.scrollSpeed));this.setScrollVel(o,s)},setScrollVel:function(n,t){this.scrollTopVel=n;this.scrollLeftVel=t;this.constrainScrollVel();(this.scrollTopVel||this.scrollLeftVel)&&!this.scrollIntervalId&&(this.scrollIntervalId=setInterval(d(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var n=this.scrollEl;this.scrollTopVel<0?n.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&n.scrollTop()+n[0].clientHeight>=n[0].scrollHeight&&(this.scrollTopVel=0);this.scrollLeftVel<0?n.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&n.scrollLeft()+n[0].clientWidth>=n[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var n=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&n.scrollTop(n.scrollTop()+this.scrollTopVel*t);this.scrollLeftVel&&n.scrollLeft(n.scrollLeft()+this.scrollLeftVel*t);this.constrainScrollVel();this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},endAutoScroll:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},handleDebouncedScroll:function(){this.scrollIntervalId||this.handleScrollEnd()},handleScrollEnd:function(){}});tt=c.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(n,t){c.call(this,t);this.component=n},handleInteractionStart:function(n){var r=this.subjectEl,i,u,t;this.computeCoords();n?(u={left:l(n),top:a(n)},t=u,r&&(i=dt(r),t=ff(t,i)),this.origHit=this.queryHit(t.left,t.top),r&&this.options.subjectCenter&&(this.origHit&&(i=ur(this.origHit,i)||i),t=ef(i)),this.coordAdjust=of(t,u)):(this.origHit=null,this.coordAdjust=null);c.prototype.handleInteractionStart.apply(this,arguments)},computeCoords:function(){this.component.prepareHits();this.computeScrollBounds()},handleDragStart:function(n){var t;c.prototype.handleDragStart.apply(this,arguments);t=this.queryHit(l(n),a(n));t&&this.handleHitOver(t)},handleDrag:function(n,t,i){var r;c.prototype.handleDrag.apply(this,arguments);r=this.queryHit(l(i),a(i));dr(r,this.hit)||(this.hit&&this.handleHitOut(),r&&this.handleHitOver(r))},handleDragEnd:function(){this.handleHitDone();c.prototype.handleDragEnd.apply(this,arguments)},handleHitOver:function(n){var t=dr(n,this.origHit);this.hit=n;this.trigger("hitOver",this.hit,t,this.origHit)},handleHitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},handleHitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},handleInteractionEnd:function(){c.prototype.handleInteractionEnd.apply(this,arguments);this.origHit=null;this.hit=null;this.component.releaseHits()},handleScrollEnd:function(){c.prototype.handleScrollEnd.apply(this,arguments);this.computeCoords()},queryHit:function(n,t){return this.coordAdjust&&(n+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(n,t)}});lu=s.extend(rt,{options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,y0:null,x0:null,topDelta:null,leftDelta:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,i){this.options=i=i||{};this.sourceEl=t;this.parentEl=i.parentEl?n(i.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.y0=a(t),this.x0=l(t),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),rr(t)?this.listenTo(n(document),"touchmove",this.handleMove):this.listenTo(n(document),"mousemove",this.handleMove))},stop:function(t,i){function u(){r.isAnimating=!1;r.removeElement();r.top0=r.left0=null;i&&i()}var r=this,f=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(n(document)),t&&f&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:f,complete:u})):u())},getEl:function(){var n=this.el;return n||(n=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),n.addClass("fc-unselectable"),n.appendTo(this.parentEl)),n},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var n,t;this.getEl();this.top0===null&&(n=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=n.top-t.top,this.left0=n.left-t.left);this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},handleMove:function(n){this.topDelta=a(n)-this.y0;this.leftDelta=l(n)-this.x0;this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}});h=i.Grid=s.extend(rt,bu,{hasDayInteractions:!0,view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,dayDragListener:null,segDragListener:null,segResizeListener:null,externalDragListener:null,constructor:function(n){this.view=n;this.isRTL=n.opt("isRTL");this.elsByFill={};this.dayDragListener=this.buildDayDragListener();this.initMouseIgnoring()},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(n){this.start=n.start.clone();this.end=n.end.clone();this.rangeUpdated();this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var n=this.view,t,i;this.eventTimeFormat=n.opt("eventTimeFormat")||n.opt("timeFormat")||this.computeEventTimeFormat();t=n.opt("displayEventTime");t==null&&(t=this.computeDisplayEventTime());i=n.opt("displayEventEnd");i==null&&(i=this.computeDisplayEventEnd());this.displayEventTime=t;this.displayEventEnd=i},spanToSegs:function(){},diffDates:function(n,t){return this.largeUnit?cr(n,t,this.largeUnit):hr(n,t)},prepareHits:function(){},releaseHits:function(){},queryHit:function(){},getHitSpan:function(){},getHitEl:function(){},setElement:function(n){this.el=n;this.hasDayInteractions&&(tf(n),this.bindDayHandler("touchstart",this.dayTouchStart),this.bindDayHandler("mousedown",this.dayMousedown));this.bindSegHandlers();this.bindGlobalHandlers()},bindDayHandler:function(t,i){var r=this;this.el.on(t,function(t){if(!n(t.target).is(r.segSelector+","+r.segSelector+" *,.fc-more,a[data-goto]"))return i.call(r,t)})},removeElement:function(){this.unbindGlobalHandlers();this.clearDragListeners();this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){this.listenTo(n(document),{dragstart:this.externalDragStart,sortstart:this.externalDragStart})},unbindGlobalHandlers:function(){this.stopListeningTo(n(document))},dayMousedown:function(n){this.isIgnoringMouse||this.dayDragListener.startInteraction(n,{})},dayTouchStart:function(n){var t=this.view;(t.isSelected||t.selectedEvent)&&this.tempIgnoreMouse();this.dayDragListener.startInteraction(n,{delay:this.view.opt("longPressDelay")})},buildDayDragListener:function(){var n=this,r=this.view,f=r.opt("selectable"),i,t,u=new tt(this,{scroll:r.opt("dragScroll"),interactionStart:function(){i=u.origHit;t=null},dragStart:function(){r.unselect()},hitOver:function(r,u,e){e&&(u||(i=null),f&&(t=n.computeSelection(n.getHitSpan(e),n.getHitSpan(r)),t?n.renderSelection(t):t===!1&&ut()))},hitOut:function(){i=null;t=null;n.unrenderSelection()},hitDone:function(){ft()},interactionEnd:function(u,f){f||(i&&!n.isIgnoringMouse&&r.triggerDayClick(n.getHitSpan(i),n.getHitEl(i),u),t&&r.reportSelection(t,u))}});return u},clearDragListeners:function(){this.dayDragListener.endInteraction();this.segDragListener&&this.segDragListener.endInteraction();this.segResizeListener&&this.segResizeListener.endInteraction();this.externalDragListener&&this.externalDragListener.endInteraction()},renderEventLocationHelper:function(n,t){var i=this.fabricateHelperEvent(n,t);return this.renderHelper(i,t)},fabricateHelperEvent:function(n,t){var i=t?st(t.event):{};return i.start=n.start.clone(),i.end=n.end?n.end.clone():null,i.allDay=null,this.view.calendar.normalizeEventDates(i),i.className=(i.className||[]).concat("fc-helper"),t||(i.editable=!1),i},renderHelper:function(){},unrenderHelper:function(){},renderSelection:function(n){this.renderHighlight(n)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(n,t){var i=this.computeSelectionSpan(n,t);return i&&!this.view.calendar.isSelectionSpanAllowed(i)?!1:i},computeSelectionSpan:function(n,t){var i=[n.start,n.end,t.start,t.end];return i.sort(pf),{start:i[0].clone(),end:i[3].clone()}},renderHighlight:function(n){this.renderFill("highlight",this.spanToSegs(n))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderBusinessHours:function(){},unrenderBusinessHours:function(){},getNowIndicatorUnit:function(){},renderNowIndicator:function(){},unrenderNowIndicator:function(){},renderFill:function(){},unrenderFill:function(n){var t=this.elsByFill[n];t&&(t.remove(),delete this.elsByFill[n])},renderFillSegEls:function(t,i){var u=this,f=this[t+"SegEl"],e="",o=[],r;if(i.length){for(r=0;r<i.length;r++)e+=this.fillSegHtml(t,i[r]);n(e).each(function(t,r){var s=i[t],e=n(r);f&&(e=f.call(u,s,e));e&&(e=n(e),e.is(u.fillSegTag)&&(s.el=e,o.push(s)))})}return o},fillSegTag:"div",fillSegHtml:function(n,t){var i=this[n+"SegClasses"],r=this[n+"SegCss"],u=i?i.call(this,t):[],f=ct(r?r.call(this,t):{});return"<"+this.fillSegTag+(u.length?' class="'+u.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},getDayClasses:function(n){var i=this.view,r=i.calendar.getNow(),t=["fc-"+hi[n.day()]];return i.intervalDuration.as("months")==1&&n.month()!=i.intervalStart.month()&&t.push("fc-other-month"),n.isSame(r,"day")?t.push("fc-today",i.highlightStateClass):n<r?t.push("fc-past"):t.push("fc-future"),t}});h.mixin({segSelector:".fc-event-container > *",mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExternal:!1,segs:null,renderEvents:function(n){for(var i=[],r=[],t=0;t<n.length;t++)(tu(n[t])?i:r).push(n[t]);this.segs=[].concat(this.renderBgEvents(i),this.renderFgEvents(r))},renderBgEvents:function(n){var t=this.eventsToSegs(n);return this.renderBgSegs(t)||t},renderFgEvents:function(n){var t=this.eventsToSegs(n);return this.renderFgSegs(t)||t},unrenderEvents:function(){this.handleSegMouseout();this.clearDragListeners();this.unrenderFgSegs();this.unrenderBgSegs();this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(){},unrenderFgSegs:function(){},renderFgSegEls:function(t,i){var e=this.view,u="",f=[],r;if(t.length){for(r=0;r<t.length;r++)u+=this.fgSegHtml(t[r],i);n(u).each(function(i,r){var u=t[i],o=e.resolveEventEl(u.event,n(r));o&&(o.data("fc-seg",u),u.el=o,f.push(u))})}return f},fgSegHtml:function(){},renderBgSegs:function(n){return this.renderFill("bgEvent",n)},unrenderBgSegs:function(){this.unrenderFill("bgEvent")},bgEventSegEl:function(n,t){return this.view.resolveEventEl(n.event,t)},bgEventSegClasses:function(n){var t=n.event,i=t.source||{};return["fc-bgevent"].concat(t.className,i.className||[])},bgEventSegCss:function(n){return{"background-color":this.getSegSkinCss(n)["background-color"]}},businessHoursSegClasses:function(){return["fc-nonbusiness","fc-bgevent"]},buildBusinessHourSegs:function(t){var i=this.view.calendar.getCurrentBusinessHourEvents(t);return!i.length&&this.view.calendar.options.businessHours&&(i=[n.extend({},vi,{start:this.view.end,end:this.view.end,dow:null})]),this.eventsToSegs(i)},bindSegHandlers:function(){this.bindSegHandlersToEl(this.el)},bindSegHandlersToEl:function(n){this.bindSegHandlerToEl(n,"touchstart",this.handleSegTouchStart);this.bindSegHandlerToEl(n,"touchend",this.handleSegTouchEnd);this.bindSegHandlerToEl(n,"mouseenter",this.handleSegMouseover);this.bindSegHandlerToEl(n,"mouseleave",this.handleSegMouseout);this.bindSegHandlerToEl(n,"mousedown",this.handleSegMousedown);this.bindSegHandlerToEl(n,"click",this.handleSegClick)},bindSegHandlerToEl:function(t,i,r){var u=this;t.on(i,this.segSelector,function(t){var i=n(this).data("fc-seg");if(i&&!u.isDraggingSeg&&!u.isResizingSeg)return r.call(u,i,t)})},handleSegClick:function(n,t){var i=this.view.trigger("eventClick",n.el[0],n.event,t);i===!1&&t.preventDefault()},handleSegMouseover:function(n,t){this.isIgnoringMouse||this.mousedOverSeg||(this.mousedOverSeg=n,this.view.isEventResizable(n.event)&&n.el.addClass("fc-allow-mouse-resize"),this.view.trigger("eventMouseover",n.el[0],n.event,t))},handleSegMouseout:function(n,t){t=t||{};this.mousedOverSeg&&(n=n||this.mousedOverSeg,this.mousedOverSeg=null,this.view.isEventResizable(n.event)&&n.el.removeClass("fc-allow-mouse-resize"),this.view.trigger("eventMouseout",n.el[0],n.event,t))},handleSegMousedown:function(n,t){var i=this.startSegResize(n,t,{distance:5});!i&&this.view.isEventDraggable(n.event)&&this.buildSegDragListener(n).startInteraction(t,{distance:5})},handleSegTouchStart:function(n,t){var i=this.view,r=n.event,u=i.isEventSelected(r),f=i.isEventDraggable(r),e=i.isEventResizable(r),o=!1,s;u&&e&&(o=this.startSegResize(n,t));!o&&(f||e)&&(s=f?this.buildSegDragListener(n):this.buildSegSelectListener(n),s.startInteraction(t,{delay:u?0:this.view.opt("longPressDelay")}));this.tempIgnoreMouse()},handleSegTouchEnd:function(){this.tempIgnoreMouse()},startSegResize:function(t,i,r){return n(i.target).is(".fc-resizer")?(this.buildSegResizeListener(t,n(i.target).is(".fc-start-resizer")).startInteraction(i,r),!0):!1},buildSegDragListener:function(n){var r=this,t=this.view,h=t.calendar,s=n.el,u=n.event,o,f,i,e;return this.segDragListener?this.segDragListener:e=this.segDragListener=new tt(t,{scroll:t.opt("dragScroll"),subjectEl:s,subjectCenter:!0,interactionStart:function(i){n.component=r;o=!1;f=new lu(n.el,{additionalClass:"fc-dragging",parentEl:t.el,opacity:e.isTouch?null:t.opt("dragOpacity"),revertDuration:t.opt("dragRevertDuration"),zIndex:2});f.hide();f.start(i)},dragStart:function(i){e.isTouch&&!t.isEventSelected(u)&&t.selectEvent(u);o=!0;r.handleSegMouseout(n,i);r.segDragStart(n,i);t.hideEvent(u)},hitOver:function(o,s,c){var l;n.hit&&(c=n.hit);i=r.computeEventDrop(c.component.getHitSpan(c),o.component.getHitSpan(o),u);i&&!h.isEventSpanAllowed(r.eventToSpan(i),u)&&(ut(),i=null);i&&(l=t.renderDrag(i,n))?(l.addClass("fc-dragging"),e.isTouch||r.applyDragOpacity(l),f.hide()):f.show();s&&(i=null)},hitOut:function(){t.unrenderDrag();f.show();i=null},hitDone:function(){ft()},interactionEnd:function(e){delete n.component;f.stop(!i,function(){o&&(t.unrenderDrag(),t.showEvent(u),r.segDragStop(n,e));i&&t.reportEventDrop(u,i,this.largeUnit,s,e)});r.segDragListener=null}})},buildSegSelectListener:function(n){var u=this,t=this.view,i=n.event,r;return this.segDragListener?this.segDragListener:r=this.segDragListener=new c({dragStart:function(){r.isTouch&&!t.isEventSelected(i)&&t.selectEvent(i)},interactionEnd:function(){u.segDragListener=null}})},segDragStart:function(n,t){this.isDraggingSeg=!0;this.view.trigger("eventDragStart",n.el[0],n.event,t,{})},segDragStop:function(n,t){this.isDraggingSeg=!1;this.view.trigger("eventDragStop",n.el[0],n.event,t,{})},computeEventDrop:function(n,t,i){var e=this.view.calendar,o=n.start,u=t.start,f,r;return o.hasTime()===u.hasTime()?(f=this.diffDates(u,o),i.allDay&&k(f)?(r={start:i.start.clone(),end:e.getEventEnd(i),allDay:!1},e.normalizeEventTimes(r)):r=nu(i),r.start.add(f),r.end&&r.end.add(f)):r={start:u.clone(),end:null,allDay:!u.hasTime()},r},applyDragOpacity:function(n){var t=this.view.opt("dragOpacity");t!=null&&n.css("opacity",t)},externalDragStart:function(t,i){var f=this.view,r,u;f.opt("droppable")&&(r=n((i?i.item:null)||t.target),u=f.opt("dropAccept"),(n.isFunction(u)?u.call(r[0],r):r.is(u))&&(this.isDraggingExternal||this.listenToExternalDrag(r,t,i)))},listenToExternalDrag:function(n,t,i){var u=this,e=this.view.calendar,f=te(n),r,o=u.externalDragListener=new tt(this,{interactionStart:function(){u.isDraggingExternal=!0},hitOver:function(n){r=u.computeExternalDrop(n.component.getHitSpan(n),f);r&&!e.isExternalSpanAllowed(u.eventToSpan(r),r,f.eventProps)&&(ut(),r=null);r&&u.renderDrag(r)},hitOut:function(){r=null},hitDone:function(){ft();u.unrenderDrag()},interactionEnd:function(t){r&&u.view.reportExternalDrop(f,r,n,t,i);u.isDraggingExternal=!1;u.externalDragListener=null}});o.startDrag(t)},computeExternalDrop:function(n,t){var r=this.view.calendar,i={start:r.applyTimezone(n.start),end:null};return t.startTime&&!i.start.hasTime()&&i.start.time(t.startTime),t.duration&&(i.end=i.start.clone().add(t.duration)),i},renderDrag:function(){},unrenderDrag:function(){},buildSegResizeListener:function(n,t){var r=this,f=this.view,o=f.calendar,s=n.el,u=n.event,h=o.getEventEnd(u),e,i;return this.segResizeListener=new tt(this,{scroll:f.opt("dragScroll"),subjectEl:s,interactionStart:function(){e=!1},dragStart:function(t){e=!0;r.handleSegMouseout(n,t);r.segResizeStart(n,t)},hitOver:function(e,s,c){var l=r.getHitSpan(c),a=r.getHitSpan(e);i=t?r.computeEventStartResize(l,a,u):r.computeEventEndResize(l,a,u);i&&(o.isEventSpanAllowed(r.eventToSpan(i),u)?i.start.isSame(u.start.clone().stripZone())&&i.end.isSame(h.clone().stripZone())&&(i=null):(ut(),i=null));i&&(f.hideEvent(u),r.renderEventResize(i,n))},hitOut:function(){i=null},hitDone:function(){r.unrenderEventResize();f.showEvent(u);ft()},interactionEnd:function(t){e&&r.segResizeStop(n,t);i&&f.reportEventResize(u,i,this.largeUnit,s,t);r.segResizeListener=null}})},segResizeStart:function(n,t){this.isResizingSeg=!0;this.view.trigger("eventResizeStart",n.el[0],n.event,t,{})},segResizeStop:function(n,t){this.isResizingSeg=!1;this.view.trigger("eventResizeStop",n.el[0],n.event,t,{})},computeEventStartResize:function(n,t,i){return this.computeEventResize("start",n,t,i)},computeEventEndResize:function(n,t,i){return this.computeEventResize("end",n,t,i)},computeEventResize:function(n,t,i,r){var f=this.view.calendar,o=this.diffDates(i[n],t[n]),u,e;return u={start:r.start.clone(),end:f.getEventEnd(r),allDay:r.allDay},u.allDay&&k(o)&&(u.allDay=!1,f.normalizeEventTimes(u)),u[n].add(o),u.start.isBefore(u.end)||(e=this.minResizeDuration||(r.allDay?f.defaultAllDayEventDuration:f.defaultTimedEventDuration),n=="start"?u.start=u.end.clone().subtract(e):u.end=u.start.clone().add(e)),u},renderEventResize:function(){},unrenderEventResize:function(){},getEventTimeText:function(n,t,i){return(t==null&&(t=this.eventTimeFormat),i==null&&(i=this.displayEventEnd),this.displayEventTime&&n.start.hasTime())?i&&n.end?this.view.formatRange(n,t):n.start.format(t):""},getSegClasses:function(n,t,i){var u=this.view,r=["fc-event",n.isStart?"fc-start":"fc-not-start",n.isEnd?"fc-end":"fc-not-end"].concat(this.getSegCustomClasses(n));return t&&r.push("fc-draggable"),i&&r.push("fc-resizable"),u.isEventSelected(n.event)&&r.push("fc-selected"),r},getSegCustomClasses:function(n){var t=n.event;return[].concat(t.className,t.source?t.source.className:[])},getSegSkinCss:function(n){return{"background-color":this.getSegBackgroundColor(n),"border-color":this.getSegBorderColor(n),color:this.getSegTextColor(n)}},getSegBackgroundColor:function(n){return n.event.backgroundColor||n.event.color||this.getSegDefaultBackgroundColor(n)},getSegDefaultBackgroundColor:function(n){var t=n.event.source||{};return t.backgroundColor||t.color||this.view.opt("eventBackgroundColor")||this.view.opt("eventColor")},getSegBorderColor:function(n){return n.event.borderColor||n.event.color||this.getSegDefaultBorderColor(n)},getSegDefaultBorderColor:function(n){var t=n.event.source||{};return t.borderColor||t.color||this.view.opt("eventBorderColor")||this.view.opt("eventColor")},getSegTextColor:function(n){return n.event.textColor||this.getSegDefaultTextColor(n)},getSegDefaultTextColor:function(n){var t=n.event.source||{};return t.textColor||this.view.opt("eventTextColor")},eventToSegs:function(n){return this.eventsToSegs([n])},eventToSpan:function(n){return this.eventToSpans(n)[0]},eventToSpans:function(n){var t=this.eventToRange(n);return this.eventRangeToSpans(t,n)},eventsToSegs:function(t,i){var u=this,f=gf(t),r=[];return n.each(f,function(n,t){for(var e=[],f=0;f<t.length;f++)e.push(u.eventToRange(t[f]));if(df(t[0]))for(e=u.invertRanges(e),f=0;f<e.length;f++)r.push.apply(r,u.eventRangeToSegs(e[f],t[0],i));else for(f=0;f<e.length;f++)r.push.apply(r,u.eventRangeToSegs(e[f],t[f],i))}),r},eventToRange:function(n){var t=this.view.calendar,i=n.start.clone().stripZone(),r=(n.end?n.end.clone():t.getDefaultEventEnd(n.allDay!=null?n.allDay:!n.start.hasTime(),n.start)).stripZone();return t.localizeMoment(i),t.localizeMoment(r),{start:i,end:r}},eventRangeToSegs:function(n,t,i){for(var f=this.eventRangeToSpans(n,t),r=[],u=0;u<f.length;u++)r.push.apply(r,this.eventSpanToSegs(f[u],t,i));return r},eventRangeToSpans:function(t){return[n.extend({},t)]},eventSpanToSegs:function(n,t,i){for(var u=i?i(n):this.spanToSegs(n),r,f=0;f<u.length;f++)r=u[f],r.event=t,r.eventStartMS=+n.start,r.eventDurationMS=n.end-n.start;return u},invertRanges:function(n){var f=this.view,o=f.start.clone(),e=f.end.clone(),u=[],t=o,i,r;for(n.sort(ne),i=0;i<n.length;i++)r=n[i],r.start>t&&u.push({start:t,end:r.start}),t=r.end;return t<e&&u.push({start:t,end:e}),u},sortEventSegs:function(n){n.sort(d(this,"compareEventSegs"))},compareEventSegs:function(n,t){return n.eventStartMS-t.eventStartMS||t.eventDurationMS-n.eventDurationMS||t.event.allDay-n.event.allDay||er(n.event,t.event,this.view.eventOrderSpecs)}});i.pluckEventDateProps=nu;i.isBgEvent=tu;i.dataAttrPrefix="";li=i.DayTableMixin={breakOnWeeks:!1,dayDates:null,dayIndices:null,daysPerRow:null,rowCnt:null,colCnt:null,colHeadFormat:null,updateDayTable:function(){for(var o=this.view,i=this.start.clone(),r=-1,u=[],n=[],t,e,f;i.isBefore(this.end);)o.isHiddenDay(i)?u.push(r+.5):(r++,u.push(r),n.push(i.clone())),i.add(1,"days");if(this.breakOnWeeks){for(e=n[0].day(),t=1;t<n.length;t++)if(n[t].day()==e)break;f=Math.ceil(n.length/t)}else f=1,t=n.length;this.dayDates=n;this.dayIndices=u;this.daysPerRow=t;this.rowCnt=f;this.updateDayTableCols()},updateDayTableCols:function(){this.colCnt=this.computeColCnt();this.colHeadFormat=this.view.opt("columnFormat")||this.computeColHeadFormat()},computeColCnt:function(){return this.daysPerRow},getCellDate:function(n,t){return this.dayDates[this.getCellDayIndex(n,t)].clone()},getCellRange:function(n,t){var i=this.getCellDate(n,t),r=i.clone().add(1,"days");return{start:i,end:r}},getCellDayIndex:function(n,t){return n*this.daysPerRow+this.getColDayIndex(t)},getColDayIndex:function(n){return this.isRTL?this.colCnt-1-n:n},getDateDayIndex:function(n){var t=this.dayIndices,i=n.diff(this.start,"days");return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},computeColHeadFormat:function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},sliceRangeByRow:function(n){for(var f=this.daysPerRow,e=this.view.computeDayRange(n),o=this.getDateDayIndex(e.start),s=this.getDateDayIndex(e.end.clone().subtract(1,"days")),h=[],r,c,t,i,u=0;u<this.rowCnt;u++)r=u*f,c=r+f-1,t=Math.max(o,r),i=Math.min(s,c),t=Math.ceil(t),i=Math.floor(i),t<=i&&h.push({row:u,firstRowDayIndex:t-r,lastRowDayIndex:i-r,isStart:t===o,isEnd:i===s});return h},sliceRangeByDay:function(n){for(var e=this.daysPerRow,o=this.view.computeDayRange(n),s=this.getDateDayIndex(o.start),h=this.getDateDayIndex(o.end.clone().subtract(1,"days")),c=[],r,l,u,t,i,f=0;f<this.rowCnt;f++)for(r=f*e,l=r+e-1,u=r;u<=l;u++)t=Math.max(s,u),i=Math.min(h,u),t=Math.ceil(t),i=Math.floor(i),t<=i&&c.push({row:f,firstRowDayIndex:t-r,lastRowDayIndex:i-r,isStart:t===s,isEnd:i===h});return c},renderHeadHtml:function(){var n=this.view;return'<div class="fc-row '+n.widgetHeaderClass+'"><table><thead>'+this.renderHeadTrHtml()+"<\/thead><\/table><\/div>"},renderHeadIntroHtml:function(){return this.renderIntroHtml()},renderHeadTrHtml:function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"<\/tr>"},renderHeadDateCellsHtml:function(){for(var t=[],i,n=0;n<this.colCnt;n++)i=this.getCellDate(0,n),t.push(this.renderHeadDateCellHtml(i));return t.join("")},renderHeadDateCellHtml:function(n,t,i){var u=this.view;return'<th class="fc-day-header '+u.widgetHeaderClass+" fc-"+hi[n.day()]+'"'+(this.rowCnt===1?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(i?" "+i:"")+">"+u.buildGotoAnchorHtml({date:n,forceOff:this.rowCnt>1||this.colCnt===1},r(n.format(this.colHeadFormat)))+"<\/th>"},renderBgTrHtml:function(n){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(n))+this.renderBgCellsHtml(n)+(this.isRTL?this.renderBgIntroHtml(n):"")+"<\/tr>"},renderBgIntroHtml:function(){return this.renderIntroHtml()},renderBgCellsHtml:function(n){for(var i=[],r,t=0;t<this.colCnt;t++)r=this.getCellDate(n,t),i.push(this.renderBgCellHtml(r));return i.join("")},renderBgCellHtml:function(n,t){var r=this.view,i=this.getDayClasses(n);return i.unshift("fc-day",r.widgetContentClass),'<td class="'+i.join(" ")+'" data-date="'+n.format("YYYY-MM-DD")+'"'+(t?" "+t:"")+"><\/td>"},renderIntroHtml:function(){},bookendCells:function(n){var t=this.renderIntroHtml();t&&(this.isRTL?n.append(t):n.prepend(t))}};it=i.DayGrid=h.extend(li,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(n){for(var f=this.view,r=this.rowCnt,e=this.colCnt,u="",i,t=0;t<r;t++)u+=this.renderDayRowHtml(t,n);for(this.el.html(u),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day"),this.rowCoordCache=new wt({els:this.rowEls,isVertical:!0}),this.colCoordCache=new wt({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),t=0;t<r;t++)for(i=0;i<e;i++)f.trigger("dayRender",null,this.getCellDate(t,i),this.getCellEl(t,i))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var n=this.buildBusinessHourSegs(!0);this.renderFill("businessHours",n,"bgevent")},unrenderBusinessHours:function(){this.unrenderFill("businessHours")},renderDayRowHtml:function(n,t){var r=this.view,i=["fc-row","fc-week",r.widgetContentClass];return t&&i.push("fc-rigid"),'<div class="'+i.join(" ")+'"><div class="fc-bg"><table>'+this.renderBgTrHtml(n)+'<\/table><\/div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.renderNumberTrHtml(n)+"<\/thead>":"")+"<\/table><\/div><\/div>"},renderNumberTrHtml:function(n){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(n))+this.renderNumberCellsHtml(n)+(this.isRTL?this.renderNumberIntroHtml(n):"")+"<\/tr>"},renderNumberIntroHtml:function(){return this.renderIntroHtml()},renderNumberCellsHtml:function(n){for(var i=[],r,t=0;t<this.colCnt;t++)r=this.getCellDate(n,t),i.push(this.renderNumberCellHtml(r));return i.join("")},renderNumberCellHtml:function(n){var t="",i,r;return!this.view.dayNumbersVisible&&!this.view.cellWeekNumbersVisible?"<td/>":(i=this.getDayClasses(n),i.unshift("fc-day-top"),this.view.cellWeekNumbersVisible&&(r=n._locale._fullCalendar_weekCalc==="ISO"?1:n._locale.firstDayOfWeek()),t+='<td class="'+i.join(" ")+'" data-date="'+n.format()+'">',this.view.cellWeekNumbersVisible&&n.day()==r&&(t+=this.view.buildGotoAnchorHtml({date:n,type:"week"},{"class":"fc-week-number"},n.format("w"))),this.view.dayNumbersVisible&&(t+=this.view.buildGotoAnchorHtml(n,{"class":"fc-day-number"},n.date())),t+"<\/td>")},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return this.colCnt==1},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(n){for(var i=this.sliceRangeByRow(n),t,r=0;r<i.length;r++)t=i[r],this.isRTL?(t.leftCol=this.daysPerRow-1-t.lastRowDayIndex,t.rightCol=this.daysPerRow-1-t.firstRowDayIndex):(t.leftCol=t.firstRowDayIndex,t.rightCol=t.lastRowDayIndex);return i},prepareHits:function(){this.colCoordCache.build();this.rowCoordCache.build();this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},releaseHits:function(){this.colCoordCache.clear();this.rowCoordCache.clear()},queryHit:function(n,t){if(this.colCoordCache.isLeftInBounds(n)&&this.rowCoordCache.isTopInBounds(t)){var i=this.colCoordCache.getHorizontalIndex(n),r=this.rowCoordCache.getVerticalIndex(t);if(r!=null&&i!=null)return this.getCellHit(r,i)}},getHitSpan:function(n){return this.getCellRange(n.row,n.col)},getHitEl:function(n){return this.getCellEl(n.row,n.col)},getCellHit:function(n,t){return{row:n,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(n),bottom:this.rowCoordCache.getBottomOffset(n)}},getCellEl:function(n,t){return this.cellEls.eq(n*this.colCnt+t)},renderDrag:function(n,t){return this.renderHighlight(this.eventToSpan(n)),t&&t.component!==this?this.renderEventLocationHelper(n,t):void 0},unrenderDrag:function(){this.unrenderHighlight();this.unrenderHelper()},renderEventResize:function(n,t){return this.renderHighlight(this.eventToSpan(n)),this.renderEventLocationHelper(n,t)},unrenderEventResize:function(){this.unrenderHighlight();this.unrenderHelper()},renderHelper:function(t,i){var u=[],r=this.eventToSegs(t),f;return r=this.renderFgSegEls(r),f=this.renderSegRows(r),this.rowEls.each(function(t,r){var o=n(r),e=n('<div class="fc-helper-skeleton"><table/><\/div>'),s;s=i&&i.row===t?i.el.position().top:o.find(".fc-content-skeleton tbody").position().top;e.css("top",s).find("table").append(f[t].tbodyEl);o.append(e);u.push(e[0])}),this.helperEls=n(u)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,i,r){var o=[],u,f,e;for(i=this.renderFillSegEls(t,i),u=0;u<i.length;u++)f=i[u],e=this.renderFillRow(t,f,r),this.rowEls.eq(f.row).append(e),o.push(e[0]);return this.elsByFill[t]=n(o),i},renderFillRow:function(t,i,r){var s=this.colCnt,f=i.leftCol,e=i.rightCol+1,o,u;return r=r||t.toLowerCase(),o=n('<div class="fc-'+r+'-skeleton"><table><tr/><\/table><\/div>'),u=o.find("tr"),f>0&&u.append('<td colspan="'+f+'"/>'),u.append(i.el.attr("colspan",e-f)),e<s&&u.append('<td colspan="'+(s-e)+'"/>'),this.bookendCells(u),o}});it.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover();h.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return h.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){var i=n.grep(t,function(n){return n.event.allDay});return h.prototype.renderBgSegs.call(this,i)},renderFgSegs:function(t){var i;return t=this.renderFgSegEls(t),i=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,r){n(r).find(".fc-content-skeleton > table").append(i[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var t=this.rowStructs||[],n;n=t.pop();)n.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(n){for(var i=[],r=this.groupSegRows(n),t=0;t<r.length;t++)i.push(this.renderSegRow(t,r[t]));return i},fgSegHtml:function(n,t){var u=this.view,i=n.event,a=u.isEventDraggable(i),s=!t&&i.allDay&&n.isStart&&u.isEventResizableFromStart(i),h=!t&&i.allDay&&n.isEnd&&u.isEventResizableFromEnd(i),c=this.getSegClasses(n,a,s||h),l=ct(this.getSegSkinCss(n)),f="",e,o;return c.unshift("fc-day-grid-event","fc-h-event"),n.isStart&&(e=this.getEventTimeText(i),e&&(f='<span class="fc-time">'+r(e)+"<\/span>")),o='<span class="fc-title">'+(r(i.title||"")||"&nbsp;")+"<\/span>",'<a class="'+c.join(" ")+'"'+(i.url?' href="'+r(i.url)+'"':"")+(l?' style="'+l+'"':"")+'><div class="fc-content">'+(this.isRTL?o+" "+f:f+" "+o)+"<\/div>"+(s?'<div class="fc-resizer fc-start-resizer" />':"")+(h?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},renderSegRow:function(t,i){function y(t){while(u<t)r=(h[e-1]||[])[u],r?r.attr("rowspan",parseInt(r.attr("rowspan")||1,10)+1):(r=n("<td/>"),o.append(r)),s[e][u]=r,h[e][u]=r,u++}for(var w=this.colCnt,a=this.buildSegLevels(i),b=Math.max(1,a.length),p=n("<tbody/>"),v=[],s=[],h=[],c,u,o,l,f,r,e=0;e<b;e++){if(c=a[e],u=0,o=n("<tr/>"),v.push([]),s.push([]),h.push([]),c)for(l=0;l<c.length;l++){for(f=c[l],y(f.leftCol),r=n('<td class="fc-event-container"/>').append(f.el),f.leftCol!=f.rightCol?r.attr("colspan",f.rightCol-f.leftCol+1):h[e][u]=r;u<=f.rightCol;)s[e][u]=r,v[e][u]=f,u++;o.append(r)}y(w);this.bookendCells(o);p.append(o)}return{row:t,tbodyEl:p,cellMatrix:s,segMatrix:v,segLevels:a,segs:i}},buildSegLevels:function(n){var i=[],r,u,t;for(this.sortEventSegs(n),r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length;t++)if(!ie(u,i[t]))break;u.level=t;(i[t]||(i[t]=[])).push(u)}for(t=0;t<i.length;t++)i[t].sort(re);return i},groupSegRows:function(n){for(var i=[],t=0;t<this.rowCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].row].push(n[t]);return i}});it.mixin({segPopover:null,popoverSegs:null,removeSegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(n){for(var r=this.rowStructs||[],i,t=0;t<r.length;t++)this.unlimitRow(t),i=n?typeof n=="number"?n:this.computeRowLevelLimit(t):!1,i!==!1&&this.limitRow(t,i)},computeRowLevelLimit:function(t){function e(t,r){i=Math.max(i,n(r).outerHeight())}for(var o=this.rowEls.eq(t),s=o.height(),f=this.rowStructs[t].tbodyEl.children(),u,i,r=0;r<f.length;r++)if(u=f.eq(r).removeClass("fc-limited"),i=0,u.find("> td > :first-child").each(e),u.position().top+i>s)return r;return!1},limitRow:function(t,i){function g(f){while(r<f)u=nt.getCellSegs(t,r,i),u.length&&(o=w[i-1][r],v=nt.renderMoreLink(t,r,u),h=n("<div/>").append(v),o.append(h),y.push(h[0])),r++}var nt=this,f=this.rowStructs[t],y=[],r=0,p,w,b,c,e,u,k,l,o,tt,d,s,a,h,v;if(i&&i<f.segLevels.length){for(p=f.segLevels[i-1],w=f.cellMatrix,b=f.tbodyEl.children().slice(i).addClass("fc-limited").get(),c=0;c<p.length;c++){for(e=p[c],g(e.leftCol),l=[],k=0;r<=e.rightCol;)u=this.getCellSegs(t,r,i),l.push(u),k+=u.length,r++;if(k){for(o=w[i-1][e.leftCol],tt=o.attr("rowspan")||1,d=[],s=0;s<l.length;s++)a=n('<td class="fc-more-cell"/>').attr("rowspan",tt),u=l[s],v=this.renderMoreLink(t,e.leftCol+s,[e].concat(u)),h=n("<div/>").append(v),a.append(h),d.push(a[0]),y.push(a[0]);o.addClass("fc-limited").after(n(d));b.push(o[0])}}g(this.colCnt);f.moreEls=n(y);f.limitedEls=n(b)}},unlimitRow:function(n){var t=this.rowStructs[n];t.moreEls&&(t.moreEls.remove(),t.moreEls=null);t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(t,i,r){var u=this,f=this.view;return n('<a class="fc-more"/>').text(this.getMoreLinkText(r.length)).on("click",function(e){var o=f.opt("eventLimitClick"),s=u.getCellDate(t,i),h=n(this),l=u.getCellEl(t,i),a=u.getCellSegs(t,i),c=u.resliceDaySegs(a,s),v=u.resliceDaySegs(r,s);typeof o=="function"&&(o=f.trigger("eventLimitClick",null,{date:s,dayEl:l,moreEl:h,segs:c,hiddenSegs:v},e));o==="popover"?u.showSegPopover(t,i,h,c):typeof o=="string"&&f.calendar.zoomTo(s,o)})},showSegPopover:function(n,t,i,r){var f=this,o=this.view,e=i.parent(),s,u;s=this.rowCnt==1?o.el:this.rowEls.eq(n);u={className:"fc-more-popover",content:this.renderSegPopoverContent(n,t,r),parentEl:this.view.el,top:s.offset().top,autoHide:!0,viewportConstrain:o.opt("popoverViewportConstrain"),hide:function(){f.segPopover.removeElement();f.segPopover=null;f.popoverSegs=null}};this.isRTL?u.right=e.offset().left+e.outerWidth()+1:u.left=e.offset().left-1;this.segPopover=new ae(u);this.segPopover.show();this.bindSegHandlersToEl(this.segPopover.el)},renderSegPopoverContent:function(t,i,u){var e=this.view,s=e.opt("theme"),h=this.getCellDate(t,i).format(e.opt("dayPopoverFormat")),o=n('<div class="fc-header '+e.widgetHeaderClass+'"><span class="fc-close '+(s?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"><\/span><span class="fc-title">'+r(h)+'<\/span><div class="fc-clear"/><\/div><div class="fc-body '+e.widgetContentClass+'"><div class="fc-event-container"><\/div><\/div>'),c=o.find(".fc-event-container"),f;for(u=this.renderFgSegEls(u,!0),this.popoverSegs=u,f=0;f<u.length;f++)this.prepareHits(),u[f].hit=this.getCellHit(t,i),this.releaseHits(),c.append(u[f].el);return o},resliceDaySegs:function(t,i){var u=n.map(t,function(n){return n.event}),r=i.clone(),f=r.clone().add(1,"days"),e={start:r,end:f};return t=this.eventsToSegs(u,function(n){var t=ot(n,e);return t?[t]:[]}),this.sortEventSegs(t),t},getMoreLinkText:function(n){var t=this.view.opt("eventLimitText");return typeof t=="function"?t(n):"+"+n+" "+t},getCellSegs:function(n,t,i){for(var f=this.rowStructs[n].segMatrix,r=i||0,e=[],u;r<f.length;)u=f[r][t],u&&e.push(u),r++;return e}});ai=i.TimeGrid=h.extend(li,{slotDuration:null,snapDuration:null,snapsPerSlot:null,minTime:null,maxTime:null,labelFormat:null,labelInterval:null,colEls:null,slatContainerEl:null,slatEls:null,nowIndicatorEls:null,colCoordCache:null,slatCoordCache:null,constructor:function(){h.apply(this,arguments);this.processOptions()},renderDates:function(){this.el.html(this.renderHtml());this.colEls=this.el.find(".fc-day");this.slatContainerEl=this.el.find(".fc-slats");this.slatEls=this.slatContainerEl.find("tr");this.colCoordCache=new wt({els:this.colEls,isHorizontal:!0});this.slatCoordCache=new wt({els:this.slatEls,isVertical:!0});this.renderContentSkeleton()},renderHtml:function(){return'<div class="fc-bg"><table>'+this.renderBgTrHtml(0)+'<\/table><\/div><div class="fc-slats"><table>'+this.renderSlatRowHtml()+"<\/table><\/div>"},renderSlatRowHtml:function(){for(var i=this.view,o=this.isRTL,s="",n=t.duration(+this.minTime),u,f,e;n<this.maxTime;)u=this.start.clone().time(n),f=y(ti(n,this.labelInterval)),e='<td class="fc-axis fc-time '+i.widgetContentClass+'" '+i.axisStyleAttr()+">"+(f?"<span>"+r(u.format(this.labelFormat))+"<\/span>":"")+"<\/td>",s+='<tr data-time="'+u.format("HH:mm:ss")+'"'+(f?"":' class="fc-minor"')+">"+(o?"":e)+'<td class="'+i.widgetContentClass+'"/>'+(o?e:"")+"<\/tr>",n.add(this.slotDuration);return s},processOptions:function(){var r=this.view,u=r.opt("slotDuration"),f=r.opt("snapDuration"),i;u=t.duration(u);f=f?t.duration(f):u;this.slotDuration=u;this.snapDuration=f;this.snapsPerSlot=u/f;this.minResizeDuration=f;this.minTime=t.duration(r.opt("minTime"));this.maxTime=t.duration(r.opt("maxTime"));i=r.opt("slotLabelFormat");n.isArray(i)&&(i=i[i.length-1]);this.labelFormat=i||r.opt("smallTimeFormat");i=r.opt("slotLabelInterval");this.labelInterval=i?t.duration(i):this.computeLabelInterval(u)},computeLabelInterval:function(n){for(var i,r,u=ku.length-1;u>=0;u--)if(i=t.duration(ku[u]),r=ti(i,n),y(r)&&r>1)return i;return t.duration(n)},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0},prepareHits:function(){this.colCoordCache.build();this.slatCoordCache.build()},releaseHits:function(){this.colCoordCache.clear()},queryHit:function(n,t){var u=this.snapsPerSlot,f=this.colCoordCache,e=this.slatCoordCache,i,r;if(f.isLeftInBounds(n)&&e.isTopInBounds(t)&&(i=f.getHorizontalIndex(n),r=e.getVerticalIndex(t),i!=null&&r!=null)){var o=e.getTopOffset(r),s=e.getHeight(r),c=(t-o)/s,h=Math.floor(c*u),l=r*u+h,a=o+h/u*s,v=o+(h+1)/u*s;return{col:i,snap:l,component:this,left:f.getLeftOffset(i),right:f.getRightOffset(i),top:a,bottom:v}}},getHitSpan:function(n){var t=this.getCellDate(0,n.col),r=this.computeSnapTime(n.snap),i;return t.time(r),i=t.clone().add(this.snapDuration),{start:t,end:i}},getHitEl:function(n){return this.colEls.eq(n.col)},rangeUpdated:function(){this.updateDayTable()},computeSnapTime:function(n){return t.duration(this.minTime+this.snapDuration*n)},spanToSegs:function(n){for(var t=this.sliceRangeByTimes(n),i=0;i<t.length;i++)t[i].col=this.isRTL?this.daysPerRow-1-t[i].dayIndex:t[i].dayIndex;return t},sliceRangeByTimes:function(n){for(var u=[],t,r,f,i=0;i<this.daysPerRow;i++)r=this.dayDates[i].clone(),f={start:r.clone().time(this.minTime),end:r.clone().time(this.maxTime)},t=ot(n,f),t&&(t.dayIndex=i,u.push(t));return u},updateSize:function(n){this.slatCoordCache.build();n&&this.updateSegVerticals([].concat(this.fgSegs||[],this.bgSegs||[],this.businessSegs||[]))},getTotalSlatHeight:function(){return this.slatContainerEl.outerHeight()},computeDateTop:function(n,i){return this.computeTimeTop(t.duration(n-i.clone().stripTime()))},computeTimeTop:function(n){var r=this.slatEls.length,t=(n-this.minTime)/this.slotDuration,i,u;return t=Math.max(0,t),t=Math.min(r,t),i=Math.floor(t),i=Math.min(i,r-1),u=t-i,this.slatCoordCache.getTopPosition(i)+this.slatCoordCache.getHeight(i)*u},renderDrag:function(n,t){if(t)return this.renderEventLocationHelper(n,t);this.renderHighlight(this.eventToSpan(n))},unrenderDrag:function(){this.unrenderHelper();this.unrenderHighlight()},renderEventResize:function(n,t){return this.renderEventLocationHelper(n,t)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(n,t){return this.renderHelperSegs(this.eventToSegs(n),t)},unrenderHelper:function(){this.unrenderHelperSegs()},renderBusinessHours:function(){this.renderBusinessSegs(this.buildBusinessHourSegs())},unrenderBusinessHours:function(){this.unrenderBusinessSegs()},getNowIndicatorUnit:function(){return"minute"},renderNowIndicator:function(t){for(var i=this.spanToSegs({start:t,end:t}),f=this.computeDateTop(t,t),r=[],u=0;u<i.length;u++)r.push(n('<div class="fc-now-indicator fc-now-indicator-line"><\/div>').css("top",f).appendTo(this.colContainerEls.eq(i[u].col))[0]);i.length>0&&r.push(n('<div class="fc-now-indicator fc-now-indicator-arrow"><\/div>').css("top",f).appendTo(this.el.find(".fc-content-skeleton"))[0]);this.nowIndicatorEls=n(r)},unrenderNowIndicator:function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},renderSelection:function(n){this.view.opt("selectHelper")?this.renderEventLocationHelper(n):this.renderHighlight(n)},unrenderSelection:function(){this.unrenderHelper();this.unrenderHighlight()},renderHighlight:function(n){this.renderHighlightSegs(this.spanToSegs(n))},unrenderHighlight:function(){this.unrenderHighlightSegs()}});ai.mixin({colContainerEls:null,fgContainerEls:null,bgContainerEls:null,helperContainerEls:null,highlightContainerEls:null,businessContainerEls:null,fgSegs:null,bgSegs:null,helperSegs:null,highlightSegs:null,businessSegs:null,renderContentSkeleton:function(){for(var i="",t,r=0;r<this.colCnt;r++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"><\/div><div class="fc-event-container"><\/div><div class="fc-highlight-container"><\/div><div class="fc-bgevent-container"><\/div><div class="fc-business-container"><\/div><\/div><\/td>';t=n('<div class="fc-content-skeleton"><table><tr>'+i+"<\/tr><\/table><\/div>");this.colContainerEls=t.find(".fc-content-col");this.helperContainerEls=t.find(".fc-helper-container");this.fgContainerEls=t.find(".fc-event-container:not(.fc-helper-container)");this.bgContainerEls=t.find(".fc-bgevent-container");this.highlightContainerEls=t.find(".fc-highlight-container");this.businessContainerEls=t.find(".fc-business-container");this.bookendCells(t.find("tr"));this.el.append(t)},renderFgSegs:function(n){return n=this.renderFgSegsIntoContainers(n,this.fgContainerEls),this.fgSegs=n,n},unrenderFgSegs:function(){this.unrenderNamedSegs("fgSegs")},renderHelperSegs:function(t,i){var e=[],u,f,r;for(t=this.renderFgSegsIntoContainers(t,this.helperContainerEls),u=0;u<t.length;u++)f=t[u],i&&i.col===f.col&&(r=i.el,f.el.css({left:r.css("left"),right:r.css("right"),"margin-left":r.css("margin-left"),"margin-right":r.css("margin-right")})),e.push(f.el[0]);return this.helperSegs=t,n(e)},unrenderHelperSegs:function(){this.unrenderNamedSegs("helperSegs")},renderBgSegs:function(n){return n=this.renderFillSegEls("bgEvent",n),this.updateSegVerticals(n),this.attachSegsByCol(this.groupSegsByCol(n),this.bgContainerEls),this.bgSegs=n,n},unrenderBgSegs:function(){this.unrenderNamedSegs("bgSegs")},renderHighlightSegs:function(n){n=this.renderFillSegEls("highlight",n);this.updateSegVerticals(n);this.attachSegsByCol(this.groupSegsByCol(n),this.highlightContainerEls);this.highlightSegs=n},unrenderHighlightSegs:function(){this.unrenderNamedSegs("highlightSegs")},renderBusinessSegs:function(n){n=this.renderFillSegEls("businessHours",n);this.updateSegVerticals(n);this.attachSegsByCol(this.groupSegsByCol(n),this.businessContainerEls);this.businessSegs=n},unrenderBusinessSegs:function(){this.unrenderNamedSegs("businessSegs")},groupSegsByCol:function(n){for(var i=[],t=0;t<this.colCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].col].push(n[t]);return i},attachSegsByCol:function(n,t){for(var u,i,r=0;r<this.colCnt;r++)for(u=n[r],i=0;i<u.length;i++)t.eq(r).append(u[i].el)},unrenderNamedSegs:function(n){var i=this[n],t;if(i){for(t=0;t<i.length;t++)i[t].el.remove();this[n]=null}},renderFgSegsIntoContainers:function(n,t){var r,i;for(n=this.renderFgSegEls(n),r=this.groupSegsByCol(n),i=0;i<this.colCnt;i++)this.updateFgSegCoords(r[i]);return this.attachSegsByCol(r,t),n},fgSegHtml:function(n,t){var u=this.view,i=n.event,l=u.isEventDraggable(i),a=!t&&n.isStart&&u.isEventResizableFromStart(i),s=!t&&n.isEnd&&u.isEventResizableFromEnd(i),h=this.getSegClasses(n,l,a||s),c=ct(this.getSegSkinCss(n)),f,e,o;return h.unshift("fc-time-grid-event","fc-v-event"),u.isMultiDayEvent(i)?(n.isStart||n.isEnd)&&(f=this.getEventTimeText(n),e=this.getEventTimeText(n,"LT"),o=this.getEventTimeText(n,null,!1)):(f=this.getEventTimeText(i),e=this.getEventTimeText(i,"LT"),o=this.getEventTimeText(i,null,!1)),'<a class="'+h.join(" ")+'"'+(i.url?' href="'+r(i.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(f?'<div class="fc-time" data-start="'+r(o)+'" data-full="'+r(e)+'"><span>'+r(f)+"<\/span><\/div>":"")+(i.title?'<div class="fc-title">'+r(i.title)+"<\/div>":"")+'<\/div><div class="fc-bg"/>'+(s?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},updateSegVerticals:function(n){this.computeSegVerticals(n);this.assignSegVerticals(n)},computeSegVerticals:function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.top=this.computeDateTop(t.start,t.start),t.bottom=this.computeDateTop(t.end,t.start)},assignSegVerticals:function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.el.css(this.generateSegVerticalCss(t))},generateSegVerticalCss:function(n){return{top:n.top,bottom:-n.bottom}},updateFgSegCoords:function(n){this.computeSegVerticals(n);this.computeFgSegHorizontals(n);this.assignSegVerticals(n);this.assignFgSegHorizontals(n)},computeFgSegHorizontals:function(n){var r,i,t;if(this.sortEventSegs(n),r=ue(n),fe(r),i=r[0]){for(t=0;t<i.length;t++)ru(i[t]);for(t=0;t<i.length;t++)this.computeFgSegForwardBack(i[t],0,0)}},computeFgSegForwardBack:function(n,t,i){var r=n.forwardSegs,u;if(n.forwardCoord===undefined)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(r[0],t+1,i),n.forwardCoord=r[0].backwardCoord):n.forwardCoord=1,n.backwardCoord=n.forwardCoord-(n.forwardCoord-i)/(t+1),u=0;u<r.length;u++)this.computeFgSegForwardBack(r[u],0,n.forwardCoord)},sortForwardSegs:function(n){n.sort(d(this,"compareForwardSegs"))},compareForwardSegs:function(n,t){return t.forwardPressure-n.forwardPressure||(n.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(n,t)},assignFgSegHorizontals:function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.el.css(this.generateFgSegHorizontalCss(t)),t.bottom-t.top<30&&t.el.addClass("fc-short")},generateFgSegHorizontalCss:function(n){var e=this.view.opt("slotEventOverlap"),i=n.backwardCoord,r=n.forwardCoord,t=this.generateSegVerticalCss(n),u,f;return e&&(r=Math.min(1,i+(r-i)*2)),this.isRTL?(u=1-r,f=i):(u=i,f=1-r),t.zIndex=n.level+1,t.left=u*100+"%",t.right=f*100+"%",e&&n.forwardPressure&&(t[this.isRTL?"marginLeft":"marginRight"]=20),t}});var b=i.View=s.extend(wu,rt,{type:null,name:null,title:null,calendar:null,options:null,el:null,displaying:null,isSkeletonRendered:!1,isEventsRendered:!1,start:null,end:null,intervalStart:null,intervalEnd:null,intervalDuration:null,intervalUnit:null,isRTL:!1,isSelected:!1,selectedEvent:null,eventOrderSpecs:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenDayHash:null,isNowIndicatorRendered:null,initialNowDate:null,initialNowQueriedMs:null,nowIndicatorTimeoutID:null,nowIndicatorIntervalID:null,constructor:function(n,i,r,u){this.calendar=n;this.type=this.name=i;this.options=r;this.intervalDuration=u||t.duration(1,"day");this.nextDayThreshold=t.duration(this.opt("nextDayThreshold"));this.initThemingProps();this.initHiddenDays();this.isRTL=this.opt("isRTL");this.eventOrderSpecs=fr(this.opt("eventOrder"));this.initialize()},initialize:function(){},opt:function(n){return this.options[n]},trigger:function(n,t){var i=this.calendar;return i.trigger.apply(i,[n,t||this].concat(Array.prototype.slice.call(arguments,2),[this]))},setDate:function(n){this.setRange(this.computeRange(n))},setRange:function(t){n.extend(this,t);this.updateTitle()},computeRange:function(n){var f=ni(this.intervalDuration),t=n.clone().startOf(f),i=t.clone().add(this.intervalDuration),r,u;return/year|month|week|day/.test(f)?(t.stripTime(),i.stripTime()):(t.hasTime()||(t=this.calendar.time(0)),i.hasTime()||(i=this.calendar.time(0))),r=t.clone(),r=this.skipHiddenDays(r),u=i.clone(),u=this.skipHiddenDays(u,-1,!0),{intervalUnit:f,intervalStart:t,intervalEnd:i,start:r,end:u}},computePrevDate:function(n){return this.massageCurrentDate(n.clone().startOf(this.intervalUnit).subtract(this.intervalDuration),-1)},computeNextDate:function(n){return this.massageCurrentDate(n.clone().startOf(this.intervalUnit).add(this.intervalDuration))},massageCurrentDate:function(n,t){return this.intervalDuration.as("days")<=1&&this.isHiddenDay(n)&&(n=this.skipHiddenDays(n,t),n.startOf("day")),n},updateTitle:function(){this.title=this.computeTitle()},computeTitle:function(){return this.formatRange({start:this.calendar.applyTimezone(this.intervalStart),end:this.calendar.applyTimezone(this.intervalEnd)},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return this.intervalUnit=="year"?"YYYY":this.intervalUnit=="month"?this.opt("monthYearFormat"):this.intervalDuration.as("days")>1?"ll":"LL"},formatRange:function(n,t,i){var r=n.end;return r.hasTime()||(r=r.clone().subtract(1)),pr(n.start,r,t,i,this.opt("isRTL"))},getAllDayHtml:function(){return this.opt("allDayHtml")||r(this.opt("allDayText"))},buildGotoAnchorHtml:function(t,u,f){var e,o,s,h;return n.isPlainObject(t)?(e=t.date,o=t.type,s=t.forceOff):e=t,e=i.moment(e),h={date:e.format("YYYY-MM-DD"),type:o||"day"},typeof u=="string"&&(f=u,u=null),u=u?" "+yf(u):"",f=f||"",!s&&this.opt("navLinks")?"<a"+u+' data-goto="'+r(JSON.stringify(h))+'">'+f+"<\/a>":"<span"+u+">"+f+"<\/span>"},setElement:function(n){this.el=n;this.bindGlobalHandlers()},removeElement:function(){this.clear();this.isSkeletonRendered&&(this.unrenderSkeleton(),this.isSkeletonRendered=!1);this.unbindGlobalHandlers();this.el.remove()},display:function(n,t){var i=this,r=null;return t!=null&&this.displaying&&(r=this.queryScroll()),this.calendar.freezeContentHeight(),fi(this.clear(),function(){return i.displaying=fi(i.displayView(n),function(){t!=null?i.setScroll(t):i.forceScroll(i.computeInitialScroll(r));i.calendar.unfreezeContentHeight();i.triggerRender()})})},clear:function(){var t=this,i=this.displaying;return i?fi(i,function(){return t.displaying=null,t.clearEvents(),t.clearView()}):n.when()},displayView:function(n){this.isSkeletonRendered||(this.renderSkeleton(),this.isSkeletonRendered=!0);n&&this.setDate(n);this.render&&this.render();this.renderDates();this.updateSize();this.renderBusinessHours();this.startNowIndicator()},clearView:function(){this.unselect();this.stopNowIndicator();this.triggerUnrender();this.unrenderBusinessHours();this.unrenderDates();this.destroy&&this.destroy()},renderSkeleton:function(){},unrenderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},triggerRender:function(){this.trigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.trigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){this.listenTo(n(document),"mousedown",this.handleDocumentMousedown);this.listenTo(n(document),"touchstart",this.processUnselect)},unbindGlobalHandlers:function(){this.stopListeningTo(n(document))},initThemingProps:function(){var n=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=n+"-widget-header";this.widgetContentClass=n+"-widget-content";this.highlightStateClass=n+"-state-highlight"},renderBusinessHours:function(){},unrenderBusinessHours:function(){},startNowIndicator:function(){var u=this,i,r,n;this.opt("nowIndicator")&&(i=this.getNowIndicatorUnit(),i&&(r=d(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=+new Date,this.renderNowIndicator(this.initialNowDate),this.isNowIndicatorRendered=!0,n=this.initialNowDate.clone().startOf(i).add(1,i)-this.initialNowDate,this.nowIndicatorTimeoutID=setTimeout(function(){u.nowIndicatorTimeoutID=null;r();n=+t.duration(1,i);n=Math.max(100,n);u.nowIndicatorIntervalID=setInterval(r,n)},n)))},updateNowIndicator:function(){this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add(new Date-this.initialNowQueriedMs)))},stopNowIndicator:function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearTimeout(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},getNowIndicatorUnit:function(){},renderNowIndicator:function(){},unrenderNowIndicator:function(){},updateSize:function(n){var t;n&&(t=this.queryScroll());this.updateHeight(n);this.updateWidth(n);this.updateNowIndicator();n&&this.setScroll(t)},updateWidth:function(){},updateHeight:function(){var n=this.calendar;this.setHeight(n.getSuggestedViewHeight(),n.isHeightAuto())},setHeight:function(){},computeInitialScroll:function(){return 0},queryScroll:function(){},setScroll:function(){},forceScroll:function(n){var t=this;this.setScroll(n);setTimeout(function(){t.setScroll(n)},0)},displayEvents:function(n){var t=this.queryScroll();this.clearEvents();this.renderEvents(n);this.isEventsRendered=!0;this.setScroll(t);this.triggerEventRender()},clearEvents:function(){var n;this.isEventsRendered&&(n=this.queryScroll(),this.triggerEventUnrender(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.setScroll(n),this.isEventsRendered=!1)},renderEvents:function(){},unrenderEvents:function(){},triggerEventRender:function(){this.renderedEventSegEach(function(n){this.trigger("eventAfterRender",n.event,n.event,n.el)});this.trigger("eventAfterAllRender")},triggerEventUnrender:function(){this.renderedEventSegEach(function(n){this.trigger("eventDestroy",n.event,n.event,n.el)})},resolveEventEl:function(t,i){var r=this.trigger("eventRender",t,t,i);return r===!1?i=null:r&&r!==!0&&(i=n(r)),i},showEvent:function(n){this.renderedEventSegEach(function(n){n.el.css("visibility","")},n)},hideEvent:function(n){this.renderedEventSegEach(function(n){n.el.css("visibility","hidden")},n)},renderedEventSegEach:function(n,t){for(var r=this.getEventSegs(),i=0;i<r.length;i++)t&&r[i].event._id!==t._id||r[i].el&&n.call(this,r[i])},getEventSegs:function(){return[]},isEventDraggable:function(n){return this.isEventStartEditable(n)},isEventStartEditable:function(n){return f(n.startEditable,(n.source||{}).startEditable,this.opt("eventStartEditable"),this.isEventGenerallyEditable(n))},isEventGenerallyEditable:function(n){return f(n.editable,(n.source||{}).editable,this.opt("editable"))},reportEventDrop:function(n,t,i,r,u){var f=this.calendar,e=f.mutateEvent(n,t,i),o=function(){e.undo();f.reportEventChange()};this.triggerEventDrop(n,e.dateDelta,o,r,u);f.reportEventChange()},triggerEventDrop:function(n,t,i,r,u){this.trigger("eventDrop",r[0],n,t,i,u,{})},reportExternalDrop:function(t,i,r,u,f){var e=t.eventProps,o,s;e&&(o=n.extend({},e,i),s=this.calendar.renderEvent(o,t.stick)[0]);this.triggerExternalDrop(s,i,r,u,f)},triggerExternalDrop:function(n,t,i,r,u){this.trigger("drop",i[0],t.start,r,u);n&&this.trigger("eventReceive",null,n)},renderDrag:function(){},unrenderDrag:function(){},isEventResizableFromStart:function(n){return this.opt("eventResizableFromStart")&&this.isEventResizable(n)},isEventResizableFromEnd:function(n){return this.isEventResizable(n)},isEventResizable:function(n){var t=n.source||{};return f(n.durationEditable,t.durationEditable,this.opt("eventDurationEditable"),n.editable,t.editable,this.opt("editable"))},reportEventResize:function(n,t,i,r,u){var f=this.calendar,e=f.mutateEvent(n,t,i),o=function(){e.undo();f.reportEventChange()};this.triggerEventResize(n,e.durationDelta,o,r,u);f.reportEventChange()},triggerEventResize:function(n,t,i,r,u){this.trigger("eventResize",r[0],n,t,i,u,{})},select:function(n,t){this.unselect(t);this.renderSelection(n);this.reportSelection(n,t)},renderSelection:function(){},reportSelection:function(n,t){this.isSelected=!0;this.triggerSelect(n,t)},triggerSelect:function(n,t){this.trigger("select",null,this.calendar.applyTimezone(n.start),this.calendar.applyTimezone(n.end),t)},unselect:function(n){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.trigger("unselect",null,n))},unrenderSelection:function(){},selectEvent:function(n){this.selectedEvent&&this.selectedEvent===n||(this.unselectEvent(),this.renderedEventSegEach(function(n){n.el.addClass("fc-selected")},n),this.selectedEvent=n)},unselectEvent:function(){this.selectedEvent&&(this.renderedEventSegEach(function(n){n.el.removeClass("fc-selected")},this.selectedEvent),this.selectedEvent=null)},isEventSelected:function(n){return this.selectedEvent&&this.selectedEvent._id===n._id},handleDocumentMousedown:function(n){ir(n)&&this.processUnselect(n)},processUnselect:function(n){this.processRangeUnselect(n);this.processEventUnselect(n)},processRangeUnselect:function(t){var i;this.isSelected&&this.opt("unselectAuto")&&(i=this.opt("unselectCancel"),i&&n(t.target).closest(i).length||this.unselect(t))},processEventUnselect:function(t){this.selectedEvent&&(n(t.target).closest(".fc-selected").length||this.unselectEvent())},triggerDayClick:function(n,t,i){this.trigger("dayClick",t,this.calendar.applyTimezone(n.start),i)},initHiddenDays:function(){var i=this.opt("hiddenDays")||[],r=[],u=0,t;for(this.opt("weekends")===!1&&i.push(0,6),t=0;t<7;t++)(r[t]=n.inArray(t,i)!==-1)||u++;if(!u)throw"invalid hiddenDays";this.isHiddenDayHash=r},isHiddenDay:function(n){return t.isMoment(n)&&(n=n.day()),this.isHiddenDayHash[n]},skipHiddenDays:function(n,t,i){var r=n.clone();for(t=t||1;this.isHiddenDayHash[(r.day()+(i?t:0)+7)%7];)r.add(t,"days");return r},computeDayRange:function(n){var r=n.start.clone().stripTime(),i=n.end,t=null,u;return i&&(t=i.clone().stripTime(),u=+i.time(),u&&u>=this.nextDayThreshold&&t.add(1,"days")),(!i||t<=r)&&(t=r.clone().add(1,"days")),{start:r,end:t}},isMultiDayEvent:function(n){var t=this.computeDayRange(n);return t.end.diff(t.start,"days")>1}}),pi=i.Scroller=s.extend({el:null,scrollEl:null,overflowX:null,overflowY:null,constructor:function(n){n=n||{};this.overflowX=n.overflowX||n.overflow||"auto";this.overflowY=n.overflowY||n.overflow||"auto"},render:function(){this.el=this.renderEl();this.applyOverflow()},renderEl:function(){return this.scrollEl=n('<div class="fc-scroller"><\/div>')},clear:function(){this.setHeight("auto");this.applyOverflow()},destroy:function(){this.el.remove()},applyOverflow:function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},lockOverflow:function(n){var t=this.overflowX,i=this.overflowY;n=n||this.getScrollbarWidths();t==="auto"&&(t=n.top||n.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden");i==="auto"&&(i=n.left||n.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden");this.scrollEl.css({"overflow-x":t,"overflow-y":i})},setHeight:function(n){this.scrollEl.height(n)},getScrollTop:function(){return this.scrollEl.scrollTop()},setScrollTop:function(n){this.scrollEl.scrollTop(n)},getClientWidth:function(){return this.scrollEl[0].clientWidth},getClientHeight:function(){return this.scrollEl[0].clientHeight},getScrollbarWidths:function(){return gt(this.scrollEl)}}),u=i.Calendar=s.extend({dirDefaults:null,localeDefaults:null,overrides:null,dynamicOverrides:null,options:null,viewSpecCache:null,view:null,header:null,loadingLevel:0,constructor:oe,initialize:function(){},populateOptionsHash:function(){var t,n,r,i;t=f(this.dynamicOverrides.locale,this.overrides.locale);n=w[t];n||(t=u.defaults.locale,n=w[t]||{});r=f(this.dynamicOverrides.isRTL,this.overrides.isRTL,n.isRTL,u.defaults.isRTL);i=r?u.rtlDefaults:{};this.dirDefaults=i;this.localeDefaults=n;this.options=nt([u.defaults,i,n,this.overrides,this.dynamicOverrides]);fu(this.options)},getViewSpec:function(n){var t=this.viewSpecCache;return t[n]||(t[n]=this.buildViewSpec(n))},getUnitViewSpec:function(t){var r,u,f;if(n.inArray(t,yt)!=-1)for(r=this.header.getViewsWithButtons(),n.each(i.views,function(n){r.push(n)}),u=0;u<r.length;u++)if(f=this.getViewSpec(r[u]),f&&f.singleUnit==t)return f},buildViewSpec:function(n){for(var h=this.overrides.views||{},c=[],l=[],s=[],u=n,i,f,r,o;u;)i=e[u],f=h[u],u=null,typeof i=="function"&&(i={"class":i}),i&&(c.unshift(i),l.unshift(i.defaults||{}),r=r||i.duration,u=u||i.type),f&&(s.unshift(f),r=r||f.duration,u=u||f.type);return(i=ii(c),i.type=n,!i["class"])?!1:(r&&(r=t.duration(r),r.valueOf()&&(i.duration=r,o=ni(r),r.as(o)===1&&(i.singleUnit=o,s.unshift(h[o]||{})))),i.defaults=nt(l),i.overrides=nt(s),this.buildViewSpecOptions(i),this.buildViewSpecButtonText(i,n),i)},buildViewSpecOptions:function(n){n.options=nt([u.defaults,n.defaults,this.dirDefaults,this.localeDefaults,this.overrides,n.overrides,this.dynamicOverrides]);fu(n.options)},buildViewSpecButtonText:function(n,t){function i(i){var r=i.buttonText||{};return r[t]||(n.buttonTextKey?r[n.buttonTextKey]:null)||(n.singleUnit?r[n.singleUnit]:null)}n.buttonTextOverride=i(this.dynamicOverrides)||i(this.overrides)||n.overrides.buttonText;n.buttonTextDefault=i(this.localeDefaults)||i(this.dirDefaults)||n.defaults.buttonText||i(u.defaults)||(n.duration?this.humanizeDuration(n.duration):null)||t},instantiateView:function(n){var t=this.getViewSpec(n);return new t["class"](this,n,t.options,t.duration)},isValidViewType:function(n){return Boolean(this.getViewSpec(n))},pushLoading:function(){this.loadingLevel++||this.trigger("loading",null,!0,this.view)},popLoading:function(){--this.loadingLevel||this.trigger("loading",null,!1,this.view)},buildSelectSpan:function(n,t){var i=this.moment(n).stripZone(),r;return r=t?this.moment(t).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),{start:i,end:r}}});u.mixin(wu);u.mixin({optionHandlers:null,bindOption:function(n,t){this.bindOptions([n],t)},bindOptions:function(n,t){for(var r={func:t,names:n},i=0;i<n.length;i++)this.registerOptionHandlerObj(n[i],r);this.triggerOptionHandlerObj(r)},registerOptionHandlerObj:function(n,t){(this.optionHandlers[n]||(this.optionHandlers[n]=[])).push(t)},triggerOptionHandlers:function(n){for(var i=this.optionHandlers[n]||[],t=0;t<i.length;t++)this.triggerOptionHandlerObj(i[t])},triggerOptionHandlerObj:function(n){for(var i=n.names,r=[],t=0;t<i.length;t++)r.push(this.options[i[t]]);n.func.apply(this,r)}});u.defaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},allDayText:"all-day",theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3};u.englishDefaults={dayPopoverFormat:"dddd, MMMM D"};u.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};w=i.locales={};i.datepickerLocale=function(t,i,r){var u=w[t]||(w[t]={});u.isRTL=r.isRTL;u.weekNumberTitle=r.weekHeader;n.each(ve,function(n,t){u[n]=t(r)});n.datepicker&&(n.datepicker.regional[i]=n.datepicker.regional[t]=r,n.datepicker.regional.en=n.datepicker.regional[""],n.datepicker.setDefaults(r))};i.locale=function(t,i){var r,f;r=w[t]||(w[t]={});i&&(r=w[t]=nt([r,i]));f=eu(t);n.each(ye,function(n,t){r[n]==null&&(r[n]=t(f,r))});u.defaults.locale=t};var ve={buttonText:function(n){return{prev:ui(n.prevText),next:ui(n.nextText),today:ui(n.currentText)}},monthYearFormat:function(n){return n.showMonthAfterYear?"YYYY["+n.yearSuffix+"] MMMM":"MMMM YYYY["+n.yearSuffix+"]"}},ye={dayOfMonthFormat:function(n,t){var i=n.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(n){return n.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"")}},pe={smallDayDateFormat:function(n){return n.isRTL?"D dd":"dd D"},weekFormat:function(n){return n.isRTL?"w[ "+n.weekNumberTitle+"]":"["+n.weekNumberTitle+" ]w"},smallWeekFormat:function(n){return n.isRTL?"w["+n.weekNumberTitle+"]":"["+n.weekNumberTitle+"]w"}};i.locale("en",u.englishDefaults);i.sourceNormalizers=[];i.sourceFetchers=[];au={dataType:"json",cache:!1};vu=1;u.prototype.normalizeEvent=function(){};u.prototype.spanContainsSpan=function(n,t){var i=n.start.clone().stripZone(),r=this.getEventEnd(n).stripZone();return t.start>=i&&t.end<=r};u.prototype.getPeerEvents=function(n,t){for(var u=this.getEventCache(),f=[],i,r=0;r<u.length;r++)i=u[r],t&&t._id===i._id||f.push(i);return f};u.prototype.isEventSpanAllowed=function(n,t){var i=t.source||{},r=f(t.constraint,i.constraint,this.options.eventConstraint),u=f(t.overlap,i.overlap,this.options.eventOverlap);return this.isSpanAllowed(n,r,u,t)&&(!this.options.eventAllow||this.options.eventAllow(n,t)!==!1)};u.prototype.isExternalSpanAllowed=function(t,i,r){var f,u;return r&&(f=n.extend({},r,i),u=this.expandEvent(this.buildEventFromInput(f))[0]),u?this.isEventSpanAllowed(t,u):this.isSelectionSpanAllowed(t)};u.prototype.isSelectionSpanAllowed=function(n){return this.isSpanAllowed(n,this.options.selectConstraint,this.options.selectOverlap)&&(!this.options.selectAllow||this.options.selectAllow(n)!==!1)};u.prototype.isSpanAllowed=function(n,t,i,r){var o,h,c,u,e,s;if(t!=null&&(o=this.constraintToEvents(t),o)){for(h=!1,u=0;u<o.length;u++)if(this.spanContainsSpan(o[u],n)){h=!0;break}if(!h)return!1}for(c=this.getPeerEvents(n,r),u=0;u<c.length;u++)if(e=c[u],this.eventIntersectsRange(e,n)&&(i===!1||typeof i=="function"&&!i(e,r)||r&&((s=f(e.overlap,(e.source||{}).overlap),s===!1)||typeof s=="function"&&!s(r,e))))return!1;return!0};u.prototype.constraintToEvents=function(n){return n==="businessHours"?this.getCurrentBusinessHourEvents():(typeof n=="undefined"?"undefined":_typeof(n))==="object"?n.start!=null?this.expandEvent(this.buildEventFromInput(n)):null:this.clientEvents(n)};u.prototype.eventIntersectsRange=function(n,t){var i=n.start.clone().stripZone(),r=this.getEventEnd(n).stripZone();return t.start<r&&t.end>i};vi={id:"_fcBusinessHours",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"};u.prototype.getCurrentBusinessHourEvents=function(n){return this.computeBusinessHourEvents(n,this.options.businessHours)};u.prototype.computeBusinessHourEvents=function(t,i){return i===!0?this.expandBusinessHourEvents(t,[{}]):n.isPlainObject(i)?this.expandBusinessHourEvents(t,[i]):n.isArray(i)?this.expandBusinessHourEvents(t,i,!0):[]};u.prototype.expandBusinessHourEvents=function(t,i,r){for(var o=this.getView(),f=[],u,e=0;e<i.length;e++)(u=i[e],!r||u.dow)&&(u=n.extend({},vi,u),t&&(u.start=null,u.end=null),f.push.apply(f,this.expandEvent(this.buildEventFromInput(u),o.start,o.end)));return f};var wi=i.BasicView=b.extend({scroller:null,dayGridClass:it,dayGrid:null,dayNumbersVisible:!1,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1,weekNumberWidth:null,headContainerEl:null,headRowEl:null,initialize:function(){this.dayGrid=this.instantiateDayGrid();this.scroller=new pi({overflowX:"hidden",overflowY:"auto"})},instantiateDayGrid:function(){var n=this.dayGridClass.extend(we);return new n(this)},setRange:function(n){b.prototype.setRange.call(this,n);this.dayGrid.breakOnWeeks=/year|month|week/.test(this.intervalUnit);this.dayGrid.setRange(n)},computeRange:function(n){var t=b.prototype.computeRange.call(this,n);return/year|month/.test(t.intervalUnit)&&(t.start.startOf("week"),t.start=this.skipHiddenDays(t.start),t.end.weekday()&&(t.end.add(1,"week").startOf("week"),t.end=this.skipHiddenDays(t.end,-1,!0))),t},renderDates:function(){this.dayNumbersVisible=this.dayGrid.rowCnt>1;this.opt("weekNumbers")&&(this.opt("weekNumbersWithinDays")?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0));this.dayGrid.numbersVisible=this.dayNumbersVisible||this.cellWeekNumbersVisible||this.colWeekNumbersVisible;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml());this.renderHead();this.scroller.render();var t=this.scroller.el.addClass("fc-day-grid-container"),i=n('<div class="fc-day-grid" />').appendTo(t);this.el.find(".fc-body > tr > td").append(t);this.dayGrid.setElement(i);this.dayGrid.renderDates(this.hasRigidRows())},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.dayGrid.renderHeadHtml());this.headRowEl=this.headContainerEl.find(".fc-row")},unrenderDates:function(){this.dayGrid.unrenderDates();this.dayGrid.removeElement();this.scroller.destroy()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.dayGrid.unrenderBusinessHours()},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"><\/td><\/tr><\/thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'"><\/td><\/tr><\/tbody><\/table>'},weekNumberStyleAttr:function(){return this.weekNumberWidth!==null?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var n=this.opt("eventLimit");return n&&typeof n!="number"},updateWidth:function(){this.colWeekNumbersVisible&&(this.weekNumberWidth=nr(this.el.find(".fc-week-number")))},setHeight:function(n,t){var i=this.opt("eventLimit"),r,u;this.scroller.clear();ki(this.headRowEl);this.dayGrid.removeSegPopover();i&&typeof i=="number"&&this.dayGrid.limitRows(i);r=this.computeScrollerHeight(n);this.setGridHeight(r,t);i&&typeof i!="number"&&this.dayGrid.limitRows(i);t||(this.scroller.setHeight(r),u=this.scroller.getScrollbarWidths(),(u.left||u.right)&&(bi(this.headRowEl,u),r=this.computeScrollerHeight(n),this.scroller.setHeight(r)),this.scroller.lockOverflow(u))},computeScrollerHeight:function(n){return n-bt(this.el,this.scroller.el)},setGridHeight:function(n,t){t?gi(this.dayGrid.rowEls):di(this.dayGrid.rowEls,n,!0)},queryScroll:function(){return this.scroller.getScrollTop()},setScroll:function(n){this.scroller.setScrollTop(n)},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(n,t){return this.dayGrid.queryHit(n,t)},getHitSpan:function(n){return this.dayGrid.getHitSpan(n)},getHitEl:function(n){return this.dayGrid.getHitEl(n)},renderEvents:function(n){this.dayGrid.renderEvents(n);this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(n,t){return this.dayGrid.renderDrag(n,t)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(n){this.dayGrid.renderSelection(n)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),we={renderHeadIntroHtml:function(){var n=this.view;return n.colWeekNumbersVisible?'<th class="fc-week-number '+n.widgetHeaderClass+'" '+n.weekNumberStyleAttr()+"><span>"+r(n.opt("weekNumberTitle"))+"<\/span><\/th>":""},renderNumberIntroHtml:function(n){var t=this.view,i=this.getCellDate(n,0);return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt===1},i.format("w"))+"<\/td>":""},renderBgIntroHtml:function(){var n=this.view;return n.colWeekNumbersVisible?'<td class="fc-week-number '+n.widgetContentClass+'" '+n.weekNumberStyleAttr()+"><\/td>":""},renderIntroHtml:function(){var n=this.view;return n.colWeekNumbersVisible?'<td class="fc-week-number" '+n.weekNumberStyleAttr()+"><\/td>":""}},be=i.MonthView=wi.extend({computeRange:function(n){var t=wi.prototype.computeRange.call(this,n),i;return this.isFixedWeeks()&&(i=Math.ceil(t.end.diff(t.start,"weeks",!0)),t.end.add(6-i,"weeks")),t},setGridHeight:function(n,t){t&&(n*=this.rowCnt/6);di(this.dayGrid.rowEls,n,!t)},isFixedWeeks:function(){return this.opt("fixedWeekCount")}});e.basic={"class":wi};e.basicDay={type:"basic",duration:{days:1}};e.basicWeek={type:"basic",duration:{weeks:1}};e.month={"class":be,duration:{months:1},defaults:{fixedWeekCount:!0}};var ke=i.AgendaView=b.extend({scroller:null,timeGridClass:ai,timeGrid:null,dayGridClass:it,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,initialize:function(){this.timeGrid=this.instantiateTimeGrid();this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid());this.scroller=new pi({overflowX:"hidden",overflowY:"auto"})},instantiateTimeGrid:function(){var n=this.timeGridClass.extend(de);return new n(this)},instantiateDayGrid:function(){var n=this.dayGridClass.extend(ge);return new n(this)},setRange:function(n){b.prototype.setRange.call(this,n);this.timeGrid.setRange(n);this.dayGrid&&this.dayGrid.setRange(n)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml());this.renderHead();this.scroller.render();var t=this.scroller.el.addClass("fc-time-grid-container"),i=n('<div class="fc-time-grid" />').appendTo(t);this.el.find(".fc-body > tr > td").append(t);this.timeGrid.setElement(i);this.timeGrid.renderDates();this.bottomRuleEl=n('<hr class="fc-divider '+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el);this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight());this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml())},unrenderDates:function(){this.timeGrid.unrenderDates();this.timeGrid.removeElement();this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement());this.scroller.destroy()},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"><\/td><\/tr><\/thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+this.widgetHeaderClass+'"/>':"")+"<\/td><\/tr><\/tbody><\/table>"},axisStyleAttr:function(){return this.axisWidth!==null?'style="width:'+this.axisWidth+'px"':""},renderBusinessHours:function(){this.timeGrid.renderBusinessHours();this.dayGrid&&this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.timeGrid.unrenderBusinessHours();this.dayGrid&&this.dayGrid.unrenderBusinessHours()},getNowIndicatorUnit:function(){return this.timeGrid.getNowIndicatorUnit()},renderNowIndicator:function(n){this.timeGrid.renderNowIndicator(n)},unrenderNowIndicator:function(){this.timeGrid.unrenderNowIndicator()},updateSize:function(n){this.timeGrid.updateSize(n);b.prototype.updateSize.call(this,n)},updateWidth:function(){this.axisWidth=nr(this.el.find(".fc-axis"))},setHeight:function(n,t){var i,r,u;this.bottomRuleEl.hide();this.scroller.clear();ki(this.noScrollRowEls);this.dayGrid&&(this.dayGrid.removeSegPopover(),i=this.opt("eventLimit"),i&&typeof i!="number"&&(i=no),i&&this.dayGrid.limitRows(i));t||(r=this.computeScrollerHeight(n),this.scroller.setHeight(r),u=this.scroller.getScrollbarWidths(),(u.left||u.right)&&(bi(this.noScrollRowEls,u),r=this.computeScrollerHeight(n),this.scroller.setHeight(r)),this.scroller.lockOverflow(u),this.timeGrid.getTotalSlatHeight()<r&&this.bottomRuleEl.show())},computeScrollerHeight:function(n){return n-bt(this.el,this.scroller.el)},computeInitialScroll:function(){var i=t.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(i);return n=Math.ceil(n),n&&n++,n},queryScroll:function(){return this.scroller.getScrollTop()},setScroll:function(n){this.scroller.setScrollTop(n)},prepareHits:function(){this.timeGrid.prepareHits();this.dayGrid&&this.dayGrid.prepareHits()},releaseHits:function(){this.timeGrid.releaseHits();this.dayGrid&&this.dayGrid.releaseHits()},queryHit:function(n,t){var i=this.timeGrid.queryHit(n,t);return!i&&this.dayGrid&&(i=this.dayGrid.queryHit(n,t)),i},getHitSpan:function(n){return n.component.getHitSpan(n)},getHitEl:function(n){return n.component.getHitEl(n)},renderEvents:function(n){for(var i=[],r=[],u=[],f,t=0;t<n.length;t++)n[t].allDay?i.push(n[t]):r.push(n[t]);f=this.timeGrid.renderEvents(r);this.dayGrid&&(u=this.dayGrid.renderEvents(i));this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},unrenderEvents:function(){this.timeGrid.unrenderEvents();this.dayGrid&&this.dayGrid.unrenderEvents()},renderDrag:function(n,t){return n.start.hasTime()?this.timeGrid.renderDrag(n,t):this.dayGrid?this.dayGrid.renderDrag(n,t):void 0},unrenderDrag:function(){this.timeGrid.unrenderDrag();this.dayGrid&&this.dayGrid.unrenderDrag()},renderSelection:function(n){n.start.hasTime()||n.end.hasTime()?this.timeGrid.renderSelection(n):this.dayGrid&&this.dayGrid.renderSelection(n)},unrenderSelection:function(){this.timeGrid.unrenderSelection();this.dayGrid&&this.dayGrid.unrenderSelection()}}),de={renderHeadIntroHtml:function(){var n=this.view,t;return n.opt("weekNumbers")?(t=this.start.format(n.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+n.widgetHeaderClass+'" '+n.axisStyleAttr()+">"+n.buildGotoAnchorHtml({date:this.start,type:"week",forceOff:this.colCnt>1},r(t))+"<\/th>"):'<th class="fc-axis '+n.widgetHeaderClass+'" '+n.axisStyleAttr()+"><\/th>"},renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.widgetContentClass+'" '+n.axisStyleAttr()+"><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}},ge={renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.widgetContentClass+'" '+n.axisStyleAttr()+"><span>"+n.getAllDayHtml()+"<\/span><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}},no=5,ku=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];return e.agenda={"class":ke,defaults:{allDaySlot:!0,slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},e.agendaDay={type:"agenda",duration:{days:1}},e.agendaWeek={type:"agenda",duration:{weeks:1}},yu=b.extend({grid:null,scroller:null,initialize:function(){this.grid=new pu(this);this.scroller=new pi({overflowX:"hidden",overflowY:"auto"})},setRange:function(n){b.prototype.setRange.call(this,n);this.grid.setRange(n)},renderSkeleton:function(){this.el.addClass("fc-list-view "+this.widgetContentClass);this.scroller.render();this.scroller.el.appendTo(this.el);this.grid.setElement(this.scroller.scrollEl)},unrenderSkeleton:function(){this.scroller.destroy()},setHeight:function(n){this.scroller.setHeight(this.computeScrollerHeight(n))},computeScrollerHeight:function(n){return n-bt(this.el,this.scroller.el)},renderEvents:function(n){this.grid.renderEvents(n)},unrenderEvents:function(){this.grid.unrenderEvents()},isEventResizable:function(){return!1},isEventDraggable:function(){return!1}}),pu=h.extend({segSelector:".fc-list-item",hasDayInteractions:!1,spanToSegs:function(n){for(var r=this.view,i=r.start.clone().time(0),u=0,t,f=[];i<r.end;)if(t=ot(n,{start:i,end:i.clone().add(1,"day")}),t&&(t.dayIndex=u,f.push(t)),i.add(1,"day"),u++,t&&!t.isEnd&&n.end.hasTime()&&n.end<i.clone().add(this.view.nextDayThreshold)){t.end=n.end.clone();t.isEnd=!0;break}return f},computeEventTimeFormat:function(){return this.view.opt("mediumTimeFormat")},handleSegClick:function(t,i){var r;h.prototype.handleSegClick.apply(this,arguments);n(i.target).closest("a[href]").length||(r=t.event.url,r&&!i.isDefaultPrevented()&&(window.location.href=r))},renderFgSegs:function(n){return n=this.renderFgSegEls(n),n.length?this.renderSegList(n):this.renderEmptyMessage(),n},renderEmptyMessage:function(){this.el.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+r(this.view.opt("noEventsMessage"))+"<\/div><\/div><\/div>")},renderSegList:function(t){for(var f=this.groupSegsByDay(t),i,r,e=n('<table class="fc-list-table"><tbody/><\/table>'),o=e.find("tbody"),u=0;u<f.length;u++)if(i=f[u],i)for(o.append(this.dayHeaderHtml(this.view.start.clone().add(u,"days"))),this.sortEventSegs(i),r=0;r<i.length;r++)o.append(i[r].el);this.el.empty().append(e)},groupSegsByDay:function(n){for(var i=[],t,r=0;r<n.length;r++)t=n[r],(i[t.dayIndex]||(i[t.dayIndex]=[])).push(t);return i},dayHeaderHtml:function(n){var t=this.view,i=t.opt("listDayFormat"),u=t.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+n.format("YYYY-MM-DD")+'"><td class="'+t.widgetHeaderClass+'" colspan="3">'+(i?t.buildGotoAnchorHtml(n,{"class":"fc-list-heading-main"},r(n.format(i))):"")+(u?t.buildGotoAnchorHtml(n,{"class":"fc-list-heading-alt"},r(n.format(u))):"")+"<\/td><\/tr>"},fgSegHtml:function(n){var t=this.view,f=["fc-list-item"].concat(this.getSegCustomClasses(n)),e=this.getSegBackgroundColor(n),i=n.event,u=i.url,o;return o=i.allDay?t.getAllDayHtml():t.isMultiDayEvent(i)?n.isStart||n.isEnd?r(this.getEventTimeText(n)):t.getAllDayHtml():r(this.getEventTimeText(i)),u&&f.push("fc-has-url"),'<tr class="'+f.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+t.widgetContentClass+'">'+(o||"")+"<\/td>":"")+'<td class="fc-list-item-marker '+t.widgetContentClass+'"><span class="fc-event-dot"'+(e?' style="background-color:'+e+'"':"")+'><\/span><\/td><td class="fc-list-item-title '+t.widgetContentClass+'"><a'+(u?' href="'+r(u)+'"':"")+">"+r(n.event.title||"")+"<\/a><\/td><\/tr>"}}),e.list={"class":yu,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}},e.listDay={type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}},e.listWeek={type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}},e.listMonth={type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}},e.listYear={type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}},i});FC=$.fullCalendar;View=FC.View;ListView=View.extend({baseEvent:null,baseElement:null,classes:{date:"js-events-list-item-date",title:"js-events-list-item-title",description:"js-events-list-item-description",location:"js-events-list-item-location",link:"js-events-list-item-link",image:"js-events-list-item-image",featured:"js-events-list-item-featured"},header:{left:"",center:"",right:""},initialize:function(){this.baseElement==null&&(this.baseElement=$("#events-list"));this.baseEvent==null&&(this.baseEvent=$(".js-events-list-item"),this.baseEvent.detach());this.baseElement.detach()},updateTitle:function(){this.title=""},render:function(){this.options.header.left="";this.baseElement.appendTo(this.el);this.baseElement.show()},setHeight:function(){},renderEvents:function(n){var u=0,f,r;for(f in n){var t=n[f],i=this.baseEvent.clone(),e="/images/event-placeholder.png";t.image!==undefined&&t.image!=null&&(e=t.image.ResourceThumbnailImageUrl);r=t.start;r!==undefined&&r!=null&&(r=r.format("ddd, DD MMM YYYY HH:mma"));i.find("."+this.classes.date).text(r);i.find("."+this.classes.title).text(t.title);i.find("."+this.classes.description).html(t.description);i.find("."+this.classes.location).text(t.location);t.start!=null&&t.start.format!=undefined&&i.find("."+this.classes.link).attr("href",t.link+"?startDate="+t.start.format("YYYY-MM-DD HH:mm:ss"));i.find("."+this.classes.image).attr("style","background-image: url("+e+");");t.featured==!0&&i.find("."+this.classes.featured).attr("style","display: block;");i.appendTo(this.baseElement);u++;u>=10}},destroyEvents:function(){$(".js-events-list-item").remove()},renderSelection:function(){},destroySelection:function(){this.baseElement.detach();this.baseElement.hide();this.options.header.left="prev,next title"}});FC.views.listView=ListView,function(){"use strict";function n(n){function o(o,s){var rt,ut,p=o==window,c=s&&s.message!==undefined?s.message:undefined,g,k,d,tt,nt,w,b,it,ft,et,ot;if(s=n.extend({},n.blockUI.defaults,s||{}),!s.ignoreIfBlocked||!n(o).data("blockUI.isBlocked")){if(s.overlayCSS=n.extend({},n.blockUI.defaults.overlayCSS,s.overlayCSS||{}),rt=n.extend({},n.blockUI.defaults.css,s.css||{}),s.onOverlayClick&&(s.overlayCSS.cursor="pointer"),ut=n.extend({},n.blockUI.defaults.themedCSS,s.themedCSS||{}),c=c===undefined?s.message:c,p&&t&&u(window,{fadeOut:0}),c&&typeof c!="string"&&(c.parentNode||c.jquery)&&(g=c.jquery?c[0]:c,k={},n(o).data("blockUI.history",k),k.el=g,k.parent=g.parentNode,k.display=g.style.display,k.position=g.style.position,k.parent&&k.parent.removeChild(g)),n(o).data("blockUI.onUnblock",s.onUnblock),d=s.baseZ,tt=e||s.forceIframe?n('<iframe class="blockUI" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+s.iframeSrc+'"><\/iframe>'):n('<div class="blockUI" style="display:none"><\/div>'),nt=s.theme?n('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+d+++';display:none"><\/div>'):n('<div class="blockUI blockOverlay" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"><\/div>'),s.theme&&p?(b='<div class="blockUI '+s.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:fixed">',s.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(s.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):s.theme?(b='<div class="blockUI '+s.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:absolute">',s.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(s.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):b=p?'<div class="blockUI '+s.blockMsgClass+' blockPage" style="z-index:'+(d+10)+';display:none;position:fixed"><\/div>':'<div class="blockUI '+s.blockMsgClass+' blockElement" style="z-index:'+(d+10)+';display:none;position:absolute"><\/div>',w=n(b),c&&(s.theme?(w.css(ut),w.addClass("ui-widget-content")):w.css(rt)),s.theme||nt.css(s.overlayCSS),nt.css("position",p?"fixed":"absolute"),(e||s.forceIframe)&&tt.css("opacity",0),it=[tt,nt,w],ft=p?n("body"):n(o),n.each(it,function(){this.appendTo(ft)}),s.theme&&s.draggable&&n.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),et=y&&(!n.support.boxModel||n("object,embed",p?null:o).length>0),a||et){if(p&&s.allowBodyStretch&&n.support.boxModel&&n("html,body").css("height","100%"),(a||!n.support.boxModel)&&!p)var st=r(o,"borderTopWidth"),ht=r(o,"borderLeftWidth"),ct=st?"(0 - "+st+")":0,lt=ht?"(0 - "+ht+")":0;n.each(it,function(n,t){var i=t[0].style,r,u;i.position="absolute";n<2?(p?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+s.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),p?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),lt&&i.setExpression("left",lt),ct&&i.setExpression("top",ct)):s.centerY?(p&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0):!s.centerY&&p&&(r=s.css&&s.css.top?parseInt(s.css.top,10):0,u="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+r+') + "px"',i.setExpression("top",u))})}if(c&&(s.theme?w.find(".ui-widget-content").append(c):w.append(c),(c.jquery||c.nodeType)&&n(c).show()),(e||s.forceIframe)&&s.showOverlay&&tt.show(),s.fadeIn){var at=s.onBlock?s.onBlock:f,vt=s.showOverlay&&!c?at:f,yt=c?at:f;s.showOverlay&&nt._fadeIn(s.fadeIn,vt);c&&w._fadeIn(s.fadeIn,yt)}else s.showOverlay&&nt.show(),c&&w.show(),s.onBlock&&s.onBlock.bind(w)();h(1,o,s);p?(t=w[0],i=n(s.focusableElements,t),s.focusInput&&setTimeout(l,20)):v(w[0],s.centerX,s.centerY);s.timeout&&(ot=setTimeout(function(){p?n.unblockUI(s):n(o).unblock(s)},s.timeout),n(o).data("blockUI.timeout",ot))}}function u(r,u){var o,c=r==window,e=n(r),l=e.data("blockUI.history"),a=e.data("blockUI.timeout"),f;a&&(clearTimeout(a),e.removeData("blockUI.timeout"));u=n.extend({},n.blockUI.defaults,u||{});h(0,r,u);u.onUnblock===null&&(u.onUnblock=e.data("blockUI.onUnblock"),e.removeData("blockUI.onUnblock"));f=c?n("body").children().filter(".blockUI").add("body > .blockUI"):e.find(">.blockUI");u.cursorReset&&(f.length>1&&(f[1].style.cursor=u.cursorReset),f.length>2&&(f[2].style.cursor=u.cursorReset));c&&(t=i=null);u.fadeOut?(o=f.length,f.stop().fadeOut(u.fadeOut,function(){--o==0&&s(f,l,u,r)})):s(f,l,u,r)}function s(t,i,r,u){var f=n(u);if(!f.data("blockUI.isBlocked")){if(t.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.el.style.cursor="default",i.parent&&i.parent.appendChild(i.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),typeof r.onUnblock=="function")r.onUnblock(u,r);var e=n(document.body),o=e.width(),s=e[0].style.width;e.width(o-1).width(o);e[0].style.width=s}}function h(i,r,u){var f=r==window,o=n(r),e;(i||(!f||t)&&(f||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",i),f&&u.bindEvents&&(!i||u.showOverlay))&&(e="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",i?n(document).bind(e,u,c):n(document).unbind(e,c))}function c(r){var u,f;if(r.type==="keydown"&&r.keyCode&&r.keyCode==9&&t&&r.data.constrainTabKey){var e=i,s=!r.shiftKey&&r.target===e[e.length-1],o=r.shiftKey&&r.target===e[0];if(s||o)return setTimeout(function(){l(o)},10),!1}if(u=r.data,f=n(r.target),f.hasClass("blockOverlay")&&u.onOverlayClick)u.onOverlayClick(r);return f.parents("div."+u.blockMsgClass).length>0?!0:f.parents().children().filter("div.blockUI").length===0}function l(n){if(i){var t=i[n===!0?i.length-1:0];t&&t.focus()}}function v(n,t,i){var u=n.parentNode,f=n.style,e=(u.offsetWidth-n.offsetWidth)/2-r(u,"borderLeftWidth"),o=(u.offsetHeight-n.offsetHeight)/2-r(u,"borderTopWidth");t&&(f.left=e>0?e+"px":"0");i&&(f.top=o>0?o+"px":"0")}function r(t,i){return parseInt(n.css(t,i),10)||0}var t,i;n.fn._fadeIn=n.fn.fadeIn;var f=n.noop||function(){},e=/MSIE/.test(navigator.userAgent),a=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),p=document.documentMode||0,y=n.isFunction(document.createElement("div").style.setExpression);n.blockUI=function(n){o(window,n)};n.unblockUI=function(n){u(window,n)};n.growlUI=function(t,i,r,u){var f=n('<div class="growlUI"><\/div>'),e,o;t&&f.append("<h1>"+t+"<\/h1>");i&&f.append("<h2>"+i+"<\/h2>");r===undefined&&(r=3e3);e=function(t){t=t||{};n.blockUI({message:f,fadeIn:typeof t.fadeIn!="undefined"?t.fadeIn:700,fadeOut:typeof t.fadeOut!="undefined"?t.fadeOut:1e3,timeout:typeof t.timeout!="undefined"?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:u,css:n.blockUI.defaults.growlCSS})};e();o=f.css("opacity");f.mouseover(function(){e({fadeIn:0,timeout:3e4});var t=n(".blockMsg");t.stop();t.fadeTo(300,1)}).mouseout(function(){n(".blockMsg").fadeOut(1e3)})};n.fn.block=function(t){if(this[0]===window)return n.blockUI(t),this;var i=n.extend({},n.blockUI.defaults,t||{});return this.each(function(){var t=n(this);i.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){n.css(this,"position")=="static"&&(this.style.position="relative",n(this).data("blockUI.static",!0));this.style.zoom=1;o(this,t)})};n.fn.unblock=function(t){return this[0]===window?(n.unblockUI(t),this):this.each(function(){u(this,t)})};n.blockUI.version=2.7;n.blockUI.defaults={message:"<h1>Please wait...<\/h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};t=null;i=[]}typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)}(),function(n){function i(t,i){this.element=t;this.options=n.extend({},r,i);this.load()}var r={placeholder:"Select options",columns:1,search:!1,searchOptions:{"default":"Search",showOptGroups:!1,onSearch:function(){}},selectAll:!1,selectGroup:!1,minHeight:200,maxHeight:null,showCheckbox:!0,jqActualOpts:{},onLoad:function(t){n(t).hide()},onOptionClick:function(t){for(var u=[],r="",i=0;i<t.length;i++)t[i].selected&&u.push(t[i].value);if(r=u.join(", "),r.split(",").length>10)return alert("You can select upto 10 surveys"),!1;n("#selectedSurveyListId").val(r);n.blockUI({message:'<img alt="Loading" src="/Images/ajax-loader.gif" />'})},maxWidth:null,minSelect:!1,maxSelect:!1},t=1;i.prototype={load:function(){var t=this,u,e,f;if(t.element.nodeName!="SELECT"||n(t.element).hasClass("jqmsLoaded"))return!0;n(t.element).addClass("jqmsLoaded");n(t.element).after('<div class="ms-options-wrap"><button>None Selected<\/button><div class="ms-options"><ul><\/ul><\/div><\/div>');var s=n(t.element).next(".ms-options-wrap").find("> button:first-child"),i=n(t.element).next(".ms-options-wrap").find("> .ms-options"),r=i.find("> ul"),h=n(t.element).find("optgroup").length?!0:!1,o=null;typeof t.options.width=="number"?(i.parent().css("position","relative"),o=t.options.width):typeof t.options.width=="string"?(n(t.options.width).css("position","relative"),o="100%"):i.parent().css("position","relative");u=n(window).height()-i.offset().top-20;t.options.maxHeight&&(u=n(window).height()-i.offset().top-20,u=u<t.options.minHeight?t.options.minHeight:maxheight);u=u<t.options.minHeight?t.options.minHeight:u;i.css({maxWidth:o,minHeight:t.options.minHeight,maxHeight:u,overflow:"auto"}).hide();i.bind("touchmove mousewheel DOMMouseScroll",function(t){if(n(this).outerHeight()<n(this)[0].scrollHeight){var i=t.originalEvent,r=i.wheelDelta||-i.detail;n(this).outerHeight()+n(this)[0].scrollTop>n(this)[0].scrollHeight&&(t.preventDefault(),this.scrollTop+=r<0?1:-1)}});n(document).off("click.ms-hideopts").on("click.ms-hideopts",function(t){n(t.target).closest(".ms-options-wrap").length||n(".ms-options-wrap > .ms-options:visible").hide()});if(s.bind("mousedown",function(r){if(r.which!=1)return!0;if(n(".ms-options-wrap > .ms-options:visible").each(function(){n(this).parent().prev()[0]!=i.parent().prev()[0]&&n(this).hide()}),i.toggle(),i.is(":visible")){i.css("maxHeight","");var u=n(window).height()-i.offset().top-20;t.options.maxHeight&&(u=n(window).height()-i.offset().top-20,u=u<t.options.minHeight?t.options.minHeight:maxheight);u=u<t.options.minHeight?t.options.minHeight:u;i.css("maxHeight",u)}}).click(function(n){n.preventDefault()}),t.options.placeholder&&s.text(t.options.placeholder),t.options.search){r.before('<div class="ms-search"><input type="text" value="" placeholder="'+t.options.searchOptions["default"]+'" /><\/div>');e=i.find(".ms-search input");e.on("keyup",function(){if(n(this).data("lastsearch")==n(this).val())return!0;if(n(this).data("lastsearch",n(this).val()),typeof t.options.searchOptions.onSearch=="function")t.options.searchOptions.onSearch(t.element);r.find("li:not(.optgroup)").each(function(){var i=n(this).text();i.toLowerCase().indexOf(e.val().toLowerCase())>-1?n(this).show():n(this).hasClass("selected")||n(this).hide();!t.options.searchOptions.showOptGroups&&n(this).closest("li.optgroup")&&(n(this).closest("li.optgroup").show(),n(this).closest("li.optgroup").find("li:visible").length?n(this).closest("li.optgroup").show():n(this).closest("li.optgroup").hide())})})}t.options.selectAll&&r.before('<a href="#" class="ms-selectall global">Select all<\/a>');i.on("click",".ms-selectall",function(t){if(t.preventDefault(),n(this).hasClass("global"))r.find("li:not(.optgroup)").filter(":not(.selected)").length?r.find("li:not(.optgroup)").filter(":not(.selected)").find('input[type="checkbox"]').trigger("click"):r.find('li:not(.optgroup).selected input[type="checkbox"]').trigger("click");else if(n(this).closest("li").hasClass("optgroup")){var i=n(this).closest("li.optgroup");i.find("li:not(.selected)").length?i.find('li:not(.selected) input[type="checkbox"]').trigger("click"):i.find('li.selected input[type="checkbox"]').trigger("click")}});f=[];n(t.element).children().each(function(){if(this.nodeName=="OPTGROUP"){var t=[];n(this).children("option").each(function(){t[n(this).val()]={name:n(this).text(),value:n(this).val(),checked:n(this).prop("selected")}});f.push({label:n(this).attr("label"),options:t})}else if(this.nodeName=="OPTION")f.push({name:n(this).text(),value:n(this).val(),checked:n(this).prop("selected")});else return!0});t.loadOptions(f);h?(r.find("> li:not(.optgroup)").css({float:"left",width:100/t.options.columns+"%"}),r.find("li.optgroup").css({clear:"both"}).find("> ul").css({"column-count":t.options.columns,"column-gap":0,"-webkit-column-count":t.options.columns,"-webkit-column-gap":0,"-moz-column-count":t.options.columns,"-moz-column-gap":0}),this._ieVersion()&&this._ieVersion()<10&&r.find("li.optgroup > ul > li").css({float:"left",width:100/t.options.columns+"%"})):(r.css({"column-count":t.options.columns,"column-gap":0,"-webkit-column-count":t.options.columns,"-webkit-column-gap":0,"-moz-column-count":t.options.columns,"-moz-column-gap":0}),this._ieVersion()&&this._ieVersion()<10&&r.find("> li").css({float:"left",width:100/t.options.columns+"%"}));i.on("click",'input[type="checkbox"]',function(){n(this).closest("li").toggleClass("selected");var r=i.parent().prev();if(r.find('option[value="'+n(this).val()+'"]').prop("selected",n(this).is(":checked")).closest("select").trigger("change"),typeof t.options.onOptionClick=="function")t.options.onOptionClick(t.element,this);t._updatePlaceholderText()});if(typeof t.options.onLoad=="function")t.options.onLoad(t.element);else n(t.element).hide()},loadOptions:function(t,i){var f,e,o,u,r,s,c,h;i=typeof i=="boolean"?i:!0;f=this;e=n(f.element).next(".ms-options-wrap").find("> .ms-options > ul");i&&e.find("> li").remove();for(o in t)if(t.hasOwnProperty(o)){if(u=t[o],r=n("<li><\/li>"),u.hasOwnProperty("options")){r.addClass("optgroup");r.append('<span class="label">'+u.label+"<\/span>");r.find("> .label").css({clear:"both"});f.options.selectGroup&&r.append('<a href="#" class="ms-selectall">Select all<\/a>');r.append("<ul><\/ul>");for(s in u.options)u.options.hasOwnProperty(s)&&(c=u.options[s],h=n("<li><\/li>").addClass("ms-reflow"),f._addOption(h,c),r.find("> ul").append(h))}else u.hasOwnProperty("value")&&(r.addClass("ms-reflow"),f._addOption(r,u));e.append(r)}e.find('.ms-reflow input[type="checkbox"]').each(function(){if(n(this).css("display").match(/block$/)){var t=n(this).outerWidth();t=t?t:15;n(this).closest("label").css("padding-left",parseInt(n(this).closest("label").css("padding-left"))*2+t);n(this).closest(".ms-reflow").removeClass("ms-reflow")}});f._updatePlaceholderText()},unload:function(){n(this.element).next(".ms-options-wrap").remove();n(this.element).show(function(){n(this).css("display","").removeClass("jqmsLoaded")})},reload:function(){n(this.element).next(".ms-options-wrap").remove();n(this.element).removeClass("jqmsLoaded");this.load()},_updatePlaceholderText:function(){var i=this,t=n(i.element).next(".ms-options-wrap").find("> button:first-child"),f=n(i.element).next(".ms-options-wrap").find("> .ms-options"),e=f.parent().prev(),r=[];e.find("option:selected").each(function(){r.push(n(this).text())});t.text(r.join(", "));var u=t.clone().css({display:"inline",width:"auto",visibility:"hidden"}).appendTo(f.parent()),o=typeof n.fn.actual!="undefined"?u.actual("width",i.options.jqActualOpts):u.width(),s=typeof n.fn.actual!="undefined"?t.actual("width",i.options.jqActualOpts):t.width();o>s?t.text(r.length+" selected"):r.length?t.text(r.join(", ")):t.text(i.options.placeholder);u.remove()},_addOption:function(i,r){i.text(r.name);i.prepend(n('<input type="checkbox" value="" title="" />').val(r.value).attr("title",r.name).attr("id","ms-opt-"+t));r.checked&&(i.addClass("default"),i.addClass("selected"),i.find('input[type="checkbox"]').prop("checked",!0));var u=n("<label><\/label>").attr("for","ms-opt-"+t);i.wrapInner(u);this.options.showCheckbox||i.find('input[id="ms-opt-'+t+'"]').hide();t=t+1},_ieVersion:function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("msie")!=-1?parseInt(n.split("msie")[1]):!1}};n.fn.multiselect=function(t){var u=arguments,r;return t===undefined||(typeof t=="undefined"?"undefined":_typeof(t))==="object"?this.each(function(){n.data(this,"plugin_multiselect")||n.data(this,"plugin_multiselect",new i(this,t))}):typeof t=="string"&&t[0]!=="_"&&t!=="init"?(this.each(function(){var f=n.data(this,"plugin_multiselect");f instanceof i&&typeof f[t]=="function"&&(r=f[t].apply(f,Array.prototype.slice.call(u,1)));t==="unload"&&n.data(this,"plugin_multiselect",null)}),r):void 0}}(jQuery);!function(n,t){"object"==(typeof exports=="undefined"?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.flatpickr=t()}(this,function(){"use strict";function k(n,t,i){var r;return void 0===i&&(i=!1),function(){var u=this,f=arguments;null!==r&&clearTimeout(r);r=window.setTimeout(function(){r=null;i||n.apply(u,f)},t);i&&!r&&n.apply(u,f)}}function r(n,t,i){return void 0===i&&(i=!0),!1!==i?new Date(n.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):n.getTime()-t.getTime()}function f(n,t,i){if(!0===i)return n.classList.add(t);n.classList.remove(t)}function n(n,t,i){var r=window.document.createElement(n);return t=t||"",i=i||"",r.className=t,void 0!==i&&(r.textContent=i),r}function h(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function c(t,i){var r=n("div","numInputWrapper"),u=n("input","numInput "+t),e=n("span","arrowUp"),o=n("span","arrowDown"),f;if(u.type="text",u.pattern="\\d*",void 0!==i)for(f in i)u.setAttribute(f,i[f]);return r.appendChild(u),r.appendChild(e),r.appendChild(o),r}function nt(e,o){function si(n){return n.bind(l)}function hi(){var n=l.config;!1===n.weekNumbers&&1===n.showMonths||!0!==n.noCalendar&&window.requestAnimationFrame(function(){if(l.calendarContainer.style.visibility="hidden",l.calendarContainer.style.display="block",void 0!==l.daysContainer){var t=(l.days.offsetWidth+1)*n.showMonths;l.daysContainer.style.width=t+"px";l.calendarContainer.style.width=t+(void 0!==l.weekWrapper?l.weekWrapper.offsetWidth:0)+"px";l.calendarContainer.style.removeProperty("visibility");l.calendarContainer.style.removeProperty("display")}})}function et(n){if(0!==l.selectedDates.length){void 0!==n&&"blur"!==n.type&&function(n){var c,t,f,e;n.preventDefault();c="keydown"===n.type;t=n.target;void 0!==l.amPM&&n.target===l.amPM&&(l.amPM.textContent=l.l10n.amPM[u(l.amPM.textContent===l.l10n.amPM[0])]);var a=parseFloat(t.getAttribute("data-min")),o=parseFloat(t.getAttribute("data-max")),s=parseFloat(t.getAttribute("data-step")),h=parseInt(t.value,10),v=n.delta||(c?38===n.which?1:-1:0),r=h+s*v;void 0!==t.value&&2===t.value.length&&(f=t===l.hourElement,e=t===l.minuteElement,r<a?(r=o+r+u(!f)+(u(f)&&u(!l.amPM)),e&&kt(void 0,-1,l.hourElement)):o<r&&(r=t===l.hourElement?r-o-u(!l.amPM):a,e&&kt(void 0,1,l.hourElement)),l.amPM&&f&&(1===s?r+h===23:Math.abs(r-h)>s)&&(l.amPM.textContent=l.l10n.amPM[u(l.amPM.textContent===l.l10n.amPM[0])]),t.value=i(r))}(n);var t=l._input.value;ht();tt();l._input.value!==t&&l._debouncedChange()}}function ht(){var o,i,f;if(void 0!==l.hourElement&&void 0!==l.minuteElement){var s,h,n=(parseInt(l.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(l.minuteElement.value,10)||0)%60,e=void 0!==l.secondElement?(parseInt(l.secondElement.value,10)||0)%60:0;void 0!==l.amPM&&(s=n,h=l.amPM.textContent,n=s%12+12*u(h===l.l10n.amPM[1]));o=void 0!==l.config.minTime||l.config.minDate&&l.minDateHasTime&&l.latestSelectedDateObj&&0===r(l.latestSelectedDateObj,l.config.minDate,!0);(void 0!==l.config.maxTime||l.config.maxDate&&l.maxDateHasTime&&l.latestSelectedDateObj&&0===r(l.latestSelectedDateObj,l.config.maxDate,!0))&&(i=void 0!==l.config.maxTime?l.config.maxTime:l.config.maxDate,(n=Math.min(n,i.getHours()))===i.getHours()&&(t=Math.min(t,i.getMinutes())),t===i.getMinutes()&&(e=Math.min(e,i.getSeconds())));o&&(f=void 0!==l.config.minTime?l.config.minTime:l.config.minDate,(n=Math.max(n,f.getHours()))===f.getHours()&&(t=Math.max(t,f.getMinutes())),t===f.getMinutes()&&(e=Math.max(e,f.getSeconds())));pt(n,t,e)}}function ct(n){var t=n||l.latestSelectedDateObj;t&&pt(t.getHours(),t.getMinutes(),t.getSeconds())}function ci(){var n=l.config.defaultHour,t=l.config.defaultMinute,u=l.config.defaultSeconds,i,f,r,e;void 0!==l.config.minDate&&(i=l.config.minDate.getHours(),f=l.config.minDate.getMinutes(),(n=Math.max(n,i))===i&&(t=Math.max(f,t)),n===i&&t===f&&(u=l.config.minDate.getSeconds()));void 0!==l.config.maxDate&&(r=l.config.maxDate.getHours(),e=l.config.maxDate.getMinutes(),(n=Math.min(n,r))===r&&(t=Math.min(e,t)),n===r&&t===e&&(u=l.config.maxDate.getSeconds()));pt(n,t,u)}function pt(n,t,r){void 0!==l.latestSelectedDateObj&&l.latestSelectedDateObj.setHours(n%24,t,r||0,0);l.hourElement&&l.minuteElement&&!l.isMobile&&(l.hourElement.value=i(l.config.time_24hr?n:(12+n)%12+12*u(n%12==0)),l.minuteElement.value=i(t),void 0!==l.amPM&&(l.amPM.textContent=l.l10n.amPM[u(12<=n)]),void 0!==l.secondElement&&(l.secondElement.value=i(r)))}function ir(n){var t=parseInt(n.target.value)+(n.delta||0);(1<t/1e3||"Enter"===n.key&&!/[^\d]/.test(t.toString()))&&ri(t)}function v(n,t,i,r){return t instanceof Array?t.forEach(function(t){return v(n,t,i,r)}):n instanceof Array?n.forEach(function(n){return v(n,t,i,r)}):(n.addEventListener(t,i,r),void l._handlers.push({element:n,event:t,handler:i,options:r}))}function ft(n){return function(t){1===t.which&&n(t)}}function wt(){nt("onChange")}function bt(n){var t=void 0!==n?l.parseDate(n):l.latestSelectedDateObj||(l.config.minDate&&l.config.minDate>l.now?l.config.minDate:l.config.maxDate&&l.config.maxDate<l.now?l.config.maxDate:l.now);try{void 0!==t&&(l.currentYear=t.getFullYear(),l.currentMonth=t.getMonth())}catch(n){n.message="Invalid date supplied: "+t;l.config.errorHandler(n)}l.redraw()}function rr(n){~n.target.className.indexOf("arrow")&&kt(n,n.target.classList.contains("arrowUp")?1:-1)}function kt(n,t,i){var r=n&&n.target,u=i||r&&r.parentNode&&r.parentNode.firstChild,f=fi("increment");f.delta=t;u&&u.dispatchEvent(f)}function dt(t,i,u,e){var s,h=ut(i,!0),o=n("span","flatpickr-day "+t,i.getDate().toString());return o.dateObj=i,o.$i=e,o.setAttribute("aria-label",l.formatDate(i,l.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===r(i,l.now)&&((l.todayDateElem=o).classList.add("today"),o.setAttribute("aria-current","date")),h?(o.tabIndex=-1,ei(i)&&(o.classList.add("selected"),l.selectedDateElem=o,"range"===l.config.mode&&(f(o,"startRange",l.selectedDates[0]&&0===r(i,l.selectedDates[0],!0)),f(o,"endRange",l.selectedDates[1]&&0===r(i,l.selectedDates[1],!0)),"nextMonthDay"===t&&o.classList.add("inRange")))):o.classList.add("disabled"),"range"===l.config.mode&&(s=i,!("range"!==l.config.mode||l.selectedDates.length<2)&&0<=r(s,l.selectedDates[0])&&r(s,l.selectedDates[1])<=0&&!ei(i)&&o.classList.add("inRange")),l.weekNumbers&&1===l.config.showMonths&&"prevMonthDay"!==t&&u%7==1&&l.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+l.config.getWeek(i)+"<\/span>"),nt("onDayCreate",o),o}function gt(n){n.focus();"range"===l.config.mode&&ui(n)}function lt(n){for(var t,f=0<n?0:l.config.showMonths-1,e=0<n?l.config.showMonths:-1,i=f;i!=e;i+=n)for(var r=l.daysContainer.children[i],o=0<n?0:r.children.length-1,s=0<n?r.children.length:-1,u=o;u!=s;u+=n)if(t=r.children[u],-1===t.className.indexOf("hidden")&&ut(t.dateObj))return t}function ot(n,t){var r=vt(document.activeElement||document.body),i=void 0!==n?n:r?document.activeElement:void 0!==l.selectedDateElem&&vt(l.selectedDateElem)?l.selectedDateElem:void 0!==l.todayDateElem&&vt(l.todayDateElem)?l.todayDateElem:lt(0<t?1:-1);return void 0===i?l._input.focus():r?void function(n,t){for(var r,o=-1===n.className.indexOf("Month")?n.dateObj.getMonth():l.currentMonth,h=0<t?l.config.showMonths:-1,u=0<t?1:-1,f=o-l.currentMonth;f!=h;f+=u)for(var e=l.daysContainer.children[f],c=o-l.currentMonth===f?n.$i+t:t<0?e.children.length-1:0,s=e.children.length,i=c;0<=i&&i<s&&i!=(0<t?s:-1);i+=u)if(r=e.children[i],-1===r.className.indexOf("hidden")&&ut(r.dateObj)&&Math.abs(n.$i-i)>=Math.abs(t))return gt(r);l.changeMonth(u);ot(lt(u),0)}(i,t):gt(i)}function ur(t,i){for(var f,o,h=(new Date(t,i,1).getDay()-l.l10n.firstDayOfWeek+7)%7,c=l.utils.getDaysInMonth((i- -11)%12),s=l.utils.getDaysInMonth(i),e=window.document.createDocumentFragment(),a=1<l.config.showMonths,v=a?"prevMonthDay hidden":"prevMonthDay",y=a?"nextMonthDay hidden":"nextMonthDay",r=c+1-h,u=0;r<=c;r++,u++)e.appendChild(dt(v,new Date(t,i-1,r),r,u));for(r=1;r<=s;r++,u++)e.appendChild(dt("",new Date(t,i,r),r,u));for(f=s+1;f<=42-h&&(1===l.config.showMonths||u%7!=0);f++,u++)e.appendChild(dt(y,new Date(t,i+1,f%s),f,u));return o=n("div","dayContainer"),o.appendChild(e),o}function at(){var i,n,t;if(void 0!==l.daysContainer){for(h(l.daysContainer),l.weekNumbers&&h(l.weekNumbers),i=document.createDocumentFragment(),n=0;n<l.config.showMonths;n++)t=new Date(l.currentYear,l.currentMonth,1),t.setMonth(l.currentMonth+n),i.appendChild(ur(t.getFullYear(),t.getMonth()));l.daysContainer.appendChild(i);l.days=l.daysContainer.firstChild;"range"===l.config.mode&&1===l.selectedDates.length&&ui()}}function fr(){var r=n("div","flatpickr-month"),u=window.document.createDocumentFragment(),f=n("span","cur-month"),e=c("cur-year",{tabindex:"-1"}),t=e.getElementsByTagName("input")[0],i;return t.setAttribute("aria-label",l.l10n.yearAriaLabel),l.config.minDate&&t.setAttribute("data-min",l.config.minDate.getFullYear().toString()),l.config.maxDate&&(t.setAttribute("data-max",l.config.maxDate.getFullYear().toString()),t.disabled=!!l.config.minDate&&l.config.minDate.getFullYear()===l.config.maxDate.getFullYear()),i=n("div","flatpickr-current-month"),i.appendChild(f),i.appendChild(e),u.appendChild(i),r.appendChild(u),{container:r,yearElement:t,monthElement:f}}function li(){var t,n;for(h(l.monthNav),l.monthNav.appendChild(l.prevMonthNav),t=l.config.showMonths;t--;)n=fr(),l.yearElements.push(n.yearElement),l.monthElements.push(n.monthElement),l.monthNav.appendChild(n.container);l.monthNav.appendChild(l.nextMonthNav)}function ai(){var t,i;for(l.weekdayContainer?h(l.weekdayContainer):l.weekdayContainer=n("div","flatpickr-weekdays"),t=l.config.showMonths;t--;)i=n("div","flatpickr-weekdaycontainer"),l.weekdayContainer.appendChild(i);return vi(),l.weekdayContainer}function vi(){var t=l.l10n.firstDayOfWeek,n=l.l10n.weekdays.shorthand.concat(),i;for(0<t&&t<n.length&&(n=n.splice(t,n.length).concat(n.splice(0,t))),i=l.config.showMonths;i--;)l.weekdayContainer.children[i].innerHTML="\n      <span class=flatpickr-weekday>\n        "+n.join("<\/span><span class=flatpickr-weekday>")+"\n      <\/span>\n      "}function ni(n,t){void 0===t&&(t=!0);var i=t?n:n-l.currentMonth;i<0&&!0===l._hidePrevMonthArrow||0<i&&!0===l._hideNextMonthArrow||(l.currentMonth+=i,(l.currentMonth<0||11<l.currentMonth)&&(l.currentYear+=11<l.currentMonth?1:-1,l.currentMonth=(l.currentMonth+12)%12,nt("onYearChange")),at(),nt("onMonthChange"),yt())}function ti(n){return!(!l.config.appendTo||!l.config.appendTo.contains(n))||l.calendarContainer.contains(n)}function ii(n){if(l.isOpen&&!l.config.inline){var i=ti(n.target),t=n.target===l.input||n.target===l.altInput||l.element.contains(n.target)||n.path&&n.path.indexOf&&(~n.path.indexOf(l.input)||~n.path.indexOf(l.altInput)),r="blur"===n.type?t&&n.relatedTarget&&!ti(n.relatedTarget):!t&&!i,u=!l.config.ignoredFocusElements.some(function(t){return t.contains(n.target)});r&&u&&(l.close(),"range"===l.config.mode&&1===l.selectedDates.length&&(l.clear(!1),l.redraw()))}}function ri(n){if(!(!n||l.config.minDate&&n<l.config.minDate.getFullYear()||l.config.maxDate&&n>l.config.maxDate.getFullYear())){var t=n,i=l.currentYear!==t;l.currentYear=t||l.currentYear;l.config.maxDate&&l.currentYear===l.config.maxDate.getFullYear()?l.currentMonth=Math.min(l.config.maxDate.getMonth(),l.currentMonth):l.config.minDate&&l.currentYear===l.config.minDate.getFullYear()&&(l.currentMonth=Math.max(l.config.minDate.getMonth(),l.currentMonth));i&&(l.redraw(),nt("onYearChange"))}}function ut(n,t){var i,e;if(void 0===t&&(t=!0),i=l.parseDate(n,void 0,t),l.config.minDate&&i&&r(i,l.config.minDate,void 0!==t?t:!l.minDateHasTime)<0||l.config.maxDate&&i&&0<r(i,l.config.maxDate,void 0!==t?t:!l.maxDateHasTime))return!1;if(0===l.config.enable.length&&0===l.config.disable.length)return!0;if(void 0===i)return!1;for(var u,f=0<l.config.enable.length,s=f?l.config.enable:l.config.disable,o=0;o<s.length;o++){if("function"==typeof(u=s[o])&&u(i)||u instanceof Date&&void 0!==i&&u.getTime()===i.getTime())return f;if("string"==typeof u&&void 0!==i)return e=l.parseDate(u,void 0,!0),e&&e.getTime()===i.getTime()?f:!f;if("object"==(typeof u=="undefined"?"undefined":_typeof(u))&&void 0!==i&&u.from&&u.to&&i.getTime()>=u.from.getTime()&&i.getTime()<=u.to.getTime())return f}return!f}function vt(n){return void 0!==l.daysContainer&&-1===n.className.indexOf("hidden")&&l.daysContainer.contains(n)}function yi(n){var i=n.target===l._input,r=l.config.allowInput,h=l.isOpen&&(!r||!i),c=l.config.inline&&i&&!r,t,u,f,e,o,s;if(13===n.keyCode&&i){if(r)return l.setDate(l._input.value,!0,n.target===l.altInput?l.config.altFormat:l.config.dateFormat),n.target.blur();l.open()}else if(ti(n.target)||h||c){t=!!l.timeContainer&&l.timeContainer.contains(n.target);switch(n.keyCode){case 13:t?et():di(n);break;case 27:n.preventDefault();ki();break;case 8:case 46:i&&!l.config.allowInput&&(n.preventDefault(),l.clear());break;case 37:case 39:t?l.hourElement&&l.hourElement.focus():(n.preventDefault(),void 0!==l.daysContainer&&(!1===r||vt(document.activeElement)))&&(u=39===n.keyCode?1:-1,n.ctrlKey?(ni(u),ot(lt(1),0)):ot(void 0,u));break;case 38:case 40:n.preventDefault();f=40===n.keyCode?1:-1;l.daysContainer&&void 0!==n.target.$i?n.ctrlKey?(ri(l.currentYear-f),ot(lt(1),0)):t||ot(void 0,7*f):l.config.enableTime&&(!t&&l.hourElement&&l.hourElement.focus(),et(n),l._debouncedChange());break;case 9:if(!t){l.element.focus();break}e=[l.hourElement,l.minuteElement,l.secondElement,l.amPM].filter(function(n){return n});o=e.indexOf(n.target);-1!==o&&(s=e[o+(n.shiftKey?-1:1)],void 0!==s?(n.preventDefault(),s.focus()):l.element.focus())}}if(void 0!==l.amPM&&n.target===l.amPM)switch(n.key){case l.l10n.amPM[0].charAt(0):case l.l10n.amPM[0].charAt(0).toLowerCase():l.amPM.textContent=l.l10n.amPM[0];ht();tt();break;case l.l10n.amPM[1].charAt(0):case l.l10n.amPM[1].charAt(0).toLowerCase():l.amPM.textContent=l.l10n.amPM[1];ht();tt()}nt("onKeyDown",n)}function ui(n){var u;if(1===l.selectedDates.length&&(!n||n.classList.contains("flatpickr-day")&&!n.classList.contains("disabled"))){for(var f=n?n.dateObj.getTime():l.days.firstElementChild.dateObj.getTime(),i=l.parseDate(l.selectedDates[0],void 0,!0).getTime(),c=Math.min(f,l.selectedDates[0].getTime()),v=Math.max(f,l.selectedDates[0].getTime()),y=l.daysContainer.lastChild.lastChild.dateObj.getTime(),o=!1,e=0,r=0,t=c;t<y;t+=rt.DAY)ut(new Date(t),!0)||(o=o||c<t&&t<v,t<i&&(!e||e<t)?e=t:i<t&&(!r||t<r)&&(r=t));for(u=0;u<l.config.showMonths;u++)for(var s=l.daysContainer.children[u],a=l.daysContainer.children[u-1],p=function(t){var c=s.children[t],h=c.dateObj.getTime(),v=0<e&&h<e||0<r&&r<h;return v?(c.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(n){c.classList.remove(n)}),"continue"):o&&!v?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(n){c.classList.remove(n)}),void(void 0!==n&&(n.classList.add(f<l.selectedDates[0].getTime()?"startRange":"endRange"),!s.contains(n)&&0<u&&a&&a.lastChild.dateObj.getTime()>=h||(i<f&&h===i?c.classList.add("startRange"):f<i&&h===i&&c.classList.add("endRange"),e<=h&&(0===r||h<=r)&&it(h,i,f)&&c.classList.add("inRange")))))},h=0,w=s.children.length;h<w;h++)p(h)}}function er(){!l.isOpen||l.config.static||l.config.inline||st()}function pi(n){return function(t){var i=l.config["_"+n+"Date"]=l.parseDate(t,l.config.dateFormat),r=l.config["_"+("min"===n?"max":"min")+"Date"];void 0!==i&&(l["min"===n?"minDateHasTime":"maxDateHasTime"]=0<i.getHours()||0<i.getMinutes()||0<i.getSeconds());l.selectedDates&&(l.selectedDates=l.selectedDates.filter(function(n){return ut(n)}),l.selectedDates.length||"min"!==n||ct(i),tt());l.daysContainer&&(bi(),void 0!==i?l.currentYearElement[n]=i.getFullYear().toString():l.currentYearElement.removeAttribute(n),l.currentYearElement.disabled=!!r&&void 0!==i&&r.getFullYear()===i.getFullYear())}}function wi(){"object"!=_typeof(l.config.locale)&&void 0===t.l10ns[l.config.locale]&&l.config.errorHandler(new Error("flatpickr: invalid locale "+l.config.locale));l.l10n=Object.assign({},t.l10ns.default,"object"==_typeof(l.config.locale)?l.config.locale:"default"!==l.config.locale?t.l10ns[l.config.locale]:void 0);p.K="("+l.l10n.amPM[0]+"|"+l.l10n.amPM[1]+"|"+l.l10n.amPM[0].toLowerCase()+"|"+l.l10n.amPM[1].toLowerCase()+")";l.formatDate=d(l);l.parseDate=w({config:l.config,l10n:l.l10n})}function st(n){if(void 0!==l.calendarContainer){nt("onPreCalendarPosition");var e=n||l._positionElement,i=Array.prototype.reduce.call(l.calendarContainer.children,function(n,t){return n+t.offsetHeight},0),o=l.calendarContainer.offsetWidth,r=l.config.position.split(" "),s=r[0],h=1<r.length?r[1]:null,t=e.getBoundingClientRect(),v=window.innerHeight-t.bottom,u="above"===s||"below"!==s&&v<i&&t.top>i,y=window.pageYOffset+t.top+(u?-i-2:e.offsetHeight+2);if(f(l.calendarContainer,"arrowTop",!u),f(l.calendarContainer,"arrowBottom",u),!l.config.inline){var c=window.pageXOffset+t.left-(null!=h&&"center"===h?(o-t.width)/2:0),p=window.document.body.offsetWidth-t.right,a=c+o>window.document.body.offsetWidth;f(l.calendarContainer,"rightMost",a);l.config.static||(l.calendarContainer.style.top=y+"px",a?(l.calendarContainer.style.left="auto",l.calendarContainer.style.right=p+"px"):(l.calendarContainer.style.left=c+"px",l.calendarContainer.style.right="auto"))}}}function bi(){l.config.noCalendar||l.isMobile||(yt(),at())}function ki(){l._input.focus();-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(l.close,0):l.close()}function di(n){var i,u,e,o,s;if(n.preventDefault(),n.stopPropagation(),i=function n(t,i){return i(t)?t:t.parentNode?n(t.parentNode,i):void 0}(n.target,function(n){return n.classList&&n.classList.contains("flatpickr-day")&&!n.classList.contains("disabled")&&!n.classList.contains("notAllowed")}),void 0!==i){var f=i,t=l.latestSelectedDateObj=new Date(f.dateObj.getTime()),h=(t.getMonth()<l.currentMonth||t.getMonth()>l.currentMonth+l.config.showMonths-1)&&"range"!==l.config.mode;(l.selectedDateElem=f,"single"===l.config.mode)?l.selectedDates=[t]:"multiple"===l.config.mode?(u=ei(t),u?l.selectedDates.splice(parseInt(u),1):l.selectedDates.push(t)):"range"===l.config.mode&&(2===l.selectedDates.length&&l.clear(!1),l.selectedDates.push(t),0!==r(t,l.selectedDates[0],!0)&&l.selectedDates.sort(function(n,t){return n.getTime()-t.getTime()}));(ht(),h)&&(e=l.currentYear!==t.getFullYear(),l.currentYear=t.getFullYear(),l.currentMonth=t.getMonth(),e&&nt("onYearChange"),nt("onMonthChange"));(yt(),at(),tt(),l.config.enableTime&&setTimeout(function(){return l.showTimeInput=!0},50),h||"range"===l.config.mode||1!==l.config.showMonths?l.selectedDateElem&&l.selectedDateElem.focus():gt(f),void 0!==l.hourElement&&setTimeout(function(){return void 0!==l.hourElement&&l.hourElement.select()},451),l.config.closeOnSelect)&&(o="single"===l.config.mode&&!l.config.enableTime,s="range"===l.config.mode&&2===l.selectedDates.length&&!l.config.enableTime,(o||s)&&ki());wt()}}function gi(n,t){var i=[];if(n instanceof Array)i=n.map(function(n){return l.parseDate(n,t)});else if(n instanceof Date||"number"==typeof n)i=[l.parseDate(n,t)];else if("string"==typeof n)switch(l.config.mode){case"single":case"time":i=[l.parseDate(n,t)];break;case"multiple":i=n.split(l.config.conjunction).map(function(n){return l.parseDate(n,t)});break;case"range":i=n.split(l.l10n.rangeSeparator).map(function(n){return l.parseDate(n,t)})}else l.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(n)));l.selectedDates=i.filter(function(n){return n instanceof Date&&ut(n,!1)});"range"===l.config.mode&&l.selectedDates.sort(function(n,t){return n.getTime()-t.getTime()})}function nr(n){return n.slice().map(function(n){return"string"==typeof n||"number"==typeof n||n instanceof Date?l.parseDate(n,void 0,!0):n&&"object"==(typeof n=="undefined"?"undefined":_typeof(n))&&n.from&&n.to?{from:l.parseDate(n.from,void 0),to:l.parseDate(n.to,void 0)}:n}).filter(function(n){return n})}function nt(n,t){var i,r;if(void 0!==l.config){if(i=l.config[n],void 0!==i&&0<i.length)for(r=0;i[r]&&r<i.length;r++)i[r](l.selectedDates,l.input.value,l,t);"onChange"===n&&(l.input.dispatchEvent(fi("change")),l.input.dispatchEvent(fi("input")))}}function fi(n){var t=document.createEvent("Event");return t.initEvent(n,!0,!0),t}function ei(n){for(var t=0;t<l.selectedDates.length;t++)if(0===r(l.selectedDates[t],n))return""+t;return!1}function yt(){l.config.noCalendar||l.isMobile||!l.monthNav||(l.yearElements.forEach(function(n,t){var i=new Date(l.currentYear,l.currentMonth,1);i.setMonth(l.currentMonth+t);l.monthElements[t].textContent=y(i.getMonth(),l.config.shorthandCurrentMonth,l.l10n)+" ";n.value=i.getFullYear().toString()}),l._hidePrevMonthArrow=void 0!==l.config.minDate&&(l.currentYear===l.config.minDate.getFullYear()?l.currentMonth<=l.config.minDate.getMonth():l.currentYear<l.config.minDate.getFullYear()),l._hideNextMonthArrow=void 0!==l.config.maxDate&&(l.currentYear===l.config.maxDate.getFullYear()?l.currentMonth+1>l.config.maxDate.getMonth():l.currentYear>l.config.maxDate.getFullYear()))}function tr(n){return l.selectedDates.map(function(t){return l.formatDate(t,n)}).filter(function(n,t,i){return"range"!==l.config.mode||l.config.enableTime||i.indexOf(n)===t}).join("range"!==l.config.mode?l.config.conjunction:l.l10n.rangeSeparator)}function tt(n){if(void 0===n&&(n=!0),0===l.selectedDates.length)return l.clear(n);void 0!==l.mobileInput&&l.mobileFormatStr&&(l.mobileInput.value=void 0!==l.latestSelectedDateObj?l.formatDate(l.latestSelectedDateObj,l.mobileFormatStr):"");l.input.value=tr(l.config.dateFormat);void 0!==l.altInput&&(l.altInput.value=tr(l.config.altFormat));!1!==n&&nt("onValueUpdate")}function or(n){n.preventDefault();var t=l.prevMonthNav.contains(n.target),i=l.nextMonthNav.contains(n.target);t||i?ni(t?-1:1):0<=l.yearElements.indexOf(n.target)?n.target.select():n.target.classList.contains("arrowUp")?l.changeYear(l.currentYear+1):n.target.classList.contains("arrowDown")&&l.changeYear(l.currentYear-1)}var l={config:Object.assign({},t.defaultConfig),l10n:s},oi;return l.parseDate=w({config:l.config,l10n:l.l10n}),l._handlers=[],l._bind=v,l._setHoursFromDate=ct,l._positionCalendar=st,l.changeMonth=ni,l.changeYear=ri,l.clear=function(n){void 0===n&&(n=!0);l.input.value="";void 0!==l.altInput&&(l.altInput.value="");void 0!==l.mobileInput&&(l.mobileInput.value="");l.selectedDates=[];l.latestSelectedDateObj=void 0;!(l.showTimeInput=!1)===l.config.enableTime&&ci();l.redraw();n&&nt("onChange")},l.close=function(){l.isOpen=!1;l.isMobile||(l.calendarContainer.classList.remove("open"),l._input.classList.remove("active"));nt("onClose")},l._createElement=n,l.destroy=function(){var i,t,n;for(void 0!==l.config&&nt("onDestroy"),i=l._handlers.length;i--;)t=l._handlers[i],t.element.removeEventListener(t.event,t.handler,t.options);if(l._handlers=[],l.mobileInput)l.mobileInput.parentNode&&l.mobileInput.parentNode.removeChild(l.mobileInput),l.mobileInput=void 0;else if(l.calendarContainer&&l.calendarContainer.parentNode)if(l.config.static&&l.calendarContainer.parentNode){if(n=l.calendarContainer.parentNode,n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else l.calendarContainer.parentNode.removeChild(l.calendarContainer);l.altInput&&(l.input.type="text",l.altInput.parentNode&&l.altInput.parentNode.removeChild(l.altInput),delete l.altInput);l.input&&(l.input.type=l.input._type,l.input.classList.remove("flatpickr-input"),l.input.removeAttribute("readonly"),l.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(n){try{delete l[n]}catch(n){}})},l.isEnabled=ut,l.jumpToDate=bt,l.open=function(n,t){if(void 0===t&&(t=l._positionElement),!0===l.isMobile)return n&&(n.preventDefault(),n.target&&n.target.blur()),void 0!==l.mobileInput&&(l.mobileInput.focus(),l.mobileInput.click()),void nt("onOpen");if(!l._input.disabled&&!l.config.inline){var i=l.isOpen;l.isOpen=!0;i||(l.calendarContainer.classList.add("open"),l._input.classList.add("active"),nt("onOpen"),st(t));!0===l.config.enableTime&&!0===l.config.noCalendar&&(0===l.selectedDates.length&&(l.setDate(void 0!==l.config.minDate?new Date(l.config.minDate.getTime()):new Date,!1),ci(),tt()),!1!==l.config.allowInput||void 0!==n&&l.timeContainer.contains(n.relatedTarget)||setTimeout(function(){return l.hourElement.select()},50))}},l.redraw=bi,l.set=function(n,t){null!==n&&"object"==(typeof n=="undefined"?"undefined":_typeof(n))?Object.assign(l.config,n):(l.config[n]=t,void 0!==oi[n]?oi[n].forEach(function(n){return n()}):-1<b.indexOf(n)&&(l.config[n]=a(t)));l.redraw();bt();tt(!1)},l.setDate=function(n,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=l.config.dateFormat),0!==n&&!n||n instanceof Array&&0===n.length)return l.clear(t);gi(n,i);l.showTimeInput=0<l.selectedDates.length;l.latestSelectedDateObj=l.selectedDates[0];l.redraw();bt();ct();tt(t);t&&nt("onChange")},l.toggle=function(n){if(!0===l.isOpen)return l.close();l.open(n)},oi={locale:[wi,vi],showMonths:[li,hi,ai]},function(){l.element=l.input=e;l.isOpen=!1,function(){var f=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],n=Object.assign({},o,JSON.parse(JSON.stringify(e.dataset||{}))),c={},u,v,r,s,h,i;for(l.config.parseDate=n.parseDate,l.config.formatDate=n.formatDate,Object.defineProperty(l.config,"enable",{get:function(){return l.config._enable},set:function(n){l.config._enable=nr(n)}}),Object.defineProperty(l.config,"disable",{get:function(){return l.config._disable},set:function(n){l.config._disable=nr(n)}}),u="time"===n.mode,!n.dateFormat&&(n.enableTime||u)&&(c.dateFormat=n.noCalendar||u?"H:i"+(n.enableSeconds?":S":""):t.defaultConfig.dateFormat+" H:i"+(n.enableSeconds?":S":"")),n.altInput&&(n.enableTime||u)&&!n.altFormat&&(c.altFormat=n.noCalendar||u?"h:i"+(n.enableSeconds?":S K":" K"):t.defaultConfig.altFormat+" h:i"+(n.enableSeconds?":S":"")+" K"),Object.defineProperty(l.config,"minDate",{get:function(){return l.config._minDate},set:pi("min")}),Object.defineProperty(l.config,"maxDate",{get:function(){return l.config._maxDate},set:pi("max")}),v=function(n){return function(t){l.config["min"===n?"_minTime":"_maxTime"]=l.parseDate(t,"H:i")}},Object.defineProperty(l.config,"minTime",{get:function(){return l.config._minTime},set:v("min")}),Object.defineProperty(l.config,"maxTime",{get:function(){return l.config._maxTime},set:v("max")}),"time"===n.mode&&(l.config.noCalendar=!0,l.config.enableTime=!0),Object.assign(l.config,c,n),r=0;r<f.length;r++)l.config[f[r]]=!0===l.config[f[r]]||"true"===l.config[f[r]];for(b.filter(function(n){return void 0!==l.config[n]}).forEach(function(n){l.config[n]=a(l.config[n]||[]).map(si)}),l.isMobile=!l.config.disableMobile&&!l.config.inline&&"single"===l.config.mode&&!l.config.disable.length&&!l.config.enable.length&&!l.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=0;s<l.config.plugins.length;s++){h=l.config.plugins[s](l)||{};for(i in h)-1<b.indexOf(i)?l.config[i]=a(h[i]).map(si).concat(l.config[i]):void 0===n[i]&&(l.config[i]=h[i])}nt("onParseConfig")}();wi(),function(){if(l.input=l.config.wrap?e.querySelector("[data-input]"):e,!l.input)return l.config.errorHandler(new Error("Invalid input element specified"));l.input._type=l.input.type;l.input.type="text";l.input.classList.add("flatpickr-input");l._input=l.input;l.config.altInput&&(l.altInput=n(l.input.nodeName,l.input.className+" "+l.config.altInputClass),l._input=l.altInput,l.altInput.placeholder=l.input.placeholder,l.altInput.disabled=l.input.disabled,l.altInput.required=l.input.required,l.altInput.tabIndex=l.input.tabIndex,l.altInput.type="text",l.input.setAttribute("type","hidden"),!l.config.static&&l.input.parentNode&&l.input.parentNode.insertBefore(l.altInput,l.input.nextSibling));l.config.allowInput||l._input.setAttribute("readonly","readonly");l._positionElement=l.config.positionElement||l._input}(),function(){var n,t;l.selectedDates=[];l.now=l.parseDate(l.config.now)||new Date;n=l.config.defaultDate||("INPUT"!==l.input.nodeName&&"TEXTAREA"!==l.input.nodeName||!l.input.placeholder||l.input.value!==l.input.placeholder?l.input.value:null);n&&gi(n,l.config.dateFormat);t=0<l.selectedDates.length?l.selectedDates[0]:l.config.minDate&&l.config.minDate.getTime()>l.now.getTime()?l.config.minDate:l.config.maxDate&&l.config.maxDate.getTime()<l.now.getTime()?l.config.maxDate:l.now;l.currentYear=t.getFullYear();l.currentMonth=t.getMonth();0<l.selectedDates.length&&(l.latestSelectedDateObj=l.selectedDates[0]);void 0!==l.config.minTime&&(l.config.minTime=l.parseDate(l.config.minTime,"H:i"));void 0!==l.config.maxTime&&(l.config.maxTime=l.parseDate(l.config.maxTime,"H:i"));l.minDateHasTime=!!l.config.minDate&&(0<l.config.minDate.getHours()||0<l.config.minDate.getMinutes()||0<l.config.minDate.getSeconds());l.maxDateHasTime=!!l.config.maxDate&&(0<l.config.maxDate.getHours()||0<l.config.maxDate.getMinutes()||0<l.config.maxDate.getSeconds());Object.defineProperty(l,"showTimeInput",{get:function(){return l._showTimeInput},set:function(n){l._showTimeInput=n;l.calendarContainer&&f(l.calendarContainer,"showTimeInput",n);l.isOpen&&st()}})}();l.utils={getDaysInMonth:function(n,t){return void 0===n&&(n=l.currentMonth),void 0===t&&(t=l.currentYear),1===n&&(t%4==0&&t%100!=0||t%400==0)?29:l.l10n.daysInMonth[n]}};l.isMobile||function(){var r=window.document.createDocumentFragment(),e,t;if(l.calendarContainer=n("div","flatpickr-calendar"),l.calendarContainer.tabIndex=-1,!l.config.noCalendar){if(r.appendChild((l.monthNav=n("div","flatpickr-months"),l.yearElements=[],l.monthElements=[],l.prevMonthNav=n("span","flatpickr-prev-month"),l.prevMonthNav.innerHTML=l.config.prevArrow,l.nextMonthNav=n("span","flatpickr-next-month"),l.nextMonthNav.innerHTML=l.config.nextArrow,li(),Object.defineProperty(l,"_hidePrevMonthArrow",{get:function(){return l.__hidePrevMonthArrow},set:function(n){l.__hidePrevMonthArrow!==n&&(f(l.prevMonthNav,"disabled",n),l.__hidePrevMonthArrow=n)}}),Object.defineProperty(l,"_hideNextMonthArrow",{get:function(){return l.__hideNextMonthArrow},set:function(n){l.__hideNextMonthArrow!==n&&(f(l.nextMonthNav,"disabled",n),l.__hideNextMonthArrow=n)}}),l.currentYearElement=l.yearElements[0],yt(),l.monthNav)),l.innerContainer=n("div","flatpickr-innerContainer"),l.config.weekNumbers){var o=function(){var t,i;return l.calendarContainer.classList.add("hasWeeks"),t=n("div","flatpickr-weekwrapper"),t.appendChild(n("span","flatpickr-weekday",l.l10n.weekAbbreviation)),i=n("div","flatpickr-weeks"),t.appendChild(i),{weekWrapper:t,weekNumbers:i}}(),s=o.weekWrapper,h=o.weekNumbers;l.innerContainer.appendChild(s);l.weekNumbers=h;l.weekWrapper=s}l.rContainer=n("div","flatpickr-rContainer");l.rContainer.appendChild(ai());l.daysContainer||(l.daysContainer=n("div","flatpickr-days"),l.daysContainer.tabIndex=-1);at();l.rContainer.appendChild(l.daysContainer);l.innerContainer.appendChild(l.rContainer);r.appendChild(l.innerContainer)}l.config.enableTime&&r.appendChild(function(){var e,t,r,f;return l.calendarContainer.classList.add("hasTime"),l.config.noCalendar&&l.calendarContainer.classList.add("noCalendar"),l.timeContainer=n("div","flatpickr-time"),l.timeContainer.tabIndex=-1,e=n("span","flatpickr-time-separator",":"),t=c("flatpickr-hour"),l.hourElement=t.getElementsByTagName("input")[0],r=c("flatpickr-minute"),(l.minuteElement=r.getElementsByTagName("input")[0],l.hourElement.tabIndex=l.minuteElement.tabIndex=-1,l.hourElement.value=i(l.latestSelectedDateObj?l.latestSelectedDateObj.getHours():l.config.time_24hr?l.config.defaultHour:function(n){switch(n%24){case 0:case 12:return 12;default:return n%12}}(l.config.defaultHour)),l.minuteElement.value=i(l.latestSelectedDateObj?l.latestSelectedDateObj.getMinutes():l.config.defaultMinute),l.hourElement.setAttribute("data-step",l.config.hourIncrement.toString()),l.minuteElement.setAttribute("data-step",l.config.minuteIncrement.toString()),l.hourElement.setAttribute("data-min",l.config.time_24hr?"0":"1"),l.hourElement.setAttribute("data-max",l.config.time_24hr?"23":"12"),l.minuteElement.setAttribute("data-min","0"),l.minuteElement.setAttribute("data-max","59"),l.timeContainer.appendChild(t),l.timeContainer.appendChild(e),l.timeContainer.appendChild(r),l.config.time_24hr&&l.timeContainer.classList.add("time24hr"),l.config.enableSeconds)&&(l.timeContainer.classList.add("hasSeconds"),f=c("flatpickr-second"),l.secondElement=f.getElementsByTagName("input")[0],l.secondElement.value=i(l.latestSelectedDateObj?l.latestSelectedDateObj.getSeconds():l.config.defaultSeconds),l.secondElement.setAttribute("data-step",l.minuteElement.getAttribute("data-step")),l.secondElement.setAttribute("data-min",l.minuteElement.getAttribute("data-min")),l.secondElement.setAttribute("data-max",l.minuteElement.getAttribute("data-max")),l.timeContainer.appendChild(n("span","flatpickr-time-separator",":")),l.timeContainer.appendChild(f)),l.config.time_24hr||(l.amPM=n("span","flatpickr-am-pm",l.l10n.amPM[u(11<(l.latestSelectedDateObj?l.hourElement.value:l.config.defaultHour))]),l.amPM.title=l.l10n.toggleTitle,l.amPM.tabIndex=-1,l.timeContainer.appendChild(l.amPM)),l.timeContainer}());f(l.calendarContainer,"rangeMode","range"===l.config.mode);f(l.calendarContainer,"animate",!0===l.config.animate);f(l.calendarContainer,"multiMonth",1<l.config.showMonths);l.calendarContainer.appendChild(r);e=void 0!==l.config.appendTo&&void 0!==l.config.appendTo.nodeType;(l.config.inline||l.config.static)&&(l.calendarContainer.classList.add(l.config.inline?"inline":"static"),l.config.inline&&(!e&&l.element.parentNode?l.element.parentNode.insertBefore(l.calendarContainer,l._input.nextSibling):void 0!==l.config.appendTo&&l.config.appendTo.appendChild(l.calendarContainer)),l.config.static)&&(t=n("div","flatpickr-wrapper"),l.element.parentNode&&l.element.parentNode.insertBefore(t,l.element),t.appendChild(l.element),l.altInput&&t.appendChild(l.altInput),t.appendChild(l.calendarContainer));l.config.static||l.config.inline||(void 0!==l.config.appendTo?l.config.appendTo:window.document.body).appendChild(l.calendarContainer)}(),function(){if(l.config.wrap&&["open","close","toggle","clear"].forEach(function(n){Array.prototype.forEach.call(l.element.querySelectorAll("[data-"+n+"]"),function(t){return v(t,"click",l[n])})}),l.isMobile)return function(){var t=l.config.enableTime?l.config.noCalendar?"time":"datetime-local":"date";l.mobileInput=n("input",l.input.className+" flatpickr-mobile");l.mobileInput.step=l.input.getAttribute("step")||"any";l.mobileInput.tabIndex=1;l.mobileInput.type=t;l.mobileInput.disabled=l.input.disabled;l.mobileInput.required=l.input.required;l.mobileInput.placeholder=l.input.placeholder;l.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S";0<l.selectedDates.length&&(l.mobileInput.defaultValue=l.mobileInput.value=l.formatDate(l.selectedDates[0],l.mobileFormatStr));l.config.minDate&&(l.mobileInput.min=l.formatDate(l.config.minDate,"Y-m-d"));l.config.maxDate&&(l.mobileInput.max=l.formatDate(l.config.maxDate,"Y-m-d"));l.input.type="hidden";void 0!==l.altInput&&(l.altInput.type="hidden");try{l.input.parentNode&&l.input.parentNode.insertBefore(l.mobileInput,l.input.nextSibling)}catch(t){}v(l.mobileInput,"change",function(n){l.setDate(n.target.value,!1,l.mobileFormatStr);nt("onChange");nt("onClose")})}();var t=k(er,50);l._debouncedChange=k(wt,g);l.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&v(l.daysContainer,"mouseover",function(n){"range"===l.config.mode&&ui(n.target)});v(window.document.body,"keydown",yi);l.config.static||v(l._input,"keydown",yi);l.config.inline||l.config.static||v(window,"resize",t);void 0!==window.ontouchstart?v(window.document,"click",ii):v(window.document,"mousedown",ft(ii));v(window.document,"focus",ii,{capture:!0});!0===l.config.clickOpens&&(v(l._input,"focus",l.open),v(l._input,"mousedown",ft(l.open)));void 0!==l.daysContainer&&(v(l.monthNav,"mousedown",ft(or)),v(l.monthNav,["keyup","increment"],ir),v(l.daysContainer,"mousedown",ft(di)));void 0!==l.timeContainer&&void 0!==l.minuteElement&&void 0!==l.hourElement&&(v(l.timeContainer,["increment"],et),v(l.timeContainer,"blur",et,{capture:!0}),v(l.timeContainer,"mousedown",ft(rr)),v([l.hourElement,l.minuteElement],["focus","click"],function(n){return n.target.select()}),void 0!==l.secondElement&&v(l.secondElement,"focus",function(){return l.secondElement&&l.secondElement.select()}),void 0!==l.amPM&&v(l.amPM,"mousedown",ft(function(n){et(n);wt()})))}();(l.selectedDates.length||l.config.noCalendar)&&(l.config.enableTime&&ct(l.config.noCalendar?l.latestSelectedDateObj||l.config.minDate:void 0),tt(!1));hi();l.showTimeInput=0<l.selectedDates.length||l.config.noCalendar;var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!l.isMobile&&r&&st();nt("onReady")}(),l}function e(n,t){for(var i,f=Array.prototype.slice.call(n),r=[],u=0;u<f.length;u++){i=f[u];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0);i._flatpickr=nt(i,t||{});r.push(i._flatpickr)}catch(n){console.error(n)}}return 1===r.length?r[0]:r}var i=function(n){return("0"+n).slice(-2)},u=function(n){return!0===n?1:0},a=function(n){return n instanceof Array?n:[n]},v=function(){},y=function(n,t,i){return i.months[t?"shorthand":"longhand"][n]},tt={D:v,F:function(n,t,i){n.setMonth(i.months.longhand.indexOf(t))},G:function(n,t){n.setHours(parseFloat(t))},H:function(n,t){n.setHours(parseFloat(t))},J:function(n,t){n.setDate(parseFloat(t))},K:function(n,t,i){n.setHours(n.getHours()%12+12*u(new RegExp(i.amPM[1],"i").test(t)))},M:function(n,t,i){n.setMonth(i.months.shorthand.indexOf(t))},S:function(n,t){n.setSeconds(parseFloat(t))},U:function(n,t){return new Date(1e3*parseFloat(t))},W:function(n,t){var i=parseInt(t);return new Date(n.getFullYear(),0,2+7*(i-1),0,0,0,0)},Y:function(n,t){n.setFullYear(parseFloat(t))},Z:function(n,t){return new Date(t)},d:function(n,t){n.setDate(parseFloat(t))},h:function(n,t){n.setHours(parseFloat(t))},i:function(n,t){n.setMinutes(parseFloat(t))},j:function(n,t){n.setDate(parseFloat(t))},l:v,m:function(n,t){n.setMonth(parseFloat(t)-1)},n:function(n,t){n.setMonth(parseFloat(t)-1)},s:function(n,t){n.setSeconds(parseFloat(t))},w:v,y:function(n,t){n.setFullYear(2e3+parseFloat(t))}},p={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},o={Z:function(n){return n.toISOString()},D:function(n,t,i){return t.weekdays.shorthand[o.w(n,t,i)]},F:function(n,t,i){return y(o.n(n,t,i)-1,!1,t)},G:function(n,t,r){return i(o.h(n,t,r))},H:function(n){return i(n.getHours())},J:function(n,t){return void 0!==t.ordinal?n.getDate()+t.ordinal(n.getDate()):n.getDate()},K:function(n,t){return t.amPM[u(11<n.getHours())]},M:function(n,t){return y(n.getMonth(),!0,t)},S:function(n){return i(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,t,i){return i.getWeek(n)},Y:function(n){return n.getFullYear()},d:function(n){return i(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return i(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,t){return t.weekdays.longhand[n.getDay()]},m:function(n){return i(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},s={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var t=n%100;if(3<t&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year"},d=function(n){var i=n.config,t=void 0===i?l:i,r=n.l10n,u=void 0===r?s:r;return function(n,i,r){var f=r||u;return void 0!==t.formatDate?t.formatDate(n,i,f):i.split("").map(function(i,r,u){return o[i]&&"\\"!==u[r-1]?o[i](n,f,t):"\\"!==i?i:""}).join("")}},w=function(n){var i=n.config,t=void 0===i?l:i,r=n.l10n,u=void 0===r?s:r;return function(n,i,r,f){var e,y,w,o,h,a;if(0===n||n){if(y=f||u,w=n,n instanceof Date)e=new Date(n.getTime());else if("string"!=typeof n&&void 0!==n.toFixed)e=new Date(n);else if("string"==typeof n)if(o=i||(t||l).dateFormat,h=String(n).trim(),"today"===h)e=new Date,r=!0;else if(/Z$/.test(h)||/GMT$/.test(h))e=new Date(n);else if(t&&t.parseDate)e=t.parseDate(n,o);else{e=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var b,k=[],c=0,g=0,v="";c<o.length;c++){var s=o[c],d="\\"===s,nt="\\"===o[c-1]||d;p[s]&&!nt?(v+=p[s],a=new RegExp(v).exec(n),a&&(b=!0)&&k["Y"!==s?"push":"unshift"]({fn:tt[s],val:a[++g]})):d||(v+=".");k.forEach(function(n){var t=n.fn,i=n.val;return e=t(e,i,y)||e})}e=b?e:void 0}if(e instanceof Date&&!isNaN(e.getTime()))return!0===r&&e.setHours(0,0,0,0),e;t.errorHandler(new Error("Invalid date provided: "+w))}}},it=function(n,t,i){return n>Math.min(t,i)&&n<Math.max(t,i)},rt={DAY:864e5},b=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],l={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==(typeof window=="undefined"?"undefined":_typeof(window))&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(n){return"undefined"!=typeof console&&console.warn(n)},getWeek:function(n){var t=new Date(n.getTime()),i;return t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7),i=new Date(t.getFullYear(),0,4),1+Math.round(((t.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g><\/g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /><\/svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g><\/g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /><\/svg>",shorthandCurrentMonth:!1,showMonths:1,"static":!1,time_24hr:!1,weekNumbers:!1,wrap:!1},g,t;return"function"!=typeof Object.assign&&(Object.assign=function(n){var f,t;if(!n)throw TypeError("Cannot convert undefined or null to object");for(var r=arguments.length,u=new Array(1<r?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];for(f=function(){var i=u[t];i&&Object.keys(i).forEach(function(t){return n[t]=i[t]})},t=0;t<u.length;t++)f();return n}),g=300,"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return e(this,n)},HTMLElement.prototype.flatpickr=function(n){return e([this],n)}),t=function(n,t){return n instanceof NodeList?e(n,t):e("string"==typeof n?window.document.querySelectorAll(n):[n],t)},t.defaultConfig=l,t.l10ns={en:Object.assign({},s),"default":Object.assign({},s)},t.localize=function(n){t.l10ns.default=Object.assign({},t.l10ns.default,n)},t.setDefaults=function(n){t.defaultConfig=Object.assign({},t.defaultConfig,n)},t.parseDate=w({}),t.formatDate=d({}),t.compareDates=r,"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(n){return e(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof n?parseInt(n,10):n))},"undefined"!=typeof window&&(window.flatpickr=t),t});!function(n,t){var i=t(n,n.document);n.lazySizes=i;"object"==(typeof module=="undefined"?"undefined":_typeof(module))&&module.exports&&(module.exports=i)}(window,function(n,t){"use strict";if(t.getElementsByClassName){var f,i,e=t.documentElement,o=n.Date,et=n.HTMLPictureElement,s="addEventListener",r="getAttribute",h=n[s],u=n.setTimeout,ot=n.requestAnimationFrame||u,k=n.requestIdleCallback,it=/^picture$/i,st=["load","error","lazyincluded","_lazyloaded"],p={},ht=Array.prototype.forEach,c=function(n,t){return p[t]||(p[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),p[t].test(n[r]("class")||"")&&p[t]},l=function(n,t){c(n,t)||n.setAttribute("class",(n[r]("class")||"").trim()+" "+t)},d=function(n,t){var i;(i=c(n,t))&&n.setAttribute("class",(n[r]("class")||"").replace(i," "))},g=function g(n,t,i){var r=i?s:"removeEventListener";i&&g(n,t);st.forEach(function(i){n[r](i,t)})},a=function(n,i,r,u,e){var o=t.createEvent("Event");return r||(r={}),r.instance=f,o.initEvent(i,!u,!e),o.detail=r,n.dispatchEvent(o),o},nt=function(t,u){var f;!et&&(f=n.picturefill||i.pf)?(u&&u.src&&!t[r]("srcset")&&t.setAttribute("srcset",u.src),f({reevaluate:!0,elements:[t]})):u&&u.src&&(t.src=u.src)},v=function(n,t){return(getComputedStyle(n,null)||{})[t]},rt=function(n,t,r){for(r=r||n.offsetWidth;r<i.minSize&&t&&!n._lazysizesWidth;)r=t.offsetWidth,t=t.parentNode;return r},y=function(){var n,i,r=[],s=[],f=r,e=function(){var t=f;for(f=r.length?s:r,n=!0,i=!1;t.length;)t.shift()();n=!1},o=function(r,o){n&&!o?r.apply(this,arguments):(f.push(r),i||(i=!0,(t.hidden?u:ot)(e)))};return o._lsFlush=e,o}(),w=function(n,t){return t?function(){y(n)}:function(){var t=this,i=arguments;y(function(){n.apply(t,i)})}},ct=function(n){var r,f=0,h=i.throttleDelay,t=i.ricTimeout,e=function(){r=!1;f=o.now();n()},s=k&&t>49?function(){k(e,{timeout:t});t!==i.ricTimeout&&(t=i.ricTimeout)}:w(function(){u(e)},!0);return function(n){var i;(n=!0===n)&&(t=33);r||(r=!0,i=h-(o.now()-f),i<0&&(i=0),n||i<9?s():u(s,i))}},ut=function(n){var t,r,i=99,f=function(){t=null;n()},e=function e(){var n=o.now()-r;n<i?u(e,i-n):(k||f)(f)};return function(){r=o.now();t||(t=u(e,i))}};!function(){var t,r={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};i=n.lazySizesConfig||n.lazysizesConfig||{};for(t in r)t in i||(i[t]=r[t]);n.lazySizesConfig=i;u(function(){i.init&&b()})}();var ft=function(){var at,rt,bt,ft,kt,dt,gt,et,ot,st,lt,vt,fi=/^img$/i,ei=/^iframe$/i,oi="onscroll"in n&&!/(gle|ing)bot/.test(navigator.userAgent),si=0,yt=0,b=0,k=-1,ni=function(n){b--;(!n||b<0||!n.target)&&(b=0)},ti=function(n){return null==vt&&(vt="hidden"==v(t.body,"visibility")),vt||"hidden"!=v(n.parentNode,"visibility")&&"hidden"!=v(n,"visibility")},hi=function(n,i){var u,r=n,f=ti(n);for(et-=i,lt+=i,ot-=i,st+=i;f&&(r=r.offsetParent)&&r!=t.body&&r!=e;)(f=(v(r,"opacity")||1)>0)&&"visible"!=v(r,"overflow")&&(u=r.getBoundingClientRect(),f=st>u.left&&ot<u.right&&lt>u.top-1&&et<u.bottom+1);return f},ii=function(){var w,n,s,h,a,o,v,c,d,l,y,p,u=f.elements;if((ft=i.loadMode)&&b<8&&(w=u.length)){for(n=0,k++,l=!i.expand||i.expand<1?e.clientHeight>500&&e.clientWidth>500?500:370:i.expand,f._defEx=l,y=l*i.expFactor,p=i.hFac,vt=null,yt<y&&b<1&&k>2&&ft>2&&!t.hidden?(yt=y,k=0):yt=ft>1&&k>1&&b<6?l:si;n<w;n++)if(u[n]&&!u[n]._lazyRace)if(oi)if((c=u[n][r]("data-expand"))&&(o=1*c)||(o=yt),d!==o&&(dt=innerWidth+o*p,gt=innerHeight+o,v=-1*o,d=o),s=u[n].getBoundingClientRect(),(lt=s.bottom)>=v&&(et=s.top)<=gt&&(st=s.right)>=v*p&&(ot=s.left)<=dt&&(lt||st||ot||et)&&(i.loadHidden||ti(u[n]))&&(rt&&b<3&&!c&&(ft<3||k<4)||hi(u[n],o))){if(pt(u[n]),a=!0,b>9)break}else!a&&rt&&!h&&b<4&&k<4&&ft>2&&(at[0]||i.preloadAfterLoad)&&(at[0]||!c&&(lt||st||ot||et||"auto"!=u[n][r](i.sizesAttr)))&&(h=at[0]||u[n]);else pt(u[n]);h&&!a&&pt(h)}},p=ct(ii),ri=function(n){var t=n.target;if(t._lazyCache)return void delete t._lazyCache;ni(n);l(t,i.loadedClass);d(t,i.loadingClass);g(t,ui);a(t,"lazyloaded")},ci=w(ri),ui=function(n){ci({target:n.target})},li=function(n,t){try{n.contentWindow.location.replace(t)}catch(i){n.src=t}},ai=function(n){var t,u=n[r](i.srcsetAttr);(t=i.customMedia[n[r]("data-media")||n[r]("media")])&&n.setAttribute("media",t);u&&n.setAttribute("srcset",u)},vi=w(function(n,t,f,e,o){var s,h,v,c,p,w;(p=a(n,"lazybeforeunveil",t)).defaultPrevented||(e&&(f?l(n,i.autosizesClass):n.setAttribute("sizes",e)),h=n[r](i.srcsetAttr),s=n[r](i.srcAttr),o&&(v=n.parentNode,c=v&&it.test(v.nodeName||"")),w=t.firesLoad||"src"in n&&(h||s||c),p={target:n},l(n,i.loadingClass),w&&(clearTimeout(bt),bt=u(ni,2500),g(n,ui,!0)),c&&ht.call(v.getElementsByTagName("source"),ai),h?n.setAttribute("srcset",h):s&&!c&&(ei.test(n.nodeName)?li(n,s):n.src=s),o&&(h||c)&&nt(n,{src:s}));n._lazyRace&&delete n._lazyRace;d(n,i.lazyClass);y(function(){var t=n.complete&&n.naturalWidth>1;w&&!t||(t&&l(n,"ls-is-cached"),ri(p),n._lazyCache=!0,u(function(){"_lazyCache"in n&&delete n._lazyCache},9))},!0)}),pt=function(n){var f,t=fi.test(n.nodeName),e=t&&(n[r](i.sizesAttr)||n[r]("sizes")),u="auto"==e;(u||!rt)&&t&&(n[r]("src")||n.srcset)&&!n.complete&&!c(n,i.errorClass)&&c(n,i.lazyClass)||(f=a(n,"lazyunveilread").detail,u&&tt.updateElem(n,!0,n.offsetWidth),n._lazyRace=!0,b++,vi(n,f,u,e,t))},wt=function wt(){if(!rt){if(o.now()-kt<999)return void u(wt,999);var n=ut(function(){i.loadMode=3;p()});rt=!0;i.loadMode=3;p();h("scroll",function(){3==i.loadMode&&(i.loadMode=2);n()},!0)}};return{_:function(){kt=o.now();f.elements=t.getElementsByClassName(i.lazyClass);at=t.getElementsByClassName(i.lazyClass+" "+i.preloadClass);h("scroll",p,!0);h("resize",p,!0);n.MutationObserver?new MutationObserver(p).observe(e,{childList:!0,subtree:!0,attributes:!0}):(e[s]("DOMNodeInserted",p,!0),e[s]("DOMAttrModified",p,!0),setInterval(p,999));h("hashchange",p,!0);["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(n){t[s](n,p,!0)});/d$|^c/.test(t.readyState)?wt():(h("load",wt),t[s]("DOMContentLoaded",p),u(wt,2e4));f.elements.length?(ii(),y._lsFlush()):p()},checkElems:p,unveil:pt}}(),tt=function(){var n,f=w(function(n,t,i,r){var f,u,e;if(n._lazysizesWidth=r,r+="px",n.setAttribute("sizes",r),it.test(t.nodeName||""))for(f=t.getElementsByTagName("source"),u=0,e=f.length;u<e;u++)f[u].setAttribute("sizes",r);i.detail.dataAttr||nt(n,i.detail)}),r=function(n,t,i){var r,u=n.parentNode;u&&(i=rt(n,u,i),r=a(n,"lazybeforesizes",{width:i,dataAttr:!!t}),r.defaultPrevented||(i=r.detail.width)&&i!==n._lazysizesWidth&&f(n,u,r,i))},e=function(){var t,i=n.length;if(i)for(t=0;t<i;t++)r(n[t])},u=ut(e);return{_:function(){n=t.getElementsByClassName(i.autosizesClass);h("resize",u)},checkElems:u,updateElem:r}}(),b=function b(){b.i||(b.i=!0,tt._(),ft._())};return f={cfg:i,autoSizer:tt,loader:ft,init:b,uP:nt,aC:l,rC:d,hC:c,fire:a,gW:rt,rAF:y}}}),function(n){App!=null&&App.Common!=undefined&&App.Common.init!=undefined&&App.Common.init();var t=n("body").data("jsload");App[t]!=undefined&&App[t].init!=undefined&&App[t].init()}(jQuery);Dropdown=React.createClass({displayName:"Dropdown",propTypes:{id:React.PropTypes.string,options:React.PropTypes.array.isRequired,value:React.PropTypes.oneOfType([React.PropTypes.number,React.PropTypes.string]),valueField:React.PropTypes.string,labelField:React.PropTypes.string,label:React.PropTypes.string,onChange:React.PropTypes.func},getDefaultProps:function(){return{value:null,valueField:"Value",labelField:"Label",label:null,onChange:null}},getInitialState:function(){var n=this.getSelectedFromProps(this.props);return{selected:n}},componentWillReceiveProps:function(n){var t=this.getSelectedFromProps(n);this.setState({selected:t})},getSelectedFromProps:function(n){return n.value===null&&n.options.length!==0?n.options[0][n.valueField]:n.value},getLabelFromValue:function(n){for(var t,i=0;i<this.props.options.length;i++)if(t=this.props.options[i],n==t[this.props.valueField])return t[this.props.labelField]},render:function(){var n=this,t="";return n.props.options!=="undefined"&&n.props.options!=null&&(t=n.props.options.map(function(t){return React.createElement("option",{key:t[n.props.valueField],value:t[n.props.valueField]},t[n.props.labelField])})),React.createElement("span",{className:"filter-select-wrap"},this.props.name!=null&&React.createElement("label",{htmlFor:this.props.id},this.props.name),React.createElement("select",{id:this.props.id,name:this.props.id,className:"form-control",value:this.state.selected,onChange:this.handleChange},t),this.props.label==null&&React.createElement("span",null,this.getLabelFromValue(this.state.selected)))},handleChange:function(n){if(this.props.onChange){var t={oldValue:this.state.selected,newValue:n.target.value};this.props.onChange(t)}this.setState({selected:n.target.value})}});Number.prototype.formatMoney=function(n,t,i){var u=this,n=isNaN(n=Math.abs(n))?0:n,t=t==undefined?".":t,i=i==undefined?",":i,e=u<0?"-":"",f=parseInt(u=Math.abs(+u||0).toFixed(n))+"",r=(r=f.length)>3?r%3:0;return e+(r?f.substr(0,r)+i:"")+f.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+i)+(n?t+Math.abs(u-f).toFixed(n).slice(2):"")};dateFormat=function(){var t=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g,n=function(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n};return function(u,f,e){var h=dateFormat;if(arguments.length!=1||Object.prototype.toString.call(u)!="[object String]"||/\d/.test(u)||(f=u,u=undefined),u=u?new Date(u):new Date,isNaN(u))throw SyntaxError("invalid date");f=String(h.masks[f]||f||h.masks["default"]);f.slice(0,4)=="UTC:"&&(f=f.slice(4),e=!0);var o=e?"getUTC":"get",c=u[o+"Date"](),y=u[o+"Day"](),l=u[o+"Month"](),p=u[o+"FullYear"](),s=u[o+"Hours"](),w=u[o+"Minutes"](),b=u[o+"Seconds"](),a=u[o+"Milliseconds"](),v=e?0:u.getTimezoneOffset(),k={d:c,dd:n(c),ddd:h.i18n.dayNames[y],dddd:h.i18n.dayNames[y+7],m:l+1,mm:n(l+1),mmm:h.i18n.monthNames[l],mmmm:h.i18n.monthNames[l+12],yy:String(p).slice(2),yyyy:p,h:s%12||12,hh:n(s%12||12),H:s,HH:n(s),M:w,MM:n(w),s:b,ss:n(b),l:n(a,3),L:n(a>99?Math.round(a/10):a),t:s<12?"a":"p",tt:s<12?"am":"pm",T:s<12?"A":"P",TT:s<12?"AM":"PM",Z:e?"UTC":(String(u).match(i)||[""]).pop().replace(r,""),o:(v>0?"-":"+")+n(Math.floor(Math.abs(v)/60)*100+Math.abs(v)%60,4),S:["th","st","nd","rd"][c%10>3?0:(c%100-c%10!=10)*c%10]};return f.replace(t,function(n){return n in k?k[n]:n.slice(1,n.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(n,t){return dateFormat(this,n,t)};GoogleMapEvent=React.createClass({displayName:"GoogleMapEvent",getInitialState:function(){return{latitude:0,longitude:0}},getDefaultProps:function(){return{latitude:0,longitude:0,zoom:13,gmaps_api_key:"AIzaSyAoZoPjL8Y1RGSo3BwJws9hl33ifTE-1FY",gmaps_sensor:!1}},componentDidMount:function(){var t=this,r={url:"/Images/base/map-marker.png",size:new google.maps.Size(31,42),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(15,42)},i=function(){var n=new google.maps.LatLng(t.props.latitude,t.props.longitude),i={zoom:this.props.zoom,center:n,mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:this.props.scrollwheel,zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP}},u=new google.maps.Map(ReactDOM.findDOMNode(this),i),f=new google.maps.Marker({position:n,icon:r,map:u})}.bind(this),n;typeof google!="undefined"?i():(window.reactMapCallback||(n=document.createElement("script"),n.src="https://maps.googleapis.com/maps/api/js?key="+this.props.gmaps_api_key+"&callback=reactMapCallback&libraries=geometry,drawing,places",document.head.appendChild(n),window.reactMapCallbacks=[],window.reactMapCallback=function(){while(window.reactMapCallbacks.length>0)window.reactMapCallbacks.shift()()}),window.reactMapCallbacks.push(i))},render:function(){return React.DOM.div({className:"map-canvas"})}});GoogleMapInfobox=React.createClass({displayName:"GoogleMapInfobox",empty:function(n){return n===undefined||typeof n=="undefined"||n==null||n===""||n===[]||n==={}},onDirections:function(){this.props.getDirections(this.props.marker)},render:function(){var r=this.props.marker.id,n=this,t="",i="";return(this.props.marker.type==="event"||this.props.marker.type=="place")&&(i=React.createElement("button",{onClick:n.onDirections.bind(n,this.props.marker),className:"btn small"},"Get Directions")),this.empty(this.props.marker.title)&&this.empty(this.props.marker.description)||(t=React.createElement("div",{id:r,className:"map-info-content"},(this.props.marker.type==="event"||this.props.marker.type=="place")&&this.props.marker.image!==""&&React.createElement("img",{src:this.props.marker.image,alt:this.props.marker.imageAlt}),React.createElement("h3",null,this.props.marker.title),(this.props.marker.type==="event"||this.props.marker.type=="place")&&React.createElement("time",{dateTime:new Date(this.props.marker.startTime).format("yyyy-mm-dd HH:MM")},new Date(this.props.marker.startTime).format("dddd, d mmmm yyyy h:MMtt")),React.createElement("p",{dangerouslySetInnerHTML:{__html:this.props.marker.description}}),i)),t}}),function(n,t){(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&(typeof module=="undefined"?"undefined":_typeof(module))==="object"?module.exports=t(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],t):(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"?exports.Slider=t(require("react"),require("react-dom")):n.Slider=t(n.React,n.ReactDOM)}(this,function(n,t){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";n.exports=i(1)},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}var o=i(2),u=r(o),s=i(3),h=i(11),e=r(h),c=i(18),f=r(c),l=i(20),a=r(l),v=i(13),y=r(v),p=u["default"].createClass({displayName:"Slider",mixins:[a["default"]],getInitialState:function(){return{breakpoint:null}},componentDidMount:function(){var t=this,n,i;this.props.responsive&&(n=this.props.responsive.map(function(n){return n.breakpoint}),n.sort(function(n,t){return n-t}),n.forEach(function(i,r){var u;u=r===0?f["default"]({minWidth:0,maxWidth:i}):f["default"]({minWidth:n[r-1],maxWidth:i});t.media(u,function(){t.setState({breakpoint:i})})}),i=f["default"]({minWidth:n.slice(-1)[0]}),this.media(i,function(){t.setState({breakpoint:null})}))},render:function(){var i=this,n,t;return this.state.breakpoint?(t=this.props.responsive.filter(function(n){return n.breakpoint===i.state.breakpoint}),n=t[0].settings==="unslick"?"unslick":e["default"]({},this.props,t[0].settings)):n=e["default"]({},y["default"],this.props),n==="unslick"?u["default"].createElement("div",null,this.props.children):u["default"].createElement(s.InnerSlider,n,this.props.children)}});n.exports=p},function(t){t.exports=n},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}var f;Object.defineProperty(t,"__esModule",{value:!0});f=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};var o=i(2),r=u(o),s=i(4),h=u(s),c=i(8),l=u(c),a=i(12),v=u(a),y=i(13),p=u(y),w=i(14),b=u(w),k=i(15),d=i(16),e=i(17),g=r["default"].createClass({displayName:"InnerSlider",mixins:[l["default"],h["default"]],getInitialState:function(){return v["default"]},getDefaultProps:function(){return p["default"]},componentWillMount:function(){var t,n;for(this.props.init&&this.props.init(),this.setState({mounted:!0}),t=[],n=0;n<this.props.children.length;n++)n>=this.state.currentSlide&&n<this.state.currentSlide+this.props.slidesToShow&&t.push(n);this.props.lazyLoad&&this.state.lazyLoadedList.length===0&&this.setState({lazyLoadedList:t})},componentDidMount:function(){this.initialize(this.props);this.adaptHeight();window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)},componentWillUnmount:function(){window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized);this.state.autoPlayTimer&&window.clearTimeout(this.state.autoPlayTimer)},componentWillReceiveProps:function(n){this.props.slickGoTo!=n.slickGoTo?this.changeSlide({message:"index",index:n.slickGoTo,currentSlide:this.state.currentSlide}):this.update(n)},componentDidUpdate:function(){this.adaptHeight()},onWindowResized:function(){this.update(this.props)},render:function(){var s=b["default"]("slick-initialized","slick-slider",this.props.className),h={fade:this.props.fade,cssEase:this.props.cssEase,speed:this.props.speed,infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,lazyLoad:this.props.lazyLoad,lazyLoadedList:this.state.lazyLoadedList,rtl:this.props.rtl,slideWidth:this.state.slideWidth,slidesToShow:this.props.slidesToShow,slideCount:this.state.slideCount,trackStyle:this.state.trackStyle,variableWidth:this.props.variableWidth},t,i,u,o,n;return this.props.dots===!0&&this.state.slideCount>this.props.slidesToShow&&(i={dotsClass:this.props.dotsClass,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,currentSlide:this.state.currentSlide,slidesToScroll:this.props.slidesToScroll,clickHandler:this.changeSlide},t=r["default"].createElement(d.Dots,i)),n={infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,prevArrow:this.props.prevArrow,nextArrow:this.props.nextArrow,clickHandler:this.changeSlide},this.props.arrows&&(u=r["default"].createElement(e.PrevArrow,n),o=r["default"].createElement(e.NextArrow,n)),r["default"].createElement("div",{className:s,onMouseEnter:this.onInnerSliderEnter,onMouseLeave:this.onInnerSliderLeave},r["default"].createElement("div",{ref:"list",className:"slick-list",onMouseDown:this.swipeStart,onMouseMove:this.state.dragging?this.swipeMove:null,onMouseUp:this.swipeEnd,onMouseLeave:this.state.dragging?this.swipeEnd:null,onTouchStart:this.swipeStart,onTouchMove:this.state.dragging?this.swipeMove:null,onTouchEnd:this.swipeEnd,onTouchCancel:this.state.dragging?this.swipeEnd:null},r["default"].createElement(k.Track,f({ref:"track"},h),this.props.children)),u,o,t)}});t.InnerSlider=g},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),e=i(8),h=f(e),o=i(11),u=f(o),s={changeSlide:function(n){var i,r,u,t;if(u=this.state.slideCount%this.props.slidesToScroll!=0,i=u?0:(this.state.slideCount-this.state.currentSlide)%this.props.slidesToScroll,n.message==="previous")r=i===0?this.props.slidesToScroll:this.props.slidesToShow-i,t=this.state.currentSlide-r;else if(n.message==="next")r=i===0?this.props.slidesToScroll:i,t=this.state.currentSlide+r;else if(n.message==="dots"){if(t=n.index*n.slidesToScroll,t===n.currentSlide)return}else if(n.message==="index"&&(t=n.index,t===n.currentSlide))return;this.slideHandler(t)},keyHandler:function(){},selectHandler:function(){},swipeStart:function(n){var t,i;this.props.swipe===!1||"ontouchend"in document&&this.props.swipe===!1||(this.props.draggable!==!1||n.type.indexOf("mouse")===-1)&&(t=n.touches!==undefined?n.touches[0].pageX:n.clientX,i=n.touches!==undefined?n.touches[0].pageY:n.clientY,this.setState({dragging:!0,touchObject:{startX:t,startY:i,curX:t,curY:i}}))},swipeMove:function(n){var f,e,o,t;if(this.state.dragging&&!this.state.animating){t=this.state.touchObject;e=r.getTrackLeft(u["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},this.props,this.state));t.curX=n.touches?n.touches[0].pageX:n.clientX;t.curY=n.touches?n.touches[0].pageY:n.clientY;t.swipeLength=Math.round(Math.sqrt(Math.pow(t.curX-t.startX,2)));o=(this.props.rtl===!1?1:-1)*(t.curX>t.startX?1:-1);var s=this.state.currentSlide,c=Math.ceil(this.state.slideCount/this.props.slidesToScroll),i=this.swipeDirection(this.state.touchObject),h=t.swipeLength;(this.props.infinite===!1&&(s===0&&i==="right"||s+1>=c&&i==="left")&&(h=t.swipeLength*this.props.edgeFriction,this.state.edgeDragged===!1&&this.props.edgeEvent&&(this.props.edgeEvent(i),this.setState({edgeDragged:!0}))),this.state.swiped===!1&&this.props.swipeEvent&&(this.props.swipeEvent(i),this.setState({swiped:!0})),f=e+h*o,this.setState({touchObject:t,swipeLeft:f,trackStyle:r.getTrackCSS(u["default"]({left:f},this.props,this.state))}),Math.abs(t.curX-t.startX)<Math.abs(t.curY-t.startY)*.8)||t.swipeLength>4&&n.preventDefault()}},swipeEnd:function(n){var i;if(this.state.dragging){var t=this.state.touchObject,e=this.state.listWidth/this.props.touchThreshold,f=this.swipeDirection(t);(this.setState({dragging:!1,edgeDragged:!1,swiped:!1,swipeLeft:null,touchObject:{}}),t.swipeLength)&&(t.swipeLength>e?(n.preventDefault(),f==="left"?this.slideHandler(this.state.currentSlide+this.props.slidesToScroll):f==="right"?this.slideHandler(this.state.currentSlide-this.props.slidesToScroll):this.slideHandler(this.state.currentSlide)):(i=r.getTrackLeft(u["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},this.props,this.state)),this.setState({trackStyle:r.getTrackAnimateCSS(u["default"]({left:i},this.props,this.state))})))}},onInnerSliderEnter:function(){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderLeave:function(){this.props.autoplay&&this.props.pauseOnHover&&this.autoPlay()}};t["default"]=s;n.exports=t["default"]},function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}var f,e;Object.defineProperty(t,"__esModule",{value:!0});var h=i(6),r=s(h),u=function(n,t){return t.reduce(function(t,i){return t&&n.hasOwnProperty(i)},!0)?null:console.error("Keys Missing",n)},o=function(n){var i,t;return u(n,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),i=n.variableWidth?(n.slideCount+2*n.slidesToShow)*n.slideWidth:n.centerMode?(n.slideCount+2*(n.slidesToShow+1))*n.slideWidth:(n.slideCount+2*n.slidesToShow)*n.slideWidth,t={opacity:1,width:i,WebkitTransform:"translate3d("+n.left+"px, 0px, 0px)",transform:"translate3d("+n.left+"px, 0px, 0px)",transition:"",WebkitTransition:"",msTransform:"translateX("+n.left+"px)"},!window.addEventListener&&window.attachEvent&&(t.marginLeft=n.left+"px"),t};t.getTrackCSS=o;f=function(n){u(n,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=o(n);return t.WebkitTransition="-webkit-transform "+n.speed+"ms "+n.cssEase,t.transition="transform "+n.speed+"ms "+n.cssEase,t};t.getTrackAnimateCSS=f;e=function(n){var i,f,t,e;return(u(n,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth"]),i=0,n.fade)?0:(n.infinite&&(n.slideCount>n.slidesToShow&&(i=n.slideWidth*n.slidesToShow*-1),n.slideCount%n.slidesToScroll!=0&&n.slideIndex+n.slidesToScroll>n.slideCount&&n.slideCount>n.slidesToShow&&(i=n.slideIndex>n.slideCount?(n.slidesToShow-(n.slideIndex-n.slideCount))*n.slideWidth*-1:n.slideCount%n.slidesToScroll*n.slideWidth*-1)),n.centerMode&&(n.infinite?i+=n.slideWidth*Math.floor(n.slidesToShow/2):i=n.slideWidth*Math.floor(n.slidesToShow/2)),f=n.slideIndex*n.slideWidth*-1+i,n.variableWidth===!0&&(n.slideCount<=n.slidesToShow||n.infinite===!1?t=r["default"].findDOMNode(n.trackRef).childNodes[n.slideIndex]:(e=n.slideIndex+n.slidesToShow,t=r["default"].findDOMNode(n.trackRef).childNodes[e]),f=t?t.offsetLeft*-1:0,n.centerMode===!0&&(t=n.infinite===!1?r["default"].findDOMNode(n.trackRef).children[n.slideIndex]:r["default"].findDOMNode(n.trackRef).children[n.slideIndex+n.slidesToShow+1],f=(t?t.offsetLeft*-1:0)+(n.listWidth-t.offsetWidth)/2)),f)};t.getTrackLeft=e},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),u=r(f),e=i(7),o=r(e),s=u["default"].version>="0.14.0"?o["default"]:u["default"];t["default"]=s;n.exports=t["default"]},function(n){n.exports=t},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var h=i(2),s=e(h),c=i(6),r=e(c),l=i(9),o=e(l),u=i(5),a=i(11),f=e(a),v={initialize:function(n){var t=s["default"].Children.count(n.children),i=this.getWidth(r["default"].findDOMNode(this.refs.list)),e=this.getWidth(r["default"].findDOMNode(this.refs.track)),o=this.getWidth(r["default"].findDOMNode(this))/n.slidesToShow,h=n.rtl?t-1-n.initialSlide:n.initialSlide;this.setState({slideCount:t,slideWidth:o,listWidth:i,trackWidth:e,currentSlide:h},function(){var t=u.getTrackLeft(f["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},n,this.state)),i=u.getTrackCSS(f["default"]({left:t},n,this.state));this.setState({trackStyle:i});this.autoPlay()})},update:function(n){var t=s["default"].Children.count(n.children),i=this.getWidth(r["default"].findDOMNode(this.refs.list)),e=this.getWidth(r["default"].findDOMNode(this.refs.track)),o=this.getWidth(r["default"].findDOMNode(this))/n.slidesToShow;this.setState({slideCount:t,slideWidth:o,listWidth:i,trackWidth:e},function(){var t=u.getTrackLeft(f["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},n,this.state)),i=u.getTrackCSS(f["default"]({left:t},n,this.state));this.setState({trackStyle:i})})},getWidth:function(n){return n.getBoundingClientRect().width||n.offsetWidth},adaptHeight:function(){var t,n;this.props.adaptiveHeight&&(t='[data-index="'+this.state.currentSlide+'"]',this.refs.list&&(n=r["default"].findDOMNode(this.refs.list),n.style.height=n.querySelector(t).offsetHeight+"px"))},slideHandler:function(n){var e=this,t,i,a,l,s,h,v,c,y;if((!this.props.waitForAnimate||!this.state.animating)&&this.state.currentSlide!==n){if(this.props.fade){i=this.state.currentSlide;t=n<0?n+this.state.slideCount:n>=this.state.slideCount?n-this.state.slideCount:n;this.props.lazyLoad&&this.state.lazyLoadedList.indexOf(t)<0&&this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(t)});s=function(){e.setState({animating:!1});e.props.afterChange&&e.props.afterChange(i);o["default"].removeEndEventListener(r["default"].findDOMNode(e.refs.track).children[i],s)};this.setState({animating:!0,currentSlide:t},function(){o["default"].addEndEventListener(r["default"].findDOMNode(this.refs.track).children[i],s)});this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i);this.autoPlay();return}if(t=n,i=t<0?this.props.infinite===!1?0:this.state.slideCount%this.props.slidesToScroll!=0?this.state.slideCount-this.state.slideCount%this.props.slidesToScroll:this.state.slideCount+t:t>=this.state.slideCount?this.props.infinite===!1?this.state.slideCount-this.props.slidesToShow:this.state.slideCount%this.props.slidesToScroll!=0?0:t-this.state.slideCount:t,a=u.getTrackLeft(f["default"]({slideIndex:t,trackRef:this.refs.track},this.props,this.state)),l=u.getTrackLeft(f["default"]({slideIndex:i,trackRef:this.refs.track},this.props,this.state)),this.props.infinite===!1&&(a=l),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i),this.props.lazyLoad){for(h=!0,v=[],c=t;c<t+this.props.slidesToShow;c++)h=h&&this.state.lazyLoadedList.indexOf(c)>=0,h||v.push(c);h||this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(v)})}this.props.useCSS===!1?this.setState({currentSlide:i,trackStyle:u.getTrackCSS(f["default"]({left:l},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(i)}):(y={animating:!1,currentSlide:i,trackStyle:u.getTrackCSS(f["default"]({left:l},this.props,this.state)),swipeLeft:null},s=function(){e.setState(y);e.props.afterChange&&e.props.afterChange(i);o["default"].removeEndEventListener(r["default"].findDOMNode(e.refs.track),s)},this.setState({animating:!0,currentSlide:t,trackStyle:u.getTrackAnimateCSS(f["default"]({left:a},this.props,this.state))},function(){o["default"].addEndEventListener(r["default"].findDOMNode(this.refs.track),s)}));this.autoPlay()}},swipeDirection:function(n){var i,r,u,t;return(i=n.startX-n.curX,r=n.startY-n.curY,u=Math.atan2(r,i),t=Math.round(u*180/Math.PI),t<0&&(t=360-Math.abs(t)),t<=45&&t>=0||t<=360&&t>=315)?this.props.rtl===!1?"left":"right":t>=135&&t<=225?this.props.rtl===!1?"right":"left":"vertical"},autoPlay:function(){var n=this,t=function(){if(n.state.mounted){var t=n.props.rtl?n.state.currentSlide-n.props.slidesToScroll:n.state.currentSlide+n.props.slidesToScroll;n.slideHandler(t)}};this.props.autoplay&&(window.clearTimeout(this.state.autoPlayTimer),this.setState({autoPlayTimer:window.setTimeout(t,this.props.autoplaySpeed)}))},pause:function(){this.state.autoPlayTimer&&window.clearTimeout(this.state.autoPlayTimer)}};t["default"]=v;n.exports=t["default"]},function(n,t,i){"use strict";function e(){var f=document.createElement("div"),e=f.style,i,n,t;"AnimationEvent"in window||delete u.animationend.animation;"TransitionEvent"in window||delete u.transitionend.transition;for(i in u){n=u[i];for(t in n)if(t in e){r.push(n[t]);break}}}function o(n,t,i){n.addEventListener(t,i,!1)}function s(n,t,i){n.removeEventListener(t,i,!1)}var h=i(10),u={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},r=[],f;h.canUseDOM&&e();f={addEndEventListener:function(n,t){if(r.length===0){window.setTimeout(t,0);return}r.forEach(function(i){o(n,i,t)})},removeEndEventListener:function(n,t){r.length!==0&&r.forEach(function(i){s(n,i,t)})}};n.exports=f},function(n){"use strict";var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),i={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};n.exports=i},function(n){"use strict";function t(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}n.exports=Object.assign||function(n){for(var u,r,e=t(n),i,f=1;f<arguments.length;f++)for(u=arguments[f],r=Object.keys(Object(u)),i=0;i<r.length;i++)e[r[i]]=u[r[i]];return e}},function(n){"use strict";n.exports={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,slideCount:null,slideWidth:null,swipeLeft:null,touchObject:{startX:0,startY:0,curX:0,curY:0},lazyLoadedList:[],initialized:!1,edgeDragged:!1,swiped:!1,trackStyle:{},trackWidth:0}},function(n){"use strict";n.exports={className:"",adaptiveHeight:!1,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:!1,pauseOnHover:!1,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,afterChange:null,beforeChange:null,edgeEvent:null,init:null,swipeEvent:null,nextArrow:null,prevArrow:null}},function(n,t,i){var r;(function(){"use strict";function u(){for(var t="",n,i,r,f=0;f<arguments.length;f++)if(n=arguments[f],n)if(i=typeof n=="undefined"?"undefined":_typeof(n),"string"===i||"number"===i)t+=" "+n;else if(Array.isArray(n))t+=" "+u.apply(null,n);else if("object"===i)for(r in n)n.hasOwnProperty(r)&&n[r]&&(t+=" "+r);return t.substr(1)}typeof n!="undefined"&&n.exports?n.exports=u:!(r=function(){return u}.call(t,i,t,n),r!==undefined&&(n.exports=r))})()},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=f(s),h=i(11),u=f(h),c=i(14),o=f(c),e=function(n){var i,u,f,r,t;return n.rtl?(t=n.slideCount-1-n.index,console.log()):t=n.index,f=t<0||t>=n.slideCount,n.centerMode?(r=Math.floor(n.slidesToShow/2),u=(t-n.currentSlide)%n.slideCount==0,t>n.currentSlide-r-1&&t<=n.currentSlide+r&&(i=!0)):i=n.currentSlide<=t&&t<n.currentSlide+n.slidesToShow,o["default"]({"slick-slide":!0,"slick-active":i,"slick-center":u,"slick-cloned":f})},l=function(n){var t={};return(n.variableWidth===undefined||n.variableWidth===!1)&&(t.width=n.slideWidth),n.fade&&(t.position="relative",t.left=-n.index*n.slideWidth,t.opacity=n.currentSlide===n.index?1:0,t.transition="opacity "+n.speed+"ms "+n.cssEase,t.WebkitTransition="opacity "+n.speed+"ms "+n.cssEase),t},a=function(n){var i,f=[],s=[],h=[],c=r["default"].Children.count(n.children),t;return r["default"].Children.forEach(n.children,function(a,v){var y,p,b,w;t=!n.lazyLoad|(n.lazyLoad&&n.lazyLoadedList.indexOf(v)>=0)?a:r["default"].createElement("div",null);y=l(u["default"]({},n,{index:v}));p=e(u["default"]({index:v},n));b=t.props.className?o["default"](p,t.props.className):p;f.push(r["default"].cloneElement(t,{key:v,"data-index":v,className:b,style:u["default"]({},t.props.style||{},y)}));n.infinite&&n.fade===!1&&(w=n.variableWidth?n.slidesToShow+1:n.slidesToShow,v>=c-w&&(i=-(c-v),s.push(r["default"].cloneElement(t,{key:i,"data-index":i,className:e(u["default"]({index:i},n)),style:u["default"]({},t.props.style||{},y)}))),v<w&&(i=c+v,h.push(r["default"].cloneElement(t,{key:i,"data-index":i,className:e(u["default"]({index:i},n)),style:u["default"]({},t.props.style||{},y)}))))}),n.rtl?s.concat(f,h).reverse():s.concat(f,h)},v=r["default"].createClass({displayName:"Track",render:function(){var n=a(this.props);return r["default"].createElement("div",{className:"slick-track",style:this.props.trackStyle},n)}});t.Track=v},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),r=u(f),e=i(14),o=u(e),s=function(n){return Math.ceil(n.slideCount/n.slidesToScroll)},h=r["default"].createClass({displayName:"Dots",clickHandler:function(n,t){t.preventDefault();this.props.clickHandler(n)},render:function(){var n=this,t=s({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll}),i=Array.apply(null,Array(t+1).join("0").split("")).map(function(t,i){var u=o["default"]({"slick-active":n.props.currentSlide===i*n.props.slidesToScroll}),f={message:"dots",index:i,slidesToScroll:n.props.slidesToScroll,currentSlide:n.props.currentSlide};return r["default"].createElement("li",{key:i,className:u},r["default"].createElement("button",{onClick:n.clickHandler.bind(n,f)},i))});return r["default"].createElement("ul",{className:this.props.dotsClass,style:{display:"block"}},i)}});t.Dots=h},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}var u,e;Object.defineProperty(t,"__esModule",{value:!0});u=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};var s=i(2),r=f(s),h=i(14),o=f(h),c=r["default"].createClass({displayName:"PrevArrow",clickHandler:function(n,t){t.preventDefault();this.props.clickHandler(n,t)},render:function(){var t={"slick-prev":!0},i=this.clickHandler.bind(this,{message:"previous"}),n;return!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(t["slick-disabled"]=!0,i=null),n={key:"0",ref:"previous","data-role":"none",className:o["default"](t),style:{display:"block"},onClick:i},this.props.prevArrow?r["default"].createElement(this.props.prevArrow,n):r["default"].createElement("button",u({key:"0",type:"button"},n)," Previous")}});t.PrevArrow=c;e=r["default"].createClass({displayName:"NextArrow",clickHandler:function(n,t){t.preventDefault();this.props.clickHandler(n,t)},render:function(){var n={"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"}),i;return this.props.infinite||(this.props.centerMode&&this.props.currentSlide>=this.props.slideCount-1?(n["slick-disabled"]=!0,t=null):this.props.currentSlide>=this.props.slideCount-this.props.slidesToShow&&(n["slick-disabled"]=!0,t=null),this.props.slideCount<=this.props.slidesToShow&&(n["slick-disabled"]=!0,t=null)),i={key:"1",ref:"next","data-role":"none",className:o["default"](n),style:{display:"block"},onClick:t},this.props.nextArrow?r["default"].createElement(this.props.nextArrow,i):r["default"].createElement("button",u({key:"1",type:"button"},i)," Next")}});t.NextArrow=e},function(n,t,i){var u=i(19),f=function(n){return/[height|width]$/.test(n)},r=function(n){var t="",i=Object.keys(n);return i.forEach(function(r,e){var o=n[r];r=u(r);f(r)&&typeof o=="number"&&(o=o+"px");t+=o===!0?r:o===!1?"not "+r:"("+r+": "+o+")";e<i.length-1&&(t+=" and ")}),t},e=function(n){var t="";return typeof n=="string"?n:n instanceof Array?(n.forEach(function(i,u){t+=r(i);u<n.length-1&&(t+=", ")}),t):r(n)};n.exports=e},function(n){var t=function(n){return n.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()}).toLowerCase()};n.exports=t},function(n,t,i){var u=i(21),r=u&&i(22),f=i(18),e={media:function(n,t){n=f(n);typeof t=="function"&&(t={match:t});r.register(n,t);this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]);this._responsiveMediaHandlers.push({query:n,handler:t})},componentWillUnmount:function(){this._responsiveMediaHandlers&&this._responsiveMediaHandlers.forEach(function(n){r.unregister(n.query,n.handler)})}};n.exports=e},function(n){var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement);n.exports=t},function(n,t,i){var r;(function(u,f,e){var o=window.matchMedia;typeof n!="undefined"&&n.exports?n.exports=e(o):!(r=function(){return f[u]=e(o)}.call(t,i,t,n),r!==undefined&&(n.exports=r))})("enquire",this,function(n){"use strict";function t(n,t){var i=0,u=n.length,r;for(i;i<u;i++)if(r=t(n[i],i),r===!1)break}function f(n){return Object.prototype.toString.apply(n)==="[object Array]"}function e(n){return typeof n=="function"}function i(n){this.options=n;n.deferSetup||this.setup()}function r(t,i){this.query=t;this.isUnconditional=i;this.handlers=[];this.mql=n(t);var r=this;this.listener=function(n){r.mql=n;r.assess()};this.mql.addListener(this.listener)}function u(){if(!n)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={};this.browserIsIncapable=!n("only all").matches}return i.prototype={setup:function(){this.options.setup&&this.options.setup();this.initialised=!0},on:function(){this.initialised||this.setup();this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(n){return this.options===n||this.options.match===n}},r.prototype={addHandler:function(n){var t=new i(n);this.handlers.push(t);this.matches()&&t.on()},removeHandler:function(n){var i=this.handlers;t(i,function(t,r){if(t.equals(n))return t.destroy(),!i.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(n){n.destroy()});this.mql.removeListener(this.listener);this.handlers.length=0},assess:function(){var n=this.matches()?"on":"off";t(this.handlers,function(t){t[n]()})}},u.prototype={register:function(n,i,u){var o=this.queries,s=u&&this.browserIsIncapable;return o[n]||(o[n]=new r(n,s)),e(i)&&(i={match:i}),f(i)||(i=[i]),t(i,function(t){o[n].addHandler(t)}),this},unregister:function(n,t){var i=this.queries[n];return i&&(t?i.removeHandler(t):(i.clear(),delete this.queries[n])),this}},new u})}])});var ActivitySelector=React.createClass({displayName:"ActivitySelector",getInitialState:function(){return{Sections:this.props.Sections,Activities:this.props.Activities,SelectedSection:this.props.Sections.length?this.props.Sections[0].Id:-1,SelectedActivity:-1}},updateDropdown:function(n,t){var i={};i[n]=t.newValue;this.setState(i)},render:function(){var n=this,r=this.state.SelectedActivity,u=[],t,i;for(n.state.Activities=n.state.Activities.filter(function(n){return n.Featured===!1}),t=0;t<n.state.Activities.length;t++)i=n.state.Activities[t],i.Section.Id==n.state.SelectedSection&&(u.length&&r===-1&&(r=i.Id),u.push(i));return React.createElement("div",null,React.createElement("div",{className:"contourField dropdown"},React.createElement("label",{htmlFor:"select-section"},"What are you looking to achieve?"),React.createElement("div",{className:"styled-select"},React.createElement(Dropdown,{valueField:"Id",labelField:"Name",options:this.props.Sections,value:this.state.SelectedSection,onChange:this.updateDropdown.bind(this,"SelectedSection"),id:"select-section"}))),React.createElement("div",{className:"contourField dropdown"},React.createElement("label",{htmlFor:"predefinedActivity"},"Select an activity"),React.createElement("div",{className:"styled-select"},React.createElement(Dropdown,{id:"predefinedActivity",valueField:"Id",labelField:"Name",options:u,value:r,onChange:this.updateDropdown.bind(this,"SelectedActivity")}))))}}),ActivitySelectorPredictiveSearch=React.createClass({displayName:"ActivitySelectorPredictiveSearch",getInitialState:function(){return{RawActivities:this.props.Activities,FilteredActivities:[],Keyword:"",PredefinedId:0,ShowActivitiesList:!1,TotalActivities:this.props.Activities.length}},componentWillMount:function(){this.filterList()},updateFilterValues:function(n){this.setState({Keyword:n.target.value.toLowerCase(),ShowActivitiesList:!0},function(){this.filterList()})},filterList:function(){var n=this.state.RawActivities.filter(function(n){return n.Featured===!1}),t=this.state.Keyword;n=n.filter(function(n){return n.Name.toLowerCase().search(t)!==-1});this.setState({FilteredActivities:n,TotalActivities:n.length})},onBlur:function(){this.setState({ShowActivitiesList:!1})},handleClick:function(n){this.setState({Keyword:n.currentTarget.textContent.toLowerCase(),PredefinedId:n.currentTarget.dataset.id},function(){$(".submission-loader").removeClass("hide");$.getJSON("/Umbraco/Api/Activity/CreateActivity",{activityId:this.state.PredefinedId},function(){window.location.reload()})})},render:function(){var t=this,i=this.state.FilteredActivities.map(function(n,i){return React.createElement("div",{className:"search-activity-item",key:i,onMouseDown:t.handleClick,"data-id":n.Id},n.Name)}),n="";return this.state.TotalActivities<1&&(n=React.createElement("div",{className:"no-results"},"Your search returned no activities")),React.createElement("div",{className:"search-activity-wrap"},React.createElement("div",{className:"contourField shortanswer"},React.createElement("label",{htmlFor:"search-activity-input"},"Search activity"),React.createElement("input",{type:"text",id:"search-activity-input",value:this.state.Keyword,onChange:this.updateFilterValues,onBlur:this.onBlur}),React.createElement("input",{type:"hidden",id:"predefinedActivity",value:this.state.PredefinedId})),React.createElement("div",{className:this.state.ShowActivitiesList?"search-activity-list":"search-activity-list hidden"},i,n))}}),AddToCart=React.createClass({displayName:"AddToCart",getInitialState:function(){return{}},addToCart:function(){var n={id:this.props.Product.Id},t=this;$.post("/Umbraco/Surface/ShoppingCart/AddProduct",n,function(){t.setState({incart:!0});window.updateCart!==undefined&&window.updateCart(!0)})},render:function(){var i="btn small",r="msg-added",n,t,u;return this.state.incart?(i+=" added",r+=" added"):(i="btn small",r="msg-added"),n=React.createElement("button",{type:"button",onClick:this.addToCart,className:i},"Add to cart"),t=React.createElement("span",{className:r},"Added!"),this.props.Product.IsGrant?(this.props.Product.GrantStatus==="Date"?n=React.createElement("div",null,React.createElement("p",null,"Connecting Schools Grants are not currently available for redemption as they are only redeemable between 1st July - 31st December. Keep up the good work accruing your points until then and remember the grants won't affect your points balance!"),React.createElement("p",null,"Accreditation required to redeem this grant:"),React.createElement("span",null,this.props.Product.AccreditationRule.Name),React.createElement("br",null),React.createElement("a",{href:"/organisation/how-does-accreditation-work"},"Find out how accreditation works")):this.props.Product.GrantStatus==="Limit"?n=React.createElement("div",null,React.createElement("div",{className:"heading"},"Grant limit exceeded"),React.createElement("p",null,"Please note grants can only be redeemed once per financial year.")):this.props.Product.GrantStatus==="Redeemed"?n=React.createElement("div",null,React.createElement("div",{className:"heading"},"Grant limit exceeded"),React.createElement("p",null,"Please note that Grants can only be redeemed once per financial year. As you have already selected a Grant, to continue shopping please remove one of the Grants from your cart.")):this.props.Product.GrantStatus==="Accreditation"?(u="/Images/base/ribbon-"+this.props.Product.AccreditationRule.Name.replace(" ","").toLowerCase()+".svg",n=React.createElement("div",null,React.createElement("div",{className:"heading"},"Grant limit exceeded"),React.createElement("p",null,"This awesome grant is currently open til December 31 and you're so close... however this year you haven't quite reached the accreditation level that's required."),React.createElement("p",null,"Accreditation required to redeem this grant:"),React.createElement("div",{className:"accreditation-message"},React.createElement("img",{src:u})," ",React.createElement("span",null,"(",this.props.Product.AccreditationRule.Name,": ",this.props.Product.AccreditationRule.MinimumPoints,")"),React.createElement("div",{className:"accreditation-faq"},React.createElement("a",{href:"/organisation/how-does-accreditation-work/"},"Find out how accreditation works"))))):n=React.createElement("div",null,React.createElement("div",{className:"heading"},"Congratulations"),React.createElement("p",null,"Your school has achieved the required accreditation to unlock this grant."),React.createElement("p",null,"Remember you can only unlock one grant each financial year and each grant can only be unlocked once, so choose carefully."),n,t),React.createElement("div",{className:"add-to-cart side-content"},React.createElement("h3",null,this.props.Product.Name),n,t)):React.createElement("div",{className:"add-to-cart side-content"},React.createElement("h3",null,this.props.Product.Name),React.createElement("span",{className:"cost"},this.props.Product.Cost),React.createElement("span",{className:"cost-label"},"points each"),n,t)}}),AutoCompleteFromTo=React.createClass({displayName:"AutoCompleteFromTo",getInitialState:function(){var n={id:"end",type:"search",title:this.props.ToAddress,description:"Destination",position:null},t=n.title.replace(" ","+");return $.getJSON("https://maps.googleapis.com/maps/api/geocode/json?address="+t+"&key=AIzaSyDyXY_frnHIXZc-_eVJ45NP0Fx9Oqhh9II",{address:n.title},function(t){t&&t.results.length>0&&(n.position=t.results[0].geometry.location)}),{EndPin:n}},suggestStartSelect:function(n){var t={id:"end",type:"search",title:n.label,description:"Destination",position:n.location};this.setState({StartPin:t,EndPin:this.state.EndPin});this.state.StartPin&&this.state.EndPin&&this.state.EndPin.position&&this.onDirectionUpdate()},suggestEndSelect:function(n){var t={id:"end",type:"search",title:n.label,description:"Destination",position:n.location};this.setState({StartPin:this.state.StartPin,EndPin:t});this.state.StartPin&&this.state.EndPin&&this.onDirectionUpdate()},onDirectionUpdate:function(){var r=this,n=this.state.StartPin,t=this.state.EndPin,u=$("#dbe785f3-251f-44c3-cebd-150287ebf121"),i=$('input[name="__RequestVerificationToken"]').val();console.log("token",i);t!=null&&n!=null?$.ajax({url:"/Umbraco/Api/JourneyPlanner/GetRoute?start="+n.position.lat+","+n.position.lng+"&finish="+t.position.lat+","+t.position.lng+"&mode=me_car",type:"POST",data:{__RequestVerificationToken:i},success:function(n){if(n&&n.segmentTemplates!=null){var t=n.segmentTemplates[0].metres/1e3;u.val(t)}}}):r.setState({steps:[]})},render:function(){var n=this.props.ToAddress;return this.state.StartPin&&$(".homeaddress.contourField input").val(this.state.StartPin.title),$(".workaddress.contourField input").val(this.state.EndPin.title),React.createElement("div",{className:"directions-searcher"},React.createElement("div",{className:"contourField shortanswer"},React.createElement("label",{htmlFor:"start-address"},"From:")," ",React.createElement(Geosuggest.default,{country:"au",onSuggestSelect:this.suggestStartSelect,id:"start-address"})),React.createElement("div",{className:"contourField shortanswer"},React.createElement("label",{htmlFor:"end-address"},"To:")," ",React.createElement(Geosuggest.default,{country:"au",onSuggestSelect:this.suggestEndSelect,id:"end-address",initialValue:n})))}}),Listing=React.createClass({displayName:"Listing",getInitialState:function(){return{ItemList:this.props.InitialData.Items}},componentWillReceiveProps:function(){this.setState({CurrentPage:1},this.updateData)},loadMore:function(n){n.preventDefault();var t=this;this.setState({CurrentPage:this.state.CurrentPage+1},function(){t.updateData(!0)})},updateData:function(n){var t=this,i=$.extend({altTemplate:"JSON",alias:this.props.Alias,page:this.state.CurrentPage,pageSize:this.state.PageSize},this.props.FilterValues);$.getJSON(location.protocol+"//"+location.host+location.pathname,i,function(i){n?t.setState({ItemList:t.state.ItemList.concat(i.Result.Items)}):t.setState({ItemList:i.Result.Items,PageSize:i.Result.PageSize,TotalItemCount:i.Result.TotalItemCount})})},renderItem:function(n){return this.props.ItemRenderer?this.props.ItemRenderer(n):React.createElement(ListingItem,{item:n,key:n.Id})},render:function(){var t=this,n;return(this.state.CurrentPage*this.state.PageSize<this.state.TotalItemCount&&(n=React.createElement("button",{onClick:this.loadMore,className:"btn"},"Load More")),this.state.ItemList==="undefined"||this.state.ItemList==null)?"":React.createElement("div",null,this.state.ItemList.map(this.renderItem),n)}}),ChampionDirectory=React.createClass({displayName:"ChampionDirectory",getInitialState:function(){return this.getStateVals(this.props)},getStateVals:function(n){return{OrganisationList:n.OrganisationList,OrganisationName:n.OrganisationName,ShowOrganisationList:!1,ShowOrganisationChampionsList:n.ShowOrganisationChampionsList,ShowLocalGovernmentChampionsList:n.IsLocalGovernmentMember,ShowNoRecords:n.ShowNoRecords,FilteredOrganisation:[],Keyword:"",OrganisationMember:n.OrganisationMember,LocalGovernmentMember:n.LocalGovernmentMember,IsLocalGovernmentMember:n.IsLocalGovernmentMember,TotalOrganisation:n.OrganisationList.length,Loader:!1}},componentWillMount:function(){this.filterList()},updateFilterValues:function(n){this.setState({Keyword:n.target.value.toLowerCase(),ShowOrganisationList:!0,Loader:!1},function(){this.filterList()})},filterList:function(){this.state.OrganisationName=this.state.Keyword;var n=this.state.Keyword;updatedOrganisation=this.state.OrganisationList.filter(function(t){return t.Name.toLowerCase().search(n)!==-1});this.setState({FilteredOrganisation:updatedOrganisation,TotalOrganisation:updatedOrganisation.length});this.state.FilteredOrganisation.length==0&&this.setState({ShowLocalGovernmentChampionsList:!1,ShowOrganisationChampionsList:!1,Loader:!1})},handleClick:function(n){var t=this;this.setState({Loader:!0});$.getJSON(location.protocol+"//"+location.host+location.pathname,{altTemplate:"JSON",alias:"championDirectory",organisation:n.currentTarget.dataset.id},function(n){t.setState(t.getStateVals(n));t.setState({Keyword:n.OrganisationName})})},render:function(){var n=this,e=this.state.FilteredOrganisation.map(function(t,i){return React.createElement("div",{className:"search-organisation-item",key:i,onMouseDown:n.handleClick,"data-id":t.Id},t.Name)}),f="",t,i,r,u;return this.state.Loader&&(f=React.createElement("div",{className:"submission-loader"},React.createElement("img",{alt:"Loading",src:"/Images/ajax-loader.gif"}))),t="",this.state.TotalOrganisation<1&&(t=React.createElement("div",{className:"no-results"},"Your search returned no organisations")),i="",this.state.ShowNoRecords&&(i=React.createElement("div",{className:"no-results"},"No champions found for the searched organisation / local government area")),r="",u="",this.state.OrganisationMember!=null&&this.state.OrganisationMember.length>0&&(this.state.IsLocalGovernmentMember==!0&&(r=this.state.LocalGovernmentMember.map(function(t,i){return React.createElement("div",{className:"champion-directory-list-items",key:i},React.createElement("div",{className:"organisation","data-th":"Local Government Access"},i==0?n.state.OrganisationName:""),React.createElement("div",{className:"champion"},t.FullName),React.createElement("div",{className:"phone"},t.Phone),React.createElement("div",{className:"contact-btn"},React.createElement("a",{className:"btn",href:"mailto:"+t.Email},"Email ",t.FirstName)))})),u=this.state.OrganisationMember.map(function(t,i){return React.createElement("div",{className:"champion-directory-list-items",key:i},React.createElement("div",{className:"organisation","data-th":"Organisation"},i==0?n.state.OrganisationName:""),React.createElement("div",{className:"champion"},t.FullName),React.createElement("div",{className:"phone"},t.Phone),React.createElement("div",{className:"contact-btn"},React.createElement("a",{className:"btn",href:"mailto:"+t.Email},"Email ",t.FirstName)))})),React.createElement("div",{className:"search-champions-directory-wrap"},React.createElement("div",{className:"shortanswer-wrapper"},React.createElement("div",{className:"search-lable"},"Search for champions by organisation name:"),React.createElement("div",{className:"contourField shortanswer"},React.createElement("input",{type:"text",id:"search-champions-input",onChange:this.updateFilterValues,value:this.state.OrganisationName,autoComplete:"off"}),React.createElement("input",{type:"hidden",id:"ChampionDirectory",value:this.state.OrgId}))),React.createElement("div",{className:this.state.ShowOrganisationList?"search-organisation-list":"search-organisation-list hidden"},e,t),React.createElement("div",{className:this.state.ShowOrganisationChampionsList?"org-champions-list":"org-champions-list hidden"},React.createElement("div",{className:"champion-directory-list"},React.createElement("div",{className:"organisation"},"Organisation"),React.createElement("div",{className:"champion"},"Champion/s"),React.createElement("div",{className:"phone"}),React.createElement("div",{className:"contact-btn"})),u),React.createElement("div",{className:this.state.ShowLocalGovernmentChampionsList?"org-champions-list":"org-champions-list hidden"},React.createElement("div",{className:"champion-directory-list"},React.createElement("div",{className:"organisation"},"Local Government Area"),React.createElement("div",{className:"champion"},"Champion/s"),React.createElement("div",{className:"phone"}),React.createElement("div",{className:"contact-btn"})),r),React.createElement("div",{className:this.state.ShowNoRecords?"org-champions-list":"org-champions-list hidden"},i),f)}}),DashboardListing=React.createClass({displayName:"DashboardListing",getInitialState:function(){return this.props.SelectedValues},updateDropdown:function(n,t){var i={};i[n]=t.newValue;this.setState(i)},restoredState:function(n){this.setState(n)},render:function(){return React.createElement("div",{className:"listing-wrap"},React.createElement("div",{className:"listing-filter"},React.createElement("h3",null,"The latest stories, resources and events from"),React.createElement(Dropdown,{options:this.props.FilterTypes.OrganisationType,value:this.state.SelectedOrgType,onChange:this.updateDropdown.bind(this,"SelectedOrgType"),id:"select-org-type",name:"Organisation Type"})),React.createElement(Listing,{Alias:"dashboardListing",InitialData:this.props.Result,FilterValues:this.state,restoredState:this.restoredState}))}}),EventMap=React.createClass({displayName:"EventMap",getInitialState:function(){return{position:{lat:this.props.Location.Latitude,lng:this.props.Location.Longitude,zoom:13}}},render:function(){var n=L.icon({iconUrl:"/Images/base/ui-pin.svg",iconSize:[36,61],iconAnchor:[7,61]});return React.createElement("div",{className:"journey-planner",id:"journey-planner"},React.createElement(ReactLeaflet.Map,{center:this.state.position,zoom:12},React.createElement(ReactLeaflet.TileLayer,{url:"https://api.mapbox.com/styles/v1/mapbox/streets-v9/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoieW91cm1vdmUiLCJhIjoiY2l2aGlmaGZwMDFyNTMzbXF3bzA5dGkwNiJ9.jpD_MfeKue3orO4rtmZhzg",attribution:'© <a href="https://www.mapbox.com/map-feedback/">Mapbox<\/a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}),React.createElement(ReactLeaflet.Marker,{position:this.state.position,icon:n})))}}),HandsUpSurveyClassEntry=React.createClass({displayName:"HandsUpSurveyClassEntry",getInitialState:function(){return{Value:this.props.InitialValue,EntryList:[],TotalChildren:0,HasPreviousTemplate:!1}},regenerateValue:{},onRowUpdate:function(n){for(var t=this.state.EntryList.slice(0),r=0,i=0;i<t.length;i++)t[i].Key===n.Key&&(t[i]=n),r+=parseFloat(t[i].Rode),r+=parseFloat(t[i].PublicTransport),r+=parseFloat(t[i].Walked),r+=parseFloat(t[i].Car);this.setState({EntryList:t,Value:JSON.stringify(t),TotalChildren:r})},onAllRowsUpdated:function(){for(var n=this.state.EntryList,i=0,t=0;t<n.length;t++)i+=parseFloat(n[t].Rode),i+=parseFloat(n[t].PublicTransport),i+=parseFloat(n[t].Walked),i+=parseFloat(n[t].Car);this.setState({EntryList:n,Value:JSON.stringify(n),TotalChildren:i})},addRow:function(n){n.preventDefault();var t={Key:this.state.EntryList.length+1,ClassName:"",Rode:0,PublicTransport:0,Walked:0,Car:0},i=this.state.EntryList.concat([t]);this.setState({EntryList:i})},deleteRow:function(n){var u=this.state.EntryList.indexOf(n),t,r,i;for(this.state.EntryList.splice(u,1),t=this.state.EntryList,r=0,i=0;i<t.length;i++)r+=parseFloat(t[i].Rode),r+=parseFloat(t[i].PublicTransport),r+=parseFloat(t[i].Walked),r+=parseFloat(t[i].Car);this.setState({EntryList:t,TotalChildren:r})},renderRow:function(n){var t=this.props.onRowDel;return React.createElement(HandsUpSurveyClassEntryRow,{key:n.Key,Item:n,onUpdate:this.onRowUpdate,onDelEvent:this.deleteRow})},previousTemplate:function(n){n.preventDefault();var t=this;$.ajax({url:"/umbraco/api/HandsUpSurvey/GetPreviousHandsUpSurveyTemplate",success:function(n){var r=n.Data,i;return r!=null&&JSON.parse(r.Template).length>0&&(i=[],JSON.parse(r.Template).forEach(function(n){n.Key=i.length;i.push(n)}),t.setState({HasPreviousTemplate:!0,EntryList:i},t.onAllRowsUpdated)),!0}})},componentDidMount:function(){var n=this;$.ajax({url:"/umbraco/api/HandsUpSurvey/GetPreviousHandsUpSurveyTemplate",dataType:"json",success:function(t){if(t.Data!=null&&t.Data!="undefined"){console.log("GetPreviousHandsUpSurveyTemplate",t);var i=t.Data;i!=null&&JSON.parse(i.Template).length>0&&n.setState({HasPreviousTemplate:!0})}}})},render:function(){var n=React.createElement("div",null);return this.state.HasPreviousTemplate&&(n=React.createElement("button",{onClick:this.previousTemplate,className:"btn small"},"Use previous template")),React.createElement("div",null,n,React.createElement("table",null,React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",null,"Class/Year"),React.createElement("th",null,"Rode a bike/ scooter/ skated"),React.createElement("th",null,"Caught the bus/train"),React.createElement("th",null,"Walked"),React.createElement("th",null,"Came in a car"))),React.createElement("tbody",null,this.state.EntryList.map(this.renderRow))),React.createElement("input",{type:"hidden",name:this.props.Name,value:this.state.Value}),React.createElement("button",{onClick:this.addRow,className:"btn small plus"},"Add class row"),React.createElement("div",{className:"total-message"},React.createElement("p",null,React.createElement("span",{className:"label"},"Total number of students:")," ",React.createElement("span",{className:"value"},this.state.TotalChildren),React.createElement("br",null),"Calculated from the total numbers entered above.")))}}),HandsUpSurveyClassEntryRow=React.createClass({displayName:"HandsUpSurveyClassEntryRow",onUpdate:function(n,t){var i=this.props.Item;i[n]=t;this.props.onUpdate(i)},onDelEvent:function(){var n=this.props.Item;this.props.onDelEvent(n)},render:function(){var n=this.props.Item;return React.createElement("tr",{className:"eachRow"},React.createElement(EditableCell,{type:"text",onUpdate:this.onUpdate,Field:"ClassName",Value:n.ClassName}),React.createElement(EditableCell,{type:"number",onUpdate:this.onUpdate,Field:"Rode",Value:n.Rode}),React.createElement(EditableCell,{type:"number",onUpdate:this.onUpdate,Field:"PublicTransport",Value:n.PublicTransport}),React.createElement(EditableCell,{type:"number",onUpdate:this.onUpdate,Field:"Walked",Value:n.Walked}),React.createElement(EditableCell,{type:"number",onUpdate:this.onUpdate,Field:"Car",Value:n.Car}),React.createElement("td",null,React.createElement("input",{type:"button",onClick:this.onDelEvent,className:"btn-delete",value:"X"})))}}),EditableCell=React.createClass({displayName:"EditableCell",onUpdate:function(n){var t=n.target.value;this.props.type=="number"&&(isNaN(parseFloat(t))&&(t=0),t<0&&(t=0));this.props.onUpdate(this.props.Field,t)},onDelEvent:function(){this.props.onDelEvent(this.props.row)},render:function(){var n=this;return React.createElement("td",null,React.createElement("input",{ref:"input",type:this.props.type,value:this.props.Value,onChange:this.onUpdate,onFocus:function(){n.refs.input.select()}}))}}),UniqueEmailClassEntry=React.createClass({displayName:"UniqueEmailClassEntry",getInitialState:function(){return{Value:this.props.InitialValue,Error:""}},onUpdate:function(n){var i=n.target.value,t=this;$.getJSON("/Umbraco/Api/General/EmailExists",{email:i},function(n){n==!0?t.setState({Error:"An account with this email address already exists"}):t.setState({Error:""})})},errorMessage:function(){return this.state.Error!=""&&this.state.Error!=null?React.createElement("span",{className:"field-validation-error"},React.createElement("span",null,this.state.Error)):""},render:function(){return React.createElement("div",null,React.createElement("input",{ref:"input",type:"email",className:"text",onChange:this.onUpdate,name:this.props.Name,maxLength:"500"}),this.errorMessage())}}),WorkplaceAditionalSitesClassEntry=React.createClass({displayName:"WorkplaceAditionalSitesClassEntry",getInitialState:function(){return{Value:this.props.InitialValue,EntryList:[],SiteIndex:0}},regenerateValue:{},onRowUpdate:function(){var n=this.state.EntryList.slice(0);this.setState({EntryList:n,Value:JSON.stringify(n)})},addRow:function(n){if(n.preventDefault(),this.state.EntryList.length<5){var t={Address:"",Suburb:"",Postcode:"",Employees:0,Name:"",LocalGovernment:"",Index:this.state.EntryList.length+1},i=this.state.EntryList.concat([t]);this.setState({EntryList:i,SiteIndex:t.Index})}},renderRow:function(n,t){return n.Id=t,React.createElement(WorkplaceAdditionalSitesClassEntryRow,{key:t,Item:n,onUpdate:this.onRowUpdate,LocalGovList:this.props.LocalGovernment})},render:function(){var t=this,n=React.createElement("button",{className:"workplaceadditionalsites-btn-addsite btn-plus",onClick:this.addRow},React.createElement("span",{className:"maintext"},"Add additional site addresses"),React.createElement("span",{className:"subtext"},"(Maximum of 5)"));return this.state.SiteIndex>4&&(n=""),React.createElement("div",{className:"workplaceadditionalsites-internal"},React.createElement("div",{className:"workplaceadditionalsites-rows-wrapper"},this.state.EntryList.map(function(n,i){return t.renderRow(n,i)})),React.createElement("input",{type:"hidden",name:this.props.Name,value:this.state.Value}),n)}}),WorkplaceAdditionalSitesClassEntryRow=React.createClass({displayName:"WorkplaceAdditionalSitesClassEntryRow",getInitialState:function(){return{SiteValid:!0}},componentDidMount:function(){window.WorkplaceSites=window.WorkplaceSites||[];window.WorkplaceSites[this.props.Item.Id]=!1},onUpdate:function(n,t){var i=this.props.Item;i[n]=t;this.props.onUpdate(i)},onDropdownChange:function(n){var i=n.currentTarget.value,t=this.props.Item;t.LocalGovernment=i;this.props.onUpdate(t)},handleChange:function(n){var t=this.props.Item;t.Name=n.target.value;window!=undefined&&(window.WorkplaceSites[t.Id]=t.Name.length>0);t.Name.length>0&&$('input[value="Register this workplace"]').removeAttr("disabled");this.setState({Name:n.target.value,SiteValid:t.Name.length>0})},render:function(){var t=this,n=this.props.Item,u=this.props.LocalGovList,f=function(n){return React.createElement("option",{value:n.key},n.key)},i=React.createElement("span",{className:"field-validation-error","data-valmsg-for":"the-above-input","data-valmsg-replace":"true"},React.createElement("span",null,"Please provide a value for Workplace name")),r;return this.state.SiteValid&&(i=React.createElement("span",null)),r="text input-validation-error workplace-additional-sites-name-"+n.Id,React.createElement("div",{className:"workplaceadditionalsites-row"},React.createElement("strong",null,"Additional site ",n.Index),React.createElement("div",{className:"contourField workplacesuburb shortanswer mandatory alternating"},React.createElement("label",{className:"fieldLabel"},"Name of this worksite? ",React.createElement("span",{className:"contourIndicator"},"*")),React.createElement("div",null,React.createElement("input",{type:"text",className:r,onBlur:function(n){return t.handleChange(n)},onChange:function(n){return t.handleChange(n)},value:n.Name,"data-val":"true","data-val-required":"Please provide a value for Workplace name","aria-required":"true","aria-describedby":"23bded89-528e-4267-d091-372ce2a1921f-error","aria-invalid":"true"}),i)),React.createElement("div",{className:"contourField shortanswer workplaceadditionalsites-cell"},React.createElement("label",null,"Workplace Address"),React.createElement(EditableCell,{type:"text",onUpdate:this.onUpdate,Field:"Address",Value:n.Address})),React.createElement("div",{className:"contourField shortanswer workplaceadditionalsites-cell"},React.createElement("label",null,"Workplace Suburb"),React.createElement(EditableCell,{type:"text",onUpdate:this.onUpdate,Field:"Suburb",Value:n.Suburb})),React.createElement("div",{className:"contourField shortanswer workplaceadditionalsites-cell"},React.createElement("label",null,"Workplace Postcode"),React.createElement(EditableCell,{type:"text",onUpdate:this.onUpdate,Field:"Postcode",Value:n.Postcode})),React.createElement("div",{className:"contourField shortanswer workplaceadditionalsites-cell"},React.createElement("label",null,"How many employees work at this address?"),React.createElement(EditableCell,{type:"number",onUpdate:this.onUpdate,Field:"Employees",Value:n.Employees})),React.createElement("div",{className:"contourField shortanswer workplaceadditionalsites-cell"},React.createElement("label",null,"Which local government area is the workplace?"),React.createElement("select",{id:"localGovernment",onChange:this.onDropdownChange},u.map(f))))}}),Leaderboard=React.createClass({displayName:"Leaderboard",getInitialState:function(){return{SelectedIndustry:this.props.SelectedIndustry,SelectedLevel:this.props.SelectedLevel,SelectedZone:this.props.SelectedZone,Mode:this.props.Mode,Organisations:this.props.Organisations,Industries:this.props.Industries,Levels:this.props.Levels,Zones:this.props.Zones,Months:this.props.Months,Audience:this.props.Audience,Term:this.props.Term,Page:1,IsLoading:!1,Total:this.props.Total}},intersperse:function(n,t){return n.length===0?[]:n.slice(1).reduce(function(n,i){return n.concat([t,i])},[n[0]])},isActiveDate:function(n){return n===this.state.Months?"selected":""},monthsClick:function(n){var t=this,i={};i.Months=n;t.setState(i);t.updateBoard()},loadMore:function(){var n=this;n.state.Page++;n.updateBoard()},searchByName:function(n){var i=this,t={};t.Term=n.target.value;i.setState(t);n.preventDefault()},filterChange:function(n,t){var i=this,r={};console.log("Leaderboard.filterChange");r[n]=t.newValue;i.setState(r);i.updateBoard()},updateBoard:function(){var n=this;console.log("Leaderboard.updateBoard");clearTimeout(this.searchTimeout);this.searchTimeout=setTimeout(function(){n.setState({IsLoading:!0});$.getJSON(window.location,{altTemplate:"JSON",alias:"leaderboard",months:n.state.Months,industry:n.state.SelectedIndustry,level:n.state.SelectedLevel,zone:n.state.SelectedZone,page:n.state.Page,term:n.state.Term,audience:n.state.Audience,refresh:!0},function(t){n.setState({Organisations:t.Organisations,Total:t.Total,IsLoading:!1,Audience:t.Audience})})},200)},handleSubmit:function(n){return console.log("Leaderboard.handleSubmit"),n.preventDefault(),this.updateBoard(),!1},render:function(){var r,u;console.log("Leaderboard.render");console.log(this.state);var t=this,n=t.state.Audience,f="";n===null||n===""?(n="Organisation",f="Search for an "+n.toLowerCase()):f=n==="Community"?"Search for an organisation":"Search for a "+n.toLowerCase();var e=function(n){return React.createElement("div",{key:n.Id,className:"ladder-item"},React.createElement("span",{className:"rank"}),React.createElement("span",{className:"accreditation-level "+n.Level}),React.createElement("span",{className:"organisation-name"},React.createElement("a",{href:n.Organisation.Url},n.Organisation.Name)),React.createElement("span",{className:"points"},n.TotalPoints))},o=function(n){return React.createElement("a",{key:n.value,href:"javascript:;",className:this.isActiveDate(n.value),onClick:this.monthsClick.bind(this,n.value)},n.text)},i="";return this.props.IsLocalGovernment&&(i="in your area"),r="",this.state.IsLoading&&(r=React.createElement("div",{className:"loading-message"},React.createElement("img",{alt:"Loading",src:"/Images/ajax-loader.gif"}))),u="",this.state.Organisations.length===0&&(u=React.createElement("div",{className:"no-results"},"Sorry there are no results. Please try a different filter.")),React.createElement("section",{className:"leaderboard"},n==="Workplace"&&!this.props.IsLocalGovernment&&React.createElement("div",{className:"listing-filter"},"Overall leaderboard across workplaces in ",React.createElement(Dropdown,{options:this.props.Industries,value:this.state.SelectedIndustry,onChange:t.filterChange.bind(this,"SelectedIndustry"),id:"select-industry",name:"Industry"})),n==="Workplace"&&this.props.IsLocalGovernment&&React.createElement("div",{className:"listing-filter"},"Overall leaderboard across ",React.createElement(Dropdown,{options:this.props.AudienceTypes,value:this.state.Audience,onChange:t.filterChange.bind(this,"Audience"),id:"select-audience",name:"Audience"})," in ",React.createElement(Dropdown,{options:this.props.Industries,value:this.state.SelectedIndustry,onChange:t.filterChange.bind(this,"SelectedIndustry"),id:"select-industry",name:"Industry"}),i),n==="School"&&!this.props.IsLocalGovernment&&React.createElement("div",{className:"listing-filter"},"Overall leaderboard for  ",React.createElement(Dropdown,{options:this.props.Levels,value:this.state.SelectedLevel,onChange:t.filterChange.bind(this,"SelectedLevel"),id:"select-level",name:"School Level"})," schools in  ",React.createElement(Dropdown,{options:this.props.Zones,value:this.state.SelectedZone,onChange:t.filterChange.bind(this,"SelectedZone"),id:"select-zone",name:"Area"})),n==="School"&&this.props.IsLocalGovernment&&React.createElement("div",{className:"listing-filter"},"Overall leaderboard for  ",React.createElement(Dropdown,{options:this.props.Levels,value:this.state.SelectedLevel,onChange:t.filterChange.bind(this,"SelectedLevel"),id:"select-level",name:"School Level"}),React.createElement(Dropdown,{options:this.props.AudienceTypes,value:this.state.Audience,onChange:t.filterChange.bind(this,"Audience"),id:"select-audience",name:"Audience"}),i),n==="Organisation"&&React.createElement("div",{className:"listing-filter"},"Overall leaderboard for  ",React.createElement(Dropdown,{options:this.props.AudienceTypes,value:this.state.Audience,onChange:t.filterChange.bind(this,"Audience"),id:"select-audience",name:"Audience"}),i),n==="Community"&&React.createElement("div",{className:"listing-filter"},"Overall leaderboard for all organisations in ",React.createElement(Dropdown,{options:this.props.Zones,value:this.state.SelectedZone,onChange:t.filterChange.bind(this,"SelectedZone"),id:"select-zone",name:"Area"})),React.createElement("div",{className:"leaderboard-search"},React.createElement("form",{onSubmit:t.handleSubmit},React.createElement("label",{htmlFor:"orgSearch"},"Search for a ",n.toLowerCase()),React.createElement("input",{type:"text",onChange:t.searchByName,value:this.state.Term,placeholder:f,id:"orgSearch",name:"orgSearch"}),React.createElement("input",{type:"submit",value:"Submit"}))),React.createElement("p",null,"Showing results from: ",this.intersperse([{text:"this year",value:12},{text:"the past 3 months",value:3},{text:"this month",value:1},{text:"all time",value:0}].map(o,this)," | ")),this.state.Organisations.length>0&&React.createElement("div",{className:"ladder"},r,u,this.state.Organisations.map(e)),this.state.Total>10&&this.state.Total>this.state.Page*10&&React.createElement("a",{href:"javascript:;",onClick:this.loadMore,className:"btn"},"View more"))}}),LineItem=React.createClass({displayName:"LineItem",getInitialState:function(){return this.props.data},changeQty:function(n){var t=n.target.value;this.props.onUpdate(this.state.Id,t)},remove:function(){this.props.onRemove(this.state.Id);this.setState({removed:!0})},render:function(){var n,t,i,r;return this.state.removed?React.createElement("div",null):(n=this.state.Product.Image,n!==undefined&&n!==null&&n!==""&&(n=React.createElement("img",{src:n.ResourceThumbnailImageUrl,alt:this.state.Product.Name})),t=this.state.Product.Name.replace(" ",""),i=React.createElement("div",{className:"quantities"}),i=this.props.data.Product.IsGrant?React.createElement("div",{className:"quantities "+this.props.data.Product.AccreditationRule.Name},"Redeeming a grant does not effect your points balance, however you can only redeem a grant once per financial year."):React.createElement("div",{className:"quantities"},React.createElement("span",{className:"points"},this.state.Product.Cost),React.createElement("span",{className:"operator"},"X"),React.createElement("span",{className:"quantity"},React.createElement("label",{htmlFor:t},"Quantity"),React.createElement("input",{type:"number",id:t,value:this.state.Quantity,onChange:this.changeQty})),React.createElement("span",{className:"operator"},"="),React.createElement("span",{className:"total"},this.state.Quantity*this.state.Product.Cost)),r="list-item-wrap",this.props.data.Product.IsGrant&&(r+=" grant "+this.props.data.Product.AccreditationRule.Name.replace(" ","").toLowerCase()),React.createElement("div",{className:"list-item"},React.createElement("div",{className:r},React.createElement("div",{className:"list-item-inner"},React.createElement("div",{className:"image"},n),React.createElement("div",{className:"product-name"},React.createElement("h3",null,this.state.Product.Name),React.createElement("button",{className:"btn-remove",onClick:this.remove},"Remove")),i))))}}),Listing=React.createClass({displayName:"Listing",getInitialState:function(){return{ItemList:this.props.InitialData.Items,Page:this.props.InitialData.Page,PageSize:this.props.InitialData.PageSize,TotalItemCount:this.props.InitialData.TotalItemCount,HistoryHasSaved:!1,Filters:this.props.FilterValues}},componentDidMount:function(){this.saveState();this.bindToBrowserHistory()},componentWillReceiveProps:function(n){this.setState({Page:1,Filters:n.FilterValues},this.updateData)},paginate:function(n){var t=this;this.setState({Page:n},function(){t.updateData()})},updateData:function(){var n=this,t=$.extend({altTemplate:"JSON",alias:this.props.Alias,page:this.state.Page,pageSize:this.state.PageSize,refresh:!0},this.state.Filters);$.getJSON(location.protocol+"//"+location.host+location.pathname,t,function(t){n.setState({ItemList:t.Result.Items,PageSize:t.Result.PageSize,TotalItemCount:t.Result.TotalItemCount,Page:t.Result.Page});n.saveState()})},serializeState:function(){return{Page:this.state.Page,Filters:this.state.Filters}},hasRecoveredState:function(){if(this.props.restoredState!==undefined){var n=this.state.Filters;this.props.restoredState(n)}else this.updateData()},historyRecoverState:function(n){var t=n.data,r,u;if(!$.isEmptyObject(t)){u=this.deserializeState!==undefined?this.deserializeState(t):t;r=this.serializeState!==undefined?this.serializeState():JSON.stringify(this.state);var f=$.extend({},this.state,u),e=!(JSON.stringify(r)===JSON.stringify(t)),i=function(){};this.hasRecoveredState!==undefined&&(i=this.hasRecoveredState);e&&(this.recoverState!==undefined?this.recoverState(f,i):this.setState(f,i))}},saveState:function(){var n=null,t;this.serializeState!==undefined?n=this.serializeState():(n={},$.each(this.state,function(t,i){t!="HistoryHasSaved"&&(n[t]=String(i))}));this.state.HistoryHasSaved?(t="?"+$.param(n.Filters)+"&Page="+n.Page,History.pushState(n,document.title,t)):this.setState({HistoryHasSaved:!0},function(){History.replaceState(n)})},bindToBrowserHistory:function(){History.Adapter.bind(window,"statechange",function(){this.historyRecoverState(History.getState())}.bind(this));this.historyRecoverState(History.getState())},patchSavedState:function(n,t){var i=History.getState();$.extend(i.data,n);History.replaceState(i.data);t!==undefined&&t()},renderItem:function(n){return n==null?null:typeof this.props.ItemRenderer=="function"&&this.props.ItemRenderer?this.props.ItemRenderer(n):React.createElement(ListingItem,{item:n,key:n.Id})},render:function(){var n=this;return this.state.ItemList==="undefined"||this.state.ItemList==null?"":React.createElement("div",null,this.state.ItemList.map(this.renderItem),React.createElement(Pagination,{Alias:"pagination",TotalItemCount:n.state.TotalItemCount,PageSize:n.props.InitialData.PageSize,Page:n.state.Page,ChangePage:this.paginate.bind(this)}))}}),Pagination=React.createClass({displayName:"Pagination",getInitialState:function(){return{Page:this.props.Page,PageSize:this.props.PageSize,TotalItemCount:this.props.TotalItemCount}},paginate:function(n){this.props.ChangePage(n)},render:function(){var t=this,i=Math.ceil(t.props.TotalItemCount/t.props.PageSize),n=t.props.Page,f=3,o=5,r,u,e;i<o?(r=1,u=i):n-f<=1?(r=1,u=o):n+f>=i?(r=i-o+1,u=i):(r=n-f,u=n+f);var s="",h="",c=[];if(i>1){for(n>1&&(s=React.createElement("div",{className:"pagination-prev"},React.createElement("span",{className:"first-page",key:"f",onClick:function(){return t.paginate(1)}},"First page"),React.createElement("span",{className:"prev-page",key:"p",onClick:function(){t.paginate(n-1)}},"Previous"))),e=r;e<u+1;e++)c.push(e);n!==i&&(h=React.createElement("div",{className:"pagination-next"},React.createElement("span",{className:"next-page",key:"n",onClick:function(){t.paginate(n+1)}},"Next"),React.createElement("span",{className:"last-page",key:"l",onClick:function(){return t.paginate(i)}},"Last page")))}return React.createElement("div",{className:"pagination"},s,c.map(function(i){return i===n?React.createElement("span",{className:"num-page current-page",key:i},i):React.createElement("span",{"data-index":i,className:"num-page",key:i,onClick:function(){t.paginate(i)}},i)}),h)}}),ListingItem=React.createClass({displayName:"ListingItem",renderResource:function(n){var u,f,i,t,r;return n.Image!=null&&(u=React.createElement("img",{src:n.Image.ResourceDashboardImageUrl,alt:n.Name})),f="resource-type "+n.ResourceType,i="",(n.ResourceType=="Video"||n.ResourceType=="Website"||n.ResourceType=="Document")&&(t="",r=!1,n.ResourceType=="Video"?t="Watch video":n.ResourceType=="Website"?t="Visit website":n.ResourceType=="Document"&&(t="Download",r=!0),n.ResourceLink!=null&&(i=React.createElement("div",{className:"link"},React.createElement("a",{href:n.ResourceLink.Url,className:"direct-link",target:"_blank",download:r},React.createElement("span",null,t))))),React.createElement("div",{className:"listing-item"},React.createElement("div",{className:"listing-item-inner"},React.createElement("header",null,React.createElement("span",{className:"label"},"New Resource"),React.createElement("div",{className:"details"},React.createElement("time",{dateTime:new Date(n.CreateDate).format("yyyy-mm-dd HH:MM"),className:"date-posted"},new Date(n.CreateDate).format("d mmmm yyyy")),React.createElement("span",{className:"divider"}),React.createElement("span",{className:"organisation"},"Department of Transport"))),React.createElement("a",{href:n.Url},React.createElement("div",{className:"image"},u)),React.createElement("h3",null,React.createElement("a",{href:n.Url},n.Name)),React.createElement("p",null,n.ShortDescription),React.createElement("span",{className:f},n.ResourceType),React.createElement("div",{className:"resource-links"},React.createElement("div",{className:"link"},React.createElement("a",{href:n.Url},"More info")),i)))},renderStory:function(n){var f=n.Url,i="",r="",u=React.createElement("span",{className:"label"}),t;return n.Author!==null&&(u=React.createElement("span",{className:"label"},n.Author.FirstName," ",n.Author.Surname)),t=React.createElement("time",{dateTime:new Date(n.CreateDate).format("yyyy-mm-dd HH:MM"),className:"date-posted"},new Date(n.CreateDate).format("d mmmm yyyy")),n.PublishDate!=null&&n.PublishDate!="0001-01-01T00:00:00"&&(t=React.createElement("time",{dateTime:new Date(n.PublishDate).format("yyyy-mm-dd HH:MM"),className:"date-posted"},new Date(n.PublishDate).format("d mmmm yyyy"))),r=n.RelatedActivity!==null?React.createElement("p",null,"This story is related to ",React.createElement("a",{className:"read-more",href:"/activities/?view="+n.RelatedActivity.Id}," ",React.createElement("b",null,n.RelatedActivity.Name)," ")," "):"",i=n.ActivityResourceUrl!==""?React.createElement("a",{className:"read-more",href:n.ActivityResourceUrl}," ",React.createElement("b",null,"For more information on how to do this, click here")," "):"",React.createElement("article",{className:"listing-item"},React.createElement("div",{className:"listing-item-inner"},React.createElement("header",null,u,React.createElement("div",{className:"details"},t,React.createElement("span",{className:"divider"}),React.createElement("a",{href:n.OrganisationUrl,className:"organisation"},n.OrganisationName)),React.createElement("h1",null,React.createElement("a",{href:n.Url},n.Name)),r,i),React.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:n.BodyContent}}),React.createElement("p",null,React.createElement("a",{href:n.Url,className:"read-more"},"Read more")),React.createElement("footer",{className:"story-footer"},React.createElement("a",{href:f,className:"comments"},React.createElement("span",null,n.CommentList.length," Comments")),React.createElement("span",{className:"divider"}),React.createElement("div",{className:"share"},"Share this:",React.createElement("div",{className:"addthis_sharing_toolbox"},React.createElement("a",{className:"addthis_button_twitter"},"Post to Twitter"),React.createElement("a",{className:"addthis_button_facebook"},"Post to Facebook"),React.createElement("a",{className:"addthis_button_linkedin"},"Post to LinkedIn"),React.createElement("a",{className:"addthis_button_email"},"Email a friend"))),React.createElement("div",{className:"points-awarded points-awarded-graphic"},React.createElement("span",null,n.Points)))))},renderEvent:function(n){var t="";return n.Image!=null&&(t=React.createElement("img",{src:n.Thumbnail,alt:n.Name})),React.createElement("div",{className:"listing-item"},React.createElement("div",{className:"listing-item-inner"},React.createElement("header",null,React.createElement("span",{className:"label"},"New Event"),React.createElement("div",{className:"details"},React.createElement("time",{dateTime:new Date(n.StartTime).format("yyyy-mm-dd HH:MM"),className:"date-posted"},new Date(n.StartTime).format("d mmmm yyyy")),React.createElement("span",{className:"divider"}),React.createElement("span",{className:"organisation"},"Department of Transport"))),React.createElement("a",{href:n.Url},React.createElement("div",{className:"image"},t)),React.createElement("h3",null,React.createElement("a",{href:n.Url},n.Name)),React.createElement("p",null,n.Description),React.createElement("div",{className:"resource-links"},React.createElement("div",{className:"link"},React.createElement("a",{href:n.Url},"More info")))))},renderPost:function(n){var r=n.Url,i=React.createElement("span",{className:"label"}),t;return n.Author!==null&&(i=React.createElement("span",{className:"label"},n.Author.FirstName," ",n.Author.Surname)),t=React.createElement("time",{dateTime:new Date(n.CreateDate).format("yyyy-mm-dd HH:MM"),className:"date-posted"},new Date(n.CreateDate).format("d mmmm yyyy")),n.PublishDate!=null&&n.PublishDate!="0001-01-01T00:00:00"&&(t=React.createElement("time",{dateTime:new Date(n.PublishDate).format("yyyy-mm-dd HH:MM"),className:"date-posted"},new Date(n.PublishDate).format("d mmmm yyyy"))),React.createElement("article",{className:"listing-item"},React.createElement("div",{className:"listing-item-inner"},React.createElement("header",null,i,React.createElement("div",{className:"details"},t,React.createElement("span",{className:"divider"}),n.FriendlyLocalGovernment),React.createElement("h1",null,React.createElement("a",{href:n.Url},n.Name))),React.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:n.BodyContent}}),React.createElement("p",null,React.createElement("a",{href:n.Url,className:"read-more"},"Read more")),React.createElement("footer",{className:"story-footer"},React.createElement("a",{href:r,className:"comments"},React.createElement("span",null,n.CommentList.length," Comments")))))},renderDefault:function(n){return n==null||n.Name==null||n.Name==undefined||n.Name===""?React.createElement("div",null):React.createElement("div",{className:"listing-item"},React.createElement("div",{className:"listing-item-inner"},React.createElement("span",{className:"label"},"NO AUTHOR"),n.Name,React.createElement("time",null,n.Created)))},render:function(){var n=this.props.item;switch(n.DocumentType){case"resource":return this.renderResource(n);case"story":return this.renderStory(n);case"post":return this.renderPost(n);case"event":return this.renderEvent(n);case"resourceFile":break;default:return this.renderDefault(n)}}}),PostsListing=React.createClass({displayName:"PostsListing",getInitialState:function(){return this.props.SelectedValues},updateDropdown:function(n,t){var i={};i[n]=t.newValue;this.setState(i)},restoredState:function(n){this.setState(n)},render:function(){var n=React.createElement("div",{className:"listing-filter"},"Showing posts related to ",React.createElement(Dropdown,{options:this.props.FilterTypes.CategoryList,value:this.state.Category,onChange:this.updateDropdown.bind(this,"Category"),id:"select-category",name:"Category"}));return React.createElement("div",{className:"listing-wrap post-list"},n,React.createElement(Listing,{Alias:"postsListing",ItemRenderer:this.renderItem,InitialData:this.props.Result,FilterValues:this.state,restoredState:this.restoredState}))}}),ProductList=React.createClass({displayName:"ProductList",getInitialState:function(){return this.getStateVals(this.props)},getStateVals:function(n){return{ProductList:n.ProductList,Category:n.Category,ProductType:n.ProductType,Sort:n.Sort,Page:1,Lightbox:React.createElement("div",null)}},filterUpdate:function(n,t){var r={Category:this.state.Category,ProductType:this.state.ProductType,Sort:this.state.Sort},i,u;r[n]=t.newValue;i=this;u=$.extend({altTemplate:"JSON",alias:"productList"},r),{}[n]=t.newValue;i=this;$.getJSON(location.protocol+"//"+location.host+location.pathname,u,function(n){i.setState(i.getStateVals(n))})},searchResults:function(n){this.setState({ProductList:n})},paginate:function(n){console.log("new page: ",n);this.setState({Page:n})},showLightbox:function(n,t,i,r,u){var e,f,o;console.log("showLightbox",n,i,r,u);e="icon-circle "+t;f=React.createElement("span",null);u!==undefined&&u!==null&&u.Name!==undefined&&(o="/Images/base/ribbon-"+u.Name.replace(" ","").toLowerCase()+".svg",f=React.createElement("div",{className:"accreditation-message"},React.createElement("img",{src:o})," ",React.createElement("span",null,"(",u.Name,": ",u.MinimumPoints,")"),React.createElement("div",{className:"accreditation-faq"},React.createElement("a",{href:"/organisation/how-does-accreditation-work/"},"Find out how accreditation works"))));this.setState({Lightbox:React.createElement("div",{className:"lightbox-react"},React.createElement("div",{className:"lightbox-wrap"},React.createElement("span",{className:e}),React.createElement("div",{className:"heading"},i),React.createElement("div",{dangerouslySetInnerHTML:{__html:r}}),f,React.createElement("div",{className:"close-window"},React.createElement("a",{href:"javascript:void(0);",onClick:this.closeLightbox},"Close window"))))},this.openLightbox)},openLightbox:function(){var n=$(this.refs.lightbox);$.fancybox.open(n)},closeLightbox:function(){$.fancybox.close()},clearLightbox:function(n){n.preventDefault();this.setState({Lightbox:React.createElement("div",null)})},addGrant:function(){var n=this.state.ProductList,t;for(t in n)n[t].IsGrant&&(n[t].GrantStatus="Redeemed");this.setState({ProductList:n})},render:function(){var u=this,s,i;this.changes={};var v=[],h=6,n=this.state.Page,c=this.state.ProductList.length,o=(n-1)*h,l=o+h;for(l>c&&(l=c),o<0&&(o=0),i=o;i<l;i++)s=this.state.ProductList[i],v.push(React.createElement(Product,{key:s.Id,data:s,incart:!1,showLightbox:this.showLightbox,onAddGrant:this.addGrant}));var t=Math.ceil(c/h),r=3,a=5,f,e;t<a?(f=1,e=t):n-r<=1?(f=1,e=a):n+r>=t?(console.log("currentPage - maxPagesEitherSide >= totalPages",n,r,n+r,t),f=t-a+1,e=t):(console.log("else"),f=n-r,e=n+r);var y="",p="",w=[];if(t>1){for(n>1&&(y=React.createElement("div",{className:"pagination-prev"},React.createElement("span",{className:"first-page",key:"f",onClick:function(){return u.paginate(1)}},"First page"),React.createElement("span",{className:"prev-page",key:"p",onClick:function(){u.paginate(n-1)}},"Previous"))),i=f;i<e+1;i++)w.push(i);n!=t&&(p=React.createElement("div",{className:"pagination-next"},React.createElement("span",{className:"next-page",key:"n",onClick:function(){u.paginate(n+1)}},"Next"),React.createElement("span",{className:"last-page",key:"l",onClick:function(){return u.paginate(t)}},"Last page")))}return React.createElement("div",null,React.createElement("div",{style:{display:"none"},ref:"lightbox"},this.state.Lightbox),React.createElement(RedeemBanner,{Expiry:this.props.Banner.Expiry,Title:this.props.Banner.Title,Subtitle:this.props.Banner.Subtitle,CartItems:this.props.Banner.CartItems,Points:this.props.Banner.Points,DisplayExpiry:this.props.Banner.DisplayExpiry,ShowSearch:!0,onSearch:this.searchResults}),React.createElement("div",{className:"product-list"},React.createElement("div",{className:"product-list-filter"},React.createElement("div",{className:"listing-filter"},"Show ",React.createElement(Dropdown,{options:this.props.ProductTypeList,value:this.state.ProductType,onChange:this.filterUpdate.bind(this,"ProductType"),id:"select-product-type",name:"ProductType"}),"related to ",React.createElement(Dropdown,{options:this.props.CategoryList,value:this.state.Category,onChange:this.filterUpdate.bind(this,"Category"),id:"select-category",name:"Category"})),React.createElement("div",{className:"product-sort"},React.createElement("div",{className:"contourField dropdown"},React.createElement("label",{htmlFor:"select-sort"},"Sort by:"),React.createElement("div",{className:"styled-select"},React.createElement(Dropdown,{options:this.props.SortByList,value:this.state.Sort,onChange:this.filterUpdate.bind(this,"Sort"),id:"select-sort"}))))),React.createElement("div",{className:"products"},v),React.createElement("div",{className:"pagination"},y,w.map(function(t){return t==n?React.createElement("span",{className:"num-page current-page",key:t},t):React.createElement("span",{"data-index":t,className:"num-page",key:t,onClick:function(){u.paginate(t)}},t)}),p)))}}),Product=React.createClass({displayName:"Product",getInitialState:function(){return this.props.data},changeQty:function(n){var t=n.target.value;this.props.onUpdate(this.state.Id,t)},addToCart:function(){var n={id:this.props.data.Id},t=this;$.post("/Umbraco/Surface/ShoppingCart/AddProduct",n,function(){t.setState({incart:!0});window.updateCart!==undefined&&window.updateCart(!0)})},unlockGrant:function(){if(console.log("this.props.data",this.props.data),this.props.data.GrantStatus==="Date"){this.props.showLightbox(this.props.data.GrantStatus,"pending","Grant period is not open","<p>Please note grant period starts 1st July.<\/p>");return}if(this.props.data.GrantStatus==="Limit"){this.props.showLightbox(this.props.data.GrantStatus,"boxes","Grant limit exceeded","<p>Please note grants can only be redeemed once per financial year.<\/p>");return}if(this.props.data.GrantStatus==="Redeemed"){this.props.showLightbox(this.props.data.GrantStatus,"boxes","Grant limit exceeded","<p>Please note that Grants can only be redeemed once per financial year. As you have already selected a Grant, to continue shopping please remove one of the Grants from your cart.<\/p><a class='btn' href='/redeem-points/cart'>View cart<\/a>");return}if(this.props.data.GrantStatus==="Accreditation"){this.props.showLightbox(this.props.data.GrantStatus,"unlock","Unlock this grant","<p>This awesome grant is currently open til December 31 and you're so close... however this year you haven't quite reached the accreditation level that's required.<\/p><p>Accreditation required to redeem this grant:<\/p>",this.props.data.AccreditationRule);return}this.props.onAddGrant!==undefined&&this.props.onAddGrant();var n={id:this.props.data.Id},t=this;$.post("/Umbraco/Surface/ShoppingCart/AddProduct",n,function(){t.setState({incart:!0});window.updateCart!==undefined&&window.updateCart(!0)})},render:function(){var n=this.state.Image,t,i,r,u,f;n!==undefined&&n!==""&n!=null&&(n=React.createElement("img",{src:n.ResourceThumbnailImageUrl,alt:this.state.Name}));t="btn small";i="msg-added";this.state.incart?(t+=" added",i+=" added"):(t="btn small",i="msg-added");var h=React.createElement("button",{type:"button",onClick:this.addToCart,className:t},"Add to cart"),c=React.createElement("button",{type:"button",onClick:this.unlockGrant,className:t},"Unlock grant"),e=React.createElement("span",{className:i},"Added!"),o=React.createElement("span",null);if(this.state.Featured&&(o=React.createElement("span",{className:"featured-tag"},"Featured")),r=React.createElement("span",null),this.state.IsGrant){var s=this.state.AccreditationRule.Name.replace(" ","").toLowerCase(),l="accreditation "+s,a="/Images/base/ribbon-"+s+".svg";r=React.createElement("div",null,React.createElement("div",{className:l},React.createElement("img",{src:a,alt:this.state.AccreditationRule.Name})),React.createElement("div",{className:"buttons"},React.createElement("div",null,React.createElement("a",{href:this.state.Url},"View Details")),React.createElement("span",null,c,e)))}return u=React.createElement("span",null),this.state.IsProduct&&(u=React.createElement("div",null,React.createElement("span",{className:"cost"},this.state.Cost," points"),React.createElement("div",{className:"buttons"},React.createElement("div",null,React.createElement("a",{href:this.state.Url},"View Details")),React.createElement("span",null,h,e)))),f="product-wrap",this.state.IsGrant&&(f+=" grant "+this.state.AccreditationRule.Name.replace(" ","").toLowerCase()),React.createElement("div",{className:"product"},o,React.createElement("div",{className:f},React.createElement("div",{className:"product-inner"},React.createElement("div",{className:"image"},React.createElement("a",{href:this.state.Url},n)),React.createElement("div",{className:"details"},React.createElement("h3",null,React.createElement("a",{href:this.state.Url},this.state.Name)),u,r))))}}),RedeemBanner=React.createClass({displayName:"RedeemBanner",getInitialState:function(){var n=new Date(this.props.Expiry);return{Title:this.props.Title,Subtitle:this.props.Subtitle,Points:this.props.Points,Expiry:n.toDateString(),CartItems:this.props.CartItems,DisplayExpiry:this.props.DisplayExpiry,Searching:!1}},updateData:function(n){var t=this,i;n!==undefined&&n==!0&&t.setState({CartItems:this.state.CartItems+1});i=$.extend({altTemplate:"JSON",alias:"redeemBanner"},this.props.FilterValues);$.getJSON(location.protocol+"//"+location.host+location.pathname,i,function(n){t.setState(n)})},search:function(n){var i=n.target.value,t=this;this.setState({Searching:!0});$.getJSON(location.protocol+"//"+location.host+location.pathname+"?altTemplate=JSON&alias=productList&term="+i,function(n){if(console.log("search",n),t.setState({Searching:!1}),t.props.onSearch!==undefined)t.props.onSearch(n.ProductList)})},componentWillMount:function(){this.search=debounce(this.search,500)},render:function(){var r=this,n,t,i;return typeof window!="undefined"&&(window.updateCart=this.updateData),n=React.createElement("div",null),this.state.Searching&&(n=React.createElement("div",{className:"search-spinner"},React.createElement("div",{className:"spinner sk-fading-circle"},React.createElement("div",{className:"sk-circle1 sk-circle"}),React.createElement("div",{className:"sk-circle2 sk-circle"}),React.createElement("div",{className:"sk-circle3 sk-circle"}),React.createElement("div",{className:"sk-circle4 sk-circle"}),React.createElement("div",{className:"sk-circle5 sk-circle"}),React.createElement("div",{className:"sk-circle6 sk-circle"}),React.createElement("div",{className:"sk-circle7 sk-circle"}),React.createElement("div",{className:"sk-circle8 sk-circle"}),React.createElement("div",{className:"sk-circle9 sk-circle"}),React.createElement("div",{className:"sk-circle10 sk-circle"}),React.createElement("div",{className:"sk-circle11 sk-circle"}),React.createElement("div",{className:"sk-circle12 sk-circle"})))),t="",this.state.CartItems>0&&(t=React.createElement("span",{className:"cart-items"},this.state.CartItems)),i=React.createElement("div",null),this.props.ShowSearch&&(i=React.createElement("div",{className:"search"},React.createElement("label",{htmlFor:"search-rewards"},"Search rewards"),React.createElement("input",{id:"search-rewards",type:"text",onChange:function(n){n.persist();r.search(n)}}),n)),React.createElement("header",{className:"page-header"},React.createElement("div",{className:"bg"}),React.createElement("div",{className:"content"},React.createElement("h1",null,this.state.Title),React.createElement("p",null,this.state.Subtitle),i),React.createElement("div",{className:"cart-button"},React.createElement("a",{href:"/redeem-points/cart",className:"btn"},"View Cart",t)))}}),ResourceListing=React.createClass({displayName:"ResourceListing",getInitialState:function(){return{Audience:this.props.SelectedValues.Audience}},hideSpinner:function(){$(".sk-cube-grid").hide();$(".column-wrap").show()},showSpinner:function(){$(".sk-cube-grid").show();$(".column-wrap").hide()},updateDropdown:function(n,t){this.showSpinner();var i={};i[n]=t.newValue;this.setState(i)},restoredState:function(n){this.setState(n)},componentDidUpdate:function(){this.hideSpinner()},renderItem:function(n){var i,t,u,r,f,e;if(n.Image!=null)i=React.createElement("img",{src:n.Image.ResourceThumbnailImageUrl,alt:n.Name});else{n.File!=null&&n.File.Url!=null&&(t=n.File.Url.split(".")[1]);n.ResourceLink!=null&&Object.keys(n.ResourceLink).length>0&&n.ResourceLink.Url!=null&&(t=n.ResourceLink.Url.split(".")[1]);switch(t){case"pdf":i=React.createElement("img",{src:"/Images/base/bg-resource-PDF.svg",alt:n.Name});t="Pdf";break;case"xls":case"xlsx":i=React.createElement("img",{src:"/Images/base/bg-resource-Excel.svg",alt:n.Name});t="Excel";break;case"doc":case"docx":i=React.createElement("img",{src:"/Images/base/bg-resource-doc.svg",alt:n.Name});t="Document";break;default:i=React.createElement("img",{src:"/Images/base/bg-resource-doc.svg",alt:n.Name});t="Document"}}var h="resource-type "+t,o="",s=React.createElement("h3",null,React.createElement("a",{href:n.Url,target:"_blank",download:r},n.Name));return(n.ResourceType=="Video"||n.ResourceType=="Website"||n.ResourceType=="Document"||n.IsResourceFile)&&(console.log("video,web,doc,resource"),u="",r=!1,n.ResourceType=="Video"?u="Watch video":n.ResourceType=="Website"?u="Visit website":(n.ResourceType=="Document"||n.IsResourceFile)&&(console.log("doc,resource"),u="Download",r=!0),n.ResourceLink!=null&&(o=React.createElement("div",{className:"link"},React.createElement("a",{href:n.ResourceLink.Url,className:"direct-link",target:"_blank",download:r},React.createElement("span",null,u))),s=React.createElement("h3",null,React.createElement("a",{href:n.ResourceLink.Url,target:"_blank",download:r},n.Name))),n.File!=null&&(o=React.createElement("div",{className:"link"},React.createElement("a",{href:n.File.Url,className:"direct-link",target:"_blank",download:r},React.createElement("span",null,u))),s=React.createElement("h3",null,React.createElement("a",{href:n.File.Url,target:"_blank",download:r},n.Name)))),f=React.createElement("div",{className:"link"},React.createElement("a",{href:n.Url},"More info")),e=React.createElement("a",{href:n.Url},React.createElement("div",{className:"image"},i)),n.File!=null&&(f=React.createElement("div",null),e=React.createElement("a",{href:n.File.Url,target:"_blank",download:n.File.AltText},React.createElement("div",{className:"image"},i))),React.createElement("div",{className:"listing-item",key:n.Name},React.createElement("div",{className:"listing-item-inner"},e,s,React.createElement("p",null,n.ShortDescription),React.createElement("span",{className:h},n.ResourceType),React.createElement("div",{className:"resource-links"},f,o)))},render:function(){var t=React.createElement("div",{className:"sk-cube-grid"},React.createElement("div",{className:"sk-cube sk-cube1"}),React.createElement("div",{className:"sk-cube sk-cube2"}),React.createElement("div",{className:"sk-cube sk-cube3"}),React.createElement("div",{className:"sk-cube sk-cube4"}),React.createElement("div",{className:"sk-cube sk-cube5"}),React.createElement("div",{className:"sk-cube sk-cube6"}),React.createElement("div",{className:"sk-cube sk-cube7"}),React.createElement("div",{className:"sk-cube sk-cube8"}),React.createElement("div",{className:"sk-cube sk-cube9"})),n=React.createElement("div",{className:"listing-filter"},"Showing ",React.createElement(Dropdown,{options:this.props.FilterTypes.ResourceTypes,value:this.state.Resource,onChange:this.updateDropdown.bind(this,"Resource"),id:"select-showing",name:"Resource"})," for ",React.createElement(Dropdown,{options:this.props.FilterTypes.AudienceTypes,value:this.state.Audience,onChange:this.updateDropdown.bind(this,"Audience"),id:"select-audience",name:"Audience"})," related to ",React.createElement(Dropdown,{options:this.props.FilterTypes.Categories,value:this.state.Category,onChange:this.updateDropdown.bind(this,"Category"),id:"select-category",name:"Category"}));return this.props.HideFilter&&(n=React.createElement("div",null)),React.createElement("div",{className:"listing-wrap resource-listing"},n,React.createElement("div",{className:"column-wrap"},React.createElement(Listing,{Alias:"resourceListing",ItemRenderer:this.renderItem,InitialData:this.props.Result,FilterValues:this.state,restoredState:this.restoredState})),t)}}),ShoppingCart=React.createClass({displayName:"ShoppingCart",getInitialState:function(){return{ShoppingCart:this.props.ShoppingCart,CurrentPoints:this.props.CurrentPoints,Errors:this.props.Errors,AddressFields:{StreetAddress:{Label:"Street Address",Value:this.props.Address.StreetAddress,Error:""},Suburb:{Label:"Suburb",Value:this.props.Address.Suburb,Error:""},Postcode:{Label:"Postcode",Value:this.props.Address.Postcode,Error:""},ContactName:{Label:"Contact Name",Value:this.props.Address.ContactName,Error:""},ContactNumber:{Label:"Contact Number",Value:this.props.Address.ContactNumber,Error:""}}}},changeQty:function(n,t){var i=this.state.ShoppingCart,r;for(r in i.LineItems)i.LineItems[r].Id==n&&(i.LineItems[r].Quantity=t);this.setState({ShoppingCart:i,CartUnsaved:!0})},remove:function(n){var t=this.state.ShoppingCart,i;for(i in t.LineItems)t.LineItems[i].Id==n&&(t.LineItems[i].Quantity=0,t.LineItems[i].Hide=!0);this.setState({ShoppingCart:t,CartUnsaved:!0});this.updateCart()},submit:function(){var n=this;this.updateAll(function(){var u=!0,t=n.state.AddressFields,i,r;for(i in t)r=t[i].Value,r==undefined||r==null||r==""?(t[i].Error=t[i].Label+" cannot be blank",u=!1):t[i].Error="";u?window.location="/redeem-points/checkout":n.setState({AddressFields:t,CartUnsaved:!0})})},updateCart:function(){var n=this;this.updateAll(function(){n.setState({CartUnsaved:!1})})},updateAll:function(n){var u={quantities:{},address:{}},i=this.state.ShoppingCart.LineItems,t,r;for(t in i)i.hasOwnProperty(t)&&(u.quantities[i[t].Id]=i[t].Quantity);r=this.state.AddressFields;for(t in r)r.hasOwnProperty(t)&&(u.address[t]=r[t].Value);return $.post("/Umbraco/Surface/ShoppingCart/UpdateCart",u,n),this},updateField:function(n,t){var i=this.state.AddressFields;i[n].Value=t.target.value;this.setState({AddressFields:i,CartUnsaved:!0})},render:function(){var a=this,r=0,v=function(n){return React.createElement(LineItem,{key:n.Id,id:n.Id,data:n,onUpdate:a.changeQty,onRemove:a.remove})},f=this.state.ShoppingCart.LineItems,t,u,e,o,n,i,s,h,c,l;for(t in f)f.hasOwnProperty(t)&&(u=f[t],u.Hide!==!0&&(r+=u.Product.Cost*u.Quantity));e="";r>this.state.CurrentPoints&&(e="insufficient-funds");o=[];for(n in this.state.AddressFields)i=this.state.AddressFields[n],s="",i.Error&&(s=React.createElement("span",{key:n,className:"error invalid"},i.Error)),o.push(React.createElement("div",{key:n,className:"contourField shortanswer"},React.createElement("label",{htmlFor:n},i.Label),React.createElement("input",{id:n,type:"text",value:i.Value?i.Value:"",onChange:this.updateField.bind(this,n)}),s));h=[];for(t in this.state.Errors)h.push(React.createElement("span",{key:t,className:"error invalid"},this.state.Errors[t]));return c="",this.state.CartUnsaved&&(c=React.createElement("span",null,"Click update to save changes")),l="",this.state.CurrentPoints-r>=0&&(l=React.createElement("div",{className:"form-wrap delivery-details"},React.createElement("span",{className:"icon-circle sign-up"}),React.createElement("h2",null,"Where should we deliver your products"),React.createElement("div",{className:"contour"},React.createElement("form",{method:"post"},o,React.createElement("button",{type:"button",className:"btn",onClick:this.submit},"Proceed to checkout"))))),React.createElement("div",null,React.createElement("div",{className:"shopping-cart"},React.createElement("div",{className:"legend"},React.createElement("span",{className:"product-label"},"Product"),React.createElement("div",{className:"other-labels"},React.createElement("span",null,"Points"),React.createElement("span",null),React.createElement("span",null,"Quantity"),React.createElement("span",null),React.createElement("span",null,"Total"))),React.createElement("div",{className:"list-of-items"},this.state.ShoppingCart.LineItems.map(v)),React.createElement("div",{className:"update-cart"},c,React.createElement("button",{type:"button",className:"btn",onClick:this.updateCart},"Update cart")),React.createElement("div",{className:"cart-totals"},React.createElement("div",{className:"total-line"},React.createElement("span",{className:"label"},"Cart Total"),React.createElement("span",{className:"value"},r)),React.createElement("div",{className:"total-line"},React.createElement("span",{className:"label"},"Current points balance"),React.createElement("span",{className:"value"},this.state.CurrentPoints)),React.createElement("div",{className:"total-line "+e},React.createElement("span",{className:"label"},"Balance remaining after order"),React.createElement("span",{className:"value"},this.state.CurrentPoints-r),React.createElement("span",{className:"insufficient-funds-message"},"Sorry, you don't have enough points for this order.")))),l,React.createElement("div",{className:"backend-errors"},h))}}),StoriesListing=React.createClass({displayName:"StoriesListing",getInitialState:function(){return this.props.SelectedValues},updateDropdown:function(n,t){var i={};i[n]=t.newValue;this.setState(i)},restoredState:function(n){this.setState(n)},render:function(){var n=React.createElement("div",{className:"listing-filter"},"Showing ",this.props.OrganisationTypeString," stories related to ",React.createElement(Dropdown,{options:this.props.FilterTypes.StoryCategories,value:this.state.Category,onChange:this.updateDropdown.bind(this,"Category"),id:"select-category",name:"Category"})),t;return this.props.FilterTypes.HideFilter!=null&&this.props.FilterTypes.HideFilter==!0&&(t=this.props.FilterTypes.Organisation.endsWith("s")?this.props.FilterTypes.Organisation+"'":this.props.FilterTypes.Organisation+"'s",n=React.createElement("h2",null,t," stories")),React.createElement("div",{className:"listing-wrap"},n,React.createElement(Listing,{Alias:"storiesListing",ItemRenderer:this.renderItem,InitialData:this.props.Result,FilterValues:this.state,restoredState:this.restoredState}))}}),SurveyComparison=React.createClass({displayName:"SurveyComparison",getInitialState:function(){return{SurveyData:this.props.Data,LeftId:this.props.Data.SurveyIdLeft,RightId:this.props.Data.SurveyIdRight}},updateDropdown:function(n,t){var i=this,r={};r[n]=t.newValue;this.setState(r,function(){if(history.pushState){var n=window.location.protocol+"//"+window.location.host+window.location.pathname+"?surveyIdLeft="+i.state.LeftId+"&surveyIdRight="+i.state.RightId;window.history.pushState({path:n},"",n)}$.getJSON("/survey/compare/",{altTemplate:"JSON",alias:"surveyComparison",surveyIdLeft:i.state.LeftId,surveyIdRight:i.state.RightId},function(n){i.setState({SurveyData:n,LeftId:n.SurveyIdLeft,RightId:n.SurveyIdRight},function(){window.drawCharts!==undefined&&window.drawCharts()})})})},render:function(){var n=this,t=this.state.SurveyData.HandsUpSurveyLeft,i=this.state.SurveyData.HandsUpSurveyRight;return React.createElement("div",null,React.createElement("header",{className:"page-header"},React.createElement("div",{className:"bg"}),React.createElement("div",{className:"content"},React.createElement("h1",null,"Compare Results"))),React.createElement("div",{className:"row-2column"},React.createElement("div",{className:"container"},React.createElement("div",{className:"row"},React.createElement("div",{className:"col-md-6"},React.createElement("div",{className:"survey-details"},React.createElement("div",{className:"listing-filter"},React.createElement(Dropdown,{options:n.props.Data.FilterList,value:n.state.LeftId,onChange:n.updateDropdown.bind(n,"LeftId"),id:"select-report-left",name:"Report left column"})),React.createElement(SurveyComparisonItem,{item:t}))),React.createElement("div",{className:"col-md-6"},React.createElement("div",{className:"survey-details"},React.createElement("div",{className:"listing-filter"},React.createElement(Dropdown,{options:n.props.Data.FilterList,value:n.state.RightId,onChange:n.updateDropdown.bind(n,"RightId"),id:"select-report-right",name:"Report right column"})),React.createElement(SurveyComparisonItem,{item:i})))))))}}),SurveyComparisonItem=React.createClass({displayName:"SurveyComparisonItem",render:function(){var l=this,n=this.props.item;if(n==null)return React.createElement("div",{className:"compare-blank"},"Select a report to compare");var t=n.CommuteDriving+n.CommutePublicTransport+n.CommuteRiding+n.CommuteWalking,e=n.CommutePublicTransport+n.CommuteRiding+n.CommuteWalking,o=parseFloat(n.ChangeDriving.DisplayValue).toFixed(0),s=parseFloat(n.ChangeWalking.DisplayValue).toFixed(0),h=parseFloat(n.ChangePublicTransport.DisplayValue).toFixed(0),c=parseFloat(n.ChangeCycling.DisplayValue).toFixed(0),i=Math.floor(n.CommuteDriving/t*100),r=Math.floor(n.CommuteWalking/t*100),u=Math.floor(n.CommutePublicTransport/t*100),f=Math.floor(n.CommuteRiding/t*100);return React.createElement("div",{key:this.props.key},React.createElement("div",{className:"report-item commute-trips no-animate",key:this.props.key},React.createElement("div",{className:"report-item-inner"},React.createElement("h3",null,"Total student commute trips this survey"),React.createElement("div",{className:"bar-graph-wrap"},React.createElement("div",{className:"bar-graph-item mode-car"},React.createElement("div",{className:"bar",style:{width:i+"%"}},React.createElement("span",{className:"label"},React.createElement("span",null,n.CommuteDriving)," (",i,"%)"))),React.createElement("div",{className:"bar-graph-item mode-rode"},React.createElement("div",{className:"bar",style:{width:f+"%"}},React.createElement("span",{className:"label"},React.createElement("span",null,n.CommuteRiding)," (",f,"%)"))),React.createElement("div",{className:"bar-graph-item mode-public"},React.createElement("div",{className:"bar",style:{width:u+"%"}},React.createElement("span",{className:"label"},React.createElement("span",null,n.CommutePublicTransport)," (",u,"%)"))),React.createElement("div",{className:"bar-graph-item mode-walked"},React.createElement("div",{className:"bar",style:{width:r+"%"}},React.createElement("span",{className:"label"},React.createElement("span",null,n.CommuteWalking)," (",r,"%)")))),React.createElement("p",null,"Based on ",t," survey participants"))),React.createElement("div",{className:"report-item piechart"},React.createElement("div",{className:"report-item-inner"},React.createElement("h3",null,"Active transport versus car"),React.createElement("div",{className:"piechart-graph transport","data-slice-car":n.CommuteDriving,"data-slice-other":e,"data-legend-position":"bottom","data-legend-alignment":"start"}),React.createElement("p",null,"Based on ",t," survey participants"))),!n.IsFirst&&React.createElement("div",{className:"report-item stats-overview"},React.createElement("div",{className:"report-item-inner"},React.createElement("h3",null,"Behaviour Change Results"),React.createElement("div",{className:"stat-list"},React.createElement("div",{className:"stat mode-car"},React.createElement("span",{className:"value"},o,"%"),React.createElement("strong",null,n.ChangeDriving.Change," in driving"),React.createElement("br",null)),React.createElement("div",{className:"stat mode-walked"},React.createElement("span",{className:"value"},s,"%"),React.createElement("strong",null,n.ChangeWalking.Change," in walking"),React.createElement("br",null)),React.createElement("div",{className:"stat mode-public"},React.createElement("span",{className:"value"},h,"%"),React.createElement("strong",null,n.ChangePublicTransport.Change," in public transport"),React.createElement("br",null)),React.createElement("div",{className:"stat mode-rode"},React.createElement("span",{className:"value"},c,"%"),React.createElement("strong",null,n.ChangeCycling.Change," in cycling"),React.createElement("br",null))))))}}),TopStoriesListing=React.createClass({displayName:"TopStoriesListing",getInitialState:function(){return{SelectedAudience:this.props.SelectedAudience,Stories:this.props.Stories,AudienceTypes:this.props.AudienceTypes,IsSearching:!1}},updateStories:function(n,t){var i=this,r={};r[n]=t.newValue;i.setState(r);clearTimeout(this.searchTimeout);this.searchTimeout=setTimeout(function(){i.setState({IsSearching:!0});$.getJSON(window.location,{altTemplate:"JSON",alias:"topStorieslisting",audience:i.state.SelectedAudience,refresh:!0},function(n){i.setState({Stories:n.Stories,IsSearching:!1})})},200)},render:function(){var u=this,r=function(n){return React.createElement("div",{key:n.Id,className:"ladder-item"},React.createElement("div",{className:"name"},React.createElement("a",{href:n.Url},n.Name)),React.createElement("div",{className:"organisation"},React.createElement("a",{href:n.Organisation.Url},n.Organisation.Name)),React.createElement("div",{className:"comments"},React.createElement("span",null,n.CommentCount)),React.createElement("div",{className:"points"},n.Points," pts"))},i="",n,t;return this.props.IsLocalGovernment&&(i="in your area"),n="",this.state.IsSearching&&(n=React.createElement("div",{className:"loading-message"},React.createElement("img",{alt:"Loading",src:"/Images/ajax-loader.gif"}))),t="",this.state.Stories.length==0&&(t=React.createElement("div",null,"Sorry there are no stories created yet for this category please try again later")),React.createElement("section",{className:"top-stories-listing"},React.createElement("div",{className:"listing-filter"},"Top stories from  ",React.createElement(Dropdown,{options:this.props.AudienceTypes,value:this.state.SelectedAudience,onChange:this.updateStories.bind(this,"SelectedAudience"),id:"select-audience",name:"Audience"}),i),React.createElement("div",{className:"ladder"},n,this.state.Stories.map(r),t))}});(function(n,t){(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&(typeof module=="undefined"?"undefined":_typeof(module))==="object"?module.exports=t(require("leaflet"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["leaflet","react","react-dom"],t):(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"?exports.ReactLeaflet=t(require("leaflet"),require("react"),require("react-dom")):n.ReactLeaflet=t(n.L,n.React,n.ReactDOM)})(this,function(n,t,i){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t.default=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}var u;t.__esModule=!0;t.setIconDefaultImagePath=t.ZoomControl=t.WMSTileLayer=t.TileLayer=t.ScaleControl=t.Rectangle=t.Popup=t.Polyline=t.Polygon=t.Path=t.MultiPolyline=t.MultiPolygon=t.Marker=t.MapLayer=t.MapControl=t.MapComponent=t.Map=t.LayersControl=t.LayerGroup=t.ImageOverlay=t.GeoJson=t.FeatureGroup=t.CircleMarker=t.Circle=t.CanvasTileLayer=t.BaseTileLayer=t.AttributionControl=t.PropTypes=undefined;var e=i(1),o=r(e),s=i(2),h=f(s),c=i(11),l=r(c),a=i(14),v=r(a),y=i(89),p=r(y),w=i(90),b=r(w),k=i(111),d=r(k),g=i(112),nt=r(g),tt=i(113),it=r(tt),rt=i(114),ut=r(rt),ft=i(115),et=r(ft),ot=i(116),st=r(ot),ht=i(117),ct=r(ht),lt=i(16),at=r(lt),vt=i(12),yt=r(vt),pt=i(15),wt=r(pt),bt=i(131),kt=r(bt),dt=i(132),gt=r(dt),ni=i(133),ti=r(ni),ii=i(91),ri=r(ii),ui=i(134),fi=r(ui),ei=i(135),oi=r(ei),si=i(136),hi=r(si),ci=i(138),li=r(ci),ai=i(139),vi=r(ai),yi=i(140),pi=r(yi),wi=i(141),bi=r(wi),ki=i(142),di=r(ki);t.PropTypes=h;t.AttributionControl=l.default;t.BaseTileLayer=v.default;t.CanvasTileLayer=p.default;t.Circle=b.default;t.CircleMarker=d.default;t.FeatureGroup=nt.default;t.GeoJson=it.default;t.ImageOverlay=ut.default;t.LayerGroup=et.default;t.LayersControl=st.default;t.Map=ct.default;t.MapComponent=at.default;t.MapControl=yt.default;t.MapLayer=wt.default;t.Marker=kt.default;t.MultiPolygon=gt.default;t.MultiPolyline=ti.default;t.Path=ri.default;t.Polygon=fi.default;t.Polyline=oi.default;t.Popup=hi.default;t.Rectangle=li.default;t.ScaleControl=vi.default;t.TileLayer=pi.default;t.WMSTileLayer=bi.default;t.ZoomControl=di.default;u=t.setIconDefaultImagePath=function(n){o.default.Icon.Default.imagePath=n};u("//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images")},function(t){t.exports=n},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}t.__esModule=!0;t.map=t.layerContainer=t.latlngList=t.latlng=t.controlPosition=t.children=t.bounds=undefined;var u=i(3),f=r(u),e=i(7),o=r(e),s=i(8),h=r(s),c=i(6),l=r(c),a=i(5),v=r(a),y=i(9),p=r(y),w=i(10),b=r(w);t.bounds=f.default;t.children=o.default;t.controlPosition=h.default;t.latlng=l.default;t.latlngList=v.default;t.layerContainer=p.default;t.map=b.default},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}t.__esModule=!0;var r=i(4),f=i(1),e=i(5),o=u(e);t.default=r.PropTypes.oneOfType([r.PropTypes.instanceOf(f.LatLngBounds),o.default])},function(n){n.exports=t},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}t.__esModule=!0;var u=i(4),f=i(6),e=r(f);t.default=u.PropTypes.arrayOf(e.default)},function(n,t,i){"use strict";t.__esModule=!0;var r=i(4);t.default=r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.number),r.PropTypes.shape({lat:r.PropTypes.number,lng:r.PropTypes.number}),r.PropTypes.shape({lat:r.PropTypes.number,lon:r.PropTypes.number})])},function(n,t,i){"use strict";t.__esModule=!0;var r=i(4);t.default=r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.node),r.PropTypes.node])},function(n,t,i){"use strict";t.__esModule=!0;var r=i(4);t.default=r.PropTypes.oneOf(["topleft","topright","bottomleft","bottomright"])},function(n,t,i){"use strict";t.__esModule=!0;var r=i(4);t.default=r.PropTypes.shape({addLayer:r.PropTypes.func.isRequired,removeLayer:r.PropTypes.func.isRequired})},function(n,t,i){"use strict";t.__esModule=!0;var r=i(1),u=i(4);t.default=u.PropTypes.instanceOf(r.Map)},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var h=i(1),c=i(4),l=i(12),a=u(l);r=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.componentWillMount=function(){this.leafletElement=h.control.attribution(this.props)},t}(a.default);r.propTypes={prefix:c.PropTypes.string};t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var h=i(4),c=i(13),l=u(c),a=i(8),v=u(a),y=i(10),p=u(y);r=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.componentDidMount=function(){this.leafletElement.addTo(this.context.map)},t.prototype.componentDidUpdate=function(n){this.props.position!==n.position&&this.leafletElement.setPosition(this.props.position)},t.prototype.componentWillUnmount=function(){this.leafletElement.removeFrom(this.context.map)},t.prototype.getLeafletElement=function(){return l.default(!1,'The "getLeafletElement()" method is deprecated and will be removed in the next version, simply use the "leafletElement" property instead.'),this.leafletElement},t.prototype.render=function(){return null},t}(h.Component);r.propTypes={position:v.default};r.contextTypes={map:p.default};t.default=r},function(n){"use strict";var t=function(){};0||(t=function(n,t,i){var u=arguments.length,r,f,e;for(i=new Array(u>2?u-2:0),r=2;r<u;r++)i[r-2]=arguments[r];if(t===undefined)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!n){f=0;e="Warning: "+t.replace(/%s/g,function(){return i[f++]});typeof console!="undefined";try{throw new Error(e);}catch(o){}}});n.exports=t},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):e(n,t))}var r;t.__esModule=!0;var u=i(4),c=i(15),l=f(c);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentDidUpdate=function(n){var t=this.props,i=t.opacity,r=t.zIndex;i!==n.opacity&&this.leafletElement.setOpacity(i);r!==n.zIndex&&this.leafletElement.setZIndex(r)},t.prototype.render=function(){return null},t}(l.default);r.propTypes={opacity:u.PropTypes.number,zIndex:u.PropTypes.number};t.default=r},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var u;t.__esModule=!0;var h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=i(4),l=r(c),a=i(7),v=r(a),y=i(9),p=r(y),w=i(10),b=r(w),k=i(16),d=r(k);u=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.layerContainer.addLayer(this.leafletElement)},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.layerContainer.removeLayer(this.leafletElement)},t.prototype.render=function(){return l.default.createElement("div",{style:{display:"none"}},this.props.children)},h(t,[{key:"layerContainer",get:function(){return this.context.layerContainer||this.context.map}}]),t}(d.default);u.propTypes={children:v.default};u.contextTypes={layerContainer:p.default,map:b.default};t.default=u},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):o(n,t))}var u,e;t.__esModule=!0;var l=i(17),a=r(l),v=i(23),y=r(v),p=i(33),f=r(p),w=i(35),b=r(w),k=i(4),d=i(13),g=r(d);u=/^on(.+)$/i;e=function(n){function t(i,r){s(this,t);var u=h(this,n.call(this,i,r));return u._leafletEvents={},u}return c(t,n),t.prototype.componentWillMount=function(){this._leafletEvents=this.extractLeafletEvents(this.props)},t.prototype.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents,{})},t.prototype.componentWillReceiveProps=function(n){var t=this.extractLeafletEvents(n);this._leafletEvents=this.bindLeafletEvents(t,this._leafletEvents)},t.prototype.componentWillUnmount=function(){var n=this.leafletElement;n&&f.default(this._leafletEvents,function(t,i){n.off(i,t)})},t.prototype.getLeafletElement=function(){return g.default(!1,'The "getLeafletElement()" method is deprecated and will be removed in the next version, simply use the "leafletElement" property instead.'),this.leafletElement},t.prototype.extractLeafletEvents=function(n){return a.default(y.default(n),function(t,i){if(u.test(i)){var r=i.replace(u,function(n,t){return t.toLowerCase()});t[r]=n[i]}return t},{})},t.prototype.bindLeafletEvents=function(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},t=this.leafletElement,i;return!t||!t.on?{}:(i=b.default(n),f.default(n,function(n,u){r[u]&&n===r[u]||(delete i[u],t.off(u,n))}),f.default(r,function(r,u){if(!n[u]||r!==n[u]){i[u]=r;t.on(u,r)}}),i)},t.prototype.fireLeafletEvent=function(n,t){var i=this.leafletElement;i&&i.fire(n,t)},t}(k.Component);t.default=e},function(n,t,i){function r(n,t,i){var r=s(n)?u:o,h=arguments.length<3;return r(n,e(t,4),i,h,f)}var u=i(18),f=i(19),e=i(30),o=i(31),s=i(32);n.exports=r},function(n){function t(n,t,i,r){var u=-1,f=n?n.length:0;for(r&&f&&(i=n[++u]);++u<f;)i=t(i,n[u],u,n);return i}n.exports=t},function(n,t,i){var r=i(20),u=i(25),f=u(r);n.exports=f},function(n,t,i){function r(n,t){return n&&u(n,t,f)}var u=i(21),f=i(23);n.exports=r},function(n,t,i){var r=i(22),u=r();n.exports=u},function(n){function t(n){return function(t,i,r){for(var s=-1,f=Object(t),e=r(t),o=e.length,u;o--;)if(u=e[n?o:++s],i(f[u],u,f)===!1)break;return t}}n.exports=t},function(n,t,i){var r=i(24),u=r(Object.keys,Object);n.exports=u},function(n){function t(n,t){return function(i){return n(t(i))}}n.exports=t},function(n,t,i){function r(n,t){return function(i,r){if(i==null)return i;if(!u(i))return n(i,r);for(var e=i.length,f=t?e:-1,o=Object(i);t?f--:++f<e;)if(r(o[f],f,o)===!1)break;return i}}var u=i(26);n.exports=r},function(n,t,i){function r(n){return n!=null&&f(n.length)&&!u(n)}var u=i(27),f=i(29);n.exports=r},function(n,t,i){function r(n){var t=u(n)?h.call(n):"";return t==f||t==e||t==o}var u=i(28),f="[object Function]",e="[object GeneratorFunction]",o="[object Proxy]",s=Object.prototype,h=s.toString;n.exports=r},function(n){function t(n){var t=typeof n=="undefined"?"undefined":_typeof(n);return n!=null&&(t=="object"||t=="function")}n.exports=t},function(n){function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=i}var i=9007199254740991;n.exports=t},function(n){function t(n){return n}n.exports=t},function(n){function t(n,t,i,r,u){return u(n,function(n,u,f){i=r?(r=!1,n):t(i,n,u,f)}),i}n.exports=t},function(n){var t=Array.isArray;n.exports=t},function(n,t,i){function r(n,t){var i=o(n)?u:f;return i(n,e(t,3))}var u=i(34),f=i(19),e=i(30),o=i(32);n.exports=r},function(n){function t(n,t){for(var i=-1,r=n?n.length:0;++i<r;)if(t(n[i],i,n)===!1)break;return n}n.exports=t},function(n,t,i){function r(n){return u(n,!1,!0)}var u=i(36);n.exports=r},function(n,t,i){function u(n,t,i,ut,ft,et,ot){var st,ct,ht,lt,at,vt;if(ut&&(st=et?ut(n,ft,et,ot):ut(n)),st!==undefined)return st;if(!tt(n))return n;if(ct=g(n),ct){if(st=b(n),!t)return v(n,st)}else{if(ht=w(n),lt=ht==e||ht==rt,nt(n))return a(n,t);if(ht==o||ht==f||lt&&!et){if(st=d(lt?{}:n),!t)return y(n,l(st,n))}else{if(!r[ht])return et?n:{};st=k(n,ht,u,t)}}return(ot||(ot=new s),at=ot.get(n),at)?at:(ot.set(n,st),vt=ct?undefined:(i?p:it)(n),h(vt||n,function(r,f){vt&&(f=r,r=n[f]);c(st,f,u(r,t,i,ut,f,n,ot))}),st)}var s=i(37),h=i(34),c=i(70),l=i(73),a=i(75),v=i(77),y=i(78),p=i(80),w=i(81),b=i(82),k=i(83),d=i(84),g=i(32),nt=i(88),tt=i(28),it=i(23),f="[object Arguments]",e="[object Function]",rt="[object GeneratorFunction]",o="[object Object]",r={};r[f]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object DataView]"]=r["[object Boolean]"]=r["[object Date]"]=r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Map]"]=r["[object Number]"]=r[o]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object Symbol]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0;r["[object Error]"]=r[e]=r["[object WeakMap]"]=!1;n.exports=u},function(n,t,i){function r(n){var t=this.__data__=new u(n);this.size=t.size}var u=i(38),f=i(46),e=i(47),o=i(48),s=i(49),h=i(50);r.prototype.clear=f;r.prototype["delete"]=e;r.prototype.get=o;r.prototype.has=s;r.prototype.set=h;n.exports=r},function(n,t,i){function r(n){var i=-1,r=n?n.length:0,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}var u=i(39),f=i(40),e=i(43),o=i(44),s=i(45);r.prototype.clear=u;r.prototype["delete"]=f;r.prototype.get=e;r.prototype.has=o;r.prototype.set=s;n.exports=r},function(n){function t(){this.__data__=[];this.size=0}n.exports=t},function(n,t,i){function r(n){var t=this.__data__,i=u(t,n),r;return i<0?!1:(r=t.length-1,i==r?t.pop():e.call(t,i,1),--this.size,!0)}var u=i(41),f=Array.prototype,e=f.splice;n.exports=r},function(n,t,i){function r(n,t){for(var i=n.length;i--;)if(u(n[i][0],t))return i;return-1}var u=i(42);n.exports=r},function(n){function t(n,t){return n===t||n!==n&&t!==t}n.exports=t},function(n,t,i){function r(n){var t=this.__data__,i=u(t,n);return i<0?undefined:t[i][1]}var u=i(41);n.exports=r},function(n,t,i){function r(n){return u(this.__data__,n)>-1}var u=i(41);n.exports=r},function(n,t,i){function r(n,t){var i=this.__data__,r=u(i,n);return r<0?(++this.size,i.push([n,t])):i[r][1]=t,this}var u=i(41);n.exports=r},function(n,t,i){function r(){this.__data__=new u;this.size=0}var u=i(38);n.exports=r},function(n){function t(n){var t=this.__data__,i=t["delete"](n);return this.size=t.size,i}n.exports=t},function(n){function t(n){return this.__data__.get(n)}n.exports=t},function(n){function t(n){return this.__data__.has(n)}n.exports=t},function(n,t,i){function r(n,t){var i=this.__data__,r;if(i instanceof u){if(r=i.__data__,!f||r.length<o-1)return r.push([n,t]),this.size=++i.size,this;i=this.__data__=new e(r)}return i.set(n,t),this.size=i.size,this}var u=i(38),f=i(51),e=i(55),o=200;n.exports=r},function(n,t,i){var r=i(52),u=i(53),f=r(u,"Map");n.exports=f},function(n){function t(n,t){return n==null?undefined:n[t]}n.exports=t},function(n,t,i){var r=i(54),u=(typeof self=="undefined"?"undefined":_typeof(self))=="object"&&self&&self.Object===Object&&self,f=r||u||Function("return this")();n.exports=f},function(n,t){(function(t){var i=(typeof t=="undefined"?"undefined":_typeof(t))=="object"&&t&&t.Object===Object&&t;n.exports=i}).call(t,function(){return this}())},function(n,t,i){function r(n){var i=-1,r=n?n.length:0,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}var u=i(56),f=i(64),e=i(67),o=i(68),s=i(69);r.prototype.clear=u;r.prototype["delete"]=f;r.prototype.get=e;r.prototype.has=o;r.prototype.set=s;n.exports=r},function(n,t,i){function u(){this.size=0;this.__data__={hash:new r,map:new(e||f),string:new r}}var r=i(57),f=i(38),e=i(51);n.exports=u},function(n,t,i){function r(n){var i=-1,r=n?n.length:0,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}var u=i(58),f=i(60),e=i(61),o=i(62),s=i(63);r.prototype.clear=u;r.prototype["delete"]=f;r.prototype.get=e;r.prototype.has=o;r.prototype.set=s;n.exports=r},function(n,t,i){function u(){this.__data__=r?r(null):{};this.size=0}var r=i(59);n.exports=u},function(n,t,i){var r=i(52),u=r(Object,"create");n.exports=u},function(n){function t(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}n.exports=t},function(n,t,i){function r(n){var t=this.__data__,i;return u?(i=t[n],i===f?undefined:i):o.call(t,n)?t[n]:undefined}var u=i(59),f="__lodash_hash_undefined__",e=Object.prototype,o=e.hasOwnProperty;n.exports=r},function(n,t,i){function r(n){var t=this.__data__;return u?t[n]!==undefined:e.call(t,n)}var u=i(59),f=Object.prototype,e=f.hasOwnProperty;n.exports=r},function(n,t,i){function r(n,t){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=u&&t===undefined?f:t,this}var u=i(59),f="__lodash_hash_undefined__";n.exports=r},function(n,t,i){function r(n){var t=u(this,n)["delete"](n);return this.size-=t?1:0,t}var u=i(65);n.exports=r},function(n,t,i){function r(n,t){var i=n.__data__;return u(t)?i[typeof t=="string"?"string":"hash"]:i.map}var u=i(66);n.exports=r},function(n){function t(n){var t=typeof n=="undefined"?"undefined":_typeof(n);return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}n.exports=t},function(n,t,i){function r(n){return u(this,n).get(n)}var u=i(65);n.exports=r},function(n,t,i){function r(n){return u(this,n).has(n)}var u=i(65);n.exports=r},function(n,t,i){function r(n,t){var i=u(this,n),r=i.size;return i.set(n,t),this.size+=i.size==r?0:1,this}var u=i(65);n.exports=r},function(n,t,i){function r(n,t,i){var r=n[t];o.call(n,t)&&f(r,i)&&(i!==undefined||t in n)||u(n,t,i)}var u=i(71),f=i(42),e=Object.prototype,o=e.hasOwnProperty;n.exports=r},function(n,t,i){function u(n,t,i){t=="__proto__"&&r?r(n,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[t]=i}var r=i(72);n.exports=u},function(n,t,i){var r=i(52),u=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch(t){}}();n.exports=u},function(n,t,i){function r(n,t){return n&&u(t,f(t),n)}var u=i(74),f=i(23);n.exports=r},function(n,t,i){function r(n,t,i,r){var c=!i,s,h,e,o;for(i||(i={}),s=-1,h=t.length;++s<h;)e=t[s],o=r?r(i[e],n[e],e,i,n):undefined,o===undefined&&(o=n[e]),c?f(i,e,o):u(i,e,o);return i}var u=i(70),f=i(71);n.exports=r},function(n,t,i){(function(n){function o(n,t){if(t)return n.slice();var i=n.length,r=e?e(i):new n.constructor(i);return n.copy(r),r}var s=i(53),r=(typeof t=="undefined"?"undefined":_typeof(t))=="object"&&t&&!t.nodeType&&t,u=r&&(typeof n=="undefined"?"undefined":_typeof(n))=="object"&&n&&!n.nodeType&&n,h=u&&u.exports===r,f=h?s.Buffer:undefined,e=f?f.allocUnsafe:undefined;n.exports=o}).call(t,i(76)(n))},function(n){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children=[],n.webpackPolyfill=1),n}},function(n){function t(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}n.exports=t},function(n,t,i){function r(n,t){return u(n,f(n),t)}var u=i(74),f=i(79);n.exports=r},function(n){function t(){return[]}n.exports=t},function(n,t,i){var r=i(24),u=r(Object.keys,Object);n.exports=u},function(n){function t(n){return r.call(n)}var i=Object.prototype,r=i.toString;n.exports=t},function(n){function t(n){var i=n.length,t=n.constructor(i);return i&&typeof n[0]=="string"&&r.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var i=Object.prototype,r=i.hasOwnProperty;n.exports=t},function(n){function t(n){return n}n.exports=t},function(n,t,i){function r(n){return typeof n.constructor=="function"&&!e(n)?u(f(n)):{}}var u=i(85),f=i(86),e=i(87);n.exports=r},function(n,t,i){var u=i(28),r=Object.create,f=function(){function n(){}return function(t){if(!u(t))return{};if(r)return r(t);n.prototype=t;var i=new n;return n.prototype=undefined,i}}();n.exports=f},function(n,t,i){var r=i(24),u=r(Object.getPrototypeOf,Object);n.exports=u},function(n){function t(){return!1}n.exports=t},function(n){function t(){return!1}n.exports=t},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var h=i(1),c=i(14),l=u(c);r=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);this.leafletElement=h.tileLayer.canvas(this.props)},t}(l.default);t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var c=i(1),l=i(4),a=i(6),v=u(a),y=i(91),p=u(y);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.center,r=t.radius,u=e(t,["center","radius"]);this.leafletElement=c.circle(i,r,u)},t.prototype.componentDidUpdate=function(n){this.props.center!==n.center&&this.leafletElement.setLatLng(this.props.center);this.props.radius!==n.radius&&this.leafletElement.setRadius(this.props.radius);this.setStyleIfChanged(n,this.props)},t}(p.default);r.propTypes={center:v.default.isRequired,radius:l.PropTypes.number.isRequired};t.default=r},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):e(n,t))}var f,u;t.__esModule=!0;var c=i(92),l=r(c),a=i(98),v=r(a),y=i(4),p=i(15),w=r(p);f=["stroke","color","weight","opacity","fill","fillColor","fillOpacity","fillRule","dashArray","lineCap","lineJoin","clickable","pointerEvents","className"];u=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},t.prototype.getPathOptions=function(n){return l.default(n,f)},t.prototype.setStyle=function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.leafletElement.setStyle(n)},t.prototype.setStyleIfChanged=function(n,t){var i=this.getPathOptions(t);v.default(i,this.getPathOptions(n))||this.setStyle(i)},t}(w.default);u.childContextTypes={popupContainer:y.PropTypes.object};t.default=u},function(n,t,i){var r=i(93),u=i(94),f=i(96),e=i(97),o=f(function(n,t){return n==null?{}:u(n,r(t,e))});n.exports=o},function(n){function t(n,t){for(var i=-1,r=n?n.length:0,u=Array(r);++i<r;)u[i]=t(n[i],i,n);return u}n.exports=t},function(n,t,i){function r(n,t){return n=Object(n),u(n,t,function(t,i){return i in n})}var u=i(95);n.exports=r},function(n,t,i){function r(n,t,i){for(var e=-1,s=t.length,o={},r,f;++e<s;)r=t[e],f=n[r],i(f,r)&&u(o,r,f);return o}var u=i(71);n.exports=r},function(n){function t(n){return n}n.exports=t},function(n){function t(n){return n}n.exports=t},function(n,t,i){function r(n,t){return u(n,t)}var u=i(99);n.exports=r},function(n,t,i){function r(n,t,i,o,s){return n===t?!0:n==null||t==null||!f(n)&&!e(t)?n!==n&&t!==t:u(n,t,r,i,o,s)}var u=i(100),f=i(28),e=i(110);n.exports=r},function(n,t,i){function l(n,t,i,l,b,k){var nt=e(n),ot=e(t),d=h,g=h,tt,it,ft,et;nt||(d=f(n),d=d==s?r:d);ot||(g=f(t),g=g==s?r:g);var rt=d==r,st=g==r,ut=d==g;if(ut&&o(n)){if(!o(t))return!1;nt=!0;rt=!1}return ut&&!rt?(k||(k=new u),nt||p(n)?a(n,t,i,l,b,k):v(n,t,d,i,l,b,k)):!(b&w)&&(tt=rt&&c.call(n,"__wrapped__"),it=st&&c.call(t,"__wrapped__"),tt||it)?(ft=tt?n.value():n,et=it?t.value():t,k||(k=new u),i(ft,et,l,b,k)):ut?(k||(k=new u),y(n,t,i,l,b,k)):!1}var u=i(37),a=i(101),v=i(107),y=i(108),f=i(81),e=i(32),o=i(88),p=i(109),w=2,s="[object Arguments]",h="[object Array]",r="[object Object]",b=Object.prototype,c=b.hasOwnProperty;n.exports=l},function(n,t,i){function r(n,t,i,r,h,c){var d=h&s,p=n.length,g=t.length,w,l,a,b;if(p!=g&&!(d&&g>p))return!1;if(w=c.get(n),w&&c.get(t))return w==t;var v=-1,y=!0,k=h&o?new u:undefined;for(c.set(n,t),c.set(t,n);++v<p;){if(l=n[v],a=t[v],r&&(b=d?r(a,l,v,t,n,c):r(l,a,v,n,t,c)),b!==undefined){if(b)continue;y=!1;break}if(k){if(!f(t,function(n,t){if(!e(k,t)&&(l===n||i(l,n,r,h,c)))return k.push(t)})){y=!1;break}}else if(!(l===a||i(l,a,r,h,c))){y=!1;break}}return c["delete"](n),c["delete"](t),y}var u=i(102),f=i(105),e=i(106),o=1,s=2;n.exports=r},function(n,t,i){function r(n){var t=-1,i=n?n.length:0;for(this.__data__=new u;++t<i;)this.add(n[t])}var u=i(55),f=i(103),e=i(104);r.prototype.add=r.prototype.push=f;r.prototype.has=e;n.exports=r},function(n){function t(n){return this.__data__.set(n,i),this}var i="__lodash_hash_undefined__";n.exports=t},function(n){function t(n){return this.__data__.has(n)}n.exports=t},function(n){function t(n,t){for(var i=-1,r=n?n.length:0;++i<r;)if(t(n[i],i,n))return!0;return!1}n.exports=t},function(n){function t(n,t){return n.has(t)}n.exports=t},function(n){function t(n,t){return n===t||n!==n&&t!==t}n.exports=t},function(n,t,i){function u(n,t,i,u,e,s){var w=e&f,k=r(n),d=k.length,tt=r(t),it=tt.length,c,h,g,l,b,a,v,nt,y,p;if(d!=it&&!w)return!1;for(c=d;c--;)if(h=k[c],!(w?h in t:o.call(t,h)))return!1;if(g=s.get(n),g&&s.get(t))return g==t;for(l=!0,s.set(n,t),s.set(t,n),b=w;++c<d;){if(h=k[c],a=n[h],v=t[h],u&&(nt=w?u(v,a,h,t,n,s):u(a,v,h,n,t,s)),!(nt===undefined?a===v||i(a,v,u,e,s):nt)){l=!1;break}b||(b=h=="constructor")}return l&&!b&&(y=n.constructor,p=t.constructor,y!=p&&"constructor"in n&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof p=="function"&&p instanceof p)&&(l=!1)),s["delete"](n),s["delete"](t),l}var r=i(23),f=2,e=Object.prototype,o=e.hasOwnProperty;n.exports=u},function(n){function t(){return!1}n.exports=t},function(n){function t(n){return n!=null&&(typeof n=="undefined"?"undefined":_typeof(n))=="object"}n.exports=t},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var c=i(1),l=i(4),a=i(6),v=u(a),y=i(91),p=u(y);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.center,r=e(t,["center"]);this.leafletElement=c.circleMarker(i,r)},t.prototype.componentDidUpdate=function(n){this.props.center!==n.center&&this.leafletElement.setLatLng(this.props.center);this.props.radius!==n.radius&&this.leafletElement.setRadius(this.props.radius);this.setStyleIfChanged(n,this.props)},t}(p.default);r.propTypes={center:v.default.isRequired,radius:l.PropTypes.number};t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var h=i(1),c=i(4),l=i(9),a=u(l),v=i(91),y=u(v);r=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.getChildContext=function(){return{layerContainer:this.leafletElement,popupContainer:this.leafletElement}},t.prototype.componentWillMount=function(){this.leafletElement=h.featureGroup()},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.setStyle(this.props)},t.prototype.componentDidUpdate=function(n){this.setStyleIfChanged(n,this.props)},t}(y.default);r.childContextTypes={layerContainer:a.default,popupContainer:c.PropTypes.object};t.default=r},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function o(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):e(n,t))}var r;t.__esModule=!0;var l=i(27),a=f(l),v=i(1),u=i(4),y=i(91),p=f(y);r=function(n){function t(){return s(this,t),h(this,n.apply(this,arguments))}return c(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.data,r=o(t,["data"]);this.leafletElement=v.geoJson(i,r)},t.prototype.componentDidUpdate=function(n){a.default(this.props.style)?this.setStyle(this.props.style):this.setStyleIfChanged(n,this.props)},t}(p.default);r.propTypes={data:u.PropTypes.oneOfType([u.PropTypes.array,u.PropTypes.object]).isRequired};t.default=r},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function o(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):e(n,t))}var r;t.__esModule=!0;var l=i(1),u=i(4),a=i(3),v=f(a),y=i(15),p=f(y);r=function(n){function t(){return s(this,t),h(this,n.apply(this,arguments))}return c(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.bounds,r=t.url,u=o(t,["bounds","url"]);this.leafletElement=l.imageOverlay(r,i,u)},t.prototype.componentDidUpdate=function(n){this.props.url!==n.url&&this.leafletElement.setUrl(this.props.url);this.props.opacity!==n.opacity&&this.leafletElement.setOpacity(this.props.opacity)},t.prototype.render=function(){return null},t}(p.default);r.propTypes={attribution:u.PropTypes.string,bounds:v.default.isRequired,opacity:u.PropTypes.number,url:u.PropTypes.string.isRequired};t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var h=i(1),c=i(9),l=u(c),a=i(15),v=u(a);r=function(n){function t(){return e(this,t),o(this,n.apply(this,arguments))}return s(t,n),t.prototype.getChildContext=function(){return{layerContainer:this.leafletElement}},t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);this.leafletElement=h.layerGroup()},t}(v.default);r.childContextTypes={layerContainer:l.default};t.default=r},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function p(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function w(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):w(n,t))}var c,u,l,a,f;t.__esModule=!0;var b=i(1),r=i(4),k=e(r),d=i(7),g=e(d),nt=i(9),v=e(nt),tt=i(10),y=e(tt),it=i(12),rt=e(it);c={addBaseLayer:r.PropTypes.func,addOverlay:r.PropTypes.func,checked:r.PropTypes.bool,children:r.PropTypes.node.isRequired,name:r.PropTypes.string.isRequired,removeLayer:r.PropTypes.func,removeLayerControl:r.PropTypes.func};u=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.getChildContext=function(){return{layerContainer:{addLayer:this.addLayer.bind(this),removeLayer:this.removeLayer.bind(this)}}},t.prototype.componentWillReceiveProps=function(n){var t=n.checked;t&&!this.props.checked?this.context.map.addLayer(this.layer):this.props.checked&&!t&&this.context.map.removeLayer(this.layer)},t.prototype.componentWillUnmount=function(){this.props.removeLayerControl(this.layer)},t.prototype.addLayer=function(){throw new Error("Must be implemented in extending class");},t.prototype.removeLayer=function(n){this.props.removeLayer(n)},t.prototype.render=function(){return this.props.children||null},t}(r.Component);u.propTypes=c;u.contextTypes={map:y.default};u.childContextTypes={layerContainer:v.default};l=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.addLayer=function(n){this.layer=n;var t=this.props,i=t.addBaseLayer,r=t.checked,u=t.name;i(n,u,r)},t}(u);l.propTypes=c;a=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.addLayer=function(n){this.layer=n;var t=this.props,i=t.addOverlay,r=t.checked,u=t.name;i(n,u,r)},t}(u);a.propTypes=c;f=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){var n=this.props,i=n.children,t=p(n,["children"]);this.leafletElement=b.control.layers(undefined,undefined,t);this.controlProps={addBaseLayer:this.addBaseLayer.bind(this),addOverlay:this.addOverlay.bind(this),removeLayer:this.removeLayer.bind(this),removeLayerControl:this.removeLayerControl.bind(this)}},t.prototype.componentWillUnmount=function(){var t=this;setTimeout(function(){n.prototype.componentWillUnmount.call(t)},0)},t.prototype.addBaseLayer=function(n,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;i&&this.context.map.addLayer(n);this.leafletElement.addBaseLayer(n,t)},t.prototype.addOverlay=function(n,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;i&&this.context.map.addLayer(n);this.leafletElement.addOverlay(n,t)},t.prototype.removeLayer=function(n){this.context.map.removeLayer(n)},t.prototype.removeLayerControl=function(n){this.leafletElement.removeLayer(n)},t.prototype.render=function(){var n=this,t=r.Children.map(this.props.children,function(t){return t?r.cloneElement(t,n.controlProps):null});return k.default.createElement("div",{style:{display:"none"}},t)},t}(rt.default);f.propTypes={baseLayers:r.PropTypes.object,children:g.default,overlays:r.PropTypes.object};f.contextTypes={layerContainer:v.default,map:y.default};t.default=f;f.BaseLayer=l;f.Overlay=a},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function v(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):c(n,t))}var o,f;t.__esModule=!0;var y=i(118),p=u(y),w=i(120),b=u(w),k=i(130),d=u(k),g=i(1),e=u(g),r=i(4),s=u(r),nt=i(3),h=u(nt),tt=i(7),it=u(tt),rt=i(6),ut=u(rt),ft=i(16),et=u(ft);o=function(n){return Array.isArray(n)?n:[n.lat,n.lon?n.lon:n.lng]};f=function(n){function t(i,r){l(this,t);var u=a(this,n.call(this,i,r));return u.state={id:i.id||p.default("map")},u}return v(t,n),t.prototype.getChildContext=function(){return{map:this.leafletElement}},t.prototype.componentDidMount=function(){var t=b.default(this.props,["children","className","id","style"]);this.leafletElement=e.default.map(this.state.id,t);n.prototype.componentDidMount.call(this);this.setState({map:this.leafletElement});d.default(t.bounds)||this.leafletElement.fitBounds(t.bounds,t.boundsOptions)},t.prototype.componentDidUpdate=function(n){var t=this.props,r=t.bounds,e=t.boundsOptions,u=t.center,f=t.maxBounds,i=t.zoom,o=t.animate;u&&this.shouldUpdateCenter(u,n.center)?this.leafletElement.setView(u,i,{animate:o}):i&&i!==n.zoom&&this.leafletElement.setZoom(i);f&&this.shouldUpdateBounds(f,n.maxBounds)&&this.leafletElement.setMaxBounds(f);r&&(this.shouldUpdateBounds(r,n.bounds)||e!==n.boundsOptions)&&this.leafletElement.fitBounds(r,e)},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.leafletElement.remove()},t.prototype.shouldUpdateCenter=function(n,t){return t?(n=o(n),t=o(t),n[0]!==t[0]||n[1]!==t[1]):!0},t.prototype.shouldUpdateBounds=function(n,t){return t?(n=e.default.latLngBounds(n),t=e.default.latLngBounds(t),!n.equals(t)):!0},t.prototype.render=function(){var n=this.leafletElement,t=n?s.default.Children.map(this.props.children,function(t){return t?s.default.cloneElement(t,{map:n,layerContainer:n}):null}):null;return s.default.createElement("div",{className:this.props.className,id:this.state.id,style:this.props.style},t)},t}(et.default);f.propTypes={animate:r.PropTypes.bool,bounds:h.default,boundsOptions:r.PropTypes.object,center:ut.default,children:it.default,className:r.PropTypes.string,id:r.PropTypes.string,maxBounds:h.default,maxZoom:r.PropTypes.number,minZoom:r.PropTypes.number,style:r.PropTypes.object,zoom:r.PropTypes.number};f.defaultProps={animate:!1};f.childContextTypes={map:r.PropTypes.instanceOf(e.default.Map)};t.default=f},function(n,t,i){function r(n){var t=++f;return u(n)+t}var u=i(119),f=0;n.exports=r},function(n){function t(n){return n}n.exports=t},function(n,t,i){var r=i(93),u=i(121),f=i(94),e=i(96),o=i(129),s=i(97),h=e(function(n,t){return n==null?{}:(t=r(t,s),f(n,u(o(n),t)))});n.exports=h},function(n,t,i){function r(n,t,i,r){var b=-1,y=f,p=!0,k=n.length,v=[],d=t.length,l,a,w;if(!k)return v;i&&(t=o(t,s(i)));r?(y=e,p=!1):t.length>=c&&(y=h,p=!1,t=new u(t));n:while(++b<k)if(l=n[b],a=i?i(l):l,l=r||l!==0?l:0,p&&a===a){for(w=d;w--;)if(t[w]===a)continue n;v.push(l)}else y(t,a,r)||v.push(l);return v}var u=i(102),f=i(122),e=i(127),o=i(93),s=i(128),h=i(106),c=200;n.exports=r},function(n,t,i){function r(n,t){var i=n?n.length:0;return!!i&&u(n,t,0)>-1}var u=i(123);n.exports=r},function(n,t,i){function r(n,t,i){return t===t?e(n,t,i):u(n,f,i)}var u=i(124),f=i(125),e=i(126);n.exports=r},function(n){function t(n,t,i,r){for(var f=n.length,u=i+(r?1:-1);r?u--:++u<f;)if(t(n[u],u,n))return u;return-1}n.exports=t},function(n){function t(n){return n!==n}n.exports=t},function(n){function t(n,t,i){for(var r=i-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}n.exports=t},function(n){function t(n,t,i){for(var r=-1,u=n?n.length:0;++r<u;)if(i(t,n[r]))return!0;return!1}n.exports=t},function(n){function t(n){return function(t){return n(t)}}n.exports=t},function(n){function t(n){var t=[],i;if(n!=null)for(i in Object(n))t.push(i);return t}n.exports=t},function(n){function t(n){return n===undefined}n.exports=t},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function s(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):o(n,t))}var r;t.__esModule=!0;var e=i(1),u=i(4),a=i(6),v=f(a),y=i(15),p=f(y);r=function(n){function t(){return h(this,t),c(this,n.apply(this,arguments))}return l(t,n),t.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.position,r=s(t,["position"]);this.leafletElement=e.marker(i,r)},t.prototype.componentDidUpdate=function(n){this.props.position!==n.position&&this.leafletElement.setLatLng(this.props.position);this.props.icon!==n.icon&&this.leafletElement.setIcon(this.props.icon);this.props.zIndexOffset!==n.zIndexOffset&&this.leafletElement.setZIndexOffset(this.props.zIndexOffset);this.props.opacity!==n.opacity&&this.leafletElement.setOpacity(this.props.opacity);this.props.draggable!==n.draggable&&(this.props.draggable?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable())},t.prototype.render=function(){return this.props.children||null},t}(p.default);r.propTypes={icon:u.PropTypes.instanceOf(e.Icon),opacity:u.PropTypes.number,position:v.default.isRequired,zIndexOffset:u.PropTypes.number};r.childContextTypes={popupContainer:u.PropTypes.object};t.default=r},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function s(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):o(n,t))}var r;t.__esModule=!0;var a=i(1),u=i(4),v=i(5),e=f(v),y=i(91),p=f(y);r=function(n){function t(){return h(this,t),c(this,n.apply(this,arguments))}return l(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.polygons,r=s(t,["polygons"]);this.leafletElement=a.multiPolygon(i,r)},t.prototype.componentDidUpdate=function(n){this.props.polygons!==n.polygons&&this.leafletElement.setLatLngs(this.props.polygons);this.setStyleIfChanged(n,this.props)},t}(p.default);r.propTypes={polygons:u.PropTypes.arrayOf(u.PropTypes.oneOfType([e.default,u.PropTypes.arrayOf(e.default)])).isRequired};t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var c=i(1),l=i(4),a=i(5),v=u(a),y=i(91),p=u(y);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.polylines,r=e(t,["polylines"]);this.leafletElement=c.multiPolyline(i,r)},t.prototype.componentDidUpdate=function(n){this.props.polylines!==n.polylines&&this.leafletElement.setLatLngs(this.props.polylines);this.setStyleIfChanged(n,this.props)},t}(p.default);r.propTypes={polylines:l.PropTypes.arrayOf(v.default).isRequired};t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function s(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):o(n,t))}var r;t.__esModule=!0;var a=i(1),f=i(4),v=i(5),e=u(v),y=i(91),p=u(y);r=function(n){function t(){return h(this,t),c(this,n.apply(this,arguments))}return l(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.positions,r=s(t,["positions"]);this.leafletElement=a.polygon(i,r)},t.prototype.componentDidUpdate=function(n){this.props.positions!==n.positions&&this.leafletElement.setLatLngs(this.props.positions);this.setStyleIfChanged(n,this.props)},t}(p.default);r.propTypes={positions:f.PropTypes.oneOfType([e.default,f.PropTypes.arrayOf(e.default)]).isRequired};t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var c=i(1),l=i(5),a=u(l),v=i(91),y=u(v);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.positions,r=e(t,["positions"]);this.leafletElement=c.polyline(i,r)},t.prototype.componentDidUpdate=function(n){this.props.positions!==n.positions&&this.leafletElement.setLatLngs(this.props.positions);this.setStyleIfChanged(n,this.props)},t}(y.default);r.propTypes={positions:a.default.isRequired};t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function s(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):o(n,t))}var r;t.__esModule=!0;var a=i(1),f=i(4),e=i(137),v=i(6),y=u(v),p=i(10),w=u(p),b=i(16),k=u(b);r=function(n){function t(){return h(this,t),c(this,n.apply(this,arguments))}return l(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,r=t.children,i=s(t,["children"]);this.leafletElement=a.popup(i,this.context.popupContainer)},t.prototype.componentDidMount=function(){var i=this.props.position,r=this.context,u=r.map,n=r.popupContainer,t=this.leafletElement;n.on("popupopen",this.renderPopupContent.bind(this));n.on("popupclose",this.removePopupContent.bind(this));n?(n.bindPopup(t,{offset:L.point(15,-25)}),this.props.openOnInit&&setTimeout(function(){n.openPopup()},50)):(i&&t.setLatLng(i),t.openOn(u).openPopup())},t.prototype.componentDidUpdate=function(n){var t=this.props.position;t!==n.position&&this.leafletElement.setLatLng(t);this.renderPopupContent(this);this.leafletElement._isOpen&&this.renderPopupContent()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.removePopupContent();this.context.map.removeLayer(this.leafletElement)},t.prototype.renderPopupContent=function(){this.props.children?(e.render(f.Children.only(this.props.children),this.leafletElement._contentNode),this.leafletElement._updateLayout(),this.leafletElement._updatePosition(),this.leafletElement._adjustPan()):this.removePopupContent()},t.prototype.removePopupContent=function(){this.leafletElement._contentNode&&e.unmountComponentAtNode(this.leafletElement._contentNode)},t.prototype.render=function(){return null},t}(k.default);r.propTypes={children:f.PropTypes.node,position:y.default};r.contextTypes={map:w.default,popupContainer:f.PropTypes.object};t.default=r},function(n){n.exports=i},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var c=i(1),l=i(3),a=u(l),v=i(91),y=u(v);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.bounds,r=e(t,["bounds"]);this.leafletElement=c.rectangle(i,r)},t.prototype.componentDidUpdate=function(n){this.props.bounds!==n.bounds&&this.leafletElement.setBounds(this.props.bounds);this.setStyleIfChanged(n,this.props)},t}(y.default);r.propTypes={bounds:a.default.isRequired};t.default=r},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):e(n,t))}var u;t.__esModule=!0;var c=i(1),r=i(4),l=i(12),a=f(l);u=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){this.leafletElement=c.control.scale(this.props)},t}(a.default);u.propTypes={imperial:r.PropTypes.bool,maxWidth:r.PropTypes.number,metric:r.PropTypes.bool,updateWhenIdle:r.PropTypes.bool};t.default=u},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var c=i(1),l=i(4),a=i(14),v=u(a);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.url,r=e(t,["url"]);this.leafletElement=c.tileLayer(i,r)},t.prototype.componentDidUpdate=function(t){n.prototype.componentDidUpdate.call(this,t);var i=this.props.url;i!==t.url&&this.leafletElement.setUrl(i)},t}(v.default);r.propTypes={url:l.PropTypes.string.isRequired};t.default=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function e(n,t){var r={},i;for(i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):f(n,t))}var r;t.__esModule=!0;var c=i(1),l=i(4),a=i(14),v=u(a);r=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){n.prototype.componentWillMount.call(this);var t=this.props,i=t.url,r=e(t,["url"]);this.leafletElement=c.tileLayer.wms(i,r)},t}(v.default);r.propTypes={url:l.PropTypes.string.isRequired};t.default=r},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){for(var f=Object.getOwnPropertyNames(t),i,r,u=0;u<f.length;u++)i=f[u],r=Object.getOwnPropertyDescriptor(t,i),r&&r.configurable&&n[i]===undefined&&Object.defineProperty(n,i,r);return n}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):e(n,t))}var u;t.__esModule=!0;var c=i(1),r=i(4),l=i(12),a=f(l);u=function(n){function t(){return o(this,t),s(this,n.apply(this,arguments))}return h(t,n),t.prototype.componentWillMount=function(){this.leafletElement=c.control.zoom(this.props)},t}(a.default);u.propTypes={zoomInText:r.PropTypes.string,zoomInTitle:r.PropTypes.string,zoomOutText:r.PropTypes.string,zoomOutTitle:r.PropTypes.string};t.default=u}])})