// source --> https://rotlichtadresse.de/wp-includes/js/dist/a11y.min.js?ver=cb460b4676c94bd228ed 
/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>s,speak:()=>d});const n=window.wp.domReady;var o=e.n(n);function i(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}const a=window.wp.i18n;let r="";function d(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}function s(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,a.__)("Notifications"),e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),e.setAttribute("hidden","");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}o()(s),(window.wp=window.wp||{}).a11y=t})();
// source --> https://rotlichtadresse.de/wp-content/plugins/advanced-custom-fields-pro/assets/build/js/acf-input.min.js?ver=6.8.0.1 
(()=>{var e={4750(){!function(e){acf.newCompatibility=function(e,t){return(t=t||{}).__proto__=e.__proto__,e.__proto__=t,e.compatibility=t,t},acf.getCompatibility=function(e){return e.compatibility||null};var t=acf.newCompatibility(acf,{l10n:{},o:{},fields:{},update:acf.set,add_action:acf.addAction,remove_action:acf.removeAction,do_action:acf.doAction,add_filter:acf.addFilter,remove_filter:acf.removeFilter,apply_filters:acf.applyFilters,parse_args:acf.parseArgs,disable_el:acf.disable,disable_form:acf.disable,enable_el:acf.enable,enable_form:acf.enable,update_user_setting:acf.updateUserSetting,prepare_for_ajax:acf.prepareForAjax,is_ajax_success:acf.isAjaxSuccess,remove_el:acf.remove,remove_tr:acf.remove,str_replace:acf.strReplace,render_select:acf.renderSelect,get_uniqid:acf.uniqid,serialize_form:acf.serialize,esc_html:acf.strEscape,str_sanitize:acf.strSanitize});t._e=function(e,t){e=e||"";var i=(t=t||"")?e+"."+t:e,a={"image.select":"Select Image","image.edit":"Edit Image","image.update":"Update Image"};if(a[i])return acf.__(a[i]);var n=this.l10n[e]||"";return t&&(n=n[t]||""),n},t.get_selector=function(t){var i=".acf-field";if(!t)return i;if(e.isPlainObject(t)){if(e.isEmptyObject(t))return i;for(var a in t){t=t[a];break}}return i+="-"+t,i=acf.strReplace("_","-",i),acf.strReplace("field-field-","field-",i)},t.get_fields=function(e,t,i){var a={is:e||"",parent:t||!1,suppressFilters:i||!1};return a.is&&(a.is=this.get_selector(a.is)),acf.findFields(a)},t.get_field=function(e,t){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},t.get_closest_field=function(e,t){return e.closest(this.get_selector(t))},t.get_field_wrap=function(e){return e.closest(this.get_selector())},t.get_field_key=function(e){return e.data("key")},t.get_field_type=function(e){return e.data("type")},t.get_data=function(e,t){return acf.parseArgs(e.data(),t)},t.maybe_get=function(e,t,i){void 0===i&&(i=null),keys=String(t).split(".");for(var a=0;a<keys.length;a++){if(!e.hasOwnProperty(keys[a]))return i;e=e[keys[a]]}return e};var i=function(e){return e instanceof acf.Field?e.$el:e},a=function(t){return function(){if(arguments.length)var a=function(e){return acf.arrayArgs(e).map(i)}(arguments);else a=[e(document)];return t.apply(this,a)}};t.add_action=function(e,i,n,s){var o=e.split(" "),r=o.length;if(r>1){for(var c=0;c<r;c++)e=o[c],t.add_action.apply(this,arguments);return this}return i=a(i),acf.addAction.apply(this,arguments)},t.add_filter=function(e,t,i,n){return t=a(t),acf.addFilter.apply(this,arguments)},t.model={actions:{},filters:{},events:{},extend:function(t){var i=e.extend({},this,t);return e.each(i.actions,function(e,t){i._add_action(e,t)}),e.each(i.filters,function(e,t){i._add_filter(e,t)}),e.each(i.events,function(e,t){i._add_event(e,t)}),i},_add_action:function(e,t){var i=e.split(" "),a=(e=i[0]||"",i[1]||10);acf.add_action(e,this[t],a,this)},_add_filter:function(e,t){var i=e.split(" "),a=(e=i[0]||"",i[1]||10);acf.add_filter(e,this[t],a,this)},_add_event:function(t,i){var a=this,n=t.indexOf(" "),s=n>0?t.substr(0,n):t,o=n>0?t.substr(n+1):"",r=function(t){t.$el=e(this),acf.field_group&&(t.$field=t.$el.closest(".acf-field-object")),"function"==typeof a.event&&(t=a.event(t)),a[i].apply(a,arguments)};o?e(document).on(s,o,r):e(document).on(s,r)},get:function(e,t){return t=t||null,void 0!==this[e]&&(t=this[e]),t},set:function(e,t){return this[e]=t,"function"==typeof this["_set_"+e]&&this["_set_"+e].apply(this),this}},t.field=acf.model.extend({type:"",o:{},$field:null,_add_action:function(e,t){var i=this;e=e+"_field/type="+i.type,acf.add_action(e,function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_filter:function(e,t){var i=this;e=e+"_field/type="+i.type,acf.add_filter(e,function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_event:function(t,i){var a=this,n=t.substr(0,t.indexOf(" ")),s=t.substr(t.indexOf(" ")+1),o=acf.get_selector(a.type);e(document).on(n,o+" "+s,function(t){var n=e(this),s=acf.get_closest_field(n,a.type);s.length&&(s.is(a.$field)||a.set("$field",s),t.$el=n,t.$field=s,a[i].apply(a,[t]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(e){return this.set("$field",e)}}),acf.newCompatibility(acf.validation,{remove_error:function(e){acf.getField(e).removeError()},add_warning:function(e,t){acf.getField(e).showNotice({text:t,type:"warning",timeout:1e3})},fetch:acf.validateForm,enableSubmit:acf.enableSubmit,disableSubmit:acf.disableSubmit,showSpinner:acf.showSpinner,hideSpinner:acf.hideSpinner,unlockForm:acf.unlockForm,lockForm:acf.lockForm}),t.tooltip={tooltip:function(e,t){return acf.newTooltip({text:e,target:t}).$el},temp:function(e,t){acf.newTooltip({text:e,target:t,timeout:250})},confirm:function(e,t,i,a,n){acf.newTooltip({confirm:!0,text:i,target:e,confirm:function(){t(!0)},cancel:function(){t(!1)}})},confirm_remove:function(e,t){acf.newTooltip({confirmRemove:!0,target:e,confirm:function(){t(!0)},cancel:function(){t(!1)}})}},t.media=new acf.Model({activeFrame:!1,actions:{new_media_popup:"onNewMediaPopup"},frame:function(){return this.activeFrame},onNewMediaPopup:function(e){this.activeFrame=e.frame},popup:function(e){return e.mime_types&&(e.allowedTypes=e.mime_types),e.id&&(e.attachment=e.id),acf.newMediaPopup(e).frame}}),t.select2={init:function(e,t,i){return t.allow_null&&(t.allowNull=t.allow_null),t.ajax_action&&(t.ajaxAction=t.ajax_action),i&&(t.field=acf.getField(i)),acf.newSelect2(e,t)},destroy:function(e){return acf.getInstance(e).destroy()}},t.postbox={render:function(e){return e.edit_url&&(e.editLink=e.edit_url),e.edit_title&&(e.editTitle=e.edit_title),acf.newPostbox(e)}},acf.newCompatibility(acf.screen,{update:function(){return this.set.apply(this,arguments)},fetch:acf.screen.check}),t.ajax=acf.screen}(jQuery)},2747(){!function(e){var __=acf.__,t=function(e){return e?""+e:""},i=function(e,i){return t(e).toLowerCase()===t(i).toLowerCase()},a=function(e,t){return t instanceof Array?1===t.length&&a(e,t[0]):parseFloat(e)===parseFloat(t)};const n=function(t,i){const a=e("<select></select>");let n=`acf/fields/${i}/query`;"user"===i&&(n="acf/ajax/query_users");const s={action:n,field_key:t.data.key,s:"",type:t.data.key},o=acf.escAttr(i),r={field:!1,ajax:!0,ajaxAction:n,ajaxData:function(t){return s.paged=t.paged,s.s=t.s,s.conditional_logic=!0,s.include=e.isNumeric(t.s)?Number(t.s):"",acf.prepareForAjax(s)},escapeMarkup:function(e){return acf.escHtml(e)},templateSelection:function(e){return`<span class="acf-${o}-select-name acf-conditional-select-name">`+acf.strEscape(e.text)+"</span>"},templateResult:function(e){return'<span class="'+(e.text.startsWith("- ")?`acf-${o}-select-name acf-${o}-select-sub-item`:`acf-${o}-select-name`)+'">'+acf.strEscape(e.text)+"</span>"+`<span class="acf-${o}-select-id acf-conditional-select-id">`+(e.id?e.id:"")+"</span>"}};return a.data("acfSelect2Props",r),a};var s=acf.Condition.extend({type:"hasPageLink",operator:"==",label:__("Page is equal to"),fieldTypes:["page_link"],match:function(e,t){return i(e.value,t.val())},choices:function(e){return n(e,"page_link")}});acf.registerConditionType(s);var o=acf.Condition.extend({type:"hasPageLinkNotEqual",operator:"!==",label:__("Page is not equal to"),fieldTypes:["page_link"],match:function(e,t){return!i(e.value,t.val())},choices:function(e){return n(e,"page_link")}});acf.registerConditionType(o);var r=acf.Condition.extend({type:"containsPageLink",operator:"==contains",label:__("Pages contain"),fieldTypes:["page_link"],match:function(e,t){const i=t.val(),a=e.value;let n=!1;return n=i instanceof Array?i.includes(a):i===a,n},choices:function(e){return n(e,"page_link")}});acf.registerConditionType(r);var c=acf.Condition.extend({type:"containsNotPageLink",operator:"!=contains",label:__("Pages do not contain"),fieldTypes:["page_link"],match:function(e,t){const i=t.val(),a=e.value;let n=!0;return n=i instanceof Array?!i.includes(a):i!==a,n},choices:function(e){return n(e,"page_link")}});acf.registerConditionType(c);var l=acf.Condition.extend({type:"hasAnyPageLink",operator:"!=empty",label:__("Has any page selected"),fieldTypes:["page_link"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(l);var d=acf.Condition.extend({type:"hasNoPageLink",operator:"==empty",label:__("Has no page selected"),fieldTypes:["page_link"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(d);var u=acf.Condition.extend({type:"hasUser",operator:"==",label:__("User is equal to"),fieldTypes:["user"],match:function(e,t){return a(e.value,t.val())},choices:function(e){return n(e,"user")}});acf.registerConditionType(u);var f=acf.Condition.extend({type:"hasUserNotEqual",operator:"!==",label:__("User is not equal to"),fieldTypes:["user"],match:function(e,t){return!a(e.value,t.val())},choices:function(e){return n(e,"user")}});acf.registerConditionType(f);var p=acf.Condition.extend({type:"containsUser",operator:"==contains",label:__("Users contain"),fieldTypes:["user"],match:function(e,t){const i=t.val(),a=e.value;let n=!1;return n=i instanceof Array?i.includes(a):i===a,n},choices:function(e){return n(e,"user")}});acf.registerConditionType(p);var h=acf.Condition.extend({type:"containsNotUser",operator:"!=contains",label:__("Users do not contain"),fieldTypes:["user"],match:function(e,t){const i=t.val(),a=e.value;let n=!0;n=i instanceof Array?!i.includes(a):!i===a},choices:function(e){return n(e,"user")}});acf.registerConditionType(h);var g=acf.Condition.extend({type:"hasAnyUser",operator:"!=empty",label:__("Has any user selected"),fieldTypes:["user"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"hasNoUser",operator:"==empty",label:__("Has no user selected"),fieldTypes:["user"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(m);var v=acf.Condition.extend({type:"hasRelationship",operator:"==",label:__("Relationship is equal to"),fieldTypes:["relationship"],match:function(e,t){return a(e.value,t.val())},choices:function(e){return n(e,"relationship")}});acf.registerConditionType(v);var y=acf.Condition.extend({type:"hasRelationshipNotEqual",operator:"!==",label:__("Relationship is not equal to"),fieldTypes:["relationship"],match:function(e,t){return!a(e.value,t.val())},choices:function(e){return n(e,"relationship")}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"containsRelationship",operator:"==contains",label:__("Relationships contain"),fieldTypes:["relationship"],match:function(e,t){const i=t.val(),a=parseInt(e.value);let n=!1;return i instanceof Array&&(n=i.includes(a)),n},choices:function(e){return n(e,"relationship")}});acf.registerConditionType(b);var _=acf.Condition.extend({type:"containsNotRelationship",operator:"!=contains",label:__("Relationships do not contain"),fieldTypes:["relationship"],match:function(e,t){const i=t.val(),a=parseInt(e.value);let n=!0;return i instanceof Array&&(n=!i.includes(a)),n},choices:function(e){return n(e,"relationship")}});acf.registerConditionType(_);var w=acf.Condition.extend({type:"hasAnyRelation",operator:"!=empty",label:__("Has any relationship selected"),fieldTypes:["relationship"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(w);var x=acf.Condition.extend({type:"hasNoRelation",operator:"==empty",label:__("Has no relationship selected"),fieldTypes:["relationship"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(x);var k=acf.Condition.extend({type:"hasPostObject",operator:"==",label:__("Post is equal to"),fieldTypes:["post_object"],match:function(e,t){return a(e.value,t.val())},choices:function(e){return n(e,"post_object")}});acf.registerConditionType(k);var $=acf.Condition.extend({type:"hasPostObjectNotEqual",operator:"!==",label:__("Post is not equal to"),fieldTypes:["post_object"],match:function(e,t){return!a(e.value,t.val())},choices:function(e){return n(e,"post_object")}});acf.registerConditionType($);var C=acf.Condition.extend({type:"containsPostObject",operator:"==contains",label:__("Posts contain"),fieldTypes:["post_object"],match:function(e,t){const i=t.val(),a=e.value;let n=!1;return n=i instanceof Array?i.includes(a):i===a,n},choices:function(e){return n(e,"post_object")}});acf.registerConditionType(C);var T=acf.Condition.extend({type:"containsNotPostObject",operator:"!=contains",label:__("Posts do not contain"),fieldTypes:["post_object"],match:function(e,t){const i=t.val(),a=e.value;let n=!0;return n=i instanceof Array?!i.includes(a):i!==a,n},choices:function(e){return n(e,"post_object")}});acf.registerConditionType(T);var F=acf.Condition.extend({type:"hasAnyPostObject",operator:"!=empty",label:__("Has any post selected"),fieldTypes:["post_object"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(F);var A=acf.Condition.extend({type:"hasNoPostObject",operator:"==empty",label:__("Has no post selected"),fieldTypes:["post_object"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(A);var P=acf.Condition.extend({type:"hasTerm",operator:"==",label:__("Term is equal to"),fieldTypes:["taxonomy"],match:function(e,t){return a(e.value,t.val())},choices:function(e){return n(e,"taxonomy")}});acf.registerConditionType(P);var S=acf.Condition.extend({type:"hasTermNotEqual",operator:"!==",label:__("Term is not equal to"),fieldTypes:["taxonomy"],match:function(e,t){return!a(e.value,t.val())},choices:function(e){return n(e,"taxonomy")}});acf.registerConditionType(S);var j=acf.Condition.extend({type:"containsTerm",operator:"==contains",label:__("Terms contain"),fieldTypes:["taxonomy"],match:function(e,t){const i=t.val(),a=e.value;let n=!1;return i instanceof Array&&(n=i.includes(a)),n},choices:function(e){return n(e,"taxonomy")}});acf.registerConditionType(j);var E=acf.Condition.extend({type:"containsNotTerm",operator:"!=contains",label:__("Terms do not contain"),fieldTypes:["taxonomy"],match:function(e,t){const i=t.val(),a=e.value;let n=!0;return i instanceof Array&&(n=!i.includes(a)),n},choices:function(e){return n(e,"taxonomy")}});acf.registerConditionType(E);var M=acf.Condition.extend({type:"hasAnyTerm",operator:"!=empty",label:__("Has any term selected"),fieldTypes:["taxonomy"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(M);var I=acf.Condition.extend({type:"hasNoTerm",operator:"==empty",label:__("Has no term selected"),fieldTypes:["taxonomy"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!i},choices:function(){return'<input type="text" disabled />'}});acf.registerConditionType(I);var L=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:__("Has any value"),fieldTypes:["text","textarea","number","range","email","url","password","image","file","wysiwyg","oembed","select","checkbox","radio","button_group","link","google_map","date_picker","date_time_picker","time_picker","color_picker","icon_picker"],match:function(e,t){let i=t.val();return i instanceof Array&&(i=i.length),!!i},choices:function(e){return'<input type="text" disabled />'}});acf.registerConditionType(L);var V=L.extend({type:"hasNoValue",operator:"==empty",label:__("Has no value"),match:function(e,t){return!L.prototype.match.apply(this,arguments)}});acf.registerConditionType(V);var D=acf.Condition.extend({type:"equalTo",operator:"==",label:__("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(e,t){return acf.isNumeric(e.value)?a(e.value,t.val()):i(e.value,t.val())},choices:function(e){return'<input type="text" />'}});acf.registerConditionType(D);var R=D.extend({type:"notEqualTo",operator:"!=",label:__("Value is not equal to"),match:function(e,t){return!D.prototype.match.apply(this,arguments)}});acf.registerConditionType(R);var z=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:__("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(e,i){return a=i.val(),n=e.value,s=new RegExp(t(n),"gi"),t(a).match(s);var a,n,s},choices:function(e){return'<input type="text" placeholder="[a-z0-9]" />'}});acf.registerConditionType(z);var O=acf.Condition.extend({type:"contains",operator:"==contains",label:__("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(e,i){return a=i.val(),n=e.value,t(a).indexOf(t(n))>-1;var a,n},choices:function(e){return'<input type="text" />'}});acf.registerConditionType(O);var B=D.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(e){return[{id:1,text:__("Checked")}]}});acf.registerConditionType(B);var N=R.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(e){return[{id:1,text:__("Checked")}]}});acf.registerConditionType(N);var q=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:__("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(e,a){var n,s=a.val();return s instanceof Array?(n=e.value,s.map(function(e){return t(e)}).indexOf(n)>-1):i(e.value,s)},choices:function(e){var t=[],i=e.$setting("choices textarea").val().split("\n");return e.$input("allow_null").prop("checked")&&t.push({id:"",text:__("Null")}),i.map(function(e){(e=e.split(":"))[1]=e[1]||e[0],t.push({id:e[0].trim(),text:e[1].trim()})}),t}});acf.registerConditionType(q);var Q=q.extend({type:"selectNotEqualTo",operator:"!=",label:__("Value is not equal to"),match:function(e,t){return!q.prototype.match.apply(this,arguments)}});acf.registerConditionType(Q);var H=acf.Condition.extend({type:"greaterThan",operator:">",label:__("Value is greater than"),fieldTypes:["number","range"],match:function(e,t){var i,a,n=t.val();return n instanceof Array&&(n=n.length),i=n,a=e.value,parseFloat(i)>parseFloat(a)},choices:function(e){return'<input type="number" />'}});acf.registerConditionType(H);var K=H.extend({type:"lessThan",operator:"<",label:__("Value is less than"),match:function(e,t){var i,a,n=t.val();return n instanceof Array&&(n=n.length),null==n||!1===n||(i=n,a=e.value,parseFloat(i)<parseFloat(a))},choices:function(e){return'<input type="number" />'}});acf.registerConditionType(K);var U=H.extend({type:"selectionGreaterThan",label:__("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(U);var G=K.extend({type:"selectionLessThan",label:__("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(G)}(jQuery)},8903(){!function(e){var t=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(t){e.extend(this.data,t)},getEventTarget:function(e,t){return e||this.get("field").$el},change:function(e,t){this.get("conditions").change(e)},match:function(e,t){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(e){return'<input type="text" />'}}),acf.newCondition=function(e,t){var i=t.get("field"),a=i.getField(e.field);if(!i||!a)return!1;var n={rule:e,target:i,conditions:t,field:a},s=a.get("type"),o=e.operator;return new(acf.getConditionTypes({fieldType:s,operator:o})[0]||acf.Condition)(n)};var i=function(e){return acf.strPascalCase(e||"")+"Condition"};acf.registerConditionType=function(e){var a=e.prototype.type,n=i(a);acf.models[n]=e,t.push(a)},acf.getConditionType=function(e){var t=i(e);return acf.models[t]||!1},acf.registerConditionForFieldType=function(e,t){var i=acf.getConditionType(e);i&&i.prototype.fieldTypes.push(t)},acf.getConditionTypes=function(e){e=acf.parseArgs(e,{fieldType:"",operator:""});var i=[];return t.map(function(t){var a=acf.getConditionType(t),n=a.prototype.fieldTypes,s=a.prototype.operator;e.fieldType&&-1===n.indexOf(e.fieldType)||e.operator&&s!==e.operator||i.push(a)}),i}}(jQuery)},3858(){!function(e){var t="conditional_logic",i=(new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(e){e.has("conditions")&&e.getConditions().render()}}),function(t,i){var a=acf.getFields({key:i,sibling:t.$el,suppressFilters:!0});return a.length||(a=acf.getFields({key:i,parent:t.$el.parent(),suppressFilters:!0})),!a.length&&e(".acf-field-settings").length&&(a=acf.getFields({key:i,parent:t.$el.parents(".acf-field-settings:first"),suppressFilters:!0})),!a.length&&e("#acf-basic-settings").length&&(a=acf.getFields({key:i,parent:e("#acf-basic-settings"),suppressFilters:!0})),!!a.length&&a[0]});acf.Field.prototype.getField=function(e){var t=i(this,e);if(t)return t;for(var a=this.parents(),n=0;n<a.length;n++)if(t=i(a[n],e))return t;return!1},acf.Field.prototype.getConditions=function(){return this.conditions||(this.conditions=new a(this)),this.conditions};var a=acf.Model.extend({id:"Conditions",data:{field:!1,timeStamp:!1,groups:[]},setup:function(e){this.data.field=e;var t=e.get("conditions");t instanceof Array?t[0]instanceof Array?t.map(function(e,t){this.addRules(e,t)},this):this.addRules(t):this.addRule(t)},change:function(e){if(this.get("timeStamp")===e.timeStamp)return!1;this.set("timeStamp",e.timeStamp,!0),this.render()},render:function(){return this.calculate()?this.show():this.hide()},show:function(){return this.get("field").showEnable(this.cid,t)},hide:function(){return this.get("field").hideDisable(this.cid,t)},calculate:function(){var e=!1;return this.getGroups().map(function(t){e||t.filter(function(e){return e.calculate()}).length==t.length&&(e=!0)}),e},hasGroups:function(){return null!=this.data.groups},getGroups:function(){return this.data.groups},addGroup:function(){var e=[];return this.data.groups.push(e),e},hasGroup:function(e){return null!=this.data.groups[e]},getGroup:function(e){return this.data.groups[e]},removeGroup:function(e){return this.data.groups[e].delete,this},addRules:function(e,t){e.map(function(e){this.addRule(e,t)},this)},addRule:function(e,t){var i;t=t||0,i=this.hasGroup(t)?this.getGroup(t):this.addGroup();var a=acf.newCondition(e,this);if(!a)return!1;i.push(a)},hasRule:function(){},getRule:function(e,t){return e=e||0,t=t||0,this.data.groups[t][e]},removeRule:function(){}})}(jQuery)},5593(){!function(e){var t=0,i=acf.Field.extend({type:"accordion",wait:"",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(!this.$el.hasClass("acf-accordion")&&!this.$el.is("td")){if(this.get("endpoint"))return this.remove();var i=this.$el,n=this.$labelWrap(),s=this.$inputWrap(),o=this.$control(),r=s.children(".description");if(r.length&&n.append(r),this.$el.is("tr")){var c=this.$el.closest("table"),l=e('<div class="acf-accordion-title"/>'),d=e('<div class="acf-accordion-content"/>'),u=e('<table class="'+c.attr("class")+'"/>'),f=e("<tbody/>");l.append(n.html()),u.append(f),d.append(u),s.append(l),s.append(d),n.remove(),o.remove(),s.attr("colspan",2),n=l,s=d,o=f}i.addClass("acf-accordion"),n.addClass("acf-accordion-title"),s.addClass("acf-accordion-content"),t++,this.get("multi_expand")&&i.attr("multi-expand",1);var p=acf.getPreference("this.accordions")||[];void 0!==p[t-1]&&this.set("open",p[t-1]),this.get("open")&&(i.addClass("-open"),s.css("display","block")),n.prepend(a.iconHtml({open:this.get("open")})),n.attr({tabindex:"0",role:"button","aria-expanded":this.get("open")?"true":"false"}),s.attr({role:"region"});var h=i.parent();o.addClass(h.hasClass("-left")?"-left":""),o.addClass(h.hasClass("-clear")?"-clear":""),o.append(i.nextUntil(".acf-field-accordion",".acf-field")),o.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(i);var a=new acf.Model({actions:{unload:"onUnload"},events:{"click .acf-accordion-title":"onClick","keydown .acf-accordion-title":"onKeydown","invalidField .acf-accordion":"onInvalidField"},isOpen:function(e){return e.hasClass("-open")},toggle:function(e){this.isOpen(e)?this.close(e):this.open(e)},iconHtml:function(e){return acf.isGutenberg()?e.open?'<svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="acf-accordion-icon components-panel__arrow" aria-hidden="true" focusable="false"><path d="M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"></path></svg>':'<svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class=" acf-accordion-icon components-panel__arrow" aria-hidden="true" focusable="false"><path d="M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"></path></svg>':e.open?'<i class="acf-accordion-icon dashicons dashicons-arrow-down"></i>':'<i class="acf-accordion-icon dashicons dashicons-arrow-right"></i>'},open:function(t){var i=acf.isGutenberg()?0:300;t.find(".acf-accordion-content:first").slideDown(i).css("display","block"),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),t.addClass("-open"),t.find(".acf-accordion-title:first").attr("aria-expanded","true"),acf.doAction("show",t),t.attr("multi-expand")||t.siblings(".acf-accordion.-open").each(function(){a.close(e(this))})},close:function(e){var t=acf.isGutenberg()?0:300;e.find(".acf-accordion-content:first").slideUp(t),e.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!1})),e.removeClass("-open"),e.find(".acf-accordion-title:first").attr("aria-expanded","false"),acf.doAction("hide",e)},onClick:function(e,t){e.preventDefault(),this.toggle(t.parent())},onKeydown:function(e,t){13===e.which&&(e.preventDefault(),this.toggle(t.parent()))},onInvalidField:function(e,t){this.busy||(this.busy=!0,this.setTimeout(function(){this.busy=!1},1e3),this.open(t))},onUnload:function(t){var i=[];e(".acf-accordion").each(function(){var t=e(this).hasClass("-open")?1:0;i.push(t)}),i.length&&acf.setPreference("this.accordions",i)}})}(jQuery)},6289(){!function(){const e=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick","keydown label":"onKeyDown"},$control:function(){return this.$(".acf-button-group")},$input:function(){return this.$("input:checked")},initialize:function(){this.updateButtonStates()},setValue:function(e){this.$('input[value="'+e+'"]').prop("checked",!0).trigger("change"),this.updateButtonStates()},updateButtonStates:function(){const e=this.$control().find("label"),t=this.$input();e.removeClass("selected").attr("aria-checked","false").attr("tabindex","-1"),t.length?t.parent("label").addClass("selected").attr("aria-checked","true").attr("tabindex","0"):e.first().attr("tabindex","0")},onClick:function(e,t){this.selectButton(t.parent("label"))},onKeyDown:function(e,t){const i=e.which;if(13===i||32===i)return e.preventDefault(),void this.selectButton(t);if(37===i||39===i||38===i||40===i){e.preventDefault();const a=this.$control().find("label"),n=a.index(t);let s;s=37===i||38===i?n>0?n-1:a.length-1:n<a.length-1?n+1:0;const o=a.eq(s);a.attr("tabindex","-1"),o.attr("tabindex","0").trigger("focus")}},selectButton:function(e){const t=e.find('input[type="radio"]'),i=e.hasClass("selected");t.prop("checked",!0).trigger("change"),this.get("allow_null")&&i&&t.prop("checked",!1).trigger("change"),this.updateButtonStates()}});acf.registerFieldType(e)}(jQuery)},774(){var e,t;e=jQuery,t=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom",'keydown input[type="checkbox"]':"onKeyDownInput"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var t=[];return this.$(":checked").each(function(){t.push(e(this).val())}),!!t.length&&t},onChange:function(e,t){var i=t.prop("checked"),a=t.parent("label"),n=this.$toggle();i?a.addClass("selected"):a.removeClass("selected"),n.length&&(0==this.$inputs().not(":checked").length?n.prop("checked",!0):n.prop("checked",!1))},onClickAdd:function(e,t){var i='<li><input class="acf-checkbox-custom" type="checkbox" checked="checked" /><input type="text" name="'+this.getInputName()+'[]" /></li>';t.parent("li").before(i),t.parent("li").parent().find('input[type="text"]').last().trigger("focus")},onClickToggle:function(t,i){const a=this.$inputs(),n=a.not(":checked").length>0;a.each(function(){e(this).prop("checked",n).trigger("change")}),i.prop("checked",n)},onClickCustom:function(e,t){var i=t.prop("checked"),a=t.next('input[type="text"]');i?a.prop("disabled",!1):(a.prop("disabled",!0),""==a.val()&&t.parent("li").remove())},onKeyDownInput:function(e,t){13===e.which&&(e.preventDefault(),t.prop("checked",!t.prop("checked")).trigger("change"),t.is(".acf-checkbox-toggle")&&this.onClickToggle(e,t))}}),acf.registerFieldType(t)},3623(){var e;jQuery,e=acf.Field.extend({type:"color_picker",wait:"load",events:{duplicateField:"onDuplicate"},$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},setValue:function(e){acf.val(this.$input(),e),this.$inputText().iris("color",e)},initialize:function(){var e=this.$input(),t=this.$inputText(),i=function(i){setTimeout(function(){acf.val(e,t.val())},1)},a={defaultColor:!1,palettes:!0,hide:!0,change:i,clear:i};if("custom"===t.data("acf-palette-type")){const e=t.data("acf-palette-colors").match(/#(?:[0-9a-fA-F]{3}){1,2}|rgba?\([\s*(\d|.)+\s*,]+\)/g);if(e){let t=e.map(e=>e.trim());a.palettes=t}}a=acf.applyFilters("color_picker_args",a,this),Array.isArray(a.palettes)&&a.palettes.length>10&&this.$control().addClass("acf-color-picker-large-custom-palette"),t.wpColorPicker(a)},onDuplicate:function(e,t,i){$colorPicker=i.find(".wp-picker-container"),$inputText=i.find('input[type="text"]'),$colorPicker.replaceWith($inputText)}}),acf.registerFieldType(e)},9982(){var e,t;e=jQuery,t=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur",duplicateField:"onDuplicate"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),i=this.$inputText(),a={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};if(a=acf.applyFilters("date_picker_args",a,this),acf.newDatePicker(i,a),1===i.data("default-to-today")&&!t.val()){const n=new Date,s=e.datepicker.formatDate(a.dateFormat,n);i.val(`${s}`);const o=e.datepicker.formatDate("yymmdd",n);t.val(`${o}`)}acf.doAction("date_picker_init",i,a,this)},initializeCompatibility:function(){var e=this.$input(),t=this.$inputText();t.val(e.val());var i={dateFormat:this.get("date_format"),altField:e,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")},a=(i=acf.applyFilters("date_picker_args",i,this)).dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(t,i),t.datepicker("option","dateFormat",a),acf.doAction("date_picker_init",t,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")},onDuplicate:function(e,t,i){i.find('input[type="text"]').removeClass("hasDatepicker").removeAttr("id")}}),acf.registerFieldType(t),new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),i=acf.get("rtl"),a=acf.get("datePickerL10n");return!!a&&void 0!==e.datepicker&&(a.isRTL=i,e.datepicker.regional[t]=a,void e.datepicker.setDefaults(a))}}),acf.newDatePicker=function(t,i){if(void 0===e.datepicker)return!1;i=i||{},t.datepicker(i),e("body > #ui-datepicker-div").exists()&&e("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}},960(){var e,t;e=jQuery,t=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),i=this.$inputText(),a={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0};if(a=acf.applyFilters("date_time_picker_args",a,this),acf.newDateTimePicker(i,a),1===i.data("default-to-today")&&!t.val()){const n=new Date,s=e.datepicker.formatDate(a.dateFormat,n),o=e.datepicker.formatTime(a.timeFormat,{hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds()});i.val(`${s} ${o}`);const r=e.datepicker.formatDate("yy-mm-dd",n),c=e.datepicker.formatTime("hh:mm:ss",{hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds()});t.val(`${r} ${c}`)}acf.doAction("date_time_picker_init",i,a,this)}}),acf.registerFieldType(t),new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),i=acf.get("rtl"),a=acf.get("dateTimePickerL10n");return!!a&&void 0!==e.timepicker&&(a.isRTL=i,e.timepicker.regional[t]=a,void e.timepicker.setDefaults(a))}}),acf.newDateTimePicker=function(t,i){if(void 0===e.timepicker)return!1;i=i||{},t.datetimepicker(i),e("body > #ui-datepicker-div").exists()&&e("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}},2093(){!function(e){const t=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]:first')},events:{'click a[data-name="add"]':"onClickAdd",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove",'change input[type="file"]':"onChange","keydown .file-wrap":"onImageWrapKeydown"},validateAttachment:function(e){return void 0!==(e=e||{}).id&&(e=e.attributes),acf.parseArgs(e,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(e){e=this.validateAttachment(e),this.$("img").attr({src:e.icon,alt:e.alt,title:e.title}),this.$('[data-name="title"]').text(e.title),this.$('[data-name="filename"]').text(e.filename).attr("href",e.url),this.$('[data-name="filesize"]').text(e.filesizeHumanReadable);const t=e.id||"";if(acf.val(this.$input(),t),t){this.$control().addClass("has-value");const e=this.$(".file-wrap");e.length&&e.trigger("focus")}else this.$control().removeClass("has-value")},selectAttachment:function(){const t=this.parent(),i=t&&"repeater"===t.get("type");acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:e.proxy(function(e,i){i>0?this.append(e,t):this.render(e)},this)})},editAttachment:function(t){const i=this.val();i&&acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:i,field:this.get("key"),select:e.proxy(function(e){this.render(e)},this),close:e.proxy(function(){if("edit-button"===t){const e=this.$el.find('a[data-name="edit"]');e.length&&e.focus()}else{const e=this.$el.find(".file-wrap");e.length&&e.focus()}},this)})}});acf.registerFieldType(t)}(jQuery)},1163(){!function(e){var t=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click button[data-name="clear"]':"onClickClear",'click button[data-name="locate"]':"onClickLocate",'click button[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},setState:function(e){this.$control().removeClass("-value -loading -searching"),"default"===e&&(e=this.val()?"value":""),e&&this.$control().addClass("-"+e)},getValue:function(){var e=this.$input().val();return!!e&&JSON.parse(e)},setValue:function(e,t){var i="";e&&(i=JSON.stringify(e)),acf.val(this.$input(),i),t||(this.renderVal(e),acf.doAction("google_map_change",e,this.map,this))},renderVal:function(e){e?(this.setState("value"),this.$search().val(e.address),this.setPosition(e.lat,e.lng)):(this.setState(""),this.$search().val(""),this.map.marker.setVisible(!1))},newLatLng:function(e,t){return new google.maps.LatLng(parseFloat(e),parseFloat(t))},setPosition:function(e,t){this.map.marker.setPosition({lat:parseFloat(e),lng:parseFloat(t)}),this.map.marker.setVisible(!0),this.center()},center:function(){var e=this.map.marker.getPosition();if(e)var t=e.lat(),i=e.lng();else t=this.get("lat"),i=this.get("lng");this.map.setCenter({lat:parseFloat(t),lng:parseFloat(i)})},initialize:function(){!function(t){if(a)return t();if(acf.isset(window,"google","maps","Geocoder"))return a=new google.maps.Geocoder,t();if(acf.addAction("google_map_api_loaded",t),!i){var n=acf.get("google_map_api");n&&(i=!0,e.ajax({url:n,dataType:"script",cache:!0,success:function(){a=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}}))}}(this.initializeMap.bind(this))},initializeMap:function(){var e=this.getValue(),t=acf.parseArgs(e,{zoom:this.get("zoom"),lat:this.get("lat"),lng:this.get("lng")}),i={scrollwheel:!1,zoom:parseInt(t.zoom),center:{lat:parseFloat(t.lat),lng:parseFloat(t.lng)},mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};i=acf.applyFilters("google_map_args",i,this);var a=new google.maps.Map(this.$canvas()[0],i),n=acf.parseArgs(i.marker,{draggable:!0,raiseOnDrag:!0,map:a});n=acf.applyFilters("google_map_marker_args",n,this);var s=new google.maps.Marker(n),o=!1;if(acf.isset(google,"maps","places","Autocomplete")){var r=i.autocomplete||{};r=acf.applyFilters("google_map_autocomplete_args",r,this),(o=new google.maps.places.Autocomplete(this.$search()[0],r)).bindTo("bounds",a)}this.addMapEvents(this,a,s,o),a.acf=this,a.marker=s,a.autocomplete=o,this.map=a,e&&this.setPosition(e.lat,e.lng),acf.doAction("google_map_init",a,s,this)},addMapEvents:function(e,t,i,a){google.maps.event.addListener(t,"click",function(t){var i=t.latLng.lat(),a=t.latLng.lng();e.searchPosition(i,a)}),google.maps.event.addListener(i,"dragend",function(){var t=this.getPosition().lat(),i=this.getPosition().lng();e.searchPosition(t,i)}),a&&google.maps.event.addListener(a,"place_changed",function(){var t=this.getPlace();e.searchPlace(t)}),google.maps.event.addListener(t,"zoom_changed",function(){var i=e.val();i&&(i.zoom=t.getZoom(),e.setValue(i,!0))})},searchPosition:function(e,t){this.setState("loading");var i={lat:e,lng:t};a.geocode({location:i},function(i,a){if(this.setState(""),"OK"!==a)this.showNotice({text:acf.__("Location not found: %s").replace("%s",a),type:"warning"});else{var n=this.parseResult(i[0]);n.lat=e,n.lng=t,this.val(n)}}.bind(this))},searchPlace:function(e){if(e)if(e.geometry){e.formatted_address=this.$search().val();var t=this.parseResult(e);this.val(t)}else e.name&&this.searchAddress(e.name)},searchAddress:function(e){if(e){var t=e.split(",");if(2==t.length){var i=parseFloat(t[0]),n=parseFloat(t[1]);if(i&&n)return this.searchPosition(i,n)}this.setState("loading"),a.geocode({address:e},function(t,i){if(this.setState(""),"OK"!==i)this.showNotice({text:acf.__("Location not found: %s").replace("%s",i),type:"warning"});else{var a=this.parseResult(t[0]);a.address=e,this.val(a)}}.bind(this))}},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));this.setState("loading"),navigator.geolocation.getCurrentPosition(function(e){this.setState("");var t=e.coords.latitude,i=e.coords.longitude;this.searchPosition(t,i)}.bind(this),function(e){this.setState("")}.bind(this))},parseResult:function(e){var t={address:e.formatted_address,lat:e.geometry.location.lat(),lng:e.geometry.location.lng()};t.zoom=this.map.getZoom(),e.place_id&&(t.place_id=e.place_id),e.name&&(t.name=e.name);var i={street_number:["street_number"],street_name:["street_address","route"],city:["locality","postal_town"],state:["administrative_area_level_1","administrative_area_level_2","administrative_area_level_3","administrative_area_level_4","administrative_area_level_5"],post_code:["postal_code"],country:["country"]};for(var a in i)for(var n=i[a],s=0;s<e.address_components.length;s++){var o=e.address_components[s],r=o.types[0];-1!==n.indexOf(r)&&(t[a]=o.long_name,o.long_name!==o.short_name&&(t[a+"_short"]=o.short_name))}return acf.applyFilters("google_map_result",t,e,this.map,this)},onClickClear:function(){this.val(!1)},onClickLocate:function(){this.searchLocation()},onClickSearch:function(){this.searchAddress(this.$search().val())},onFocusSearch:function(e,t){const i=this.val(),a=i?i.address:"";t.val()!==a&&this.setState("searching")},onBlurSearch:function(e,t){var i=this.val(),a=i?i.address:"";t.val()===a&&this.setState("default")},onKeyupSearch:function(e,t){const i=this.val(),a=i?i.address:"";t.val()?t.val()!==a?this.setState("searching"):this.setState("default"):(this.val(!1),this.setState("default"))},onKeydownSearch:function(e,t){13==e.which&&(e.preventDefault(),t.blur())},onShow:function(){this.map&&this.setTimeout(this.center)}});acf.registerFieldType(t);var i=!1,a=!1}(jQuery)},3045(){!function(e){const t=acf.Field.extend({type:"icon_picker",wait:"load",events:{showField:"scrollToSelectedIcon","input .acf-icon_url":"onUrlChange","click .acf-icon-picker-list-icon":"onIconClick","focus .acf-icon-picker-list-icon-radio":"onIconRadioFocus","blur .acf-icon-picker-list-icon-radio":"onIconRadioBlur","keydown .acf-icon-picker-list-icon-radio":"onIconKeyDown","input .acf-icon-list-search-input":"onIconSearch","keydown .acf-icon-list-search-input":"onIconSearchKeyDown","click .acf-icon-picker-media-library-button":"onMediaLibraryButtonClick","click .acf-icon-picker-media-library-preview":"onMediaLibraryButtonClick"},$typeInput(){return this.$('input[type="hidden"][data-hidden-type="type"]:first')},$valueInput(){return this.$('input[type="hidden"][data-hidden-type="value"]:first')},$tabButton(){return this.$(".acf-tab-button")},$selectedIcon(){return this.$(".acf-icon-picker-list-icon.active")},$selectedRadio(){return this.$(".acf-icon-picker-list-icon.active input")},$iconsList(){return this.$(".acf-icon-list:visible")},$mediaLibraryButton(){return this.$(".acf-icon-picker-media-library-button")},$mediaLibraryPreviewImg(){return this.$(".acf-icon-picker-media-library-preview-img img")},initialize(){this.addActions();const e={type:this.$typeInput().val(),value:this.$valueInput().val()};if(this.set("typeAndValue",e),"media_library"===e.type){const e=this.$mediaLibraryPreviewImg().attr("src");e&&this.set("mediaLibraryPreviewUrl",e)}this.$tabButton().on("click",()=>{this.initializeIconLists(this.get("typeAndValue"))}),acf.doAction(this.get("name")+"/type_and_value_change",e),this.initializeIconLists(e),this.alignMediaLibraryTabToCurrentValue(e)},addActions(){acf.addAction(this.get("name")+"/type_and_value_change",e=>{const t=this.$typeInput().val(),i=this.$valueInput().val();if(t===e.type&&i===e.value)this.alignIconListTabsToCurrentValue(e),this.alignMediaLibraryTabToCurrentValue(e),this.alignUrlTabToCurrentValue(e);else{const e=this.get("typeAndValue");e&&(this.alignIconListTabsToCurrentValue(e),this.alignMediaLibraryTabToCurrentValue(e),this.alignUrlTabToCurrentValue(e))}})},updateTypeAndValue(e,t){const i={type:e,value:t};acf.val(this.$typeInput(),e),acf.val(this.$valueInput(),t),this.set("typeAndValue",i),acf.doAction(this.get("name")+"/type_and_value_change",i)},scrollToSelectedIcon(){const e=this.$selectedIcon();if(0===e.length)return;const t=e.closest(".acf-icon-list");t.scrollTop(0);const i=e.position().top-50;0!==i&&t.scrollTop(i)},initializeIconLists(t){const i=this.$(".acf-icon-list"),a=this;i.each(function(i){const n=e(this),s=n.data("parent-tab"),o=a.getIconsList(s)||[];a.set(s,o),a.renderIconList(n),t.type===s&&a.selectIcon(n,t.value,!1).then(()=>{a.scrollToSelectedIcon()})})},alignIconListTabsToCurrentValue(t){const i=this.$(".acf-icon-list").filter(function(){return e(this).data("parent-tab")!==t.type}),a=this;i.each(function(){a.unselectIcon(e(this))})},renderIconHTML(e,t){const i=acf.strEscape(`${this.get("name")}-${t.key}`),a=acf.strEscape(t.key),n=acf.strEscape(t.label),s=acf.strEscape(t.url);let o=`dashicons ${a}`,r="";return"dashicons"!==e&&(o=`${e} ${a}`,r=`background: center / contain url( ${s} ) no-repeat;`),`<div class="${o} acf-icon-picker-list-icon" role="radio" data-icon="${a}" style="${r}" title="${n}">\n\t\t\t\t<label for="${i}">${n}</label>\n\t\t\t\t<input id="${i}" type="radio" class="acf-icon-picker-list-icon-radio" name="acf-icon-picker-list-icon-radio" value="${a}">\n\t\t\t</div>`},renderIconList(e){const t=e.data("parent-tab"),i=this.get(t);e.empty(),i&&i.forEach(i=>{const a=this.renderIconHTML(t,i);e.append(a)})},getIconsList(e){let t;if("dashicons"===e){const e=acf.get("iconPickeri10n")||[];t=Object.entries(e).map(([e,t])=>({key:e,label:t}))}else{const i=this.$(`.acf-icon-list[data-parent-tab="${e}"]`);if(0!==i.length){const e=i.data("icons");t=Array.isArray(e)?e:[]}}return t},getIconsBySearch(e,t){const i=e.toLowerCase();return this.getIconsList(t).filter(function(e){return e.label.toLowerCase().indexOf(i)>-1})},selectIcon(e,t,i=!0){this.set("selectedIcon",t);const a=e.find(`.acf-icon-picker-list-icon[data-icon="${t}"]`);a.addClass("active");const n=a.find("input"),s=n.prop("checked",!0).promise();return i&&n.trigger("focus"),this.updateTypeAndValue(e.data("parent-tab"),t),s},unselectIcon(e){e.find(".acf-icon-picker-list-icon").removeClass("active"),this.set("selectedIcon",!1)},onIconRadioFocus(e){const t=e.target.value,i=this.$(e.target).closest(".acf-icon-picker-tabs"),a=i.find(".acf-icon-list");i.find('.acf-icon-picker-list-icon[data-icon="'+t+'"]').addClass("focus"),this.get("selectedIcon")!==t&&(this.unselectIcon(a),this.selectIcon(a,t))},onIconRadioBlur(e){this.$(e.target).parent().removeClass("focus")},onIconClick(e){e.preventDefault();const t=this.$(e.target).closest(".acf-icon-list"),i=this.$(e.target).find("input").val();t.find('.acf-icon-picker-list-icon[data-icon="'+i+'"]').find("input").prop("checked",!0).trigger("focus")},onIconSearch(e){const t=this.$(e.target).closest(".acf-icon-picker-tabs"),i=t.find(".acf-icon-list"),a=t.data("tab"),n=e.target.value,s=this.getIconsBySearch(n,a);if(s.length>0||!n)this.set(a,s),t.find(".acf-icon-list-empty").hide(),t.find(".acf-icon-list ").show(),this.renderIconList(i),wp.a11y.speak(acf.get("iconPickerA11yStrings").newResultsFoundForSearchTerm,"polite");else{const e=n.length>30?n.substring(0,30)+"&hellip;":n;t.find(".acf-icon-list ").hide(),t.find(".acf-icon-list-empty").find(".acf-invalid-icon-list-search-term").text(e),t.find(".acf-icon-list-empty").css("display","flex"),t.find(".acf-icon-list-empty").show(),wp.a11y.speak(acf.get("iconPickerA11yStrings").noResultsForSearchTerm,"polite")}},onIconSearchKeyDown(e){13===e.which&&e.preventDefault()},onIconKeyDown(e){13===e.which&&e.preventDefault()},alignMediaLibraryTabToCurrentValue(e){const t=e.type,i=e.value;if("media_library"!==t&&"dashicons"!==t&&this.$(".acf-icon-picker-media-library-preview").hide(),"media_library"===t){let e=this.get("mediaLibraryPreviewUrl");e||(e=this.$mediaLibraryPreviewImg().attr("src"),e&&this.set("mediaLibraryPreviewUrl",e)),e&&this.$mediaLibraryPreviewImg().attr("src",e),this.$(".acf-icon-picker-media-library-preview-dashicon").hide(),this.$(".acf-icon-picker-media-library-preview-img").show(),this.$(".acf-icon-picker-media-library-preview").show()}"dashicons"===t&&(this.$(".acf-icon-picker-media-library-preview-dashicon .dashicons").attr("class","dashicons "+i),this.$(".acf-icon-picker-media-library-preview-img").hide(),this.$(".acf-icon-picker-media-library-preview-dashicon").show(),this.$(".acf-icon-picker-media-library-preview").show())},async onMediaLibraryButtonClick(e){e.preventDefault(),await this.selectAndReturnAttachment().then(e=>{this.set("mediaLibraryPreviewUrl",e.attributes.url),this.updateTypeAndValue("media_library",e.id)})},selectAndReturnAttachment(){return new Promise(e=>{acf.newMediaPopup({mode:"select",type:"image",title:acf.__("Select Image"),field:this.get("key"),multiple:!1,library:"all",allowedTypes:"image",select:e})})},alignUrlTabToCurrentValue(e){"url"!==e.type&&this.$(".acf-icon_url").val("")},onUrlChange(e){const t=e.target.value;this.updateTypeAndValue("url",t)}});acf.registerFieldType(t)}(jQuery)},2410(){!function(e){const t=acf.Field.extend({type:"image",$control:function(){return this.$(".acf-image-uploader")},$input:function(){return this.$('input[type="hidden"]:first')},events:{'click a[data-name="add"]':"onClickAdd",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove",'change input[type="file"]':"onChange","keydown .image-wrap":"onImageWrapKeydown"},initialize:function(){"basic"===this.get("uploader")&&this.$el.closest("form").attr("enctype","multipart/form-data")},validateAttachment:function(e){e&&e.attributes&&(e=e.attributes),e=acf.parseArgs(e,{id:0,url:"",alt:"",title:"",caption:"",description:"",width:0,height:0});const t=acf.isget(e,"sizes",this.get("preview_size"));return t&&(e.url=t.url,e.width=t.width,e.height=t.height),e},render:function(e){if(e=this.validateAttachment(e),this.$("img").attr({src:e.url,alt:e.alt}),e.id){this.val(e.id),this.$control().addClass("has-value");const t=this.$(".image-wrap");t.length&&t.trigger("focus")}else this.val(""),this.$control().removeClass("has-value")},append:function(e,t){const i=function(e,t){const i=acf.getFields({key:e.get("key"),parent:t.$el});for(let e=0;e<i.length;e++)if(!i[e].val())return i[e];return!1};let a=i(this,t);a||(t.$(".acf-button:last").trigger("click"),a=i(this,t)),a&&a.render(e)},selectAttachment:function(){const t=this.parent(),i=t&&"repeater"===t.get("type");acf.newMediaPopup({mode:"select",type:"image",title:acf.__("Select Image"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:e.proxy(function(e,i){i>0?this.append(e,t):this.render(e)},this)})},editAttachment:function(t){const i=this.val();i&&acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:i,field:this.get("key"),select:e.proxy(function(e){this.render(e)},this),close:e.proxy(function(){if("edit-button"===t){const e=this.$el.find('a[data-name="edit"]');e.length&&e.trigger("focus")}else{const e=this.$el.find(".image-wrap");e.length&&e.trigger("focus")}},this)})},removeAttachment:function(){this.render(!1)},onClickAdd:function(e,t){this.selectAttachment()},onClickEdit:function(e,t){this.editAttachment("edit-button")},onClickRemove:function(e,t){this.removeAttachment()},onChange:function(t,i){const a=this.$input();i.val()||a.val(""),acf.getFileInputData(i,function(t){a.val(e.param(t))})},onImageWrapKeydown:function(e,t){13===e.which&&e.target===t[0]&&(e.preventDefault(),this.val()&&"basic"!==this.get("uploader")&&this.editAttachment())}});acf.registerFieldType(t)}(jQuery)},5915(){var e,t;e=jQuery,t=acf.Field.extend({type:"link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove","change .link-node":"onChange"},$control:function(){return this.$(".acf-link")},$node:function(){return this.$(".link-node")},getValue:function(){var e=this.$node();return!!e.attr("href")&&{title:e.html(),url:e.attr("href"),target:e.attr("target")}},setValue:function(e){e=acf.parseArgs(e,{title:"",url:"",target:""});var t=this.$control(),i=this.$node();t.removeClass("-value -external"),e.url&&t.addClass("-value"),"_blank"===e.target&&t.addClass("-external"),this.$(".link-title").html(e.title),this.$(".link-url").attr("href",e.url).text(e.url),i.html(e.title),i.attr("href",e.url),i.attr("target",e.target),this.$(".input-title").val(e.title),this.$(".input-target").val(e.target),this.$(".input-url").val(e.url).trigger("change")},onClickEdit:function(e,t){acf.wpLink.open(this.$node())},onClickRemove:function(e,t){this.setValue(!1)},onChange:function(e,t){var i=this.getValue();this.setValue(i)}}),acf.registerFieldType(t),acf.wpLink=new acf.Model({getNodeValue:function(){var e=this.get("node");return{title:acf.decode(e.html()),url:e.attr("href"),target:e.attr("target")}},setNodeValue:function(e){var t=this.get("node");t.text(e.title),t.attr("href",e.url),t.attr("target",e.target),t.trigger("change")},getInputValue:function(){return{title:e("#wp-link-text").val(),url:e("#wp-link-url").val(),target:e("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(t){e("#wp-link-text").val(t.title),e("#wp-link-url").val(t.url),e("#wp-link-target").prop("checked","_blank"===t.target)},open:function(t){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",t);var i=e('<textarea id="acf-link-textarea" style="display:none;"></textarea>');e("body").append(i);var a=this.getNodeValue();wpLink.open("acf-link-textarea",a.url,a.title,null)},onOpen:function(){e("#wp-link-wrap").addClass("has-text-field");var t=this.getNodeValue();this.setInputValue(t),t.url&&wpLinkL10n&&e("#wp-link-submit").val(wpLinkL10n.update)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;var t=e("#wp-link-submit");if(t.is(":hover")||t.is(":focus")){var i=this.getInputValue();this.setNodeValue(i)}this.off("wplink-open"),this.off("wplink-close"),e("#acf-link-textarea").remove(),this.set("node",null)}})},2237(){var e,t;e=jQuery,t=acf.Field.extend({type:"oembed",events:{'click [data-name="clear-button"]':"onClickClear","keypress .input-search":"onKeypressSearch","keyup .input-search":"onKeyupSearch","change .input-search":"onChangeSearch"},$control:function(){return this.$(".acf-oembed")},$input:function(){return this.$(".input-value")},$search:function(){return this.$(".input-search")},getValue:function(){return this.$input().val()},getSearchVal:function(){return this.$search().val()},setValue:function(e){e?this.$control().addClass("has-value"):this.$control().removeClass("has-value"),acf.val(this.$input(),e)},showLoading:function(e){acf.showLoading(this.$(".canvas"))},hideLoading:function(){acf.hideLoading(this.$(".canvas"))},maybeSearch:function(){var t=this.val(),i=this.getSearchVal();if(!i)return this.clear();if("http"!=i.substr(0,4)&&(i="http://"+i),i!==t){var a=this.get("timeout");a&&clearTimeout(a);var n=e.proxy(this.search,this,i);this.set("timeout",setTimeout(n,300))}},search:function(t){const i={action:"acf/fields/oembed/search",s:t,field_key:this.get("key"),nonce:this.get("nonce")};let a=this.get("xhr");a&&a.abort(),this.showLoading(),a=e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),type:"post",dataType:"json",context:this,success:function(e){e&&e.html||(e={url:!1,html:""}),this.val(e.url),this.$(".canvas-media").html(e.html)},complete:function(){this.hideLoading()}}),this.set("xhr",a)},clear:function(){this.val(""),this.$search().val(""),this.$(".canvas-media").html("")},onClickClear:function(e,t){this.clear()},onKeypressSearch:function(e,t){13==e.which&&(e.preventDefault(),this.maybeSearch())},onKeyupSearch:function(e,t){t.val()&&this.maybeSearch()},onChangeSearch:function(e,t){this.maybeSearch()}}),acf.registerFieldType(t)},7513(){var e;jQuery,e=acf.models.SelectField.extend({type:"page_link"}),acf.registerFieldType(e)},2553(){var e;jQuery,e=acf.models.SelectField.extend({type:"post_object"}),acf.registerFieldType(e)},9252(){var e;jQuery,e=acf.Field.extend({type:"radio",events:{'click input[type="radio"]':"onClick",'keydown input[type="radio"]':"onKeyDownInput"},$control:function(){return this.$(".acf-radio-list")},$input:function(){return this.$("input:checked")},$inputText:function(){return this.$('input[type="text"]')},getValue:function(){var e=this.$input().val();return"other"===e&&this.get("other_choice")&&(e=this.$inputText().val()),e},onClick:function(e,t){var i=t.parent("label"),a=i.hasClass("selected"),n=t.val();this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&a&&(i.removeClass("selected"),t.prop("checked",!1).trigger("change"),n=!1),this.get("other_choice")&&("other"===n?this.$inputText().prop("disabled",!1):this.$inputText().prop("disabled",!0))},onKeyDownInput:function(e,t){13===e.which&&(e.preventDefault(),t.prop("checked",!0).trigger("change"))}}),acf.registerFieldType(e)},6290(){var e;jQuery,e=acf.Field.extend({type:"range",events:{'input input[type="range"]':"onChange",'input input[type="number"]':"onChange","change input":"onChange"},$input:function(){return this.$('input[type="range"]')},$inputAlt:function(){return this.$('input[type="number"]')},setValue:function(e){this.busy=!0,acf.val(this.$input(),e),acf.val(this.$inputAlt(),this.$input().val(),!0),this.busy=!1},onChange:function(e,t){this.busy||this.setValue(t.val())}}),acf.registerFieldType(e)},7509(){var e,t;e=jQuery,t=acf.Field.extend({type:"relationship",events:{"keypress [data-filter]":"onKeypressFilter","change [data-filter]":"onChangeFilter","keyup [data-filter]":"onChangeFilter","click .choices-list .acf-rel-item":"onClickAdd","keypress .choices-list .acf-rel-item":"onKeypressFilter","keypress .values-list .acf-rel-item":"onKeypressFilter",'click [data-name="remove_item"]':"onClickRemove","touchstart .values-list .acf-rel-item":"onTouchStartValues"},$control:function(){return this.$(".acf-relationship")},$list:function(e){return this.$("."+e+"-list")},$listItems:function(e){return this.$list(e).find(".acf-rel-item")},$listItem:function(e,t){return this.$list(e).find('.acf-rel-item[data-id="'+t+'"]')},getValue:function(){var t=[];return this.$listItems("values").each(function(){t.push(e(this).data("id"))}),!!t.length&&t},newChoice:function(e){return["<li>",'<span tabindex="0" data-id="'+e.id+'" class="acf-rel-item">'+e.text+"</span>","</li>"].join("")},newValue:function(e){return["<li>",'<input type="hidden" name="'+this.getInputName()+'[]" value="'+e.id+'" />','<span tabindex="0" data-id="'+e.id+'" class="acf-rel-item acf-rel-item-remove">'+e.text,'<a href="#" class="acf-icon -minus small dark" data-name="remove_item"></a>',"</span>","</li>"].join("")},initialize:function(){var e=this.proxy(acf.once(function(){this.$list("values").sortable({items:"li",zIndex:9999,forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:this.proxy(function(){this.$input().trigger("change")})}),this.$list("choices").scrollTop(0).on("scroll",this.proxy(this.onScrollChoices)),this.fetch()}));this.$el.one("mouseover",e),this.$el.one("focus","input",e),acf.onceInView(this.$el,e)},onScrollChoices:function(e){if(!this.get("loading")&&this.get("more")){var t=this.$list("choices"),i=Math.ceil(t.scrollTop()),a=Math.ceil(t[0].scrollHeight),n=Math.ceil(t.innerHeight()),s=this.get("paged")||1;i+n>=a&&(this.set("paged",s+1),this.fetch())}},onKeypressFilter:function(e,t){t.hasClass("acf-rel-item-add")&&13==e.which&&this.onClickAdd(e,t),t.hasClass("acf-rel-item-remove")&&13==e.which&&this.onClickRemove(e,t),13==e.which&&e.preventDefault()},onChangeFilter:function(e,t){var i=t.val(),a=t.data("filter");this.get(a)!==i&&(this.set(a,i),"s"===a&&parseInt(i)&&this.set("include",i),this.set("paged",1),t.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(e,t){var i=this.val(),a=parseInt(this.get("max"));if(t.hasClass("disabled"))return!1;if(a>0&&i&&i.length>=a)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",a),type:"warning"}),!1;t.addClass("disabled");var n=this.newValue({id:t.data("id"),text:t.html()});this.$list("values").append(n),this.$input().trigger("change")},onClickRemove:function(e,t){let i;e.preventDefault(),i=t.hasClass("acf-rel-item-remove")?t:t.parent();const a=i.parent(),n=i.data("id");a.remove(),this.$listItem("choices",n).removeClass("disabled"),this.$input().trigger("change")},onTouchStartValues:function(t,i){e(this.$listItems("values")).removeClass("relationship-hover"),i.addClass("relationship-hover")},maybeFetch:function(){var e=this.get("timeout");e&&clearTimeout(e),e=this.setTimeout(this.fetch,300),this.set("timeout",e)},getAjaxData:function(){var e=this.$control().data();for(var t in e)e[t]=this.get(t);return e.action="acf/fields/relationship/query",e.field_key=this.get("key"),e.nonce=this.get("nonce"),acf.applyFilters("relationship_ajax_data",e,this)},fetch:function(){(n=this.get("xhr"))&&n.abort();var t=this.getAjaxData(),i=this.$list("choices");1==t.paged&&i.html("");var a=e('<li><i class="acf-loading"></i> '+acf.__("Loading")+"</li>");i.append(a),this.set("loading",!0);var n=e.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(t),context:this,success:function(t){if(!t||!t.results||!t.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("<li>"+acf.__("No matches found")+"</li>"));this.set("more",t.more);var a=this.walkChoices(t.results),n=e(a),s=this.val();s&&s.length&&s.map(function(e){n.find('.acf-rel-item[data-id="'+e+'"]').addClass("disabled")}),i.append(n);var o=!1,r=!1;i.find(".acf-rel-label").each(function(){var t=e(this),i=t.siblings("ul");if(o&&o.text()==t.text())return r.append(i.children()),void e(this).parent().remove();o=t,r=i})},complete:function(){this.set("loading",!1),a.remove()}});this.set("xhr",n)},walkChoices:function(t){var i=function(t){var a="";return e.isArray(t)?t.map(function(e){a+=i(e)}):e.isPlainObject(t)&&(void 0!==t.children?(a+='<li><span class="acf-rel-label">'+acf.escHtml(t.text)+'</span><ul class="acf-bl">',a+=i(t.children),a+="</ul></li>"):a+='<li><span tabindex="0" class="acf-rel-item acf-rel-item-add" data-id="'+acf.escAttr(t.id)+'">'+acf.escHtml(t.text)+"</span></li>"),a};return i(t)}}),acf.registerFieldType(t)},6403(){var e;jQuery,e=acf.Field.extend({type:"select",select2:!1,wait:"load",events:{removeField:"onRemove",duplicateField:"onDuplicate"},$input:function(){return this.$("select")},initialize:function(){var e=this.$input();if(this.inherit(e),this.get("ui")){var t=this.get("ajax_action");t||(t="acf/fields/"+this.get("type")+"/query"),this.select2=acf.newSelect2(e,{field:this,ajax:this.get("ajax"),multiple:this.get("multiple"),placeholder:this.get("placeholder"),allowNull:this.get("allow_null"),tags:this.get("create_options"),ajaxAction:t})}},onRemove:function(){this.select2&&this.select2.destroy()},onDuplicate:function(e,t,i){this.select2&&(i.find(".select2-container").remove(),i.find("select").removeClass("select2-hidden-accessible"))}}),acf.registerFieldType(e)},5848(){!function(e){var t="tab",i=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,events:{duplicateField:"onDuplicate"},findFields:function(){let e;switch(this.get("key")){case"acf_field_settings_tabs":e=".acf-field-settings-main";break;case"acf_field_group_settings_tabs":e=".field-group-settings-tab";break;case"acf_browse_fields_tabs":e=".acf-field-types-tab";break;case"acf_icon_picker_tabs":e=".acf-icon-picker-tabs";break;case"acf_post_type_tabs":e=".acf-post-type-advanced-settings";break;case"acf_taxonomy_tabs":e=".acf-taxonomy-advanced-settings";break;case"acf_ui_options_page_tabs":e=".acf-ui-options-page-advanced-settings";break;default:e=".acf-field"}return this.$el.nextUntil(".acf-field-tab",e)},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return this.events={},!1;var e=this.findTabs(),t=this.findTab(),i=acf.parseArgs(t.data(),{endpoint:!1,placement:"",before:this.$el});!e.length||i.endpoint?this.tabs=new n(i):this.tabs=e.data("acf"),this.tab=this.tabs.addTab(t,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(e){e.show(this.cid,t),e.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(e){e.hide(this.cid,t),e.hiddenByTab=this.tab},this)},show:function(e){var t=acf.Field.prototype.show.apply(this,arguments);return t&&(this.tab.show(),this.tabs.refresh()),t},hide:function(e){var t=acf.Field.prototype.hide.apply(this,arguments);return t&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),t},enable:function(e){this.getFields().map(function(e){e.enable(t)})},disable:function(e){this.getFields().map(function(e){e.disable(t)})},onDuplicate:function(e,t,i){this.isActive()&&i.prevAll(".acf-tab-wrap:first").remove()}});acf.registerFieldType(i);var a=0,n=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh",close_field_object:"onCloseFieldObject"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(t){e.extend(this.data,t),this.tabs=[],this.active=!1;var i=this.get("placement"),n=this.get("before"),s=n.parent();if("left"==i&&s.hasClass("acf-fields")&&s.addClass("-sidebar"),n.is("tr"))this.$el=e('<tr class="acf-tab-wrap"><td colspan="2"><ul class="acf-hl acf-tab-group"></ul></td></tr>');else{let t="acf-hl acf-tab-group";"acf_field_settings_tabs"===this.get("key")&&(t="acf-field-settings-tab-bar"),this.$el=e('<div class="acf-tab-wrap -'+i+'"><ul class="'+t+'"></ul></div>')}n.before(this.$el),this.set("index",a,!0),a++},initializeTabs:function(){if("acf_field_settings_tabs"!==this.get("key")||!e("#acf-field-group-fields").hasClass("hide-tabs")){var t=!1,i=acf.getPreference("this.tabs")||!1;if(i){var a=i[this.get("index")];this.tabs[a]&&this.tabs[a].isVisible()&&(t=this.tabs[a])}!t&&this.data.defaultTab&&this.data.defaultTab.isVisible()&&(t=this.data.defaultTab),t||(t=this.getVisible().shift()),t?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)}},getVisible:function(){return this.tabs.filter(function(e){return e.isVisible()})},getActive:function(){return this.active},setActive:function(e){return this.active=e},hasActive:function(){return!1!==this.active},isActive:function(e){var t=this.getActive();return t&&t.cid===e.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(e){this.closeActive(),e.open(),this.setActive(e)},closeTab:function(e){e.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(e){this.tabs.map(function(t){e.cid!==t.cid&&this.closeTab(t)},this),this.openTab(e)},addTab:function(t,i){var a=e("<li>"+t.outerHTML()+"</li>"),n=t.data("settings-type");n&&a.addClass("acf-settings-type-"+n),this.$("ul").append(a);var o=new s({$el:a,field:i,group:this});return this.tabs.push(o),t.data("selected")&&(this.data.defaultTab=o),o},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var e=this.getVisible().shift();return e&&this.openTab(e),e},onRefresh:function(){if("left"===this.get("placement")){var e=this.$el.parent(),t=this.$el.children("ul"),i=e.is("td")?"height":"min-height",a=t.position().top+t.outerHeight(!0)-1;e.css(i,a)}},onCloseFieldObject:function(e){const t=this.getVisible().find(t=>{const i=t.$el.closest("div[data-id]").data("id");if(e.data.id===i)return t});t&&setTimeout(()=>{this.openTab(t)},300)}}),s=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(e,t){e.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}});new acf.Model({priority:50,actions:{refresh:"render",prepare:"render",append:"render",unload:"onUnload",show:"render",invalid_field:"onInvalidField"},findTabs:function(){return e(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(e){this.getTabs().map(function(e){e.get("initialized")||e.initializeTabs()})},onInvalidField:function(e){this.busy||e.hiddenByTab&&(e.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var e=[];this.getTabs().map(function(t){if(t.$el.children(".acf-field-settings-tab-bar").length||t.$el.parents("#acf-advanced-settings.postbox").length)return!0;var i=t.hasActive()?t.getActive().index():0;e.push(i)}),e.length&&acf.setPreference("this.tabs",e)}})}(jQuery)},3284(){var e,t;e=jQuery,t=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio","keydown label":"onKeyDownLabel",removeField:"onRemove"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var e=this.get("ftype");return"multi_select"==e&&(e="select"),e},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){var e=this.getRelatedPrototype();e.onRemove&&e.onRemove.apply(this,arguments)},onClickAdd:function(t,i){var a=this,n=!1,s=!1,o=!1,r=!1,c=!1,l=!1,d=function(e){n.loading(!1),n.content(e),s=n.$("form"),o=n.$('input[name="term_name"]'),r=n.$('select[name="term_parent"]'),c=n.$(".acf-submit-button"),o.trigger("focus"),n.on("submit","form",u)},u=function(t,i){if(t.preventDefault(),t.stopImmediatePropagation(),""===o.val())return o.trigger("focus"),!1;acf.startButtonLoading(c);var n={action:"acf/fields/taxonomy/add_term",field_key:a.get("key"),nonce:a.get("nonce"),term_name:o.val(),term_parent:r.length?r.val():0};e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"json",success:f})},f=function(e){acf.stopButtonLoading(c),l&&l.remove(),acf.isAjaxSuccess(e)?(o.val(""),p(e.data),l=acf.newNotice({type:"success",text:acf.getAjaxMessage(e),target:s,timeout:2e3,dismiss:!1})):l=acf.newNotice({type:"error",text:acf.getAjaxError(e),target:s,timeout:2e3,dismiss:!1}),o.trigger("focus")},p=function(t){var i=e('<option value="'+t.term_id+'">'+t.term_label+"</option>");t.term_parent?r.children('option[value="'+t.term_parent+'"]').after(i):r.append(i),acf.getFields({type:"taxonomy"}).map(function(e){e.get("taxonomy")==a.get("taxonomy")&&e.appendTerm(t)}),a.selectTerm(t.term_id)};!function(){n=acf.newPopup({title:i.attr("title"),loading:!0,width:"300px"});var t={action:"acf/fields/taxonomy/add_term",field_key:a.get("key"),nonce:a.get("nonce")};e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:d})}()},appendTerm:function(e){"select"==this.getRelatedType()?this.appendTermSelect(e):this.appendTermCheckbox(e)},appendTermSelect:function(e){this.select2.addOption({id:e.term_id,text:e.term_label})},appendTermCheckbox:function(t){var i=this.$("[name]:first").attr("name"),a=this.$("ul:first");"checkbox"==this.getRelatedType()&&(i+="[]");var n=e(['<li data-id="'+t.term_id+'">',"<label>",'<input type="'+this.get("ftype")+'" value="'+t.term_id+'" name="'+i+'" /> ',"<span>"+t.term_name+"</span>","</label>","</li>"].join(""));if(t.term_parent){var s=a.find('li[data-id="'+t.term_parent+'"]');(a=s.children("ul")).exists()||(a=e('<ul class="children acf-bl"></ul>'),s.append(a))}a.append(n)},selectTerm:function(e){"select"==this.getRelatedType()?this.select2.selectOption(e):this.$('input[value="'+e+'"]').prop("checked",!0).trigger("change")},onClickRadio:function(e,t){var i=t.parent("label"),a=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&a&&(i.removeClass("selected"),t.prop("checked",!1).trigger("change"))},onKeyDownLabel:function(e,t){if(13!==e.which)return;e.preventDefault();const i=t.find("input").first();i.length&&i.trigger("click").trigger("focus")}}),acf.registerFieldType(t)},9213(){var e,t;e=jQuery,t=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var e=this.$input(),t=this.$inputText(),i={timeFormat:this.get("time_format"),altField:e,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0,onClose:function(e,t,i){var a=t.dpDiv.find(".ui-datepicker-close");!e&&a.is(":hover")&&i._updateDateTime()}};i=acf.applyFilters("time_picker_args",i,this),acf.newTimePicker(t,i),acf.doAction("time_picker_init",t,i,this)}}),acf.registerFieldType(t),acf.newTimePicker=function(t,i){if(void 0===e.timepicker)return!1;i=i||{},t.timepicker(i),e("body > #ui-datepicker-div").exists()&&e("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}},1525(){var e;jQuery,e=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var e=this.$switch();if(e.length){var t=e.children(".acf-switch-on"),i=e.children(".acf-switch-off"),a=Math.max(t.width(),i.width());a&&(t.css("min-width",a),i.css("min-width",a))}},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(e,t){t.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(e,t){this.$switch().addClass("-focus")},onBlur:function(e,t){this.$switch().removeClass("-focus")},onKeypress:function(e,t){return 37===e.keyCode?this.switchOff():39===e.keyCode?this.switchOn():void 0}}),acf.registerFieldType(e)},5942(){var e;jQuery,e=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var e=this.val();return!!e&&(-1!==e.indexOf("://")||0===e.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(e,t){this.render()}}),acf.registerFieldType(e)},9732(){var e;jQuery,e=acf.models.SelectField.extend({type:"user"}),acf.registerFieldType(e)},9938(){var e;jQuery,e=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",unmountField:"disableEditor",remountField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var e=this.$control(),t=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},a=t.attr("id"),n=acf.uniqueId("acf-editor-"),s=t.data(),o=t.val();if(acf.rename({target:e,search:a,replace:n,destructive:!0}),this.set("id",n,!0),this.$input().data(s).val(o),acf.tinymce.initialize(n,i),!acf.isGutenbergPostEditor())return;let r=!0;wp.data.subscribe(()=>{wp.data.select("core/edit-post").isFeatureActive("distractionFree")?r=!1:r||(r=!0,setTimeout(()=>{tinymce.get(n).destroy(),acf.tinymce.initialize(n,i)},10))})},onMousedown:function(e){e.preventDefault();var t=this.$control();t.removeClass("delay"),t.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}}),acf.registerFieldType(e)},5338(){!function(e,t){var i=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(e){this.$el=e,this.inherit(e),this.inherit(this.$control())},val:function(e){return e!==t?this.setValue(e):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(e){return acf.val(this.$input(),e)},__:function(e){return acf._e(this.type,e)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var e=this.parents();return!!e.length&&e[0]},parents:function(){var e=this.$el.parents(".acf-field");return acf.getFields(e)},show:function(e,t){var i=acf.show(this.$el,e);return i&&(this.prop("hidden",!1),acf.doAction("show_field",this,t),"conditional_logic"===t&&this.setFieldSettingsLastVisible()),i},hide:function(e,t){var i=acf.hide(this.$el,e);return i&&(this.prop("hidden",!0),acf.doAction("hide_field",this,t),"conditional_logic"===t&&this.setFieldSettingsLastVisible()),i},setFieldSettingsLastVisible:function(){var e=this.$el.parents(".acf-field-settings-main");if(e.length){var t=e.find(".acf-field");t.removeClass("acf-last-visible"),t.not(".acf-hidden").last().addClass("acf-last-visible")}},enable:function(e,t){var i=acf.enable(this.$el,e);return i&&(this.prop("disabled",!1),acf.doAction("enable_field",this,t)),i},disable:function(e,t){var i=acf.disable(this.$el,e);return i&&(this.prop("disabled",!0),acf.doAction("disable_field",this,t)),i},showEnable:function(e,t){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(e,t){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(e){"object"!=typeof e&&(e={text:e}),this.notice&&this.notice.remove(),e.target=this.$inputWrap(),this.notice=acf.newNotice(e)},removeNotice:function(e){this.notice&&(this.notice.away(e||0),this.notice=!1)},showError:function(i,a="before"){this.$el.addClass("acf-error"),i!==t&&this.showNotice({text:i,type:"error",dismiss:!1,location:a}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",e.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(e,t,i){return"invalidField"==e&&(i=!0),acf.Model.prototype.trigger.apply(this,[e,t,i])}}),acf.newField=function(e){var t=e.data("type"),i=a(t),n=new(acf.models[i]||acf.Field)(e);return acf.doAction("new_field",n),n};var a=function(e){return acf.strPascalCase(e||"")+"Field"};acf.registerFieldType=function(e){var t=e.prototype.type,n=a(t);acf.models[n]=e,i.push(t)},acf.getFieldType=function(e){var t=a(e);return acf.models[t]||!1},acf.getFieldTypes=function(e){e=acf.parseArgs(e,{category:""});var t=[];return i.map(function(i){var a=acf.getFieldType(i),n=a.prototype;e.category&&n.category!==e.category||t.push(a)}),t}}(jQuery)},2457(){!function(e){acf.findFields=function(t){var i=".acf-field",a=!1;return(t=acf.parseArgs(t,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1,excludeSubFields:!1})).suppressFilters||(t=acf.applyFilters("find_fields_args",t)),t.key&&(i+='[data-key="'+t.key+'"]'),t.type&&(i+='[data-type="'+t.type+'"]'),t.name&&(i+='[data-name="'+t.name+'"]'),t.is&&(i+=t.is),t.visible&&(i+=":visible"),t.suppressFilters||(i=acf.applyFilters("find_fields_selector",i,t)),t?.parent&&t?.parent?.find?(a=t.parent.find(i),t.excludeSubFields&&(a=a.not(t.parent.find(".acf-is-subfields .acf-field")))):a=t.sibling?t.sibling.siblings(i):e(i),t.suppressFilters||(a=a.not(".acf-clone .acf-field"),a=acf.applyFilters("find_fields",a)),t.limit&&(a=a.slice(0,t.limit)),a},acf.findField=function(e,t){return acf.findFields({key:e,limit:1,parent:t,suppressFilters:!0})},acf.getField=function(e){e instanceof jQuery||(e=acf.findField(e));var t=e.data("acf");return t||(t=acf.newField(e)),t},acf.getFields=function(t){t instanceof jQuery||(t=acf.findFields(t));var i=[];return t.each(function(){var t=acf.getField(e(this));i.push(t)}),i},acf.findClosestField=function(e){return e.closest(".acf-field")},acf.getClosestField=function(e){var t=acf.findClosestField(e);return this.getField(t)};var t=function(e){var t=e+"_field",a=e+"Field";acf.addAction(t,function(n){var s=acf.arrayArgs(arguments),o=s.slice(1);["type","name","key"].map(function(e){var i="/"+e+"="+n.get(e);s=[t+i,n].concat(o),acf.doAction.apply(null,s)}),i.indexOf(e)>-1&&n.trigger(a,o)})},i=["remove","unmount","remount","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable","duplicate"];["prepare","ready","load","append","remove","unmount","remount","sortstart","sortstop","show","hide","unload"].map(function(e){var i=e,a=e+"_fields",n=e+"_field";acf.addAction(i,function(e){var t=acf.arrayArgs(arguments).slice(1),i=acf.getFields({parent:e});if(i.length){var n=[a,i].concat(t);acf.doAction.apply(null,n)}}),acf.addAction(a,function(e){var t=acf.arrayArgs(arguments).slice(1);e.map(function(e,i){var a=[n,e].concat(t);acf.doAction.apply(null,a)})}),t(e)}),["valid","invalid","enable","disable","new","duplicate"].map(t),new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(e){e.preventDefault()},onChange:function(){if(e("#_acf_changed").val(1),acf.isGutenbergPostEditor())try{wp.data.dispatch("core/editor").editPost({meta:{_acf_changed:1}})}catch(e){console.log("ACF: Failed to update _acf_changed meta",e)}}}),new acf.Model({id:"duplicateFieldsManager",actions:{duplicate:"onDuplicate",duplicate_fields:"onDuplicateFields"},onDuplicate:function(e,t){var i=acf.getFields({parent:e});if(i.length){var a=acf.findFields({parent:t});acf.doAction("duplicate_fields",i,a)}},onDuplicateFields:function(t,i){t.map(function(t,a){acf.doAction("duplicate_field",t,e(i[a]))})}})}(jQuery)},8223(){var e;e=jQuery,new acf.Model({priority:90,actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh",unmount_field:"refresh",remount_field:"refresh"},refresh:function(){acf.refresh()}}),new acf.Model({priority:1,actions:{sortstart:"onSortstart",sortstop:"onSortstop"},onSortstart:function(e){acf.doAction("unmount",e)},onSortstop:function(e){acf.doAction("remount",e)}}),new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(t,i){t.is("tr")&&(i.html('<td style="padding:0;" colspan="'+i.children().length+'"></td>'),t.addClass("acf-sortable-tr-helper"),t.children().each(function(){e(this).width(e(this).width())}),i.height(t.height()+"px"),t.removeClass("acf-sortable-tr-helper"))}}),new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(t,i){var a=[];t.find("select").each(function(t){a.push(e(this).val())}),i.find("select").each(function(t){e(this).val(a[t])})}}),new acf.Model({id:"tableHelper",priority:20,wait:"load",actions:{refresh:"renderTables"},initialize:function(){this.renderTables()},renderTables:function(t){var i=this;e(".acf-table:visible").each(function(){i.renderTable(e(this))})},renderTable:function(t){var i=t.find("> thead > tr:visible > th[data-key]"),a=t.find("> tbody > tr:visible > td[data-key]");if(!i.length||!a.length)return!1;i.each(function(t){var i=e(this),n=i.data("key"),s=a.filter('[data-key="'+n+'"]'),o=s.filter(".acf-hidden");s.removeClass("acf-empty"),s.length===o.length?acf.hide(i):(acf.show(i),o.addClass("acf-empty"))}),i.css("width","auto"),i=i.not(".acf-hidden");var n=100;i.length,i.filter("[data-width]").each(function(){var t=e(this).data("width");e(this).css("width",t+"%"),n-=t});var s=i.not("[data-width]");if(s.length){var o=n/s.length;s.css("width",o+"%"),n=0}n>0&&i.last().css("width","auto"),a.filter(".-collapsed-target").each(function(){var t=e(this);t.parent().hasClass("-collapsed")?t.attr("colspan",i.length):t.removeAttr("colspan")})}}),new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var t=this;e(".acf-fields:visible").each(function(){t.renderGroup(e(this))})},renderGroup:function(t){var i=0,a=0,n=e(),s=t.children(".acf-field[data-width]:visible");return!!s.length&&(t.hasClass("-left")?(s.removeAttr("data-width"),s.css("width","auto"),!1):(s.removeClass("-r0 -c0").css({"min-height":0}),s.each(function(t){var s=e(this),o=s.position(),r=Math.ceil(o.top),c=Math.ceil(o.left);n.length&&r>i&&(n.css({"min-height":a+"px"}),o=s.position(),r=Math.ceil(o.top),c=Math.ceil(o.left),i=0,a=0,n=e()),acf.get("rtl")&&(c=Math.ceil(s.parent().width()-(o.left+s.outerWidth()))),0==r?s.addClass("-r0"):0==c&&s.addClass("-c0");var l=Math.ceil(s.outerHeight())+1;a=Math.max(a,l),i=Math.max(i,r),n=n.add(s)}),void(n.length&&n.css({"min-height":a+"px"}))))}}),new acf.Model({id:"bodyClassShiftHelper",events:{keydown:"onKeyDown",keyup:"onKeyUp"},isShiftKey:function(e){return 16===e.keyCode},onKeyDown:function(t){this.isShiftKey(t)&&e("body").addClass("acf-keydown-shift")},onKeyUp:function(t){this.isShiftKey(t)&&e("body").removeClass("acf-keydown-shift")}})},1218(){!function(e){acf.newMediaPopup=function(e){var t=null;return e=acf.parseArgs(e,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}}),t="edit"==e.mode?new acf.models.EditMediaPopup(e):new acf.models.SelectMediaPopup(e),e.autoOpen&&setTimeout(function(){t.open()},1),acf.doAction("new_media_popup",t),t};var t=function(){var e=acf.get("post_id");return acf.isNumeric(e)?e:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(e){var t=acf.getMimeTypes();if(void 0!==t[e])return t[e];for(var i in t)if(-1!==i.indexOf(e))return t[i];return!1};var i=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(t){e.extend(this.data,t)},initialize:function(){var e=this.getFrameOptions();this.addFrameStates(e);var t=wp.media(e);t.acf=this,this.addFrameEvents(t,e),this.frame=t},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var e={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(e.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(e.library.uploadedTo=t()),this.get("attachment")&&(e.library.post__in=[this.get("attachment")]),this.get("button")&&(e.button={text:this.get("button")}),e},addFrameStates:function(e){var t=wp.media.query(e.library);this.get("field")&&acf.isset(t,"mirroring","args")&&(t.mirroring.args._acfuploader=this.get("field")),e.states.push(new wp.media.controller.Library({library:t,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&e.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(e,t){e.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},e),e.on("content:render:edit-image",function(){var e=this.state().get("image"),t=new wp.media.view.EditImage({model:e,controller:this}).render();this.content.set(t),t.loadEditor()},e),e.on("select",function(){var t=e.state().get("selection");t&&t.each(function(t,i){e.acf.get("select").apply(e.acf,[t,i])})}),e.on("close",function(){setTimeout(function(){e.acf.get("close").apply(e.acf),e.acf.remove()},1)})}});acf.models.SelectMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(e){e.button||(e.button=acf._x("Select","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(e,t){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),e.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),e.on("content:activate:browse",function(){var t=!1;try{t=e.content.get().toolbar}catch(e){return void console.log(e)}e.acf.customizeFilters.apply(e.acf,[t])}),i.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(t){var i=t.get("filters");if(i){if(!i.filters&&i.views){const e=i.views.get()||[];for(let t=0;t<e.length;t++)if(e[t].filters){i=e[t];break}}if(i.filters){if("image"==this.get("type")&&(i.filters.all.text=acf.__("All images"),delete i.filters.audio,delete i.filters.video,delete i.filters.image,e.each(i.filters,function(e,t){t.props.type=t.props.type||"image"})),this.get("allowedTypes")&&this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map(function(e){var t=acf.getMimeType(e);if(t){var a={text:t,props:{status:null,type:t,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};i.filters[t]=a}}),"uploadedTo"===this.get("library")){var a=this.frame.options.library.uploadedTo;delete i.filters.unattached,delete i.filters.uploaded,e.each(i.filters,function(e,t){t.text+=" ("+acf.__("Uploaded to this post")+")",t.props.uploadedTo=a})}var n=this.get("field");e.each(i.filters,function(e,t){t.props._acfuploader=n});var s=t.get("search");s&&s.model&&(s.model.attributes._acfuploader=n),i.renderFilters&&i.renderFilters()}}}}),acf.models.EditMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(e){e.button||(e.button=acf._x("Update","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(e,t){e.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var t=this.state().get("selection"),i=wp.media.attachment(e.acf.get("attachment"));t.add(i)},e),i.prototype.addFrameEvents.apply(this,arguments)}}),new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var e=t();e&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=e),this.customizeAttachmentsButton(),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsButton:function(){if(acf.isset(wp,"media","view","Button")){var e=wp.media.view.Button;wp.media.view.Button=e.extend({initialize:function(){var e=_.defaults(this.options,this.defaults);this.model=new Backbone.Model(e),this.listenTo(this.model,"change",this.render)}})}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var t=wp.media.view.Router;wp.media.view.Router=t.extend({addExpand:function(){var t=e(['<a href="#" class="acf-expand-details">','<span class="is-closed"><i class="acf-icon -left -small"></i>'+acf.__("Expand Details")+"</span>",'<span class="is-open"><i class="acf-icon -right -small"></i>'+acf.__("Collapse Details")+"</span>","</a>"].join(""));t.on("click",function(t){t.preventDefault();var i=e(this).closest(".media-modal");i.hasClass("acf-expanded")?i.removeClass("acf-expanded"):i.addClass("acf-expanded")}),this.$el.append(t)},initialize:function(){return t.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(t,i){return{el:e("<option></option>").val(i).html(t.text)[0],priority:t.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var t=wp.media.view.AttachmentCompat,i=!1;wp.media.view.AttachmentCompat=t.extend({render:function(){return this.rendered?this:(t.prototype.render.apply(this,arguments),this.$("#acf-form-data").length?(clearTimeout(i),i=setTimeout(e.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50),this):this)},save:function(e){var t;e&&e.preventDefault(),t=acf.serializeForAjax(this.$el),this.controller.trigger("attachment:compat:waiting",["waiting"]),this.model.saveCompat(t).always(_.bind(this.postSave,this))}})}},customizeAttachmentLibrary:function(){if(acf.isset(wp,"media","view","Attachment","Library")){var e=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=e.extend({render:function(){var t=acf.isget(this,"controller","acf"),i=acf.isget(this,"model","attributes");if(t&&i){i.acf_errors&&this.$el.addClass("acf-disabled");var a=t.get("selected");a&&a.indexOf(i.id)>-1&&this.$el.addClass("acf-selected")}return e.prototype.render.apply(this,arguments)},toggleSelection:function(t){this.collection;var i=this.options.selection,a=this.model,n=(i.single(),this.controller),s=acf.isget(this,"model","attributes","acf_errors"),o=n.$el.find(".media-frame-content .media-sidebar");if(o.children(".acf-selection-error").remove(),o.children().removeClass("acf-hidden"),n&&s){var r=acf.isget(this,"model","attributes","filename");return o.children().addClass("acf-hidden"),o.prepend(['<div class="acf-selection-error">','<span class="selection-error-label">'+acf.__("Restricted")+"</span>",'<span class="selection-error-filename">'+r+"</span>",'<span class="selection-error-message">'+s+"</span>","</div>"].join("")),i.reset(),void i.single(a)}return e.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery)},993(){var e;e=jQuery,new acf.Model({wait:"prepare",priority:1,initialize:function(){(acf.get("postboxes")||[]).map(acf.newPostbox)}}),acf.getPostbox=function(t){return"string"==typeof arguments[0]&&(t=e("#"+arguments[0])),acf.getInstance(t)},acf.getPostboxes=function(){return acf.getInstances(e(".acf-postbox"))},acf.newPostbox=function(e){return new acf.models.Postbox(e)},acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",edit:""},setup:function(t){t.editLink&&(t.edit=t.editLink),e.extend(this.data,t),this.$el=this.$postbox()},$postbox:function(){return e("#"+this.get("id"))},$hide:function(){return e("#"+this.get("id")+"-hide")},$hideLabel:function(){return this.$hide().parent()},$hndle:function(){return this.$("> .hndle")},$handleActions:function(){return this.$("> .postbox-header .handle-actions")},$inside:function(){return this.$("> .inside")},isVisible:function(){return this.$el.hasClass("acf-hidden")},isHiddenByScreenOptions:function(){return this.$el.hasClass("hide-if-js")||"none"==this.$el.css("display")},initialize:function(){if(this.$el.addClass("acf-postbox"),"block"!==acf.get("editor")){var e=this.get("style");"default"!==e&&this.$el.addClass(e)}this.$inside().addClass("acf-fields").addClass("-"+this.get("label"));var t=this.get("edit");if(t){var i='<a href="'+t+'" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="'+acf.__("Edit field group")+'"></a>',a=this.$handleActions();a.length?a.prepend(i):this.$hndle().append(i)}this.show()},show:function(){this.$el.hasClass("hide-if-js")?this.$hide().prop("checked",!1):(this.$hideLabel().show(),this.$hide().prop("checked",!0),this.$el.show().removeClass("acf-hidden"),acf.doAction("show_postbox",this))},enable:function(){acf.enable(this.$el,"postbox")},showEnable:function(){this.enable(),this.show()},hide:function(){this.$hideLabel().hide(),this.$el.hide().addClass("acf-hidden"),acf.doAction("hide_postbox",this)},disable:function(){acf.disable(this.$el,"postbox")},hideDisable:function(){this.disable(),this.hide()},html:function(e){this.$inside().html(e),acf.doAction("append",this.$el)}})},9400(){var e;e=jQuery,acf.screen=new acf.Model({active:!0,xhr:!1,timeout:!1,wait:"load",events:{"change #page_template":"onChange","change #parent_id":"onChange","change #post-formats-select":"onChange","change .categorychecklist":"onChange","change .tagsdiv":"onChange",'change .acf-taxonomy-field[data-save="1"]':"onChange","change #product-type":"onChange"},isPost:function(){return"post"===acf.get("screen")},isUser:function(){return"user"===acf.get("screen")},isTaxonomy:function(){return"taxonomy"===acf.get("screen")},isAttachment:function(){return"attachment"===acf.get("screen")},isNavMenu:function(){return"nav_menu"===acf.get("screen")},isWidget:function(){return"widget"===acf.get("screen")},isComment:function(){return"comment"===acf.get("screen")},getPageTemplate:function(){var t=e("#page_template");return t.length?t.val():null},getPageParent:function(t,i){return(i=e("#parent_id")).length?i.val():null},getPageType:function(e,t){return this.getPageParent()?"child":"parent"},getPostType:function(){return e("#post_type").val()},getPostFormat:function(t,i){if((i=e("#post-formats-select input:checked")).length){var a=i.val();return"0"==a?"standard":a}return null},getPostCoreTerms:function(){var t={},i=acf.serialize(e(".categorydiv, .tagsdiv"));for(var a in i.tax_input&&(t=i.tax_input),i.post_category&&(t.category=i.post_category),t)acf.isArray(t[a])||(t[a]=t[a].split(/,[\s]?/));return t},getPostTerms:function(){var e=this.getPostCoreTerms();for(var t in acf.getFields({type:"taxonomy"}).map(function(t){if(t.get("save")){var i=t.val(),a=t.get("taxonomy");i&&(e[a]=e[a]||[],i=acf.isArray(i)?i:[i],e[a]=e[a].concat(i))}}),null!==(productType=this.getProductType())&&(e.product_type=[productType]),e)e[t]=acf.uniqueArray(e[t]);return e},getProductType:function(){var t=e("#product-type");return t.length?t.val():null},check:function(){if("post"===acf.get("screen")){this.xhr&&this.xhr.abort();var t=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exists:[]});this.isPost()&&(t.post_id=acf.get("post_id")),null!==(postType=this.getPostType())&&(t.post_type=postType),null!==(pageTemplate=this.getPageTemplate())&&(t.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(t.page_parent=pageParent),null!==(pageType=this.getPageType())&&(t.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(t.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(t.post_terms=postTerms),acf.getPostboxes().map(function(e){t.exists.push(e.get("key"))}),t=acf.applyFilters("check_screen_args",t),this.xhr=e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"json",context:this,success:function(e){"post"==acf.get("screen")?this.renderPostScreen(e):"user"==acf.get("screen")&&this.renderUserScreen(e),acf.doAction("check_screen_complete",e,t)}})}},onChange:function(e,t){this.setTimeout(this.check,1)},renderPostScreen:function(t){var i=function(t,i){var a=e._data(t[0]).events;for(var n in a)for(var s=0;s<a[n].length;s++)i.on(n,a[n][s].handler)},a=function(t,i){var a=i.indexOf(t);if(-1==a)return!1;for(var n=a-1;n>=0;n--)if(e("#"+i[n]).length)return e("#"+i[n]).after(e("#"+t));for(n=a+1;n<i.length;n++)if(e("#"+i[n]).length)return e("#"+i[n]).before(e("#"+t));return!1};t.visible=[],t.hidden=[],t.results=t.results.map(function(n,s){var o=acf.getPostbox(n.id);if(acf.isGutenberg()&&"acf_after_title"==n.position&&(n.position="normal"),!o){var r=['<div class="postbox-header">','<h2 class="hndle ui-sortable-handle">',"<span>"+n.title+"</span>","</h2>",'<div class="handle-actions hide-if-no-js">','<button type="button" class="handlediv" aria-expanded="true">','<span class="screen-reader-text">'+acf.__("Toggle panel")+": "+n.title+"</span>",'<span class="toggle-indicator" aria-hidden="true"></span>',"</button>","</div>","</div>"].join("");n.classes||(n.classes="");var c=e(['<div id="'+n.id+'" class="postbox '+n.classes+'">',r,'<div class="inside">',n.html,"</div>","</div>"].join(""));if(e("#adv-settings").length){var l=e("#adv-settings .metabox-prefs"),d=e(['<label for="'+n.id+'-hide">','<input class="hide-postbox-tog" name="'+n.id+'-hide" type="checkbox" id="'+n.id+'-hide" value="'+n.id+'" checked="checked">'," "+n.title,"</label>"].join(""));i(l.find("input").first(),d.find("input")),l.append(d)}e(".postbox").length&&(i(e(".postbox .handlediv").first(),c.children(".handlediv")),i(e(".postbox .hndle").first(),c.children(".hndle"))),"side"===n.position?e("#"+n.position+"-sortables").append(c):e("#"+n.position+"-sortables").prepend(c);var u=[];if(t.results.map(function(t){n.position===t.position&&e("#"+n.position+"-sortables #"+t.id).length&&u.push(t.id)}),a(n.id,u),t.sorted)for(var f in t.sorted){let e=t.sorted[f];if("string"==typeof e&&(e=e.split(","),a(n.id,e)))break}o=acf.newPostbox(n),acf.doAction("append",c),acf.doAction("append_postbox",o)}return o.showEnable(),t.visible.push(n.id),n}),acf.getPostboxes().map(function(e){-1===t.visible.indexOf(e.get("id"))&&(e.hideDisable(),t.hidden.push(e.get("id")))}),e("#acf-style").html(t.style),acf.doAction("refresh_post_screen",t)},renderUserScreen:function(e){}}),new acf.Model({postEdits:{},wait:"prepare",initialize:function(){acf.isGutenbergPostEditor()&&(wp.data.subscribe(acf.debounce(this.onChange).bind(this)),acf.screen.getPageTemplate=this.getPageTemplate,acf.screen.getPageParent=this.getPageParent,acf.screen.getPostType=this.getPostType,acf.screen.getPostFormat=this.getPostFormat,acf.screen.getPostCoreTerms=this.getPostCoreTerms,acf.unload.disable(),this.addAction("refresh_post_screen",this.onRefreshPostScreen),wp.domReady(acf.refresh))},onChange:function(){var e=["template","parent","format"];(wp.data.select("core").getTaxonomies()||[]).map(function(t){e.push(t.rest_base)});var t=wp.data.select("core/editor").getPostEdits(),i={};e.map(function(e){void 0!==t[e]&&(i[e]=t[e])}),JSON.stringify(i)!==JSON.stringify(this.postEdits)&&(this.postEdits=i,acf.screen.check())},getPageTemplate:function(){return wp.data.select("core/editor").getEditedPostAttribute("template")},getPageParent:function(e,t){return wp.data.select("core/editor").getEditedPostAttribute("parent")},getPostType:function(){return wp.data.select("core/editor").getEditedPostAttribute("type")},getPostFormat:function(e,t){return wp.data.select("core/editor").getEditedPostAttribute("format")},getPostCoreTerms:function(){var e={};return(wp.data.select("core").getTaxonomies()||[]).map(function(t){var i=wp.data.select("core/editor").getEditedPostAttribute(t.rest_base);i&&(e[t.slug]=i)}),e},onRefreshPostScreen:function(e){var t=wp.data.select("core/edit-post"),i=wp.data.dispatch("core/edit-post"),a={};t.getActiveMetaBoxLocations().map(function(e){a[e]=t.getMetaBoxesPerLocation(e)});var n=[];for(var s in a)a[s].map(function(e){n.push(e.id)});for(var s in e.results.filter(function(e){return-1===n.indexOf(e.id)}).map(function(e,t){var i=e.position;a[i]=a[i]||[],a[i].push({id:e.id,title:e.title})}),a)a[s]=a[s].filter(function(t){return-1===e.hidden.indexOf(t.id)});i.setAvailableMetaBoxesPerLocation(a)}})},2900(){!function(e,t){function i(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(e,t){if(t=acf.parseArgs(t,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,tags:!1,ajaxAction:"",ajaxData:function(e){return e},ajaxResults:function(e){return e},escapeMarkup:!1,templateSelection:!1,templateResult:!1,dropdownCssClass:"",suppressFilters:!1}),4==i())var a=new n(e,t);else a=new s(e,t);return acf.doAction("new_select2",a),a};var a=acf.Model.extend({setup:function(t,i){e.extend(this.data,i),this.$el=t},initialize:function(){},selectOption:function(e){var t=this.getOption(e);t.prop("selected")||t.prop("selected",!0).trigger("change")},unselectOption:function(e){var t=this.getOption(e);t.prop("selected")&&t.prop("selected",!1).trigger("change")},getOption:function(e){return this.$('option[value="'+e+'"]')},addOption:function(t){t=acf.parseArgs(t,{id:"",text:"",selected:!1});var i=this.getOption(t.id);return i.length||((i=e("<option></option>")).html(t.text),i.attr("value",t.id),i.prop("selected",t.selected),this.$el.append(i)),i},getValue:function(){var t=[],i=this.$el.find("option:selected");return i.exists()?((i=i.sort(function(e,t){return+e.getAttribute("data-i")-+t.getAttribute("data-i")})).each(function(){var i=e(this);t.push({$el:i,id:i.attr("value"),text:i.text()})}),t):t},mergeOptions:function(){},getChoices:function(){var t=function(i){var a=[];return i.children().each(function(){var i=e(this);i.is("optgroup")?a.push({text:i.attr("label"),children:t(i)}):a.push({id:i.attr("value"),text:i.text()})}),a};return t(this.$el)},getAjaxData:function(e){var t={action:this.get("ajaxAction"),s:e.term||"",paged:e.page||1},i=this.get("field");i&&(t.field_key=i.get("key"),i.get("nonce")&&(t.nonce=i.get("nonce")));var a=this.get("ajaxData");return a&&(t=a.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_data",t,this.data,this.$el,i||!1,this),acf.prepareForAjax(t)},getAjaxResults:function(e,t){e=acf.parseArgs(e,{results:!1,more:!1});var i=this.get("ajaxResults");return i&&(e=i.apply(this,[e,t])),acf.applyFilters("select2_ajax_results",e,t,this)},processAjaxResults:function(t,i){return(t=this.getAjaxResults(t,i)).more&&(t.pagination={more:!0}),setTimeout(e.proxy(this.mergeOptions,this),1),t},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),n=a.extend({initialize:function(){var i=this.$el,a={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),escapeMarkup:this.get("escapeMarkup"),templateSelection:this.get("templateSelection"),templateResult:this.get("templateResult"),dropdownCssClass:this.get("dropdownCssClass"),suppressFilters:this.get("suppressFilters"),data:[]};this.get("tags")&&(a.tags=!0,a.tokenSeparators=[","]),a.templateSelection||delete a.templateSelection,a.templateResult||delete a.templateResult,a.dropdownCssClass||delete a.dropdownCssClass,acf.isset(window,"jQuery","fn","selectWoo")?(delete a.templateSelection,delete a.templateResult):a.templateSelection||(a.templateSelection=function(t){var i=e('<span class="acf-selection"></span>');return i.html(a.escapeMarkup(t.text)),i.data("element",t.element),i}),a.escapeMarkup||(a.escapeMarkup=function(e){return"string"!=typeof e?e:this.suppressFilters?acf.strEscape(e):acf.applyFilters("select2_escape_markup",acf.strEscape(e),e,i,this.data,s||!1,this)});var n=i.attr("data-ajax");if(n!==t&&(i.removeData("ajax"),i.removeAttr("data-ajax")),this.get("ajax")&&(a.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:e.proxy(this.getAjaxData,this),processResults:e.proxy(this.processAjaxResults,this)}),!a.suppressFilters){var s=this.get("field");a=acf.applyFilters("select2_args",a,i,this.data,s||!1,this)}const o=!1!==a.allowReorder;a.multiple&&o&&this.getValue().map(function(e){e.$el.detach().appendTo(i)}),i.select2(a);var r=i.next(".select2-container");if(a.multiple&&o){var c=r.find("ul");c.sortable({stop:function(t){c.find(".select2-selection__choice").each(function(){if(e(this).data("data"))var t=e(e(this).data("data").element);else t=e(e(this).find("span.acf-selection").data("element"));t.detach().appendTo(i)}),i.trigger("change")}}),i.on("select2:select",this.proxy(function(e){this.getOption(e.params.data.id).detach().appendTo(this.$el)}))}i.on("select2:open",()=>{e(".select2-container--open .select2-search__field").get(-1).focus()}),r.addClass("-acf"),n!==t&&i.attr("data-ajax",n),a.suppressFilters||acf.doAction("select2_init",i,a,this.data,s||!1,this)},mergeOptions:function(){var t=!1,i=!1;e('.select2-results__option[role="group"]').each(function(){var a=e(this).children("ul"),n=e(this).children("strong");if(i&&i.text()===n.text())return t.append(a.children()),void e(this).remove();t=a,i=n})}}),s=a.extend({initialize:function(){var t=this.$el,i=this.getValue(),a=this.get("multiple"),n={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(e){return acf.escHtml(e)},dropdownCss:{"z-index":"999999999"},initSelection:function(e,t){t(a?i:i.shift())}},s=t.siblings("input");s.length||(s=e('<input type="hidden" />'),t.before(s)),inputValue=i.map(function(e){return e.id}).join("||"),s.val(inputValue),n.multiple&&i.map(function(e){e.$el.detach().appendTo(t)}),n.allowClear&&(n.data=n.data.filter(function(e){return""!==e.id})),t.removeData("ajax"),t.removeAttr("data-ajax"),this.get("ajax")&&(n.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:e.proxy(this.getAjaxData,this),results:e.proxy(this.processAjaxResults,this)});var o=this.get("field");n=acf.applyFilters("select2_args",n,t,this.data,o||!1,this),s.select2(n);var r=s.select2("container"),c=e.proxy(this.getOption,this);if(n.multiple){var l=r.find("ul");l.sortable({stop:function(){l.find(".select2-search-choice").each(function(){var i=e(this).data("select2Data");c(i.id).detach().appendTo(t)}),t.trigger("change")}})}s.on("select2-selecting",function(i){var a=i.choice,n=c(a.id);n.length||(n=e('<option value="'+a.id+'">'+a.text+"</option>")),n.detach().appendTo(t)}),r.addClass("-acf"),acf.doAction("select2_init",t,n,this.data,o||!1,this),s.on("change",function(){var e=s.val();e.indexOf("||")&&(e=e.split("||")),t.val(e).trigger("change")}),t.hide()},mergeOptions:function(){var t=!1;e("#select2-drop .select2-result-with-children").each(function(){var i=e(this).children("ul"),a=e(this).children(".select2-result-label");if(t&&t.text()===a.text())return t.append(i.children()),void e(this).remove();t=a})},getAjaxData:function(e,t){var i={term:e,page:t},n=this.get("field");return i=acf.applyFilters("select2_ajax_data",i,this.data,this.$el,n||!1,this),a.prototype.getAjaxData.apply(this,[i])}});new acf.Model({priority:5,wait:"prepare",actions:{duplicate:"onDuplicate"},initialize:function(){var e=acf.get("locale"),t=(acf.get("rtl"),acf.get("select2L10n")),a=i();return!!t&&0!==e.indexOf("en")&&void(4==a?this.addTranslations4():3==a&&this.addTranslations3())},addTranslations4:function(){var e=acf.get("select2L10n"),t=acf.get("locale");t=t.replace("_","-");var i={errorLoading:function(){return e.load_fail},inputTooLong:function(t){var i=t.input.length-t.maximum;return i>1?e.input_too_long_n.replace("%d",i):e.input_too_long_1},inputTooShort:function(t){var i=t.minimum-t.input.length;return i>1?e.input_too_short_n.replace("%d",i):e.input_too_short_1},loadingMore:function(){return e.load_more},maximumSelected:function(t){var i=t.maximum;return i>1?e.selection_too_long_n.replace("%d",i):e.selection_too_long_1},noResults:function(){return e.matches_0},searching:function(){return e.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+t,[],function(){return i})},addTranslations3:function(){var t=acf.get("select2L10n"),i=acf.get("locale");i=i.replace("_","-");var a={formatMatches:function(e){return e>1?t.matches_n.replace("%d",e):t.matches_1},formatNoMatches:function(){return t.matches_0},formatAjaxError:function(){return t.load_fail},formatInputTooShort:function(e,i){var a=i-e.length;return a>1?t.input_too_short_n.replace("%d",a):t.input_too_short_1},formatInputTooLong:function(e,i){var a=e.length-i;return a>1?t.input_too_long_n.replace("%d",a):t.input_too_long_1},formatSelectionTooBig:function(e){return e>1?t.selection_too_long_n.replace("%d",e):t.selection_too_long_1},formatLoadMore:function(){return t.load_more},formatSearching:function(){return t.searching}};e.fn.select2.locales=e.fn.select2.locales||{},e.fn.select2.locales[i]=a,e.extend(e.fn.select2.defaults,a)},onDuplicate:function(e,t){t.find(".select2-container").remove()}})}(jQuery)},1087(){var e;e=jQuery,acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content}},initialize:function(e,t){(t=acf.parseArgs(t,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1})).tinymce&&this.initializeTinymce(e,t),t.quicktags&&this.initializeQuicktags(e,t)},initializeTinymce:function(t,i){var a=e("#"+t),n=this.defaults(),s=acf.get("toolbars"),o=i.field||!1;if(o.$el,"undefined"==typeof tinymce)return!1;if(!n)return!1;if(tinymce.get(t))return this.enable(t);var r=e.extend({},n.tinymce,i.tinymce);r.id=t,r.selector="#"+t;var c=i.toolbar;if(c&&s&&s[c])for(var l=1;l<=4;l++)r["toolbar"+l]=s[c][l]||"";if(r.setup=function(e){e.on("change",function(t){e.save(),a.closest(".attachment-info").length||a.trigger("change")}),e.on("blur",function(t){a.closest(".attachment-info").length&&(e.save(),a.trigger("change"))}),e.on("mouseup",function(e){const t=new MouseEvent("mouseup");window.dispatchEvent(t)})},r.wp_autoresize_on=!1,r.tadv_noautop||(r.wpautop=!0),r=acf.applyFilters("wysiwyg_tinymce_settings",r,t,o),tinyMCEPreInit.mceInit[t]=r,"visual"==i.mode){tinymce.init(r);var d=tinymce.get(t);if(!d)return!1;d.acf=i.field,acf.doAction("wysiwyg_tinymce_init",d,d.id,r,o)}},initializeQuicktags:function(t,i){var a=this.defaults();if("undefined"==typeof quicktags)return!1;if(!a)return!1;var n=e.extend({},a.quicktags,i.quicktags);n.id=t;var s=i.field||!1;s.$el,n=acf.applyFilters("wysiwyg_quicktags_settings",n,n.id,s),tinyMCEPreInit.qtInit[t]=n;var o=quicktags(n);if(!o)return!1;this.buildQuicktags(o),acf.doAction("wysiwyg_quicktags_init",o,o.id,n,s)},buildQuicktags:function(e){var t,i,a,n,s,o,r,c;for(o in e.canvas,t=e.name,i=e.settings,n="",a={},r="",c=e.id,i.buttons&&(r=","+i.buttons+","),edButtons)edButtons[o]&&(s=edButtons[o].id,r&&-1!==",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,".indexOf(","+s+",")&&-1===r.indexOf(","+s+",")||edButtons[o].instance&&edButtons[o].instance!==c||(a[s]=edButtons[o],edButtons[o].html&&(n+=edButtons[o].html(t+"_"))));r&&-1!==r.indexOf(",dfw,")&&(a.dfw=new QTags.DFWButton,n+=a.dfw.html(t+"_")),"rtl"===document.getElementsByTagName("html")[0].dir&&(a.textdirection=new QTags.TextDirectionButton,n+=a.textdirection.html(t+"_")),e.toolbar.innerHTML=n,e.theButtons=a,"undefined"!=typeof jQuery&&jQuery(document).triggerHandler("quicktags-init",[e])},disable:function(e){this.destroyTinymce(e)},remove:function(e){this.destroyTinymce(e)},destroy:function(e){this.destroyTinymce(e)},destroyTinymce:function(e){if("undefined"==typeof tinymce)return!1;var t=tinymce.get(e);return!!t&&(t.save(),t.destroy(),!0)},enable:function(e){this.enableTinymce(e)},enableTinymce:function(t){return"undefined"!=typeof switchEditors&&void 0!==tinyMCEPreInit.mceInit[t]&&(tinymce.get(t)||e("#"+t).show(),switchEditors.go(t,"tmce"),!0)}},new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var t=e("#acf-hidden-wp-editor");t.exists()&&t.appendTo("body")},onReady:function(){acf.isset(window,"wp","oldEditor")&&(wp.editor.autop=wp.oldEditor.autop,wp.editor.removep=wp.oldEditor.removep),acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(e){var t=e.editor;"acf"===t.id.substr(0,3)&&(t=tinymce.editors.content||t,tinymce.activeEditor=t,wpActiveEditor=t.id)})}})},963(){var e;e=jQuery,acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening",validation_success:"stopListening"},events:{"change form .acf-field":"startListening","submit form":"stopListening"},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,e(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,e(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})},2631(){!function(e){var t=acf.Model.extend({id:"Validator",data:{errors:[],notice:null,status:""},events:{"changed:status":"onChangeStatus"},addErrors:function(e){e.map(this.addError,this)},addError:function(e){this.data.errors.push(e)},hasErrors:function(){return this.data.errors.length},clearErrors:function(){return this.data.errors=[]},getErrors:function(){return this.data.errors},getFieldErrors:function(){var e=[],t=[];return this.getErrors().map(function(i){if(i.input){var a=t.indexOf(i.input);a>-1?e[a]=i:(e.push(i),t.push(i.input))}}),e},getGlobalErrors:function(){return this.getErrors().filter(function(e){return!e.input})},showErrors:function(t="before"){if(this.hasErrors()){var i=this.getFieldErrors(),a=this.getGlobalErrors(),n=0,o=!1;i.map(function(e){var i=this.$('[name="'+e.input+'"]').first();if(i.length||(i=this.$('[name^="'+e.input+'"]').first()),i.length){n++;var a=acf.getClosestField(i);s(a.$el),a.showError(e.message,t),o||(o=a.$el)}},this);var r=acf.__("Validation failed"),c={};if(a.map(function(e){r+=". "+e.message,e.action&&"object"==typeof e.action&&(c=e.action)}),1==n?r+=". "+acf.__("1 field requires attention"):n>1&&(r+=". "+acf.__("%d fields require attention").replace("%d",n)),this.has("notice"))this.get("notice").update({type:"error",text:r,action:c});else{var l=acf.newNotice({type:"error",text:r,target:this.$el,action:c});this.set("notice",l)}this.$el.parents(".acf-popup-box").length||(o||(o=this.get("notice").$el),setTimeout(function(){e("html, body").animate({scrollTop:o.offset().top-e(window).height()/2},500)},10))}},onChangeStatus:function(e,t,i,a){this.$el.removeClass("is-"+a).addClass("is-"+i)},validate:function(t){if(t=acf.parseArgs(t,{event:!1,reset:!1,loading:function(){},complete:function(){},failure:function(){},success:function(e){e.submit()}}),"valid"==this.get("status"))return!0;if("validating"==this.get("status"))return!1;if(!this.$(".acf-field").length)return!0;if(t.event){var i=e.Event(null,t.event);t.success=function(){acf.enableSubmit(e(i.target)).trigger(i)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),t.loading(this.$el,this),this.set("status","validating");var a=acf.serialize(this.$el);return a.action="acf/validate_save_post",e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a,!0),type:"post",dataType:"json",context:this,success:function(e){if(acf.isAjaxSuccess(e)){var t=acf.applyFilters("validation_complete",e.data,this.$el,this);t.valid||this.addErrors(t.errors)}},complete:function(){acf.unlockForm(this.$el),this.hasErrors()?(this.set("status","invalid"),acf.doAction("validation_failure",this.$el,this),this.showErrors(),t.failure(this.$el,this)):(this.set("status","valid"),this.has("notice")&&this.get("notice").update({type:"success",text:acf.__("Validation successful"),timeout:1e3}),acf.doAction("validation_success",this.$el,this),acf.doAction("submit",this.$el),t.success(this.$el,this),acf.lockForm(this.$el),t.reset&&this.reset()),t.complete(this.$el,this),this.clearErrors()}}),!1},setup:function(e){this.$el=e},reset:function(){this.set("errors",[]),this.set("notice",null),this.set("status",""),acf.unlockForm(this.$el)}}),i=function(e){var i=e.data("acf");return i||(i=new t(e)),i};acf.getBlockFormValidator=function(e){return i(e)},acf.validateForm=function(e){return i(e.form).validate(e)},acf.enableSubmit=function(e){return e.removeClass("disabled").removeAttr("disabled")},acf.disableSubmit=function(e){return e.addClass("disabled").attr("disabled",!0)},acf.showSpinner=function(e){return e.addClass("is-active"),e.css("display","inline-block"),e},acf.hideSpinner=function(e){return e.removeClass("is-active"),e.css("display","none"),e},acf.lockForm=function(e){var t=a(e),i=t.find('.button, [type="submit"]').not(".acf-nav, .acf-repeater-add-row"),n=t.find(".spinner, .acf-spinner");return acf.hideSpinner(n),acf.disableSubmit(i),acf.showSpinner(n.last()),e},acf.unlockForm=function(e){var t=a(e),i=t.find('.button, [type="submit"]').not(".acf-nav, .acf-repeater-add-row"),n=t.find(".spinner, .acf-spinner");return acf.enableSubmit(i),acf.hideSpinner(n),e};var a=function(t){var i;return(i=t.find("#submitdiv")).length||(i=t.find("#submitpost")).length||(i=t.find("p.submit").last()).length||(i=t.find(".acf-form-submit")).length||(i=e("#acf-create-options-page-form .acf-actions")).length||(i=e(".acf-headerbar-actions")).length?i:t},n=acf.debounce(function(e){e.submit()}),s=function(e){var t=e.parents(".acf-postbox");if(t.length){var i=acf.getPostbox(t);i&&i.isHiddenByScreenOptions()&&(i.$el.removeClass("hide-if-js"),i.$el.css("display",""))}};acf.validation=new acf.Model({id:"validation",active:!0,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","submit form#post":"onSubmitPost","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.active=!1,this.actions={},this.events={})},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(e){i(e).reset()},addInputEvents:function(t){if("safari"!==acf.get("browser")){var i=e(".acf-field [name]",t);i.length&&this.on(i,"invalid","onInvalid")}},onInvalid:function(e,t){e.preventDefault();var a=t.closest("form");a.length&&(i(a).addError({input:t.attr("name"),message:acf.strEscape(e.target.validationMessage)}),n(a))},onClickSubmit:function(t,i){e(".acf-field input").each(function(){this.checkValidity()||s(e(this))}),this.set("originalEvent",t)},onClickSave:function(e,t){this.set("ignore",!0)},onSubmitPost:function(t,i){"dopreview"===e("input#wp-preview").val()&&(this.set("ignore",!0),acf.unlockForm(i))},onSubmit:function(e,t){if(!this.active||this.get("ignore")||e.isDefaultPrevented())return this.allowSubmit();acf.validateForm({form:t,event:this.get("originalEvent")})||e.preventDefault()},allowSubmit:function(){return this.set("ignore",!1),this.set("originalEvent",!1),!0}}),new acf.Model({wait:"prepare",initialize:function(){acf.isGutenberg()&&this.customizeEditor()},customizeEditor:function(){var t=wp.data.dispatch("core/editor"),i=wp.data.select("core/editor"),a=wp.data.dispatch("core/notices"),n=t.savePost,s=!1,o="";wp.data.subscribe(function(){var e=i.getEditedPostAttribute("status");s="publish"===e||"future"===e,o="publish"!==e?e:o}),t.savePost=function(i){i=i||{};var r=this,c=arguments;return new Promise(function(n,r){if(i.isAutosave||i.isPreview)return n("Validation ignored (autosave).");if(!s)return n("Validation ignored (draft).");if(void 0!==acf.blockInstances){const e=wp.data.select("core/block-editor").getSelectedBlockClientId();if(e&&e in acf.blockInstances&&acf.blockInstances[e].validation_errors)return acf.debug("Rejecting save because the block editor has a invalid ACF block selected."),a.createErrorNotice(acf.__("An ACF Block on this page requires attention before you can save."),{id:"acf-validation",isDismissible:!0}),wp.data.dispatch("core/editor").lockPostSaving("acf/block/"+e),wp.data.dispatch("core/block-editor").selectBlock(!1),r("ACF Validation failed for selected block.")}(function e(t){const i=[];return new Promise(function(a){if(t.forEach(t=>{if(t.innerBlocks.length>0&&e(t.innerBlocks).then(e=>{if(e)return a(!0)}),t.attributes.hasAcfError)return document.getElementsByClassName("editor-post-publish-panel")[0]&&wp.data.dispatch("core/editor").togglePublishSidebar(),i.push(t),document.dispatchEvent(new CustomEvent("acf/block/has-error",{detail:{acfBlockWithValidationErrors:t.clientId}})),acf.debug("Rejecting save because the block editor has a invalid ACF block selected."),a(!0)}),i.length>0){const e=i[0].clientId;wp.data.dispatch("core/block-editor").selectBlock(e)}return a(!1)})})(wp.data.select("core/block-editor").getBlocks()).then(e=>{if(e)return a.createErrorNotice(acf.__("An ACF Block on this page requires attention before you can save."),{id:"acf-blocks-validation",isDismissible:!0}),r("ACF Block Validation failed")}),acf.validateForm({form:e("#wpbody-content > .block-editor"),reset:!0,complete:function(e,i){t.unlockPostSaving("acf")},failure:function(e,i){var n=i.get("notice"),s=n.get("action");s&&"object"==typeof s&&s.label&&s.url?a.createErrorNotice(n.get("text"),{id:"acf-validation",isDismissible:!0,actions:[{label:s.label,url:s.url}]}):a.createErrorNotice(n.get("text"),{id:"acf-validation",isDismissible:!0}),n.remove(),o&&t.editPost({status:o}),r("Validation failed.")},success:function(){a.removeNotice("acf-validation"),n("Validation success.")}})?n("Validation bypassed."):t.lockPostSaving("acf")}).then(function(){return n.apply(r,c)},e=>{})}}})}(jQuery)}},t={};function i(a){var n=t[a];if(void 0!==n)return n.exports;var s=t[a]={exports:{}};return e[a](s,s.exports,i),s.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";i(5338),i(2457),i(5593),i(6289),i(774),i(3623),i(9982),i(960),i(1163),i(3045),i(2410),i(2093),i(5915),i(2237),i(9252),i(6290),i(7509),i(6403),i(5848),i(2553),i(7513),i(9732),i(3284),i(9213),i(1525),i(5942),i(9938),i(8903),i(3858),i(2747),i(963),i(993),i(1218),i(9400),i(2900),i(1087),i(2631),i(8223),i(4750)})()})();
// source --> https://rotlichtadresse.de/wp-content/plugins/advanced-custom-fields-pro/assets/build/js/pro/acf-pro-input.min.js?ver=6.8.0.1 
(()=>{var t={340(){!function(t){var e=acf.Field.extend({type:"flexible_content",wait:"",events:{'click [data-name="add-layout"]':"onClickAdd",'click [data-name="duplicate-layout"]':"onClickDuplicate",'click [data-name="collapse-layout"]':"onClickCollapse",'click [data-name="remove-layout"]':"onClickRemove",'click [data-name="more-layout-actions"]':"onClickMoreActions","click .acf-fc-expand-all":"onClickExpandAll","click .acf-fc-collapse-all":"onClickCollapseAll",showField:"onShow",unloadField:"onUnload",mouseover:"onHover"},$control:function(){return this.$(".acf-flexible-content:first")},$layoutsWrap:function(){return this.$(".acf-flexible-content:first > .values")},$layouts:function(){return this.$(".acf-flexible-content:first > .values > .layout")},$layout:function(t){return this.$(".acf-flexible-content:first > .values > .layout:eq("+t+")")},$clonesWrap:function(){return this.$(".acf-flexible-content:first > .clones")},$clones:function(){return this.$(".acf-flexible-content:first > .clones  > .layout")},$clone:function(t){return this.$('.acf-flexible-content:first > .clones  > .layout[data-layout="'+t+'"]')},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-fc-top-actions:first .button, .acf-actions:last .button")},$popup:function(){return this.$(".tmpl-popup:last")},$moreLayoutActions:function(){return this.$(".tmpl-more-layout-actions:last")},getPopupHTML:function(){var e=this.$popup().html(),a=t(e),i=this;return a.find("[data-layout]").each(function(){var e=t(this),a=e.data("min")||0,n=e.data("max")||0,o=e.data("layout")||"",s=i.countLayouts(o);if(n&&s>=n)e.addClass("disabled");else if(a&&s<a){var l=a-s,r=acf.__("{required} {label} {identifier} required (min {min})"),c=acf._n("layout","layouts",l);r=(r=(r=(r=r.replace("{required}",l)).replace("{label}",o)).replace("{identifier}",c)).replace("{min}",a),e.append('<span class="badge" title="'+r+'">'+l+"</span>")}}),a.outerHTML()},getMoreLayoutActionsHTML:function(){return this.$moreLayoutActions().html()},getValue:function(){return this.$layouts().length},allowRemove:function(){var t=parseInt(this.get("min"));return!t||t<this.val()},allowAdd:function(){return!this.isFull()},isFull:function(){const t=parseInt(this.get("max"));return t&&this.countLayouts()>=t},addSortable:function(t){1!=this.get("max")&&this.$layoutsWrap().sortable({items:"> .layout",handle:"> .acf-fc-layout-actions-wrap .acf-fc-layout-handle",forceHelperSize:!0,zIndex:9999,forcePlaceholderSize:!0,scroll:!0,stop:function(e,a){t.render()},update:function(e,a){t.$input().trigger("change")}})},addCollapsed:function(){var e=s.load(this.get("key"));if(!e)return!1;this.$layouts().each(function(a){e.indexOf(a)>-1&&t(this).addClass("-collapsed")})},addUnscopedEvents:function(e){this.on("invalidField",".layout",function(a){e.onInvalidField(a,t(this))}),t(document).on("click focusin",function(a){t(a.target).closest(".acf-flexible-content .layout").length||e.setActiveLayout(t([]))})},initialize:function(){this.addUnscopedEvents(this),this.addCollapsed(),acf.disable(this.$clonesWrap(),this.cid),this.render()},render:function(){this.$layouts().each(function(e){t(this).find(".acf-fc-layout-order:first").html(e+1)});const e=this;this.$control().on("click focus","> .values > .layout",function(a){const i=t(a.target).closest(".layout");e.setActiveLayout(i)}),0==this.val()?this.$control().addClass("-empty"):this.$control().removeClass("-empty"),this.maybeDisableAddLayout()},maybeDisableAddLayout:function(){const e=this,a=this.isFull(),i=this.$control().data("button-label"),n=acf.__("Duplicate"),o=acf.__("Maximum rows reached ({max})").replace("{max}",this.get("max"));a?this.$button().addClass("disabled"):this.$button().removeClass("disabled"),this.$layouts().each(function(){const s=t(this),l=s.find('[data-name="add-layout"]:first'),r=s.find('[data-name="duplicate-layout"]:first'),c=s.data("max")||0,d=t(".acf-toggle-layout.enable");if(a?(l.addClass("disabled").attr("title",o),r.addClass("disabled").attr("title",o),d.addClass("disabled")):(l.removeClass("disabled").attr("title",i),r.removeClass("disabled").attr("title",n),d.removeClass("disabled")),c){const t=s.data("layout")||"";if(e.countLayouts(t)>=c){const e=acf.__("Maximum {label} {identifier} reached ({max})").replace("{label}",t).replace("{identifier}",acf._n("layout","layouts",c)).replace("{max}",c);r.addClass("disabled").attr("title",e),d.addClass("disabled")}}})},setActiveLayout:function(e){t(".layout").removeClass("active-layout"),e.length&&e.addClass("active-layout")},onShow:function(t,e,a){var i=acf.getFields({is:":visible",parent:this.$el});acf.doAction("show_fields",i)},countLayouts:function(e){return this.$layouts().filter(function(){const a=t(this);return(!e||a.data("layout")===e)&&"0"!==a.attr("data-enabled")}).length},countLayoutsByName:function(t){const e=t.data("max");if(!e)return!0;const a=t.data("layout")||"";if(this.countLayouts(a)>=e){let a=acf.__("This field has a limit of {max} {label} {identifier}");const i=acf._n("layout","layouts",e),n='"'+t.data("label")+'"';return a=a.replace("{max}",e),a=a.replace("{label}",n),a=a.replace("{identifier}",i),this.showNotice({text:a,type:"warning"}),!1}return!0},validateAdd:function(){if(this.allowAdd())return!0;var t=this.get("max"),e=acf.__("This field has a limit of {max} {label} {identifier}"),a=acf._n("layout","layouts",t);return e=(e=(e=e.replace("{max}",t)).replace("{label}","")).replace("{identifier}",a),this.showNotice({text:e,type:"warning"}),!1},onClickAdd:function(t,e){if(!this.validateAdd())return!1;var i=null;"layout"===e.data("context")?(i=e.closest(".layout")).addClass("-hover"):"top-actions"===e.data("context")&&(i=e.closest(".acf-flexible-content").find(".values .layout").first()).addClass("-hover");var n=new a({target:e,targetConfirm:!1,text:this.getPopupHTML(),context:this,confirm:function(t,e){e.hasClass("disabled")||this.add({layout:e.data("layout"),before:i})},cancel:function(){i&&i.removeClass("-hover")}});n.on("click","[data-layout]","onConfirm")},add:function(t){if(t=acf.parseArgs(t,{layout:"",before:!1}),!this.allowAdd())return!1;var e=acf.duplicate({target:this.$clone(t.layout),append:this.proxy(function(e,a){t.before?t.before.before(a):this.$layoutsWrap().append(a),acf.enable(a,this.cid),this.render()})});return this.$input().trigger("change"),this.setActiveLayout(e),e},onClickDuplicate:function(t,e){var a=e.closest(".layout");return!!this.countLayoutsByName(a.first())&&!!this.validateAdd()&&void this.duplicateLayout(a)},duplicateLayout:function(t){if(!this.allowAdd())return!1;var e=this.get("key"),a=acf.duplicate({target:t,rename:function(t,a,i,n){return"id"===t||"for"===t?a.replace(e+"-"+i,e+"-"+n):a.replace(e+"]["+i,e+"]["+n)},before:function(t){acf.doAction("unmount",t)},after:function(t,e){acf.doAction("remount",t)}});return this.$input().trigger("change"),this.render(),acf.focusAttention(a),this.setActiveLayout(a),a},onClickToggleLayout:function(t,e){const a=e.find(".acf-fc-layout-disabled:first");"1"===e.attr("data-enabled")?(e.attr("data-enabled","0"),a.val("1")):"0"===e.attr("data-enabled")&&this.countLayoutsByName(e.first())&&!this.isFull()&&(e.attr("data-enabled","1"),a.val("0")),this.$input().trigger("change"),this.maybeDisableAddLayout()},onClickRenameLayout:function(t,e){const a=e.find(".acf-fc-layout-custom-label:first").val(),i={context:this,title:acf.__("Rename Layout"),textConfirm:acf.__("Rename"),textCancel:acf.__("Cancel"),currentName:a,openedBy:e.find('a[data-name="more-layout-actions"]').first(),width:"500px",confirm:function(t,a,i){this.renameLayout(e,i)},cancel:function(){e.removeClass("-hover")}};new n(i)},renameLayout:function(t,e){t.find(".acf-fc-layout-custom-label:first").val(acf.strEscape(e));const a=t.find(".acf-fc-layout-title:first");if(a.html(acf.escHtml(e)),e.length)t.attr("data-renamed","1");else{let e=t.find(".acf-fc-layout-original-title:first").html().trim();e=e.substring(1,e.length-1),a.html(acf.escHtml(e)),t.attr("data-renamed","0")}this.$input().trigger("change")},validateRemove:function(){if(this.allowRemove())return!0;var t=this.get("min"),e=acf.__("This field requires at least {min} {label} {identifier}"),a=acf._n("layout","layouts",t);return e=(e=(e=e.replace("{min}",t)).replace("{label}","")).replace("{identifier}",a),this.showNotice({text:e,type:"warning"}),!1},onClickRemove:function(t,e){const a=e.closest(".layout");if(t.shiftKey)return this.removeLayout(a);a.addClass("-hover");const i={confirmRemove:!0,context:this,title:acf.__("Delete Layout"),text:acf.__("Are you sure you want to delete the layout?"),textConfirm:acf.__("Delete"),textCancel:acf.__("Cancel"),openedBy:a.find('a[data-name="more-layout-actions"]').first(),width:"500px",confirm:function(t,e){this.removeLayout(a)},cancel:function(){a.removeClass("-hover")}},n=a.data("label");n.length&&(i.title=acf.__("Delete %s").replace("%s",acf.escHtml(n)),i.text=acf.__("Are you sure you want to delete %s?").replace("%s",n)),acf.newPopup(i)},removeLayout:function(t){var e=this,a=1==this.getValue()?60:0;acf.remove({target:t,endHeight:a,complete:function(){e.$input().trigger("change"),e.render()}})},onClickCollapse:function(t,e){var a=e.closest(".layout");this.isLayoutClosed(a)?this.openLayout(a):this.closeLayout(a)},onClickExpandAll:function(e,a){e.preventDefault();const i=this;this.$layouts().each(function(){i.openLayout(t(this))})},onClickCollapseAll:function(e,a){e.preventDefault();const i=this;this.$layouts().each(function(){i.closeLayout(t(this))})},onClickMoreActions:function(t,e){const a=e.closest(".layout");new i({target:e,targetConfirm:!1,text:this.getMoreLayoutActionsHTML(),context:this,confirm:function(t,e){const i=e.data("action");"toggle-layout"===i&&this.onClickToggleLayout(t,a),"rename-layout"===i&&this.onClickRenameLayout(t,a)},cancel:function(t,e){a.find('a[data-name="more-layout-actions"]').first().trigger("focus")}})},isLayoutClosed:function(t){return t.hasClass("-collapsed")},openLayout:function(t){t.removeClass("-collapsed"),acf.doAction("show",t,"collapse")},closeLayout:function(t){t.addClass("-collapsed"),acf.doAction("hide",t,"collapse"),this.renderLayout(t)},renderLayout:function(e){const a=e.children("input").attr("name").replace("[acf_fc_layout]",""),i={action:"acf/fields/flexible_content/layout_title",field_key:this.get("key"),i:e.index(),layout:e.data("layout"),value:acf.serialize(e,a),nonce:this.get("nonce")};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),dataType:"html",type:"post",success:function(t){t&&(1===e.data("renamed")?e.find(".acf-fc-layout-original-title").first().html(`(${t})`):e.find(".acf-fc-layout-title").first().html(t))}})},onUnload:function(){var e=[];this.$layouts().each(function(a){t(this).hasClass("-collapsed")&&e.push(a)}),e=e.length?e:null,s.save(this.get("key"),e)},onInvalidField:function(t,e){this.isLayoutClosed(e)&&this.openLayout(e)},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(e);var a=acf.models.TooltipConfirm.extend({events:{"click [data-layout]":"onConfirm",'click [data-event="cancel"]':"onCancel"},render:function(){this.html(this.get("text")),this.$el.addClass("acf-fc-popup"),this.position()},show:function(){t("body").append(this.$el)},position:function(){const t=this.$el,e=this.get("target"),a=e.closest(".acf-flexible-content");o(t,e,a,8)}});const i=acf.models.TooltipConfirm.extend({events:{"click [data-action]":"onConfirm",'keydown [role="menu"]':"onKeyDown"},render:function(){const t=this.get("target").closest(".layout");this.html(this.get("text")),this.$el.addClass("acf-fc-popup acf-more-layout-actions"),"0"===t.attr("data-enabled")?this.$el.addClass("enable-layout"):this.$el.removeClass("enable-layout");const e=this.get("context")||this,a=this;setTimeout(function(){a.$el.find("a").first().trigger("focus"),e.maybeDisableAddLayout()},1)},show:function(){t("body").append(this.$el)},position:function(){const t=this.$el,e=this.get("target"),a=e.closest(".layout");o(t,e,a,2)},onKeyDown:function(e,a){if(-1===["ArrowDown","ArrowUp","Escape","Tab"].indexOf(e.key))return;if(e.preventDefault(),"Escape"===e.key)return void this.onCancel(e,a);const i=this.$el.find('[role="menu"]').find('[role="menuitem"]:visible'),n=t(document.activeElement),o=i.length;let s,l=i.index(n);s="ArrowDown"===e.key||"Tab"===e.key&&!e.shiftKey?(l+1)%o:(l-1+o)%o,i.eq(s).trigger("focus")}}),n=acf.models.PopupConfirm.extend({events:{'click [data-event="close"]':"onCancel","click .acf-close-popup":"onClickClose",keydown:"onPressEscapeClose",'click [data-event="confirm"]':"onConfirm","click .acf-reset-label":"onReset","submit .acf-rename-layout-form":"onConfirm"},tmpl:function(){return`\n\t\t\t<div id="acf-popup" role="dialog" aria-labelledby="acf-rename-layout-title" tabindex="-1">\n\t\t\t\t<div class="acf-popup-box acf-box acf-confirm-popup acf-rename-layout-popup">\n\t\t\t\t\t<div class="title">\n\t\t\t\t\t\t<h3 id="acf-rename-layout-title">${this.get("title")}</h3>\n\t\t\t\t\t\t<a href="#" data-event="close" aria-label="${acf.strEscape(acf.__("Close modal"))}">\n\t\t\t\t\t\t\t<i class="acf-icon -close"></i>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<form class="inner acf-rename-layout-form">\n\t\t\t\t\t\t<div class="acf-field">\n\t\t\t\t\t\t\t<div class="acf-label">\n\t\t\t\t\t\t\t\t<label for="acf-new-layout-label">${acf.strEscape(acf.__("New Label"))}</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="acf-input">\n\t\t\t\t\t\t\t\t<input id="acf-new-layout-label" type="text" name="acf_new_layout_label" value="${this.get("currentName")}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="acf-actions"> \n\t\t\t\t\t\t\t${""===this.get("currentName")?"":`<button type="button" data-event="reset-label" class="acf-btn acf-btn-secondary acf-reset-label">${acf.strEscape(acf.__("Remove Custom Label"))}</button>`}\n\t\t\t\t\t\t\t<button type="button" data-event="close" class="acf-btn acf-btn-secondary acf-close-popup">${acf.strEscape(this.get("textCancel"))}</button>\n\t\t\t\t\t\t\t<button type="submit" data-event="confirm" class="acf-btn acf-btn-primary acf-confirm">${acf.strEscape(this.get("textConfirm"))}</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t\t<div class="bg" data-event="close"></div>\n\t\t\t</div>`},render:function(){acf.models.PopupConfirm.prototype.render.apply(this,arguments),setTimeout(()=>{const t=this.$el.find("input#acf-new-layout-label"),e=t.val().length;t.trigger("focus"),t[0].setSelectionRange(e,e)},1)},onConfirm:function(t,e){t.preventDefault(),t.stopPropagation();const a=this.$el.find("input#acf-new-layout-label").val();this.close();const i=this.get("confirm"),n=this.get("context")||this;i.apply(n,[t,e,a])},onReset:function(t,e){t.preventDefault(),t.stopPropagation(),this.$el.find("input#acf-new-layout-label").val(""),this.onConfirm(t,e)}}),o=function(e,a,i,n){if(!a.length||!i.length)return;const o=a.offset(),s=a.outerWidth(),l=a.outerHeight(),r=e.outerWidth(),c=e.outerHeight(),d=t("body").hasClass("rtl"),f=t(window).scrollTop(),u=t(window).height();let h,p,g=o.top+l+n,m=!1;o.top+l+c+n>f+u&&o.top-c-n>f&&(g=o.top-c-n,m=!0),d?(h=o.left,p=m?"bottom-left":"top-left"):(h=o.left+s-r,p=m?"bottom-right":"top-right"),e.removeClass("top-right bottom-right top-left bottom-left").css({position:"absolute",top:g,left:h}).addClass(p)};acf.registerConditionForFieldType("hasValue","flexible_content"),acf.registerConditionForFieldType("hasNoValue","flexible_content"),acf.registerConditionForFieldType("lessThan","flexible_content"),acf.registerConditionForFieldType("greaterThan","flexible_content");var s=new acf.Model({name:"this.collapsedLayouts",key:function(t,e){var a=this.get(t+e)||0;return a++,this.set(t+e,a,!0),a>1&&(t+="-"+a),t},load:function(t){t=this.key(t,"load");var e=acf.getPreference(this.name);return!(!e||!e[t])&&e[t]},save:function(e,a){e=this.key(e,"save");var i=acf.getPreference(this.name)||{};null===a?delete i[e]:i[e]=a,t.isEmptyObject(i)&&(i=null),acf.setPreference(this.name,i)}})}(jQuery)},349(){var t,e;t=jQuery,e=acf.Field.extend({type:"gallery",events:{"click .acf-gallery-add":"onClickAdd","click .acf-gallery-edit":"onClickEdit","click .acf-gallery-remove":"onClickRemove","click .acf-gallery-attachment":"onClickSelect","click .acf-gallery-close":"onClickClose","change .acf-gallery-sort":"onChangeSort","click .acf-gallery-update":"onUpdate",mouseover:"onHover",showField:"render"},actions:{validation_begin:"onValidationBegin",validation_failure:"onValidationFailure",resize:"onResize"},onValidationBegin:function(){acf.disable(this.$sideData(),this.cid)},onValidationFailure:function(){acf.enable(this.$sideData(),this.cid)},$control:function(){return this.$(".acf-gallery")},$collection:function(){return this.$(".acf-gallery-attachments")},$attachments:function(){return this.$(".acf-gallery-attachment")},$attachment:function(t){return this.$('.acf-gallery-attachment[data-id="'+t+'"]')},$active:function(){return this.$(".acf-gallery-attachment.active")},$main:function(){return this.$(".acf-gallery-main")},$side:function(){return this.$(".acf-gallery-side")},$sideData:function(){return this.$(".acf-gallery-side-data")},isFull:function(){var t=parseInt(this.get("max")),e=this.$attachments().length;return t&&e>=t},getValue:function(){var e=[];return this.$attachments().each(function(){e.push(t(this).data("id"))}),!!e.length&&e},addUnscopedEvents:function(e){this.on("change",".acf-gallery-side",function(a){e.onUpdate(a,t(this))})},addSortable:function(t){this.$collection().sortable({items:".acf-gallery-attachment",forceHelperSize:!0,zIndex:9999,forcePlaceholderSize:!0,scroll:!0,start:function(t,e){e.placeholder.html(e.item.html()),e.placeholder.removeAttr("style")},update:function(e,a){t.$input().trigger("change")}}),this.$control().resizable({handles:"s",minHeight:200,stop:function(t,e){acf.update_user_setting("gallery_height",e.size.height)}})},initialize:function(){this.addUnscopedEvents(this),this.render()},render:function(){var t=this.$(".acf-gallery-sort"),e=this.$(".acf-gallery-add"),a=this.$attachments().length;this.isFull()?e.addClass("disabled"):e.removeClass("disabled"),a?t.removeClass("disabled"):t.addClass("disabled"),this.resize()},resize:function(){var t=this.$control().width(),e=Math.round(t/150);e=Math.min(e,8),this.$control().attr("data-columns",e)},onResize:function(){this.resize()},openSidebar:function(){this.$control().addClass("-open");var t=this.$control().width()/3;t=parseInt(t),t=Math.max(t,350),this.$(".acf-gallery-side-inner").css({width:t-1}),this.$side().animate({width:t-1},250),this.$main().animate({right:t},250)},closeSidebar:function(){this.$control().removeClass("-open"),this.$active().removeClass("active"),acf.disable(this.$side());var t=this.$(".acf-gallery-side-data");this.$main().animate({right:0},250),this.$side().animate({width:0},250,function(){t.html("")})},onClickAdd:function(e,a){this.isFull()?this.showNotice({text:acf.__("Maximum selection reached"),type:"warning"}):acf.newMediaPopup({mode:"select",title:acf.__("Add Image to Gallery"),field:this.get("key"),multiple:"add",library:this.get("library"),allowedTypes:this.get("mime_types"),selected:this.val(),select:t.proxy(function(t,e){this.appendAttachment(t,e)},this)})},appendAttachment:function(e,a){if(e=this.validateAttachment(e),!this.isFull()&&!this.$attachment(e.id).length){var i=['<div class="acf-gallery-attachment" data-id="'+e.id+'">','<input type="hidden" value="'+e.id+'" name="'+this.getInputName()+'[]">','<div class="margin" title="">','<div class="thumbnail">','<img src="" alt="">',"</div>",'<div class="filename"></div>',"</div>",'<div class="actions">','<a href="#" class="acf-icon -cancel dark acf-gallery-remove" data-id="'+e.id+'"></a>',"</div>","</div>"].join(""),n=t(i);if(this.$collection().append(n),"prepend"===this.get("insert")){var o=this.$attachments().eq(a);o.length&&o.before(n)}this.renderAttachment(e),this.render(),this.$input().trigger("change")}},validateAttachment:function(t){if((t=acf.parseArgs(t,{id:"",url:"",alt:"",title:"",filename:"",type:"image"})).attributes){t=t.attributes;var e=acf.isget(t,"sizes",this.get("preview_size"),"url");null!==e&&(t.url=e)}return t},renderAttachment:function(t){t=this.validateAttachment(t);var e=this.$attachment(t.id);if("image"==t.type)e.find(".filename").remove();else{var a=acf.isget(t,"image","src");null!==a&&(t.url=a),e.find(".filename").text(t.filename)}t.url||(t.url=acf.get("mimeTypeIcon"),e.addClass("-icon")),e.find("img").attr({src:t.url,alt:t.alt,title:t.title}),acf.val(e.find("input"),t.id)},editAttachment:function(e){acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:e,field:this.get("key"),select:t.proxy(function(t,e){this.renderAttachment(t)},this)})},onClickEdit:function(t,e){var a=e.data("id");a&&this.editAttachment(a)},removeAttachment:function(t){this.closeSidebar(),this.$attachment(t).remove(),this.render(),this.$input().trigger("change")},onClickRemove:function(t,e){t.preventDefault(),t.stopPropagation();var a=e.data("id");a&&this.removeAttachment(a)},selectAttachment:function(e){var a=this.$attachment(e);if(!a.hasClass("active")){var i=this.proxy(function(){this.$side().find(":focus").trigger("blur"),this.$active().removeClass("active"),a.addClass("active"),this.openSidebar(),n()}),n=this.proxy(function(){const a={action:"acf/fields/gallery/get_attachment",nonce:this.get("nonce"),field_key:this.get("key"),id:e};this.has("xhr")&&this.get("xhr").abort(),acf.showLoading(this.$sideData());var i=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"html",cache:!1,success:o});this.set("xhr",i)}),o=this.proxy(function(t){if(t){var e=this.$sideData();e.html(t),e.find(".compat-field-acf-form-data").remove(),e.find("> table.form-table > tbody").append(e.find("> .compat-attachment-fields > tbody > tr")),acf.doAction("append",e)}});i()}},onClickSelect:function(t,e){var a=e.data("id");a&&this.selectAttachment(a)},onClickClose:function(t,e){this.closeSidebar()},onChangeSort:function(e,a){if(!a.hasClass("disabled")){var i=a.val();if(i){var n=[];this.$attachments().each(function(){n.push(t(this).data("id"))});var o=this.proxy(function(){const e={action:"acf/fields/gallery/get_sort_order",nonce:this.get("nonce"),field_key:this.get("key"),ids:n,sort:i};t.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",cache:!1,data:acf.prepareForAjax(e),success:s})}),s=this.proxy(function(t){acf.isAjaxSuccess(t)&&(t.data.reverse(),t.data.map(function(t){this.$collection().prepend(this.$attachment(t))},this))});o()}}},onUpdate:function(e,a){var i=this.$(".acf-gallery-update");if(i.hasClass("disabled"))return;const n=acf.serialize(this.$sideData());i.addClass("disabled"),i.before('<i class="acf-loading"></i> '),n.action="acf/fields/gallery/update_attachment",n.nonce=this.get("nonce"),n.field_key=this.get("key"),t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"json",complete:function(){i.removeClass("disabled"),i.prev(".acf-loading").remove()}})},onHover:function(){this.addSortable(this),this.off("mouseover")}}),acf.registerFieldType(e),acf.registerConditionForFieldType("hasValue","gallery"),acf.registerConditionForFieldType("hasNoValue","gallery"),acf.registerConditionForFieldType("selectionLessThan","gallery"),acf.registerConditionForFieldType("selectionGreaterThan","gallery")},327(){!function(t){var e=acf.Field.extend({type:"repeater",wait:"",page:1,nextRowNum:0,events:{'click a[data-event="add-row"]':"onClickAdd",'click a[data-event="duplicate-row"]':"onClickDuplicate",'click a[data-event="remove-row"]':"onClickRemove",'click a[data-event="collapse-row"]':"onClickCollapse",'click a[data-event="first-page"]:not(.disabled)':"onClickFirstPage",'click a[data-event="last-page"]:not(.disabled)':"onClickLastPage",'click a[data-event="prev-page"]:not(.disabled)':"onClickPrevPage",'click a[data-event="next-page"]:not(.disabled)':"onClickNextPage","change .current-page":"onChangeCurrentPage","click .acf-order-input-wrap":"onClickRowOrder","blur .acf-order-input":"onBlurRowOrder","change .acf-order-input":"onChangeRowOrder","changed:total_rows":"onChangeTotalRows",showField:"onShow",unloadField:"onUnload",mouseover:"onHover",change:"onChangeField"},$control:function(){return this.$(".acf-repeater:first")},$table:function(){return this.$("table:first")},$tbody:function(){return this.$("tbody:first")},$rows:function(){return this.$("tbody:first > tr").not(".acf-clone, .acf-deleted")},$row:function(t){return this.$("tbody:first > tr:eq("+t+")")},$clone:function(){return this.$("tbody:first > tr.acf-clone")},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-actions:last .button")},$firstPageButton:function(){return this.$(".acf-tablenav:last .first-page")},$prevPageButton:function(){return this.$(".acf-tablenav:last .prev-page")},$nextPageButton:function(){return this.$(".acf-tablenav:last .next-page")},$lastPageButton:function(){return this.$(".acf-tablenav:last .last-page")},$pageInput:function(){return this.$(".current-page:last")},totalPages:function(){const t=this.$(".acf-total-pages:last").text();return parseInt(t)},getValue:function(){return this.$rows().length},allowRemove:function(){let t=this.val(),e=parseInt(this.get("min"));return this.get("pagination")&&(t=this.get("total_rows")),!e||e<t},allowAdd:function(){let t=this.val(),e=parseInt(this.get("max"));return this.get("pagination")&&(t=this.get("total_rows")),!e||e>t},addSortable:function(t){1!=this.get("max")&&(this.get("pagination")||this.$tbody().sortable({items:"> tr",handle:"> td.order",zIndex:9999,forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:function(e,a){t.render()},update:function(e,a){t.$input().trigger("change")}}))},addCollapsed:function(){var e=a.load(this.get("key"));if(!e)return!1;this.$rows().each(function(a){e.indexOf(a)>-1&&t(this).find(".-collapsed-target").length&&t(this).addClass("-collapsed")})},addUnscopedEvents:function(e){this.on("invalidField",".acf-row",function(a){var i=t(this);e.isCollapsed(i)&&e.expand(i)}),this.get("pagination")&&this.on("change","input, select, textarea",function(a){const i=t(a.currentTarget);i.hasClass("acf-order-input")||i.hasClass("acf-row-status")||e.onChangeField(a,t(this))}),this.listenForSavedMetaBoxes()},initialize:function(){this.addUnscopedEvents(this),this.addCollapsed(),acf.disable(this.$clone(),this.cid),this.get("pagination")&&(this.nextRowNum=this.get("total_rows")),this.render()},render:function(e=!0){e&&this.$rows().each(function(e){t(this).find("> .order > span").html(e+1)});var a=this.$control(),i=this.$button();0==this.val()?a.addClass("-empty"):a.removeClass("-empty"),this.allowAdd()?(a.removeClass("-max"),i.removeClass("disabled")):(a.addClass("-max"),i.addClass("disabled")),this.get("pagination")&&this.maybeDisablePagination()},listenForSavedMetaBoxes:function(){if(!acf.isGutenbergPostEditor()||!this.get("pagination"))return;let t=!0;wp.data.subscribe(()=>{wp.data.select("core/edit-post").isSavingMetaBoxes()?t=!1:t||(t=!0,this.set("total_rows",0,!0),this.ajaxLoadPage(!0))})},incrementTotalRows:function(){let t=this.get("total_rows");this.set("total_rows",++t,!0)},decrementTotalRows:function(){let t=this.get("total_rows");this.set("total_rows",--t,!0)},validateAdd:function(){if(this.allowAdd())return!0;var t=this.get("max"),e=acf.__("Maximum rows reached ({max} rows)");return e=e.replace("{max}",t),this.showNotice({text:e,type:"warning"}),!1},onClickAdd:function(t,e){if(!this.validateAdd())return!1;e.hasClass("acf-icon")?this.add({before:e.closest(".acf-row")}):this.add()},add:function(t){if(!this.allowAdd())return!1;t=acf.parseArgs(t,{before:!1});var e=acf.duplicate({target:this.$clone(),append:this.proxy(function(e,a){t.before?t.before.before(a):e.before(a),a.removeClass("acf-clone"),acf.enable(a,this.cid)})});if(this.get("pagination")){if(this.incrementTotalRows(),!1!==t.before){let a=parseInt(t.before.find(".acf-row-number").first().text())||0;if(!a||t.before.hasClass("acf-inserted")||t.before.hasClass("acf-added")||--a,t.before.hasClass("acf-divider")&&(t.before.removeClass("acf-divider"),e.addClass("acf-divider")),this.updateRowStatus(e,"inserted"),this.updateRowStatus(e,"reordered",a),e.find(".acf-row-number").first().hide().text(a),!e.find(".acf-order-input-wrap").hasClass("disabled")){let t=acf.__("Order will be assigned upon save");e.find(".acf-order-input-wrap").addClass("disabled"),e.find(".acf-row-number").first().after('<span title="'+t+'">-</span>')}e.find(".acf-order-input").first().hide(),e.attr("data-inserted",a)}else this.nextRowNum++,e.find(".acf-order-input").first().val(this.nextRowNum),e.find(".acf-row-number").first().text(this.nextRowNum),this.updateRowStatus(e,"added"),this.$tbody().find(".acf-divider").length||e.addClass("acf-divider");e.find(".acf-input:first").find("input:not([type=hidden]), select, textarea").first().trigger("focus")}return this.render(),this.$input().trigger("change"),e},onClickDuplicate:function(t,e){if(!this.validateAdd())return!1;var a=e.closest(".acf-row");this.duplicateRow(a)},duplicateRow:function(t){if(!this.allowAdd())return!1;var e=this.get("key"),a=acf.duplicate({target:t,rename:function(t,a,i,n){return"id"===t||"for"===t?a.replace(e+"-"+i,e+"-"+n):a.replace(e+"]["+i,e+"]["+n)},before:function(t){acf.doAction("unmount",t)},after:function(t,e){acf.doAction("remount",t)}});if(this.get("pagination")){this.incrementTotalRows();const e=parseInt(t.find(".acf-row-number").first().text())||0;if(this.updateRowStatus(a,"inserted"),this.updateRowStatus(a,"reordered",e),a.find(".acf-row-number").first().hide(),!a.find(".acf-order-input-wrap").hasClass("disabled")){let t=acf.__("Order will be assigned upon save");a.find(".acf-order-input-wrap").addClass("disabled"),a.find(".acf-row-number").first().after('<span title="'+t+'">-</span>')}a.find(".acf-order-input").first().hide(),a.attr("data-inserted",e),a.removeClass("acf-divider")}return this.$input().trigger("change"),this.render(),acf.focusAttention(a),a},validateRemove:function(){if(this.allowRemove())return!0;var t=this.get("min"),e=acf.__("Minimum rows not reached ({min} rows)");return e=e.replace("{min}",t),this.showNotice({text:e,type:"warning"}),!1},onClickRemove:function(t,e){var a=e.closest(".acf-row");if(t.shiftKey)return this.remove(a);a.addClass("-hover"),acf.newTooltip({confirmRemove:!0,target:e,context:this,confirm:function(){this.remove(a)},cancel:function(){a.removeClass("-hover")}})},onClickRowOrder:function(t,e){this.get("pagination")&&(e.hasClass("disabled")||(e.find(".acf-row-number").hide(),e.find(".acf-order-input").show().trigger("select")))},onBlurRowOrder:function(t,e){this.onChangeRowOrder(t,e,!1)},onChangeRowOrder:function(t,e,a=!0){if(!this.get("pagination"))return;const i=e.closest(".acf-row"),n=i.find(".acf-row-number").first();let o=e.val();if(i.find(".acf-order-input").first().hide(),!acf.isNumeric(o)||parseFloat(o)<0)return void n.show();o=Math.round(o);const s=o-1;e.val(o),n.text(o).show(),a&&this.updateRowStatus(i,"reordered",s)},onChangeTotalRows:function(){const t=parseInt(this.get("per_page"))||20,e=parseInt(this.get("total_rows"))||0,a=Math.ceil(e/t);this.$(".acf-total-pages:last").text(a),this.nextRowNum=e,this.page>a&&(this.page=a,this.ajaxLoadPage())},remove:function(t){const e=this;if(this.get("pagination")){if(this.decrementTotalRows(),t.data("id").includes("row-"))return this.updateRowStatus(t,"deleted"),t.hide(),e.$input().trigger("change"),void e.render(!1);t.hasClass("acf-divider")&&t.next(".acf-added").addClass("acf-divider")}acf.remove({target:t,endHeight:0,complete:function(){e.$input().trigger("change"),e.render()}})},isCollapsed:function(t){return t.hasClass("-collapsed")},collapse:function(t){t.addClass("-collapsed"),acf.doAction("hide",t,"collapse")},expand:function(t){t.removeClass("-collapsed"),acf.doAction("show",t,"collapse")},onClickCollapse:function(t,e){var a=e.closest(".acf-row"),i=this.isCollapsed(a);t.shiftKey&&(a=this.$rows()),i?this.expand(a):this.collapse(a)},onShow:function(t,e,a){var i=acf.getFields({is:":visible",parent:this.$el});acf.doAction("show_fields",i)},onUnload:function(){var e=[];this.$rows().each(function(a){t(this).hasClass("-collapsed")&&e.push(a)}),e=e.length?e:null,a.save(this.get("key"),e)},onHover:function(){this.addSortable(this),this.off("mouseover")},onChangeField:function(e,a){const i=t(e.delegateTarget);let n=a.closest(".acf-row");n.closest(".acf-field-repeater").data("key")!==i.data("key")&&(n=n.parent().closest(".acf-row")),this.updateRowStatus(n,"changed")},updateRowStatus:function(t,e,a=!0){if(!this.get("pagination"))return;const i=t.parents(".acf-field-repeater").data("key");if(this.parent()&&i!==this.get("key"))return;const n=t.data("id"),o=`${this.$el.find(".acf-repeater-hidden-input:first").attr("name")}[${n}][acf_${e}]`,s=`<input type="hidden" class="acf-row-status" name="${o}" value="${a}" />`;t.hasClass("acf-"+e)||t.addClass("acf-"+e);const l=t.find(`input[name='${o}']`);l.length?l.val(a):t.find("td").first().append(s)},onClickFirstPage:function(){this.validatePage(1)},onClickPrevPage:function(){this.validatePage(this.page-1)},onClickNextPage:function(t){this.validatePage(this.page+1)},onClickLastPage:function(){this.validatePage(this.totalPages())},onChangeCurrentPage:function(){this.validatePage(this.$pageInput().val())},maybeDisablePagination:function(){this.$actions().find(".acf-nav").removeClass("disabled"),this.page<=1&&(this.$firstPageButton().addClass("disabled"),this.$prevPageButton().addClass("disabled")),this.page>=this.totalPages()&&(this.$nextPageButton().addClass("disabled"),this.$lastPageButton().addClass("disabled"))},validatePage:function(t){const e=this;acf.validateForm({form:this.$control(),event:"",reset:!0,success:function(a){e.page=t,e.page<=1&&(e.page=1),e.page>=e.totalPages()&&(e.page=e.totalPages()),e.ajaxLoadPage()},failure:function(t){return e.$pageInput().val(e.page),!1}})},ajaxLoadPage:function(e=!1){const a=acf.prepareForAjax({action:"acf/ajax/query_repeater",paged:this.page,field_key:this.get("key"),field_name:this.get("orig_name"),field_prefix:this.get("prefix"),rows_per_page:parseInt(this.get("per_page")),refresh:e,nonce:this.get("nonce"),options_page_slug:acf.get("options_page_slug")||""});t.ajax({url:ajaxurl,method:"POST",dataType:"json",data:a,context:this}).done(function(a){const{rows:i}=a.data,n=this.$tbody().find("> tr");n.not(".acf-clone").hide(),e?(n.not(".acf-clone").remove(),this.set("total_rows",a.data.total_rows,!1)):n.not(".acf-changed, .acf-deleted, .acf-reordered, .acf-added, .acf-inserted, .acf-clone").remove(),Object.keys(i).forEach(e=>{let a=!1,n=this.$tbody().find("> *[data-id=row-"+e+"]"),o=this.$tbody().find("> *[data-inserted="+e+"]");if(o.length&&(o.appendTo(this.$tbody()).show(),acf.doAction("remount",o)),!n.hasClass("acf-deleted")){if(n.length)return acf.doAction("unmount",n),n.appendTo(this.$tbody()).show(),void acf.doAction("remount",n);a=t(i[e]),this.$tbody().append(a).show(),acf.doAction("remount",a),this.$clone().appendTo(this.$tbody())}});const o=this.$tbody().find(".acf-added:hidden");if(o.length){const e=this;o.each(function(){const a=t(this);a.insertBefore(e.$clone()).show(),acf.doAction("remount",a)})}this.$pageInput().val(this.page),this.maybeDisablePagination()}).fail(function(t,e,a){const i=acf.getXhrError(t);let n=acf.__("Error loading page");""!==i&&(n=`${n}: ${i}`),this.showNotice({text:n,type:"warning"})})}});acf.registerFieldType(e),acf.registerConditionForFieldType("hasValue","repeater"),acf.registerConditionForFieldType("hasNoValue","repeater"),acf.registerConditionForFieldType("lessThan","repeater"),acf.registerConditionForFieldType("greaterThan","repeater");var a=new acf.Model({name:"this.collapsedRows",key:function(t,e){var a=this.get(t+e)||0;return a++,this.set(t+e,a,!0),a>1&&(t+="-"+a),t},load:function(t){t=this.key(t,"load");var e=acf.getPreference(this.name);return!(!e||!e[t])&&e[t]},save:function(e,a){e=this.key(e,"save");var i=acf.getPreference(this.name)||{};null===a?delete i[e]:i[e]=a,t.isEmptyObject(i)&&(i=null),acf.setPreference(this.name,i)}})}(jQuery)}},e={};function a(i){var n=e[i];if(void 0!==n)return n.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,a),o.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";a(327),a(340),a(349)})()})();
// source --> https://rotlichtadresse.de/wp-content/plugins/advanced-custom-fields-pro/assets/build/js/pro/acf-pro-ui-options-page.min.js?ver=6.8.0.1 
(()=>{var e={805(){!function(e){const t=function(t){return void 0===t.element?t:t.children&&"None"===t.text?void 0:("acfOptionsPages"===t.text&&(t.text=acf.__("Options Pages")),e('<span class="acf-selection"></span>').data("element",t.element).html(acf.strEscape(t.text)))},a=function(t){if(void 0===t.element)return t;const a=e('<span class="acf-selection"></span>');return a.html(acf.strEscape(t.element.innerHTML)),"options"!==t.id&&"edit_posts"!==t.id||a.append('<span class="acf-select2-default-pill">'+acf.__("Default")+"</span>"),a.data("element",t.element),a};new acf.Model({id:"UIOptionsPageManager",wait:"ready",events:{"change .acf-options-page-parent_slug":"toggleMenuPositionDesc"},initialize:function(){"ui_options_page"===acf.get("screen")&&(acf.newSelect2(e("select.acf-options-page-parent_slug"),{field:!1,templateSelection:t,templateResult:t,dropdownCssClass:"field-type-select-results"}),acf.newSelect2(e("select.acf-options-page-capability"),{field:!1,templateSelection:a,templateResult:a}),acf.newSelect2(e("select.acf-options-page-data_storage"),{field:!1,templateSelection:a,templateResult:a}),this.toggleMenuPositionDesc())},toggleMenuPositionDesc:function(t,a){"none"===e("select.acf-options-page-parent_slug").val()?(e(".acf-menu-position-desc-child").hide(),e(".acf-menu-position-desc-parent").show()):(e(".acf-menu-position-desc-parent").hide(),e(".acf-menu-position-desc-child").show())}}),new acf.Model({id:"optionsPageModalManager",events:{"change .location-rule-value":"createOptionsPage"},createOptionsPage:function(a){const n=e(a.target);if("add_new_options_page"!==n.val())return;let o=!1;const s=function(a){o=acf.newPopup({title:a.data.title,content:a.data.content,width:"600px"}),o.$el.addClass("acf-create-options-page-popup");const n=o.$el.find("#acf_ui_options_page-page_title"),s=n.val();n.trigger("focus").val("").val(s),acf.newSelect2(e("#acf_ui_options_page-parent_slug"),{field:!1,templateSelection:t,templateResult:t,dropdownCssClass:"field-type-select-results"}),o.on("submit","form",c)},c=function(t){t.preventDefault(),acf.validateForm({form:e("#acf-create-options-page-form"),success:i,failure:l})},i=function(){const t=e("#acf-create-options-page-form").serializeArray(),a={action:"acf/create_options_page"};t.forEach(e=>{a[e.name]=e.value}),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:p})},l=function(t){const a=e("#acf-create-options-page-form"),n=a.find(".acf-field .acf-error-message");a.find(".acf-notice").first().remove(),n.each(function(){const t=e(this).closest(".acf-field").find(".acf-label:first");e(this).attr("class","acf-options-page-modal-error").appendTo(t)})},p=function(e){e.success&&e.data.menu_slug?(n.prepend('<option value="'+e.data.menu_slug+'">'+e.data.page_title+"</option>"),n.val(e.data.menu_slug),o.close()):!e.success&&e.data.error&&alert(e.data.error)};!function(){const t=e(".acf-headerbar-title-field").val(),a={action:"acf/create_options_page",acf_parent_page_choices:this.acf.data.optionPageParentOptions?this.acf.data.optionPageParentOptions:[]};t.length&&(a.field_group_title=t),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:s})}()}})}(jQuery)}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,a),s.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";a(805)})()})();
// source --> https://rotlichtadresse.de/wp-includes/js/jquery/ui/datepicker.min.js?ver=1.13.3 
/*!
 * jQuery UI Datepicker 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,d<t.left+i&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,c<t.top+s&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker});