!function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=jQuery,n=t.n(e),r=lodash,i=function(t){var e=function(t){var e=(0,r.find)(rankMath.acf.headlines,(function(e,n){return t.key===n}));return e&&(e=parseInt(e,10)),(e<1||e>6)&&(e=!1),e}(t);return t.content=e?""+t.content+"":"
"+t.content+"
",t},a=function(t){var e=t.$el.find("textarea")[0],n=e.id,r=e.value;return function(t){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&null!==tinyMCE.get(t)&&!tinyMCE.get(t).isHidden()}(n)&&(r=tinyMCE.get(n)&&tinyMCE.get(n).getContent()||""),r};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function u(t,e){for(var n=0;n'}return e}},{key:"setCache",value:function(t,e){this.cache[t]=e}},{key:"getCache",value:function(t){return t in this.cache&&this.cache[t]}},{key:"getUncached",value:function(t){var e=this;return(t=(0,r.uniq)(t)).filter((function(t){return!1===e.get(t)}))}}])&&u(e.prototype,n),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}());function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function y(t,e){for(var n=0;n"+t.$el.find("textarea[id^=acf]").val()+""),t}))},email:function(t){return t=(0,r.map)(t,(function(t){return"email"!==t.type||(t.content=t.$el.find("input[type=email][id^=acf]").val()),t}))},url:function(t){return t=(0,r.map)(t,(function(t){if("url"!==t.type)return t;var e=t.$el.find("input[type=url][id^=acf]").val();return t.content=e?''+e+"":"",t}))},link:function(t){return(0,r.map)(t,(function(t){if("link"!==t.type)return t;var e=t.$el.find("input[type=hidden].input-title").val(),n=t.$el.find("input[type=hidden].input-url").val(),r=t.$el.find("input[type=hidden].input-target").val();return t.content=''+e+"",t}))},wysiwyg:function(t){return t=(0,r.map)(t,(function(t){return"wysiwyg"!==t.type||(t.content=a(t)),t}))},image:function(t){var e=[];return t=(0,r.map)(t,(function(t){if("image"!==t.type)return t;t.content="";var n=t.$el.find("input[type=hidden]").val();return e.push(n),t.content+=l.getAttachmentContent(n),t})),l.refresh(e),t},gallery:function(t){var e=[];return t=(0,r.map)(t,(function(t){return"gallery"!==t.type||(t.content="",t.$el.find(".acf-gallery-attachment input[type=hidden]").each((function(){var r=n()(this).val();e.push(r),t.content+=l.getAttachmentContent(r)}))),t})),l.refresh(e),t},taxonomy:function(t){return t=(0,r.map)(t,(function(t){if("taxonomy"!==t.type)return t;var e=[];if(t.$el.find('.acf-taxonomy-field[data-type="multi_select"]').length>0){var n=acf.select2.version>=4?"select":"input";e=(0,r.map)(t.$el.find('.acf-taxonomy-field[data-type="multi_select"] '+n).select2("data"),"text")}else t.$el.find('.acf-taxonomy-field[data-type="checkbox"]').length>0?e=(0,r.map)(t.$el.find('.acf-taxonomy-field[data-type="checkbox"] input[type="checkbox"]:checked').next(),"textContent"):t.$el.find("input[type=checkbox]:checked").length>0?e=(0,r.map)(t.$el.find("input[type=checkbox]:checked").parent(),"textContent"):t.$el.find("select option:checked").length>0&&(e=(0,r.map)(t.$el.find("select option:checked"),"textContent"));return(e=(0,r.map)(e,(function(t){return t.trim()}))).length>0&&(t.content=""),t}))}},s=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,a;return e=t,(i=[{key:"getFieldContent",value:function(){var t=this.excludeNames(this.excludeTypes(this.getData())),e=(0,r.uniq)((0,r.map)(t,"type"));return n().each(e,(function(e,n){n in p&&(t=p[n](t))})),t}},{key:"append",value:function(t){var e=this.getFieldContent();return(0,r.each)(e,(function(e){void 0!==e.content&&""!==e.content&&(t+="\n"+e.content)})),t}},{key:"getData",value:function(){var t=["flexible_content","repeater","group"],e=[],i=[],a=(0,r.map)(acf.get_fields(),(function(r){var a=n().extend(!0,{},acf.get_data(n()(r)));return a.$el=n()(r),a.post_meta_key=a.name,-1===t.indexOf(a.type)?e.push(a):i.push(a),a}));return 0===i.length||(0,r.each)(e,(function(t){(0,r.each)(i,(function(e){n().contains(e.$el[0],t.$el[0])&&("flexible_content"!==e.type&&"repeater"!==e.type||(e.children=e.children||[],e.children.push(t),t.parent=e,t.post_meta_key=e.name+"_"+(e.children.length-1)+"_"+t.name),"group"===e.type&&(e.children=[t],t.parent=e,t.post_meta_key=e.name+"_"+t.name))}))})),a}},{key:"excludeTypes",value:function(t){return(0,r.filter)(t,(function(t){return!(0,r.includes)(rankMath.acf.blacklistTypes,t.type)}))}},{key:"excludeNames",value:function(t){return(0,r.filter)(t,(function(t){return!(0,r.includes)(rankMath.acf.names,t.name)}))}}])&&y(e.prototype,i),a&&y(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}()),h=wp.hooks;function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function m(t,e){for(var n=0;n