Give – Donation Plugin and Fundraising Platform - Version 2.22.2

Version Description

Download this release

Release Info

Developer jason_the_adams
Plugin Icon 128x128 Give – Donation Plugin and Fundraising Platform
Version 2.22.2
Comparing to
See all releases

Code changes from version 2.22.1 to 2.22.2

assets/dist/css/admin-paypal-commerce.css CHANGED
@@ -1 +1 @@
1
- .give-modal.paypal-commerce-connect{max-width:596px}.give-modal.paypal-commerce-connect .give-modal__title{color:#333;font-size:22px;margin-bottom:30px}.give-modal.paypal-commerce-connect .give-modal__body{padding:33px}.give-modal.paypal-commerce-connect .give-modal__description>*{color:#939393;font-size:17px}.give-modal.paypal-commerce-connect .give-modal__description ul{list-style:disc;padding:10px 0 0 40px}.give-modal.paypal-commerce-connect .give-modal__description__warning{color:#ff8c00}
1
+ #js-give-paypal-disconnect-paypal-account{background-color:transparent;border:none;color:#2271b1;cursor:pointer;text-decoration:underline}.give-modal.paypal-commerce-connect{max-width:596px}.give-modal.paypal-commerce-connect .give-modal__title{color:#333;font-size:22px;margin-bottom:30px}.give-modal.paypal-commerce-connect .give-modal__body{padding:33px}.give-modal.paypal-commerce-connect .give-modal__description>*{color:#939393;font-size:17px}.give-modal.paypal-commerce-connect .give-modal__description ul{list-style:disc;padding:10px 0 0 40px}.give-modal.paypal-commerce-connect .give-modal__description__warning{color:#ff8c00}
assets/dist/css/admin-paypal-commerce.rtl.css CHANGED
@@ -1 +1 @@
1
- .give-modal.paypal-commerce-connect{max-width:596px}.give-modal.paypal-commerce-connect .give-modal__title{color:#333;font-size:22px;margin-bottom:30px}.give-modal.paypal-commerce-connect .give-modal__body{padding:33px}.give-modal.paypal-commerce-connect .give-modal__description>*{color:#939393;font-size:17px}.give-modal.paypal-commerce-connect .give-modal__description ul{list-style:disc;padding:10px 40px 0 0}.give-modal.paypal-commerce-connect .give-modal__description__warning{color:#ff8c00}
1
+ #js-give-paypal-disconnect-paypal-account{background-color:transparent;border:none;color:#2271b1;cursor:pointer;text-decoration:underline}.give-modal.paypal-commerce-connect{max-width:596px}.give-modal.paypal-commerce-connect .give-modal__title{color:#333;font-size:22px;margin-bottom:30px}.give-modal.paypal-commerce-connect .give-modal__body{padding:33px}.give-modal.paypal-commerce-connect .give-modal__description>*{color:#939393;font-size:17px}.give-modal.paypal-commerce-connect .give-modal__description ul{list-style:disc;padding:10px 40px 0 0}.give-modal.paypal-commerce-connect .give-modal__description__warning{color:#ff8c00}
assets/dist/js/admin.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('jquery', 'wp-i18n'), 'version' => 'e114ef9ac9abdc5c');
1
+ <?php return array('dependencies' => array('jquery', 'wp-i18n'), 'version' => '62d5aa3878090e00');
assets/dist/js/admin.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={87757:(e,t,n)=>{e.exports=n(35666)},50743:function(e,t){!function(n,i){var o={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},r=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function d(e){return e&&"[object Object]"===s.call(e)}function u(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var i,o,a=[];if(!e)return a;if(r&&e.map===r)return e.map(t,n);for(i=0,o=e.length;i<o;i++)a[i]=t.call(n,e[i],i,e);return a}function h(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=o.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?o.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var m=o.unformat=o.parse=function(e,t){if(c(e))return f(e,(function(e){return m(e,t)}));if("number"==typeof(e=e||0))return e;t=t||o.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),i=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(i)?0:i},g=o.toFixed=function(e,t){t=h(t,o.settings.number.precision);var n=Math.pow(10,t);return(Math.round(o.unformat(e)*n)/n).toFixed(t)},v=o.formatNumber=o.format=function(e,t,n,i){if(c(e))return f(e,(function(e){return v(e,t,n,i)}));e=m(e);var r=u(d(t)?t:{precision:t,thousand:n,decimal:i},o.settings.number),a=h(r.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",p=l.length>3?l.length%3:0;return s+(p?l.substr(0,p)+r.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+r.thousand)+(a?r.decimal+g(Math.abs(e),a).split(".")[1]:"")},_=o.formatMoney=function(e,t,n,i,r,a){if(c(e))return f(e,(function(e){return _(e,t,n,i,r,a)}));e=m(e);var s=u(d(t)?t:{symbol:t,precision:n,thousand:i,decimal:r,format:a},o.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),h(s.precision),s.thousand,s.decimal))};o.formatColumn=function(e,t,n,i,r,a){if(!e)return[];var s=u(d(t)?t:{symbol:t,precision:n,thousand:i,decimal:r,format:a},o.settings.currency),g=p(s.format),_=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,y=f(e,(function(e,t){if(c(e))return o.formatColumn(e,s);var n=((e=m(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),h(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n}));return f(y,(function(e,t){return l(e)&&e.length<b?_?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=o),t.accounting=o}()},71018:()=>{jQuery(document).ready((function(e){function t(t){var n=void 0!==t.standard_fields&&null!==t.standard_fields?t.standard_fields:"",i=e(".give-export-donations-standard-fields ul");n.length>0&&(i.closest("tr").removeClass("give-hidden"),e(n).each((function(e,t){i.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-standard-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-standard-field-'+t+'">'+t+"</label> </li>")})));var o=void 0!==t.hidden_fields&&null!==t.hidden_fields?t.hidden_fields:"",r=e(".give-export-donations-hidden-fields ul");o&&(r.closest("tr").removeClass("give-hidden"),e(o).each((function(e,t){r.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-hidden-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-hidden-field-'+t+'">'+t+"</label> </li>")})))}e(".give-export_donations #give-export_donations-form .give_forms_categories , .give-export_donations #give-export_donations-form .give_forms_tags").change((function(){var n,i,o;n=e("form#give-export_donations-form"),i=e(n).find("tr.give-export-donation-form .give-select-chosen"),o=i.prev(),i.find('input[type="text"]'),i.hasClass("variations"),e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),e.ajax({type:"POST",url:ajaxurl,data:{action:"give_form_search",s:"",fields:e(n).serialize()},beforeSend:function(){o.closest("ul.chosen-results").empty()},success:function(r){e("option",o).remove();var a=[];r.length?(n.find(".give-export-donation-button").prop("disabled",!1),e.each(r,(function(e,t){o.prepend('<option value="'+t.id+'">'+t.name+"</option>"),a.push(t.id)})),o.prepend('<option value="0" selected>'+o.data("placeholder")+"</option>")):(o.prepend('<option value="0">'+o.data("no-form")+"</option>"),n.find(".give-export-donation-button").prop("disabled",!0)),n.find(".form_ids").val(a.join()),i.prev("select.give-select-chosen").trigger("chosen:updated"),t("")}})})),e(".give-export_donations #give-export_donations-form #give_payment_form_select").change((function(){var n;if(e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),jQuery(document).trigger("give_export_donations_form_change"),!(n=e(this).val()))return!1;e.ajax({type:"POST",url:ajaxurl,data:{form_id:n,action:"give_export_donations_get_custom_fields"},success:function(e){e?t(e):alert(Give.fn.getGlobalVar("error_message")),jQuery(document).trigger("give_export_donations_form_response",e)}})}));var n=e('.give-export-option-fields input[type="checkbox"]');e(".give-toggle-checkbox-selection").click((function(){var t,i,o,r;e(this).data("clicked",!e(this).data("clicked")),n.prop("checked",!e(this).data("clicked")),i=e(t=this).val(),o=e(t).attr("data-value"),i=(r=[o,i])[0],o=r[1],e(t).attr("value",i),e(t).attr("data-value",o)}))}))},89953:()=>{function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,o,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var n,i;n=jQuery,i=function(){""===n(".give-level-id").text()&&n(".cmb-repeatable-grouping").each((function(e,t){var i=n(t).data("iterator")+1;n(t).find(".give-level-id").text(i),n(t).find(".give-level-id-input").val(i)})),n("body").on("cmb2_add_row",(function(e,t){!function(e){var t,i,o,r=(t=0,i=0,o=0,n("#_give_donation_levels_repeat > .cmb-repeatable-grouping").each((function(e,r){(o=n(this).find("input.give-level-id-input").val())>i&&(i=o),t++})),void 0!==i&&i>=t?parseInt(i)+1:t);n(e).find("input.give-level-id-input").val(r),n(e).find(".give-level-id").text(r)}(t)})),n("body").on("cmb2_shift_rows_complete",(function(e,t){n(".cmb-repeatable-grouping").each((function(e,t){var i=n(t).find("input.give-level-id-input").val();n(t).find(".give-level-id").text(i)}))}))},n((function(){n("body").on("change",".give-give_default_radio_inline",(function(){n(".give-give_default_radio_inline").prop("checked",!1),n(this).prop("checked",!0)})),function(){n("._give_price_option_field input:radio").on("change",(function(){"set"===n("._give_price_option_field input:radio:checked").val()?(n("._give_set_price_field").show(),n("#_give_donation_levels_field").hide(),n("._give_display_style_field").hide()):(n("._give_set_price_field").hide(),n("#_give_donation_levels_field").show(),n("._give_display_style_field").show())})).change(),n("._give_display_content_field input:radio").on("change",(function(){"enabled"===n("._give_display_content_field input:radio:checked").val()?(n("._give_content_placement_field").show(),n("._give_form_content_field").show()):(n("._give_content_placement_field").hide(),n("._give_form_content_field").hide())})).change(),n("._give_terms_option_field input:radio").on("change",(function(){"enabled"===n("._give_terms_option_field input:radio:checked").val()?(n("._give_agree_label_field").show(),n("._give_agree_text_field").show()):(n("._give_agree_label_field").hide(),n("._give_agree_text_field").hide())})).change(),n("._give_payment_display_field input:radio").on("change",(function(){"onpage"===n("._give_payment_display_field input:radio:checked").val()?n("._give_reveal_label_field").hide():n("._give_reveal_label_field").show()})).change(),n("._give_custom_amount_field input:radio").on("change",(function(){"disabled"===n("._give_custom_amount_field input:radio:checked").val()?(n("._give_custom_amount_range_field ").hide(),n("._give_custom_amount_text_field").hide()):(n("._give_custom_amount_range_field ").show(),n("._give_custom_amount_text_field").show())})).change();var e=n("._give_goal_option_field"),t=n("._give_goal_format_field input:radio");n("._give_close_form_when_goal_achieved_field input:radio").on("change",(function(){"disabled"===n("._give_close_form_when_goal_achieved_field input:radio:checked").val()?n("._give_form_goal_achieved_message_field").hide():n("._give_form_goal_achieved_message_field").show()})).change(),e.on("change",(function(){"disabled"===n("._give_goal_option_field input:radio:checked").val()?(n("._give_set_goal_field").hide(),n("._give_goal_format_field").hide(),n("._give_goal_color_field").hide(),n("._give_close_form_when_goal_achieved_field").hide(),n("._give_form_goal_achieved_message_field").hide(),n("._give_number_of_donation_goal_field").hide(),n("._give_number_of_donor_goal_field").hide()):(n("._give_set_goal_field").show(),n("._give_goal_format_field").show(),n("._give_goal_color_field").show(),n("._give_close_form_when_goal_achieved_field").show(),"enabled"===n("._give_close_form_when_goal_achieved_field input:radio:checked").val()&&n("._give_form_goal_achieved_message_field").show(),t.change())})).change(),t.on("change",(function(){var e=n("._give_goal_format_field input:radio:checked").val(),t=n("._give_goal_option_field input:radio:checked").val();"donation"===e?(n("._give_set_goal_field, ._give_number_of_donor_goal_field,._give_number_of_donation_goal_field").hide(),"disabled"!==t&&n("._give_number_of_donation_goal_field").show()):"donors"===e?(n("._give_set_goal_field, ._give_number_of_donation_goal_field, ._give_number_of_donor_goal_field").hide(),"disabled"!==t&&n("._give_number_of_donor_goal_field").show()):("disabled"===t?n("._give_set_goal_field").hide():n("._give_set_goal_field").show(),n("._give_number_of_donation_goal_field, ._give_number_of_donor_goal_field").hide())})).change(),n("._give_customize_offline_donations_field input:radio").on("change",(function(){"enabled"===n("._give_customize_offline_donations_field input:radio:checked").val()?(n("._give_offline_checkout_notes_field").show(),n("._give_offline_donation_enable_billing_fields_single_field").show(),n("._give_offline_donation_subject_field").show(),n("._give_offline_donation_email_field").show()):(n("._give_offline_checkout_notes_field").hide(),n("._give_offline_donation_enable_billing_fields_single_field").hide(),n("._give_offline_donation_subject_field").hide(),n("._give_offline_donation_email_field").hide())})).change(),n("._give_email_options_field input:radio").on("change",(function(){"enabled"===n("._give_email_options_field input:radio:checked").val()?n("#email_notification_options .give-field-wrap:not(._give_email_options_field)").show():n("#email_notification_options .give-field-wrap:not(._give_email_options_field)").hide()})).change();var i=n('input[name="_give_name_title_prefix"]:checked').val();"required"!==i&&"optional"!==i||n(".give-title-prefixes-wrap").show(),n('input[name="_give_name_title_prefix"]').on("change",(function(){var e=n('input[name="_give_name_title_prefix"]:checked').val();"required"===e||"optional"===e?n(".give-title-prefixes-wrap").show():n(".give-title-prefixes-wrap").hide()}))}(),i(),n(".cmb2-text-money").each((function(e,t){parseInt(n(t).val())||n(t).removeAttr("value")})),function(){function t(){n("[data-field-visibility]").each((function(){var t=n(this).data("field-visibility"),i=!1;Object.entries(t).forEach((function(t){var o=e(t,2),r=o[0],a=o[1],s=n('[name="'+r+'"]');s&&s.each((function(){var e=n(this),t=e.attr("type");if(!t||"radio"!==t&&"checkbox"!==t){if(e.val()==a)return void(i=!0)}else if(e.is(":checked")&&e.val()==a)return void(i=!0)}))})),n(this).parents(".give-field-wrap").toggle(i)}))}t(),n(".give-visibility-handler").on("change",t)}()}))},96066:()=>{jQuery(document).ready((function(){if("undefined"!=typeof URLSearchParams&&window.history){var e=new URLSearchParams(window.location.search);if(!e.has("give-run-migration")&&!e.has("give-clear-update"))return;e.delete("give-run-migration"),e.delete("give-clear-update");var t="".concat(window.location.origin).concat(window.location.pathname,"?").concat(e);window.history.replaceState({},"",t)}}))},4559:()=>{jQuery(document).ready((function(e){var t=jQuery("ul.give-payment-gatways-list");t.length&&t.sortable();var n="#give-mainform #currency",i="#give-mainform #currency_position";e("body").on("change",n,(function(){var t=e(n+" option:selected").val(),o=JSON.parse(e(this).attr("data-formatting-setting")),r=afterText={},a=o[t],s=e("#thousands_separator","#give-mainform"),l=e("#decimal_separator","#give-mainform"),c=e("#number_decimals","#give-mainform");r=e(i).data("before-template").replace("{currency_pos}",a.symbol),e(i+' option[value="before"]').text(r),afterText=e(i).data("after-template").replace("{currency_pos}",a.symbol),e(i+' option[value="after"]').text(afterText),s.val(a.setting.thousands_separator).trigger("blur"),l.val(a.setting.decimal_separator).trigger("blur"),c.val(a.setting.number_decimals).trigger("blur")})),"disabled"!==e('input[name="name_title_prefix"]:checked').val()&&e(".give-title-prefixes-settings-wrap").show(),e('input[name="name_title_prefix"]').on("change",(function(){"disabled"!==e(this).val()?e(".give-title-prefixes-settings-wrap").show():e(".give-title-prefixes-settings-wrap").hide()})),e("a.give-repeat-setting-field").on("click",(function(t){t.preventDefault();var n=e(this).parents("td"),i=e("p:first-child",n).clone(),o=e("p",n).not(".give-field-description").length,r=e(this).data("id")+"_"+ ++o,a=e(this).prev();return e("input",a).val()&&(e(this).before(i),a=e(this).prev(),e("input",a).attr("id",r),e("input",a).val("")),!1})),e(".give-settings-page").on("click","span.give-remove-setting-field",(function(t){e(this).parents("p").remove()})),e(".give-email-notification-status","table.giveemailnotifications").on("click",(function(){var t=e(this),n=e("i",t),i=e(this).next(),o=e(this).hasClass("give-email-notification-enabled")?"disabled":"enabled",r=e(this).data("id");if(!parseInt(t.data("edit")))return function(t){e("div.give-email-notification-status-notice").remove(),e(".wp-heading-inline").after('<div class="updated error give-email-notification-status-notice"><p>'.concat(t.data("notice"),"</p></div>"));var n=e("div.give-email-notification-status-notice");n.length&&e("html, body").animate({scrollTop:n.position().top},"slow")}(t),!1;e.ajax({url:ajaxurl,method:"POST",data:{action:"give_set_notification_status",status:o,notification_id:r},beforeSend:function(){t.hide(),i.addClass("is-active")},success:function(e){e.success&&(t.removeClass("give-email-notification-"+t.data("status")),t.addClass("give-email-notification-"+o),t.data("status",o),"enabled"===o?(n.removeClass("dashicons-no-alt"),n.addClass("dashicons-yes")):(n.removeClass("dashicons-yes"),n.addClass("dashicons-no-alt")),i.removeClass("is-active"),t.show())}})})),e("#give-clear-cache").on("click",(function(){e.ajax({url:ajaxurl,type:"GET",data:{action:"give_cache_flush"}}).done((function(e){e.success?new Give.modal.GiveSuccessAlert({modalContent:{title:Give.fn.getGlobalVar("flush_success"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render():new Give.modal.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("flush_error"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}))}));var o=Give.fn.getGlobalVar("decimal_separator"),r=Give.fn.getGlobalVar("thousands_separator"),a=/\(([^)]+)\)/,s={position:Give.fn.getGlobalVar("currency_pos"),symbol:Give.fn.getGlobalVar("currency_sign"),precision:Give.fn.getGlobalVar("number_decimals"),decimal:Give.fn.getGlobalVar("decimal_separator"),thousand:Give.fn.getGlobalVar("thousands_separator")};e("#number_decimals, #decimal_separator, #thousands_separator, #currency_position, #currency").on("input blur change",(function(t){var n=e("#currency_preview"),i=e("#decimal_separator"),l=e("#thousands_separator"),c=t.target.name,d=t.target.value;if("number_decimals"!==c||"input"!==t.type&&"blur"!==t.type||(d&&!isNaN(d)||"blur"!==t.type||(t.target.value=Give.fn.getGlobalVar("number_decimals")),s.precision=isNaN(parseInt(d))?Give.fn.getGlobalVar("number_decimals"):parseInt(d)),"decimal_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=o),s.decimal=d,s.hasOwnProperty("thousand")&&"input"===t.type?s.decimal===s.thousand&&(s.thousand=o,l.val(o),o=d,r=l.val()):s.decimal===Give.fn.getGlobalVar("thousands_separator")&&"input"===t.type&&(s.thousand=o,l.val(o),o=d,r=l.val())),"thousands_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=r),s.thousand=d,s.hasOwnProperty("decimal")&&"input"===t.type?s.decimal===s.thousand&&(s.decimal=r,i.val(r),r=d,o=i.val()):s.thousand===Give.fn.getGlobalVar("decimal_separator")&&"input"===t.type&&(s.decimal=r,i.val(r),r=d,o=i.val())),"currency_position"===c&&"change"===t.type&&(s.position=d),"currency"===c&&"change"===t.type){s.currency=d;var u=a.exec(t.target[t.target.selectedIndex].text);s.symbol=u[1]}n.val(Give.fn.formatCurrency("123456.12345",s,{}))}))})),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".give-settings-section-content");if(null!==e){var t=e.querySelector(".give-settings-section-group-menu");if(null!==t){var n=Array.prototype.slice.call(e.querySelectorAll(".give-settings-section-group")),i=Array.from(t.querySelectorAll("ul li a")).concat(Array.from(e.querySelectorAll("ul.give-subsubsub li a")));null!==i&&i.forEach((function(t){t.addEventListener("click",(function(t){var o,r;if(t.target.hasAttribute("data-subgroup")){var a=t.target.parentElement.parentElement,s=a.parentElement;o=t.target.getAttribute("data-subgroup"),r=e.querySelector("#give-settings-section-subgroup-".concat(o)),a.querySelectorAll("a").forEach((function(e){e.classList.remove("current")})),s.querySelectorAll(".give-settings-section-subgroup ").forEach((function(e){return e.classList.add("give-hidden")})),t.target.classList.add("current")}else o=t.target.getAttribute("data-group"),r=e.querySelector("#give-settings-section-group-".concat(o)),i.forEach((function(e){e.classList.remove("active")})),n.map((function(e){return e.classList.add("give-hidden")})),t.target.classList.add("active");return r.classList.remove("give-hidden"),history.pushState({urlPath:t.target.getAttribute("href")},"",t.target.getAttribute("href")),t.preventDefault(),!1}))}))}}}))},74241:()=>{var e,t,n,i;e=jQuery,t=function(){var t=e('[class*="sequoia[introduction][headline]_field"], [class*="sequoia[introduction][description]_field"], [class*="sequoia[introduction][image]_field"], [class*="sequoia[introduction][donate_label]_field"]');0===e('input[name="sequoia[introduction][enabled]"]').length||e('input[name="sequoia[introduction][enabled]"]').prop("checked")?e(t).show():e(t).hide()},n=function(){var t=e('[class*="sequoia[payment_information][donation_summary_heading]_field"], [class*="sequoia[payment_information][donation_summary_location]_field"]');0===e('input[name="sequoia[payment_information][donation_summary_enabled]"]').length||e('input[name="sequoia[payment_information][donation_summary_enabled]"]').prop("checked")?e(t).show():e(t).hide()},i=function(){var t=e('[class*="sequoia[thank-you][sharing_instruction]_field"], [class*="sequoia[thank-you][twitter_message]_field"]');0===e('input[name="sequoia[thank-you][sharing]"]').length||e('input[name="sequoia[thank-you][sharing]"]').prop("checked")?e(t).show():e(t).hide()},e(document).ready((function(){e("#form_template_options").on("click",".js-template--activate",(function(t){t.preventDefault();var n=e(this).parents(".templates-list"),i=n.parent(),o=e(this).parents(".template-info").attr("data-id");e(".template-info",n).removeClass("active"),i.find(".template-options.".concat(o)).addClass("active"),e(this).text(Give.fn.getGlobalVar("deactivate")),e(this).removeClass("js-template--activate"),e(this).addClass("js-template--deactivate"),e(this).parents(".template-info").addClass("active"),i.addClass("has-activated-template"),i.prev("input[name=_give_form_template]").val(o).trigger("change")})),e("#form_template_options").on("click",".js-template--deactivate",(function(t){t.preventDefault();var n=e(this).parents(".templates-list"),i=n.parent(),o=e(this).parents(".template-info").attr("data-id");e(".template-info",n).removeClass("active"),i.find(".template-options.".concat(o)).removeClass("active"),e(this).text(Give.fn.getGlobalVar("activate")),e(this).removeClass("js-template--deactivate"),e(this).addClass("js-template--activate"),i.removeClass("has-activated-template"),i.prev("input[name=_give_form_template]").val("").trigger("change")})),e(".post-php.post-type-give_forms #publishing-action input[type=submit]").add(".post-new-php.post-type-give_forms #publishing-action input[type=submit]").add(".post-new-php.post-type-give_forms #save-action input[type=submit]").add(".post-php.post-type-give_forms #save-action input[type=submit]").on("click",(function(){return!!e("input[name=_give_form_template]","#form_template_options").val()||(new Give.modal.GiveNoticeAlert({type:"warning",modalContent:{title:Give.fn.getGlobalVar("form_template_required").title,desc:Give.fn.getGlobalVar("form_template_required").desc}}).render(),"form_template_options"!==Give.fn.getParameterByName("give_tab")&&e('a[href="#form_template_options"]').trigger("click"),!1)})),t(),e('input[name="sequoia[introduction][enabled]"]').on("change",(function(){t()})),n(),e('input[name="sequoia[payment_information][donation_summary_enabled]"]').on("change",(function(){n()})),i(),e('input[name="sequoia[thank-you][sharing]"]').on("change",(function(){i()}))}))},69571:()=>{!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,i,o){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,i),o)}}(window)},65962:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(t){"use strict";t.extend({giveAjaxifyFields:function(n){var i,o,r=t.extend({},{type:"",parentWrapper:"form",countryFieldName:"country",stateFieldName:"state",stateFieldWrapper:".give-field-wrap",chosenState:!0},n||{});if("country_state"===r.type){if(i=t('select[name="'+r.countryFieldName+'"]'),o=i.closest(r.parentWrapper),!i.length||"Country_state"===i.data("give-ajaxify-field"))return;i.data("give-ajaxify-field","country_state"),i.change((function(){var n=t(this),i=n.closest(r.parentWrapper).find('[name="'+r.stateFieldName+'"]'),a=i.closest(r.stateFieldWrapper),s=t("label",a);r.stateFieldWrapper||(s=t('label[for="'+r.stateFieldName+'"]',o),a=i.parent());var l={action:"give_get_states",country:n.val(),field_name:r.stateFieldName};t.post(ajaxurl,l,(function(n){n.show_field?(s.length&&s.text(n.states_label),r.chosenState&&i.chosen("destroy"),r.stateFieldWrapper?a.removeClass("give-hidden"):i.removeClass("give-hidden"),void 0!==e(n.states_found)&&!0===n.states_found?(i.replaceWith(n.data),i=t('[name="'+r.stateFieldName+'"]',a),r.chosenState&&i.chosen()):(i.replaceWith('<input type="text" name="'+r.stateFieldName+'" value="'+n.default_state+'" class="medium-text"/>'),i=t('[name="'+r.stateFieldName+'"]',a))):r.stateFieldWrapper?a.addClass("give-hidden"):i.addClass("give-hidden")}))}))}return this}})}(jQuery)},45099:()=>{jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var i=n.next("span.give-hint-tooltip-js");if(!i.length){var o=t.label.length?t.label:n.data("hint-aria-label");if(!o.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+o+'"></span>'),(i=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?i.addClass("hint--always"):"hide"===e&&i.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),i=[],o=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(i=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(i=i.join(" "),t.removeClass(i),t.append('<i class="'+i+'"></i>'))),t.addClass("hint--top"),15<o?t.addClass("hint--large"):7<o&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,i){n(i=i instanceof jQuery?i:e(i))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},10861:()=>{jQuery(document).ready((function(e){e("body").on("click",".notice-dismiss",(function(t){var n=e(this).parent().parent();n.hasClass("give-notice")&&(t.preventDefault(),n.fadeTo(100,0,(function(){n.slideUp(100,(function(){n.remove()}))})))}))}))},28345:()=>{var e={collection:{},get:function(e,t,n){return jQuery?(t=void 0!==t?t:void 0,n=!0===n,(void 0===this.collection[e]||n)&&(this.collection[e]=void 0!==t?jQuery(e,t):jQuery(e)),this.collection[e]):-1}};window.Give_Selector_Cache=e},2601:()=>{document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("div[data-give-dismissible]").forEach((function(e){var t="give-dismissed-".concat(e.dataset.giveDismissible);window.localStorage.getItem(t)||(e.classList.remove("hidden"),e.addEventListener("click",(function(n){n.target.classList.contains("notice-dismiss")&&window.localStorage.setItem(t,Date.now()),n.target.classList.contains("give-donor-dashboard-upgrade-notice__dismiss-link")&&(e.classList.add("hidden"),window.localStorage.setItem(t,Date.now()))})))}))}))},99560:function(e,t,n){var i;!function(o){"use strict";function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(l=o)|s>>>32-l,n);var s,l}function s(e,t,n,i,o,r,s){return a(t&n|~t&i,e,t,o,r,s)}function l(e,t,n,i,o,r,s){return a(t&i|n&~i,e,t,o,r,s)}function c(e,t,n,i,o,r,s){return a(t^n^i,e,t,o,r,s)}function d(e,t,n,i,o,r,s){return a(n^(t|~i),e,t,o,r,s)}function u(e,t){var n,i,o,a,u;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,h=-271733879,p=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)i=f,o=h,a=p,u=m,f=s(f,h,p,m,e[n],7,-680876936),m=s(m,f,h,p,e[n+1],12,-389564586),p=s(p,m,f,h,e[n+2],17,606105819),h=s(h,p,m,f,e[n+3],22,-1044525330),f=s(f,h,p,m,e[n+4],7,-176418897),m=s(m,f,h,p,e[n+5],12,1200080426),p=s(p,m,f,h,e[n+6],17,-1473231341),h=s(h,p,m,f,e[n+7],22,-45705983),f=s(f,h,p,m,e[n+8],7,1770035416),m=s(m,f,h,p,e[n+9],12,-1958414417),p=s(p,m,f,h,e[n+10],17,-42063),h=s(h,p,m,f,e[n+11],22,-1990404162),f=s(f,h,p,m,e[n+12],7,1804603682),m=s(m,f,h,p,e[n+13],12,-40341101),p=s(p,m,f,h,e[n+14],17,-1502002290),f=l(f,h=s(h,p,m,f,e[n+15],22,1236535329),p,m,e[n+1],5,-165796510),m=l(m,f,h,p,e[n+6],9,-1069501632),p=l(p,m,f,h,e[n+11],14,643717713),h=l(h,p,m,f,e[n],20,-373897302),f=l(f,h,p,m,e[n+5],5,-701558691),m=l(m,f,h,p,e[n+10],9,38016083),p=l(p,m,f,h,e[n+15],14,-660478335),h=l(h,p,m,f,e[n+4],20,-405537848),f=l(f,h,p,m,e[n+9],5,568446438),m=l(m,f,h,p,e[n+14],9,-1019803690),p=l(p,m,f,h,e[n+3],14,-187363961),h=l(h,p,m,f,e[n+8],20,1163531501),f=l(f,h,p,m,e[n+13],5,-1444681467),m=l(m,f,h,p,e[n+2],9,-51403784),p=l(p,m,f,h,e[n+7],14,1735328473),f=c(f,h=l(h,p,m,f,e[n+12],20,-1926607734),p,m,e[n+5],4,-378558),m=c(m,f,h,p,e[n+8],11,-2022574463),p=c(p,m,f,h,e[n+11],16,1839030562),h=c(h,p,m,f,e[n+14],23,-35309556),f=c(f,h,p,m,e[n+1],4,-1530992060),m=c(m,f,h,p,e[n+4],11,1272893353),p=c(p,m,f,h,e[n+7],16,-155497632),h=c(h,p,m,f,e[n+10],23,-1094730640),f=c(f,h,p,m,e[n+13],4,681279174),m=c(m,f,h,p,e[n],11,-358537222),p=c(p,m,f,h,e[n+3],16,-722521979),h=c(h,p,m,f,e[n+6],23,76029189),f=c(f,h,p,m,e[n+9],4,-640364487),m=c(m,f,h,p,e[n+12],11,-421815835),p=c(p,m,f,h,e[n+15],16,530742520),f=d(f,h=c(h,p,m,f,e[n+2],23,-995338651),p,m,e[n],6,-198630844),m=d(m,f,h,p,e[n+7],10,1126891415),p=d(p,m,f,h,e[n+14],15,-1416354905),h=d(h,p,m,f,e[n+5],21,-57434055),f=d(f,h,p,m,e[n+12],6,1700485571),m=d(m,f,h,p,e[n+3],10,-1894986606),p=d(p,m,f,h,e[n+10],15,-1051523),h=d(h,p,m,f,e[n+1],21,-2054922799),f=d(f,h,p,m,e[n+8],6,1873313359),m=d(m,f,h,p,e[n+15],10,-30611744),p=d(p,m,f,h,e[n+6],15,-1560198380),h=d(h,p,m,f,e[n+13],21,1309151649),f=d(f,h,p,m,e[n+4],6,-145523070),m=d(m,f,h,p,e[n+11],10,-1120210379),p=d(p,m,f,h,e[n+2],15,718787259),h=d(h,p,m,f,e[n+9],21,-343485551),f=r(f,i),h=r(h,o),p=r(p,a),m=r(m,u);return[f,h,p,m]}function f(e){var t,n="",i=32*e.length;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,i="0123456789abcdef",o="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=i.charAt(t>>>4&15)+i.charAt(15&t);return o}function m(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(u(h(e),8*e.length))}(m(e))}function v(e,t){return function(e,t){var n,i,o=h(e),r=[],a=[];for(r[15]=a[15]=void 0,o.length>16&&(o=u(o,8*e.length)),n=0;n<16;n+=1)r[n]=909522486^o[n],a[n]=1549556828^o[n];return i=u(r.concat(h(t)),512+8*t.length),f(u(a.concat(i),640))}(m(e),m(t))}function _(e,t,n){return t?n?v(t,e):p(v(t,e)):n?g(e):p(g(e))}void 0===(i=function(){return _}.call(t,n,t,e))||(e.exports=i)}()},90858:function(){(function(){var e,t,n,i,o={}.hasOwnProperty;(i=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,i,o,r,a;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),a=[],n=0,i=(r=e.childNodes).length;n<i;n++)o=r[n],a.push(this.add_option(o,t,e.disabled));return a},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===n?n:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(e){var t,n,o,r,a;for(r=new i,n=0,o=(a=e.childNodes).length;n<o;n++)t=a[n],r.add_node(t);return r.parsed},t=function(){function e(t,n){var i,o;this.form_field=t,this.options=null!=n?n:{},this.label_click_handler=(i=this.label_click_handler,o=this,function(){return i.apply(o,arguments)}),e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){var e;return this.click_test_action=(e=this,function(t){return e.test_active_click(t)}),this.activate_action=function(e){return function(t){return e.activate_field(t)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout((t=this,function(){return t.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var t},e.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((t=this,function(){return t.blur_test()}),100);var t},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,n,i,o,r,a,s;for(t="",s=0,o=0,r=(a=this.results_data).length;o<r&&(i="",""!==(i=(n=a[o]).group?this.result_add_group(n):this.result_add_option(n))&&(s++,t+=i),(null!=e?e.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(s>=this.max_shown_results));o++);return t},e.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),e.style&&(n.style.cssText=e.style),n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.highlighted_html||e.html,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&e.active_options>0?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),n.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,n,i,o;for(o=[],e=0,t=(n=this.results_data).length;e<t;e++)(i=n[e]).selected?o.push(i.selected=!1):o.push(void 0);return o},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(e){var t,n,i,o,r,a,s,l,c,d,u,f,h,p,m;for(this.no_results_clear(),d=0,t=(s=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(t),i=0,o=(l=this.results_data).length;i<o;i++)(r=l[i]).search_match=!1,u=null,f=null,r.highlighted_html="",this.include_option_in_results(r)&&(r.group&&(r.group_match=!1,r.active_options=0),null!=r.group_array_index&&this.results_data[r.group_array_index]&&(0===(u=this.results_data[r.group_array_index]).active_options&&u.search_match&&(d+=1),u.active_options+=1),m=r.group?r.label:r.text,r.group&&!this.group_search||(f=this.search_string_match(m,c),r.search_match=null!=f,r.search_match&&!r.group&&(d+=1),r.search_match?(s.length&&(h=f.index,a=m.slice(0,h),n=m.slice(h,h+s.length),p=m.slice(h+s.length),r.highlighted_html=this.escape_html(a)+"<em>"+this.escape_html(n)+"</em>"+this.escape_html(p)),null!=u&&(u.group_match=!0)):null!=r.group_array_index&&this.results_data[r.group_array_index].search_match&&(r.search_match=!0)));return this.result_clear_highlight(),d<1&&s.length?(this.update_results_content(""),this.no_results(s)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,n;return n=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(n="^"+n),t=this.case_sensitive_search?"":"i",new RegExp(n,t)},e.prototype.search_string_match=function(e,t){var n;return n=t.exec(e),!this.search_contains&&(null!=n?n[1]:void 0)&&(n.index+=1),n},e.prototype.choices_count=function(){var e,t,n;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(n=this.form_field.options).length;e<t;e++)n[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keydown_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==n&&this.pending_backstroke&&this.clear_backstroke(),n){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.keyup_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),n){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(e){var t;if(!this.is_disabled)return setTimeout((t=this,function(){return t.results_search()}),50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_no_results_html=function(e){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),(e=jQuery).fn.extend({chosen:function(i){return t.browser_is_supported()?this.each((function(t){var o,r;r=(o=e(this)).data("chosen"),"destroy"!==i?r instanceof n||o.data("chosen",new n(this,i)):r instanceof n&&r.destroy()})):this}}),n=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(n,t),n.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},n.prototype.set_up_html=function(){var t,n;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),n={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(n.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",n),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){var e;return this.container.on("touchstart.chosen",(e=this,function(t){e.container_mousedown(t)})),this.container.on("touchend.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mousedown.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("mouseup.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mouseenter.chosen",function(e){return function(t){e.mouse_enter(t)}}(this)),this.container.on("mouseleave.chosen",function(e){return function(t){e.mouse_leave(t)}}(this)),this.search_results.on("mouseup.chosen",function(e){return function(t){e.search_results_mouseup(t)}}(this)),this.search_results.on("mouseover.chosen",function(e){return function(t){e.search_results_mouseover(t)}}(this)),this.search_results.on("mouseout.chosen",function(e){return function(t){e.search_results_mouseout(t)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(e){return function(t){e.search_results_mousewheel(t)}}(this)),this.search_results.on("touchstart.chosen",function(e){return function(t){e.search_results_touchstart(t)}}(this)),this.search_results.on("touchmove.chosen",function(e){return function(t){e.search_results_touchmove(t)}}(this)),this.search_results.on("touchend.chosen",function(e){return function(t){e.search_results_touchend(t)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(e){return function(t){e.results_update_field(t)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(e){return function(t){e.activate_field(t)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(e){return function(t){e.close_field(t)}}(this)),this.search_field.on("blur.chosen",function(e){return function(t){e.input_blur(t)}}(this)),this.search_field.on("keyup.chosen",function(e){return function(t){e.keyup_checker(t)}}(this)),this.search_field.on("keydown.chosen",function(e){return function(t){e.keydown_checker(t)}}(this)),this.search_field.on("focus.chosen",function(e){return function(t){e.input_focus(t)}}(this)),this.search_field.on("cut.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.search_field.on("paste.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(e){return function(t){e.choices_click(t)}}(this)):this.container.on("click.chosen",(function(e){e.preventDefault()}))},n.prototype.destroy=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},n.prototype.container_mousedown=function(t){var n;if(!this.is_disabled)return!t||"mousedown"!==(n=t.type)&&"touchstart"!==n||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},n.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},n.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},n.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},n.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(t){var n;return(n=e(t.target).closest(".chosen-container")).length&&this.container[0]===n[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(e){var t,n,i,o,r;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),o=(i=parseInt(this.search_results.css("maxHeight"),10))+(r=this.search_results.scrollTop()),(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=o)return this.search_results.scrollTop(t-i>0?t-i:0);if(n<r)return this.search_results.scrollTop(n)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},n.prototype.update_results_content=function(e){return this.search_results.html(e)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},n.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(t){var n;if((n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=n,this.result_select(t),this.search_field.focus()},n.prototype.search_results_mouseover=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(n)},n.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result")||e(t.target).parents(".active-result").first())return this.result_clear_highlight()},n.prototype.choice_build=function(t){var n,i,o;return n=e("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?n.addClass("search-choice-disabled"):((i=e("<a />",{class:"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",(o=this,function(e){return o.choice_destroy_link_click(e)})),n.append(i)),this.search_container.before(n)},n.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},n.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(n=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},n.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_field_value=function(){return this.search_field.val()},n.prototype.get_search_text=function(){return e.trim(this.get_search_field_value())},n.prototype.escape_html=function(t){return e("<div/>").text(t).html()},n.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},n.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.search_field_scale=function(){var t,n,i,o,r,a,s;if(this.is_multiple){for(r={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},n=0,i=(a=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;n<i;n++)r[o=a[n]]=this.search_field.css(o);return(t=e("<div />").css(r)).text(this.get_search_field_value()),e("body").append(t),s=t.width()+25,t.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},n.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},n}(t)}).call(this)},42152:function(e){var t;t=function(){return function(){var e={134:function(e,t,n){"use strict";n.d(t,{default:function(){return w}});var i=n(279),o=n.n(i),r=n(370),a=n.n(r),s=n(817),l=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}var t,n,i;return t=e,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=l()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==c(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}],n&&d(t.prototype,n),i&&d(t,i),e}(),f=u;function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function b(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(r,e);var t,n,i,o=g(r);function r(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return t=r,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new f({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return b("action",e)}},{key:"defaultTarget",value:function(e){var t=b("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return b("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],i=[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&p(t.prototype,n),i&&p(t,i),r}(o()),w=y},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function o(e,t,n,i,o){var a=r.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function r(e,t,n,o){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,i,r)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(i.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(i.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),t=i.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,a=i.length;r<a;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(134)}().default},e.exports=t()},32164:()=>{jQuery.plot.plugins.push({init:function(e){var t,n,i,o,r=1,a=!1,s={};function l(e,t){for(var n=new Array,i=0;i<e.length;i++)n[0]=e[i].data[0]?e[i].data[0][t]:null,n[1]=e[i].data[e[i].data.length-1]?e[i].data[e[i].data.length-1][t]:null;return n}function c(e,t){var n=e.bars.order,i=t.bars.order;return n<i?-1:n>i?1:0}function d(e,t,n){for(var i=0,r=t;r<=n;r++)i+=e[r].bars.barWidth+2*o;return i}e.hooks.processDatapoints.push((function(e,u,f){var h,p=null;if(function(e){return null!=e.bars&&e.bars.show&&null!=e.bars.order}(u)&&(function(e){e.bars.horizontal&&(a=!0)}(u),function(e){var t=a?e.getPlaceholder().innerHeight():e.getPlaceholder().innerWidth(),n=l(e.getData(),a?1:0),i=n[1]-n[0];r=i/t}(e),function(e){t=function(e){for(var t=new Array,n=[],i=0;i<e.length;i++)null!=e[i].bars.order&&e[i].bars.show&&n.indexOf(e[i].bars.order)<0&&(n.push(e[i].bars.order),t.push(e[i]));return t.sort(c)}(e.getData()),n=t.length}(e),function(e){i=void 0!==e.bars.lineWidth?e.bars.lineWidth:2,o=i*r}(u),n>=2)){var m=function(e){for(var n=0,i=0;i<t.length;++i)if(e==t[i]){n=i;break}return n+1}(u),g=(h=0,n%2!=0&&(h=t[Math.ceil(n/2)].bars.barWidth/2),h);void 0===s[u.bars.order]&&(function(e){return e<=Math.ceil(n/2)}(m)?s[u.bars.order]=-1*d(t,m-1,Math.floor(n/2)-1)-g:s[u.bars.order]=d(t,Math.ceil(n/2),m-2)+g+2*o),p=function(e,t,n){for(var i=e.pointsize,o=e.points,r=0,s=a?1:0;s<o.length;s+=i)o[s]+=n,t.data[r][3]=o[s],r++;return o}(f,u,s[u.bars.order]),f.points=p}return p}))},options:{series:{bars:{order:null}}},name:"orderBars",version:"0.2"})},32196:()=>{!function(e){e.color={},e.color.make=function(t,n,i,o){var r={};return r.r=t||0,r.g=n||0,r.b=i||0,r.a=null!=o?o:1,r.add=function(e,t){for(var n=0;n<e.length;++n)r[e.charAt(n)]+=t;return r.normalize()},r.scale=function(e,t){for(var n=0;n<e.length;++n)r[e.charAt(n)]*=t;return r.normalize()},r.toString=function(){return r.a>=1?"rgb("+[r.r,r.g,r.b].join(",")+")":"rgba("+[r.r,r.g,r.b,r.a].join(",")+")"},r.normalize=function(){function e(e,t,n){return t<e?e:t>n?n:t}return r.r=e(0,parseInt(r.r),255),r.g=e(0,parseInt(r.g),255),r.b=e(0,parseInt(r.b),255),r.a=e(0,r.a,1),r},r.clone=function(){return e.color.make(r.r,r.b,r.g,r.a)},r.normalize()},e.color.extract=function(t,n){var i;do{if(""!=(i=t.css(n).toLowerCase())&&"transparent"!=i)break;t=t.parent()}while(t.length&&!e.nodeName(t.get(0),"body"));return"rgba(0, 0, 0, 0)"==i&&(i="transparent"),e.color.parse(i)},e.color.parse=function(n){var i,o=e.color.make;if(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))return o(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10));if(i=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return o(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10),parseFloat(i[4]));if(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(n))return o(2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3]));if(i=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return o(2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3]),parseFloat(i[4]));if(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))return o(parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16));if(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(n))return o(parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16));var r=e.trim(n).toLowerCase();return"transparent"==r?o(255,255,255,0):o((i=t[r]||[0,0,0])[0],i[1],i[2])};var t={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(e){var t=Object.prototype.hasOwnProperty;function n(t,n){var i=n.children("."+t)[0];if(null==i&&((i=document.createElement("canvas")).className=t,e(i).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(n),!i.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");i=window.G_vmlCanvasManager.initElement(i)}this.element=i;var o=this.context=i.getContext("2d"),r=window.devicePixelRatio||1,a=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1;this.pixelRatio=r/a,this.resize(n.width(),n.height()),this.textContainer=null,this.text={},this._textCache={}}function i(t,i,o,r){var a=[],s={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},l=null,c=null,d=null,u=null,f=null,h=[],p=[],m={left:0,right:0,top:0,bottom:0},g=0,v=0,_={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},b=this;function y(e,t){t=[b].concat(t);for(var n=0;n<e.length;++n)e[n].apply(this,t)}function w(t){a=function(t){for(var n=[],i=0;i<t.length;++i){var o=e.extend(!0,{},s.series);null!=t[i].data?(o.data=t[i].data,delete t[i].data,e.extend(!0,o,t[i]),t[i].data=o.data):o.data=t[i],n.push(o)}return n}(t),function(){var t,n=a.length,i=-1;for(t=0;t<a.length;++t){var o=a[t].color;null!=o&&(n--,"number"==typeof o&&o>i&&(i=o))}n<=i&&(n=i+1);var r,l=[],c=s.colors,d=c.length,u=0;for(t=0;t<n;t++)r=e.color.parse(c[t%d]||"#666"),t%d==0&&t&&(u=u>=0?u<.5?-u-.2:0:-u),l[t]=r.scale("rgb",1+u);var f,m=0;for(t=0;t<a.length;++t){if(null==(f=a[t]).color?(f.color=l[m].toString(),++m):"number"==typeof f.color&&(f.color=l[f.color].toString()),null==f.lines.show){var g,v=!0;for(g in f)if(f[g]&&f[g].show){v=!1;break}v&&(f.lines.show=!0)}null==f.lines.zero&&(f.lines.zero=!!f.lines.fill),f.xaxis=S(h,x(f,"x")),f.yaxis=S(p,x(f,"y"))}}(),function(){var t,n,i,o,r,s,l,c,d,u,f,h,p=Number.POSITIVE_INFINITY,m=Number.NEGATIVE_INFINITY,g=Number.MAX_VALUE;function v(e,t,n){t<e.datamin&&t!=-g&&(e.datamin=t),n>e.datamax&&n!=g&&(e.datamax=n)}for(e.each(k(),(function(e,t){t.datamin=p,t.datamax=m,t.used=!1})),t=0;t<a.length;++t)(r=a[t]).datapoints={points:[]},y(_.processRawData,[r,r.data,r.datapoints]);for(t=0;t<a.length;++t){if(f=(r=a[t]).data,!(h=r.datapoints.format)){if((h=[]).push({x:!0,number:!0,required:!0}),h.push({y:!0,number:!0,required:!0}),r.bars.show||r.lines.show&&r.lines.fill){var b=!!(r.bars.show&&r.bars.zero||r.lines.show&&r.lines.zero);h.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:b}),r.bars.horizontal&&(delete h[h.length-1].y,h[h.length-1].x=!0)}r.datapoints.format=h}if(null==r.datapoints.pointsize){r.datapoints.pointsize=h.length,l=r.datapoints.pointsize,s=r.datapoints.points;var w=r.lines.show&&r.lines.steps;for(r.xaxis.used=r.yaxis.used=!0,n=i=0;n<f.length;++n,i+=l){var x=null==(u=f[n]);if(!x)for(o=0;o<l;++o)c=u[o],(d=h[o])&&(d.number&&null!=c&&(c=+c,isNaN(c)?c=null:c==1/0?c=g:c==-1/0&&(c=-g)),null==c&&(d.required&&(x=!0),null!=d.defaultValue&&(c=d.defaultValue))),s[i+o]=c;if(x)for(o=0;o<l;++o)null!=(c=s[i+o])&&!1!==(d=h[o]).autoscale&&(d.x&&v(r.xaxis,c,c),d.y&&v(r.yaxis,c,c)),s[i+o]=null;else if(w&&i>0&&null!=s[i-l]&&s[i-l]!=s[i]&&s[i-l+1]!=s[i+1]){for(o=0;o<l;++o)s[i+l+o]=s[i+o];s[i+1]=s[i-l+1],i+=l}}}}for(t=0;t<a.length;++t)r=a[t],y(_.processDatapoints,[r,r.datapoints]);for(t=0;t<a.length;++t){s=(r=a[t]).datapoints.points,l=r.datapoints.pointsize,h=r.datapoints.format;var C=p,S=p,T=m,j=m;for(n=0;n<s.length;n+=l)if(null!=s[n])for(o=0;o<l;++o)c=s[n+o],(d=h[o])&&!1!==d.autoscale&&c!=g&&c!=-g&&(d.x&&(c<C&&(C=c),c>T&&(T=c)),d.y&&(c<S&&(S=c),c>j&&(j=c)));if(r.bars.show){var E;switch(r.bars.align){case"left":E=0;break;case"right":E=-r.bars.barWidth;break;default:E=-r.bars.barWidth/2}r.bars.horizontal?(S+=E,j+=E+r.bars.barWidth):(C+=E,T+=E+r.bars.barWidth)}v(r.xaxis,C,T),v(r.yaxis,S,j)}e.each(k(),(function(e,t){t.datamin==p&&(t.datamin=null),t.datamax==m&&(t.datamax=null)}))}()}function x(e,t){var n=e[t+"axis"];return"object"==typeof n&&(n=n.n),"number"!=typeof n&&(n=1),n}function k(){return e.grep(h.concat(p),(function(e){return e}))}function C(e){var t,n,i={};for(t=0;t<h.length;++t)(n=h[t])&&n.used&&(i["x"+n.n]=n.c2p(e.left));for(t=0;t<p.length;++t)(n=p[t])&&n.used&&(i["y"+n.n]=n.c2p(e.top));return void 0!==i.x1&&(i.x=i.x1),void 0!==i.y1&&(i.y=i.y1),i}function S(t,n){return t[n-1]||(t[n-1]={n,direction:t==h?"x":"y",options:e.extend(!0,{},t==h?s.xaxis:s.yaxis)}),t[n-1]}function T(){z&&clearTimeout(z),d.unbind("mousemove",N),d.unbind("mouseleave",q),d.unbind("click",D),y(_.shutdown,[d])}function j(t){var n=t.labelWidth,i=t.labelHeight,o=t.options.position,r="x"===t.direction,a=t.options.tickLength,c=s.grid.axisMargin,d=s.grid.labelMargin,u=!0,f=!0,g=!0,v=!1;e.each(r?h:p,(function(e,n){n&&(n.show||n.reserveSpace)&&(n===t?v=!0:n.options.position===o&&(v?f=!1:u=!1),v||(g=!1))})),f&&(c=0),null==a&&(a=g?"full":5),isNaN(+a)||(d+=+a),r?(i+=d,"bottom"==o?(m.bottom+=i+c,t.box={top:l.height-m.bottom,height:i}):(t.box={top:m.top+c,height:i},m.top+=i+c)):(n+=d,"left"==o?(t.box={left:m.left+c,width:n},m.left+=n+c):(m.right+=n+c,t.box={left:l.width-m.right,width:n})),t.position=o,t.tickLength=a,t.box.padding=d,t.innermost=u}function E(){var n,i=k(),o=s.grid.show;for(var r in m){var c=s.grid.margin||0;m[r]="number"==typeof c?c:c[r]||0}for(var r in y(_.processOffset,[m]),m)"object"==typeof s.grid.borderWidth?m[r]+=o?s.grid.borderWidth[r]:0:m[r]+=o?s.grid.borderWidth:0;if(e.each(i,(function(e,t){var n=t.options;t.show=null==n.show?t.used:n.show,t.reserveSpace=null==n.reserveSpace?t.show:n.reserveSpace,function(e){var t=e.options,n=+(null!=t.min?t.min:e.datamin),i=+(null!=t.max?t.max:e.datamax),o=i-n;if(0==o){var r=0==i?1:.01;null==t.min&&(n-=r),null!=t.max&&null==t.min||(i+=r)}else{var a=t.autoscaleMargin;null!=a&&(null==t.min&&(n-=o*a)<0&&null!=e.datamin&&e.datamin>=0&&(n=0),null==t.max&&(i+=o*a)>0&&null!=e.datamax&&e.datamax<=0&&(i=0))}e.min=n,e.max=i}(t)})),o){var d=e.grep(i,(function(e){return e.show||e.reserveSpace}));for(e.each(d,(function(t,n){!function(t){var n,i=t.options;n="number"==typeof i.ticks&&i.ticks>0?i.ticks:.3*Math.sqrt("x"==t.direction?l.width:l.height);var o=(t.max-t.min)/n,r=-Math.floor(Math.log(o)/Math.LN10),a=i.tickDecimals;null!=a&&r>a&&(r=a);var s,c=Math.pow(10,-r),d=o/c;d<1.5?s=1:d<3?(s=2,d>2.25&&(null==a||r+1<=a)&&(s=2.5,++r)):s=d<7.5?5:10;s*=c,null!=i.minTickSize&&s<i.minTickSize&&(s=i.minTickSize);if(t.delta=o,t.tickDecimals=Math.max(0,null!=a?a:r),t.tickSize=i.tickSize||s,"time"==i.mode&&!t.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");t.tickGenerator||(t.tickGenerator=function(e){var t,n,i,o=[],r=(n=e.min,(i=e.tickSize)*Math.floor(n/i)),a=0,s=Number.NaN;do{t=s,s=r+a*e.tickSize,o.push(s),++a}while(s<e.max&&s!=t);return o},t.tickFormatter=function(e,t){var n=t.tickDecimals?Math.pow(10,t.tickDecimals):1,i=""+Math.round(e*n)/n;if(null!=t.tickDecimals){var o=i.indexOf("."),r=-1==o?0:i.length-o-1;if(r<t.tickDecimals)return(r?i:i+".")+(""+n).substr(1,t.tickDecimals-r)}return i});e.isFunction(i.tickFormatter)&&(t.tickFormatter=function(e,t){return""+i.tickFormatter(e,t)});if(null!=i.alignTicksWithAxis){var u=("x"==t.direction?h:p)[i.alignTicksWithAxis-1];if(u&&u.used&&u!=t){var f=t.tickGenerator(t);if(f.length>0&&(null==i.min&&(t.min=Math.min(t.min,f[0])),null==i.max&&f.length>1&&(t.max=Math.max(t.max,f[f.length-1]))),t.tickGenerator=function(e){var t,n,i=[];for(n=0;n<u.ticks.length;++n)t=(u.ticks[n].v-u.min)/(u.max-u.min),t=e.min+t*(e.max-e.min),i.push(t);return i},!t.mode&&null==i.tickDecimals){var m=Math.max(0,1-Math.floor(Math.log(t.delta)/Math.LN10)),g=t.tickGenerator(t);g.length>1&&/\..*0$/.test((g[1]-g[0]).toFixed(m))||(t.tickDecimals=m)}}}}(n),function(t){var n,i,o=t.options.ticks,r=[];null==o||"number"==typeof o&&o>0?r=t.tickGenerator(t):o&&(r=e.isFunction(o)?o(t):o);for(t.ticks=[],n=0;n<r.length;++n){var a=null,s=r[n];"object"==typeof s?(i=+s[0],s.length>1&&(a=s[1])):i=+s,null==a&&(a=t.tickFormatter(i,t)),isNaN(i)||t.ticks.push({v:i,label:a})}}(n),function(e,t){e.options.autoscaleMargin&&t.length>0&&(null==e.options.min&&(e.min=Math.min(e.min,t[0].v)),null==e.options.max&&t.length>1&&(e.max=Math.max(e.max,t[t.length-1].v)))}(n,n.ticks),function(e){for(var t=e.options,n=e.ticks||[],i=t.labelWidth||0,o=t.labelHeight||0,r=i||("x"==e.direction?Math.floor(l.width/(n.length||1)):null),a=e.direction+"Axis "+e.direction+e.n+"Axis",s="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+a,c=t.font||"flot-tick-label tickLabel",d=0;d<n.length;++d){var u=n[d];if(u.label){var f=l.getTextInfo(s,u.label,c,null,r);i=Math.max(i,f.width),o=Math.max(o,f.height)}}e.labelWidth=t.labelWidth||i,e.labelHeight=t.labelHeight||o}(n)})),n=d.length-1;n>=0;--n)j(d[n]);!function(){var t,n=s.grid.minBorderMargin;if(null==n)for(n=0,t=0;t<a.length;++t)n=Math.max(n,2*(a[t].points.radius+a[t].points.lineWidth/2));var i={left:n,right:n,top:n,bottom:n};e.each(k(),(function(e,t){t.reserveSpace&&t.ticks&&t.ticks.length&&("x"===t.direction?(i.left=Math.max(i.left,t.labelWidth/2),i.right=Math.max(i.right,t.labelWidth/2)):(i.bottom=Math.max(i.bottom,t.labelHeight/2),i.top=Math.max(i.top,t.labelHeight/2)))})),m.left=Math.ceil(Math.max(i.left,m.left)),m.right=Math.ceil(Math.max(i.right,m.right)),m.top=Math.ceil(Math.max(i.top,m.top)),m.bottom=Math.ceil(Math.max(i.bottom,m.bottom))}(),e.each(d,(function(e,t){!function(e){"x"==e.direction?(e.box.left=m.left-e.labelWidth/2,e.box.width=l.width-m.left-m.right+e.labelWidth):(e.box.top=m.top-e.labelHeight/2,e.box.height=l.height-m.bottom-m.top+e.labelHeight)}(t)}))}g=l.width-m.left-m.right,v=l.height-m.bottom-m.top,e.each(i,(function(e,t){!function(e){function t(e){return e}var n,i,o=e.options.transform||t,r=e.options.inverseTransform;"x"==e.direction?(n=e.scale=g/Math.abs(o(e.max)-o(e.min)),i=Math.min(o(e.max),o(e.min))):(n=-(n=e.scale=v/Math.abs(o(e.max)-o(e.min))),i=Math.max(o(e.max),o(e.min))),e.p2c=o==t?function(e){return(e-i)*n}:function(e){return(o(e)-i)*n},e.c2p=r?function(e){return r(i+e/n)}:function(e){return i+e/n}}(t)})),o&&e.each(k(),(function(e,t){var n,i,o,r,a,s=t.box,c=t.direction+"Axis "+t.direction+t.n+"Axis",d="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+c,u=t.options.font||"flot-tick-label tickLabel";if(l.removeText(d),t.show&&0!=t.ticks.length)for(var f=0;f<t.ticks.length;++f)!(n=t.ticks[f]).label||n.v<t.min||n.v>t.max||("x"==t.direction?(r="center",i=m.left+t.p2c(n.v),"bottom"==t.position?o=s.top+s.padding:(o=s.top+s.height-s.padding,a="bottom")):(a="middle",o=m.top+t.p2c(n.v),"left"==t.position?(i=s.left+s.width-s.padding,r="right"):i=s.left+s.padding),l.addText(d,i,o,n.label,u,null,null,r,a))})),function(){null!=s.legend.container?e(s.legend.container).html(""):t.find(".legend").remove();if(!s.legend.show)return;for(var n,i,o=[],r=[],l=!1,c=s.legend.labelFormatter,d=0;d<a.length;++d)(n=a[d]).label&&(i=c?c(n.label,n):n.label)&&r.push({label:i,color:n.color});if(s.legend.sorted)if(e.isFunction(s.legend.sorted))r.sort(s.legend.sorted);else if("reverse"==s.legend.sorted)r.reverse();else{var u="descending"!=s.legend.sorted;r.sort((function(e,t){return e.label==t.label?0:e.label<t.label!=u?1:-1}))}for(d=0;d<r.length;++d){var f=r[d];d%s.legend.noColumns==0&&(l&&o.push("</tr>"),o.push("<tr>"),l=!0),o.push('<td class="legendColorBox"><div style="border:1px solid '+s.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+f.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+f.label+"</td>")}l&&o.push("</tr>");if(0==o.length)return;var h='<table style="font-size:smaller;color:'+s.grid.color+'">'+o.join("")+"</table>";if(null!=s.legend.container)e(s.legend.container).html(h);else{var p="",g=s.legend.position,v=s.legend.margin;null==v[0]&&(v=[v,v]),"n"==g.charAt(0)?p+="top:"+(v[1]+m.top)+"px;":"s"==g.charAt(0)&&(p+="bottom:"+(v[1]+m.bottom)+"px;"),"e"==g.charAt(1)?p+="right:"+(v[0]+m.right)+"px;":"w"==g.charAt(1)&&(p+="left:"+(v[0]+m.left)+"px;");var _=e('<div class="legend">'+h.replace('style="','style="position:absolute;'+p+";")+"</div>").appendTo(t);if(0!=s.legend.backgroundOpacity){var b=s.legend.backgroundColor;null==b&&((b=(b=s.grid.backgroundColor)&&"string"==typeof b?e.color.parse(b):e.color.extract(_,"background-color")).a=1,b=b.toString());var y=_.children();e('<div style="position:absolute;width:'+y.width()+"px;height:"+y.height()+"px;"+p+"background-color:"+b+';"> </div>').prependTo(_).css("opacity",s.legend.backgroundOpacity)}}}()}function I(){l.clear(),y(_.drawBackground,[u]);var e=s.grid;e.show&&e.backgroundColor&&(u.save(),u.translate(m.left,m.top),u.fillStyle=Y(s.grid.backgroundColor,v,0,"rgba(255, 255, 255, 0)"),u.fillRect(0,0,g,v),u.restore()),e.show&&!e.aboveData&&M();for(var t=0;t<a.length;++t)y(_.drawSeries,[u,a[t]]),A(a[t]);y(_.draw,[u]),e.show&&e.aboveData&&M(),l.render(),W()}function G(e,t){for(var n,i,o,r,a=k(),s=0;s<a.length;++s)if((n=a[s]).direction==t&&(e[r=t+n.n+"axis"]||1!=n.n||(r=t+"axis"),e[r])){i=e[r].from,o=e[r].to;break}if(e[r]||(n="x"==t?h[0]:p[0],i=e[t+"1"],o=e[t+"2"]),null!=i&&null!=o&&i>o){var l=i;i=o,o=l}return{from:i,to:o,axis:n}}function M(){var t,n,i,o;u.save(),u.translate(m.left,m.top);var r=s.grid.markings;if(r)for(e.isFunction(r)&&((n=b.getAxes()).xmin=n.xaxis.min,n.xmax=n.xaxis.max,n.ymin=n.yaxis.min,n.ymax=n.yaxis.max,r=r(n)),t=0;t<r.length;++t){var a=r[t],l=G(a,"x"),c=G(a,"y");if(null==l.from&&(l.from=l.axis.min),null==l.to&&(l.to=l.axis.max),null==c.from&&(c.from=c.axis.min),null==c.to&&(c.to=c.axis.max),!(l.to<l.axis.min||l.from>l.axis.max||c.to<c.axis.min||c.from>c.axis.max)){l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max),c.from=Math.max(c.from,c.axis.min),c.to=Math.min(c.to,c.axis.max);var d=l.from===l.to,f=c.from===c.to;if(!d||!f)if(l.from=Math.floor(l.axis.p2c(l.from)),l.to=Math.floor(l.axis.p2c(l.to)),c.from=Math.floor(c.axis.p2c(c.from)),c.to=Math.floor(c.axis.p2c(c.to)),d||f){var h=a.lineWidth||s.grid.markingsLineWidth,p=h%2?.5:0;u.beginPath(),u.strokeStyle=a.color||s.grid.markingsColor,u.lineWidth=h,d?(u.moveTo(l.to+p,c.from),u.lineTo(l.to+p,c.to)):(u.moveTo(l.from,c.to+p),u.lineTo(l.to,c.to+p)),u.stroke()}else u.fillStyle=a.color||s.grid.markingsColor,u.fillRect(l.from,c.to,l.to-l.from,c.from-c.to)}}n=k(),i=s.grid.borderWidth;for(var _=0;_<n.length;++_){var y,w,x,C,S=n[_],T=S.box,j=S.tickLength;if(S.show&&0!=S.ticks.length){for(u.lineWidth=1,"x"==S.direction?(y=0,w="full"==j?"top"==S.position?0:v:T.top-m.top+("top"==S.position?T.height:0)):(w=0,y="full"==j?"left"==S.position?0:g:T.left-m.left+("left"==S.position?T.width:0)),S.innermost||(u.strokeStyle=S.options.color,u.beginPath(),x=C=0,"x"==S.direction?x=g+1:C=v+1,1==u.lineWidth&&("x"==S.direction?w=Math.floor(w)+.5:y=Math.floor(y)+.5),u.moveTo(y,w),u.lineTo(y+x,w+C),u.stroke()),u.strokeStyle=S.options.tickColor,u.beginPath(),t=0;t<S.ticks.length;++t){var E=S.ticks[t].v;x=C=0,isNaN(E)||E<S.min||E>S.max||"full"==j&&("object"==typeof i&&i[S.position]>0||i>0)&&(E==S.min||E==S.max)||("x"==S.direction?(y=S.p2c(E),C="full"==j?-v:j,"top"==S.position&&(C=-C)):(w=S.p2c(E),x="full"==j?-g:j,"left"==S.position&&(x=-x)),1==u.lineWidth&&("x"==S.direction?y=Math.floor(y)+.5:w=Math.floor(w)+.5),u.moveTo(y,w),u.lineTo(y+x,w+C))}u.stroke()}}i&&(o=s.grid.borderColor,"object"==typeof i||"object"==typeof o?("object"!=typeof i&&(i={top:i,right:i,bottom:i,left:i}),"object"!=typeof o&&(o={top:o,right:o,bottom:o,left:o}),i.top>0&&(u.strokeStyle=o.top,u.lineWidth=i.top,u.beginPath(),u.moveTo(0-i.left,0-i.top/2),u.lineTo(g,0-i.top/2),u.stroke()),i.right>0&&(u.strokeStyle=o.right,u.lineWidth=i.right,u.beginPath(),u.moveTo(g+i.right/2,0-i.top),u.lineTo(g+i.right/2,v),u.stroke()),i.bottom>0&&(u.strokeStyle=o.bottom,u.lineWidth=i.bottom,u.beginPath(),u.moveTo(g+i.right,v+i.bottom/2),u.lineTo(0,v+i.bottom/2),u.stroke()),i.left>0&&(u.strokeStyle=o.left,u.lineWidth=i.left,u.beginPath(),u.moveTo(0-i.left/2,v+i.bottom),u.lineTo(0-i.left/2,0),u.stroke())):(u.lineWidth=i,u.strokeStyle=s.grid.borderColor,u.strokeRect(-i/2,-i/2,g+i,v+i))),u.restore()}function A(e){e.lines.show&&function(e){function t(e,t,n,i,o){var r=e.points,a=e.pointsize,s=null,l=null;u.beginPath();for(var c=a;c<r.length;c+=a){var d=r[c-a],f=r[c-a+1],h=r[c],p=r[c+1];if(null!=d&&null!=h){if(f<=p&&f<o.min){if(p<o.min)continue;d=(o.min-f)/(p-f)*(h-d)+d,f=o.min}else if(p<=f&&p<o.min){if(f<o.min)continue;h=(o.min-f)/(p-f)*(h-d)+d,p=o.min}if(f>=p&&f>o.max){if(p>o.max)continue;d=(o.max-f)/(p-f)*(h-d)+d,f=o.max}else if(p>=f&&p>o.max){if(f>o.max)continue;h=(o.max-f)/(p-f)*(h-d)+d,p=o.max}if(d<=h&&d<i.min){if(h<i.min)continue;f=(i.min-d)/(h-d)*(p-f)+f,d=i.min}else if(h<=d&&h<i.min){if(d<i.min)continue;p=(i.min-d)/(h-d)*(p-f)+f,h=i.min}if(d>=h&&d>i.max){if(h>i.max)continue;f=(i.max-d)/(h-d)*(p-f)+f,d=i.max}else if(h>=d&&h>i.max){if(d>i.max)continue;p=(i.max-d)/(h-d)*(p-f)+f,h=i.max}d==s&&f==l||u.moveTo(i.p2c(d)+t,o.p2c(f)+n),s=h,l=p,u.lineTo(i.p2c(h)+t,o.p2c(p)+n)}}u.stroke()}function n(e,t,n){for(var i=e.points,o=e.pointsize,r=Math.min(Math.max(0,n.min),n.max),a=0,s=!1,l=1,c=0,d=0;!(o>0&&a>i.length+o);){var f=i[(a+=o)-o],h=i[a-o+l],p=i[a],m=i[a+l];if(s){if(o>0&&null!=f&&null==p){d=a,o=-o,l=2;continue}if(o<0&&a==c+o){u.fill(),s=!1,l=1,a=c=d+(o=-o);continue}}if(null!=f&&null!=p){if(f<=p&&f<t.min){if(p<t.min)continue;h=(t.min-f)/(p-f)*(m-h)+h,f=t.min}else if(p<=f&&p<t.min){if(f<t.min)continue;m=(t.min-f)/(p-f)*(m-h)+h,p=t.min}if(f>=p&&f>t.max){if(p>t.max)continue;h=(t.max-f)/(p-f)*(m-h)+h,f=t.max}else if(p>=f&&p>t.max){if(f>t.max)continue;m=(t.max-f)/(p-f)*(m-h)+h,p=t.max}if(s||(u.beginPath(),u.moveTo(t.p2c(f),n.p2c(r)),s=!0),h>=n.max&&m>=n.max)u.lineTo(t.p2c(f),n.p2c(n.max)),u.lineTo(t.p2c(p),n.p2c(n.max));else if(h<=n.min&&m<=n.min)u.lineTo(t.p2c(f),n.p2c(n.min)),u.lineTo(t.p2c(p),n.p2c(n.min));else{var g=f,v=p;h<=m&&h<n.min&&m>=n.min?(f=(n.min-h)/(m-h)*(p-f)+f,h=n.min):m<=h&&m<n.min&&h>=n.min&&(p=(n.min-h)/(m-h)*(p-f)+f,m=n.min),h>=m&&h>n.max&&m<=n.max?(f=(n.max-h)/(m-h)*(p-f)+f,h=n.max):m>=h&&m>n.max&&h<=n.max&&(p=(n.max-h)/(m-h)*(p-f)+f,m=n.max),f!=g&&u.lineTo(t.p2c(g),n.p2c(h)),u.lineTo(t.p2c(f),n.p2c(h)),u.lineTo(t.p2c(p),n.p2c(m)),p!=v&&(u.lineTo(t.p2c(p),n.p2c(m)),u.lineTo(t.p2c(v),n.p2c(m)))}}}}u.save(),u.translate(m.left,m.top),u.lineJoin="round";var i=e.lines.lineWidth,o=e.shadowSize;if(i>0&&o>0){u.lineWidth=o,u.strokeStyle="rgba(0,0,0,0.1)";var r=Math.PI/18;t(e.datapoints,Math.sin(r)*(i/2+o/2),Math.cos(r)*(i/2+o/2),e.xaxis,e.yaxis),u.lineWidth=o/2,t(e.datapoints,Math.sin(r)*(i/2+o/4),Math.cos(r)*(i/2+o/4),e.xaxis,e.yaxis)}u.lineWidth=i,u.strokeStyle=e.color;var a=P(e.lines,e.color,0,v);a&&(u.fillStyle=a,n(e.datapoints,e.xaxis,e.yaxis));i>0&&t(e.datapoints,0,0,e.xaxis,e.yaxis);u.restore()}(e),e.bars.show&&function(e){function t(t,n,i,o,r,a){for(var s=t.points,l=t.pointsize,c=0;c<s.length;c+=l)null!=s[c]&&O(s[c],s[c+1],s[c+2],n,i,o,r,a,u,e.bars.horizontal,e.bars.lineWidth)}var n;switch(u.save(),u.translate(m.left,m.top),u.lineWidth=e.bars.lineWidth,u.strokeStyle=e.color,e.bars.align){case"left":n=0;break;case"right":n=-e.bars.barWidth;break;default:n=-e.bars.barWidth/2}var i=e.bars.fill?function(t,n){return P(e.bars,e.color,t,n)}:null;t(e.datapoints,n,n+e.bars.barWidth,i,e.xaxis,e.yaxis),u.restore()}(e),e.points.show&&function(e){function t(e,t,n,i,o,r,a,s){for(var l=e.points,c=e.pointsize,d=0;d<l.length;d+=c){var f=l[d],h=l[d+1];null==f||f<r.min||f>r.max||h<a.min||h>a.max||(u.beginPath(),f=r.p2c(f),h=a.p2c(h)+i,"circle"==s?u.arc(f,h,t,0,o?Math.PI:2*Math.PI,!1):s(u,f,h,t,o),u.closePath(),n&&(u.fillStyle=n,u.fill()),u.stroke())}}u.save(),u.translate(m.left,m.top);var n=e.points.lineWidth,i=e.shadowSize,o=e.points.radius,r=e.points.symbol;0==n&&(n=1e-4);if(n>0&&i>0){var a=i/2;u.lineWidth=a,u.strokeStyle="rgba(0,0,0,0.1)",t(e.datapoints,o,null,a+a/2,!0,e.xaxis,e.yaxis,r),u.strokeStyle="rgba(0,0,0,0.2)",t(e.datapoints,o,null,a/2,!0,e.xaxis,e.yaxis,r)}u.lineWidth=n,u.strokeStyle=e.color,t(e.datapoints,o,P(e.points,e.color),0,!1,e.xaxis,e.yaxis,r),u.restore()}(e)}function O(e,t,n,i,o,r,a,s,l,c,d){var u,f,h,p,m,g,v,_,b;c?(_=g=v=!0,m=!1,p=t+i,h=t+o,(f=e)<(u=n)&&(b=f,f=u,u=b,m=!0,g=!1)):(m=g=v=!0,_=!1,u=e+i,f=e+o,(p=t)<(h=n)&&(b=p,p=h,h=b,_=!0,v=!1)),f<a.min||u>a.max||p<s.min||h>s.max||(u<a.min&&(u=a.min,m=!1),f>a.max&&(f=a.max,g=!1),h<s.min&&(h=s.min,_=!1),p>s.max&&(p=s.max,v=!1),u=a.p2c(u),h=s.p2c(h),f=a.p2c(f),p=s.p2c(p),r&&(l.fillStyle=r(h,p),l.fillRect(u,p,f-u,h-p)),d>0&&(m||g||v||_)&&(l.beginPath(),l.moveTo(u,h),m?l.lineTo(u,p):l.moveTo(u,p),v?l.lineTo(f,p):l.moveTo(f,p),g?l.lineTo(f,h):l.moveTo(f,h),_?l.lineTo(u,h):l.moveTo(u,h),l.stroke()))}function P(t,n,i,o){var r=t.fill;if(!r)return null;if(t.fillColor)return Y(t.fillColor,i,o,n);var a=e.color.parse(n);return a.a="number"==typeof r?r:.4,a.normalize(),a.toString()}b.setData=w,b.setupGrid=E,b.draw=I,b.getPlaceholder=function(){return t},b.getCanvas=function(){return l.element},b.getPlotOffset=function(){return m},b.width=function(){return g},b.height=function(){return v},b.offset=function(){var e=d.offset();return e.left+=m.left,e.top+=m.top,e},b.getData=function(){return a},b.getAxes=function(){var t={};return e.each(h.concat(p),(function(e,n){n&&(t[n.direction+(1!=n.n?n.n:"")+"axis"]=n)})),t},b.getXAxes=function(){return h},b.getYAxes=function(){return p},b.c2p=C,b.p2c=function(e){var t,n,i,o={};for(t=0;t<h.length;++t)if((n=h[t])&&n.used&&(i="x"+n.n,null==e[i]&&1==n.n&&(i="x"),null!=e[i])){o.left=n.p2c(e[i]);break}for(t=0;t<p.length;++t)if((n=p[t])&&n.used&&(i="y"+n.n,null==e[i]&&1==n.n&&(i="y"),null!=e[i])){o.top=n.p2c(e[i]);break}return o},b.getOptions=function(){return s},b.highlight=R,b.unhighlight=B,b.triggerRedrawOverlay=W,b.pointOffset=function(e){return{left:parseInt(h[x(e,"x")-1].p2c(+e.x)+m.left,10),top:parseInt(p[x(e,"y")-1].p2c(+e.y)+m.top,10)}},b.shutdown=T,b.destroy=function(){T(),t.removeData("plot").empty(),a=[],s=null,l=null,c=null,d=null,u=null,f=null,h=[],p=[],_=null,L=[],b=null},b.resize=function(){var e=t.width(),n=t.height();l.resize(e,n),c.resize(e,n)},b.hooks=_,function(){for(var t={Canvas:n},i=0;i<r.length;++i){var o=r[i];o.init(b,t),o.options&&e.extend(!0,s,o.options)}}(),function(n){e.extend(!0,s,n),n&&n.colors&&(s.colors=n.colors);null==s.xaxis.color&&(s.xaxis.color=e.color.parse(s.grid.color).scale("a",.22).toString());null==s.yaxis.color&&(s.yaxis.color=e.color.parse(s.grid.color).scale("a",.22).toString());null==s.xaxis.tickColor&&(s.xaxis.tickColor=s.grid.tickColor||s.xaxis.color);null==s.yaxis.tickColor&&(s.yaxis.tickColor=s.grid.tickColor||s.yaxis.color);null==s.grid.borderColor&&(s.grid.borderColor=s.grid.color);null==s.grid.tickColor&&(s.grid.tickColor=e.color.parse(s.grid.color).scale("a",.22).toString());var i,o,r,a=t.css("font-size"),l=a?+a.replace("px",""):13,c={style:t.css("font-style"),size:Math.round(.8*l),variant:t.css("font-variant"),weight:t.css("font-weight"),family:t.css("font-family")};for(r=s.xaxes.length||1,i=0;i<r;++i)(o=s.xaxes[i])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},s.xaxis,o),s.xaxes[i]=o,o.font&&(o.font=e.extend({},c,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));for(r=s.yaxes.length||1,i=0;i<r;++i)(o=s.yaxes[i])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},s.yaxis,o),s.yaxes[i]=o,o.font&&(o.font=e.extend({},c,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));s.xaxis.noTicks&&null==s.xaxis.ticks&&(s.xaxis.ticks=s.xaxis.noTicks);s.yaxis.noTicks&&null==s.yaxis.ticks&&(s.yaxis.ticks=s.yaxis.noTicks);s.x2axis&&(s.xaxes[1]=e.extend(!0,{},s.xaxis,s.x2axis),s.xaxes[1].position="top",null==s.x2axis.min&&(s.xaxes[1].min=null),null==s.x2axis.max&&(s.xaxes[1].max=null));s.y2axis&&(s.yaxes[1]=e.extend(!0,{},s.yaxis,s.y2axis),s.yaxes[1].position="right",null==s.y2axis.min&&(s.yaxes[1].min=null),null==s.y2axis.max&&(s.yaxes[1].max=null));s.grid.coloredAreas&&(s.grid.markings=s.grid.coloredAreas);s.grid.coloredAreasColor&&(s.grid.markingsColor=s.grid.coloredAreasColor);s.lines&&e.extend(!0,s.series.lines,s.lines);s.points&&e.extend(!0,s.series.points,s.points);s.bars&&e.extend(!0,s.series.bars,s.bars);null!=s.shadowSize&&(s.series.shadowSize=s.shadowSize);null!=s.highlightColor&&(s.series.highlightColor=s.highlightColor);for(i=0;i<s.xaxes.length;++i)S(h,i+1).options=s.xaxes[i];for(i=0;i<s.yaxes.length;++i)S(p,i+1).options=s.yaxes[i];for(var d in _)s.hooks[d]&&s.hooks[d].length&&(_[d]=_[d].concat(s.hooks[d]));y(_.processOptions,[s])}(o),function(){t.css("padding",0).children().filter((function(){return!e(this).hasClass("flot-overlay")&&!e(this).hasClass("flot-base")})).remove(),"static"==t.css("position")&&t.css("position","relative");l=new n("flot-base",t),c=new n("flot-overlay",t),u=l.context,f=c.context,d=e(c.element).unbind();var i=t.data("plot");i&&(i.shutdown(),c.clear());t.data("plot",b)}(),w(i),E(),I(),function(){s.grid.hoverable&&(d.mousemove(N),d.bind("mouseleave",q));s.grid.clickable&&d.click(D);y(_.bindEvents,[d])}();var L=[],z=null;function N(e){s.grid.hoverable&&F("plothover",e,(function(e){return 0!=e.hoverable}))}function q(e){s.grid.hoverable&&F("plothover",e,(function(e){return!1}))}function D(e){F("plotclick",e,(function(e){return 0!=e.clickable}))}function F(e,n,i){var o=d.offset(),r=n.pageX-o.left-m.left,l=n.pageY-o.top-m.top,c=C({left:r,top:l});c.pageX=n.pageX,c.pageY=n.pageY;var u=function(e,t,n){var i,o,r,l=s.grid.mouseActiveRadius,c=l*l+1,d=null;for(i=a.length-1;i>=0;--i)if(n(a[i])){var u=a[i],f=u.xaxis,h=u.yaxis,p=u.datapoints.points,m=f.c2p(e),g=h.c2p(t),v=l/f.scale,_=l/h.scale;if(r=u.datapoints.pointsize,f.options.inverseTransform&&(v=Number.MAX_VALUE),h.options.inverseTransform&&(_=Number.MAX_VALUE),u.lines.show||u.points.show)for(o=0;o<p.length;o+=r){var b=p[o],y=p[o+1];if(null!=b&&!(b-m>v||b-m<-v||y-g>_||y-g<-_)){var w=Math.abs(f.p2c(b)-e),x=Math.abs(h.p2c(y)-t),k=w*w+x*x;k<c&&(c=k,d=[i,o/r])}}if(u.bars.show&&!d){var C,S;switch(u.bars.align){case"left":C=0;break;case"right":C=-u.bars.barWidth;break;default:C=-u.bars.barWidth/2}for(S=C+u.bars.barWidth,o=0;o<p.length;o+=r){b=p[o],y=p[o+1];var T=p[o+2];null!=b&&(a[i].bars.horizontal?m<=Math.max(T,b)&&m>=Math.min(T,b)&&g>=y+C&&g<=y+S:m>=b+C&&m<=b+S&&g>=Math.min(T,y)&&g<=Math.max(T,y))&&(d=[i,o/r])}}}return d?(i=d[0],o=d[1],r=a[i].datapoints.pointsize,{datapoint:a[i].datapoints.points.slice(o*r,(o+1)*r),dataIndex:o,series:a[i],seriesIndex:i}):null}(r,l,i);if(u&&(u.pageX=parseInt(u.series.xaxis.p2c(u.datapoint[0])+o.left+m.left,10),u.pageY=parseInt(u.series.yaxis.p2c(u.datapoint[1])+o.top+m.top,10)),s.grid.autoHighlight){for(var f=0;f<L.length;++f){var h=L[f];h.auto!=e||u&&h.series==u.series&&h.point[0]==u.datapoint[0]&&h.point[1]==u.datapoint[1]||B(h.series,h.point)}u&&R(u.series,u.datapoint,e)}t.trigger(e,[c,u])}function W(){var e=s.interaction.redrawOverlayInterval;-1!=e?z||(z=setTimeout(Q,e)):Q()}function Q(){var e,t;for(z=null,f.save(),c.clear(),f.translate(m.left,m.top),e=0;e<L.length;++e)(t=L[e]).series.bars.show?U(t.series,t.point):H(t.series,t.point);f.restore(),y(_.drawOverlay,[f])}function R(e,t,n){if("number"==typeof e&&(e=a[e]),"number"==typeof t){var i=e.datapoints.pointsize;t=e.datapoints.points.slice(i*t,i*(t+1))}var o=V(e,t);-1==o?(L.push({series:e,point:t,auto:n}),W()):n||(L[o].auto=!1)}function B(e,t){if(null==e&&null==t)return L=[],void W();if("number"==typeof e&&(e=a[e]),"number"==typeof t){var n=e.datapoints.pointsize;t=e.datapoints.points.slice(n*t,n*(t+1))}var i=V(e,t);-1!=i&&(L.splice(i,1),W())}function V(e,t){for(var n=0;n<L.length;++n){var i=L[n];if(i.series==e&&i.point[0]==t[0]&&i.point[1]==t[1])return n}return-1}function H(t,n){var i=n[0],o=n[1],r=t.xaxis,a=t.yaxis,s="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString();if(!(i<r.min||i>r.max||o<a.min||o>a.max)){var l=t.points.radius+t.points.lineWidth/2;f.lineWidth=l,f.strokeStyle=s;var c=1.5*l;i=r.p2c(i),o=a.p2c(o),f.beginPath(),"circle"==t.points.symbol?f.arc(i,o,c,0,2*Math.PI,!1):t.points.symbol(f,i,o,c,!1),f.closePath(),f.stroke()}}function U(t,n){var i,o="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString(),r=o;switch(t.bars.align){case"left":i=0;break;case"right":i=-t.bars.barWidth;break;default:i=-t.bars.barWidth/2}f.lineWidth=t.bars.lineWidth,f.strokeStyle=o,O(n[0],n[1],n[2]||0,i,i+t.bars.barWidth,(function(){return r}),t.xaxis,t.yaxis,f,t.bars.horizontal,t.bars.lineWidth)}function Y(t,n,i,o){if("string"==typeof t)return t;for(var r=u.createLinearGradient(0,i,0,n),a=0,s=t.colors.length;a<s;++a){var l=t.colors[a];if("string"!=typeof l){var c=e.color.parse(o);null!=l.brightness&&(c=c.scale("rgb",l.brightness)),null!=l.opacity&&(c.a*=l.opacity),l=c.toString()}r.addColorStop(a/(s-1),l)}return r}}e.fn.detach||(e.fn.detach=function(){return this.each((function(){this.parentNode&&this.parentNode.removeChild(this)}))}),n.prototype.resize=function(e,t){if(e<=0||t<=0)throw new Error("Invalid dimensions for plot, width = "+e+", height = "+t);var n=this.element,i=this.context,o=this.pixelRatio;this.width!=e&&(n.width=e*o,n.style.width=e+"px",this.width=e),this.height!=t&&(n.height=t*o,n.style.height=t+"px",this.height=t),i.restore(),i.save(),i.scale(o,o)},n.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},n.prototype.render=function(){var e=this._textCache;for(var n in e)if(t.call(e,n)){var i=this.getTextLayer(n),o=e[n];for(var r in i.hide(),o)if(t.call(o,r)){var a=o[r];for(var s in a)if(t.call(a,s)){for(var l,c=a[s].positions,d=0;l=c[d];d++)l.active?l.rendered||(i.append(l.element),l.rendered=!0):(c.splice(d--,1),l.rendered&&l.element.detach());0==c.length&&delete a[s]}}i.show()}},n.prototype.getTextLayer=function(t){var n=this.text[t];return null==n&&(null==this.textContainer&&(this.textContainer=e("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),n=this.text[t]=e("<div></div>").addClass(t).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),n},n.prototype.getTextInfo=function(t,n,i,o,r){var a,s,l,c;if(n=""+n,a="object"==typeof i?i.style+" "+i.variant+" "+i.weight+" "+i.size+"px/"+i.lineHeight+"px "+i.family:i,null==(s=this._textCache[t])&&(s=this._textCache[t]={}),null==(l=s[a])&&(l=s[a]={}),null==(c=l[n])){var d=e("<div></div>").html(n).css({position:"absolute","max-width":r,top:-9999}).appendTo(this.getTextLayer(t));"object"==typeof i?d.css({font:a,color:i.color}):"string"==typeof i&&d.addClass(i),c=l[n]={width:d.outerWidth(!0),height:d.outerHeight(!0),element:d,positions:[]},d.detach()}return c},n.prototype.addText=function(e,t,n,i,o,r,a,s,l){var c=this.getTextInfo(e,i,o,r,a),d=c.positions;"center"==s?t-=c.width/2:"right"==s&&(t-=c.width),"middle"==l?n-=c.height/2:"bottom"==l&&(n-=c.height);for(var u,f=0;u=d[f];f++)if(u.x==t&&u.y==n)return void(u.active=!0);u={active:!0,rendered:!1,element:d.length?c.element.clone():c.element,x:t,y:n},d.push(u),u.element.css({top:Math.round(n),left:Math.round(t),"text-align":s})},n.prototype.removeText=function(e,n,i,o,r,a){if(null==o){var s=this._textCache[e];if(null!=s)for(var l in s)if(t.call(s,l)){var c=s[l];for(var d in c)if(t.call(c,d))for(var u=c[d].positions,f=0;h=u[f];f++)h.active=!1}}else{var h;for(u=this.getTextInfo(e,o,r,a).positions,f=0;h=u[f];f++)h.x==n&&h.y==i&&(h.active=!1)}},e.plot=function(t,n,o){return new i(e(t),n,o,e.plot.plugins)},e.plot.version="0.8.3",e.plot.plugins=[],e.fn.plot=function(t,n){return this.each((function(){e.plot(this,t,n)}))}}(jQuery)},59868:()=>{!function(e){function t(e,t){return t*Math.floor(e/t)}function n(e,t,n,i){if("function"==typeof e.strftime)return e.strftime(t);var o,r=function(e,t){return t=""+(null==t?"0":t),1==(e=""+e).length?t+e:e},a=[],s=!1,l=e.getHours(),c=l<12;null==n&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==i&&(i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),o=l>12?l-12:0==l?12:l;for(var d=0;d<t.length;++d){var u=t.charAt(d);if(s){switch(u){case"a":u=""+i[e.getDay()];break;case"b":u=""+n[e.getMonth()];break;case"d":u=r(e.getDate());break;case"e":u=r(e.getDate()," ");break;case"h":case"H":u=r(l);break;case"I":u=r(o);break;case"l":u=r(o," ");break;case"m":u=r(e.getMonth()+1);break;case"M":u=r(e.getMinutes());break;case"q":u=""+(Math.floor(e.getMonth()/3)+1);break;case"S":u=r(e.getSeconds());break;case"y":u=r(e.getFullYear()%100);break;case"Y":u=""+e.getFullYear();break;case"p":u=c?"am":"pm";break;case"P":u=c?"AM":"PM";break;case"w":u=""+e.getDay()}a.push(u),s=!1}else"%"==u?s=!0:a.push(u)}return a.join("")}function i(e){function t(e,t,n,i){e[t]=function(){return n[i].apply(n,arguments)}}var n={date:e};null!=e.strftime&&t(n,"strftime",e,"strftime"),t(n,"getTime",e,"getTime"),t(n,"setTime",e,"setTime");for(var i=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],o=0;o<i.length;o++)t(n,"get"+i[o],e,"getUTC"+i[o]),t(n,"set"+i[o],e,"setUTC"+i[o]);return n}function o(e,t){if("browser"==t.timezone)return new Date(e);if(t.timezone&&"utc"!=t.timezone){if("undefined"!=typeof timezoneJS&&void 0!==timezoneJS.Date){var n=new timezoneJS.Date;return n.setTimezone(t.timezone),n.setTime(e),n}return i(new Date(e))}return i(new Date(e))}var r={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},a=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],s=a.concat([[3,"month"],[6,"month"],[1,"year"]]),l=a.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);e.plot.plugins.push({init:function(i){i.hooks.processOptions.push((function(i,a){e.each(i.getAxes(),(function(e,i){var a=i.options;"time"==a.mode&&(i.tickGenerator=function(e){var n=[],i=o(e.min,a),c=0,d=a.tickSize&&"quarter"===a.tickSize[1]||a.minTickSize&&"quarter"===a.minTickSize[1]?l:s;null!=a.minTickSize&&(c="number"==typeof a.tickSize?a.tickSize:a.minTickSize[0]*r[a.minTickSize[1]]);for(var u=0;u<d.length-1&&!(e.delta<(d[u][0]*r[d[u][1]]+d[u+1][0]*r[d[u+1][1]])/2&&d[u][0]*r[d[u][1]]>=c);++u);var f=d[u][0],h=d[u][1];if("year"==h){if(null!=a.minTickSize&&"year"==a.minTickSize[1])f=Math.floor(a.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(e.delta/r.year)/Math.LN10)),m=e.delta/r.year/p;f=m<1.5?1:m<3?2:m<7.5?5:10,f*=p}f<1&&(f=1)}e.tickSize=a.tickSize||[f,h];var g=e.tickSize[0];h=e.tickSize[1];var v=g*r[h];"second"==h?i.setSeconds(t(i.getSeconds(),g)):"minute"==h?i.setMinutes(t(i.getMinutes(),g)):"hour"==h?i.setHours(t(i.getHours(),g)):"month"==h?i.setMonth(t(i.getMonth(),g)):"quarter"==h?i.setMonth(3*t(i.getMonth()/3,g)):"year"==h&&i.setFullYear(t(i.getFullYear(),g)),i.setMilliseconds(0),v>=r.minute&&i.setSeconds(0),v>=r.hour&&i.setMinutes(0),v>=r.day&&i.setHours(0),v>=4*r.day&&i.setDate(1),v>=2*r.month&&i.setMonth(t(i.getMonth(),3)),v>=2*r.quarter&&i.setMonth(t(i.getMonth(),6)),v>=r.year&&i.setMonth(0);var _,b=0,y=Number.NaN;do{if(_=y,y=i.getTime(),n.push(y),"month"==h||"quarter"==h)if(g<1){i.setDate(1);var w=i.getTime();i.setMonth(i.getMonth()+("quarter"==h?3:1));var x=i.getTime();i.setTime(y+b*r.hour+(x-w)*g),b=i.getHours(),i.setHours(0)}else i.setMonth(i.getMonth()+g*("quarter"==h?3:1));else"year"==h?i.setFullYear(i.getFullYear()+g):i.setTime(y+v)}while(y<e.max&&y!=_);return n},i.tickFormatter=function(e,t){var i=o(e,t.options);if(null!=a.timeformat)return n(i,a.timeformat,a.monthNames,a.dayNames);var s=t.options.tickSize&&"quarter"==t.options.tickSize[1]||t.options.minTickSize&&"quarter"==t.options.minTickSize[1],l=t.tickSize[0]*r[t.tickSize[1]],c=t.max-t.min,d=a.twelveHourClock?" %p":"",u=a.twelveHourClock?"%I":"%H";return n(i,l<r.minute?u+":%M:%S"+d:l<r.day?c<2*r.day?u+":%M"+d:"%b %d "+u+":%M"+d:l<r.month?"%b %d":s&&l<r.quarter||!s&&l<r.year?c<r.year?"%b":"%b %Y":s&&l<r.year?c<r.year?"Q%q":"Q%q %Y":"%Y",a.monthNames,a.dayNames)})}))}))},options:{xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},name:"time",version:"1.0"}),e.plot.formatDate=n,e.plot.dateGenerator=o}(jQuery)},66182:(e,t,n)=>{e.exports=n(98069)},98069:(e,t,n)=>{var i=n(99560),o=n(17673),r=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(r)?e:i(e)}function l(e){var t=o.stringify(function(e){var t={},n={protocol:1,format:1};for(var i in e)n[i]||(t[i]=e[i]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var i="//www.gravatar.com/avatar/";t&&t.cdn?(i=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(i=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var o=l(t);return i+s(e)+o},profile_url:function(e,t,n){var i=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)o=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var o=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var r=l(t);return o+s(e)+"."+i+r}}},15303:(e,t,n)=>{e.exports=n(49457)},49402:e=>{!function(t){if("undefined"!=typeof window){var n=!0,i="",o=0,r="",a=null,s="",l=!1,c={resize:1,click:1},d=128,u=!0,f=1,h="bodyOffset",p=h,m=!0,g="",v={},_=32,b=null,y=!1,w=!1,x="[iFrameSizer]",k=x.length,C="",S={max:1,min:1,bodyScroll:1,documentElementScroll:1},T="child",j=window.parent,E="*",I=0,G=!1,M=null,A=16,O=1,P="scroll",L=P,z=window,N=function(){re("onMessage function not defined")},q=function(){},D=function(){},F={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},W={},Q=!1;try{var R=Object.create({},{passive:{get:function(){Q=!0}}});window.addEventListener("test",ee,R),window.removeEventListener("test",ee,R)}catch(e){}var B,V,H,U,Y,$,J,X={bodyOffset:function(){return document.body.offsetHeight+ge("marginTop")+ge("marginBottom")},offset:function(){return X.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return F.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,_e(X))},min:function(){return Math.min.apply(null,_e(X))},grow:function(){return X.max()},lowestElement:function(){return Math.max(X.bodyOffset()||X.documentElementOffset(),ve("bottom",ye()))},taggedElement:function(){return be("bottom","data-iframe-height")}},K={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return F.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(K.bodyScroll(),K.documentElementScroll())},max:function(){return Math.max.apply(null,_e(K))},min:function(){return Math.min.apply(null,_e(K))},rightMostElement:function(){return ve("right",ye())},taggedElement:function(){return be("right","data-iframe-width")}},Z=(B=we,Y=null,$=0,J=function(){$=Date.now(),Y=null,U=B.apply(V,H),Y||(V=H=null)},function(){var e=Date.now();$||($=e);var t=A-(e-$);return V=this,H=arguments,t<=0||t>A?(Y&&(clearTimeout(Y),Y=null),$=e,U=B.apply(V,H),Y||(V=H=null)):Y||(Y=setTimeout(J,t)),U});te(window,"message",(function(t){var n={init:function(){g=t.data,j=t.source,ae(),u=!1,setTimeout((function(){m=!1}),d)},reset:function(){m?oe("Page reset ignored by init"):(oe("Page size reset by host page"),Ce("resetPage"))},resize:function(){xe("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=o();oe("PageInfoFromParent called from parent: "+e),D(JSON.parse(e)),oe(" --")},message:function(){var e=o();oe("onMessage called from parent: "+e),N(JSON.parse(e)),oe(" --")}};function i(){return t.data.split("]")[1].split(":")[0]}function o(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var o=i();o in n?n[o]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||re("Unexpected message ("+t.data+")")}x===(""+t.data).substr(0,k)&&(!1===u?a():r()?n.init():oe('Ignored message of type "'+i()+'". Received before initialization.'))})),te(window,"readystatechange",je),je()}function ee(){}function te(e,t,n,i){e.addEventListener(t,n,!!Q&&(i||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ie(e){return x+"["+C+"] "+e}function oe(e){y&&"object"==typeof window.console&&console.log(ie(e))}function re(e){"object"==typeof window.console&&console.warn(ie(e))}function ae(){var e;!function(){function e(e){return"true"===e}var a=g.substr(k).split(":");C=a[0],o=t!==a[1]?Number(a[1]):o,l=t!==a[2]?e(a[2]):l,y=t!==a[3]?e(a[3]):y,_=t!==a[4]?Number(a[4]):_,n=t!==a[6]?e(a[6]):n,r=a[7],p=t!==a[8]?a[8]:p,i=a[9],s=a[10],I=t!==a[11]?Number(a[11]):I,v.enable=t!==a[12]&&e(a[12]),T=t!==a[13]?a[13]:T,L=t!==a[14]?a[14]:L,w=t!==a[15]?Boolean(a[15]):w}(),oe("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;oe("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(se,e),N="onMessage"in e?e.onMessage:N,q="onReady"in e?e.onReady:q,E="targetOrigin"in e?e.targetOrigin:E,p="heightCalculationMethod"in e?e.heightCalculationMethod:p,L="widthCalculationMethod"in e?e.widthCalculationMethod:L}function t(e,t){return"function"==typeof e&&(oe("Setup custom "+t+"CalcMethod"),F[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),p=t(p,"height"),L=t(L,"width"));oe("TargetOrigin for parent set to: "+E)}(),function(){t===r&&(r=o+"px");le("margin",function(e,t){-1!==t.indexOf("-")&&(re("Negative CSS value ignored for "+e),t="");return t}("margin",r))}(),le("background",i),le("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),fe(),he(),document.documentElement.style.height="",document.body.style.height="",oe('HTML & body height set to "auto"'),oe("Enable public methods"),z.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,pe()):!1===e&&!0===n&&(n=!1,de("remove"),null!==a&&a.disconnect(),clearInterval(b)),Te(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Te(0,0,"close")},getId:function(){return C},getPageInfo:function(e){"function"==typeof e?(D=e,Te(0,0,"pageInfo")):(D=function(){},Te(0,0,"pageInfoStop"))},moveToAnchor:function(e){v.findTarget(e)},reset:function(){Se("parentIFrame.reset")},scrollTo:function(e,t){Te(t,e,"scrollTo")},scrollToOffset:function(e,t){Te(t,e,"scrollToOffset")},sendMessage:function(e,t){Te(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){p=e,fe()},setWidthCalculationMethod:function(e){L=e,he()},setTargetOrigin:function(e){oe("Set targetOrigin: "+e),E=e},size:function(e,t){xe("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){if(!0!==w)return;function e(e){Te(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){oe("Add event listener: "+n),te(window.document,t,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}(),pe(),v=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),i=e();return{x:parseInt(n.left,10)+parseInt(i.x,10),y:parseInt(n.top,10)+parseInt(i.y,10)}}function i(e){function i(e){var t=n(e);oe("Moving to in page link (#"+o+") at x: "+t.x+" y: "+t.y),Te(t.y,t.x,"scrollToOffset")}var o=e.split("#")[1]||e,r=decodeURIComponent(o),a=document.getElementById(r)||document.getElementsByName(r)[0];t!==a?i(a):(oe("In page link (#"+o+") not found in iFrame, so sending to parent"),Te(0,0,"inPageLink","#"+o))}function o(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&i(t)}function r(){function e(e){function t(e){e.preventDefault(),i(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&te(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){te(window,"hashchange",o)}function s(){setTimeout(o,d)}function l(){Array.prototype.forEach&&document.querySelectorAll?(oe("Setting up location.hash handlers"),r(),a(),s()):re("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}v.enable?l():oe("In page linking not enabled");return{findTarget:i}}(),xe("init","Init message from host page"),q()}function se(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],re("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function le(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,oe("Body "+e+' set to "'+n+'"'))}function ce(e){var t={add:function(t){function n(){xe(e.eventName,e.eventType)}W[t]=n,te(window,t,n,{passive:!0})},remove:function(e){var t,n,i,o=W[e];delete W[e],t=window,n=e,i=o,t.removeEventListener(n,i,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),oe(ne(e.method)+" event listener: "+e.eventType)}function de(e){ce({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ce({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ce({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ce({method:e,eventType:"Input",eventName:"input"}),ce({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ce({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ce({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ce({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ce({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ce({method:e,eventType:"Touch Start",eventName:"touchstart"}),ce({method:e,eventType:"Touch End",eventName:"touchend"}),ce({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ce({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ce({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ce({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===T&&ce({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ue(e,t,n,i){return t!==e&&(e in n||(re(e+" is not a valid option for "+i+"CalculationMethod."),e=t),oe(i+' calculation method set to "'+e+'"')),e}function fe(){p=ue(p,h,X,"height")}function he(){L=ue(L,P,K,"width")}function pe(){var e;!0===n?(de("add"),e=0>_,window.MutationObserver||window.WebKitMutationObserver?e?me():a=function(){function e(e){function t(e){!1===e.complete&&(oe("Attach listeners to "+e.src),e.addEventListener("load",o,!1),e.addEventListener("error",r,!1),l.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){l.splice(l.indexOf(e),1)}function n(e){oe("Remove listeners from "+e.src),e.removeEventListener("load",o,!1),e.removeEventListener("error",r,!1),t(e)}function i(e,t,i){n(e.target),xe(t,i+": "+e.target.src)}function o(e){i(e,"imageLoad","Image loaded")}function r(e){i(e,"imageLoadFailed","Image load failed")}function a(t){xe("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function s(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return d=new c(a),oe("Create body MutationObserver"),d.observe(e,t),d}var l=[],c=window.MutationObserver||window.WebKitMutationObserver,d=s();return{disconnect:function(){"disconnect"in d&&(oe("Disconnect body MutationObserver"),d.disconnect(),l.forEach(n))}}}():(oe("MutationObserver not supported in this browser!"),me())):oe("Auto Resize disabled")}function me(){0!==_&&(oe("setInterval: "+_+"ms"),b=setInterval((function(){xe("interval","setInterval: "+_)}),Math.abs(_)))}function ge(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function ve(e,t){for(var n=t.length,i=0,o=0,r=ne(e),a=Date.now(),s=0;s<n;s++)(i=t[s].getBoundingClientRect()[e]+ge("margin"+r,t[s]))>o&&(o=i);return a=Date.now()-a,oe("Parsed "+n+" HTML elements"),oe("Element position calculated in "+a+"ms"),function(e){e>A/2&&oe("Event throttle increased to "+(A=2*e)+"ms")}(a),o}function _e(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function be(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(re("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ve(e,n)}function ye(){return document.querySelectorAll("body *")}function we(e,n,i,o){var r,a;!function(){function e(e,t){return!(Math.abs(e-t)<=I)}return r=t!==i?i:X[p](),a=t!==o?o:K[L](),e(f,r)||l&&e(O,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(p in S||l&&L in S)?Se(n):e in{interval:1}||oe("No change in size detected"):(ke(),Te(f=r,O=a,e))}function xe(e,t,n,i){G&&e in c?oe("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||oe("Trigger event: "+t),"init"===e?we(e,t,n,i):Z(e,t,n,i))}function ke(){G||(G=!0,oe("Trigger event lock on")),clearTimeout(M),M=setTimeout((function(){G=!1,oe("Trigger event lock off"),oe("--")}),d)}function Ce(e){f=X[p](),O=K[L](),Te(f,O,e)}function Se(e){var t=p;p=h,oe("Reset trigger event: "+e),ke(),Ce("reset"),p=t}function Te(e,n,i,o,r){var a;t===r?r=E:oe("Message targetOrigin: "+r),oe("Sending message to host page ("+(a=C+":"+e+":"+n+":"+i+(t!==o?":"+o:""))+")"),j.postMessage(x+a,r)}function je(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},46702:(e,t)=>{var n,i,o;!function(r){if("undefined"!=typeof window){var a,s=0,l=!1,c=!1,d="message".length,u="[iFrameSizer]",f=u.length,h=null,p=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},v=null,_={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){j("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){W(n,e)})).end()}):T("","Unable to bind to jQuery, it is not fully loaded.")),i=[],(o="function"==typeof(n=H)?n.apply(t,i):n)===r||(e.exports=o),window.iFrameResize=window.iFrameResize||H()}function y(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function k(e){return u+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function C(e){return g[e]?g[e].log:l}function S(e,t){E("log",e,t,C(e))}function T(e,t){E("info",e,t,C(e))}function j(e,t){E("warn",e,t,!0)}function E(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](k(t),n)}function I(e){function t(){o("Height"),o("Width"),q((function(){N(k),P(C),m("onResized",k)}),k,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function o(e){var t=Number(g[C]["max"+e]),n=Number(g[C]["min"+e]),i=e.toLowerCase(),o=Number(k[i]);S(C,"Checking "+i+" is in range "+n+"-"+t),o<n&&(o=n,S(C,"Set "+i+" to min value")),o>t&&(o=t,S(C,"Set "+i+" to max value")),k[i]=""+o}function r(e){return y.substr(y.indexOf(":")+d+e)}function a(e,t){var n,i,o;n=function(){var n,i;D("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=k.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},i=32,b[o=t]||(b[o]=setTimeout((function(){b[o]=null,n()}),i))}function s(e){var t=e.getBoundingClientRect();return O(C),{x:Math.floor(Number(t.left)+Number(h.x)),y:Math.floor(Number(t.top)+Number(h.y))}}function l(e){var t=e?s(k.iframe):{x:0,y:0},n={x:Number(k.width)+t.x,y:Number(k.height)+t.y};S(C,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):j(C,"Unable to scroll to requested position, window.parentIFrame not found"):(h=n,c(),S(C,"--"))}function c(){!1!==m("onScroll",h)?P(C):L()}function p(e){var t={};if(0===Number(k.width)&&0===Number(k.height)){var n=r(9).split(":");t={x:n[1],y:n[0]}}else t={x:k.width,y:k.height};m(e,{iframe:k.iframe,screenX:Number(t.x),screenY:Number(t.y),type:k.type})}function m(e,t){return G(C,e,t)}var v,_,y=e.data,k={},C=null;"[iFrameResizerChild]Ready"===y?function(){for(var e in g)D("iFrame requested init",F(e),g[e].iframe,e)}():u===(""+y).substr(0,f)&&y.substr(f).split(":")[0]in g?(k=function(){var e=y.substr(f).split(":"),t=e[1]?parseInt(e[1],10):0,o=g[e[0]]&&g[e[0]].iframe,r=getComputedStyle(o);return{iframe:o,id:e[0],height:t+n(r)+i(r),width:e[2],type:e[3]}}(),C=k.id,g[C]&&(g[C].loaded=!0),(_=k.type in{true:1,false:1,undefined:1})&&S(C,"Ignoring init message from meta parent page"),!_&&function(e){var t=!0;return g[e]||(t=!1,j(k.type+" No settings for "+e+". Message was: "+y)),t}(C)&&(S(C,"Received: "+y),v=!0,null===k.iframe&&(j(C,"IFrame ("+k.id+") not found"),v=!1),v&&function(){var t,n=e.origin,i=g[C]&&g[C].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for(S(C,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=g[C]&&g[C].remoteHost,S(C,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+k.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(g[C]&&g[C].firstRun&&g[C]&&(g[C].firstRun=!1),k.type){case"close":A(k.iframe);break;case"message":d=r(6),S(C,"onMessage passed: {iframe: "+k.iframe.id+", message: "+d+"}"),m("onMessage",{iframe:k.iframe,message:JSON.parse(d)}),S(C,"--");break;case"mouseenter":p("onMouseEnter");break;case"mouseleave":p("onMouseLeave");break;case"autoResize":g[C].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":a(g[C]&&g[C].iframe,C),function(){function e(e,i){function o(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){S(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",x)}var n=C;e("Add ",w),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[C]&&g[C].stopPageInfo&&(g[C].stopPageInfo(),delete g[C].stopPageInfo);break;case"inPageLink":n=r(9).split("#")[1]||"",i=decodeURIComponent(n),(o=document.getElementById(i)||document.getElementsByName(i)[0])?(e=s(o),S(C,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),h={x:e.x,y:e.y},c(),S(C,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):S(C,"In page link #"+n+" not found and window.parentIFrame not found"):S(C,"In page link #"+n+" not found");break;case"reset":z(k);break;case"init":t(),m("onInit",k.iframe);break;default:0===Number(k.width)&&0===Number(k.height)?j("Unsupported message received ("+k.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e,n,i,o,d}())):T(C,"Ignored: "+y)}function G(e,t,n){var i=null,o=null;if(g[e]){if("function"!=typeof(i=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=i(n)}return o}function M(e){var t=e.id;delete g[t]}function A(e){var t=e.id;if(!1!==G(t,"onClose",t)){S(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){j(e)}G(t,"onClosed",t),S(t,"--"),M(e)}else S(t,"Close iframe cancelled by onClose event")}function O(e){null===h&&S(e,"Get page position: "+(h={x:window.pageXOffset!==r?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==r?window.pageYOffset:document.documentElement.scrollTop}).x+","+h.y)}function P(e){null!==h&&(window.scrollTo(h.x,h.y),S(e,"Set page position: "+h.x+","+h.y),L())}function L(){h=null}function z(e){S(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),q((function(){N(e),D("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function t(t){c||"0"!==e[t]||(c=!0,S(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}function n(e){return null!==e.offsetParent}g[e]&&n(g[e].iframe)&&(t("height")||t("width"))&&D("Visibility change","resize",g[e].iframe,e)}Object.keys(g).forEach((function(t){e(t)}))}function t(t){S("window","Mutation observed: "+t[0].target+" "+t[0].type),Q(e,16)}function n(){var e=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new i(t).observe(e,n)}var i=y();i&&n()}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",S(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):S("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;g[i]&&(g[i].sizeHeight&&n("height"),g[i].sizeWidth&&n("width"))}function q(e,t,n){n!==t.type&&p&&!window.jasmine?(S(t.id,"Requesting animation frame"),p(e)):e()}function D(e,t,n,i,o){var r,a=!1;i=i||n.id,g[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(r=g[i]&&g[i].targetOrigin,S(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(u+t,r)):j(i,"["+e+"] IFrame("+i+") not found"),o&&g[i]&&g[i].warningTimeout&&(g[i].msgTimeout=setTimeout((function(){!g[i]||g[i].loaded||a||(a=!0,j(i,"IFrame has not responded within "+g[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),g[i].warningTimeout)))}function F(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod+":"+g[e].mouseEvents}function W(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],j(i,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i=function(n){var i;return""===n&&(e.id=(i=t&&t.id||_.id+s++,null!==document.getElementById(i)&&(i+=s++),n=i),l=(t||{}).log,S(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);i in g&&"iFrameResizer"in e?j(i,"Ignored iFrame, already setup."):(!function(t){var o;t=t||{},g[i]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in _)Object.prototype.hasOwnProperty.call(_,t)&&(g[i][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:_[t])}(t),g[i]&&(g[i].targetOrigin=!0===g[i].checkOrigin?""===(o=g[i].remoteHost)||null!==o.match(/^(about:blank|javascript:|file:\/\/)/)?"*":o:"*")}(t),function(){switch(S(i,"IFrame scrolling "+(g[i]&&g[i].scrolling?"enabled":"disabled")+" for "+i),e.style.overflow=!1===(g[i]&&g[i].scrolling)?"hidden":"auto",g[i]&&g[i].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[i]?g[i].scrolling:"no"}}(),function(){function t(t){var n=g[i][t];1/0!==n&&0!==n&&(e.style[t]="number"==typeof n?n+"px":n,S(i,"Set "+t+" = "+e.style[t]))}function n(e){if(g[i]["min"+e]>g[i]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[i]&&g[i].bodyMargin)&&"0"!==(g[i]&&g[i].bodyMargin)||(g[i].bodyMarginV1=g[i].bodyMargin,g[i].bodyMargin=g[i].bodyMargin+"px"),function(t){var n=y();n&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&A(e)}))}))})).observe(e.parentNode,{childList:!0})}(n),w(e,"load",(function(){var n,o;D("iFrame.onload",t,e,r,!0),n=g[i]&&g[i].firstRun,o=g[i]&&g[i].heightCalculationMethod in m,!n&&o&&z({iframe:e,height:0,width:0,type:"init"})})),D("init",t,e,r,!0)}(F(i)),g[i]&&(g[i].iframe.iFrameResizer={close:A.bind(null,g[i].iframe),removeListeners:M.bind(null,g[i].iframe),resize:D.bind(null,"Window resize","resize",g[i].iframe),moveToAnchor:function(e){D("Move to anchor","moveToAnchor:"+e,g[i].iframe,i)},sendMessage:function(e){D("Send Message","message:"+(e=JSON.stringify(e)),g[i].iframe,i)}}))}function Q(e,t){null===v&&(v=setTimeout((function(){v=null,e()}),t))}function R(){"hidden"!==document.visibilityState&&(S("document","Trigger event: Visiblity change"),Q((function(){B("Tab Visable","resize")}),16))}function B(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&D(e,t,g[n].iframe,n)}))}function V(){w(window,"message",I),w(window,"resize",(function(){var e;S("window","Trigger event: "+(e="resize")),Q((function(){B("Window "+e,"resize")}),16)})),w(document,"visibilitychange",R),w(document,"-webkit-visibilitychange",R)}function H(){function e(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),W(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!p;e+=1)p=window[t[e]+"RequestAnimationFrame"];p?p=p.bind(window):S("setup","RequestAnimationFrame not supported")}(),V(),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&j("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(r,n));break;case"object":e(n,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return t}}}()},49457:(e,t,n)=>{var i=n(46702);t.iframeResize=i,n(49402)},57729:(e,t,n)=>{var i,o,r;o=[n(19567)],i=function(e){var t,n,i,o,r,a,s="Close",l="BeforeClose",c="AfterClose",d="BeforeAppend",u="MarkupParse",f="Open",h="Change",p="mfp",m="."+p,g="mfp-ready",v="mfp-removing",_="mfp-prevent-close",b=function(){},y=!!window.jQuery,w=e(window),x=function(e,n){t.ev.on(p+e+m,n)},k=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},C=function(n,i){t.ev.triggerHandler(p+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},S=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},T=function(){e.magnificPopup.instance||((t=new b).init(),e.magnificPopup.instance=t)},j=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=j(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if((a=s[o]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=k("bg").on("click"+m,(function(){t.close()})),t.wrap=k("wrap").attr("tabindex",-1).on("click"+m,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}C("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(u,(function(e,t,n,i){n.close_replaceWith=S(i.type)})),r+=" mfp-close-btn-in"):t.wrap.append(S())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:w.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+m,(function(e){27===e.keyCode&&t.close()})),w.on("resize"+m,(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var d=t.wH=w.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(d)){var p=t._getScrollbarSize();p&&(h.marginRight=p)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),C("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(g),t._setFocus()):t.bgOverlay.addClass(g),i.on("focusin"+m,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(d),C(f),n}t.updateItemHTML()},close:function(){t.isOpen&&(C(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(v),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){C(s);var n=v+" "+g+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+m+" focusin"+m),t.ev.off(m),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,C(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||w.height();t.fixedContentPos||t.wrap.css("height",t.wH),C("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(C("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;C("FirstMarkupParse",r),t.currTemplate[i]=!r||e(r)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,C(h,n),o=n.type,t.container.prepend(t.contentContainer),C("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(S()):t.content=e:t.content="",C(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,C("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(w.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};C("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(_)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||w.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),C(u,[t,n,i]),e.each(n,(function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var r=t.find(m+"-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==i[0]&&r.replaceWith(i):"img"===a?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(m+"-"+n).html(i)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,n){return T(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){T();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=y?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),y?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var E,I,G,M="inline",A=function(){G&&(I.after(G.addClass(E)).detach(),G=null)};e.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(M),x(s+"."+M,(function(){A()}))},getInline:function(n,i){if(A(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(I||(E=o.hiddenClass,I=k(E),E="mfp-"+E),G=r.after(I).detach().removeClass(E)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var O,P="ajax",L=function(){O&&e(document.body).removeClass(O)},z=function(){L(),t.req&&t.req.abort()};e.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(P),O=t.st.ajax.cursor,x(s+"."+P,z),x("BeforeChange."+P,z)},getAjax:function(n){O&&e(document.body).addClass(O),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};C("ParseAjax",a),t.appendContent(e(a.data),P),n.finished=!0,L(),t._setFocus(),setTimeout((function(){t.wrap.addClass(g)}),16),t.updateStatus("ready"),C("AjaxContentAdded")},error:function(){L(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var N,q=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),x(f+i,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),x(s+i,(function(){n.cursor&&e(document.body).removeClass(n.cursor),w.off("resize"+m)})),x("Resize"+i,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,N&&clearInterval(N),e.isCheckingImgSize=!1,C("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){N&&clearInterval(N),N=setInterval((function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(N),3==++n?o(10):40===n?o(50):100===n&&o(500))}),r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,C("ImageLoadComplete")):++o<200?setTimeout(r,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:q(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(N&&clearInterval(N),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var D,F=function(){return void 0===D&&(D=void 0!==document.createElement("p").style.MozTransform),D};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};x("BuildControls"+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void d();(r=c(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout((function(){r.css(t._getOffset(!0)),o=setTimeout((function(){d(),setTimeout((function(){r.remove(),e=r=null,C("ZoomAnimationEnded")}),16)}),a)}),16)}})),x(l+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),x(s+i,(function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(y?i.innerHeight():i[0].offsetHeight)-a-r};return F()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var W="iframe",Q="//about:blank",R=function(e){if(t.currTemplate[W]){var n=t.currTemplate[W].find("iframe");n.length&&(e||(n[0].src=Q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(W,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(W),x("BeforeChange",(function(e,t,n){t!==n&&(t===W?R():n===W&&R(!0))})),x(s+"."+W,(function(){R()}))},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,(function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}));var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var B=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},V=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;r+=" mfp-gallery",x(f+o,(function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),i.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),x("UpdateStatus"+o,(function(e,n){n.text&&(n.text=V(n.text,t.currItem.index,t.items.length))})),x(u+o,(function(e,i,o,r){var a=t.items.length;o.counter=a>1?V(n.tCounter,r.index,a):""})),x("BuildControls"+o,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(_),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(_);o.click((function(){t.prev()})),r.click((function(){t.next()})),t.container.append(o.add(r))}})),x(h+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),x(s+o,(function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=B(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=B(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=B(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),C("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,C("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}});var H="retina";e.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(x("ImageHasSize."+H,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),x("ElementParse."+H,(function(t,i){i.src=e.replaceSrc(i,n)})))}}}}),T()},void 0===(r="function"==typeof i?i.apply(t,o):i)||(e.exports=r)},62587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,o){n=n||"&",i=i||"=";var r={};if("string"!=typeof e||0===e.length)return r;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var d,u,f,h,p=e[c].replace(a,"%20"),m=p.indexOf(i);m>=0?(d=p.substr(0,m),u=p.substr(m+1)):(d=p,u=""),f=decodeURIComponent(d),h=decodeURIComponent(u),t(r,f)?Array.isArray(r[f])?r[f].push(h):r[f]=[r[f],h]:r[f]=h}return r}},12361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,o){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var r=encodeURIComponent(t(o))+i;return Array.isArray(e[o])?e[o].map((function(e){return r+encodeURIComponent(t(e))})).join(n):r+encodeURIComponent(t(e[o]))})).join(n):o?encodeURIComponent(t(o))+i+encodeURIComponent(t(e)):""}},17673:(e,t,n)=>{"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},35666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var o=t&&t.prototype instanceof g?t:g,r=Object.create(o.prototype),a=new E(i||[]);return r._invoke=function(e,t,n){var i=u;return function(o,r){if(i===h)throw new Error("Generator is already running");if(i===p){if("throw"===o)throw r;return G()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var l=d(e,t,n);if("normal"===l.type){if(i=n.done?p:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),r}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",f="suspendedYield",h="executing",p="completed",m={};function g(){}function v(){}function _(){}var b={};b[r]=function(){return this};var y=Object.getPrototypeOf,w=y&&y(y(I([])));w&&w!==n&&i.call(w,r)&&(b=w);var x=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,r,a,s){var l=d(e[o],e,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,i){function r(){return new t((function(t,o){n(e,i,t,o)}))}return o=o?o.then(r,r):r()}}function S(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var r=o.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(e){if(e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:G}}function G(){return{value:t,done:!0}}return v.prototype=x.constructor=_,_.constructor=v,v.displayName=l(_,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(C.prototype),C.prototype[a]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var a=new C(c(t,n,i,o),r);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(x),l(x,s,"Generator"),x[r]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(i,o){return s.type="throw",s.arg=e,n.next=i,o&&(n.method="next",n.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:I(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},19567:e=>{"use strict";e.exports=window.jQuery}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{GiveConfirmModal:()=>v,GiveErrorAlert:()=>h,GiveFormModal:()=>_,GiveModal:()=>f,GiveNoticeAlert:()=>m,GiveSuccessAlert:()=>g,GiveWarningAlert:()=>p});n(90858),n(32196),n(32164),n(59868),n(65962),n(28345),n(57729),n(69571);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}function a(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var u,f=function(){function e(t){if(l(this,e),e===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:"",cancelBtn:""},modalContent:{}},t),this.config.mainClass="".concat(this.config.mainClass?this.config.mainClass:""," modal-fade-slide").trim()}return d(e,[{key:"init",value:function(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}},{key:"getTemplate",value:function(){var e='<div class="give-hidden"></div>';return this.config.type.length&&(e='<div class="give-modal give-modal--zoom '.concat(this.config.classes.modalWrapper?"".concat(this.config.classes.modalWrapper).trim():"",'">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t').concat(this.config.modalContent.title?'<h2 class="give-modal__title">'.concat(this.config.modalContent.title,"</h2>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.desc?'<p class="give-modal__description">'.concat(this.config.modalContent.desc,"</p>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.body?this.config.modalContent.body:"",'\n\t\t\t\t</div>\n\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t').concat("form"===this.config.type?'<div class="spinner"></div>':"","\n\t\t\t\t\t").concat("form"===this.config.type&&"undefined"!==this.config.modalContent.link?'<a class="give-modal--additional-link" href="'.concat(this.config.modalContent.link,'" target="').concat("undefined"!==this.config.modalContent.link_self&&this.config.modalContent.link_self?"_self":"_blank",'">').concat(this.config.modalContent.link_text,"</a>"):"",'\n\n\t\t\t\t\t<button class="give-button give-popup-close-button').concat(this.config.classes.cancelBtn?" ".concat(this.config.classes.cancelBtn):" give-button--secondary",'">\n\t\t\t\t\t\t').concat(this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close"),"\n\t\t\t\t\t</button>\n\n\t\t\t\t\t").concat("confirm"!==this.config.type&&"form"!==this.config.type?"":'<button class="give-button give-button--primary give-popup-'.concat(this.config.type,'-button">\n\n\t\t\t\t\t\t').concat(this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm"),"\n\t\t\t\t\t</button>"),"\n\t\t\t\t</div>\n\n\t\t\t</div>")),e}},{key:"setupTemplate",value:function(){this.config.template=this.getTemplate()}},{key:"__setupClickEvent",value:function(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}},{key:"popupConfig",value:function(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config=Object.assign({removalDelay:300,fixedContentPos:!0,fixedBgPos:!0,alignTop:!0,showCloseBtn:!1,closeOnBgClick:!1,enableEscapeKey:!0,focus:".give-popup-close-button"},this.config))}},{key:"render",value:function(){if("magnificPopup"===this.config.externalPlugin)this.config.triggerSelector||jQuery.magnificPopup.open(this.config);return this}}],[{key:"__closePopup",value:function(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}},{key:"__ajaxModalHandle",value:function(e){var t=jQuery(e.target),n=t.attr("data-cache");if(e.preventDefault(),void 0!==n)return n=decodeURI(n),void new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:n},closeOnBgClick:!0}).render();jQuery.ajax({url:t.attr("href"),method:"GET",beforeSend:function(){new Give.modal.GiveSuccessAlert({modalContent:{desc:Give.fn.loader({},{show:null,loadingText:Give.fn.getGlobalVar("loader_translation").loading})},closeOnBgClick:!0}).render()},success:function(e){e.length&&t.attr("data-cache",encodeURI(e)),jQuery(".mfp-wrap").length&&new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:e},closeOnBgClick:!0}).render()}})}}]),e}(),h=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--error",i.init(),i}return d(n)}(f),p=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--warning",i.init(),i}return d(n)}(f),m=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--notice",i.init(),i}return d(n)}(f),g=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper+=" give-modal--success",i.init(),i}return d(n)}(f),v=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="confirm",i=t.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return d(n,null,[{key:"__confirmPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}]),n}(f),_=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="form",i=t.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return d(n,null,[{key:"__submitPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}]),n}(f);window.addDynamicEventListener(document,"click",".give-popup-close-button",f.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",v.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",_.__submitPopup,{}),window.addDynamicEventListener(document,"click",".give-ajax-modal",f.__ajaxModalHandle,{}),(u=jQuery).fn.repeatable_fields=function(e){var t={wrapper:".wrapper",container:".container",row:".row",add:".add",remove:".remove",confirm_before_remove_row:!1,confirm_before_remove_row_text:"",move:".move",template:".template",is_sortable:!0,before_add:null,after_add:o,before_remove:null,after_remove:null,sortable_options:null,row_count_placeholder:"{{row-count-placeholder}}"},n=u.extend({},t,e);function i(e,t){var i=e.parents(n.row).first();"function"==typeof n.before_remove&&n.before_remove(t,i),i.remove(),"function"==typeof n.after_remove&&n.after_remove(t)}function o(e,t){var i=u(e).attr("data-rf-row-count");i++,u("*",t).each((function(){u.each(this.attributes,(function(e,t){this.value=this.value.replace(n.row_count_placeholder,i-1)}))})),u(e).attr("data-rf-row-count",i)}!function e(t){u(n.wrapper,t).each((function(t,r){var a=this,s=u(a).children(n.container);u(s).children(n.template).hide().find(":input").each((function(){u(this).prop("disabled",!0)}));var l=u(s).children(n.row).filter((function(){return!u(this).hasClass(n.template.replace(".",""))})).length;if(u(s).attr("data-rf-row-count",l),u(a).on("click",n.add,(function(t){t.stopImmediatePropagation();var i=u(u(s).children(n.template).clone().removeClass(n.template.replace(".",""))[0].outerHTML);u(i).find(":input").each((function(){u(this).prop("disabled",!1)})),"function"==typeof n.before_add&&n.before_add(s);var r=u(i).show().appendTo(s);"function"==typeof n.after_add&&n.after_add(s,r,o),e(r)})),u(a).on("click",n.remove,(function(e){e.stopImmediatePropagation();var t=u(this);return n.confirm_before_remove_row&&n.confirm_before_remove_row_text||i(t,s),new v({modalWrapper:"give-modal--warning",modalContent:{desc:n.confirm_before_remove_row_text},successConfirm:function(){i(t,s)}}).render(),!1})),!0===n.is_sortable&&void 0!==u.ui&&void 0!==u.ui.sortable){var c=null!==n.sortable_options?n.sortable_options:{};c.handle=n.move,u(a).find(n.container).sortable(c)}}))}(this)};n(45099),n(10861);const b=window.wp.i18n,y={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,i,o;if(n=i=o="",t.length)switch(e){case"bad_minimum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==i&&(n=i+" "+Give.fn.formatCurrency(o,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},i="undefined"!=typeof commonL10n?commonL10n.dismiss:(0,b.__)("Dismiss this notice.","give");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(i,"</span></button>"):"","</p</div>")}}};var w=n(87757),x=n.n(w);const k={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");i.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(i),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}};function C(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}const S={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.Give.WINDOW_IS_LOADED?Give.form.fn.__sendBackToForm():window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){k.fn.showOverlay(e)},hideProcessingState:function(){k.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,i){if(!n.length)return!1;if("nonce"===(e=void 0===e?"data":e))n.find('input[name="give-form-hash"]').val(t);if(void 0!==i&&!i.length)return!1;if("attr"===e)n.attr(i,t);else n.data(i,t);return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,i){i=i instanceof jQuery?i:jQuery(i);var o=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:i.data("price-id"),amount:Give.fn.unFormatCurrency(i.val(),o)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),i=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),o=Give.fn.getCache("amount_"+i,e)?Give.fn.getCache("amount_"+i,e):-1;return t=void 0===t||t,n.length&&-1===o&&(t?(jQuery.each(n,(function(e,t){if(t.amount===i)return o=t.price_id,!1})),-1===o&&this.getMinimumAmount(e)<=i&&this.getMaximumAmount(e)>=i&&this.getMinimumAmount(e)<=i&&(o="custom")):o=jQuery('input[name="give-price-id"]',e).val()),o},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(i){if(!i.success)return n(i);var o=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",i.data.give_form_hash,e,""),o.length&&o.val(i.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[i.data]),t(i)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),i=e.data("price-id");void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i&&(n=Give.fn.getParameterByName("custom-amount")),t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var o=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),o)),"custom"!==i||n?t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,i]):t.find(".give-donation-amount .give-text-input").focus()},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),i=n.find("form.give-form"),o=n.hasClass("give-display-modal"),r=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");i.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),i.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=i.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):o||r?give_open_form_modal(n,i):a&&(i.find(".give-btn-reveal").hide(),i.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),i=this.getAmount(e),o=this.getPriceID(e,!0);return 0!==i&&(-1<i&&i>=t&&i<=n||-1!==o)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(T=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(e){C(r,i,o,a,s,"next",e)}function s(e){C(r,i,o,a,s,"throw",e)}a(void 0)}))}}(x().mark((function e(t){var n,i,o,r=arguments;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=r.length>1&&void 0!==r[1]?r[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return i=e.sent,e.next=9,i.text();case 9:return o=e.sent,e.abrupt("return",o.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return T.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.resetDonationButton(e),t&&this.addErrors(e,t)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),i=t.find(".card-cvc"),o=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),i.payment("formatCardCVC"),o.payment("formatCardExpiry"))}))}}}};var T;const j={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},E={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,i=n.innerHeight/2-126,o=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(e),"&text=").concat(encodeURIComponent(t)),"newwindow","width=560,height=253,top=".concat(i,",left=").concat(o))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,i=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(e)),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(i))}}};var I=n(50743),G=n.n(I),M={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)M[e[t]].init&&M[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var i={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(i={symbol:"",decimal:M.form.fn.getInfo("decimal_separator",n),thousand:M.form.fn.getInfo("thousands_separator",n),precision:M.form.fn.getInfo("number_decimals",n),currency:M.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(i,t)).precision=parseInt(t.precision),"INR"===t.currency){var o,r=G().formatNumber(e,{precision:i.precision,decimal:"."}),a=t.precision?".0":"",s="",l="",c="";(r=(r=G().unformat(r,".").toString()).toString()).indexOf(".")>0&&(a=r.substring(r.indexOf("."),r.length)),s=(r=Math.floor(r).toString()).substring(r.length-3),""!==(l=r.substring(0,r.length-3))&&(s=i.thousand+s),o=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,i.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,o)+(c.slice(o)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=G().formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(G().unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?M.cache["form_"+M.form.fn.getInfo("form-id",n)][e]=t:M.cache[e]=t},getCache:function(e,t){var n,i=M.cache["form_"+M.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==i?i[e]:"":M.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(i=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},i)).loadingAnimation?'<span class="is-active spinner"></span>':"",r=null!==i.loadingText?i.loadingText:M.fn.getGlobalVar("loader_translation").updating;return!1===i.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=o.length?"give-has-spinner":"",t=(t+=r.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((r+o).trim(),"</div></div>"),null===i.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var i=encodeURIComponent(t)+"=",o=n[1].split(/[&;]/g),r=o.length;r-- >0;)-1!==o[r].lastIndexOf(i,0)&&o.splice(r,1);return n[0]+(o.length>0?"?"+o.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};M.notice=y,M.form=S,M.donor=j,M.util=k,M.share=E;const A=M;var O=n(15303);n(96066),n(89953),n(4559),n(71018);function P(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}const L=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root=t,this.buttonText=this.root.textContent.trim(),this.iconPosition="before",this._buttonTextWithWrapper=this.root.querySelector(".give-button-text")?'<span class="give-button-text">'.concat(this.buttonText,"</span>"):this.buttonText;var n=this.root.querySelector(".dashicons");n&&(this.iconClassName=n.className)}var t,n,i;return t=e,n=[{key:"enable",value:function(){this.root.disabled=!1}},{key:"disable",value:function(){this.root.disabled=!0}},{key:"setBusyState",value:function(){this.root.innerHTML="".concat('<span class="dashicons dashicons-marker"></span>'," ").concat(this._buttonTextWithWrapper),this.disable()}},{key:"removeBusyState",value:function(){this.enable(),this.iconClassName&&this.updateIcon(this.iconClassName)}},{key:"updateIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",n='<span class="'.concat(e,'"></span>');this.root.innerHTML="after"===t?"".concat(this._buttonTextWithWrapper," ").concat(n):"".concat(n," ").concat(this._buttonTextWithWrapper),this.iconClassName=e,this.iconPosition=t}},{key:"updateButtonText",value:function(e){this.buttonText=e,this.iconClassName?this.updateIcon(this.iconClassName,this.iconPosition):this.root.textContent=e}}],n&&P(t.prototype,n),i&&P(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();var z=n(42152),N=n.n(z);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Q(this,n)}}function Q(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(r,e);var t,n,i,o=W(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).shortcode=t.root.dataset.giveShortcode,t.clipboard=new(N())(t.root,{text:function(e){return e.dataset.giveShortcode}}),t.reset=t.reset.bind(R(t)),t}return t=r,(n=[{key:"init",value:function(){this.registerEventHandlers()}},{key:"registerEventHandlers",value:function(){var e=this;this.clipboard.on("success",(function(){return e.handleSuccessClick()})),this.clipboard.on("error",(function(){return e.handleErrorClick()}))}},{key:"handleSuccessClick",value:function(e){this.updateIcon("dashicons dashicons-yes"),this.root.setAttribute("aria-label",give_vars.copied),this.root.addEventListener("mouseout",this.reset)}},{key:"handleErrorClick",value:function(e){this.updateIcon("dashicons dashicons-warning"),this.root.setAttribute("aria-label","Shortcode could not be copied.")}},{key:"reset",value:function(e){this.updateIcon("dashicons dashicons-admin-page"),this.root.setAttribute("aria-label",this.shortcode),this.root.removeEventListener("mouseout",this.reset)}}])&&D(t.prototype,n),i&&D(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(L);function H(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}var $=!1,J=n(66182);function X(){var e=jQuery(".give-settings-page"),t=jQuery(".give-nav-tab-wrapper"),n=e.width(),i=jQuery(".give-sub-nav-tab-wrapper"),o=jQuery("nav",i),r=jQuery(".give-nav-tab-wrapper > a:not(give-not-tab)"),a=[],s=[],l=0;if(600<jQuery(window).outerWidth()&&(l=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),r.removeClass("give-hidden"),new Promise((function(e,t){jQuery.each(r,(function(e,t){t=jQuery(t),(l+=parseInt(t.outerWidth()))<n?a.push(t):s.push(t)})),e(!0)})).then((function(e){if(s.length&&-1!==window.location.search.indexOf("&tab=")){var n={},r=function(){for(var e,t=[],n=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<n.length;i++)t[(e=n[i].split("="))[0]]=e[1];return t}();s=s.filter((function(e){var t=-1!==parseInt(e.attr("href").indexOf("&tab="+r.tab));return t&&(n=e),!t})),n.length&&(s.unshift(a.pop()),a.push(n))}new Promise((function(e,t){a.length&&jQuery.each(a,(function(e,t){(t=jQuery(t)).hasClass("give-hidden")&&t.removeClass("give-hidden")})),e(!0)})).then((function(e){s.length?(o.html(""),jQuery.each(s,(function(e,t){(t=jQuery(t)).hasClass("nav-tab-active")||t.addClass("give-hidden"),t.clone().removeClass().appendTo(o)})),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(i),i.show()):i.hide()}))}))}!function(e){var t=function(t,n){var i=(n=jQuery.extend({wrapper:!0,show:!1},n)).wrapper?e(".give-spinner-wrapper",t):{},o=e(".give-spinner",t);if(n.show)return i.length&&i.addClass("is-active"),void o.addClass("is-active");i.length&&i.removeClass("is-active"),o.removeClass("is-active")},n=function(e){var t=document.location.href,n=t.split("?");e=void 0===e?"":e.replace("give-","");if(n.length>=2){for(var i=n.shift(),o=n.join("?"),r=encodeURIComponent("give-message")+"=",a=o.split(/[&;]/g),s=a.length;s-- >0;)(-1!==a[s].lastIndexOf(r,0)||""!==e&&-1!==a[s].lastIndexOf("give-messages",0)&&a[s].match(e+"$"))&&a.splice(s,1);t=i+"?"+a.join("&"),window.history.pushState("",document.title,t)}return t},i=function(){var t,n=e(".give-select-chosen");n.hasClass("give-chosen-settings")?n.chosen({no_results_text:Give.fn.getGlobalVar("chosen_add_title_prefix")+" ",width:"30%"}).on("chosen:no_results",(function(t,n){e(n.chosen.container).on("keydown",(function(i){var o=n.chosen.get_search_text(),r=jQuery(n.chosen.form_field);13!==i.keyCode||r.find('option[value="'+o+'"]').length||"true"!==r.attr("data-allows-new-values")||(e(n.chosen.form_field).append('<option value="'+o+'" selected>'+o+"</option>").trigger("chosen:updated"),n.chosen.result_highlight=n.chosen.search_results.find("li.active-result").lasteturn,n.chosen.result_select(t))}))})):((t=n).on("chosen:ready",(function(){jQuery(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')})),t.chosen({inherit_select_classes:!0,placeholder_text_single:Give.fn.getGlobalVar("one_option"),placeholder_text_multiple:Give.fn.getGlobalVar("one_or_more_option")}),t.on("chosen:no_results",(function(){var e=jQuery(this).next(".chosen-container"),t=e.find("li.no-results"),n="",i=Give.fn.getGlobalVar("chosen");n=e.hasClass("give-select-chosen-ajax")&&t.length?i.ajax_search_msg.replace("{search_term}",'"'+jQuery("input",e).val()+'"'):i.no_results_msg.replace("{search_term}",'"'+jQuery("input",e).val()+'"'),t.html(n),jQuery(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",(function(e){var t=jQuery(this).val(),n=jQuery(this).closest(".give-select-chosen"),i=n.prev(),o=n.find('input[type="text"]'),r=(n.hasClass("variations"),e.which),a="give_form_search",s=this;if(n.prev().data("search-type")){if("no_ajax"===i.data("search-type"))return;a="give_"+i.data("search-type")+"_search"}t.length>0&&t.length<=3||!a.length||9===r||13===r||16===r||17===r||18===r||19===r||20===r||27===r||33===r||34===r||35===r||36===r||37===r||38===r||39===r||40===r||44===r||45===r||144===r||145===r||91===r||93===r||224===r||112<=r&&123>=r||(clearTimeout(Give.cache.chosenSearchTypingTimer),n.addClass("give-select-chosen-ajax"),Give.cache.chosenSearchTypingTimer=setTimeout((function(){jQuery.ajax({type:"POST",url:ajaxurl,data:{action:a,s:t,fields:jQuery(s).closest("form").serialize()},dataType:"json",beforeSend:function(){i.closest("ul.chosen-results").empty(),o.prop("disabled",!0)},success:function(e){n.removeClass("give-select-chosen-ajax"),jQuery("option:not(:selected)",i).remove(),e.length?(jQuery.each(e,(function(e,n){jQuery('option[value="'+n.id+'"]',i).length||(0===t.length?i.append('<option value="'.concat(n.id,'">').concat(n.name,"</option>")):i.prepend('<option value="'.concat(n.id,'">').concat(n.name,"</option>")))})),n.prev("select.give-select-chosen").trigger("chosen:updated")):n.prev("select.give-select-chosen").trigger("chosen:no_results"),o.prop("disabled",!1),o.val(t).focus()}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){o.prop("disabled",!1)}))}),342))})),jQuery(".give-select-chosen .chosen-search input").each((function(){var e=jQuery(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),t="";"form"===e?t=Give.fn.getGlobalVar("search_placeholder"):(e="search_placeholder_"+e,Give.fn.getGlobalVar(e)&&(t=Give.fn.getGlobalVar(e))),jQuery(this).attr("placeholder",t)}))}))),e(".chosen-container").each((function(){0===e(this).width()&&e(this).css("width","100%")})),e("#post").on("click",".give-thickbox",(function(){e(".give-select-chosen","#choose-give-form").css("width","100%")}))};function o(e,t){return e=G().unformat(e,Give.fn.getGlobalVar("decimal_separator")).toString(),e=!1!==(t="undefined"!==t&&t)?parseFloat(e).toFixed(t):parseFloat(e).toFixed(Give.fn.getGlobalVar("currency_decimals"))}var r={init:function(){this.deleteSingleDonation(),this.resendSingleDonationReceipt()},deleteSingleDonation:function(){new v({triggerSelector:".delete-single-donation",modalWrapper:"give-modal--warning",modalContent:{title:Give.fn.getGlobalVar("confirm_delete_donation"),desc:Give.fn.getGlobalVar("delete_payment")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})},resendSingleDonationReceipt:function(){new v({triggerSelector:".resend-single-donation-receipt",modalContent:{title:Give.fn.getGlobalVar("confirm_resend"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})}},a={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change((function(){var t=e(this),n={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"};return e.post(ajaxurl,n,(function(n){t.closest(".column-container").find("#give-order-address-state-wrap").removeClass("give-hidden"),t.closest(".column-container").find(".give-column").removeClass("column-full"),t.closest(".column-container").find(".give-column").addClass("column");var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),void 0!==Y(n.states_found)&&!0===n.states_found?(i.append(n.data),i.find("select").chosen()):(i.append('<input type="text" name="give-payment-address[0][state]" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!==Y(n.show_field)&&!1===n.show_field&&(t.closest(".column-container").find("#give-order-address-state-wrap").addClass("give-hidden"),t.closest(".column-container").find(".give-column").addClass("column-full"),t.closest(".column-container").find(".give-column").removeClass("column")))})),!1}))},add_note:function(){e("#give-add-payment-note").on("click",(function(t){function n(){e.ajax({type:"POST",data:a,url:ajaxurl,beforeSend:function(){o.prop("disabled",!0),i.prop("disabled",!0)},success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).always((function(){o.prop("disabled",!1),i.prop("disabled",!1)}))}t.preventDefault();var i=e(this),o=e("#give-payment-note"),r=e("#donation_note_type"),a={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:o.val(),type:r.val()};if(a.note)"donor"===a.type&&give_vars.email_notification.donor_note.status?new Give.modal.GiveConfirmModal({successConfirm:function(){n()},modalContent:{desc:give_vars.donor_note_confirm_msg}}).render():n();else{var s=o.css("border-color");o.css("border-color","red"),setTimeout((function(){o.css("border-color",s)}),500)}}))},remove_note:function(){e("body").on("click",".give-delete-payment-note",(function(t){t.preventDefault();var n=this;new v({modalContent:{title:Give.fn.getGlobalVar("confirm_deletion"),desc:Give.fn.getGlobalVar("delete_payment_note")},successConfirm:function(t){var i={action:"give_delete_payment_note",payment_id:e(n).data("payment-id"),note_id:e(n).data("note-id")};e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}}).render()}))},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-donor, .give-payment-new-donor-cancel",(function(t){t.preventDefault(),e(".donor-info").toggle(),e(".new-donor").toggle(),e(".new-donor").is(":visible")?e("#give-new-donor").val(1):e("#give-new-donor").val(0)}))},resend_receipt:function(){e("body").on("click","#give-resend-receipt",(function(t){var n=this;t.preventDefault(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(){window.location.assign(e(n).attr("href"))}}).render()}))},variable_price_list:function(){e("#give_payment_form_select").chosen().change((function(){var t,n=e(".give-donation-level");return!!(t=e(this).val())&&(!!n.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){(t=t.trim())?(n.html(t),e('select[name="give-variable-price"]').chosen().change()):n.html("")}}))})),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',(function(){var t=jQuery(this).data("prices"),n=e("#give-payment-total");""!==t&&e(this).val()in t&&(n.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout((function(){n.css("background-color","white")}),1e3))}))}},s={init:function(){this.toggle_gateways(),this.setting_change_country(),this.toggle_options(),this.main_setting_update_notice(),this.verify_settings(),this.saveButtonTriggered(),this.changeAlert(),this.detectSettingsChange(),this.sequentialDonationIDPreview()},toggle_gateways:function(){e(".gateways-checkbox").on("click",(function(){var t=e(this).prev(".gateways-radio"),n=(this.checked,e(".gateways-checkbox:checked"));1===n.length?(n.prev(".gateways-radio").attr("checked","checked"),this.checked?t.removeAttr("disabled"):t.attr("disabled","disabled")):this.checked?(t.removeAttr("disabled"),t.removeAttr("checked")):t.attr("disabled","disabled")}))},setting_change_country:function(){e('select[name="base_country"]').change((function(){var t=e(this),n={action:"give_get_states",country:t.val(),field_name:"base_state"};return e.post(ajaxurl,n,(function(i){t.closest("tr").next().show(),e("#base_state_chosen").remove(),void 0!==Y(i.states_found)&&1==i.states_found?(e(':input[name="base_state"]').replaceWith(i.data).addClass("give-select-chosen"),e(':input[name="base_state"]').chosen()):(void 0!==Y(i.show_field)&&0==i.show_field&&t.closest("tr").next().hide(),e(':input[name="base_state"]').replaceWith('<input type="text" name="'+n.field_name+'" value="'+i.default_state+'" class="give-edit-toggles medium-text"/>'))})),!1}))},toggle_options:function(){e('input[name="email_access"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),n=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e('input[name="enable_recaptcha"]').parents("tr").show(),"enabled"===n?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide(),e('input[name="enable_recaptcha"]').parents("tr").hide())})).change(),e('input[name="enable_recaptcha"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),n=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t&&"enabled"===n?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())})).change(),e('input[name="form_featured_img"]',".give-setting-tab-body-display").on("change",(function(){"enabled"===e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val()?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()})).change(),e('input[name="terms"]',".give-setting-tab-body-display").on("change",(function(){"enabled"===e('input[name="terms"]:checked',".give-setting-tab-body-display").val()?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())})).change(),e('input[name="admin_notices"]',".give-setting-tab-body-emails").on("change",(function(){"enabled"===e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val()?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())})).change(),e('input[name="sequential-ordering_status"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="sequential-ordering_status"]:checked',".give-setting-tab-body-general").val(),n=e(this).closest("table");"enabled"===t?e("input",n).not('input[name="sequential-ordering_status"]').parents("tr").show():e("input",n).not('input[name="sequential-ordering_status"]').parents("tr").hide()})).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout((function(){t.slideUp()}),5e3)},verify_settings:function(){var t=e("#success_page"),n=e("#failure_page");t.add(n).change((function(){if(t.val()===n.val()){var i='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+Give.fn.getGlobalVar("matched_success_failure_page")+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+Give.fn.getGlobalVar("dismiss_notice_text")+"</span></button> </div>",o=e("#setting-error-give-matched-success-failure-page");if(e(this).val(""),o.length)return!1;e("h1","#give-mainform").after(i),o=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",o).click((function(){o.remove()}))}})).change()},saveButtonTriggered:function(){e(".give-settings-setting-page").on("click",".give-save-button",(function(){e(window).unbind("beforeunload")}))},changeAlert:function(){e(window).bind("beforeunload",(function(e){var t=Give.fn.getGlobalVar("setting_not_save_message");if($)return(e||window.event).returnValue=t,t}))},detectSettingsChange:function(){var t=e(".give-settings-setting-page");if(t.length>0){var n=e("#give-mainform").serialize();t.on("change keyup blur","form",(function(t){if(!e(t.target).closest(".js-fields-has-custom-saving-logic").length){var i=e("#give-mainform").serialize();$=n!==i}}))}},sequentialDonationIDPreview:function(){var t=jQuery("#sequential-ordering_preview");t.length&&(jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number, #sequential-ordering_number_padding, #sequential-ordering_number_suffix").on("keyup change",(function(){var e=jQuery("#sequential-ordering_number_prefix").val(),n=jQuery("#sequential-ordering_number").val().trim()||"1",i=jQuery("#sequential-ordering_number_padding").val().trim(),o=jQuery("#sequential-ordering_number_suffix").val(),r="".concat(e).concat(n.padStart(i,"0")).concat(o);t.val(r)})),jQuery("#sequential-ordering_number_prefix").trigger("keyup"),jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number_suffix").on("blur",(function(){e(this).val(e(this).val().replace(new RegExp(" ","g"),"-"))})))}},l={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change((function(){"other"===e(this).val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()}))},donors_export:function(){e("#give_donor_export_form").change((function(){var t=e(this),n=e("option:selected",t).val(),i=e("#give_customer_export_option");"0"===t.val()?i.show():i.hide();var o=e(".give_price_options_select");if(0!=parseInt(n)){var r={action:"give_check_for_form_price_variations",form_id:n,all_prices:!0};e.post(ajaxurl,r,(function(t){o.remove(),e("#give_donor_export_form_chosen").after(t)}))}else o.remove()}))},recount_stats:function(){e("body").on("change","#recount-stats-type",(function(){var t=e("#give-tools-recount-form"),n=e("option:selected",this).data("type"),i=e("#recount-stats-submit"),o=e(".tools-form-dropdown"),r=e(".tools-date-dropdown-delete-donations");if(t.find(".notice-wrap").remove(),i.removeClass("button-disabled").attr("disabled",!1),o.hide(),r.hide(),e(".give-recount-stats-descriptions span").hide(),"reset-stats"===n)t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("reset_stats_warn")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled");else if("delete-test-donors"===n){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_test_donor")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else if("delete-import-donors"===n){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_import_donor")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else if("delete-donations"===n){r.show(),t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_donations_only")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else o.hide(),o.val(0);var a=e(".tools-form-dropdown-"+n);a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"}),e("#"+n).show()})),e("body").on("change","#confirm-reset",(function(){e(this).is(":checked")?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")})),e("#give-tools-recount-form").submit((function(t){var n=e("#recount-stats-type").val(),i=e(this),o=e("option:selected",this).data("type");if("reset-stats"===o){if(e("#confirm-reset").is(":checked"))return!0;a=!0}i.find(".notice-wrap").remove(),i.append('<div class="notice-wrap"></div>');var r=i.find(".notice-wrap"),a=!1;(null!==n&&0!==n||(r.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_class")+"</p></div>"),a=!0),"recount-form"===o)&&(0==e('select[name="form_id"]').val()&&(r.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_reqs")+"</p></div>"),a=!0));if(a)return i.find(".button-disabled").removeClass("button-disabled"),!1}))}},c={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",(function(n){n.preventDefault();var i=e(this).find('input[type="submit"]');if(!i.hasClass("button-disabled")){var o=e(this).serialize();i.addClass("button-disabled"),e("form.give-export-form select").attr("disabled",!0).trigger("chosen:updated");var r=e(this);e(this).find(".add-notices").length>0&&(r=e(this).find(".add-notices")),r.find(".notice-wrap").remove(),r.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,o,t,this)}}))},process_step:function(t,n,i,o,r){$=!0;var a=!1;e.ajax({type:"POST",url:ajaxurl,data:{form:n,action:"give_do_ajax_export",step:t,file_name:r},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){$=!1,a=!0;var r=e(o).parent().find(".notice-wrap");r.find(".give-progress");if(e(o).find(".button-disabled").removeClass("button-disabled"),e(o).find("select").attr("disabled",!1).trigger("chosen:updated"),t.error){var s=t.message;r.html('<div class="updated error"><p>'+s+"</p></div>")}else if(t.success){var l=t.message;r.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+l+'<span class="notice-dismiss"></span></p></div>')}else r.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,(function(){})),i.process_step(parseInt(t.step),n,i,o,t.file_name);!0===a&&e("#give-tools-recount-form").length>0&&(e("#give-tools-recount-form")[0].reset(),e("#give-tools-recount-form .tools-form-dropdown").hide(),e("#give-tools-recount-form .tools-date-dropdown").hide(),e("#give-tools-recount-form .tools-form-dropdown-recount-form-select").val("0").trigger("chosen:updated"))}}).fail((function(t){$=!1,window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)}))},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",(function(){e("#give-batch-success").parent().slideUp("fast")}))}},d={el:{},init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;t.el.main_container=Give_Selector_Cache.get("#give-db-updates"),t.el.update_link=Give_Selector_Cache.get(".give-update-now",t.el.main_container),t.el.run_upload_container=Give_Selector_Cache.get(".give-run-database-update",t.el.progress_main_container),t.el.progress_main_container=Give_Selector_Cache.get(".progress-container",t.el.main_container),t.el.heading=Give_Selector_Cache.get(".update-message",t.el.progress_main_container),t.el.progress_container=Give_Selector_Cache.get(".progress-content",t.el.progress_main_container),t.el.update_progress_counter=Give_Selector_Cache.get(e(".give-update-progress-count")),t.el.main_container.data("resume-update")&&(t.el.update_link.addClass("active").hide().removeClass("give-hidden"),e("#give-restart-upgrades").length||(Give.fn.getGlobalVar("ajax").length||window.setTimeout(d.start_db_update,1e3),window.setTimeout(d.get_db_updates_info,1e3,t))),t.el.update_link.hasClass("active")||(t.el.update_link.on("click","",(function(e){e.preventDefault(),t.el.run_upload_container.find(".notice").remove(),t.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+Give.fn.getGlobalVar("db_update_confirmation_msg_button")+"</a> "+Give.fn.getGlobalVar("db_update_confirmation_msg")+"</p></div>")})),e("#give-db-updates").on("click","a.give-run-update-button",(function(n){return n.preventDefault(),e(this).hasClass("active")||(e(this).addClass("active").fadeOut(),t.el.update_link.addClass("active").fadeOut(),e("#give-db-updates .give-run-update-containt").slideUp(),t.el.progress_container.find(".notice-wrap").remove(),t.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.el.progress_main_container.removeClass("give-hidden"),d.start_db_update(),window.setTimeout(d.get_db_updates_info,500,t)),!1})))},start_db_update:function(){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_run_db_updates",run_db_update:1,nonce:Give.fn.getGlobalVar("db_update_nonce")},dataType:"json",success:function(e){}}).always((function(){Give.fn.getGlobalVar("ajax").length||window.setTimeout(d.start_db_update,1e3)}))},get_db_updates_info:function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_db_updates_info"},dataType:"json",success:function(n){var i=Give_Selector_Cache.get(".notice-wrap",t.el.progress_container,!0);-1!==e.inArray("success",Object.keys(n))?n.success?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text("100%"),-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),t.el.update_link.closest("p").remove(),i.html('<div class="notice notice-success is-dismissible"><p>'+n.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),n.data.message?(t.el.update_link.closest("p").remove(),i.html('<div class="notice notice-error is-dismissible"><p>'+n.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):setTimeout((function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")}),1e3)):n&&-1!==e.inArray("percentage",Object.keys(n.data))?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text(n.data.total_percentage+"%"),-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),e(".give-progress div","#give-db-updates").animate({width:n.data.percentage+"%"},50,(function(){})),window.setTimeout(d.get_db_updates_info,1e3,t)):(i.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout((function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")}),1e3))}})},process_step:function(t,n,i){$=!0,e.ajax({type:"POST",url:ajaxurl,data:{action:"give_do_ajax_updates",step:parseInt(t),update:parseInt(n)},dataType:"json",success:function(t){$=!1;var n=Give_Selector_Cache.get(".notice-wrap",i.el.progress_container,!0);-1!==e.inArray("success",Object.keys(t))?t.success?(-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading+"</strong>"),i.el.update_link.closest("p").remove(),n.html('<div class="notice notice-success is-dismissible"><p>'+t.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading+"</strong>"),n.html('<div class="notice notice-error"><p>'+t.data.message+"</p></div>"),setTimeout((function(){i.el.update_link.removeClass("active").show(),i.el.progress_main_container.addClass("give-hidden")}),5e3)):t&&-1!==e.inArray("percentage",Object.keys(t.data))?(e(".give-progress div","#give-db-updates").animate({width:t.data.percentage+"%"},50,(function(){})),-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading.replace("{update_count}",i.el.heading.data("update-count"))+"</strong>"),i.process_step(parseInt(t.data.step),t.data.update,i)):(n.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout((function(){i.el.update_link.removeClass("active").show(),i.el.progress_main_container.addClass("give-hidden")}),5e3))}}).fail((function(e){$=!1,window.console&&window.console.log&&console.log(e),Give_Selector_Cache.get(".notice-wrap",self.el.progress_container).append(e.responseText)})).always((function(){}))},dismiss_message:function(){e("body").on("click","#poststuff .notice-dismiss",(function(){e(this).parent().slideUp("fast")}))}},u={init:function(){this.restartUpgrade(),this.stopUpgrade(),this.restartUpdater()},restartUpgrade:function(){jQuery("#give-restart-upgrades").click("click",(function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").show(),jQuery(".give-update-paused-text-p").hide(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()}))},stopUpgrade:function(){jQuery("#give-pause-upgrades").click("click",(function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").hide(),jQuery(".give-update-paused-text-p").show(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("stop_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()}))},restartUpdater:function(){jQuery(".give-restart-updater-btn,.give-run-update-now").click("click",(function(e){var t=this;e.preventDefault(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_update")},successConfirm:function(){window.location.assign(jQuery(t).attr("href"))}}).render()}))}},f={onLoadPageNumber:"",init:function(){this.loadGravatar(),this.unlockDonorFields(),this.editDonor(),this.add_email(),this.removeUser(),this.cancelEdit(),this.add_note(),this.delete_checked(),this.addressesAction(),this.bulkDeleteDonor(),f.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-donors-filter .bulkactions input[type="submit"]',this.handleBulkActions)},loadGravatar:function(){var t,n;e(".give-donor-name").each((function(){if(!(t=e(this).find(".give-donor__image")).hasClass("gravatar-loaded")){if(n=t.attr("data-donor_email"),"1"===t.attr("data-has-valid-gravatar")){var i=e("<img>");i.attr("src",J.url(n)),i.attr("width","60"),i.attr("height","60"),e(this).find(".give-donor__image").html(i)}t.addClass("gravatar-loaded")}}))},unlockDonorFields:function(t){e("body").on("click",".give-lock-block",(function(e){new h({modalContent:{title:Give.fn.getGlobalVar("unlock_donor_fields_title"),desc:Give.fn.getGlobalVar("unlock_donor_fields_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),e.preventDefault()}))},editDonor:function(){e("body").on("click","#edit-donor",(function(t){t.preventDefault(),e("#give-donor-card-wrapper .editable").hide(),e("#give-donor-card-wrapper .edit-item").fadeIn().css("display","block")}))},removeUser:function(){e("body").on("click","#disconnect-donor",(function(t){return t.preventDefault(),new v({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("disconnect_user")},successConfirm:function(){var t={give_action:"disconnect-userid",customer_id:e('input[name="donor_info[id]"]').val(),_wpnonce:e("#edit-donor-info #_wpnonce").val()};e.post(ajaxurl,t,(function(e){window.location.href=e.redirect}),"json")}}).render(),!1}))},cancelEdit:function(){e("body").on("click","#give-edit-donor-cancel",(function(t){t.preventDefault(),e("#give-donor-card-wrapper .edit-item").hide(),e("#give-donor-card-wrapper .editable").show(),e(".give_user_search_results").html("")}))},add_note:function(){e("body").on("click","#add-donor-note",(function(t){t.preventDefault();var n={give_action:"add-donor-note",customer_id:e("#donor-id").val(),donor_note:e("#donor-note").val(),add_donor_note_nonce:e("#add_donor_note_nonce").val()};if(n.donor_note)e.ajax({type:"POST",data:n,url:ajaxurl,success:function(t){e("#give-donor-notes").prepend(t),e(".give-no-donor-notes").hide(),e("#donor-note").val("")}}).fail((function(e){window.console&&window.console.log&&console.log(e)}));else{var i=e("#donor-note").css("border-color");e("#donor-note").css("border-color","red"),setTimeout((function(){e("#donor-note").css("border-color",i)}),500)}}))},delete_checked:function(){e("#give-donor-delete-confirm").change((function(){var t=e("#give-donor-delete-records"),n=e("#give-delete-donor");e(this).prop("checked")?(t.attr("disabled",!1),n.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),n.attr("disabled",!0))}))},add_email:function(){e("#add-donor-email").length&&e(document.body).on("click","#add-donor-email",(function(t){t.preventDefault();var n=e(this),i=n.parent();i.parent().find(".notice-wrap").remove(),i.find(".spinner").css("visibility","visible"),n.attr("disabled",!0);var o={give_action:"add_donor_email",customer_id:i.find('input[name="donor-id"]').val(),email:i.find('input[name="additional-email"]').val(),primary:i.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:i.find('input[name="add_email_nonce"]').val()};e.post(ajaxurl,o,(function(e){!0===e.success?window.location.href=e.redirect:(n.attr("disabled",!1),i.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),i.find(".spinner").css("visibility","hidden"))}),"json")}))},addressesAction:function(){var n=this,i=e("#donor-address-wrapper"),o=e(".all-address",i),r=e(".give-no-address-message",i),a=e(o).parent(),s=e(".address-form",i),l=e(".js-cancel",s),c=e('select[name="country"]',s),d=e(".add-new-address",i),u=parseInt(e('input[name="donor-id"]').val());c.on("change",(function(){e(this).trigger("chosen:updated")})),o.on("click",".js-edit",(function(t){var i=e(this).closest(".address");t.preventDefault(),e(".notice",a).remove(),n.__set_address_form_val(i),n.__set_address_form_action("update",i.data("address-id")),d.hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),s.data("process","update")})),o.on("click",".js-remove",(function(t){t.preventDefault();var i=e(this).closest(".address");e(".notice",a).remove(),s.data("changed",!0),n.__set_address_form_val(i),n.__set_address_form_action("remove",i.data("address-id")),s.trigger("submit")})),d.on("click",(function(t){t.preventDefault(),e(".notice",a).remove(),e(this).hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),n.__set_address_form_action("add"),n.__set_address_form_action()})),l.on("click",(function(e){e.preventDefault(),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")})),s.on("change",(function(){e(this).data("changed",!0)})).on("submit",(function(n){n.preventDefault();var l=e(this);return e(".notice",a).remove(),e(this).data("changed")?(e.ajax({type:"POST",url:ajaxurl,data:{action:"donor_manage_addresses",donorID:u,form:e("form",s).serialize()},beforeSend:function(){t(i,{show:!0})},success:function(n){if(t(i),n.success){var s;switch(n.data.action){case"add":e(".give-grid-row",o).append(n.data.address_html),!r.hasClass("give-hidden")&&e("div.give-grid-col-4",o).length&&r.addClass("give-hidden");break;case"remove":(s=o.find('div[data-address-id*="'+n.data.id+'"]').parent()).length&&s.animate({"margin-left":"-999"},1e3,(function(){s.remove(),r.hasClass("give-hidden")&&!e("div.give-grid-col-4",o).length&&r.removeClass("give-hidden")}));break;case"update":var l=(s=o.find('div[data-address-id*="'+n.data.id+'"]').parent()).prev(),c={},d=!1;parseInt(e(".give-grid-row>div",o).length)<2?e(".give-grid-row",o).append(n.data.address_html):(l.length&&(l.after(n.data.address_html),d=!0),d||(c=s.next()).length&&c.before(n.data.address_html)),s.remove()}a.prepend(n.data.success_msg)}else a.prepend(n.data.error_msg)},dataType:"json"}).always((function(){l.data("changed",!1),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")})),!1):(d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden"),!1)}))},__set_address_form_action:function(t,n){var i=e("#donor-address-wrapper"),o=e(".address-form",i),r=e('input[name="address-action"]',o),a=e('input[name="address-id"]',o);t=t||"add",n=n||"billing",r.val(t),a.val(n)},__set_address_form_val:function(t){var n=e("#donor-address-wrapper"),i=e(".address-form",n),o=e('[data-address-type="state"]',t).text().substr(2).trim();e('select[name="country"]',i).val().trim()!==e('[data-address-type="country"]',t).text().trim()?(e('select[name="country"]',i).val(e('[data-address-type="country"]',t).text().trim()).trigger("chosen:updated").change(),window.setTimeout((function(){e('[name="state"]',i).val(o).trigger("chosen:updated")}),500)):e('[name="state"]',i).val(o).trigger("chosen:updated"),e('input[name="line1"]',i).val(e('[data-address-type="line1"]',t).text().trim()),e('input[name="line2"]',i).val(e('[data-address-type="line2"]',t).text().trim()),e('input[name="city"]',i).val(e('[data-address-type="city"]',t).text().trim()),e('input[name="zip"]',i).val(e('[data-address-type="zip"]',t).text().trim())},bulkDeleteDonor:function(){var t=e("body");t.on("click","#give-bulk-delete-cancel",(function(t){e(this).closest("tr").hide(),e(".give-skip-donor").trigger("click"),t.preventDefault()})),t.on("click","#cb-select-all-1, #cb-select-all-2",(function(){var t=e(this);e.each(e(".donor-selector"),(function(){var n=e(this).val(),i=e(this).data("name"),o='<div id="give-donor-'+n+'" data-id="'+n+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+i+"</div>";t.is(":checked")&&!e(this).is(":checked")?e("#give-bulk-donors").append(o):t.is(":checked")||e("#give-bulk-donors").find("#give-donor-"+n).remove()}))})),t.on("click",".donor-selector",(function(){var t=e(this).val(),n=e(this).data("name"),i='<div id="give-donor-'+t+'" data-id="'+t+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+n+"</div>";e(this).is(":checked")?e("#give-bulk-donors").prepend(i):e("#give-bulk-donors").find("#give-donor-"+t).remove()})),t.on("click","#give-bulk-delete .give-donor-delete-confirm",(function(){e(this).is(":checked")?e("#give-bulk-delete-button").removeAttr("disabled"):(e("#give-bulk-delete-button").attr("disabled",!0),e("#give-bulk-delete .give-donor-delete-records").removeAttr("checked"))})),t.on("click","#give-bulk-delete .give-donor-delete-records",(function(){e(this).is(":checked")&&(e("#give-bulk-delete .give-donor-delete-confirm").attr("checked","checked"),e("#give-bulk-delete-button").removeAttr("disabled"))})),t.on("click",".give-skip-donor",(function(){var t=e(this).closest("div").data("id");e("#give-donor-"+t).remove(),e("#donor-"+t).find('input[type="checkbox"]').removeAttr("checked")})),t.on("click",".give-single-donor-delete",(function(t){var n=e(this).data("id"),i=e("tr#donor-"+n).find(".donor-selector"),o=e('[id^="cb-select-all-"]'),r=e("#give-bulk-donors"),a=i.data("name"),s='<div id="give-donor-'+n+'" data-id="'+n+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+a;r.html(""),o.is(":checked")&&o.removeAttr("checked"),e(".donor-selector").removeAttr("checked"),i.prop("checked",!0),0===e("#give-donor-"+n).length&&(r.prepend(s),e("#give-bulk-delete").slideDown()),t.preventDefault()}))},handleBulkActions:function(t){var n=e(this).closest(".tablenav").find("select").val(),i=[],o=e("#current-page-selector").val(),r=f.onLoadPageNumber!==o,a=Give.fn.getGlobalVar("donors_bulk_action.no_action_selected"),s=Give.fn.getGlobalVar("donors_bulk_action.no_donor_selected");return!!r||(e.each(e(".donor-selector:checked"),(function(){i.push(e(this).val())})),"-1"===n?(new p({modalContent:{title:a.title,desc:a.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1):parseInt(i)?("delete"===n&&e("#give-bulk-delete").slideDown(),void t.preventDefault()):(new p({modalContent:{title:s.title,desc:s.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1))}},m={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",(function(t){t.preventDefault();var n=e(this).attr("href");return new v({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("revoke_api_key")},successConfirm:function(){window.location.assign(n)}}).render(),!1}))},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",(function(t){var n=e(this).attr("href");return new v({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("regenerate_api_key")},successConfirm:function(){window.location.assign(n)}}).render(),!1}))}},g={init:function(){var t=e.query.get("give_tab").length?e.query.get("give_tab"):"form_template_options";this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events(),this.activate_tab(e('a[href="#'+t+'"]'))},handle_metabox_tab_click:function(){var t=this;e(".give-metabox-tabs a").on("click",(function(n){n.preventDefault();var i=e(this);t.activate_tab(i),t.update_query(i)}))},activate_tab:function(t){var n=t.data("tab-id"),i=t.parent(),o=e("ul.give-metabox-sub-tabs",i),r=o.length,a=e(".give-metabox-tabs a").parents("li"),s=e("ul.give-metabox-sub-tabs"),l=t.parents("ul.give-metabox-sub-tabs").length;if(e("#give_form_active_tab").val(n),r){i.toggleClass("active"),o.removeClass("give-hidden");var c=e("li.active","ul.give-metabox-sub-tabs");s.not(o).addClass("give-hidden"),a.not(i).removeClass("active"),c.addClass("active")}else l?l&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),a.removeClass("active"),t.parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),t.parents("li.has-sub-fields").addClass("active")):a.each((function(t,n){(n=e(n)).removeClass("active"),n.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",n).addClass("give-hidden")}));t.parent().addClass("active"),e(".give_options_panel").removeClass("active"),e(t.attr("href")).addClass("active")},update_query:function(t){var n=t.data("tab-id"),i=e.query.set("give_tab",n).remove("message").toString();history.replaceState&&history.replaceState(null,null,i)},setup_colorpicker_fields:function(){e(document).ready((function(){var t=e(".give-colorpicker");t.length&&t.each((function(t,n){var i=e(n);i.parents(".give-template").length||i.wpColorPicker()}))}))},setup_media_fields:function(){var t,n,i=e("body");i.on("click",".give-upload-button",(function(o){o.preventDefault();var r={};if(n=e(this),"media"===e(this).data("field-type"))r={title:Give.fn.getGlobal().metabox_fields.media.button_title,button:{text:Give.fn.getGlobal().metabox_fields.media.button_title},multiple:!1,library:{type:"image"}};else r={title:Give.fn.getGlobal().metabox_fields.file.button_title,button:{text:Give.fn.getGlobal().metabox_fields.file.button_title},multiple:!1};void 0!==jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("editing")&&(wp.media.controller.Library.prototype.defaults.contentUserSetting=!1);var a=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("library");void 0!==a&&""!==a&&(r.library={type:a}),(t=wp.media(r)).on("select",(function(){var e=t.state().get("selection").first().toJSON(),o=n.prev(),r="id"===n.data("fvalue")?e.id:e.url;if(i.trigger("give_media_inserted",[e,o]),o.val(r),"id"!==n.data("fvalue")){var a='input[name="'+o.attr("name")+'_id"]';o.closest("tr").next("tr").find(a).length&&o.closest("tr").next("tr").find(a).val(e.id)}})),t.open()})),i.on("give_media_inserted",(function(t,i){var o=n.parents(".give-field-wrap"),r=e(".give-image-thumb",o);return!!r.length&&("image"!==i.type?(r.addClass("give-hidden"),e("img",r).attr("src",""),!1):(r.find("img").attr("src",i.url),void r.removeClass("give-hidden")))})),e("span.give-delete-image-thumb",".give-image-thumb").on("click",(function(t){t.preventDefault();var n=e(this).parents(".give-field-wrap"),i=e(this).parent(),o=e('input[type="text"]',n);i.addClass("give-hidden"),o.val(""),e("img",i).attr("src","")}))},setup_repeatable_fields:function(){jQuery((function(){jQuery(".give-repeatable-field-section").each((function(){var t=e(this),n={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:Give.fn.getGlobalVar("confirm_before_remove_row_text"),is_sortable:!0,before_add:null,after_add:_,before_remove:null,after_remove:b,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(n,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item);var o=e(".give-row",t).not(".give-template");o.length&&o.each((function(t,n){var i=e('input[type="radio"].give-field',e(n));i.length&&i.each((function(){e(this).attr("data-give-checked",e(this).is(":checked"))}))})),e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item),e("body").trigger("repeater_field_sorting_stop",[n.item])},update:function(n,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item);var o=e(".give-row",t).not(".give-template"),r=e(this).closest(".give-repeatable-fields-section-wrapper");if(o.length){var a=1;o.each((function(t,n){var i=e(".give-field, label",e(n));i.length&&i.each((function(){var t=e(this).parents(".give-field-wrap"),n=e(this);e.each(this.attributes,(function(e,i){var o,r=this.value.replace(/\[/g,"_").replace(/]/g,""),s=r+"_field",l="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(a-1)+"]"),o=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(s)&&(l=o+"_field",t.removeClass(s).addClass(l)),r==n.attr("id")&&n.attr("id",o))}))})),a++})),window.setTimeout((function(){e("input[data-give-checked]",r).each((function(t,n){(n=e(n)).prop("checked","true"===n.attr("data-give-checked"))}))}),100),t.trigger("repeater_field_row_reordered",[i.item])}}}};jQuery(this).repeatable_fields(n)}))}))},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),n=e("body");n.on("click",".give-row-head .give-handlediv",(function(){var t=e(this).closest(".give-row");t.toggleClass("closed"),e(".give-row-body",t).toggle()})),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",(function(){y(e(this))})),n.on("repeater_field_sorting_start",(function(t,n){var i=e(".wp-editor-area",n);i.length&&i.each((function(t,n){window.setTimeout((function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(n).attr("id"))}),300)}))})),n.on("repeater_field_sorting_stop",(function(t,n){var i=e(".wp-editor-area",n);i.length&&i.each((function(t,n){window.setTimeout((function(){var t=e(n).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout((function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")}),100)}),300)}))})),t.each((function(t,n){var i=e(n);y(i),parseInt(i.data("close-tabs"))&&(e(".give-row-head button",i).trigger("click"),e(".give-template",i).removeClass("closed"),e(".give-template .give-row-body",i).show())})),t.on("repeater_field_new_row_added",(function(t,n,i){e(".give-colorpicker",e(this)).each((function(t,n){var i=e(n);i.parents(".wp-picker-container").length||i.parents(".give-template").length||i.wpColorPicker()}));var o=e("div[data-wp-editor]",i);o.length&&o.each((function(t,n){var i=e(n),o=e(".wp-editor-wrap",i),r=e("textarea",i),a="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=o.prev();r.attr("id",a),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:i.data("wp-editor"),wp_editor_id:a,textarea_name:e("textarea",i).attr("name")},(function(t){o.remove(),s.after(t),tinyMCEPreInit.qtInit[r.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:a}),tinyMCEPreInit.mceInit[a]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:a+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+a}),tinymce.init(tinyMCEPreInit.mceInit[a]),quicktags(tinyMCEPreInit.qtInit[a]),QTags._buttonsInit(),window.setTimeout((function(){switchEditors.go(a,"html"),e("#"+a+"-tmce").trigger("click")}),100),window.wpActiveEditor||(window.wpActiveEditor=a)}))}))}))},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",(function(){var t=e(this).closest("tr"),n=e(".give-row-head h2 span",t),i=n.data("header-title");if(e(this).val()&&e(this).val()===n.html())return!1;e(this).val()?n.html(i+": "+e(this).val()):n.html(i)})),e(".give-multilevel-text-field").each((function(t,n){if(t){var i=e(n),o=i.closest("tr"),r=e(".give-row-head h2 span",o),a=r.data("header-title");if(i.val()&&i.val()===r.html())return!1;i.val()?r.html(a+": "+i.val()):r.html(a)}})),t.on("repeater_field_row_deleted",(function(){var t=e(this);window.setTimeout((function(){var n=e(".give-row",t).not(".give-template"),i=e(".give-give_default_radio_inline",n);1===n.length&&i.prop("checked",!0)}),200)})),t.on("repeater_field_new_row_added",(function(t,n,i){var o=e(this),r=0;window.setTimeout((function(){!1===e(".give-give_default_radio_inline",o).is(":checked")&&e(".give-row",o).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)}),200),e('input[type="hidden"].give-levels_id',o).each((function(t,n){var i=e(n),o=parseInt(i.val());r<o&&(r=o)})),e('input[type="hidden"].give-levels_id',i).val(++r)}))}},_=function(t,n){var i=e(t).attr("data-rf-row-count"),o=e(t).parents(".give-repeatable-field-section");i++,e("*",n).each((function(){e.each(this.attributes,(function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",i-1)}))})),e(t).attr("data-rf-row-count",i),o.trigger("repeater_field_new_row_added",[t,n])},b=function(t){var n=e(t),i=n.parents(".give-repeatable-field-section"),o=e(t).prop("data-rf-row-count");n.prop("data-rf-row-count",--o),i.trigger("repeater_field_row_deleted")},y=function(t){if(parseInt(t.data("group-numbering"))){var n=e(".give-row-head h2 span",t),i=n.data("header-title");n.each((function(t,n){var o=e(n);o.parents(".give-template").length||o.html(i+": "+t)}))}},w={onLoadPageNumber:"",init:function(){w.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-payments-filter input[type="submit"]',this.handleBulkActions)},handleBulkActions:function(t){var n=e(this).closest(".tablenav").find("select").val(),i=e(this).closest(".tablenav").find('option[value="'+n+'"]').text(),o=e('input[name="payment[]"]:checked').length,r=-1!==n.indexOf("set-status-"),a="",s="",l=e("#current-page-selector").val();if(w.onLoadPageNumber!==l)return!0;if("-1"===(n=r?"set-to-status":n))return new p({modalContent:{title:Give.fn.getGlobal().donors_bulk_action.no_action_selected.title,desc:Give.fn.getGlobal().donors_bulk_action.no_action_selected.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;if(Object.keys(Give.fn.getGlobalVar("donations_bulk_action")).length)for(s in Give.fn.getGlobalVar("donations_bulk_action"))if(s===n){if(a=r?Give.fn.getGlobal().donations_bulk_action[n].zero.replace("{status}",i.replace("Set To ","")):Give.fn.getGlobal().donations_bulk_action[n].zero,!parseInt(o))return new p({modalContent:{title:Give.fn.getGlobal().donations_bulk_action.titles.zero,desc:a,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;a=1<o?Give.fn.getGlobal().donations_bulk_action[n].multiple:Give.fn.getGlobal().donations_bulk_action[n].single,t.preventDefault(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_bulk_action"),desc:a.replace("{payment_count}",o).replace("{status}",i.replace("Set To ",""))},successConfirm:function(t){e("#give-payments-filter").submit()}}).render()}return!0}},x=function(){var e=document.querySelectorAll(".js-give-shortcode-button");if(e){var t,n=H(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;new V(i).init()}}catch(e){n.e(e)}finally{n.f()}}},k={init:function(){var t,n=null!==(t=document.querySelectorAll(".give-select-chosen[multiple]"))&&void 0!==t?t:[];Array.from(n).forEach((function(t){var n=t.dataset.order?t.dataset.order.split("|"):[];n.length>0&&k.reorderItems(t,n),e(t).chosen().change((function(t,n){var i,o=t.target,r=[];n.deselected&&e(this).trigger("chosen:updated"),(null!==(i=document.querySelectorAll("#".concat(o.id,"_chosen li.search-choice")))&&void 0!==i?i:[]).forEach((function(e){var t=e.querySelector("span").textContent,n=Object.values(o.options).find((function(e){return e.textContent===t}));n&&r.push({text:n.textContent,value:n.value,selected:!0})})),Object.values(o.options).map((function(e){r.filter((function(t){return t.text===e.textContent})).length||r.push({text:e.textContent,value:e.value,selected:!1})})),k.rebuildDropDown(o,r)}))}))},reorderItems:function(t,n){var i=t.options,o=[];n.forEach((function(e,n){var r;(null!==(r=document.querySelectorAll("#".concat(t.id,"_chosen li.search-choice")))&&void 0!==r?r:[]).forEach((function(t,r){if(n===r){var a=Object.values(i).find((function(t){return t.value===e}));t.querySelector("span").textContent=a.text,o.push({value:a.value,text:a.text,selected:!0})}}))})),Object.values(i).map((function(e){o.filter((function(t){return t.value===e.value})).length||o.push({value:e.value,text:e.textContent,selected:e.selected})})),k.rebuildDropDown(t,o),e(this).trigger("chosen:updated")},rebuildDropDown:function(e,t){e.innerHTML="",t.map((function(t){var n=document.createElement("option");n.value=t.value,n.textContent=t.text,t.selected&&n.setAttribute("selected","true"),e.add(n)}))}};e((function(){e("body").on("click","button.notice-dismiss",(function(){"give-invalid-license"!==jQuery(this).closest("div.give-notice").data("notice-id")&&n(jQuery(this).closest("div.give-notice").attr("id"))})),function(){var t,n=e(".give_datepicker");if(n.length){var i={},o={altFormat:"yy-mm-dd",onClose:function(e,t){e.length||t.input.next().val("")}};e.each(n,(function(o,r){r=e(r),t=void 0!==r.attr("data-standard-date")?r.attr("data-standard-date"):r.attr("value"),r.attr("name").length&&(i=r.clone(),n[o]=i,i.attr("name",""),r.before(i),r.hide(),r.attr("class",""),r.attr("id",""),r.val(t),r.prop("readonly",!0))})),n.length>0&&e.each(n,(function(t,n){n=e(n),o.altField=n.next(),n.datepicker(o)}))}}(),e('select[name="give-payment-status"]').on("change",(function(){var t=e(this).val();e(".give-donation-status").removeClass((function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")})).addClass("status-"+t)})),i(),e.giveAjaxifyFields({type:"country_state",debug:!0}),r.init(),a.init(),s.init(),l.init(),f.init(),m.init(),c.init(),d.init(),u.init(),g.init(),w.init(),x(),k.init(),e("a.give-rating-link").click((function(){jQuery(this).parent().text(jQuery(this).data("rated"))})),e(".give-ajax-user-search").on("keyup",(function(){var t=e(this).val(),n="";e(this).data("exclude")&&(n=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:n},document.body.style.cursor="wait",e.ajax({type:"POST",data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})})),e("body").on("click.giveSelectUser",".give_user_search_results span a",(function(t){t.preventDefault();var n=e(this).data("login");e(".give-ajax-user-search").val(n),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")})),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",(function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}));var t=e("#poststuff"),h=Give.fn.getGlobalVar("thousands_separator"),p=Give.fn.getGlobalVar("decimal_separator"),v="",_="",b="",y=p===h?1:0;t.on("keyup","input.give-money-field, input.give-price-field",(function(){var t={label:Give.fn.getGlobalVar("price_format_guide").trim()};v=(e(this).val().match(new RegExp(h,"g"))||[]).length,_=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(h)&&y<v||_?e(this).giveHintCss("show",t):e(this).giveHintCss("hide",t),v=_=""})),t.on("focusout","input.give-money-field, input.give-price-field",(function(){if(b=o(e(this).val(),!1),e(this).giveHintCss("hide",{label:Give.fn.getGlobalVar("price_format_guide").trim()}),o("0",!1)===o(e(this).val(),!1)){var t=e(this).attr("placeholder");return t=t||"0",e(this).val(t),!1}-1!==(b=b.replace(".",p)).indexOf("-")&&(b=b.replace("-","")),e(this).val(b)})),t.on("focusout","#_give_number_of_donation_goal",(function(){1>e(this).val()&&e(this).val(1)})),e(".give-settings-page").on("click","#give-show-sub-nav",(function(t){t.preventDefault();var n=e(this).next();return n.is(":hover")||n.toggleClass("give-hidden"),!1})).on("blur","#give-show-sub-nav",(function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")})),e(".give_email_api_notification_status_setting input").change((function(){var t=e(this).val(),n="enabled"===t,i={};return e(this).closest(".give_options_panel").length?i=e(this).closest(".give_options_panel").children(".give-field-wrap:not(.give_email_api_notification_status_setting), .give-repeatable-field-section"):e(this).closest("table").length&&(i=e(this).closest("table").find("tr:not(.give_email_api_notification_status_setting)")),-1!==jQuery.inArray(t,["enabled","disabled","global"])&&(!!i.length&&void(n?i.show():i.hide()))})),e(".give_email_api_notification_status_setting input:checked").change(),X()}))}(jQuery),jQuery(window).resize((function(){X()}));function K(){var e=jQuery("form.tools-setting-page-import");!0;var t=e.find(".give-progress"),n=jQuery(t).data("total_ajax"),i=jQuery(t).data("current"),o=jQuery(t).data("start"),r=jQuery(t).data("end"),a=jQuery(t).data("next"),s=jQuery(t).data("total"),l=jQuery(t).data("per_page");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("give_donation_import"),total_ajax:n,current:i,start:o,end:r,next:a,total:s,per_page:l,fields:e.serialize()},dataType:"json",success:function(e){jQuery(t).data("current",e.current),jQuery(t).find("div").width(e.percentage+"%"),1==e.next?(jQuery(t).data("start",e.start),jQuery(t).data("end",e.end),1==e.last&&jQuery(t).data("next",!1),K()):(!1,window.location=e.url)},error:function(){!1,new h({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}function Z(){var e=document.querySelector(".give-tools-setting-page-import table.step-2 .give-import-donation-required-fields");if("undefined"!==e&&null!==e){var t=!0,n=!1,i=!1,o=!1,r=!1;document.querySelectorAll(".give-import-donation-required-fields li").forEach((function(e){e.querySelector(".dashicons").classList.remove("dashicons-yes"),e.querySelector(".dashicons").classList.add("dashicons-no-alt")}));var a=Array.from(document.querySelectorAll("table.step-2 tbody select")).map((function(e){return e.value}));a.includes("email")&&(n=!0,document.querySelector(".give-import-donation-required-email .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-email .dashicons").classList.add("dashicons-yes")),a.includes("first_name")&&(i=!0,document.querySelector(".give-import-donation-required-first .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-first .dashicons").classList.add("dashicons-yes")),a.includes("amount")&&(o=!0,document.querySelector(".give-import-donation-required-amount .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-amount .dashicons").classList.add("dashicons-yes")),(a.includes("form_id")||a.includes("form_title"))&&(r=!0,document.querySelector(".give-import-donation-required-form .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-form .dashicons").classList.add("dashicons-yes")),n&&i&&o&&r&&(t=!1),document.getElementById("recount-stats-submit").disabled=t}}document.addEventListener("DOMContentLoaded",(function(e){window.onload=function(){var e,t;Z(),"undefined"!==(e=document.querySelector(".give-tools-setting-page-import table.step-2 tbody select"))&&null!==e&&jQuery(".give-tools-setting-page-import table.step-2 tbody").on("change","select",(function(){Z()})),jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-3").length>0&&K(),t="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-1 .is_csv_valid",jQuery(t).length>0&&(window.location=jQuery(t).val()),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-2 .csv_not_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}(),function(){if(jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-2").length>0){var e=jQuery("form.tools-setting-page-import"),t=e.find(".give-progress");!0,jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("core_settings_import"),fields:e.serialize()},dataType:"json",success:function(e){!1,!0===e.success?(jQuery(t).find("div").width(e.percentage+"%"),window.location=e.url):new h({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()},error:function(){!1,new h({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}}(),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-1 .is_json_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}()}}));n(74241);function ee(e,t){var n="",i=document.querySelector(".give-save-button");try{n=JSON.parse(t),e.value=JSON.stringify(n,void 0,2),e.style.border="none",i.removeAttribute("disabled")}catch(t){e.style.border="1px solid red",i.setAttribute("disabled","disabled")}}function te(e){null!==e&&(ee(e,e.value),e.addEventListener("blur",(function(t){ee(e,t.target.value)})))}window.addEventListener("DOMContentLoaded",(function(){var e=Array.from(document.querySelectorAll(".give-stripe-account-set-default"));e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t,n=e.target.parentElement.parentElement.parentElement.parentElement,i=n.querySelector(".give-stripe-account-email .give-stripe-connect-data-field"),o=n.querySelector('input[name="setting-page"]').value,r="",a=sprintf("<p><strong>%1$s</strong><br>%2$s</p>",(0,b.__)("Account Name","give"),e.target.parentElement.parentElement.querySelector(".give-stripe-account-name .give-stripe-connect-data-field").textContent);i&&(r=sprintf("<p><strong>%1$s</strong><br>%2$s</p>",(0,b.__)("Account Email","give"),i.textContent));var s=sprintf('<a href="%1$s" target="_blank">%2$s</a>',"https://givewp.com/documentation/core/payment-gateways/stripe-free/using-multiple-stripe-accounts-on-a-single-givewp-site/",(0,b.__)("View Documentation >","give"));t="global"===o?sprintf((0,b.__)("Please confirm you’d like to set the account below as the new default Stripe account. All donation forms set to inherit the Global Settings will use this new default account. %1$s<br>%2$s%3$s","give"),s,a,r):sprintf((0,b.__)("Please confirm you’d like to set the account below as the new default Stripe account for this donation form. All donations will process through this Stripe account rather than the Global default Stripe account. %1$s<br>%2$s%3$s","give"),s,a,r),new Give.modal.GiveConfirmModal({classes:{modalWrapper:"give-modal--warning give-stripe-modal-new-default"},modalContent:{title:sprintf('<span class="give-stripe-icon stripe-logo-with-circle"></span>%s',(0,b.__)("Confirm New Default Account","give")),desc:t},successConfirm:function(t){var n=new XMLHttpRequest,i=new FormData,o=Give.fn.getGlobalVar("post_id");i.append("action","give_stripe_set_account_default"),i.append("account_slug",e.target.getAttribute("data-account")),i.append("form_id",o),n.open("POST",ajaxurl),n.onload=function(){var e=JSON.parse(n.response);200===n.status&&e.success&&window.location.reload()},n.send(i)}}).render()}))}))})),window.addEventListener("DOMContentLoaded",(function(){var e=Array.from(document.querySelectorAll(".give-stripe-disconnect-account-btn"));e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=(0,b.__)("Disconnect Stripe Account","give"),i=(0,b.__)("Are you sure you want to disconnect this Stripe account?","give");new Give.modal.GiveConfirmModal({type:"alert",classes:{modalWrapper:"give-modal--warning"},modalContent:{title:n,desc:i},successConfirm:function(){fetch(t.getAttribute("href")).then((function(e){return e.json()})).then((function(e){e.success&&window.location.reload()}))}}).render()}))}))})),window.addEventListener("DOMContentLoaded",(function(){var e=document.body.classList.contains("post-php")?".post-php":".post-new-php",t=document.querySelector("".concat(e,'.post-type-give_forms form[name="post"]'));t&&t.addEventListener("submit",(function(e){var t=document.querySelector('#stripe_form_account_options [name="give_stripe_per_form_accounts"]:checked');t&&("enabled"===t.value&&(!!document.querySelector("#stripe_form_account_options .give-stripe-account-manager-list-item.give-stripe-boxshadow-option-wrap__selected")||(e.preventDefault(),new Give.modal.GiveNoticeAlert({type:"warning",modalContent:{title:(0,b.__)("Select a Stripe Account","give"),desc:(0,b.__)("You've selected to customize the Stripe account for this form, but not selected a different account. Please set an account as default for this form on the Stripe settings tab.","give")}}).render(),"stripe_form_account_options"!==Give.fn.getParameterByName("give_tab")&&document.querySelector('a[href="#stripe_form_account_options"]').click())))}))})),window.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll('input[name="stripe_fonts"]'),t=document.getElementById("stripe_styles_base"),n=document.getElementById("stripe_styles_empty"),i=document.getElementById("stripe_styles_invalid"),o=document.getElementById("stripe_styles_complete"),r=document.getElementById("stripe_custom_fonts"),a=document.getElementById("give-payment-status"),s=document.querySelectorAll('input[name="stripe_checkout_type"]'),l=Array.from(document.querySelectorAll(".stripe-checkout-field")),c=document.getElementById("give-stripe-connected"),d=Array.from(document.querySelectorAll('input[name="stripe_hide_icon"]')),u=document.querySelector(".stripe-icon-style"),f=Array.from(document.querySelectorAll(' input[name="stripe_mandate_acceptance_option"]')),h=document.querySelector(".stripe-mandate-acceptance-text"),p=Array.from(document.querySelectorAll('input[name="stripe_becs_hide_icon"]')),m=document.querySelector(".stripe-becs-icon-style"),g=Array.from(document.querySelectorAll(' input[name="stripe_becs_mandate_acceptance_option"]')),v=document.querySelector(".stripe-becs-mandate-acceptance-text"),_=Array.from(document.querySelectorAll('input[name="give_stripe_per_form_accounts"]')),y=document.querySelector(".give-stripe-manage-account-options"),w=document.querySelectorAll("#give-settings-section-group-credit-card .give-stripe-cc-option-field"),x=document.querySelectorAll("#give-settings-section-group-accounts .give-stripe-edit-statement-descriptor-btn");if(te(t),te(n),te(i),te(o),te(r),null!==_){var k=document.querySelectorAll("#stripe_form_account_options .give-stripe-per-form-option-field");_.forEach((function(e){e.addEventListener("change",(function(e){k.forEach((function(e){e.classList.remove("give-stripe-boxshadow-option-wrap__selected"),e.querySelector('input[name="give_stripe_per_form_accounts"]').setAttribute("checked","")})),e.target.parentElement.parentElement.classList.add("give-stripe-boxshadow-option-wrap__selected"),e.target.setAttribute("checked","checked"),"enabled"===e.target.value?y.classList.remove("give-hidden"):y.classList.add("give-hidden")}))}))}if(null!==d&&d.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?u.classList.remove("give-hidden"):u.classList.add("give-hidden")}))})),null!==f&&f.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?h.classList.remove("give-hidden"):h.classList.add("give-hidden")}))})),null!==p&&p.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?m.classList.remove("give-hidden"):m.classList.add("give-hidden")}))})),null!==g&&g.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?v.classList.remove("give-hidden"):v.classList.add("give-hidden")}))})),null!==c){var C=c.getAttribute("data-status"),S=c.getAttribute("data-redirect-url"),T=c.getAttribute("data-display"),j=c.getAttribute("data-title"),E=c.getAttribute("data-first-detail"),I=c.getAttribute("data-second-detail");"connected"===C&&"0"===T&&(new Give.modal.GiveConfirmModal({modalWrapper:"give-stripe-connected-modal give-modal--success",type:"confirm",modalContent:{title:j,desc:"<span>".concat(E,'</span><span class="give-field-description">').concat(I,"</span>")},successConfirm:function(e){window.location.href=S}}).render(),c.setAttribute("data-display","1"),history.pushState({urlPath:S},"",S))}if(null!==s&&s.forEach((function(e){e.addEventListener("change",(function(e){"modal"===e.target.value?l.map((function(e){return e.classList.remove("give-hidden")})):l.map((function(e){return e.classList.add("give-hidden")}))}))})),null!==a&&a.addEventListener("change",(function(e){var t=document.getElementById("give-stripe-opt-refund");null!==t&&(t.checked=!1,"refunded"===e.target.value?document.getElementById("give-stripe-opt-refund-wrap").style.display="block":document.getElementById("give-stripe-opt-refund-wrap").style.display="none")})),null!==e&&e.forEach((function(e){var t=document.querySelector(".give-stripe-google-fonts-wrap"),n=document.querySelector(".give-stripe-custom-fonts-wrap");e.addEventListener("change",(function(e){"custom_fonts"===e.target.value?(t.style.display="none",n.style.display="table-row"):"google_fonts"===e.target.value&&(t.style.display="table-row",n.style.display="none")}))})),w.length&&w.forEach((function(e){e.addEventListener("click",(function(){w.forEach((function(e){e.classList.remove("give-stripe-boxshadow-option-wrap__selected"),e.querySelector('input[name="stripe_cc_fields_format"]').setAttribute("checked","")})),e.querySelector('input[name="stripe_cc_fields_format"]').setAttribute("checked","checked"),e.classList.add("give-stripe-boxshadow-option-wrap__selected")}))})),x.length){var G='\n <input type="text" minlength="5" maxlength="22">\n <button class="button-primary" disabled>'.concat((0,b.__)("Save","give"),'</button>\n <button class="button-secondary">').concat((0,b.__)("Cancel","give"),"</button>");x.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=e.closest(".give-stripe-connect-data-field"),i=n.style.display;n.insertAdjacentHTML("afterend",G),n.style.display="none";var o=n.nextElementSibling,r=o.nextElementSibling,a=r.nextElementSibling;o.value=n.childNodes[0].nodeValue.trim(),o.style.display="block",o.style.marginBottom="10px",r.style.marginRight="5px",o.addEventListener("keyup",(function(e){var t=o.value.trim(),i=n.childNodes[0].nodeValue.trim();r.disabled=!t||t===i})),a.addEventListener("click",(function(e){e.preventDefault(),o.remove(),r.remove(),a.remove(),n.style.display=i})),r.addEventListener("click",(function(e){e.preventDefault();var t,i=o.value.trim(),r="".concat(n.getAttribute("data-action-url"),"&statement-descriptor=").concat(encodeURIComponent(i));22<(t=i).length||t.length<5||!isNaN(t)||0!==t.split("").filter((function(e){return["*","'",'"',"\\","<",">"].includes(e)})).length?new Give.modal.GiveErrorAlert({modalContent:{title:(0,b.__)("Invalid Statement Descriptor Text","give"),desc:(0,b.sprintf)('%s <br>%s <br>- %s<br>- %s<br>- %s<br>- %s<br><br><a href="%s" target="_blank">%s</a>',(0,b.__)("Please enter a valid Stripe statement descriptor.","give"),(0,b.__)("List of important Stripe statement descriptor text requirements:","give"),(0,b.__)("Contains only Latin characters.","give"),(0,b.__)("Contains between 5 and 22 characters, inclusive.","give"),(0,b.__)("Contains at least one letter.","give"),(0,b.__)("Does not contain any of the special characters < > \\ ' \" *.","give"),"https://stripe.com/docs/statement-descriptors#requirements",(0,b.__)("Read more about stripe statement descriptor text requirements.","give"))}}).render():fetch(r).then((function(e){return e.json()})).then((function(e){e.success?(n.childNodes[0].nodeValue=i,a.click()):new Give.modal.GiveErrorAlert({modalContent:{title:(0,b.__)("Invalid Stripe Statement Descriptor Text","give"),desc:(0,b.sprintf)('%s %s<br><br><a href="%s" target="_blank">%s</a>',(0,b.__)("We are unable to update Stripe statement descriptor.","give"),e.data.errorMessage,"https://stripe.com/docs/statement-descriptors#requirements",(0,b.__)("Read more about stripe statement descriptor text requirements.","give"))}}).render()}))}))}))}))}})),window.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("give-payment-status"),t=document.getElementById("js-give-paypal-on-boarding-handler"),n=document.getElementById("js-give-paypal-disconnect-paypal-account"),i=document.querySelector("#give-paypal-commerce-account-manager-field-wrap .connection-setting"),o=document.querySelector("#give-paypal-commerce-account-manager-field-wrap .disconnection-setting"),r=document.getElementById("paypal_commerce_account_country"),a=new MutationObserver((function(e){e.forEach((function(e){e.removedNodes.forEach((function(e){if("PPMiniWin"===e.getAttribute("id")){var t=document.getElementById("give-paypal-onboarding-trouble-notice");t&&t.classList.remove("give-hidden")}}))}))}));if(e&&e.addEventListener("change",(function(e){var t=document.getElementById("give-paypal-commerce-opt-refund");null!==t&&(t.checked=!1,"refunded"===e.target.value?document.getElementById("give-paypal-commerce-opt-refund-wrap").style.display="block":document.getElementById("give-paypal-commerce-opt-refund-wrap").style.display="none")})),window.location.search.match(/paypal-commerce-account-connected=1/i)){var s=window.givePayPalCommerce.translations.pciComplianceInstructions.map((function(e){return"<li>".concat(e,"</li>")})).join(""),l=window.givePayPalCommerce.translations.liveWarning?'<p class="give-modal__description__warning">'.concat(window.givePayPalCommerce.translations.liveWarning,"</p>"):"";new Give.modal.GiveSuccessAlert({classes:{modalWrapper:"paypal-commerce-connect",cancelBtn:"give-button--primary"},modalContent:{title:window.givePayPalCommerce.translations.connectSuccessTitle,body:'\n\t\t\t\t\t<div class="give-modal__description">\n\t\t\t\t\t\t'.concat(l,"\n\t\t\t\t\t\t<p>").concat(window.givePayPalCommerce.translations.pciWarning,"</p>\n\t\t\t\t\t\t<ul>").concat(s,"</ul>\n\t\t\t\t\t</div>\n\t\t\t\t").trim(),cancelBtnTitle:Give.fn.getGlobalVar("confirm")},closeOnBgClick:!0}).render();var c=Give.fn.removeURLParameter(window.location.href,"paypal-commerce-account-connected");history.pushState({},"",c)}function d(){var e=document.querySelector(".paypal-message-template");e&&e.parentElement.remove()}t&&t.addEventListener("click",(function(e){e.preventDefault(),d();var n=r.value,i=function(){t.disabled=!1,e.target.innerText=t.getAttribute("data-initial-label")};(function(){t.hasAttribute("data-initial-label")||t.setAttribute("data-initial-label",t.innerText),t.disabled=!0,e.target.innerText=Give.fn.getGlobalVar("loader_translation").processing})();var o=document.getElementById("give-paypal-onboarding-trouble-notice");return o&&o.classList.add("give-hidden"),fetch(ajaxurl+"?action=give_paypal_commerce_get_partner_url&countryCode=".concat(n)).then((function(e){return e.json()})).then((function(e){if(!0===e.success){var t=document.querySelector("[data-paypal-button]");t.href="".concat(e.data.partnerLink,"&displayMode=minibrowser"),t.click(),a.observe(document.querySelector("body"),{attributes:!0,childList:!0})}i()})).then((function(){fetch(ajaxurl+"?action=give_paypal_commerce_onboarding_trouble_notice").then((function(e){return e.json()})).then((function(e){if(!0===e.success){var t=document.querySelector(".connect-button-wrap");o&&o.remove(),t.append((n=e.data,(i=document.createElement("div")).innerHTML=n.trim(),i.firstChild))}var n,i}))})),!1})),n&&n.addEventListener("click",(function(e){return e.preventDefault(),d(),new v({modalContent:{title:givePayPalCommerce.translations.confirmPaypalAccountDisconnection,desc:givePayPalCommerce.translations.disconnectPayPalAccount},successConfirm:function(){i.classList.remove("give-hidden"),o.classList.add("give-hidden"),r.parentElement.parentElement.classList.remove("hide-with-position"),document.querySelector("label[for='paypal_commerce_collect_billing_details']").parentElement.parentElement.classList.add("give-hidden"),fetch(ajaxurl+"?action=give_paypal_commerce_disconnect_account")}}).render(),!1}))}));n(2601);A.modal=e;var ne=A.init,ie=A.fn,oe=A.cache,re=A.modal,ae=A.notice;window.Give={init:ne,fn:ie,cache:oe,modal:re,notice:ae,initializeIframeResize:function(e){return new O.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(t){var n=e.parentElement;switch(e.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),t.message.action){case"giveEmbedFormContentLoaded":var i=setTimeout((function(){o()}),400);e.setAttribute("data-contentLoaded","1");var o=function(){clearTimeout(i),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",e.style.visibility="visible",e.style.minHeight="",n.style.height=null};break;case"giveScrollIframeInToView":e.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){var t=e.parentElement;window.top.addEventListener("resize",(function(){e.style.width=window.top.innerWidth+"px"}));var n=!1;window.addEventListener("beforeunload",(function(){n=!0})),e.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(e.scrollIntoView({behavior:"smooth",inline:"nearest"}),e.parentElement.querySelector(".iframe-loader").style.opacity=1,e.parentElement.querySelector(".iframe-loader").style.transition="",e.style.visibility="hidden",t.style.height="700px")})),e.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},e)}}})()})();
1
+ (()=>{var e={87757:(e,t,n)=>{e.exports=n(35666)},50743:function(e,t){!function(n,i){var o={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},r=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function d(e){return e&&"[object Object]"===s.call(e)}function u(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var i,o,a=[];if(!e)return a;if(r&&e.map===r)return e.map(t,n);for(i=0,o=e.length;i<o;i++)a[i]=t.call(n,e[i],i,e);return a}function h(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=o.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?o.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var m=o.unformat=o.parse=function(e,t){if(c(e))return f(e,(function(e){return m(e,t)}));if("number"==typeof(e=e||0))return e;t=t||o.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),i=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(i)?0:i},g=o.toFixed=function(e,t){t=h(t,o.settings.number.precision);var n=Math.pow(10,t);return(Math.round(o.unformat(e)*n)/n).toFixed(t)},v=o.formatNumber=o.format=function(e,t,n,i){if(c(e))return f(e,(function(e){return v(e,t,n,i)}));e=m(e);var r=u(d(t)?t:{precision:t,thousand:n,decimal:i},o.settings.number),a=h(r.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",p=l.length>3?l.length%3:0;return s+(p?l.substr(0,p)+r.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+r.thousand)+(a?r.decimal+g(Math.abs(e),a).split(".")[1]:"")},_=o.formatMoney=function(e,t,n,i,r,a){if(c(e))return f(e,(function(e){return _(e,t,n,i,r,a)}));e=m(e);var s=u(d(t)?t:{symbol:t,precision:n,thousand:i,decimal:r,format:a},o.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),h(s.precision),s.thousand,s.decimal))};o.formatColumn=function(e,t,n,i,r,a){if(!e)return[];var s=u(d(t)?t:{symbol:t,precision:n,thousand:i,decimal:r,format:a},o.settings.currency),g=p(s.format),_=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,y=f(e,(function(e,t){if(c(e))return o.formatColumn(e,s);var n=((e=m(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),h(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n}));return f(y,(function(e,t){return l(e)&&e.length<b?_?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=o),t.accounting=o}()},71018:()=>{jQuery(document).ready((function(e){function t(t){var n=void 0!==t.standard_fields&&null!==t.standard_fields?t.standard_fields:"",i=e(".give-export-donations-standard-fields ul");n.length>0&&(i.closest("tr").removeClass("give-hidden"),e(n).each((function(e,t){i.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-standard-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-standard-field-'+t+'">'+t+"</label> </li>")})));var o=void 0!==t.hidden_fields&&null!==t.hidden_fields?t.hidden_fields:"",r=e(".give-export-donations-hidden-fields ul");o&&(r.closest("tr").removeClass("give-hidden"),e(o).each((function(e,t){r.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-hidden-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-hidden-field-'+t+'">'+t+"</label> </li>")})))}e(".give-export_donations #give-export_donations-form .give_forms_categories , .give-export_donations #give-export_donations-form .give_forms_tags").change((function(){var n,i,o;n=e("form#give-export_donations-form"),i=e(n).find("tr.give-export-donation-form .give-select-chosen"),o=i.prev(),i.find('input[type="text"]'),i.hasClass("variations"),e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),e.ajax({type:"POST",url:ajaxurl,data:{action:"give_form_search",s:"",fields:e(n).serialize()},beforeSend:function(){o.closest("ul.chosen-results").empty()},success:function(r){e("option",o).remove();var a=[];r.length?(n.find(".give-export-donation-button").prop("disabled",!1),e.each(r,(function(e,t){o.prepend('<option value="'+t.id+'">'+t.name+"</option>"),a.push(t.id)})),o.prepend('<option value="0" selected>'+o.data("placeholder")+"</option>")):(o.prepend('<option value="0">'+o.data("no-form")+"</option>"),n.find(".give-export-donation-button").prop("disabled",!0)),n.find(".form_ids").val(a.join()),i.prev("select.give-select-chosen").trigger("chosen:updated"),t("")}})})),e(".give-export_donations #give-export_donations-form #give_payment_form_select").change((function(){var n;if(e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),jQuery(document).trigger("give_export_donations_form_change"),!(n=e(this).val()))return!1;e.ajax({type:"POST",url:ajaxurl,data:{form_id:n,action:"give_export_donations_get_custom_fields"},success:function(e){e?t(e):alert(Give.fn.getGlobalVar("error_message")),jQuery(document).trigger("give_export_donations_form_response",e)}})}));var n=e('.give-export-option-fields input[type="checkbox"]');e(".give-toggle-checkbox-selection").click((function(){var t,i,o,r;e(this).data("clicked",!e(this).data("clicked")),n.prop("checked",!e(this).data("clicked")),i=e(t=this).val(),o=e(t).attr("data-value"),i=(r=[o,i])[0],o=r[1],e(t).attr("value",i),e(t).attr("data-value",o)}))}))},89953:()=>{function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,o,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var n,i;n=jQuery,i=function(){""===n(".give-level-id").text()&&n(".cmb-repeatable-grouping").each((function(e,t){var i=n(t).data("iterator")+1;n(t).find(".give-level-id").text(i),n(t).find(".give-level-id-input").val(i)})),n("body").on("cmb2_add_row",(function(e,t){!function(e){var t,i,o,r=(t=0,i=0,o=0,n("#_give_donation_levels_repeat > .cmb-repeatable-grouping").each((function(e,r){(o=n(this).find("input.give-level-id-input").val())>i&&(i=o),t++})),void 0!==i&&i>=t?parseInt(i)+1:t);n(e).find("input.give-level-id-input").val(r),n(e).find(".give-level-id").text(r)}(t)})),n("body").on("cmb2_shift_rows_complete",(function(e,t){n(".cmb-repeatable-grouping").each((function(e,t){var i=n(t).find("input.give-level-id-input").val();n(t).find(".give-level-id").text(i)}))}))},n((function(){n("body").on("change",".give-give_default_radio_inline",(function(){n(".give-give_default_radio_inline").prop("checked",!1),n(this).prop("checked",!0)})),function(){n("._give_price_option_field input:radio").on("change",(function(){"set"===n("._give_price_option_field input:radio:checked").val()?(n("._give_set_price_field").show(),n("#_give_donation_levels_field").hide(),n("._give_display_style_field").hide()):(n("._give_set_price_field").hide(),n("#_give_donation_levels_field").show(),n("._give_display_style_field").show())})).change(),n("._give_display_content_field input:radio").on("change",(function(){"enabled"===n("._give_display_content_field input:radio:checked").val()?(n("._give_content_placement_field").show(),n("._give_form_content_field").show()):(n("._give_content_placement_field").hide(),n("._give_form_content_field").hide())})).change(),n("._give_terms_option_field input:radio").on("change",(function(){"enabled"===n("._give_terms_option_field input:radio:checked").val()?(n("._give_agree_label_field").show(),n("._give_agree_text_field").show()):(n("._give_agree_label_field").hide(),n("._give_agree_text_field").hide())})).change(),n("._give_payment_display_field input:radio").on("change",(function(){"onpage"===n("._give_payment_display_field input:radio:checked").val()?n("._give_reveal_label_field").hide():n("._give_reveal_label_field").show()})).change(),n("._give_custom_amount_field input:radio").on("change",(function(){"disabled"===n("._give_custom_amount_field input:radio:checked").val()?(n("._give_custom_amount_range_field ").hide(),n("._give_custom_amount_text_field").hide()):(n("._give_custom_amount_range_field ").show(),n("._give_custom_amount_text_field").show())})).change();var e=n("._give_goal_option_field"),t=n("._give_goal_format_field input:radio");n("._give_close_form_when_goal_achieved_field input:radio").on("change",(function(){"disabled"===n("._give_close_form_when_goal_achieved_field input:radio:checked").val()?n("._give_form_goal_achieved_message_field").hide():n("._give_form_goal_achieved_message_field").show()})).change(),e.on("change",(function(){"disabled"===n("._give_goal_option_field input:radio:checked").val()?(n("._give_set_goal_field").hide(),n("._give_goal_format_field").hide(),n("._give_goal_color_field").hide(),n("._give_close_form_when_goal_achieved_field").hide(),n("._give_form_goal_achieved_message_field").hide(),n("._give_number_of_donation_goal_field").hide(),n("._give_number_of_donor_goal_field").hide()):(n("._give_set_goal_field").show(),n("._give_goal_format_field").show(),n("._give_goal_color_field").show(),n("._give_close_form_when_goal_achieved_field").show(),"enabled"===n("._give_close_form_when_goal_achieved_field input:radio:checked").val()&&n("._give_form_goal_achieved_message_field").show(),t.change())})).change(),t.on("change",(function(){var e=n("._give_goal_format_field input:radio:checked").val(),t=n("._give_goal_option_field input:radio:checked").val();"donation"===e?(n("._give_set_goal_field, ._give_number_of_donor_goal_field,._give_number_of_donation_goal_field").hide(),"disabled"!==t&&n("._give_number_of_donation_goal_field").show()):"donors"===e?(n("._give_set_goal_field, ._give_number_of_donation_goal_field, ._give_number_of_donor_goal_field").hide(),"disabled"!==t&&n("._give_number_of_donor_goal_field").show()):("disabled"===t?n("._give_set_goal_field").hide():n("._give_set_goal_field").show(),n("._give_number_of_donation_goal_field, ._give_number_of_donor_goal_field").hide())})).change(),n("._give_customize_offline_donations_field input:radio").on("change",(function(){"enabled"===n("._give_customize_offline_donations_field input:radio:checked").val()?(n("._give_offline_checkout_notes_field").show(),n("._give_offline_donation_enable_billing_fields_single_field").show(),n("._give_offline_donation_subject_field").show(),n("._give_offline_donation_email_field").show()):(n("._give_offline_checkout_notes_field").hide(),n("._give_offline_donation_enable_billing_fields_single_field").hide(),n("._give_offline_donation_subject_field").hide(),n("._give_offline_donation_email_field").hide())})).change(),n("._give_email_options_field input:radio").on("change",(function(){"enabled"===n("._give_email_options_field input:radio:checked").val()?n("#email_notification_options .give-field-wrap:not(._give_email_options_field)").show():n("#email_notification_options .give-field-wrap:not(._give_email_options_field)").hide()})).change();var i=n('input[name="_give_name_title_prefix"]:checked').val();"required"!==i&&"optional"!==i||n(".give-title-prefixes-wrap").show(),n('input[name="_give_name_title_prefix"]').on("change",(function(){var e=n('input[name="_give_name_title_prefix"]:checked').val();"required"===e||"optional"===e?n(".give-title-prefixes-wrap").show():n(".give-title-prefixes-wrap").hide()}))}(),i(),n(".cmb2-text-money").each((function(e,t){parseInt(n(t).val())||n(t).removeAttr("value")})),function(){function t(){n("[data-field-visibility]").each((function(){var t=n(this).data("field-visibility"),i=!1;Object.entries(t).forEach((function(t){var o=e(t,2),r=o[0],a=o[1],s=n('[name="'+r+'"]');s&&s.each((function(){var e=n(this),t=e.attr("type");if(!t||"radio"!==t&&"checkbox"!==t){if(e.val()==a)return void(i=!0)}else if(e.is(":checked")&&e.val()==a)return void(i=!0)}))})),n(this).parents(".give-field-wrap").toggle(i)}))}t(),n(".give-visibility-handler").on("change",t)}()}))},96066:()=>{jQuery(document).ready((function(){if("undefined"!=typeof URLSearchParams&&window.history){var e=new URLSearchParams(window.location.search);if(!e.has("give-run-migration")&&!e.has("give-clear-update"))return;e.delete("give-run-migration"),e.delete("give-clear-update");var t="".concat(window.location.origin).concat(window.location.pathname,"?").concat(e);window.history.replaceState({},"",t)}}))},4559:()=>{jQuery(document).ready((function(e){var t=jQuery("ul.give-payment-gatways-list");t.length&&t.sortable();var n="#give-mainform #currency",i="#give-mainform #currency_position";e("body").on("change",n,(function(){var t=e(n+" option:selected").val(),o=JSON.parse(e(this).attr("data-formatting-setting")),r=afterText={},a=o[t],s=e("#thousands_separator","#give-mainform"),l=e("#decimal_separator","#give-mainform"),c=e("#number_decimals","#give-mainform");r=e(i).data("before-template").replace("{currency_pos}",a.symbol),e(i+' option[value="before"]').text(r),afterText=e(i).data("after-template").replace("{currency_pos}",a.symbol),e(i+' option[value="after"]').text(afterText),s.val(a.setting.thousands_separator).trigger("blur"),l.val(a.setting.decimal_separator).trigger("blur"),c.val(a.setting.number_decimals).trigger("blur")})),"disabled"!==e('input[name="name_title_prefix"]:checked').val()&&e(".give-title-prefixes-settings-wrap").show(),e('input[name="name_title_prefix"]').on("change",(function(){"disabled"!==e(this).val()?e(".give-title-prefixes-settings-wrap").show():e(".give-title-prefixes-settings-wrap").hide()})),e("a.give-repeat-setting-field").on("click",(function(t){t.preventDefault();var n=e(this).parents("td"),i=e("p:first-child",n).clone(),o=e("p",n).not(".give-field-description").length,r=e(this).data("id")+"_"+ ++o,a=e(this).prev();return e("input",a).val()&&(e(this).before(i),a=e(this).prev(),e("input",a).attr("id",r),e("input",a).val("")),!1})),e(".give-settings-page").on("click","span.give-remove-setting-field",(function(t){e(this).parents("p").remove()})),e(".give-email-notification-status","table.giveemailnotifications").on("click",(function(){var t=e(this),n=e("i",t),i=e(this).next(),o=e(this).hasClass("give-email-notification-enabled")?"disabled":"enabled",r=e(this).data("id");if(!parseInt(t.data("edit")))return function(t){e("div.give-email-notification-status-notice").remove(),e(".wp-heading-inline").after('<div class="updated error give-email-notification-status-notice"><p>'.concat(t.data("notice"),"</p></div>"));var n=e("div.give-email-notification-status-notice");n.length&&e("html, body").animate({scrollTop:n.position().top},"slow")}(t),!1;e.ajax({url:ajaxurl,method:"POST",data:{action:"give_set_notification_status",status:o,notification_id:r},beforeSend:function(){t.hide(),i.addClass("is-active")},success:function(e){e.success&&(t.removeClass("give-email-notification-"+t.data("status")),t.addClass("give-email-notification-"+o),t.data("status",o),"enabled"===o?(n.removeClass("dashicons-no-alt"),n.addClass("dashicons-yes")):(n.removeClass("dashicons-yes"),n.addClass("dashicons-no-alt")),i.removeClass("is-active"),t.show())}})})),e("#give-clear-cache").on("click",(function(){e.ajax({url:ajaxurl,type:"GET",data:{action:"give_cache_flush"}}).done((function(e){e.success?new Give.modal.GiveSuccessAlert({modalContent:{title:Give.fn.getGlobalVar("flush_success"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render():new Give.modal.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("flush_error"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}))}));var o=Give.fn.getGlobalVar("decimal_separator"),r=Give.fn.getGlobalVar("thousands_separator"),a=/\(([^)]+)\)/,s={position:Give.fn.getGlobalVar("currency_pos"),symbol:Give.fn.getGlobalVar("currency_sign"),precision:Give.fn.getGlobalVar("number_decimals"),decimal:Give.fn.getGlobalVar("decimal_separator"),thousand:Give.fn.getGlobalVar("thousands_separator")};e("#number_decimals, #decimal_separator, #thousands_separator, #currency_position, #currency").on("input blur change",(function(t){var n=e("#currency_preview"),i=e("#decimal_separator"),l=e("#thousands_separator"),c=t.target.name,d=t.target.value;if("number_decimals"!==c||"input"!==t.type&&"blur"!==t.type||(d&&!isNaN(d)||"blur"!==t.type||(t.target.value=Give.fn.getGlobalVar("number_decimals")),s.precision=isNaN(parseInt(d))?Give.fn.getGlobalVar("number_decimals"):parseInt(d)),"decimal_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=o),s.decimal=d,s.hasOwnProperty("thousand")&&"input"===t.type?s.decimal===s.thousand&&(s.thousand=o,l.val(o),o=d,r=l.val()):s.decimal===Give.fn.getGlobalVar("thousands_separator")&&"input"===t.type&&(s.thousand=o,l.val(o),o=d,r=l.val())),"thousands_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=r),s.thousand=d,s.hasOwnProperty("decimal")&&"input"===t.type?s.decimal===s.thousand&&(s.decimal=r,i.val(r),r=d,o=i.val()):s.thousand===Give.fn.getGlobalVar("decimal_separator")&&"input"===t.type&&(s.decimal=r,i.val(r),r=d,o=i.val())),"currency_position"===c&&"change"===t.type&&(s.position=d),"currency"===c&&"change"===t.type){s.currency=d;var u=a.exec(t.target[t.target.selectedIndex].text);s.symbol=u[1]}n.val(Give.fn.formatCurrency("123456.12345",s,{}))}))})),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".give-settings-section-content");if(null!==e){var t=e.querySelector(".give-settings-section-group-menu");if(null!==t){var n=Array.prototype.slice.call(e.querySelectorAll(".give-settings-section-group")),i=Array.from(t.querySelectorAll("ul li a")).concat(Array.from(e.querySelectorAll("ul.give-subsubsub li a")));null!==i&&i.forEach((function(t){t.addEventListener("click",(function(t){var o,r;if(t.target.hasAttribute("data-subgroup")){var a=t.target.parentElement.parentElement,s=a.parentElement;o=t.target.getAttribute("data-subgroup"),r=e.querySelector("#give-settings-section-subgroup-".concat(o)),a.querySelectorAll("a").forEach((function(e){e.classList.remove("current")})),s.querySelectorAll(".give-settings-section-subgroup ").forEach((function(e){return e.classList.add("give-hidden")})),t.target.classList.add("current")}else o=t.target.getAttribute("data-group"),r=e.querySelector("#give-settings-section-group-".concat(o)),i.forEach((function(e){e.classList.remove("active")})),n.map((function(e){return e.classList.add("give-hidden")})),t.target.classList.add("active");return r.classList.remove("give-hidden"),history.pushState({urlPath:t.target.getAttribute("href")},"",t.target.getAttribute("href")),t.preventDefault(),!1}))}))}}}))},74241:()=>{var e,t,n,i;e=jQuery,t=function(){var t=e('[class*="sequoia[introduction][headline]_field"], [class*="sequoia[introduction][description]_field"], [class*="sequoia[introduction][image]_field"], [class*="sequoia[introduction][donate_label]_field"]');0===e('input[name="sequoia[introduction][enabled]"]').length||e('input[name="sequoia[introduction][enabled]"]').prop("checked")?e(t).show():e(t).hide()},n=function(){var t=e('[class*="sequoia[payment_information][donation_summary_heading]_field"], [class*="sequoia[payment_information][donation_summary_location]_field"]');0===e('input[name="sequoia[payment_information][donation_summary_enabled]"]').length||e('input[name="sequoia[payment_information][donation_summary_enabled]"]').prop("checked")?e(t).show():e(t).hide()},i=function(){var t=e('[class*="sequoia[thank-you][sharing_instruction]_field"], [class*="sequoia[thank-you][twitter_message]_field"]');0===e('input[name="sequoia[thank-you][sharing]"]').length||e('input[name="sequoia[thank-you][sharing]"]').prop("checked")?e(t).show():e(t).hide()},e(document).ready((function(){e("#form_template_options").on("click",".js-template--activate",(function(t){t.preventDefault();var n=e(this).parents(".templates-list"),i=n.parent(),o=e(this).parents(".template-info").attr("data-id");e(".template-info",n).removeClass("active"),i.find(".template-options.".concat(o)).addClass("active"),e(this).text(Give.fn.getGlobalVar("deactivate")),e(this).removeClass("js-template--activate"),e(this).addClass("js-template--deactivate"),e(this).parents(".template-info").addClass("active"),i.addClass("has-activated-template"),i.prev("input[name=_give_form_template]").val(o).trigger("change")})),e("#form_template_options").on("click",".js-template--deactivate",(function(t){t.preventDefault();var n=e(this).parents(".templates-list"),i=n.parent(),o=e(this).parents(".template-info").attr("data-id");e(".template-info",n).removeClass("active"),i.find(".template-options.".concat(o)).removeClass("active"),e(this).text(Give.fn.getGlobalVar("activate")),e(this).removeClass("js-template--deactivate"),e(this).addClass("js-template--activate"),i.removeClass("has-activated-template"),i.prev("input[name=_give_form_template]").val("").trigger("change")})),e(".post-php.post-type-give_forms #publishing-action input[type=submit]").add(".post-new-php.post-type-give_forms #publishing-action input[type=submit]").add(".post-new-php.post-type-give_forms #save-action input[type=submit]").add(".post-php.post-type-give_forms #save-action input[type=submit]").on("click",(function(){return!!e("input[name=_give_form_template]","#form_template_options").val()||(new Give.modal.GiveNoticeAlert({type:"warning",modalContent:{title:Give.fn.getGlobalVar("form_template_required").title,desc:Give.fn.getGlobalVar("form_template_required").desc}}).render(),"form_template_options"!==Give.fn.getParameterByName("give_tab")&&e('a[href="#form_template_options"]').trigger("click"),!1)})),t(),e('input[name="sequoia[introduction][enabled]"]').on("change",(function(){t()})),n(),e('input[name="sequoia[payment_information][donation_summary_enabled]"]').on("change",(function(){n()})),i(),e('input[name="sequoia[thank-you][sharing]"]').on("change",(function(){i()}))}))},69571:()=>{!function(e){"use strict";window.addDynamicEventListener=function(e,t,n,i,o){e.addEventListener(t,function(e,t){return function(n){n.target&&(n.target.matches(e)||n.target.closest(e))&&t.apply(this,arguments)}}(n,i),o)}}()},65962:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(t){"use strict";t.extend({giveAjaxifyFields:function(n){var i,o,r=t.extend({},{type:"",parentWrapper:"form",countryFieldName:"country",stateFieldName:"state",stateFieldWrapper:".give-field-wrap",chosenState:!0},n||{});if("country_state"===r.type){if(i=t('select[name="'+r.countryFieldName+'"]'),o=i.closest(r.parentWrapper),!i.length||"Country_state"===i.data("give-ajaxify-field"))return;i.data("give-ajaxify-field","country_state"),i.change((function(){var n=t(this),i=n.closest(r.parentWrapper).find('[name="'+r.stateFieldName+'"]'),a=i.closest(r.stateFieldWrapper),s=t("label",a);r.stateFieldWrapper||(s=t('label[for="'+r.stateFieldName+'"]',o),a=i.parent());var l={action:"give_get_states",country:n.val(),field_name:r.stateFieldName};t.post(ajaxurl,l,(function(n){n.show_field?(s.length&&s.text(n.states_label),r.chosenState&&i.chosen("destroy"),r.stateFieldWrapper?a.removeClass("give-hidden"):i.removeClass("give-hidden"),void 0!==e(n.states_found)&&!0===n.states_found?(i.replaceWith(n.data),i=t('[name="'+r.stateFieldName+'"]',a),r.chosenState&&i.chosen()):(i.replaceWith('<input type="text" name="'+r.stateFieldName+'" value="'+n.default_state+'" class="medium-text"/>'),i=t('[name="'+r.stateFieldName+'"]',a))):r.stateFieldWrapper?a.addClass("give-hidden"):i.addClass("give-hidden")}))}))}return this}})}(jQuery)},45099:()=>{jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var i=n.next("span.give-hint-tooltip-js");if(!i.length){var o=t.label.length?t.label:n.data("hint-aria-label");if(!o.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+o+'"></span>'),(i=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?i.addClass("hint--always"):"hide"===e&&i.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),i=[],o=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(i=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(i=i.join(" "),t.removeClass(i),t.append('<i class="'+i+'"></i>'))),t.addClass("hint--top"),15<o?t.addClass("hint--large"):7<o&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,i){n(i=i instanceof jQuery?i:e(i))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},10861:()=>{jQuery(document).ready((function(e){e("body").on("click",".notice-dismiss",(function(t){var n=e(this).parent().parent();n.hasClass("give-notice")&&(t.preventDefault(),n.fadeTo(100,0,(function(){n.slideUp(100,(function(){n.remove()}))})))}))}))},28345:()=>{var e={collection:{},get:function(e,t,n){return jQuery?(t=void 0!==t?t:void 0,n=!0===n,(void 0===this.collection[e]||n)&&(this.collection[e]=void 0!==t?jQuery(e,t):jQuery(e)),this.collection[e]):-1}};window.Give_Selector_Cache=e},2601:()=>{document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("div[data-give-dismissible]").forEach((function(e){var t="give-dismissed-".concat(e.dataset.giveDismissible);window.localStorage.getItem(t)||(e.classList.remove("hidden"),e.addEventListener("click",(function(n){n.target.classList.contains("notice-dismiss")&&window.localStorage.setItem(t,Date.now()),n.target.classList.contains("give-donor-dashboard-upgrade-notice__dismiss-link")&&(e.classList.add("hidden"),window.localStorage.setItem(t,Date.now()))})))}))}))},99560:function(e,t,n){var i;!function(o){"use strict";function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(l=o)|s>>>32-l,n);var s,l}function s(e,t,n,i,o,r,s){return a(t&n|~t&i,e,t,o,r,s)}function l(e,t,n,i,o,r,s){return a(t&i|n&~i,e,t,o,r,s)}function c(e,t,n,i,o,r,s){return a(t^n^i,e,t,o,r,s)}function d(e,t,n,i,o,r,s){return a(n^(t|~i),e,t,o,r,s)}function u(e,t){var n,i,o,a,u;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,h=-271733879,p=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)i=f,o=h,a=p,u=m,f=s(f,h,p,m,e[n],7,-680876936),m=s(m,f,h,p,e[n+1],12,-389564586),p=s(p,m,f,h,e[n+2],17,606105819),h=s(h,p,m,f,e[n+3],22,-1044525330),f=s(f,h,p,m,e[n+4],7,-176418897),m=s(m,f,h,p,e[n+5],12,1200080426),p=s(p,m,f,h,e[n+6],17,-1473231341),h=s(h,p,m,f,e[n+7],22,-45705983),f=s(f,h,p,m,e[n+8],7,1770035416),m=s(m,f,h,p,e[n+9],12,-1958414417),p=s(p,m,f,h,e[n+10],17,-42063),h=s(h,p,m,f,e[n+11],22,-1990404162),f=s(f,h,p,m,e[n+12],7,1804603682),m=s(m,f,h,p,e[n+13],12,-40341101),p=s(p,m,f,h,e[n+14],17,-1502002290),f=l(f,h=s(h,p,m,f,e[n+15],22,1236535329),p,m,e[n+1],5,-165796510),m=l(m,f,h,p,e[n+6],9,-1069501632),p=l(p,m,f,h,e[n+11],14,643717713),h=l(h,p,m,f,e[n],20,-373897302),f=l(f,h,p,m,e[n+5],5,-701558691),m=l(m,f,h,p,e[n+10],9,38016083),p=l(p,m,f,h,e[n+15],14,-660478335),h=l(h,p,m,f,e[n+4],20,-405537848),f=l(f,h,p,m,e[n+9],5,568446438),m=l(m,f,h,p,e[n+14],9,-1019803690),p=l(p,m,f,h,e[n+3],14,-187363961),h=l(h,p,m,f,e[n+8],20,1163531501),f=l(f,h,p,m,e[n+13],5,-1444681467),m=l(m,f,h,p,e[n+2],9,-51403784),p=l(p,m,f,h,e[n+7],14,1735328473),f=c(f,h=l(h,p,m,f,e[n+12],20,-1926607734),p,m,e[n+5],4,-378558),m=c(m,f,h,p,e[n+8],11,-2022574463),p=c(p,m,f,h,e[n+11],16,1839030562),h=c(h,p,m,f,e[n+14],23,-35309556),f=c(f,h,p,m,e[n+1],4,-1530992060),m=c(m,f,h,p,e[n+4],11,1272893353),p=c(p,m,f,h,e[n+7],16,-155497632),h=c(h,p,m,f,e[n+10],23,-1094730640),f=c(f,h,p,m,e[n+13],4,681279174),m=c(m,f,h,p,e[n],11,-358537222),p=c(p,m,f,h,e[n+3],16,-722521979),h=c(h,p,m,f,e[n+6],23,76029189),f=c(f,h,p,m,e[n+9],4,-640364487),m=c(m,f,h,p,e[n+12],11,-421815835),p=c(p,m,f,h,e[n+15],16,530742520),f=d(f,h=c(h,p,m,f,e[n+2],23,-995338651),p,m,e[n],6,-198630844),m=d(m,f,h,p,e[n+7],10,1126891415),p=d(p,m,f,h,e[n+14],15,-1416354905),h=d(h,p,m,f,e[n+5],21,-57434055),f=d(f,h,p,m,e[n+12],6,1700485571),m=d(m,f,h,p,e[n+3],10,-1894986606),p=d(p,m,f,h,e[n+10],15,-1051523),h=d(h,p,m,f,e[n+1],21,-2054922799),f=d(f,h,p,m,e[n+8],6,1873313359),m=d(m,f,h,p,e[n+15],10,-30611744),p=d(p,m,f,h,e[n+6],15,-1560198380),h=d(h,p,m,f,e[n+13],21,1309151649),f=d(f,h,p,m,e[n+4],6,-145523070),m=d(m,f,h,p,e[n+11],10,-1120210379),p=d(p,m,f,h,e[n+2],15,718787259),h=d(h,p,m,f,e[n+9],21,-343485551),f=r(f,i),h=r(h,o),p=r(p,a),m=r(m,u);return[f,h,p,m]}function f(e){var t,n="",i=32*e.length;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,i="0123456789abcdef",o="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=i.charAt(t>>>4&15)+i.charAt(15&t);return o}function m(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(u(h(e),8*e.length))}(m(e))}function v(e,t){return function(e,t){var n,i,o=h(e),r=[],a=[];for(r[15]=a[15]=void 0,o.length>16&&(o=u(o,8*e.length)),n=0;n<16;n+=1)r[n]=909522486^o[n],a[n]=1549556828^o[n];return i=u(r.concat(h(t)),512+8*t.length),f(u(a.concat(i),640))}(m(e),m(t))}function _(e,t,n){return t?n?v(t,e):p(v(t,e)):n?g(e):p(g(e))}void 0===(i=function(){return _}.call(t,n,t,e))||(e.exports=i)}()},90858:function(){(function(){var e,t,n,i,o={}.hasOwnProperty;(i=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,i,o,r,a;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),a=[],n=0,i=(r=e.childNodes).length;n<i;n++)o=r[n],a.push(this.add_option(o,t,e.disabled));return a},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===n?n:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(e){var t,n,o,r,a;for(r=new i,n=0,o=(a=e.childNodes).length;n<o;n++)t=a[n],r.add_node(t);return r.parsed},t=function(){function e(t,n){var i,o;this.form_field=t,this.options=null!=n?n:{},this.label_click_handler=(i=this.label_click_handler,o=this,function(){return i.apply(o,arguments)}),e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){var e;return this.click_test_action=(e=this,function(t){return e.test_active_click(t)}),this.activate_action=function(e){return function(t){return e.activate_field(t)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout((t=this,function(){return t.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var t},e.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((t=this,function(){return t.blur_test()}),100);var t},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,n,i,o,r,a,s;for(t="",s=0,o=0,r=(a=this.results_data).length;o<r&&(i="",""!==(i=(n=a[o]).group?this.result_add_group(n):this.result_add_option(n))&&(s++,t+=i),(null!=e?e.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(s>=this.max_shown_results));o++);return t},e.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),e.style&&(n.style.cssText=e.style),n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.highlighted_html||e.html,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&e.active_options>0?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),n.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,n,i,o;for(o=[],e=0,t=(n=this.results_data).length;e<t;e++)(i=n[e]).selected?o.push(i.selected=!1):o.push(void 0);return o},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(e){var t,n,i,o,r,a,s,l,c,d,u,f,h,p,m;for(this.no_results_clear(),d=0,t=(s=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(t),i=0,o=(l=this.results_data).length;i<o;i++)(r=l[i]).search_match=!1,u=null,f=null,r.highlighted_html="",this.include_option_in_results(r)&&(r.group&&(r.group_match=!1,r.active_options=0),null!=r.group_array_index&&this.results_data[r.group_array_index]&&(0===(u=this.results_data[r.group_array_index]).active_options&&u.search_match&&(d+=1),u.active_options+=1),m=r.group?r.label:r.text,r.group&&!this.group_search||(f=this.search_string_match(m,c),r.search_match=null!=f,r.search_match&&!r.group&&(d+=1),r.search_match?(s.length&&(h=f.index,a=m.slice(0,h),n=m.slice(h,h+s.length),p=m.slice(h+s.length),r.highlighted_html=this.escape_html(a)+"<em>"+this.escape_html(n)+"</em>"+this.escape_html(p)),null!=u&&(u.group_match=!0)):null!=r.group_array_index&&this.results_data[r.group_array_index].search_match&&(r.search_match=!0)));return this.result_clear_highlight(),d<1&&s.length?(this.update_results_content(""),this.no_results(s)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,n;return n=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(n="^"+n),t=this.case_sensitive_search?"":"i",new RegExp(n,t)},e.prototype.search_string_match=function(e,t){var n;return n=t.exec(e),!this.search_contains&&(null!=n?n[1]:void 0)&&(n.index+=1),n},e.prototype.choices_count=function(){var e,t,n;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(n=this.form_field.options).length;e<t;e++)n[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keydown_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==n&&this.pending_backstroke&&this.clear_backstroke(),n){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.keyup_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),n){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(e){var t;if(!this.is_disabled)return setTimeout((t=this,function(){return t.results_search()}),50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_no_results_html=function(e){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),(e=jQuery).fn.extend({chosen:function(i){return t.browser_is_supported()?this.each((function(t){var o,r;r=(o=e(this)).data("chosen"),"destroy"!==i?r instanceof n||o.data("chosen",new n(this,i)):r instanceof n&&r.destroy()})):this}}),n=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(n,t),n.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},n.prototype.set_up_html=function(){var t,n;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),n={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(n.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",n),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){var e;return this.container.on("touchstart.chosen",(e=this,function(t){e.container_mousedown(t)})),this.container.on("touchend.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mousedown.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("mouseup.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mouseenter.chosen",function(e){return function(t){e.mouse_enter(t)}}(this)),this.container.on("mouseleave.chosen",function(e){return function(t){e.mouse_leave(t)}}(this)),this.search_results.on("mouseup.chosen",function(e){return function(t){e.search_results_mouseup(t)}}(this)),this.search_results.on("mouseover.chosen",function(e){return function(t){e.search_results_mouseover(t)}}(this)),this.search_results.on("mouseout.chosen",function(e){return function(t){e.search_results_mouseout(t)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(e){return function(t){e.search_results_mousewheel(t)}}(this)),this.search_results.on("touchstart.chosen",function(e){return function(t){e.search_results_touchstart(t)}}(this)),this.search_results.on("touchmove.chosen",function(e){return function(t){e.search_results_touchmove(t)}}(this)),this.search_results.on("touchend.chosen",function(e){return function(t){e.search_results_touchend(t)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(e){return function(t){e.results_update_field(t)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(e){return function(t){e.activate_field(t)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(e){return function(t){e.close_field(t)}}(this)),this.search_field.on("blur.chosen",function(e){return function(t){e.input_blur(t)}}(this)),this.search_field.on("keyup.chosen",function(e){return function(t){e.keyup_checker(t)}}(this)),this.search_field.on("keydown.chosen",function(e){return function(t){e.keydown_checker(t)}}(this)),this.search_field.on("focus.chosen",function(e){return function(t){e.input_focus(t)}}(this)),this.search_field.on("cut.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.search_field.on("paste.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(e){return function(t){e.choices_click(t)}}(this)):this.container.on("click.chosen",(function(e){e.preventDefault()}))},n.prototype.destroy=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},n.prototype.container_mousedown=function(t){var n;if(!this.is_disabled)return!t||"mousedown"!==(n=t.type)&&"touchstart"!==n||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},n.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},n.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},n.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},n.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(t){var n;return(n=e(t.target).closest(".chosen-container")).length&&this.container[0]===n[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(e){var t,n,i,o,r;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),o=(i=parseInt(this.search_results.css("maxHeight"),10))+(r=this.search_results.scrollTop()),(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=o)return this.search_results.scrollTop(t-i>0?t-i:0);if(n<r)return this.search_results.scrollTop(n)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},n.prototype.update_results_content=function(e){return this.search_results.html(e)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},n.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(t){var n;if((n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=n,this.result_select(t),this.search_field.focus()},n.prototype.search_results_mouseover=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(n)},n.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result")||e(t.target).parents(".active-result").first())return this.result_clear_highlight()},n.prototype.choice_build=function(t){var n,i,o;return n=e("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?n.addClass("search-choice-disabled"):((i=e("<a />",{class:"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",(o=this,function(e){return o.choice_destroy_link_click(e)})),n.append(i)),this.search_container.before(n)},n.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},n.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(n=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},n.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_field_value=function(){return this.search_field.val()},n.prototype.get_search_text=function(){return e.trim(this.get_search_field_value())},n.prototype.escape_html=function(t){return e("<div/>").text(t).html()},n.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},n.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.search_field_scale=function(){var t,n,i,o,r,a,s;if(this.is_multiple){for(r={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},n=0,i=(a=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;n<i;n++)r[o=a[n]]=this.search_field.css(o);return(t=e("<div />").css(r)).text(this.get_search_field_value()),e("body").append(t),s=t.width()+25,t.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},n.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},n}(t)}).call(this)},42152:function(e){var t;t=function(){return function(){var e={134:function(e,t,n){"use strict";n.d(t,{default:function(){return w}});var i=n(279),o=n.n(i),r=n(370),a=n.n(r),s=n(817),l=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}var t,n,i;return t=e,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=l()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==c(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}],n&&d(t.prototype,n),i&&d(t,i),e}(),f=u;function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function b(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(r,e);var t,n,i,o=g(r);function r(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return t=r,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new f({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return b("action",e)}},{key:"defaultTarget",value:function(e){var t=b("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return b("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],i=[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&p(t.prototype,n),i&&p(t,i),r}(o()),w=y},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function o(e,t,n,i,o){var a=r.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function r(e,t,n,o){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,i,r)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(i.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(i.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),t=i.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,a=i.length;r<a;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(134)}().default},e.exports=t()},32164:()=>{jQuery.plot.plugins.push({init:function(e){var t,n,i,o,r=1,a=!1,s={};function l(e,t){for(var n=new Array,i=0;i<e.length;i++)n[0]=e[i].data[0]?e[i].data[0][t]:null,n[1]=e[i].data[e[i].data.length-1]?e[i].data[e[i].data.length-1][t]:null;return n}function c(e,t){var n=e.bars.order,i=t.bars.order;return n<i?-1:n>i?1:0}function d(e,t,n){for(var i=0,r=t;r<=n;r++)i+=e[r].bars.barWidth+2*o;return i}e.hooks.processDatapoints.push((function(e,u,f){var h,p=null;if(function(e){return null!=e.bars&&e.bars.show&&null!=e.bars.order}(u)&&(function(e){e.bars.horizontal&&(a=!0)}(u),function(e){var t=a?e.getPlaceholder().innerHeight():e.getPlaceholder().innerWidth(),n=l(e.getData(),a?1:0),i=n[1]-n[0];r=i/t}(e),function(e){t=function(e){for(var t=new Array,n=[],i=0;i<e.length;i++)null!=e[i].bars.order&&e[i].bars.show&&n.indexOf(e[i].bars.order)<0&&(n.push(e[i].bars.order),t.push(e[i]));return t.sort(c)}(e.getData()),n=t.length}(e),function(e){i=void 0!==e.bars.lineWidth?e.bars.lineWidth:2,o=i*r}(u),n>=2)){var m=function(e){for(var n=0,i=0;i<t.length;++i)if(e==t[i]){n=i;break}return n+1}(u),g=(h=0,n%2!=0&&(h=t[Math.ceil(n/2)].bars.barWidth/2),h);void 0===s[u.bars.order]&&(function(e){return e<=Math.ceil(n/2)}(m)?s[u.bars.order]=-1*d(t,m-1,Math.floor(n/2)-1)-g:s[u.bars.order]=d(t,Math.ceil(n/2),m-2)+g+2*o),p=function(e,t,n){for(var i=e.pointsize,o=e.points,r=0,s=a?1:0;s<o.length;s+=i)o[s]+=n,t.data[r][3]=o[s],r++;return o}(f,u,s[u.bars.order]),f.points=p}return p}))},options:{series:{bars:{order:null}}},name:"orderBars",version:"0.2"})},32196:()=>{!function(e){e.color={},e.color.make=function(t,n,i,o){var r={};return r.r=t||0,r.g=n||0,r.b=i||0,r.a=null!=o?o:1,r.add=function(e,t){for(var n=0;n<e.length;++n)r[e.charAt(n)]+=t;return r.normalize()},r.scale=function(e,t){for(var n=0;n<e.length;++n)r[e.charAt(n)]*=t;return r.normalize()},r.toString=function(){return r.a>=1?"rgb("+[r.r,r.g,r.b].join(",")+")":"rgba("+[r.r,r.g,r.b,r.a].join(",")+")"},r.normalize=function(){function e(e,t,n){return t<e?e:t>n?n:t}return r.r=e(0,parseInt(r.r),255),r.g=e(0,parseInt(r.g),255),r.b=e(0,parseInt(r.b),255),r.a=e(0,r.a,1),r},r.clone=function(){return e.color.make(r.r,r.b,r.g,r.a)},r.normalize()},e.color.extract=function(t,n){var i;do{if(""!=(i=t.css(n).toLowerCase())&&"transparent"!=i)break;t=t.parent()}while(t.length&&!e.nodeName(t.get(0),"body"));return"rgba(0, 0, 0, 0)"==i&&(i="transparent"),e.color.parse(i)},e.color.parse=function(n){var i,o=e.color.make;if(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))return o(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10));if(i=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return o(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10),parseFloat(i[4]));if(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(n))return o(2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3]));if(i=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return o(2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3]),parseFloat(i[4]));if(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))return o(parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16));if(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(n))return o(parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16));var r=e.trim(n).toLowerCase();return"transparent"==r?o(255,255,255,0):o((i=t[r]||[0,0,0])[0],i[1],i[2])};var t={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(e){var t=Object.prototype.hasOwnProperty;function n(t,n){var i=n.children("."+t)[0];if(null==i&&((i=document.createElement("canvas")).className=t,e(i).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(n),!i.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");i=window.G_vmlCanvasManager.initElement(i)}this.element=i;var o=this.context=i.getContext("2d"),r=window.devicePixelRatio||1,a=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1;this.pixelRatio=r/a,this.resize(n.width(),n.height()),this.textContainer=null,this.text={},this._textCache={}}function i(t,i,o,r){var a=[],s={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},l=null,c=null,d=null,u=null,f=null,h=[],p=[],m={left:0,right:0,top:0,bottom:0},g=0,v=0,_={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},b=this;function y(e,t){t=[b].concat(t);for(var n=0;n<e.length;++n)e[n].apply(this,t)}function w(t){a=function(t){for(var n=[],i=0;i<t.length;++i){var o=e.extend(!0,{},s.series);null!=t[i].data?(o.data=t[i].data,delete t[i].data,e.extend(!0,o,t[i]),t[i].data=o.data):o.data=t[i],n.push(o)}return n}(t),function(){var t,n=a.length,i=-1;for(t=0;t<a.length;++t){var o=a[t].color;null!=o&&(n--,"number"==typeof o&&o>i&&(i=o))}n<=i&&(n=i+1);var r,l=[],c=s.colors,d=c.length,u=0;for(t=0;t<n;t++)r=e.color.parse(c[t%d]||"#666"),t%d==0&&t&&(u=u>=0?u<.5?-u-.2:0:-u),l[t]=r.scale("rgb",1+u);var f,m=0;for(t=0;t<a.length;++t){if(null==(f=a[t]).color?(f.color=l[m].toString(),++m):"number"==typeof f.color&&(f.color=l[f.color].toString()),null==f.lines.show){var g,v=!0;for(g in f)if(f[g]&&f[g].show){v=!1;break}v&&(f.lines.show=!0)}null==f.lines.zero&&(f.lines.zero=!!f.lines.fill),f.xaxis=S(h,x(f,"x")),f.yaxis=S(p,x(f,"y"))}}(),function(){var t,n,i,o,r,s,l,c,d,u,f,h,p=Number.POSITIVE_INFINITY,m=Number.NEGATIVE_INFINITY,g=Number.MAX_VALUE;function v(e,t,n){t<e.datamin&&t!=-g&&(e.datamin=t),n>e.datamax&&n!=g&&(e.datamax=n)}for(e.each(k(),(function(e,t){t.datamin=p,t.datamax=m,t.used=!1})),t=0;t<a.length;++t)(r=a[t]).datapoints={points:[]},y(_.processRawData,[r,r.data,r.datapoints]);for(t=0;t<a.length;++t){if(f=(r=a[t]).data,!(h=r.datapoints.format)){if((h=[]).push({x:!0,number:!0,required:!0}),h.push({y:!0,number:!0,required:!0}),r.bars.show||r.lines.show&&r.lines.fill){var b=!!(r.bars.show&&r.bars.zero||r.lines.show&&r.lines.zero);h.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:b}),r.bars.horizontal&&(delete h[h.length-1].y,h[h.length-1].x=!0)}r.datapoints.format=h}if(null==r.datapoints.pointsize){r.datapoints.pointsize=h.length,l=r.datapoints.pointsize,s=r.datapoints.points;var w=r.lines.show&&r.lines.steps;for(r.xaxis.used=r.yaxis.used=!0,n=i=0;n<f.length;++n,i+=l){var x=null==(u=f[n]);if(!x)for(o=0;o<l;++o)c=u[o],(d=h[o])&&(d.number&&null!=c&&(c=+c,isNaN(c)?c=null:c==1/0?c=g:c==-1/0&&(c=-g)),null==c&&(d.required&&(x=!0),null!=d.defaultValue&&(c=d.defaultValue))),s[i+o]=c;if(x)for(o=0;o<l;++o)null!=(c=s[i+o])&&!1!==(d=h[o]).autoscale&&(d.x&&v(r.xaxis,c,c),d.y&&v(r.yaxis,c,c)),s[i+o]=null;else if(w&&i>0&&null!=s[i-l]&&s[i-l]!=s[i]&&s[i-l+1]!=s[i+1]){for(o=0;o<l;++o)s[i+l+o]=s[i+o];s[i+1]=s[i-l+1],i+=l}}}}for(t=0;t<a.length;++t)r=a[t],y(_.processDatapoints,[r,r.datapoints]);for(t=0;t<a.length;++t){s=(r=a[t]).datapoints.points,l=r.datapoints.pointsize,h=r.datapoints.format;var C=p,S=p,T=m,j=m;for(n=0;n<s.length;n+=l)if(null!=s[n])for(o=0;o<l;++o)c=s[n+o],(d=h[o])&&!1!==d.autoscale&&c!=g&&c!=-g&&(d.x&&(c<C&&(C=c),c>T&&(T=c)),d.y&&(c<S&&(S=c),c>j&&(j=c)));if(r.bars.show){var E;switch(r.bars.align){case"left":E=0;break;case"right":E=-r.bars.barWidth;break;default:E=-r.bars.barWidth/2}r.bars.horizontal?(S+=E,j+=E+r.bars.barWidth):(C+=E,T+=E+r.bars.barWidth)}v(r.xaxis,C,T),v(r.yaxis,S,j)}e.each(k(),(function(e,t){t.datamin==p&&(t.datamin=null),t.datamax==m&&(t.datamax=null)}))}()}function x(e,t){var n=e[t+"axis"];return"object"==typeof n&&(n=n.n),"number"!=typeof n&&(n=1),n}function k(){return e.grep(h.concat(p),(function(e){return e}))}function C(e){var t,n,i={};for(t=0;t<h.length;++t)(n=h[t])&&n.used&&(i["x"+n.n]=n.c2p(e.left));for(t=0;t<p.length;++t)(n=p[t])&&n.used&&(i["y"+n.n]=n.c2p(e.top));return void 0!==i.x1&&(i.x=i.x1),void 0!==i.y1&&(i.y=i.y1),i}function S(t,n){return t[n-1]||(t[n-1]={n,direction:t==h?"x":"y",options:e.extend(!0,{},t==h?s.xaxis:s.yaxis)}),t[n-1]}function T(){z&&clearTimeout(z),d.unbind("mousemove",N),d.unbind("mouseleave",q),d.unbind("click",D),y(_.shutdown,[d])}function j(t){var n=t.labelWidth,i=t.labelHeight,o=t.options.position,r="x"===t.direction,a=t.options.tickLength,c=s.grid.axisMargin,d=s.grid.labelMargin,u=!0,f=!0,g=!0,v=!1;e.each(r?h:p,(function(e,n){n&&(n.show||n.reserveSpace)&&(n===t?v=!0:n.options.position===o&&(v?f=!1:u=!1),v||(g=!1))})),f&&(c=0),null==a&&(a=g?"full":5),isNaN(+a)||(d+=+a),r?(i+=d,"bottom"==o?(m.bottom+=i+c,t.box={top:l.height-m.bottom,height:i}):(t.box={top:m.top+c,height:i},m.top+=i+c)):(n+=d,"left"==o?(t.box={left:m.left+c,width:n},m.left+=n+c):(m.right+=n+c,t.box={left:l.width-m.right,width:n})),t.position=o,t.tickLength=a,t.box.padding=d,t.innermost=u}function E(){var n,i=k(),o=s.grid.show;for(var r in m){var c=s.grid.margin||0;m[r]="number"==typeof c?c:c[r]||0}for(var r in y(_.processOffset,[m]),m)"object"==typeof s.grid.borderWidth?m[r]+=o?s.grid.borderWidth[r]:0:m[r]+=o?s.grid.borderWidth:0;if(e.each(i,(function(e,t){var n=t.options;t.show=null==n.show?t.used:n.show,t.reserveSpace=null==n.reserveSpace?t.show:n.reserveSpace,function(e){var t=e.options,n=+(null!=t.min?t.min:e.datamin),i=+(null!=t.max?t.max:e.datamax),o=i-n;if(0==o){var r=0==i?1:.01;null==t.min&&(n-=r),null!=t.max&&null==t.min||(i+=r)}else{var a=t.autoscaleMargin;null!=a&&(null==t.min&&(n-=o*a)<0&&null!=e.datamin&&e.datamin>=0&&(n=0),null==t.max&&(i+=o*a)>0&&null!=e.datamax&&e.datamax<=0&&(i=0))}e.min=n,e.max=i}(t)})),o){var d=e.grep(i,(function(e){return e.show||e.reserveSpace}));for(e.each(d,(function(t,n){!function(t){var n,i=t.options;n="number"==typeof i.ticks&&i.ticks>0?i.ticks:.3*Math.sqrt("x"==t.direction?l.width:l.height);var o=(t.max-t.min)/n,r=-Math.floor(Math.log(o)/Math.LN10),a=i.tickDecimals;null!=a&&r>a&&(r=a);var s,c=Math.pow(10,-r),d=o/c;d<1.5?s=1:d<3?(s=2,d>2.25&&(null==a||r+1<=a)&&(s=2.5,++r)):s=d<7.5?5:10;s*=c,null!=i.minTickSize&&s<i.minTickSize&&(s=i.minTickSize);if(t.delta=o,t.tickDecimals=Math.max(0,null!=a?a:r),t.tickSize=i.tickSize||s,"time"==i.mode&&!t.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");t.tickGenerator||(t.tickGenerator=function(e){var t,n,i,o=[],r=(n=e.min,(i=e.tickSize)*Math.floor(n/i)),a=0,s=Number.NaN;do{t=s,s=r+a*e.tickSize,o.push(s),++a}while(s<e.max&&s!=t);return o},t.tickFormatter=function(e,t){var n=t.tickDecimals?Math.pow(10,t.tickDecimals):1,i=""+Math.round(e*n)/n;if(null!=t.tickDecimals){var o=i.indexOf("."),r=-1==o?0:i.length-o-1;if(r<t.tickDecimals)return(r?i:i+".")+(""+n).substr(1,t.tickDecimals-r)}return i});e.isFunction(i.tickFormatter)&&(t.tickFormatter=function(e,t){return""+i.tickFormatter(e,t)});if(null!=i.alignTicksWithAxis){var u=("x"==t.direction?h:p)[i.alignTicksWithAxis-1];if(u&&u.used&&u!=t){var f=t.tickGenerator(t);if(f.length>0&&(null==i.min&&(t.min=Math.min(t.min,f[0])),null==i.max&&f.length>1&&(t.max=Math.max(t.max,f[f.length-1]))),t.tickGenerator=function(e){var t,n,i=[];for(n=0;n<u.ticks.length;++n)t=(u.ticks[n].v-u.min)/(u.max-u.min),t=e.min+t*(e.max-e.min),i.push(t);return i},!t.mode&&null==i.tickDecimals){var m=Math.max(0,1-Math.floor(Math.log(t.delta)/Math.LN10)),g=t.tickGenerator(t);g.length>1&&/\..*0$/.test((g[1]-g[0]).toFixed(m))||(t.tickDecimals=m)}}}}(n),function(t){var n,i,o=t.options.ticks,r=[];null==o||"number"==typeof o&&o>0?r=t.tickGenerator(t):o&&(r=e.isFunction(o)?o(t):o);for(t.ticks=[],n=0;n<r.length;++n){var a=null,s=r[n];"object"==typeof s?(i=+s[0],s.length>1&&(a=s[1])):i=+s,null==a&&(a=t.tickFormatter(i,t)),isNaN(i)||t.ticks.push({v:i,label:a})}}(n),function(e,t){e.options.autoscaleMargin&&t.length>0&&(null==e.options.min&&(e.min=Math.min(e.min,t[0].v)),null==e.options.max&&t.length>1&&(e.max=Math.max(e.max,t[t.length-1].v)))}(n,n.ticks),function(e){for(var t=e.options,n=e.ticks||[],i=t.labelWidth||0,o=t.labelHeight||0,r=i||("x"==e.direction?Math.floor(l.width/(n.length||1)):null),a=e.direction+"Axis "+e.direction+e.n+"Axis",s="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+a,c=t.font||"flot-tick-label tickLabel",d=0;d<n.length;++d){var u=n[d];if(u.label){var f=l.getTextInfo(s,u.label,c,null,r);i=Math.max(i,f.width),o=Math.max(o,f.height)}}e.labelWidth=t.labelWidth||i,e.labelHeight=t.labelHeight||o}(n)})),n=d.length-1;n>=0;--n)j(d[n]);!function(){var t,n=s.grid.minBorderMargin;if(null==n)for(n=0,t=0;t<a.length;++t)n=Math.max(n,2*(a[t].points.radius+a[t].points.lineWidth/2));var i={left:n,right:n,top:n,bottom:n};e.each(k(),(function(e,t){t.reserveSpace&&t.ticks&&t.ticks.length&&("x"===t.direction?(i.left=Math.max(i.left,t.labelWidth/2),i.right=Math.max(i.right,t.labelWidth/2)):(i.bottom=Math.max(i.bottom,t.labelHeight/2),i.top=Math.max(i.top,t.labelHeight/2)))})),m.left=Math.ceil(Math.max(i.left,m.left)),m.right=Math.ceil(Math.max(i.right,m.right)),m.top=Math.ceil(Math.max(i.top,m.top)),m.bottom=Math.ceil(Math.max(i.bottom,m.bottom))}(),e.each(d,(function(e,t){!function(e){"x"==e.direction?(e.box.left=m.left-e.labelWidth/2,e.box.width=l.width-m.left-m.right+e.labelWidth):(e.box.top=m.top-e.labelHeight/2,e.box.height=l.height-m.bottom-m.top+e.labelHeight)}(t)}))}g=l.width-m.left-m.right,v=l.height-m.bottom-m.top,e.each(i,(function(e,t){!function(e){function t(e){return e}var n,i,o=e.options.transform||t,r=e.options.inverseTransform;"x"==e.direction?(n=e.scale=g/Math.abs(o(e.max)-o(e.min)),i=Math.min(o(e.max),o(e.min))):(n=-(n=e.scale=v/Math.abs(o(e.max)-o(e.min))),i=Math.max(o(e.max),o(e.min))),e.p2c=o==t?function(e){return(e-i)*n}:function(e){return(o(e)-i)*n},e.c2p=r?function(e){return r(i+e/n)}:function(e){return i+e/n}}(t)})),o&&e.each(k(),(function(e,t){var n,i,o,r,a,s=t.box,c=t.direction+"Axis "+t.direction+t.n+"Axis",d="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+c,u=t.options.font||"flot-tick-label tickLabel";if(l.removeText(d),t.show&&0!=t.ticks.length)for(var f=0;f<t.ticks.length;++f)!(n=t.ticks[f]).label||n.v<t.min||n.v>t.max||("x"==t.direction?(r="center",i=m.left+t.p2c(n.v),"bottom"==t.position?o=s.top+s.padding:(o=s.top+s.height-s.padding,a="bottom")):(a="middle",o=m.top+t.p2c(n.v),"left"==t.position?(i=s.left+s.width-s.padding,r="right"):i=s.left+s.padding),l.addText(d,i,o,n.label,u,null,null,r,a))})),function(){null!=s.legend.container?e(s.legend.container).html(""):t.find(".legend").remove();if(!s.legend.show)return;for(var n,i,o=[],r=[],l=!1,c=s.legend.labelFormatter,d=0;d<a.length;++d)(n=a[d]).label&&(i=c?c(n.label,n):n.label)&&r.push({label:i,color:n.color});if(s.legend.sorted)if(e.isFunction(s.legend.sorted))r.sort(s.legend.sorted);else if("reverse"==s.legend.sorted)r.reverse();else{var u="descending"!=s.legend.sorted;r.sort((function(e,t){return e.label==t.label?0:e.label<t.label!=u?1:-1}))}for(d=0;d<r.length;++d){var f=r[d];d%s.legend.noColumns==0&&(l&&o.push("</tr>"),o.push("<tr>"),l=!0),o.push('<td class="legendColorBox"><div style="border:1px solid '+s.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+f.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+f.label+"</td>")}l&&o.push("</tr>");if(0==o.length)return;var h='<table style="font-size:smaller;color:'+s.grid.color+'">'+o.join("")+"</table>";if(null!=s.legend.container)e(s.legend.container).html(h);else{var p="",g=s.legend.position,v=s.legend.margin;null==v[0]&&(v=[v,v]),"n"==g.charAt(0)?p+="top:"+(v[1]+m.top)+"px;":"s"==g.charAt(0)&&(p+="bottom:"+(v[1]+m.bottom)+"px;"),"e"==g.charAt(1)?p+="right:"+(v[0]+m.right)+"px;":"w"==g.charAt(1)&&(p+="left:"+(v[0]+m.left)+"px;");var _=e('<div class="legend">'+h.replace('style="','style="position:absolute;'+p+";")+"</div>").appendTo(t);if(0!=s.legend.backgroundOpacity){var b=s.legend.backgroundColor;null==b&&((b=(b=s.grid.backgroundColor)&&"string"==typeof b?e.color.parse(b):e.color.extract(_,"background-color")).a=1,b=b.toString());var y=_.children();e('<div style="position:absolute;width:'+y.width()+"px;height:"+y.height()+"px;"+p+"background-color:"+b+';"> </div>').prependTo(_).css("opacity",s.legend.backgroundOpacity)}}}()}function I(){l.clear(),y(_.drawBackground,[u]);var e=s.grid;e.show&&e.backgroundColor&&(u.save(),u.translate(m.left,m.top),u.fillStyle=Y(s.grid.backgroundColor,v,0,"rgba(255, 255, 255, 0)"),u.fillRect(0,0,g,v),u.restore()),e.show&&!e.aboveData&&M();for(var t=0;t<a.length;++t)y(_.drawSeries,[u,a[t]]),A(a[t]);y(_.draw,[u]),e.show&&e.aboveData&&M(),l.render(),W()}function G(e,t){for(var n,i,o,r,a=k(),s=0;s<a.length;++s)if((n=a[s]).direction==t&&(e[r=t+n.n+"axis"]||1!=n.n||(r=t+"axis"),e[r])){i=e[r].from,o=e[r].to;break}if(e[r]||(n="x"==t?h[0]:p[0],i=e[t+"1"],o=e[t+"2"]),null!=i&&null!=o&&i>o){var l=i;i=o,o=l}return{from:i,to:o,axis:n}}function M(){var t,n,i,o;u.save(),u.translate(m.left,m.top);var r=s.grid.markings;if(r)for(e.isFunction(r)&&((n=b.getAxes()).xmin=n.xaxis.min,n.xmax=n.xaxis.max,n.ymin=n.yaxis.min,n.ymax=n.yaxis.max,r=r(n)),t=0;t<r.length;++t){var a=r[t],l=G(a,"x"),c=G(a,"y");if(null==l.from&&(l.from=l.axis.min),null==l.to&&(l.to=l.axis.max),null==c.from&&(c.from=c.axis.min),null==c.to&&(c.to=c.axis.max),!(l.to<l.axis.min||l.from>l.axis.max||c.to<c.axis.min||c.from>c.axis.max)){l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max),c.from=Math.max(c.from,c.axis.min),c.to=Math.min(c.to,c.axis.max);var d=l.from===l.to,f=c.from===c.to;if(!d||!f)if(l.from=Math.floor(l.axis.p2c(l.from)),l.to=Math.floor(l.axis.p2c(l.to)),c.from=Math.floor(c.axis.p2c(c.from)),c.to=Math.floor(c.axis.p2c(c.to)),d||f){var h=a.lineWidth||s.grid.markingsLineWidth,p=h%2?.5:0;u.beginPath(),u.strokeStyle=a.color||s.grid.markingsColor,u.lineWidth=h,d?(u.moveTo(l.to+p,c.from),u.lineTo(l.to+p,c.to)):(u.moveTo(l.from,c.to+p),u.lineTo(l.to,c.to+p)),u.stroke()}else u.fillStyle=a.color||s.grid.markingsColor,u.fillRect(l.from,c.to,l.to-l.from,c.from-c.to)}}n=k(),i=s.grid.borderWidth;for(var _=0;_<n.length;++_){var y,w,x,C,S=n[_],T=S.box,j=S.tickLength;if(S.show&&0!=S.ticks.length){for(u.lineWidth=1,"x"==S.direction?(y=0,w="full"==j?"top"==S.position?0:v:T.top-m.top+("top"==S.position?T.height:0)):(w=0,y="full"==j?"left"==S.position?0:g:T.left-m.left+("left"==S.position?T.width:0)),S.innermost||(u.strokeStyle=S.options.color,u.beginPath(),x=C=0,"x"==S.direction?x=g+1:C=v+1,1==u.lineWidth&&("x"==S.direction?w=Math.floor(w)+.5:y=Math.floor(y)+.5),u.moveTo(y,w),u.lineTo(y+x,w+C),u.stroke()),u.strokeStyle=S.options.tickColor,u.beginPath(),t=0;t<S.ticks.length;++t){var E=S.ticks[t].v;x=C=0,isNaN(E)||E<S.min||E>S.max||"full"==j&&("object"==typeof i&&i[S.position]>0||i>0)&&(E==S.min||E==S.max)||("x"==S.direction?(y=S.p2c(E),C="full"==j?-v:j,"top"==S.position&&(C=-C)):(w=S.p2c(E),x="full"==j?-g:j,"left"==S.position&&(x=-x)),1==u.lineWidth&&("x"==S.direction?y=Math.floor(y)+.5:w=Math.floor(w)+.5),u.moveTo(y,w),u.lineTo(y+x,w+C))}u.stroke()}}i&&(o=s.grid.borderColor,"object"==typeof i||"object"==typeof o?("object"!=typeof i&&(i={top:i,right:i,bottom:i,left:i}),"object"!=typeof o&&(o={top:o,right:o,bottom:o,left:o}),i.top>0&&(u.strokeStyle=o.top,u.lineWidth=i.top,u.beginPath(),u.moveTo(0-i.left,0-i.top/2),u.lineTo(g,0-i.top/2),u.stroke()),i.right>0&&(u.strokeStyle=o.right,u.lineWidth=i.right,u.beginPath(),u.moveTo(g+i.right/2,0-i.top),u.lineTo(g+i.right/2,v),u.stroke()),i.bottom>0&&(u.strokeStyle=o.bottom,u.lineWidth=i.bottom,u.beginPath(),u.moveTo(g+i.right,v+i.bottom/2),u.lineTo(0,v+i.bottom/2),u.stroke()),i.left>0&&(u.strokeStyle=o.left,u.lineWidth=i.left,u.beginPath(),u.moveTo(0-i.left/2,v+i.bottom),u.lineTo(0-i.left/2,0),u.stroke())):(u.lineWidth=i,u.strokeStyle=s.grid.borderColor,u.strokeRect(-i/2,-i/2,g+i,v+i))),u.restore()}function A(e){e.lines.show&&function(e){function t(e,t,n,i,o){var r=e.points,a=e.pointsize,s=null,l=null;u.beginPath();for(var c=a;c<r.length;c+=a){var d=r[c-a],f=r[c-a+1],h=r[c],p=r[c+1];if(null!=d&&null!=h){if(f<=p&&f<o.min){if(p<o.min)continue;d=(o.min-f)/(p-f)*(h-d)+d,f=o.min}else if(p<=f&&p<o.min){if(f<o.min)continue;h=(o.min-f)/(p-f)*(h-d)+d,p=o.min}if(f>=p&&f>o.max){if(p>o.max)continue;d=(o.max-f)/(p-f)*(h-d)+d,f=o.max}else if(p>=f&&p>o.max){if(f>o.max)continue;h=(o.max-f)/(p-f)*(h-d)+d,p=o.max}if(d<=h&&d<i.min){if(h<i.min)continue;f=(i.min-d)/(h-d)*(p-f)+f,d=i.min}else if(h<=d&&h<i.min){if(d<i.min)continue;p=(i.min-d)/(h-d)*(p-f)+f,h=i.min}if(d>=h&&d>i.max){if(h>i.max)continue;f=(i.max-d)/(h-d)*(p-f)+f,d=i.max}else if(h>=d&&h>i.max){if(d>i.max)continue;p=(i.max-d)/(h-d)*(p-f)+f,h=i.max}d==s&&f==l||u.moveTo(i.p2c(d)+t,o.p2c(f)+n),s=h,l=p,u.lineTo(i.p2c(h)+t,o.p2c(p)+n)}}u.stroke()}function n(e,t,n){for(var i=e.points,o=e.pointsize,r=Math.min(Math.max(0,n.min),n.max),a=0,s=!1,l=1,c=0,d=0;!(o>0&&a>i.length+o);){var f=i[(a+=o)-o],h=i[a-o+l],p=i[a],m=i[a+l];if(s){if(o>0&&null!=f&&null==p){d=a,o=-o,l=2;continue}if(o<0&&a==c+o){u.fill(),s=!1,l=1,a=c=d+(o=-o);continue}}if(null!=f&&null!=p){if(f<=p&&f<t.min){if(p<t.min)continue;h=(t.min-f)/(p-f)*(m-h)+h,f=t.min}else if(p<=f&&p<t.min){if(f<t.min)continue;m=(t.min-f)/(p-f)*(m-h)+h,p=t.min}if(f>=p&&f>t.max){if(p>t.max)continue;h=(t.max-f)/(p-f)*(m-h)+h,f=t.max}else if(p>=f&&p>t.max){if(f>t.max)continue;m=(t.max-f)/(p-f)*(m-h)+h,p=t.max}if(s||(u.beginPath(),u.moveTo(t.p2c(f),n.p2c(r)),s=!0),h>=n.max&&m>=n.max)u.lineTo(t.p2c(f),n.p2c(n.max)),u.lineTo(t.p2c(p),n.p2c(n.max));else if(h<=n.min&&m<=n.min)u.lineTo(t.p2c(f),n.p2c(n.min)),u.lineTo(t.p2c(p),n.p2c(n.min));else{var g=f,v=p;h<=m&&h<n.min&&m>=n.min?(f=(n.min-h)/(m-h)*(p-f)+f,h=n.min):m<=h&&m<n.min&&h>=n.min&&(p=(n.min-h)/(m-h)*(p-f)+f,m=n.min),h>=m&&h>n.max&&m<=n.max?(f=(n.max-h)/(m-h)*(p-f)+f,h=n.max):m>=h&&m>n.max&&h<=n.max&&(p=(n.max-h)/(m-h)*(p-f)+f,m=n.max),f!=g&&u.lineTo(t.p2c(g),n.p2c(h)),u.lineTo(t.p2c(f),n.p2c(h)),u.lineTo(t.p2c(p),n.p2c(m)),p!=v&&(u.lineTo(t.p2c(p),n.p2c(m)),u.lineTo(t.p2c(v),n.p2c(m)))}}}}u.save(),u.translate(m.left,m.top),u.lineJoin="round";var i=e.lines.lineWidth,o=e.shadowSize;if(i>0&&o>0){u.lineWidth=o,u.strokeStyle="rgba(0,0,0,0.1)";var r=Math.PI/18;t(e.datapoints,Math.sin(r)*(i/2+o/2),Math.cos(r)*(i/2+o/2),e.xaxis,e.yaxis),u.lineWidth=o/2,t(e.datapoints,Math.sin(r)*(i/2+o/4),Math.cos(r)*(i/2+o/4),e.xaxis,e.yaxis)}u.lineWidth=i,u.strokeStyle=e.color;var a=P(e.lines,e.color,0,v);a&&(u.fillStyle=a,n(e.datapoints,e.xaxis,e.yaxis));i>0&&t(e.datapoints,0,0,e.xaxis,e.yaxis);u.restore()}(e),e.bars.show&&function(e){function t(t,n,i,o,r,a){for(var s=t.points,l=t.pointsize,c=0;c<s.length;c+=l)null!=s[c]&&O(s[c],s[c+1],s[c+2],n,i,o,r,a,u,e.bars.horizontal,e.bars.lineWidth)}var n;switch(u.save(),u.translate(m.left,m.top),u.lineWidth=e.bars.lineWidth,u.strokeStyle=e.color,e.bars.align){case"left":n=0;break;case"right":n=-e.bars.barWidth;break;default:n=-e.bars.barWidth/2}var i=e.bars.fill?function(t,n){return P(e.bars,e.color,t,n)}:null;t(e.datapoints,n,n+e.bars.barWidth,i,e.xaxis,e.yaxis),u.restore()}(e),e.points.show&&function(e){function t(e,t,n,i,o,r,a,s){for(var l=e.points,c=e.pointsize,d=0;d<l.length;d+=c){var f=l[d],h=l[d+1];null==f||f<r.min||f>r.max||h<a.min||h>a.max||(u.beginPath(),f=r.p2c(f),h=a.p2c(h)+i,"circle"==s?u.arc(f,h,t,0,o?Math.PI:2*Math.PI,!1):s(u,f,h,t,o),u.closePath(),n&&(u.fillStyle=n,u.fill()),u.stroke())}}u.save(),u.translate(m.left,m.top);var n=e.points.lineWidth,i=e.shadowSize,o=e.points.radius,r=e.points.symbol;0==n&&(n=1e-4);if(n>0&&i>0){var a=i/2;u.lineWidth=a,u.strokeStyle="rgba(0,0,0,0.1)",t(e.datapoints,o,null,a+a/2,!0,e.xaxis,e.yaxis,r),u.strokeStyle="rgba(0,0,0,0.2)",t(e.datapoints,o,null,a/2,!0,e.xaxis,e.yaxis,r)}u.lineWidth=n,u.strokeStyle=e.color,t(e.datapoints,o,P(e.points,e.color),0,!1,e.xaxis,e.yaxis,r),u.restore()}(e)}function O(e,t,n,i,o,r,a,s,l,c,d){var u,f,h,p,m,g,v,_,b;c?(_=g=v=!0,m=!1,p=t+i,h=t+o,(f=e)<(u=n)&&(b=f,f=u,u=b,m=!0,g=!1)):(m=g=v=!0,_=!1,u=e+i,f=e+o,(p=t)<(h=n)&&(b=p,p=h,h=b,_=!0,v=!1)),f<a.min||u>a.max||p<s.min||h>s.max||(u<a.min&&(u=a.min,m=!1),f>a.max&&(f=a.max,g=!1),h<s.min&&(h=s.min,_=!1),p>s.max&&(p=s.max,v=!1),u=a.p2c(u),h=s.p2c(h),f=a.p2c(f),p=s.p2c(p),r&&(l.fillStyle=r(h,p),l.fillRect(u,p,f-u,h-p)),d>0&&(m||g||v||_)&&(l.beginPath(),l.moveTo(u,h),m?l.lineTo(u,p):l.moveTo(u,p),v?l.lineTo(f,p):l.moveTo(f,p),g?l.lineTo(f,h):l.moveTo(f,h),_?l.lineTo(u,h):l.moveTo(u,h),l.stroke()))}function P(t,n,i,o){var r=t.fill;if(!r)return null;if(t.fillColor)return Y(t.fillColor,i,o,n);var a=e.color.parse(n);return a.a="number"==typeof r?r:.4,a.normalize(),a.toString()}b.setData=w,b.setupGrid=E,b.draw=I,b.getPlaceholder=function(){return t},b.getCanvas=function(){return l.element},b.getPlotOffset=function(){return m},b.width=function(){return g},b.height=function(){return v},b.offset=function(){var e=d.offset();return e.left+=m.left,e.top+=m.top,e},b.getData=function(){return a},b.getAxes=function(){var t={};return e.each(h.concat(p),(function(e,n){n&&(t[n.direction+(1!=n.n?n.n:"")+"axis"]=n)})),t},b.getXAxes=function(){return h},b.getYAxes=function(){return p},b.c2p=C,b.p2c=function(e){var t,n,i,o={};for(t=0;t<h.length;++t)if((n=h[t])&&n.used&&(i="x"+n.n,null==e[i]&&1==n.n&&(i="x"),null!=e[i])){o.left=n.p2c(e[i]);break}for(t=0;t<p.length;++t)if((n=p[t])&&n.used&&(i="y"+n.n,null==e[i]&&1==n.n&&(i="y"),null!=e[i])){o.top=n.p2c(e[i]);break}return o},b.getOptions=function(){return s},b.highlight=R,b.unhighlight=B,b.triggerRedrawOverlay=W,b.pointOffset=function(e){return{left:parseInt(h[x(e,"x")-1].p2c(+e.x)+m.left,10),top:parseInt(p[x(e,"y")-1].p2c(+e.y)+m.top,10)}},b.shutdown=T,b.destroy=function(){T(),t.removeData("plot").empty(),a=[],s=null,l=null,c=null,d=null,u=null,f=null,h=[],p=[],_=null,L=[],b=null},b.resize=function(){var e=t.width(),n=t.height();l.resize(e,n),c.resize(e,n)},b.hooks=_,function(){for(var t={Canvas:n},i=0;i<r.length;++i){var o=r[i];o.init(b,t),o.options&&e.extend(!0,s,o.options)}}(),function(n){e.extend(!0,s,n),n&&n.colors&&(s.colors=n.colors);null==s.xaxis.color&&(s.xaxis.color=e.color.parse(s.grid.color).scale("a",.22).toString());null==s.yaxis.color&&(s.yaxis.color=e.color.parse(s.grid.color).scale("a",.22).toString());null==s.xaxis.tickColor&&(s.xaxis.tickColor=s.grid.tickColor||s.xaxis.color);null==s.yaxis.tickColor&&(s.yaxis.tickColor=s.grid.tickColor||s.yaxis.color);null==s.grid.borderColor&&(s.grid.borderColor=s.grid.color);null==s.grid.tickColor&&(s.grid.tickColor=e.color.parse(s.grid.color).scale("a",.22).toString());var i,o,r,a=t.css("font-size"),l=a?+a.replace("px",""):13,c={style:t.css("font-style"),size:Math.round(.8*l),variant:t.css("font-variant"),weight:t.css("font-weight"),family:t.css("font-family")};for(r=s.xaxes.length||1,i=0;i<r;++i)(o=s.xaxes[i])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},s.xaxis,o),s.xaxes[i]=o,o.font&&(o.font=e.extend({},c,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));for(r=s.yaxes.length||1,i=0;i<r;++i)(o=s.yaxes[i])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},s.yaxis,o),s.yaxes[i]=o,o.font&&(o.font=e.extend({},c,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));s.xaxis.noTicks&&null==s.xaxis.ticks&&(s.xaxis.ticks=s.xaxis.noTicks);s.yaxis.noTicks&&null==s.yaxis.ticks&&(s.yaxis.ticks=s.yaxis.noTicks);s.x2axis&&(s.xaxes[1]=e.extend(!0,{},s.xaxis,s.x2axis),s.xaxes[1].position="top",null==s.x2axis.min&&(s.xaxes[1].min=null),null==s.x2axis.max&&(s.xaxes[1].max=null));s.y2axis&&(s.yaxes[1]=e.extend(!0,{},s.yaxis,s.y2axis),s.yaxes[1].position="right",null==s.y2axis.min&&(s.yaxes[1].min=null),null==s.y2axis.max&&(s.yaxes[1].max=null));s.grid.coloredAreas&&(s.grid.markings=s.grid.coloredAreas);s.grid.coloredAreasColor&&(s.grid.markingsColor=s.grid.coloredAreasColor);s.lines&&e.extend(!0,s.series.lines,s.lines);s.points&&e.extend(!0,s.series.points,s.points);s.bars&&e.extend(!0,s.series.bars,s.bars);null!=s.shadowSize&&(s.series.shadowSize=s.shadowSize);null!=s.highlightColor&&(s.series.highlightColor=s.highlightColor);for(i=0;i<s.xaxes.length;++i)S(h,i+1).options=s.xaxes[i];for(i=0;i<s.yaxes.length;++i)S(p,i+1).options=s.yaxes[i];for(var d in _)s.hooks[d]&&s.hooks[d].length&&(_[d]=_[d].concat(s.hooks[d]));y(_.processOptions,[s])}(o),function(){t.css("padding",0).children().filter((function(){return!e(this).hasClass("flot-overlay")&&!e(this).hasClass("flot-base")})).remove(),"static"==t.css("position")&&t.css("position","relative");l=new n("flot-base",t),c=new n("flot-overlay",t),u=l.context,f=c.context,d=e(c.element).unbind();var i=t.data("plot");i&&(i.shutdown(),c.clear());t.data("plot",b)}(),w(i),E(),I(),function(){s.grid.hoverable&&(d.mousemove(N),d.bind("mouseleave",q));s.grid.clickable&&d.click(D);y(_.bindEvents,[d])}();var L=[],z=null;function N(e){s.grid.hoverable&&F("plothover",e,(function(e){return 0!=e.hoverable}))}function q(e){s.grid.hoverable&&F("plothover",e,(function(e){return!1}))}function D(e){F("plotclick",e,(function(e){return 0!=e.clickable}))}function F(e,n,i){var o=d.offset(),r=n.pageX-o.left-m.left,l=n.pageY-o.top-m.top,c=C({left:r,top:l});c.pageX=n.pageX,c.pageY=n.pageY;var u=function(e,t,n){var i,o,r,l=s.grid.mouseActiveRadius,c=l*l+1,d=null;for(i=a.length-1;i>=0;--i)if(n(a[i])){var u=a[i],f=u.xaxis,h=u.yaxis,p=u.datapoints.points,m=f.c2p(e),g=h.c2p(t),v=l/f.scale,_=l/h.scale;if(r=u.datapoints.pointsize,f.options.inverseTransform&&(v=Number.MAX_VALUE),h.options.inverseTransform&&(_=Number.MAX_VALUE),u.lines.show||u.points.show)for(o=0;o<p.length;o+=r){var b=p[o],y=p[o+1];if(null!=b&&!(b-m>v||b-m<-v||y-g>_||y-g<-_)){var w=Math.abs(f.p2c(b)-e),x=Math.abs(h.p2c(y)-t),k=w*w+x*x;k<c&&(c=k,d=[i,o/r])}}if(u.bars.show&&!d){var C,S;switch(u.bars.align){case"left":C=0;break;case"right":C=-u.bars.barWidth;break;default:C=-u.bars.barWidth/2}for(S=C+u.bars.barWidth,o=0;o<p.length;o+=r){b=p[o],y=p[o+1];var T=p[o+2];null!=b&&(a[i].bars.horizontal?m<=Math.max(T,b)&&m>=Math.min(T,b)&&g>=y+C&&g<=y+S:m>=b+C&&m<=b+S&&g>=Math.min(T,y)&&g<=Math.max(T,y))&&(d=[i,o/r])}}}return d?(i=d[0],o=d[1],r=a[i].datapoints.pointsize,{datapoint:a[i].datapoints.points.slice(o*r,(o+1)*r),dataIndex:o,series:a[i],seriesIndex:i}):null}(r,l,i);if(u&&(u.pageX=parseInt(u.series.xaxis.p2c(u.datapoint[0])+o.left+m.left,10),u.pageY=parseInt(u.series.yaxis.p2c(u.datapoint[1])+o.top+m.top,10)),s.grid.autoHighlight){for(var f=0;f<L.length;++f){var h=L[f];h.auto!=e||u&&h.series==u.series&&h.point[0]==u.datapoint[0]&&h.point[1]==u.datapoint[1]||B(h.series,h.point)}u&&R(u.series,u.datapoint,e)}t.trigger(e,[c,u])}function W(){var e=s.interaction.redrawOverlayInterval;-1!=e?z||(z=setTimeout(Q,e)):Q()}function Q(){var e,t;for(z=null,f.save(),c.clear(),f.translate(m.left,m.top),e=0;e<L.length;++e)(t=L[e]).series.bars.show?U(t.series,t.point):H(t.series,t.point);f.restore(),y(_.drawOverlay,[f])}function R(e,t,n){if("number"==typeof e&&(e=a[e]),"number"==typeof t){var i=e.datapoints.pointsize;t=e.datapoints.points.slice(i*t,i*(t+1))}var o=V(e,t);-1==o?(L.push({series:e,point:t,auto:n}),W()):n||(L[o].auto=!1)}function B(e,t){if(null==e&&null==t)return L=[],void W();if("number"==typeof e&&(e=a[e]),"number"==typeof t){var n=e.datapoints.pointsize;t=e.datapoints.points.slice(n*t,n*(t+1))}var i=V(e,t);-1!=i&&(L.splice(i,1),W())}function V(e,t){for(var n=0;n<L.length;++n){var i=L[n];if(i.series==e&&i.point[0]==t[0]&&i.point[1]==t[1])return n}return-1}function H(t,n){var i=n[0],o=n[1],r=t.xaxis,a=t.yaxis,s="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString();if(!(i<r.min||i>r.max||o<a.min||o>a.max)){var l=t.points.radius+t.points.lineWidth/2;f.lineWidth=l,f.strokeStyle=s;var c=1.5*l;i=r.p2c(i),o=a.p2c(o),f.beginPath(),"circle"==t.points.symbol?f.arc(i,o,c,0,2*Math.PI,!1):t.points.symbol(f,i,o,c,!1),f.closePath(),f.stroke()}}function U(t,n){var i,o="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString(),r=o;switch(t.bars.align){case"left":i=0;break;case"right":i=-t.bars.barWidth;break;default:i=-t.bars.barWidth/2}f.lineWidth=t.bars.lineWidth,f.strokeStyle=o,O(n[0],n[1],n[2]||0,i,i+t.bars.barWidth,(function(){return r}),t.xaxis,t.yaxis,f,t.bars.horizontal,t.bars.lineWidth)}function Y(t,n,i,o){if("string"==typeof t)return t;for(var r=u.createLinearGradient(0,i,0,n),a=0,s=t.colors.length;a<s;++a){var l=t.colors[a];if("string"!=typeof l){var c=e.color.parse(o);null!=l.brightness&&(c=c.scale("rgb",l.brightness)),null!=l.opacity&&(c.a*=l.opacity),l=c.toString()}r.addColorStop(a/(s-1),l)}return r}}e.fn.detach||(e.fn.detach=function(){return this.each((function(){this.parentNode&&this.parentNode.removeChild(this)}))}),n.prototype.resize=function(e,t){if(e<=0||t<=0)throw new Error("Invalid dimensions for plot, width = "+e+", height = "+t);var n=this.element,i=this.context,o=this.pixelRatio;this.width!=e&&(n.width=e*o,n.style.width=e+"px",this.width=e),this.height!=t&&(n.height=t*o,n.style.height=t+"px",this.height=t),i.restore(),i.save(),i.scale(o,o)},n.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},n.prototype.render=function(){var e=this._textCache;for(var n in e)if(t.call(e,n)){var i=this.getTextLayer(n),o=e[n];for(var r in i.hide(),o)if(t.call(o,r)){var a=o[r];for(var s in a)if(t.call(a,s)){for(var l,c=a[s].positions,d=0;l=c[d];d++)l.active?l.rendered||(i.append(l.element),l.rendered=!0):(c.splice(d--,1),l.rendered&&l.element.detach());0==c.length&&delete a[s]}}i.show()}},n.prototype.getTextLayer=function(t){var n=this.text[t];return null==n&&(null==this.textContainer&&(this.textContainer=e("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),n=this.text[t]=e("<div></div>").addClass(t).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),n},n.prototype.getTextInfo=function(t,n,i,o,r){var a,s,l,c;if(n=""+n,a="object"==typeof i?i.style+" "+i.variant+" "+i.weight+" "+i.size+"px/"+i.lineHeight+"px "+i.family:i,null==(s=this._textCache[t])&&(s=this._textCache[t]={}),null==(l=s[a])&&(l=s[a]={}),null==(c=l[n])){var d=e("<div></div>").html(n).css({position:"absolute","max-width":r,top:-9999}).appendTo(this.getTextLayer(t));"object"==typeof i?d.css({font:a,color:i.color}):"string"==typeof i&&d.addClass(i),c=l[n]={width:d.outerWidth(!0),height:d.outerHeight(!0),element:d,positions:[]},d.detach()}return c},n.prototype.addText=function(e,t,n,i,o,r,a,s,l){var c=this.getTextInfo(e,i,o,r,a),d=c.positions;"center"==s?t-=c.width/2:"right"==s&&(t-=c.width),"middle"==l?n-=c.height/2:"bottom"==l&&(n-=c.height);for(var u,f=0;u=d[f];f++)if(u.x==t&&u.y==n)return void(u.active=!0);u={active:!0,rendered:!1,element:d.length?c.element.clone():c.element,x:t,y:n},d.push(u),u.element.css({top:Math.round(n),left:Math.round(t),"text-align":s})},n.prototype.removeText=function(e,n,i,o,r,a){if(null==o){var s=this._textCache[e];if(null!=s)for(var l in s)if(t.call(s,l)){var c=s[l];for(var d in c)if(t.call(c,d))for(var u=c[d].positions,f=0;h=u[f];f++)h.active=!1}}else{var h;for(u=this.getTextInfo(e,o,r,a).positions,f=0;h=u[f];f++)h.x==n&&h.y==i&&(h.active=!1)}},e.plot=function(t,n,o){return new i(e(t),n,o,e.plot.plugins)},e.plot.version="0.8.3",e.plot.plugins=[],e.fn.plot=function(t,n){return this.each((function(){e.plot(this,t,n)}))}}(jQuery)},59868:()=>{!function(e){function t(e,t){return t*Math.floor(e/t)}function n(e,t,n,i){if("function"==typeof e.strftime)return e.strftime(t);var o,r=function(e,t){return t=""+(null==t?"0":t),1==(e=""+e).length?t+e:e},a=[],s=!1,l=e.getHours(),c=l<12;null==n&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==i&&(i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),o=l>12?l-12:0==l?12:l;for(var d=0;d<t.length;++d){var u=t.charAt(d);if(s){switch(u){case"a":u=""+i[e.getDay()];break;case"b":u=""+n[e.getMonth()];break;case"d":u=r(e.getDate());break;case"e":u=r(e.getDate()," ");break;case"h":case"H":u=r(l);break;case"I":u=r(o);break;case"l":u=r(o," ");break;case"m":u=r(e.getMonth()+1);break;case"M":u=r(e.getMinutes());break;case"q":u=""+(Math.floor(e.getMonth()/3)+1);break;case"S":u=r(e.getSeconds());break;case"y":u=r(e.getFullYear()%100);break;case"Y":u=""+e.getFullYear();break;case"p":u=c?"am":"pm";break;case"P":u=c?"AM":"PM";break;case"w":u=""+e.getDay()}a.push(u),s=!1}else"%"==u?s=!0:a.push(u)}return a.join("")}function i(e){function t(e,t,n,i){e[t]=function(){return n[i].apply(n,arguments)}}var n={date:e};null!=e.strftime&&t(n,"strftime",e,"strftime"),t(n,"getTime",e,"getTime"),t(n,"setTime",e,"setTime");for(var i=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],o=0;o<i.length;o++)t(n,"get"+i[o],e,"getUTC"+i[o]),t(n,"set"+i[o],e,"setUTC"+i[o]);return n}function o(e,t){if("browser"==t.timezone)return new Date(e);if(t.timezone&&"utc"!=t.timezone){if("undefined"!=typeof timezoneJS&&void 0!==timezoneJS.Date){var n=new timezoneJS.Date;return n.setTimezone(t.timezone),n.setTime(e),n}return i(new Date(e))}return i(new Date(e))}var r={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},a=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],s=a.concat([[3,"month"],[6,"month"],[1,"year"]]),l=a.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);e.plot.plugins.push({init:function(i){i.hooks.processOptions.push((function(i,a){e.each(i.getAxes(),(function(e,i){var a=i.options;"time"==a.mode&&(i.tickGenerator=function(e){var n=[],i=o(e.min,a),c=0,d=a.tickSize&&"quarter"===a.tickSize[1]||a.minTickSize&&"quarter"===a.minTickSize[1]?l:s;null!=a.minTickSize&&(c="number"==typeof a.tickSize?a.tickSize:a.minTickSize[0]*r[a.minTickSize[1]]);for(var u=0;u<d.length-1&&!(e.delta<(d[u][0]*r[d[u][1]]+d[u+1][0]*r[d[u+1][1]])/2&&d[u][0]*r[d[u][1]]>=c);++u);var f=d[u][0],h=d[u][1];if("year"==h){if(null!=a.minTickSize&&"year"==a.minTickSize[1])f=Math.floor(a.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(e.delta/r.year)/Math.LN10)),m=e.delta/r.year/p;f=m<1.5?1:m<3?2:m<7.5?5:10,f*=p}f<1&&(f=1)}e.tickSize=a.tickSize||[f,h];var g=e.tickSize[0];h=e.tickSize[1];var v=g*r[h];"second"==h?i.setSeconds(t(i.getSeconds(),g)):"minute"==h?i.setMinutes(t(i.getMinutes(),g)):"hour"==h?i.setHours(t(i.getHours(),g)):"month"==h?i.setMonth(t(i.getMonth(),g)):"quarter"==h?i.setMonth(3*t(i.getMonth()/3,g)):"year"==h&&i.setFullYear(t(i.getFullYear(),g)),i.setMilliseconds(0),v>=r.minute&&i.setSeconds(0),v>=r.hour&&i.setMinutes(0),v>=r.day&&i.setHours(0),v>=4*r.day&&i.setDate(1),v>=2*r.month&&i.setMonth(t(i.getMonth(),3)),v>=2*r.quarter&&i.setMonth(t(i.getMonth(),6)),v>=r.year&&i.setMonth(0);var _,b=0,y=Number.NaN;do{if(_=y,y=i.getTime(),n.push(y),"month"==h||"quarter"==h)if(g<1){i.setDate(1);var w=i.getTime();i.setMonth(i.getMonth()+("quarter"==h?3:1));var x=i.getTime();i.setTime(y+b*r.hour+(x-w)*g),b=i.getHours(),i.setHours(0)}else i.setMonth(i.getMonth()+g*("quarter"==h?3:1));else"year"==h?i.setFullYear(i.getFullYear()+g):i.setTime(y+v)}while(y<e.max&&y!=_);return n},i.tickFormatter=function(e,t){var i=o(e,t.options);if(null!=a.timeformat)return n(i,a.timeformat,a.monthNames,a.dayNames);var s=t.options.tickSize&&"quarter"==t.options.tickSize[1]||t.options.minTickSize&&"quarter"==t.options.minTickSize[1],l=t.tickSize[0]*r[t.tickSize[1]],c=t.max-t.min,d=a.twelveHourClock?" %p":"",u=a.twelveHourClock?"%I":"%H";return n(i,l<r.minute?u+":%M:%S"+d:l<r.day?c<2*r.day?u+":%M"+d:"%b %d "+u+":%M"+d:l<r.month?"%b %d":s&&l<r.quarter||!s&&l<r.year?c<r.year?"%b":"%b %Y":s&&l<r.year?c<r.year?"Q%q":"Q%q %Y":"%Y",a.monthNames,a.dayNames)})}))}))},options:{xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},name:"time",version:"1.0"}),e.plot.formatDate=n,e.plot.dateGenerator=o}(jQuery)},66182:(e,t,n)=>{e.exports=n(98069)},98069:(e,t,n)=>{var i=n(99560),o=n(17673),r=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(r)?e:i(e)}function l(e){var t=o.stringify(function(e){var t={},n={protocol:1,format:1};for(var i in e)n[i]||(t[i]=e[i]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var i="//www.gravatar.com/avatar/";t&&t.cdn?(i=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(i=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var o=l(t);return i+s(e)+o},profile_url:function(e,t,n){var i=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)o=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var o=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var r=l(t);return o+s(e)+"."+i+r}}},15303:(e,t,n)=>{e.exports=n(49457)},49402:e=>{!function(t){if("undefined"!=typeof window){var n=!0,i="",o=0,r="",a=null,s="",l=!1,c={resize:1,click:1},d=128,u=!0,f=1,h="bodyOffset",p=h,m=!0,g="",v={},_=32,b=null,y=!1,w=!1,x="[iFrameSizer]",k=x.length,C="",S={max:1,min:1,bodyScroll:1,documentElementScroll:1},T="child",j=window.parent,E="*",I=0,G=!1,M=null,A=16,O=1,P="scroll",L=P,z=window,N=function(){re("onMessage function not defined")},q=function(){},D=function(){},F={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},W={},Q=!1;try{var R=Object.create({},{passive:{get:function(){Q=!0}}});window.addEventListener("test",ee,R),window.removeEventListener("test",ee,R)}catch(e){}var B,V,H,U,Y,$,J,X={bodyOffset:function(){return document.body.offsetHeight+ge("marginTop")+ge("marginBottom")},offset:function(){return X.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return F.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,_e(X))},min:function(){return Math.min.apply(null,_e(X))},grow:function(){return X.max()},lowestElement:function(){return Math.max(X.bodyOffset()||X.documentElementOffset(),ve("bottom",ye()))},taggedElement:function(){return be("bottom","data-iframe-height")}},K={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return F.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(K.bodyScroll(),K.documentElementScroll())},max:function(){return Math.max.apply(null,_e(K))},min:function(){return Math.min.apply(null,_e(K))},rightMostElement:function(){return ve("right",ye())},taggedElement:function(){return be("right","data-iframe-width")}},Z=(B=we,Y=null,$=0,J=function(){$=Date.now(),Y=null,U=B.apply(V,H),Y||(V=H=null)},function(){var e=Date.now();$||($=e);var t=A-(e-$);return V=this,H=arguments,t<=0||t>A?(Y&&(clearTimeout(Y),Y=null),$=e,U=B.apply(V,H),Y||(V=H=null)):Y||(Y=setTimeout(J,t)),U});te(window,"message",(function(t){var n={init:function(){g=t.data,j=t.source,ae(),u=!1,setTimeout((function(){m=!1}),d)},reset:function(){m?oe("Page reset ignored by init"):(oe("Page size reset by host page"),Ce("resetPage"))},resize:function(){xe("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=o();oe("PageInfoFromParent called from parent: "+e),D(JSON.parse(e)),oe(" --")},message:function(){var e=o();oe("onMessage called from parent: "+e),N(JSON.parse(e)),oe(" --")}};function i(){return t.data.split("]")[1].split(":")[0]}function o(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var o=i();o in n?n[o]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||re("Unexpected message ("+t.data+")")}x===(""+t.data).substr(0,k)&&(!1===u?a():r()?n.init():oe('Ignored message of type "'+i()+'". Received before initialization.'))})),te(window,"readystatechange",je),je()}function ee(){}function te(e,t,n,i){e.addEventListener(t,n,!!Q&&(i||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ie(e){return x+"["+C+"] "+e}function oe(e){y&&"object"==typeof window.console&&console.log(ie(e))}function re(e){"object"==typeof window.console&&console.warn(ie(e))}function ae(){var e;!function(){function e(e){return"true"===e}var a=g.substr(k).split(":");C=a[0],o=t!==a[1]?Number(a[1]):o,l=t!==a[2]?e(a[2]):l,y=t!==a[3]?e(a[3]):y,_=t!==a[4]?Number(a[4]):_,n=t!==a[6]?e(a[6]):n,r=a[7],p=t!==a[8]?a[8]:p,i=a[9],s=a[10],I=t!==a[11]?Number(a[11]):I,v.enable=t!==a[12]&&e(a[12]),T=t!==a[13]?a[13]:T,L=t!==a[14]?a[14]:L,w=t!==a[15]?Boolean(a[15]):w}(),oe("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;oe("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(se,e),N="onMessage"in e?e.onMessage:N,q="onReady"in e?e.onReady:q,E="targetOrigin"in e?e.targetOrigin:E,p="heightCalculationMethod"in e?e.heightCalculationMethod:p,L="widthCalculationMethod"in e?e.widthCalculationMethod:L}function t(e,t){return"function"==typeof e&&(oe("Setup custom "+t+"CalcMethod"),F[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),p=t(p,"height"),L=t(L,"width"));oe("TargetOrigin for parent set to: "+E)}(),function(){t===r&&(r=o+"px");le("margin",function(e,t){-1!==t.indexOf("-")&&(re("Negative CSS value ignored for "+e),t="");return t}("margin",r))}(),le("background",i),le("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),fe(),he(),document.documentElement.style.height="",document.body.style.height="",oe('HTML & body height set to "auto"'),oe("Enable public methods"),z.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,pe()):!1===e&&!0===n&&(n=!1,de("remove"),null!==a&&a.disconnect(),clearInterval(b)),Te(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Te(0,0,"close")},getId:function(){return C},getPageInfo:function(e){"function"==typeof e?(D=e,Te(0,0,"pageInfo")):(D=function(){},Te(0,0,"pageInfoStop"))},moveToAnchor:function(e){v.findTarget(e)},reset:function(){Se("parentIFrame.reset")},scrollTo:function(e,t){Te(t,e,"scrollTo")},scrollToOffset:function(e,t){Te(t,e,"scrollToOffset")},sendMessage:function(e,t){Te(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){p=e,fe()},setWidthCalculationMethod:function(e){L=e,he()},setTargetOrigin:function(e){oe("Set targetOrigin: "+e),E=e},size:function(e,t){xe("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){if(!0!==w)return;function e(e){Te(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){oe("Add event listener: "+n),te(window.document,t,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}(),pe(),v=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),i=e();return{x:parseInt(n.left,10)+parseInt(i.x,10),y:parseInt(n.top,10)+parseInt(i.y,10)}}function i(e){function i(e){var t=n(e);oe("Moving to in page link (#"+o+") at x: "+t.x+" y: "+t.y),Te(t.y,t.x,"scrollToOffset")}var o=e.split("#")[1]||e,r=decodeURIComponent(o),a=document.getElementById(r)||document.getElementsByName(r)[0];t!==a?i(a):(oe("In page link (#"+o+") not found in iFrame, so sending to parent"),Te(0,0,"inPageLink","#"+o))}function o(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&i(t)}function r(){function e(e){function t(e){e.preventDefault(),i(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&te(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){te(window,"hashchange",o)}function s(){setTimeout(o,d)}function l(){Array.prototype.forEach&&document.querySelectorAll?(oe("Setting up location.hash handlers"),r(),a(),s()):re("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}v.enable?l():oe("In page linking not enabled");return{findTarget:i}}(),xe("init","Init message from host page"),q()}function se(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],re("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function le(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,oe("Body "+e+' set to "'+n+'"'))}function ce(e){var t={add:function(t){function n(){xe(e.eventName,e.eventType)}W[t]=n,te(window,t,n,{passive:!0})},remove:function(e){var t,n,i,o=W[e];delete W[e],t=window,n=e,i=o,t.removeEventListener(n,i,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),oe(ne(e.method)+" event listener: "+e.eventType)}function de(e){ce({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ce({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ce({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ce({method:e,eventType:"Input",eventName:"input"}),ce({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ce({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ce({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ce({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ce({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ce({method:e,eventType:"Touch Start",eventName:"touchstart"}),ce({method:e,eventType:"Touch End",eventName:"touchend"}),ce({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ce({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ce({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ce({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===T&&ce({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ue(e,t,n,i){return t!==e&&(e in n||(re(e+" is not a valid option for "+i+"CalculationMethod."),e=t),oe(i+' calculation method set to "'+e+'"')),e}function fe(){p=ue(p,h,X,"height")}function he(){L=ue(L,P,K,"width")}function pe(){var e;!0===n?(de("add"),e=0>_,window.MutationObserver||window.WebKitMutationObserver?e?me():a=function(){function e(e){function t(e){!1===e.complete&&(oe("Attach listeners to "+e.src),e.addEventListener("load",o,!1),e.addEventListener("error",r,!1),l.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){l.splice(l.indexOf(e),1)}function n(e){oe("Remove listeners from "+e.src),e.removeEventListener("load",o,!1),e.removeEventListener("error",r,!1),t(e)}function i(e,t,i){n(e.target),xe(t,i+": "+e.target.src)}function o(e){i(e,"imageLoad","Image loaded")}function r(e){i(e,"imageLoadFailed","Image load failed")}function a(t){xe("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function s(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return d=new c(a),oe("Create body MutationObserver"),d.observe(e,t),d}var l=[],c=window.MutationObserver||window.WebKitMutationObserver,d=s();return{disconnect:function(){"disconnect"in d&&(oe("Disconnect body MutationObserver"),d.disconnect(),l.forEach(n))}}}():(oe("MutationObserver not supported in this browser!"),me())):oe("Auto Resize disabled")}function me(){0!==_&&(oe("setInterval: "+_+"ms"),b=setInterval((function(){xe("interval","setInterval: "+_)}),Math.abs(_)))}function ge(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function ve(e,t){for(var n=t.length,i=0,o=0,r=ne(e),a=Date.now(),s=0;s<n;s++)(i=t[s].getBoundingClientRect()[e]+ge("margin"+r,t[s]))>o&&(o=i);return a=Date.now()-a,oe("Parsed "+n+" HTML elements"),oe("Element position calculated in "+a+"ms"),function(e){e>A/2&&oe("Event throttle increased to "+(A=2*e)+"ms")}(a),o}function _e(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function be(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(re("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ve(e,n)}function ye(){return document.querySelectorAll("body *")}function we(e,n,i,o){var r,a;!function(){function e(e,t){return!(Math.abs(e-t)<=I)}return r=t!==i?i:X[p](),a=t!==o?o:K[L](),e(f,r)||l&&e(O,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(p in S||l&&L in S)?Se(n):e in{interval:1}||oe("No change in size detected"):(ke(),Te(f=r,O=a,e))}function xe(e,t,n,i){G&&e in c?oe("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||oe("Trigger event: "+t),"init"===e?we(e,t,n,i):Z(e,t,n,i))}function ke(){G||(G=!0,oe("Trigger event lock on")),clearTimeout(M),M=setTimeout((function(){G=!1,oe("Trigger event lock off"),oe("--")}),d)}function Ce(e){f=X[p](),O=K[L](),Te(f,O,e)}function Se(e){var t=p;p=h,oe("Reset trigger event: "+e),ke(),Ce("reset"),p=t}function Te(e,n,i,o,r){var a;t===r?r=E:oe("Message targetOrigin: "+r),oe("Sending message to host page ("+(a=C+":"+e+":"+n+":"+i+(t!==o?":"+o:""))+")"),j.postMessage(x+a,r)}function je(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},46702:(e,t)=>{var n,i,o;!function(r){if("undefined"!=typeof window){var a,s=0,l=!1,c=!1,d="message".length,u="[iFrameSizer]",f=u.length,h=null,p=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},v=null,_={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){j("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){W(n,e)})).end()}):T("","Unable to bind to jQuery, it is not fully loaded.")),i=[],(o="function"==typeof(n=H)?n.apply(t,i):n)===r||(e.exports=o),window.iFrameResize=window.iFrameResize||H()}function y(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function k(e){return u+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function C(e){return g[e]?g[e].log:l}function S(e,t){E("log",e,t,C(e))}function T(e,t){E("info",e,t,C(e))}function j(e,t){E("warn",e,t,!0)}function E(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](k(t),n)}function I(e){function t(){o("Height"),o("Width"),q((function(){N(k),P(C),m("onResized",k)}),k,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function o(e){var t=Number(g[C]["max"+e]),n=Number(g[C]["min"+e]),i=e.toLowerCase(),o=Number(k[i]);S(C,"Checking "+i+" is in range "+n+"-"+t),o<n&&(o=n,S(C,"Set "+i+" to min value")),o>t&&(o=t,S(C,"Set "+i+" to max value")),k[i]=""+o}function r(e){return y.substr(y.indexOf(":")+d+e)}function a(e,t){var n,i,o;n=function(){var n,i;D("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=k.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},i=32,b[o=t]||(b[o]=setTimeout((function(){b[o]=null,n()}),i))}function s(e){var t=e.getBoundingClientRect();return O(C),{x:Math.floor(Number(t.left)+Number(h.x)),y:Math.floor(Number(t.top)+Number(h.y))}}function l(e){var t=e?s(k.iframe):{x:0,y:0},n={x:Number(k.width)+t.x,y:Number(k.height)+t.y};S(C,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):j(C,"Unable to scroll to requested position, window.parentIFrame not found"):(h=n,c(),S(C,"--"))}function c(){!1!==m("onScroll",h)?P(C):L()}function p(e){var t={};if(0===Number(k.width)&&0===Number(k.height)){var n=r(9).split(":");t={x:n[1],y:n[0]}}else t={x:k.width,y:k.height};m(e,{iframe:k.iframe,screenX:Number(t.x),screenY:Number(t.y),type:k.type})}function m(e,t){return G(C,e,t)}var v,_,y=e.data,k={},C=null;"[iFrameResizerChild]Ready"===y?function(){for(var e in g)D("iFrame requested init",F(e),g[e].iframe,e)}():u===(""+y).substr(0,f)&&y.substr(f).split(":")[0]in g?(k=function(){var e=y.substr(f).split(":"),t=e[1]?parseInt(e[1],10):0,o=g[e[0]]&&g[e[0]].iframe,r=getComputedStyle(o);return{iframe:o,id:e[0],height:t+n(r)+i(r),width:e[2],type:e[3]}}(),C=k.id,g[C]&&(g[C].loaded=!0),(_=k.type in{true:1,false:1,undefined:1})&&S(C,"Ignoring init message from meta parent page"),!_&&function(e){var t=!0;return g[e]||(t=!1,j(k.type+" No settings for "+e+". Message was: "+y)),t}(C)&&(S(C,"Received: "+y),v=!0,null===k.iframe&&(j(C,"IFrame ("+k.id+") not found"),v=!1),v&&function(){var t,n=e.origin,i=g[C]&&g[C].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for(S(C,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=g[C]&&g[C].remoteHost,S(C,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+k.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(g[C]&&g[C].firstRun&&g[C]&&(g[C].firstRun=!1),k.type){case"close":A(k.iframe);break;case"message":d=r(6),S(C,"onMessage passed: {iframe: "+k.iframe.id+", message: "+d+"}"),m("onMessage",{iframe:k.iframe,message:JSON.parse(d)}),S(C,"--");break;case"mouseenter":p("onMouseEnter");break;case"mouseleave":p("onMouseLeave");break;case"autoResize":g[C].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":a(g[C]&&g[C].iframe,C),function(){function e(e,i){function o(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){S(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",x)}var n=C;e("Add ",w),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[C]&&g[C].stopPageInfo&&(g[C].stopPageInfo(),delete g[C].stopPageInfo);break;case"inPageLink":n=r(9).split("#")[1]||"",i=decodeURIComponent(n),(o=document.getElementById(i)||document.getElementsByName(i)[0])?(e=s(o),S(C,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),h={x:e.x,y:e.y},c(),S(C,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):S(C,"In page link #"+n+" not found and window.parentIFrame not found"):S(C,"In page link #"+n+" not found");break;case"reset":z(k);break;case"init":t(),m("onInit",k.iframe);break;default:0===Number(k.width)&&0===Number(k.height)?j("Unsupported message received ("+k.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e,n,i,o,d}())):T(C,"Ignored: "+y)}function G(e,t,n){var i=null,o=null;if(g[e]){if("function"!=typeof(i=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=i(n)}return o}function M(e){var t=e.id;delete g[t]}function A(e){var t=e.id;if(!1!==G(t,"onClose",t)){S(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){j(e)}G(t,"onClosed",t),S(t,"--"),M(e)}else S(t,"Close iframe cancelled by onClose event")}function O(e){null===h&&S(e,"Get page position: "+(h={x:window.pageXOffset!==r?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==r?window.pageYOffset:document.documentElement.scrollTop}).x+","+h.y)}function P(e){null!==h&&(window.scrollTo(h.x,h.y),S(e,"Set page position: "+h.x+","+h.y),L())}function L(){h=null}function z(e){S(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),q((function(){N(e),D("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function t(t){c||"0"!==e[t]||(c=!0,S(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}function n(e){return null!==e.offsetParent}g[e]&&n(g[e].iframe)&&(t("height")||t("width"))&&D("Visibility change","resize",g[e].iframe,e)}Object.keys(g).forEach((function(t){e(t)}))}function t(t){S("window","Mutation observed: "+t[0].target+" "+t[0].type),Q(e,16)}function n(){var e=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new i(t).observe(e,n)}var i=y();i&&n()}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",S(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):S("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;g[i]&&(g[i].sizeHeight&&n("height"),g[i].sizeWidth&&n("width"))}function q(e,t,n){n!==t.type&&p&&!window.jasmine?(S(t.id,"Requesting animation frame"),p(e)):e()}function D(e,t,n,i,o){var r,a=!1;i=i||n.id,g[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(r=g[i]&&g[i].targetOrigin,S(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(u+t,r)):j(i,"["+e+"] IFrame("+i+") not found"),o&&g[i]&&g[i].warningTimeout&&(g[i].msgTimeout=setTimeout((function(){!g[i]||g[i].loaded||a||(a=!0,j(i,"IFrame has not responded within "+g[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),g[i].warningTimeout)))}function F(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod+":"+g[e].mouseEvents}function W(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],j(i,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i=function(n){var i;return""===n&&(e.id=(i=t&&t.id||_.id+s++,null!==document.getElementById(i)&&(i+=s++),n=i),l=(t||{}).log,S(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);i in g&&"iFrameResizer"in e?j(i,"Ignored iFrame, already setup."):(!function(t){var o;t=t||{},g[i]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in _)Object.prototype.hasOwnProperty.call(_,t)&&(g[i][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:_[t])}(t),g[i]&&(g[i].targetOrigin=!0===g[i].checkOrigin?""===(o=g[i].remoteHost)||null!==o.match(/^(about:blank|javascript:|file:\/\/)/)?"*":o:"*")}(t),function(){switch(S(i,"IFrame scrolling "+(g[i]&&g[i].scrolling?"enabled":"disabled")+" for "+i),e.style.overflow=!1===(g[i]&&g[i].scrolling)?"hidden":"auto",g[i]&&g[i].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[i]?g[i].scrolling:"no"}}(),function(){function t(t){var n=g[i][t];1/0!==n&&0!==n&&(e.style[t]="number"==typeof n?n+"px":n,S(i,"Set "+t+" = "+e.style[t]))}function n(e){if(g[i]["min"+e]>g[i]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[i]&&g[i].bodyMargin)&&"0"!==(g[i]&&g[i].bodyMargin)||(g[i].bodyMarginV1=g[i].bodyMargin,g[i].bodyMargin=g[i].bodyMargin+"px"),function(t){var n=y();n&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&A(e)}))}))})).observe(e.parentNode,{childList:!0})}(n),w(e,"load",(function(){var n,o;D("iFrame.onload",t,e,r,!0),n=g[i]&&g[i].firstRun,o=g[i]&&g[i].heightCalculationMethod in m,!n&&o&&z({iframe:e,height:0,width:0,type:"init"})})),D("init",t,e,r,!0)}(F(i)),g[i]&&(g[i].iframe.iFrameResizer={close:A.bind(null,g[i].iframe),removeListeners:M.bind(null,g[i].iframe),resize:D.bind(null,"Window resize","resize",g[i].iframe),moveToAnchor:function(e){D("Move to anchor","moveToAnchor:"+e,g[i].iframe,i)},sendMessage:function(e){D("Send Message","message:"+(e=JSON.stringify(e)),g[i].iframe,i)}}))}function Q(e,t){null===v&&(v=setTimeout((function(){v=null,e()}),t))}function R(){"hidden"!==document.visibilityState&&(S("document","Trigger event: Visiblity change"),Q((function(){B("Tab Visable","resize")}),16))}function B(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&D(e,t,g[n].iframe,n)}))}function V(){w(window,"message",I),w(window,"resize",(function(){var e;S("window","Trigger event: "+(e="resize")),Q((function(){B("Window "+e,"resize")}),16)})),w(document,"visibilitychange",R),w(document,"-webkit-visibilitychange",R)}function H(){function e(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),W(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!p;e+=1)p=window[t[e]+"RequestAnimationFrame"];p?p=p.bind(window):S("setup","RequestAnimationFrame not supported")}(),V(),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&j("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(r,n));break;case"object":e(n,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return t}}}()},49457:(e,t,n)=>{var i=n(46702);t.iframeResize=i,n(49402)},57729:(e,t,n)=>{var i,o,r;o=[n(19567)],i=function(e){var t,n,i,o,r,a,s="Close",l="BeforeClose",c="AfterClose",d="BeforeAppend",u="MarkupParse",f="Open",h="Change",p="mfp",m="."+p,g="mfp-ready",v="mfp-removing",_="mfp-prevent-close",b=function(){},y=!!window.jQuery,w=e(window),x=function(e,n){t.ev.on(p+e+m,n)},k=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},C=function(n,i){t.ev.triggerHandler(p+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},S=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},T=function(){e.magnificPopup.instance||((t=new b).init(),e.magnificPopup.instance=t)},j=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=j(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if((a=s[o]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=k("bg").on("click"+m,(function(){t.close()})),t.wrap=k("wrap").attr("tabindex",-1).on("click"+m,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}C("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(u,(function(e,t,n,i){n.close_replaceWith=S(i.type)})),r+=" mfp-close-btn-in"):t.wrap.append(S())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:w.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+m,(function(e){27===e.keyCode&&t.close()})),w.on("resize"+m,(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var d=t.wH=w.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(d)){var p=t._getScrollbarSize();p&&(h.marginRight=p)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),C("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(g),t._setFocus()):t.bgOverlay.addClass(g),i.on("focusin"+m,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(d),C(f),n}t.updateItemHTML()},close:function(){t.isOpen&&(C(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(v),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){C(s);var n=v+" "+g+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+m+" focusin"+m),t.ev.off(m),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,C(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||w.height();t.fixedContentPos||t.wrap.css("height",t.wH),C("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(C("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;C("FirstMarkupParse",r),t.currTemplate[i]=!r||e(r)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,C(h,n),o=n.type,t.container.prepend(t.contentContainer),C("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(S()):t.content=e:t.content="",C(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,C("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(w.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};C("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(_)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||w.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),C(u,[t,n,i]),e.each(n,(function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var r=t.find(m+"-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==i[0]&&r.replaceWith(i):"img"===a?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(m+"-"+n).html(i)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,n){return T(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){T();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=y?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),y?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var E,I,G,M="inline",A=function(){G&&(I.after(G.addClass(E)).detach(),G=null)};e.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(M),x(s+"."+M,(function(){A()}))},getInline:function(n,i){if(A(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(I||(E=o.hiddenClass,I=k(E),E="mfp-"+E),G=r.after(I).detach().removeClass(E)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var O,P="ajax",L=function(){O&&e(document.body).removeClass(O)},z=function(){L(),t.req&&t.req.abort()};e.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(P),O=t.st.ajax.cursor,x(s+"."+P,z),x("BeforeChange."+P,z)},getAjax:function(n){O&&e(document.body).addClass(O),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};C("ParseAjax",a),t.appendContent(e(a.data),P),n.finished=!0,L(),t._setFocus(),setTimeout((function(){t.wrap.addClass(g)}),16),t.updateStatus("ready"),C("AjaxContentAdded")},error:function(){L(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var N,q=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),x(f+i,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),x(s+i,(function(){n.cursor&&e(document.body).removeClass(n.cursor),w.off("resize"+m)})),x("Resize"+i,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,N&&clearInterval(N),e.isCheckingImgSize=!1,C("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){N&&clearInterval(N),N=setInterval((function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(N),3==++n?o(10):40===n?o(50):100===n&&o(500))}),r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,C("ImageLoadComplete")):++o<200?setTimeout(r,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:q(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(N&&clearInterval(N),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var D,F=function(){return void 0===D&&(D=void 0!==document.createElement("p").style.MozTransform),D};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};x("BuildControls"+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void d();(r=c(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout((function(){r.css(t._getOffset(!0)),o=setTimeout((function(){d(),setTimeout((function(){r.remove(),e=r=null,C("ZoomAnimationEnded")}),16)}),a)}),16)}})),x(l+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),x(s+i,(function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(y?i.innerHeight():i[0].offsetHeight)-a-r};return F()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var W="iframe",Q="//about:blank",R=function(e){if(t.currTemplate[W]){var n=t.currTemplate[W].find("iframe");n.length&&(e||(n[0].src=Q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(W,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(W),x("BeforeChange",(function(e,t,n){t!==n&&(t===W?R():n===W&&R(!0))})),x(s+"."+W,(function(){R()}))},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,(function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}));var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var B=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},V=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;r+=" mfp-gallery",x(f+o,(function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),i.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),x("UpdateStatus"+o,(function(e,n){n.text&&(n.text=V(n.text,t.currItem.index,t.items.length))})),x(u+o,(function(e,i,o,r){var a=t.items.length;o.counter=a>1?V(n.tCounter,r.index,a):""})),x("BuildControls"+o,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(_),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(_);o.click((function(){t.prev()})),r.click((function(){t.next()})),t.container.append(o.add(r))}})),x(h+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),x(s+o,(function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=B(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=B(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=B(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),C("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,C("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}});var H="retina";e.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(x("ImageHasSize."+H,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),x("ElementParse."+H,(function(t,i){i.src=e.replaceSrc(i,n)})))}}}}),T()},void 0===(r="function"==typeof i?i.apply(t,o):i)||(e.exports=r)},62587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,o){n=n||"&",i=i||"=";var r={};if("string"!=typeof e||0===e.length)return r;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var d,u,f,h,p=e[c].replace(a,"%20"),m=p.indexOf(i);m>=0?(d=p.substr(0,m),u=p.substr(m+1)):(d=p,u=""),f=decodeURIComponent(d),h=decodeURIComponent(u),t(r,f)?Array.isArray(r[f])?r[f].push(h):r[f]=[r[f],h]:r[f]=h}return r}},12361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,o){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var r=encodeURIComponent(t(o))+i;return Array.isArray(e[o])?e[o].map((function(e){return r+encodeURIComponent(t(e))})).join(n):r+encodeURIComponent(t(e[o]))})).join(n):o?encodeURIComponent(t(o))+i+encodeURIComponent(t(e)):""}},17673:(e,t,n)=>{"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},35666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var o=t&&t.prototype instanceof g?t:g,r=Object.create(o.prototype),a=new E(i||[]);return r._invoke=function(e,t,n){var i=u;return function(o,r){if(i===h)throw new Error("Generator is already running");if(i===p){if("throw"===o)throw r;return G()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var l=d(e,t,n);if("normal"===l.type){if(i=n.done?p:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),r}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",f="suspendedYield",h="executing",p="completed",m={};function g(){}function v(){}function _(){}var b={};b[r]=function(){return this};var y=Object.getPrototypeOf,w=y&&y(y(I([])));w&&w!==n&&i.call(w,r)&&(b=w);var x=_.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,r,a,s){var l=d(e[o],e,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,i){function r(){return new t((function(t,o){n(e,i,t,o)}))}return o=o?o.then(r,r):r()}}function S(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var r=o.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(e){if(e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:G}}function G(){return{value:t,done:!0}}return v.prototype=x.constructor=_,_.constructor=v,v.displayName=l(_,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(C.prototype),C.prototype[a]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var a=new C(c(t,n,i,o),r);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(x),l(x,s,"Generator"),x[r]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(i,o){return s.type="throw",s.arg=e,n.next=i,o&&(n.method="next",n.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:I(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},19567:e=>{"use strict";e.exports=window.jQuery}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{GiveConfirmModal:()=>v,GiveErrorAlert:()=>h,GiveFormModal:()=>_,GiveModal:()=>f,GiveNoticeAlert:()=>m,GiveSuccessAlert:()=>g,GiveWarningAlert:()=>p});n(90858),n(32196),n(32164),n(59868),n(65962),n(28345),n(57729),n(69571);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}function a(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var u,f=function(){function e(t){if(l(this,e),e===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:"",cancelBtn:""},modalContent:{}},t),this.config.mainClass="".concat(this.config.mainClass?this.config.mainClass:""," modal-fade-slide").trim()}return d(e,[{key:"init",value:function(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}},{key:"getTemplate",value:function(){var e='<div class="give-hidden"></div>';return this.config.type.length&&(e='<div class="give-modal give-modal--zoom '.concat(this.config.classes.modalWrapper?"".concat(this.config.classes.modalWrapper).trim():"",'">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t').concat(this.config.modalContent.title?'<h2 class="give-modal__title">'.concat(this.config.modalContent.title,"</h2>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.desc?'<p class="give-modal__description">'.concat(this.config.modalContent.desc,"</p>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.body?this.config.modalContent.body:"",'\n\t\t\t\t</div>\n\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t').concat("form"===this.config.type?'<div class="spinner"></div>':"","\n\t\t\t\t\t").concat("form"===this.config.type&&"undefined"!==this.config.modalContent.link?'<a class="give-modal--additional-link" href="'.concat(this.config.modalContent.link,'" target="').concat("undefined"!==this.config.modalContent.link_self&&this.config.modalContent.link_self?"_self":"_blank",'">').concat(this.config.modalContent.link_text,"</a>"):"",'\n\n\t\t\t\t\t<button class="give-button give-popup-close-button').concat(this.config.classes.cancelBtn?" ".concat(this.config.classes.cancelBtn):" give-button--secondary",'">\n\t\t\t\t\t\t').concat(this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close"),"\n\t\t\t\t\t</button>\n\n\t\t\t\t\t").concat("confirm"!==this.config.type&&"form"!==this.config.type?"":'<button class="give-button give-button--primary give-popup-'.concat(this.config.type,'-button">\n\n\t\t\t\t\t\t').concat(this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm"),"\n\t\t\t\t\t</button>"),"\n\t\t\t\t</div>\n\n\t\t\t</div>")),e}},{key:"setupTemplate",value:function(){this.config.template=this.getTemplate()}},{key:"__setupClickEvent",value:function(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}},{key:"popupConfig",value:function(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config=Object.assign({removalDelay:300,fixedContentPos:!0,fixedBgPos:!0,alignTop:!0,showCloseBtn:!1,closeOnBgClick:!1,enableEscapeKey:!0,focus:".give-popup-close-button"},this.config))}},{key:"render",value:function(){if("magnificPopup"===this.config.externalPlugin)this.config.triggerSelector||jQuery.magnificPopup.open(this.config);return this}}],[{key:"__closePopup",value:function(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}},{key:"__ajaxModalHandle",value:function(e){var t=jQuery(e.target),n=t.attr("data-cache");if(e.preventDefault(),void 0!==n)return n=decodeURI(n),void new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:n},closeOnBgClick:!0}).render();jQuery.ajax({url:t.attr("href"),method:"GET",beforeSend:function(){new Give.modal.GiveSuccessAlert({modalContent:{desc:Give.fn.loader({},{show:null,loadingText:Give.fn.getGlobalVar("loader_translation").loading})},closeOnBgClick:!0}).render()},success:function(e){e.length&&t.attr("data-cache",encodeURI(e)),jQuery(".mfp-wrap").length&&new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:e},closeOnBgClick:!0}).render()}})}}]),e}(),h=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--error",i.init(),i}return d(n)}(f),p=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--warning",i.init(),i}return d(n)}(f),m=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--notice",i.init(),i}return d(n)}(f),g=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper+=" give-modal--success",i.init(),i}return d(n)}(f),v=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="confirm",i=t.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return d(n,null,[{key:"__confirmPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}]),n}(f),_=function(e){i(n,e);var t=r(n);function n(e){var i;return l(this,n),e.type="form",i=t.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return d(n,null,[{key:"__submitPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}]),n}(f);window.addDynamicEventListener(document,"click",".give-popup-close-button",f.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",v.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",_.__submitPopup,{}),window.addDynamicEventListener(document,"click",".give-ajax-modal",f.__ajaxModalHandle,{}),(u=jQuery).fn.repeatable_fields=function(e){var t={wrapper:".wrapper",container:".container",row:".row",add:".add",remove:".remove",confirm_before_remove_row:!1,confirm_before_remove_row_text:"",move:".move",template:".template",is_sortable:!0,before_add:null,after_add:o,before_remove:null,after_remove:null,sortable_options:null,row_count_placeholder:"{{row-count-placeholder}}"},n=u.extend({},t,e);function i(e,t){var i=e.parents(n.row).first();"function"==typeof n.before_remove&&n.before_remove(t,i),i.remove(),"function"==typeof n.after_remove&&n.after_remove(t)}function o(e,t){var i=u(e).attr("data-rf-row-count");i++,u("*",t).each((function(){u.each(this.attributes,(function(e,t){this.value=this.value.replace(n.row_count_placeholder,i-1)}))})),u(e).attr("data-rf-row-count",i)}!function e(t){u(n.wrapper,t).each((function(t,r){var a=this,s=u(a).children(n.container);u(s).children(n.template).hide().find(":input").each((function(){u(this).prop("disabled",!0)}));var l=u(s).children(n.row).filter((function(){return!u(this).hasClass(n.template.replace(".",""))})).length;if(u(s).attr("data-rf-row-count",l),u(a).on("click",n.add,(function(t){t.stopImmediatePropagation();var i=u(u(s).children(n.template).clone().removeClass(n.template.replace(".",""))[0].outerHTML);u(i).find(":input").each((function(){u(this).prop("disabled",!1)})),"function"==typeof n.before_add&&n.before_add(s);var r=u(i).show().appendTo(s);"function"==typeof n.after_add&&n.after_add(s,r,o),e(r)})),u(a).on("click",n.remove,(function(e){e.stopImmediatePropagation();var t=u(this);return n.confirm_before_remove_row&&n.confirm_before_remove_row_text||i(t,s),new v({modalWrapper:"give-modal--warning",modalContent:{desc:n.confirm_before_remove_row_text},successConfirm:function(){i(t,s)}}).render(),!1})),!0===n.is_sortable&&void 0!==u.ui&&void 0!==u.ui.sortable){var c=null!==n.sortable_options?n.sortable_options:{};c.handle=n.move,u(a).find(n.container).sortable(c)}}))}(this)};n(45099),n(10861);const b=window.wp.i18n,y={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,i,o;if(n=i=o="",t.length)switch(e){case"bad_minimum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==i&&(n=i+" "+Give.fn.formatCurrency(o,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},i="undefined"!=typeof commonL10n?commonL10n.dismiss:(0,b.__)("Dismiss this notice.","give");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(i,"</span></button>"):"","</p</div>")}}};var w=n(87757),x=n.n(w);const k={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");i.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(i),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}};function C(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}const S={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.Give.WINDOW_IS_LOADED?Give.form.fn.__sendBackToForm():window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){k.fn.showOverlay(e)},hideProcessingState:function(){k.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,i){if(!n.length)return!1;if("nonce"===(e=void 0===e?"data":e))n.find('input[name="give-form-hash"]').val(t);if(void 0!==i&&!i.length)return!1;if("attr"===e)n.attr(i,t);else n.data(i,t);return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,i){i=i instanceof jQuery?i:jQuery(i);var o=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:i.data("price-id"),amount:Give.fn.unFormatCurrency(i.val(),o)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),i=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),o=Give.fn.getCache("amount_"+i,e)?Give.fn.getCache("amount_"+i,e):-1;return t=void 0===t||t,n.length&&-1===o&&(t?(jQuery.each(n,(function(e,t){if(t.amount===i)return o=t.price_id,!1})),-1===o&&this.getMinimumAmount(e)<=i&&this.getMaximumAmount(e)>=i&&this.getMinimumAmount(e)<=i&&(o="custom")):o=jQuery('input[name="give-price-id"]',e).val()),o},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(i){if(!i.success)return n(i);var o=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",i.data.give_form_hash,e,""),o.length&&o.val(i.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[i.data]),t(i)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),i=e.data("price-id");void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i&&(n=Give.fn.getParameterByName("custom-amount")),t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var o=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),o)),"custom"!==i||n?t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,i]):t.find(".give-donation-amount .give-text-input").focus()},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),i=n.find("form.give-form"),o=n.hasClass("give-display-modal"),r=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");i.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),i.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=i.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):o||r?give_open_form_modal(n,i):a&&(i.find(".give-btn-reveal").hide(),i.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),i=this.getAmount(e),o=this.getPriceID(e,!0);return 0!==i&&(-1<i&&i>=t&&i<=n||-1!==o)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(T=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(e){C(r,i,o,a,s,"next",e)}function s(e){C(r,i,o,a,s,"throw",e)}a(void 0)}))}}(x().mark((function e(t){var n,i,o,r=arguments;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=r.length>1&&void 0!==r[1]?r[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return i=e.sent,e.next=9,i.text();case 9:return o=e.sent,e.abrupt("return",o.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return T.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.resetDonationButton(e),t&&this.addErrors(e,t)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),i=t.find(".card-cvc"),o=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),i.payment("formatCardCVC"),o.payment("formatCardExpiry"))}))}}}};var T;const j={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},E={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,i=n.innerHeight/2-126,o=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(e),"&text=").concat(encodeURIComponent(t)),"newwindow","width=560,height=253,top=".concat(i,",left=").concat(o))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,i=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(e)),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(i))}}};var I=n(50743),G=n.n(I),M={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)M[e[t]].init&&M[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var i={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(i={symbol:"",decimal:M.form.fn.getInfo("decimal_separator",n),thousand:M.form.fn.getInfo("thousands_separator",n),precision:M.form.fn.getInfo("number_decimals",n),currency:M.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(i,t)).precision=parseInt(t.precision),"INR"===t.currency){var o,r=G().formatNumber(e,{precision:i.precision,decimal:"."}),a=t.precision?".0":"",s="",l="",c="";(r=(r=G().unformat(r,".").toString()).toString()).indexOf(".")>0&&(a=r.substring(r.indexOf("."),r.length)),s=(r=Math.floor(r).toString()).substring(r.length-3),""!==(l=r.substring(0,r.length-3))&&(s=i.thousand+s),o=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,i.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,o)+(c.slice(o)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=G().formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(G().unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?M.cache["form_"+M.form.fn.getInfo("form-id",n)][e]=t:M.cache[e]=t},getCache:function(e,t){var n,i=M.cache["form_"+M.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==i?i[e]:"":M.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(i=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},i)).loadingAnimation?'<span class="is-active spinner"></span>':"",r=null!==i.loadingText?i.loadingText:M.fn.getGlobalVar("loader_translation").updating;return!1===i.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=o.length?"give-has-spinner":"",t=(t+=r.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((r+o).trim(),"</div></div>"),null===i.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var i=encodeURIComponent(t)+"=",o=n[1].split(/[&;]/g),r=o.length;r-- >0;)-1!==o[r].lastIndexOf(i,0)&&o.splice(r,1);return n[0]+(o.length>0?"?"+o.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};M.notice=y,M.form=S,M.donor=j,M.util=k,M.share=E;const A=M;var O=n(15303);n(96066),n(89953),n(4559),n(71018);function P(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}const L=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root=t,this.buttonText=this.root.textContent.trim(),this.iconPosition="before",this._buttonTextWithWrapper=this.root.querySelector(".give-button-text")?'<span class="give-button-text">'.concat(this.buttonText,"</span>"):this.buttonText;var n=this.root.querySelector(".dashicons");n&&(this.iconClassName=n.className)}var t,n,i;return t=e,n=[{key:"enable",value:function(){this.root.disabled=!1}},{key:"disable",value:function(){this.root.disabled=!0}},{key:"setBusyState",value:function(){this.root.innerHTML="".concat('<span class="dashicons dashicons-marker"></span>'," ").concat(this._buttonTextWithWrapper),this.disable()}},{key:"removeBusyState",value:function(){this.enable(),this.iconClassName&&this.updateIcon(this.iconClassName)}},{key:"updateIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",n='<span class="'.concat(e,'"></span>');this.root.innerHTML="after"===t?"".concat(this._buttonTextWithWrapper," ").concat(n):"".concat(n," ").concat(this._buttonTextWithWrapper),this.iconClassName=e,this.iconPosition=t}},{key:"updateButtonText",value:function(e){this.buttonText=e,this.iconClassName?this.updateIcon(this.iconClassName,this.iconPosition):this.root.textContent=e}}],n&&P(t.prototype,n),i&&P(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();var z=n(42152),N=n.n(z);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Q(this,n)}}function Q(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(r,e);var t,n,i,o=W(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).shortcode=t.root.dataset.giveShortcode,t.clipboard=new(N())(t.root,{text:function(e){return e.dataset.giveShortcode}}),t.reset=t.reset.bind(R(t)),t}return t=r,(n=[{key:"init",value:function(){this.registerEventHandlers()}},{key:"registerEventHandlers",value:function(){var e=this;this.clipboard.on("success",(function(){return e.handleSuccessClick()})),this.clipboard.on("error",(function(){return e.handleErrorClick()}))}},{key:"handleSuccessClick",value:function(e){this.updateIcon("dashicons dashicons-yes"),this.root.setAttribute("aria-label",give_vars.copied),this.root.addEventListener("mouseout",this.reset)}},{key:"handleErrorClick",value:function(e){this.updateIcon("dashicons dashicons-warning"),this.root.setAttribute("aria-label","Shortcode could not be copied.")}},{key:"reset",value:function(e){this.updateIcon("dashicons dashicons-admin-page"),this.root.setAttribute("aria-label",this.shortcode),this.root.removeEventListener("mouseout",this.reset)}}])&&D(t.prototype,n),i&&D(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(L);function H(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}var $=!1,J=n(66182);function X(){var e=jQuery(".give-settings-page"),t=jQuery(".give-nav-tab-wrapper"),n=e.width(),i=jQuery(".give-sub-nav-tab-wrapper"),o=jQuery("nav",i),r=jQuery(".give-nav-tab-wrapper > a:not(give-not-tab)"),a=[],s=[],l=0;if(600<jQuery(window).outerWidth()&&(l=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),r.removeClass("give-hidden"),new Promise((function(e,t){jQuery.each(r,(function(e,t){t=jQuery(t),(l+=parseInt(t.outerWidth()))<n?a.push(t):s.push(t)})),e(!0)})).then((function(e){if(s.length&&-1!==window.location.search.indexOf("&tab=")){var n={},r=function(){for(var e,t=[],n=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<n.length;i++)t[(e=n[i].split("="))[0]]=e[1];return t}();s=s.filter((function(e){var t=-1!==parseInt(e.attr("href").indexOf("&tab="+r.tab));return t&&(n=e),!t})),n.length&&(s.unshift(a.pop()),a.push(n))}new Promise((function(e,t){a.length&&jQuery.each(a,(function(e,t){(t=jQuery(t)).hasClass("give-hidden")&&t.removeClass("give-hidden")})),e(!0)})).then((function(e){s.length?(o.html(""),jQuery.each(s,(function(e,t){(t=jQuery(t)).hasClass("nav-tab-active")||t.addClass("give-hidden"),t.clone().removeClass().appendTo(o)})),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(i),i.show()):i.hide()}))}))}!function(e){var t=function(t,n){var i=(n=jQuery.extend({wrapper:!0,show:!1},n)).wrapper?e(".give-spinner-wrapper",t):{},o=e(".give-spinner",t);if(n.show)return i.length&&i.addClass("is-active"),void o.addClass("is-active");i.length&&i.removeClass("is-active"),o.removeClass("is-active")},n=function(e){var t=document.location.href,n=t.split("?");e=void 0===e?"":e.replace("give-","");if(n.length>=2){for(var i=n.shift(),o=n.join("?"),r=encodeURIComponent("give-message")+"=",a=o.split(/[&;]/g),s=a.length;s-- >0;)(-1!==a[s].lastIndexOf(r,0)||""!==e&&-1!==a[s].lastIndexOf("give-messages",0)&&a[s].match(e+"$"))&&a.splice(s,1);t=i+"?"+a.join("&"),window.history.pushState("",document.title,t)}return t},i=function(){var t,n=e(".give-select-chosen");n.hasClass("give-chosen-settings")?n.chosen({no_results_text:Give.fn.getGlobalVar("chosen_add_title_prefix")+" ",width:"30%"}).on("chosen:no_results",(function(t,n){e(n.chosen.container).on("keydown",(function(i){var o=n.chosen.get_search_text(),r=jQuery(n.chosen.form_field);13!==i.keyCode||r.find('option[value="'+o+'"]').length||"true"!==r.attr("data-allows-new-values")||(e(n.chosen.form_field).append('<option value="'+o+'" selected>'+o+"</option>").trigger("chosen:updated"),n.chosen.result_highlight=n.chosen.search_results.find("li.active-result").lasteturn,n.chosen.result_select(t))}))})):((t=n).on("chosen:ready",(function(){jQuery(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')})),t.chosen({inherit_select_classes:!0,placeholder_text_single:Give.fn.getGlobalVar("one_option"),placeholder_text_multiple:Give.fn.getGlobalVar("one_or_more_option")}),t.on("chosen:no_results",(function(){var e=jQuery(this).next(".chosen-container"),t=e.find("li.no-results"),n="",i=Give.fn.getGlobalVar("chosen");n=e.hasClass("give-select-chosen-ajax")&&t.length?i.ajax_search_msg.replace("{search_term}",'"'+jQuery("input",e).val()+'"'):i.no_results_msg.replace("{search_term}",'"'+jQuery("input",e).val()+'"'),t.html(n),jQuery(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",(function(e){var t=jQuery(this).val(),n=jQuery(this).closest(".give-select-chosen"),i=n.prev(),o=n.find('input[type="text"]'),r=(n.hasClass("variations"),e.which),a="give_form_search",s=this;if(n.prev().data("search-type")){if("no_ajax"===i.data("search-type"))return;a="give_"+i.data("search-type")+"_search"}t.length>0&&t.length<=3||!a.length||9===r||13===r||16===r||17===r||18===r||19===r||20===r||27===r||33===r||34===r||35===r||36===r||37===r||38===r||39===r||40===r||44===r||45===r||144===r||145===r||91===r||93===r||224===r||112<=r&&123>=r||(clearTimeout(Give.cache.chosenSearchTypingTimer),n.addClass("give-select-chosen-ajax"),Give.cache.chosenSearchTypingTimer=setTimeout((function(){jQuery.ajax({type:"POST",url:ajaxurl,data:{action:a,s:t,fields:jQuery(s).closest("form").serialize()},dataType:"json",beforeSend:function(){i.closest("ul.chosen-results").empty(),o.prop("disabled",!0)},success:function(e){n.removeClass("give-select-chosen-ajax"),jQuery("option:not(:selected)",i).remove(),e.length?(jQuery.each(e,(function(e,n){jQuery('option[value="'+n.id+'"]',i).length||(0===t.length?i.append('<option value="'.concat(n.id,'">').concat(n.name,"</option>")):i.prepend('<option value="'.concat(n.id,'">').concat(n.name,"</option>")))})),n.prev("select.give-select-chosen").trigger("chosen:updated")):n.prev("select.give-select-chosen").trigger("chosen:no_results"),o.prop("disabled",!1),o.val(t).focus()}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){o.prop("disabled",!1)}))}),342))})),jQuery(".give-select-chosen .chosen-search input").each((function(){var e=jQuery(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),t="";"form"===e?t=Give.fn.getGlobalVar("search_placeholder"):(e="search_placeholder_"+e,Give.fn.getGlobalVar(e)&&(t=Give.fn.getGlobalVar(e))),jQuery(this).attr("placeholder",t)}))}))),e(".chosen-container").each((function(){0===e(this).width()&&e(this).css("width","100%")})),e("#post").on("click",".give-thickbox",(function(){e(".give-select-chosen","#choose-give-form").css("width","100%")}))};function o(e,t){return e=G().unformat(e,Give.fn.getGlobalVar("decimal_separator")).toString(),e=!1!==(t="undefined"!==t&&t)?parseFloat(e).toFixed(t):parseFloat(e).toFixed(Give.fn.getGlobalVar("currency_decimals"))}var r={init:function(){this.deleteSingleDonation(),this.resendSingleDonationReceipt()},deleteSingleDonation:function(){new v({triggerSelector:".delete-single-donation",modalWrapper:"give-modal--warning",modalContent:{title:Give.fn.getGlobalVar("confirm_delete_donation"),desc:Give.fn.getGlobalVar("delete_payment")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})},resendSingleDonationReceipt:function(){new v({triggerSelector:".resend-single-donation-receipt",modalContent:{title:Give.fn.getGlobalVar("confirm_resend"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})}},a={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change((function(){var t=e(this),n={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"};return e.post(ajaxurl,n,(function(n){t.closest(".column-container").find("#give-order-address-state-wrap").removeClass("give-hidden"),t.closest(".column-container").find(".give-column").removeClass("column-full"),t.closest(".column-container").find(".give-column").addClass("column");var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),void 0!==Y(n.states_found)&&!0===n.states_found?(i.append(n.data),i.find("select").chosen()):(i.append('<input type="text" name="give-payment-address[0][state]" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!==Y(n.show_field)&&!1===n.show_field&&(t.closest(".column-container").find("#give-order-address-state-wrap").addClass("give-hidden"),t.closest(".column-container").find(".give-column").addClass("column-full"),t.closest(".column-container").find(".give-column").removeClass("column")))})),!1}))},add_note:function(){e("#give-add-payment-note").on("click",(function(t){function n(){e.ajax({type:"POST",data:a,url:ajaxurl,beforeSend:function(){o.prop("disabled",!0),i.prop("disabled",!0)},success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).always((function(){o.prop("disabled",!1),i.prop("disabled",!1)}))}t.preventDefault();var i=e(this),o=e("#give-payment-note"),r=e("#donation_note_type"),a={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:o.val(),type:r.val()};if(a.note)"donor"===a.type&&give_vars.email_notification.donor_note.status?new Give.modal.GiveConfirmModal({successConfirm:function(){n()},modalContent:{desc:give_vars.donor_note_confirm_msg}}).render():n();else{var s=o.css("border-color");o.css("border-color","red"),setTimeout((function(){o.css("border-color",s)}),500)}}))},remove_note:function(){e("body").on("click",".give-delete-payment-note",(function(t){t.preventDefault();var n=this;new v({modalContent:{title:Give.fn.getGlobalVar("confirm_deletion"),desc:Give.fn.getGlobalVar("delete_payment_note")},successConfirm:function(t){var i={action:"give_delete_payment_note",payment_id:e(n).data("payment-id"),note_id:e(n).data("note-id")};e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}}).render()}))},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-donor, .give-payment-new-donor-cancel",(function(t){t.preventDefault(),e(".donor-info").toggle(),e(".new-donor").toggle(),e(".new-donor").is(":visible")?e("#give-new-donor").val(1):e("#give-new-donor").val(0)}))},resend_receipt:function(){e("body").on("click","#give-resend-receipt",(function(t){var n=this;t.preventDefault(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(){window.location.assign(e(n).attr("href"))}}).render()}))},variable_price_list:function(){e("#give_payment_form_select").chosen().change((function(){var t,n=e(".give-donation-level");return!!(t=e(this).val())&&(!!n.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){(t=t.trim())?(n.html(t),e('select[name="give-variable-price"]').chosen().change()):n.html("")}}))})),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',(function(){var t=jQuery(this).data("prices"),n=e("#give-payment-total");""!==t&&e(this).val()in t&&(n.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout((function(){n.css("background-color","white")}),1e3))}))}},s={init:function(){this.toggle_gateways(),this.setting_change_country(),this.toggle_options(),this.main_setting_update_notice(),this.verify_settings(),this.saveButtonTriggered(),this.changeAlert(),this.detectSettingsChange(),this.sequentialDonationIDPreview()},toggle_gateways:function(){e(".gateways-checkbox").on("click",(function(){var t=e(this).prev(".gateways-radio"),n=(this.checked,e(".gateways-checkbox:checked"));1===n.length?(n.prev(".gateways-radio").attr("checked","checked"),this.checked?t.removeAttr("disabled"):t.attr("disabled","disabled")):this.checked?(t.removeAttr("disabled"),t.removeAttr("checked")):t.attr("disabled","disabled")}))},setting_change_country:function(){e('select[name="base_country"]').change((function(){var t=e(this),n={action:"give_get_states",country:t.val(),field_name:"base_state"};return e.post(ajaxurl,n,(function(i){t.closest("tr").next().show(),e("#base_state_chosen").remove(),void 0!==Y(i.states_found)&&1==i.states_found?(e(':input[name="base_state"]').replaceWith(i.data).addClass("give-select-chosen"),e(':input[name="base_state"]').chosen()):(void 0!==Y(i.show_field)&&0==i.show_field&&t.closest("tr").next().hide(),e(':input[name="base_state"]').replaceWith('<input type="text" name="'+n.field_name+'" value="'+i.default_state+'" class="give-edit-toggles medium-text"/>'))})),!1}))},toggle_options:function(){e('input[name="email_access"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),n=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e('input[name="enable_recaptcha"]').parents("tr").show(),"enabled"===n?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide(),e('input[name="enable_recaptcha"]').parents("tr").hide())})).change(),e('input[name="enable_recaptcha"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),n=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t&&"enabled"===n?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())})).change(),e('input[name="form_featured_img"]',".give-setting-tab-body-display").on("change",(function(){"enabled"===e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val()?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()})).change(),e('input[name="terms"]',".give-setting-tab-body-display").on("change",(function(){"enabled"===e('input[name="terms"]:checked',".give-setting-tab-body-display").val()?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())})).change(),e('input[name="admin_notices"]',".give-setting-tab-body-emails").on("change",(function(){"enabled"===e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val()?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())})).change(),e('input[name="sequential-ordering_status"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="sequential-ordering_status"]:checked',".give-setting-tab-body-general").val(),n=e(this).closest("table");"enabled"===t?e("input",n).not('input[name="sequential-ordering_status"]').parents("tr").show():e("input",n).not('input[name="sequential-ordering_status"]').parents("tr").hide()})).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout((function(){t.slideUp()}),5e3)},verify_settings:function(){var t=e("#success_page"),n=e("#failure_page");t.add(n).change((function(){if(t.val()===n.val()){var i='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+Give.fn.getGlobalVar("matched_success_failure_page")+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+Give.fn.getGlobalVar("dismiss_notice_text")+"</span></button> </div>",o=e("#setting-error-give-matched-success-failure-page");if(e(this).val(""),o.length)return!1;e("h1","#give-mainform").after(i),o=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",o).click((function(){o.remove()}))}})).change()},saveButtonTriggered:function(){e(".give-settings-setting-page").on("click",".give-save-button",(function(){e(window).unbind("beforeunload")}))},changeAlert:function(){e(window).bind("beforeunload",(function(e){var t=Give.fn.getGlobalVar("setting_not_save_message");if($)return(e||window.event).returnValue=t,t}))},detectSettingsChange:function(){var t=e(".give-settings-setting-page");if(t.length>0){var n=e("#give-mainform").serialize();t.on("change keyup blur","form",(function(t){if(!e(t.target).closest(".js-fields-has-custom-saving-logic").length){var i=e("#give-mainform").serialize();$=n!==i}}))}},sequentialDonationIDPreview:function(){var t=jQuery("#sequential-ordering_preview");t.length&&(jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number, #sequential-ordering_number_padding, #sequential-ordering_number_suffix").on("keyup change",(function(){var e=jQuery("#sequential-ordering_number_prefix").val(),n=jQuery("#sequential-ordering_number").val().trim()||"1",i=jQuery("#sequential-ordering_number_padding").val().trim(),o=jQuery("#sequential-ordering_number_suffix").val(),r="".concat(e).concat(n.padStart(i,"0")).concat(o);t.val(r)})),jQuery("#sequential-ordering_number_prefix").trigger("keyup"),jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number_suffix").on("blur",(function(){e(this).val(e(this).val().replace(new RegExp(" ","g"),"-"))})))}},l={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change((function(){"other"===e(this).val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()}))},donors_export:function(){e("#give_donor_export_form").change((function(){var t=e(this),n=e("option:selected",t).val(),i=e("#give_customer_export_option");"0"===t.val()?i.show():i.hide();var o=e(".give_price_options_select");if(0!=parseInt(n)){var r={action:"give_check_for_form_price_variations",form_id:n,all_prices:!0};e.post(ajaxurl,r,(function(t){o.remove(),e("#give_donor_export_form_chosen").after(t)}))}else o.remove()}))},recount_stats:function(){e("body").on("change","#recount-stats-type",(function(){var t=e("#give-tools-recount-form"),n=e("option:selected",this).data("type"),i=e("#recount-stats-submit"),o=e(".tools-form-dropdown"),r=e(".tools-date-dropdown-delete-donations");if(t.find(".notice-wrap").remove(),i.removeClass("button-disabled").attr("disabled",!1),o.hide(),r.hide(),e(".give-recount-stats-descriptions span").hide(),"reset-stats"===n)t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("reset_stats_warn")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled");else if("delete-test-donors"===n){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_test_donor")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else if("delete-import-donors"===n){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_import_donor")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else if("delete-donations"===n){r.show(),t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_donations_only")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else o.hide(),o.val(0);var a=e(".tools-form-dropdown-"+n);a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"}),e("#"+n).show()})),e("body").on("change","#confirm-reset",(function(){e(this).is(":checked")?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")})),e("#give-tools-recount-form").submit((function(t){var n=e("#recount-stats-type").val(),i=e(this),o=e("option:selected",this).data("type");if("reset-stats"===o){if(e("#confirm-reset").is(":checked"))return!0;a=!0}i.find(".notice-wrap").remove(),i.append('<div class="notice-wrap"></div>');var r=i.find(".notice-wrap"),a=!1;(null!==n&&0!==n||(r.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_class")+"</p></div>"),a=!0),"recount-form"===o)&&(0==e('select[name="form_id"]').val()&&(r.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_reqs")+"</p></div>"),a=!0));if(a)return i.find(".button-disabled").removeClass("button-disabled"),!1}))}},c={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",(function(n){n.preventDefault();var i=e(this).find('input[type="submit"]');if(!i.hasClass("button-disabled")){var o=e(this).serialize();i.addClass("button-disabled"),e("form.give-export-form select").attr("disabled",!0).trigger("chosen:updated");var r=e(this);e(this).find(".add-notices").length>0&&(r=e(this).find(".add-notices")),r.find(".notice-wrap").remove(),r.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,o,t,this)}}))},process_step:function(t,n,i,o,r){$=!0;var a=!1;e.ajax({type:"POST",url:ajaxurl,data:{form:n,action:"give_do_ajax_export",step:t,file_name:r},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){$=!1,a=!0;var r=e(o).parent().find(".notice-wrap");r.find(".give-progress");if(e(o).find(".button-disabled").removeClass("button-disabled"),e(o).find("select").attr("disabled",!1).trigger("chosen:updated"),t.error){var s=t.message;r.html('<div class="updated error"><p>'+s+"</p></div>")}else if(t.success){var l=t.message;r.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+l+'<span class="notice-dismiss"></span></p></div>')}else r.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,(function(){})),i.process_step(parseInt(t.step),n,i,o,t.file_name);!0===a&&e("#give-tools-recount-form").length>0&&(e("#give-tools-recount-form")[0].reset(),e("#give-tools-recount-form .tools-form-dropdown").hide(),e("#give-tools-recount-form .tools-date-dropdown").hide(),e("#give-tools-recount-form .tools-form-dropdown-recount-form-select").val("0").trigger("chosen:updated"))}}).fail((function(t){$=!1,window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)}))},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",(function(){e("#give-batch-success").parent().slideUp("fast")}))}},d={el:{},init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;t.el.main_container=Give_Selector_Cache.get("#give-db-updates"),t.el.update_link=Give_Selector_Cache.get(".give-update-now",t.el.main_container),t.el.run_upload_container=Give_Selector_Cache.get(".give-run-database-update",t.el.progress_main_container),t.el.progress_main_container=Give_Selector_Cache.get(".progress-container",t.el.main_container),t.el.heading=Give_Selector_Cache.get(".update-message",t.el.progress_main_container),t.el.progress_container=Give_Selector_Cache.get(".progress-content",t.el.progress_main_container),t.el.update_progress_counter=Give_Selector_Cache.get(e(".give-update-progress-count")),t.el.main_container.data("resume-update")&&(t.el.update_link.addClass("active").hide().removeClass("give-hidden"),e("#give-restart-upgrades").length||(Give.fn.getGlobalVar("ajax").length||window.setTimeout(d.start_db_update,1e3),window.setTimeout(d.get_db_updates_info,1e3,t))),t.el.update_link.hasClass("active")||(t.el.update_link.on("click","",(function(e){e.preventDefault(),t.el.run_upload_container.find(".notice").remove(),t.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+Give.fn.getGlobalVar("db_update_confirmation_msg_button")+"</a> "+Give.fn.getGlobalVar("db_update_confirmation_msg")+"</p></div>")})),e("#give-db-updates").on("click","a.give-run-update-button",(function(n){return n.preventDefault(),e(this).hasClass("active")||(e(this).addClass("active").fadeOut(),t.el.update_link.addClass("active").fadeOut(),e("#give-db-updates .give-run-update-containt").slideUp(),t.el.progress_container.find(".notice-wrap").remove(),t.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.el.progress_main_container.removeClass("give-hidden"),d.start_db_update(),window.setTimeout(d.get_db_updates_info,500,t)),!1})))},start_db_update:function(){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_run_db_updates",run_db_update:1,nonce:Give.fn.getGlobalVar("db_update_nonce")},dataType:"json",success:function(e){}}).always((function(){Give.fn.getGlobalVar("ajax").length||window.setTimeout(d.start_db_update,1e3)}))},get_db_updates_info:function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_db_updates_info"},dataType:"json",success:function(n){var i=Give_Selector_Cache.get(".notice-wrap",t.el.progress_container,!0);-1!==e.inArray("success",Object.keys(n))?n.success?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text("100%"),-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),t.el.update_link.closest("p").remove(),i.html('<div class="notice notice-success is-dismissible"><p>'+n.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),n.data.message?(t.el.update_link.closest("p").remove(),i.html('<div class="notice notice-error is-dismissible"><p>'+n.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):setTimeout((function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")}),1e3)):n&&-1!==e.inArray("percentage",Object.keys(n.data))?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text(n.data.total_percentage+"%"),-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),e(".give-progress div","#give-db-updates").animate({width:n.data.percentage+"%"},50,(function(){})),window.setTimeout(d.get_db_updates_info,1e3,t)):(i.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout((function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")}),1e3))}})},process_step:function(t,n,i){$=!0,e.ajax({type:"POST",url:ajaxurl,data:{action:"give_do_ajax_updates",step:parseInt(t),update:parseInt(n)},dataType:"json",success:function(t){$=!1;var n=Give_Selector_Cache.get(".notice-wrap",i.el.progress_container,!0);-1!==e.inArray("success",Object.keys(t))?t.success?(-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading+"</strong>"),i.el.update_link.closest("p").remove(),n.html('<div class="notice notice-success is-dismissible"><p>'+t.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading+"</strong>"),n.html('<div class="notice notice-error"><p>'+t.data.message+"</p></div>"),setTimeout((function(){i.el.update_link.removeClass("active").show(),i.el.progress_main_container.addClass("give-hidden")}),5e3)):t&&-1!==e.inArray("percentage",Object.keys(t.data))?(e(".give-progress div","#give-db-updates").animate({width:t.data.percentage+"%"},50,(function(){})),-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading.replace("{update_count}",i.el.heading.data("update-count"))+"</strong>"),i.process_step(parseInt(t.data.step),t.data.update,i)):(n.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout((function(){i.el.update_link.removeClass("active").show(),i.el.progress_main_container.addClass("give-hidden")}),5e3))}}).fail((function(e){$=!1,window.console&&window.console.log&&console.log(e),Give_Selector_Cache.get(".notice-wrap",self.el.progress_container).append(e.responseText)})).always((function(){}))},dismiss_message:function(){e("body").on("click","#poststuff .notice-dismiss",(function(){e(this).parent().slideUp("fast")}))}},u={init:function(){this.restartUpgrade(),this.stopUpgrade(),this.restartUpdater()},restartUpgrade:function(){jQuery("#give-restart-upgrades").click("click",(function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").show(),jQuery(".give-update-paused-text-p").hide(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()}))},stopUpgrade:function(){jQuery("#give-pause-upgrades").click("click",(function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").hide(),jQuery(".give-update-paused-text-p").show(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("stop_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()}))},restartUpdater:function(){jQuery(".give-restart-updater-btn,.give-run-update-now").click("click",(function(e){var t=this;e.preventDefault(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_update")},successConfirm:function(){window.location.assign(jQuery(t).attr("href"))}}).render()}))}},f={onLoadPageNumber:"",init:function(){this.loadGravatar(),this.unlockDonorFields(),this.editDonor(),this.add_email(),this.removeUser(),this.cancelEdit(),this.add_note(),this.delete_checked(),this.addressesAction(),this.bulkDeleteDonor(),f.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-donors-filter .bulkactions input[type="submit"]',this.handleBulkActions)},loadGravatar:function(){var t,n;e(".give-donor-name").each((function(){if(!(t=e(this).find(".give-donor__image")).hasClass("gravatar-loaded")){if(n=t.attr("data-donor_email"),"1"===t.attr("data-has-valid-gravatar")){var i=e("<img>");i.attr("src",J.url(n)),i.attr("width","60"),i.attr("height","60"),e(this).find(".give-donor__image").html(i)}t.addClass("gravatar-loaded")}}))},unlockDonorFields:function(t){e("body").on("click",".give-lock-block",(function(e){new h({modalContent:{title:Give.fn.getGlobalVar("unlock_donor_fields_title"),desc:Give.fn.getGlobalVar("unlock_donor_fields_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),e.preventDefault()}))},editDonor:function(){e("body").on("click","#edit-donor",(function(t){t.preventDefault(),e("#give-donor-card-wrapper .editable").hide(),e("#give-donor-card-wrapper .edit-item").fadeIn().css("display","block")}))},removeUser:function(){e("body").on("click","#disconnect-donor",(function(t){return t.preventDefault(),new v({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("disconnect_user")},successConfirm:function(){var t={give_action:"disconnect-userid",customer_id:e('input[name="donor_info[id]"]').val(),_wpnonce:e("#edit-donor-info #_wpnonce").val()};e.post(ajaxurl,t,(function(e){window.location.href=e.redirect}),"json")}}).render(),!1}))},cancelEdit:function(){e("body").on("click","#give-edit-donor-cancel",(function(t){t.preventDefault(),e("#give-donor-card-wrapper .edit-item").hide(),e("#give-donor-card-wrapper .editable").show(),e(".give_user_search_results").html("")}))},add_note:function(){e("body").on("click","#add-donor-note",(function(t){t.preventDefault();var n={give_action:"add-donor-note",customer_id:e("#donor-id").val(),donor_note:e("#donor-note").val(),add_donor_note_nonce:e("#add_donor_note_nonce").val()};if(n.donor_note)e.ajax({type:"POST",data:n,url:ajaxurl,success:function(t){e("#give-donor-notes").prepend(t),e(".give-no-donor-notes").hide(),e("#donor-note").val("")}}).fail((function(e){window.console&&window.console.log&&console.log(e)}));else{var i=e("#donor-note").css("border-color");e("#donor-note").css("border-color","red"),setTimeout((function(){e("#donor-note").css("border-color",i)}),500)}}))},delete_checked:function(){e("#give-donor-delete-confirm").change((function(){var t=e("#give-donor-delete-records"),n=e("#give-delete-donor");e(this).prop("checked")?(t.attr("disabled",!1),n.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),n.attr("disabled",!0))}))},add_email:function(){e("#add-donor-email").length&&e(document.body).on("click","#add-donor-email",(function(t){t.preventDefault();var n=e(this),i=n.parent();i.parent().find(".notice-wrap").remove(),i.find(".spinner").css("visibility","visible"),n.attr("disabled",!0);var o={give_action:"add_donor_email",customer_id:i.find('input[name="donor-id"]').val(),email:i.find('input[name="additional-email"]').val(),primary:i.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:i.find('input[name="add_email_nonce"]').val()};e.post(ajaxurl,o,(function(e){!0===e.success?window.location.href=e.redirect:(n.attr("disabled",!1),i.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),i.find(".spinner").css("visibility","hidden"))}),"json")}))},addressesAction:function(){var n=this,i=e("#donor-address-wrapper"),o=e(".all-address",i),r=e(".give-no-address-message",i),a=e(o).parent(),s=e(".address-form",i),l=e(".js-cancel",s),c=e('select[name="country"]',s),d=e(".add-new-address",i),u=parseInt(e('input[name="donor-id"]').val());c.on("change",(function(){e(this).trigger("chosen:updated")})),o.on("click",".js-edit",(function(t){var i=e(this).closest(".address");t.preventDefault(),e(".notice",a).remove(),n.__set_address_form_val(i),n.__set_address_form_action("update",i.data("address-id")),d.hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),s.data("process","update")})),o.on("click",".js-remove",(function(t){t.preventDefault();var i=e(this).closest(".address");e(".notice",a).remove(),s.data("changed",!0),n.__set_address_form_val(i),n.__set_address_form_action("remove",i.data("address-id")),s.trigger("submit")})),d.on("click",(function(t){t.preventDefault(),e(".notice",a).remove(),e(this).hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),n.__set_address_form_action("add"),n.__set_address_form_action()})),l.on("click",(function(e){e.preventDefault(),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")})),s.on("change",(function(){e(this).data("changed",!0)})).on("submit",(function(n){n.preventDefault();var l=e(this);return e(".notice",a).remove(),e(this).data("changed")?(e.ajax({type:"POST",url:ajaxurl,data:{action:"donor_manage_addresses",donorID:u,form:e("form",s).serialize()},beforeSend:function(){t(i,{show:!0})},success:function(n){if(t(i),n.success){var s;switch(n.data.action){case"add":e(".give-grid-row",o).append(n.data.address_html),!r.hasClass("give-hidden")&&e("div.give-grid-col-4",o).length&&r.addClass("give-hidden");break;case"remove":(s=o.find('div[data-address-id*="'+n.data.id+'"]').parent()).length&&s.animate({"margin-left":"-999"},1e3,(function(){s.remove(),r.hasClass("give-hidden")&&!e("div.give-grid-col-4",o).length&&r.removeClass("give-hidden")}));break;case"update":var l=(s=o.find('div[data-address-id*="'+n.data.id+'"]').parent()).prev(),c={},d=!1;parseInt(e(".give-grid-row>div",o).length)<2?e(".give-grid-row",o).append(n.data.address_html):(l.length&&(l.after(n.data.address_html),d=!0),d||(c=s.next()).length&&c.before(n.data.address_html)),s.remove()}a.prepend(n.data.success_msg)}else a.prepend(n.data.error_msg)},dataType:"json"}).always((function(){l.data("changed",!1),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")})),!1):(d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden"),!1)}))},__set_address_form_action:function(t,n){var i=e("#donor-address-wrapper"),o=e(".address-form",i),r=e('input[name="address-action"]',o),a=e('input[name="address-id"]',o);t=t||"add",n=n||"billing",r.val(t),a.val(n)},__set_address_form_val:function(t){var n=e("#donor-address-wrapper"),i=e(".address-form",n),o=e('[data-address-type="state"]',t).text().substr(2).trim();e('select[name="country"]',i).val().trim()!==e('[data-address-type="country"]',t).text().trim()?(e('select[name="country"]',i).val(e('[data-address-type="country"]',t).text().trim()).trigger("chosen:updated").change(),window.setTimeout((function(){e('[name="state"]',i).val(o).trigger("chosen:updated")}),500)):e('[name="state"]',i).val(o).trigger("chosen:updated"),e('input[name="line1"]',i).val(e('[data-address-type="line1"]',t).text().trim()),e('input[name="line2"]',i).val(e('[data-address-type="line2"]',t).text().trim()),e('input[name="city"]',i).val(e('[data-address-type="city"]',t).text().trim()),e('input[name="zip"]',i).val(e('[data-address-type="zip"]',t).text().trim())},bulkDeleteDonor:function(){var t=e("body");t.on("click","#give-bulk-delete-cancel",(function(t){e(this).closest("tr").hide(),e(".give-skip-donor").trigger("click"),t.preventDefault()})),t.on("click","#cb-select-all-1, #cb-select-all-2",(function(){var t=e(this);e.each(e(".donor-selector"),(function(){var n=e(this).val(),i=e(this).data("name"),o='<div id="give-donor-'+n+'" data-id="'+n+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+i+"</div>";t.is(":checked")&&!e(this).is(":checked")?e("#give-bulk-donors").append(o):t.is(":checked")||e("#give-bulk-donors").find("#give-donor-"+n).remove()}))})),t.on("click",".donor-selector",(function(){var t=e(this).val(),n=e(this).data("name"),i='<div id="give-donor-'+t+'" data-id="'+t+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+n+"</div>";e(this).is(":checked")?e("#give-bulk-donors").prepend(i):e("#give-bulk-donors").find("#give-donor-"+t).remove()})),t.on("click","#give-bulk-delete .give-donor-delete-confirm",(function(){e(this).is(":checked")?e("#give-bulk-delete-button").removeAttr("disabled"):(e("#give-bulk-delete-button").attr("disabled",!0),e("#give-bulk-delete .give-donor-delete-records").removeAttr("checked"))})),t.on("click","#give-bulk-delete .give-donor-delete-records",(function(){e(this).is(":checked")&&(e("#give-bulk-delete .give-donor-delete-confirm").attr("checked","checked"),e("#give-bulk-delete-button").removeAttr("disabled"))})),t.on("click",".give-skip-donor",(function(){var t=e(this).closest("div").data("id");e("#give-donor-"+t).remove(),e("#donor-"+t).find('input[type="checkbox"]').removeAttr("checked")})),t.on("click",".give-single-donor-delete",(function(t){var n=e(this).data("id"),i=e("tr#donor-"+n).find(".donor-selector"),o=e('[id^="cb-select-all-"]'),r=e("#give-bulk-donors"),a=i.data("name"),s='<div id="give-donor-'+n+'" data-id="'+n+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+a;r.html(""),o.is(":checked")&&o.removeAttr("checked"),e(".donor-selector").removeAttr("checked"),i.prop("checked",!0),0===e("#give-donor-"+n).length&&(r.prepend(s),e("#give-bulk-delete").slideDown()),t.preventDefault()}))},handleBulkActions:function(t){var n=e(this).closest(".tablenav").find("select").val(),i=[],o=e("#current-page-selector").val(),r=f.onLoadPageNumber!==o,a=Give.fn.getGlobalVar("donors_bulk_action.no_action_selected"),s=Give.fn.getGlobalVar("donors_bulk_action.no_donor_selected");return!!r||(e.each(e(".donor-selector:checked"),(function(){i.push(e(this).val())})),"-1"===n?(new p({modalContent:{title:a.title,desc:a.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1):parseInt(i)?("delete"===n&&e("#give-bulk-delete").slideDown(),void t.preventDefault()):(new p({modalContent:{title:s.title,desc:s.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1))}},m={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",(function(t){t.preventDefault();var n=e(this).attr("href");return new v({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("revoke_api_key")},successConfirm:function(){window.location.assign(n)}}).render(),!1}))},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",(function(t){var n=e(this).attr("href");return new v({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("regenerate_api_key")},successConfirm:function(){window.location.assign(n)}}).render(),!1}))}},g={init:function(){var t=e.query.get("give_tab").length?e.query.get("give_tab"):"form_template_options";this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events(),this.activate_tab(e('a[href="#'+t+'"]'))},handle_metabox_tab_click:function(){var t=this;e(".give-metabox-tabs a").on("click",(function(n){n.preventDefault();var i=e(this);t.activate_tab(i),t.update_query(i)}))},activate_tab:function(t){var n=t.data("tab-id"),i=t.parent(),o=e("ul.give-metabox-sub-tabs",i),r=o.length,a=e(".give-metabox-tabs a").parents("li"),s=e("ul.give-metabox-sub-tabs"),l=t.parents("ul.give-metabox-sub-tabs").length;if(e("#give_form_active_tab").val(n),r){i.toggleClass("active"),o.removeClass("give-hidden");var c=e("li.active","ul.give-metabox-sub-tabs");s.not(o).addClass("give-hidden"),a.not(i).removeClass("active"),c.addClass("active")}else l?l&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),a.removeClass("active"),t.parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),t.parents("li.has-sub-fields").addClass("active")):a.each((function(t,n){(n=e(n)).removeClass("active"),n.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",n).addClass("give-hidden")}));t.parent().addClass("active"),e(".give_options_panel").removeClass("active"),e(t.attr("href")).addClass("active")},update_query:function(t){var n=t.data("tab-id"),i=e.query.set("give_tab",n).remove("message").toString();history.replaceState&&history.replaceState(null,null,i)},setup_colorpicker_fields:function(){e(document).ready((function(){var t=e(".give-colorpicker");t.length&&t.each((function(t,n){var i=e(n);i.parents(".give-template").length||i.wpColorPicker()}))}))},setup_media_fields:function(){var t,n,i=e("body");i.on("click",".give-upload-button",(function(o){o.preventDefault();var r={};if(n=e(this),"media"===e(this).data("field-type"))r={title:Give.fn.getGlobal().metabox_fields.media.button_title,button:{text:Give.fn.getGlobal().metabox_fields.media.button_title},multiple:!1,library:{type:"image"}};else r={title:Give.fn.getGlobal().metabox_fields.file.button_title,button:{text:Give.fn.getGlobal().metabox_fields.file.button_title},multiple:!1};void 0!==jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("editing")&&(wp.media.controller.Library.prototype.defaults.contentUserSetting=!1);var a=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("library");void 0!==a&&""!==a&&(r.library={type:a}),(t=wp.media(r)).on("select",(function(){var e=t.state().get("selection").first().toJSON(),o=n.prev(),r="id"===n.data("fvalue")?e.id:e.url;if(i.trigger("give_media_inserted",[e,o]),o.val(r),"id"!==n.data("fvalue")){var a='input[name="'+o.attr("name")+'_id"]';o.closest("tr").next("tr").find(a).length&&o.closest("tr").next("tr").find(a).val(e.id)}})),t.open()})),i.on("give_media_inserted",(function(t,i){var o=n.parents(".give-field-wrap"),r=e(".give-image-thumb",o);return!!r.length&&("image"!==i.type?(r.addClass("give-hidden"),e("img",r).attr("src",""),!1):(r.find("img").attr("src",i.url),void r.removeClass("give-hidden")))})),e("span.give-delete-image-thumb",".give-image-thumb").on("click",(function(t){t.preventDefault();var n=e(this).parents(".give-field-wrap"),i=e(this).parent(),o=e('input[type="text"]',n);i.addClass("give-hidden"),o.val(""),e("img",i).attr("src","")}))},setup_repeatable_fields:function(){jQuery((function(){jQuery(".give-repeatable-field-section").each((function(){var t=e(this),n={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:Give.fn.getGlobalVar("confirm_before_remove_row_text"),is_sortable:!0,before_add:null,after_add:_,before_remove:null,after_remove:b,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(n,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item);var o=e(".give-row",t).not(".give-template");o.length&&o.each((function(t,n){var i=e('input[type="radio"].give-field',e(n));i.length&&i.each((function(){e(this).attr("data-give-checked",e(this).is(":checked"))}))})),e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item),e("body").trigger("repeater_field_sorting_stop",[n.item])},update:function(n,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item);var o=e(".give-row",t).not(".give-template"),r=e(this).closest(".give-repeatable-fields-section-wrapper");if(o.length){var a=1;o.each((function(t,n){var i=e(".give-field, label",e(n));i.length&&i.each((function(){var t=e(this).parents(".give-field-wrap"),n=e(this);e.each(this.attributes,(function(e,i){var o,r=this.value.replace(/\[/g,"_").replace(/]/g,""),s=r+"_field",l="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(a-1)+"]"),o=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(s)&&(l=o+"_field",t.removeClass(s).addClass(l)),r==n.attr("id")&&n.attr("id",o))}))})),a++})),window.setTimeout((function(){e("input[data-give-checked]",r).each((function(t,n){(n=e(n)).prop("checked","true"===n.attr("data-give-checked"))}))}),100),t.trigger("repeater_field_row_reordered",[i.item])}}}};jQuery(this).repeatable_fields(n)}))}))},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),n=e("body");n.on("click",".give-row-head .give-handlediv",(function(){var t=e(this).closest(".give-row");t.toggleClass("closed"),e(".give-row-body",t).toggle()})),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",(function(){y(e(this))})),n.on("repeater_field_sorting_start",(function(t,n){var i=e(".wp-editor-area",n);i.length&&i.each((function(t,n){window.setTimeout((function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(n).attr("id"))}),300)}))})),n.on("repeater_field_sorting_stop",(function(t,n){var i=e(".wp-editor-area",n);i.length&&i.each((function(t,n){window.setTimeout((function(){var t=e(n).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout((function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")}),100)}),300)}))})),t.each((function(t,n){var i=e(n);y(i),parseInt(i.data("close-tabs"))&&(e(".give-row-head button",i).trigger("click"),e(".give-template",i).removeClass("closed"),e(".give-template .give-row-body",i).show())})),t.on("repeater_field_new_row_added",(function(t,n,i){e(".give-colorpicker",e(this)).each((function(t,n){var i=e(n);i.parents(".wp-picker-container").length||i.parents(".give-template").length||i.wpColorPicker()}));var o=e("div[data-wp-editor]",i);o.length&&o.each((function(t,n){var i=e(n),o=e(".wp-editor-wrap",i),r=e("textarea",i),a="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=o.prev();r.attr("id",a),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:i.data("wp-editor"),wp_editor_id:a,textarea_name:e("textarea",i).attr("name")},(function(t){o.remove(),s.after(t),tinyMCEPreInit.qtInit[r.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:a}),tinyMCEPreInit.mceInit[a]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:a+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+a}),tinymce.init(tinyMCEPreInit.mceInit[a]),quicktags(tinyMCEPreInit.qtInit[a]),QTags._buttonsInit(),window.setTimeout((function(){switchEditors.go(a,"html"),e("#"+a+"-tmce").trigger("click")}),100),window.wpActiveEditor||(window.wpActiveEditor=a)}))}))}))},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",(function(){var t=e(this).closest("tr"),n=e(".give-row-head h2 span",t),i=n.data("header-title");if(e(this).val()&&e(this).val()===n.html())return!1;e(this).val()?n.html(i+": "+e(this).val()):n.html(i)})),e(".give-multilevel-text-field").each((function(t,n){if(t){var i=e(n),o=i.closest("tr"),r=e(".give-row-head h2 span",o),a=r.data("header-title");if(i.val()&&i.val()===r.html())return!1;i.val()?r.html(a+": "+i.val()):r.html(a)}})),t.on("repeater_field_row_deleted",(function(){var t=e(this);window.setTimeout((function(){var n=e(".give-row",t).not(".give-template"),i=e(".give-give_default_radio_inline",n);1===n.length&&i.prop("checked",!0)}),200)})),t.on("repeater_field_new_row_added",(function(t,n,i){var o=e(this),r=0;window.setTimeout((function(){!1===e(".give-give_default_radio_inline",o).is(":checked")&&e(".give-row",o).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)}),200),e('input[type="hidden"].give-levels_id',o).each((function(t,n){var i=e(n),o=parseInt(i.val());r<o&&(r=o)})),e('input[type="hidden"].give-levels_id',i).val(++r)}))}},_=function(t,n){var i=e(t).attr("data-rf-row-count"),o=e(t).parents(".give-repeatable-field-section");i++,e("*",n).each((function(){e.each(this.attributes,(function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",i-1)}))})),e(t).attr("data-rf-row-count",i),o.trigger("repeater_field_new_row_added",[t,n])},b=function(t){var n=e(t),i=n.parents(".give-repeatable-field-section"),o=e(t).prop("data-rf-row-count");n.prop("data-rf-row-count",--o),i.trigger("repeater_field_row_deleted")},y=function(t){if(parseInt(t.data("group-numbering"))){var n=e(".give-row-head h2 span",t),i=n.data("header-title");n.each((function(t,n){var o=e(n);o.parents(".give-template").length||o.html(i+": "+t)}))}},w={onLoadPageNumber:"",init:function(){w.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-payments-filter input[type="submit"]',this.handleBulkActions)},handleBulkActions:function(t){var n=e(this).closest(".tablenav").find("select").val(),i=e(this).closest(".tablenav").find('option[value="'+n+'"]').text(),o=e('input[name="payment[]"]:checked').length,r=-1!==n.indexOf("set-status-"),a="",s="",l=e("#current-page-selector").val();if(w.onLoadPageNumber!==l)return!0;if("-1"===(n=r?"set-to-status":n))return new p({modalContent:{title:Give.fn.getGlobal().donors_bulk_action.no_action_selected.title,desc:Give.fn.getGlobal().donors_bulk_action.no_action_selected.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;if(Object.keys(Give.fn.getGlobalVar("donations_bulk_action")).length)for(s in Give.fn.getGlobalVar("donations_bulk_action"))if(s===n){if(a=r?Give.fn.getGlobal().donations_bulk_action[n].zero.replace("{status}",i.replace("Set To ","")):Give.fn.getGlobal().donations_bulk_action[n].zero,!parseInt(o))return new p({modalContent:{title:Give.fn.getGlobal().donations_bulk_action.titles.zero,desc:a,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;a=1<o?Give.fn.getGlobal().donations_bulk_action[n].multiple:Give.fn.getGlobal().donations_bulk_action[n].single,t.preventDefault(),new v({modalContent:{title:Give.fn.getGlobalVar("confirm_bulk_action"),desc:a.replace("{payment_count}",o).replace("{status}",i.replace("Set To ",""))},successConfirm:function(t){e("#give-payments-filter").submit()}}).render()}return!0}},x=function(){var e=document.querySelectorAll(".js-give-shortcode-button");if(e){var t,n=H(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;new V(i).init()}}catch(e){n.e(e)}finally{n.f()}}},k={init:function(){var t,n=null!==(t=document.querySelectorAll(".give-select-chosen[multiple]"))&&void 0!==t?t:[];Array.from(n).forEach((function(t){var n=t.dataset.order?t.dataset.order.split("|"):[];n.length>0&&k.reorderItems(t,n),e(t).chosen().change((function(t,n){var i,o=t.target,r=[];n.deselected&&e(this).trigger("chosen:updated"),(null!==(i=document.querySelectorAll("#".concat(o.id,"_chosen li.search-choice")))&&void 0!==i?i:[]).forEach((function(e){var t=e.querySelector("span").textContent,n=Object.values(o.options).find((function(e){return e.textContent===t}));n&&r.push({text:n.textContent,value:n.value,selected:!0})})),Object.values(o.options).map((function(e){r.filter((function(t){return t.text===e.textContent})).length||r.push({text:e.textContent,value:e.value,selected:!1})})),k.rebuildDropDown(o,r)}))}))},reorderItems:function(t,n){var i=t.options,o=[];n.forEach((function(e,n){var r;(null!==(r=document.querySelectorAll("#".concat(t.id,"_chosen li.search-choice")))&&void 0!==r?r:[]).forEach((function(t,r){if(n===r){var a=Object.values(i).find((function(t){return t.value===e}));t.querySelector("span").textContent=a.text,o.push({value:a.value,text:a.text,selected:!0})}}))})),Object.values(i).map((function(e){o.filter((function(t){return t.value===e.value})).length||o.push({value:e.value,text:e.textContent,selected:e.selected})})),k.rebuildDropDown(t,o),e(this).trigger("chosen:updated")},rebuildDropDown:function(e,t){e.innerHTML="",t.map((function(t){var n=document.createElement("option");n.value=t.value,n.textContent=t.text,t.selected&&n.setAttribute("selected","true"),e.add(n)}))}};e((function(){e("body").on("click","button.notice-dismiss",(function(){"give-invalid-license"!==jQuery(this).closest("div.give-notice").data("notice-id")&&n(jQuery(this).closest("div.give-notice").attr("id"))})),function(){var t,n=e(".give_datepicker");if(n.length){var i={},o={altFormat:"yy-mm-dd",onClose:function(e,t){e.length||t.input.next().val("")}};e.each(n,(function(o,r){r=e(r),t=void 0!==r.attr("data-standard-date")?r.attr("data-standard-date"):r.attr("value"),r.attr("name").length&&(i=r.clone(),n[o]=i,i.attr("name",""),r.before(i),r.hide(),r.attr("class",""),r.attr("id",""),r.val(t),r.prop("readonly",!0))})),n.length>0&&e.each(n,(function(t,n){n=e(n),o.altField=n.next(),n.datepicker(o)}))}}(),e('select[name="give-payment-status"]').on("change",(function(){var t=e(this).val();e(".give-donation-status").removeClass((function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")})).addClass("status-"+t)})),i(),e.giveAjaxifyFields({type:"country_state",debug:!0}),r.init(),a.init(),s.init(),l.init(),f.init(),m.init(),c.init(),d.init(),u.init(),g.init(),w.init(),x(),k.init(),e("a.give-rating-link").click((function(){jQuery(this).parent().text(jQuery(this).data("rated"))})),e(".give-ajax-user-search").on("keyup",(function(){var t=e(this).val(),n="";e(this).data("exclude")&&(n=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:n},document.body.style.cursor="wait",e.ajax({type:"POST",data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})})),e("body").on("click.giveSelectUser",".give_user_search_results span a",(function(t){t.preventDefault();var n=e(this).data("login");e(".give-ajax-user-search").val(n),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")})),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",(function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}));var t=e("#poststuff"),h=Give.fn.getGlobalVar("thousands_separator"),p=Give.fn.getGlobalVar("decimal_separator"),v="",_="",b="",y=p===h?1:0;t.on("keyup","input.give-money-field, input.give-price-field",(function(){var t={label:Give.fn.getGlobalVar("price_format_guide").trim()};v=(e(this).val().match(new RegExp(h,"g"))||[]).length,_=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(h)&&y<v||_?e(this).giveHintCss("show",t):e(this).giveHintCss("hide",t),v=_=""})),t.on("focusout","input.give-money-field, input.give-price-field",(function(){if(b=o(e(this).val(),!1),e(this).giveHintCss("hide",{label:Give.fn.getGlobalVar("price_format_guide").trim()}),o("0",!1)===o(e(this).val(),!1)){var t=e(this).attr("placeholder");return t=t||"0",e(this).val(t),!1}-1!==(b=b.replace(".",p)).indexOf("-")&&(b=b.replace("-","")),e(this).val(b)})),t.on("focusout","#_give_number_of_donation_goal",(function(){1>e(this).val()&&e(this).val(1)})),e(".give-settings-page").on("click","#give-show-sub-nav",(function(t){t.preventDefault();var n=e(this).next();return n.is(":hover")||n.toggleClass("give-hidden"),!1})).on("blur","#give-show-sub-nav",(function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")})),e(".give_email_api_notification_status_setting input").change((function(){var t=e(this).val(),n="enabled"===t,i={};return e(this).closest(".give_options_panel").length?i=e(this).closest(".give_options_panel").children(".give-field-wrap:not(.give_email_api_notification_status_setting), .give-repeatable-field-section"):e(this).closest("table").length&&(i=e(this).closest("table").find("tr:not(.give_email_api_notification_status_setting)")),-1!==jQuery.inArray(t,["enabled","disabled","global"])&&(!!i.length&&void(n?i.show():i.hide()))})),e(".give_email_api_notification_status_setting input:checked").change(),X()}))}(jQuery),jQuery(window).resize((function(){X()}));function K(){var e=jQuery("form.tools-setting-page-import");!0;var t=e.find(".give-progress"),n=jQuery(t).data("total_ajax"),i=jQuery(t).data("current"),o=jQuery(t).data("start"),r=jQuery(t).data("end"),a=jQuery(t).data("next"),s=jQuery(t).data("total"),l=jQuery(t).data("per_page");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("give_donation_import"),total_ajax:n,current:i,start:o,end:r,next:a,total:s,per_page:l,fields:e.serialize()},dataType:"json",success:function(e){jQuery(t).data("current",e.current),jQuery(t).find("div").width(e.percentage+"%"),1==e.next?(jQuery(t).data("start",e.start),jQuery(t).data("end",e.end),1==e.last&&jQuery(t).data("next",!1),K()):(!1,window.location=e.url)},error:function(){!1,new h({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}function Z(){var e=document.querySelector(".give-tools-setting-page-import table.step-2 .give-import-donation-required-fields");if("undefined"!==e&&null!==e){var t=!0,n=!1,i=!1,o=!1,r=!1;document.querySelectorAll(".give-import-donation-required-fields li").forEach((function(e){e.querySelector(".dashicons").classList.remove("dashicons-yes"),e.querySelector(".dashicons").classList.add("dashicons-no-alt")}));var a=Array.from(document.querySelectorAll("table.step-2 tbody select")).map((function(e){return e.value}));a.includes("email")&&(n=!0,document.querySelector(".give-import-donation-required-email .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-email .dashicons").classList.add("dashicons-yes")),a.includes("first_name")&&(i=!0,document.querySelector(".give-import-donation-required-first .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-first .dashicons").classList.add("dashicons-yes")),a.includes("amount")&&(o=!0,document.querySelector(".give-import-donation-required-amount .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-amount .dashicons").classList.add("dashicons-yes")),(a.includes("form_id")||a.includes("form_title"))&&(r=!0,document.querySelector(".give-import-donation-required-form .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-form .dashicons").classList.add("dashicons-yes")),n&&i&&o&&r&&(t=!1),document.getElementById("recount-stats-submit").disabled=t}}document.addEventListener("DOMContentLoaded",(function(e){window.onload=function(){var e,t;Z(),"undefined"!==(e=document.querySelector(".give-tools-setting-page-import table.step-2 tbody select"))&&null!==e&&jQuery(".give-tools-setting-page-import table.step-2 tbody").on("change","select",(function(){Z()})),jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-3").length>0&&K(),t="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-1 .is_csv_valid",jQuery(t).length>0&&(window.location=jQuery(t).val()),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-2 .csv_not_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}(),function(){if(jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-2").length>0){var e=jQuery("form.tools-setting-page-import"),t=e.find(".give-progress");!0,jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("core_settings_import"),fields:e.serialize()},dataType:"json",success:function(e){!1,!0===e.success?(jQuery(t).find("div").width(e.percentage+"%"),window.location=e.url):new h({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()},error:function(){!1,new h({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}}(),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-1 .is_json_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}()}}));n(74241);function ee(e,t){var n="",i=document.querySelector(".give-save-button");try{n=JSON.parse(t),e.value=JSON.stringify(n,void 0,2),e.style.border="none",i.removeAttribute("disabled")}catch(t){e.style.border="1px solid red",i.setAttribute("disabled","disabled")}}function te(e){null!==e&&(ee(e,e.value),e.addEventListener("blur",(function(t){ee(e,t.target.value)})))}window.addEventListener("DOMContentLoaded",(function(){var e=Array.from(document.querySelectorAll(".give-stripe-account-set-default"));e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t,n=e.target.parentElement.parentElement.parentElement.parentElement,i=n.querySelector(".give-stripe-account-email .give-stripe-connect-data-field"),o=n.querySelector('input[name="setting-page"]').value,r="",a=sprintf("<p><strong>%1$s</strong><br>%2$s</p>",(0,b.__)("Account Name","give"),e.target.parentElement.parentElement.querySelector(".give-stripe-account-name .give-stripe-connect-data-field").textContent);i&&(r=sprintf("<p><strong>%1$s</strong><br>%2$s</p>",(0,b.__)("Account Email","give"),i.textContent));var s=sprintf('<a href="%1$s" target="_blank">%2$s</a>',"https://givewp.com/documentation/core/payment-gateways/stripe-free/using-multiple-stripe-accounts-on-a-single-givewp-site/",(0,b.__)("View Documentation >","give"));t="global"===o?sprintf((0,b.__)("Please confirm you’d like to set the account below as the new default Stripe account. All donation forms set to inherit the Global Settings will use this new default account. %1$s<br>%2$s%3$s","give"),s,a,r):sprintf((0,b.__)("Please confirm you’d like to set the account below as the new default Stripe account for this donation form. All donations will process through this Stripe account rather than the Global default Stripe account. %1$s<br>%2$s%3$s","give"),s,a,r),new Give.modal.GiveConfirmModal({classes:{modalWrapper:"give-modal--warning give-stripe-modal-new-default"},modalContent:{title:sprintf('<span class="give-stripe-icon stripe-logo-with-circle"></span>%s',(0,b.__)("Confirm New Default Account","give")),desc:t},successConfirm:function(t){var n=new XMLHttpRequest,i=new FormData,o=Give.fn.getGlobalVar("post_id");i.append("action","give_stripe_set_account_default"),i.append("account_slug",e.target.getAttribute("data-account")),i.append("form_id",o),n.open("POST",ajaxurl),n.onload=function(){var e=JSON.parse(n.response);200===n.status&&e.success&&window.location.reload()},n.send(i)}}).render()}))}))})),window.addEventListener("DOMContentLoaded",(function(){var e=Array.from(document.querySelectorAll(".give-stripe-disconnect-account-btn"));e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=(0,b.__)("Disconnect Stripe Account","give"),i=(0,b.__)("Are you sure you want to disconnect this Stripe account?","give");new Give.modal.GiveConfirmModal({type:"alert",classes:{modalWrapper:"give-modal--warning"},modalContent:{title:n,desc:i},successConfirm:function(){fetch(t.getAttribute("href")).then((function(e){return e.json()})).then((function(e){e.success&&window.location.reload()}))}}).render()}))}))})),window.addEventListener("DOMContentLoaded",(function(){var e=document.body.classList.contains("post-php")?".post-php":".post-new-php",t=document.querySelector("".concat(e,'.post-type-give_forms form[name="post"]'));t&&t.addEventListener("submit",(function(e){var t=document.querySelector('#stripe_form_account_options [name="give_stripe_per_form_accounts"]:checked');t&&("enabled"===t.value&&(!!document.querySelector("#stripe_form_account_options .give-stripe-account-manager-list-item.give-stripe-boxshadow-option-wrap__selected")||(e.preventDefault(),new Give.modal.GiveNoticeAlert({type:"warning",modalContent:{title:(0,b.__)("Select a Stripe Account","give"),desc:(0,b.__)("You've selected to customize the Stripe account for this form, but not selected a different account. Please set an account as default for this form on the Stripe settings tab.","give")}}).render(),"stripe_form_account_options"!==Give.fn.getParameterByName("give_tab")&&document.querySelector('a[href="#stripe_form_account_options"]').click())))}))})),window.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll('input[name="stripe_fonts"]'),t=document.getElementById("stripe_styles_base"),n=document.getElementById("stripe_styles_empty"),i=document.getElementById("stripe_styles_invalid"),o=document.getElementById("stripe_styles_complete"),r=document.getElementById("stripe_custom_fonts"),a=document.getElementById("give-payment-status"),s=document.querySelectorAll('input[name="stripe_checkout_type"]'),l=Array.from(document.querySelectorAll(".stripe-checkout-field")),c=document.getElementById("give-stripe-connected"),d=Array.from(document.querySelectorAll('input[name="stripe_hide_icon"]')),u=document.querySelector(".stripe-icon-style"),f=Array.from(document.querySelectorAll(' input[name="stripe_mandate_acceptance_option"]')),h=document.querySelector(".stripe-mandate-acceptance-text"),p=Array.from(document.querySelectorAll('input[name="stripe_becs_hide_icon"]')),m=document.querySelector(".stripe-becs-icon-style"),g=Array.from(document.querySelectorAll(' input[name="stripe_becs_mandate_acceptance_option"]')),v=document.querySelector(".stripe-becs-mandate-acceptance-text"),_=Array.from(document.querySelectorAll('input[name="give_stripe_per_form_accounts"]')),y=document.querySelector(".give-stripe-manage-account-options"),w=document.querySelectorAll("#give-settings-section-group-credit-card .give-stripe-cc-option-field"),x=document.querySelectorAll("#give-settings-section-group-accounts .give-stripe-edit-statement-descriptor-btn");if(te(t),te(n),te(i),te(o),te(r),null!==_){var k=document.querySelectorAll("#stripe_form_account_options .give-stripe-per-form-option-field");_.forEach((function(e){e.addEventListener("change",(function(e){k.forEach((function(e){e.classList.remove("give-stripe-boxshadow-option-wrap__selected"),e.querySelector('input[name="give_stripe_per_form_accounts"]').setAttribute("checked","")})),e.target.parentElement.parentElement.classList.add("give-stripe-boxshadow-option-wrap__selected"),e.target.setAttribute("checked","checked"),"enabled"===e.target.value?y.classList.remove("give-hidden"):y.classList.add("give-hidden")}))}))}if(null!==d&&d.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?u.classList.remove("give-hidden"):u.classList.add("give-hidden")}))})),null!==f&&f.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?h.classList.remove("give-hidden"):h.classList.add("give-hidden")}))})),null!==p&&p.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?m.classList.remove("give-hidden"):m.classList.add("give-hidden")}))})),null!==g&&g.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?v.classList.remove("give-hidden"):v.classList.add("give-hidden")}))})),null!==c){var C=c.getAttribute("data-status"),S=c.getAttribute("data-redirect-url"),T=c.getAttribute("data-display"),j=c.getAttribute("data-title"),E=c.getAttribute("data-first-detail"),I=c.getAttribute("data-second-detail");"connected"===C&&"0"===T&&(new Give.modal.GiveConfirmModal({modalWrapper:"give-stripe-connected-modal give-modal--success",type:"confirm",modalContent:{title:j,desc:"<span>".concat(E,'</span><span class="give-field-description">').concat(I,"</span>")},successConfirm:function(e){window.location.href=S}}).render(),c.setAttribute("data-display","1"),history.pushState({urlPath:S},"",S))}if(null!==s&&s.forEach((function(e){e.addEventListener("change",(function(e){"modal"===e.target.value?l.map((function(e){return e.classList.remove("give-hidden")})):l.map((function(e){return e.classList.add("give-hidden")}))}))})),null!==a&&a.addEventListener("change",(function(e){var t=document.getElementById("give-stripe-opt-refund");null!==t&&(t.checked=!1,"refunded"===e.target.value?document.getElementById("give-stripe-opt-refund-wrap").style.display="block":document.getElementById("give-stripe-opt-refund-wrap").style.display="none")})),null!==e&&e.forEach((function(e){var t=document.querySelector(".give-stripe-google-fonts-wrap"),n=document.querySelector(".give-stripe-custom-fonts-wrap");e.addEventListener("change",(function(e){"custom_fonts"===e.target.value?(t.style.display="none",n.style.display="table-row"):"google_fonts"===e.target.value&&(t.style.display="table-row",n.style.display="none")}))})),w.length&&w.forEach((function(e){e.addEventListener("click",(function(){w.forEach((function(e){e.classList.remove("give-stripe-boxshadow-option-wrap__selected"),e.querySelector('input[name="stripe_cc_fields_format"]').setAttribute("checked","")})),e.querySelector('input[name="stripe_cc_fields_format"]').setAttribute("checked","checked"),e.classList.add("give-stripe-boxshadow-option-wrap__selected")}))})),x.length){var G='\n <input type="text" minlength="5" maxlength="22">\n <button class="button-primary" disabled>'.concat((0,b.__)("Save","give"),'</button>\n <button class="button-secondary">').concat((0,b.__)("Cancel","give"),"</button>");x.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=e.closest(".give-stripe-connect-data-field"),i=n.style.display;n.insertAdjacentHTML("afterend",G),n.style.display="none";var o=n.nextElementSibling,r=o.nextElementSibling,a=r.nextElementSibling;o.value=n.childNodes[0].nodeValue.trim(),o.style.display="block",o.style.marginBottom="10px",r.style.marginRight="5px",o.addEventListener("keyup",(function(e){var t=o.value.trim(),i=n.childNodes[0].nodeValue.trim();r.disabled=!t||t===i})),a.addEventListener("click",(function(e){e.preventDefault(),o.remove(),r.remove(),a.remove(),n.style.display=i})),r.addEventListener("click",(function(e){e.preventDefault();var t,i=o.value.trim(),r="".concat(n.getAttribute("data-action-url"),"&statement-descriptor=").concat(encodeURIComponent(i));22<(t=i).length||t.length<5||!isNaN(t)||0!==t.split("").filter((function(e){return["*","'",'"',"\\","<",">"].includes(e)})).length?new Give.modal.GiveErrorAlert({modalContent:{title:(0,b.__)("Invalid Statement Descriptor Text","give"),desc:(0,b.sprintf)('%s <br>%s <br>- %s<br>- %s<br>- %s<br>- %s<br><br><a href="%s" target="_blank">%s</a>',(0,b.__)("Please enter a valid Stripe statement descriptor.","give"),(0,b.__)("List of important Stripe statement descriptor text requirements:","give"),(0,b.__)("Contains only Latin characters.","give"),(0,b.__)("Contains between 5 and 22 characters, inclusive.","give"),(0,b.__)("Contains at least one letter.","give"),(0,b.__)("Does not contain any of the special characters < > \\ ' \" *.","give"),"https://stripe.com/docs/statement-descriptors#requirements",(0,b.__)("Read more about stripe statement descriptor text requirements.","give"))}}).render():fetch(r).then((function(e){return e.json()})).then((function(e){e.success?(n.childNodes[0].nodeValue=i,a.click()):new Give.modal.GiveErrorAlert({modalContent:{title:(0,b.__)("Invalid Stripe Statement Descriptor Text","give"),desc:(0,b.sprintf)('%s %s<br><br><a href="%s" target="_blank">%s</a>',(0,b.__)("We are unable to update Stripe statement descriptor.","give"),e.data.errorMessage,"https://stripe.com/docs/statement-descriptors#requirements",(0,b.__)("Read more about stripe statement descriptor text requirements.","give"))}}).render()}))}))}))}))}})),window.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("give-payment-status"),t=document.getElementById("js-give-paypal-on-boarding-handler"),n=document.getElementById("js-give-paypal-disconnect-paypal-account"),i=document.querySelector("#give-paypal-commerce-account-manager-field-wrap .connection-setting"),o=document.querySelector("#give-paypal-commerce-account-manager-field-wrap .disconnection-setting"),r=document.getElementById("paypal_commerce_account_country"),a=new MutationObserver((function(e){e.forEach((function(e){e.removedNodes.forEach((function(e){if("PPMiniWin"===e.getAttribute("id")){var t=document.getElementById("give-paypal-onboarding-trouble-notice");t&&t.classList.remove("give-hidden")}}))}))}));if(e&&e.addEventListener("change",(function(e){var t=document.getElementById("give-paypal-commerce-opt-refund");null!==t&&(t.checked=!1,"refunded"===e.target.value?document.getElementById("give-paypal-commerce-opt-refund-wrap").style.display="block":document.getElementById("give-paypal-commerce-opt-refund-wrap").style.display="none")})),window.location.search.match(/paypal-commerce-account-connected=1/i)){var s=window.givePayPalCommerce.translations.pciComplianceInstructions.map((function(e){return"<li>".concat(e,"</li>")})).join(""),l=window.givePayPalCommerce.translations.liveWarning?'<p class="give-modal__description__warning">'.concat(window.givePayPalCommerce.translations.liveWarning,"</p>"):"";new Give.modal.GiveSuccessAlert({classes:{modalWrapper:"paypal-commerce-connect",cancelBtn:"give-button--primary"},modalContent:{title:window.givePayPalCommerce.translations.connectSuccessTitle,body:'\n\t\t\t\t\t<div class="give-modal__description">\n\t\t\t\t\t\t'.concat(l,"\n\t\t\t\t\t\t<p>").concat(window.givePayPalCommerce.translations.pciWarning,"</p>\n\t\t\t\t\t\t<ul>").concat(s,"</ul>\n\t\t\t\t\t</div>\n\t\t\t\t").trim(),cancelBtnTitle:Give.fn.getGlobalVar("confirm")},closeOnBgClick:!0}).render();var c=Give.fn.removeURLParameter(window.location.href,"paypal-commerce-account-connected");history.pushState({},"",c)}function d(){var e=document.querySelector(".paypal-message-template");e&&e.parentElement.remove()}t&&t.addEventListener("click",(function(e){e.preventDefault(),d();var n=r.value,i=function(){t.disabled=!1,e.target.innerText=t.getAttribute("data-initial-label")};(function(){t.hasAttribute("data-initial-label")||t.setAttribute("data-initial-label",t.innerText),t.disabled=!0,e.target.innerText=Give.fn.getGlobalVar("loader_translation").processing})();var o=document.getElementById("give-paypal-onboarding-trouble-notice");return o&&o.classList.add("give-hidden"),fetch(ajaxurl+"?action=give_paypal_commerce_get_partner_url&countryCode=".concat(n)).then((function(e){return e.json()})).then((function(e){if(!0===e.success){var t=document.querySelector("[data-paypal-button]");t.href="".concat(e.data.partnerLink,"&displayMode=minibrowser"),t.click(),a.observe(document.querySelector("body"),{attributes:!0,childList:!0})}i()})).then((function(){fetch(ajaxurl+"?action=give_paypal_commerce_onboarding_trouble_notice").then((function(e){return e.json()})).then((function(e){if(!0===e.success){var t=document.querySelector(".connect-button-wrap");o&&o.remove(),t.append((n=e.data,(i=document.createElement("div")).innerHTML=n.trim(),i.firstChild))}var n,i}))})),!1})),n&&n.addEventListener("click",(function(e){return e.preventDefault(),d(),new v({modalContent:{title:givePayPalCommerce.translations.confirmPaypalAccountDisconnection,desc:givePayPalCommerce.translations.disconnectPayPalAccount},successConfirm:function(){i.classList.remove("give-hidden"),o.classList.add("give-hidden"),r.parentElement.parentElement.classList.remove("hide-with-position"),document.querySelector("label[for='paypal_commerce_collect_billing_details']").parentElement.parentElement.classList.add("give-hidden"),fetch(ajaxurl+"?action=give_paypal_commerce_disconnect_account")}}).render(),!1}))}));n(2601);A.modal=e;var ne=A.init,ie=A.fn,oe=A.cache,re=A.modal,ae=A.notice;window.Give={init:ne,fn:ie,cache:oe,modal:re,notice:ae,initializeIframeResize:function(e){return new O.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(t){var n=e.parentElement;switch(e.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),t.message.action){case"giveEmbedFormContentLoaded":var i=setTimeout((function(){o()}),400);e.setAttribute("data-contentLoaded","1");var o=function(){clearTimeout(i),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",e.style.visibility="visible",e.style.minHeight="",n.style.height=null};break;case"giveScrollIframeInToView":e.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){var t=e.parentElement;window.top.addEventListener("resize",(function(){e.style.width=window.top.innerWidth+"px"}));var n=!1;window.addEventListener("beforeunload",(function(){n=!0})),e.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(e.scrollIntoView({behavior:"smooth",inline:"nearest"}),e.parentElement.querySelector(".iframe-loader").style.opacity=1,e.parentElement.querySelector(".iframe-loader").style.transition="",e.style.visibility="hidden",t.style.height="700px")})),e.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},e)}}})()})();
assets/dist/js/give.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('jquery', 'wp-i18n'), 'version' => '35129a2ceae3f763');
1
+ <?php return array('dependencies' => array('jquery', 'wp-i18n'), 'version' => 'ed08df03f0900ead');
assets/dist/js/give.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,t={87757:(e,t,n)=>{e.exports=n(35666)},50743:function(e,t){!function(n,r){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function u(e){return e&&"[object Object]"===s.call(e)}function d(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r<i;r++)a[r]=t.call(n,e[r],r,e);return a}function m(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var v=i.unformat=i.parse=function(e,t){if(c(e))return f(e,(function(e){return v(e,t)}));if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(r)?0:r},g=i.toFixed=function(e,t){t=m(t,i.settings.number.precision);var n=Math.pow(10,t);return(Math.round(i.unformat(e)*n)/n).toFixed(t)},h=i.formatNumber=i.format=function(e,t,n,r){if(c(e))return f(e,(function(e){return h(e,t,n,r)}));e=v(e);var o=d(u(t)?t:{precision:t,thousand:n,decimal:r},i.settings.number),a=m(o.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",p=l.length>3?l.length%3:0;return s+(p?l.substr(0,p)+o.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},y=i.formatMoney=function(e,t,n,r,o,a){if(c(e))return f(e,(function(e){return y(e,t,n,r,o,a)}));e=v(e);var s=d(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),m(s.precision),s.thousand,s.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var s=d(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=p(s.format),y=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,w=f(e,(function(e,t){if(c(e))return i.formatColumn(e,s);var n=((e=v(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),m(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n}));return f(w,(function(e,t){return l(e)&&e.length<b?y?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=i),t.accounting=i}()},25630:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),new Promise((function(n){jQuery(document).trigger("Give:onPreGatewayLoad"),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},(function(t){return jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("Give:onGatewayLoadSuccess"),n(t)}))})).then((function(n){jQuery(document).trigger("give_gateway_loaded",[n,jQuery(e).attr("id")]);var r=new CustomEvent("give_gateway_loaded",{detail:{selectedGateway:t,formIdAttribute:jQuery(e).attr("id")}});document.dispatchEvent(r),jQuery(e).unblock()}))}jQuery(document).ready((function(n){Give.form.fn.isFormExist()&&(n(".give-loading-text").hide(),n(".give-form").each((function(e,t){var n,r;t=jQuery(t),(n=Give.form.fn.getNonceInfo(t)).el.attr("data-donor-session")&&(!n.createdInDonorSession&&!Give.donor.fn.hasSession(t)||Give.donor.fn.isLoggedIn())||Give.form.fn.resetAllNonce(t),r=0>(r=1e3*(parseInt(n.el.data("time"))+parseInt(n.el.data("nonce-life")))-Date.now())?r:r+100,window.setTimeout((function(){Give.form.fn.resetAllNonce(t)}),r)}))),n(document).on("click",".give-checkout-login",(function(e){var t=n(this),r=n(this).parents("form"),i=t.parents("div.give-login-account-wrap").find(".give-loading-text"),o={action:t.data("action"),form_id:n(r).find('[name="give-form-id"]').val()};return i.show(),n.post(Give.fn.getGlobalVar("ajaxurl"),o,(function(e){var t=n(r).find("[id^=give-checkout-login-register]");t.length&&parseInt(t.html().trim().length)?n(r).find("[id^=give-checkout-login-register]").html(e):n(r).find('[id^="give_checkout_user_info"]').html(e),n(r).find(".give-submit-button-wrap").hide()})).done((function(){i.hide(),give_fl_trigger()})),!1})),n(document).on("click",".give-checkout-register-cancel",(function(e){e.preventDefault();var t=n(this),r=n(this).parents("form"),i={action:t.data("action"),form_id:n(r).find('[name="give-form-id"]').val()};n.post(Give.fn.getGlobalVar("ajaxurl"),i,(function(e){n(r).find("[id^=give-checkout-login-register]").replaceWith(n.parseJSON(e.fields)),n(r).find("[id^=give-checkout-login-register]").css({display:"block"}),n(r).find(".give-submit-button-wrap").show()})).done((function(){give_fl_trigger()}))})),n(document).on("click","[id^=give-login-fields] input[type=submit]",(function(r){r.preventDefault();var i=n(this).val(),o=n(this).parents("form");n(this).val(Give.fn.getGlobalVar("purchase_loading")),o.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var a={action:"give_process_donation_login",give_ajax:1,give_user_login:o.find("[name=give_user_login]").val(),give_user_pass:o.find("[name=give_user_pass]").val(),give_form_id:o.find("[name=give-form-id]").val()};n.post(Give.fn.getGlobalVar("ajaxurl"),a,(function(r){null!=n.trim(e(r.success))&&1==r.success&&void 0!==e(r.data)?(o.find(".give_errors").remove(),o.find("[id^=give-checkout-login-register]").before(r.data),o.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetAllNonce(o).then((function(e){t(o,o.find(".give-gateway-option-selected input").val())}))):(o.find("[id^=give-login-fields] input[type=submit]").val(i),o.find(".give-loading-animation").fadeOut(),o.find(".give_errors").remove(),o.find("[id^=give-user-login-submit]").before(r.data))}))})),n(document).on("change","select#give-gateway, input.give-gateway",(function(e){e.preventDefault();var r=n(this).val();return"0"==r?(console.log("There was a problem loading the selected gateway"),!1):(t(n(this).parents("form"),r),!1)})),n("body").on("click","#give-confirm-email-btn",(function(e){var t=n(this),r={action:"give_confirm_email_for_donations_access",email:t.data("email"),nonce:Give.fn.getGlobalVar("ajax_vars").ajaxNonce};return t.text(Give.fn.getGlobalVar("loading")),t.attr("disabled","disabled"),n.post(Give.fn.getGlobalVar("ajaxurl"),r,(function(e){"error"===(e=JSON.parse(e)).status?(t.closest("#give_user_history tfoot").hide(),t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),t.hide(),t.closest(".give-security-button-wrap").find("span").show())})),!1})),n("body").on("click",'form.give-form input[name="give-purchase"].give-submit',(function(e){var t=n(this),r=t.parents("form.give-form"),i=r.find('input[type="submit"].give-submit + .give-loading-animation');i.fadeIn();var o=r.get(0);if("function"!=typeof o.checkValidity||!1!==o.checkValidity()){e.preventDefault();var a=n(this).val();n(this).val(Give.fn.getGlobalVar("purchase_loading")),Give.form.fn.disable(r,!0),n.post(Give.fn.getGlobalVar("ajaxurl"),r.serialize()+"&action=give_process_donation&give_ajax=true",(function(e){"success"==n.trim(e)?(r.find(".give_errors").remove(),n(o).submit(),r.trigger("give_form_validation_passed")):(t.val(a),i.fadeOut(),r.find(".give_errors").remove(),r.find('#give_purchase_submit input[type="submit"].give-submit').before(e),Give.form.fn.disable(r,!1))}))}else i.fadeOut()}));var r=document.getElementById("give-receipt");if(r){var i={action:"get_receipt",shortcode_atts:r.getAttribute("data-shortcode"),donation_id:r.getAttribute("data-donation-key"),receipt_type:r.getAttribute("data-receipt-type")};i[Give.fn.getGlobalVar("session_cookie_name")]=Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name")),n.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"GET",data:i,success:function(e){if(r.innerHTML=e,r.parentElement.classList.contains("give-form-templates"))var t=setInterval((function(){window.parentIFrame&&(clearInterval(t),window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"}))}),50)}})}}))},51325:()=>{function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jQuery((function(t){var n=jQuery("form.give-form"),o=t(document),a={forms:{}};t.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),o.on("keyup","#give-first, #give-last, #give-email",(function(e){var t=e.target,n=t.parentElement.closest("form.give-form");if(n){var o=n.getAttribute("id");a.forms=r(r({},a.forms),{},i({},o,r(r({},a.forms[o]),{},i({},t.name,t.value))))}})),o.on("give_gateway_loaded",(function(){for(var t=0,n=Object.entries(a.forms);t<n.length;t++)for(var r=e(n[t],2),i=r[0],o=r[1],s=0,l=Object.entries(o);s<l.length;s++){var c=e(l[s],2),u=c[0],d=c[1],f=document.querySelector("form#".concat(i,' [name="').concat(u,'"]'));f&&(f.value=d)}})),o.on("change","#give_cc_address input.card_state, #give_cc_address select",(function(){var e=t(this),n=e.parents("form");if("card_state"!==e.attr("id")){n.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var r={action:"give_get_states",country:e.val(),field_name:"card_state"};t.ajax({type:"POST",data:r,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var r="",i=e.states_label,a=n.find('input[name="card_state"], select[name="card_state"]'),s=n.find('input[name="card_city"]');void 0!==e.states_found&&!0===e.states_found?r=t(e.data):(r='<input type="text" id="card_state" name="card_state" class="card_state give-input required" placeholder="'.concat(i,'" value="').concat(e.default_state,'" autocomplete="address-level4"/>'),r=t(r)),!1===n.hasClass("float-labels-enabled")?(void 0!==e.states_require&&!0===e.states_require?(r.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find("label .give-required-indicator").removeClass("give-hidden")):(r.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find("label .give-required-indicator").addClass("give-hidden")),void 0!==e.city_require&&!0===e.city_require?(s.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),s.attr("required",!0)):(s.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),s.removeAttr("required"))):(void 0!==e.states_require&&!0===e.states_require?(r.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required")):(r.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required")),void 0!==e.city_require&&!0===e.city_require?(s.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),s.attr("required",!0)):(s.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),s.removeAttr("required"))),a.closest("p").find("label .state-label-text").text(i),a.replaceWith(r),void 0!==e.show_field&&!0===e.show_field?(n.find("p#give-card-state-wrap").removeClass("give-hidden"),n.find("p#give-card-zip-wrap").addClass("form-row-last"),n.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(n.find("p#give-card-state-wrap").addClass("give-hidden"),n.find("p#give-card-zip-wrap").addClass("form-row-wide"),n.find("p#give-card-zip-wrap").removeClass("form-row-last"));var l=!!e.zip_require;n.find("input#card_zip").toggleClass("required",l).attr("required",l).attr("aria-required",l),n.find('label[for="card_zip"] span.give-required-indicator').toggleClass("give-hidden",!l),o.trigger("give_checkout_billing_address_updated",[e,n.attr("id")])}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1})),o.on("give_gateway_loaded",(function(){Give.form.fn.field.formatCreditCard(n)})),o.on("submit","#give_payment_mode",(function(){if(!Give.form.fn.getGateway(t(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1})),o.on("click",'#give-payment-mode-select input[name="payment-mode"]',(function(){var e,n=t(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),t(this).prop("checked",!0),t(this).parent().addClass("give-gateway-option-selected"),e=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+e))})),o.on("focus",".give-donation-amount .give-text-input",(function(e){var n=t(this).parents("form");t(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);t(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),t(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)})),o.on("blur",".give-donation-amount .give-text-input",(function(e,n,r,i){var o=void 0!==n?n:t(this).closest("form"),a=t(this).attr("data-amount"),s=void 0!==r?r:t(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),d=0===s?c:Give.fn.unFormatCurrency(s,l),f=Give.form.fn.formatAmount(d,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===d||0===d){var m=t('.give-donation-levels-wrap [data-default="1"]',n);m.length&&(i=m.data("price-id"),s=d=Give.fn.unFormatCurrency(m.val(),l),f=Give.form.fn.formatAmount(d,o,{}))}if(Give.fn.setCache("amount_"+d,i,o),t(this).val(f),Give.form.fn.isValidDonationAmount(o))t(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,(function(){t(this).remove()})),Give.form.fn.disable(o,!1);else{t(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var p=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===p.length&&d<c?Give.notice.fn.renderNotice("bad_minimum",o):d>=c&&p.slideUp(300,(function(){t(this).remove()})),0===v.length&&d>u?Give.notice.fn.renderNotice("bad_maximum",o):d<=u&&v.slideUp(300,(function(){t(this).remove()}))}a!==d&&o.find(".give-final-total-amount").attr("data-total",d).text(Give.fn.formatCurrency(d,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(t('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(d,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),t(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),t(document).trigger("give_donation_value_updated",[o,d,i])})),o.on("click touchend",".give-donation-level-btn",(function(e){e.preventDefault(),Give.form.fn.autoSetMultiLevel(t(this))})),o.on("click touchend",".give-radio-input-level",(function(e){Give.form.fn.autoSetMultiLevel(t(this))})),o.on("change",".give-select-level",(function(e){Give.form.fn.autoSetMultiLevel(t(this))})),o.on("click",".give_terms_links",(function(e){e.preventDefault();var n=t(this).closest("fieldset");return t("[class^=give_terms-]",n).slideToggle(),t("a.give_terms_links",n).toggle(),!1})),t('label[for^="give-radio-level"]').on("click",(function(e){var n=t(this).closest("form").find("#"+t(this).attr("for"));n.length&&(n.trigger("click"),e.preventDefault())}))})),jQuery(window).on("load",(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",(function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),s=jQuery.payment.cardType(i.val()),l=!1;if("focusout"===e.type)r.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(l)):r.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):r.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);else if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}))}))},31441:(e,t,n)=>{"use strict";n(59211),n(92979),n(57729);var r=n(15303),i=(n(45099),function(e){return new r.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(t){var n=e.parentElement;switch(e.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),t.message.action){case"giveEmbedFormContentLoaded":var r=setTimeout((function(){i()}),400);e.setAttribute("data-contentLoaded","1");var i=function(){clearTimeout(r),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",e.style.visibility="visible",e.style.minHeight="",n.style.height=null};break;case"giveScrollIframeInToView":e.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){var t=e.parentElement;window.top.addEventListener("resize",(function(){e.style.width=window.top.innerWidth+"px"}));var n=!1;window.addEventListener("beforeunload",(function(){n=!0})),e.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(e.scrollIntoView({behavior:"smooth",inline:"nearest"}),e.parentElement.querySelector(".iframe-loader").style.opacity=1,e.parentElement.querySelector(".iframe-loader").style.transition="",e.style.visibility="hidden",t.style.height="700px")})),e.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},e)});const o=window.wp.i18n,a={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},r="undefined"!=typeof commonL10n?commonL10n.dismiss:(0,o.__)("Dismiss this notice.","give");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(r,"</span></button>"):"","</p</div>")}}};var s=n(87757),l=n.n(s);const c={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");r.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(r),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}};function u(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}const d={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.Give.WINDOW_IS_LOADED?Give.form.fn.__sendBackToForm():window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){c.fn.showOverlay(e)},hideProcessingState:function(){c.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;if("nonce"===(e=void 0===e?"data":e))n.find('input[name="give-form-hash"]').val(t);if(void 0!==r&&!r.length)return!1;if("attr"===e)n.attr(r,t);else n.data(r,t);return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,(function(e,t){if(t.amount===r)return i=t.price_id,!1})),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r&&(n=Give.fn.getParameterByName("custom-amount")),t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),"custom"!==r||n?t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r]):t.find(".give-donation-amount .give-text-input").focus()},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=r.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(f=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))}}(l().mark((function e(t){var n,r,i,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=o.length>1&&void 0!==o[1]?o[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return r=e.sent,e.next=9,r.text();case 9:return i=e.sent,e.abrupt("return",i.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.resetDonationButton(e),t&&this.addErrors(e,t)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))}))}}}};var f;const m={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},p={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,r=n.innerHeight/2-126,i=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(e),"&text=").concat(encodeURIComponent(t)),"newwindow","width=560,height=253,top=".concat(r,",left=").concat(i))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,r=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(e)),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(r))}}};var v=n(50743),g=n.n(v),h={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)h[e[t]].init&&h[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:h.form.fn.getInfo("decimal_separator",n),thousand:h.form.fn.getInfo("thousands_separator",n),precision:h.form.fn.getInfo("number_decimals",n),currency:h.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=g().formatNumber(e,{precision:r.precision,decimal:"."}),a=t.precision?".0":"",s="",l="",c="";(o=(o=g().unformat(o,".").toString()).toString()).indexOf(".")>0&&(a=o.substring(o.indexOf("."),o.length)),s=(o=Math.floor(o).toString()).substring(o.length-3),""!==(l=o.substring(0,o.length-3))&&(s=r.thousand+s),i=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,i)+(c.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=g().formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(g().unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?h.cache["form_"+h.form.fn.getInfo("form-id",n)][e]=t:h.cache[e]=t},getCache:function(e,t){var n,r=h.cache["form_"+h.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":h.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:h.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),o=i.length;o-- >0;)-1!==i[o].lastIndexOf(r,0)&&i.splice(o,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};h.notice=a,h.form=d,h.donor=m,h.util=c,h.share=p;const y=h;n(51325),n(25630);var b=n(48880),w=n.n(b);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}jQuery((function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),e(".js-give-grid-modal-launcher").magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide give-modal"}),void 0!==window.csGlobal&&window.jQuery((function(e){window.csGlobal.csHooks.filter("hash_scrolling_allow",(function(t,n){return!e(n).hasClass("give-card")&&t}))})),t.on("click touchend",".give-disabled",(function(e){return e.preventDefault(),!1})),t.on("give_gateway_loaded",(function(e,t,n){give_fl_trigger()})),t.on("give_checkout_billing_address_updated",(function(t,n,r){e("form#"+r).hasClass("float-labels-enabled")&&give_fl_trigger()})),t.on("click",".give-btn-reveal",(function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i="#give-payment-mode-select",o=e(i),a="";return n.hide(),e("li",o).length>1&&(a=i+", "),r.find(a+"#give_purchase_form_wrap").slideDown(),!1})),t.on("click",".give-btn-modal",(function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),r=n.find("form.give-form"),i=r.find("#give-amount"),o=i.val();if(!o||o<=0)return i.focus(),!1;give_open_form_modal(n,r)}));var n=jQuery('.give_notice[data-dismiss-type="auto"]');n.length&&n.each((function(t,n){n=e(n),window.setTimeout((function(){n.slideUp()}),n.data("dismiss-interval"))})),e("body").on("click",".give-notice-close",(function(){e(this).hide(),e(this).closest(".give_notices").slideUp()})),t.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field),window.addEventListener("pageshow",(function(t){if(t.persisted||_("undefined")!==window.performance&&2===window.performance.navigation.type){var n=e("body").find("form.give-form");n.length&&(n[0].reset(),Give.form.fn.resetAllNonce(n))}}))})),window.give_open_form_modal=function(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden, .give-form-title";jQuery.magnificPopup.open({mainClass:Give.fn.getGlobal().magnific_options.main_class,closeOnBgClick:Give.fn.getGlobal().magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){jQuery("body").addClass("give-modal-open");var n=jQuery(".give-form-title",e);if(e.hasClass("give-modal")&&!t.data("content"))n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded");else if(e.hasClass("give-display-button-only")&&!t.data("content")){var r=jQuery(".give-form-content-wrap",e),i=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),a=jQuery(".give_errors",e);r.length&&!jQuery(".give-form-content-wrap",t).length&&(r.hasClass("give_post_form-content")?t.append(r):t.prepend(r)),a.length&&!jQuery(".give_errors",t).length&&a.each((function(e,n){t.prepend(jQuery(n))})),o.length&&!jQuery(">.give_error",t).length&&o.each((function(e,n){t.prepend(jQuery(n))})),i.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(i),n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded")}},open:function(){var r=jQuery(".mfp-content");r.outerWidth()>=500&&r.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),t.children().not(n).show()}}})},window.give_fl_trigger=function(){window.give_float_labels=void 0===window.give_float_labels?{}:window.give_float_labels,window.give_float_labels instanceof w()?window.give_float_labels.rebuild():window.give_float_labels=new(w())(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple], .give-honeypot",prioritize:"placeholder",prefix:"give-fl-",style:"give"})},window.give_change_html5_form_field_validation_message=function(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,(function(t,n){(e=jQuery("input",n)).length&&jQuery.each(e,(function(e,t){t=jQuery(t).get(0),Give.fn.getGlobal().form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(Give.fn.getGlobal().form_translation[t.name])})}))}))},window.update_profile_state_field=function(){var e=jQuery(this),t=e.parents("form");if("give_address_country"===e.attr("id")){t.find("#give_address_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var n={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:n,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var n="",r=e.states_label;n=void 0!==_(e.states_found)&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+r+'" value="'+e.default_state+'"/>',t.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(n),void 0!==_(e.show_field)&&1==e.show_field?(t.find("p#give-card-state-wrap").removeClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-last"),t.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(t.find("p#give-card-state-wrap").addClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-wide"),t.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1};n(69571);function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.addEventListener("load",(function(){window.addDynamicEventListener(document,"click",".give-donor-content__read-more",e.readMoreBtnEvent),window.addDynamicEventListener(document,"click",".give-donor__load_more",e.loadMoreBtnEvent)}),!1),window.addEventListener("load",(function(){e.loadGravatars()}))}var t,r,i;return t=e,i=[{key:"readMoreBtnEvent",value:function(e){return e.preventDefault(),jQuery.magnificPopup.open({items:{src:e.target.parentNode.parentNode.parentNode.getElementsByClassName("give-donor-content__comment")[0],type:"inline"},mainClass:"give-modal give-donor-wall-modal",closeOnBgClick:!1}),!1}},{key:"loadMoreBtnEvent",value:function(t){t.preventDefault();var n=t.target,r=n.parentNode,i=r.getElementsByClassName("give-donor-wall-shortcode-attrs")[0];return jQuery.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"POST",data:{action:"give_get_donor_comments",data:i.getAttribute("data-shortcode"),nonce:i.getAttribute("data-nonce")},beforeSend:function(){n.className+=" give-active",n.setAttribute("disabled","disabled")}}).done((function(t){n.classList.remove("give-active"),n.removeAttribute("disabled","disabled"),t.html.length&&r.getElementsByClassName("give-grid")[0].insertAdjacentHTML("beforeend",t.html),t.shortcode.length&&i.setAttribute("data-shortcode",t.shortcode),t.remaining||n.remove(),e.loadGravatar(i)})),!1}},{key:"loadGravatars",value:function(){Array.from(document.querySelectorAll(".give-donor-wall-shortcode-attrs")).forEach((function(t,n){e.loadGravatar(t)}))}},{key:"loadGravatar",value:function(e){var t,r,i=n(66182);if("1"!==Give.fn.getParameterByName("show_avatar",decodeURIComponent(e.getAttribute("data-shortcode"))))return!1;Array.from(e.parentNode.querySelectorAll(".give-grid__item")).forEach((function(e,n){if(!(t=e.querySelector(".give-donor-container__image")).classList.contains("gravatar-loaded")){if(r=t.getAttribute("data-donor_email"),"1"===t.getAttribute("data-has-valid-gravatar")){var o=document.createElement("IMG"),a=t.getAttribute("data-avatar-size");t.innerHTML="",o.setAttribute("src",i.url(r,{s:2*parseInt(a)})),t.appendChild(o)}t.className+=" gravatar-loaded"}}))}}],(r=null)&&x(t.prototype,r),i&&x(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());const C={targetOrigin:window.location.origin,onReady:function(){document.getElementById("give-receipt")||window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"})},onMessage:function(e){if("currentPage"in e){var t=document.getElementsByName("give-current-url");t.length&&t[0].setAttribute("value",e.currentPage)}}};jQuery((function(){if(document.querySelector("body.give-form-templates"))return!1;document.querySelectorAll(".js-give-embed-form-modal-opener").forEach((function(e){e.addEventListener("click",(function(){var t=document.getElementById(e.getAttribute("data-form-id")),n=t.querySelector('iframe[name="give-embed-form"]'),r=n.getAttribute("data-src");r&&(n.setAttribute("src",r),n.setAttribute("data-src",""),i(n)),document.documentElement.style.overflow="hidden",t.classList.add("modal"),t.classList.remove("is-hide")}))})),document.querySelectorAll(".js-give-embed-form-modal-closer").forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=document.getElementById(e.getAttribute("data-form-id"));document.documentElement.style.overflow="",n.classList.remove("modal"),n.classList.add("is-hide")}))})),document.querySelectorAll(".js-give-grid-modal-launcher").forEach((function(e){e.addEventListener("click",(function(){var t=e.nextElementSibling.firstElementChild,n=document.querySelector(".mfp-wrap.give-modal");n&&n.classList.add("mfp-hide"),t?(jQuery.magnificPopup.close(),t.click()):n&&n.classList.remove("mfp-hide")}))})),document.addEventListener("click",(function(e){(e.target.matches(".modal-inner-wrap")||e.target.matches(".give-embed-form-wrapper.modal"))&&e.target.querySelector(".js-give-embed-form-modal-closer").click()})),document.addEventListener("keydown",(function(e){if(!e.isComposing&&27===e.keyCode){var t=document.querySelector(".give-embed-form-wrapper.modal");if(t){var n=t.getAttribute("id"),r=document.querySelector('.js-give-embed-form-modal-closer[data-form-id="'.concat(n,'"]'));r&&r.click()}}})),window.addEventListener("load",(function(){var e=document.querySelector('.modal-content iframe[data-autoScroll="1"]');if(e){var t=e.parentElement.parentElement.parentElement.getAttribute("id"),n=document.querySelector('.js-give-embed-form-modal-opener[data-form-id="'.concat(t,'"]'));n&&n.click()}}))}));n(67582);window.addEventListener("load",(function(){window.Give.WINDOW_IS_LOADED=!0}));var k=y.init,I=y.fn,E=y.form,O=y.notice,S=y.cache,j=y.donor,T=y.util,A=y.share;window.Give={init:k,fn:I,form:E,notice:O,cache:S,donor:j,util:T,share:A,initializeIframeResize:i},window.iFrameResizer=C},69571:()=>{!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,r,i){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,r),i)}}(window)},45099:()=>{jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+i+'"></span>'),(r=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(r=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(r=r.join(" "),t.removeClass(r),t.append('<i class="'+r+'"></i>'))),t.addClass("hint--top"),15<i?t.addClass("hint--large"):7<i&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,r){n(r=r instanceof jQuery?r:e(r))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},67582:()=>{function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}document.addEventListener("readystatechange",(function(t){if("complete"!==t.target.readyState)return null;var n={};function o(t,n,r){for(var i=function(){var r=e(a[o],2),i=r[0],s=r[1],l=t.querySelector(i),c=l.getAttribute("data-field-name"),u=s[0],d=!1,f=u.operator,m=u.value,p=t.querySelectorAll('[name="'.concat(n,'"]'));if(!!p.length)if(p.forEach((function(e){var n=e.getAttribute("type"),r=e.value;"give-amount"===e.name&&(r=Give.fn.unFormatCurrency(e.value,Give.form.fn.getInfo("decimal_separator",t)),m=Math.abs(parseFloat(m)));var i=function(e,t,n){return{"=":t===n,"!=":t!==n,">":t>n,">=":t>=n,"<":t<n,"<=":t<=n}[e]}(f,r,m);"checkbox"===n?(i&&e.checked&&"="===f||!e.checked&&"!="===f)&&(d=!0):"radio"===n?e.checked&&i&&(d=!0):i&&(d=!0)})),d){var v=l.querySelector('[name="'.concat(c,'"][data-required]'));l.classList.remove("give-hidden"),v&&(v.setAttribute("required",""),v.removeAttribute("data-required"))}else{var g=l.querySelector('[name="'.concat(c,'"][required]'));l.classList.add("give-hidden"),g&&(g.removeAttribute("required"),g.setAttribute("data-required","1"))}},o=0,a=Object.entries(r);o<a.length;o++)i()}function a(e){var t=e.getAttribute("data-id"),o=function(e){var t={};return e.querySelectorAll("[data-field-visibility-conditions]").forEach((function(e){var n=JSON.parse(e.getAttribute("data-field-visibility-conditions")),o=n[0],a='[data-field-name="'.concat(e.getAttribute("data-field-name"),'"]'),s=o.field;(s=document.querySelector('[name="'.concat(s,'"], [name="').concat(s,'[]"]')))&&(t[s.name]=r(r({},t[s.name]),{},i({},a,n)))})),t}(e);t&&Object.keys(o).length&&(n[t]=o)}function s(t){var r=document.querySelector('form.give-form[data-id="'.concat(t,'"')).closest("form.give-form");if(r&&n.hasOwnProperty(t))for(var i=function(){var t=e(s[a],2),n=t[0],i=t[1];document.querySelectorAll('[name = "'.concat(n,'"]')).forEach((function(e){jQuery(e).on("input change blur",o.bind(null,r,n,i))}))},a=0,s=Object.entries(n[t]);a<s.length;a++)i()}!function(){document.querySelectorAll("form.give-form").forEach(a);for(var t=0,r=Object.entries(n);t<r.length;t++){for(var i=e(r[t],2),l=i[0],c=i[1],u=0,d=Object.entries(c);u<d.length;u++){var f=e(d[u],2),m=f[0],p=f[1];o(document.querySelector('form[data-id="'.concat(l,'"]')).closest(".give-form"),m,p)}s(l)}}(),document.addEventListener("give_gateway_loaded",(function(t){var r=document.getElementById(t.detail.formIdAttribute),i=r.getAttribute("data-id");a(r),function(t){var r=t.getAttribute("data-id");if(r&&r in n)for(var i=n[r],a=0,s=Object.entries(i);a<s.length;a++){var l=e(s[a],2),c=l[0],u=l[1];o(document.querySelector('form[data-id="'.concat(r,'"]')).closest(".give-form"),c,u)}}(r),s(i)}))}))},99560:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(l=i)|s>>>32-l,n);var s,l}function s(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function u(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}function d(e,t){var n,r,i,a,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,m=-271733879,p=-1732584194,v=271733878;for(n=0;n<e.length;n+=16)r=f,i=m,a=p,d=v,f=s(f,m,p,v,e[n],7,-680876936),v=s(v,f,m,p,e[n+1],12,-389564586),p=s(p,v,f,m,e[n+2],17,606105819),m=s(m,p,v,f,e[n+3],22,-1044525330),f=s(f,m,p,v,e[n+4],7,-176418897),v=s(v,f,m,p,e[n+5],12,1200080426),p=s(p,v,f,m,e[n+6],17,-1473231341),m=s(m,p,v,f,e[n+7],22,-45705983),f=s(f,m,p,v,e[n+8],7,1770035416),v=s(v,f,m,p,e[n+9],12,-1958414417),p=s(p,v,f,m,e[n+10],17,-42063),m=s(m,p,v,f,e[n+11],22,-1990404162),f=s(f,m,p,v,e[n+12],7,1804603682),v=s(v,f,m,p,e[n+13],12,-40341101),p=s(p,v,f,m,e[n+14],17,-1502002290),f=l(f,m=s(m,p,v,f,e[n+15],22,1236535329),p,v,e[n+1],5,-165796510),v=l(v,f,m,p,e[n+6],9,-1069501632),p=l(p,v,f,m,e[n+11],14,643717713),m=l(m,p,v,f,e[n],20,-373897302),f=l(f,m,p,v,e[n+5],5,-701558691),v=l(v,f,m,p,e[n+10],9,38016083),p=l(p,v,f,m,e[n+15],14,-660478335),m=l(m,p,v,f,e[n+4],20,-405537848),f=l(f,m,p,v,e[n+9],5,568446438),v=l(v,f,m,p,e[n+14],9,-1019803690),p=l(p,v,f,m,e[n+3],14,-187363961),m=l(m,p,v,f,e[n+8],20,1163531501),f=l(f,m,p,v,e[n+13],5,-1444681467),v=l(v,f,m,p,e[n+2],9,-51403784),p=l(p,v,f,m,e[n+7],14,1735328473),f=c(f,m=l(m,p,v,f,e[n+12],20,-1926607734),p,v,e[n+5],4,-378558),v=c(v,f,m,p,e[n+8],11,-2022574463),p=c(p,v,f,m,e[n+11],16,1839030562),m=c(m,p,v,f,e[n+14],23,-35309556),f=c(f,m,p,v,e[n+1],4,-1530992060),v=c(v,f,m,p,e[n+4],11,1272893353),p=c(p,v,f,m,e[n+7],16,-155497632),m=c(m,p,v,f,e[n+10],23,-1094730640),f=c(f,m,p,v,e[n+13],4,681279174),v=c(v,f,m,p,e[n],11,-358537222),p=c(p,v,f,m,e[n+3],16,-722521979),m=c(m,p,v,f,e[n+6],23,76029189),f=c(f,m,p,v,e[n+9],4,-640364487),v=c(v,f,m,p,e[n+12],11,-421815835),p=c(p,v,f,m,e[n+15],16,530742520),f=u(f,m=c(m,p,v,f,e[n+2],23,-995338651),p,v,e[n],6,-198630844),v=u(v,f,m,p,e[n+7],10,1126891415),p=u(p,v,f,m,e[n+14],15,-1416354905),m=u(m,p,v,f,e[n+5],21,-57434055),f=u(f,m,p,v,e[n+12],6,1700485571),v=u(v,f,m,p,e[n+3],10,-1894986606),p=u(p,v,f,m,e[n+10],15,-1051523),m=u(m,p,v,f,e[n+1],21,-2054922799),f=u(f,m,p,v,e[n+8],6,1873313359),v=u(v,f,m,p,e[n+15],10,-30611744),p=u(p,v,f,m,e[n+6],15,-1560198380),m=u(m,p,v,f,e[n+13],21,1309151649),f=u(f,m,p,v,e[n+4],6,-145523070),v=u(v,f,m,p,e[n+11],10,-1120210379),p=u(p,v,f,m,e[n+2],15,718787259),m=u(m,p,v,f,e[n+9],21,-343485551),f=o(f,r),m=o(m,i),p=o(p,a),v=o(v,d);return[f,m,p,v]}function f(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function m(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,r="0123456789abcdef",i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+=r.charAt(t>>>4&15)+r.charAt(15&t);return i}function v(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(d(m(e),8*e.length))}(v(e))}function h(e,t){return function(e,t){var n,r,i=m(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(m(t)),512+8*t.length),f(d(a.concat(r),640))}(v(e),v(t))}function y(e,t,n){return t?n?h(t,e):p(h(t,e)):n?g(e):p(g(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},48880:(e,t)=>{var n;!function(r,i,o){"use strict";var a=function(e,t){this.el_=this.isString_(e)?i.querySelectorAll(e):[e],this.config_=[],this.options_=t,this.selectors_=[],this.init_(),this.destroy=function(){this.loop_((function(e){e.removeEventListener("reset",this.events.reset),this.removeClasses_(e)}),(function(e){this.reset_(e)}))},this.rebuild=function(){this.loop_(null,(function(e){this.floatLabel_(e,!0)}))}};a.prototype={defaults_:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init_:function(){var e=this;e.initEvents_(),e.loop_((function(t,n){var r=e.config_[n].style;t.addEventListener("reset",e.events.reset),t.classList.add(e.prefixed_("form")),r&&t.classList.add(e.prefixed_("style-"+r))}),(function(t){e.floatLabel_(t)}))},initEvents_:function(){var e=this;e.events={blur:e.onBlur_.bind(e),change:e.onInput_.bind(e),focus:e.onFocus_.bind(e),input:e.onInput_.bind(e),reset:e.onReset_.bind(e)}},addRemove_:function(e){return e?"add":"remove"},build_:function(e){var t=this,n=t.getLabel_(e);n&&(e.classList.add(t.prefixed_(e.tagName.toLowerCase())),t.setLabel_(n,e),t.setPlaceholder_(n,e),t.wrapLabel_(n,e),t.handleEvents_(e,"add"),"function"==typeof t.config_[t.current_].customEvent&&t.config_[t.current_].customEvent.call(t,e))},createEl_:function(e,t){var n="string"==typeof e?i.createElement(e):e;for(var r in t=t||{})t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n},extend_:function(){var e=[].slice.call(arguments),t=e[0],n=e.slice(1);return Object.keys(n).forEach((function(e){for(var r in n[e])n[e].hasOwnProperty(r)&&(t[r]=n[e][r])})),t},floatLabel_:function(e,t){var n=this;if(n.isValidField_(e)){if(n.hasParent_(e)){if(!0!==t)return;n.reset_(e)}n.build_(e)}},getLabel_:function(e){var t='label[for="'+e.getAttribute("id")+'"]',n=this.el_[this.current_].querySelectorAll(t);return n.length>1&&(n=e.parentNode.querySelectorAll(t)),1===n.length&&n[0]},getLabelText_:function(e,t){var n=e.textContent.replace("*","").trim(),r=t.getAttribute("placeholder");return(!n||n&&r&&"placeholder"===this.config_[this.current_].prioritize)&&(n=r),n},handleEvents_:function(e,t){var n=this.events;["blur","input","focus"].forEach((function(r){"input"!==r||"file"!==e.type&&"SELECT"!==e.nodeName||(r="change"),e[t+"EventListener"](r,n[r])}))},hasParent_:function(e){return e.parentNode.classList.contains(this.prefixed_("wrap"))},isString_:function(e){return"[object String]"===Object.prototype.toString.call(e)},isValidField_:function(e){var t="INPUT"===e.tagName&&!this.config_[this.current_].inputRegex.test(e.getAttribute("type")),n="SELECT"===e.tagName&&null!==e.getAttribute("multiple");return e.getAttribute("id")&&!t&&!n},loop_:function(e,t){for(var n=this,r=0;r<n.el_.length;++r){if(void 0===n.selectors_[r]){var i=n.extend_({},n.defaults_,n.options_,n.el_[r].getAttribute("data-options")),o=":not("+i.exclude.split(/[\s,]+/).join("):not(")+")";n.selectors_[r]=i.transform.replace(/,/g,o+",")+o,n.config_[r]=i}var a=n.el_[r].querySelectorAll(n.selectors_[r]);n.current_=r,"function"==typeof e&&e.call(n,n.el_[r],r);for(var s=0;s<a.length;++s)"function"==typeof t&&t.call(n,a[s],r)}},onBlur_:function(e){e.target.parentNode.classList.remove(this.prefixed_("has-focus"))},onInput_:function(e){e.target.parentNode.classList[this.addRemove_(e.target.value.length)](this.prefixed_("is-active"))},onFocus_:function(e){e.target.parentNode.classList.add(this.prefixed_("has-focus"))},onReset_:function(){setTimeout(this.resetFields_.bind(this))},prefixed_:function(e){return this.config_[this.current_].prefix+e},removeClasses_:function(e){var t=this.config_[this.current_].prefix,n=e.className.split(" ").filter((function(e){return 0!==e.lastIndexOf(t,0)}));e.className=n.join(" ").trim()},reset_:function(e){var t=this,n=e.parentNode;if(t.hasParent_(e)){for(var r=i.createDocumentFragment();n.firstElementChild;){var o=n.firstElementChild;t.removeClasses_(o),r.appendChild(o)}n.parentNode.replaceChild(r,n),t.resetPlaceholder_(e),t.handleEvents_(e,"remove")}},resetFields_:function(){for(var e=this,t=e.el_[e.current_].querySelectorAll(e.selectors_[e.current_]),n=0;n<t.length;++n)t[n].parentNode.classList[e.addRemove_("SELECT"===t[n].tagName&&""!==t[n].value)](e.prefixed_("is-active"))},resetPlaceholder_:function(e){var t="data-placeholder",n=e.getAttribute(t);null!==n&&(e.removeAttribute(t),e.setAttribute("placeholder",n))},setLabel_:function(e,t){var n=this;e.classList.add(n.prefixed_("label")),e.textContent=n.getLabelText_(e,t),"function"==typeof n.config_[n.current_].customLabel&&(e.textContent=n.config_[n.current_].customLabel.call(n,e,t))},setPlaceholder_:function(e,t){var n=this,r=t.getAttribute("placeholder");"label"!==n.config_[n.current_].prioritize&&r||(r&&t.setAttribute("data-placeholder",r),r=n.getLabelText_(e,t)),"function"==typeof n.config_[n.current_].customPlaceholder&&(r=n.config_[n.current_].customPlaceholder.call(n,r,t,e)),"SELECT"===t.tagName?n.setSelectPlaceholder_(t,r):t.setAttribute("placeholder",r)},setSelectPlaceholder_:function(e,t){var n=e.firstElementChild;n.hasAttribute("value")&&n.value?(e.insertBefore(new Option(t,""),n),!1===e.options[e.selectedIndex].defaultSelected&&(e.selectedIndex=0)):n.setAttribute("value",""),""===n.textContent&&(n.textContent=t)},wrapLabel_:function(e,t){var n=this,r=n.createEl_("div",{class:n.prefixed_("wrap")+" "+n.prefixed_("wrap-"+t.tagName.toLowerCase())});t.value!==o&&t.value.length&&r.classList.add(n.prefixed_("is-active")),(null!==t.getAttribute("required")||t.classList.contains(n.config_[n.current_].requiredClass))&&r.classList.add(n.prefixed_("is-required")),t.parentNode.insertBefore(r,t),r.appendChild(e),r.appendChild(t)}},(n=function(){return a}.apply(t,[]))===o||(e.exports=n)}(window,document)},66182:(e,t,n)=>{e.exports=n(98069)},98069:(e,t,n)=>{var r=n(99560),i=n(17673),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:r(e)}function l(e){var t=i.stringify(function(e){var t={},n={protocol:1,format:1};for(var r in e)n[r]||(t[r]=e[r]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var r="//www.gravatar.com/avatar/";t&&t.cdn?(r=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(r=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var i=l(t);return r+s(e)+i},profile_url:function(e,t,n){var r=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)i=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var i=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=l(t);return i+s(e)+"."+r+o}}},15303:(e,t,n)=>{e.exports=n(49457)},49402:e=>{!function(t){if("undefined"!=typeof window){var n=!0,r="",i=0,o="",a=null,s="",l=!1,c={resize:1,click:1},u=128,d=!0,f=1,m="bodyOffset",p=m,v=!0,g="",h={},y=32,b=null,w=!1,_=!1,x="[iFrameSizer]",C=x.length,k="",I={max:1,min:1,bodyScroll:1,documentElementScroll:1},E="child",O=window.parent,S="*",j=0,T=!1,A=null,M=16,L=1,N="scroll",P=N,G=window,z=function(){oe("onMessage function not defined")},F=function(){},B=function(){},q={height:function(){return oe("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return oe("Custom width calculation function not defined"),document.body.scrollWidth}},D={},R=!1;try{var Q=Object.create({},{passive:{get:function(){R=!0}}});window.addEventListener("test",ee,Q),window.removeEventListener("test",ee,Q)}catch(e){}var U,H,V,W,$,K,Y,J={bodyOffset:function(){return document.body.offsetHeight+ge("marginTop")+ge("marginBottom")},offset:function(){return J.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return q.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ye(J))},min:function(){return Math.min.apply(null,ye(J))},grow:function(){return J.max()},lowestElement:function(){return Math.max(J.bodyOffset()||J.documentElementOffset(),he("bottom",we()))},taggedElement:function(){return be("bottom","data-iframe-height")}},Z={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return q.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(Z.bodyScroll(),Z.documentElementScroll())},max:function(){return Math.max.apply(null,ye(Z))},min:function(){return Math.min.apply(null,ye(Z))},rightMostElement:function(){return he("right",we())},taggedElement:function(){return be("right","data-iframe-width")}},X=(U=_e,$=null,K=0,Y=function(){K=Date.now(),$=null,W=U.apply(H,V),$||(H=V=null)},function(){var e=Date.now();K||(K=e);var t=M-(e-K);return H=this,V=arguments,t<=0||t>M?($&&(clearTimeout($),$=null),K=e,W=U.apply(H,V),$||(H=V=null)):$||($=setTimeout(Y,t)),W});te(window,"message",(function(t){var n={init:function(){g=t.data,O=t.source,ae(),d=!1,setTimeout((function(){v=!1}),u)},reset:function(){v?ie("Page reset ignored by init"):(ie("Page size reset by host page"),ke("resetPage"))},resize:function(){xe("resizeParent","Parent window requested size check")},moveToAnchor:function(){h.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();ie("PageInfoFromParent called from parent: "+e),B(JSON.parse(e)),ie(" --")},message:function(){var e=i();ie("onMessage called from parent: "+e),z(JSON.parse(e)),ie(" --")}};function r(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function o(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var i=r();i in n?n[i]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||o()||oe("Unexpected message ("+t.data+")")}x===(""+t.data).substr(0,C)&&(!1===d?a():o()?n.init():ie('Ignored message of type "'+r()+'". Received before initialization.'))})),te(window,"readystatechange",Oe),Oe()}function ee(){}function te(e,t,n,r){e.addEventListener(t,n,!!R&&(r||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function re(e){return x+"["+k+"] "+e}function ie(e){w&&"object"==typeof window.console&&console.log(re(e))}function oe(e){"object"==typeof window.console&&console.warn(re(e))}function ae(){var e;!function(){function e(e){return"true"===e}var a=g.substr(C).split(":");k=a[0],i=t!==a[1]?Number(a[1]):i,l=t!==a[2]?e(a[2]):l,w=t!==a[3]?e(a[3]):w,y=t!==a[4]?Number(a[4]):y,n=t!==a[6]?e(a[6]):n,o=a[7],p=t!==a[8]?a[8]:p,r=a[9],s=a[10],j=t!==a[11]?Number(a[11]):j,h.enable=t!==a[12]&&e(a[12]),E=t!==a[13]?a[13]:E,P=t!==a[14]?a[14]:P,_=t!==a[15]?Boolean(a[15]):_}(),ie("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;ie("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(se,e),z="onMessage"in e?e.onMessage:z,F="onReady"in e?e.onReady:F,S="targetOrigin"in e?e.targetOrigin:S,p="heightCalculationMethod"in e?e.heightCalculationMethod:p,P="widthCalculationMethod"in e?e.widthCalculationMethod:P}function t(e,t){return"function"==typeof e&&(ie("Setup custom "+t+"CalcMethod"),q[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),p=t(p,"height"),P=t(P,"width"));ie("TargetOrigin for parent set to: "+S)}(),function(){t===o&&(o=i+"px");le("margin",function(e,t){-1!==t.indexOf("-")&&(oe("Negative CSS value ignored for "+e),t="");return t}("margin",o))}(),le("background",r),le("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),fe(),me(),document.documentElement.style.height="",document.body.style.height="",ie('HTML & body height set to "auto"'),ie("Enable public methods"),G.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,pe()):!1===e&&!0===n&&(n=!1,ue("remove"),null!==a&&a.disconnect(),clearInterval(b)),Ee(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Ee(0,0,"close")},getId:function(){return k},getPageInfo:function(e){"function"==typeof e?(B=e,Ee(0,0,"pageInfo")):(B=function(){},Ee(0,0,"pageInfoStop"))},moveToAnchor:function(e){h.findTarget(e)},reset:function(){Ie("parentIFrame.reset")},scrollTo:function(e,t){Ee(t,e,"scrollTo")},scrollToOffset:function(e,t){Ee(t,e,"scrollToOffset")},sendMessage:function(e,t){Ee(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){p=e,fe()},setWidthCalculationMethod:function(e){P=e,me()},setTargetOrigin:function(e){ie("Set targetOrigin: "+e),S=e},size:function(e,t){xe("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){if(!0!==_)return;function e(e){Ee(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){ie("Add event listener: "+n),te(window.document,t,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}(),pe(),h=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),r=e();return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function r(e){function r(e){var t=n(e);ie("Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),Ee(t.y,t.x,"scrollToOffset")}var i=e.split("#")[1]||e,o=decodeURIComponent(i),a=document.getElementById(o)||document.getElementsByName(o)[0];t!==a?r(a):(ie("In page link (#"+i+") not found in iFrame, so sending to parent"),Ee(0,0,"inPageLink","#"+i))}function i(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&r(t)}function o(){function e(e){function t(e){e.preventDefault(),r(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&te(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){te(window,"hashchange",i)}function s(){setTimeout(i,u)}function l(){Array.prototype.forEach&&document.querySelectorAll?(ie("Setting up location.hash handlers"),o(),a(),s()):oe("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}h.enable?l():ie("In page linking not enabled");return{findTarget:r}}(),xe("init","Init message from host page"),F()}function se(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],oe("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function le(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,ie("Body "+e+' set to "'+n+'"'))}function ce(e){var t={add:function(t){function n(){xe(e.eventName,e.eventType)}D[t]=n,te(window,t,n,{passive:!0})},remove:function(e){var t,n,r,i=D[e];delete D[e],t=window,n=e,r=i,t.removeEventListener(n,r,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),ie(ne(e.method)+" event listener: "+e.eventType)}function ue(e){ce({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ce({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ce({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ce({method:e,eventType:"Input",eventName:"input"}),ce({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ce({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ce({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ce({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ce({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ce({method:e,eventType:"Touch Start",eventName:"touchstart"}),ce({method:e,eventType:"Touch End",eventName:"touchend"}),ce({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ce({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ce({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ce({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===E&&ce({method:e,eventType:"IFrame Resized",eventName:"resize"})}function de(e,t,n,r){return t!==e&&(e in n||(oe(e+" is not a valid option for "+r+"CalculationMethod."),e=t),ie(r+' calculation method set to "'+e+'"')),e}function fe(){p=de(p,m,J,"height")}function me(){P=de(P,N,Z,"width")}function pe(){var e;!0===n?(ue("add"),e=0>y,window.MutationObserver||window.WebKitMutationObserver?e?ve():a=function(){function e(e){function t(e){!1===e.complete&&(ie("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",o,!1),l.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){l.splice(l.indexOf(e),1)}function n(e){ie("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",o,!1),t(e)}function r(e,t,r){n(e.target),xe(t,r+": "+e.target.src)}function i(e){r(e,"imageLoad","Image loaded")}function o(e){r(e,"imageLoadFailed","Image load failed")}function a(t){xe("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function s(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return u=new c(a),ie("Create body MutationObserver"),u.observe(e,t),u}var l=[],c=window.MutationObserver||window.WebKitMutationObserver,u=s();return{disconnect:function(){"disconnect"in u&&(ie("Disconnect body MutationObserver"),u.disconnect(),l.forEach(n))}}}():(ie("MutationObserver not supported in this browser!"),ve())):ie("Auto Resize disabled")}function ve(){0!==y&&(ie("setInterval: "+y+"ms"),b=setInterval((function(){xe("interval","setInterval: "+y)}),Math.abs(y)))}function ge(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function he(e,t){for(var n=t.length,r=0,i=0,o=ne(e),a=Date.now(),s=0;s<n;s++)(r=t[s].getBoundingClientRect()[e]+ge("margin"+o,t[s]))>i&&(i=r);return a=Date.now()-a,ie("Parsed "+n+" HTML elements"),ie("Element position calculated in "+a+"ms"),function(e){e>M/2&&ie("Event throttle increased to "+(M=2*e)+"ms")}(a),i}function ye(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function be(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(oe("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),he(e,n)}function we(){return document.querySelectorAll("body *")}function _e(e,n,r,i){var o,a;!function(){function e(e,t){return!(Math.abs(e-t)<=j)}return o=t!==r?r:J[p](),a=t!==i?i:Z[P](),e(f,o)||l&&e(L,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(p in I||l&&P in I)?Ie(n):e in{interval:1}||ie("No change in size detected"):(Ce(),Ee(f=o,L=a,e))}function xe(e,t,n,r){T&&e in c?ie("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ie("Trigger event: "+t),"init"===e?_e(e,t,n,r):X(e,t,n,r))}function Ce(){T||(T=!0,ie("Trigger event lock on")),clearTimeout(A),A=setTimeout((function(){T=!1,ie("Trigger event lock off"),ie("--")}),u)}function ke(e){f=J[p](),L=Z[P](),Ee(f,L,e)}function Ie(e){var t=p;p=m,ie("Reset trigger event: "+e),Ce(),ke("reset"),p=t}function Ee(e,n,r,i,o){var a;t===o?o=S:ie("Message targetOrigin: "+o),ie("Sending message to host page ("+(a=k+":"+e+":"+n+":"+r+(t!==i?":"+i:""))+")"),O.postMessage(x+a,o)}function Oe(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},46702:(e,t)=>{var n,r,i;!function(o){if("undefined"!=typeof window){var a,s=0,l=!1,c=!1,u="message".length,d="[iFrameSizer]",f=d.length,m=null,p=window.requestAnimationFrame,v={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},h=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){O("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){D(n,e)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")),r=[],(i="function"==typeof(n=V)?n.apply(t,r):n)===o||(e.exports=i),window.iFrameResize=window.iFrameResize||V()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function _(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function C(e){return d+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function k(e){return g[e]?g[e].log:l}function I(e,t){S("log",e,t,k(e))}function E(e,t){S("info",e,t,k(e))}function O(e,t){S("warn",e,t,!0)}function S(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](C(t),n)}function j(e){function t(){i("Height"),i("Width"),F((function(){z(A),N(D),v("onResized",A)}),A,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function r(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function i(e){var t=Number(g[D]["max"+e]),n=Number(g[D]["min"+e]),r=e.toLowerCase(),i=Number(A[r]);I(D,"Checking "+r+" is in range "+n+"-"+t),i<n&&(i=n,I(D,"Set "+r+" to min value")),i>t&&(i=t,I(D,"Set "+r+" to max value")),A[r]=""+i}function o(e){return j.substr(j.indexOf(":")+u+e)}function a(e,t){var n,r,i;n=function(){var n,r;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=A.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},r=32,b[i=t]||(b[i]=setTimeout((function(){b[i]=null,n()}),r))}function s(e){var t=e.getBoundingClientRect();return L(D),{x:Math.floor(Number(t.left)+Number(m.x)),y:Math.floor(Number(t.top)+Number(m.y))}}function l(e){var t=e?s(A.iframe):{x:0,y:0},n={x:Number(A.width)+t.x,y:Number(A.height)+t.y};I(D,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):O(D,"Unable to scroll to requested position, window.parentIFrame not found"):(m=n,c(),I(D,"--"))}function c(){!1!==v("onScroll",m)?N(D):P()}function p(e){var t={};if(0===Number(A.width)&&0===Number(A.height)){var n=o(9).split(":");t={x:n[1],y:n[0]}}else t={x:A.width,y:A.height};v(e,{iframe:A.iframe,screenX:Number(t.x),screenY:Number(t.y),type:A.type})}function v(e,t){return T(D,e,t)}var h,y,w,C,k,S,j=e.data,A={},D=null;"[iFrameResizerChild]Ready"===j?function(){for(var e in g)B("iFrame requested init",q(e),g[e].iframe,e)}():d===(""+j).substr(0,f)&&j.substr(f).split(":")[0]in g?(w=j.substr(f).split(":"),C=w[1]?parseInt(w[1],10):0,k=g[w[0]]&&g[w[0]].iframe,S=getComputedStyle(k),A={iframe:k,id:w[0],height:C+n(S)+r(S),width:w[2],type:w[3]},D=A.id,g[D]&&(g[D].loaded=!0),(y=A.type in{true:1,false:1,undefined:1})&&I(D,"Ignoring init message from meta parent page"),!y&&function(e){var t=!0;return g[e]||(t=!1,O(A.type+" No settings for "+e+". Message was: "+j)),t}(D)&&(I(D,"Received: "+j),h=!0,null===A.iframe&&(O(D,"IFrame ("+A.id+") not found"),h=!1),h&&function(){var t,n=e.origin,r=g[D]&&g[D].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(I(D,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=g[D]&&g[D].remoteHost,I(D,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+A.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(g[D]&&g[D].firstRun&&g[D]&&(g[D].firstRun=!1),A.type){case"close":M(A.iframe);break;case"message":u=o(6),I(D,"onMessage passed: {iframe: "+A.iframe.id+", message: "+u+"}"),v("onMessage",{iframe:A.iframe,message:JSON.parse(u)}),I(D,"--");break;case"mouseenter":p("onMouseEnter");break;case"mouseleave":p("onMouseLeave");break;case"autoResize":g[D].autoResize=JSON.parse(o(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":a(g[D]&&g[D].iframe,D),function(){function e(e,r){function i(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){I(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",x)}var n=D;e("Add ",_),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[D]&&g[D].stopPageInfo&&(g[D].stopPageInfo(),delete g[D].stopPageInfo);break;case"inPageLink":n=o(9).split("#")[1]||"",r=decodeURIComponent(n),(i=document.getElementById(r)||document.getElementsByName(r)[0])?(e=s(i),I(D,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),m={x:e.x,y:e.y},c(),I(D,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):I(D,"In page link #"+n+" not found and window.parentIFrame not found"):I(D,"In page link #"+n+" not found");break;case"reset":G(A);break;case"init":t(),v("onInit",A.iframe);break;default:0===Number(A.width)&&0===Number(A.height)?O("Unsupported message received ("+A.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e,n,r,i,u}())):E(D,"Ignored: "+j)}function T(e,t,n){var r=null,i=null;if(g[e]){if("function"!=typeof(r=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");i=r(n)}return i}function A(e){var t=e.id;delete g[t]}function M(e){var t=e.id;if(!1!==T(t,"onClose",t)){I(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){O(e)}T(t,"onClosed",t),I(t,"--"),A(e)}else I(t,"Close iframe cancelled by onClose event")}function L(e){null===m&&I(e,"Get page position: "+(m={x:window.pageXOffset!==o?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==o?window.pageYOffset:document.documentElement.scrollTop}).x+","+m.y)}function N(e){null!==m&&(window.scrollTo(m.x,m.y),I(e,"Set page position: "+m.x+","+m.y),P())}function P(){m=null}function G(e){I(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),L(e.id),F((function(){z(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function z(e){function t(t){c||"0"!==e[t]||(c=!0,I(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}function n(e){return null!==e.offsetParent}g[e]&&n(g[e].iframe)&&(t("height")||t("width"))&&B("Visibility change","resize",g[e].iframe,e)}Object.keys(g).forEach((function(t){e(t)}))}function t(t){I("window","Mutation observed: "+t[0].target+" "+t[0].type),R(e,16)}function n(){var e=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new r(t).observe(e,n)}var r=w();r&&n()}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",I(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):I("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;g[r]&&(g[r].sizeHeight&&n("height"),g[r].sizeWidth&&n("width"))}function F(e,t,n){n!==t.type&&p&&!window.jasmine?(I(t.id,"Requesting animation frame"),p(e)):e()}function B(e,t,n,r,i){var o,a=!1;r=r||n.id,g[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=g[r]&&g[r].targetOrigin,I(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(d+t,o)):O(r,"["+e+"] IFrame("+r+") not found"),i&&g[r]&&g[r].warningTimeout&&(g[r].msgTimeout=setTimeout((function(){!g[r]||g[r].loaded||a||(a=!0,O(r,"IFrame has not responded within "+g[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),g[r].warningTimeout)))}function q(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod+":"+g[e].mouseEvents}function D(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],O(a,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var r,i,a=function(n){var r;return""===n&&(e.id=(r=t&&t.id||y.id+s++,null!==document.getElementById(r)&&(r+=s++),n=r),l=(t||{}).log,I(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);a in g&&"iFrameResizer"in e?O(a,"Ignored iFrame, already setup."):(!function(t){var r;t=t||{},g[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in y)Object.prototype.hasOwnProperty.call(y,t)&&(g[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:y[t])}(t),g[a]&&(g[a].targetOrigin=!0===g[a].checkOrigin?""===(r=g[a].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*")}(t),function(){switch(I(a,"IFrame scrolling "+(g[a]&&g[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(g[a]&&g[a].scrolling)?"hidden":"auto",g[a]&&g[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[a]?g[a].scrolling:"no"}}(),function(){function t(t){var n=g[a][t];1/0!==n&&0!==n&&(e.style[t]="number"==typeof n?n+"px":n,I(a,"Set "+t+" = "+e.style[t]))}function n(e){if(g[a]["min"+e]>g[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[a]&&g[a].bodyMargin)&&"0"!==(g[a]&&g[a].bodyMargin)||(g[a].bodyMarginV1=g[a].bodyMargin,g[a].bodyMargin=g[a].bodyMargin+"px"),r=q(a),(i=w())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&M(e)}))}))})).observe(e.parentNode,{childList:!0})}(i),_(e,"load",(function(){var t,n;B("iFrame.onload",r,e,o,!0),t=g[a]&&g[a].firstRun,n=g[a]&&g[a].heightCalculationMethod in v,!t&&n&&G({iframe:e,height:0,width:0,type:"init"})})),B("init",r,e,o,!0),g[a]&&(g[a].iframe.iFrameResizer={close:M.bind(null,g[a].iframe),removeListeners:A.bind(null,g[a].iframe),resize:B.bind(null,"Window resize","resize",g[a].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,g[a].iframe,a)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),g[a].iframe,a)}}))}function R(e,t){null===h&&(h=setTimeout((function(){h=null,e()}),t))}function Q(){"hidden"!==document.visibilityState&&(I("document","Trigger event: Visiblity change"),R((function(){U("Tab Visable","resize")}),16))}function U(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&B(e,t,g[n].iframe,n)}))}function H(){_(window,"message",j),_(window,"resize",(function(){var e;I("window","Trigger event: "+(e="resize")),R((function(){U("Window "+e,"resize")}),16)})),_(document,"visibilitychange",Q),_(document,"-webkit-visibilitychange",Q)}function V(){function e(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),D(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!p;e+=1)p=window[t[e]+"RequestAnimationFrame"];p?p=p.bind(window):I("setup","RequestAnimationFrame not supported")}(),H(),function(n,r){switch(t=[],function(e){e&&e.enablePublicMethods&&O("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),e.bind(o,n));break;case"object":e(n,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return t}}}()},49457:(e,t,n)=>{var r=n(46702);t.iframeResize=r,n(49402)},59211:function(){(function(){var e,t,n,r,i,o,a,s,l,c,u,d,f,m,p,v,g,h,y,b,w,_,x,C,k=[].slice,I=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};(e=window.jQuery||window.Zepto||window.$).payment={},e.payment.fn={},e.fn.payment=function(){var t,n;return n=arguments[0],t=2<=arguments.length?k.call(arguments,1):[],e.payment.fn[n].apply(this,t)},i=/(\d{1,4})/g,e.payment.cards=r=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:i,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:i,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:i,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:i,length:[16],cvcLength:[3],luhn:!0}],t=function(e){var t,n,i,o,a,s,l;for(e=(e+"").replace(/\D/g,""),i=0,a=r.length;i<a;i++)for(o=0,s=(l=(t=r[i]).patterns).length;o<s;o++)if(n=l[o]+"",e.substr(0,n.length)===n)return t},n=function(e){var t,n,i;for(n=0,i=r.length;n<i;n++)if((t=r[n]).type===e)return t},f=function(e){var t,n,r,i,o,a;for(r=!0,i=0,o=0,a=(n=(e+"").split("").reverse()).length;o<a;o++)t=n[o],t=parseInt(t,10),(r=!r)&&(t*=2),t>9&&(t-=9),i+=t;return i%10==0},d=function(e){var t;return null!=e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)||!document.selection.createRange().text)},x=function(e,t){var n,r,i,o,a;try{r=t.prop("selectionStart")}catch(e){e,r=null}if(o=t.val(),t.val(e),null!==r&&t.is(":focus"))return r===o.length&&(r=e.length),o!==e&&(a=o.slice(r-1,+r+1||9e9),n=e.slice(r-1,+r+1||9e9),i=e[r],/\d/.test(i)&&a===i+" "&&n===" "+i&&(r+=1)),t.prop("selectionStart",r),t.prop("selectionEnd",r)},h=function(e){var t,n,r,i,o,a;for(null==e&&(e=""),"0123456789","0123456789",i="",o=0,a=(t=e.split("")).length;o<a;o++)n=t[o],(r="0123456789".indexOf(n))>-1&&(n="0123456789"[r]),i+=n;return i},g=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,""),x(e,n)}))},p=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var t;return t=n.val(),t=h(t),t=e.payment.formatCardNumber(t),x(t,n)}))},s=function(n){var r,i,o,a,s,l,c;if(o=String.fromCharCode(n.which),/^\d+$/.test(o)&&(r=e(n.currentTarget),c=r.val(),i=t(c+o),a=(c.replace(/\D/g,"")+o).length,l=16,i&&(l=i.length[i.length.length-1]),!(a>=l||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==c.length)))return(s=i&&"amex"===i.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(c)?(n.preventDefault(),setTimeout((function(){return r.val(c+" "+o)}))):s.test(c+o)?(n.preventDefault(),setTimeout((function(){return r.val(c+o+" ")}))):void 0},o=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d\s$/,""))}))):/\s\d?$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d$/,""))}))):void 0},v=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var t;return t=n.val(),t=h(t),t=e.payment.formatExpiry(t),x(t,n)}))},l=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return n=e(t.currentTarget),i=n.val()+r,/^\d$/.test(i)&&"0"!==i&&"1"!==i?(t.preventDefault(),setTimeout((function(){return n.val("0"+i+" / ")}))):/^\d\d$/.test(i)?(t.preventDefault(),setTimeout((function(){var e,t;return e=parseInt(i[0],10),(t=parseInt(i[1],10))>2&&0!==e?n.val("0"+e+" / "+t):n.val(i+" / ")}))):void 0},c=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return i=(n=e(t.currentTarget)).val(),/^\d\d$/.test(i)?n.val(i+" / "):void 0},u=function(t){var n,r,i;if("/"===(i=String.fromCharCode(t.which))||" "===i)return r=(n=e(t.currentTarget)).val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0},a=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s\/\s$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d\s\/\s$/,""))}))):void 0},m=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,"").slice(0,4),x(e,n)}))},_=function(e){var t;return!(!e.metaKey&&!e.ctrlKey)||32!==e.which&&(0===e.which||(e.which<33||(t=String.fromCharCode(e.which),!!/[\d\s]/.test(t))))},b=function(n){var r,i,o,a;if(r=e(n.currentTarget),o=String.fromCharCode(n.which),/^\d+$/.test(o)&&!d(r))return a=(r.val()+o).replace(/\D/g,""),(i=t(a))?a.length<=i.length[i.length.length-1]:a.length<=16},w=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!d(n))return!((n.val()+r).replace(/\D/g,"").length>6)&&void 0},y=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!d(n))return(n.val()+r).length<=4},C=function(t){var n,i,o,a,s;if(s=(n=e(t.currentTarget)).val(),a=e.payment.cardType(s)||"unknown",!n.hasClass(a))return i=function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)o=r[e],n.push(o.type);return n}(),n.removeClass("unknown"),n.removeClass(i.join(" ")),n.addClass(a),n.toggleClass("identified","unknown"!==a),n.trigger("payment.cardType",a)},e.payment.fn.formatCardCVC=function(){return this.on("keypress",_),this.on("keypress",y),this.on("paste",m),this.on("change",m),this.on("input",m),this},e.payment.fn.formatCardExpiry=function(){return this.on("keypress",_),this.on("keypress",w),this.on("keypress",l),this.on("keypress",u),this.on("keypress",c),this.on("keydown",a),this.on("change",v),this.on("input",v),this},e.payment.fn.formatCardNumber=function(){return this.on("keypress",_),this.on("keypress",b),this.on("keypress",s),this.on("keydown",o),this.on("keyup",C),this.on("paste",p),this.on("change",p),this.on("input",p),this.on("input",C),this},e.payment.fn.restrictNumeric=function(){return this.on("keypress",_),this.on("paste",g),this.on("change",g),this.on("input",g),this},e.payment.fn.cardExpiryVal=function(){return e.payment.cardExpiryVal(e(this).val())},e.payment.cardExpiryVal=function(e){var t,n,r;return t=(r=e.split(/[\s\/]+/,2))[0],2===(null!=(n=r[1])?n.length:void 0)&&/^\d+$/.test(n)&&(n=(new Date).getFullYear().toString().slice(0,2)+n),{month:t=parseInt(t,10),year:n=parseInt(n,10)}},e.payment.validateCardNumber=function(e){var n,r;return e=(e+"").replace(/\s+|-/g,""),!!/^\d+$/.test(e)&&(!!(n=t(e))&&(r=e.length,I.call(n.length,r)>=0&&(!1===n.luhn||f(e))))},e.payment.validateCardExpiry=function(t,n){var r,i,o;return"object"==typeof t&&"month"in t&&(t=(o=t).month,n=o.year),!(!t||!n)&&(t=e.trim(t),n=e.trim(n),!!/^\d+$/.test(t)&&(!!/^\d+$/.test(n)&&(1<=t&&t<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(i=new Date(n,t),r=new Date,i.setMonth(i.getMonth()-1),i.setMonth(i.getMonth()+1,1),i>r)))))},e.payment.validateCardCVC=function(t,r){var i,o;return t=e.trim(t),!!/^\d+$/.test(t)&&(null!=(i=n(r))?(o=t.length,I.call(i.cvcLength,o)>=0):t.length>=3&&t.length<=4)},e.payment.cardType=function(e){var n;return e&&(null!=(n=t(e))?n.type:void 0)||null},e.payment.formatCardNumber=function(n){var r,i,o,a;return n=n.replace(/\D/g,""),(r=t(n))?(o=r.length[r.length.length-1],n=n.slice(0,o),r.format.global?null!=(a=n.match(r.format))?a.join(" "):void 0:null!=(i=r.format.exec(n))?(i.shift(),(i=e.grep(i,(function(e){return e}))).join(" ")):void 0):n},e.payment.formatExpiry=function(e){var t,n,r,i;return(n=e.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(t=n[1]||"",r=n[2]||"",(i=n[3]||"").length>0?r=" / ":" /"===r?(t=t.substring(0,1),r=""):2===t.length||r.length>0?r=" / ":1===t.length&&"0"!==t&&"1"!==t&&(t="0"+t,r=" / "),t+r+i):""}}).call(this)},26060:()=>{},55952:()=>{},72751:()=>{},63293:()=>{},61394:()=>{},43729:()=>{},88496:()=>{},59707:()=>{},91486:()=>{},83908:()=>{},35058:()=>{},79977:()=>{},55755:()=>{},57729:(e,t,n)=>{var r,i,o;i=[n(19567)],r=function(e){var t,n,r,i,o,a,s="Close",l="BeforeClose",c="AfterClose",u="BeforeAppend",d="MarkupParse",f="Open",m="Change",p="mfp",v="."+p,g="mfp-ready",h="mfp-removing",y="mfp-prevent-close",b=function(){},w=!!window.jQuery,_=e(window),x=function(e,n){t.ev.on(p+e+v,n)},C=function(t,n,r,i){var o=document.createElement("div");return o.className="mfp-"+t,r&&(o.innerHTML=r),i?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},k=function(n,r){t.ev.triggerHandler(p+n,r),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(r)?r:[r]))},I=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},E=function(){e.magnificPopup.instance||((t=new b).init(),e.magnificPopup.instance=t)},O=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=O(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),r=e(document),t.popupsCache={}},open:function(n){var i;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(i=0;i<s.length;i++)if((a=s[i]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=i;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],o="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=r,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=C("bg").on("click"+v,(function(){t.close()})),t.wrap=C("wrap").attr("tabindex",-1).on("click"+v,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=C("container",t.wrap)),t.contentContainer=C("content"),t.st.preloader&&(t.preloader=C("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(i=0;i<l.length;i++){var c=l[i];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(d,(function(e,t,n,r){n.close_replaceWith=I(r.type)})),o+=" mfp-close-btn-in"):t.wrap.append(I())),t.st.alignTop&&(o+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:_.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:r.height(),position:"absolute"}),t.st.enableEscapeKey&&r.on("keyup"+v,(function(e){27===e.keyCode&&t.close()})),_.on("resize"+v,(function(){t.updateSize()})),t.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&t.wrap.addClass(o);var u=t.wH=_.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(u)){var p=t._getScrollbarSize();p&&(m.marginRight=p)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),k("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(g),t._setFocus()):t.bgOverlay.addClass(g),r.on("focusin"+v,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(u),k(f),n}t.updateItemHTML()},close:function(){t.isOpen&&(k(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){k(s);var n=h+" "+g+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}r.off("keyup"+v+" focusin"+v),t.ev.off(v),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*n;t.wrap.css("height",r),t.wH=r}else t.wH=e||_.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var r=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=n,!t.currTemplate[r]){var o=!!t.st[r]&&t.st[r].markup;k("FirstMarkupParse",o),t.currTemplate[r]=!o||e(o)}i&&i!==n.type&&t.container.removeClass("mfp-"+i+"-holder");var a=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](n,t.currTemplate[r]);t.appendContent(a,r),n.preloaded=!0,k(m,n),i=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(I()):t.content=e:t.content="",k(u),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var r,i=t.items[n];if(i.tagName?i={el:e(i)}:(r=i.type,i={data:i,src:i.src}),i.el){for(var o=t.types,a=0;a<o.length;a++)if(i.el.hasClass("mfp-"+o[a])){r=o[a];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=r||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,k("ElementParse",i),t.items[n]},addGroup:function(e,n){var r=function(r){r.mfpEl=this,t._openClick(r,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,r)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,r):(n.items=e,e.off(i).on(i,r)))},_openClick:function(n,r,i){if((void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var o=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(o)if(e.isFunction(o)){if(!o.call(t))return!0}else if(_.width()<o)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=r.find(i.delegate)),t.open(i)}},updateStatus:function(e,r){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),r||"loading"!==e||(r=t.st.tLoading);var i={status:e,text:r};k("UpdateStatus",i),e=i.status,r=i.text,t.preloader.html(r),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var r=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(r&&i)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(r)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?r.height():document.body.scrollHeight)>(e||_.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,r){var i;r.data&&(n=e.extend(r.data,n)),k(d,[t,n,r]),e.each(n,(function(n,r){if(void 0===r||!1===r)return!0;if((i=n.split("_")).length>1){var o=t.find(v+"-"+i[0]);if(o.length>0){var a=i[1];"replaceWith"===a?o[0]!==r[0]&&o.replaceWith(r):"img"===a?o.is("img")?o.attr("src",r):o.replaceWith(e("<img>").attr("src",r).attr("class",o.attr("class"))):o.attr(i[1],r)}}else t.find(v+"-"+n).html(r)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,n){return E(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){E();var r=e(this);if("string"==typeof n)if("open"===n){var i,o=w?r.data("magnificPopup"):r[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?i=o.items[a]:(i=r,o.delegate&&(i=i.find(o.delegate)),i=i.eq(a)),t._openClick({mfpEl:i},r,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?r.data("magnificPopup",n):r[0].magnificPopup=n,t.addGroup(r,n);return r};var S,j,T,A="inline",M=function(){T&&(j.after(T.addClass(S)).detach(),T=null)};e.magnificPopup.registerModule(A,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(A),x(s+"."+A,(function(){M()}))},getInline:function(n,r){if(M(),n.src){var i=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(j||(S=i.hiddenClass,j=C(S),S="mfp-"+S),T=o.after(j).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(r,{},n),r}}});var L,N="ajax",P=function(){L&&e(document.body).removeClass(L)},G=function(){P(),t.req&&t.req.abort()};e.magnificPopup.registerModule(N,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(N),L=t.st.ajax.cursor,x(s+"."+N,G),x("BeforeChange."+N,G)},getAjax:function(n){L&&e(document.body).addClass(L),t.updateStatus("loading");var r=e.extend({url:n.src,success:function(r,i,o){var a={data:r,xhr:o};k("ParseAjax",a),t.appendContent(e(a.data),N),n.finished=!0,P(),t._setFocus(),setTimeout((function(){t.wrap.addClass(g)}),16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){P(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(r),""}}});var z,F=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=t.st.image.titleSrc;if(r){if(e.isFunction(r))return r.call(t,n);if(n.el)return n.el.attr(r)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,r=".image";t.types.push("image"),x(f+r,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),x(s+r,(function(){n.cursor&&e(document.body).removeClass(n.cursor),_.off("resize"+v)})),x("Resize"+r,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,r=e.img[0],i=function(o){z&&clearInterval(z),z=setInterval((function(){r.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(z),3==++n?i(10):40===n?i(50):100===n&&i(500))}),o)};i(1)},getImage:function(n,r){var i=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):++i<200?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=r.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",o).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(r,{title:F(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(z&&clearInterval(z),n.loadError?(r.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),t.updateStatus("ready")),r):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),t.findImageSize(n)),r)}}});var B,q=function(){return void 0===B&&(B=void 0!==document.createElement("p").style.MozTransform),B};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,r=".zoom";if(n.enabled&&t.supportsTransition){var i,o,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=r,t.css(i),t},u=function(){t.content.css("visibility","visible")};x("BuildControls"+r,(function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void u();(o=c(e)).css(t._getOffset()),t.wrap.append(o),i=setTimeout((function(){o.css(t._getOffset(!0)),i=setTimeout((function(){u(),setTimeout((function(){o.remove(),e=o=null,k("ZoomAnimationEnded")}),16)}),a)}),16)}})),x(l+r,(function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;o=c(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout((function(){o.css(t._getOffset())}),16)}})),x(s+r,(function(){t._allowZoom()&&(u(),o&&o.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var r,i=(r=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),o=parseInt(r.css("padding-top"),10),a=parseInt(r.css("padding-bottom"),10);i.top-=e(window).scrollTop()-o;var s={width:r.width(),height:(w?r.innerHeight():r[0].offsetHeight)-a-o};return q()?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var D="iframe",R="//about:blank",Q=function(e){if(t.currTemplate[D]){var n=t.currTemplate[D].find("iframe");n.length&&(e||(n[0].src=R),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(D,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(D),x("BeforeChange",(function(e,t,n){t!==n&&(t===D?Q():n===D&&Q(!0))})),x(s+"."+D,(function(){Q()}))},getIframe:function(n,r){var i=n.src,o=t.st.iframe;e.each(o.patterns,(function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1}));var a={};return o.srcAction&&(a[o.srcAction]=i),t._parseMarkup(r,a,n),t.updateStatus("ready"),r}}});var U=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},H=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",x(f+i,(function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),r.on("keydown"+i,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),x("UpdateStatus"+i,(function(e,n){n.text&&(n.text=H(n.text,t.currItem.index,t.items.length))})),x(d+i,(function(e,r,i,o){var a=t.items.length;i.counter=a>1?H(n.tCounter,o.index,a):""})),x("BuildControls"+i,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),o=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y);i.click((function(){t.prev()})),o.click((function(){t.next()})),t.container.append(i.add(o))}})),x(m+i,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),x(s+i,(function(){r.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=U(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=U(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=U(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),k("LazyLoad",r),"image"===r.type&&(r.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){r.hasSize=!0})).on("error.mfploader",(function(){r.hasSize=!0,r.loadError=!0,k("LazyLoadError",r)})).attr("src",r.src)),r.preloaded=!0}}}});var V="retina";e.magnificPopup.registerModule(V,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(x("ImageHasSize."+V,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),x("ElementParse."+V,(function(t,r){r.src=e.replaceSrc(r,n)})))}}}}),E()},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},62587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u,d,f,m,p=e[c].replace(a,"%20"),v=p.indexOf(r);v>=0?(u=p.substr(0,v),d=p.substr(v+1)):(u=p,d=""),f=decodeURIComponent(u),m=decodeURIComponent(d),t(o,f)?Array.isArray(o[f])?o[f].push(m):o[f]=[o[f],m]:o[f]=m}return o}},12361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[i]))})).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},17673:(e,t,n)=>{"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},35666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===m)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",m="executing",p="completed",v={};function g(){}function h(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(j([])));_&&_!==n&&r.call(_,o)&&(b=_);var x=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function I(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return h.prototype=x.constructor=y,y.constructor=h,h.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},C(k.prototype),k.prototype[a]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(x),l(x,s,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},94506:(e,t,n)=>{var r,i,o;!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover((function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)})).mouseout((function(){e(".blockMsg").fadeOut(1e3)}))},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each((function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})})),this.each((function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)}))},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each((function(){l(this,t)}))},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,c){var d,p,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),d=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),p=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,w,_,x,C=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+C+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),w=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+C+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+C+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&v?(x='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(C+10)+';display:none;position:fixed">',c.title&&(x+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),x+='<div class="ui-widget-content ui-dialog-content"></div>',x+="</div>"):c.theme?(x='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(C+10)+';display:none;position:absolute">',c.title&&(x+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),x+='<div class="ui-widget-content ui-dialog-content"></div>',x+="</div>"):x=v?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(C+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(C+10)+';display:none;position:absolute"></div>',_=e(x),g&&(c.theme?(_.css(p),_.addClass("ui-widget-content")):_.css(d)),c.theme||w.css(c.overlayCSS),w.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,w,_],I=e(v?"body":s);e.each(k,(function(){this.appendTo(I)})),c.theme&&c.draggable&&e.fn.draggable&&_.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var E=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||E){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var O=m(s,"borderTopWidth"),S=m(s,"borderLeftWidth"),j=O?"(0 - "+O+")":0,T=S?"(0 - "+S+")":0;e.each(k,(function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),T&&n.setExpression("left",T),j&&n.setExpression("top",j);else if(c.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}}))}if(g&&(c.theme?_.find(".ui-widget-content").append(g):_.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var A=c.onBlock?c.onBlock:t,M=c.showOverlay&&!g?A:t,L=g?A:t;c.showOverlay&&w._fadeIn(c.fadeIn,M),g&&_._fadeIn(c.fadeIn,L)}else c.showOverlay&&w.show(),g&&_.show(),c.onBlock&&c.onBlock.bind(_)();if(u(1,s,c),v?(o=_[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(f,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-m(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-m(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(_[0],c.centerX,c.centerY),c.timeout){var N=setTimeout((function(){v?e.unblockUI(c):e(s).unblock(c)}),c.timeout);e(s).data("blockUI.timeout",N)}}}function l(t,n){var r,i,s=t==window,l=e(t),d=l.data("blockUI.history"),f=l.data("blockUI.timeout");f&&(clearTimeout(f),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,(function(){0==--r&&c(i,d,n,t)}))):c(i,d,n,t)}function c(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each((function(e,t){this.parentNode&&this.parentNode.removeChild(this)})),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,r,d):e(document).unbind(s,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout((function(){f(i)}),10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function f(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function m(t,n){return parseInt(e.css(t,n),10)||0}}n.amdO.jQuery?(i=[n(19567)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},92979:(e,t,n)=>{var r=n(19567);n(94506);var i=n(66419),o={transitionDelay:250,blockWith:function(e){var t=r.Deferred(),n=this,a=i(arguments).rest(),s=i(a).first();return s&&s.preventDefault&&s.preventDefault(),r.blockUI({message:null}),setTimeout((function(){var o=e.apply(n,a);i(o).isObject()&&i(o.always).isFunction()?o.always((function(){r.unblockUI()})).then(t.resolve,t.reject):r.unblockUI()}),o.transitionDelay),t.promise()},makeBlocked:function(e){return i.wrap(e,o.blockWith)}};e.exports=o},19567:e=>{"use strict";e.exports=window.jQuery},66419:function(e,t,n){e.exports=function(){var e="1.13.4",t="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g||Function("return this")()||{},r=Array.prototype,i=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,a=r.push,s=r.slice,l=i.toString,c=i.hasOwnProperty,u="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,f=Array.isArray,m=Object.keys,p=Object.create,v=u&&ArrayBuffer.isView,g=isNaN,h=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=Math.pow(2,53)-1;function _(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function x(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function C(e){return void 0===e}function k(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function I(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var E=I("String"),O=I("Number"),S=I("Date"),j=I("RegExp"),T=I("Error"),A=I("Symbol"),M=I("ArrayBuffer"),L=I("Function"),N=t.document&&t.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof N&&(L=function(e){return"function"==typeof e||!1});var P=L,G=I("Object"),z=d&&G(new DataView(new ArrayBuffer(8))),F="undefined"!=typeof Map&&G(new Map),B=I("DataView"),q=z?function(e){return null!=e&&P(e.getInt8)&&M(e.buffer)}:B,D=f||I("Array");function R(e,t){return null!=e&&c.call(e,t)}var Q=I("Arguments");!function(){Q(arguments)||(Q=function(e){return R(e,"callee")})}();var U=Q;function H(e){return O(e)&&g(e)}function V(e){return function(){return e}}function W(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=w}}function $(e){return function(t){return null==t?void 0:t[e]}}var K=$("byteLength"),Y=W(K),J=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Z=u?function(e){return v?v(e)&&!q(e):Y(e)&&J.test(l.call(e))}:V(!1),X=$("length");function ee(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=b.length,r=e.constructor,o=P(r)&&r.prototype||i,a="constructor";for(R(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=b[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function te(e){if(!x(e))return[];if(m)return m(e);var t=[];for(var n in e)R(e,n)&&t.push(n);return y&&ee(e,t),t}function ne(e,t){var n=te(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function re(e){return e instanceof re?e:this instanceof re?void(this._wrapped=e):new re(e)}function ie(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,K(e))}re.VERSION=e,re.prototype.value=function(){return this._wrapped},re.prototype.valueOf=re.prototype.toJSON=re.prototype.value,re.prototype.toString=function(){return String(this._wrapped)};var oe="[object DataView]";function ae(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&function e(t,n,r,i){t instanceof re&&(t=t._wrapped),n instanceof re&&(n=n._wrapped);var a=l.call(t);if(a!==l.call(n))return!1;if(z&&"[object Object]"==a&&q(t)){if(!q(n))return!1;a=oe}switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return o.valueOf.call(t)===o.valueOf.call(n);case"[object ArrayBuffer]":case oe:return e(ie(t),ie(n),r,i)}var s="[object Array]"===a;if(!s&&Z(t)){if(K(t)!==K(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,u=n.constructor;if(c!==u&&!(P(c)&&c instanceof c&&P(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}i=i||[];for(var d=(r=r||[]).length;d--;)if(r[d]===t)return i[d]===n;if(r.push(t),i.push(n),s){if((d=t.length)!==n.length)return!1;for(;d--;)if(!ae(t[d],n[d],r,i))return!1}else{var f,m=te(t);if(d=m.length,te(n).length!==d)return!1;for(;d--;)if(!R(n,f=m[d])||!ae(t[f],n[f],r,i))return!1}return r.pop(),i.pop(),!0}(e,t,n,r)}function se(e){if(!x(e))return[];var t=[];for(var n in e)t.push(n);return y&&ee(e,t),t}function le(e){var t=X(e);return function(n){if(null==n)return!1;var r=se(n);if(X(r))return!1;for(var i=0;i<t;i++)if(!P(n[e[i]]))return!1;return e!==pe||!P(n[ce])}}var ce="forEach",ue="has",de=["clear","delete"],fe=["get",ue,"set"],me=de.concat(ce,fe),pe=de.concat(fe),ve=["add"].concat(de,ce,ue),ge=F?le(me):I("Map"),he=F?le(pe):I("WeakMap"),ye=F?le(ve):I("Set"),be=I("WeakSet");function we(e){for(var t=te(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function _e(e){for(var t={},n=te(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function xe(e){var t=[];for(var n in e)P(e[n])&&t.push(n);return t.sort()}function Ce(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}}var ke=Ce(se),Ie=Ce(te),Ee=Ce(se,!0);function Oe(e){if(!x(e))return{};if(p)return p(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Se(e){return D(e)?e:[e]}function je(e){return re.toPath(e)}function Te(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Ae(e,t,n){var r=Te(e,je(t));return C(r)?n:r}function Me(e){return e}function Le(e){return e=Ie({},e),function(t){return ne(t,e)}}function Ne(e){return e=je(e),function(t){return Te(t,e)}}function Pe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Ge(e,t,n){return null==e?Me:P(e)?Pe(e,t,n):x(e)&&!D(e)?Le(e):Ne(e)}function ze(e,t){return Ge(e,t,1/0)}function Fe(e,t,n){return re.iteratee!==ze?re.iteratee(e,t):Ge(e,t,n)}function Be(){}function qe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}re.toPath=Se,re.iteratee=ze;var De=Date.now||function(){return(new Date).getTime()};function Re(e){var t=function(t){return e[t]},n="(?:"+te(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=Re(Qe),He=Re(_e(Qe)),Ve=re.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,$e={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ke=/\\|'|\r|\n|\u2028|\u2029/g;function Ye(e){return"\\"+$e[e]}var Je=/^\s*(\w|\$)+\s*$/,Ze=0;function Xe(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=Oe(e.prototype),a=e.apply(o,i);return x(a)?a:o}var et=_((function(e,t){var n=et.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return Xe(e,r,this,this,a)};return r}));et.placeholder=re;var tt=_((function(e,t,n){if(!P(e))throw new TypeError("Bind must be called on a function");var r=_((function(i){return Xe(e,r,t,this,n.concat(i))}));return r})),nt=W(X);function rt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=X(e);o<a;o++){var s=e[o];if(nt(s)&&(D(s)||U(s)))if(t>1)rt(s,t-1,n,r),i=r.length;else for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else n||(r[i++]=s)}return r}var it=_((function(e,t){var n=(t=rt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=tt(e[r],e)}return e})),ot=_((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),at=et(ot,re,1);function st(e){return function(){return!e.apply(this,arguments)}}function lt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var ct=et(lt,2);function ut(e,t,n){t=Fe(t,n);for(var r,i=te(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r}function dt(e){return function(t,n,r){n=Fe(n,r);for(var i=X(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var ft=dt(1),mt=dt(-1);function pt(e,t,n,r){for(var i=(n=Fe(n,r,1))(t),o=0,a=X(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o}function vt(e,t,n){return function(r,i,o){var a=0,l=X(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+l,a):l=o>=0?Math.min(o+1,l):o+l+1;else if(n&&o&&l)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(s.call(r,a,l),H))>=0?o+a:-1;for(o=e>0?a:l-1;o>=0&&o<l;o+=e)if(r[o]===i)return o;return-1}}var gt=vt(1,ft,pt),ht=vt(-1,mt);function yt(e,t,n){var r=(nt(e)?ft:ut)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function bt(e,t,n){var r,i;if(t=Pe(t,n),nt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=te(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function wt(e,t,n){t=Fe(t,n);for(var r=!nt(e)&&te(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o}function _t(e){var t=function(t,n,r,i){var o=!nt(t)&&te(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;r=n(r,t[l],l,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,Pe(n,i,4),r,o)}}var xt=_t(1),Ct=_t(-1);function kt(e,t,n){var r=[];return t=Fe(t,n),bt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function It(e,t,n){t=Fe(t,n);for(var r=!nt(e)&&te(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function Et(e,t,n){t=Fe(t,n);for(var r=!nt(e)&&te(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Ot(e,t,n,r){return nt(e)||(e=we(e)),("number"!=typeof n||r)&&(n=0),gt(e,t,n)>=0}var St=_((function(e,t,n){var r,i;return P(t)?i=t:(t=je(t),r=t.slice(0,-1),t=t[t.length-1]),wt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=Te(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function jt(e,t){return wt(e,Ne(t))}function Tt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=nt(e)?e:we(e)).length;s<l;s++)null!=(r=e[s])&&r>o&&(o=r);else t=Fe(t,n),bt(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}var At=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Mt(e){return e?D(e)?s.call(e):E(e)?e.match(At):nt(e)?wt(e,Me):we(e):[]}function Lt(e,t,n){if(null==t||n)return nt(e)||(e=we(e)),e[qe(e.length-1)];var r=Mt(e),i=X(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=qe(a,o),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)}function Nt(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Fe(r,i),bt(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var Pt=Nt((function(e,t,n){R(e,n)?e[n].push(t):e[n]=[t]})),Gt=Nt((function(e,t,n){e[n]=t})),zt=Nt((function(e,t,n){R(e,n)?e[n]++:e[n]=1})),Ft=Nt((function(e,t,n){e[n?0:1].push(t)}),!0);function Bt(e,t,n){return t in n}var qt=_((function(e,t){var n={},r=t[0];if(null==e)return n;P(r)?(t.length>1&&(r=Pe(r,t[1])),t=se(e)):(r=Bt,t=rt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),Dt=_((function(e,t){var n,r=t[0];return P(r)?(r=st(r),t.length>1&&(n=t[1])):(t=wt(rt(t,!1,!1),String),r=function(e,n){return!Ot(t,n)}),qt(e,r,n)}));function Rt(e,t,n){return s.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Qt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Rt(e,e.length-t)}function Ut(e,t,n){return s.call(e,null==t||n?1:t)}var Ht=_((function(e,t){return t=rt(t,!0,!0),kt(e,(function(e){return!Ot(t,e)}))})),Vt=_((function(e,t){return Ht(e,t)}));function Wt(e,t,n,r){k(t)||(r=n,n=t,t=!1),null!=n&&(n=Fe(n,r));for(var i=[],o=[],a=0,s=X(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?Ot(o,c)||(o.push(c),i.push(l)):Ot(i,l)||i.push(l)}return i}var $t=_((function(e){return Wt(rt(e,!0,!0))}));function Kt(e){for(var t=e&&Tt(e,X).length||0,n=Array(t),r=0;r<t;r++)n[r]=jt(e,r);return n}var Yt=_(Kt);function Jt(e,t){return e._chain?re(t).chain():t}function Zt(e){return bt(xe(e),(function(t){var n=re[t]=e[t];re.prototype[t]=function(){var e=[this._wrapped];return a.apply(e,arguments),Jt(this,n.apply(re,e))}})),re}bt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=r[e];re.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Jt(this,n)}})),bt(["concat","join","slice"],(function(e){var t=r[e];re.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Jt(this,e)}}));var Xt=Zt({__proto__:null,VERSION:e,restArguments:_,isObject:x,isNull:function(e){return null===e},isUndefined:C,isBoolean:k,isElement:function(e){return!(!e||1!==e.nodeType)},isString:E,isNumber:O,isDate:S,isRegExp:j,isError:T,isSymbol:A,isArrayBuffer:M,isDataView:q,isArray:D,isFunction:P,isArguments:U,isFinite:function(e){return!A(e)&&h(e)&&!isNaN(parseFloat(e))},isNaN:H,isTypedArray:Z,isEmpty:function(e){if(null==e)return!0;var t=X(e);return"number"==typeof t&&(D(e)||E(e)||U(e))?0===t:0===X(te(e))},isMatch:ne,isEqual:function(e,t){return ae(e,t)},isMap:ge,isWeakMap:he,isSet:ye,isWeakSet:be,keys:te,allKeys:se,values:we,pairs:function(e){for(var t=te(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},invert:_e,functions:xe,methods:xe,extend:ke,extendOwn:Ie,assign:Ie,defaults:Ee,create:function(e,t){var n=Oe(e);return t&&Ie(n,t),n},clone:function(e){return x(e)?D(e)?e.slice():ke({},e):e},tap:function(e,t){return t(e),e},get:Ae,has:function(e,t){for(var n=(t=je(t)).length,r=0;r<n;r++){var i=t[r];if(!R(e,i))return!1;e=e[i]}return!!n},mapObject:function(e,t,n){t=Fe(t,n);for(var r=te(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},identity:Me,constant:V,noop:Be,toPath:Se,property:Ne,propertyOf:function(e){return null==e?Be:function(t){return Ae(e,t)}},matcher:Le,matches:Le,times:function(e,t,n){var r=Array(Math.max(0,e));t=Pe(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},random:qe,now:De,escape:Ue,unescape:He,templateSettings:Ve,template:function(e,t,n){!t&&n&&(t=n),t=Ee({},t,re.templateSettings);var r=RegExp([(t.escape||We).source,(t.interpolate||We).source,(t.evaluate||We).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,s){return o+=e.slice(i,s).replace(Ke,Ye),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,s=t.variable;if(s){if(!Je.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(e){throw e.source=o,e}var l=function(e){return a.call(this,e,re)};return l.source="function("+s+"){\n"+o+"}",l},result:function(e,t,n){var r=(t=je(t)).length;if(!r)return P(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=P(o)?o.call(e):o}return e},uniqueId:function(e){var t=++Ze+"";return e?e+t:t},chain:function(e){var t=re(e);return t._chain=!0,t},iteratee:ze,partial:et,bind:tt,bindAll:it,memoize:function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return R(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},delay:ot,defer:at,throttle:function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:De(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=De();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},debounce:function(e,t,n){var r,i,o,a,s,l=function(){var c=De()-i;t>c?r=setTimeout(l,t-c):(r=null,n||(a=e.apply(s,o)),r||(o=s=null))},c=_((function(c){return s=this,o=c,i=De(),r||(r=setTimeout(l,t),n&&(a=e.apply(s,o))),a}));return c.cancel=function(){clearTimeout(r),r=o=s=null},c},wrap:function(e,t){return et(t,e)},negate:st,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:lt,once:ct,findKey:ut,findIndex:ft,findLastIndex:mt,sortedIndex:pt,indexOf:gt,lastIndexOf:ht,find:yt,detect:yt,findWhere:function(e,t){return yt(e,Le(t))},each:bt,forEach:bt,map:wt,collect:wt,reduce:xt,foldl:xt,inject:xt,reduceRight:Ct,foldr:Ct,filter:kt,select:kt,reject:function(e,t,n){return kt(e,st(Fe(t)),n)},every:It,all:It,some:Et,any:Et,contains:Ot,includes:Ot,include:Ot,invoke:St,pluck:jt,where:function(e,t){return kt(e,Le(t))},max:Tt,min:function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=nt(e)?e:we(e)).length;s<l;s++)null!=(r=e[s])&&r<o&&(o=r);else t=Fe(t,n),bt(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o},shuffle:function(e){return Lt(e,1/0)},sample:Lt,sortBy:function(e,t,n){var r=0;return t=Fe(t,n),jt(wt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")},groupBy:Pt,indexBy:Gt,countBy:zt,partition:Ft,toArray:Mt,size:function(e){return null==e?0:nt(e)?e.length:te(e).length},pick:qt,omit:Dt,first:Qt,head:Qt,take:Qt,initial:Rt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Ut(e,Math.max(0,e.length-t))},rest:Ut,tail:Ut,drop:Ut,compact:function(e){return kt(e,Boolean)},flatten:function(e,t){return rt(e,t,!1)},without:Vt,uniq:Wt,unique:Wt,union:$t,intersection:function(e){for(var t=[],n=arguments.length,r=0,i=X(e);r<i;r++){var o=e[r];if(!Ot(t,o)){var a;for(a=1;a<n&&Ot(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:Ht,unzip:Kt,transpose:Kt,zip:Yt,object:function(e,t){for(var n={},r=0,i=X(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(s.call(e,r,r+=t));return n},mixin:Zt,default:re});return Xt._=Xt,Xt}()}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.m=t,r.amdO={},e=[],r.O=(t,n,i,o)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,i,o]=e[u],s=!0,l=0;l<n.length;l++)(!1&o||a>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={198:0,401:0,703:0,135:0,892:0,877:0,233:0,715:0,384:0,333:0,628:0,966:0,565:0,638:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var u=l(r)}for(t&&t(n);c<a.length;c++)o=a[c],r.o(e,o)&&e[o]&&e[o][0](),e[a[c]]=0;return r.O(u)},n=self.webpackChunkgive=self.webpackChunkgive||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(31441))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(35058))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(79977))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(55755))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(26060))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(55952))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(72751))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(63293))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(61394))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(43729))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(88496))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(59707))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(91486)));var i=r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(83908)));i=r.O(i)})();
1
+ (()=>{var e,t={87757:(e,t,n)=>{e.exports=n(35666)},50743:function(e,t){!function(n,r){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function u(e){return e&&"[object Object]"===s.call(e)}function d(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r<i;r++)a[r]=t.call(n,e[r],r,e);return a}function m(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var v=i.unformat=i.parse=function(e,t){if(c(e))return f(e,(function(e){return v(e,t)}));if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(r)?0:r},g=i.toFixed=function(e,t){t=m(t,i.settings.number.precision);var n=Math.pow(10,t);return(Math.round(i.unformat(e)*n)/n).toFixed(t)},h=i.formatNumber=i.format=function(e,t,n,r){if(c(e))return f(e,(function(e){return h(e,t,n,r)}));e=v(e);var o=d(u(t)?t:{precision:t,thousand:n,decimal:r},i.settings.number),a=m(o.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",p=l.length>3?l.length%3:0;return s+(p?l.substr(0,p)+o.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},y=i.formatMoney=function(e,t,n,r,o,a){if(c(e))return f(e,(function(e){return y(e,t,n,r,o,a)}));e=v(e);var s=d(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),m(s.precision),s.thousand,s.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var s=d(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=p(s.format),y=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,w=f(e,(function(e,t){if(c(e))return i.formatColumn(e,s);var n=((e=v(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),m(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n}));return f(w,(function(e,t){return l(e)&&e.length<b?y?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=i),t.accounting=i}()},25630:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),new Promise((function(n){jQuery(document).trigger("Give:onPreGatewayLoad"),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},(function(t){return jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("Give:onGatewayLoadSuccess"),n(t)}))})).then((function(n){jQuery(document).trigger("give_gateway_loaded",[n,jQuery(e).attr("id")]);var r=new CustomEvent("give_gateway_loaded",{detail:{selectedGateway:t,formIdAttribute:jQuery(e).attr("id")}});document.dispatchEvent(r),jQuery(e).unblock()}))}jQuery(document).ready((function(n){Give.form.fn.isFormExist()&&(n(".give-loading-text").hide(),n(".give-form").each((function(e,t){var n,r;t=jQuery(t),(n=Give.form.fn.getNonceInfo(t)).el.attr("data-donor-session")&&(!n.createdInDonorSession&&!Give.donor.fn.hasSession(t)||Give.donor.fn.isLoggedIn())||Give.form.fn.resetAllNonce(t),r=0>(r=1e3*(parseInt(n.el.data("time"))+parseInt(n.el.data("nonce-life")))-Date.now())?r:r+100,window.setTimeout((function(){Give.form.fn.resetAllNonce(t)}),r)}))),n(document).on("click",".give-checkout-login",(function(e){var t=n(this),r=n(this).parents("form"),i=t.parents("div.give-login-account-wrap").find(".give-loading-text"),o={action:t.data("action"),form_id:n(r).find('[name="give-form-id"]').val()};return i.show(),n.post(Give.fn.getGlobalVar("ajaxurl"),o,(function(e){var t=n(r).find("[id^=give-checkout-login-register]");t.length&&parseInt(t.html().trim().length)?n(r).find("[id^=give-checkout-login-register]").html(e):n(r).find('[id^="give_checkout_user_info"]').html(e),n(r).find(".give-submit-button-wrap").hide()})).done((function(){i.hide(),give_fl_trigger()})),!1})),n(document).on("click",".give-checkout-register-cancel",(function(e){e.preventDefault();var t=n(this),r=n(this).parents("form"),i={action:t.data("action"),form_id:n(r).find('[name="give-form-id"]').val()};n.post(Give.fn.getGlobalVar("ajaxurl"),i,(function(e){n(r).find("[id^=give-checkout-login-register]").replaceWith(n.parseJSON(e.fields)),n(r).find("[id^=give-checkout-login-register]").css({display:"block"}),n(r).find(".give-submit-button-wrap").show()})).done((function(){give_fl_trigger()}))})),n(document).on("click","[id^=give-login-fields] input[type=submit]",(function(r){r.preventDefault();var i=n(this).val(),o=n(this).parents("form");n(this).val(Give.fn.getGlobalVar("purchase_loading")),o.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var a={action:"give_process_donation_login",give_ajax:1,give_user_login:o.find("[name=give_user_login]").val(),give_user_pass:o.find("[name=give_user_pass]").val(),give_form_id:o.find("[name=give-form-id]").val()};n.post(Give.fn.getGlobalVar("ajaxurl"),a,(function(r){null!=n.trim(e(r.success))&&1==r.success&&void 0!==e(r.data)?(o.find(".give_errors").remove(),o.find("[id^=give-checkout-login-register]").before(r.data),o.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetAllNonce(o).then((function(e){t(o,o.find(".give-gateway-option-selected input").val())}))):(o.find("[id^=give-login-fields] input[type=submit]").val(i),o.find(".give-loading-animation").fadeOut(),o.find(".give_errors").remove(),o.find("[id^=give-user-login-submit]").before(r.data))}))})),n(document).on("change","select#give-gateway, input.give-gateway",(function(e){e.preventDefault();var r=n(this).val();return"0"==r?(console.log("There was a problem loading the selected gateway"),!1):(t(n(this).parents("form"),r),!1)})),n("body").on("click","#give-confirm-email-btn",(function(e){var t=n(this),r={action:"give_confirm_email_for_donations_access",email:t.data("email"),nonce:Give.fn.getGlobalVar("ajax_vars").ajaxNonce};return t.text(Give.fn.getGlobalVar("loading")),t.attr("disabled","disabled"),n.post(Give.fn.getGlobalVar("ajaxurl"),r,(function(e){"error"===(e=JSON.parse(e)).status?(t.closest("#give_user_history tfoot").hide(),t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(t.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),t.hide(),t.closest(".give-security-button-wrap").find("span").show())})),!1})),n("body").on("click",'form.give-form input[name="give-purchase"].give-submit',(function(e){var t=n(this),r=t.parents("form.give-form"),i=r.find('input[type="submit"].give-submit + .give-loading-animation');i.fadeIn();var o=r.get(0);if("function"!=typeof o.checkValidity||!1!==o.checkValidity()){e.preventDefault();var a=n(this).val();n(this).val(Give.fn.getGlobalVar("purchase_loading")),Give.form.fn.disable(r,!0),n.post(Give.fn.getGlobalVar("ajaxurl"),r.serialize()+"&action=give_process_donation&give_ajax=true",(function(e){"success"==n.trim(e)?(r.find(".give_errors").remove(),n(o).submit(),r.trigger("give_form_validation_passed")):(t.val(a),i.fadeOut(),r.find(".give_errors").remove(),r.find('#give_purchase_submit input[type="submit"].give-submit').before(e),Give.form.fn.disable(r,!1))}))}else i.fadeOut()}));var r=document.getElementById("give-receipt");if(r){var i={action:"get_receipt",shortcode_atts:r.getAttribute("data-shortcode"),donation_id:r.getAttribute("data-donation-key"),receipt_type:r.getAttribute("data-receipt-type")};i[Give.fn.getGlobalVar("session_cookie_name")]=Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name")),n.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"GET",data:i,success:function(e){if(r.innerHTML=e,r.parentElement.classList.contains("give-form-templates"))var t=setInterval((function(){window.parentIFrame&&(clearInterval(t),window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"}))}),50)}})}}))},51325:()=>{function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jQuery((function(t){var n=jQuery("form.give-form"),o=t(document),a={forms:{}};t.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),o.on("keyup","#give-first, #give-last, #give-email",(function(e){var t=e.target,n=t.parentElement.closest("form.give-form");if(n){var o=n.getAttribute("id");a.forms=r(r({},a.forms),{},i({},o,r(r({},a.forms[o]),{},i({},t.name,t.value))))}})),o.on("give_gateway_loaded",(function(){for(var t=0,n=Object.entries(a.forms);t<n.length;t++)for(var r=e(n[t],2),i=r[0],o=r[1],s=0,l=Object.entries(o);s<l.length;s++){var c=e(l[s],2),u=c[0],d=c[1],f=document.querySelector("form#".concat(i,' [name="').concat(u,'"]'));f&&(f.value=d)}})),o.on("change","#give_cc_address input.card_state, #give_cc_address select",(function(){var e=t(this),n=e.parents("form");if("card_state"!==e.attr("id")){n.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var r={action:"give_get_states",country:e.val(),field_name:"card_state"};t.ajax({type:"POST",data:r,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var r="",i=e.states_label,a=n.find('input[name="card_state"], select[name="card_state"]'),s=n.find('input[name="card_city"]');void 0!==e.states_found&&!0===e.states_found?r=t(e.data):(r='<input type="text" id="card_state" name="card_state" class="card_state give-input required" placeholder="'.concat(i,'" value="').concat(e.default_state,'" autocomplete="address-level4"/>'),r=t(r)),!1===n.hasClass("float-labels-enabled")?(void 0!==e.states_require&&!0===e.states_require?(r.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find("label .give-required-indicator").removeClass("give-hidden")):(r.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find("label .give-required-indicator").addClass("give-hidden")),void 0!==e.city_require&&!0===e.city_require?(s.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),s.attr("required",!0)):(s.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),s.removeAttr("required"))):(void 0!==e.states_require&&!0===e.states_require?(r.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required")):(r.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required")),void 0!==e.city_require&&!0===e.city_require?(s.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),s.attr("required",!0)):(s.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),s.removeAttr("required"))),a.closest("p").find("label .state-label-text").text(i),a.replaceWith(r),void 0!==e.show_field&&!0===e.show_field?(n.find("p#give-card-state-wrap").removeClass("give-hidden"),n.find("p#give-card-zip-wrap").addClass("form-row-last"),n.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(n.find("p#give-card-state-wrap").addClass("give-hidden"),n.find("p#give-card-zip-wrap").addClass("form-row-wide"),n.find("p#give-card-zip-wrap").removeClass("form-row-last"));var l=!!e.zip_require;n.find("input#card_zip").toggleClass("required",l).attr("required",l).attr("aria-required",l),n.find('label[for="card_zip"] span.give-required-indicator').toggleClass("give-hidden",!l),o.trigger("give_checkout_billing_address_updated",[e,n.attr("id")])}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1})),o.on("give_gateway_loaded",(function(){Give.form.fn.field.formatCreditCard(n)})),o.on("submit","#give_payment_mode",(function(){if(!Give.form.fn.getGateway(t(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1})),o.on("click",'#give-payment-mode-select input[name="payment-mode"]',(function(){var e,n=t(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),t(this).prop("checked",!0),t(this).parent().addClass("give-gateway-option-selected"),e=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+e))})),o.on("focus",".give-donation-amount .give-text-input",(function(e){var n=t(this).parents("form");t(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);t(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),t(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)})),o.on("blur",".give-donation-amount .give-text-input",(function(e,n,r,i){var o=void 0!==n?n:t(this).closest("form"),a=t(this).attr("data-amount"),s=void 0!==r?r:t(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),d=0===s?c:Give.fn.unFormatCurrency(s,l),f=Give.form.fn.formatAmount(d,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===d||0===d){var m=t('.give-donation-levels-wrap [data-default="1"]',n);m.length&&(i=m.data("price-id"),s=d=Give.fn.unFormatCurrency(m.val(),l),f=Give.form.fn.formatAmount(d,o,{}))}if(Give.fn.setCache("amount_"+d,i,o),t(this).val(f),Give.form.fn.isValidDonationAmount(o))t(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,(function(){t(this).remove()})),Give.form.fn.disable(o,!1);else{t(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var p=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===p.length&&d<c?Give.notice.fn.renderNotice("bad_minimum",o):d>=c&&p.slideUp(300,(function(){t(this).remove()})),0===v.length&&d>u?Give.notice.fn.renderNotice("bad_maximum",o):d<=u&&v.slideUp(300,(function(){t(this).remove()}))}a!==d&&o.find(".give-final-total-amount").attr("data-total",d).text(Give.fn.formatCurrency(d,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(t('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(d,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),t(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),t(document).trigger("give_donation_value_updated",[o,d,i])})),o.on("click touchend",".give-donation-level-btn",(function(e){e.preventDefault(),Give.form.fn.autoSetMultiLevel(t(this))})),o.on("click touchend",".give-radio-input-level",(function(e){Give.form.fn.autoSetMultiLevel(t(this))})),o.on("change",".give-select-level",(function(e){Give.form.fn.autoSetMultiLevel(t(this))})),o.on("click",".give_terms_links",(function(e){e.preventDefault();var n=t(this).closest("fieldset");return t("[class^=give_terms-]",n).slideToggle(),t("a.give_terms_links",n).toggle(),!1})),t('label[for^="give-radio-level"]').on("click",(function(e){var n=t(this).closest("form").find("#"+t(this).attr("for"));n.length&&(n.trigger("click"),e.preventDefault())}))})),jQuery(window).on("load",(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",(function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),s=jQuery.payment.cardType(i.val()),l=!1;if("focusout"===e.type)r.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(l)):r.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):r.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);else if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}))}))},31441:(e,t,n)=>{"use strict";n(59211),n(92979),n(57729);var r=n(15303),i=(n(45099),function(e){return new r.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(t){var n=e.parentElement;switch(e.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),t.message.action){case"giveEmbedFormContentLoaded":var r=setTimeout((function(){i()}),400);e.setAttribute("data-contentLoaded","1");var i=function(){clearTimeout(r),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",e.style.visibility="visible",e.style.minHeight="",n.style.height=null};break;case"giveScrollIframeInToView":e.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){var t=e.parentElement;window.top.addEventListener("resize",(function(){e.style.width=window.top.innerWidth+"px"}));var n=!1;window.addEventListener("beforeunload",(function(){n=!0})),e.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(e.scrollIntoView({behavior:"smooth",inline:"nearest"}),e.parentElement.querySelector(".iframe-loader").style.opacity=1,e.parentElement.querySelector(".iframe-loader").style.transition="",e.style.visibility="hidden",t.style.height="700px")})),e.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},e)});const o=window.wp.i18n,a={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},r="undefined"!=typeof commonL10n?commonL10n.dismiss:(0,o.__)("Dismiss this notice.","give");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(r,"</span></button>"):"","</p</div>")}}};var s=n(87757),l=n.n(s);const c={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");r.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(r),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}};function u(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}const d={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.Give.WINDOW_IS_LOADED?Give.form.fn.__sendBackToForm():window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){c.fn.showOverlay(e)},hideProcessingState:function(){c.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;if("nonce"===(e=void 0===e?"data":e))n.find('input[name="give-form-hash"]').val(t);if(void 0!==r&&!r.length)return!1;if("attr"===e)n.attr(r,t);else n.data(r,t);return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,(function(e,t){if(t.amount===r)return i=t.price_id,!1})),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r&&(n=Give.fn.getParameterByName("custom-amount")),t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),"custom"!==r||n?t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r]):t.find(".give-donation-amount .give-text-input").focus()},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=r.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(f=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))}}(l().mark((function e(t){var n,r,i,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=o.length>1&&void 0!==o[1]?o[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return r=e.sent,e.next=9,r.text();case 9:return i=e.sent,e.abrupt("return",i.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.resetDonationButton(e),t&&this.addErrors(e,t)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))}))}}}};var f;const m={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},p={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,r=n.innerHeight/2-126,i=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(e),"&text=").concat(encodeURIComponent(t)),"newwindow","width=560,height=253,top=".concat(r,",left=").concat(i))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,r=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(e)),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(r))}}};var v=n(50743),g=n.n(v),h={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)h[e[t]].init&&h[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:h.form.fn.getInfo("decimal_separator",n),thousand:h.form.fn.getInfo("thousands_separator",n),precision:h.form.fn.getInfo("number_decimals",n),currency:h.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=g().formatNumber(e,{precision:r.precision,decimal:"."}),a=t.precision?".0":"",s="",l="",c="";(o=(o=g().unformat(o,".").toString()).toString()).indexOf(".")>0&&(a=o.substring(o.indexOf("."),o.length)),s=(o=Math.floor(o).toString()).substring(o.length-3),""!==(l=o.substring(0,o.length-3))&&(s=r.thousand+s),i=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,i)+(c.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=g().formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(g().unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?h.cache["form_"+h.form.fn.getInfo("form-id",n)][e]=t:h.cache[e]=t},getCache:function(e,t){var n,r=h.cache["form_"+h.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":h.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:h.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),o=i.length;o-- >0;)-1!==i[o].lastIndexOf(r,0)&&i.splice(o,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};h.notice=a,h.form=d,h.donor=m,h.util=c,h.share=p;const y=h;n(51325),n(25630);var b=n(48880),w=n.n(b);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}jQuery((function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),e(".js-give-grid-modal-launcher").magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide give-modal"}),void 0!==window.csGlobal&&window.jQuery((function(e){window.csGlobal.csHooks.filter("hash_scrolling_allow",(function(t,n){return!e(n).hasClass("give-card")&&t}))})),t.on("click touchend",".give-disabled",(function(e){return e.preventDefault(),!1})),t.on("give_gateway_loaded",(function(e,t,n){give_fl_trigger()})),t.on("give_checkout_billing_address_updated",(function(t,n,r){e("form#"+r).hasClass("float-labels-enabled")&&give_fl_trigger()})),t.on("click",".give-btn-reveal",(function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i="#give-payment-mode-select",o=e(i),a="";return n.hide(),e("li",o).length>1&&(a=i+", "),r.find(a+"#give_purchase_form_wrap").slideDown(),!1})),t.on("click",".give-btn-modal",(function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),r=n.find("form.give-form"),i=r.find("#give-amount"),o=i.val();if(!o||o<=0)return i.focus(),!1;give_open_form_modal(n,r)}));var n=jQuery('.give_notice[data-dismiss-type="auto"]');n.length&&n.each((function(t,n){n=e(n),window.setTimeout((function(){n.slideUp()}),n.data("dismiss-interval"))})),e("body").on("click",".give-notice-close",(function(){e(this).hide(),e(this).closest(".give_notices").slideUp()})),t.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field),window.addEventListener("pageshow",(function(t){if(t.persisted||_("undefined")!==window.performance&&2===window.performance.navigation.type){var n=e("body").find("form.give-form");n.length&&(n[0].reset(),Give.form.fn.resetAllNonce(n))}}))})),window.give_open_form_modal=function(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden, .give-form-title";jQuery.magnificPopup.open({mainClass:Give.fn.getGlobal().magnific_options.main_class,closeOnBgClick:Give.fn.getGlobal().magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){jQuery("body").addClass("give-modal-open");var n=jQuery(".give-form-title",e);if(e.hasClass("give-modal")&&!t.data("content"))n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded");else if(e.hasClass("give-display-button-only")&&!t.data("content")){var r=jQuery(".give-form-content-wrap",e),i=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),a=jQuery(".give_errors",e);r.length&&!jQuery(".give-form-content-wrap",t).length&&(r.hasClass("give_post_form-content")?t.append(r):t.prepend(r)),a.length&&!jQuery(".give_errors",t).length&&a.each((function(e,n){t.prepend(jQuery(n))})),o.length&&!jQuery(">.give_error",t).length&&o.each((function(e,n){t.prepend(jQuery(n))})),i.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(i),n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded")}},open:function(){var r=jQuery(".mfp-content");r.outerWidth()>=500&&r.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),t.children().not(n).show()}}})},window.give_fl_trigger=function(){window.give_float_labels=void 0===window.give_float_labels?{}:window.give_float_labels,window.give_float_labels instanceof w()?window.give_float_labels.rebuild():window.give_float_labels=new(w())(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple], .give-honeypot",prioritize:"placeholder",prefix:"give-fl-",style:"give"})},window.give_change_html5_form_field_validation_message=function(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,(function(t,n){(e=jQuery("input",n)).length&&jQuery.each(e,(function(e,t){t=jQuery(t).get(0),Give.fn.getGlobal().form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(Give.fn.getGlobal().form_translation[t.name])})}))}))},window.update_profile_state_field=function(){var e=jQuery(this),t=e.parents("form");if("give_address_country"===e.attr("id")){t.find("#give_address_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var n={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:n,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var n="",r=e.states_label;n=void 0!==_(e.states_found)&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+r+'" value="'+e.default_state+'"/>',t.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(n),void 0!==_(e.show_field)&&1==e.show_field?(t.find("p#give-card-state-wrap").removeClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-last"),t.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(t.find("p#give-card-state-wrap").addClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-wide"),t.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1};n(69571);function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.addEventListener("load",(function(){window.addDynamicEventListener(document,"click",".give-donor-content__read-more",e.readMoreBtnEvent),window.addDynamicEventListener(document,"click",".give-donor__load_more",e.loadMoreBtnEvent)}),!1),window.addEventListener("load",(function(){e.loadGravatars()}))}var t,r,i;return t=e,i=[{key:"readMoreBtnEvent",value:function(e){return e.preventDefault(),jQuery.magnificPopup.open({items:{src:e.target.parentNode.parentNode.parentNode.getElementsByClassName("give-donor-content__comment")[0],type:"inline"},mainClass:"give-modal give-donor-wall-modal",closeOnBgClick:!1}),!1}},{key:"loadMoreBtnEvent",value:function(t){t.preventDefault();var n=t.target,r=n.parentNode,i=r.getElementsByClassName("give-donor-wall-shortcode-attrs")[0];return jQuery.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"POST",data:{action:"give_get_donor_comments",data:i.getAttribute("data-shortcode"),nonce:i.getAttribute("data-nonce")},beforeSend:function(){n.className+=" give-active",n.setAttribute("disabled","disabled")}}).done((function(t){n.classList.remove("give-active"),n.removeAttribute("disabled","disabled"),t.html.length&&r.getElementsByClassName("give-grid")[0].insertAdjacentHTML("beforeend",t.html),t.shortcode.length&&i.setAttribute("data-shortcode",t.shortcode),t.remaining||n.remove(),e.loadGravatar(i)})),!1}},{key:"loadGravatars",value:function(){Array.from(document.querySelectorAll(".give-donor-wall-shortcode-attrs")).forEach((function(t,n){e.loadGravatar(t)}))}},{key:"loadGravatar",value:function(e){var t,r,i=n(66182);if("1"!==Give.fn.getParameterByName("show_avatar",decodeURIComponent(e.getAttribute("data-shortcode"))))return!1;Array.from(e.parentNode.querySelectorAll(".give-grid__item")).forEach((function(e,n){if(!(t=e.querySelector(".give-donor-container__image")).classList.contains("gravatar-loaded")){if(r=t.getAttribute("data-donor_email"),"1"===t.getAttribute("data-has-valid-gravatar")){var o=document.createElement("IMG"),a=t.getAttribute("data-avatar-size");t.innerHTML="",o.setAttribute("src",i.url(r,{s:2*parseInt(a)})),t.appendChild(o)}t.className+=" gravatar-loaded"}}))}}],(r=null)&&x(t.prototype,r),i&&x(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}());const C={targetOrigin:window.location.origin,onReady:function(){document.getElementById("give-receipt")||window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"})},onMessage:function(e){if("currentPage"in e){var t=document.getElementsByName("give-current-url");t.length&&t[0].setAttribute("value",e.currentPage)}}};jQuery((function(){if(document.querySelector("body.give-form-templates"))return!1;document.querySelectorAll(".js-give-embed-form-modal-opener").forEach((function(e){e.addEventListener("click",(function(){var t=document.getElementById(e.getAttribute("data-form-id")),n=t.querySelector('iframe[name="give-embed-form"]'),r=n.getAttribute("data-src");r&&(n.setAttribute("src",r),n.setAttribute("data-src",""),i(n)),document.documentElement.style.overflow="hidden",t.classList.add("modal"),t.classList.remove("is-hide")}))})),document.querySelectorAll(".js-give-embed-form-modal-closer").forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=document.getElementById(e.getAttribute("data-form-id"));document.documentElement.style.overflow="",n.classList.remove("modal"),n.classList.add("is-hide")}))})),document.querySelectorAll(".js-give-grid-modal-launcher").forEach((function(e){e.addEventListener("click",(function(){var t=e.nextElementSibling.firstElementChild,n=document.querySelector(".mfp-wrap.give-modal");n&&n.classList.add("mfp-hide"),t?(jQuery.magnificPopup.close(),t.click()):n&&n.classList.remove("mfp-hide")}))})),document.addEventListener("click",(function(e){(e.target.matches(".modal-inner-wrap")||e.target.matches(".give-embed-form-wrapper.modal"))&&e.target.querySelector(".js-give-embed-form-modal-closer").click()})),document.addEventListener("keydown",(function(e){if(!e.isComposing&&27===e.keyCode){var t=document.querySelector(".give-embed-form-wrapper.modal");if(t){var n=t.getAttribute("id"),r=document.querySelector('.js-give-embed-form-modal-closer[data-form-id="'.concat(n,'"]'));r&&r.click()}}})),window.addEventListener("load",(function(){var e=document.querySelector('.modal-content iframe[data-autoScroll="1"]');if(e){var t=e.parentElement.parentElement.parentElement.getAttribute("id"),n=document.querySelector('.js-give-embed-form-modal-opener[data-form-id="'.concat(t,'"]'));n&&n.click()}}))}));n(67582);window.addEventListener("load",(function(){window.Give.WINDOW_IS_LOADED=!0}));var k=y.init,I=y.fn,E=y.form,O=y.notice,S=y.cache,j=y.donor,T=y.util,A=y.share;window.Give={init:k,fn:I,form:E,notice:O,cache:S,donor:j,util:T,share:A,initializeIframeResize:i},window.iFrameResizer=C},69571:()=>{!function(e){"use strict";window.addDynamicEventListener=function(e,t,n,r,i){e.addEventListener(t,function(e,t){return function(n){n.target&&(n.target.matches(e)||n.target.closest(e))&&t.apply(this,arguments)}}(n,r),i)}}()},45099:()=>{jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+i+'"></span>'),(r=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(r=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(r=r.join(" "),t.removeClass(r),t.append('<i class="'+r+'"></i>'))),t.addClass("hint--top"),15<i?t.addClass("hint--large"):7<i&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,r){n(r=r instanceof jQuery?r:e(r))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},67582:()=>{function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}document.addEventListener("readystatechange",(function(t){if("complete"!==t.target.readyState)return null;var n={};function o(t,n,r){for(var i=function(){var r=e(a[o],2),i=r[0],s=r[1],l=t.querySelector(i),c=l.getAttribute("data-field-name"),u=s[0],d=!1,f=u.operator,m=u.value,p=t.querySelectorAll('[name="'.concat(n,'"]'));if(!!p.length)if(p.forEach((function(e){var n=e.getAttribute("type"),r=e.value;"give-amount"===e.name&&(r=Give.fn.unFormatCurrency(e.value,Give.form.fn.getInfo("decimal_separator",t)),m=Math.abs(parseFloat(m)));var i=function(e,t,n){return{"=":t===n,"!=":t!==n,">":t>n,">=":t>=n,"<":t<n,"<=":t<=n}[e]}(f,r,m);"checkbox"===n?(i&&e.checked&&"="===f||!e.checked&&"!="===f)&&(d=!0):"radio"===n?e.checked&&i&&(d=!0):i&&(d=!0)})),d){var v=l.querySelector('[name="'.concat(c,'"][data-required]'));l.classList.remove("give-hidden"),v&&(v.setAttribute("required",""),v.removeAttribute("data-required"))}else{var g=l.querySelector('[name="'.concat(c,'"][required]'));l.classList.add("give-hidden"),g&&(g.removeAttribute("required"),g.setAttribute("data-required","1"))}},o=0,a=Object.entries(r);o<a.length;o++)i()}function a(e){var t=e.getAttribute("data-id"),o=function(e){var t={};return e.querySelectorAll("[data-field-visibility-conditions]").forEach((function(e){var n=JSON.parse(e.getAttribute("data-field-visibility-conditions")),o=n[0],a='[data-field-name="'.concat(e.getAttribute("data-field-name"),'"]'),s=o.field;(s=document.querySelector('[name="'.concat(s,'"], [name="').concat(s,'[]"]')))&&(t[s.name]=r(r({},t[s.name]),{},i({},a,n)))})),t}(e);t&&Object.keys(o).length&&(n[t]=o)}function s(t){var r=document.querySelector('form.give-form[data-id="'.concat(t,'"')).closest("form.give-form");if(r&&n.hasOwnProperty(t))for(var i=function(){var t=e(s[a],2),n=t[0],i=t[1];document.querySelectorAll('[name = "'.concat(n,'"]')).forEach((function(e){jQuery(e).on("input change blur",o.bind(null,r,n,i))}))},a=0,s=Object.entries(n[t]);a<s.length;a++)i()}!function(){document.querySelectorAll("form.give-form").forEach(a);for(var t=0,r=Object.entries(n);t<r.length;t++){for(var i=e(r[t],2),l=i[0],c=i[1],u=0,d=Object.entries(c);u<d.length;u++){var f=e(d[u],2),m=f[0],p=f[1];o(document.querySelector('form[data-id="'.concat(l,'"]')).closest(".give-form"),m,p)}s(l)}}(),document.addEventListener("give_gateway_loaded",(function(t){var r=document.getElementById(t.detail.formIdAttribute),i=r.getAttribute("data-id");a(r),function(t){var r=t.getAttribute("data-id");if(r&&r in n)for(var i=n[r],a=0,s=Object.entries(i);a<s.length;a++){var l=e(s[a],2),c=l[0],u=l[1];o(document.querySelector('form[data-id="'.concat(r,'"]')).closest(".give-form"),c,u)}}(r),s(i)}))}))},99560:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(l=i)|s>>>32-l,n);var s,l}function s(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function u(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}function d(e,t){var n,r,i,a,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,m=-271733879,p=-1732584194,v=271733878;for(n=0;n<e.length;n+=16)r=f,i=m,a=p,d=v,f=s(f,m,p,v,e[n],7,-680876936),v=s(v,f,m,p,e[n+1],12,-389564586),p=s(p,v,f,m,e[n+2],17,606105819),m=s(m,p,v,f,e[n+3],22,-1044525330),f=s(f,m,p,v,e[n+4],7,-176418897),v=s(v,f,m,p,e[n+5],12,1200080426),p=s(p,v,f,m,e[n+6],17,-1473231341),m=s(m,p,v,f,e[n+7],22,-45705983),f=s(f,m,p,v,e[n+8],7,1770035416),v=s(v,f,m,p,e[n+9],12,-1958414417),p=s(p,v,f,m,e[n+10],17,-42063),m=s(m,p,v,f,e[n+11],22,-1990404162),f=s(f,m,p,v,e[n+12],7,1804603682),v=s(v,f,m,p,e[n+13],12,-40341101),p=s(p,v,f,m,e[n+14],17,-1502002290),f=l(f,m=s(m,p,v,f,e[n+15],22,1236535329),p,v,e[n+1],5,-165796510),v=l(v,f,m,p,e[n+6],9,-1069501632),p=l(p,v,f,m,e[n+11],14,643717713),m=l(m,p,v,f,e[n],20,-373897302),f=l(f,m,p,v,e[n+5],5,-701558691),v=l(v,f,m,p,e[n+10],9,38016083),p=l(p,v,f,m,e[n+15],14,-660478335),m=l(m,p,v,f,e[n+4],20,-405537848),f=l(f,m,p,v,e[n+9],5,568446438),v=l(v,f,m,p,e[n+14],9,-1019803690),p=l(p,v,f,m,e[n+3],14,-187363961),m=l(m,p,v,f,e[n+8],20,1163531501),f=l(f,m,p,v,e[n+13],5,-1444681467),v=l(v,f,m,p,e[n+2],9,-51403784),p=l(p,v,f,m,e[n+7],14,1735328473),f=c(f,m=l(m,p,v,f,e[n+12],20,-1926607734),p,v,e[n+5],4,-378558),v=c(v,f,m,p,e[n+8],11,-2022574463),p=c(p,v,f,m,e[n+11],16,1839030562),m=c(m,p,v,f,e[n+14],23,-35309556),f=c(f,m,p,v,e[n+1],4,-1530992060),v=c(v,f,m,p,e[n+4],11,1272893353),p=c(p,v,f,m,e[n+7],16,-155497632),m=c(m,p,v,f,e[n+10],23,-1094730640),f=c(f,m,p,v,e[n+13],4,681279174),v=c(v,f,m,p,e[n],11,-358537222),p=c(p,v,f,m,e[n+3],16,-722521979),m=c(m,p,v,f,e[n+6],23,76029189),f=c(f,m,p,v,e[n+9],4,-640364487),v=c(v,f,m,p,e[n+12],11,-421815835),p=c(p,v,f,m,e[n+15],16,530742520),f=u(f,m=c(m,p,v,f,e[n+2],23,-995338651),p,v,e[n],6,-198630844),v=u(v,f,m,p,e[n+7],10,1126891415),p=u(p,v,f,m,e[n+14],15,-1416354905),m=u(m,p,v,f,e[n+5],21,-57434055),f=u(f,m,p,v,e[n+12],6,1700485571),v=u(v,f,m,p,e[n+3],10,-1894986606),p=u(p,v,f,m,e[n+10],15,-1051523),m=u(m,p,v,f,e[n+1],21,-2054922799),f=u(f,m,p,v,e[n+8],6,1873313359),v=u(v,f,m,p,e[n+15],10,-30611744),p=u(p,v,f,m,e[n+6],15,-1560198380),m=u(m,p,v,f,e[n+13],21,1309151649),f=u(f,m,p,v,e[n+4],6,-145523070),v=u(v,f,m,p,e[n+11],10,-1120210379),p=u(p,v,f,m,e[n+2],15,718787259),m=u(m,p,v,f,e[n+9],21,-343485551),f=o(f,r),m=o(m,i),p=o(p,a),v=o(v,d);return[f,m,p,v]}function f(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function m(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,r="0123456789abcdef",i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+=r.charAt(t>>>4&15)+r.charAt(15&t);return i}function v(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(d(m(e),8*e.length))}(v(e))}function h(e,t){return function(e,t){var n,r,i=m(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(m(t)),512+8*t.length),f(d(a.concat(r),640))}(v(e),v(t))}function y(e,t,n){return t?n?h(t,e):p(h(t,e)):n?g(e):p(g(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},48880:(e,t)=>{var n;!function(r,i,o){"use strict";var a=function(e,t){this.el_=this.isString_(e)?i.querySelectorAll(e):[e],this.config_=[],this.options_=t,this.selectors_=[],this.init_(),this.destroy=function(){this.loop_((function(e){e.removeEventListener("reset",this.events.reset),this.removeClasses_(e)}),(function(e){this.reset_(e)}))},this.rebuild=function(){this.loop_(null,(function(e){this.floatLabel_(e,!0)}))}};a.prototype={defaults_:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init_:function(){var e=this;e.initEvents_(),e.loop_((function(t,n){var r=e.config_[n].style;t.addEventListener("reset",e.events.reset),t.classList.add(e.prefixed_("form")),r&&t.classList.add(e.prefixed_("style-"+r))}),(function(t){e.floatLabel_(t)}))},initEvents_:function(){var e=this;e.events={blur:e.onBlur_.bind(e),change:e.onInput_.bind(e),focus:e.onFocus_.bind(e),input:e.onInput_.bind(e),reset:e.onReset_.bind(e)}},addRemove_:function(e){return e?"add":"remove"},build_:function(e){var t=this,n=t.getLabel_(e);n&&(e.classList.add(t.prefixed_(e.tagName.toLowerCase())),t.setLabel_(n,e),t.setPlaceholder_(n,e),t.wrapLabel_(n,e),t.handleEvents_(e,"add"),"function"==typeof t.config_[t.current_].customEvent&&t.config_[t.current_].customEvent.call(t,e))},createEl_:function(e,t){var n="string"==typeof e?i.createElement(e):e;for(var r in t=t||{})t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n},extend_:function(){var e=[].slice.call(arguments),t=e[0],n=e.slice(1);return Object.keys(n).forEach((function(e){for(var r in n[e])n[e].hasOwnProperty(r)&&(t[r]=n[e][r])})),t},floatLabel_:function(e,t){var n=this;if(n.isValidField_(e)){if(n.hasParent_(e)){if(!0!==t)return;n.reset_(e)}n.build_(e)}},getLabel_:function(e){var t='label[for="'+e.getAttribute("id")+'"]',n=this.el_[this.current_].querySelectorAll(t);return n.length>1&&(n=e.parentNode.querySelectorAll(t)),1===n.length&&n[0]},getLabelText_:function(e,t){var n=e.textContent.replace("*","").trim(),r=t.getAttribute("placeholder");return(!n||n&&r&&"placeholder"===this.config_[this.current_].prioritize)&&(n=r),n},handleEvents_:function(e,t){var n=this.events;["blur","input","focus"].forEach((function(r){"input"!==r||"file"!==e.type&&"SELECT"!==e.nodeName||(r="change"),e[t+"EventListener"](r,n[r])}))},hasParent_:function(e){return e.parentNode.classList.contains(this.prefixed_("wrap"))},isString_:function(e){return"[object String]"===Object.prototype.toString.call(e)},isValidField_:function(e){var t="INPUT"===e.tagName&&!this.config_[this.current_].inputRegex.test(e.getAttribute("type")),n="SELECT"===e.tagName&&null!==e.getAttribute("multiple");return e.getAttribute("id")&&!t&&!n},loop_:function(e,t){for(var n=this,r=0;r<n.el_.length;++r){if(void 0===n.selectors_[r]){var i=n.extend_({},n.defaults_,n.options_,n.el_[r].getAttribute("data-options")),o=":not("+i.exclude.split(/[\s,]+/).join("):not(")+")";n.selectors_[r]=i.transform.replace(/,/g,o+",")+o,n.config_[r]=i}var a=n.el_[r].querySelectorAll(n.selectors_[r]);n.current_=r,"function"==typeof e&&e.call(n,n.el_[r],r);for(var s=0;s<a.length;++s)"function"==typeof t&&t.call(n,a[s],r)}},onBlur_:function(e){e.target.parentNode.classList.remove(this.prefixed_("has-focus"))},onInput_:function(e){e.target.parentNode.classList[this.addRemove_(e.target.value.length)](this.prefixed_("is-active"))},onFocus_:function(e){e.target.parentNode.classList.add(this.prefixed_("has-focus"))},onReset_:function(){setTimeout(this.resetFields_.bind(this))},prefixed_:function(e){return this.config_[this.current_].prefix+e},removeClasses_:function(e){var t=this.config_[this.current_].prefix,n=e.className.split(" ").filter((function(e){return 0!==e.lastIndexOf(t,0)}));e.className=n.join(" ").trim()},reset_:function(e){var t=this,n=e.parentNode;if(t.hasParent_(e)){for(var r=i.createDocumentFragment();n.firstElementChild;){var o=n.firstElementChild;t.removeClasses_(o),r.appendChild(o)}n.parentNode.replaceChild(r,n),t.resetPlaceholder_(e),t.handleEvents_(e,"remove")}},resetFields_:function(){for(var e=this,t=e.el_[e.current_].querySelectorAll(e.selectors_[e.current_]),n=0;n<t.length;++n)t[n].parentNode.classList[e.addRemove_("SELECT"===t[n].tagName&&""!==t[n].value)](e.prefixed_("is-active"))},resetPlaceholder_:function(e){var t="data-placeholder",n=e.getAttribute(t);null!==n&&(e.removeAttribute(t),e.setAttribute("placeholder",n))},setLabel_:function(e,t){var n=this;e.classList.add(n.prefixed_("label")),e.textContent=n.getLabelText_(e,t),"function"==typeof n.config_[n.current_].customLabel&&(e.textContent=n.config_[n.current_].customLabel.call(n,e,t))},setPlaceholder_:function(e,t){var n=this,r=t.getAttribute("placeholder");"label"!==n.config_[n.current_].prioritize&&r||(r&&t.setAttribute("data-placeholder",r),r=n.getLabelText_(e,t)),"function"==typeof n.config_[n.current_].customPlaceholder&&(r=n.config_[n.current_].customPlaceholder.call(n,r,t,e)),"SELECT"===t.tagName?n.setSelectPlaceholder_(t,r):t.setAttribute("placeholder",r)},setSelectPlaceholder_:function(e,t){var n=e.firstElementChild;n.hasAttribute("value")&&n.value?(e.insertBefore(new Option(t,""),n),!1===e.options[e.selectedIndex].defaultSelected&&(e.selectedIndex=0)):n.setAttribute("value",""),""===n.textContent&&(n.textContent=t)},wrapLabel_:function(e,t){var n=this,r=n.createEl_("div",{class:n.prefixed_("wrap")+" "+n.prefixed_("wrap-"+t.tagName.toLowerCase())});t.value!==o&&t.value.length&&r.classList.add(n.prefixed_("is-active")),(null!==t.getAttribute("required")||t.classList.contains(n.config_[n.current_].requiredClass))&&r.classList.add(n.prefixed_("is-required")),t.parentNode.insertBefore(r,t),r.appendChild(e),r.appendChild(t)}},(n=function(){return a}.apply(t,[]))===o||(e.exports=n)}(window,document)},66182:(e,t,n)=>{e.exports=n(98069)},98069:(e,t,n)=>{var r=n(99560),i=n(17673),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:r(e)}function l(e){var t=i.stringify(function(e){var t={},n={protocol:1,format:1};for(var r in e)n[r]||(t[r]=e[r]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var r="//www.gravatar.com/avatar/";t&&t.cdn?(r=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(r=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var i=l(t);return r+s(e)+i},profile_url:function(e,t,n){var r=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)i=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var i=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=l(t);return i+s(e)+"."+r+o}}},15303:(e,t,n)=>{e.exports=n(49457)},49402:e=>{!function(t){if("undefined"!=typeof window){var n=!0,r="",i=0,o="",a=null,s="",l=!1,c={resize:1,click:1},u=128,d=!0,f=1,m="bodyOffset",p=m,v=!0,g="",h={},y=32,b=null,w=!1,_=!1,x="[iFrameSizer]",C=x.length,k="",I={max:1,min:1,bodyScroll:1,documentElementScroll:1},E="child",O=window.parent,S="*",j=0,T=!1,A=null,M=16,L=1,N="scroll",P=N,G=window,z=function(){oe("onMessage function not defined")},F=function(){},B=function(){},q={height:function(){return oe("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return oe("Custom width calculation function not defined"),document.body.scrollWidth}},D={},R=!1;try{var Q=Object.create({},{passive:{get:function(){R=!0}}});window.addEventListener("test",ee,Q),window.removeEventListener("test",ee,Q)}catch(e){}var U,H,V,W,$,K,Y,J={bodyOffset:function(){return document.body.offsetHeight+ge("marginTop")+ge("marginBottom")},offset:function(){return J.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return q.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ye(J))},min:function(){return Math.min.apply(null,ye(J))},grow:function(){return J.max()},lowestElement:function(){return Math.max(J.bodyOffset()||J.documentElementOffset(),he("bottom",we()))},taggedElement:function(){return be("bottom","data-iframe-height")}},Z={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return q.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(Z.bodyScroll(),Z.documentElementScroll())},max:function(){return Math.max.apply(null,ye(Z))},min:function(){return Math.min.apply(null,ye(Z))},rightMostElement:function(){return he("right",we())},taggedElement:function(){return be("right","data-iframe-width")}},X=(U=_e,$=null,K=0,Y=function(){K=Date.now(),$=null,W=U.apply(H,V),$||(H=V=null)},function(){var e=Date.now();K||(K=e);var t=M-(e-K);return H=this,V=arguments,t<=0||t>M?($&&(clearTimeout($),$=null),K=e,W=U.apply(H,V),$||(H=V=null)):$||($=setTimeout(Y,t)),W});te(window,"message",(function(t){var n={init:function(){g=t.data,O=t.source,ae(),d=!1,setTimeout((function(){v=!1}),u)},reset:function(){v?ie("Page reset ignored by init"):(ie("Page size reset by host page"),ke("resetPage"))},resize:function(){xe("resizeParent","Parent window requested size check")},moveToAnchor:function(){h.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();ie("PageInfoFromParent called from parent: "+e),B(JSON.parse(e)),ie(" --")},message:function(){var e=i();ie("onMessage called from parent: "+e),z(JSON.parse(e)),ie(" --")}};function r(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function o(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var i=r();i in n?n[i]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||o()||oe("Unexpected message ("+t.data+")")}x===(""+t.data).substr(0,C)&&(!1===d?a():o()?n.init():ie('Ignored message of type "'+r()+'". Received before initialization.'))})),te(window,"readystatechange",Oe),Oe()}function ee(){}function te(e,t,n,r){e.addEventListener(t,n,!!R&&(r||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function re(e){return x+"["+k+"] "+e}function ie(e){w&&"object"==typeof window.console&&console.log(re(e))}function oe(e){"object"==typeof window.console&&console.warn(re(e))}function ae(){var e;!function(){function e(e){return"true"===e}var a=g.substr(C).split(":");k=a[0],i=t!==a[1]?Number(a[1]):i,l=t!==a[2]?e(a[2]):l,w=t!==a[3]?e(a[3]):w,y=t!==a[4]?Number(a[4]):y,n=t!==a[6]?e(a[6]):n,o=a[7],p=t!==a[8]?a[8]:p,r=a[9],s=a[10],j=t!==a[11]?Number(a[11]):j,h.enable=t!==a[12]&&e(a[12]),E=t!==a[13]?a[13]:E,P=t!==a[14]?a[14]:P,_=t!==a[15]?Boolean(a[15]):_}(),ie("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;ie("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(se,e),z="onMessage"in e?e.onMessage:z,F="onReady"in e?e.onReady:F,S="targetOrigin"in e?e.targetOrigin:S,p="heightCalculationMethod"in e?e.heightCalculationMethod:p,P="widthCalculationMethod"in e?e.widthCalculationMethod:P}function t(e,t){return"function"==typeof e&&(ie("Setup custom "+t+"CalcMethod"),q[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),p=t(p,"height"),P=t(P,"width"));ie("TargetOrigin for parent set to: "+S)}(),function(){t===o&&(o=i+"px");le("margin",function(e,t){-1!==t.indexOf("-")&&(oe("Negative CSS value ignored for "+e),t="");return t}("margin",o))}(),le("background",r),le("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),fe(),me(),document.documentElement.style.height="",document.body.style.height="",ie('HTML & body height set to "auto"'),ie("Enable public methods"),G.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,pe()):!1===e&&!0===n&&(n=!1,ue("remove"),null!==a&&a.disconnect(),clearInterval(b)),Ee(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Ee(0,0,"close")},getId:function(){return k},getPageInfo:function(e){"function"==typeof e?(B=e,Ee(0,0,"pageInfo")):(B=function(){},Ee(0,0,"pageInfoStop"))},moveToAnchor:function(e){h.findTarget(e)},reset:function(){Ie("parentIFrame.reset")},scrollTo:function(e,t){Ee(t,e,"scrollTo")},scrollToOffset:function(e,t){Ee(t,e,"scrollToOffset")},sendMessage:function(e,t){Ee(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){p=e,fe()},setWidthCalculationMethod:function(e){P=e,me()},setTargetOrigin:function(e){ie("Set targetOrigin: "+e),S=e},size:function(e,t){xe("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){if(!0!==_)return;function e(e){Ee(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){ie("Add event listener: "+n),te(window.document,t,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}(),pe(),h=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),r=e();return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function r(e){function r(e){var t=n(e);ie("Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),Ee(t.y,t.x,"scrollToOffset")}var i=e.split("#")[1]||e,o=decodeURIComponent(i),a=document.getElementById(o)||document.getElementsByName(o)[0];t!==a?r(a):(ie("In page link (#"+i+") not found in iFrame, so sending to parent"),Ee(0,0,"inPageLink","#"+i))}function i(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&r(t)}function o(){function e(e){function t(e){e.preventDefault(),r(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&te(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){te(window,"hashchange",i)}function s(){setTimeout(i,u)}function l(){Array.prototype.forEach&&document.querySelectorAll?(ie("Setting up location.hash handlers"),o(),a(),s()):oe("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}h.enable?l():ie("In page linking not enabled");return{findTarget:r}}(),xe("init","Init message from host page"),F()}function se(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],oe("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function le(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,ie("Body "+e+' set to "'+n+'"'))}function ce(e){var t={add:function(t){function n(){xe(e.eventName,e.eventType)}D[t]=n,te(window,t,n,{passive:!0})},remove:function(e){var t,n,r,i=D[e];delete D[e],t=window,n=e,r=i,t.removeEventListener(n,r,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),ie(ne(e.method)+" event listener: "+e.eventType)}function ue(e){ce({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ce({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ce({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ce({method:e,eventType:"Input",eventName:"input"}),ce({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ce({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ce({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ce({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ce({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ce({method:e,eventType:"Touch Start",eventName:"touchstart"}),ce({method:e,eventType:"Touch End",eventName:"touchend"}),ce({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ce({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ce({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ce({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===E&&ce({method:e,eventType:"IFrame Resized",eventName:"resize"})}function de(e,t,n,r){return t!==e&&(e in n||(oe(e+" is not a valid option for "+r+"CalculationMethod."),e=t),ie(r+' calculation method set to "'+e+'"')),e}function fe(){p=de(p,m,J,"height")}function me(){P=de(P,N,Z,"width")}function pe(){var e;!0===n?(ue("add"),e=0>y,window.MutationObserver||window.WebKitMutationObserver?e?ve():a=function(){function e(e){function t(e){!1===e.complete&&(ie("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",o,!1),l.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){l.splice(l.indexOf(e),1)}function n(e){ie("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",o,!1),t(e)}function r(e,t,r){n(e.target),xe(t,r+": "+e.target.src)}function i(e){r(e,"imageLoad","Image loaded")}function o(e){r(e,"imageLoadFailed","Image load failed")}function a(t){xe("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function s(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return u=new c(a),ie("Create body MutationObserver"),u.observe(e,t),u}var l=[],c=window.MutationObserver||window.WebKitMutationObserver,u=s();return{disconnect:function(){"disconnect"in u&&(ie("Disconnect body MutationObserver"),u.disconnect(),l.forEach(n))}}}():(ie("MutationObserver not supported in this browser!"),ve())):ie("Auto Resize disabled")}function ve(){0!==y&&(ie("setInterval: "+y+"ms"),b=setInterval((function(){xe("interval","setInterval: "+y)}),Math.abs(y)))}function ge(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function he(e,t){for(var n=t.length,r=0,i=0,o=ne(e),a=Date.now(),s=0;s<n;s++)(r=t[s].getBoundingClientRect()[e]+ge("margin"+o,t[s]))>i&&(i=r);return a=Date.now()-a,ie("Parsed "+n+" HTML elements"),ie("Element position calculated in "+a+"ms"),function(e){e>M/2&&ie("Event throttle increased to "+(M=2*e)+"ms")}(a),i}function ye(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function be(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(oe("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),he(e,n)}function we(){return document.querySelectorAll("body *")}function _e(e,n,r,i){var o,a;!function(){function e(e,t){return!(Math.abs(e-t)<=j)}return o=t!==r?r:J[p](),a=t!==i?i:Z[P](),e(f,o)||l&&e(L,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(p in I||l&&P in I)?Ie(n):e in{interval:1}||ie("No change in size detected"):(Ce(),Ee(f=o,L=a,e))}function xe(e,t,n,r){T&&e in c?ie("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ie("Trigger event: "+t),"init"===e?_e(e,t,n,r):X(e,t,n,r))}function Ce(){T||(T=!0,ie("Trigger event lock on")),clearTimeout(A),A=setTimeout((function(){T=!1,ie("Trigger event lock off"),ie("--")}),u)}function ke(e){f=J[p](),L=Z[P](),Ee(f,L,e)}function Ie(e){var t=p;p=m,ie("Reset trigger event: "+e),Ce(),ke("reset"),p=t}function Ee(e,n,r,i,o){var a;t===o?o=S:ie("Message targetOrigin: "+o),ie("Sending message to host page ("+(a=k+":"+e+":"+n+":"+r+(t!==i?":"+i:""))+")"),O.postMessage(x+a,o)}function Oe(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},46702:(e,t)=>{var n,r,i;!function(o){if("undefined"!=typeof window){var a,s=0,l=!1,c=!1,u="message".length,d="[iFrameSizer]",f=d.length,m=null,p=window.requestAnimationFrame,v={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},h=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){O("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){D(n,e)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")),r=[],(i="function"==typeof(n=V)?n.apply(t,r):n)===o||(e.exports=i),window.iFrameResize=window.iFrameResize||V()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function _(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function C(e){return d+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function k(e){return g[e]?g[e].log:l}function I(e,t){S("log",e,t,k(e))}function E(e,t){S("info",e,t,k(e))}function O(e,t){S("warn",e,t,!0)}function S(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](C(t),n)}function j(e){function t(){i("Height"),i("Width"),F((function(){z(A),N(D),v("onResized",A)}),A,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function r(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function i(e){var t=Number(g[D]["max"+e]),n=Number(g[D]["min"+e]),r=e.toLowerCase(),i=Number(A[r]);I(D,"Checking "+r+" is in range "+n+"-"+t),i<n&&(i=n,I(D,"Set "+r+" to min value")),i>t&&(i=t,I(D,"Set "+r+" to max value")),A[r]=""+i}function o(e){return j.substr(j.indexOf(":")+u+e)}function a(e,t){var n,r,i;n=function(){var n,r;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=A.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},r=32,b[i=t]||(b[i]=setTimeout((function(){b[i]=null,n()}),r))}function s(e){var t=e.getBoundingClientRect();return L(D),{x:Math.floor(Number(t.left)+Number(m.x)),y:Math.floor(Number(t.top)+Number(m.y))}}function l(e){var t=e?s(A.iframe):{x:0,y:0},n={x:Number(A.width)+t.x,y:Number(A.height)+t.y};I(D,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):O(D,"Unable to scroll to requested position, window.parentIFrame not found"):(m=n,c(),I(D,"--"))}function c(){!1!==v("onScroll",m)?N(D):P()}function p(e){var t={};if(0===Number(A.width)&&0===Number(A.height)){var n=o(9).split(":");t={x:n[1],y:n[0]}}else t={x:A.width,y:A.height};v(e,{iframe:A.iframe,screenX:Number(t.x),screenY:Number(t.y),type:A.type})}function v(e,t){return T(D,e,t)}var h,y,w,C,k,S,j=e.data,A={},D=null;"[iFrameResizerChild]Ready"===j?function(){for(var e in g)B("iFrame requested init",q(e),g[e].iframe,e)}():d===(""+j).substr(0,f)&&j.substr(f).split(":")[0]in g?(w=j.substr(f).split(":"),C=w[1]?parseInt(w[1],10):0,k=g[w[0]]&&g[w[0]].iframe,S=getComputedStyle(k),A={iframe:k,id:w[0],height:C+n(S)+r(S),width:w[2],type:w[3]},D=A.id,g[D]&&(g[D].loaded=!0),(y=A.type in{true:1,false:1,undefined:1})&&I(D,"Ignoring init message from meta parent page"),!y&&function(e){var t=!0;return g[e]||(t=!1,O(A.type+" No settings for "+e+". Message was: "+j)),t}(D)&&(I(D,"Received: "+j),h=!0,null===A.iframe&&(O(D,"IFrame ("+A.id+") not found"),h=!1),h&&function(){var t,n=e.origin,r=g[D]&&g[D].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(I(D,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=g[D]&&g[D].remoteHost,I(D,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+A.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(g[D]&&g[D].firstRun&&g[D]&&(g[D].firstRun=!1),A.type){case"close":M(A.iframe);break;case"message":u=o(6),I(D,"onMessage passed: {iframe: "+A.iframe.id+", message: "+u+"}"),v("onMessage",{iframe:A.iframe,message:JSON.parse(u)}),I(D,"--");break;case"mouseenter":p("onMouseEnter");break;case"mouseleave":p("onMouseLeave");break;case"autoResize":g[D].autoResize=JSON.parse(o(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":a(g[D]&&g[D].iframe,D),function(){function e(e,r){function i(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){I(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",x)}var n=D;e("Add ",_),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[D]&&g[D].stopPageInfo&&(g[D].stopPageInfo(),delete g[D].stopPageInfo);break;case"inPageLink":n=o(9).split("#")[1]||"",r=decodeURIComponent(n),(i=document.getElementById(r)||document.getElementsByName(r)[0])?(e=s(i),I(D,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),m={x:e.x,y:e.y},c(),I(D,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):I(D,"In page link #"+n+" not found and window.parentIFrame not found"):I(D,"In page link #"+n+" not found");break;case"reset":G(A);break;case"init":t(),v("onInit",A.iframe);break;default:0===Number(A.width)&&0===Number(A.height)?O("Unsupported message received ("+A.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e,n,r,i,u}())):E(D,"Ignored: "+j)}function T(e,t,n){var r=null,i=null;if(g[e]){if("function"!=typeof(r=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");i=r(n)}return i}function A(e){var t=e.id;delete g[t]}function M(e){var t=e.id;if(!1!==T(t,"onClose",t)){I(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){O(e)}T(t,"onClosed",t),I(t,"--"),A(e)}else I(t,"Close iframe cancelled by onClose event")}function L(e){null===m&&I(e,"Get page position: "+(m={x:window.pageXOffset!==o?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==o?window.pageYOffset:document.documentElement.scrollTop}).x+","+m.y)}function N(e){null!==m&&(window.scrollTo(m.x,m.y),I(e,"Set page position: "+m.x+","+m.y),P())}function P(){m=null}function G(e){I(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),L(e.id),F((function(){z(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function z(e){function t(t){c||"0"!==e[t]||(c=!0,I(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}function n(e){return null!==e.offsetParent}g[e]&&n(g[e].iframe)&&(t("height")||t("width"))&&B("Visibility change","resize",g[e].iframe,e)}Object.keys(g).forEach((function(t){e(t)}))}function t(t){I("window","Mutation observed: "+t[0].target+" "+t[0].type),R(e,16)}function n(){var e=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new r(t).observe(e,n)}var r=w();r&&n()}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",I(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):I("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;g[r]&&(g[r].sizeHeight&&n("height"),g[r].sizeWidth&&n("width"))}function F(e,t,n){n!==t.type&&p&&!window.jasmine?(I(t.id,"Requesting animation frame"),p(e)):e()}function B(e,t,n,r,i){var o,a=!1;r=r||n.id,g[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=g[r]&&g[r].targetOrigin,I(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(d+t,o)):O(r,"["+e+"] IFrame("+r+") not found"),i&&g[r]&&g[r].warningTimeout&&(g[r].msgTimeout=setTimeout((function(){!g[r]||g[r].loaded||a||(a=!0,O(r,"IFrame has not responded within "+g[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),g[r].warningTimeout)))}function q(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod+":"+g[e].mouseEvents}function D(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],O(a,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var r,i,a=function(n){var r;return""===n&&(e.id=(r=t&&t.id||y.id+s++,null!==document.getElementById(r)&&(r+=s++),n=r),l=(t||{}).log,I(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);a in g&&"iFrameResizer"in e?O(a,"Ignored iFrame, already setup."):(!function(t){var r;t=t||{},g[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in y)Object.prototype.hasOwnProperty.call(y,t)&&(g[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:y[t])}(t),g[a]&&(g[a].targetOrigin=!0===g[a].checkOrigin?""===(r=g[a].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*")}(t),function(){switch(I(a,"IFrame scrolling "+(g[a]&&g[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(g[a]&&g[a].scrolling)?"hidden":"auto",g[a]&&g[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[a]?g[a].scrolling:"no"}}(),function(){function t(t){var n=g[a][t];1/0!==n&&0!==n&&(e.style[t]="number"==typeof n?n+"px":n,I(a,"Set "+t+" = "+e.style[t]))}function n(e){if(g[a]["min"+e]>g[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[a]&&g[a].bodyMargin)&&"0"!==(g[a]&&g[a].bodyMargin)||(g[a].bodyMarginV1=g[a].bodyMargin,g[a].bodyMargin=g[a].bodyMargin+"px"),r=q(a),(i=w())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&M(e)}))}))})).observe(e.parentNode,{childList:!0})}(i),_(e,"load",(function(){var t,n;B("iFrame.onload",r,e,o,!0),t=g[a]&&g[a].firstRun,n=g[a]&&g[a].heightCalculationMethod in v,!t&&n&&G({iframe:e,height:0,width:0,type:"init"})})),B("init",r,e,o,!0),g[a]&&(g[a].iframe.iFrameResizer={close:M.bind(null,g[a].iframe),removeListeners:A.bind(null,g[a].iframe),resize:B.bind(null,"Window resize","resize",g[a].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,g[a].iframe,a)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),g[a].iframe,a)}}))}function R(e,t){null===h&&(h=setTimeout((function(){h=null,e()}),t))}function Q(){"hidden"!==document.visibilityState&&(I("document","Trigger event: Visiblity change"),R((function(){U("Tab Visable","resize")}),16))}function U(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&B(e,t,g[n].iframe,n)}))}function H(){_(window,"message",j),_(window,"resize",(function(){var e;I("window","Trigger event: "+(e="resize")),R((function(){U("Window "+e,"resize")}),16)})),_(document,"visibilitychange",Q),_(document,"-webkit-visibilitychange",Q)}function V(){function e(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),D(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!p;e+=1)p=window[t[e]+"RequestAnimationFrame"];p?p=p.bind(window):I("setup","RequestAnimationFrame not supported")}(),H(),function(n,r){switch(t=[],function(e){e&&e.enablePublicMethods&&O("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),e.bind(o,n));break;case"object":e(n,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return t}}}()},49457:(e,t,n)=>{var r=n(46702);t.iframeResize=r,n(49402)},59211:function(){(function(){var e,t,n,r,i,o,a,s,l,c,u,d,f,m,p,v,g,h,y,b,w,_,x,C,k=[].slice,I=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};(e=window.jQuery||window.Zepto||window.$).payment={},e.payment.fn={},e.fn.payment=function(){var t,n;return n=arguments[0],t=2<=arguments.length?k.call(arguments,1):[],e.payment.fn[n].apply(this,t)},i=/(\d{1,4})/g,e.payment.cards=r=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:i,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:i,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:i,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:i,length:[16],cvcLength:[3],luhn:!0}],t=function(e){var t,n,i,o,a,s,l;for(e=(e+"").replace(/\D/g,""),i=0,a=r.length;i<a;i++)for(o=0,s=(l=(t=r[i]).patterns).length;o<s;o++)if(n=l[o]+"",e.substr(0,n.length)===n)return t},n=function(e){var t,n,i;for(n=0,i=r.length;n<i;n++)if((t=r[n]).type===e)return t},f=function(e){var t,n,r,i,o,a;for(r=!0,i=0,o=0,a=(n=(e+"").split("").reverse()).length;o<a;o++)t=n[o],t=parseInt(t,10),(r=!r)&&(t*=2),t>9&&(t-=9),i+=t;return i%10==0},d=function(e){var t;return null!=e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)||!document.selection.createRange().text)},x=function(e,t){var n,r,i,o,a;try{r=t.prop("selectionStart")}catch(e){e,r=null}if(o=t.val(),t.val(e),null!==r&&t.is(":focus"))return r===o.length&&(r=e.length),o!==e&&(a=o.slice(r-1,+r+1||9e9),n=e.slice(r-1,+r+1||9e9),i=e[r],/\d/.test(i)&&a===i+" "&&n===" "+i&&(r+=1)),t.prop("selectionStart",r),t.prop("selectionEnd",r)},h=function(e){var t,n,r,i,o,a;for(null==e&&(e=""),"0123456789","0123456789",i="",o=0,a=(t=e.split("")).length;o<a;o++)n=t[o],(r="0123456789".indexOf(n))>-1&&(n="0123456789"[r]),i+=n;return i},g=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,""),x(e,n)}))},p=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var t;return t=n.val(),t=h(t),t=e.payment.formatCardNumber(t),x(t,n)}))},s=function(n){var r,i,o,a,s,l,c;if(o=String.fromCharCode(n.which),/^\d+$/.test(o)&&(r=e(n.currentTarget),c=r.val(),i=t(c+o),a=(c.replace(/\D/g,"")+o).length,l=16,i&&(l=i.length[i.length.length-1]),!(a>=l||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==c.length)))return(s=i&&"amex"===i.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(c)?(n.preventDefault(),setTimeout((function(){return r.val(c+" "+o)}))):s.test(c+o)?(n.preventDefault(),setTimeout((function(){return r.val(c+o+" ")}))):void 0},o=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d\s$/,""))}))):/\s\d?$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d$/,""))}))):void 0},v=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var t;return t=n.val(),t=h(t),t=e.payment.formatExpiry(t),x(t,n)}))},l=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return n=e(t.currentTarget),i=n.val()+r,/^\d$/.test(i)&&"0"!==i&&"1"!==i?(t.preventDefault(),setTimeout((function(){return n.val("0"+i+" / ")}))):/^\d\d$/.test(i)?(t.preventDefault(),setTimeout((function(){var e,t;return e=parseInt(i[0],10),(t=parseInt(i[1],10))>2&&0!==e?n.val("0"+e+" / "+t):n.val(i+" / ")}))):void 0},c=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return i=(n=e(t.currentTarget)).val(),/^\d\d$/.test(i)?n.val(i+" / "):void 0},u=function(t){var n,r,i;if("/"===(i=String.fromCharCode(t.which))||" "===i)return r=(n=e(t.currentTarget)).val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0},a=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s\/\s$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d\s\/\s$/,""))}))):void 0},m=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,"").slice(0,4),x(e,n)}))},_=function(e){var t;return!(!e.metaKey&&!e.ctrlKey)||32!==e.which&&(0===e.which||(e.which<33||(t=String.fromCharCode(e.which),!!/[\d\s]/.test(t))))},b=function(n){var r,i,o,a;if(r=e(n.currentTarget),o=String.fromCharCode(n.which),/^\d+$/.test(o)&&!d(r))return a=(r.val()+o).replace(/\D/g,""),(i=t(a))?a.length<=i.length[i.length.length-1]:a.length<=16},w=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!d(n))return!((n.val()+r).replace(/\D/g,"").length>6)&&void 0},y=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!d(n))return(n.val()+r).length<=4},C=function(t){var n,i,o,a,s;if(s=(n=e(t.currentTarget)).val(),a=e.payment.cardType(s)||"unknown",!n.hasClass(a))return i=function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)o=r[e],n.push(o.type);return n}(),n.removeClass("unknown"),n.removeClass(i.join(" ")),n.addClass(a),n.toggleClass("identified","unknown"!==a),n.trigger("payment.cardType",a)},e.payment.fn.formatCardCVC=function(){return this.on("keypress",_),this.on("keypress",y),this.on("paste",m),this.on("change",m),this.on("input",m),this},e.payment.fn.formatCardExpiry=function(){return this.on("keypress",_),this.on("keypress",w),this.on("keypress",l),this.on("keypress",u),this.on("keypress",c),this.on("keydown",a),this.on("change",v),this.on("input",v),this},e.payment.fn.formatCardNumber=function(){return this.on("keypress",_),this.on("keypress",b),this.on("keypress",s),this.on("keydown",o),this.on("keyup",C),this.on("paste",p),this.on("change",p),this.on("input",p),this.on("input",C),this},e.payment.fn.restrictNumeric=function(){return this.on("keypress",_),this.on("paste",g),this.on("change",g),this.on("input",g),this},e.payment.fn.cardExpiryVal=function(){return e.payment.cardExpiryVal(e(this).val())},e.payment.cardExpiryVal=function(e){var t,n,r;return t=(r=e.split(/[\s\/]+/,2))[0],2===(null!=(n=r[1])?n.length:void 0)&&/^\d+$/.test(n)&&(n=(new Date).getFullYear().toString().slice(0,2)+n),{month:t=parseInt(t,10),year:n=parseInt(n,10)}},e.payment.validateCardNumber=function(e){var n,r;return e=(e+"").replace(/\s+|-/g,""),!!/^\d+$/.test(e)&&(!!(n=t(e))&&(r=e.length,I.call(n.length,r)>=0&&(!1===n.luhn||f(e))))},e.payment.validateCardExpiry=function(t,n){var r,i,o;return"object"==typeof t&&"month"in t&&(t=(o=t).month,n=o.year),!(!t||!n)&&(t=e.trim(t),n=e.trim(n),!!/^\d+$/.test(t)&&(!!/^\d+$/.test(n)&&(1<=t&&t<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(i=new Date(n,t),r=new Date,i.setMonth(i.getMonth()-1),i.setMonth(i.getMonth()+1,1),i>r)))))},e.payment.validateCardCVC=function(t,r){var i,o;return t=e.trim(t),!!/^\d+$/.test(t)&&(null!=(i=n(r))?(o=t.length,I.call(i.cvcLength,o)>=0):t.length>=3&&t.length<=4)},e.payment.cardType=function(e){var n;return e&&(null!=(n=t(e))?n.type:void 0)||null},e.payment.formatCardNumber=function(n){var r,i,o,a;return n=n.replace(/\D/g,""),(r=t(n))?(o=r.length[r.length.length-1],n=n.slice(0,o),r.format.global?null!=(a=n.match(r.format))?a.join(" "):void 0:null!=(i=r.format.exec(n))?(i.shift(),(i=e.grep(i,(function(e){return e}))).join(" ")):void 0):n},e.payment.formatExpiry=function(e){var t,n,r,i;return(n=e.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(t=n[1]||"",r=n[2]||"",(i=n[3]||"").length>0?r=" / ":" /"===r?(t=t.substring(0,1),r=""):2===t.length||r.length>0?r=" / ":1===t.length&&"0"!==t&&"1"!==t&&(t="0"+t,r=" / "),t+r+i):""}}).call(this)},26060:()=>{},55952:()=>{},72751:()=>{},63293:()=>{},61394:()=>{},43729:()=>{},88496:()=>{},59707:()=>{},91486:()=>{},83908:()=>{},35058:()=>{},79977:()=>{},55755:()=>{},57729:(e,t,n)=>{var r,i,o;i=[n(19567)],r=function(e){var t,n,r,i,o,a,s="Close",l="BeforeClose",c="AfterClose",u="BeforeAppend",d="MarkupParse",f="Open",m="Change",p="mfp",v="."+p,g="mfp-ready",h="mfp-removing",y="mfp-prevent-close",b=function(){},w=!!window.jQuery,_=e(window),x=function(e,n){t.ev.on(p+e+v,n)},C=function(t,n,r,i){var o=document.createElement("div");return o.className="mfp-"+t,r&&(o.innerHTML=r),i?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},k=function(n,r){t.ev.triggerHandler(p+n,r),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(r)?r:[r]))},I=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},E=function(){e.magnificPopup.instance||((t=new b).init(),e.magnificPopup.instance=t)},O=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=O(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),r=e(document),t.popupsCache={}},open:function(n){var i;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(i=0;i<s.length;i++)if((a=s[i]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=i;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],o="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=r,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=C("bg").on("click"+v,(function(){t.close()})),t.wrap=C("wrap").attr("tabindex",-1).on("click"+v,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=C("container",t.wrap)),t.contentContainer=C("content"),t.st.preloader&&(t.preloader=C("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(i=0;i<l.length;i++){var c=l[i];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(d,(function(e,t,n,r){n.close_replaceWith=I(r.type)})),o+=" mfp-close-btn-in"):t.wrap.append(I())),t.st.alignTop&&(o+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:_.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:r.height(),position:"absolute"}),t.st.enableEscapeKey&&r.on("keyup"+v,(function(e){27===e.keyCode&&t.close()})),_.on("resize"+v,(function(){t.updateSize()})),t.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&t.wrap.addClass(o);var u=t.wH=_.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(u)){var p=t._getScrollbarSize();p&&(m.marginRight=p)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),k("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(g),t._setFocus()):t.bgOverlay.addClass(g),r.on("focusin"+v,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(u),k(f),n}t.updateItemHTML()},close:function(){t.isOpen&&(k(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){k(s);var n=h+" "+g+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}r.off("keyup"+v+" focusin"+v),t.ev.off(v),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*n;t.wrap.css("height",r),t.wH=r}else t.wH=e||_.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var r=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=n,!t.currTemplate[r]){var o=!!t.st[r]&&t.st[r].markup;k("FirstMarkupParse",o),t.currTemplate[r]=!o||e(o)}i&&i!==n.type&&t.container.removeClass("mfp-"+i+"-holder");var a=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](n,t.currTemplate[r]);t.appendContent(a,r),n.preloaded=!0,k(m,n),i=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(I()):t.content=e:t.content="",k(u),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var r,i=t.items[n];if(i.tagName?i={el:e(i)}:(r=i.type,i={data:i,src:i.src}),i.el){for(var o=t.types,a=0;a<o.length;a++)if(i.el.hasClass("mfp-"+o[a])){r=o[a];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=r||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,k("ElementParse",i),t.items[n]},addGroup:function(e,n){var r=function(r){r.mfpEl=this,t._openClick(r,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,r)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,r):(n.items=e,e.off(i).on(i,r)))},_openClick:function(n,r,i){if((void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var o=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(o)if(e.isFunction(o)){if(!o.call(t))return!0}else if(_.width()<o)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=r.find(i.delegate)),t.open(i)}},updateStatus:function(e,r){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),r||"loading"!==e||(r=t.st.tLoading);var i={status:e,text:r};k("UpdateStatus",i),e=i.status,r=i.text,t.preloader.html(r),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var r=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(r&&i)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(r)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?r.height():document.body.scrollHeight)>(e||_.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,r){var i;r.data&&(n=e.extend(r.data,n)),k(d,[t,n,r]),e.each(n,(function(n,r){if(void 0===r||!1===r)return!0;if((i=n.split("_")).length>1){var o=t.find(v+"-"+i[0]);if(o.length>0){var a=i[1];"replaceWith"===a?o[0]!==r[0]&&o.replaceWith(r):"img"===a?o.is("img")?o.attr("src",r):o.replaceWith(e("<img>").attr("src",r).attr("class",o.attr("class"))):o.attr(i[1],r)}}else t.find(v+"-"+n).html(r)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,n){return E(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){E();var r=e(this);if("string"==typeof n)if("open"===n){var i,o=w?r.data("magnificPopup"):r[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?i=o.items[a]:(i=r,o.delegate&&(i=i.find(o.delegate)),i=i.eq(a)),t._openClick({mfpEl:i},r,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?r.data("magnificPopup",n):r[0].magnificPopup=n,t.addGroup(r,n);return r};var S,j,T,A="inline",M=function(){T&&(j.after(T.addClass(S)).detach(),T=null)};e.magnificPopup.registerModule(A,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(A),x(s+"."+A,(function(){M()}))},getInline:function(n,r){if(M(),n.src){var i=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(j||(S=i.hiddenClass,j=C(S),S="mfp-"+S),T=o.after(j).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(r,{},n),r}}});var L,N="ajax",P=function(){L&&e(document.body).removeClass(L)},G=function(){P(),t.req&&t.req.abort()};e.magnificPopup.registerModule(N,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(N),L=t.st.ajax.cursor,x(s+"."+N,G),x("BeforeChange."+N,G)},getAjax:function(n){L&&e(document.body).addClass(L),t.updateStatus("loading");var r=e.extend({url:n.src,success:function(r,i,o){var a={data:r,xhr:o};k("ParseAjax",a),t.appendContent(e(a.data),N),n.finished=!0,P(),t._setFocus(),setTimeout((function(){t.wrap.addClass(g)}),16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){P(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(r),""}}});var z,F=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=t.st.image.titleSrc;if(r){if(e.isFunction(r))return r.call(t,n);if(n.el)return n.el.attr(r)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,r=".image";t.types.push("image"),x(f+r,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),x(s+r,(function(){n.cursor&&e(document.body).removeClass(n.cursor),_.off("resize"+v)})),x("Resize"+r,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,r=e.img[0],i=function(o){z&&clearInterval(z),z=setInterval((function(){r.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(z),3==++n?i(10):40===n?i(50):100===n&&i(500))}),o)};i(1)},getImage:function(n,r){var i=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):++i<200?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=r.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",o).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(r,{title:F(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(z&&clearInterval(z),n.loadError?(r.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),t.updateStatus("ready")),r):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),t.findImageSize(n)),r)}}});var B,q=function(){return void 0===B&&(B=void 0!==document.createElement("p").style.MozTransform),B};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,r=".zoom";if(n.enabled&&t.supportsTransition){var i,o,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=r,t.css(i),t},u=function(){t.content.css("visibility","visible")};x("BuildControls"+r,(function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void u();(o=c(e)).css(t._getOffset()),t.wrap.append(o),i=setTimeout((function(){o.css(t._getOffset(!0)),i=setTimeout((function(){u(),setTimeout((function(){o.remove(),e=o=null,k("ZoomAnimationEnded")}),16)}),a)}),16)}})),x(l+r,(function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;o=c(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout((function(){o.css(t._getOffset())}),16)}})),x(s+r,(function(){t._allowZoom()&&(u(),o&&o.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var r,i=(r=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),o=parseInt(r.css("padding-top"),10),a=parseInt(r.css("padding-bottom"),10);i.top-=e(window).scrollTop()-o;var s={width:r.width(),height:(w?r.innerHeight():r[0].offsetHeight)-a-o};return q()?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var D="iframe",R="//about:blank",Q=function(e){if(t.currTemplate[D]){var n=t.currTemplate[D].find("iframe");n.length&&(e||(n[0].src=R),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(D,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(D),x("BeforeChange",(function(e,t,n){t!==n&&(t===D?Q():n===D&&Q(!0))})),x(s+"."+D,(function(){Q()}))},getIframe:function(n,r){var i=n.src,o=t.st.iframe;e.each(o.patterns,(function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1}));var a={};return o.srcAction&&(a[o.srcAction]=i),t._parseMarkup(r,a,n),t.updateStatus("ready"),r}}});var U=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},H=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",x(f+i,(function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),r.on("keydown"+i,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),x("UpdateStatus"+i,(function(e,n){n.text&&(n.text=H(n.text,t.currItem.index,t.items.length))})),x(d+i,(function(e,r,i,o){var a=t.items.length;i.counter=a>1?H(n.tCounter,o.index,a):""})),x("BuildControls"+i,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),o=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y);i.click((function(){t.prev()})),o.click((function(){t.next()})),t.container.append(i.add(o))}})),x(m+i,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),x(s+i,(function(){r.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=U(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=U(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=U(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),k("LazyLoad",r),"image"===r.type&&(r.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){r.hasSize=!0})).on("error.mfploader",(function(){r.hasSize=!0,r.loadError=!0,k("LazyLoadError",r)})).attr("src",r.src)),r.preloaded=!0}}}});var V="retina";e.magnificPopup.registerModule(V,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(x("ImageHasSize."+V,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),x("ElementParse."+V,(function(t,r){r.src=e.replaceSrc(r,n)})))}}}}),E()},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},62587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u,d,f,m,p=e[c].replace(a,"%20"),v=p.indexOf(r);v>=0?(u=p.substr(0,v),d=p.substr(v+1)):(u=p,d=""),f=decodeURIComponent(u),m=decodeURIComponent(d),t(o,f)?Array.isArray(o[f])?o[f].push(m):o[f]=[o[f],m]:o[f]=m}return o}},12361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[i]))})).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},17673:(e,t,n)=>{"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},35666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===m)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",m="executing",p="completed",v={};function g(){}function h(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(j([])));_&&_!==n&&r.call(_,o)&&(b=_);var x=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function I(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return h.prototype=x.constructor=y,y.constructor=h,h.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},C(k.prototype),k.prototype[a]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(x),l(x,s,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},94506:(e,t,n)=>{var r,i,o;!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover((function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)})).mouseout((function(){e(".blockMsg").fadeOut(1e3)}))},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each((function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})})),this.each((function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)}))},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each((function(){l(this,t)}))},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,c){var d,p,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),d=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),p=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,w,_,x,C=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+C+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),w=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+C+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+C+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&v?(x='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(C+10)+';display:none;position:fixed">',c.title&&(x+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),x+='<div class="ui-widget-content ui-dialog-content"></div>',x+="</div>"):c.theme?(x='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(C+10)+';display:none;position:absolute">',c.title&&(x+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),x+='<div class="ui-widget-content ui-dialog-content"></div>',x+="</div>"):x=v?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(C+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(C+10)+';display:none;position:absolute"></div>',_=e(x),g&&(c.theme?(_.css(p),_.addClass("ui-widget-content")):_.css(d)),c.theme||w.css(c.overlayCSS),w.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,w,_],I=e(v?"body":s);e.each(k,(function(){this.appendTo(I)})),c.theme&&c.draggable&&e.fn.draggable&&_.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var E=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||E){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var O=m(s,"borderTopWidth"),S=m(s,"borderLeftWidth"),j=O?"(0 - "+O+")":0,T=S?"(0 - "+S+")":0;e.each(k,(function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),T&&n.setExpression("left",T),j&&n.setExpression("top",j);else if(c.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}}))}if(g&&(c.theme?_.find(".ui-widget-content").append(g):_.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var A=c.onBlock?c.onBlock:t,M=c.showOverlay&&!g?A:t,L=g?A:t;c.showOverlay&&w._fadeIn(c.fadeIn,M),g&&_._fadeIn(c.fadeIn,L)}else c.showOverlay&&w.show(),g&&_.show(),c.onBlock&&c.onBlock.bind(_)();if(u(1,s,c),v?(o=_[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(f,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-m(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-m(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(_[0],c.centerX,c.centerY),c.timeout){var N=setTimeout((function(){v?e.unblockUI(c):e(s).unblock(c)}),c.timeout);e(s).data("blockUI.timeout",N)}}}function l(t,n){var r,i,s=t==window,l=e(t),d=l.data("blockUI.history"),f=l.data("blockUI.timeout");f&&(clearTimeout(f),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,(function(){0==--r&&c(i,d,n,t)}))):c(i,d,n,t)}function c(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each((function(e,t){this.parentNode&&this.parentNode.removeChild(this)})),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,r,d):e(document).unbind(s,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout((function(){f(i)}),10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function f(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function m(t,n){return parseInt(e.css(t,n),10)||0}}n.amdO.jQuery?(i=[n(19567)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},92979:(e,t,n)=>{var r=n(19567);n(94506);var i=n(66419),o={transitionDelay:250,blockWith:function(e){var t=r.Deferred(),n=this,a=i(arguments).rest(),s=i(a).first();return s&&s.preventDefault&&s.preventDefault(),r.blockUI({message:null}),setTimeout((function(){var o=e.apply(n,a);i(o).isObject()&&i(o.always).isFunction()?o.always((function(){r.unblockUI()})).then(t.resolve,t.reject):r.unblockUI()}),o.transitionDelay),t.promise()},makeBlocked:function(e){return i.wrap(e,o.blockWith)}};e.exports=o},19567:e=>{"use strict";e.exports=window.jQuery},66419:function(e,t,n){e.exports=function(){var e="1.13.4",t="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g||Function("return this")()||{},r=Array.prototype,i=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,a=r.push,s=r.slice,l=i.toString,c=i.hasOwnProperty,u="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,f=Array.isArray,m=Object.keys,p=Object.create,v=u&&ArrayBuffer.isView,g=isNaN,h=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=Math.pow(2,53)-1;function _(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function x(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function C(e){return void 0===e}function k(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function I(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var E=I("String"),O=I("Number"),S=I("Date"),j=I("RegExp"),T=I("Error"),A=I("Symbol"),M=I("ArrayBuffer"),L=I("Function"),N=t.document&&t.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof N&&(L=function(e){return"function"==typeof e||!1});var P=L,G=I("Object"),z=d&&G(new DataView(new ArrayBuffer(8))),F="undefined"!=typeof Map&&G(new Map),B=I("DataView"),q=z?function(e){return null!=e&&P(e.getInt8)&&M(e.buffer)}:B,D=f||I("Array");function R(e,t){return null!=e&&c.call(e,t)}var Q=I("Arguments");!function(){Q(arguments)||(Q=function(e){return R(e,"callee")})}();var U=Q;function H(e){return O(e)&&g(e)}function V(e){return function(){return e}}function W(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=w}}function $(e){return function(t){return null==t?void 0:t[e]}}var K=$("byteLength"),Y=W(K),J=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Z=u?function(e){return v?v(e)&&!q(e):Y(e)&&J.test(l.call(e))}:V(!1),X=$("length");function ee(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=b.length,r=e.constructor,o=P(r)&&r.prototype||i,a="constructor";for(R(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=b[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function te(e){if(!x(e))return[];if(m)return m(e);var t=[];for(var n in e)R(e,n)&&t.push(n);return y&&ee(e,t),t}function ne(e,t){var n=te(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function re(e){return e instanceof re?e:this instanceof re?void(this._wrapped=e):new re(e)}function ie(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,K(e))}re.VERSION=e,re.prototype.value=function(){return this._wrapped},re.prototype.valueOf=re.prototype.toJSON=re.prototype.value,re.prototype.toString=function(){return String(this._wrapped)};var oe="[object DataView]";function ae(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&function e(t,n,r,i){t instanceof re&&(t=t._wrapped),n instanceof re&&(n=n._wrapped);var a=l.call(t);if(a!==l.call(n))return!1;if(z&&"[object Object]"==a&&q(t)){if(!q(n))return!1;a=oe}switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return o.valueOf.call(t)===o.valueOf.call(n);case"[object ArrayBuffer]":case oe:return e(ie(t),ie(n),r,i)}var s="[object Array]"===a;if(!s&&Z(t)){if(K(t)!==K(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,u=n.constructor;if(c!==u&&!(P(c)&&c instanceof c&&P(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}i=i||[];for(var d=(r=r||[]).length;d--;)if(r[d]===t)return i[d]===n;if(r.push(t),i.push(n),s){if((d=t.length)!==n.length)return!1;for(;d--;)if(!ae(t[d],n[d],r,i))return!1}else{var f,m=te(t);if(d=m.length,te(n).length!==d)return!1;for(;d--;)if(!R(n,f=m[d])||!ae(t[f],n[f],r,i))return!1}return r.pop(),i.pop(),!0}(e,t,n,r)}function se(e){if(!x(e))return[];var t=[];for(var n in e)t.push(n);return y&&ee(e,t),t}function le(e){var t=X(e);return function(n){if(null==n)return!1;var r=se(n);if(X(r))return!1;for(var i=0;i<t;i++)if(!P(n[e[i]]))return!1;return e!==pe||!P(n[ce])}}var ce="forEach",ue="has",de=["clear","delete"],fe=["get",ue,"set"],me=de.concat(ce,fe),pe=de.concat(fe),ve=["add"].concat(de,ce,ue),ge=F?le(me):I("Map"),he=F?le(pe):I("WeakMap"),ye=F?le(ve):I("Set"),be=I("WeakSet");function we(e){for(var t=te(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function _e(e){for(var t={},n=te(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function xe(e){var t=[];for(var n in e)P(e[n])&&t.push(n);return t.sort()}function Ce(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}}var ke=Ce(se),Ie=Ce(te),Ee=Ce(se,!0);function Oe(e){if(!x(e))return{};if(p)return p(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Se(e){return D(e)?e:[e]}function je(e){return re.toPath(e)}function Te(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Ae(e,t,n){var r=Te(e,je(t));return C(r)?n:r}function Me(e){return e}function Le(e){return e=Ie({},e),function(t){return ne(t,e)}}function Ne(e){return e=je(e),function(t){return Te(t,e)}}function Pe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Ge(e,t,n){return null==e?Me:P(e)?Pe(e,t,n):x(e)&&!D(e)?Le(e):Ne(e)}function ze(e,t){return Ge(e,t,1/0)}function Fe(e,t,n){return re.iteratee!==ze?re.iteratee(e,t):Ge(e,t,n)}function Be(){}function qe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}re.toPath=Se,re.iteratee=ze;var De=Date.now||function(){return(new Date).getTime()};function Re(e){var t=function(t){return e[t]},n="(?:"+te(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=Re(Qe),He=Re(_e(Qe)),Ve=re.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,$e={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ke=/\\|'|\r|\n|\u2028|\u2029/g;function Ye(e){return"\\"+$e[e]}var Je=/^\s*(\w|\$)+\s*$/,Ze=0;function Xe(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=Oe(e.prototype),a=e.apply(o,i);return x(a)?a:o}var et=_((function(e,t){var n=et.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return Xe(e,r,this,this,a)};return r}));et.placeholder=re;var tt=_((function(e,t,n){if(!P(e))throw new TypeError("Bind must be called on a function");var r=_((function(i){return Xe(e,r,t,this,n.concat(i))}));return r})),nt=W(X);function rt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=X(e);o<a;o++){var s=e[o];if(nt(s)&&(D(s)||U(s)))if(t>1)rt(s,t-1,n,r),i=r.length;else for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else n||(r[i++]=s)}return r}var it=_((function(e,t){var n=(t=rt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=tt(e[r],e)}return e})),ot=_((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),at=et(ot,re,1);function st(e){return function(){return!e.apply(this,arguments)}}function lt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var ct=et(lt,2);function ut(e,t,n){t=Fe(t,n);for(var r,i=te(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r}function dt(e){return function(t,n,r){n=Fe(n,r);for(var i=X(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var ft=dt(1),mt=dt(-1);function pt(e,t,n,r){for(var i=(n=Fe(n,r,1))(t),o=0,a=X(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o}function vt(e,t,n){return function(r,i,o){var a=0,l=X(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+l,a):l=o>=0?Math.min(o+1,l):o+l+1;else if(n&&o&&l)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(s.call(r,a,l),H))>=0?o+a:-1;for(o=e>0?a:l-1;o>=0&&o<l;o+=e)if(r[o]===i)return o;return-1}}var gt=vt(1,ft,pt),ht=vt(-1,mt);function yt(e,t,n){var r=(nt(e)?ft:ut)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function bt(e,t,n){var r,i;if(t=Pe(t,n),nt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=te(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function wt(e,t,n){t=Fe(t,n);for(var r=!nt(e)&&te(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o}function _t(e){var t=function(t,n,r,i){var o=!nt(t)&&te(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;r=n(r,t[l],l,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,Pe(n,i,4),r,o)}}var xt=_t(1),Ct=_t(-1);function kt(e,t,n){var r=[];return t=Fe(t,n),bt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function It(e,t,n){t=Fe(t,n);for(var r=!nt(e)&&te(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function Et(e,t,n){t=Fe(t,n);for(var r=!nt(e)&&te(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Ot(e,t,n,r){return nt(e)||(e=we(e)),("number"!=typeof n||r)&&(n=0),gt(e,t,n)>=0}var St=_((function(e,t,n){var r,i;return P(t)?i=t:(t=je(t),r=t.slice(0,-1),t=t[t.length-1]),wt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=Te(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function jt(e,t){return wt(e,Ne(t))}function Tt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=nt(e)?e:we(e)).length;s<l;s++)null!=(r=e[s])&&r>o&&(o=r);else t=Fe(t,n),bt(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}var At=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Mt(e){return e?D(e)?s.call(e):E(e)?e.match(At):nt(e)?wt(e,Me):we(e):[]}function Lt(e,t,n){if(null==t||n)return nt(e)||(e=we(e)),e[qe(e.length-1)];var r=Mt(e),i=X(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=qe(a,o),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)}function Nt(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Fe(r,i),bt(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var Pt=Nt((function(e,t,n){R(e,n)?e[n].push(t):e[n]=[t]})),Gt=Nt((function(e,t,n){e[n]=t})),zt=Nt((function(e,t,n){R(e,n)?e[n]++:e[n]=1})),Ft=Nt((function(e,t,n){e[n?0:1].push(t)}),!0);function Bt(e,t,n){return t in n}var qt=_((function(e,t){var n={},r=t[0];if(null==e)return n;P(r)?(t.length>1&&(r=Pe(r,t[1])),t=se(e)):(r=Bt,t=rt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),Dt=_((function(e,t){var n,r=t[0];return P(r)?(r=st(r),t.length>1&&(n=t[1])):(t=wt(rt(t,!1,!1),String),r=function(e,n){return!Ot(t,n)}),qt(e,r,n)}));function Rt(e,t,n){return s.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Qt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Rt(e,e.length-t)}function Ut(e,t,n){return s.call(e,null==t||n?1:t)}var Ht=_((function(e,t){return t=rt(t,!0,!0),kt(e,(function(e){return!Ot(t,e)}))})),Vt=_((function(e,t){return Ht(e,t)}));function Wt(e,t,n,r){k(t)||(r=n,n=t,t=!1),null!=n&&(n=Fe(n,r));for(var i=[],o=[],a=0,s=X(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?Ot(o,c)||(o.push(c),i.push(l)):Ot(i,l)||i.push(l)}return i}var $t=_((function(e){return Wt(rt(e,!0,!0))}));function Kt(e){for(var t=e&&Tt(e,X).length||0,n=Array(t),r=0;r<t;r++)n[r]=jt(e,r);return n}var Yt=_(Kt);function Jt(e,t){return e._chain?re(t).chain():t}function Zt(e){return bt(xe(e),(function(t){var n=re[t]=e[t];re.prototype[t]=function(){var e=[this._wrapped];return a.apply(e,arguments),Jt(this,n.apply(re,e))}})),re}bt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=r[e];re.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Jt(this,n)}})),bt(["concat","join","slice"],(function(e){var t=r[e];re.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Jt(this,e)}}));var Xt=Zt({__proto__:null,VERSION:e,restArguments:_,isObject:x,isNull:function(e){return null===e},isUndefined:C,isBoolean:k,isElement:function(e){return!(!e||1!==e.nodeType)},isString:E,isNumber:O,isDate:S,isRegExp:j,isError:T,isSymbol:A,isArrayBuffer:M,isDataView:q,isArray:D,isFunction:P,isArguments:U,isFinite:function(e){return!A(e)&&h(e)&&!isNaN(parseFloat(e))},isNaN:H,isTypedArray:Z,isEmpty:function(e){if(null==e)return!0;var t=X(e);return"number"==typeof t&&(D(e)||E(e)||U(e))?0===t:0===X(te(e))},isMatch:ne,isEqual:function(e,t){return ae(e,t)},isMap:ge,isWeakMap:he,isSet:ye,isWeakSet:be,keys:te,allKeys:se,values:we,pairs:function(e){for(var t=te(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},invert:_e,functions:xe,methods:xe,extend:ke,extendOwn:Ie,assign:Ie,defaults:Ee,create:function(e,t){var n=Oe(e);return t&&Ie(n,t),n},clone:function(e){return x(e)?D(e)?e.slice():ke({},e):e},tap:function(e,t){return t(e),e},get:Ae,has:function(e,t){for(var n=(t=je(t)).length,r=0;r<n;r++){var i=t[r];if(!R(e,i))return!1;e=e[i]}return!!n},mapObject:function(e,t,n){t=Fe(t,n);for(var r=te(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},identity:Me,constant:V,noop:Be,toPath:Se,property:Ne,propertyOf:function(e){return null==e?Be:function(t){return Ae(e,t)}},matcher:Le,matches:Le,times:function(e,t,n){var r=Array(Math.max(0,e));t=Pe(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},random:qe,now:De,escape:Ue,unescape:He,templateSettings:Ve,template:function(e,t,n){!t&&n&&(t=n),t=Ee({},t,re.templateSettings);var r=RegExp([(t.escape||We).source,(t.interpolate||We).source,(t.evaluate||We).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,s){return o+=e.slice(i,s).replace(Ke,Ye),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,s=t.variable;if(s){if(!Je.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(e){throw e.source=o,e}var l=function(e){return a.call(this,e,re)};return l.source="function("+s+"){\n"+o+"}",l},result:function(e,t,n){var r=(t=je(t)).length;if(!r)return P(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=P(o)?o.call(e):o}return e},uniqueId:function(e){var t=++Ze+"";return e?e+t:t},chain:function(e){var t=re(e);return t._chain=!0,t},iteratee:ze,partial:et,bind:tt,bindAll:it,memoize:function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return R(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},delay:ot,defer:at,throttle:function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:De(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=De();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},debounce:function(e,t,n){var r,i,o,a,s,l=function(){var c=De()-i;t>c?r=setTimeout(l,t-c):(r=null,n||(a=e.apply(s,o)),r||(o=s=null))},c=_((function(c){return s=this,o=c,i=De(),r||(r=setTimeout(l,t),n&&(a=e.apply(s,o))),a}));return c.cancel=function(){clearTimeout(r),r=o=s=null},c},wrap:function(e,t){return et(t,e)},negate:st,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:lt,once:ct,findKey:ut,findIndex:ft,findLastIndex:mt,sortedIndex:pt,indexOf:gt,lastIndexOf:ht,find:yt,detect:yt,findWhere:function(e,t){return yt(e,Le(t))},each:bt,forEach:bt,map:wt,collect:wt,reduce:xt,foldl:xt,inject:xt,reduceRight:Ct,foldr:Ct,filter:kt,select:kt,reject:function(e,t,n){return kt(e,st(Fe(t)),n)},every:It,all:It,some:Et,any:Et,contains:Ot,includes:Ot,include:Ot,invoke:St,pluck:jt,where:function(e,t){return kt(e,Le(t))},max:Tt,min:function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=nt(e)?e:we(e)).length;s<l;s++)null!=(r=e[s])&&r<o&&(o=r);else t=Fe(t,n),bt(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o},shuffle:function(e){return Lt(e,1/0)},sample:Lt,sortBy:function(e,t,n){var r=0;return t=Fe(t,n),jt(wt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")},groupBy:Pt,indexBy:Gt,countBy:zt,partition:Ft,toArray:Mt,size:function(e){return null==e?0:nt(e)?e.length:te(e).length},pick:qt,omit:Dt,first:Qt,head:Qt,take:Qt,initial:Rt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Ut(e,Math.max(0,e.length-t))},rest:Ut,tail:Ut,drop:Ut,compact:function(e){return kt(e,Boolean)},flatten:function(e,t){return rt(e,t,!1)},without:Vt,uniq:Wt,unique:Wt,union:$t,intersection:function(e){for(var t=[],n=arguments.length,r=0,i=X(e);r<i;r++){var o=e[r];if(!Ot(t,o)){var a;for(a=1;a<n&&Ot(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:Ht,unzip:Kt,transpose:Kt,zip:Yt,object:function(e,t){for(var n={},r=0,i=X(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(s.call(e,r,r+=t));return n},mixin:Zt,default:re});return Xt._=Xt,Xt}()}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.m=t,r.amdO={},e=[],r.O=(t,n,i,o)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,i,o]=e[u],s=!0,l=0;l<n.length;l++)(!1&o||a>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={198:0,401:0,703:0,135:0,892:0,877:0,233:0,715:0,384:0,333:0,628:0,966:0,565:0,638:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var u=l(r)}for(t&&t(n);c<a.length;c++)o=a[c],r.o(e,o)&&e[o]&&e[o][0](),e[a[c]]=0;return r.O(u)},n=self.webpackChunkgive=self.webpackChunkgive||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(31441))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(35058))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(79977))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(55755))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(26060))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(55952))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(72751))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(63293))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(61394))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(43729))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(88496))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(59707))),r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(91486)));var i=r.O(void 0,[401,703,135,892,877,233,715,384,333,628,966,565,638],(()=>r(83908)));i=r.O(i)})();
assets/dist/js/plugin-deactivation-survey.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('jquery'), 'version' => '2dfb22b877c651df');
1
+ <?php return array('dependencies' => array('jquery'), 'version' => 'f9906987b1a83cd5');
assets/dist/js/plugin-deactivation-survey.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={69571:()=>{!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,i,o){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,i),o)}}(window)},57729:(e,t,n)=>{var i,o,a;o=[n(19567)],i=function(e){var t,n,i,o,a,r,s="Close",c="BeforeClose",l="AfterClose",u="BeforeAppend",d="MarkupParse",p="Open",f="Change",m="mfp",g="."+m,v="mfp-ready",h="mfp-removing",y="mfp-prevent-close",b=function(){},C=!!window.jQuery,w=e(window),_=function(e,n){t.ev.on(m+e+g,n)},x=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},k=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},P=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},S=function(){e.magnificPopup.instance||((t=new b).init(),e.magnificPopup.instance=t)},I=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=I(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=x("bg").on("click"+g,(function(){t.close()})),t.wrap=x("wrap").attr("tabindex",-1).on("click"+g,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=x("container",t.wrap)),t.contentContainer=x("content"),t.st.preloader&&(t.preloader=x("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(o=0;o<c.length;o++){var l=c[o];l=l.charAt(0).toUpperCase()+l.slice(1),t["init"+l].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(_(d,(function(e,t,n,i){n.close_replaceWith=P(i.type)})),a+=" mfp-close-btn-in"):t.wrap.append(P())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:w.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,(function(e){27===e.keyCode&&t.close()})),w.on("resize"+g,(function(){t.updateSize()})),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var u=t.wH=w.height(),f={};if(t.fixedContentPos&&t._hasScrollBar(u)){var m=t._getScrollbarSize();m&&(f.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),k("BuildControls"),e("html").css(f),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),i.on("focusin"+g,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(u),k(p),n}t.updateItemHTML()},close:function(){t.isOpen&&(k(c),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){k(s);var n=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(l)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||w.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;k("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,k(f,n),o=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(P()):t.content=e:t.content="",k(u),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,k("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(w.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};k("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||w.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),k(d,[t,n,i]),e.each(n,(function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var a=t.find(g+"-"+o[0]);if(a.length>0){var r=o[1];"replaceWith"===r?a[0]!==i[0]&&a.replaceWith(i):"img"===r?a.is("img")?a.attr("src",i):a.replaceWith(e("<img>").attr("src",i).attr("class",a.attr("class"))):a.attr(o[1],i)}}else t.find(g+"-"+n).html(i)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,n){return S(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){S();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=C?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),C?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var T,E,O,j="inline",B=function(){O&&(E.after(O.addClass(T)).detach(),O=null)};e.magnificPopup.registerModule(j,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(j),_(s+"."+j,(function(){B()}))},getInline:function(n,i){if(B(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(E||(T=o.hiddenClass,E=x(T),T="mfp-"+T),O=a.after(E).detach().removeClass(T)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var z,A="ajax",M=function(){z&&e(document.body).removeClass(z)},L=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(A,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(A),z=t.st.ajax.cursor,_(s+"."+A,L),_("BeforeChange."+A,L)},getAjax:function(n){z&&e(document.body).addClass(z),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};k("ParseAjax",r),t.appendContent(e(r.data),A),n.finished=!0,M(),t._setFocus(),setTimeout((function(){t.wrap.addClass(v)}),16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){M(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var H,F=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),_(p+i,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),_(s+i,(function(){n.cursor&&e(document.body).removeClass(n.cursor),w.off("resize"+g)})),_("Resize"+i,t.resizeImage),t.isLowIE&&_("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,H&&clearInterval(H),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){H&&clearInterval(H),H=setInterval((function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(H),3==++n?o(10):40===n?o(50):100===n&&o(500))}),a)};o(1)},getImage:function(n,i){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,c=i.find(".mfp-img");if(c.length){var l=document.createElement("img");l.className="mfp-img",n.el&&n.el.find("img").length&&(l.alt=n.el.find("img").attr("alt")),n.img=e(l).on("load.mfploader",a).on("error.mfploader",r),l.src=n.src,c.is("img")&&(n.img=n.img.clone()),(l=n.img[0]).naturalWidth>0?n.hasSize=!0:l.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:F(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(H&&clearInterval(H),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var W,N=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,l=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},u=function(){t.content.css("visibility","visible")};_("BuildControls"+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void u();(a=l(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout((function(){a.css(t._getOffset(!0)),o=setTimeout((function(){u(),setTimeout((function(){a.remove(),e=a=null,k("ZoomAnimationEnded")}),16)}),r)}),16)}})),_(c+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=l(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout((function(){a.css(t._getOffset())}),16)}})),_(s+i,(function(){t._allowZoom()&&(u(),a&&a.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(C?i.innerHeight():i[0].offsetHeight)-r-a};return N()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var D="iframe",G="//about:blank",Q=function(e){if(t.currTemplate[D]){var n=t.currTemplate[D].find("iframe");n.length&&(e||(n[0].src=G),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(D,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(D),_("BeforeChange",(function(e,t,n){t!==n&&(t===D?Q():n===D&&Q(!0))})),_(s+"."+D,(function(){Q()}))},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,(function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}));var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var R=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},q=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",_(p+o,(function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),i.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),_("UpdateStatus"+o,(function(e,n){n.text&&(n.text=q(n.text,t.currItem.index,t.items.length))})),_(d+o,(function(e,i,o,a){var r=t.items.length;o.counter=r>1?q(n.tCounter,a.index,r):""})),_("BuildControls"+o,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y);o.click((function(){t.prev()})),a.click((function(){t.next()})),t.container.append(o.add(a))}})),_(f+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),_(s+o,(function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=R(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=R(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=R(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),k("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,k("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}});var K="retina";e.magnificPopup.registerModule(K,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(_("ImageHasSize."+K,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),_("ElementParse."+K,(function(t,i){i.src=e.replaceSrc(i,n)})))}}}}),S()},void 0===(a="function"==typeof i?i.apply(t,o):i)||(e.exports=a)},19567:e=>{"use strict";e.exports=window.jQuery}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}(()=>{"use strict";n(57729),n(69571);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}function a(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var u=function(){function e(t){if(s(this,e),e===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:"",cancelBtn:""},modalContent:{}},t),this.config.mainClass="".concat(this.config.mainClass?this.config.mainClass:""," modal-fade-slide").trim()}return l(e,[{key:"init",value:function(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}},{key:"getTemplate",value:function(){var e='<div class="give-hidden"></div>';return this.config.type.length&&(e='<div class="give-modal give-modal--zoom '.concat(this.config.classes.modalWrapper?"".concat(this.config.classes.modalWrapper).trim():"",'">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t').concat(this.config.modalContent.title?'<h2 class="give-modal__title">'.concat(this.config.modalContent.title,"</h2>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.desc?'<p class="give-modal__description">'.concat(this.config.modalContent.desc,"</p>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.body?this.config.modalContent.body:"",'\n\t\t\t\t</div>\n\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t').concat("form"===this.config.type?'<div class="spinner"></div>':"","\n\t\t\t\t\t").concat("form"===this.config.type&&"undefined"!==this.config.modalContent.link?'<a class="give-modal--additional-link" href="'.concat(this.config.modalContent.link,'" target="').concat("undefined"!==this.config.modalContent.link_self&&this.config.modalContent.link_self?"_self":"_blank",'">').concat(this.config.modalContent.link_text,"</a>"):"",'\n\n\t\t\t\t\t<button class="give-button give-popup-close-button').concat(this.config.classes.cancelBtn?" ".concat(this.config.classes.cancelBtn):" give-button--secondary",'">\n\t\t\t\t\t\t').concat(this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close"),"\n\t\t\t\t\t</button>\n\n\t\t\t\t\t").concat("confirm"!==this.config.type&&"form"!==this.config.type?"":'<button class="give-button give-button--primary give-popup-'.concat(this.config.type,'-button">\n\n\t\t\t\t\t\t').concat(this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm"),"\n\t\t\t\t\t</button>"),"\n\t\t\t\t</div>\n\n\t\t\t</div>")),e}},{key:"setupTemplate",value:function(){this.config.template=this.getTemplate()}},{key:"__setupClickEvent",value:function(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}},{key:"popupConfig",value:function(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config=Object.assign({removalDelay:300,fixedContentPos:!0,fixedBgPos:!0,alignTop:!0,showCloseBtn:!1,closeOnBgClick:!1,enableEscapeKey:!0,focus:".give-popup-close-button"},this.config))}},{key:"render",value:function(){if("magnificPopup"===this.config.externalPlugin)this.config.triggerSelector||jQuery.magnificPopup.open(this.config);return this}}],[{key:"__closePopup",value:function(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}},{key:"__ajaxModalHandle",value:function(e){var t=jQuery(e.target),n=t.attr("data-cache");if(e.preventDefault(),void 0!==n)return n=decodeURI(n),void new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:n},closeOnBgClick:!0}).render();jQuery.ajax({url:t.attr("href"),method:"GET",beforeSend:function(){new Give.modal.GiveSuccessAlert({modalContent:{desc:Give.fn.loader({},{show:null,loadingText:Give.fn.getGlobalVar("loader_translation").loading})},closeOnBgClick:!0}).render()},success:function(e){e.length&&t.attr("data-cache",encodeURI(e)),jQuery(".mfp-wrap").length&&new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:e},closeOnBgClick:!0}).render()}})}}]),e}(),d=function(e){t(i,e);var n=o(i);function i(e){var t;return s(this,i),e.type="confirm",t=n.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(t.config.classes.modalWrapper=e.modalWrapper),t.init(),t}return l(i,null,[{key:"__confirmPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}]),i}(u),p=function(e){t(i,e);var n=o(i);function i(e){var t;return s(this,i),e.type="form",t=n.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(t.config.classes.modalWrapper=e.modalWrapper),t.init(),t}return l(i,null,[{key:"__submitPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}]),i}(u);function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}window.addDynamicEventListener(document,"click",".give-popup-close-button",u.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",d.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",p.__submitPopup,{}),window.addDynamicEventListener(document,"click",".give-ajax-modal",u.__ajaxModalHandle,{}),new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.addEventListener("load",(function(){window.addDynamicEventListener(document,"click",'tr[data-slug="give"] .deactivate a',e.deactivateGive),window.addDynamicEventListener(document,"click",'input[name="give-survey-radios"]',e.toggleAdditionalFields)}))}var t,n,i;return t=e,i=[{key:"deactivateGive",value:function(t){t.preventDefault(),window.deactivationLink=t.target.href,jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"give_deactivation_popup"}}).done((function(t){new p({classes:{modalWrapper:"deactivation-survey-wrap"},modalContent:{desc:t.html,cancelBtnTitle:give_vars.cancel,confirmBtnTitle:give_vars.submit_and_deactivate,link:window.deactivationLink,link_text:give_vars.skip_and_deactivate,link_self:!0},successConfirm:function(){var t=document.querySelectorAll(".deactivation-error"),n=document.querySelectorAll('input[name="give-survey-radios"]:checked'),i=document.querySelectorAll(".deactivation-survey-form"),o=!0;t.length>0&&(o=!1),0===n.length&&0===t.length&&(i[0].innerHTML+='\n\t\t\t\t\t\t\t<div class="notice notice-error deactivation-error">\n\t\t\t\t\t\t\t\t'.concat(give_vars.deactivation_no_option_selected,"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t"),o=!1);var a="";if(n.length>0&&null!==n[0].parentNode.nextElementSibling)if(0<(a=n[0].parentNode.nextElementSibling.querySelectorAll("input, textarea")).length&&!a[0].value&&0===t.length){var r=document.createElement("div");r.setAttribute("class","notice notice-error deactivation-error");var s=document.createTextNode(give_vars.please_fill_field);r.appendChild(s),i[0].appendChild(r),o=!1}else 0<a.length&&a[0].value&&0!==t.length&&(t[0].parentNode.removeChild(t[0]),o=!0);if(o){var c=jQuery(".deactivation-survey-form").serialize();jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"deactivation_form_submit","form-data":c,nonce:give_vars.nonce},beforeSend:function(){document.querySelectorAll(".give-modal__controls .spinner")[0].style.display="block"}}).done((function(t){t.success&&(t.data.delete_data?e.deleteAllData(1,c):(jQuery.magnificPopup.close(),window.location.replace(window.deactivationLink)))}))}}}).render()}))}},{key:"deleteAllData",value:function(t,n,i){jQuery.ajax({url:ajaxurl,type:"POST",data:{form:n,action:"give_do_ajax_export",step:t,file_name:i},dataType:"json"}).done((function(t){!0===t.success||t.error?!0===t.success&&(jQuery.magnificPopup.close(),window.location.replace(window.deactivationLink)):e.deleteAllData(parseInt(t.step),n,t.file_name)}))}},{key:"toggleAdditionalFields",value:function(e){var t=document.querySelectorAll(".deactivation-error"),n=document.querySelectorAll(".give-survey-extra-field");t.length>0&&t[0].parentNode.removeChild(t[0]),n.forEach((function(e){e.style.display="none",e.querySelectorAll("input, textarea")[0].setAttribute("disabled","disabled")})),null!==e.target.parentNode.nextElementSibling&&(e.target.parentNode.nextElementSibling.style.display="block",e.target.parentNode.nextElementSibling.querySelectorAll("input, textarea")[0].removeAttribute("disabled"))}}],(n=null)&&f(t.prototype,n),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}())})()})();
1
+ (()=>{var e={69571:()=>{!function(e){"use strict";window.addDynamicEventListener=function(e,t,n,i,o){e.addEventListener(t,function(e,t){return function(n){n.target&&(n.target.matches(e)||n.target.closest(e))&&t.apply(this,arguments)}}(n,i),o)}}()},57729:(e,t,n)=>{var i,o,a;o=[n(19567)],i=function(e){var t,n,i,o,a,r,s="Close",c="BeforeClose",l="AfterClose",u="BeforeAppend",d="MarkupParse",p="Open",f="Change",m="mfp",g="."+m,v="mfp-ready",h="mfp-removing",y="mfp-prevent-close",b=function(){},C=!!window.jQuery,w=e(window),_=function(e,n){t.ev.on(m+e+g,n)},x=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},k=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},P=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},I=function(){e.magnificPopup.instance||((t=new b).init(),e.magnificPopup.instance=t)},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=S(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=x("bg").on("click"+g,(function(){t.close()})),t.wrap=x("wrap").attr("tabindex",-1).on("click"+g,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=x("container",t.wrap)),t.contentContainer=x("content"),t.st.preloader&&(t.preloader=x("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(o=0;o<c.length;o++){var l=c[o];l=l.charAt(0).toUpperCase()+l.slice(1),t["init"+l].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(_(d,(function(e,t,n,i){n.close_replaceWith=P(i.type)})),a+=" mfp-close-btn-in"):t.wrap.append(P())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:w.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,(function(e){27===e.keyCode&&t.close()})),w.on("resize"+g,(function(){t.updateSize()})),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var u=t.wH=w.height(),f={};if(t.fixedContentPos&&t._hasScrollBar(u)){var m=t._getScrollbarSize();m&&(f.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),k("BuildControls"),e("html").css(f),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),i.on("focusin"+g,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(u),k(p),n}t.updateItemHTML()},close:function(){t.isOpen&&(k(c),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){k(s);var n=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(l)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||w.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;k("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,k(f,n),o=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(P()):t.content=e:t.content="",k(u),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,k("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(w.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};k("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||w.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),k(d,[t,n,i]),e.each(n,(function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var a=t.find(g+"-"+o[0]);if(a.length>0){var r=o[1];"replaceWith"===r?a[0]!==i[0]&&a.replaceWith(i):"img"===r?a.is("img")?a.attr("src",i):a.replaceWith(e("<img>").attr("src",i).attr("class",a.attr("class"))):a.attr(o[1],i)}}else t.find(g+"-"+n).html(i)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,n){return I(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){I();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=C?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),C?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var T,E,O,j="inline",B=function(){O&&(E.after(O.addClass(T)).detach(),O=null)};e.magnificPopup.registerModule(j,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(j),_(s+"."+j,(function(){B()}))},getInline:function(n,i){if(B(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(E||(T=o.hiddenClass,E=x(T),T="mfp-"+T),O=a.after(E).detach().removeClass(T)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var z,A="ajax",M=function(){z&&e(document.body).removeClass(z)},L=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(A,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(A),z=t.st.ajax.cursor,_(s+"."+A,L),_("BeforeChange."+A,L)},getAjax:function(n){z&&e(document.body).addClass(z),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};k("ParseAjax",r),t.appendContent(e(r.data),A),n.finished=!0,M(),t._setFocus(),setTimeout((function(){t.wrap.addClass(v)}),16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){M(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var H,F=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),_(p+i,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),_(s+i,(function(){n.cursor&&e(document.body).removeClass(n.cursor),w.off("resize"+g)})),_("Resize"+i,t.resizeImage),t.isLowIE&&_("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,H&&clearInterval(H),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){H&&clearInterval(H),H=setInterval((function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(H),3==++n?o(10):40===n?o(50):100===n&&o(500))}),a)};o(1)},getImage:function(n,i){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,c=i.find(".mfp-img");if(c.length){var l=document.createElement("img");l.className="mfp-img",n.el&&n.el.find("img").length&&(l.alt=n.el.find("img").attr("alt")),n.img=e(l).on("load.mfploader",a).on("error.mfploader",r),l.src=n.src,c.is("img")&&(n.img=n.img.clone()),(l=n.img[0]).naturalWidth>0?n.hasSize=!0:l.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:F(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(H&&clearInterval(H),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var W,N=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,l=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},u=function(){t.content.css("visibility","visible")};_("BuildControls"+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void u();(a=l(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout((function(){a.css(t._getOffset(!0)),o=setTimeout((function(){u(),setTimeout((function(){a.remove(),e=a=null,k("ZoomAnimationEnded")}),16)}),r)}),16)}})),_(c+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=l(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout((function(){a.css(t._getOffset())}),16)}})),_(s+i,(function(){t._allowZoom()&&(u(),a&&a.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(C?i.innerHeight():i[0].offsetHeight)-r-a};return N()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var G="iframe",Q="//about:blank",D=function(e){if(t.currTemplate[G]){var n=t.currTemplate[G].find("iframe");n.length&&(e||(n[0].src=Q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(G,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(G),_("BeforeChange",(function(e,t,n){t!==n&&(t===G?D():n===G&&D(!0))})),_(s+"."+G,(function(){D()}))},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,(function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}));var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var R=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},q=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",_(p+o,(function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),i.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),_("UpdateStatus"+o,(function(e,n){n.text&&(n.text=q(n.text,t.currItem.index,t.items.length))})),_(d+o,(function(e,i,o,a){var r=t.items.length;o.counter=r>1?q(n.tCounter,a.index,r):""})),_("BuildControls"+o,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y);o.click((function(){t.prev()})),a.click((function(){t.next()})),t.container.append(o.add(a))}})),_(f+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),_(s+o,(function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=R(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=R(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=R(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),k("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,k("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}});var K="retina";e.magnificPopup.registerModule(K,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(_("ImageHasSize."+K,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),_("ElementParse."+K,(function(t,i){i.src=e.replaceSrc(i,n)})))}}}}),I()},void 0===(a="function"==typeof i?i.apply(t,o):i)||(e.exports=a)},19567:e=>{"use strict";e.exports=window.jQuery}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}(()=>{"use strict";n(57729),n(69571);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}function a(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var u=function(){function e(t){if(s(this,e),e===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:"",cancelBtn:""},modalContent:{}},t),this.config.mainClass="".concat(this.config.mainClass?this.config.mainClass:""," modal-fade-slide").trim()}return l(e,[{key:"init",value:function(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}},{key:"getTemplate",value:function(){var e='<div class="give-hidden"></div>';return this.config.type.length&&(e='<div class="give-modal give-modal--zoom '.concat(this.config.classes.modalWrapper?"".concat(this.config.classes.modalWrapper).trim():"",'">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t').concat(this.config.modalContent.title?'<h2 class="give-modal__title">'.concat(this.config.modalContent.title,"</h2>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.desc?'<p class="give-modal__description">'.concat(this.config.modalContent.desc,"</p>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.body?this.config.modalContent.body:"",'\n\t\t\t\t</div>\n\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t').concat("form"===this.config.type?'<div class="spinner"></div>':"","\n\t\t\t\t\t").concat("form"===this.config.type&&"undefined"!==this.config.modalContent.link?'<a class="give-modal--additional-link" href="'.concat(this.config.modalContent.link,'" target="').concat("undefined"!==this.config.modalContent.link_self&&this.config.modalContent.link_self?"_self":"_blank",'">').concat(this.config.modalContent.link_text,"</a>"):"",'\n\n\t\t\t\t\t<button class="give-button give-popup-close-button').concat(this.config.classes.cancelBtn?" ".concat(this.config.classes.cancelBtn):" give-button--secondary",'">\n\t\t\t\t\t\t').concat(this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close"),"\n\t\t\t\t\t</button>\n\n\t\t\t\t\t").concat("confirm"!==this.config.type&&"form"!==this.config.type?"":'<button class="give-button give-button--primary give-popup-'.concat(this.config.type,'-button">\n\n\t\t\t\t\t\t').concat(this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm"),"\n\t\t\t\t\t</button>"),"\n\t\t\t\t</div>\n\n\t\t\t</div>")),e}},{key:"setupTemplate",value:function(){this.config.template=this.getTemplate()}},{key:"__setupClickEvent",value:function(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}},{key:"popupConfig",value:function(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config=Object.assign({removalDelay:300,fixedContentPos:!0,fixedBgPos:!0,alignTop:!0,showCloseBtn:!1,closeOnBgClick:!1,enableEscapeKey:!0,focus:".give-popup-close-button"},this.config))}},{key:"render",value:function(){if("magnificPopup"===this.config.externalPlugin)this.config.triggerSelector||jQuery.magnificPopup.open(this.config);return this}}],[{key:"__closePopup",value:function(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}},{key:"__ajaxModalHandle",value:function(e){var t=jQuery(e.target),n=t.attr("data-cache");if(e.preventDefault(),void 0!==n)return n=decodeURI(n),void new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:n},closeOnBgClick:!0}).render();jQuery.ajax({url:t.attr("href"),method:"GET",beforeSend:function(){new Give.modal.GiveSuccessAlert({modalContent:{desc:Give.fn.loader({},{show:null,loadingText:Give.fn.getGlobalVar("loader_translation").loading})},closeOnBgClick:!0}).render()},success:function(e){e.length&&t.attr("data-cache",encodeURI(e)),jQuery(".mfp-wrap").length&&new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:e},closeOnBgClick:!0}).render()}})}}]),e}(),d=function(e){t(i,e);var n=o(i);function i(e){var t;return s(this,i),e.type="confirm",t=n.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(t.config.classes.modalWrapper=e.modalWrapper),t.init(),t}return l(i,null,[{key:"__confirmPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}]),i}(u),p=function(e){t(i,e);var n=o(i);function i(e){var t;return s(this,i),e.type="form",t=n.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(t.config.classes.modalWrapper=e.modalWrapper),t.init(),t}return l(i,null,[{key:"__submitPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}]),i}(u);function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}window.addDynamicEventListener(document,"click",".give-popup-close-button",u.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",d.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",p.__submitPopup,{}),window.addDynamicEventListener(document,"click",".give-ajax-modal",u.__ajaxModalHandle,{}),new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.addEventListener("load",(function(){window.addDynamicEventListener(document,"click",'tr[data-slug="give"] .deactivate a',e.deactivateGive),window.addDynamicEventListener(document,"click",'input[name="give-survey-radios"]',e.toggleAdditionalFields)}))}var t,n,i;return t=e,i=[{key:"deactivateGive",value:function(t){t.preventDefault(),window.deactivationLink=t.target.href,jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"give_deactivation_popup"}}).done((function(t){new p({classes:{modalWrapper:"deactivation-survey-wrap"},modalContent:{desc:t.html,cancelBtnTitle:give_vars.cancel,confirmBtnTitle:give_vars.submit_and_deactivate,link:window.deactivationLink,link_text:give_vars.skip_and_deactivate,link_self:!0},successConfirm:function(){var t=document.querySelectorAll(".deactivation-error"),n=document.querySelectorAll('input[name="give-survey-radios"]:checked'),i=document.querySelectorAll(".deactivation-survey-form"),o=!0;t.length>0&&(o=!1),0===n.length&&0===t.length&&(i[0].innerHTML+='\n\t\t\t\t\t\t\t<div class="notice notice-error deactivation-error">\n\t\t\t\t\t\t\t\t'.concat(give_vars.deactivation_no_option_selected,"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t"),o=!1);var a="";if(n.length>0&&null!==n[0].parentNode.nextElementSibling)if(0<(a=n[0].parentNode.nextElementSibling.querySelectorAll("input, textarea")).length&&!a[0].value&&0===t.length){var r=document.createElement("div");r.setAttribute("class","notice notice-error deactivation-error");var s=document.createTextNode(give_vars.please_fill_field);r.appendChild(s),i[0].appendChild(r),o=!1}else 0<a.length&&a[0].value&&0!==t.length&&(t[0].parentNode.removeChild(t[0]),o=!0);if(o){var c=jQuery(".deactivation-survey-form").serialize();jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"deactivation_form_submit","form-data":c,nonce:give_vars.nonce},beforeSend:function(){document.querySelectorAll(".give-modal__controls .spinner")[0].style.display="block"}}).done((function(t){t.success&&(t.data.delete_data?e.deleteAllData(1,c):(jQuery.magnificPopup.close(),window.location.replace(window.deactivationLink)))}))}}}).render()}))}},{key:"deleteAllData",value:function(t,n,i){jQuery.ajax({url:ajaxurl,type:"POST",data:{form:n,action:"give_do_ajax_export",step:t,file_name:i},dataType:"json"}).done((function(t){!0===t.success||t.error?!0===t.success&&(jQuery.magnificPopup.close(),window.location.replace(window.deactivationLink)):e.deleteAllData(parseInt(t.step),n,t.file_name)}))}},{key:"toggleAdditionalFields",value:function(e){var t=document.querySelectorAll(".deactivation-error"),n=document.querySelectorAll(".give-survey-extra-field");t.length>0&&t[0].parentNode.removeChild(t[0]),n.forEach((function(e){e.style.display="none",e.querySelectorAll("input, textarea")[0].setAttribute("disabled","disabled")})),null!==e.target.parentNode.nextElementSibling&&(e.target.parentNode.nextElementSibling.style.display="block",e.target.parentNode.nextElementSibling.querySelectorAll("input, textarea")[0].removeAttribute("disabled"))}}],(n=null)&&f(t.prototype,n),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}())})()})();
give.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
7
  * Author: GiveWP
8
  * Author URI: https://givewp.com/
9
- * Version: 2.22.1
10
  * Requires at least: 5.0
11
  * Requires PHP: 7.0
12
  * Text Domain: give
@@ -302,7 +302,7 @@ final class Give
302
  {
303
  // Plugin version.
304
  if (!defined('GIVE_VERSION')) {
305
- define('GIVE_VERSION', '2.22.1');
306
  }
307
 
308
  // Plugin Root File.
6
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
7
  * Author: GiveWP
8
  * Author URI: https://givewp.com/
9
+ * Version: 2.22.2
10
  * Requires at least: 5.0
11
  * Requires PHP: 7.0
12
  * Text Domain: give
302
  {
303
  // Plugin version.
304
  if (!defined('GIVE_VERSION')) {
305
+ define('GIVE_VERSION', '2.22.2');
306
  }
307
 
308
  // Plugin Root File.
includes/shortcodes.php CHANGED
@@ -798,7 +798,7 @@ add_shortcode( 'give_totals', 'give_totals_shortcode' );
798
  * @since 2.20.0 $donate_button_background_color Default #66bb6a
799
  * @since 2.20.0 $donate_button_text_color Default #fff
800
  * @since 2.20.0 $show_bar Default false
801
- * @unreleased remove $show_bar attribute in favor of show_goal
802
  *
803
  * @return string|bool The markup of the form grid or false.
804
  */
798
  * @since 2.20.0 $donate_button_background_color Default #66bb6a
799
  * @since 2.20.0 $donate_button_text_color Default #fff
800
  * @since 2.20.0 $show_bar Default false
801
+ * @since 2.22.2 remove $show_bar attribute in favor of show_goal
802
  *
803
  * @return string|bool The markup of the form grid or false.
804
  */
languages/give.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Give - Donation Plugin plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Give - Donation Plugin 2.22.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/givewp\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-09-20T22:45:50+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: give\n"
@@ -7538,8 +7538,8 @@ msgid "Do you want to delete this item?"
7538
  msgstr ""
7539
 
7540
  #: includes/class-give-scripts.php:328
7541
- #: assets/dist/js/admin.js:7807
7542
- #: assets/dist/js/give.js:3666
7543
  msgid "Dismiss this notice."
7544
  msgstr ""
7545
 
@@ -17043,25 +17043,25 @@ msgstr[0] ""
17043
  msgstr[1] ""
17044
 
17045
  #. translators: 1: amount of income raised 2: goal target amount.
17046
- #: templates/shortcode-goal.php:166
17047
  msgid "<span class=\"income\" data-amounts=\"%1$s\">%2$s</span> of <span class=\"goal-text\" data-amounts=\"%3$s\">%4$s</span> raised"
17048
  msgstr ""
17049
 
17050
  #. translators: %s: percentage of the amount raised compared to the goal target
17051
- #: templates/shortcode-goal.php:176
17052
  #: templates/shortcode-totals-progress.php:34
17053
  msgid "<span class=\"give-percentage\">%s%%</span> funded"
17054
  msgstr ""
17055
 
17056
  #. translators: 1: total number of donations completed 2: total number of donations set as goal
17057
- #: templates/shortcode-goal.php:183
17058
  msgid "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donation"
17059
  msgid_plural "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donations"
17060
  msgstr[0] ""
17061
  msgstr[1] ""
17062
 
17063
  #. translators: 1: total number of donors completed 2: total number of donors set as goal
17064
- #: templates/shortcode-goal.php:197
17065
  msgid "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donor"
17066
  msgid_plural "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donors"
17067
  msgstr[0] ""
@@ -17569,43 +17569,43 @@ msgstr ""
17569
  msgid "We are unable to update Stripe statement descriptor."
17570
  msgstr ""
17571
 
17572
- #: assets/dist/js/admin.js:8884
17573
  msgid "Select a Stripe Account"
17574
  msgstr ""
17575
 
17576
- #: assets/dist/js/admin.js:8885
17577
  msgid "You've selected to customize the Stripe account for this form, but not selected a different account. Please set an account as default for this form on the Stripe settings tab."
17578
  msgstr ""
17579
 
17580
- #: assets/dist/js/admin.js:8927
17581
  msgid "Disconnect Stripe Account"
17582
  msgstr ""
17583
 
17584
- #: assets/dist/js/admin.js:8929
17585
  msgid "Are you sure you want to disconnect this Stripe account?"
17586
  msgstr ""
17587
 
17588
- #: assets/dist/js/admin.js:8990
17589
  msgid "Account Name"
17590
  msgstr ""
17591
 
17592
- #: assets/dist/js/admin.js:8993
17593
  msgid "Account Email"
17594
  msgstr ""
17595
 
17596
- #: assets/dist/js/admin.js:8996
17597
  msgid "View Documentation >"
17598
  msgstr ""
17599
 
17600
- #: assets/dist/js/admin.js:8997
17601
  msgid "Please confirm you’d like to set the account below as the new default Stripe account. All donation forms set to inherit the Global Settings will use this new default account. %1$s<br>%2$s%3$s"
17602
  msgstr ""
17603
 
17604
- #: assets/dist/js/admin.js:8997
17605
  msgid "Please confirm you’d like to set the account below as the new default Stripe account for this donation form. All donations will process through this Stripe account rather than the Global default Stripe account. %1$s<br>%2$s%3$s"
17606
  msgstr ""
17607
 
17608
- #: assets/dist/js/admin.js:9003
17609
  msgid "Confirm New Default Account"
17610
  msgstr ""
17611
 
2
  # This file is distributed under the same license as the Give - Donation Plugin plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Give - Donation Plugin 2.22.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/givewp\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-09-29T04:23:47+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: give\n"
7538
  msgstr ""
7539
 
7540
  #: includes/class-give-scripts.php:328
7541
+ #: assets/dist/js/admin.js:7796
7542
+ #: assets/dist/js/give.js:3655
7543
  msgid "Dismiss this notice."
7544
  msgstr ""
7545
 
17043
  msgstr[1] ""
17044
 
17045
  #. translators: 1: amount of income raised 2: goal target amount.
17046
+ #: templates/shortcode-goal.php:181
17047
  msgid "<span class=\"income\" data-amounts=\"%1$s\">%2$s</span> of <span class=\"goal-text\" data-amounts=\"%3$s\">%4$s</span> raised"
17048
  msgstr ""
17049
 
17050
  #. translators: %s: percentage of the amount raised compared to the goal target
17051
+ #: templates/shortcode-goal.php:191
17052
  #: templates/shortcode-totals-progress.php:34
17053
  msgid "<span class=\"give-percentage\">%s%%</span> funded"
17054
  msgstr ""
17055
 
17056
  #. translators: 1: total number of donations completed 2: total number of donations set as goal
17057
+ #: templates/shortcode-goal.php:198
17058
  msgid "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donation"
17059
  msgid_plural "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donations"
17060
  msgstr[0] ""
17061
  msgstr[1] ""
17062
 
17063
  #. translators: 1: total number of donors completed 2: total number of donors set as goal
17064
+ #: templates/shortcode-goal.php:212
17065
  msgid "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donor"
17066
  msgid_plural "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donors"
17067
  msgstr[0] ""
17569
  msgid "We are unable to update Stripe statement descriptor."
17570
  msgstr ""
17571
 
17572
+ #: assets/dist/js/admin.js:8873
17573
  msgid "Select a Stripe Account"
17574
  msgstr ""
17575
 
17576
+ #: assets/dist/js/admin.js:8874
17577
  msgid "You've selected to customize the Stripe account for this form, but not selected a different account. Please set an account as default for this form on the Stripe settings tab."
17578
  msgstr ""
17579
 
17580
+ #: assets/dist/js/admin.js:8916
17581
  msgid "Disconnect Stripe Account"
17582
  msgstr ""
17583
 
17584
+ #: assets/dist/js/admin.js:8918
17585
  msgid "Are you sure you want to disconnect this Stripe account?"
17586
  msgstr ""
17587
 
17588
+ #: assets/dist/js/admin.js:8979
17589
  msgid "Account Name"
17590
  msgstr ""
17591
 
17592
+ #: assets/dist/js/admin.js:8982
17593
  msgid "Account Email"
17594
  msgstr ""
17595
 
17596
+ #: assets/dist/js/admin.js:8985
17597
  msgid "View Documentation >"
17598
  msgstr ""
17599
 
17600
+ #: assets/dist/js/admin.js:8986
17601
  msgid "Please confirm you’d like to set the account below as the new default Stripe account. All donation forms set to inherit the Global Settings will use this new default account. %1$s<br>%2$s%3$s"
17602
  msgstr ""
17603
 
17604
+ #: assets/dist/js/admin.js:8986
17605
  msgid "Please confirm you’d like to set the account below as the new default Stripe account for this donation form. All donations will process through this Stripe account rather than the Global default Stripe account. %1$s<br>%2$s%3$s"
17606
  msgstr ""
17607
 
17608
+ #: assets/dist/js/admin.js:8992
17609
  msgid "Confirm New Default Account"
17610
  msgstr ""
17611
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding
5
  Requires at least: 5.0
6
  Tested up to: 6.0
7
  Requires PHP: 7.0
8
- Stable tag: 2.22.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -251,6 +251,10 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
251
  8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
252
 
253
  == Changelog ==
 
 
 
 
254
  = 2.22.1: September, 20th 2022 =
255
  * Security: Updated a number of 3rd party packages we use to include security fixes
256
  * Fix: Legacy template now displays the correct amount for the donor and donation goals
5
  Requires at least: 5.0
6
  Tested up to: 6.0
7
  Requires PHP: 7.0
8
+ Stable tag: 2.22.2
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
251
  8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
252
 
253
  == Changelog ==
254
+ = 2.22.2: September, 28th 2022 =
255
+ * Fix: The give_goal and give_form shortcodes once again display correctly with the goal progress
256
+ * Fix: Translating in Google Chrome no longer prevents disconnecting the PayPal account
257
+
258
  = 2.22.1: September, 20th 2022 =
259
  * Security: Updated a number of 3rd party packages we use to include security fixes
260
  * Fix: Legacy template now displays the correct amount for the donor and donation goals
src/PaymentGateways/Gateways/PayPalStandard/Actions/CreatePayPalStandardPaymentURL.php CHANGED
@@ -8,7 +8,7 @@ use Give\Framework\PaymentGateways\DonationSummary;
8
  /**
9
  * This class create PayPal Standard payment gateway one time payment url on basis of donor donation query.
10
  *
11
- * @unlreased
12
  */
13
  class CreatePayPalStandardPaymentURL
14
  {
8
  /**
9
  * This class create PayPal Standard payment gateway one time payment url on basis of donor donation query.
10
  *
11
+ * @since 2.22.2
12
  */
13
  class CreatePayPalStandardPaymentURL
14
  {
src/PaymentGateways/Gateways/PayPalStandard/Views/PayPalStandardBillingFields.php CHANGED
@@ -7,12 +7,12 @@ use Give\Helpers\Form\Utils;
7
  /**
8
  * This class handle donation form billing field markup for PayPal Standard.
9
  *
10
- * @unlreased
11
  */
12
  class PayPalStandardBillingFields
13
  {
14
  /**
15
- * @unlreased
16
  *
17
  * @param int $formId
18
  *
7
  /**
8
  * This class handle donation form billing field markup for PayPal Standard.
9
  *
10
+ * @since 2.22.2
11
  */
12
  class PayPalStandardBillingFields
13
  {
14
  /**
15
+ * @since 2.22.2
16
  *
17
  * @param int $formId
18
  *
src/PaymentGateways/PayPalCommerce/AdminSettingFields.php CHANGED
@@ -181,9 +181,9 @@ class AdminSettingFields
181
  ?>
182
  </span>
183
  <span class="actions">
184
- <a href="#"
185
  id="js-give-paypal-disconnect-paypal-account"><?php
186
- esc_html_e('Disconnect', 'give'); ?></a>
187
  </span>
188
  </div>
189
  <div class="api-access-feature-list-wrap">
181
  ?>
182
  </span>
183
  <span class="actions">
184
+ <button
185
  id="js-give-paypal-disconnect-paypal-account"><?php
186
+ esc_html_e('Disconnect', 'give'); ?></button>
187
  </span>
188
  </div>
189
  <div class="api-access-feature-list-wrap">
templates/shortcode-goal.php CHANGED
@@ -1,10 +1,25 @@
1
  <?php
 
 
 
2
  /**
3
  * This template is used to display the goal with [give_goal]
4
  */
5
 
6
- $form_id = get_the_ID(); // Form ID.
7
- $form = new Give_Donate_Form( $form_id );
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  $goal_option = give_get_meta( $form->ID, '_give_goal_option', true );
10
  // Sanity check - ensure form has pass all condition to show goal.
@@ -210,7 +225,6 @@ $progress = apply_filters( 'give_goal_amount_funded_percentage_output', $progres
210
  </div>
211
  <?php endif; ?>
212
 
213
-
214
  <?php if ( ! empty( $show_bar ) ) :
215
  $style = "width:{$progress_bar_value}%";
216
 
1
  <?php
2
+
3
+ use Give\Log\Log;
4
+
5
  /**
6
  * This template is used to display the goal with [give_goal]
7
  */
8
 
9
+ /**
10
+ * @var int $form_id form id passed from the give_show_goal_progress() context
11
+ */
12
+
13
+ if ( empty($form_id) ) {
14
+ Log::error('Failed to render [give_goal] shortcode.',
15
+ ['form_id' => $form_id,
16
+ 'file' => '__templates/shortcode-goal.php__',
17
+ 'line' => '10'
18
+ ]);
19
+ return false;
20
+ }
21
+
22
+ $form = new Give_Donate_Form( $form_id );
23
 
24
  $goal_option = give_get_meta( $form->ID, '_give_goal_option', true );
25
  // Sanity check - ensure form has pass all condition to show goal.
225
  </div>
226
  <?php endif; ?>
227
 
 
228
  <?php if ( ! empty( $show_bar ) ) :
229
  $style = "width:{$progress_bar_value}%";
230
 
vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInit2dbc8e207cc0dacf55455c8e08361887::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInita51902c650b2a1337866ab39d63c57ea::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit2dbc8e207cc0dacf55455c8e08361887
6
  {
7
  private static $loader;
8
 
@@ -24,18 +24,18 @@ class ComposerAutoloaderInit2dbc8e207cc0dacf55455c8e08361887
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit2dbc8e207cc0dacf55455c8e08361887', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit2dbc8e207cc0dacf55455c8e08361887', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
- call_user_func(\Composer\Autoload\ComposerStaticInit2dbc8e207cc0dacf55455c8e08361887::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
36
- $includeFiles = \Composer\Autoload\ComposerStaticInit2dbc8e207cc0dacf55455c8e08361887::$files;
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
- composerRequire2dbc8e207cc0dacf55455c8e08361887($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
@@ -47,7 +47,7 @@ class ComposerAutoloaderInit2dbc8e207cc0dacf55455c8e08361887
47
  * @param string $file
48
  * @return void
49
  */
50
- function composerRequire2dbc8e207cc0dacf55455c8e08361887($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInita51902c650b2a1337866ab39d63c57ea
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInita51902c650b2a1337866ab39d63c57ea', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInita51902c650b2a1337866ab39d63c57ea', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
+ call_user_func(\Composer\Autoload\ComposerStaticInita51902c650b2a1337866ab39d63c57ea::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
36
+ $includeFiles = \Composer\Autoload\ComposerStaticInita51902c650b2a1337866ab39d63c57ea::$files;
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
+ composerRequirea51902c650b2a1337866ab39d63c57ea($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
47
  * @param string $file
48
  * @return void
49
  */
50
+ function composerRequirea51902c650b2a1337866ab39d63c57ea($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit2dbc8e207cc0dacf55455c8e08361887
8
  {
9
  public static $files = array (
10
  '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
@@ -130,9 +130,9 @@ class ComposerStaticInit2dbc8e207cc0dacf55455c8e08361887
130
  public static function getInitializer(ClassLoader $loader)
131
  {
132
  return \Closure::bind(function () use ($loader) {
133
- $loader->prefixLengthsPsr4 = ComposerStaticInit2dbc8e207cc0dacf55455c8e08361887::$prefixLengthsPsr4;
134
- $loader->prefixDirsPsr4 = ComposerStaticInit2dbc8e207cc0dacf55455c8e08361887::$prefixDirsPsr4;
135
- $loader->classMap = ComposerStaticInit2dbc8e207cc0dacf55455c8e08361887::$classMap;
136
 
137
  }, null, ClassLoader::class);
138
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInita51902c650b2a1337866ab39d63c57ea
8
  {
9
  public static $files = array (
10
  '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
130
  public static function getInitializer(ClassLoader $loader)
131
  {
132
  return \Closure::bind(function () use ($loader) {
133
+ $loader->prefixLengthsPsr4 = ComposerStaticInita51902c650b2a1337866ab39d63c57ea::$prefixLengthsPsr4;
134
+ $loader->prefixDirsPsr4 = ComposerStaticInita51902c650b2a1337866ab39d63c57ea::$prefixDirsPsr4;
135
+ $loader->classMap = ComposerStaticInita51902c650b2a1337866ab39d63c57ea::$classMap;
136
 
137
  }, null, ClassLoader::class);
138
  }
vendor/composer/installed.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'impress-org/give',
4
- 'pretty_version' => '2.22.1',
5
- 'version' => '2.22.1.0',
6
- 'reference' => 'f854109f6eb969c534d3b79b8ac5ccbe9f325b45',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
@@ -41,9 +41,9 @@
41
  ),
42
  ),
43
  'impress-org/give' => array(
44
- 'pretty_version' => '2.22.1',
45
- 'version' => '2.22.1.0',
46
- 'reference' => 'f854109f6eb969c534d3b79b8ac5ccbe9f325b45',
47
  'type' => 'wordpress-plugin',
48
  'install_path' => __DIR__ . '/../../',
49
  'aliases' => array(),
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'impress-org/give',
4
+ 'pretty_version' => '2.22.2',
5
+ 'version' => '2.22.2.0',
6
+ 'reference' => '082459b391b564ca9fc7a600a38e36bb130ea3ca',
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
41
  ),
42
  ),
43
  'impress-org/give' => array(
44
+ 'pretty_version' => '2.22.2',
45
+ 'version' => '2.22.2.0',
46
+ 'reference' => '082459b391b564ca9fc7a600a38e36bb130ea3ca',
47
  'type' => 'wordpress-plugin',
48
  'install_path' => __DIR__ . '/../../',
49
  'aliases' => array(),