function hasNoSpecialChar(n){return!/([^\w\s\-\#]|[\_])+/.test(n)}function isValidZip(n){return/^(\d{5}(\-\d{4})?)?$/.test(n)}function hasNoHash(n){return!/([\#])+/.test(n)}var OCF={},htmlOriginal;OCF.UI=function(){};OCF.DataTable=function(){};OCF.ValidationHelper=function(){};OCF.UI.Helper=function(){};OCF.ScanCentre=function(){};OCF.DataTable=function(){function n(n,t,i,r,u,f,e,o,s,h){i=i!==undefined?i:"#DashBoard";u=u!==undefined?u:!0;u=typeof u=="boolean"?[[0,"desc"]]:u;s=s!==undefined?s:!0;h=h!==undefined?h:!0;r=r!==undefined?r:[];$(i)!==undefined&&($(i).dataTable().fnDestroy(),$(i+" tbody tr").remove());$(i).on("processing.dt",function(n,t,i){$(".dataTables_filter").parent().addClass("right");$(".grid_Loading").height($(this).height()+100);$(".grid_Loading_report").height($(this).height()+100);$(".grid_Loading").css("display",i?"block":"none");$(".grid_Loading_report").css("display",i?"block":"none")});var c=$(i).dataTable({aLengthMenu:[[10,25,50,75,100],["10","25","50","75","100"]],processing:!0,dom:"<'row'<'small-3 columns'l><'small-9 columns'f>r>t<'row'<'small-6 columns'i><'small-6 columns'p>>",serverSide:h,bAutoWidth:!1,bPaginate:s,scrollY:s?"":"400px",ajax:{url:n,type:"POST",data:function(n){if(o!==undefined&&o!==""){var t=$("#"+o).serializeArray();t!==null&&t!==undefined&&(n.Custom=t)}}},aaSorting:u,createdRow:function(n,t,i){i===0&&$("#hdn_ReturnID").val()&&$("#hdn_ReturnID").val()!=""&&($("td",n).addClass("animated bounce"),$("#hdn_ReturnID").val(""),$("#alertDiv").show().delay(4e3).fadeOut())},oLanguage:{sProcessing:""},columnDefs:r,columns:t,footerCallback:function(n,t,i,r,u){OCF.DataTable.BindCheckBoxEvent();typeof f=="function"&&(f(n,t,i,r,u),t.length==0&&$(".footerdeleteIcon").hide())},fnInitComplete:function(){OCF.DataTable.BindCheckBoxEvent();OCF.UI.Helper.ToggleTab(!0);e!=undefined&&typeof e=="function"&&e()},fnDrawCallback:function(){if(s){var n=Math.ceil(this.fnSettings()._iDisplayStart/this.fnSettings()._iDisplayLength)+1;n===1?($(i+"_first, "+i+"_previous").hide(),this.fnSettings().fnRecordsTotal()/this.fnSettings()._iDisplayLength>1&&$(i+"_last, "+i+"_next").show()):n===Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)?($(i+"_last, "+i+"_next").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(i+"_first, "+i+"_previous").show()):($(i+"_first, "+i+"_previous").show(),$(i+"_last, "+i+"_next").show());Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)>1?($(i+"_paginate")[0].style.display="block",$(i+"_length")[0].style.display="block"):($(i+"_paginate")[0].style.display="none",this.fnSettings().fnRecordsDisplay()<10&&($(i+"_length")[0].style.display="none"));$(i+"_info")[0].style.display=Math.ceil(this.fnSettings().fnRecordsDisplay())===0?"none":"block"}}})}function t(n,t,i,r,u){n=n!==undefined?n:"#DashBoard";i=i!==undefined?i:!0;t=t!==undefined?t:[];$(n)!==undefined&&$(n).dataTable().fnDestroy();$(n).on("processing.dt",function(n,t,i){$(".dataTables_filter").parent().addClass("right");$(".grid_Loading").height($(this).height()+100);$(".grid_Loading_report").height($(this).height()+100);$(".grid_Loading").css("display",i?"block":"none");$(".grid_Loading_report").css("display",i?"block":"none")}).dataTable({aLengthMenu:[[10,25,50,75,100],["10","25","50","75","100"]],processing:!0,bAutoWidth:!0,aaSorting:i?[[0,"desc"]]:[],createdRow:function(n,t,i){i===0&&$("#hdn_ReturnID").val()&&$("#hdn_ReturnID").val()!=""&&($("td",n).addClass("animated bounce"),$("#hdn_ReturnID").val(""),$("#alertDiv").show().delay(4e3).fadeOut())},oLanguage:{sProcessing:""},bFilter:!0,columnDefs:t,footerCallback:function(n,t,i,u,f){OCF.DataTable.BindCheckBoxEvent();typeof r=="function"&&(r(n,t,i,u,f),t.length==0&&$(".footerdeleteIcon").hide())},fnInitComplete:function(){OCF.DataTable.BindCheckBoxEvent();u!=undefined&&u()},fnDrawCallback:function(){var t=Math.ceil(this.fnSettings()._iDisplayStart/this.fnSettings()._iDisplayLength)+1;t===1?($(n+"_first, "+n+"_previous").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(n+"_last, "+n+"_next").show()):t===Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)?($(n+"_last, "+n+"_next").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(n+"_first, "+n+"_previous").show()):($(n+"_first, "+n+"_previous").show(),$(n+"_last, "+n+"_next").show());Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)>1?($(n+"_paginate")[0].style.display="block",$(n+"_length")[0].style.display="block"):($(n+"_paginate")[0].style.display="none",this.fnSettings().fnRecordsDisplay()<10&&($(n+"_length")[0].style.display="none"));$(n+"_info")[0].style.display=Math.ceil(this.fnSettings().fnRecordsDisplay())===0?"none":"block"}})}function i(){$("#checkall").prop("checked",!1);$(".case").click(function(){$(".case").length==$(".case:checked").length&&$("#checkall").prop("checked",!0)})}function r(n,t,i){return n===5?t:t!==""&&i?i+"-"+t:i+"-"+t}function u(n,t){if(t!==""&&n)return new Date(n).getFullYear()+"-"+t;returnValue=new Date(n).getFullYear()}function f(n,t,i,r,u,f,e,o,s,h,c,l,a){i=i!==undefined?i:"#DashBoard";u=u!==undefined?u:!0;u=typeof u=="boolean"?[[0,"desc"]]:u;s=s!==undefined?s:!0;a=a!==undefined?a:!0;h=h!==undefined?h:!0;c=c!==undefined?c:!0;l=l!==undefined?l:!0;r=r!==undefined?r:[];$(i)!==undefined&&($(i).dataTable().fnDestroy(),$(i+" tbody tr").remove());$(i).on("processing.dt",function(n,t,i){$(".dataTables_filter").parent().addClass("right");$(".grid_Loading").height($(this).height()+100);$(".grid_Loading_report").height($(this).height()+100);$(".grid_Loading").css("display",i?"block":"none");$(".grid_Loading_report").css("display",i?"block":"none")});return $(i).DataTable({aLengthMenu:[[10,25,50,75,100],["10","25","50","75","100"]],processing:!0,dom:"<'row'<'small-3 columns'l><'small-9 columns'f>r>t<'row'<'small-6 columns'i><'small-6 columns'p>>",serverSide:a,bAutoWidth:!1,bPaginate:s,paging:s,searching:h,info:c,scrollY:l?"":"100px",scrollCollapse:!0,order:u,ajax:{url:n,type:"POST",data:function(n){if(o!==undefined&&o!==""){var t=$("#"+o).serializeArray();t!==null&&t!==undefined&&(n.Custom=t)}}},aaSorting:u,createdRow:function(n,t,i){i===0&&$("#hdn_ReturnID").val()&&$("#hdn_ReturnID").val()!=""&&($("td",n).addClass("animated bounce"),$("#hdn_ReturnID").val(""),$("#alertDiv").show().delay(4e3).fadeOut())},oLanguage:{sProcessing:""},columnDefs:r,columns:t,footerCallback:function(n,t,i,r,u){OCF.DataTable.BindCheckBoxEvent();typeof f=="function"&&(f(n,t,i,r,u),t.length==0&&$(".footerdeleteIcon").hide())},fnInitComplete:function(){OCF.DataTable.BindCheckBoxEvent();OCF.UI.Helper.ToggleTab(!0);e!=undefined&&typeof e=="function"&&e()},fnDrawCallback:function(){if(s){var n=Math.ceil(this.fnSettings()._iDisplayStart/this.fnSettings()._iDisplayLength)+1;n===1?($(i+"_first, "+i+"_previous").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(i+"_last, "+i+"_next").show()):n===Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)?($(i+"_last, "+i+"_next").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(i+"_first, "+i+"_previous").show()):($(i+"_first, "+i+"_previous").show(),$(i+"_last, "+i+"_next").show());Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)>1?($(i+"_paginate")[0].style.display="block",$(i+"_length")[0].style.display="block"):($(i+"_paginate")[0].style.display="none",this.fnSettings().fnRecordsDisplay()<10&&($(i+"_length")[0].style.display="none"));$(i+"_info")[0].style.display=Math.ceil(this.fnSettings().fnRecordsDisplay())===0?"none":"block"}}})}function e(n,t,i,r,u,f,e){i=i!==undefined?i:"#DashBoard";f=f!==undefined?f:!0;u=u||[[0,"desc"]];$(i)!==undefined&&($(i).dataTable().fnDestroy(),$(i+" tbody tr").remove());$(i).on("processing.dt",function(n,t,i){$(".dataTables_filter").parent().addClass("right");$(".grid_Loading").height($(this).height()+100);$(".grid_Loading_report").height($(this).height()+100);$(".grid_Loading").css("display",i?"block":"none");$(".grid_Loading_report").css("display",i?"block":"none")});return $(i).DataTable({aLengthMenu:[[10,25,50,75,100],["10","25","50","75","100"]],processing:!0,dom:"<'row'<'small-3 columns'l><'small-9 columns'f>r>t<'row'<'small-6 columns'i><'small-6 columns'p>>",bAutoWidth:!1,ajax:{url:n,type:"GET",dataSrc:r},oLanguage:{sProcessing:""},aaSorting:u,columns:t,fnDrawCallback:function(n){if(typeof e=="function"&&e(n.json),f){var t=Math.ceil(this.fnSettings()._iDisplayStart/this.fnSettings()._iDisplayLength)+1;t===1?($(i+"_first, "+i+"_previous").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(i+"_last, "+i+"_next").show()):t===Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)?($(i+"_last, "+i+"_next").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(i+"_first, "+i+"_previous").show()):($(i+"_first, "+i+"_previous").show(),$(i+"_last, "+i+"_next").show());Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)>1?($(i+"_paginate")[0].style.display="block",$(i+"_length")[0].style.display="block"):($(i+"_paginate")[0].style.display="none",this.fnSettings().fnRecordsDisplay()<10&&($(i+"_length")[0].style.display="none"));$(i+"_info")[0].style.display=Math.ceil(this.fnSettings().fnRecordsDisplay())===0?"none":"block"}}})}function o(n,t,i,r,u,f,e,o,s,h,c){i=i!==undefined?i:"#DashBoard";u=u!==undefined?u:!0;u=typeof u=="boolean"?[[0,"desc"]]:u;s=s!==undefined?s:!0;c=c!==undefined?c:!0;h=h!==undefined?h:!0;r=r!==undefined?r:[];$(i)!==undefined&&($(i).dataTable().fnDestroy(),$(i+" tbody tr").remove());$(i).on("processing.dt",function(n,t,i){$(".dataTables_filter").parent().addClass("right");$(".grid_Loading").height($(this).height()+100);$(".grid_Loading_report").height($(this).height()+100);$(".grid_Loading").css("display",i?"block":"none");$(".grid_Loading_report").css("display",i?"block":"none")});var l=$(i).dataTable({aLengthMenu:[[10,25,50,75,100],["10","25","50","75","100"]],processing:!0,dom:"<'row'<'small-3 columns'l><'small-9 columns'f>r>t<'row'<'small-6 columns'i><'small-6 columns'p>>",serverSide:c,bAutoWidth:!1,bPaginate:s,scrollY:s?"":"400px",searching:h,ajax:{url:n,type:"POST",data:function(n){if(o!==undefined&&o!==""){var t=$("#"+o).serializeArray();t!==null&&t!==undefined&&(n.Custom=t)}}},aaSorting:u,createdRow:function(n,t,i){i===0&&$("#hdn_ReturnID").val()&&$("#hdn_ReturnID").val()!=""&&($("td",n).addClass("animated bounce"),$("#hdn_ReturnID").val(""),$("#alertDiv").show().delay(4e3).fadeOut())},oLanguage:{sProcessing:""},columnDefs:r,columns:t,footerCallback:function(n,t,i,r,u){OCF.DataTable.BindCheckBoxEvent();typeof f=="function"&&(f(n,t,i,r,u),t.length==0&&$(".footerdeleteIcon").hide())},fnInitComplete:function(){OCF.DataTable.BindCheckBoxEvent();OCF.UI.Helper.ToggleTab(!0);e!=undefined&&typeof e=="function"&&e()},fnDrawCallback:function(){if(s){var n=Math.ceil(this.fnSettings()._iDisplayStart/this.fnSettings()._iDisplayLength)+1;n===1?($(i+"_first, "+i+"_previous").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(i+"_last, "+i+"_next").show()):n===Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)?($(i+"_last, "+i+"_next").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(i+"_first, "+i+"_previous").show()):($(i+"_first, "+i+"_previous").show(),$(i+"_last, "+i+"_next").show());Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)>1?($(i+"_paginate")[0].style.display="block",$(i+"_length")[0].style.display="block"):($(i+"_paginate")[0].style.display="none",this.fnSettings().fnRecordsDisplay()<10&&($(i+"_length")[0].style.display="none"));$(i+"_info")[0].style.display=Math.ceil(this.fnSettings().fnRecordsDisplay())===0?"none":"block"}}})}function s(n,t,i,r,u,f,e,o,s,h){i=i!==undefined?i:"#DashBoard";u=u!==undefined?u:!0;u=typeof u=="boolean"?[[0,"desc"]]:u;s=s!==undefined?s:!0;h=h!==undefined?h:!0;r=r!==undefined?r:[];$(i)!==undefined&&($(i).dataTable().fnDestroy(),$(i+" tbody tr").remove());$(i).on("processing.dt",function(n,t,i){$(".dataTables_filter").parent().addClass("right");$(".grid_Loading").height($(this).height()+100);$(".grid_Loading_report").height($(this).height()+100);$(".grid_Loading").css("display",i?"block":"none");$(".grid_Loading_report").css("display",i?"block":"none")});var c=$(i).dataTable({aLengthMenu:[[10,25,50,75,100],["10","25","50","75","100"]],processing:!0,dom:"<'row'<'small-3 columns'l><'small-9 columns'f>r>t<'row'<'small-6 columns'i><'small-6 columns'p>>",serverSide:h,bAutoWidth:!1,bPaginate:s,scrollY:s?"":"400px",ajax:{url:n,type:"POST",data:function(n){if(o!==undefined&&o!==""){var t=$("#"+o).serializeArray();t!==null&&t!==undefined&&(n.Custom=t)}}},aaSorting:u,createdRow:function(n,t,i){i===0&&$("#hdn_ReturnID").val()&&$("#hdn_ReturnID").val()!=""&&($("td",n).addClass("animated bounce"),$("#hdn_ReturnID").val(""),$("#alertDiv").show().delay(4e3).fadeOut())},oLanguage:{sProcessing:""},columnDefs:r,columns:t,footerCallback:function(n,t,i,r,u){typeof f=="function"&&(OCF.DataTable.BindCheckBoxEvent(),f(n,t,i,r,u),t.length==0&&$(".footerdeleteIcon").hide())},fnInitComplete:function(){OCF.DataTable.BindCheckBoxEvent();OCF.UI.Helper.ToggleTab(!0);e!=undefined&&typeof e=="function"&&e()},fnDrawCallback:function(){if(s){var n=Math.ceil(this.fnSettings()._iDisplayStart/this.fnSettings()._iDisplayLength)+1;n===1?($(i+"_first, "+i+"_previous").hide(),this.fnSettings().fnRecordsTotal()/this.fnSettings()._iDisplayLength>1&&$(i+"_last, "+i+"_next").show()):n===Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)?($(i+"_last, "+i+"_next").hide(),this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength>1&&$(i+"_first, "+i+"_previous").show()):($(i+"_first, "+i+"_previous").show(),$(i+"_last, "+i+"_next").show());Math.ceil(this.fnSettings().fnRecordsDisplay()/this.fnSettings()._iDisplayLength)>1?($(i+"_paginate")[0].style.display="block",$(i+"_length")[0].style.display="block"):($(i+"_paginate")[0].style.display="none",this.fnSettings().fnRecordsDisplay()<10&&($(i+"_length")[0].style.display="none"));$(i+"_info")[0].style.display=Math.ceil(this.fnSettings().fnRecordsDisplay())===0?"none":"block";i=="#DashBoard"&&OnSuccess(ancExplode)}}})}return{BuildGrid:n,BuildGridWithoutAjax:t,FormateElectionName:u,FormateElectionDescription:r,BindCheckBoxEvent:i,BuildGridForContributorList:f,BuildGridForExcelImport:e,BuildGridForFeedbackform:o,BuildGridForCommittteeIndex:s}}();htmlOriginal=$.fn.html;$.fn.html=function(n,t){var i=htmlOriginal.apply(this,arguments);return typeof t=="function"&&t(),i};jQuery.validator.addMethod("usPhoneFormat",function(n,t){return this.optional(t)||/^\(\d{3}\) \d{3}\-\d{4}( x\d{1,6})?$/.test(n)},"Enter a valid phone number.");jQuery.validator.addMethod("usDateFormat",function(n,t){return this.optional(t)||/^(1[0-2]|0[1-9])\/(3[01]|[12][0-9]|0[1-9])\/[0-9]{4}$/.test(n)},"Enter a valid date (mm/dd/yyyy).");jQuery.validator.addMethod("isValidDateRange",function(n,t){var i=new Date(n);return $(t).data("fdatepicker").IsDateWithinRange(i)},"Not a valid date range.");$.validator.addMethod("isValidEndDate",function(n){var t=$(".startdate").val();return Date.parse(t)<=Date.parse(n)},"End Date should be greater than Start Date.");$.validator.addMethod("checkSupporting",function(){var t=$("#IsSupporting").is(":checked"),i=$("#IsNonSupporting").is(":checked"),n=!1;return $("#lblSupportingError").show(),(t||i)&&($("#lblSupportingError").hide(),n=!0),n},function(){return""});$.validator.addMethod("moneyordervalidate",function(n){return n<=100},"Money Order Limit is $100.");$.validator.addMethod("notEqual",function(n,t,i){return this.optional(t)||n!=$(i).val()},"Please specify a different (non-default) value");OCF.ValidationHelper=function(){function n(n){var t,i;n=n!=undefined?n:"label.error:visible";t=$(n).first();t.length&&(i=t.offset().top,$("html, body").animate({scrollTop:i-60},"fast"))}function t(n){var t=$(n).first(),i;t.length&&(i=t.offset().top,$("html, body").animate({scrollTop:+i},"fast"))}function i(n){$(n).validate({onsubmit:function(n){$(n).prop("tagName").toLowerCase()==="select"&&$(n).val()===""&&($(n).validate().settings.ignore=":disabled,:hidden");$(n).hasClass("datepicker")||$(n).valid()||OCF.ValidationHelper.ScrollToError()}})}function r(n,t){return $(t).prop("id")=="CandidateDetail_OtherPartyName"&&$("#CandidateDetail_PartyId option:selected").text().toLowerCase()!="others"?!0:$(n).validate().element(t)}function u(n){var t=!0;return $(n).validate().settings.ignore=".ignore",$.each($(n+" .includeforvalidation:not(.ignore)"),function(i,r){t=OCF.ValidationHelper.ValidateCandidateElement(n,r)&&t}),t}function f(){$("#emailalertdiv").show().delay(4e3).fadeOut();$("#candidateForm").validate({onsubmit:function(n){if($(n).prop("tagName").toLowerCase()==="select"&&$(n).val()===""&&($(n).validate().settings.ignore=":disabled,:hidden"),$(n).prop("id")=="CandidateDetail_OtherPartyName"&&$("#CandidateDetail_PartyId option:selected").text().toLowerCase()!="others")return!0;$(n).hasClass("datepicker")||$(n).valid()||OCF.ValidationHelper.ScrollToError()}})}function e(n){var t=!1;return $("#"+n).find(":input:not(:button)").each(function(){if($(this).hasClass("forminput")){if((this.type=="text"||this.type=="textarea"||this.type=="hidden")&&this.defaultValue!=this.value||(this.type=="radio"||this.type=="checkbox")&&this.defaultChecked!=this.checked)return t=!0,!1;if(this.type=="select-one"||this.type=="select-multiple")for(var n=0;n<this.length;n++)if(this.options[n].selected!=this.options[n].defaultSelected)return t=!0,!1}}),t}function o(n){$(window).bind("beforeunload",function(){var t=OCF.ValidationHelper.ValidateChildIsDirty(n);if(t)return"This action will end your current filing session."})}function s(){$(window).unbind("beforeunload")}return{ScrollToError:n,ScrollToAlertError:t,ValidateFormControl:i,ValidateCandidateElement:r,ValidateCandidateFormElements:u,ValidationCandidateCreate:f,ValidateChildIsDirty:e,ShowDirtyWarningIfNeeded:o,UnBindWindowOnBeforeUnload:s}}();OCF.UI.Helper=function(){function o(){var n=0;$("form").submit(function(){return n++,n>1?!1:void 0})}function f(n){return"$"+parseFloat(n).toFixed(2)}function a(){$(document).foundation("dropdown","close",$(".f-dropdown"))}function v(n,t,i,u,f,e){e=e!==undefined?e:!0;switch(t){case r.GET:$.ajax({url:n,type:t,data:i,cache:!1,async:e,success:function(n){u&&u!==undefined&&u(n)},error:function(n){f&&f!==undefined&&f(n)}});break;default:$.ajax({url:n,type:t,data:i,cache:!1,async:e,success:function(n){u(n)},error:function(n){f&&f!==undefined&&f(n)}})}}function y(n,t,i,u,f,e,o){$(u).css("background-image",'url("../../Content/img/loadingSmall.gif")');var s=function(n){var t=JSON.parse(n);$(u).find("option").remove();$(u).append($("<option><\/option>").attr("value","").text(o));$.each(t,function(n,t){$(u).append($("<option><\/option>").attr("value",t[f]).text(t[e]))});$(u).css("background-image","")};OCF.UI.Helper.Ajax(n,r.GET,t,s)}function p(n){OCF.UI.Helper.Ajax(n,r.POST,null,OCF.UI.Helper.NotificationCountResult)}function w(n){n===0||isNaN(Number(n))||($("img.notification").attr("src","/Content/img/notification_icon1.png").addClass("bell"),$(".countCircle").text(Number(n)).attr("style","display:inline"),$("img.notification").parent().show())}function b(n){$("#submitOffice").bind("click",function(){var t=OCF.ValidationHelper.ValidateFormControl(n);t&&($("#submitOffice").css({"background-image":'url("../../Content/img/loader_white@2x.gif")',"background-size":"15px","background-repeat":"no-repeat","background-position":"55px"}),$("#submitOffice").attr("disabled","disabled"),o())})}function k(n){$("#submitLuceneTasks").bind("click",function(){var t=OCF.ValidationHelper.ValidateFormControl(n);t&&($("#submitLuceneTasks").css({"background-image":'url("../../Content/img/loader_white@2x.gif")',"background-size":"15px","background-repeat":"no-repeat","background-position":"55px"}),$("#submitLuceneTasks").attr("disabled","disabled"),o())})}function d(n){$("#submitElection").bind("click",function(){var t=OCF.ValidationHelper.ValidateFormControl(n);t&&($("#submitElection").css({"background-image":'url("../../Content/img/loader_white@2x.gif")',"background-size":"15px","background-repeat":"no-repeat","background-position":"55px"}),$("#submitElection").attr("disabled","disabled"),o())});$("#ElectionTypeId").bind("change",function(){$("#Description").val($("#ElectionTypeId option:selected").text());$("#ElectionTypeId").val()==="7"&&$(".formmultilistbox > div > input").prop("checked",!0);$("#ElectionTypeId").val()==="5"?($("#Description").val(""),$("#electiondescripton").show()):$("#electiondescripton").hide()})}function g(t,i,r,u){var f=[{data:"CandidateModified",render:function(n,t,i){return new Date(i.CandidateModified).getTime()},visible:!1},{data:"Id",visible:!1},{data:"CandidateName",render:function(n,t,r){return r.Id?'<i class="imgactive size-21" title="Active"><\/i><a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.CandidateName+"<\/a>":""},sWidth:"18%"},{data:"DateOfCandidacy",render:function(t,i,r){return n(r.DateOfCandidacy)},sWidth:"13%"},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee&&!i.Exemption?"<p>"+i.NameOfCommittee+"<\/p>":" "},sWidth:"20%"},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?i.CandidateKey:""},sWidth:"18%"},{data:"ElectionYear",render:function(n,t,i){return i.ElectionYear?i.ElectionYear+(i.ElectionName?" - "+i.ElectionName:""):""},sWidth:"17%"},{data:"IsFileSTO",render:function(n,t,i){return i.IsFileSTO&&i.CandidateAdminApproved&&u?'<p><a class="imgfilesto" href="'+r+"/"+i.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();">File STO<\/a><\/p>':""},searchable:!1,sWidth:"9%"}];OCF.DataTable.BuildGrid(t,f)}function nt(t,i,r,u,f,e,o,s){s=s?s:"#DashBoard";var h=[{data:"CommitteeModified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",render:function(n,t,i){var r=i.NameOfCommittee.replaceAll("'","%27").replaceAll('"',"%22");return'<input type="checkbox" class="case" onclick="OCF.UI.Helper.EnableDelete();addSelectedANCItemToControl(this,\''+r+"','"+i.CommitteeKey+'\');" style="margin:0 !important;" value="'+i.Id+'" />'},width:"2%",searchable:!1,bSortable:!1,visible:t.split("/")[3]==="15"?!0:!1},{data:"NameOfCommittee",render:function(t,r,u){return u.CommitteeDetailsId?n(u.TerminationApprovedDate)?'<i class="imgapproved size-21" title="Termination Approved"><\/i><a href="'+i+"/"+u.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();">'+u.NameOfCommittee+"<\/a>":n(u.TerminationFiledDate)&&u.TerminationDeclined==null?'<i class="imgpending size-21" title="Termination Pending"><\/i><a href="'+i+"/"+u.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();">'+u.NameOfCommittee+"<\/a>":u.TerminationDeclined==!0?'<i class="imgdecined size-21" title="Termination Declined"><\/i><a href="'+i+"/"+u.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();">'+u.NameOfCommittee+"<\/a>":'<i class="imgactive size-21" title="Active"><\/i><a href="'+i+"/"+u.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();">'+u.NameOfCommittee+"<\/a>":""},sWidth:"45%",visible:$.inArray(1,o)===-1?!1:!0},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?i.CommitteeKey:""},sWidth:"15%",visible:$.inArray(3,o)===-1?!1:!0},{data:"CommitteeRegisteredDate",render:function(t,i,r){return n(r.CommitteeRegisteredDate)},sWidth:"15%",visible:$.inArray(2,o)===-1?!1:!0},{render:function(n,t,i){return'<a href="'+u+"/"+i.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();"><i class="imgCommitteeReports size-12"><\/i><\/a>'},searchable:!1,bSortable:!1,sWidth:"5%",visible:$.inArray(5,o)===-1?!1:!0},{render:function(n,t,i){return'<a href="'+r+"?RegistrationId="+i.Id+"&FilerTypeId="+i.FilerTypeId+'" onclick="OCF.UI.Helper.DoNothing();"><i class="imgfiling size-21"><\/i><\/a>'},searchable:!1,bSortable:!1,sWidth:"5%",visible:$.inArray(5,o)===-1?!1:!0},{render:function(n,t,i){return'<a href="'+f+"/"+i.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();"><i class="fi-page-filled ref-icon-dashboard"><\/i><\/a> ('+i.ReferralCount+")"},searchable:!1,bSortable:!1,sWidth:"5%",visible:e?!0:!1},];OCF.DataTable.BuildGridForCommittteeIndex(t,h,s,[],!0)}function tt(n,t,i,r,u,f,e,o,s,h,c){var l={selectedIds:c};$.ajax({url:n,type:"POST",data:l,cache:!1,dataType:"json",traditional:!0,success:function(n){console.log(n);t(i,r,u,f,e,o,s,h);OCF.UI.Helper.EnableDelete()},error:function(n){alert("Problem in updating contacts:"+n.responseText);console.log(n)}})}function it(t,i){var r=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",visible:!1},{data:"ElectionTypeId",render:function(n,t,r){return r.ElectionTypeId?"<a href='"+i+"/"+r.Id+"'>"+OCF.DataTable.FormateElectionDescription(r.ElectionTypeId,r.Description,r.ElectionYear)+"<\/a>":""}},{data:"ElectionDate",render:function(t,i,r){return n(r.ElectionDate)}}];OCF.DataTable.BuildGrid(t,r)}function rt(t,i,r){var f=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",render:function(n,t,i){return'<input type="checkbox" class="case" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" value="'+i.Id+'" />'},width:"2%",searchable:!1,bSortable:!1,visible:!0},{data:"BCFullName",render:function(n,t,r){return'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.BCFullName+"<\/a>"},width:"30%",visible:!0},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"25%",visible:!0},{data:"Amount",render:function(n,t,i){return i.Amount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>":""},width:"20%",visible:!0},{data:"Id",render:function(n,t,i){return'<a href="'+r+"/"+i.Id+'" onclick="OCF.UI.Helper.DoNothing();">Contribution Details<\/a>'},searchable:!1,bSortable:!1}],e=function(n,t,i,r,f){var o=0,e;for($("th").hasClass("text-align-right")&&($("th.text-align-right").first().prev().attr("style","display:none"),$("th.text-align-right").first().attr("colSpan","2")),e=0;e<t.length;e++)o+=u(t[f[e]].Amount);$(".total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(o)))};OCF.DataTable.BuildGrid(t,f,"#DashBoard",[],!0,e)}function ut(t,i,r){var f=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",render:function(n,t,i){return'<input type="checkbox" class="case" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" value="'+i.Id+'" />'},width:"2%",searchable:!1,bSortable:!1,visible:$.inArray(1,r)===-1?!0:!1},{data:"FullName",render:function(n,t,r){return'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.FullName+"<\/a>"},width:"20%",visible:$.inArray(2,r)===-1?!0:!1},{data:"Organization",render:function(n,t,r){return'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.Organization+"<\/a>"},width:"20%",visible:$.inArray(3,r)===-1?!0:!1},{data:"CandidateName",render:function(n,t,r){return r.ScheduleContactType==="Elected Official"?'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.FullName+"<\/a>":'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.CandidateName+"<\/a>"},width:"20%",visible:$.inArray(4,r)===-1?!0:!1},{data:"FullName",render:function(n,t,r){return'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.FullName+"<\/a>"},width:"20%",visible:$.inArray(5,r)===-1?!0:!1},{data:"Party",render:function(n,t,i){if(i.Party){if(i.Party.toLowerCase().indexOf(";#")>=0){var r=i.Party.split(";#");return r[r.length-1]}return i.Party}return""},width:"20%",visible:$.inArray(6,r)===-1?!0:!1},{data:"ScheduleContactType",render:function(n,t,i){return i.ScheduleContactType?i.ScheduleContactType:""},width:"20%",visible:$.inArray(7,r)===-1?!0:!1},{data:"TransactionType",render:function(n,t,i){return i.TransactionType?i.TransactionType:""},width:"15%",visible:$.inArray(8,r)===-1?!0:!1},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"15%",visible:$.inArray(9,r)===-1?!0:!1},{data:"Amount",render:function(n,t,i){return i.Amount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>":""},width:"15%",visible:$.inArray(10,r)===-1?!0:!1},{data:"AmountThisPeriod",render:function(n,t,i){return i.AmountThisPeriod?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.AmountThisPeriod))+"<\/p><\/div>":""},width:"20%",visible:$.inArray(11,r)===-1?!0:!1},],e=function(n,t,i,r,f){var o=0,e;for($("th").hasClass("text-align-right")&&($("th.text-align-right").first().prev().attr("style","display:none"),$("th.text-align-right").first().attr("colSpan","2")),e=0;e<t.length;e++)o+=u(t[f[e]].Amount);$(".total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(o)))};OCF.DataTable.BuildGrid(t,f,"#DashBoard",[],!0,e)}function u(n){return typeof n=="string"?n.replace(/[\$,]/g,"")*1:typeof n=="number"?n:0}function ft(t,i,r){var f=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",render:function(n,t,i){return'<input type="checkbox" onclick="OCF.UI.Helper.EnableDelete();"  style="margin:0 !important;" class="case" value="'+i.Id+'" />'},width:"5%",searchable:!1,bSortable:!1,visible:$.inArray(1,r)===-1?!0:!1},{data:"FullName",render:function(n,t,r){return'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.FullName+"<\/a>"},visible:$.inArray(2,r)===-1?!0:!1},{data:"Organization",render:function(n,t,r){return'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.Organization+"<\/a>"},visible:$.inArray(3,r)===-1?!0:!1},{data:"SchedulePurposeCode",render:function(n,t,i){return i.SchedulePurposeCode?i.SchedulePurposeCode:""},visible:$.inArray(4,r)===-1?!0:!1},{data:"SchedulePurposeCode",render:function(n,t,i){return i.SchedulePurposeCode?i.SchedulePurposeCode:""},visible:$.inArray(5,r)===-1?!0:!1},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"15%",visible:$.inArray(6,r)===-1?!0:!1},{data:"Amount",render:function(n,t,i){return i.Amount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>":""},width:"15%",visible:$.inArray(7,r)===-1?!0:!1},],e=function(n,t,i,r,f){for(var o=0,e=0;e<t.length;e++)o+=u(t[f[e]].Amount);$(".total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(o)))};OCF.DataTable.BuildGrid(t,f,"#DashBoard",[],!0,e)}function et(n,t){var i=[{data:"Id",render:function(n,t,i){return'<input type="checkbox" onclick="OCF.UI.Helper.EnableDelete();OCF.UI.Helper.AddSelectedItemToControl(this);"  style="margin:0 !important;" class="case" value="'+i.Id+'" />'},width:"5%",searchable:!1,bSortable:!1},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?i.NameOfCommittee:""},visible:$.inArray(1,t)===-1?!1:!0},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?i.CommitteeKey:""},width:"5%",visible:$.inArray(2,t)===-1?!1:!0},{data:"CandidateName",render:function(n,t,i){return i.CandidateName?i.CandidateName:""},width:"8%",visible:$.inArray(3,t)===-1?!1:!0},{data:"EmailAddress",render:function(n,t,i){return i.EmailAddress?i.EmailAddress:""},width:"4%",visible:$.inArray(4,t)===-1?!1:!0},{data:"TreasurerName",render:function(n,t,i){return i.TreasurerName?i.TreasurerName:""},width:"8%",visible:$.inArray(5,t)===-1?!1:!0},{data:"TreasurerEmail",render:function(n,t,i){return i.TreasurerEmail?i.TreasurerEmail:""},width:"4%",visible:$.inArray(6,t)===-1?!1:!0},{data:"ChairpersonName",render:function(n,t,i){return i.ChairpersonName?i.ChairpersonName:""},width:"5%",visible:$.inArray(7,t)===-1?!1:!0},{data:"ChairpersonEmail",render:function(n,t,i){return i.ChairpersonEmail?i.ChairpersonEmail:""},width:"5%",visible:$.inArray(8,t)===-1?!1:!0},{data:"EmailAddress",render:function(n,t,i){return i.EmailAddress?i.EmailAddress:""},width:"4%",visible:$.inArray(9,t)===-1?!1:!0},{data:"CandidateName",render:function(n,t,i){return i.CandidateName?i.CandidateName:""},width:"8%",visible:$.inArray(10,t)===-1?!1:!0},{data:"EmailAddress",render:function(n,t,i){return i.EmailAddress?i.EmailAddress:""},width:"4%",visible:$.inArray(11,t)===-1?!1:!0},{data:"TreasurerName",render:function(n,t,i){return i.TreasurerName?i.TreasurerName:""},width:"8%",visible:$.inArray(12,t)===-1?!1:!0},{data:"TreasurerEmail",render:function(n,t,i){return i.TreasurerEmail?i.TreasurerEmail:""},width:"4%",visible:$.inArray(13,t)===-1?!1:!0},];OCF.DataTable.BuildGrid(n,i,"#DashBoard",[],[[1,"asc"]],[],[],[],!1,!1)}function ot(n){var t=$("#SenderEmail").val().split(","),r=$(n)!=null?$(n).val():"",i;if((r!=null||r.val()!="")&&n.checked)t.push($(n).val());else for(i=0;i<t.length;i++)t[i]==r&&t.splice(i,1);$("#SenderEmail").val(t.join(","))}function st(n,t,i,r,f){var e=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",render:function(n,t,i){return r==i.FilerTypeReportId?'<input type="checkbox" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" class="case" value="'+i.Id+'" />':'<input type="checkbox" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" disabled = "" class="case" value="'+i.Id+'" />'},width:"5%",searchable:!1,bSortable:!1},{data:"FullName",render:function(n,i,u){var f=String(u.ReportName);return r==u.FilerTypeReportId?'<a href="'+t+"/"+u.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+u.FullName+"<\/a>":'<a class="popupLink" data-rpname="'+f+'" > '+u.FullName+"*<\/a > "}},{data:"TransactionDate",render:function(n,t,i){return c(i.TransactionDate)?$.format.date(i.TransactionDate,"MM/dd/yyyy"):""}},{data:"OriginalLoanAmount",render:function(n,t,i){return i.OriginalLoanAmount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.OriginalLoanAmount))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},{data:"AmountThisPeriod",render:function(n,t,i){return i.AmountThisPeriod?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.AmountThisPeriod))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},{data:"CumulativeAmount",render:function(n,t,i){return i.CumulativeAmount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.CumulativeAmount))+'<\/p><a href="'+f+"?loanMasterId="+i.Id+'" onclick="OCF.UI.Helper.DoNothing();">Details<\/a><\/div>':'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},{data:"Amount",render:function(n,t,r){return r.Amount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(r.Amount))+"<\/p>"+(r.Amount>0?'<a href="'+i+"?id="+r.Id+"&scheduleMasterId="+r.ScheduleMasterId+'" onclick="OCF.UI.Helper.DoNothing();">Add Repayment<\/a>':"")+"<\/div > ":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}}],o=function(n,t,i,r,f){for(var o=0,s=0,e=0;e<t.length;e++)o+=u(t[f[e]].AmountThisPeriod),s+=u(t[f[e]].CumulativeAmount);$(".total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(o)));$(".cumulative-total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(s)))};OCF.DataTable.BuildGrid(n,e,"#DashBoard",[],!0,o)}function ht(t){var i=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"FullName",render:function(n,t,i){return i.FullName?i.FullName:""}},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)}},{data:"OriginalLoanAmount",render:function(n,t,i){return i.OriginalLoanAmount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.OriginalLoanAmount))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},{data:"CumulativeAmount",render:function(n,t,i){return i.CumulativeAmount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.CumulativeAmount))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},];OCF.DataTable.BuildGrid(t,i,"#DashBoard",[],!0)}function ct(t){var i=0,r=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"CumulativeAmount",render:function(n,t,r){return r.CumulativeAmount?(r.CumulativeAmount=r.CumulativeAmount!==null?r.CumulativeAmount:0,i=i+1,i>=1&&r.FullName!=null&&$("#salesgrid").show(),$("#total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(r.CumulativeAmount))),r.CumulativeAmount):""},visible:!1},{data:"Amount",render:function(n,t,i){return i.Amount?($("#sales").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))),i.Amount):""},visible:!1},{data:"EventType",render:function(n,t,i){return i.FullName?i.FullName:""}},{data:"EventDate",render:function(t,i,r){return n(r.TransactionDate)}},{data:"SaleOfTickets",render:function(n,t,i){return i.SaleOfTickets?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.SaleOfTickets))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},{data:"MassCollections",render:function(n,t,i){return i.MassCollections?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.MassCollections))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},];OCF.DataTable.BuildGrid(t,r,"#DashBoard",[],!0)}function lt(t,i){var r=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",render:function(n,t,i){return'<input type="checkbox" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" class="case" value="'+i.Id+"|"+i.ScheduleTransactionId+'" />'},width:"5%",searchable:!1,bSortable:!1},{data:"FullName",render:function(n,t,r){return'<a href="'+i+"?bundledContributionId="+r.Id+"&scheduleTransactionId="+r.ScheduleTransactionId+'" onclick="OCF.UI.Helper.DoNothing();">'+r.FullName+"<\/a>"}},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)}},{data:"Amount",render:function(n,t,i){return i.Amount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}}],f=function(n,t,i,r,f){for(var o=0,e=0;e<t.length;e++)o+=u(t[f[e]].Amount);$(".total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(o)))};OCF.DataTable.BuildGrid(t,r,"#DashBoard",[],!0,f)}function at(n,t){var i=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"ScheduleTranscationId",render:function(n,t,i){return'<input type="checkbox" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" class="case" value="'+i.Id+'" />'},width:"5%",searchable:!1,bSortable:!1},{data:"FullName",render:function(n,i,r){return'<a href="'+t+"?loanMasterId="+r.LoanMasterId+"&scheduleTransactionId="+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.FullName+"<\/a>"}},{data:"LoanAmount",render:function(n,t,i){return i.LoanAmount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.LoanAmount))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},{data:"Amount",render:function(n,t,i){return i.Amount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>":'<div style="text-align:right"><p>$0.00<\/p><\/div>'}},{data:"TransactionDate",render:function(n,t,i){return c(i.TransactionDate)?$.format.date(i.TransactionDate,"MM/dd/yyyy"):""}}],r=function(n,t,i,r,f){for(var o=0,e=0;e<t.length;e++)o+=u(t[f[e]].Amount);$(".total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(o)))};OCF.DataTable.BuildGrid(n,i,"#DashBoard",[],!0,r)}function vt(n,t){var i=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",render:function(n,t,i){return'<input type="checkbox" onclick="OCF.UI.Helper.EnableDelete();"  style="margin:0 !important;" class="case" value="'+i.Id+'" />'},width:"5%",searchable:!1,bSortable:!1},{data:"FullName",render:function(n,i,r){return'<a href="'+t+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.FullName+"<\/a>"},width:"30%"},{data:"Purpose",render:function(n,t,i){return i.Purpose?i.Purpose:""},width:"15%"},{data:"AmountThisPeriod",render:function(n,t,i){return i.AmountThisPeriod?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.AmountThisPeriod))+"<\/p><\/div>":""},width:"20%"},{data:"Amount",render:function(n,t,i){return i.Amount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>":""},width:"20%"}],r=function(n,t,i,r,f){for(var o=0,s=0,e=0;e<t.length;e++)s+=u(t[f[e]].AmountThisPeriod),o+=u(t[f[e]].Amount);$(".amountIncurred").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(s)));$(".total").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(o)))};OCF.DataTable.BuildGrid(n,i,"#DashBoard",[],!0,r)}function yt(n){var t=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"FullName",render:function(n,t,i){return i.FullName?i.FullName:""},width:"30%"},{data:"Purpose",render:function(n,t,i){return i.Purpose?i.Purpose:""},width:"15%"},{data:"AmountThisPeriod",render:function(n,t,i){return i.AmountThisPeriod?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.AmountThisPeriod))+"<\/p><\/div>":""},width:"20%"},{data:"Amount",render:function(n,t,i){return i.Amount?'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>":""},width:"20%"}];OCF.DataTable.BuildGrid(n,t,"#DashBoard",[],!0)}function pt(){$(".case:checkbox:checked").length==0&&$("#checkall:checked").length!=0&&$("#checkall").prop("checked",!1);$(".case:checkbox:checked").length!=0||$("#checkall:checked").length!=0?$("#deleteIcon").prop("disabled",!1):$("#deleteIcon").prop("disabled",!0)}function wt(n,t){var i=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",visible:!1},{data:"Code",render:function(n,i,r){return'<a href="'+t+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.Code+"<\/a>"},width:"20%"},{data:"Description",width:"60%"},{data:"ContributionLimit",render:function(n,t,i){return'<div style="text-align:right"><p>$'+configure_amount(i.ContributionLimit)+"<\/p><\/div>"},width:"20%"}];OCF.DataTable.BuildGrid(n,i)}function bt(n){var t=[{data:"Id",visible:!1},{data:"ReportName",render:function(n,t,i){return i.ReportName?i.ReportName:""},visible:!0,width:"40%"},{data:"Condition",render:function(n,t,i){return i.Condition?i.Condition:""},visible:!0,width:"40%"},{data:"IsProcessed",render:function(n,t,i){return i.IsProcessed?"Yes":"No"},visible:!0,width:"20%"},];OCF.DataTable.BuildGrid(n,t)}function kt(t){var i=[{data:"ReportOrder",render:function(n,t,i){return i.ReportOrder},visible:!1},{data:"Id",visible:!1},{data:"ReportName",render:function(n,t,i){return i.ReportName!==""?'<a href="#" onclick=editFilerTypeReport("/FilerTypeReport/Edit/'+i.Id+'") return false;">'+i.ReportName+"<\/a>":""},width:"60%"},{data:"StartDate",render:function(t,i,r){return n(r.StartDate)},width:"20%"},{data:"EndDate",render:function(t,i,r){return n(r.EndDate)},width:"20%"}];OCF.DataTable.BuildGrid(t,i,"#DashBoard",[],[[0,"asc"]])}function dt(t){var i=[{data:"EmailTo",render:function(n,t,i){return i.EmailTo!==""?'<a href="#" onclick=previewEmail("'+i.Id+'") return false;">'+i.EmailTo+"<\/a>":""},width:"20%"},{data:"EmailSubject",render:function(n,t,i){return i.EmailSubject?i.EmailSubject:""},width:"30%"},{data:"DisplayName",render:function(n,t,i){return i.DisplayName?"<div><p>"+i.DisplayName+"<\/p><\/div>":""},width:"30%"},{data:"SentAt",render:function(t,i,r){return n(r.SentAt)},width:"10%"},];OCF.DataTable.BuildGrid(t,i,"#DashBoard",[],[[3,"desc"]])}function gt(n,t,i){var r=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1,bSortable:!1},{data:"Id",render:function(n,t,i){return'<input type="checkbox" class="case" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" value="'+i.ScheduleMasterId+'" />'},width:"2%",searchable:!1,bSortable:!1},{data:"ScheduleMasterId",visible:!1,bSortable:!1},{data:"ReportName",render:function(n,i,r){if(r.ReportName!==""){var u=t+"/"+r.ScheduleMasterId;return r.Version!==""?"<a href="+u+' onclick="OCF.UI.Helper.DoNothing();">'+r.ReportName+" - "+(r.Version==0?"Original":"Amendment "+r.Version)+"<\/a>":"<a href="+u+'onclick="OCF.UI.Helper.DoNothing();">'+r.ReportName+"<\/a>"}return""}},{data:"FilingYear",render:function(n,t,i){return i.FilingYear!==""?i.FilingYear:""}},],u=function(){};OCF.DataTable.BuildGrid(n,r,i,[],[[3,"desc"]],u)}function ni(t,i,r,u,f,e){var o=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1,bSortable:!1},{data:"ScheduleMasterId",visible:!1,bSortable:!1},{data:"ReportName",render:function(n,t,i){var u,r,o;return i.ReportName!==""?(i.ScheduleMasterId!=""&&(u=f+"/"+i.ScheduleMasterId),r=i.Version!==""&&i.IsScheduleEditable&&e?"<a href="+u+' onclick="OCF.UI.Helper.DoNothing();">'+i.ReportName+" - "+(i.Version==0?"Original":"Amendment "+i.Version)+"<\/a>":i.IsScheduleEditable&&e?"<a href="+u+' onclick="OCF.UI.Helper.DoNothing();">'+i.ReportName+" - "+(i.Version==0?"Original":"Amendment "+i.Version)+"<\/a>":i.Version!==""?i.ReportName+" - "+(i.Version==0?"Original":"Amendment "+i.Version):i.ReportName,i.IsTerminationReport&&i.TeminationStatusFlag?i.TerminationApproved==null?r='<i class="imgpending size-21" title="Termination Pending"><\/i>'+r:i.TerminationApproved==!1?(o=i.TerminationComments!=null&&i.TerminationComments!=""?i.TerminationComments:"Termination Declined",r='<i class="imgdecined size-21" title="'+o+'"><\/i>'+r):r='<i class="imgapproved size-21" title="Termination Approved"><\/i>'+r:r='<div style="margin-right: 26px;float: left; padding: 0.4px">&nbsp<\/div>'+r,r):""},width:"30%"},{data:"FilingYear",render:function(n,t,i){return i.FilingYear!==""?i.FilingYear:""},width:"10%"},{data:"Certified",render:function(n,t,i){return i.Certified?"FILER":"OCF"},width:"15%"},{data:"SubmittedDate",render:function(t,i,r){return n(r.SubmittedDate)},width:"15%"},{data:"ScheduleMasterId",render:function(n,t,i){if(i.ScheduleMasterId!==""){var r=u+"/"+i.ScheduleMasterId;return'<a href="'+r+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();">Entire Report<\/a>'}return""},width:"15%",bSortable:!1},{data:"Version",visible:!1}];OCF.DataTable.BuildGrid(t,o,r,[[]],[[7,"desc"],[5,"desc"]],!0)}function ti(n){$("#ContributionLimit").html("$0.00");OCF.UI.Helper.BindOfficeControls(n)}function ii(n){OCF.UI.Helper.BindOfficeControls(n)}function ri(n){OCF.UI.Helper.BindElectionControls(n)}function ui(n){OCF.UI.Helper.BindLuceneTasksControls(n)}function fi(n,t,i){$("#wizard").steps({headerTag:"h2",bodyTag:"section",transitionEffect:"slideLeft",autoFocus:!0,enableKeyNavigation:!0,enableSkipButton:!0,stepsOrientation:$.fn.steps.stepsOrientation.vertical,loadingTemplate:'<span class="spinner"><\/span> #text#',enableAllSteps:t!=undefined?!0:!1,enableFinishButton:i!=undefined?i:!1,onStepChanging:function(n,t,i,r){return $("#loadingSection").show(),$("#actionSummary").hide(),configure_mask(),OCF.UI.Helper.CandidateStepChangingCreate(n,t,i,r)},onStepChanged:function(t,i,r){return OCF.UI.Helper.CandidateStepChangedCreate(n,t,i,r)},onFinishing:function(){var t,n;for($("form").submit(),t=$("[role='menuitem']"),n=0;n<t.length;n++)t[n].text=="Finish"&&$(t[n]).css({"background-image":'url("../../Content/img/loader_white@2x.gif")',"background-size":"15px","background-repeat":"no-repeat","background-position":"right"}),$("form").bind("submit",function(n){return n.preventDefault,!1})}});$("#wizard .steps .current").addClass("arrow-box-right");$("#CandidateDetail_CandidateContact_Prefix").focus();$(".wizard > div.steps > ul > li.current > a").attr("style","cursor:pointer");$(".wizard > div.steps > ul > li.done > a").attr("style","cursor:pointer");OCF.ValidationHelper.ValidationCandidateCreate()}function ei(n,t,i){if($(".arrow-box-right").removeClass("arrow-box-right"),$(".wizard > div.steps > ul > li.current").addClass("arrow-box-right"),i===0&&($("#FilerTypeId").attr("type")==="hidden"&&$("#CandidateDetail_CandidateContact_Prefix").focus(),$("#FilerTypeId").focus()),i===1&&$("Input[name='CandidateDetail.Exemption']:checked").attr("id")==="ClaimingExemptionNo"){$("#DesignationOfCommittee_NameOfCommittee").on("focus",function(){return $("html, body").animate({scrollTop:200},10),!1});$(".content #DesignationOfCommittee_NameOfCommittee").focus();$($("#wizard > div > ul > li").attr("href","#skip")[$("#wizard > div > ul > li").attr("href","#skip").length-1]).attr("style","display:none")}if($("Input[name='CandidateDetail.Exemption']:checked").attr("id")==="ClaimingExemptionNo"&&i===3&&!OCF.ValidationHelper.ValidateCandidateFormElements("#wizard-p-"+parseInt(i-2)))return currentNewIndex=parseInt(i-2),$("#wizard-t-"+currentNewIndex).parent().hasClass("disabled")&&($("#wizard-t-"+currentNewIndex).parent().removeClass("disabled"),$("#wizard-t-"+currentNewIndex).parent().addClass("done")),$("#wizard-t-"+currentNewIndex).click(),!1;var r=$('.steps [id*="wizard-t-"]');$.each(r,function(t,i){$(i).parent().attr("aria-selected")&&$(i).text().split(". ")[1].toLowerCase()==="summary"&&OCF.UI.Helper.GetSummaryData(n)});$(window).scrollTop(200)}function oi(n,t,i,r){if(t>i||r)return $("#loadingSection").hide(),$("#wizard .body:eq("+i+") label.error").remove(),$("#wizard .body:eq("+i+") .error").removeClass("error"),t==1&&$("Input[name='CandidateDetail.Exemption']:checked").attr("id")==="ClaimingExemptionYes"&&(OCF.ValidationHelper.ValidateCandidateFormElements("#wizard-p-"+t)||($("#wizard-p-"+t+" input[type=text]").val(""),$("#wizard-p-"+t+" select").val(""))),!0;if(t<i&&($("#wizard .body:eq("+i+") label.error").remove(),$("#wizard .body:eq("+i+") .error").removeClass("error")),OCF.ValidationHelper.ValidateCandidateFormElements("#wizard-p-"+t))return!0;OCF.ValidationHelper.ScrollToError()}function si(n){OCF.UI.Helper.Ajax(n,r.POST,$("#candidateForm").serializeArray(),OCF.UI.Helper.GetSummarySuccess)}function hi(n){$("#candidateSummaryContent").html("");$("#candidateSummaryContent").append(n);$("#lbl_CandidateDetail_Election")&&$("#CandidateDetail_ElectionId")&&$("#CandidateDetail_ElectionId").val()!==""&&$("#lbl_CandidateDetail_Election").text($("#CandidateDetail_ElectionId option:selected").text());$("#lbl_CandidateDetail_Office")&&$("#CandidateDetail_OfficeId")&&$("#CandidateDetail_OfficeId").val()!==""&&$("#lbl_CandidateDetail_Office").text($("#CandidateDetail_OfficeId option:selected").text());$("#lbl_CandidateDetail_ContributionLimit")&&$("#CandidateDetail_ContributionLimit")&&$("#CandidateDetail_ContributionLimit").val()!==""&&$("#lbl_CandidateDetail_ContributionLimit").text($("#CandidateDetail_ContributionLimit").val());$("#lbl_CandidateDetail_Party")&&$("#CandidateDetail_PartyId")&&$("#CandidateDetail_PartyId").val()!==""&&($("#CandidateDetail_PartyId option:selected").text().toLowerCase()==="others"?$("#lbl_CandidateDetail_Party").text($("#CandidateDetail_OtherPartyName").val()):$("#lbl_CandidateDetail_Party").text($("#CandidateDetail_PartyId option:selected").text()));$("#lbl_FilerType")&&$("#FilerTypeId")&&$("#FilerTypeId").val()!==""&&$("#lbl_FilerType").text($("#FilerTypeId option:selected").text());$("#loadingSection").hide();$("#actionSummary").show();$("#printCandidateIcon").show()}function ci(n,t){OCF.UI.Helper.InitCandidateCreate(n,!0,t)}function li(n,t){$("#loadingSection").show();var i=function(n){$("#divScheduleContent").html(n,function(){startDate=$("#ReportStartDate").val().split(" ")[0];EndDate=$("#ReportEndDate").val().split(" ")[0];$.fn.fdatepicker.SetDateRange("#Contribution_TransactionDate",startDate,EndDate);$("#loadingSection").hide()})};OCF.UI.Helper.Ajax(t,r.POST,{contactTypeId:Number(n)},i)}function ai(n,t,i){$("#loadingSection").show();var u=function(n){$("#divScheduleContent").html(n,function(){startDate=$("#ReportStartDate").val().split(" ")[0];EndDate=$("#ReportEndDate").val().split(" ")[0];$.fn.fdatepicker.SetDateRange("#BundledContributionDetails_BundledContributions_Transaction_TransactionDate",startDate,EndDate);$("#loadingSection").hide();var n=$("#"+$(i).attr("id")+" option:selected").text();n==="Other"?($("#otherDesc").show(),$("#BundledContributionDetails_BundledContributions_Contact_Description").focus()):n==="Individual"?($("#otherDesc").hide(),$("#BundledContributionDetails_BundledContributions_Contact_FirstName").focus()):($("#otherDesc").hide(),$("#BundledContributionDetails_BundledContributions_Contact_Organization").focus())})};OCF.UI.Helper.Ajax(t,r.POST,{contactTypeId:Number(n)},u)}function vi(n){OCF.ValidationHelper.ValidateFormControl(n)}function yi(n){OCF.ValidationHelper.ValidateFormControl(n)}function pi(n){OCF.ValidationHelper.ValidateFormControl(n)}function wi(n){OCF.ValidationHelper.ValidateFormControl(n)}function bi(n){OCF.ValidationHelper.ValidateFormControl(n)}function ki(n){OCF.ValidationHelper.ValidateFormControl(n)}function di(n){OCF.ValidationHelper.ValidateFormControl(n)}function gi(n){OCF.ValidationHelper.ValidateFormControl(n)}function nr(n,t){$("#loadingSection").show();var i=function(n){$("#divExpenditureContent").html(n,function(){startDate=$("#ReportStartDate").val().split(" ")[0];EndDate=$("#ReportEndDate").val().split(" ")[0];new Date(EndDate).getTime()>(new Date).getTime()?$.fn.fdatepicker.SetDateRange("#Expenditure_TransactionDate",startDate,new Date):$.fn.fdatepicker.SetDateRange("#Expenditure_TransactionDate",startDate,EndDate);$("#loadingSection").hide()})};OCF.UI.Helper.Ajax(t,r.POST,{contactTypeId:Number(n)},i)}function tr(n,t){$("#loadingSection").show();var i=function(n){$("#divDebtsContent1").html(n,function(){$("#loadingSection").hide()})};OCF.UI.Helper.Ajax(t,r.POST,{contactTypeId:Number(n)},i)}function ir(n){var t=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",visible:!1},{data:"Organization",render:function(n,t,i){var r=i.FullName.trim()!==""?i.FullName:i.Organization;return'<a href="#" onclick="BindContactInfoSection('+i.Id+');return false;">'+r+"<\/a>"}},{data:"StreetAddress",render:function(n,t,i){return i.StreetAddress?i.StreetAddress:""}},{data:"City",render:function(n,t,i){return i.City?i.City:""}},{data:"State",render:function(n,t,i){return i.State?i.State:""}},{data:"Zip",render:function(n,t,i){return i.Zip?i.Zip:""}}];OCF.DataTable.BuildGrid(n,t)}function rr(n){var t=[{data:"CandidateName",render:function(n,t,i){return'<a href="#" onclick="BindCandidateContactInfoSection('+i.Id+');return false;">'+i.CandidateName+"<\/a>"}},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?i.CandidateKey:""}},{data:"ElectionName",render:function(n,t,i){return i.ElectionName?i.ElectionName:""}},{data:"OfficeSought",render:function(n,t,i){return i.OfficeSought?i.OfficeSought:""}},];OCF.DataTable.BuildGrid(n,t)}function ur(n,t){if(n!==null&&t!==""){var i=$("#"+t).DataTable(),r=i.cells().nodes(),u=$(r).find(":checkbox");$(u).each(function(t,i){$(i).is(":disabled")||$(i).prop("checked",n.checked)})}}function fr(n,t){if(n!==null&&t!==""){var i=$("#"+t).DataTable(),r=i.cells().nodes();$(r).find(":checkbox").prop("checked",n.checked)}}function er(n,t,i,r,u){var f=$(".case:checkbox:checked").map(function(){return $(this).val()}).get(),e;console.log(f);e={selectedIds:f};$.ajax({url:n,type:"POST",data:e,cache:!1,dataType:"json",traditional:!0,success:function(n){console.log(n);t(i,r,u);OCF.UI.Helper.EnableDelete()},error:function(n){console.log(n)}})}function or(n,t,i,r,u){var f=$(".case:checkbox:checked").map(function(){return $(this).val()}).get(),e;console.log(f);e={selectedIds:f};$.ajax({url:n,type:"POST",data:e,cache:!1,dataType:"json",traditional:!0,success:function(n){console.log(n);t(i,r,u);OCF.UI.Helper.EnableDelete()},error:function(n){alert("Problem in updating contacts:"+n.responseText);console.log(n)}})}function l(n){if(n.value&&n.value!==""&&!isNaN(n.value)){$(n).formatCurrency();var t=$(n).val().replace("$","");$(n).val(t)}}function sr(n){$(n).val(configure_amount(parseFloat($(n).val())))}function hr(){$(".currency").each(function(){l(this)})}function cr(n,t,i){var r=[{data:"Id",visible:!1},{data:"CommitteeName",render:function(n,i,r){return r.CommitteeName?'<a href="'+t+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.CommitteeName+"<\/a>":""},bAutoWidth:!0,visible:$.inArray(1,i)===-1?!1:!0},{data:"CandidateName",render:function(n,i,r){return r.CandidateName&&r.FilerTypeId===1?'<a href="'+t+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.CandidateName+"<\/a>":r.CandidateName?"<div><p>"+r.CandidateName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(2,i)===-1?!1:!0},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?"<div><p>"+i.CandidateKey+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(3,i)===-1?!1:!0},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?"<div><p>"+i.CommitteeKey+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(4,i)===-1?!1:!0},{data:"ElectionYear",render:function(n,t,i){return i.ElectionYear?"<div><p>"+i.ElectionYear+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(5,i)===-1?!1:!0},{data:"PartyName",render:function(n,t,i){return i.PartyName?"<div><p>"+i.PartyName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(6,i)===-1?!1:!0},{data:"TerminationApproved",render:function(n,t,i){return i.TerminationApproved==!0?"<div><p>Terminated<\/p><\/div>":"<div><p>Active<\/p><\/div>"},bAutoWidth:!0,visible:$.inArray(7,i)===-1?!1:!0},{data:"Office",render:function(n,t,i){return i.Office?"<div><p>"+i.Office+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(8,i)===-1?!1:!0}],u=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(n,r,"#DashBoard",[],!1,u)}function lr(t,i,r,u,f){var e=[{data:"NameOfCommittee",render:function(n,t,f){var e,o;return f.ReportPath&&f.FilerTypeId!=100?(e=r+"?reportname="+f.ReportPath,'<a href="'+e+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();">'+f.NameOfCommittee+"<\/a>"):f.ScheduleMasterId!==""&&f.ScheduleMasterId>0?(e=i+"/"+f.ScheduleMasterId+"/"+f.CommitteeKey+"_"+f.FilingYear+" "+f.ReportName+"_"+f.ReportStatus,'<a href="'+e+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();">'+f.NameOfCommittee+"<\/a>"):f.FilerTypeId==100?(o=u+f.ReportPath,'<a href="'+o+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();">'+f.NameOfCommittee+"<\/a>"):""},bAutoWidth:!0,visible:$.inArray(1,f)===-1?!1:!0},{data:"CandidateName",render:function(n,t,i){return i.CandidateName?"<div><p>"+i.CandidateName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(2,f)===-1?!1:!0},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?"<div><p>"+i.CandidateKey+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(3,f)===-1?!1:!0},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?"<div><p>"+i.CommitteeKey+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(4,f)===-1?!1:!0},{data:"ReportName",render:function(n,t,i){return i.ReportName?"<div><p>"+i.ReportName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(5,f)===-1?!1:!0},{data:"ReportStatus",render:function(n,t,i){return i.ReportStatus?"<div><p>"+i.ReportStatus+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(6,f)===-1?!1:!0},{data:"Section",render:function(n,t,i){return i.Section!==""?i.Section:""},bAutoWidth:!0,visible:$.inArray(7,f)===-1?!1:!0},{data:"FilingYear",render:function(n,t,i){return i.FilingYear!==""?i.FilingYear:""},bAutoWidth:!0,visible:$.inArray(8,f)===-1?!1:!0},{data:"SubmittedDate",render:function(t,i,r){return n(r.SubmittedDate)},bAutoWidth:!0,visible:$.inArray(9,f)===-1?!1:!0}],o=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,e,"#DashBoard",[],[[0,"asc"]],!1,o)}function ar(t,i){var r=[{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?"<div><p>"+i.CandidateKey+"<\/p><\/div>":""},bAutoWidth:!0,visible:i==!1?!0:!1},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?"<div><p>"+i.CommitteeKey+"<\/p><\/div>":""},bAutoWidth:!0,visible:i==!0?!0:!1},{data:"FullNamePrefix",render:function(n,t,i){return i.FullNamePrefix?"<div><p>"+i.FullNamePrefix+"<\/p><\/div>":""},bAutoWidth:!0,visible:i==!1?!0:!1},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?"<div><p>"+i.NameOfCommittee+"<\/p><\/div>":""},bAutoWidth:!0,visible:i==!0?!0:!1},{data:"ContactType",render:function(n,t,i){return i.ContactType?"<div><p>"+i.ContactType+"<\/p><\/div>":""},bAutoWidth:!0,visible:!0},{data:"FullNamePrefix",render:function(n,t,i){return i.FullNamePrefix?"<div><p>"+i.FullNamePrefix+"<\/p><\/div>":""},bAutoWidth:!0,visible:!0},{data:"DateOfAttendance",render:function(t,i,r){return n(r.DateOfAttendance)},bAutoWidth:!0,visible:!0},],u=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,r,"#DashBoard",[],!1,u)}function vr(t,i,r,u,f,e){var o=e&&e.length>0?e.includes("REF_EDIT"):!1,s=e&&e.length>0?e.includes("REF_UPD"):!1,h=e&&e.length>0?e.includes("REF_DEL"):!1,c=e&&e.length>0?e.includes("REF_VIEW"):!1,l=[{data:"DocketNo",render:function(n,t,i){return i.DocketNo?"<div><p>"+i.DocketNo+"<\/p><\/div>":""},sWidth:"10%",visible:!0,bSortable:!0},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?"<div><p>"+i.NameOfCommittee+"<\/p><\/div>":""},sWidth:"15%",visible:f,bSortable:!0},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?"<div><p>"+i.CommitteeKey+"<\/p><\/div>":""},sWidth:"5%",visible:f,bSortable:!0},{data:"RefSubject",render:function(n,t,i){return i.RefSubject?"<div><p>"+i.RefSubject+"<\/p><\/div>":""},sWidth:"15%",visible:!0,bSortable:!1},{data:"ReferredBy",render:function(n,t,i){return i.ReferredBy?"<div><p>"+i.ReferredBy+"<\/p><\/div>":""},sWidth:"5%",visible:!0,bSortable:!1},{data:"MemoDate",render:function(t,i,r){return n(r.MemoDate)},sWidth:"10%",visible:!0,bSortable:!0},{data:"RefferralStatusName",render:function(n,t,i){return i.RefferralStatusName?"<div><p>"+i.RefferralStatusName+"<\/p><\/div>":""},sWidth:"5%",visible:!0,bSortable:!1},{data:"LatestAction",render:function(n,t,i){return i.LatestAction?"<div><p>"+i.LatestAction+"<\/p><\/div>":""},sWidth:"10%",visible:!0,bSortable:!1},{data:"CanEdit",render:function(n,t,f){var e=h?'<span class="inline refIconAlign"><a onclick="deleteMemoWarning('+f.Id+');" title="Delete Referral"><span><i class="fi-trash size-18 icon-red"><\/i><\/span><\/a><\/span>':"",v=o&&f.RefferralStatus==!1?'<span class="refIconAlign"><a href="'+i+"/"+f.Id+'" title="Edit Referral" ><span><i class="fi-pencil size-18 icon-green"><\/i><\/span><\/a><\/span>':"",l=s&&f.RefferralStatus==!1?'<span class="refIconAlign"><a href="'+r+"/"+f.Id+'" title="Update Referral"><span><i class="fi-arrow-up size-18 icon-blue"><\/i><\/span><\/a><\/div>':"",a=c?'<span class="refIconAlign"><a href="'+u+"/"+f.Id+'" title="View Referral"><span><i class="fi-eye size-18 icon-gray-cascade"><\/i><\/span><\/a><\/span>':"";return f.CanEdit?a+v+l+e:a+l+e},sWidth:"15%",visible:!0,bSortable:!1},],a=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,l,"#DashBoard",[],!1,a)}function yr(t,i,r){var u=[{data:"OCFId",render:function(n,t,i){return i.OCFId?i.OCFId:""},bAutoWidth:!0,visible:$.inArray(1,r)===-1?!0:!1},{data:"CommitteeId",render:function(n,t,i){return i.CommitteeId?"<div><p>"+i.CommitteeId+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(2,r)===-1?!0:!1},{data:"FilerId",render:function(n,t,i){return i.CommitteeId?"<div><p>"+i.CommitteeId+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(4,r)===-1?!0:!1},{data:"CandidateName",render:function(n,t,i){return i.CandidateName?"<div><p>"+i.CandidateName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(3,r)===-1?!0:!1},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?"<div><p>"+i.NameOfCommittee+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(5,r)===-1?!0:!1},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?"<div><p>"+i.NameOfCommittee+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(6,r)===-1?!0:!1},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?"<div><p>"+i.NameOfCommittee+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(13,r)===-1?!0:!1},{data:"OfficeSought",render:function(n,t,i){return i.OfficeSought?"<div><p>"+i.OfficeSought+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(7,r)===-1?!0:!1},{data:"ChairPersonName",render:function(n,t,i){return i.ChairPersonName?"<div><p>"+i.ChairPersonName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(8,r)===-1?!0:!1},{data:"TreasurerName",render:function(n,t,i){return i.TreasurerName?"<div><p>"+i.TreasurerName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(9,r)===-1?!0:!1},{data:"PartyName",render:function(n,t,i){return i.PartyName?"<div><p>"+i.PartyName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(10,r)===-1?!0:!1},{data:"FilingDate",render:function(t,i,r){return n(r.FilingDate)},bAutoWidth:!0,visible:$.inArray(11,r)===-1?!0:!1},{data:"FilingDate",render:function(t,i,r){return n(r.FilingDate)},bAutoWidth:!0,visible:$.inArray(12,r)===-1?!0:!1},],f=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,u,"#DashBoard",[],!1,f)}function pr(n,t,i){delete n[t];n[t]=i}function wr(n,t,i){var r="",i=i||" | ";return $.each(t,function(t,u){n[u]&&(r==""?r=" ("+n[u]:r+=i+n[u])}),r!=""&&(r+=")"),r}function br(n,t,i,r){r=r||103;i.length<r?$(n).html(i):$(n).html(i.substr(0,r-4)+"...");$(t).prop("title",i);i!=""?$(n+"Icon").show():$(n+"Icon").hide()}function kr(n,t){$(n+" input[type=text]").val("");$(n+" input[type=number]").val("");$(n+" input[type=checkbox]:checked").attr("checked",!1);$(n+" select").find("option:first").prop("selected","selected");$(t).html("");$(t+"Icon").hide()}function dr(t,i,r){var u=[{data:"CommitteeName",render:function(n,t,i){return i.CommitteeName?i.CommitteeName:""},width:"16%"},{data:"ContributorName",render:function(n,t,i){return i.ContributorNamePrefix?i.ContributorNamePrefix:""},width:"16%",visible:$.inArray(1,r)===-1?!0:!1},{data:"ContributorName",render:function(n,t,i){return i.ContributorNamePrefix?i.ContributorNamePrefix:""},width:"16%",visible:$.inArray(2,r)===-1?!0:!1},{data:"Address",render:function(n,t,i){return i.Address?i.Address:""},width:"16%",visible:$.inArray(3,r)===-1?!0:!1},{data:"Address",render:function(n,t,i){return i.Address?i.Address:""},width:"16%",visible:$.inArray(10,r)===-1?!0:!1},{data:"ContributorType",render:function(n,t,i){return i.ContributorType?i.ContributorType:""},width:"15%",visible:$.inArray(4,r)===-1?!0:!1},{data:"TransactionType",render:function(n,t,i){return i.TransactionType?i.TransactionType:""},width:"16%",visible:$.inArray(5,r)===-1?!0:!1},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"12%",visible:$.inArray(6,r)===-1?!0:!1},{data:"PurposeType",render:function(n,t,i){return i.PurposeType?i.OtherDescription?"<div>"+i.PurposeType+'<a class="infotooltipright"><i class="fi-info size-21"><\/i><div class="infodropdownright arrow_box_right">'+i.OtherDescription+"<\/div><\/a><\/div>":i.PurposeType:""},width:"16%",visible:$.inArray(7,r)===-1?!0:!1},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"10%",visible:$.inArray(8,r)===-1?!0:!1},{data:"Amount",render:function(n,t,i){return'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>"},width:"12%",visible:$.inArray(9,r)===-1?!0:!1},{data:"Id",visible:!1}],f=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,u,"#DashBoard",[],[[11,"asc"],[7,"desc"]],f)}function gr(t,i,r){var u=[{data:"CommitteeName",render:function(n,t,i){return i.CommitteeName?i.CommitteeName:""},width:"16%"},{data:"ContributorName",render:function(n,t,i){return i.ContributorName?i.ContributorName:""},width:"16%",visible:$.inArray(1,r)===-1?!0:!1},{data:"ContributorName",render:function(n,t,i){return i.ContributorName?i.ContributorName:""},width:"16%",visible:$.inArray(2,r)===-1?!0:!1},{data:"Address",render:function(n,t,i){return i.Address?i.Address:""},width:"16%",visible:$.inArray(3,r)===-1?!0:!1},{data:"Address",render:function(n,t,i){return i.Address?i.Address:""},width:"16%",visible:$.inArray(4,r)===-1?!0:!1},{data:"AffiliatedOrgName",render:function(n,t,i){return i.AffiliatedOrgName?i.AffiliatedOrgName.toString().replace(/\|/g,"<br/>"):""},width:"12%",visible:$.inArray(5,r)===-1?!0:!1},{data:"AffiliatedOrgAddress",render:function(n,t,i){return i.AffiliatedOrgAddress?i.AffiliatedOrgAddress.toString().replace(/\|/g,"<br/>"):""},width:"12%",visible:$.inArray(6,r)===-1?!0:!1},{data:"TransactionType",render:function(n,t,i){return i.TransactionType?i.TransactionType:""},width:"16%",visible:$.inArray(7,r)===-1?!0:!1},{data:"PurposeType",render:function(n,t,i){return i.PurposeType?i.PurposeType:""},width:"11%",visible:$.inArray(8,r)===-1?!0:!1},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"12%",visible:$.inArray(9,r)===-1?!0:!1},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"10%",visible:$.inArray(10,r)===-1?!0:!1},{data:"Amount",render:function(n,t,i){return'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>"},width:"12%",visible:$.inArray(11,r)===-1?!0:!1},{data:"Id",visible:!1}],f=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,u,"#DashBoard",[],[[11,"asc"],[7,"desc"]],f)}function nu(t,i,r,u){var f=[{data:"CommitteeName",render:function(n,t,i){return i.CommitteeName?i.CommitteeName:""},width:"12%",visible:$.inArray(1,u)===-1?!1:!0},{data:"CandidateName",render:function(n,t,i){return i.CandidateName?i.CandidateName:""},width:"14%",visible:$.inArray(2,u)===-1?!1:!0},{data:"ContributorName",render:function(n,t,i){return i.ContributorName?i.ContributorName:""},width:"12%",visible:($.inArray(1,r)===-1?!0:!1)&&($.inArray(3,u)===-1?!1:!0)},{data:"ContributorName",render:function(n,t,i){return i.ContributorName?i.ContributorName:""},width:"14%",visible:($.inArray(2,r)===-1?!0:!1)&&($.inArray(4,u)===-1?!1:!0)},{data:"Address",render:function(n,t,i){return i.Address?i.Address:""},width:"12%",visible:($.inArray(3,r)===-1?!0:!1)&&($.inArray(5,u)===-1?!1:!0)},{data:"Address",render:function(n,t,i){return i.Address?i.Address:""},width:"12%",visible:($.inArray(10,r)===-1?!0:!1)&&($.inArray(12,u)===-1?!1:!0)},{data:"ContributorType",render:function(n,t,i){return i.ContributorType?i.ContributorType:""},width:"12%",visible:($.inArray(4,r)===-1?!0:!1)&&($.inArray(6,u)===-1?!1:!0)},{data:"TransactionType",render:function(n,t,i){return i.TransactionType?i.TransactionType:""},width:"12%",visible:($.inArray(5,r)===-1?!0:!1)&&($.inArray(7,u)===-1?!1:!0)},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"7%",visible:($.inArray(6,r)===-1?!0:!1)&&($.inArray(8,u)===-1?!1:!0)},{data:"PurposeType",render:function(n,t,i){return i.PurposeType?i.PurposeType:""},width:"11%",visible:($.inArray(7,r)===-1?!0:!1)&&($.inArray(9,u)===-1?!1:!0)},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"10%",visible:($.inArray(8,r)===-1?!0:!1)&&($.inArray(10,u)===-1?!1:!0)},{data:"Amount",render:function(n,t,i){return'<div style="text-align:right"><p>$'+configure_amount(OCF.UI.Helper.DecimalFixforGrid(i.Amount))+"<\/p><\/div>"},width:"10%",visible:($.inArray(9,r)===-1?!0:!1)&&($.inArray(11,u)===-1?!1:!0)},{data:"Id",visible:!1}],e=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,f,"#DashBoard",[],[[12,"asc"],[8,"desc"]],e)}function tu(t,i,r,u){var f=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Name",render:function(n,t,r){if(r.ReportName!==""&&r.ScheduleMasterSummaryIdExists===!0){var u=i+"/"+r.Id;return r.Version!==""?"<a href="+u+' onclick="OCF.UI.Helper.DoNothing();">'+r.Name+" - "+(r.Version==0?"Original":"Amendment "+r.Version)+"<\/a>":"<a href="+u+'onclick="OCF.UI.Helper.DoNothing();">'+r.Name+"<\/a>"}return r.ScheduleMasterSummaryIdExists===!1?r.Name+" - "+(r.Version==0?"Original":"Amendment "+r.Version):""},width:"35%"},{data:"StartDate",render:function(t,i,r){return n(r.StartDate)},width:"13%"},{data:"EndDate",render:function(t,i,r){return n(r.EndDate)},width:"13%"},{data:"SubmittedDate",render:function(t,i,r){return n(r.SubmittedDate)},width:"13%"},{data:"ScheduleMasterId",render:function(n,t,i){if(i.Id!==""){var r=u+"/"+i.Id;return'<a href="'+r+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();">Entire Report<\/a>'}return""},width:"13%",bSortable:!1},{data:"Version",visible:!1}];OCF.DataTable.BuildGrid(t,f,"#DashBoard",[[]],[[6,"desc"],[4,"desc"]],!0)}function iu(n,t,i){function r(){$("div#DashBoard_filter.dataTables_filter").css({position:"relative",top:"-42px"})}var u=[{data:null,className:"details-control ",render:function(){return'<div style="text-align:center"><i class="fa fa-chevron-circle-right" style="color:#97c6f1"><\/i><\/div>'},orderable:!1,defaultContent:"",width:"3%"},{data:"FullName",className:"Info",render:function(n,t,i){return i.FullName!==""?"<p data-scheconid="+i.ScheduleContactId+" data-regisid="+i.RegistrationId+" > "+i.FullName+"<\/p > ":""},width:"15%"},{data:"ContributorAddress",render:function(n,t,i){return i.ContributorAddress?"<div><p>"+i.ContributorAddress+"<\/p><\/div>":""},width:"25%"},{data:"ContributorType",render:function(n,t,i){return i.ContributorType?"<div><p>"+i.ContributorType+"<\/p><\/div>":""},width:"10%"},{data:"TotalContributions",render:function(n,t,i){return i.TotalContributions?'<div style="text-align:right"><p>$'+configure_amount(i.TotalContributions)+"<\/p><\/div>":""},width:"10%"},{data:"ExcessContributions",render:function(n,t,i){return i.ExcessContributions?'<div style="text-align:right"><p style="margin-bottom:0px !important">$'+configure_amount(i.ExcessContributions)+"<\/p><\/div>":""},width:"10%"},{data:"RefundCumulative",render:function(n,t,i){return i.RefundCumulative>-1?'<div style="text-align:right"><p id="cumu_amount" data-amount='+i.RefundCumulative+' style="margin-bottom:0px !important">$'+configure_amount(i.RefundCumulative)+"<\/p><\/div>":""},width:"8%",visible:i=="False"}];return OCF.DataTable.BuildGridForContributorList(n,u,"#DashBoard",[[]],[[0,"asc"]],"",r)}function ru(t,i,r,u){$("#"+r).closest("tr").css({background:u}).addClass("nest_table");var f=[{data:"TransactionDate",render:function(n,t,i){return new Date(i.TransactionDate).getTime()},visible:!1},{data:"ContributorName",render:function(n,t,i){return i.ContributorName!==""?i.ContributorName:""},width:"23%"},{data:"ContributorAddress",render:function(n,t,i){return i.ContributorAddress!==""?i.ContributorAddress:""},width:"34%"},{data:"ReportName",render:function(n,t,i){return i.ReportName!==""?i.ReportName:""},width:"20%"},{data:"TransactionDate",render:function(t,i,r){return n(r.TransactionDate)},width:"10%"},{data:"Amount",render:function(n,t,i){if(i.Amount){var r='<div style="text-align:right"><p>$'+configure_amount(i.Amount)+"<\/p><\/div>";return i.Flagged&&(r='<div style="text-align:right"><p>$'+configure_amount(i.Amount)+'<span><i class="fi-flag size-21 icon-red pull-left"><\/i><\/span><\/p><\/div>'),r}return""},width:"23%"},];OCF.DataTable.BuildGridForContributorList(t,f,"#"+r,[[]],[[4,"asc"]],"","","",!1,!1,!1)}function uu(t,i){var r=[{data:"CandidateModified",render:function(n,t,i){return new Date(i.CandidateModified).getTime()},visible:!1,sWidth:"0%"},{data:"Id",visible:!1,sWidth:"0%"},{data:"CandidateName",render:function(n,t,r){return r.Id?'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.CandidateName+"<\/a>":""},sWidth:"20%"},{data:"EntryDate",render:function(t,i,r){return n(r.EntryDate)},sWidth:"18%"},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee!==""&&i.NameOfCommittee!==undefined?i.NameOfCommittee:""},sWidth:"27%"},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?i.CandidateKey:""},sWidth:"18%"},{data:"ElectionYear",render:function(n,t,i){return i.ElectionYear?i.ElectionYear:""},sWidth:"17%"}];OCF.DataTable.BuildGrid(t,r,"#CandidateNotificationDashBoard")}function fu(t,i){var r=[{data:"CandidateModified",render:function(n,t,i){return new Date(i.CandidateModified).getTime()},visible:!1,sWidth:"0%"},{data:"Id",visible:!1,sWidth:"0%"},{data:"NameOfCommittee",render:function(n,t,r){return r.CommitteeDetailsId?'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.NameOfCommittee+"<\/a>":""},sWidth:"40%"},{data:"TerminationFiledDate",render:function(t,i,r){return r.TerminationFiledDate?n(r.TerminationFiledDate):""},sWidth:"18%"},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?i.CommitteeKey:""},sWidth:"15%"},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?i.CandidateKey:""},sWidth:"18%"},];OCF.DataTable.BuildGrid(t,r,"#TerminationPendingCommitteeDashBoard")}function eu(n,t){var i=[{data:"CommitteeModified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1,sWidth:"0%"},{data:"Id",visible:!1,sWidth:"0%"},{data:"NameOfCommittee",render:function(n,i,r){return r.CommitteeDetailsId?'<a href="'+t+"?committeeId="+r.CommitteeDetailsId+"&filerTypeId="+r.FilerTypeId+'" onclick="OCF.UI.Helper.DoNothing();">'+r.NameOfCommittee+"<\/a>":""},sWidth:"40%"},{data:"PartyName",render:function(n,t,i){return i.PartyName?i.PartyName:""},sWidth:"18%"},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?i.CommitteeKey:""},sWidth:"15%"},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?i.CandidateKey:""},sWidth:"18%"}];OCF.DataTable.BuildGrid(n,i,"#CommitteeNotificationDashBoard")}function ou(n,t){var i=[{data:"CommitteeModified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1,sWidth:"0%"},{data:"Id",visible:!1,sWidth:"0%"},{data:"NameOfCommittee",render:function(n,i,r){return r.CommitteeDetailsId?'<a href="'+t+"?committeeId="+r.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();">'+r.NameOfCommittee+"<\/a>":""},sWidth:"40%"},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?i.CommitteeKey:""},sWidth:"15%"},];OCF.DataTable.BuildGrid(n,i,"#ANCNotificationDashBoard")}function su(n,t){var i=[{data:"CommitteeModified",visible:!1},{data:"RegistrationId",visible:!1},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?i.NameOfCommittee:""}},{data:"PartyName",render:function(n,t,i){return i.PartyName?i.PartyName:""},sWidth:"20%"},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?i.CommitteeKey:""},sWidth:"15%"},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?i.CandidateKey:""},sWidth:"15%"},{data:"Pending",render:function(n,i,r){return'<a href= "'+t+"/"+r.CommitteeDetailsId+'" onclick="OCF.UI.Helper.DoNothing();">Approve<\/a>'},searchable:!1,bSortable:!1}];OCF.DataTable.BuildGrid(n,i,"#TerminationPendingCommitteeDashBoard")}function hu(n,t,i){var r=[{data:"Id",visible:!1},{data:"CandidateName",render:function(n,t,i){if(i.CandidateName){var r="bindRecipientCriteria('"+i.CommitteeId+"','"+e(i.CommitteeName)+"', '"+e(i.FirstName)+"', '"+e(i.LastName)+"', '"+i.ElectionYear+"'); $('#panel1b').removeClass('active');$('#recipientCriteria').find('i').removeClass('fi-minus').addClass('fi-plus'); return false;";return'<a href="#" onclick="'+r+'">'+i.CandidateName+"<\/a>"}return""},bAutoWidth:!0,visible:$.inArray(1,i)===-1?!1:!0},{data:"CommitteeName",render:function(n,t,i){if(i.CommitteeName!==""&&(i.FilerTypeId===2||i.FilerTypeId===8))return i.CommitteeName;if(i.CommitteeName!==""&&i.FilerTypeId!==2&&i.FilerTypeId!==8){var r="bindCommitteeRecipientCriteria('"+i.CommitteeId+"','"+e(i.CommitteeName)+"', '"+i.ElectionYear+"'); $('#panel1b').removeClass('active');$('#recipientCriteria').find('i').removeClass('fi-minus').addClass('fi-plus'); return false;";return'<a href="#" onclick="'+r+'">'+i.CommitteeName+"<\/a>"}return" "},bAutoWidth:!0,visible:$.inArray(2,i)===-1?!1:!0},{data:"ElectionYear",render:function(n,t,i){return i.ElectionYear!==""?i.ElectionYear:" "},bAutoWidth:!0,visible:$.inArray(3,i)===-1?!1:!0}];OCF.DataTable.BuildGrid(n+"/"+t,r,"#RecepientSearch")}function cu(n){var t;switch(n){case"true":t=[1,2,3];break;case"false":t=[2,3]}return t}function lu(n){var t;switch(n){case"true":t=[1,2,3,4,5,6,7,8,9,10,11,12];break;case"false":t=[1,3,4,5,6,7,8,9,10,11,12]}return t}function au(n){var i;switch(n){case t("PCC"):i=[1,5,6,7,8,9];break;case t("CSP"):i=[1,2,5,6,7,8,9];break;case t("PAC"):i=[1,5,6,7,8,9];break;case t("SEN"):i=[1,5,6,7,8,9];break;case t("INC"):i=[1,5,6,7,8,9];break;case t("TRN"):i=[1,2,5,6,7,8,9];break;case t("EXP"):i=[1,2,5,6,7,8,9];break;case t("IEC"):i=[1,5,6,7,8,9];break;case t("LDF"):i=[1,2,5,6,7,8,9];break;case t("REC"):i=[1,5,6,7,8,9];break;case t("REF"):i=[1,5,6,7,8,9];break;case t("INT"):i=[1,5,6,7,8,9];break;case t("ANC"):i=[1,5,6,8,9];break;case t("INEX"):i=[1,5,6,8,9];break;default:i=[1,3,4,5,6,7,8,9]}return i}function vu(n){var t;switch(n){case"true":t=[1,2,3,4];break;case"false":t=[1,2]}return t}function yu(n,t,i,r){var u=[{data:"RegistrationId",visible:!1},{data:"Id",visible:!1},{data:"CommitteeKey",render:function(n,i,u){return u.CommitteeId?'<a href="'+t+"/"+u.CommitteeId+"/"+r+"/"+u.FilerTypeReportId+"/"+u.EndDate+'" onclick="OCF.UI.Helper.DoNothing();">'+u.CommitteeKey+"<\/a>":""},sWidth:"20%",visible:$.inArray(1,i)===-1?!1:!0},{data:"CommitteeName",render:function(n,t,i){return i.CommitteeName!==""?i.CommitteeName:" "},sWidth:"35%",visible:$.inArray(2,i)===-1?!1:!0},{data:"FlaggedContributorsCount",render:function(n,t,i){return i.FlaggedContributorsCount!==""?i.FlaggedContributorsCount:" "},sWidth:"25%",visible:$.inArray(3,i)===-1?!1:!0},{data:"AllContributionsOverLimit",render:function(n,t,i){return i.AllContributionsOverLimit!==""?'<div style="text-align:right"><p>$'+configure_amount(i.AllContributionsOverLimit)+"<\/p><\/div>":" "},sWidth:"20%",visible:$.inArray(4,i)===-1?!1:!0}];OCF.DataTable.BuildGrid(n,u,"#flaggedcontributionsSearch",[],!1)}function pu(t,i,r,u){var f=[{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?i.CommitteeKey:""},visible:$.inArray(1,r)===-1?!0:!1},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?i.NameOfCommittee:""},sWidth:"350px",visible:$.inArray(2,r)===-1?!0:!1},{data:"SubmittedDate",render:function(n,t,i){return $.format.date(i.SubmittedDate,"MM/dd/yyyy")==="01/01/0001"?"":$.format.date(i.SubmittedDate,"MM/dd/yyyy")},visible:$.inArray(3,r)===-1?!0:!1},{data:"SubmittedDate",render:function(n,t,i){return $.format.date(i.SubmittedDate,"MM/dd/yyyy")==="01/01/0001"?"":$.format.date(i.SubmittedDate,"MM/dd/yyyy")},visible:$.inArray(7,r)===-1?!0:!1},{data:"Certified",render:function(n,t,i){return i.Certified===1?"YES":"NO"},visible:$.inArray(4,r)===-1?!0:!1},{data:"TerminationStatus",render:function(n,t,i){return i.TerminationStatus?i.TerminationStatus:""},visible:$.inArray(5,r)===-1?!0:!1},{data:"TerminationSubmittedDate",render:function(t,i,r){return n(r.TerminationSubmittedDate)},visible:$.inArray(6,r)===-1?!0:!1},{data:"CashOnHand",render:function(n,t,i){return i.CashOnHand},visible:$.inArray(8,r)===-1?!0:!1},{data:"TotalReceipts",render:function(n,t,i){return i.TotalReceipts},visible:$.inArray(9,r)===-1?!0:!1},{data:"TotalExpenditures",render:function(n,t,i){return i.TotalExpenditures},visible:$.inArray(10,r)===-1?!0:!1},{data:"DebtsAndObligationsOwedToTheCandidate",render:function(n,t,i){return i.DebtsAndObligationsOwedToTheCandidate},visible:$.inArray(11,r)===-1?!0:!1},{data:"DebtsAndObligationsOwedByTheCandidate",render:function(n,t,i){return i.DebtsAndObligationsOwedByTheCandidate},visible:$.inArray(12,r)===-1?!0:!1},{data:"DisposalOfSurplusContributions",render:function(n,t,i){return i.DisposalOfSurplusContributions},visible:$.inArray(13,r)===-1?!0:!1}],e=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,f,u,[],!0,e)}function wu(n){n?$(".toggle-tab").unbind("click",h):$(".toggle-tab").bind("click",h)}function h(){return!1}function bu(){var n,t,i,r,u;$("#SaleOfTicketsTotal")&&$("#MassCollectionsTotal")&&$("#Sale_Amount")&&$("#Sale_CumulativeAmount")&&$("#GrandTotal")&&(n=$("#SaleOfTicketsTotal").html().replace("<b>$","").replace("<\/b>","")||"",n=s(n),t=$("#MassCollectionsTotal").html().replace("<b>$","").replace("<\/b>","")||"",t=s(t),i=$("#Sale_Amount").val()||"",i=s(i),r=$("#Sale_CumulativeAmount").val()||"",r=s(r),u=i+r+n+t||0,$("#GrandTotal").html("<b>$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(u))+"<\/b>"))}function s(n){return n!==""?parseFloat(n.replace(/,/g,"")):0}function ku(n,t,i){var u=$("#Contribution_Amount"),f,e,o,a,s,p;u=u!==null&&u.exists()?u:$('input[id$="_Transaction_Amount"]');var f=$("#ContactInformation_Organization"),e=$("#ContactInformation_FirstName"),h=$("#ContactInformation_LastName"),v=$("#ContactInformation_ParentAffiliatedContact_Organization"),c=$("#Contribution_TransactionDate").val();c==undefined&&(c=$("#BundledContributionDetails_BundledContributions_Transaction_TransactionDate").val());$(f).val()==undefined&&$(e).val()==undefined&&(f=$("#BundledContributionDetails_BundledContributions_Contact_Organization"),e=$("#BundledContributionDetails_BundledContributions_Contact_FirstName"));var l=$(f)!=null&&$(f).val()!=undefined?$(f).val():"",w=$(e)!=null&&$(e).val()!=undefined?$(e).val():"",b=$(h)!=null&&$(h).val()!=undefined?$(h).val():"",k=w+" "+b,d=$(v)!=null&&$(f).val()!=undefined?$(v).val():"",y=l!==""&&l!=undefined?l:k,g=isNaN(Number(i))?0:i;return t=i>0?t:0,u!==null?(o=replace_amount_seperator($(u).val()),a=$(u).data("limit-alert"),o!==""&&o!=="0"&&a!==null&&a!==!0&&(s=0,p=function(n){var r,c;if($("form").attr("data-submit","true"),$(window).unbind("keyup"),n!==""&&n!==undefined&&(r=JSON.parse(n),r!==null&&r!==undefined&&r.ContributionLimit!==0)){var e=Number(o)+(Number(r.CumulativeAmount)-Number(t)),h=Number(r.AggregateLimit)>0?Number(o)+(Number(r.AggregateAmount)-Number(t)):0,f=h>0&&h>Number(r.AggregateLimit);if(e!=null&&(e>Number(r.ContributionLimit)||f>0))return c=f?r.AggregateLimit:r.ContributionLimit,$("#currentAmount").html(configure_amount(OCF.UI.Helper.DecimalFixforGrid(f?h:e))),$("#AffiliatedcurrentAmount").html(configure_amount(OCF.UI.Helper.DecimalFixforGrid(f?h:e))),$("#contribLimit").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(c))).append("."),$("#AffiliatedcontribLimit").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(c))).append("."),$("#committee").html(y),i>0&&Number(r.CumulativeAmount)-Number(t)>0&&($("#parentName").html(d),$("#childName").html(y),$("#total").show(),$("#detailedMessage").show(),$("#hideMessage").hide(),$("#previousAmount").html("$"+configure_amount(OCF.UI.Helper.DecimalFixforGrid(Number(r.CumulativeAmount)-Number(t)))),$("#amount").html("$"+$(u).val())),$("#spnContributionType").html(f?"aggregate":"allocated"),$("#divContributionLimitAlert").foundation("reveal","open"),$(document).bind("keyup",function(n){if($("#divContributionLimitAlert").css("display")!=="none"&&(n.keyCode?n.keyCode:n.which)==13){if(s++,s>1)return!1;contribution_reveal_yes()}}),$(window).bind("keyup",function(n){n.keyCode==27&&contribution_reveal_cancel()}),!1}if(s>1)return!1;contribution_reveal_yes()},OCF.UI.Helper.Ajax(n,r.GET,{scheduleContactId:Number(g),transactionDate:c},p)),!1):void 0}function du(n){var t=0,i=function(n){if($("form").attr("data-submit","true"),$(window).unbind("keyup"),n!==""&&n!==undefined&&n==="False")return $("#divNegativeClosingBalanceAlert").foundation("reveal","open"),$(document).bind("keyup",function(n){if($("#divNegativeClosingBalanceAlert").css("display")!=="none"&&(n.keyCode?n.keyCode:n.which)==13){if(t++,t>1)return!1;closingbal_reveal_yes()}}),$(window).bind("keyup",function(n){n.keyCode==27&&closingbal_reveal_cancel()}),!1;if(t>1)return!1;closingbal_reveal_yes()};return OCF.UI.Helper.Ajax(n,r.GET,null,i),!1}function gu(n,t){var i;if(t==="8"||t==="13")switch(n){case"ScheduleA":case"ScheduleA7":i=[3,4,5,6,8];break;case"ScheduleA1":i=[2,3,5,6,7,8];break;case"ScheduleA2":i=[3,4,5,6,8];break;case"ScheduleA3":i=[2,3,5,6,7,8];break;case"ScheduleA4":i=[2,3,4,6,7,8];break;case"ScheduleA5":i=[2,4,5,6,7];break;case"ScheduleA6":i=[3,4,5,6];break;case"ScheduleB":i=[3,5];break;case"ScheduleB1":i=[3,5]}else if(t==="19")switch(n){case"ScheduleA":case"ScheduleA7":i=[3,4,5,6,8];break;case"ScheduleA1":i=[3,4,5,6,8];break;case"ScheduleA2":i=[2,3,4,7,8];break;case"ScheduleA3":i=[2,3,4,6,8];break;case"ScheduleA4":i=[2,3,5,6,7,8];break;case"ScheduleA5":i=[2,4,5,6,7];break;case"ScheduleA6":i=[3,4,5,6];break;case"ScheduleB":i=[3,5];break;case"ScheduleB1":i=[3,5]}else switch(n){case"ScheduleA":case"ScheduleA8":case"ScheduleA7":i=[3,4,5,6,8];break;case"ScheduleA1":i=[2,3,4,7,8];break;case"ScheduleA2":i=[2,3,4,6,8];break;case"ScheduleA3":i=[2,3,5,6,7,8];break;case"ScheduleA4":i=[2,3,4,6,7,8];break;case"ScheduleA5":i=[2,4,5,6,7];break;case"ScheduleA6":i=[3,4,5,6];break;case"ScheduleB":case"ScheduleB5":i=[3,5];break;case"ScheduleB1":case"ScheduleB3":case"ScheduleB4":i=[2,4,5];break;case"ScheduleB2":i=[3,4,5];break;case"ScheduleB6":i=[3,4];break;case"Contributions":i=[2,7,8,10];break;case"Expenditures":i=[1,3,4,5,6];break;case"AffiliatedContributions":i=[2,4,8,10];break;case"AffiliatedExpenditures":i=[1,3,7,9]}return i}function nf(n,t){var i;if(t!=15)switch(n){case"Filers Report":i=[3,5,6,8,9,10,11,12,13];break;case"Non Filers Report":i=[3,4,5,6,7,8,9,10,11,12,13];break;case"Termination Report":i=[4,7,8,9,10,11,12,13]}else switch(n){case"Filers Report":i=[3,5,6];break;case"Non Filers Report":i=[3,4,5,6,7,8,9,10,11,12,13];break;case"Termination Report":i=[4,7,8,9,10,11,12,13]}return i}function tf(n){var t;switch(n){case"2":case"8":t=[1,2,3,4,5,6];break;case"15":t=[1,2,9];break;case"19":t=[1,2,10,11,12,13];break;case"3":case"4":case"5":case"6":case"7":case"11":case"12":case"13":case"14":t=[1,2,5,6,7,8]}return t}function rf(n){var i;switch(n){case t("CAN"):i=[2,5,6,8];break;case t("PCC"):i=[1,2,5,7,8];break;case t("PAC"):i=[1,5,7];break;case t("INT"):i=[1,5,7];break;case t("REF"):i=[1,5,7];break;case t("REC"):i=[1,5,7,8];break;case t("CSP"):i=[1,2,5,7,8];break;case t("SEN"):i=[1,5,7,8];break;case t("INC"):i=[1,2,5,7];break;case t("TRN"):i=[1,2,5,7,8];break;case t("EXP"):i=[1,2,5,7,8];break;case t("IEC"):i=[1,5,7,8];break;case t("LDF"):i=[1,2,5,7,8];break;default:i=[1,3,4,5,6]}return i}function uf(n){var t;switch(n){case"true":t=[1,2,3,4,5,6];break;case"false":t=[1,2,3,4,5,6]}return t}function ff(n,t){var i;if(t=="19")switch(n){case"Statement of Organization":i=[1,2,3,5,7,8,9,12,13]}else if(t=="8")switch(n){case"Statement of Candidacy":case"Waiver Filing":i=[1,2,5,6,8,9,11,13];break;case"Candidate Exemption":i=[1,4,5,6,8,9,11,13];break;case"Statement of Organization":i=[1,2,3,5,6,7,8,9,12];break;case"Acceptance of Chairperson":i=[1,2,3,5,6,7,9,10,11];break;case"Acceptance of Treasurer":i=[1,2,3,5,6,7,8,10,11]}else if(t=="13")switch(n){case"Statement of Organization":i=[1,3,4,6,7,8,9,10,12,13];break;case"Acceptance of Chairperson":i=[1,3,4,6,7,9,10,11,13];break;case"Acceptance of Treasurer":i=[1,3,4,6,7,8,10,11,13]}else switch(n){case"Waiver Filing":i=[1,4,5,6,8,9,11,13];break;case"Candidate Exemption":i=[2,4,5,6,8,9,11,13];break;case"Statement of Candidacy":i=[2,4,5,6,8,9,11,13];break;case"Statement of Organization":i=[1,3,4,6,7,8,9,12,13];break;case"Acceptance of Chairperson":i=[1,3,4,6,7,9,10,11,13];break;case"Acceptance of Treasurer":i=[1,3,4,6,7,8,10,11,13]}return i}function ef(n){return n%1==0?n:n.toFixed(2)}function of(n,t,i){var r=[{data:"Id",visible:!1},{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee!==""?i.NameOfCommittee:""},width:"34%"},{data:"DenominationReport",render:function(n,i,r){if(r.NameOfCommittee!==""&&r.DenominationReport){var u=t+"/"+r.ScheduleMasterId+"/Denomination/"+r.DenominationReport;return'<a href="'+u+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();"><i class="fi-download size-18"><\/i><\/a>'}return"<i class='fi-download size-18 disabled'/> "},width:"17%"},{data:"DonorTypeReport",render:function(n,i,r){if(r.NameOfCommittee!==""&&r.DonorTypeReport){var u=t+"/"+r.ScheduleMasterId+"/Donor/"+r.DonorTypeReport;return'<a href="'+u+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();"><i class="fi-download size-18"><\/i><\/a>'}return"<i class='fi-download size-18 disabled'/>"},width:"16%"},{data:"ExpenditureReport",render:function(n,i,r){if(r.NameOfCommittee!==""&&r.ExpenditureReport){var u=t+"/"+r.ScheduleMasterId+"/Expenditure/"+r.ExpenditureReport;return'<a href="'+u+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();"><i class="fi-download size-18"><\/i><\/a>'}return"<i class='fi-download size-18 disabled'/>"},width:"14%"}];OCF.DataTable.BuildGrid(n,r,"#ReportSum",[],!1,"","",i)}function sf(n,t){for(var r=0,i;n>0;)i=new Date,n--,r++,i.setDate(t.getDate()+r),(i.getDay()===6||i.getDay()===0)&&n++;return r}function hf(n,t,i,r){var u=[{data:"Id",visible:!1},{data:"CommitteeName",render:function(n,i,r){return r.CommitteeName?'<a href="'+t+"/"+r.CommitteeId+'" onclick="OCF.UI.Helper.DoNothing();">'+r.CommitteeName+"<\/a>":""},width:"28%",visible:$.inArray(1,r)===-1?!1:!0},{data:"CandidateName",render:function(n,t,i){return i.CandidateName?i.CandidateName:""},width:"24%",visible:$.inArray(2,r)===-1?!1:!0},{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?i.CandidateKey:""},width:"16%",visible:$.inArray(3,r)===-1?!1:!0},{data:"CommitteeKey",render:function(n,t,i){return i.CommitteeKey?i.CommitteeKey:""},width:"14%",visible:$.inArray(4,r)===-1?!1:!0}];OCF.DataTable.BuildGrid(n,u,"#ReportSum",[],!1,"","",i)}function cf(n,t){var r=[{data:"Id",render:function(n,t,i){return i.IsScaned?'<input type="checkbox" class="case" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" value="'+i.ScheduleMasterId+'" />':""},width:"2%",searchable:!1,bSortable:!1},{data:"CandidateName",render:function(n,t,i){return i.CandidateName!==""?i.CandidateName:i.NameOfCommittee},width:"35%"},{data:"Section",render:function(n,t,i){return i.Section!==""?i.Section:""},width:"10%"},{data:"ReportName",render:function(n,t,i){return i.ReportName!==""?i.ReportName:""},width:"20%"},{data:"FilingYear",render:function(n,t,i){return i.FilingYear!==""?i.FilingYear:""},width:"10%"},{data:"ReportStatus",render:function(n,t,i){return i.ReportStatus!==""?i.ReportStatus:""},width:"15%"}],u=function(n,t){var r,u;if(t.length>0){for(r=0,i=0;i<t.length;i++)u=t[i].ReportStatus.split("Amendment"),u.length>1&&r<u[1]&&(r=u[1]);$("#ScanVersion").val(+r+1);$("#Original").prop("checked",!1);$("#Amendment").prop("checked",!0)}else $("#ScanVersion").val(0),$("#Original").prop("checked",!0),$("#Amendment").prop("checked",!1)};OCF.DataTable.BuildGrid(n,r,"#DashBoard",[],[],u,"",t)}function lf(n){OCF.DataTable.BuildGrid(n,[{data:"IPAddress",width:"10%"},{data:"UserName",width:"10%"},{data:"URLAccessed",width:"50%"},{data:"Controller",width:"5%"},{data:"Action",width:"5%"},{data:"AccessStartTime",width:"5%"},{data:"AccessEndTime",width:"5%"},{data:"SessionId",width:"5%"},{data:"UserAgent",width:"5%"}])}function af(){var t,i,n;if(SCANNED_CONTENT_LIST){for(t="",i='<li><a href="#" onclick="return false;" class="scan-image"><img src="data:image/jpg;base64,{value}" alt="" width="118">',i+='<div class="extras"><i data-reveal-id="Delete" class="fi-trash size-24 deleteScanImage" data-scanid="{scanid}"><\/i><\/div><\/a><\/li>',n=0;n<SCANNED_CONTENT_LIST.length;n++)DELETED_DOCUMENTS?$.inArray(n,DELETED_DOCUMENTS)==-1&&(tempHtmlContent=i,tempHtmlContent=tempHtmlContent.replace(/{value}/g,SCANNED_CONTENT_LIST[n]),tempHtmlContent=tempHtmlContent.replace("{scanid}",n),t+=tempHtmlContent):(tempHtmlContent=i,tempHtmlContent=tempHtmlContent.replace(/{value}/g,SCANNED_CONTENT_LIST[n]),tempHtmlContent=tempHtmlContent.replace("{scanid}",n),t+=tempHtmlContent);$(".gallery").html(t);$(".deleteScanImage").click(vf)}}function vf(){$("#Delete").data("slected_scan_id",$(this).data("scanid"))}function n(n){return $.format.date(n,"MM/dd/yyyy")==="01/01/0001"||n==null||n=="Jan 1, 1900"?"":$.format.date(n,"MM/dd/yyyy")}function c(n){return $.format.date(n,"MM/dd/yyyy")==="01/01/1900"||n==null?!1:!0}function yf(){$(".datepicker").each(function(){$(this).val().length>0&&$(this).parent().find(".deleteicon").length===0?$(this).after($("<span class='deleteicon'/>").click(function(){$(this).prev("input").val("");$(this).remove()})):$(this).remove(" > span.deleteicon")});$(".datepicker").bind("change",function(){$(this).val().length>0&&$(this).parent().find(".deleteicon").length===0&&($(this).next().hasClass("deleteicon")&&$(this).next().remove(),$(this).after($("<span class='deleteicon'/>").click(function(){$(this).prev("input").val("");OCF.UI.Helper.ClearSearchFields("#panel4b","#receiptCriteriaContent");ReceiptCriteria=[];$(this).remove()})))})}function pf(){var t,n;if(DWObject.HowManyImagesInBuffer>0){for($(".scanCancelDisplay").show(),$("#scan_cancel").show(),DELETED_DOCUMENTS?($("#scandocumentdescription").text("Document(s) Scanned: "+(DWObject.HowManyImagesInBuffer-DELETED_DOCUMENTS.length)),console.log("Documents scanned: "+(DWObject.HowManyImagesInBuffer-DELETED_DOCUMENTS.length))):($("#scandocumentdescription").text("Document(s) Scanned: "+DWObject.HowManyImagesInBuffer),console.log("Documents scanned: "+DWObject.HowManyImagesInBuffer)),DWObject.SelectedImagesCount=DELETED_DOCUMENTS?DWObject.HowManyImagesInBuffer-DELETED_DOCUMENTS.length:DWObject.HowManyImagesInBuffer,t=0,n=0;n<DWObject.HowManyImagesInBuffer;n++)DELETED_DOCUMENTS?$.inArray(n,DELETED_DOCUMENTS)==-1&&(DWObject.SetSelectedImageIndex(t,n),t++):(DWObject.SetSelectedImageIndex(t,n),t++);DWObject.GetSelectedImagesSize(4);BINARY_PDF_CONTENT=DWObject.SaveSelectedImagesToBase64Binary()}else $(".scanCancelDisplay").hide();document_scanned_event=null}function wf(n,t){return $(n).css("display")==="block"||$(t).css("display")==="block"?($("#closeWarning").show(),$("html, body").animate({scrollTop:$("#closeWarning").offset().top-0},"fast"),!1):!0}function bf(n){$(n).val()==""?delete ReceiptCriteria.todate:OCF.UI.Helper.AddItemToArray(ReceiptCriteria,"todate","To Date: "+$(n).val());var t=OCF.UI.Helper.RenderArrayToString(ReceiptCriteria,ReceiptCriteriaKeys);OCF.UI.Helper.RenderCriteriaContent("#receiptCriteriaContent","#receiptCriteria",t)}function kf(n){$(n).val()==""?delete ReceiptCriteria.fromdate:OCF.UI.Helper.AddItemToArray(ReceiptCriteria,"fromdate","From Date: "+$(n).val());var t=OCF.UI.Helper.RenderArrayToString(ReceiptCriteria,ReceiptCriteriaKeys);OCF.UI.Helper.RenderCriteriaContent("#receiptCriteriaContent","#receiptCriteria",t)}function df(n){var t;switch(n){case 2:t=[1,2,3,4];break;case 8:t=[1,2,3,4];break;default:t=[1,3,4]}return t}function t(n){var t;switch(n){case"CAN":t="1";break;case"PCC":t="2";break;case"CSP":t="8";break;case"SEN":t="19";break;case"TRN":t="11";break;case"INC":t="12";break;case"EXP":t="7";break;case"IEC":t="14";break;case"LDF":t="13";break;case"ANC":t="15";break;case"REC":t="5";break;case"REF":t="6";break;case"INT":t="4";break;case"PAC":t="3";break;case"INEX":t="100"}return t}function gf(){$(".ballotMeasure").length&&$(".ballotMeasure").hide()}function ne(n,t){t=t!==undefined?t:"#resultpage";$(n).bind("change",function(){$(t).hide();$("#result_title").length==1&&$("#result_title").css({visibility:"hidden"})})}function e(n){return n==null||n.length==0?n:n.replace(/'/g,"\\'").replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function te(n,t){var f=!1,u=$("#"+n+"Multisection  #"+t),r,i;if(u!=undefined&&u.length>0)for(r=0;r<u.length;r++)if(i=$($("#"+n+"Multisection  #"+t)[r]).text(),i!=null&&i!=undefined&&(i==n||i=="Financial Officer")){f=!0;break}return f}function ie(n,t,i,r){var u=$(".case:checkbox:checked").map(function(){return $(this).val()}).get(),f;console.log(u);f={selectedIds:u};$.ajax({url:n,type:"POST",data:f,cache:!1,dataType:"json",traditional:!0,success:function(n){console.log(n);t(i,r);OCF.UI.Helper.EnableDelete()},error:function(n){console.log(n)}})}function re(){$("#NameOfCommittee")!=null&&$("#NameOfCommittee").val()!=undefined&&$("#candidateName")!=null&&$("#candidateName")!=undefined&&($("#NameOfCommittee").val().length>40?($("#candidateName").text($("#NameOfCommittee").val().substring(0,40)+"... - "+$("#CommitteeKey").val()),$("#candidateName").attr("title",$("#NameOfCommittee").val()+" - "+$("#CommitteeKey").val())):$("#candidateName").text($("#NameOfCommittee").val()+" - "+$("#CommitteeKey").val()))}function ue(t,i){var r=[{data:"NameOfCommittee",render:function(n,t,i){return i.NameOfCommittee?"<div><p>"+i.NameOfCommittee+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(0,i)===-1?!1:!0},{data:"CandidateName",render:function(n,t,i){return i.CandidateName?"<div><p>"+i.CandidateName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(1,i)===-1?!1:!0},{data:"CommitteeRegisteredDate",render:function(t,i,r){return r.CommitteeRegisteredDate?"<div><p>"+n(r.CommitteeRegisteredDate)+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(2,i)===-1?!1:!0},{data:"Contributions",render:function(n,t,i){return i.Contributions?'<div class="right"><p>'+f(i.Contributions)+"<\/p><\/div>":'<div class="right"><p>$0.00<\/p><\/div>'},bAutoWidth:!0,visible:$.inArray(3,i)===-1?!1:!0},{data:"Expenditures",render:function(n,t,i){return i.Expenditures?'<div class="right"><p>'+f(i.Expenditures)+"<\/p><\/div>":'<div class="right"><p>$0.00<\/p><\/div>'},bAutoWidth:!0,visible:$.inArray(4,i)===-1?!1:!0},{data:"Loans",render:function(n,t,i){return i.Loans?'<div class="right"><p>'+f(i.Loans)+"<\/p><\/div>":'<div class="right"><p>$0.00<\/p><\/div>'},bAutoWidth:!0,visible:$.inArray(5,i)===-1?!1:!0},],u=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,r,"#DashBoard",[[]],[[0,"asc"]],u)}function fe(n){var i;switch(n){case t("PCC"):case t("CSP"):i=[0,1,2,3,4,5];break;default:i=[0,2,3,4,5]}return i}function ee(n,t){var i=[{data:"CandidateKey",render:function(n,t,i){return i.CandidateKey?"<div><p>"+i.CandidateKey+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(0,t)===-1?!1:!0},{data:"CandidateName",render:function(n,t,i){return i.CandidateName?"<div><p>"+i.CandidateName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(1,t)===-1?!1:!0},{data:"CommitteeName",render:function(n,t,i){return i.CommitteeName?"<div><p>"+i.CommitteeName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(2,t)===-1?!1:!0},{data:"ElectionYear",render:function(n,t,i){return i.ElectionYear?"<div><p>"+i.ElectionYear+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(3,t)===-1?!1:!0},{data:"PartyName",render:function(n,t,i){return i.PartyName?"<div><p>"+i.PartyName+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(4,t)===-1?!1:!0},{data:"Office",render:function(n,t,i){return i.Office?"<div><p>"+i.Office+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(5,t)===-1?!1:!0}],r=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(n,i,"#DashBoard",[[]],[[1,"asc"]],r)}function oe(n){var t;switch(n){case"CandidatesWithoutCommittees":t=[0,1,3,4,5];break;default:t=[0,1,2,3,4,5]}return t}function se(t,i){var r=[{data:"NameOfCommittee",render:function(n,t,r){return r.NameOfCommittee&&r.FileName?'<a href="'+i+"?fileName="+r.FileName+'" target="_blank">'+r.NameOfCommittee+"<\/a>":r.NameOfCommittee},sWidth:"25%"},{data:"DocumentNumber",render:function(n,t,i){return i.DocumentNumber?i.DocumentNumber:""},sWidth:"15%"},{data:"OrderSubject",render:function(n,t,i){return i.OrderSubject?i.OrderSubject:""},sWidth:"20%"},{data:"OrderType",render:function(n,t,i){return i.OrderType?i.OrderType:""},sWidth:"20%"},{data:"IssueDate",render:function(t,i,r){return r.IssueDate?"<div><p>"+n(r.IssueDate)+"<\/p><\/div>":""},sWidth:"10%"}],u=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,r,"#DashBoard",[[]],[[0,"asc"]],u)}function he(t,i){var r=[{data:"NameOfCommittee",render:function(n,t,r){return r.NameOfCommittee&&r.FileName?'<a href="'+i+"?fileName="+r.FileName+'" target="_blank">'+r.NameOfCommittee+"<\/a>":r.NameOfCommittee},sWidth:"25%"},{data:"DocumentNumber",render:function(n,t,i){return i.DocumentNumber?i.DocumentNumber:""},sWidth:"15%"},{data:"DocumentCategory",render:function(n,t,i){return i.DocumentCategory?i.DocumentCategory:""},sWidth:"20%"},{data:"IssueDate",render:function(t,i,r){return r.IssueDate?"<div><p>"+n(r.IssueDate)+"<\/p><\/div>":""},sWidth:"10%"}],u=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,r,"#DashBoard",[[]],[[0,"asc"]],u)}function ce(n){var t=[{data:"DocketNumber",render:function(n,t,i){return i.DocketNumber?i.DocketNumber:""},visible:!0,sWidth:"20%"},{data:"OrderTypeValue",render:function(n,t,i){return i.OrderTypeDescription?i.OrderTypeDescription:""},visible:!0,sWidth:"20%"},{data:"Modified",render:function(n,t,i){var r=new Date(i.Modified);return total_month[r.getMonth()]+" "+r.getDate()+" "+r.getFullYear()},sWidth:"20%"},{data:"Comments",render:function(n,t,i){return i.Comments?i.Comments:""},sWidth:"20%",visible:!0}];OCF.DataTable.BuildGrid(n,t,"#OrderTypeDashboard",[[4,"desc"],[4,"desc"]],!0)}function le(n){var t=[{data:"ReportTitle",render:function(n,t,i){return i.ReportTitle?i.ReportTitle:""},sWidth:"20%",visible:!0},{data:"Modified",render:function(n,t,i){var r=new Date(i.Modified);return total_month[r.getMonth()]+" "+r.getDate()+" "+r.getFullYear()},sWidth:"20%"},{data:"ReportNumber",render:function(n,t,i){return i.ReportNumber?i.ReportNumber:""},sWidth:"20%",visible:!0},];OCF.DataTable.BuildGrid(n,t,"#AuditReportDashboard",[[3,"desc"],[3,"desc"]],!0)}function ae(n){var t;switch(n){case"ByDenomination":case"ByContributorType":case"Top10ByTotalContributions":case"Top10ByTotalLoans":t=[0,1,2,3,4,5];break;case"RecentlyFormedCommittees":t=[0,6]}return t}function ve(t,i){var r=[{data:"CommitteeName",render:function(n,t,i){return i.CommitteeName?"<div><p>"+i.CommitteeName+"<\/p><\/div>":""},sWidth:"20%",visible:$.inArray(0,i)===-1?!1:!0},{data:"ContributorName",render:function(n,t,i){return i.ContributorName?"<div><p>"+i.ContributorName+"<\/p><\/div>":""},sWidth:"15%",visible:$.inArray(1,i)===-1?!1:!0},{data:"ContributorAddress",render:function(n,t,i){return i.ContributorAddress?"<div><p>"+i.ContributorAddress+"<\/p><\/div>":""},sWidth:"28%",visible:$.inArray(2,i)===-1?!1:!0},{data:"ContributorType",render:function(n,t,i){return i.ContributorType?"<div><p>"+i.ContributorType+"<\/p><\/div>":""},sWidth:"15%",visible:$.inArray(3,i)===-1?!1:!0},{data:"Amount",render:function(n,t,i){return i.Amount?'<div class="right"><p>'+f(i.Amount)+"<\/p><\/div>":'<div class="right"><p>$0.00<\/p><\/div>'},sWidth:"10%",visible:$.inArray(4,i)===-1?!1:!0},{data:"TransactionDate",render:function(t,i,r){return r.TransactionDate?"<div><p>"+n(r.TransactionDate)+"<\/p><\/div>":""},sWidth:"10%",visible:$.inArray(5,i)===-1?!1:!0},{data:"FilingDate",render:function(t,i,r){return r.FilingDate?"<div><p>"+n(r.FilingDate)+"<\/p><\/div>":""},sWidth:"10%",visible:$.inArray(6,i)===-1?!1:!0}],u=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,r,"#DashBoard",[],$.inArray(6,i)>0?[[6,"desc"]]:[[1,"asc"],[0,"asc"]],u)}function ye(n){var t;switch(n){case"Orders":t=[0,1,3,4,6];break;case"AuditReport":t=[2,5,7]}return t}function pe(t,i,r){var u=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Id",render:function(n,t,i){return'<input type="checkbox" class="case" onclick="OCF.UI.Helper.EnableDelete();" style="margin:0 !important;" value="'+i.Id+'" />'},width:"2%",searchable:!1,bSortable:!1},{data:"DocumentNumber",render:function(n,t,r){return r.DocumentNumber?'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.DocumentNumber+"<\/a>":""},bAutoWidth:!0,visible:$.inArray(0,r)===-1?!1:!0},{data:"OrderSubject",render:function(n,t,i){return i.OrderSubject?i.OrderSubject:""},bAutoWidth:!0,visible:$.inArray(1,r)===-1?!1:!0},{data:"DocumentTitle",render:function(n,t,r){return r.DocumentTitle?'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.DocumentTitle+"<\/a>":""},bAutoWidth:!0,visible:$.inArray(2,r)===-1?!1:!0},{data:"OrderType",render:function(n,t,i){return i.OrderType?"<div><p>"+i.OrderType+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(3,r)===-1?!1:!0},{data:"IssueDate",render:function(t,i,r){return r.IssueDate?"<div><p>"+n(r.IssueDate)+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(4,r)===-1?!1:!0},{data:"IssueDate",render:function(t,i,r){return r.IssueDate?"<div><p>"+n(r.IssueDate)+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(5,r)===-1?!1:!0},{data:"Comments",render:function(n,t,i){return i.Comments?"<div><p>"+i.Comments+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(6,r)===-1?!1:!0},{data:"DocumentNumber",render:function(n,t,i){return i.DocumentNumber?"<div><p>"+i.DocumentNumber+"<\/p><\/div>":""},bAutoWidth:!0,visible:$.inArray(7,r)===-1?!1:!0},],f=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,u,"#DashBoard",[[]],[[6,"desc"],[7,"desc"]],!1)}function we(n,t,i,r){var u=[{data:"Id",render:function(n,t,u){var f=i&&i.length>0?i.includes(u.Id.toString()):!1,e=f?"checked : checked":"";return f&&r(u.Id,u.DocumentNumber,u.FileName,u.IssueDate),'<input type="checkbox" class="case" '+e+" onclick=\"addOrUpdateOrder(this,'"+u.Id+"','"+u.DocumentNumber+"','"+u.FileName+"','"+u.IssueDate+'\');" style="margin:0 !important;" value="'+u.Id+'" />'},sWidth:"10%",searchable:!1,bSortable:!1},{data:"DocumentNumber",render:function(n,i,r){return r.DocumentNumber?'<a href="'+t+"/"+r.FileName+'" onclick="OCF.UI.Helper.DoNothing();" target="_blank">'+r.DocumentNumber+"<\/a>":""},sWidth:"20%",visible:!0,bSortable:!1},{data:"OrderSubject",render:function(n,t,i){return i.OrderSubject?i.OrderSubject:""},sWidth:"35%",visible:!0,bSortable:!1},{data:"OrderType",render:function(n,t,i){return i.OrderType?i.OrderType:""},sWidth:"20%",visible:!0,bSortable:!1},{data:"IssueDate",render:function(n,t,i){return i.IssueDate?new Date(i.IssueDate).toLocaleDateString("en-US"):""},sWidth:"15%",visible:!0,bSortable:!1},];OCF.DataTable.BuildGrid(n,u,"#DashBoard",[[]],[],!1,null,null,!1)}function be(t,i,r,u){var f=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"MemoNumber",render:function(n,t,r){return r.MemoNumber?'<a href="'+i+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.MemoNumber+"<\/a>":""},width:"10%",visible:!0},{data:"MemoDate",render:function(t,i,r){return r.MemoDate?n(r.MemoDate):""},width:"10%",visible:!0},{data:"Title",render:function(n,t,i){return i.Title?i.Title:""},width:"25%",visible:!0},{data:"Id",render:function(n,t,i){if(i.FileName){var r=u+"?fileName="+i.FileName;return'<a href="'+r+'" target="_blank" onclick="OCF.UI.Helper.DoNothing();">PDF<\/a>'}return""},width:"15%",visible:!0},{data:"Comments",render:function(n,t,i){return i.Comments?i.Comments:""},width:"30%",visible:!0},{data:"Id",render:function(n,t,i){return i.Id?'<a onclick="deleteMemoWarning('+i.Id+');"><span><i class="fi-trash size-21 icon-red" style="margin-left:35px"><\/i><\/span><\/a>':""},width:"10%",visible:!0},];OCF.DataTable.BuildGrid(t,f,r,[[]],[0,"desc"],!1)}function ke(t,i,r){var u=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"DocumentNumber",render:function(n,t,i){return i.DocumentNumber&&i.FileName?'<a href="'+r+"?fileName="+i.FileName+'" target="_blank">'+i.DocumentNumber+"<\/a>":i.DocumentNumber?i.DocumentNumber:""},bAutoWidth:!0,visible:$.inArray(0,i)===-1?!1:!0},{data:"OrderSubject",render:function(n,t,i){return i.OrderSubject?i.OrderSubject:""},bAutoWidth:!0,visible:$.inArray(1,i)===-1?!1:!0},{data:"DocumentTitle",render:function(n,t,i){return i.DocumentTitle&&i.FileName?'<a href="'+r+"?fileName="+i.FileName+'" target="_blank">'+i.DocumentTitle+"<\/a>":i.DocumentTitle?i.DocumentTitle:""},bAutoWidth:!0,visible:$.inArray(2,i)===-1?!1:!0},{data:"OrderType",render:function(n,t,i){return i.OrderType?i.OrderType:""},bAutoWidth:!0,visible:$.inArray(3,i)===-1?!1:!0},{data:"IssueDate",render:function(t,i,r){return r.IssueDate?n(r.IssueDate):""},bAutoWidth:!0,visible:$.inArray(4,i)===-1?!1:!0},{data:"IssueDate",render:function(t,i,r){return r.IssueDate?n(r.IssueDate):""},bAutoWidth:!0,visible:$.inArray(5,i)===-1?!1:!0},{data:"Comments",render:function(n,t,i){return i.Comments?i.Comments:""},bAutoWidth:!0,visible:$.inArray(6,i)===-1?!1:!0},{data:"DocumentNumber",render:function(n,t,i){return i.DocumentNumber?i.DocumentNumber:""},bAutoWidth:!0,visible:$.inArray(7,i)===-1?!1:!0},],f=function(n,t){$("#divExportDropdown").show();(t==null||t==undefined||t.length==0)&&$("#divExportDropdown").hide()};OCF.DataTable.BuildGrid(t,u,"#FilingReportsDashBoard",[],$.inArray(4,i)===-1?[[4,"desc"]]:[[5,"desc"]],f)}function de(n,t,i,u,f){var e=$(".case:checkbox:checked").map(function(){return $(this).val()}).get(),o=function(){t(i,u,f);OCF.UI.Helper.EnableDelete()};OCF.UI.Helper.Ajax(n,r.POST,{selectedIds:e},o)}function ge(t){var i=[{data:"Id",render:function(n,t,i){return'<input type="checkbox" onclick="enableSaveTransactions();"  style="margin:0 !important;" class="case" value="'+i.Id+'" />'},width:"5%",searchable:!1,bSortable:!1},{data:"Id",render:function(n,t,i){return i.IsValid?i.Amount>1e3?'<div class="middle"><a title="Contribution Limit exceeded"><i class="fi-flag size-18 icon-orange"><\/i><\/a><\/div>':'<div class="middle"><a title="Valid Items"><i class="fi-check size-18 icon-green"><\/i><\/a><\/div>':'<div class="middle"><a title="contact is not available"><i class="fi-x-circle size-18 icon-red"><\/i><\/a><\/div>'},width:"5%",searchable:!1,bSortable:!1},{data:"FirstName",render:function(n,t,i){return i.FirstName?i.FirstName+" "+i.LastName:i.OrganizationName?i.OrganizationName:""},width:"20%"},{data:"Address",render:function(n,t,i){return i.Address?i.Address:""},width:"25%",visible:!0},{data:"ContributorType",render:function(n,t,i){return i.ContributorType?i.ContributorType:""},width:"15%"},{data:"ContributionType",render:function(n,t,i){return i.ContributionType?i.ContributionType:""},width:"10%",visible:!0},{data:"ReceiptDate",render:function(t,i,r){return n(Date.parse(r.ReceiptDate))?n(r.ReceiptDate):""},width:"10%"},{data:"Amount",render:function(n,t,i){return i.Amount?'<div class="right"><p>'+f(i.Amount)+"<\/p><\/div>":'<div class="right"><p>$0.00<\/p><\/div>'},width:"10%"},];OCF.DataTable.BuildGrid(t,i,"#DashBoard",[],[[6,"asc"]],[],[],[],!1,!1)}function no(n,t){var i=[{data:"Id",visible:!1},{data:"Username",render:function(n,i,r){return'<a href="'+t+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.Username+"<\/a>"},swidth:"40%"},{data:"RoleName",render:function(n,t,i){return i.RoleName?i.RoleName:""},sWidth:"30%"}];OCF.DataTable.BuildGrid(n,i)}function to(n){var t=function(n){$("#showPassword").text(n)};OCF.UI.Helper.Ajax("/Account/AdminResetPassword",r.POST,{loginId:n},t)}function io(n,t){var i=[{data:"Rating",render:function(n){for(var t="",i=0;i<5;i++)t=i<n?t+'<i class="fas fa-star" style="color:rgb(228, 173, 34)"><\/i>':t+'<i class="far fa-star" style="color:rgb(228, 173, 34)"><\/i>';return t},swidth:"10%",orderable:!0},{data:"Comment",render:function(n,t,i){return i.Comment?'<div style="word-wrap:break-word;max-width:370px">'+n+"<\/div>":""},sWidth:"40%",orderable:!1},{data:"CommitteeName",render:function(n){return n?n:""},sWidth:"20%",orderable:!1},{data:"ReportDisplayName",render:function(n){return n?n:""},sWidth:"20%",orderable:!1},{data:"CreatedDateDisplay",render:function(n,t,i){return i.CreatedDateDisplay?new Date(i.CreatedDateDisplay).toLocaleDateString():""},sWidth:"10%"}];OCF.DataTable.BuildGridForFeedbackform(n,i,"#"+t,[],[[4,"desc"]],[],[],[],!0,!1,!0)}function ro(t,i,r){var u=[{data:"TransactionDate",render:function(n,t,i){return new Date(i.TransactionDate).getTime()},visible:!1},{data:"ContributorName",render:function(n,t,i){return i.ContributorName!==""?i.ContributorName:""},width:"23%"},{data:"ContributorAddress",render:function(n,t,i){return i.ContributorAddress!==""?i.ContributorAddress:""},width:"34%"},{data:"ReportName",render:function(n,t,i){return i.ReportName!==""?i.RefundReport:""},width:"20%"},{data:"TransactionDate",render:function(t,i,r){return n(r.RefundDate)},width:"10%"},{data:"Amount",render:function(n,t,i){return i.RefundAmount?'<div style="text-align:right"><p>$'+configure_amount(i.RefundAmount)+"<\/p><\/div>":""},width:"23%"},];OCF.DataTable.BuildGridForContributorList(t,u,"#"+r,[[]],[[0,"asc"]],"","","",!1,!1,!1)}function uo(n,t){var i=[{data:"Modified",render:function(n,t,i){return new Date(i.Modified).getTime()},visible:!1},{data:"Name",render:function(n,i,r){return'<a href="'+t+"/"+r.Id+'" onclick="OCF.UI.Helper.DoNothing();">'+r.Name+"<\/a>"},width:"80%"},{data:"Status",render:function(n,t,i){return i.Status},width:"20%"}];OCF.DataTable.BuildGrid(n,i)}function fo(n,t,i,r,u,f,e){e=e!==undefined?e:!0;r=r!==undefined?r:"application/json";t=t!==undefined?t:"POST";$.ajax({url:n,method:t,contentType:r,data:i,async:e,success:function(n){u&&u!==undefined&&u(n)},error:function(n){f&&f!==undefined&&f(n)}})}function eo(n,t){var i=function(n){if(n.IsFinished)$("#trainingpopup").foundation("reveal","open");else{var t=n.TrainingURL+n.EntranceConferenceTrainingId+"&applicationEnum="+n.Environment;$("#trainingURL").removeAttr("href");$("#trainingURL").attr("href",t);window.open(t,"_blank")}};OCF.UI.Helper.Ajax("/Dashboard/GetTrainingDetails",r.POST,{registrationId:n,trinerType:t},i)}function oo(n){function t(){$("div#DashBoard_filter.dataTables_filter").css({position:"relative"})}var i=[{data:null,className:"details-control ",render:function(){return'<div style="text-align:center"><i class="fa fa-chevron-circle-right" style="color:#97c6f1"><\/i><\/div>'},orderable:!1,defaultContent:"",width:"3%"},{data:"Type",render:function(n,t,i){return"<p data-letteremaillogId="+i.LetterEmailLogId+" > "+i.Type+"<\/p >"},width:"15%",bSortable:!1},{data:"Year",render:function(n,t,i){return i.Year!==""?i.Year:""},width:"7%",bSortable:!1},{data:"Report",render:function(n,t,i){return i.Report!==""?i.Report:""},width:"15%",bSortable:!1},{data:"Template",render:function(n,t,i){return i.Template!==""?'<a href="#" onclick="emailtemplatepopup('+i.LetterEmailLogId+');">'+i.Template+"<\/a>":""},width:"15%",bSortable:!1},{data:"CommitteesCount",render:function(n,t,i){return i.CommitteesCount!==""?i.CommitteesCount:""},width:"10%",bSortable:!1},{data:"Sentby",render:function(n,t,i){return i.Sentby!==""?i.Sentby:""},width:"10%",bSortable:!1},{data:"Senton",render:function(n,t,i){return i.Senton!==""?formatAMPM(new Date(i.Senton)):""},width:"20%"},{data:"Download",render:function(n,t,i){return i.LetterEmailLogId!==""?'<a id=linktoExport href="/LetterEmailLog/Export?exportType=Excel&amp;mode=0&amp;letteremaillogId='+i.LetterEmailLogId+'" target="_blank" class="small export radius button"><i class="fi-page-export-csv size-18" style="margin-right:8px"><\/i><\/a>':""},width:"20%",bSortable:!1},];return OCF.DataTable.BuildGridForContributorList(n,i,"#DashBoard",[[]],[],"",t,"",!0,!0,!0)}function so(n,t,i){$("#"+t).closest("tr").css({background:i}).addClass("nest_table");var r=[{data:"CommitteeName",render:function(n,t,i){return i.CommitteeName!==""?i.CommitteeName:""},width:"25%"},{data:"CommitteeID",render:function(n,t,i){return i.CommitteeID!==""?i.CommitteeID:""},width:"25%"},{data:"Recipients",render:function(n,t,i){return i.Recipients!==""?i.Recipients:""},width:"50%"},];OCF.DataTable.BuildGridForContributorList(n,r,"#"+t,[[]],[[0,"asc"]])}var r={POST:"POST",GET:"GET",PUT:"PUT",DELETE:"DELETE"};return{Ajax:v,PageInitialize:hr,BindChildDropdown:y,FormSubmit:o,ParseStringToInt:u,FormatAmount:f,CloseDropDown:a,BindElectionControls:d,BindLuceneTasksControls:k,BindOfficeControls:b,NotificationCount:p,NotificationCountResult:w,InitOfficeIndex:wt,InitLuceneTasksIndex:bt,InitElectionIndex:it,InitCandidateIndex:g,InitCommitteeIndex:nt,InitReportIndex:kt,EmailLogSearchResults:dt,InitSchedulePreviouslyReports:ni,InitScheduleReportsIndex:gt,InitFilerReportIndex:pu,InitOfficeCreate:ti,InitOfficeEdit:ii,FromDatePicker:kf,ToDatePicker:bf,InitElectionCreateEdit:ri,InitLuceneTasksCreateEdit:ui,InitCandidateCreate:fi,InitCandidateEdit:ci,CandidateStepChangingCreate:oi,CandidateStepChangedCreate:ei,GetSummarySuccess:hi,GetSummaryData:si,ChangeContributionScheduleType:li,ChangeA7ContributionScheduleType:ai,ContributionCreate:vi,SaleCreate:yi,RepayCreate:pi,ExpenditureCreate:wi,DebtsCreate:bi,LoansRepaymentCreate:ki,BundledContributionsCreate:di,FilerCreate:gi,ChangeExpenditureScheduleType:nr,ChangeDebtScheduleType:tr,InitScheduleContactListIndex:ir,InitCandidateContactListIndex:rr,InitScheduleList:ut,initBundledContributionList:rt,InitEmailContactList:et,InitExpenditureList:ft,InitLoanList:st,InitDebtLoanSearchList:ht,InitSaleSearchList:ct,InitLoanRepayList:at,InitIndividualContributionList:lt,InitDebtsList:vt,InitDebtsFromSearchList:yt,ToggleGridSellectAll:ur,ToggleGridLetterSellectAll:fr,DeleteSelectedGridItems:er,DeleteFilersSelectedGridItems:or,ConvertToDecimal:l,ConvertToDecimalAccountFormat:sr,DisclosureSearchList:cr,FinancialImagesSearchList:lr,OCFElmahAuditSearchList:lf,InitRegistrationReportsSearchResults:yr,InitAttendanceReportSearch:ar,InitReferralSearch:vr,DisclosureFilingHistory:tu,AddItemToArray:pr,RenderArrayToString:wr,RenderCriteriaContent:br,ClearSearchFields:kr,InitSearchResults:dr,InitAffiliatedSearchResults:gr,InitDataDownLoadSearchResults:nu,InitReferralOrders:we,EnableDelete:pt,InitTerminateCandidate:fu,InitPendingDeclineCandidate:uu,InitPendingDeclineCommittee:eu,InitPendingDeclineANC:ou,InitTerminateCommittee:su,InitPublicRecipientSearch:hu,InitFlaggedContributionsSearch:yu,ToggleTab:wu,DoNothing:h,CalculateGrandTotal:bu,CheckContributionLimit:ku,CheckNegativeClosingBalance:du,ScheduleColumns:gu,FilerReportColumns:nf,SearchColumns:ff,CommitteeColumns:uf,LetterColumns:tf,DisclosureColumns:rf,ReceipentColumns:cu,DownloadDataColumns:lu,FiancialSearchColumns:au,FlaggedSearchColumns:vu,DecimalFixforGrid:ef,InitReportSummaries:of,ContributorHistory:iu,FlaggedContributionsGrid:ru,AddBusinessDays:sf,InitScanList:hf,ScanFiledReports:cf,BuildGallery:af,DocumentScanned:pf,MultiSectionCheck:wf,DatePickerClearButton:yf,ScanRegisteredColumns:df,DeleteScanSelectGridItems:ie,AddSelectedItemToControl:ot,FilerTypeValue:t,EncodeRecepientParameter:e,HidingBallotMeasure:gf,HidingResultGrid:ne,CheckDefaultDate:c,MultiSectionRequiredValidation:te,DateNotNull:n,ShowCommitteeNameAndKeyonHeader:re,ActiveCommitteesSearchResults:ue,ActiveCommitteesSearchColumns:fe,ActiveCandidatesSearchResults:ee,ActiveCandidatesSearchColumns:oe,FinancialEnforcementList:se,AuditReportList:he,DisclosureOrderType:ce,DisclosureAuditReport:le,QuickStatsDetails:ve,QuickStatsColumns:ae,InitCommitteeReportsDetails:pe,InitMemoDetails:be,CommitteeReportsColumns:ye,InitFilingHistoryReportsDetails:ke,DeleteCommitteeReportsSelectedGridItems:de,SchedulesImportSearchResults:ge,InitUserDetail:no,AdminPasswordReset:to,GetFeedback:io,FlaggedContributionsRefundGrid:ro,ConfigAjax:fo,InitOrderSubjectIndex:uo,GetTrainingDetails:eo,LetterEmailLogGrid:oo,LetterEmailLogDetailsGrid:so,DeleteANCCommiteeselectedgriditems:tt}}();$.validator.addMethod("uszip",isValidZip,"Please enter a valid zipcode. <br/> ( Example: 99999 or 99999-9999 )");$.validator.addMethod("specialChar",hasNoSpecialChar,"Please remove the special characters.");$.validator.addMethod("removeHash",hasNoHash,"Please remove the special characters."),function(n,t,i){function nt(){function lt(t){var i=t.data.addr,o=t.data.streetField,e=n.trim(t.data.streetField.val()),s=t.data.containerUi,c=n(".smarty-autocomplete",s);if(e||(i.lastStreetInput=e,c.empty(),f.hideAutocomplete(i.id())),t.keyCode==13)return n(".smarty-active-suggestion:visible").length>0&&ft(i,k.suggestions[n(".smarty-active-suggestion:visible").first().data("suggIndex")],s),f.hideAutocomplete(i.id()),o.blur(),h(t);if(t.keyCode==40){nt(o[0]);return}if(t.keyCode==38){nt(o[0]);return}e&&e!=i.lastStreetInput&&i.isDomestic()&&(i.lastStreetInput=e,i.isDomestic()&&r.target.indexOf("US")>=0&&u("AutocompleteInvoked",{containerUi:s,suggContainer:c,streetField:o,input:e,addr:i}))}function ft(t,i){var r,e;if(t.usedAutocomplete=!1,r=t.getDomFields(),f.hideAutocomplete(t.id()),t.isFreeform())n(r.freeform).val(i.text).change(),t.usedAutocomplete=!0;else{if(r.postal_code&&n(r.postal_code).val("").change(),r.address1&&n(r.address1).val(i.street_line).change(),r.administrative_area)if(r.administrative_area.options){for(e=0;e<r.administrative_area.options.length;e++)if(r.administrative_area.options[e].text.toUpperCase()===i.state||v[r.administrative_area.options[e].text.toUpperCase()]===i.state){n(r.administrative_area)[0].selectedIndex=e;n(r.administrative_area).change();break}}else n(r.administrative_area).val(i.state).change();r.locality&&(n(r.locality).val("").change(),t.usedAutocomplete=!0,n(r.locality).val(i.city).change())}r.country&&!r.country.options&&n(r.country).val("USA").change();u("AutocompleteUsed",{address:t,suggestion:i})}function st(n){return{top:n.top+n.height/2-10,left:n.right-6}}function w(t,r){n(i).off("keyup");n(t).slideUp(e.speed,function(){n(this).parent(".smarty-ui").remove()});u("Completed",r.data)}function p(t){if(Array.isArray(t)||typeof t=="object")for(var i in t)t.hasOwnProperty(i)&&n("body").off("click",t[i]);else typeof t=="string"?n("body").off("click",t):alert("ERROR: Not an array, string, or object passed in to turn off all clicks")}function nt(n){if(typeof n.selectionStart=="number")n.selectionStart=n.selectionEnd=n.value.length;else if(typeof n.createTextRange!="undefined"){n.focus();var t=n.createTextRange();t.collapse(!1);t.select()}}function at(n){if(r.autocomplete>0)for(var t=0;t<n.getElementsByTagName("input").length;t++)n.getElementsByTagName("input")[t].autocomplete="smartystreets"}function vt(t){if(t.getElementsByTagName("option").length>0&&(c(tt,t.getElementsByTagName("option")[0].text.toUpperCase())||c(it,t.getElementsByTagName("option")[0].text.toUpperCase()))){var r=i.createElement("OPTION");r.innerText="Pick a state";r.selected=!0;n(t.getElementsByTagName("select")[0]).prepend(r);n(t).change()}}var d,ut="smartyForm",k,ht=0,g=[],et=24,ot=8,ct="<style>.smarty-dots { display: none; position: absolute; z-index: 999; width: "+et+"px; height: "+ot+'px; background-image: url("data:image/gif;base64,R0lGODlhGAAIAOMAALSytOTi5MTCxPTy9Ly6vPz6/Ozq7MzKzLS2tOTm5PT29Ly+vPz+/MzOzP///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBgAOACwAAAAAGAAIAAAEUtA5NZi8jNrr2FBScQAAYVyKQC6gZBDkUTRkXUhLDSwhojc+XcAx0JEGjoRxCRgWjcjAkqZr5WoIiSJIaohIiATqimglg4KWwrDBDNiczgDpiAAAIfkECQYAFwAsAAAAABgACACEVFZUtLK05OLkxMbE9PL0jI6MvL68bG5s7Ors1NbU/Pr8ZGJkvLq8zM7MXFpctLa05ObkzMrM9Pb0nJqcxMLE7O7s/P78////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWDgZVWQcp2nJREWmhLSKRWOcySoRAWBEZ8IBi+imAAcxwXhZODxDCfFwxloLI6A7OBCoPKWEG/giqxRuOLKRSA2lpVM6kM2dTZmyBuK0Aw8fhcQdQMxIwImLiMSLYkVPyEAIfkECQYAFwAsAAAAABgACACEBAIEpKak1NbU7O7svL68VFZU/Pr8JCIktLK05OLkzMrMDA4M9Pb0vLq87Ors9PL0xMLEZGZk/P78tLa05ObkzM7MFBIU////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWLgJVGCcZ2n9DASmq7nUwDAQaAPhCAEgzqNncIQodEWgxNht7tdDBMmorIw0gKXh3T3uCSYgV3VitUiwrskZTspGpFKsJMRRVdkNBuKseT5Tg4TUQo+BgkCfygSDCwuIgN/IQAh+QQJBgAXACwAAAAAGAAIAIRUVlS0srTk4uR8enz08vTExsRsbmzs6uyMjoz8+vzU1tRkYmS8urzMzsxcWly0trTk5uR8fnz09vTMyszs7uycmpz8/vz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFYOBlUVBynad1QBaaEtIpIY5jKOgxAM5w5IxAYJKo8HgLwmnnAAAGsodQ2FgcnYUL5Nh0QLTTqbXryB6cXcBPEBYaybEL0wm9SNqFWfOWY0Z+JxBSAXkiFAImLiolLoZxIQAh+QQJBgAQACwAAAAAGAAIAIQEAgS0srTc2tz08vTMyszk5uT8+vw0MjS8ury0trTk4uT09vTMzszs6uz8/vw0NjT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFWiAELYMjno4gmCfkDItoEEGANKfwAMAjnA1EjWBg1I4G14HHO5gMiWOAEZUqIAIm86eQeo/XrBbA/RqlMceS6RxVa4xZLVHI7QCHn6hQRbAWDSwoKoIiLzEQIQAh+QQJBgAXACwAAAAAGAAIAIRUVlS0srTk4uR8enz08vTExsRsbmzs6uyMjoz8+vzU1tRkYmS8urzMzsxcWly0trTk5uR8fnz09vTMyszs7uycmpz8/vz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFY+B1SYQlntYBmeeVQJSZTEHAHCcUOUCEiwqDw4GQNGrIhGgA4DkGIsIC0ARUHsia4AKpOiGXghewyGq5YwCu4Gw6jlnJ0gu9SKvWRKH2AIt0TQN+F0FNRSISMS0XKSuLCQKKIQAh+QQJBgAXACwAAAAAGAAIAIQEAgSkpqTU1tTs7uy8vrxUVlT8+vwkIiS0srTk4uTMyswMDgz09vS8urzs6uz08vTEwsRkZmT8/vy0trTk5uTMzswUEhT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFZOB1MY8knhJpnpchUKahIEjjnAxEE8xJHABA4VGhGQ0ighFBEA0swWBkYgxMEpfHkva4BKLBxRaBHdACCHT3C14U0VbkRWlsXgYLcERGJQxOD3Q8PkBCfyMDKygMDIoiDAIJJiEAIfkECQYAFwAsAAAAABgACACEVFZUtLK05OLkxMbE9PL0jI6MvL68bG5s7Ors1NbU/Pr8ZGJkvLq8zM7MXFpctLa05ObkzMrM9Pb0nJqcxMLE7O7s/P78////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWPgdUmEJZ4WaZ6XAlWmEgUBg5wSRRvSmRwOR0HSoBkVIoMxYBARFgBHdPJYBgSXijVAuAykUsBii5VsK96oelFc9i5K40MkgYInigHtAcHFH28XP1EFXSMwLBcWFRIrJwoCiCEAOw=="); }.smarty-ui { position: absolute; z-index: 999; text-shadow: none; text-align: left; text-decoration: none; }.smarty-popup { padding: 20px 30px; background: #FFFFFF; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }.smarty-popup-header { text-transform: uppercase; font: bold 10pt/1em "Helvetica", sans-serif; color: #CEA737; padding: 12px 0px 0px; text-align: center;}.smarty-popup-ambiguous-header { color: #CEA737; }.smarty-popup-invalid-header { color: #D0021B; }.smarty-popup-missing-input-header { color: #CEA737; }.smarty-popup-typed-address{ font-family: sans-serif; font-size: 10pt; font-style: italic; text-align: center; margin: 15px 0px;}.smarty-popup-secondary-number-form { font-family: sans-serif; margin: 10px auto 20px; padding: 0; border: none; float: none; background: none; width: auto; text-align: center; }#smarty-popup-secondary-number-input-box {width: 200px; font-size: 11pt; margin-bottom: 10px; text-align: center;}#smarty-popup-secondary-number-form-submit-button { line-height: 23px; background: #606060; border: none; color: #fff; border-radius: 3px; padding: 2px 15px; font-size: 11pt; width: 215px; }#smarty-popup-secondary-number-form-submit-button:hover { background: #333; }.smarty-choice-list .smarty-choice { background: #FFF; padding: 10px 15px; color: #9B9B9B; margin-bottom: 10px; }.smarty-choice { display: block; font: 300 10pt/1em sans-serif; text-decoration: none !important; border: 1px solid #D4D4D4; }.smarty-choice-list .smarty-choice:hover { color: #333 !important; background: #F7F7F7; text-decoration: none !important; border: 1px solid #333 }.smarty-choice-alt { background: inherit !important; clear: both; }.smarty-choice-alt .smarty-choice-abort, .smarty-choice-override { padding: 8px 10px; color: #FFF !important; font-size: 10pt; text-decoration: none !important; background: #606060; border-radius: 3px; border: none; } .smarty-choice-override { float: right } .smarty-choice-abort { float: left }.smarty-choice-alt .smarty-choice:first-child { border-top: 0; }.smarty-choice-abort:hover { background: #333 !important; }.smarty-choice-override:hover { background: #333 !important; }.smarty-tag { position: absolute; display: block; overflow: hidden; font: 15px/1.2em sans-serif; text-decoration: none !important; width: 20px; height: 18px; border-radius: 25px; transition: all .25s; -moz-transition: all .25s; -webkit-transition: all .25s; -o-transition: all .25s; }.smarty-tag:hover { width: 70px; text-decoration: none !important; color: #999; }.smarty-tag:hover .smarty-tag-text { color: #000 !important; }.smarty-tag-grayed { border: 1px solid #B4B4B4 !important; color: #999 !important; background: #DDD !important; box-shadow: inset 0 9px 15px #FFF; }.smarty-tag-green { border: 1px solid #407513 !important; color: #407513 !important; background: #A6D187 !important; box-shadow: inset 0 9px 15px #E3F6D5; }.smarty-tag-grayed:hover { border-color: #333 !important; }.smarty-tag-check { padding-left: 4px; text-decoration: none !important; }.smarty-tag-text { font-size: 12px !important; position: absolute; top: 0; left: 16px; width: 50px !important; text-align: center !important; }.smarty-autocomplete { border: 1px solid #777; background: white; overflow: hidden; white-space: nowrap; box-shadow: 1px 1px 3px #555; }.smarty-suggestion { display: block; color: #444; text-decoration: none !important; font-size: 12px; padding: 1px 5px; }.smarty-active-suggestion { background: #EEE; color: #000; border: none; outline: none; }.smarty-no-suggestions { padding: 1px 5px; font-size: 12px; color: #AAA; font-style: italic; }<\/style>';this.postMappingOperations=function(){var p,b,tt,e,a,ut,g,l;if(r.ui){for(n("head").prepend(ct),p=s.getMappedAddresses(),e=0;e<p.length;e++){b=p[e].id();n("body").append('<div class="smarty-ui"><div title="Loading..." class="smarty-dots smarty-addr-'+b+'"><\/div><\/div>');tt=st(p[e].corners(!0));n("body").append('<div class="smarty-ui" style="top: '+tt.top+"px; left: "+tt.left+'px;"><a href="javascript:" class="smarty-tag smarty-tag-grayed smarty-addr-'+b+'" title="Address not verified. Click to verify." data-addressid="'+b+'"><span class="smarty-tag-check">&#10003;<\/span><span class="smarty-tag-text">Verify<\/span><\/a><\/div>');n(t).on("resize.smarty",{addr:p[e]},function(t){var i=t.data.addr,o=st(i.corners(!0)),e;if(n(".smarty-tag.smarty-addr-"+i.id()).parent(".smarty-ui").css("top",o.top+"px").css("left",o.left+"px"),e=i.corners(),n(".smarty-popup.smarty-addr-"+i.id()).parent(".smarty-ui").css("top",e.top+"px").css("left",e.left+"px"),r.autocomplete){var s=n(".smarty-autocomplete.smarty-addr-"+i.id()).closest(".smarty-ui"),f=i.getDomFields(),u="";f.address1?u="address1":f.freeform&&(u="freeform");u!==""&&s.css({left:n(f[u]).offset().left+"px",top:n(f[u]).offset().top+n(f[u]).outerHeight(!1)+"px"})}})}n("body").on("click",".smarty-tag-grayed",function(){var t=n(this).data("addressid");s.verify(t)});n("body").on("click",".smarty-undo",function(){var t=n(this).parent().data("addressid"),i=s.getMappedAddressByID(t);i.undo(!0)});if(r.autocomplete&&r.key){for(e=0;e<o.length;e++){for(a=o[e],l=0;l<a.addresses.length;l++){var v=a.addresses[l],it=v.getDomFields(),w="";if(it.address1?w="address1":it.freeform&&(w="freeform"),w!==""){var y=n(it[w]),c=n('<div class="smarty-ui"><\/div>'),rt=n('<div class="smarty-autocomplete"><\/div>');rt.addClass("smarty-addr-"+v.id());c.data("addrID",v.id());c.append(rt);c.css({position:"absolute",left:y.offset().left+"px",top:y.offset().top+y.outerHeight(!1)+"px"});c.hide().appendTo("body");c.on("click",".smarty-suggestion",{addr:v,containerUi:c},function(t){var i=k.suggestions[n(this).data("suggIndex")];ft(t.data.addr,i,t.data.containerUi)});c.on("mouseover",".smarty-suggestion",function(){n(".smarty-active-suggestion").removeClass("smarty-active-suggestion");n(this).addClass("smarty-active-suggestion")});c.on("mouseleave",".smarty-active-suggestion",function(){n(this).removeClass("smarty-active-suggestion")});y.attr("autocomplete","off");y.keydown({containerUi:c,addr:v},function(t){var e=n(".smarty-autocomplete",t.data.containerUi),i=n(".smarty-active-suggestion:visible",e).first(),r=!1,u;if(t.keyCode==9){if(i.length>0)return u=t.data.addr.getDomFields(),u.zipcode?n(u.zipcode).focus():n(u[w]).blur(),ft(t.data.addr,k.suggestions[i.data("suggIndex")],t.data.containerUi),v.isFreeform()?!0:h(t);f.hideAutocomplete(t.data.addr.id())}else t.keyCode==40?(i.hasClass("smarty-suggestion")||(i=n(".smarty-suggestion",e).first().mouseover(),r=!0),r||(i.next(".smarty-addr-"+t.data.addr.id()+" .smarty-suggestion").length>0?i.next(".smarty-suggestion").mouseover():i.removeClass("smarty-active-suggestion")),nt(this)):t.keyCode==38&&(i.hasClass("smarty-suggestion")||(i=n(".smarty-suggestion",e).last().mouseover(),r=!0),r||(i.prev(".smarty-addr-"+t.data.addr.id()+" .smarty-suggestion").length>0?i.prev(".smarty-suggestion").mouseover():i.removeClass("smarty-active-suggestion")),nt(this))});y.keyup({form:a,addr:v,streetField:y,containerUi:c},lt)}}n(i).keyup(function(t){t.keyCode==27&&n(".smarty-autocomplete").closest(".smarty-ui").hide()})}setTimeout(function(){n(t).trigger("resize.smarty")},500);setTimeout(function(){n(t).trigger("resize.smarty")},1500)}}if(r.submitVerify)for(e=0;e<o.length;e++){if(a=o[e],d=function(t){if(t.data.form&&t.data.form.processing||n(".smarty-active-suggestion:visible").length>0)return h(t);if(!t.data.form.allActiveAddressesAccepted()){var i=t.data.form.activeAddressesNotAccepted();return i.length>0&&u("VerificationInvoked",{address:i[0],invoke:t.data.invoke,invokeFn:t.data.invokeFn}),h(t)}},ut=function(t,i){var r,u,e,f;if(t&&i)for(r=[],u=n._data(t,"events"),u&&u[i]&&u[i].length>0&&(r=n.extend(!0,[],u[i])),n(t).off(i),n(t)[i]({form:a,invoke:t,invokeFn:i},d),typeof t["on"+i]=="function"&&(e=t["on"+i],t["on"+i]=null,n(t)[i](e)),f=0;f<r.length;f++)n(t)[i](r[f].data,r[f].handler)},g=n(r.submitSelector,a.dom),r.debug)for(l=0;l<g.length;l++)g[l].style.color="#4BA341";g.each(function(){ut(this,"click")})}u("MapInitialized")};this.requestAutocomplete=function(t,i){i.input&&i.addr.isDomestic()&&k&&i.containerUi.show();var f={callback:function(t,u){var h=new RegExp("^\\w+\\s\\w+|^[A-Za-z]+$|^[A-Za-z]+\\s\\w*"),c=h.test(i.input),o,f,e,s;if(k=u,i.suggContainer.empty(),!u.suggestions||u.suggestions.length==0){i.suggContainer.html('<div class="smarty-no-suggestions">'+r.noSuggestionsMessage+"<\/div>");return}if(r.waitForStreet&&c==!1)o="",o=r.stateFilter||r.cityFilter||r.geolocate||r.cityStatePreference?"filtered":"address",i.suggContainer.html('<div class="smarty-no-suggestions">Type more for '+o+" suggestions<\/div>");else for(f=0;f<u.suggestions.length;f++)e=u.suggestions[f].text.replace(/<|>/g,""),e=e.replace(new RegExp("("+i.input.replace(/[#-.]|[[-^]|[?|{}]/g,"\\$&")+")","ig"),"<b>$1<\/b>"),s=n('<a href="javascript:" class="smarty-suggestion">'+e+"<\/a>"),s.data("suggIndex",f),i.suggContainer.append(s);i.suggContainer.css({width:Math.max(i.streetField.outerWidth(!1),250)+"px"});i.containerUi.show();g.splice(0,t)},number:ht++};g[f.number]=f;n.ajax({url:"https://us-autocomplete.api.smartystreets.com/suggest",traditional:!0,dataType:"json",data:{"auth-id":r.key,"auth-token":r.token,prefix:i.input,city_filter:r.cityFilter,state_filter:r.stateFilter,prefer:r.cityStatePreference,suggestions:r.autocomplete,geolocate:r.geolocate,geolocate_precision:r.geolocatePrecision,agent:["smartystreets (plugin:website@"+s.version+")",r.agent]}}).done(function(t){u("AutocompleteReceived",n.extend(i,{json:t,autocplrequest:f}))})};this.showAutocomplete=function(n,t){g[t.autocplrequest.number]&&g[t.autocplrequest.number].callback(t.autocplrequest.number,t.json)};this.hideAutocomplete=function(t){n(".smarty-autocomplete.smarty-addr-"+t).closest(".smarty-ui").hide()};this.showSmartyUI=function(t){var i=n(".deactivated.smarty-addr-"+t);i.push(i[0].parentElement);i.removeClass("deactivated");i.addClass("activated");i.show()};this.hideSmartyUI=function(t){var i=n(".smarty-addr-"+t+":visible"),r=n(".smarty-autocomplete.smarty-addr-"+t);i.addClass("deactivated");i.parent().addClass("deactivated");r.addClass("deactivated");i.hide();i.parent().hide();r.hide()};this.clean=function(){var f,e,u,s,c,h;if(o.length!=0){for(r.debug&&console.log("Cleaning up old form map data and bindings..."),f=0;f<o.length;f++){for(n(o[f].dom).data(ut,""),e=0;e<o[f].addresses.length;e++){u=o[f].addresses[e].getDomFields();for(s in u)if(u.hasOwnProperty(s)){if(r.debug)for(n(u[s]).css("background","none").attr("placeholder",""),c=n(r.submitSelector),h=0;h<c.length;h++)c[h].style.color="black";n(u[s]).off("change")}u.address1?n(u.address1).off("keyup").off("keydown").off("blur"):u.freeform&&n(u.freeform).off("keyup").off("keydown").off("blur")}n.each(o,function(){n(this.dom).off("submit",d)});n(r.submitSelector,o[f].dom).each(function(){n(this).off("click",d)})}n(".smarty-ui").off("click",".smarty-suggestion").off("mouseover",".smarty-suggestion").off("mouseleave",".smarty-suggestion").remove();n("body").off("click",".smarty-undo");n("body").off("click",".smarty-tag-grayed");n(t).off("resize.smarty");n(i).off("keyup");o=[];b=0;r.debug&&console.log("Done cleaning up; ready for new mapping.")}};this.mapFields=function(t){var h,l,i,w,f,p,s,e,v;r.debug&&console.log("Manually mapping fields given this data:",t);this.clean();h=[];t=t instanceof Array?t:[t];for(l in t)if(t.hasOwnProperty(l)){if(i=t[l],!i.country&&r.target.indexOf("US")<0)continue;w="";for(f in i)if(i.hasOwnProperty(f)&&(f=="match"&&(w=i[f],delete i[f]),f!="id")){if(!c(a,f)){r.debug&&console.log("NOTICE: Field named "+f+" is not allowed. Skipping...");delete i[f];continue}p=n(i[f]);p.length==0?(r.debug&&console.log("NOTICE: No matches found for selector "+i[f]+". Skipping..."),delete i[f]):p.parents("form").length==0?(r.debug&&console.log('NOTICE: Element with selector "'+i[f]+'" is not inside a <form> tag. Skipping...'),delete i[f]):i[f]=p[0]}if(r.target.indexOf("INTERNATIONAL")>=0){if(!(i.country&&i.freeform||i.country&&i.address1&&i.postal_code||i.country&&i.address1&&i.locality&&i.administrative_area)){r.debug&&console.log("NOTICE: Address map (index "+l+") was not mapped to a complete street address. Skipping...");continue}}else if(!(i.freeform||i.address1&&i.postal_code||i.address1&&i.locality&&i.administrative_area)){r.debug&&console.log("NOTICE: Address map (index "+l+") was not mapped to a complete street address. Skipping...");continue}if(s=n(i.address1).parents("form")[0],s||(s=n(i.freeform).parents("form")[0]),e=new rt(s),n(s).data(ut)){for(v=0;v<h.length;v++)if(h[v].dom==s){e=h[v];break}}else n(s).data(ut,1),at(e.dom),vt(e.dom),h.push(e);b++;e.addresses.push(new y(i,e,i.id,w));r.debug&&console.log("Finished mapping address with ID: "+e.addresses[e.addresses.length-1].id())}o=h;u("FieldsMapped")};this.disableFields=function(t){var i,u,f;if(r.ui){i=t.getDomFields();for(u in i)i.hasOwnProperty(u)&&(n(i[u]).prop?n(i[u]).prop("disabled",!0):n(i[u]).attr("disabled","disabled"));t.form&&t.form.dom&&(f=n(r.submitSelector,t.form.dom),f.prop?f.prop("disabled",!0):f.attr("disabled","disabled"))}};this.enableFields=function(t){var i,u,f;if(r.ui){i=t.getDomFields();for(u in i)i.hasOwnProperty(u)&&(n(i[u]).prop?n(i[u]).prop("disabled",!1):n(i[u]).removeAttr("disabled"));t.form&&t.form.dom&&(f=n(r.submitSelector,t.form.dom),f.prop?f.prop("disabled",!1):f.removeAttr("disabled"))}};this.showLoader=function(t){if(r.ui&&t.hasDomFields()){var i=t.corners(!0),u=n(".smarty-dots.smarty-addr-"+t.id()).parent();u.css("top",i.top+i.height/2-ot/2+"px").css("left",i.right-et-10+"px");n(".smarty-dots",u).show()}};this.hideLoader=function(t){r.ui&&n(".smarty-dots.smarty-addr-"+t.id()).hide()};this.markAsValid=function(t){if(r.ui&&t){var i=n(".smarty-tag.smarty-tag-grayed.smarty-addr-"+t.id());i.removeClass("smarty-tag-grayed").addClass("smarty-tag-green").attr("title","Address verified! Click to undo.");n(".smarty-tag-text",i).text("Verified").hover(function(){n(this).text("Undo")},function(){n(this).text("Verified")}).addClass("smarty-undo")}};this.unmarkAsValid=function(t){var u=".smarty-tag.smarty-addr-"+t.id(),i;r.ui&&t&&n(u).length!=0&&(i=n(".smarty-tag.smarty-tag-green.smarty-addr-"+t.id()),i.removeClass("smarty-tag-green").addClass("smarty-tag-grayed").attr("title","Address not verified. Click to verify."),n(".smarty-tag-text",i).text("Verify").off("mouseenter mouseleave").removeClass("smarty-undo"))};this.showAmbiguous=function(f){var v,y,o,c;if(r.ui&&f.address.hasDomFields()){var l=f.address,s=f.response,a=l.corners();if(a.width=294,a.height=s.length*63+124,v='<div class="smarty-ui" style="top: '+a.top+"px; left: "+a.left+'px;"><div class="smarty-popup smarty-addr-'+l.id()+'" style="width: '+a.width+"px; height: "+a.height+'px;"><div class="smarty-popup-header smarty-popup-ambiguous-header">'+r.ambiguousMessage+'<\/div><div class="smarty-popup-typed-address">'+l.toString()+'<\/div><div class="smarty-choice-list">',l.isDomestic())for(o=0;o<s.raw.length;o++){var b=s.raw[o].delivery_line_1,k=s.raw[o].components.city_name,d=s.raw[o].components.state_abbreviation,g=s.raw[o].components.zipcode+"-"+s.raw[o].components.plus4_code;v+='<a href="javascript:" class="smarty-choice" data-index="'+o+'">'+b+"<br>"+k+", "+d+" "+g+"<\/a>"}else for(y=r.candidates,s.raw.length<y&&(y=s.raw.length),o=0;o<y;o++)c="",s.raw[o].address1&&(c+=s.raw[o].address1),s.raw[o].address2&&(c=c+"<br>"+s.raw[o].address2),s.raw[o].address3&&(c=c+"<br>"+s.raw[o].address3),s.raw[o].address4&&(c=c+"<br>"+s.raw[o].address4),s.raw[o].address5&&(c=c+"<br>"+s.raw[o].address5),s.raw[o].address6&&(c=c+"<br>"+s.raw[o].address6),v+='<a href="javascript:" class="smarty-choice" data-index="'+o+'">'+c+"<\/a>";v+='<\/div><div class="smarty-choice-alt">';v+='<a href="javascript:" class="smarty-choice smarty-choice-abort smarty-abort">'+r.changeMessage+"<\/a>";r.enforceVerification||(v+='<a href="javascript:" class="smarty-choice smarty-choice-override">'+r.certifyMessage+"<\/a>");v+="<\/div><\/div><\/div>";n(v).hide().appendTo("body").show(e.speed);(n(i).scrollTop()>a.top-100||n(i).scrollTop()<a.top-n(t).height()+100)&&n("html, body").stop().animate({scrollTop:n(".smarty-popup.smarty-addr-"+l.id()).offset().top-100},500);f.selectors={goodAddr:".smarty-popup.smarty-addr-"+l.id()+" .smarty-choice-list .smarty-choice",useOriginal:".smarty-popup.smarty-addr-"+l.id()+" .smarty-choice-override",abort:".smarty-popup.smarty-addr-"+l.id()+" .smarty-abort"};n("body").on("click",f.selectors.goodAddr,f,function(t){n(".smarty-popup.smarty-addr-"+l.id()).slideUp(e.speed,function(){n(this).parent(".smarty-ui").remove();n(this).remove()});p(t.data.selectors);delete t.data.selectors;u("UsedSuggestedAddress",{address:t.data.address,response:t.data.response,invoke:t.data.invoke,invokeFn:t.data.invokeFn,chosenCandidate:s.raw[n(this).data("index")]})});n("body").on("click",f.selectors.useOriginal,f,function(t){n(this).parents(".smarty-popup").slideUp(e.speed,function(){n(this).parent(".smarty-ui").remove();n(this).remove()});p(t.data.selectors);delete t.data.selectors;u("OriginalInputSelected",t.data)});n(i).keyup(f,function(t){t.keyCode==27&&(p(t.data.selectors),delete t.data.selectors,w(n(".smarty-popup.smarty-addr-"+t.data.address.id()),t),h(t))});n("body").on("click",f.selectors.abort,f,function(t){p(t.data.selectors);delete t.data.selectors;w(n(this).parents(".smarty-popup"),t)})}};this.showInvalid=function(f){var h;if(r.ui&&f.address.hasDomFields()){var s=f.address,c=f.response,o=s.corners();o.width=300;o.height=130;h='<div class="smarty-ui" style="top: '+o.top+"px; left: "+o.left+'px;"><div class="smarty-popup smarty-addr-'+s.id()+'" style="width: '+o.width+"px; height: "+o.height+'px;"><div class="smarty-popup-header smarty-popup-invalid-header">'+r.invalidMessage+'<\/div><div class="smarty-popup-typed-address">'+s.toString()+'<\/div><div class="smarty-choice-alt"><a href="javascript:" class="smarty-choice smarty-choice-abort smarty-abort">'+r.changeMessage+"<\/a>";r.enforceVerification||(h+='<a href="javascript:" class="smarty-choice smarty-choice-override">'+r.certifyMessage+"<\/a>");h+="<\/div><\/div>";n(h).hide().appendTo("body").show(e.speed);f.selectors={useOriginal:".smarty-popup.smarty-addr-"+s.id()+" .smarty-choice-override ",abort:".smarty-popup.smarty-addr-"+s.id()+" .smarty-abort"};(n(i).scrollTop()>o.top-100||n(i).scrollTop()<o.top-n(t).height()+100)&&n("html, body").stop().animate({scrollTop:n(".smarty-popup.smarty-addr-"+s.id()).offset().top-100},500);p(f.selectors.abort);n("body").on("click",f.selectors.abort,f,function(n){w(".smarty-popup.smarty-addr-"+n.data.address.id(),n);delete n.data.selectors;u("InvalidAddressRejected",n.data)});p(f.selectors.useOriginal);n("body").on("click",f.selectors.useOriginal,f,function(n){w(".smarty-popup.smarty-addr-"+n.data.address.id(),n);delete n.data.selectors;u("OriginalInputSelected",n.data)});n(i).keyup(f,function(t){t.keyCode==27&&(p(t.data.selectors),n(f.selectors.abort).click(),w(".smarty-popup.smarty-addr-"+t.data.address.id(),t))})}};this.showInvalidCountry=function(f){var h;if(r.ui&&f.address.hasDomFields()){var s=f.address,c=f.response,o=s.corners();o.width=300;o.height=130;h='<div class="smarty-ui" style="top: '+o.top+"px; left: "+o.left+'px;"><div class="smarty-popup smarty-addr-'+s.id()+'" style="width: '+o.width+"px; height: "+o.height+'px;"><div class="smarty-popup-header smarty-popup-invalid-header">'+r.invalidCountryMessage+'<\/div><div class="smarty-popup-typed-address">'+s.toString()+'<\/div><div class="smarty-choice-alt"><a href="javascript:" class="smarty-choice smarty-choice-abort smarty-abort">'+r.changeMessage+"<\/a><\/div>";r.enforceVerification||(h+='<a href="javascript:" class="smarty-choice smarty-choice-override">'+r.certifyMessage+"<\/a>");h+="<\/div><\/div>";n(h).hide().appendTo("body").show(e.speed);f.selectors={useOriginal:".smarty-popup.smarty-addr-"+s.id()+" .smarty-choice-override ",abort:".smarty-popup.smarty-addr-"+s.id()+" .smarty-abort"};(n(i).scrollTop()>o.top-100||n(i).scrollTop()<o.top-n(t).height()+100)&&n("html, body").stop().animate({scrollTop:n(".smarty-popup.smarty-addr-"+s.id()).offset().top-100},500);p(f.selectors.abort);n("body").on("click",f.selectors.abort,f,function(n){w(".smarty-popup.smarty-addr-"+n.data.address.id(),n);delete n.data.selectors;u("InvalidAddressRejected",n.data)});p(f.selectors.useOriginal);n("body").on("click",f.selectors.useOriginal,f,function(n){w(".smarty-popup.smarty-addr-"+n.data.address.id(),n);delete n.data.selectors;u("OriginalInputSelected",n.data)});n(i).keyup(f,function(t){t.keyCode==27&&(p(t.data.selectors),n(f.selectors.abort).click(),w(".smarty-popup.smarty-addr-"+t.data.address.id(),t))})}};this.showMissingSecondary=function(f){var o,s,c;if(r.ui&&f.address.hasDomFields()){o=f.address;s=o.corners();s.width=300;s.height=230;c='<div class="smarty-ui" style="top: '+s.top+"px; left: "+s.left+'px;"><div class="smarty-popup smarty-addr-'+o.id()+'" style="width: '+s.width+"px; height: "+s.height+'px;"><div class="smarty-popup-header smarty-popup-missing-secondary-header">'+r.missingSecondaryMessage+'<\/div><div class="smarty-popup-typed-address">'+o.toString()+'<\/div><form class="smarty-popup-secondary-number-form"><input id="smarty-popup-secondary-number-input-box" class="smarty-addr-'+o.id()+'" type="text" name="secondarynumber" placeholder="Enter number here"><br><input id="smarty-popup-secondary-number-form-submit-button" class="smarty-addr-'+o.id()+'" type="submit" value="Submit"><\/form><hr style="margin-bottom: 15px;"><div class="smarty-choice-alt"><a href="javascript:" class="smarty-choice smarty-choice-abort smarty-abort">'+r.changeMessage+"<\/a>";r.enforceVerification||(c+='<a href="javascript:" class="smarty-choice smarty-choice-override">'+r.certifyMessage+"<\/a>");c+="<\/div><\/div><\/div>";n(c).hide().appendTo("body").show(e.speed);f.selectors={useOriginal:".smarty-popup.smarty-addr-"+o.id()+" .smarty-choice-override ",abort:".smarty-popup.smarty-addr-"+o.id()+" .smarty-abort",submit:"#smarty-popup-secondary-number-form-submit-button.smarty-addr-"+o.id()};(n(i).scrollTop()>s.top-100||n(i).scrollTop()<s.top-n(t).height()+100)&&n("html, body").stop().animate({scrollTop:n(".smarty-popup.smarty-addr-"+o.id()).offset().top-100},500);p(f.selectors.abort);n("body").on("click",f.selectors.abort,f,function(n){w(".smarty-popup.smarty-addr-"+n.data.address.id(),n);delete n.data.selectors;u("InvalidAddressRejected",n.data)});p(f.selectors.useOriginal);n("body").on("click",f.selectors.useOriginal,f,function(n){w(".smarty-popup.smarty-addr-"+n.data.address.id(),n);delete n.data.selectors;u("OriginalInputSelected",n.data)});p(f.selectors.submit);n("body").on("click",f.selectors.submit,f,function(t){t.data.address.secondary=n("#smarty-popup-secondary-number-input-box.smarty-addr-"+t.data.address.id()).val();t.data.address.isFreeform()&&(t.data.address.address1=t.data.response.raw[0].delivery_line_1);t.data.address.zipcode=t.data.response.raw[0].components.zipcode;w(".smarty-popup.smarty-addr-"+t.data.address.id(),t);delete t.data.selectors;h(t);u("AddedSecondary",t.data)});n(i).keyup(f,function(t){t.keyCode==27&&(p(t.data.selectors),n(f.selectors.abort).click(),w(".smarty-popup.smarty-addr-"+t.data.address.id(),t))})}};this.showMissingInput=function(f){var h;if(r.ui&&f.address.hasDomFields()){var s=f.address,c=f.response,o=s.corners();o.width=300;o.height=120;h='<div class="smarty-ui" style="top: '+o.top+"px; left: "+o.left+'px;"><div class="smarty-popup smarty-addr-'+s.id()+'" style="width: '+o.width+"px; height: "+o.height+'px;"><div class="smarty-popup-header smarty-popup-missing-input-header">'+r.missingInputMessage+'<\/div><div class="smarty-popup-typed-address">'+s.toString()+'<\/div><div class="smarty-choice-alt"><a href="javascript:" class="smarty-choice smarty-choice-abort smarty-abort">'+r.changeMessage+"<\/a>";r.enforceVerification||(h+='<a href="javascript:" class="smarty-choice smarty-choice-override">'+r.certifyMessage+"<\/a>");h+="<\/div><\/div>";n(h).hide().appendTo("body").show(e.speed);f.selectors={useOriginal:".smarty-popup.smarty-addr-"+s.id()+" .smarty-choice-override ",abort:".smarty-popup.smarty-addr-"+s.id()+" .smarty-abort"};(n(i).scrollTop()>o.top-100||n(i).scrollTop()<o.top-n(t).height()+100)&&n("html, body").stop().animate({scrollTop:n(".smarty-popup.smarty-addr-"+s.id()).offset().top-100},500);p(f.selectors.abort);n("body").on("click",f.selectors.abort,f,function(n){w(".smarty-popup.smarty-addr-"+n.data.address.id(),n);delete n.data.selectors;u("InvalidAddressRejected",n.data)});p(f.selectors.useOriginal);n("body").on("click",f.selectors.useOriginal,f,function(n){w(".smarty-popup.smarty-addr-"+n.data.address.id(),n);delete n.data.selectors;u("OriginalInputSelected",n.data)});n(i).keyup(f,function(t){t.keyCode==27&&(p(t.data.selectors),n(f.selectors.abort).click(),w(".smarty-popup.smarty-addr-"+t.data.address.id(),t))})}}}function y(t,e,o,l){function nt(n){if(n.dom){if(n.dom.tagName!=="SELECT")return n.dom.value+" ";if(n.dom.selectedIndex>0)return n.dom[n.dom.selectedIndex].text+" "}return""}var w=this,y,k,d="accepted",g=function(t,i,e,o,s,h){var d,p,b,l;return c(a,t)?(y[t]||(y[t]={}),i=typeof y[t].dom!="undefined"&&y[t].dom.tagName==="SELECT"&&t!=="administrative_area"&&y[t].dom.selectedIndex>=0?y[t].dom[y[t].dom.selectedIndex].text.replace(/<|>/g,""):i.replace(/<|>/g,""),d=y[t].value!=i,y[t].undo=y[t].value||"",y[t].value=i,y[t].dom&&e&&(y[t].dom.tagName==="INPUT"?n(y[t].dom).val(i):y[t].dom.tagName==="SELECT"&&t==="administrative_area"&&w.isDomestic()&&(p="",n(y[t].dom).find("option").each(function(){if(n(this).text().toUpperCase()===i)return p=n(this).val(),!1;for(var t in v)if(v[t]===i&&t===n(this).text().toUpperCase())return p=n(this).val(),!1}),n(y[t].dom).val(p))),b={sourceEvent:s,field:t,address:w,value:i,suppressAutoVerification:h||!1},d&&!o&&(f.unmarkAsValid(w),l=r.ui?n(".smarty-ui .smarty-tag.smarty-addr-"+k):undefined,r.target.indexOf("US")>=0&&r.target.indexOf("INTERNATIONAL")<0?w.isDomestic()?(l&&!l.is(":visible")&&l.show(),w.unaccept(),u("AddressChanged",b)):(l&&l.is(":visible")&&l.hide(),w.accept({address:w},!1)):r.target.indexOf("INTERNATIONAL")>=0&&r.target.indexOf("US")<0?(l&&!l.is(":visible")&&l.show(),w.unaccept(),u("AddressChanged",b)):r.target.indexOf("US")>=0&&r.target.indexOf("INTERNATIONAL")>=0&&(l&&!l.is(":visible")&&l.show(),w.unaccept(),u("AddressChanged",b))),!0):!1},b;this.form=e;this.match=l;this.verifyCount=0;this.lastField;this.active=!0;this.lastStreetInput="";this.load=function(t,u){var b,e,s,l,v,h,w,o,p;if(y={},k=u?u.replace(/[^a-z0-9_\-]/ig,""):ut(1,99999),typeof t=="object"){this.lastField=t[Object.keys(t)[Object.keys(t).length-1]];b=!0;for(e in t)if(t.hasOwnProperty(e)){if(!c(a,e))continue;typeof t[e]=="object"&&t[e].getBoundingClientRect().top>this.lastField.getBoundingClientRect().top&&(this.lastField=t[e]);try{s=n(t[e]);v=s.toArray();h=v?v.length==0:!1}catch(g){h=!0}l=h?t[e]||"":s.val()||"";y[e]={};y[e].value=l;y[e].undo=l;h||(r.debug&&(s.css("background","#FFFFCC"),s.attr("placeholder",e+":"+k)),y[e].dom=t[e]);w={address:this,field:e,value:l};n(i).mousedown(function(t){o=n(t.target)});n(i).mouseup(function(){o=null});n(i).keydown(function(t){p=n(t.target)});n(i).keyup(function(){p=null});h||n(t[e]).change(w,function(n){function t(){return o==null}function i(){return o[0].tagName=="B"}function r(n){return n.className=="smarty-suggestion smarty-active-suggestion"}function u(){return p==null}function e(){return!t()&&i()&&!r(o[0].parentElement)}function s(){return!t()&&!i()&&!r(o[0])}function h(){return t()&&u()&&n.data.address.autocompleteVisible()}(e()||s()||h())&&f.hideAutocomplete(n.data.address.id());n.data.address.set(n.data.field,n.target.value,!1,!1,n,!1)})}d="changed"}};this.load(t,o);this.set=function(n,t,i,r,u,f){var e,o;if(typeof n=="string"&&arguments.length>=2)return g(n,t,i,r,u,f);if(typeof n=="object"){e=!0;for(o in n)n.hasOwnProperty(o)&&(e=g(o,n[o],i,r,u,f)?e:!1);return e}};this.replaceWith=function(n,t,i){var h,o,c,s,e,f,u,r;typeof n=="array"&&n.length>0&&(n=n[0]);typeof n.candidate_index!="undefined"?(w.isFreeform()?(o=(n.addressee?n.addressee+", ":"")+(n.delivery_line_1?n.delivery_line_1+", ":"")+(n.delivery_line_2?n.delivery_line_2+", ":"")+(n.components.urbanization?n.components.urbanization+", ":"")+(n.last_line?n.last_line:""),h="freeform",y.address1&&(h="address1"),w.set(h,o,t,!0,i,!1)):(n.addressee&&w.set("organization",n.addressee,t,!0,i,!1),n.delivery_line_1&&w.set("address1",n.delivery_line_1,t,!0,i,!1),n.delivery_line_2?w.set("address2",n.delivery_line_2,t,!0,i,!1):w.set("address2","",t,!0,i,!1),n.components.city_name&&w.set("locality",n.components.city_name,t,!0,i,!1),n.components.state_abbreviation&&w.set("administrative_area",n.components.state_abbreviation,t,!0,i,!1),n.components.zipcode&&n.components.plus4_code&&w.set("postal_code",n.components.zipcode+"-"+n.components.plus4_code,t,!0,i,!1)),w.set("address3","",t,!0,i,!1),w.set("address4","",t,!0,i,!1),w.set("country","USA",t,!0,i,!1)):w.isFreeform()?(o=(n.organization?n.organization+", ":"")+(n.address1?n.address1:"")+(n.address2?", "+n.address2:"")+(n.address3?", "+n.address3:"")+(n.address4?", "+n.address4:"")+(n.address5?", "+n.address5:"")+(n.address6?", "+n.address6:"")+(n.address7?", "+n.address7:"")+(n.address8?", "+n.address8:"")+(n.address9?", "+n.address9:"")+(n.address10?", "+n.address10:"")+(n.address11?", "+n.address11:"")+(n.address12?", "+n.address12:""),c=n.components.country_iso_3?n.components.country_iso_3:"",w.set("freeform",o,t,!0,i,!1),w.set("country",c,t,!0,i,!1)):(n.organization&&w.set("organization",n.organization,t,!0,i,!1),n.components.locality&&w.set("locality",n.components.locality,t,!0,i,!1),n.components.administrative_area&&w.set("administrative_area",n.components.administrative_area,t,!0,i,!1),n.components.postal_code_short&&(s=n.components.postal_code_short,n.components.postal_code_extra&&(s=s+"-"+n.components.postal_code_extra),w.set("postal_code",s,t,!0,i,!1)),this.getDomFields().address4?(n.address1&&w.set("address1",n.address1,t,!0,i,!1),n.address2&&w.set("address2",n.address2,t,!0,i,!1),n.address3&&w.set("address3",n.address3,t,!0,i,!1),e="",e=b(e,n.address4,n.address5),e=b(e,n.address5,n.address6),e=b(e,n.address6,n.address7),e=b(e,n.address7,n.address8),e=b(e,n.address8,n.address9),e=b(e,n.address9,n.address10),e=b(e,n.address10,n.address11),e=b(e,n.address11,n.address12),w.set("address4",e,t,!0,i,!1)):this.getDomFields().address3?(n.address1&&w.set("address1",n.address1,t,!0,i,!1),n.address2&&w.set("address2",n.address2,t,!0,i,!1),f="",f=b(f,n.address3,n.address4),f=b(f,n.address4,n.address5),f=b(f,n.address5,n.address6),f=b(f,n.address6,n.address7),f=b(f,n.address7,n.address8),f=b(f,n.address8,n.address9),f=b(f,n.address9,n.address10),f=b(f,n.address10,n.address11),f=b(f,n.address11,n.address12),w.set("address3",f,t,!0,i,!1)):this.getDomFields().address2?(n.address1&&w.set("address1",n.address1,t,!0,i,!1),u="",u=b(u,n.address2,n.address3),u=b(u,n.address3,n.address4),u=b(u,n.address4,n.address5),u=b(u,n.address5,n.address6),u=b(u,n.address6,n.address7),u=b(u,n.address7,n.address8),u=b(u,n.address8,n.address9),u=b(u,n.address9,n.address10),u=b(u,n.address10,n.address11),u=b(u,n.address11,n.address12),w.set("address2",u,t,!0,i,!1)):this.getDomFields().address1&&(r="",r=b(r,n.address1,n.address2),r=b(r,n.address2,n.address3),r=b(r,n.address3,n.address4),r=b(r,n.address4,n.address5),r=b(r,n.address5,n.address6),r=b(r,n.address6,n.address7),r=b(r,n.address7,n.address8),r=b(r,n.address8,n.address9),r=b(r,n.address9,n.address10),r=b(r,n.address10,n.address11),r=b(r,n.address11,n.address12),w.set("address1",r,t,!0,i,!1)),n.components.country_iso_3&&w.set("country",n.components.country_iso_3,t,!0,i,!1))};b=function(n,t,i){return t&&i&&(n!=""&&(n+=", "),n+=t),n};this.corners=function(t){var i={},u,f,r,e;if(t)e=n(w.lastField),i=e.offset(),i.right=i.left+e.outerWidth(!1),i.bottom=i.top+e.outerHeight(!1);else for(u in y)if(y.hasOwnProperty(u)){if(!y[u].dom||!n(y[u].dom).is(":visible"))continue;f=y[u].dom;r=n(f).offset();r.right=r.left+n(f).outerWidth(!1);r.bottom=r.top+n(f).outerHeight(!1);i.top=i.top?Math.min(i.top,r.top):r.top;i.left=i.left?Math.min(i.left,r.left):r.left;i.right=i.right?Math.max(i.right,r.right):r.right;i.bottom=i.bottom?Math.max(i.bottom,r.bottom):r.bottom}return i.width=i.right-i.left,i.height=i.bottom-i.top,i};this.verify=function(t,i){var o,h;if(!w.enoughInput())return u("AddressWasMissingInput",{address:w,invoke:t,invokeFn:i,response:new p([])});f.disableFields(w);w.verifyCount++;var e=w.toRequestIntl(),l=r.token?"auth-id="+encodeURIComponent(r.key)+"&auth-token="+encodeURIComponent(r.token):"auth-id="+encodeURIComponent(r.key),c=r.requestUrlInternational;if(w.isDomestic()&&r.target.indexOf("US")>=0&&(c=r.requestUrlUS,e=w.toRequestUS()),o=w.countryISO(),typeof o=="undefined")return u("CountryWasInvalid",{address:w,response:new p([]),invoke:t,invokeFn:i});e.country=o;h="&agent="+encodeURIComponent("smartystreets (plugin:website@"+s.version+")");r.agent&&(h+="&agent="+encodeURIComponent(r.agent));n.ajax({url:c+"?"+l+h,contentType:"jsonp",data:e,timeout:r.timeout}).done(function(n){u("ResponseReceived",{address:w,response:new p(n),invoke:t,invokeFn:i})}).fail(function(n,r){u("RequestTimedOut",{address:w,status:r,invoke:t,invokeFn:i});w.verifyCount--});u("RequestSubmitted",{address:w})};this.enoughInput=function(){var n;if((y.administrative_area&&(n=y.administrative_area.value,y.administrative_area.dom!==undefined&&y.administrative_area.dom.length!==undefined&&(n=y.administrative_area.dom.selectedIndex<1?"":y.administrative_area.dom.options[y.administrative_area.dom.selectedIndex].text)),y.country&&!y.country.value)||y.freeform&&!y.freeform.value||y.address1&&!y.address1.value)return!1;if(!y.postal_code||!y.locality||!y.administrative_area||y.postal_code.value||y.locality.value||n.length>0){if(y.postal_code&&y.locality&&y.administrative_area&&!y.postal_code.value&&y.locality.value&&!(n.length>0)||y.postal_code&&y.locality&&y.administrative_area&&!y.postal_code.value&&!y.locality.value&&n.length>0)return!1;if(!y.postal_code||y.locality||y.administrative_area||y.postal_code.value){if(!y.postal_code&&y.locality&&y.administrative_area&&(!y.locality.value||!(n.length>0)))return!1}else return!1}else return!1;return!0};this.toRequestIntl=function(){var i={},t,u;y.hasOwnProperty("freeform")&&y.hasOwnProperty("address1")&&y.hasOwnProperty("locality")&&y.hasOwnProperty("administrative_area")&&y.hasOwnProperty("postal_code")&&(delete y.address1,delete y.locality,delete y.administrative_area,delete y.postal_code);for(t in y)y.hasOwnProperty(t)&&(u={},u[t]=y[t].dom&&y[t].dom.tagName==="SELECT"&&y[t].dom.selectedIndex>=0?y[t].dom[y[t].dom.selectedIndex].text:y[t].value.replace(/\r|\n/g," "),n.extend(i,u));return i.geocode=r.geocode,i};this.toRequestUS=function(){var n={};return y.address1&&y.address1.dom&&y.address1.dom.value?n.street=y.address1.dom.value:y.address1&&y.address1.value&&(n.street=y.address1.value),y.address2&&y.address2.dom&&y.address2.dom.value&&(n.street2=y.address2.dom.value),y.address3&&y.address3.dom&&y.address3.dom.value&&(n.street2=typeof n.street2=="undefined"?y.address3.dom.value:n.street2+=", "+y.address3.dom.value),y.address4&&y.address4.dom&&y.address4.dom.value&&(n.street2=typeof n.street2=="undefined"?y.address4.dom.value:n.street2+=", "+y.address4.dom.value),y.locality&&y.locality.dom&&(n.city=y.locality.dom.tagName==="SELECT"&&y.locality.dom.selectedIndex>=0?y.locality.dom[y.locality.dom.selectedIndex].text:y.locality.dom.value),y.administrative_area&&y.administrative_area.dom.value&&(n.state=y.administrative_area.dom.tagName==="SELECT"&&y.administrative_area.dom.selectedIndex>=0?y.administrative_area.dom[y.administrative_area.dom.selectedIndex].text:y.administrative_area.dom.value),y.postal_code&&y.postal_code.dom.value&&(n.zipcode=y.postal_code.dom.value),y.freeform&&y.freeform.dom.value&&(n.street=y.freeform.dom.value),typeof this.secondary!="undefined"&&(n.secondary=this.secondary,delete this.secondary),typeof this.address1!="undefined"&&(n.street=this.address1,delete this.address1,typeof this.zipcode!="undefined"&&(n.zipcode=this.zipcode,delete this.zipcode),delete n.freeform),n.match=this.match,n.candidates=r.candidates,n};this.toString=function(){if(y.freeform)return(y.freeform?y.freeform.value+" ":"")+(y.country?y.country.value:"");var n=(y.address1?y.address1.value+" ":"")+(y.address2?y.address2.value+" ":"")+(y.address3?y.address3.value+" ":"")+(y.address4?y.address4.value+" ":"")+(y.locality?y.locality.value+" ":"");return y.administrative_area&&(n+=nt(y.administrative_area)),n+=y.postal_code?y.postal_code.value+" ":"",y.country&&(n+=nt(y.country)),n};this.abort=function(n,t){return t=typeof t=="undefined"?!1:t,t||w.unaccept(),delete w.form.processing,h(n)};this.isFreeform=function(){return y.freeform};this.get=function(n){return y[n]?y[n].value:null};this.undo=function(n){n=typeof n=="undefined"?!0:n;for(var t in y)y.hasOwnProperty(t)&&this.set(t,y[t].undo,n,!1,undefined,!0)};this.accept=function(n,t){t=typeof t=="undefined"?!0:t;d="accepted";f.enableFields(w);t&&f.markAsValid(w);u("AddressAccepted",n)};this.unaccept=function(){return d="changed",f.unmarkAsValid(w),w};this.getUndoValue=function(n){return y[n].undo};this.status=function(){return d};this.getDomFields=function(){var r={},t,i;for(t in y)y.hasOwnProperty(t)&&(i={},i[t]=y[t].dom,n.extend(r,i));return r};this.hasDomFields=function(){for(var n in y)if(y.hasOwnProperty(n)&&y[n].dom)return!0};this.isDomestic=function(){var t="",i,r;return y.country&&y.country.dom&&(t=n(y.country.dom).val(),i=n(y.country.dom).children(":selected"),i.length>0&&i.index()>0&&(t=i.text())),t=t.toUpperCase().replace(/\.|\s|\(|\)|\\|\/|-/g,""),r=["","0","1","US","USA","USOFA","USOFAMERICA","AMERICAN","UNITEDSTATES","UNITEDSTATESAMERICA","UNITEDSTATESOFAMERICA","AMERICA","840","223","AMERICAUNITEDSTATES","AMERICAUS","AMERICAUSA","UNITEDSTATESUS","AMERICANSAMOA","AMERIKASÄ€MOA","AMERIKASAMOA","ASM","MICRONESIA","FEDERALSTATESOFMICRONESIA","FEDERATEDSTATESOFMICRONESIA","FSM","GUAM","GM","MARSHALLISLANDS","MHL","NORTHERNMARIANAISLANDS","NMP","PALAU","REPUBLICOFPALAU","BELAU","PLW","PUERTORICO","COMMONWEALTHOFPUERTORICO","PRI","UNITEDSTATESVIRGINISLANDS","VIR"],c(r,t)||y.country.value=="-1"};this.countryISO=function(){var t,i,u;return r.target.indexOf("INTERNATIONAL")>=0?(t=n(y.country.dom).val(),i=n(y.country.dom).children(":selected"),i.length>0&&(t=i.text()),t=t.toUpperCase().replace(/\.|\s|\(|\)|\\|\/|-|\'|\"|\,|Ê»|\&/g,""),u={AFGHANISTAN:"AFG",AFGHANESTAN:"AFG",ISLAMICREPUBLICOFAFGHANISTAN:"AFG",AFG:"AFG","Ã…LANDISLANDS":"ALA",ALANDISLANDS:"ALA",AALAND:"ALA",ALAND:"ALA",ALA:"ALA",ALBANIA:"ALB",REPUBLICOFALBANIA:"ALB","REPUBLIKAESHQIPÃ‹RISÃ‹":"ALB",REPUBLIKAESHQIPERISE:"ALB","SHQIPÃ‹RIA":"ALB",SHQIPERIA:"ALB",ALB:"ALB",ALGERIA:"DZA",PEOPLESDEMOCRATICREPUBLICOFALGERIA:"DZA",ALJAZAIR:"DZA",DZAYER:"DZA",DZA:"DZA",AMERICANSAMOA:"ASM","AMERIKASÄ€MOA":"ASM",AMERIKASAMOA:"ASM",ASM:"ASM",ANDORRA:"AND",AND:"AND",ANGOLA:"AGO",AGO:"AGO",ANGUILLA:"AIA",AIA:"AIA",ANTARCTICA:"ATA",ATA:"ATA",ANTIGUABARBUDA:"ATG",ANTIQUA:"ATG",BARBUDA:"ATG",ANTIQUAANDBARBUDA:"ATG",ATG:"ATG",ARGENTINA:"ARG",ARGENTINEREPUBLIC:"ARG",LAARGENTINA:"ARG",ARG:"ARG",ARMENIA:"ARM",HAYASTAN:"ARM",HAYASDAN:"ARM","HAÃASDAN":"ARM",HAIASDAN:"ARM",REPUBLICOFARMENIA:"ARM",ARM:"ARM",ARUBA:"ABW",ABW:"ABW",AUSTRALIA:"AUS",COMMONWEALTHOFAUSTRALIA:"AUS",AUS:"AUS",AUSTRIA:"AUT",OSTERREICH:"AUT",OESTERREICH:"AUT","Ã–STERREICH":"AUT",REPUBLICOFAUSTRIA:"AUT",AUT:"AUT",AZERBAIJAN:"AZE",REPUBLICOFAZERBAIJAN:"AZE","AZÆRBAYCANRESPUBLIKASI":"AZE",AZERBAIJANREPUBLIC:"AZE",AZARBAYCAN:"AZE","AZÆRBAYCAN":"AZE",AZERBAYCAN:"AZE",AZE:"AZE",BAHAMAS:"BHS",BHS:"BHS",BAHRAIN:"BHR",KINGDOMOFBAHRAIN:"BHR","MAMLAKATALBAá¸¤RAYN":"BHR",MAMLAKATALBAHRAYN:"BHR","ALBAá¸¤RAYN":"BHR",BHR:"BHR",BANGLADESH:"BGD",PEOPLESREPUBLICOFBANGLADESH:"BGD",BGD:"BGD",BARBADOS:"BRB",BRB:"BRB",BELARUS:"BLR",REPUBLICOFBELARUS:"BLR",GUDIJA:"BLR",BYELARUS:"BLR","BIELARUÅš":"BLR",BIELARUS:"BLR",BLR:"BLR",BELGIUM:"BEL",BELGIQUE:"BEL",BELGIEN:"BEL",BELGIE:"BEL","BELGIÃ‹":"BEL",BEL:"BEL",BELIZE:"BLZ",BLZ:"BLZ",BENIN:"BEN",REPUBLICOFBENIN:"BEN","RÃ‰PUBLIQUEDUBÃ‰NIN":"BEN",REPUBLIQUEDEBENIN:"BEN","BÃ‰NIN":"BEN",BEN:"BEN",BERMUDA:"BMU",BMU:"BMU",BHUTAN:"BTN",DRUKYUL:"BTN",BTN:"BTN",BOLIVIA:"BOL",BULIWYA:"BOL",WULIWYA:"BOL","VOLÃVIA":"BOL",VOLIVIA:"BOL",BOL:"BOL",BONAIRESINTEUSTATIUSANDSABA:"BES",BONAIRESINTEUSTATIUSSABA:"BES",BONAIRE:"BES",SINTEUSTATIUS:"BES",SABA:"BES",SINTEUSTATIUSANDSABA:"BES",BES:"BES",BOSNIAHERZEGOVINA:"BIH",BOSNIA:"BIH",HERZEGOVINA:"BIH",BOSNAIHERCEGOVINA:"BIH",BIH:"BIH",BOTSWANA:"BWA",REPUBLICOFBOTSWANA:"BWA",BWA:"BWA",BRAZIL:"BRA",FEDERATIVEREPUBLICOFBRAZIL:"BRA",BRASIL:"BRA",BRA:"BRA",BRITISHINDIANOCEANTERRITORY:"IOT",IOT:"IOT",BRITISHVIRGINISLANDS:"VGV",VGV:"VGV",BRUNEIDARUSSALAM:"BRN",NEGARABRUNEIDARUSSALAM:"BRN",BRN:"BRN",BULGARIA:"BGR",BULGARIYA:"BGR","BÄ‚LGARIJA":"BGR",BALGARIJA:"BGR",BGR:"BGR",BURKINAFASO:"BFA",BFA:"BFA",BURUNDI:"BDI",BDI:"BDI",CAMBODIA:"KHM",KINGDOMOFCAMBODIA:"KHM",ROYAUMEDUCAMBODGE:"KHM",KAMPUCHEA:"KHM",KHM:"KHM",CAMEROON:"CMR",CAMEROUN:"CMR",CMR:"CMR",CANADA:"CAN",CAN:"CAN",CAPEVERDEISLANDS:"CPV",CAPEVERDE:"CPV",CABOVERDE:"CPV",CPV:"CPV",CAYMANISLANDS:"CYM",CYM:"CYM",CENTRALAFRICANREPUBLIC:"CAF",UBANGISHARI:"CAF","RÃ‰PUBLIQUECENTRAFRICAINE":"CAF",REPUBLIQUECENTRAFRICAINE:"CAF",CENTRALAFRICANEMPIRE:"CAF","KÃ–DÃ–RÃ–SÃŠSETÃŽBÃŠAFRÃŽKA":"CAF",KODOROSESETIBEAFRIKA:"CAF",CAF:"CAF",CHAD:"TCD",TCHAD:"TCD","TÅ Ä€D":"TCD",TSAD:"TCD",TCD:"TCD",CHILE:"CHL",CHL:"CHL",CHINA:"CHN",PEOPLESREPUBLICOFCHINA:"CHN",ZHONGHUAPEOPLESREPUBLIC:"CHN",ZHONGGUO:"CHN",ZHONGHUA:"CHN","ZHÅŒNGGUÃ“":"CHN",CHN:"CHN",CHRISTMASISLAND:"CXR",CXR:"CXR",COCOSKEELINGISLANDS:"CCK",COCOSISALNDS:"CCK",COCOSISLAND:"CCK",KEELINGISLANDS:"CCK",KEELINGSISLAND:"CCK",CCK:"CCK",COLOMBIA:"COL","COLÃ“MBIA":"COL",COL:"COL",COMOROS:"COM",COMORES:"COM",KOMORI:"COM",JUZURALQAMAR:"COM",COM:"COM",CONGO:"COD","RÃ‰PUBLIQUEDÃ‰MOCRATIQUEDUCONGO":"COD",REPUBLIQUEDEMOCRATIQUEDUCONGO:"COD",THEDEMOCRATICREPUBLICOFCONGO:"COD",THEDEMOCRATICREPUBLICOFTHECONGO:"COD",REPUBLICOFCONGO:"COD",REPUBLICOFTHECONGO:"COD","RÃ‰PUBLIQUEDUCONGO":"COD",REPUBLIQUEDUCONGO:"COD",COD:"COD",COOKISLANDS:"COK",COK:"COK",COSTARICA:"CRI",CRI:"CRI",CROATIA:"HRV",HRVATSKA:"HRV","HRVAÅ KA":"HRV",HRVASKA:"HRV",HRV:"HRV",CUBA:"CUB",CUB:"CUB",CURACAO:"CUW",CUW:"CUW",CYPRUS:"CYP",REPUBLICOFCYPRUS:"CYP","ÎšÎŽÎ Î¡ÎŸÎ£":"CYP",KIBRIS:"CYP",CYP:"CYP",CZECHREPUBLIC:"CZE","ÄŒESKÃREPUBLIKA":"CZE",CESKAREPUBLIKA:"CZE","ÄŒESKO":"CZE",CESKO:"CZE",CZE:"CZE",DENMARK:"DNK",KINGDOMOFDENMARK:"DNK",KONGERIGETDANMARK:"DNK",DANMARK:"DNK",DNK:"DNK",DJIBOUTI:"DGI",REPUBLICOFDJIBOUTI:"DGI","RÃ‰PUBLIQUEDEDJIBOUTI":"DGI",REPUBLIQUEDEDJIBOUTI:"DGI",DGI:"DGI",DOMINICA:"DMA",DMA:"DMA",DOMINICANREPUBLIC:"DOM","REPÃšBLICADOMINICANA":"DOM",REPUBLICADOMINICANA:"DOM",DOM:"DOM",ECUADOR:"ECU",ECU:"ECU",EGYPT:"EGY",ARABREPUBLICOFEGYPT:"EGY","MIá¹¢R":"EGY",MISR:"EGY","MEá¹¢R":"EGY",MESR:"EGY","KÄªMI":"EGY",KIMI:"EGY",EGY:"EGY",ELSALVADOR:"SLV",SLV:"SLV",EQUITORIALGUINEA:"GNQ",GUINEAECUATORIAL:"GNQ",GNQ:"GNQ",ERITREA:"ERI",HAGEREERTRA:"ERI",ERI:"ERI",ESTONIA:"EST",EESTI:"EST",EESTIVABARIIK:"EST",ESTLAND:"EST",IGAUNIJA:"EST",VIRO:"EST",EST:"EST",ETHIOPIA:"ETH",FEDERALDEMOCRATICREPUBLICOFETHIOPIA:"ETH",ITYOPIYA:"ETH",ETH:"ETH",FALKLANDISLANDS:"FLK",ISLASMALVINAS:"FLK",FLK:"FLK",FAROEISLANDS:"FRO","FÃ˜ROYAR":"FRO",FOROYAR:"FRO","FÃ†RÃ˜ERNE":"FRO",FAEROERNE:"FRO",FRO:"FRO",FIJI:"FJI",FJI:"FJI",FINLAND:"FIN",REPUBLICOFFINLAND:"FIN",SUOMI:"FIN",SUOMENTASAVALTA:"FIN",FIN:"FIN",FRANCE:"FRA","RÃ‰PUBLIQUEFRANÃ‡AISE":"FRA",REPUBLIQUEFRANCAISE:"FRA",FRENCHREPUBLIC:"FRA",LAFRANCE:"FRA",FRA:"FRA",FRENCHGUIANA:"GUF",GUYANE:"GUF",GUF:"GUF",FRENCHPOLYNESIA:"PYF","POLYNÃ‰SIEFRANÃ‡AISE":"PYF",POLYNESIEFRANCAISE:"PYF",PYF:"PYF",FRENCHSOUTHERNTERRITORIES:"ATF","TERRESAUSTRALESETANTARCTIQUESFRANÃ‡AISES":"ATF",TERRESAUSTRALESETANTARCTIQUESFRANCAISES:"ATF",ATF:"ATF",GABON:"GAB",GAB:"GAB",GAMBIA:"GMB",GMB:"GMB",GEORGIA:"GEO",SAKARTVELO:"GEO",GEO:"GEO",GERMANY:"DEU",FEDERALREPUBLICOFGERMANY:"DEU",UNDESREPUBLIKDEUTSCHLAND:"DEU",DEUTSCHLAND:"DEU",BRD:"DEU",DEU:"DEU",GHANA:"GHA",GHA:"GHA",GIBRALTAR:"GIB",GIB:"GIB",GREECE:"GRC",ELLENICREPUBLIC:"GRC",ELLAS:"GRC","Î•Î›Î›Î†Î”Î‘":"GRC",ELLADA:"GRC",GRC:"GRC",GREENLAND:"GRL","GRÃ˜NLAND":"GRL",GRONLAND:"GRL",KALAALLITNUNAAT:"GRL",GRL:"GRL",GRENADA:"GRD",GRD:"GRD",GUADELOUPE:"GLP",GLP:"GLP",GUAM:"GUM",GUM:"GUM",GUATEMALA:"GTM",GTM:"GTM",GUERNSEY:"GGY",GGY:"GGY",GUINEA:"GIN",REPUBLICOFGUINEA:"GIN",GUINEE:"GIN",GIN:"GIN",GUINEABISSAU:"GNB",REPUBLICOFGUINEABISSAU:"GNB",GUINEBISSAU:"GNB",GNB:"GNB",GUYANA:"GUY",GUY:"GUY",HAITI:"HTI",HTI:"HTI",HOLYSEE:"VAT","STATUSCIVITATISVATICANÃ†":"VAT",THEVATICAN:"VAT",VATICANCITYSTATE:"VAT",VATICANCITY:"VAT",VATICAN:"VAT",VAT:"VAT",HONDURAS:"HND",HND:"HND",HONGKONG:"HKG",XIANGGANG:"HKG",HKG:"HKG",HUNGARY:"HUN",REPUBLICOFHUNGARY:"HUN","MAGYARORSZÃG":"HUN",MAGYARORSZAG:"HUN",HUN:"HUN",ICELAND:"ISL",REPUBLICOFICELAND:"ISL","ÃSLAND":"ISL",ISLAND:"ISL",LYOVELDIOISLAND:"ISL",ISL:"ISL",INDIA:"IND",REPUBLICOFINDIA:"IND","BHÄ€RAT":"IND",BHARAT:"IND","BHÄ€RATGAá¹†ARÄ€JYA":"IND",BHARATGANARAJYA:"IND",IND:"IND",INDONESIA:"IDN","INDONESIÃ‹":"IDN",INDONESIE:"IDN",IDN:"IDN",IRAN:"IRN",ISLAMICREPUBLICOFIRAN:"IRN",IRN:"IRN",IRAQ:"IRG",IRQ:"IRG",IRELAND:"IRL",REPUBLICOFIRELAND:"IRL","Ã‰IRE":"IRL",EIRE:"IRL",IRL:"IRL",ISLEOFMAN:"IMN",IMN:"IMN",ISRAEL:"ISR",STATEOFISRAEL:"ISR","×ž×“×™× ×ª ×™×©×¨××œ":"ISR",DAWLATALHAYAWANAT:"ISR",DAWLATISRAIL:"ISR",YISRAEL:"ISR",ISR:"ISR",ITALY:"ITA",REPUBBLICAITALIANA:"ITA",ITALIA:"ITA",ITA:"ITA",IVORYCOAST:"CIV","CÃ”TEDIVOIRE":"CIV",COTEDIVOIRE:"CIV","REPUBLICOFCÃ”TEDIVOIRE":"CIV",REPUBLICOFCOTEDIVOIRE:"CIV",CIV:"CIV",JAMAICA:"JAM",XAMAYCA:"JAM",JAM:"JAM",JAPAN:"JPN",NIPPON:"JPN",JPN:"JPN",JERSEY:"JEY",JEY:"JEY",JORDAN:"JOR",HASHEMITEKINGDOMOFJORDAN:"JOR",ALURDUNN:"JOR",JOR:"JOR",KAZAKHSTAN:"KAZ",REPUBLICOFKAZAKHSTAN:"KAZ","ÒšÐÐ—ÐÒšÐ¡Ð¢ÐÐÐ Ð•Ð¡ÐŸÐ£Ð‘Ð›Ð˜ÐšÐÐ¡Ð«":"KAZ","ÒšÐÐ—ÐÒšÐ¡Ð¢ÐÐQAZAQSTAN":"KAZ",KAZ:"KAZ",KENYA:"KEN",REPUBLICOFKENYA:"KEN",JAMHURIYAKENYA:"KEN",KEN:"KEN",KIRIBATI:"KIR",REPUBLICOFKIRIBATI:"KIR",KIR:"KIR",KOREAREPUBLICOF:"KOR",SOUTHKOREA:"KOR",REPUBLICOFKOREA:"KOR",DAEHANMINGUK:"KOR",KOR:"KOR",KUWAIT:"KWT",ALKUWAYT:"KWT",STATEOFKUWAIT:"KWT",KWT:"KWT",KYRGYZSTAN:"KGZ",KYRGYZRESPUBLIKASY:"KGZ",KGZ:"KGZ",LAOS:"LAO",LAO:"LAO",LATVIA:"LVA",LATVIJA:"LVA",LETTLAND:"LVA",LETLAND:"LVA",LVA:"LVA",LEBANON:"LBN",THELEBANESEREPUBLIC:"LBN",ALJUMHURIYYAALLUBNANIYYA:"LBN",LEBNAN:"LBN",LUBNAN:"LBN",LBN:"LBN",LESOTHO:"LSO",KINGDOMOFLESOTHO:"LSO",LSO:"LSO",LIBERIA:"LBR",LBR:"LBR",LIBYA:"LBY",LIBIYAH:"LBY",LBY:"LBY",LIECHTENSTEIN:"LIE",LIE:"LIE",LITHUANIA:"LTU",LIETUVA:"LTU","Ð›Ð˜Ð¢Ð’Ð":"LTU",LTU:"LTU",LUXEMBOURG:"LUX",LETZEBUERG:"LUX",LUX:"LUX",MACAO:"MAC",MACAU:"MAC",AOMEN:"MAC",MAC:"MAC",MACEDONIA:"MKD","ÐœÐÐšÐ•Ð”ÐžÐÐ˜ÐˆÐ":"MKD",MAKEDONIJA:"MKD",MKD:"MKD",MADAGASCAR:"MDG",MDG:"MDG",MALAWI:"MWI",REPUBLICOFMALAWI:"MWI",MWI:"MWI",MALAYSIA:"MYS",PERSEKUTUANMALAYSIA:"MYS",FEDERATIONOFMALAYSIA:"MYS",MYS:"MYS",MALDIVES:"MDV",DHIVEHIRAAJJE:"MDV",REPUBLICOFMALDIVES:"MDV",MDV:"MDV",MALI:"MLI",MLI:"MLI",MALTA:"MLT",MLT:"MLT",MARSHALLISLANDS:"MHL",MHL:"MHL",MARTINIQUE:"MTQ",MTQ:"MTQ",MAURITANIA:"MRT",ISLAMICREPUBLICOFMAURITANIA:"MRT",MURITANIYAH:"MRT",MRT:"MRT",MAURITIUS:"MUS",MUS:"MUS",MAYOTTE:"MYT",MYT:"MYT",MEXICO:"MEX",ESTADOSUNIDOSMEXICANOS:"MEX","MÃ‰XICO":"MEX",MEX:"MEX",MICRONESIA:"FSM",FEDERALSTATESOFMICRONESIA:"FSM",FSM:"FSM",MOLDOVA:"MDA",REPUBLICOFMOLDOVA:"MDA",REPUBLICAMOLDOVA:"MDA",MDA:"MDA",MONACO:"MCO",MCO:"MCO",MONGOLIA:"MNG",MONGOLULS:"MNG",MNG:"MNG",MONTENEGRO:"MNE",CRNAGORA:"MNE",MNE:"MNE",MONTSERRAT:"MSR",MSR:"MSR",MOROCCO:"MAR",KINGDOMOFMOROCCO:"MAR",ALMAMLAKAALMAGHRIBIYA:"MAR",MAGHREB:"MAR","ALMAÄ RIB":"MAR",ALMAGRIB:"MAR",MAR:"MAR",MOZAMBIQUE:"MOZ",MOCAMBIQUE:"MOZ",MOZ:"MOZ",MYANMAR:"MMR",REPUBLICOFTHEUNIONOFMYANMAR:"MMR",MYANMANAINGNGANDAW:"MMR",MYANMA:"MMR",BURMA:"MMR",MMR:"MMR",NAMIBIA:"NAM",NAM:"NAM",NAURU:"NRU",NRU:"NRU",NEPAL:"NPL","NÄ’PÄ€LA":"NPL",NEPALA:"NPL",NPL:"NPL",NETHERLANDSANTILLES:"ANT",NEDERLANDSEANTILLEN:"ANT",ANT:"ANT",NETHERLANDS:"NLD",THENETHERLANDS:"NLD",HOLLAND:"NLD",NEDERLAND:"NLD",NLD:"NLD",NEWCALEDONIA:"NCL",CALEDONIA:"NCL","NOUVELLECALÃ‰DONIE":"NCL",NOUVELLECALEDONIE:"NCL",NCL:"NCL",NEWZEALAND:"NZL",AOTEAROA:"NZL",NZL:"NZL",NICARAGUA:"NIC",NIC:"NIC",NIGER:"NER",NER:"NER",NIGERIA:"NGA",NGA:"NGA",NIUE:"NIU",NIU:"NIU",NORFOLKISLAND:"NFK",NFK:"NFK",NORTHKOREA:"PRK",DEMOCRATICPEOPLESREPUBLICOFKOREA:"PRK",CHOSONMINJUJUUIINMINKONGHWAGUK:"PRK",PRK:"PRK",NORTHERNMARIANAISLANDS:"NMP",NMP:"NMP",NORWAY:"NOR",NORGE:"NOR",NOREG:"NOR",NOR:"NOR",OMAN:"OMN","SALá¹¬ANATUMÄ€N":"OMN",SALTANATUMAN:"OMN",OMN:"OMN",PAKISTAN:"PAK",ISLAMICREPUBLICOFPAKISTAN:"PAK",PAK:"PAK",PALAU:"PLW",REPUBLICOFPALAU:"PLW",BELAU:"PLW",PLW:"PLW",PALESTINIANTERRITORY:"PSE",FILASTIN:"PSE",PSE:"PSE",PANAMA:"PAN",PAN:"PAN",PAPUANEWGUINEA:"PNG",PAPUANIUGINI:"PNG",PNG:"PNG",PARAGUAY:"PRY",PRY:"PRY",PERU:"PER",REPUBLICOFPERU:"PER",PERUVIANREPUBLIC:"PER","REPÃšBLICADELPERÃš":"PER",REPuBLICADELPERu:"PER","PERÃš":"PER",PER:"PER",PHILIPPINES:"PHL",REPUBLICOFTHEPHILIPPINES:"PHL","REPÃšBLIKANGPILIPINAS":"PHL",REPUBLIKANGPILIPINAS:"PHL",PILIPINAS:"PHL",FILIPINAS:"PHL",PHL:"PHL",PITCAIRNISLAND:"PCN",PCN:"PCN",POLAND:"POL",REPUBLICOFPOLAND:"POL",RZECZPOSPOLITAPOLSKA:"POL",POLSKA:"POL",POL:"POL",PORTUGAL:"PRT",PORTUGUESEREPUBLIC:"PRT",LUSITANIA:"PRT",PRT:"PRT",PUERTORICO:"PRI",COMMONWEALTHOFPUERTORICO:"PRI",PRI:"PRI",QATAR:"QAT","DAWLATQAá¹¬AR":"QAT",DAWLATQATAR:"QAT","QAá¹¬AR":"QAT",QAT:"QAT","RÃ‰UNION":"REU",REUNIONISLAND:"REU","ILEDELARÃ‰UNION":"REU",ILEDELAREUNION:"REU",REU:"REU",ROMANIA:"ROU","ROMÃ‚NIA":"ROU",ROU:"ROU",RUSSIA:"RUS",RUSSIANFEDERATION:"RUS","Ð ÐžÐ¡Ð¡Ð˜Ð¯":"RUS",ROSSIYA:"RUS",RUS:"RUS",RWANDA:"RWA",REPUBLICOFRWANDA:"RWA",RWA:"RWA","SAINTBARTHÃ‰LEMY":"BLM",SAINTBARTHELEMY:"BLM",BLM:"BLM",SAINTHELENA:"SHN",SHN:"SHN",SAINTKITTSANDNEVIS:"KNA",SAINTKITTSNEVIS:"KNA",FEDERATIONOFSAINTKITTSANDNEVIS:"KNA",FEDERATIONOFSAINTKITTSNEVIS:"KNA",SAINTCHRISTOPHERANDNEVIS:"KNA",SAINTCHRISTOPHERNEVIS:"KNA",KNA:"KNA",SAINTLUCIA:"LCA",LCA:"LCA",SAINTMARTIN:"MAF",MAF:"MAF",SAINTPIERREANDMIQUELON:"SPM",SAINTPIERREMIQUELON:"SPM",SPM:"SPM",SAINTVINCENTANDTHEGRENADINES:"VCT",SAINTVINCENTTHEGRENADINES:"VCT",VCT:"VCT",SAMOA:"WSM",WSM:"WSM",SANMARINO:"SMR",SMR:"SMR",SAOTOMEANDPRINCIPE:"STP",SAOTOMEPRINCIPE:"STP","SÃƒOTOMÃ‰ANDPRÃNCIPE":"STP","SÃƒOTOMÃ‰PRÃNCIPE":"STP","DEMOCRATICREPUBLICOFSÃƒOTOMÃ‰ANDPRÃNCIPE":"STP",DEMOCRATICREPUBLICOFSAOTOMEANDPRINCIPE:"STP","DEMOCRATICREPUBLICOFSÃƒOTOMÃ‰PRÃNCIPE":"STP",DEMOCRATICREPUBLICOFSAOTOMEPRINCIPE:"STP",STP:"STP",SAUDIARABIA:"SAU",KINGDOMOFSAUDIARABIA:"SAU",SAUDIA:"SAU",ALARABIYAHASSUUDIYAH:"SAU",SAU:"SAU",SENEGAL:"SEN",SEN:"SEN",SERBIA:"SRB",REPUBLICOFSERVIA:"SRB",YUGOSLAVIA:"SRB",SRBIJA:"SRB",SRB:"SRB",SEYCHELLES:"SYC",SYC:"SYC",SIERRALEONE:"SLE",SLE:"SLE",SINGAPORE:"SGP",REPUBLICOFSINGAPORE:"SGP",SINGAPURA:"SGP",SGP:"SGP",SINTMAARTENDUTCH:"SXM",SINTMAARTEN:"SXM",SXM:"SXM",SLOVAKIA:"SVK",SLOVAKREPUBLIC:"SVK",SLOVENSKO:"SVK",SVK:"SVK",SLOVENIA:"SVN",SLOVENIJA:"SVN",SVN:"SVN",SOLOMONISLANDS:"SLB",SLB:"SLB",SOMALIA:"SOM",SOM:"SOM",SOUTHAFRICA:"ZAF",SUIDAFRIKA:"ZAF",ZAF:"ZAF",SOUTHGEORGIAANDTHESOUTHSANDWICHISLANDS:"SGS",SOUTHGEORGIATHESOUTHSANDWICHISLANDS:"SGS",SGS:"SGS",SOUTHSUDAN:"SSD",SSD:"SSD",SPAIN:"ESP","ESPAÃ‘A":"ESP",ESPANA:"ESP",ESP:"ESP",SRILANKA:"LKA",CEYLON:"LKA",DEMOCRATICSOCIALISTREPUBLICOFSRILANKA:"LKA",LKA:"LKA",SUDAN:"SDN",REPUBLICOFTHESUDAN:"SDN",THESUDAN:"SDN",SDN:"SDN",SURINAME:"SUR",DUTCHGUIANA:"SUR",REPUBLICOFSURINAME:"SUR",SUR:"SUR",SVALBARDANDJANMAYENISLANDS:"SJM",SVALBARDJANMAYENISLANDS:"SJM",SJM:"SJM",SWAZILAND:"SWZ",SWZ:"SWZ",SWEDEN:"SWE",SVERIGE:"SWE",KINGDOMOFSWEDEN:"SWE",SWE:"SWE",SWITZERLAND:"CHE",SWISSCONFEDERATION:"CHE",SCHWEIZ:"CHE",SUISSE:"CHE",SVIZZERA:"CHE",SVIZRA:"CHE",CHE:"CHE",SYRIA:"SYR","SÅªRIYÄ€":"SYR",SURIYA:"SYR","SÅªRÄªYAH":"SYR",SURIYAH:"SYR",SYR:"SYR",TAIWAN:"TWN",REPUBLICOFCHINA:"TWN",FORMOSA:"TWN",TAIPEI:"TWN","ä¸­è¯æ°‘åœ‹":"TWN","è‡ºç£":"TWN",TWN:"TWN",TAJIKISTAN:"TJK",TJK:"TJK",TANZANIA:"TZA",UNITEDREPUBLICOFTANZANIA:"TZA",TANGANYIKAANDZANZIBAR:"TZA",TANGANYIKAZANZIBAR:"TZA",TZA:"TZA",THAILAND:"THA",SIAM:"THA",KINGDOMOFTHAILAND:"THA","à¸›à¸£à¸°à¹€à¸—à¸¨à¹„à¸—à¸¢":"THA",PRATHETTHAI:"THA",THA:"THA",TIMORLESTE:"TLP",TIMOR:"TLP",TLP:"TLP",TOGO:"TGO",TOGOLESEREPUBLIC:"TGO","RÃ‰PUBLIQUETOGOLAISE":"TGO",REPUBLIQUETOGOLAISE:"TGO",TGO:"TGO",TOKELAU:"TKL",TKL:"TKL",TONGA:"TON",TON:"TON",TRINIDADANDTOBAGO:"TTO",TRINIDADTOBAGO:"TTO",REPUBLICOFTRINIDADANDTOBAGO:"TTO",REPUBLICOFTRINIDADTOBAGO:"TTO",TRINBAGO:"TTO",TRINIDAD:"TTO",TOBAGO:"TTO",TTO:"TTO",TUNISIA:"TUN",REPUBLICOFTUNISIA:"TUN","Ø§Ù„Ø¬Ù…Ù‡ÙˆØ±ÙŠØ© Ø§Ù„ØªÙˆÙ†Ø³ÙŠØ©":"TUN","TÅªNIS":"TUN",TUN:"TUN",TURKEY:"TUR","TÃœRKIYE":"TUR",TURKIYE:"TUR",REPUBLICOFTURKEY:"TUR",TUR:"TUR",TURKMENISTAN:"TKM",TKM:"TKM",TURKSANDCAICOSISLANDS:"TCA",TURKSCAICOSISLANDS:"TCA",TCA:"TCA",TUVALU:"TUV",ELLICEISLANDS:"TUV",TUV:"TUV",UGANDA:"UGA",REPUBLICOFUGANDA:"UGA",UGA:"UGA",UKRAINE:"UKR",UKRAINA:"UKR","Ð£ÐšÐ ÐÐ‡ÐÐ":"UKR","YÐšÐ ÐIÐÐ":"UKR",UKR:"UKR",UNITEDARABEMIRATES:"ARE","DAWLATALIMÄ€RÄ€TALARABÄªYAHALMUTTAá¸¤IDAH":"ARE",DAWLATALIMARATALARABIYAHALMUTTAHIDAH:"ARE",UAE:"ARE",EMIRATES:"ARE",ARE:"ARE",UNITEDKINGDOM:"GBR",GREATBRITAIN:"GBR",ENGLAND:"GBR",UK:"GBR",WALES:"GBR",SCOTLAND:"GBR",NORTHERNIRELAND:"GBR",BRITAIN:"GBR",GBR:"GBR",UNITEDSTATESMINOROUTLYINGISLANDS:"UMI",UMI:"UMI",UNITEDSTATESVIRGINISLANDS:"VIR",VIR:"VIR",UNITEDSTATES:"USA",THEUNITEDSTATES:"USA",UNITEDSTATESOFAMERICA:"USA",AMERICA:"USA",THECOLONIES:"USA",USA:"USA",US:"USA",URUGUAY:"URY",EASTERNREPUBLICOFURUGUAY:"URY","REPÃšBLICAORIENTALDELURUGUAY":"URY",REPUBLICAORIENTALDELURUGUAY:"URY",URY:"URY",UZBEKISTAN:"UZB",REPUBLICOFUZBEKISTAN:"UZB",OZBEKISTONRESPUBLIKASI:"UZB",UZB:"UZB",VANUATU:"VUT",VUT:"VUT",VENEZUELA:"VEN",VEN:"VEN",VIETNAM:"VNM",SOCIALISTREPUBLICOFVIETNAM:"VNM","VIá»†TNAM":"VNM",VNM:"VNM",WALLISANDFUTUNAISLANDS:"WLF",WALLISFUTUNAISLANDS:"WLF",WALLISETFUTUNA:"WLF",WLF:"WLF",WESTERNSAHARA:"ESH","Aá¹¢á¹¢Aá¸¤RÄ€ALGHARBÄªYAH":"ESH",ASSAHRAALGHARBIYAH:"ESH",ESH:"ESH",YEMEN:"YEM",REPUBLICOFYEMEN:"YEM",ALYAMAN:"YEM",YEM:"YEM",ZAMBIA:"ZMB",NORTHERNRHODESIA:"ZMB",REPUBLICOFZAMBIA:"ZMB",ZMB:"ZMB",ZIMBABWE:"ZWE",RHODESIA:"ZWE",REPUBLICOFRHODESIA:"ZWE",REPUBLICOFZIMBABWE:"ZWE",SOUTHERNRHODESIA:"ZWE",ZWE:"ZWE"},u[t]):"USA"};this.autocompleteVisible=function(){return r.ui&&r.autocomplete&&n(".smarty-autocomplete.smarty-addr-"+w.id()).is(":visible")};this.id=function(){return k}}function rt(n){this.addresses=[];this.dom=n;this.activeAddressesNotAccepted=function(){for(var n,i=[],t=0;t<this.addresses.length;t++)n=this.addresses[t],n.status()!="accepted"&&n.active&&i.push(n);return i};this.allActiveAddressesAccepted=function(){return this.activeAddressesNotAccepted().length==0}}function p(n){var t=function(t){if(t>=n.length||t<0)if(n.length==0)throw new Error("Candidate index is out of bounds (no candidates returned; requested "+t+")");else throw new Error("Candidate index is out of bounds ("+n.length+" candidates; indicies 0 through "+(n.length-1)+" available; requested "+t+")");},i=function(n){return typeof n=="undefined"?0:n};this.raw=n;this.length=n.length;this.isValid=function(){return this.length==1&&(this.raw[0].analysis.verification_status=="Verified"||typeof this.raw[0].analysis.dpv_match_code!="undefined"&&this.raw[0].analysis.dpv_match_code!="N")};this.isInvalid=function(){return this.length==0||this.length==1&&(this.raw[0].analysis.verification_status=="None"||this.raw[0].analysis.verification_status=="Partial"||this.raw[0].analysis.dpv_match_code=="N"||typeof this.raw[0].analysis.verification_status=="undefined"&&typeof this.raw[0].analysis.dpv_match_code=="undefined")};this.isAmbiguous=function(){return this.length>1};this.isMissingSecondary=function(n){return n=i(n),t(n),this.raw[n].analysis.dpv_footnotes&&this.raw[n].analysis.dpv_footnotes.indexOf("N1")>-1||this.raw[n].analysis.dpv_footnotes&&this.raw[n].analysis.dpv_footnotes.indexOf("R1")>-1||this.raw[n].analysis.footnotes&&this.raw[n].analysis.footnotes.indexOf("H#")>-1}}function k(n,t){var i=s.events[n.type];i&&i(n,t)}function c(n,t){for(var i in n)if(n.hasOwnProperty(i)&&n[i]===t)return!0;return!1}function ut(n,t){return Math.floor(Math.random()*(t-n+1))+n}function u(t,r){n(i).triggerHandler(t,r)}function ft(t){n(i).on(t,k)}function h(n){return n?(n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),n.cancelBubble=!0,!1):!1}var s,f=new nt,w="3.2.31",e={candidates:3,autocomplete:10,requestUrlInternational:"https://international-street.api.smartystreets.com/verify",requestUrlUS:"https://us-street.api.smartystreets.com/street-address",timeout:5e3,speed:"medium",ambiguousMessage:"Matched multiple addresses.<br>which did you mean?",invalidMessage:"You entered an unknown address:",invalidCountryMessage:"Unknown country",missingSecondaryMessage:"You forgot your apt/suite number or entered an unknown apt/suite number",certifyMessage:"Use as it is",missingInputMessage:"You didn't enter enough information",changeMessage:"Go back",noSuggestionsMessage:"No suggestions",fieldSelector:"input[type=text], input:not([type]), textarea, select",submitSelector:"[type=submit], [type=image], [type=button]:last, button:last",target:"US"},r={},o=[],g="body",b=0,a=["freeform","address1","address2","address3","address4","organization","locality","administrative_area","postal_code","country","match"],d;n.LiveAddress=function(t){return n(g).LiveAddress(t)};n.fn.LiveAddress=function(h){var c=n.fn.jquery.split("."),l;if(c.length>=2){if(c[0]<1||c[0]==1&&c[1]<5)return console.log("jQuery version "+n.fn.jquery+" found, but LiveAddress requires jQuery version 1.5 or higher. Aborting."),!1}else return!1;if(h.debug&&console.log("LiveAddress API jQuery Plugin version "+w+" (Debug mode)"),i.readyState==="complete")t.loaded=!0;else n(t).on("load",function(){t.loaded=!0});typeof h=="string"?r={key:h}:typeof h=="object"&&(r=h);r.candidates=r.candidates||e.candidates;r.ui=typeof r.ui=="undefined"?!0:r.ui;r.autoVerify=r.autoVerify!==!0&&r.autoVerify!==!1?!0:r.autoVerify;r.submitVerify=typeof r.submitVerify=="undefined"?!0:r.submitVerify;r.timeout=r.timeout||e.timeout;r.ambiguousMessage=r.ambiguousMessage||e.ambiguousMessage;r.invalidMessage=r.invalidMessage||e.invalidMessage;r.invalidCountryMessage=r.invalidCountryMessage||e.invalidCountryMessage;r.missingSecondaryMessage=r.missingSecondaryMessage||e.missingSecondaryMessage;r.certifyMessage=r.certifyMessage||e.certifyMessage;r.missingInputMessage=r.missingInputMessage||e.missingInputMessage;r.changeMessage=r.changeMessage||e.changeMessage;r.noSuggestionsMessage=r.noSuggestionsMessage||e.noSuggestionsMessage;r.fieldSelector=r.fieldSelector||e.fieldSelector;r.submitSelector=r.submitSelector||e.submitSelector;r.requestUrlInternational=r.requestUrlInternational||e.requestUrlInternational;r.requestUrlUS=r.requestUrlUS||e.requestUrlUS;r.autocomplete=typeof r.autocomplete=="undefined"?e.autocomplete:r.autocomplete;r.cityFilter=typeof r.cityFilter=="undefined"?"":r.cityFilter;r.stateFilter=typeof r.stateFilter=="undefined"?"":r.stateFilter;r.cityStatePreference=typeof r.cityStatePreference=="undefined"?"":r.cityStatePreference;r.geolocate=typeof r.geolocate=="undefined"?!0:r.geolocate;r.geolocatePrecision=typeof r.geolocatePrecision=="undefined"?"city":r.geolocatePrecision;r.waitForStreet=typeof r.waitForStreet=="undefined"?!1:r.waitForStreet;r.verifySecondary=typeof r.verifySecondary=="undefined"?!1:r.verifySecondary;r.geocode=typeof r.geocode=="undefined"?!1:r.geocode;r.enforceVerification=typeof r.enforceVerification=="undefined"?!1:r.enforceVerification;r.agent=typeof r.agent=="undefined"?"":r.agent;typeof r.autocomplete=="number"&&r.autocomplete<1&&(r.autocomplete=!1);r.target&&typeof r.target=="string"||(r.target=e.target);r.target=r.target.toUpperCase().replace(/\s+/g,"").split("|");s={events:{FieldsMapped:function(i,u){r.debug&&console.log("EVENT:","FieldsMapped","(Fields mapped to their respective addresses)",i,u);t.loaded?f.postMappingOperations():n(f.postMappingOperations)},MapInitialized:function(n,t){r.debug&&console.log("EVENT:","MapInitialized","(Mapped fields have been wired up to the window"+(r.ui?", document, and UI":" and document")+")",n,t)},AutocompleteInvoked:function(n,t){r.debug&&console.log("EVENT:","AutocompleteInvoked","(A request is about to be sent to the autocomplete service)",n,t);f.requestAutocomplete(n,t)},AutocompleteReceived:function(n,t){r.debug&&console.log("EVENT:","AutocompleteReceived","(A response has just been received from the autocomplete service)",n,t);f.showAutocomplete(n,t)},AutocompleteUsed:function(n,t){r.debug&&console.log("EVENT:","AutocompleteUsed","(A suggested address was used from the autocomplete service)",n,t)},AddressChanged:function(n,t){r.debug&&console.log("EVENT:","AddressChanged","(Address changed)",n,t);r.autoVerify&&t.address.enoughInput()&&(t.address.verifyCount==0||t.address.isFreeform()||t.address.usedAutocomplete)&&!t.suppressAutoVerification&&t.address.hasDomFields()&&t.address.active&&!t.address.autocompleteVisible()&&t.address.form&&!t.address.form.processing&&u("VerificationInvoked",{address:t.address});t.address.usedAutocomplete=!1},VerificationInvoked:function(n,t){if(r.debug&&console.log("EVENT:","VerificationInvoked","(Address verification invoked)",n,t),!t.address||t.address&&t.address.form&&t.address.form.processing){r.debug&&console.log("NOTICE: VerificationInvoked event handling aborted. Address is missing or an address in the same form is already processing.");return}if(t.address.status()!="accepted"||t.verifyAccepted)t.address.form&&(t.address.form.processing=!0);else return r.debug&&console.log("NOTICE: VerificationInvoked raised on an accepted or un-changed address. Nothing to do."),u("Completed",t);t.address.verify(t.invoke,t.invokeFn)},RequestSubmitted:function(n,t){r.debug&&console.log("EVENT:","RequestSubmitted","(Request submitted to server)",n,t);f.showLoader(t.address)},ResponseReceived:function(n,t){r.debug&&console.log("EVENT:","ResponseReceived","(Response received from server, but has not been inspected)",n,t);f.hideLoader(t.address);typeof t.invoke=="function"&&t.invoke(t.response);t.response.isInvalid()?u("AddressWasInvalid",t):t.response.isAmbiguous()?u("AddressWasAmbiguous",t):r.verifySecondary&&t.response.isMissingSecondary()?u("AddressWasMissingSecondary",t):t.response.isValid()&&u("AddressWasValid",t)},RequestTimedOut:function(n,t){r.debug&&console.log("EVENT:","RequestTimedOut","(Request timed out)",n,t);t.address.form&&delete t.address.form.processing;t.invoke&&t.address.accept(t,!1);f.enableFields(t.address);f.hideLoader(t.address)},AddressWasValid:function(n,t){r.debug&&console.log("EVENT:","AddressWasValid","(Response indicates input address was valid)",n,t);var i=t.address,u=t.response;t.response.chosen=u.raw[0];i.replaceWith(u.raw[0],!0,n);i.accept(t)},AddressWasAmbiguous:function(n,t){r.debug&&console.log("EVENT:","AddressWasAmbiguous","(Response indiciates input address was ambiguous)",n,t);f.showAmbiguous(t)},AddressWasInvalid:function(n,t){r.debug&&console.log("EVENT:","AddressWasInvalid","(Response indicates input address was invalid)",n,t);f.showInvalid(t)},CountryWasInvalid:function(n,t){r.debug&&console.log("EVENT:","CountryWasInvalid","(Pre-verification check indicates that the country was invalid)",n,t);f.showInvalidCountry(t)},AddressWasMissingSecondary:function(n,t){r.debug&&console.log("EVENT:","AddressWasMissingSecondary","(Response indicates input address was missing secondary",n,t);f.showMissingSecondary(t)},AddressWasMissingInput:function(n,t){r.debug&&console.log("EVENT:","AddressWasMissingInput","(Pre-verification check indicates that there was not enough input)",n,t);f.showMissingInput(t)},AddedSecondary:function(n,t){r.debug&&console.log("EVENT:","AddedSecondary","(User entered a secondary number to attempt revalidation)",n,t);t.address.verify(t.invoke,t.invokeFn)},OriginalInputSelected:function(n,t){r.debug&&console.log("EVENT:","OriginalInputSelected","(User chose to use original input)",n,t);t.address.accept(t,!1)},UsedSuggestedAddress:function(n,t){r.debug&&console.log("EVENT:","UsedSuggestedAddress","(User chose to a suggested address)",n,t);t.response.chosen=t.chosenCandidate;t.address.replaceWith(t.chosenCandidate,!0,n);t.address.accept(t)},InvalidAddressRejected:function(n,t){r.debug&&console.log("EVENT:","InvalidAddressRejected","(User chose to correct an invalid address)",n,t);t.address.form&&delete t.address.form.processing;u("Completed",t)},AddressAccepted:function(n,t){r.debug&&console.log("EVENT:","AddressAccepted","(Address marked accepted)",n,t);t||(t={});t.address&&t.address.form&&delete t.address.form.processing;t.invoke&&t.invokeFn&&d(t.invoke,t.invokeFn);u("Completed",t)},Completed:function(n,t){r.debug&&console.log("EVENT:","Completed","(All done)",n,t);t.address&&(f.enableFields(t.address),t.address.form&&delete t.address.form.processing)}},on:function(n,t){if(!this.events[n]||typeof t!="function")return!1;var i=this.events[n];this.events[n]=function(n,r){t(n,r,i)}},mapFields:function(t){var i=function(n){return typeof n=="object"?f.mapFields(n):n||typeof r.addresses!="object"?!1:f.mapFields(r.addresses)};n.isReady?i(t):n(function(){i(t)})},makeAddress:function(n){return typeof n!="object"?s.getMappedAddressByID(n)||new y({address1:n}):new y(n)},verify:function(n,t){var i=s.makeAddress(n);u("VerificationInvoked",{address:i,verifyAccepted:!0,invoke:t})},getMappedAddresses:function(){for(var t,i=[],n=0;n<o.length;n++)for(t=0;t<o[n].addresses.length;t++)i.push(o[n].addresses[t]);return i},getMappedAddressByID:function(n){for(var i,t=0;t<o.length;t++)for(i=0;i<o[t].addresses.length;i++)if(o[t].addresses[i].id()==n)return o[t].addresses[i]},setKey:function(n){r.key=n},setCityFilter:function(n){r.cityFilter=n},setStateFilter:function(n){r.stateFilter=n},setCityStatePreference:function(n){r.cityStatePreference=n},activate:function(n){var t=s.getMappedAddressByID(n);t&&(t.active=!0,f.showSmartyUI(n))},deactivate:function(n){if(!n)return f.clean();var t=s.getMappedAddressByID(n);t&&(t.active=!1,t.verifyCount=0,t.unaccept(),f.hideSmartyUI(n))},autoVerify:function(n){var t,i;if(typeof n=="undefined")return r.autoVerify;for(n===!1?r.autoVerify=!1:n===!0&&(r.autoVerify=!0),t=0;t<o.length;t++)for(i=0;i<o[t].addresses.length;i++)o[t].addresses[i].verifyCount=0},version:w};for(l in s.events)s.events.hasOwnProperty(l)&&(n(i).off(l,k),ft(l));return r.target.indexOf("US")>=0||r.target.indexOf("INTERNATIONAL")>=0?s.mapFields():r.debug&&console.log('Proper target not set in configuration. Please use "US" or "INTERNATIONAL".'),s};var v={ALABAMA:"AL",ALASKA:"AK","AMERICAN SAMOA":"AS",ARIZONA:"AZ",ARKANSAS:"AR",CALIFORNIA:"CA",COLORADO:"CO",CONNECTICUT:"CT",DELAWARE:"DE","DISTRICT OF COLUMBIA":"DC","FEDERATED STATES OF MICRONESIA":"FM",FLORIDA:"FL",GEORGIA:"GA",GUAM:"GU",HAWAII:"HI",IDAHO:"ID",ILLINOIS:"IL",INDIANA:"IN",IOWA:"IA",KANSAS:"KS",KENTUCKY:"KY",LOUISIANA:"LA",MAINE:"ME","MARSHALL ISLANDS":"MH",MARYLAND:"MD",MASSACHUSETTS:"MA",MICHIGAN:"MI",MINNESOTA:"MN",MISSISSIPPI:"MS",MISSOURI:"MO",MONTANA:"MT",NEBRASKA:"NE",NEVADA:"NV","NEW HAMPSHIRE":"NH","NEW JERSEY":"NJ","NEW MEXICO":"NM","NEW YORK":"NY","NORTH CAROLINA":"NC","NORTH DAKOTA":"ND","NORTHERN MARIANA ISLANDS":"MP",OHIO:"OH",OKLAHOMA:"OK",OREGON:"OR",PALAU:"PW",PENNSYLVANIA:"PA","PUERTO RICO":"PR","RHODE ISLAND":"RI","SOUTH CAROLINA":"SC","SOUTH DAKOTA":"SD",TENNESSEE:"TN",TEXAS:"TX",UTAH:"UT",VERMONT:"VT","VIRGIN ISLANDS":"VI",VIRGINIA:"VA",WASHINGTON:"WA","WEST VIRGINIA":"WV",WISCONSIN:"WI",WYOMING:"WY","ARMED FORCES EUROPE, THE MIDDLE EAST, AND CANADA":"AE","ARMED FORCES CANADA":"AE","ARMED FORCES THE MIDDLE EAST":"AE","ARMED FORCES EUROPE":"AE","ARMED FORCES PACIFIC":"AP","ARMED FORCES AMERICAS (EXCEPT CANADA)":"AA","ARMED FORCES AMERICAS":"AA"},tt=["ALABAMA","ALASKA","AMERICAN SAMOA","ARIZONA","ARKANSAS","CALIFORNIA","COLORADO","CONNECTICUT","DELAWARE","DISTRICT OF COLUMBIA","FEDERATED STATES OF MICRONESIA","FLORIDA","GEORGIA","GUAM","HAWAII","IDAHO","ILLINOIS","INDIANA","IOWA","KANSAS","KENTUCKY","LOUISIANA","MAINE","MARSHALL ISLANDS","MARYLAND","MASSACHUSETTS","MICHIGAN","MINNESOTA","MISSISSIPPI","MISSOURI","MONTANA","NEBRASKA","NEVADA","NEW HAMPSHIRE","NEW JERSEY","NEW MEXICO","NEW YORK","NORTH CAROLINA","NORTH DAKOTA","NORTHERN MARIANA ISLANDS","OHIO","OKLAHOMA","OREGON","PALAU","PENNSYLVANIA","PUERTO RICO","RHODE ISLAND","SOUTH CAROLINA","SOUTH DAKOTA","TENNESSEE","TEXAS","UTAH","VERMONT","WEST VIRGINIA","VIRGINIA","VIRGIN ISLANDS","WASHINGTON","WISCONSIN","WYOMING","ARMED FORCES EUROPE, THE MIDDLE EAST, AND CANADA","ARMED FORCES CANADA","ARMED FORCES THE MIDDLE EAST","ARMED FORCES EUROPE","ARMED FORCES PACIFIC","ARMED FORCES AMERICAS (EXCEPT CANADA)","ARMED FORCES AMERICAS"],it=["AL","AK","AS","AZ","AR","CA","CO","CT","DE","DC","FM","FL","GA","GU","HI","ID","IL","IN","IA","KS","KY","LA","ME","MH","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","MP","OH","OK","OR","PW","PA","PR","RI","SC","SD","TN","TX","UT","VT","VI","VA","WA","WV","WI","WY","AE","AP","AA"];d=function(t,i){t&&typeof t!="function"&&i&&(i=="click"?setTimeout(function(){n(t).click()},5):i=="submit"&&n(t).submit())}}(jQuery,window,document),function(n){n.fn.simplePagination=function(t){var i=n.extend({},{perPage:10,containerClass:"",previousButtonClass:"",nextButtonClass:"",previousButtonText:"<<",nextButtonText:">>",currentPage:1},t);return this.each(function(){function s(){var f=(i.currentPage-1)*i.perPage+1,u=f+i.perPage-1;u>r.length&&(u=r.length);r.hide();r.slice(f-1,u).show();e.innerHTML=f+" to "+u+" of "+r.length+" Records ";h.innerHTML="  "+i.currentPage+"/"+o+" Pages";r.length<=i.perPage?n(t).hide():n(t).show()}var r=n("tbody tr",this),o=Math.ceil(r.length/i.perPage),t=document.createElement("div"),u=document.createElement("button"),f=document.createElement("button"),e=document.createElement("span"),h=document.createElement("span");t.id="container";u.innerHTML=i.previousButtonText;f.innerHTML=i.nextButtonText;t.className=i.containerClass;u.className=i.previousButtonClass;f.className=i.nextButtonClass;u.type="button";f.type="button";u.style.marginRight="6px";f.style.marginLeft="6px";t.style.paddingLeft="28px";t.style.marginBottom="10px";e.style.fontSize="12px";e.style.fontStyle="italic";h.style.fontSize="12px";t.appendChild(u);t.appendChild(e);t.appendChild(f);n(this).after(t);s();n(f).click(function(){i.currentPage+1>o?i.currentPage=o:i.currentPage++;s()});n(u).click(function(){i.currentPage-1<1?i.currentPage=1:i.currentPage--;s()})})}}(jQuery);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Sweetalert2=t()}(this,function(){"use strict";function gi(n){var t=function n(){for(var r=arguments.length,i=Array(r),t=0;t<r;t++)i[t]=arguments[t];if(!(this instanceof n))return new(Function.prototype.bind.apply(n,[null].concat(i)));Object.getPrototypeOf(n).apply(this,i)};return t.prototype=w(Object.create(n.prototype),{constructor:t}),"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n,t}function or(){var i=u.innerParams.get(this),t=u.domCache.get(this);i.showConfirmButton||(f(t.confirmButton),i.showCancelButton||f(t.actions));h([t.popup,t.actions],n.loading);t.popup.removeAttribute("aria-busy");t.popup.removeAttribute("data-loading");t.confirmButton.disabled=!1;t.cancelButton.disabled=!1}function a(){var r,f;if("undefined"!=typeof window){"undefined"==typeof Promise&&v("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)");for(var i=arguments.length,t=Array(i),n=0;n<i;n++)t[n]=arguments[n];if(void 0===t[0])return v("At least 1 argument is expected!"),!1;dt=this;r=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0}});f=this._main(this.params);u.promise.set(this,f)}}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ht=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},ti=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}}(),w=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},ii=function lt(n,t,i){var r,u,f;return(null===n&&(n=Function.prototype),r=Object.getOwnPropertyDescriptor(n,t),void 0===r)?(u=Object.getPrototypeOf(n),null===u?void 0:lt(u,t,i)):"value"in r?r.value:(f=r.get,void 0!==f?f.call(i):void 0)},ri=function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+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):n.__proto__=t)},ui=function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t},fi="SweetAlert2:",it=function(n){return Array.prototype.slice.call(n)},b=function(n){console.warn(fi+" "+n)},v=function(n){console.error(fi+" "+n)},ei=[],ft=function(n){-1===ei.indexOf(n)&&(ei.push(n),b(n))},ct=function(n){return"function"==typeof n?n():n},oi=function(n){return"object"===(void 0===n?"undefined":c(n))&&"function"==typeof n.then},lt=Object.freeze({cancel:"cancel",backdrop:"overlay",close:"close",esc:"esc",timer:"timer"}),si=function(n){var t={};for(var i in n)t[n[i]]="swal2-"+n[i];return t},n=si(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","fade","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","icon-text","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen"]),k=si(["success","warning","info","question","error"]),d={previousBodyPadding:null},g=function(n,t){return n.classList.contains(t)},hi=function(n){if(n.focus(),"file"!==n.type){var t=n.value;n.value="";n.value=t}},ci=function(n,t,i){n&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(function(t){n.forEach?n.forEach(function(n){i?n.classList.add(t):n.classList.remove(t)}):i?n.classList.add(t):n.classList.remove(t)}))},i=function(n,t){ci(n,t,!0)},h=function(n,t){ci(n,t,!1)},e=function(n,t){for(var i=0;i<n.childNodes.length;i++)if(g(n.childNodes[i],t))return n.childNodes[i]},r=function(t){t.style.opacity="";t.style.display=t.id===n.content?"block":"flex"},f=function(n){n.style.opacity="";n.style.display="none"},nt=function(n){return n&&(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},l=function(){return document.body.querySelector("."+n.container)},s=function(n){var t=l();return t?t.querySelector("."+n):null},o=function(){return s(n.popup)},li=function(){var t=o();return it(t.querySelectorAll("."+n.icon))},ai=function(){return s(n.title)},et=function(){return s(n.content)},vi=function(){return s(n.image)},yi=function(){return s(n.progresssteps)},rt=function(){return s(n.confirm)},ut=function(){return s(n.cancel)},ot=function(){return s(n.actions)},pi=function(){return s(n.footer)},at=function(){return s(n.close)},vt=function(){var n=it(o().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(n,t){return n=parseInt(n.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))<n?1:n<t?-1:0}),t=it(o().querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls]')).filter(function(n){return"-1"!==n.getAttribute("tabindex")});return function(n){for(var i=[],t=0;t<n.length;t++)-1===i.indexOf(n[t])&&i.push(n[t]);return i}(n.concat(t)).filter(function(n){return nt(n)})},wi=function(){return!yt()&&!document.body.classList.contains(n["no-backdrop"])},yt=function(){return document.body.classList.contains(n["toast-shown"])},bi=function(){return"undefined"==typeof window||"undefined"==typeof document},hr=('\n <div aria-labelledby="'+n.title+'" aria-describedby="'+n.content+'" class="'+n.popup+'" tabindex="-1">\n   <div class="'+n.header+'">\n     <ul class="'+n.progresssteps+'"><\/ul>\n     <div class="'+n.icon+" "+k.error+'">\n       <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"><\/span><span class="swal2-x-mark-line-right"><\/span><\/span>\n     <\/div>\n     <div class="'+n.icon+" "+k.question+'">\n       <span class="'+n["icon-text"]+'">?<\/span>\n      <\/div>\n     <div class="'+n.icon+" "+k.warning+'">\n       <span class="'+n["icon-text"]+'">!<\/span>\n      <\/div>\n     <div class="'+n.icon+" "+k.info+'">\n       <span class="'+n["icon-text"]+'">i<\/span>\n      <\/div>\n     <div class="'+n.icon+" "+k.success+'">\n       <div class="swal2-success-circular-line-left"><\/div>\n       <span class="swal2-success-line-tip"><\/span> <span class="swal2-success-line-long"><\/span>\n       <div class="swal2-success-ring"><\/div> <div class="swal2-success-fix"><\/div>\n       <div class="swal2-success-circular-line-right"><\/div>\n     <\/div>\n     <img class="'+n.image+'" />\n     <h2 class="'+n.title+'" id="'+n.title+'"><\/h2>\n     <button type="button" class="'+n.close+'">×<\/button>\n   <\/div>\n   <div class="'+n.content+'">\n     <div id="'+n.content+'"><\/div>\n     <input class="'+n.input+'" />\n     <input type="file" class="'+n.file+'" />\n     <div class="'+n.range+'">\n       <input type="range" />\n       <output><\/output>\n     <\/div>\n     <select class="'+n.select+'"><\/select>\n     <div class="'+n.radio+'"><\/div>\n     <label for="'+n.checkbox+'" class="'+n.checkbox+'">\n       <input type="checkbox" />\n       <span class="'+n.label+'"><\/span>\n     <\/label>\n     <textarea class="'+n.textarea+'"><\/textarea>\n     <div class="'+n.validationerror+'" id="'+n.validationerror+'"><\/div>\n   <\/div>\n   <div class="'+n.actions+'">\n     <button type="button" class="'+n.confirm+'">OK<\/button>\n     <button type="button" class="'+n.cancel+'">Cancel<\/button>\n   <\/div>\n   <div class="'+n.footer+'">\n   <\/div>\n <\/div>\n').replace(/(^|\n)\s*/g,""),ki=function(t){var c=l(),f,a,i;if(c&&(c.parentNode.removeChild(c),h([document.documentElement,document.body],[n["no-backdrop"],n["toast-shown"],n["has-column"]])),!bi()){f=document.createElement("div");f.className=n.container;f.innerHTML=hr;("string"==typeof t.target?document.querySelector(t.target):t.target).appendChild(f);var s=o(),r=et(),y=e(r,n.input),w=e(r,n.file),u=r.querySelector("."+n.range+" input"),b=r.querySelector("."+n.range+" output"),k=e(r,n.select),d=r.querySelector("."+n.checkbox+" input"),g=e(r,n.textarea);return s.setAttribute("role",t.toast?"alert":"dialog"),s.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||s.setAttribute("aria-modal","true"),a=void 0,i=function(n){p.isVisible()&&a!==n.target.value&&p.resetValidationError();a=n.target.value},y.oninput=i,w.onchange=i,k.onchange=i,d.onchange=i,g.oninput=i,u.oninput=function(n){i(n);b.value=u.value},u.onchange=function(n){i(n);u.nextSibling.value=u.value},s}v("SweetAlert2 requires document to initialize")},pt=function(n,t){if(!n)return f(t);if("object"===(void 0===n?"undefined":c(n)))if(t.innerHTML="",0 in n)for(var i=0;i in n;i++)t.appendChild(n[i].cloneNode(!0));else t.appendChild(n.cloneNode(!0));else n&&(t.innerHTML=n);r(t)},tt=function(){var i,n,t;if(bi())return!1;i=document.createElement("div");n={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in n)if(n.hasOwnProperty(t)&&void 0!==i.style[t])return n[t];return!1}(),cr=function(t){var o,s,l=ot(),u=rt(),e=ut(),c;(t.showConfirmButton||t.showCancelButton?r(l):f(l),t.showCancelButton?e.style.display="inline-block":f(e),t.showConfirmButton?(s="display",(o=u).style.removeProperty?o.style.removeProperty(s):o.style.removeAttribute(s)):f(u),u.innerHTML=t.confirmButtonText,e.innerHTML=t.cancelButtonText,u.setAttribute("aria-label",t.confirmButtonAriaLabel),e.setAttribute("aria-label",t.cancelButtonAriaLabel),u.className=n.confirm,i(u,t.confirmButtonClass),e.className=n.cancel,i(e,t.cancelButtonClass),t.buttonsStyling)?(i([u,e],n.styled),t.confirmButtonColor&&(u.style.backgroundColor=t.confirmButtonColor),t.cancelButtonColor&&(e.style.backgroundColor=t.cancelButtonColor),c=window.getComputedStyle(u).getPropertyValue("background-color"),u.style.borderLeftColor=c,u.style.borderRightColor=c):(h([u,e],n.styled),u.style.backgroundColor=u.style.borderLeftColor=u.style.borderRightColor="",e.style.backgroundColor=e.style.borderLeftColor=e.style.borderRightColor="")},lr=function(t){var i=et().querySelector("#"+n.content);t.html?pt(t.html,i):t.text?(i.textContent=t.text,r(i)):f(i)},ar=function(t){for(var o,e=li(),u=0;u<e.length;u++)f(e[u]);t.type&&(-1!==Object.keys(k).indexOf(t.type)?(o=p.getPopup().querySelector("."+n.icon+"."+k[t.type]),r(o),t.animation&&i(o,"swal2-animate-"+t.type+"-icon")):v('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'+t.type+'"'))},vr=function(t){var u=vi();t.imageUrl?(u.setAttribute("src",t.imageUrl),u.setAttribute("alt",t.imageAlt),r(u),t.imageWidth?u.setAttribute("width",t.imageWidth):u.removeAttribute("width"),t.imageHeight?u.setAttribute("height",t.imageHeight):u.removeAttribute("height"),u.className=n.image,t.imageClass&&i(u,t.imageClass)):f(u)},di=function(t){var u=yi(),e=parseInt(null===t.currentProgressStep?p.getQueueStep():t.currentProgressStep,10);t.progressSteps&&t.progressSteps.length?(r(u),u.innerHTML="",e>=t.progressSteps.length&&b("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(function(r,f){var o=document.createElement("li"),s;(i(o,n.progresscircle),o.innerHTML=r,f===e&&i(o,n.activeprogressstep),u.appendChild(o),f!==t.progressSteps.length-1)&&(s=document.createElement("li"),i(s,n.progressline),t.progressStepsDistance&&(s.style.width=t.progressStepsDistance),u.appendChild(s))})):f(u)},yr=function(n){var t=ai();n.titleText?t.innerText=n.titleText:n.title&&("string"==typeof n.title&&(n.title=n.title.split("\n").join("<br />")),pt(n.title,t))},pr=function(){null===d.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(d.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=d.previousBodyPadding+function(){var n,t;return"ontouchstart"in window||navigator.msMaxTouchPoints?0:(n=document.createElement("div"),n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n),t=n.offsetWidth-n.clientWidth,document.body.removeChild(n),t)}()+"px")},t={},st=function(r,u){var e=l(),f=o(),s;f&&(null!==r&&"function"==typeof r&&r(f),h(f,n.show),i(f,n.hide),s=function(){var i,r;yt()||(i=window.scrollX,r=window.scrollY,t.restoreFocusTimeout=setTimeout(function(){t.previousActiveElement&&t.previousActiveElement.focus?(t.previousActiveElement.focus(),t.previousActiveElement=null):document.body&&document.body.focus()},100),void 0!==i&&void 0!==r&&window.scrollTo(i,r),t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1);e.parentNode&&e.parentNode.removeChild(e);h([document.documentElement,document.body],[n.shown,n["height-auto"],n["no-backdrop"],n["toast-shown"],n["toast-column"]]);wi()&&(null!==d.previousBodyPadding&&(document.body.style.paddingRight=d.previousBodyPadding,d.previousBodyPadding=null),function(){if(g(document.body,n.iosfix)){var t=parseInt(document.body.style.top,10);h(document.body,n.iosfix);document.body.style.top="";document.body.scrollTop=-1*t}}(),it(document.body.children).forEach(function(n){n.hasAttribute("data-previous-aria-hidden")?(n.setAttribute("aria-hidden",n.getAttribute("data-previous-aria-hidden")),n.removeAttribute("data-previous-aria-hidden")):n.removeAttribute("aria-hidden")}));null!==u&&"function"==typeof u&&setTimeout(function(){u()})},tt&&!g(f,n.noanimation)?f.addEventListener(tt,function r(){f.removeEventListener(tt,r);g(f,n.hide)&&s()}):s())},nr={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",target:"body",backdrop:!0,animation:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onAfterClose:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},wr=["useRejections","expectRejections"],tr=function(n){return nr.hasOwnProperty(n)||"extraParams"===n},ir=function(n){return-1!==wr.indexOf(n)},rr=function(n){for(var t in n)tr(t)||b('Unknown parameter "'+t+'"'),n.toast&&-1!==["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"].indexOf(t)&&b('The parameter "'+t+'" is incompatible with toasts'),ir(t)&&ft('The parameter "'+t+'" is deprecated and will be removed in the next major release.')},ur='"setDefaults" & "resetDefaults" methods are deprecated in favor of "mixin" method and will be removed in the next major release. For new projects, use "mixin". For past projects already using "setDefaults", support will be provided through an additional package.',wt={},y=[],fr=function(){var t=o();t||p("");t=o();var u=ot(),f=rt(),e=ut();r(u);r(f);i([t,u],n.loading);f.disabled=!0;e.disabled=!0;t.setAttribute("data-loading",!0);t.setAttribute("aria-busy",!0);t.focus()},br=Object.freeze({isValidParameter:tr,isDeprecatedParameter:ir,argsToParams:function(n){var t={};switch(c(n[0])){case"string":["title","html","type"].forEach(function(i,r){switch(c(n[r])){case"string":t[i]=n[r];break;case"undefined":break;default:v("Unexpected type of "+i+'! Expected "string", got '+c(n[r]))}});break;case"object":w(t,n[0]);break;default:v('Unexpected type of argument! Expected "string" or "object", got "'+c(n[0])+'"')}return t},adaptInputValidator:function(n){return function(t,i){return n.call(this,t,i).then(function(){},function(n){return n})}},close:st,closePopup:st,closeModal:st,closeToast:st,isVisible:function(){return!!o()},clickConfirm:function(){return rt().click()},clickCancel:function(){return ut().click()},getContainer:l,getPopup:o,getTitle:ai,getContent:et,getImage:vi,getIcons:li,getCloseButton:at,getButtonsWrapper:function(){return ft("swal.getButtonsWrapper() is deprecated and will be removed in the next major release, use swal.getActions() instead"),s(n.actions)},getActions:ot,getConfirmButton:rt,getCancelButton:ut,getFooter:pi,getFocusableElements:vt,isLoading:function(){return o().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return new(Function.prototype.bind.apply(this,[null].concat(i)))},mixin:function(n){return gi(function(t){function i(){return ht(this,i),ui(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return ri(i,t),ti(i,[{key:"_main",value:function(t){return ii(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"_main",this).call(this,w({},n,t))}}]),i}(this))},queue:function(n){var r=this,t,i;return y=n,t=function(){y=[];document.body.removeAttribute("data-swal2-queue-step")},i=[],new Promise(function(n){!function u(f,e){f<y.length?(document.body.setAttribute("data-swal2-queue-step",f),r(y[f]).then(function(r){void 0!==r.value?(i.push(r.value),u(f+1,e)):(t(),n({dismiss:r.dismiss}))})):(t(),n({value:i}))}(0)})},getQueueStep:function(){return document.body.getAttribute("data-swal2-queue-step")},insertQueueStep:function(n,t){return t&&t<y.length?y.splice(t,0,n):y.push(n)},deleteQueueStep:function(n){void 0!==y[n]&&y.splice(n,1)},showLoading:fr,enableLoading:fr,getTimerLeft:function(){return t.timeout&&t.timeout.getTimerLeft()}}),er="function"==typeof Symbol?Symbol:function(){function n(n){return"__"+n+"_"+Math.floor(1e9*Math.random())+"_"+ ++t+"__"}var t=0;return n.iterator=n("Symbol.iterator"),n}(),bt="function"==typeof WeakMap?WeakMap:function(n,t,i){function r(){t(this,n,{value:er("WeakMap")})}return r.prototype={"delete":function(t){delete t[this[n]]},get:function(t){return t[this[n]]},has:function(t){return i.call(t,this[n])},set:function(i,r){t(i,this[n],{configurable:!0,value:r})}},r}(er("WeakMap"),Object.defineProperty,{}.hasOwnProperty),u={promise:new bt,innerParams:new bt,domCache:new bt},kr=function lt(n,t){ht(this,lt);var u=void 0,f=void 0,i=void 0,r=t;this.start=function(){i=!0;f=new Date;u=setTimeout(n,r)};this.stop=function(){i=!1;clearTimeout(u);r-=new Date-f};this.getTimerLeft=function(){return i&&(this.stop(),this.start()),r};this.start()},kt={email:function(n,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(n)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid email address")},url:function(n,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(n)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid URL")}},dr=function(u){var e=l(),f=o();null!==u.onBeforeOpen&&"function"==typeof u.onBeforeOpen&&u.onBeforeOpen(f);u.animation?(i(f,n.show),i(e,n.fade),h(f,n.hide)):h(f,n.fade);r(f);e.style.overflowY="hidden";tt&&!g(f,n.noanimation)?f.addEventListener(tt,function u(){f.removeEventListener(tt,u);e.style.overflowY="auto"}):e.style.overflowY="auto";i([document.documentElement,document.body,e],n.shown);u.heightAuto&&u.backdrop&&!u.toast&&i([document.documentElement,document.body],n["height-auto"]);wi()&&(pr(),function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!g(document.body,n.iosfix)){var t=document.body.scrollTop;document.body.style.top=-1*t+"px";i(document.body,n.iosfix)}}(),it(document.body.children).forEach(function(n){n===l()||n.contains(l())||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}));yt()||t.previousActiveElement||(t.previousActiveElement=document.activeElement);null!==u.onOpen&&"function"==typeof u.onOpen&&setTimeout(function(){u.onOpen(f)})},sr=Object.freeze({hideLoading:or,disableLoading:or,getInput:function(t){var r=u.innerParams.get(this),i=u.domCache.get(this);if(!(t=t||r.input))return null;switch(t){case"select":case"textarea":case"file":return e(i.content,n[t]);case"checkbox":return i.popup.querySelector("."+n.checkbox+" input");case"radio":return i.popup.querySelector("."+n.radio+" input:checked")||i.popup.querySelector("."+n.radio+" input:first-child");case"range":return i.popup.querySelector("."+n.range+" input");default:return e(i.content,n.input)}},enableButtons:function(){var n=u.domCache.get(this);n.confirmButton.disabled=!1;n.cancelButton.disabled=!1},disableButtons:function(){var n=u.domCache.get(this);n.confirmButton.disabled=!0;n.cancelButton.disabled=!0},enableConfirmButton:function(){u.domCache.get(this).confirmButton.disabled=!1},disableConfirmButton:function(){u.domCache.get(this).confirmButton.disabled=!0},enableInput:function(){var n=this.getInput(),i,t;if(!n)return!1;if("radio"===n.type)for(i=n.parentNode.parentNode.querySelectorAll("input"),t=0;t<i.length;t++)i[t].disabled=!1;else n.disabled=!1},disableInput:function(){var n=this.getInput(),i,t;if(!n)return!1;if(n&&"radio"===n.type)for(i=n.parentNode.parentNode.querySelectorAll("input"),t=0;t<i.length;t++)i[t].disabled=!0;else n.disabled=!0},showValidationError:function(t){var e=u.domCache.get(this),o,f;e.validationError.innerHTML=t;o=window.getComputedStyle(e.popup);e.validationError.style.marginLeft="-"+o.getPropertyValue("padding-left");e.validationError.style.marginRight="-"+o.getPropertyValue("padding-right");r(e.validationError);f=this.getInput();f&&(f.setAttribute("aria-invalid",!0),f.setAttribute("aria-describedBy",n.validationerror),hi(f),i(f,n.inputerror))},resetValidationError:function(){var i=u.domCache.get(this),t;i.validationError&&f(i.validationError);t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),h(t,n.inputerror))},getProgressSteps:function(){return u.innerParams.get(this).progressSteps},setProgressSteps:function(n){var i=u.innerParams.get(this),t=w({},i,{progressSteps:n});u.innerParams.set(this,t);di(t)},showProgressSteps:function(){var n=u.domCache.get(this);r(n.progressSteps)},hideProgressSteps:function(){var n=u.domCache.get(this);f(n.progressSteps)},_main:function(a){var d=this,y,k,g;return rr(a),y=w({},nr,a),!function(t){var v;t.inputValidator||Object.keys(kt).forEach(function(n){t.input===n&&(t.inputValidator=t.expectRejections?kt[n]:p.adaptInputValidator(kt[n]))});t.target&&("string"!=typeof t.target||document.querySelector(t.target))&&("string"==typeof t.target||t.target.appendChild)||(b('Target parameter is not valid, defaulting to "body"'),t.target="body");var u=void 0,e=o(),y="string"==typeof t.target?document.querySelector(t.target):t.target;u=e&&y&&e.parentNode!==y.parentNode?ki(t):e||ki(t);t.width&&(u.style.width="number"==typeof t.width?t.width+"px":t.width);t.padding&&(u.style.padding="number"==typeof t.padding?t.padding+"px":t.padding);t.background&&(u.style.background=t.background);for(var k=window.getComputedStyle(u).getPropertyValue("background-color"),w=u.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),s=0;s<w.length;s++)w[s].style.backgroundColor=k;var c=l(),a=at(),d=pi();(yr(t),lr(t),"string"==typeof t.backdrop?l().style.background=t.backdrop:t.backdrop||i([document.documentElement,document.body],n["no-backdrop"]),!t.backdrop&&t.allowOutsideClick&&b('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.position in n?i(c,n[t.position]):(b('The "position" parameter is not valid, defaulting to "center"'),i(c,n.center)),t.grow&&"string"==typeof t.grow)&&(v="grow-"+t.grow,v in n&&i(c,n[v]));"function"==typeof t.animation&&(t.animation=t.animation.call());t.showCloseButton?(a.setAttribute("aria-label",t.closeButtonAriaLabel),r(a)):f(a);u.className=n.popup;t.toast?(i([document.documentElement,document.body],n["toast-shown"]),i(u,n.toast)):i(u,n.modal);t.customClass&&i(u,t.customClass);di(t);ar(t);vr(t);cr(t);pt(t.footer,d);!0===t.animation?h(u,n.noanimation):i(u,n.noanimation);t.showLoaderOnConfirm&&!t.preConfirm&&b("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request")}(y),Object.freeze(y),u.innerParams.set(this,y),t.timeout&&(t.timeout.stop(),delete t.timeout),clearTimeout(t.restoreFocusTimeout),k={popup:o(),container:l(),content:et(),actions:ot(),confirmButton:rt(),cancelButton:ut(),closeButton:at(),validationError:s(n.validationerror),progressSteps:yi()},u.domCache.set(this,k),g=this.constructor,new Promise(function(u,o){var yt=function(n){g.closePopup(y.onClose,y.onAfterClose);y.useRejections?u(n):u({value:n})},l=function(n){g.closePopup(y.onClose,y.onAfterClose);y.useRejections?o(n):u({dismiss:n})},ti=function(n){g.closePopup(y.onClose,y.onAfterClose);o(n)},tt,et,wt,st,bt,ht,kt,lt,p,w,it,gt,rt,at,ni;y.timer&&(t.timeout=new kr(function(){l("timer");delete t.timeout},y.timer));y.input&&setTimeout(function(){var n=d.getInput();n&&hi(n)},0);for(var ut=function(n){if(y.showLoaderOnConfirm&&g.showLoading(),y.preConfirm){d.resetValidationError();var t=Promise.resolve().then(function(){return y.preConfirm(n,y.extraParams)});y.expectRejections?t.then(function(t){return yt(t||n)},function(n){d.hideLoading();n&&d.showValidationError(n)}):t.then(function(t){nt(k.validationError)||!1===t?d.hideLoading():yt(t||n)},function(n){return ti(n)})}else yt(n)},ft=function(n){var i=n.target,r=k.confirmButton,u=k.cancelButton,e=r&&(r===i||r.contains(i)),o=u&&(u===i||u.contains(i)),t,f;switch(n.type){case"click":e&&g.isVisible()?(d.disableButtons(),y.input)?(t=function(){var n=d.getInput();if(!n)return null;switch(y.input){case"checkbox":return n.checked?1:0;case"radio":return n.checked?n.value:null;case"file":return n.files.length?n.files[0]:null;default:return y.inputAutoTrim?n.value.trim():n.value}}(),y.inputValidator?(d.disableInput(),f=Promise.resolve().then(function(){return y.inputValidator(t,y.extraParams)}),y.expectRejections?f.then(function(){d.enableButtons();d.enableInput();ut(t)},function(n){d.enableButtons();d.enableInput();n&&d.showValidationError(n)}):f.then(function(n){d.enableButtons();d.enableInput();n?d.showValidationError(n):ut(t)},function(n){return ti(n)})):ut(t)):ut(!0):o&&g.isVisible()&&(d.disableButtons(),l(g.DismissReason.cancel))}},b=k.popup.querySelectorAll("button"),a=0;a<b.length;a++)b[a].onclick=ft,b[a].onmouseover=ft,b[a].onmouseout=ft,b[a].onmousedown=ft;(k.closeButton.onclick=function(){l(g.DismissReason.close)},y.toast)?k.popup.onclick=function(){y.showConfirmButton||y.showCancelButton||y.showCloseButton||y.input||l(g.DismissReason.close)}:(tt=!1,k.popup.onmousedown=function(){k.container.onmouseup=function(n){k.container.onmouseup=void 0;n.target===k.container&&(tt=!0)}},k.container.onmousedown=function(){k.popup.onmouseup=function(n){k.popup.onmouseup=void 0;(n.target===k.popup||k.popup.contains(n.target))&&(tt=!0)}},k.container.onclick=function(n){tt?tt=!1:n.target===k.container&&ct(y.allowOutsideClick)&&l(g.DismissReason.backdrop)});y.reverseButtons?k.confirmButton.parentNode.insertBefore(k.cancelButton,k.confirmButton):k.confirmButton.parentNode.insertBefore(k.confirmButton,k.cancelButton);et=function(n,t){for(var i=vt(y.focusCancel),r=0;r<i.length;r++)return(n+=t)===i.length?n=0:-1===n&&(n=i.length-1),i[n].focus();k.popup.focus()};t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1);y.toast||(t.keydownHandler=function(n){return function(n,t){if(t.stopKeydownPropagation&&n.stopPropagation(),"Enter"!==n.key||n.isComposing)if("Tab"===n.key){for(var f=n.target,u=vt(t.focusCancel),r=-1,i=0;i<u.length;i++)if(f===u[i]){r=i;break}n.shiftKey?et(r,-1):et(r,1);n.stopPropagation();n.preventDefault()}else-1!==["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"].indexOf(n.key)?document.activeElement===k.confirmButton&&nt(k.cancelButton)?k.cancelButton.focus():document.activeElement===k.cancelButton&&nt(k.confirmButton)&&k.confirmButton.focus():"Escape"!==n.key&&"Esc"!==n.key||!0!==ct(t.allowEscapeKey)||l(g.DismissReason.esc);else if(n.target&&d.getInput()&&n.target.outerHTML===d.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(t.input))return;g.clickConfirm();n.preventDefault()}}(n,y)},t.keydownTarget=y.keydownListenerCapture?window:k.popup,t.keydownListenerCapture=y.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0);d.enableButtons();d.hideLoading();d.resetValidationError();y.toast&&(y.input||y.footer||y.showCloseButton)?i(document.body,n["toast-column"]):h(document.body,n["toast-column"]);for(var pt=["input","file","range","select","radio","checkbox","textarea"],s=void 0,ot=0;ot<pt.length;ot++){if(wt=n[pt[ot]],st=e(k.content,wt),s=d.getInput(pt[ot])){for(bt in s.attributes)s.attributes.hasOwnProperty(bt)&&(ht=s.attributes[bt].name,"type"!==ht&&"value"!==ht&&s.removeAttribute(ht));for(kt in y.inputAttributes)s.setAttribute(kt,y.inputAttributes[kt])}st.className=wt;y.inputClass&&i(st,y.inputClass);f(st)}lt=void 0;switch(y.input){case"text":case"email":case"password":case"number":case"tel":case"url":(s=e(k.content,n.input)).value=y.inputValue;s.placeholder=y.inputPlaceholder;s.type=y.input;r(s);break;case"file":(s=e(k.content,n.file)).placeholder=y.inputPlaceholder;s.type=y.input;r(s);break;case"range":var dt=e(k.content,n.range),ii=dt.querySelector("input"),ri=dt.querySelector("output");ii.value=y.inputValue;ii.type=y.input;ri.value=y.inputValue;r(dt);break;case"select":p=e(k.content,n.select);(p.innerHTML="",y.inputPlaceholder)&&(w=document.createElement("option"),w.innerHTML=y.inputPlaceholder,w.value="",w.disabled=!0,w.selected=!0,p.appendChild(w));lt=function(n){n.forEach(function(n){var i=n[0],r=n[1],t=document.createElement("option");t.value=i;t.innerHTML=r;y.inputValue.toString()===i.toString()&&(t.selected=!0);p.appendChild(t)});r(p);p.focus()};break;case"radio":it=e(k.content,n.radio);it.innerHTML="";lt=function(t){t.forEach(function(t){var f=t[0],e=t[1],i=document.createElement("input"),u=document.createElement("label"),r;i.type="radio";i.name=n.radio;i.value=f;y.inputValue.toString()===f.toString()&&(i.checked=!0);r=document.createElement("span");r.innerHTML=e;r.className=n.label;u.appendChild(i);u.appendChild(r);it.appendChild(u)});r(it);var i=it.querySelectorAll("input");i.length&&i[0].focus()};break;case"checkbox":gt=e(k.content,n.checkbox);rt=d.getInput("checkbox");rt.type="checkbox";rt.value=1;rt.id=n.checkbox;rt.checked=Boolean(y.inputValue);gt.querySelector("span").innerHTML=y.inputPlaceholder;r(gt);break;case"textarea":at=e(k.content,n.textarea);at.value=y.inputValue;at.placeholder=y.inputPlaceholder;r(at);break;case null:break;default:v('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'+y.input+'"')}"select"===y.input||"radio"===y.input?(ni=function(n){return lt((t=n,i=[],"undefined"!=typeof Map&&t instanceof Map?t.forEach(function(n,t){i.push([t,n])}):Object.keys(t).forEach(function(n){i.push([n,t[n]])}),i));var t,i},oi(y.inputOptions)?(g.showLoading(),y.inputOptions.then(function(n){d.hideLoading();ni(n)})):"object"===c(y.inputOptions)?ni(y.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+c(y.inputOptions))):-1!==["text","email","number","tel","textarea"].indexOf(y.input)&&oi(y.inputValue)&&(g.showLoading(),f(s),y.inputValue.then(function(n){s.value="number"===y.input?parseFloat(n)||0:n+"";r(s);s.focus();d.hideLoading()}).catch(function(n){v("Error in inputValue promise: "+n);s.value="";r(s);s.focus();d.hideLoading()}));dr(y);y.toast||(ct(y.allowEnterKey)?y.focusCancel&&nt(k.cancelButton)?k.cancelButton.focus():y.focusConfirm&&nt(k.confirmButton)?k.confirmButton.focus():et(-1,1):document.activeElement&&document.activeElement.blur());k.container.scrollTop=0})}}),dt=void 0,gt,ni,p;return a.prototype.then=function(n,t){return u.promise.get(this).then(n,t)},a.prototype.catch=function(n){return u.promise.get(this).catch(n)},a.prototype.finally=function(n){return u.promise.get(this).finally(n)},w(a.prototype,sr),w(a,br),Object.keys(sr).forEach(function(n){a[n]=function(){var t;if(dt)return(t=dt)[n].apply(t,arguments)}}),a.DismissReason=lt,a.noop=function(){},a.version="7.26.11",p=gi((gt=a,ni=function(){function n(){return ht(this,n),ui(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return ri(n,gt),ti(n,[{key:"_main",value:function(t){return ii(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"_main",this).call(this,w({},wt,t))}}],[{key:"setDefaults",value:function(n){if(ft(ur),!n||"object"!==(void 0===n?"undefined":c(n)))throw new TypeError("SweetAlert2: The argument for setDefaults() is required and has to be a object");rr(n);Object.keys(n).forEach(function(t){gt.isValidParameter(t)&&(wt[t]=n[t])})}},{key:"resetDefaults",value:function(){ft(ur);wt={}}}]),n}(),"undefined"!=typeof window&&"object"===c(window._swalDefaults)&&ni.setDefaults(window._swalDefaults),ni)),p.default=p});"undefined"!=typeof window&&window.Sweetalert2&&(window.swal=window.sweetAlert=window.Swal=window.SweetAlert=window.Sweetalert2);"undefined"!=typeof document&&function(n,t){var i=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=t);else try{i.innerHTML=t}catch(n){i.innerText=t}}(document,"@-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{position:fixed;background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validationerror{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;box-shadow:0 0 .625em #d9d9d9;overflow-y:hidden}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon-text{font-size:2em;font-weight:700;line-height:1em}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:showSweetToast .5s;animation:showSweetToast .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:hideSweetToast .2s forwards;animation:hideSweetToast .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:animate-toast-success-tip .75s;animation:animate-toast-success-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:animate-toast-success-long .75s;animation:animate-toast-success-long .75s}@-webkit-keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:10px;background-color:transparent;z-index:1060;overflow-x:hidden;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem;box-sizing:border-box}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-popup .swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-popup .swal2-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-popup .swal2-actions{align-items:center;justify-content:center;margin:1.25em auto 0;z-index:1}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm{width:2.5em;height:2.5em;margin:.46875em;padding:0;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;box-sizing:border-box;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{display:inline-block;width:15px;height:15px;margin-left:5px;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff;content:'';-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal}.swal2-popup .swal2-styled{margin:0 .3125em;padding:.625em 2em;font-weight:500;box-shadow:none}.swal2-popup .swal2-styled:not([disabled]){cursor:pointer}.swal2-popup .swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-popup .swal2-styled::-moz-focus-inner{border:0}.swal2-popup .swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-popup .swal2-image{max-width:100%;margin:1.25em auto}.swal2-popup .swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer;overflow:hidden}.swal2-popup .swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-popup>.swal2-checkbox,.swal2-popup>.swal2-file,.swal2-popup>.swal2-input,.swal2-popup>.swal2-radio,.swal2-popup>.swal2-select,.swal2-popup>.swal2-textarea{display:none}.swal2-popup .swal2-content{justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;z-index:1;word-wrap:break-word}.swal2-popup #swal2-content{text-align:center}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-radio,.swal2-popup .swal2-select,.swal2-popup .swal2-textarea{margin:1em auto}.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-textarea{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box}.swal2-popup .swal2-file.swal2-inputerror,.swal2-popup .swal2-input.swal2-inputerror,.swal2-popup .swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-popup .swal2-file:focus,.swal2-popup .swal2-input:focus,.swal2-popup .swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-popup .swal2-file::-webkit-input-placeholder,.swal2-popup .swal2-input::-webkit-input-placeholder,.swal2-popup .swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-popup .swal2-file:-ms-input-placeholder,.swal2-popup .swal2-input:-ms-input-placeholder,.swal2-popup .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::-ms-input-placeholder,.swal2-popup .swal2-input::-ms-input-placeholder,.swal2-popup .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::placeholder,.swal2-popup .swal2-input::placeholder,.swal2-popup .swal2-textarea::placeholder{color:#ccc}.swal2-popup .swal2-range input{width:80%}.swal2-popup .swal2-range output{width:20%;font-weight:600;text-align:center}.swal2-popup .swal2-range input,.swal2-popup .swal2-range output{height:2.625em;margin:1em auto;padding:0;font-size:1.125em;line-height:2.625em}.swal2-popup .swal2-input{height:2.625em;padding:.75em}.swal2-popup .swal2-input[type=number]{max-width:10em}.swal2-popup .swal2-file{font-size:1.125em}.swal2-popup .swal2-textarea{height:6.75em;padding:.75em}.swal2-popup .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;color:#545454;font-size:1.125em}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-radio{align-items:center;justify-content:center}.swal2-popup .swal2-checkbox label,.swal2-popup .swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-popup .swal2-checkbox input,.swal2-popup .swal2-radio input{margin:0 .4em}.swal2-popup .swal2-validationerror{display:none;align-items:center;justify-content:center;padding:.625em;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;overflow:hidden}.swal2-popup .swal2-validationerror::before{display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center;content:'!';zoom:normal}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;zoom:normal}.swal2-icon-text{font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;top:-.25em;left:-.25em;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%;z-index:2;box-sizing:content-box}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;height:.3125em;border-radius:.125em;background-color:#a5dc86;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progresssteps{align-items:center;margin:0 0 1.25em;padding:0;font-weight:600}.swal2-progresssteps li{display:inline-block;position:relative}.swal2-progresssteps .swal2-progresscircle{width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center;z-index:20}.swal2-progresssteps .swal2-progresscircle:first-child{margin-left:0}.swal2-progresssteps .swal2-progresscircle:last-child{margin-right:0}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep{background:#3085d6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progresscircle{background:#add8e6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progressline{background:#add8e6}.swal2-progresssteps .swal2-progressline{width:2.5em;height:.4em;margin:0 -1px;background:#3085d6;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}[dir=rtl] .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}")