Version Description
[Jan 27, 2022] = * Fixed: Variable dropdown was not working with the WordPress v5.9 * Fixed: SEO Panel was not appearing on Divi's frontend editor for WordPress v5.9 * Fixed: PHP warnings for various non-arrays on some setups * Fixed: Wrong changelog link in the Update email
Download this release
Release Info
Developer | rankmath |
Plugin | WordPress SEO Plugin – Rank Math |
Version | 1.0.81.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.81 to 1.0.81.1
- assets/admin/js/divi.js +1 -1
- assets/admin/js/elementor.js +1 -1
- assets/admin/js/gutenberg.js +1 -1
- assets/admin/js/rank-math-app.js +1 -1
- includes/admin/class-ask-review.php +1 -4
- includes/admin/class-pro-notice.php +89 -19
- includes/class-update-email.php +1 -1
- includes/modules/schema/class-frontend.php +1 -1
- includes/modules/schema/class-jsonld.php +4 -0
- rank-math.php +2 -2
- readme.txt +10 -3
- vendor/composer/ClassLoader.php +12 -105
- vendor/composer/InstalledVersions.php +5 -5
- vendor/composer/installed.json +7 -7
- vendor/composer/installed.php +5 -5
- vendor/mythemeshop/wordpress-helpers/src/admin/class-list-table.php +2 -2
- vendor/mythemeshop/wordpress-helpers/src/helpers/class-wordpress.php +1 -1
- vendor/mythemeshop/wordpress-helpers/wordpress-helpers.php +1 -1
assets/admin/js/divi.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=66)}({0:function(t,e){t.exports=lodash},1:function(t,e){t.exports=wp.data},13:function(t,e){t.exports=wp.url},2:function(t,e){t.exports=jQuery},21:function(t,e){t.exports=wp.mediaUtils},3:function(t,e){t.exports=wp.hooks},4:function(t,e){t.exports=wp.i18n},5:function(t,e){t.exports=rankMathAnalyzer},6:function(t,e){t.exports=wp.element},66:function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"updateKeywords",(function(){return x})),r.d(n,"updatePillarContent",(function(){return B})),r.d(n,"toggleFrontendScore",(function(){return U})),r.d(n,"updateAnalysisScore",(function(){return F})),r.d(n,"updateCanonicalUrl",(function(){return N})),r.d(n,"updateAdvancedRobots",(function(){return $})),r.d(n,"updateRobots",(function(){return H})),r.d(n,"updateBreadcrumbTitle",(function(){return K})),r.d(n,"resetDirtyMetadata",(function(){return z})),r.d(n,"updateFacebookTitle",(function(){return L})),r.d(n,"updateFacebookDescription",(function(){return G})),r.d(n,"updateFacebookImage",(function(){return V})),r.d(n,"updateFacebookImageID",(function(){return Q})),r.d(n,"updateFacebookHasOverlay",(function(){return W})),r.d(n,"updateFacebookImageOverlay",(function(){return q})),r.d(n,"updateAppData",(function(){return R})),r.d(n,"updateAppUi",(function(){return C})),r.d(n,"updatePostID",(function(){return Y})),r.d(n,"updatePermalink",(function(){return J})),r.d(n,"updateTitle",(function(){return X})),r.d(n,"updateDescription",(function(){return Z})),r.d(n,"updateFeaturedImage",(function(){return tt})),r.d(n,"updatePrimaryTermID",(function(){return et})),r.d(n,"updateRedirection",(function(){return rt})),r.d(n,"updateRedirectionItem",(function(){return nt})),r.d(n,"resetRedirection",(function(){return at})),r.d(n,"updateHasRedirect",(function(){return it})),r.d(n,"updateSerpTitle",(function(){return lt})),r.d(n,"updateSerpSlug",(function(){return dt})),r.d(n,"updateSerpDescription",(function(){return ft})),r.d(n,"toggleSnippetEditor",(function(){return mt})),r.d(n,"updateSnippetPreviewType",(function(){return ht})),r.d(n,"toggleTrendsCta",(function(){return gt})),r.d(n,"updateTwitterUseFacebook",(function(){return bt})),r.d(n,"updateTwitterCardType",(function(){return yt})),r.d(n,"updateTwitterTitle",(function(){return vt})),r.d(n,"updateTwitterDescription",(function(){return kt})),r.d(n,"updateTwitterAuthor",(function(){return wt})),r.d(n,"updateTwitterImageID",(function(){return _t})),r.d(n,"updateTwitterImage",(function(){return Ot})),r.d(n,"updateTwitterHasOverlay",(function(){return St})),r.d(n,"updateTwitterImageOverlay",(function(){return jt})),r.d(n,"updateTwitterPlayerUrl",(function(){return Tt})),r.d(n,"updateTwitterPlayerSize",(function(){return Dt})),r.d(n,"updateTwitterPlayerStreamUrl",(function(){return It})),r.d(n,"updateTwitterPlayerStreamCtype",(function(){return Pt})),r.d(n,"updateTwitterAppDescription",(function(){return At})),r.d(n,"updateTwitterAppIphoneID",(function(){return Et})),r.d(n,"updateTwitterAppIphoneName",(function(){return Mt})),r.d(n,"updateTwitterAppIphoneUrl",(function(){return Rt})),r.d(n,"updateTwitterAppIpadID",(function(){return Ct})),r.d(n,"updateTwitterAppIpadName",(function(){return xt})),r.d(n,"updateTwitterAppIpadUrl",(function(){return Bt})),r.d(n,"updateTwitterAppGoogleplayID",(function(){return Ut})),r.d(n,"updateTwitterAppGoogleplayName",(function(){return Ft})),r.d(n,"updateTwitterAppGoogleplayUrl",(function(){return Nt})),r.d(n,"updateTwitterAppCountry",(function(){return $t})),r.d(n,"toggleLoaded",(function(){return Ht})),r.d(n,"updateSelectedKeyword",(function(){return Kt})),r.d(n,"refreshResults",(function(){return zt})),r.d(n,"setVersion",(function(){return Lt})),r.d(n,"toggleIsDiviPageSettingsBarActive",(function(){return Gt})),r.d(n,"toggleIsDiviRankMathModalActive",(function(){return Vt})),r.d(n,"toggleSchemaEditor",(function(){return Jt})),r.d(n,"toggleSchemaTemplates",(function(){return Xt})),r.d(n,"schemaUpdated",(function(){return Zt})),r.d(n,"setEditingSchemaId",(function(){return te})),r.d(n,"setEditorTab",(function(){return ee})),r.d(n,"setTemplateTab",(function(){return re})),r.d(n,"updateEditSchemas",(function(){return ne})),r.d(n,"updateSchemas",(function(){return ae})),r.d(n,"updateEditSchema",(function(){return ie})),r.d(n,"saveSchema",(function(){return oe})),r.d(n,"deleteSchema",(function(){return ce})),r.d(n,"saveTemplate",(function(){return se})),r.d(n,"updateKeywordsData",(function(){return ue})),r.d(n,"updateAIScore",(function(){return pe}));var a={};r.r(a),r.d(a,"appData",(function(){return be})),r.d(a,"appUi",(function(){return _e}));var i={};r.r(i),r.d(i,"getAppData",(function(){return Oe})),r.d(i,"getDirtyMetadata",(function(){return Se})),r.d(i,"getAnalysisScore",(function(){return je})),r.d(i,"getKeywords",(function(){return Te})),r.d(i,"getPillarContent",(function(){return De})),r.d(i,"getRobots",(function(){return Ie})),r.d(i,"getAdvancedRobots",(function(){return Pe})),r.d(i,"getCanonicalUrl",(function(){return Ae})),r.d(i,"getBreadcrumbTitle",(function(){return Ee})),r.d(i,"getRichSnippets",(function(){return Me})),r.d(i,"getShowScoreFrontend",(function(){return Re})),r.d(i,"isLoaded",(function(){return Ce})),r.d(i,"getSelectedKeyword",(function(){return xe})),r.d(i,"isRefreshing",(function(){return Be})),r.d(i,"isPro",(function(){return Ue})),r.d(i,"isDiviPageSettingsBarActive",(function(){return Fe})),r.d(i,"isDiviRankMathModalActive",(function(){return Ne})),r.d(i,"getFacebookTitle",(function(){return $e})),r.d(i,"getFacebookDescription",(function(){return He})),r.d(i,"getFacebookAuthor",(function(){return Ke})),r.d(i,"getFacebookImageID",(function(){return ze})),r.d(i,"getFacebookImage",(function(){return Le})),r.d(i,"getFacebookHasOverlay",(function(){return Ge})),r.d(i,"getFacebookImageOverlay",(function(){return Ve})),r.d(i,"getPostID",(function(){return Qe})),r.d(i,"getTitle",(function(){return We})),r.d(i,"getPermalink",(function(){return qe})),r.d(i,"getDescription",(function(){return Ye})),r.d(i,"getFeaturedImage",(function(){return Je})),r.d(i,"getFeaturedImageHtml",(function(){return Xe})),r.d(i,"getPrimaryTermID",(function(){return Ze})),r.d(i,"getRedirectionID",(function(){return tr})),r.d(i,"getRedirectionType",(function(){return er})),r.d(i,"getRedirectionUrl",(function(){return rr})),r.d(i,"getRedirectionItem",(function(){return nr})),r.d(i,"hasRedirect",(function(){return ar})),r.d(i,"getSerpTitle",(function(){return or})),r.d(i,"getSerpSlug",(function(){return cr})),r.d(i,"getSerpDescription",(function(){return sr})),r.d(i,"isSnippetEditorOpen",(function(){return ur})),r.d(i,"getSnippetPreviewType",(function(){return pr})),r.d(i,"isTrendsCtaOpen",(function(){return lr})),r.d(i,"isSchemaEditorOpen",(function(){return dr})),r.d(i,"isSchemaTemplatesOpen",(function(){return fr})),r.d(i,"hasSchemaUpdated",(function(){return mr})),r.d(i,"getSchemas",(function(){return hr})),r.d(i,"getEditSchemas",(function(){return gr})),r.d(i,"getEditingSchema",(function(){return br})),r.d(i,"getPreviewSchema",(function(){return yr})),r.d(i,"getEditorTab",(function(){return vr})),r.d(i,"getTemplateTab",(function(){return kr})),r.d(i,"getTwitterUseFacebook",(function(){return wr})),r.d(i,"getTwitterCardType",(function(){return _r})),r.d(i,"getTwitterTitle",(function(){return Or})),r.d(i,"getTwitterDescription",(function(){return Sr})),r.d(i,"getTwitterAuthor",(function(){return jr})),r.d(i,"getTwitterImageID",(function(){return Tr})),r.d(i,"getTwitterImage",(function(){return Dr})),r.d(i,"getTwitterHasOverlay",(function(){return Ir})),r.d(i,"getTwitterImageOverlay",(function(){return Pr})),r.d(i,"getTwitterAppDescription",(function(){return Ar})),r.d(i,"getTwitterAppIphoneID",(function(){return Er})),r.d(i,"getTwitterAppIphoneName",(function(){return Mr})),r.d(i,"getTwitterAppIphoneUrl",(function(){return Rr})),r.d(i,"getTwitterAppIpadID",(function(){return Cr})),r.d(i,"getTwitterAppIpadName",(function(){return xr})),r.d(i,"getTwitterAppIpadUrl",(function(){return Br})),r.d(i,"getTwitterAppGoogleplayID",(function(){return Ur})),r.d(i,"getTwitterAppGoogleplayName",(function(){return Fr})),r.d(i,"getTwitterAppGoogleplayUrl",(function(){return Nr})),r.d(i,"getTwitterAppCountry",(function(){return $r})),r.d(i,"getTwitterPlayerUrl",(function(){return Hr})),r.d(i,"getTwitterPlayerSize",(function(){return Kr})),r.d(i,"getTwitterPlayerStream",(function(){return zr})),r.d(i,"getTwitterPlayerStreamCtype",(function(){return Lr})),r.d(i,"getKeywordsData",(function(){return Gr})),r.d(i,"getContentAIScore",(function(){return Vr}));var o=r(9),c=r.n(o),s=r(1),u=r(21),p=r(6),l=r(3),d=r(7),f=Object(d.createSlotFill)("RankMathAfterEditor"),m=f.Fill,h=f.Slot,g=function(t){var e=t.children,r=t.className;return wp.element.createElement(m,null,wp.element.createElement(d.PanelRow,{className:r},e))};g.Slot=h;var b=g,y=Object(d.createSlotFill)("RankMathAdvancedTab"),v=y.Fill,k=y.Slot,w=function(t){var e=t.children,r=t.className;return wp.element.createElement(v,null,wp.element.createElement(d.PanelRow,{className:r},e))};w.Slot=k;var _=w,O=Object(d.createSlotFill)("RankMathAfterFocusKeyword"),S=O.Fill,j=O.Slot,T=function(t){var e=t.children,r=t.className;return wp.element.createElement(S,null,wp.element.createElement("div",{className:r},e))};T.Slot=j;var D=T,I=r(5),P=r(2),A=r.n(P);function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var M=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.map=null}var e,r,n;return e=t,(r=[{key:"swap",value:function(t,e){var r=this;if(!(t=t||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return t.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(t){return r.replace(e,t)})).trim()}},{key:"replace",value:function(t,e){var r=e.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():A()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(t=t||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in t?t[r]:"")}},{key:"getMap",value:function(){var t=this;return null!==this.map||(this.map={},A.a.each(rankMath.variables,(function(e,r){e=e.toLowerCase().replace(/%+/g,"").split("(")[0],t.map[e]=r.example}))),this.map}},{key:"setVariable",value:function(t,e){null!==this.map?this.map[t]=e:void 0!==rankMath.variables[t]&&(rankMath.variables[t].example=e)}}])&&E(e.prototype,r),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function R(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=Object(l.applyFilters)("rank_math_sanitize_data",e,t,r),null!==n&&(n=Object(l.applyFilters)("rank_math_sanitize_meta_value",n,t,r)),n=null===n?e:n,Object(l.doAction)("rank_math_data_changed",t,e,r),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:r,metaValue:n}}function C(t,e){return Object(l.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function x(t){return M.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),R("keywords",t,"rank_math_focus_keyword")}function B(t){return R("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function U(t){return R("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function F(t){return R("score",t,"rank_math_seo_score")}function N(t){return R("canonicalUrl",t,"rank_math_canonical_url")}function $(t){return R("advancedRobots",t,"rank_math_advanced_robots")}function H(t){return R("robots",t,"rank_math_robots",Object.keys(t))}function K(t){return R("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function z(){return R("dirtyMetadata",{})}function L(t){return R("facebookTitle",t,"rank_math_facebook_title")}function G(t){return R("facebookDescription",t,"rank_math_facebook_description")}function V(t){return R("facebookImage",t,"rank_math_facebook_image")}function Q(t){return R("facebookImageID",t,"rank_math_facebook_image_id")}function W(t){return R("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function q(t){return R("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function Y(t){return rankMath.objectID=t,R("postID",t)}function J(t){return R("permalink",t,"permalink")}function X(t){return R("title",t,"rank_math_title")}function Z(t){return R("description",t,"rank_math_description")}function tt(t){return R("featuredImage",t)}function et(t,e){return R("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function rt(t,e){return R(t,e)}function nt(t){return C("redirectionItem",t)}function at(){return C("redirectionItem",{})}function it(t){return C("hasRedirect",t)}var ot=r(0),ct=document.createElement("div"),st=function(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),ct.innerHTML=t,t=ct.textContent,ct.textContent=""),t},ut=function(t,e){return t=(t=I.Helpers.cleanText(t)).replace(/\r?\n|\r/g," "),e?Object(ot.truncate)(t,{length:e,separator:" "}):t},pt=function(t){var e=rankMathEditor.assessor.dataCollector.getData(),r=e.excerpt,n=e.content?function(t){if(Object(ot.isEmpty)(t))return"";t=Object(ot.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=Object(ot.filter)(I.Helpers.matchParagraphs(t,!0,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=Object(ot.filter)(e,(function(t){return Object(ot.includes)(t.toLowerCase(),r.toLowerCase())}));if(0<n.length)return ut(n[0],160)}return ut(e[0],160)}(e.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(ot.isUndefined)(r)||Object(ot.isEmpty)(r)?n:Object(ot.unescape)(r);if(M.setVariable("excerpt",a),M.setVariable("seo_description",a),""!==(t=st(Object(l.applyFilters)("rankMath/description",t))))return I.Helpers.cleanText(t);if(!Object(ot.isUndefined)(r)&&!Object(ot.isEmpty)(r))return I.Helpers.cleanText(r);var i=Object(ot.unescape)(rankMath.assessor.serpData.descriptionTemplate);return Object(ot.isUndefined)(i)||""===i?n:I.Helpers.cleanText(i)};function lt(t){return t=M.swap(""!==t?t:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),C("serpTitle",t)}function dt(t){return t=""!==t?t:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),C("serpSlug",t)}function ft(t){return t=M.swap(pt(t)),rankMathEditor.refresh("description"),C("serpDescription",t)}function mt(t){return C("isSnippetEditorOpen",t)}function ht(t){return C("snippetPreviewType",t)}function gt(t){return C("isTrendsCtaOpen",t)}function bt(t){return R("twitterUseFacebook",t,"rank_math_twitter_use_facebook",!0===t?"on":"off")}function yt(t){return R("twitterCardType",t,"rank_math_twitter_card_type")}function vt(t){return R("twitterTitle",t,"rank_math_twitter_title")}function kt(t){return R("twitterDescription",t,"rank_math_twitter_description")}function wt(t){return R("twitterAuthor",t,"rank_math_twitter_author")}function _t(t){return R("twitterImageID",t,"rank_math_twitter_image_id")}function Ot(t){return R("twitterImage",t,"rank_math_twitter_image")}function St(t){return R("twitterHasOverlay",t,"rank_math_twitter_enable_image_overlay",!0===t?"on":"off")}function jt(t){return R("twitterImageOverlay",t,"rank_math_twitter_image_overlay")}function Tt(t){return R("twitterPlayerUrl",t,"rank_math_twitter_player_url")}function Dt(t){return R("twitterPlayerSize",t,"rank_math_twitter_player_size")}function It(t){return R("twitterPlayerStream",t,"rank_math_twitter_player_stream")}function Pt(t){return R("twitterPlayerStreamCtype",t,"rank_math_twitter_player_stream_ctype")}function At(t){return R("twitterAppDescription",t,"rank_math_twitter_app_description")}function Et(t){return R("twitterAppIphoneID",t,"rank_math_twitter_app_iphone_id")}function Mt(t){return R("twitterAppIphoneName",t,"rank_math_twitter_app_iphone_name")}function Rt(t){return R("twitterAppIphoneUrl",t,"rank_math_twitter_app_iphone_url")}function Ct(t){return R("twitterAppIpadID",t,"rank_math_twitter_app_ipad_id")}function xt(t){return R("twitterAppIpadName",t,"rank_math_twitter_app_ipad_name")}function Bt(t){return R("twitterAppIpadUrl",t,"rank_math_twitter_app_ipad_url")}function Ut(t){return R("twitterAppGoogleplayID",t,"rank_math_twitter_app_googleplay_id")}function Ft(t){return R("twitterAppGoogleplayName",t,"rank_math_twitter_app_googleplay_name")}function Nt(t){return R("twitterAppGoogleplayUrl",t,"rank_math_twitter_app_googleplay_url")}function $t(t){return R("twitterAppCountry",t,"rank_math_twitter_app_country")}function Ht(t){return C("isLoaded",t)}function Kt(t){return C("selectedKeyword",t)}function zt(){return C("refreshResults",Date.now())}function Lt(){return C("isPro",!0)}function Gt(t){return C("isDiviPageSettingsBarActive",t)}function Vt(t){return C("isDiviRankMathModalActive",t)}var Qt=r(4);function Wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(r),!0).forEach((function(e){Yt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jt(t){return C("isSchemaEditorOpen",t)}function Xt(t){return C("isSchemaTemplatesOpen",t)}function Zt(t){return C("schemaUpdated",t)}function te(t){return C("editingSchemaId",t)}function ee(t){return C("editorTab",t)}function re(t){return C("templateTab",t)}function ne(t){return C("editSchemas",t)}function ae(t){return R("schemas",t)}function ie(t,e){var r=qt({},Object(s.select)("rank-math").getEditSchemas());return r[t]=e,C("editSchemas",r)}function oe(t,e){var r=qt({},Object(s.select)("rank-math").getSchemas());return r[t]=e,R("schemas",r)}function ce(t){var e=qt({},Object(s.select)("rank-math").getSchemas());return delete e[t],Object(l.doAction)("rank_math_schema_trash",t),R("schemas",e,"rank_math_delete_"+t,"")}function se(t,e,r){return c()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:t,postId:r}}).then((function(r){e({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){e({showNotice:!1}),Object(ot.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(Qt.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:t,title:t.metadata.title,type:t["@type"]})})),e({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function ue(t){return C("keywordsData",t)}function pe(t){return R("contentAIScore",t,"rank_math_contentai_score")}function le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function de(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?le(Object(r),!0).forEach((function(e){fe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var me=rankMath.assessor.serpData,he=rankMath.assessor.hasRedirection,ge={postID:null,title:me.title?me.title:me.titleTemplate,description:me.description,keywords:me.focusKeywords,pillarContent:me.pillarContent,featuredImage:"",permalink:!1,primaryTerm:me.primaryTerm,robots:me.robots,advancedRobots:me.advancedRobots,canonicalUrl:me.canonicalUrl,breadcrumbTitle:me.breadcrumbTitle,showScoreFrontend:me.showScoreFrontend,redirectionID:he?Object(ot.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:he?Object(ot.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:he?Object(ot.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:me.facebookTitle,facebookImage:me.facebookImage,facebookImageID:me.facebookImageID,facebookAuthor:me.facebookAuthor,facebookDescription:me.facebookDescription,facebookHasOverlay:me.facebookHasOverlay,facebookImageOverlay:me.facebookImageOverlay,twitterTitle:me.twitterTitle,twitterImage:me.twitterImage,twitterAuthor:me.twitterAuthor,twitterImageID:me.twitterImageID,twitterCardType:me.twitterCardType,twitterUseFacebook:me.twitterUseFacebook,twitterDescription:me.twitterDescription,twitterHasOverlay:me.twitterHasOverlay,twitterImageOverlay:me.twitterImageOverlay,twitterPlayerUrl:me.twitterPlayerUrl,twitterPlayerSize:me.twitterPlayerSize,twitterPlayerStream:me.twitterPlayerStream,twitterPlayerStreamCtype:me.twitterPlayerStreamCtype,twitterAppDescription:me.twitterAppDescription,twitterAppIphoneName:me.twitterAppIphoneName,twitterAppIphoneID:me.twitterAppIphoneID,twitterAppIphoneUrl:me.twitterAppIphoneUrl,twitterAppIpadName:me.twitterAppIpadName,twitterAppIpadID:me.twitterAppIpadID,twitterAppIpadUrl:me.twitterAppIpadUrl,twitterAppGoogleplayName:me.twitterAppGoogleplayName,twitterAppGoogleplayID:me.twitterAppGoogleplayID,twitterAppGoogleplayUrl:me.twitterAppGoogleplayUrl,twitterAppCountry:me.twitterAppCountry,schemas:Object(ot.get)(rankMath,"schemas",{}),score:0,contentAIScore:{},dirtyMetadata:{}};function be(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge,r=arguments.length>1?arguments[1]:void 0,n=de({},e.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?de(de({},e),{},{dirtyMetadata:r.value}):de(de({},e),{},(fe(t={},r.key,r.value),fe(t,"dirtyMetadata",n),t)):e}function ye(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ve(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(r),!0).forEach((function(e){ke(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ke(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var we={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!Object(ot.isEmpty)(Object(ot.get)(rankMath.assessor,"redirection.id",""))&&!Object(ot.isEmpty)(Object(ot.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1,keywordsData:Object(ot.get)(rankMath,"ca_data",[])};function _e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?ve(ve({},t),{},ke({},e.key,e.value)):t}function Oe(t){return t.appData}function Se(t){return t.appData.dirtyMetadata}function je(t){return t.appData.score}function Te(t){return t.appData.keywords}function De(t){return t.appData.pillarContent}function Ie(t){return t.appData.robots}function Pe(t){return t.appData.advancedRobots}function Ae(t){return t.appData.canonicalUrl}function Ee(t){return t.appData.breadcrumbTitle}function Me(t){return"todo"}function Re(t){return t.appData.showScoreFrontend}function Ce(t){return t.appUi.isLoaded}function xe(t){return t.appUi.selectedKeyword}function Be(t){return t.appUi.refreshResults}function Ue(t){return t.appUi.isPro}function Fe(t){return t.appUi.isDiviPageSettingsBarActive}function Ne(t){return t.appUi.isDiviRankMathModalActive}function $e(t){return t.appData.facebookTitle}function He(t){return t.appData.facebookDescription}function Ke(t){return t.appData.facebookAuthor}function ze(t){return t.appData.facebookImageID}function Le(t){return t.appData.facebookImage}function Ge(t){return t.appData.facebookHasOverlay}function Ve(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function Qe(t){return t.appData.postID}function We(t){return t.appData.title}function qe(t){return t.appData.permalink}function Ye(t){return t.appData.description}function Je(t){return t.appData.featuredImage}function Xe(t){var e=t.appData.featuredImage;return'<img src="'.concat(e.source_url,'" alt="').concat(e.alt_text,'" >')}function Ze(t){return t.appData.primaryTerm}function tr(t){return t.appData.redirectionID}function er(t){return t.appData.redirectionType}function rr(t){return t.appData.redirectionUrl}function nr(t){return t.appUi.redirectionItem}function ar(t){return t.appUi.hasRedirect}var ir=r(13);function or(t){return st(t.appUi.serpTitle)}function cr(t){return Object(ir.safeDecodeURIComponent)(t.appUi.serpSlug)}function sr(t){return t.appUi.serpDescription}function ur(t){return t.appUi.isSnippetEditorOpen}function pr(t){return t.appUi.snippetPreviewType}function lr(t){return t.appUi.isTrendsCtaOpen}function dr(t){return t.appUi.isSchemaEditorOpen}function fr(t){return t.appUi.isSchemaTemplatesOpen}function mr(t){return t.appUi.schemaUpdated}function hr(t){return t.appData.schemas}function gr(t){return t.appUi.editSchemas}function br(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function yr(t){return t.appData.schemas[t.appUi.editingSchemaId]}function vr(t){return t.appUi.editorTab}function kr(t){return t.appUi.templateTab}function wr(t){return t.appData.twitterUseFacebook}function _r(t){return t.appData.twitterCardType}function Or(t){return t.appData.twitterTitle}function Sr(t){return t.appData.twitterDescription}function jr(t){return t.appData.twitterAuthor}function Tr(t){return t.appData.twitterImageID}function Dr(t){return t.appData.twitterImage}function Ir(t){return t.appData.twitterHasOverlay}function Pr(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function Ar(t){return t.appData.twitterAppDescription}function Er(t){return t.appData.twitterAppIphoneID}function Mr(t){return t.appData.twitterAppIphoneName}function Rr(t){return t.appData.twitterAppIphoneUrl}function Cr(t){return t.appData.twitterAppIpadID}function xr(t){return t.appData.twitterAppIpadName}function Br(t){return t.appData.twitterAppIpadUrl}function Ur(t){return t.appData.twitterAppGoogleplayID}function Fr(t){return t.appData.twitterAppGoogleplayName}function Nr(t){return t.appData.twitterAppGoogleplayUrl}function $r(t){return t.appData.twitterAppCountry}function Hr(t){return t.appData.twitterPlayerUrl}function Kr(t){return t.appData.twitterPlayerSize}function zr(t){return t.appData.twitterPlayerStream}function Lr(t){return t.appData.twitterPlayerStreamCtype}function Gr(t){return t.appUi.keywordsData}function Vr(t){return t.appData.contentAIScore}var Qr=Object(s.registerStore)("rank-math",{reducer:Object(s.combineReducers)(a),selectors:i,actions:n});function Wr(){return Qr}function qr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Yr=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer=new I.Analyzer({i18n:Qt,analyses:rankMath.assessor.researchesTests}),this.dataCollector=e,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(l.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(l.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(l.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var e,r,n;return e=t,(r=[{key:"updateKeywordResult",value:function(t,e){rankMathEditor.resultManager.update(t,{keywordNotUsed:e}),t===this.getSelectedKeyword().toLowerCase()&&Object(s.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(t,e){return"schemas"===e||Object(ot.isObject)(t)||Object(ot.isEmpty)(t)?t:I.Helpers.sanitizeAppData(t)}},{key:"getPaper",value:function(t,e){var r=Wr().getState(),n=this.dataCollector.getData(),a=new I.Paper("",{locale:rankMath.localeFull});return a.setTitle(r.appUi.serpTitle),a.setPermalink(n.slug),a.setDescription(r.appUi.serpDescription),a.setUrl(n.permalink),a.setText(Object(ot.unescape)(Object(l.applyFilters)("rank_math_content",n.content))),a.setKeyword(t),a.setKeywords(e),Object(ot.isUndefined)(n.featuredImage)||(a.setThumbnail(n.featuredImage.source_url),a.setThumbnailAltText(I.Helpers.removeDiacritics(n.featuredImage.alt_text))),a}},{key:"registerRefresh",value:function(){var t=this;this.refresh=Object(ot.debounce)((function(e){var r=Wr().getState();if(!1!==r.appUi.isLoaded){var n=r.appData.keywords.split(","),a=[];Object(l.doAction)("rank_math_"+e+"_refresh"),n.map((function(e,r){var i=t.getPaper(I.Helpers.removeDiacritics(e),n),o=0===r?rankMath.assessor.researchesTests:t.filterTests(t.getSecondaryKeywordTests());a.push(t.analyzer.analyzeSome(o,i).then((function(t){rankMathEditor.resultManager.update(i.getKeyword(),t,0===r),0===r&&Object(s.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(i.getKeyword()))}))),Promise.all(a).then((function(){Object(s.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var t=Wr().getState().appData.keywords;return I.Helpers.removeDiacritics(t.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var t=Wr().getState(),e=""!==t.appUi.selectedKeyword.data.value?t.appUi.selectedKeyword.data.value:t.appData.keywords.split(",")[0];return I.Helpers.removeDiacritics(e)}},{key:"getResearch",value:function(t){return this.analyzer.researcher.getResearch(t)}},{key:"filterTests",value:function(t){return Object(ot.intersection)(t,rankMath.assessor.researchesTests)}}])&&qr(e.prototype,r),n&&qr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Jr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Xr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rankMath.is_front_page&&(Object(l.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(l.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var e,r,n;return e=t,(r=[{key:"contentLength",value:function(t){return{hasScore:t.hasScore,failed:Object(Qt.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(Qt.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(Qt.sprintf)(Object(Qt.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(Qt.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&Jr(e.prototype,r),n&&Jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Zr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var tn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,n;return e=t,(r=[{key:"setup",value:function(t){Wr(),this.resultManager=new I.ResultManager,this.assessor=new Yr(t),new Xr,Object(l.doAction)("rank_math_loaded")}},{key:"refresh",value:function(t){this.assessor.refresh(t)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(t){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(t){throw"Implement the function"}}])&&Zr(e.prototype,r),n&&Zr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function en(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?en(Object(r),!0).forEach((function(e){nn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function an(t,e,r,n,a,i,o){try{var c=t[i](o),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,a)}function on(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){an(i,n,a,o,c,"next",t)}function c(t){an(i,n,a,o,c,"throw",t)}o(void 0)}))}}function cn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var sn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initialize=!1,this.etSettingsData={title:"",excerpt:"",featuredImage:""},this._featuredImage=null,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToDivi()}var e,r,n,a,i,o;return e=t,r=[{key:"collectPostData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return parseInt(Object(ot.get)(ETBuilderBackendDynamic,"postId",0))}},{key:"getTitle",value:function(){return this.etSettingsData.title}},{key:"setTitle",value:function(t){this.etSettingsData.title=t}},{key:"getContent",value:function(){var t=[];return this.getContentArea().find(".et_pb_section").each((function(){t.push(A()(this).html())})),t.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;if(this._etAppFrameElem||(this._etAppFrameElem=Object(ot.get)(ET_Builder,"Frames.app.frameElement",document.querySelector("iframe#et-fb-app-frame"))),!this._etAppFrameElem)return A()("<div />");var t=A()(this._etAppFrameElem.contentWindow.document.querySelector("#et-fb-app"));return t.length<1?A()("<div />"):(this._contentArea=t,t)}},{key:"getExcerpt",value:function(){return this.etSettingsData.excerpt}},{key:"setExcerpt",value:function(t){this.etSettingsData.excerpt=t}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":rankMath.homeUrl+"/"+this.getSlug()}},{key:"getSlug",value:function(){return Object(ir.safeDecodeURIComponent)(Object(s.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){if(this._featuredImage)return this._featuredImage;this.setFeaturedImage()}},{key:"setFeaturedImage",value:(o=on(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==e){t.next=4;break}return t.next=3,this.fetchFeaturedImageId();case 3:e=t.sent;case 4:if(!this.isValidMediaId(e)||!e){t.next=10;break}return t.next=7,this.fetchWpMedia(e);case 7:this._featuredImage=t.sent,t.next=11;break;case 10:this._featuredImage=!1;case 11:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"fetchFeaturedImageId",value:(i=on(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,t.next=3,c()({path:"/wp-json/rankmath/v1/getFeaturedImageId",method:"POST",data:{postId:Object(ot.get)(ETBuilderBackendDynamic,"postId",0)}}).then((function(t){return e=!!t.success&&t.featImgId}));case 3:return t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"fetchWpMedia",value:(a=on(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},t.next=3,c()({path:"/wp-json/wp/v2/media/".concat(e),method:"GET"}).then((function(t){return r=t}));case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),function(t){return a.apply(this,arguments)})},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0<t}},{key:"subscribeToDivi",value:function(){var t=this;this.setTitle(Object(ot.get)(ETBuilderBackendDynamic,"postTitle","")),this.setExcerpt(Object(ot.get)(ETBuilderBackendDynamic,"postMeta.post_excerpt","")),this.setFeaturedImage(Object(ot.get)(ETBuilderBackendDynamic,"currentPage.thumbnailId",0)),Object(s.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(ot.debounce)(this.refresh,500),Object(s.subscribe)(this.subscriber),A()(".et-fb-page-settings-bar").find(".et-fb-button--save-draft, .et-fb-button--publish").on("click",(function(){setTimeout((function(){t.savePost(),t.saveRedirection(),t.saveSchemas()}),500)})),Object(l.addFilter)("et.builder.store.setting.update","rank-math",(function(e,r){if(e)switch(r){case"et_pb_post_settings_title":t.setTitle(e),t.subscriber();break;case"et_pb_post_settings_excerpt":t.setExcerpt(e),t.subscriber();break;case"et_pb_post_settings_image":t.setFeaturedImage(parseInt(e)),t.subscriber()}return e})),window.addEventListener("message",(function(e){"et_fb_section_content_change"===e.data.etBuilderEvent&&t.subscriber()}))}},{key:"refresh",value:function(){var t=rn({},this._data);this._data=this.collectPostData(),this.handleEditorChange(t),!Object(ot.isEqual)(t,this._data)&&t.id&&Object(s.dispatch)("rank-math").refreshResults()}},{key:"savePost",value:function(){var t=Object(s.select)("rank-math").getDirtyMetadata();Object(ot.isEmpty)(t)||(c()({method:"POST",path:"/wp-json/rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t}}).then((function(t){Object(ot.isString)(t.slug)&&Object(s.dispatch)("rank-math").updatePermalink(t.slug),Object(l.doAction)("rank_math_metadata_updated",t)})),Object(s.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var t=Object(s.select)("rank-math").getRedirectionItem();Object(ot.isEmpty)(t)||(t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink(),c()({method:"POST",path:"/wp-json/rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?Object(s.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===t.action&&Object(s.dispatch)("rank-math").updateRedirection("redirectionID",t.id)})),Object(s.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var t=Object(s.select)("rank-math").getSchemas();if(!Object(ot.isEmpty)(t)&&!Object(ot.isEqual)(t,Object(ot.get)(rankMath,"schemas",{}))){var e=Object(s.select)("rank-math").getEditSchemas();c()({method:"POST",path:"/wp-json/rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:t}}).then((function(r){if(!Object(ot.isEmpty)(r)){var n=rn({},t),a=rn({},e);Object(ot.map)(r,(function(t,e){n["schema-"+t]=rn({},n[e]),a["schema-"+t]=rn({},a[e]),delete n[e],delete a[e]})),Object(s.dispatch)("rank-math").updateSchemas(n),Object(s.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(t){var e=this,r={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(ot.isInteger)(t.id))return this.initialize?void Object(ot.forEach)(r,(function(r,n){e._data[n]!==t[n]&&e[r](e._data[n])})):(this.initialize=!0,Object(ot.forEach)(r,(function(t,r){e[t](e._data[r])})),void rankMathEditor.refresh("init"));Object(s.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(t){Object(s.dispatch)("rank-math").updatePostID(t),Object(s.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(t){M.setVariable("title",t),Object(s.dispatch)("rank-math").updateSerpTitle(Object(s.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(t){M.setVariable("excerpt",t),M.setVariable("excerpt_only",t),M.setVariable("wc_shortdesc",t),M.setVariable("seo_description",t),Object(s.dispatch)("rank-math").updateSerpDescription(Object(s.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(t){Object(s.dispatch)("rank-math").updateFeaturedImage(t),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(s.dispatch)("rank-math").updateSerpDescription(Object(s.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}],r&&cn(e.prototype,r),n&&cn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),un=sn,pn=r(8),ln=r.n(pn),dn=function(){return wp.element.createElement("span",{className:"rank-math-rm-modal-toggle-button-icon",style:{display:"block",fill:"rgb(255, 255, 255)",width:"0px",height:"0px",marginTop:"-10px",marginLeft:"-1px"}},wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))))},fn=function(){return wp.element.createElement("button",{type:"button","data-tip":"Rank Math SEO",onClick:function(){Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!Object(s.select)("rank-math").isDiviRankMathModalActive())},className:ln()("rank-math-rm-modal-toggle-button","et_fb_ignore_iframe","et-fb-button","et-fb-button--elevate","et-fb-button--primary","et-fb-button--round","et-fb-button--Tooltip"),style:{width:"40px",height:"40px"}},wp.element.createElement(dn,null))},mn=function(){return wp.element.createElement("div",{className:"rank-math-rm-settings-bar"},wp.element.createElement(fn,null))};function hn(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return gn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){c=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var bn={init:function(){this.cacheProps(),this.toggleBodyClasses(),this.initSettingsBar(),this.addEventListeners()},cacheProps:function(){this.$document=A()(document),this.$body=A()("body"),this.rmModalHiddingTimer=null,this.rmPrevModalActiveState=!1,this.rmSettingsBarMediaQuery=window.matchMedia("(min-width: 768px)"),this.rmSettingsBarRootSelector="#rank-math-rm-settings-bar-root",this.$rmSettingsBarRoot=A()(this.rmSettingsBarRootSelector).detach(),this.$etPageSettingsBar=A()(".et-fb-page-settings-bar"),this.$etPageSettingsBarToggleButton=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__toggle-button"),this.$etPageSettingsBarColumn=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__column"),this.etSettingsBarObserver=new MutationObserver(this.onEtSettingsBarClassAttrChange.bind(this))},toggleBodyClasses:function(){var t=this.isEtSettingsBarActive();this.$body.toggleClass("rank-math-et-settings-bar-is-active",t),this.$body.toggleClass("rank-math-et-settings-bar-is-inactive",!t)},initSettingsBar:function(){var t=this.getEtSettingsBarPosition();this.onRmSettingsBarMediaQueryChange(),Object(p.render)(Object(p.createElement)(mn),this.$rmSettingsBarRoot[0]),this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(t)),this.attachRmSettingsBar(t)},addEventListeners:function(){this.$document.on("click",this.onDocumentClick.bind(this)),this.rmSettingsBarMediaQuery.addListener(this.onRmSettingsBarMediaQueryChange.bind(this)),this.etSettingsBarObserver.observe(this.$etPageSettingsBar[0],{attributeFilter:["class"]})},onDocumentClick:function(t){this.hideModalOnOutsideClick(t.target)},onRmSettingsBarMediaQueryChange:function(){this.detachRmSettingsBar(),this.attachRmSettingsBar(this.getEtSettingsBarPosition())},onEtSettingsBarClassAttrChange:function(){var t=this.isEtSettingsBarActive(),e=this.getEtSettingsBarPosition();this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(e)),Object(s.dispatch)("rank-math").toggleIsDiviPageSettingsBarActive(t),this.toggleBodyClasses(),this.detachRmSettingsBar(),this.isEtSettingsBarDragged()?(this.rmPrevModalActiveState=Object(s.select)("rank-math").isDiviRankMathModalActive(),this.rmPrevModalActiveState&&(this.rmModalHiddingTimer=setTimeout((function(){Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}),200))):(clearTimeout(this.rmModalHiddingTimer),this.attachRmSettingsBar(e),Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(this.rmPrevModalActiveState||Object(s.select)("rank-math").isDiviRankMathModalActive()),this.rmPrevModalActiveState=!1)},attachRmSettingsBar:function(t){this.isRmSettingsBarAttached()||(this.toggleRmSettingsBarClassNames(t),this.isEtSettingsBarActive()?this.rmSettingsBarMediaQuery.matches?this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--main").append(this.$rmSettingsBarRoot):this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--left").prepend(this.$rmSettingsBarRoot):this.$etPageSettingsBarToggleButton.after(this.$rmSettingsBarRoot))},detachRmSettingsBar:function(){this.isRmSettingsBarAttached()&&(this.$rmSettingsBarRoot=this.$etPageSettingsBar.find(this.rmSettingsBarRootSelector).detach())},toggleRmSettingsBarClassNames:function(t){this.removePositionalClassNames(this.$rmSettingsBarRoot),this.$rmSettingsBarRoot.addClass("rank-math-rm-settings-bar-root-".concat(t)),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-mobile","rank-math-rm-settings-bar-root-is-mobile-".concat(t)].join(" "),!this.rmSettingsBarMediaQuery.matches),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-desktop","rank-math-rm-settings-bar-root-is-desktop-".concat(t)].join(" "),this.rmSettingsBarMediaQuery.matches)},isRmSettingsBarAttached:function(){return A.a.contains(document.documentElement,this.$rmSettingsBarRoot[0])},isEtSettingsBarActive:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--active")},isEtSettingsBarDragged:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--dragged")&&!this.isEtSettingsBarActive()},removePositionalClassNames:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=["".concat(e,"-left"),"".concat(e,"-right"),"".concat(e,"-top"),"".concat(e,"-top-left"),"".concat(e,"-top-right"),"".concat(e,"-bottom"),"".concat(e,"-bottom-left"),"".concat(e,"-bottom-right")].join("|"),n=new RegExp("(".concat(r,")$"),"gim");t.removeClass((function(t,e){var r,a=[],i=hn(e.split(" "));try{for(i.s();!(r=i.n()).done;){var o=r.value;n.test(o)&&a.push(o)}}catch(t){i.e(t)}finally{i.f()}return a}))},getEtSettingsBarPosition:function(){var t=this.$etPageSettingsBar;return t.hasClass("et-fb-page-settings-bar--horizontal")&&!t.hasClass("et-fb-page-settings-bar--top")?"bottom":t.hasClass("et-fb-page-settings-bar--top")&&!t.hasClass("et-fb-page-settings-bar--corner")?"top":t.hasClass("et-fb-page-settings-bar--bottom-corner")?t.hasClass("et-fb-page-settings-bar--left-corner")?"bottom-left":"bottom-right":t.hasClass("et-fb-page-settings-bar--top-corner")?t.hasClass("et-fb-page-settings-bar--left-corner")?"top-left":"top-right":t.hasClass("et-fb-page-settings-bar--vertical--right")?"right":t.hasClass("et-fb-page-settings-bar--vertical--left")?"left":""},hideModalOnOutsideClick:function(t){if(Object(s.select)("rank-math").isDiviRankMathModalActive()){var e=".rank-math-rm-modal";t.closest(e)||t.closest(".components-modal__screen-overlay.rank-math-modal-overlay")||t.contains(document.querySelector(e))||Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}}},yn=Object(s.withSelect)((function(t){return{primaryTermId:t("rank-math").getPrimaryTermID()}}))((function(t){var e=t.taxonomySlug,r=t.primaryTermId,n=t.options;if(n.length<2||!e)return null;return wp.element.createElement(d.SelectControl,{className:"rank-math-primary-term-select",label:Object(Qt.__)("Select Primary Term","rank-math"),value:r,options:n,onChange:function(t){Object(s.dispatch)("rank-math").updatePrimaryTermID(parseInt(t),e)}})}));function vn(t,e,r,n,a,i,o){try{var c=t[i](o),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,a)}function kn(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){vn(i,n,a,o,c,"next",t)}function c(t){vn(i,n,a,o,c,"throw",t)}o(void 0)}))}}function wn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var _n=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),A()(document).on("click",".et-fb-button--toggle-setting",(function(){clearTimeout(e.initRecursionTimer),e.attemptsRun=0,e.init.call(e)}))}var e,r,n,a,i;return e=t,r=[{key:"init",value:(i=kn(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==this.hasPostPrimaryTaxonomySupport){t.next=3;break}return t.next=3,this.cacheTaxonomyData();case 3:if(this.hasPostPrimaryTaxonomySupport){t.next=5;break}return t.abrupt("return");case 5:if(this.attemptsRun++,!(this.attemptsRun>this.maxAttempts)){t.next=8;break}return t.abrupt("return");case 8:this.cacheDom()?(this.renderContainer(),this.renderComponent(),this.bindEvents()):this.initRecursionTimer=setTimeout(this.init.bind(this),this.attemptInterval);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"cacheTaxonomyData",value:(a=kn(regeneratorRuntime.mark((function t(){var e,r,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Object(ot.get)(rankMath,"assessor.primaryTaxonomy.name")||"",r=Object(ot.get)(ETBuilderBackendDynamic,"getTaxonomies",{}),this.primaryTaxonomyTerms=r[e]||[],t.next=4,c()({path:"/wp-json/wp/v2/taxonomies"}).then((function(t){n.primaryTaxonomy=Object.keys(r).includes(e)&&t[e]?t[e]:{}}));case 4:this.hasPostPrimaryTaxonomySupport=!A.a.isEmptyObject(this.primaryTaxonomy),this.primaryTaxonomyValue=Object(ot.get)(ETBuilderBackendDynamic,"pageSettingsValues.et_pb_post_settings_".concat(this.primaryTaxonomy.rest_base),"");case 6:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"cacheDom",value:function(){return this.$diviSettingsModal=A()(document).find(".et-fb-modal__page-settings"),!!this.$diviSettingsModal.length&&(this.$diviTermSettingInputs=this.$diviSettingsModal.find(".et-fb-option--".concat(this.primaryTaxonomy.rest_base)),this.$diviTermSettingArea=this.$diviTermSettingInputs.parents(".et-fb-form__group"),this.$diviTermSettingArea.length||(this.$diviTermSettingArea=this.workaroundForFalseDiviTaxonomySelector()),this.$PrimaryTermSelectContainer=A()('<div id="rank-math-primary-term-input" />'),!0)}},{key:"workaroundForFalseDiviTaxonomySelector",value:function(){var t=this.primaryTaxonomy.name.toLowerCase();return this.$diviSettingsModal.find(".et-fb-form__label-text").filter((function(e,r){return A()(r).text().toLowerCase()===t})).parents(".et-fb-form__group")}},{key:"renderContainer",value:function(){this.$diviTermSettingArea.after(this.$PrimaryTermSelectContainer)}},{key:"renderComponent",value:function(t){var e={taxonomySlug:this.primaryTaxonomy.slug,options:this.formatActiveTerms(t)};Object(p.render)(Object(p.createElement)(yn,e),this.$PrimaryTermSelectContainer[0])}},{key:"bindEvents",value:function(){var t=this;Object(l.addFilter)("et.builder.store.setting.update","rank-math",(function(e,r){return"et_pb_post_settings_".concat(t.primaryTaxonomy.rest_base)===r&&t.renderComponent(e),e}))}},{key:"formatActiveTerms",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.primaryTaxonomyValue;return this.primaryTaxonomyTerms.length&&e.trim()?e.split(",").map((function(e){var r=Object(ot.find)(t.primaryTaxonomyTerms,["term_id",parseInt(e)])||{};return{label:r.name,value:r.term_id}})):[]}}],r&&wn(e.prototype,r),n&&wn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();_n.initRecursionTimer=void 0,_n.attemptsRun=0,_n.maxAttempts=10,_n.attemptInterval=1e3;var On=["className","children"];function Sn(){return Sn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sn.apply(this,arguments)}function jn(t,e){if(null==t)return{};var r,n,a=function(t,e){if(null==t)return{};var r,n,a={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}var Tn=function(t){var e=t.className,r=t.children,n=jn(t,On),a=ln()("rank-math-rm-modal-button",e);return wp.element.createElement("button",Sn({type:"button",className:a},n),r)},Dn=function(){return wp.element.createElement("div",{className:"et-fb-icon et-fb-icon--close",style:{fill:"rgb(255, 255, 255)",width:"28px",minWidth:"28px",height:"28px",margin:"-6px"}},wp.element.createElement("svg",{viewBox:"0 0 28 28",preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}))))},In=function(){var t=ln()("rank-math-rm-modal-header-discard-button");return wp.element.createElement(Tn,{className:t,onClick:function(){Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}},wp.element.createElement(Dn,null))},Pn=function(){var t=ln()("rank-math-rm-modal-header");return wp.element.createElement("header",{className:t},wp.element.createElement("div",{className:"rank-math-rm-modal-header"},wp.element.createElement("div",{className:"rank-math-rm-modal-header-title"},"Rank Math SEO"),wp.element.createElement("ul",{className:"rank-math-rm-modal-header-options"},wp.element.createElement("li",{className:"rank-math-rm-modal-header-option"},wp.element.createElement(In,null)))))},An=function(t){var e=t.children,r=ln()("rank-math-rm-modal-content","rank-math-sidebar-panel");return wp.element.createElement("div",{className:r},e)},En=Object(s.withSelect)((function(t){return{rmUiActive:(0,t("rank-math").isDiviRankMathModalActive)()}}))((function(t){var e=t.rmUiActive,r=ln()("rank-math-rm-modal",{"rank-math-rm-modal-is-hidden":!e}),n=ln()("rank-math-rm-modal-inner");return wp.element.createElement("div",{className:r},wp.element.createElement("div",{className:n},wp.element.createElement(Pn,null),wp.element.createElement(An,null,Object(l.applyFilters)("rank_math_app",{})())))})),Mn=Object(d.withFilters)("rankMath.diviAppModal")(En),Rn=function(){return wp.element.createElement(d.SlotFillProvider,null,wp.element.createElement("div",{className:"rank-math-rm-app"},wp.element.createElement(Mn,null)))};function Cn(t){return Cn="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},Cn(t)}function xn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Un(){return Un="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=Fn(t,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(arguments.length<3?t:r):a.value}},Un.apply(this,arguments)}function Fn(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Kn(t)););return t}function Nn(t,e){return Nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Nn(t,e)}function $n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Kn(t);if(e){var a=Kn(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Hn(this,r)}}function Hn(t,e){if(e&&("object"===Cn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Kn(t){return Kn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Kn(t)}var zn=function(){return u.MediaUpload},Ln=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nn(t,e)}(i,t);var e,r,n,a=$n(i);function i(){return xn(this,i),a.apply(this,arguments)}return e=i,(r=[{key:"setup",value:function(t){c.a.use(c.a.createNonceMiddleware(rankMath.restNonce)),this.registerSlots=this.registerSlots.bind(this),Object(l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(l.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",zn),Un(Kn(i.prototype),"setup",this).call(this,t)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=b,this.RankMathAfterFocusKeyword=D,this.RankMathAdvancedTab=_,this.slots={AfterEditor:b,AfterFocusKeyword:D,AdvancedTab:_}}},{key:"updatePermalink",value:function(t){Object(s.dispatch)("rank-math").updatePermalink(t)}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),Object(s.dispatch)("rank-math").updatePermalink(t)}}])&&Bn(e.prototype,r),n&&Bn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(tn);window.addEventListener("message",(function(t){"et_builder_api_ready"===t.data.etBuilderEvent&&(window.rankMathEditor=new Ln,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new un),bn.init(),new _n,Object(p.render)(Object(p.createElement)(Rn),document.getElementById("rank-math-rm-app-root")),Object(s.dispatch)("rank-math").refreshResults())}))},7:function(t,e){t.exports=wp.components},8:function(t,e,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&t.push(o)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&t.push(c);else t.push(n.toString())}}return t.join(" ")}t.exports?(a.default=a,t.exports=a):void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n)}()},9:function(t,e){t.exports=wp.apiFetch}});
|
1 |
+
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=66)}({0:function(t,e){t.exports=lodash},1:function(t,e){t.exports=wp.data},13:function(t,e){t.exports=wp.url},2:function(t,e){t.exports=jQuery},21:function(t,e){t.exports=wp.mediaUtils},3:function(t,e){t.exports=wp.hooks},4:function(t,e){t.exports=wp.i18n},5:function(t,e){t.exports=rankMathAnalyzer},6:function(t,e){t.exports=wp.element},66:function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"updateKeywords",(function(){return x})),r.d(n,"updatePillarContent",(function(){return B})),r.d(n,"toggleFrontendScore",(function(){return U})),r.d(n,"updateAnalysisScore",(function(){return F})),r.d(n,"updateCanonicalUrl",(function(){return N})),r.d(n,"updateAdvancedRobots",(function(){return $})),r.d(n,"updateRobots",(function(){return H})),r.d(n,"updateBreadcrumbTitle",(function(){return K})),r.d(n,"resetDirtyMetadata",(function(){return z})),r.d(n,"updateFacebookTitle",(function(){return L})),r.d(n,"updateFacebookDescription",(function(){return G})),r.d(n,"updateFacebookImage",(function(){return V})),r.d(n,"updateFacebookImageID",(function(){return Q})),r.d(n,"updateFacebookHasOverlay",(function(){return W})),r.d(n,"updateFacebookImageOverlay",(function(){return q})),r.d(n,"updateAppData",(function(){return R})),r.d(n,"updateAppUi",(function(){return C})),r.d(n,"updatePostID",(function(){return Y})),r.d(n,"updatePermalink",(function(){return J})),r.d(n,"updateTitle",(function(){return X})),r.d(n,"updateDescription",(function(){return Z})),r.d(n,"updateFeaturedImage",(function(){return tt})),r.d(n,"updatePrimaryTermID",(function(){return et})),r.d(n,"updateRedirection",(function(){return rt})),r.d(n,"updateRedirectionItem",(function(){return nt})),r.d(n,"resetRedirection",(function(){return at})),r.d(n,"updateHasRedirect",(function(){return it})),r.d(n,"updateSerpTitle",(function(){return lt})),r.d(n,"updateSerpSlug",(function(){return dt})),r.d(n,"updateSerpDescription",(function(){return ft})),r.d(n,"toggleSnippetEditor",(function(){return mt})),r.d(n,"updateSnippetPreviewType",(function(){return ht})),r.d(n,"toggleTrendsCta",(function(){return gt})),r.d(n,"updateTwitterUseFacebook",(function(){return bt})),r.d(n,"updateTwitterCardType",(function(){return yt})),r.d(n,"updateTwitterTitle",(function(){return vt})),r.d(n,"updateTwitterDescription",(function(){return kt})),r.d(n,"updateTwitterAuthor",(function(){return wt})),r.d(n,"updateTwitterImageID",(function(){return _t})),r.d(n,"updateTwitterImage",(function(){return Ot})),r.d(n,"updateTwitterHasOverlay",(function(){return St})),r.d(n,"updateTwitterImageOverlay",(function(){return jt})),r.d(n,"updateTwitterPlayerUrl",(function(){return Tt})),r.d(n,"updateTwitterPlayerSize",(function(){return Dt})),r.d(n,"updateTwitterPlayerStreamUrl",(function(){return It})),r.d(n,"updateTwitterPlayerStreamCtype",(function(){return Pt})),r.d(n,"updateTwitterAppDescription",(function(){return At})),r.d(n,"updateTwitterAppIphoneID",(function(){return Et})),r.d(n,"updateTwitterAppIphoneName",(function(){return Mt})),r.d(n,"updateTwitterAppIphoneUrl",(function(){return Rt})),r.d(n,"updateTwitterAppIpadID",(function(){return Ct})),r.d(n,"updateTwitterAppIpadName",(function(){return xt})),r.d(n,"updateTwitterAppIpadUrl",(function(){return Bt})),r.d(n,"updateTwitterAppGoogleplayID",(function(){return Ut})),r.d(n,"updateTwitterAppGoogleplayName",(function(){return Ft})),r.d(n,"updateTwitterAppGoogleplayUrl",(function(){return Nt})),r.d(n,"updateTwitterAppCountry",(function(){return $t})),r.d(n,"toggleLoaded",(function(){return Ht})),r.d(n,"updateSelectedKeyword",(function(){return Kt})),r.d(n,"refreshResults",(function(){return zt})),r.d(n,"setVersion",(function(){return Lt})),r.d(n,"toggleIsDiviPageSettingsBarActive",(function(){return Gt})),r.d(n,"toggleIsDiviRankMathModalActive",(function(){return Vt})),r.d(n,"toggleSchemaEditor",(function(){return Jt})),r.d(n,"toggleSchemaTemplates",(function(){return Xt})),r.d(n,"schemaUpdated",(function(){return Zt})),r.d(n,"setEditingSchemaId",(function(){return te})),r.d(n,"setEditorTab",(function(){return ee})),r.d(n,"setTemplateTab",(function(){return re})),r.d(n,"updateEditSchemas",(function(){return ne})),r.d(n,"updateSchemas",(function(){return ae})),r.d(n,"updateEditSchema",(function(){return ie})),r.d(n,"saveSchema",(function(){return oe})),r.d(n,"deleteSchema",(function(){return ce})),r.d(n,"saveTemplate",(function(){return se})),r.d(n,"updateKeywordsData",(function(){return ue})),r.d(n,"updateAIScore",(function(){return pe}));var a={};r.r(a),r.d(a,"appData",(function(){return be})),r.d(a,"appUi",(function(){return _e}));var i={};r.r(i),r.d(i,"getAppData",(function(){return Oe})),r.d(i,"getDirtyMetadata",(function(){return Se})),r.d(i,"getAnalysisScore",(function(){return je})),r.d(i,"getKeywords",(function(){return Te})),r.d(i,"getPillarContent",(function(){return De})),r.d(i,"getRobots",(function(){return Ie})),r.d(i,"getAdvancedRobots",(function(){return Pe})),r.d(i,"getCanonicalUrl",(function(){return Ae})),r.d(i,"getBreadcrumbTitle",(function(){return Ee})),r.d(i,"getRichSnippets",(function(){return Me})),r.d(i,"getShowScoreFrontend",(function(){return Re})),r.d(i,"isLoaded",(function(){return Ce})),r.d(i,"getSelectedKeyword",(function(){return xe})),r.d(i,"isRefreshing",(function(){return Be})),r.d(i,"isPro",(function(){return Ue})),r.d(i,"isDiviPageSettingsBarActive",(function(){return Fe})),r.d(i,"isDiviRankMathModalActive",(function(){return Ne})),r.d(i,"getFacebookTitle",(function(){return $e})),r.d(i,"getFacebookDescription",(function(){return He})),r.d(i,"getFacebookAuthor",(function(){return Ke})),r.d(i,"getFacebookImageID",(function(){return ze})),r.d(i,"getFacebookImage",(function(){return Le})),r.d(i,"getFacebookHasOverlay",(function(){return Ge})),r.d(i,"getFacebookImageOverlay",(function(){return Ve})),r.d(i,"getPostID",(function(){return Qe})),r.d(i,"getTitle",(function(){return We})),r.d(i,"getPermalink",(function(){return qe})),r.d(i,"getDescription",(function(){return Ye})),r.d(i,"getFeaturedImage",(function(){return Je})),r.d(i,"getFeaturedImageHtml",(function(){return Xe})),r.d(i,"getPrimaryTermID",(function(){return Ze})),r.d(i,"getRedirectionID",(function(){return tr})),r.d(i,"getRedirectionType",(function(){return er})),r.d(i,"getRedirectionUrl",(function(){return rr})),r.d(i,"getRedirectionItem",(function(){return nr})),r.d(i,"hasRedirect",(function(){return ar})),r.d(i,"getSerpTitle",(function(){return or})),r.d(i,"getSerpSlug",(function(){return cr})),r.d(i,"getSerpDescription",(function(){return sr})),r.d(i,"isSnippetEditorOpen",(function(){return ur})),r.d(i,"getSnippetPreviewType",(function(){return pr})),r.d(i,"isTrendsCtaOpen",(function(){return lr})),r.d(i,"isSchemaEditorOpen",(function(){return dr})),r.d(i,"isSchemaTemplatesOpen",(function(){return fr})),r.d(i,"hasSchemaUpdated",(function(){return mr})),r.d(i,"getSchemas",(function(){return hr})),r.d(i,"getEditSchemas",(function(){return gr})),r.d(i,"getEditingSchema",(function(){return br})),r.d(i,"getPreviewSchema",(function(){return yr})),r.d(i,"getEditorTab",(function(){return vr})),r.d(i,"getTemplateTab",(function(){return kr})),r.d(i,"getTwitterUseFacebook",(function(){return wr})),r.d(i,"getTwitterCardType",(function(){return _r})),r.d(i,"getTwitterTitle",(function(){return Or})),r.d(i,"getTwitterDescription",(function(){return Sr})),r.d(i,"getTwitterAuthor",(function(){return jr})),r.d(i,"getTwitterImageID",(function(){return Tr})),r.d(i,"getTwitterImage",(function(){return Dr})),r.d(i,"getTwitterHasOverlay",(function(){return Ir})),r.d(i,"getTwitterImageOverlay",(function(){return Pr})),r.d(i,"getTwitterAppDescription",(function(){return Ar})),r.d(i,"getTwitterAppIphoneID",(function(){return Er})),r.d(i,"getTwitterAppIphoneName",(function(){return Mr})),r.d(i,"getTwitterAppIphoneUrl",(function(){return Rr})),r.d(i,"getTwitterAppIpadID",(function(){return Cr})),r.d(i,"getTwitterAppIpadName",(function(){return xr})),r.d(i,"getTwitterAppIpadUrl",(function(){return Br})),r.d(i,"getTwitterAppGoogleplayID",(function(){return Ur})),r.d(i,"getTwitterAppGoogleplayName",(function(){return Fr})),r.d(i,"getTwitterAppGoogleplayUrl",(function(){return Nr})),r.d(i,"getTwitterAppCountry",(function(){return $r})),r.d(i,"getTwitterPlayerUrl",(function(){return Hr})),r.d(i,"getTwitterPlayerSize",(function(){return Kr})),r.d(i,"getTwitterPlayerStream",(function(){return zr})),r.d(i,"getTwitterPlayerStreamCtype",(function(){return Lr})),r.d(i,"getKeywordsData",(function(){return Gr})),r.d(i,"getContentAIScore",(function(){return Vr}));var o=r(9),c=r.n(o),s=r(1),u=r(21),p=r(6),l=r(3),d=r(7),f=Object(d.createSlotFill)("RankMathAfterEditor"),m=f.Fill,h=f.Slot,g=function(t){var e=t.children,r=t.className;return wp.element.createElement(m,null,wp.element.createElement(d.PanelRow,{className:r},e))};g.Slot=h;var b=g,y=Object(d.createSlotFill)("RankMathAdvancedTab"),v=y.Fill,k=y.Slot,w=function(t){var e=t.children,r=t.className;return wp.element.createElement(v,null,wp.element.createElement(d.PanelRow,{className:r},e))};w.Slot=k;var _=w,O=Object(d.createSlotFill)("RankMathAfterFocusKeyword"),S=O.Fill,j=O.Slot,T=function(t){var e=t.children,r=t.className;return wp.element.createElement(S,null,wp.element.createElement("div",{className:r},e))};T.Slot=j;var D=T,I=r(5),P=r(2),A=r.n(P);function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var M=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.map=null}var e,r,n;return e=t,(r=[{key:"swap",value:function(t,e){var r=this;if(!(t=t||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return t.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(t){return r.replace(e,t)})).trim()}},{key:"replace",value:function(t,e){var r=e.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():A()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(t=t||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in t?t[r]:"")}},{key:"getMap",value:function(){var t=this;return null!==this.map||(this.map={},A.a.each(rankMath.variables,(function(e,r){e=e.toLowerCase().replace(/%+/g,"").split("(")[0],t.map[e]=r.example}))),this.map}},{key:"setVariable",value:function(t,e){null!==this.map?this.map[t]=e:void 0!==rankMath.variables[t]&&(rankMath.variables[t].example=e)}}])&&E(e.prototype,r),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function R(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=Object(l.applyFilters)("rank_math_sanitize_data",e,t,r),null!==n&&(n=Object(l.applyFilters)("rank_math_sanitize_meta_value",n,t,r)),n=null===n?e:n,Object(l.doAction)("rank_math_data_changed",t,e,r),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:r,metaValue:n}}function C(t,e){return Object(l.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function x(t){return M.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),R("keywords",t,"rank_math_focus_keyword")}function B(t){return R("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function U(t){return R("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function F(t){return R("score",t,"rank_math_seo_score")}function N(t){return R("canonicalUrl",t,"rank_math_canonical_url")}function $(t){return R("advancedRobots",t,"rank_math_advanced_robots")}function H(t){return R("robots",t,"rank_math_robots",Object.keys(t))}function K(t){return R("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function z(){return R("dirtyMetadata",{})}function L(t){return R("facebookTitle",t,"rank_math_facebook_title")}function G(t){return R("facebookDescription",t,"rank_math_facebook_description")}function V(t){return R("facebookImage",t,"rank_math_facebook_image")}function Q(t){return R("facebookImageID",t,"rank_math_facebook_image_id")}function W(t){return R("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function q(t){return R("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function Y(t){return rankMath.objectID=t,R("postID",t)}function J(t){return R("permalink",t,"permalink")}function X(t){return R("title",t,"rank_math_title")}function Z(t){return R("description",t,"rank_math_description")}function tt(t){return R("featuredImage",t)}function et(t,e){return R("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function rt(t,e){return R(t,e)}function nt(t){return C("redirectionItem",t)}function at(){return C("redirectionItem",{})}function it(t){return C("hasRedirect",t)}var ot=r(0),ct=document.createElement("div"),st=function(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),ct.innerHTML=t,t=ct.textContent,ct.textContent=""),t},ut=function(t,e){return t=(t=I.Helpers.cleanText(t)).replace(/\r?\n|\r/g," "),e?Object(ot.truncate)(t,{length:e,separator:" "}):t},pt=function(t){var e=rankMathEditor.assessor.dataCollector.getData(),r=e.excerpt,n=e.content?function(t){if(Object(ot.isEmpty)(t))return"";t=Object(ot.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=Object(ot.filter)(I.Helpers.matchParagraphs(t,!0,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=Object(ot.filter)(e,(function(t){return Object(ot.includes)(t.toLowerCase(),r.toLowerCase())}));if(0<n.length)return ut(n[0],160)}return ut(e[0],160)}(e.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(ot.isUndefined)(r)||Object(ot.isEmpty)(r)?n:Object(ot.unescape)(r);if(M.setVariable("excerpt",a),M.setVariable("seo_description",a),""!==(t=st(Object(l.applyFilters)("rankMath/description",t))))return I.Helpers.cleanText(t);if(!Object(ot.isUndefined)(r)&&!Object(ot.isEmpty)(r))return I.Helpers.cleanText(r);var i=Object(ot.unescape)(rankMath.assessor.serpData.descriptionTemplate);return Object(ot.isUndefined)(i)||""===i?n:I.Helpers.cleanText(i)};function lt(t){return t=M.swap(""!==t?t:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),C("serpTitle",t)}function dt(t){return t=""!==t?t:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),C("serpSlug",t)}function ft(t){return t=M.swap(pt(t)),rankMathEditor.refresh("description"),C("serpDescription",t)}function mt(t){return C("isSnippetEditorOpen",t)}function ht(t){return C("snippetPreviewType",t)}function gt(t){return C("isTrendsCtaOpen",t)}function bt(t){return R("twitterUseFacebook",t,"rank_math_twitter_use_facebook",!0===t?"on":"off")}function yt(t){return R("twitterCardType",t,"rank_math_twitter_card_type")}function vt(t){return R("twitterTitle",t,"rank_math_twitter_title")}function kt(t){return R("twitterDescription",t,"rank_math_twitter_description")}function wt(t){return R("twitterAuthor",t,"rank_math_twitter_author")}function _t(t){return R("twitterImageID",t,"rank_math_twitter_image_id")}function Ot(t){return R("twitterImage",t,"rank_math_twitter_image")}function St(t){return R("twitterHasOverlay",t,"rank_math_twitter_enable_image_overlay",!0===t?"on":"off")}function jt(t){return R("twitterImageOverlay",t,"rank_math_twitter_image_overlay")}function Tt(t){return R("twitterPlayerUrl",t,"rank_math_twitter_player_url")}function Dt(t){return R("twitterPlayerSize",t,"rank_math_twitter_player_size")}function It(t){return R("twitterPlayerStream",t,"rank_math_twitter_player_stream")}function Pt(t){return R("twitterPlayerStreamCtype",t,"rank_math_twitter_player_stream_ctype")}function At(t){return R("twitterAppDescription",t,"rank_math_twitter_app_description")}function Et(t){return R("twitterAppIphoneID",t,"rank_math_twitter_app_iphone_id")}function Mt(t){return R("twitterAppIphoneName",t,"rank_math_twitter_app_iphone_name")}function Rt(t){return R("twitterAppIphoneUrl",t,"rank_math_twitter_app_iphone_url")}function Ct(t){return R("twitterAppIpadID",t,"rank_math_twitter_app_ipad_id")}function xt(t){return R("twitterAppIpadName",t,"rank_math_twitter_app_ipad_name")}function Bt(t){return R("twitterAppIpadUrl",t,"rank_math_twitter_app_ipad_url")}function Ut(t){return R("twitterAppGoogleplayID",t,"rank_math_twitter_app_googleplay_id")}function Ft(t){return R("twitterAppGoogleplayName",t,"rank_math_twitter_app_googleplay_name")}function Nt(t){return R("twitterAppGoogleplayUrl",t,"rank_math_twitter_app_googleplay_url")}function $t(t){return R("twitterAppCountry",t,"rank_math_twitter_app_country")}function Ht(t){return C("isLoaded",t)}function Kt(t){return C("selectedKeyword",t)}function zt(){return C("refreshResults",Date.now())}function Lt(){return C("isPro",!0)}function Gt(t){return C("isDiviPageSettingsBarActive",t)}function Vt(t){return C("isDiviRankMathModalActive",t)}var Qt=r(4);function Wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(r),!0).forEach((function(e){Yt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jt(t){return C("isSchemaEditorOpen",t)}function Xt(t){return C("isSchemaTemplatesOpen",t)}function Zt(t){return C("schemaUpdated",t)}function te(t){return C("editingSchemaId",t)}function ee(t){return C("editorTab",t)}function re(t){return C("templateTab",t)}function ne(t){return C("editSchemas",t)}function ae(t){return R("schemas",t)}function ie(t,e){var r=qt({},Object(s.select)("rank-math").getEditSchemas());return r[t]=e,C("editSchemas",r)}function oe(t,e){var r=qt({},Object(s.select)("rank-math").getSchemas());return r[t]=e,R("schemas",r)}function ce(t){var e=qt({},Object(s.select)("rank-math").getSchemas());return delete e[t],Object(l.doAction)("rank_math_schema_trash",t),R("schemas",e,"rank_math_delete_"+t,"")}function se(t,e,r){return c()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:t,postId:r}}).then((function(r){e({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){e({showNotice:!1}),Object(ot.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(Qt.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:t,title:t.metadata.title,type:t["@type"]})})),e({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function ue(t){return C("keywordsData",t)}function pe(t){return R("contentAIScore",t,"rank_math_contentai_score")}function le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function de(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?le(Object(r),!0).forEach((function(e){fe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var me=rankMath.assessor.serpData,he=rankMath.assessor.hasRedirection,ge={postID:null,title:me.title?me.title:me.titleTemplate,description:me.description,keywords:me.focusKeywords,pillarContent:me.pillarContent,featuredImage:"",permalink:!1,primaryTerm:me.primaryTerm,robots:me.robots,advancedRobots:me.advancedRobots,canonicalUrl:me.canonicalUrl,breadcrumbTitle:me.breadcrumbTitle,showScoreFrontend:me.showScoreFrontend,redirectionID:he?Object(ot.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:he?Object(ot.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:he?Object(ot.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:me.facebookTitle,facebookImage:me.facebookImage,facebookImageID:me.facebookImageID,facebookAuthor:me.facebookAuthor,facebookDescription:me.facebookDescription,facebookHasOverlay:me.facebookHasOverlay,facebookImageOverlay:me.facebookImageOverlay,twitterTitle:me.twitterTitle,twitterImage:me.twitterImage,twitterAuthor:me.twitterAuthor,twitterImageID:me.twitterImageID,twitterCardType:me.twitterCardType,twitterUseFacebook:me.twitterUseFacebook,twitterDescription:me.twitterDescription,twitterHasOverlay:me.twitterHasOverlay,twitterImageOverlay:me.twitterImageOverlay,twitterPlayerUrl:me.twitterPlayerUrl,twitterPlayerSize:me.twitterPlayerSize,twitterPlayerStream:me.twitterPlayerStream,twitterPlayerStreamCtype:me.twitterPlayerStreamCtype,twitterAppDescription:me.twitterAppDescription,twitterAppIphoneName:me.twitterAppIphoneName,twitterAppIphoneID:me.twitterAppIphoneID,twitterAppIphoneUrl:me.twitterAppIphoneUrl,twitterAppIpadName:me.twitterAppIpadName,twitterAppIpadID:me.twitterAppIpadID,twitterAppIpadUrl:me.twitterAppIpadUrl,twitterAppGoogleplayName:me.twitterAppGoogleplayName,twitterAppGoogleplayID:me.twitterAppGoogleplayID,twitterAppGoogleplayUrl:me.twitterAppGoogleplayUrl,twitterAppCountry:me.twitterAppCountry,schemas:Object(ot.get)(rankMath,"schemas",{}),score:0,contentAIScore:{},dirtyMetadata:{}};function be(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge,r=arguments.length>1?arguments[1]:void 0,n=de({},e.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?de(de({},e),{},{dirtyMetadata:r.value}):de(de({},e),{},(fe(t={},r.key,r.value),fe(t,"dirtyMetadata",n),t)):e}function ye(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ve(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(r),!0).forEach((function(e){ke(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ke(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var we={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!Object(ot.isEmpty)(Object(ot.get)(rankMath.assessor,"redirection.id",""))&&!Object(ot.isEmpty)(Object(ot.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1,keywordsData:Object(ot.get)(rankMath,"ca_data",[])};function _e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?ve(ve({},t),{},ke({},e.key,e.value)):t}function Oe(t){return t.appData}function Se(t){return t.appData.dirtyMetadata}function je(t){return t.appData.score}function Te(t){return t.appData.keywords}function De(t){return t.appData.pillarContent}function Ie(t){return t.appData.robots}function Pe(t){return t.appData.advancedRobots}function Ae(t){return t.appData.canonicalUrl}function Ee(t){return t.appData.breadcrumbTitle}function Me(t){return"todo"}function Re(t){return t.appData.showScoreFrontend}function Ce(t){return t.appUi.isLoaded}function xe(t){return t.appUi.selectedKeyword}function Be(t){return t.appUi.refreshResults}function Ue(t){return t.appUi.isPro}function Fe(t){return t.appUi.isDiviPageSettingsBarActive}function Ne(t){return t.appUi.isDiviRankMathModalActive}function $e(t){return t.appData.facebookTitle}function He(t){return t.appData.facebookDescription}function Ke(t){return t.appData.facebookAuthor}function ze(t){return t.appData.facebookImageID}function Le(t){return t.appData.facebookImage}function Ge(t){return t.appData.facebookHasOverlay}function Ve(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function Qe(t){return t.appData.postID}function We(t){return t.appData.title}function qe(t){return t.appData.permalink}function Ye(t){return t.appData.description}function Je(t){return t.appData.featuredImage}function Xe(t){var e=t.appData.featuredImage;return'<img src="'.concat(e.source_url,'" alt="').concat(e.alt_text,'" >')}function Ze(t){return t.appData.primaryTerm}function tr(t){return t.appData.redirectionID}function er(t){return t.appData.redirectionType}function rr(t){return t.appData.redirectionUrl}function nr(t){return t.appUi.redirectionItem}function ar(t){return t.appUi.hasRedirect}var ir=r(13);function or(t){return st(t.appUi.serpTitle)}function cr(t){return Object(ir.safeDecodeURIComponent)(t.appUi.serpSlug)}function sr(t){return t.appUi.serpDescription}function ur(t){return t.appUi.isSnippetEditorOpen}function pr(t){return t.appUi.snippetPreviewType}function lr(t){return t.appUi.isTrendsCtaOpen}function dr(t){return t.appUi.isSchemaEditorOpen}function fr(t){return t.appUi.isSchemaTemplatesOpen}function mr(t){return t.appUi.schemaUpdated}function hr(t){return t.appData.schemas}function gr(t){return t.appUi.editSchemas}function br(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function yr(t){return t.appData.schemas[t.appUi.editingSchemaId]}function vr(t){return t.appUi.editorTab}function kr(t){return t.appUi.templateTab}function wr(t){return t.appData.twitterUseFacebook}function _r(t){return t.appData.twitterCardType}function Or(t){return t.appData.twitterTitle}function Sr(t){return t.appData.twitterDescription}function jr(t){return t.appData.twitterAuthor}function Tr(t){return t.appData.twitterImageID}function Dr(t){return t.appData.twitterImage}function Ir(t){return t.appData.twitterHasOverlay}function Pr(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function Ar(t){return t.appData.twitterAppDescription}function Er(t){return t.appData.twitterAppIphoneID}function Mr(t){return t.appData.twitterAppIphoneName}function Rr(t){return t.appData.twitterAppIphoneUrl}function Cr(t){return t.appData.twitterAppIpadID}function xr(t){return t.appData.twitterAppIpadName}function Br(t){return t.appData.twitterAppIpadUrl}function Ur(t){return t.appData.twitterAppGoogleplayID}function Fr(t){return t.appData.twitterAppGoogleplayName}function Nr(t){return t.appData.twitterAppGoogleplayUrl}function $r(t){return t.appData.twitterAppCountry}function Hr(t){return t.appData.twitterPlayerUrl}function Kr(t){return t.appData.twitterPlayerSize}function zr(t){return t.appData.twitterPlayerStream}function Lr(t){return t.appData.twitterPlayerStreamCtype}function Gr(t){return t.appUi.keywordsData}function Vr(t){return t.appData.contentAIScore}var Qr=Object(s.registerStore)("rank-math",{reducer:Object(s.combineReducers)(a),selectors:i,actions:n});function Wr(){return Qr}function qr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Yr=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer=new I.Analyzer({i18n:Qt,analyses:rankMath.assessor.researchesTests}),this.dataCollector=e,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(l.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(l.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(l.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var e,r,n;return e=t,(r=[{key:"updateKeywordResult",value:function(t,e){rankMathEditor.resultManager.update(t,{keywordNotUsed:e}),t===this.getSelectedKeyword().toLowerCase()&&Object(s.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(t,e){return"schemas"===e||Object(ot.isObject)(t)||Object(ot.isEmpty)(t)?t:I.Helpers.sanitizeAppData(t)}},{key:"getPaper",value:function(t,e){var r=Wr().getState(),n=this.dataCollector.getData(),a=new I.Paper("",{locale:rankMath.localeFull});return a.setTitle(r.appUi.serpTitle),a.setPermalink(n.slug),a.setDescription(r.appUi.serpDescription),a.setUrl(n.permalink),a.setText(Object(ot.unescape)(Object(l.applyFilters)("rank_math_content",n.content))),a.setKeyword(t),a.setKeywords(e),Object(ot.isUndefined)(n.featuredImage)||(a.setThumbnail(n.featuredImage.source_url),a.setThumbnailAltText(I.Helpers.removeDiacritics(n.featuredImage.alt_text))),a}},{key:"registerRefresh",value:function(){var t=this;this.refresh=Object(ot.debounce)((function(e){var r=Wr().getState();if(!1!==r.appUi.isLoaded){var n=r.appData.keywords.split(","),a=[];Object(l.doAction)("rank_math_"+e+"_refresh"),n.map((function(e,r){var i=t.getPaper(I.Helpers.removeDiacritics(e),n),o=0===r?rankMath.assessor.researchesTests:t.filterTests(t.getSecondaryKeywordTests());a.push(t.analyzer.analyzeSome(o,i).then((function(t){rankMathEditor.resultManager.update(i.getKeyword(),t,0===r),0===r&&Object(s.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(i.getKeyword()))}))),Promise.all(a).then((function(){Object(s.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var t=Wr().getState().appData.keywords;return I.Helpers.removeDiacritics(t.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var t=Wr().getState(),e=""!==t.appUi.selectedKeyword.data.value?t.appUi.selectedKeyword.data.value:t.appData.keywords.split(",")[0];return I.Helpers.removeDiacritics(e)}},{key:"getResearch",value:function(t){return this.analyzer.researcher.getResearch(t)}},{key:"filterTests",value:function(t){return Object(ot.intersection)(t,rankMath.assessor.researchesTests)}}])&&qr(e.prototype,r),n&&qr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Jr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Xr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rankMath.is_front_page&&(Object(l.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(l.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var e,r,n;return e=t,(r=[{key:"contentLength",value:function(t){return{hasScore:t.hasScore,failed:Object(Qt.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(Qt.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(Qt.sprintf)(Object(Qt.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(Qt.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&Jr(e.prototype,r),n&&Jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Zr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var tn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,n;return e=t,(r=[{key:"setup",value:function(t){Wr(),this.resultManager=new I.ResultManager,this.assessor=new Yr(t),new Xr,Object(l.doAction)("rank_math_loaded")}},{key:"refresh",value:function(t){this.assessor.refresh(t)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(t){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(t){throw"Implement the function"}}])&&Zr(e.prototype,r),n&&Zr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function en(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?en(Object(r),!0).forEach((function(e){nn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function an(t,e,r,n,a,i,o){try{var c=t[i](o),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,a)}function on(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){an(i,n,a,o,c,"next",t)}function c(t){an(i,n,a,o,c,"throw",t)}o(void 0)}))}}function cn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var sn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initialize=!1,this.etSettingsData={title:"",excerpt:"",featuredImage:""},this._featuredImage=null,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToDivi()}var e,r,n,a,i,o;return e=t,r=[{key:"collectPostData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return parseInt(Object(ot.get)(ETBuilderBackendDynamic,"postId",0))}},{key:"getTitle",value:function(){return this.etSettingsData.title}},{key:"setTitle",value:function(t){this.etSettingsData.title=t}},{key:"getContent",value:function(){var t=[];return this.getContentArea().find(".et_pb_section").each((function(){t.push(A()(this).html())})),t.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;if(this._etAppFrameElem||(this._etAppFrameElem=Object(ot.get)(ET_Builder,"Frames.app.frameElement",document.querySelector("iframe#et-fb-app-frame"))),!this._etAppFrameElem)return A()("<div />");var t=A()(this._etAppFrameElem.contentWindow.document.querySelector("#et-fb-app"));return t.length<1?A()("<div />"):(this._contentArea=t,t)}},{key:"getExcerpt",value:function(){return this.etSettingsData.excerpt}},{key:"setExcerpt",value:function(t){this.etSettingsData.excerpt=t}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":rankMath.homeUrl+"/"+this.getSlug()}},{key:"getSlug",value:function(){return Object(ir.safeDecodeURIComponent)(Object(s.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){if(this._featuredImage)return this._featuredImage;this.setFeaturedImage()}},{key:"setFeaturedImage",value:(o=on(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==e){t.next=4;break}return t.next=3,this.fetchFeaturedImageId();case 3:e=t.sent;case 4:if(!this.isValidMediaId(e)||!e){t.next=10;break}return t.next=7,this.fetchWpMedia(e);case 7:this._featuredImage=t.sent,t.next=11;break;case 10:this._featuredImage=!1;case 11:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"fetchFeaturedImageId",value:(i=on(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,t.next=3,c()({path:"/wp-json/rankmath/v1/getFeaturedImageId",method:"POST",data:{postId:Object(ot.get)(ETBuilderBackendDynamic,"postId",0)}}).then((function(t){return e=!!t.success&&t.featImgId}));case 3:return t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"fetchWpMedia",value:(a=on(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},t.next=3,c()({path:"/wp-json/wp/v2/media/".concat(e),method:"GET"}).then((function(t){return r=t}));case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),function(t){return a.apply(this,arguments)})},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0<t}},{key:"subscribeToDivi",value:function(){var t=this;this.setTitle(Object(ot.get)(ETBuilderBackendDynamic,"postTitle","")),this.setExcerpt(Object(ot.get)(ETBuilderBackendDynamic,"postMeta.post_excerpt","")),this.setFeaturedImage(Object(ot.get)(ETBuilderBackendDynamic,"currentPage.thumbnailId",0)),Object(s.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(ot.debounce)(this.refresh,500),Object(s.subscribe)(this.subscriber),A()(".et-fb-page-settings-bar").find(".et-fb-button--save-draft, .et-fb-button--publish").on("click",(function(){setTimeout((function(){t.savePost(),t.saveRedirection(),t.saveSchemas()}),500)})),Object(l.addFilter)("et.builder.store.setting.update","rank-math",(function(e,r){if(e)switch(r){case"et_pb_post_settings_title":t.setTitle(e),t.subscriber();break;case"et_pb_post_settings_excerpt":t.setExcerpt(e),t.subscriber();break;case"et_pb_post_settings_image":t.setFeaturedImage(parseInt(e)),t.subscriber()}return e})),window.addEventListener("message",(function(e){"et_fb_section_content_change"===e.data.etBuilderEvent&&t.subscriber()}))}},{key:"refresh",value:function(){var t=rn({},this._data);this._data=this.collectPostData(),this.handleEditorChange(t),!Object(ot.isEqual)(t,this._data)&&t.id&&Object(s.dispatch)("rank-math").refreshResults()}},{key:"savePost",value:function(){var t=Object(s.select)("rank-math").getDirtyMetadata();Object(ot.isEmpty)(t)||(c()({method:"POST",path:"/wp-json/rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t}}).then((function(t){Object(ot.isString)(t.slug)&&Object(s.dispatch)("rank-math").updatePermalink(t.slug),Object(l.doAction)("rank_math_metadata_updated",t)})),Object(s.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var t=Object(s.select)("rank-math").getRedirectionItem();Object(ot.isEmpty)(t)||(t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink(),c()({method:"POST",path:"/wp-json/rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?Object(s.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===t.action&&Object(s.dispatch)("rank-math").updateRedirection("redirectionID",t.id)})),Object(s.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var t=Object(s.select)("rank-math").getSchemas();if(!Object(ot.isEmpty)(t)&&!Object(ot.isEqual)(t,Object(ot.get)(rankMath,"schemas",{}))){var e=Object(s.select)("rank-math").getEditSchemas();c()({method:"POST",path:"/wp-json/rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:t}}).then((function(r){if(!Object(ot.isEmpty)(r)){var n=rn({},t),a=rn({},e);Object(ot.map)(r,(function(t,e){n["schema-"+t]=rn({},n[e]),a["schema-"+t]=rn({},a[e]),delete n[e],delete a[e]})),Object(s.dispatch)("rank-math").updateSchemas(n),Object(s.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(t){var e=this,r={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(ot.isInteger)(t.id))return this.initialize?void Object(ot.forEach)(r,(function(r,n){e._data[n]!==t[n]&&e[r](e._data[n])})):(this.initialize=!0,Object(ot.forEach)(r,(function(t,r){e[t](e._data[r])})),void rankMathEditor.refresh("init"));Object(s.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(t){Object(s.dispatch)("rank-math").updatePostID(t),Object(s.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(t){M.setVariable("title",t),Object(s.dispatch)("rank-math").updateSerpTitle(Object(s.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(t){M.setVariable("excerpt",t),M.setVariable("excerpt_only",t),M.setVariable("wc_shortdesc",t),M.setVariable("seo_description",t),Object(s.dispatch)("rank-math").updateSerpDescription(Object(s.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(t){Object(s.dispatch)("rank-math").updateFeaturedImage(t),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(s.dispatch)("rank-math").updateSerpDescription(Object(s.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}],r&&cn(e.prototype,r),n&&cn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),un=sn,pn=r(8),ln=r.n(pn),dn=function(){return wp.element.createElement("span",{className:"rank-math-rm-modal-toggle-button-icon",style:{display:"block",fill:"rgb(255, 255, 255)",width:"0px",height:"0px",marginTop:"-10px",marginLeft:"-1px"}},wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))))},fn=function(){return wp.element.createElement("button",{type:"button","data-tip":"Rank Math SEO",onClick:function(){Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!Object(s.select)("rank-math").isDiviRankMathModalActive())},className:ln()("rank-math-rm-modal-toggle-button","et_fb_ignore_iframe","et-fb-button","et-fb-button--elevate","et-fb-button--primary","et-fb-button--round","et-fb-button--Tooltip"),style:{width:"40px",height:"40px"}},wp.element.createElement(dn,null))},mn=function(){return wp.element.createElement("div",{className:"rank-math-rm-settings-bar"},wp.element.createElement(fn,null))};function hn(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return gn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){c=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var bn={init:function(){this.cacheProps(),this.toggleBodyClasses(),this.initSettingsBar(),this.addEventListeners()},cacheProps:function(){this.$document=A()(document),this.$body=A()("body"),this.rmModalHiddingTimer=null,this.rmPrevModalActiveState=!1,this.rmSettingsBarMediaQuery=window.matchMedia("(min-width: 768px)"),this.rmSettingsBarRootSelector="#rank-math-rm-settings-bar-root",this.$rmSettingsBarRoot=A()(this.rmSettingsBarRootSelector).detach(),this.$etPageSettingsBar=A()(".et-fb-page-settings-bar"),this.$etPageSettingsBarToggleButton=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__toggle-button"),this.$etPageSettingsBarColumn=this.$etPageSettingsBar.find(".et-fb-page-settings-bar__column"),this.etSettingsBarObserver=new MutationObserver(this.onEtSettingsBarClassAttrChange.bind(this))},toggleBodyClasses:function(){var t=this.isEtSettingsBarActive();this.$body.toggleClass("rank-math-et-settings-bar-is-active",t),this.$body.toggleClass("rank-math-et-settings-bar-is-inactive",!t)},initSettingsBar:function(){var t=this.getEtSettingsBarPosition();this.onRmSettingsBarMediaQueryChange(),Object(p.render)(Object(p.createElement)(mn),this.$rmSettingsBarRoot[0]),this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(t)),this.attachRmSettingsBar(t)},addEventListeners:function(){this.$document.on("click",this.onDocumentClick.bind(this)),this.rmSettingsBarMediaQuery.addListener(this.onRmSettingsBarMediaQueryChange.bind(this)),this.etSettingsBarObserver.observe(this.$etPageSettingsBar[0],{attributeFilter:["class"]})},onDocumentClick:function(t){this.hideModalOnOutsideClick(t.target)},onRmSettingsBarMediaQueryChange:function(){this.detachRmSettingsBar(),this.attachRmSettingsBar(this.getEtSettingsBarPosition())},onEtSettingsBarClassAttrChange:function(){var t=this.isEtSettingsBarActive(),e=this.getEtSettingsBarPosition();this.removePositionalClassNames(this.$body,"rank-math-et-settings-bar-is"),this.$body.addClass("rank-math-et-settings-bar-is-".concat(e)),Object(s.dispatch)("rank-math").toggleIsDiviPageSettingsBarActive(t),this.toggleBodyClasses(),this.detachRmSettingsBar(),this.isEtSettingsBarDragged()?(this.rmPrevModalActiveState=Object(s.select)("rank-math").isDiviRankMathModalActive(),this.rmPrevModalActiveState&&(this.rmModalHiddingTimer=setTimeout((function(){Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}),200))):(clearTimeout(this.rmModalHiddingTimer),this.attachRmSettingsBar(e),Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(this.rmPrevModalActiveState||Object(s.select)("rank-math").isDiviRankMathModalActive()),this.rmPrevModalActiveState=!1)},attachRmSettingsBar:function(t){this.isRmSettingsBarAttached()||(this.toggleRmSettingsBarClassNames(t),this.isEtSettingsBarActive()?this.rmSettingsBarMediaQuery.matches?this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--main").append(this.$rmSettingsBarRoot):this.$etPageSettingsBarColumn.filter(".et-fb-page-settings-bar__column--left").prepend(this.$rmSettingsBarRoot):this.$etPageSettingsBarToggleButton.after(this.$rmSettingsBarRoot))},detachRmSettingsBar:function(){this.isRmSettingsBarAttached()&&(this.$rmSettingsBarRoot=this.$etPageSettingsBar.find(this.rmSettingsBarRootSelector).detach())},toggleRmSettingsBarClassNames:function(t){this.removePositionalClassNames(this.$rmSettingsBarRoot),this.$rmSettingsBarRoot.addClass("rank-math-rm-settings-bar-root-".concat(t)),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-mobile","rank-math-rm-settings-bar-root-is-mobile-".concat(t)].join(" "),!this.rmSettingsBarMediaQuery.matches),this.$rmSettingsBarRoot.toggleClass(["rank-math-rm-settings-bar-root-is-desktop","rank-math-rm-settings-bar-root-is-desktop-".concat(t)].join(" "),this.rmSettingsBarMediaQuery.matches)},isRmSettingsBarAttached:function(){return A.a.contains(document.documentElement,this.$rmSettingsBarRoot[0])},isEtSettingsBarActive:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--active")},isEtSettingsBarDragged:function(){return this.$etPageSettingsBar.hasClass("et-fb-page-settings-bar--dragged")&&!this.isEtSettingsBarActive()},removePositionalClassNames:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=["".concat(e,"-left"),"".concat(e,"-right"),"".concat(e,"-top"),"".concat(e,"-top-left"),"".concat(e,"-top-right"),"".concat(e,"-bottom"),"".concat(e,"-bottom-left"),"".concat(e,"-bottom-right")].join("|"),n=new RegExp("(".concat(r,")$"),"gim");t.removeClass((function(t,e){var r,a=[],i=hn(e.split(" "));try{for(i.s();!(r=i.n()).done;){var o=r.value;n.test(o)&&a.push(o)}}catch(t){i.e(t)}finally{i.f()}return a}))},getEtSettingsBarPosition:function(){var t=this.$etPageSettingsBar;return t.hasClass("et-fb-page-settings-bar--horizontal")&&!t.hasClass("et-fb-page-settings-bar--top")?"bottom":t.hasClass("et-fb-page-settings-bar--top")&&!t.hasClass("et-fb-page-settings-bar--corner")?"top":t.hasClass("et-fb-page-settings-bar--bottom-corner")?t.hasClass("et-fb-page-settings-bar--left-corner")?"bottom-left":"bottom-right":t.hasClass("et-fb-page-settings-bar--top-corner")?t.hasClass("et-fb-page-settings-bar--left-corner")?"top-left":"top-right":t.hasClass("et-fb-page-settings-bar--vertical--right")?"right":t.hasClass("et-fb-page-settings-bar--vertical--left")?"left":""},hideModalOnOutsideClick:function(t){if(Object(s.select)("rank-math").isDiviRankMathModalActive()){var e=".rank-math-rm-modal";t.closest(e)||t.closest(".components-modal__screen-overlay.rank-math-modal-overlay")||t.closest(".rank-math-rm-modal-toggle-button")||t.contains(document.querySelector(e))||Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}}},yn=Object(s.withSelect)((function(t){return{primaryTermId:t("rank-math").getPrimaryTermID()}}))((function(t){var e=t.taxonomySlug,r=t.primaryTermId,n=t.options;if(n.length<2||!e)return null;return wp.element.createElement(d.SelectControl,{className:"rank-math-primary-term-select",label:Object(Qt.__)("Select Primary Term","rank-math"),value:r,options:n,onChange:function(t){Object(s.dispatch)("rank-math").updatePrimaryTermID(parseInt(t),e)}})}));function vn(t,e,r,n,a,i,o){try{var c=t[i](o),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,a)}function kn(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){vn(i,n,a,o,c,"next",t)}function c(t){vn(i,n,a,o,c,"throw",t)}o(void 0)}))}}function wn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var _n=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),A()(document).on("click",".et-fb-button--toggle-setting",(function(){clearTimeout(e.initRecursionTimer),e.attemptsRun=0,e.init.call(e)}))}var e,r,n,a,i;return e=t,r=[{key:"init",value:(i=kn(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==this.hasPostPrimaryTaxonomySupport){t.next=3;break}return t.next=3,this.cacheTaxonomyData();case 3:if(this.hasPostPrimaryTaxonomySupport){t.next=5;break}return t.abrupt("return");case 5:if(this.attemptsRun++,!(this.attemptsRun>this.maxAttempts)){t.next=8;break}return t.abrupt("return");case 8:this.cacheDom()?(this.renderContainer(),this.renderComponent(),this.bindEvents()):this.initRecursionTimer=setTimeout(this.init.bind(this),this.attemptInterval);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"cacheTaxonomyData",value:(a=kn(regeneratorRuntime.mark((function t(){var e,r,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Object(ot.get)(rankMath,"assessor.primaryTaxonomy.name")||"",r=Object(ot.get)(ETBuilderBackendDynamic,"getTaxonomies",{}),this.primaryTaxonomyTerms=r[e]||[],t.next=4,c()({path:"/wp-json/wp/v2/taxonomies"}).then((function(t){n.primaryTaxonomy=Object.keys(r).includes(e)&&t[e]?t[e]:{}}));case 4:this.hasPostPrimaryTaxonomySupport=!A.a.isEmptyObject(this.primaryTaxonomy),this.primaryTaxonomyValue=Object(ot.get)(ETBuilderBackendDynamic,"pageSettingsValues.et_pb_post_settings_".concat(this.primaryTaxonomy.rest_base),"");case 6:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"cacheDom",value:function(){return this.$diviSettingsModal=A()(document).find(".et-fb-modal__page-settings"),!!this.$diviSettingsModal.length&&(this.$diviTermSettingInputs=this.$diviSettingsModal.find(".et-fb-option--".concat(this.primaryTaxonomy.rest_base)),this.$diviTermSettingArea=this.$diviTermSettingInputs.parents(".et-fb-form__group"),this.$diviTermSettingArea.length||(this.$diviTermSettingArea=this.workaroundForFalseDiviTaxonomySelector()),this.$PrimaryTermSelectContainer=A()('<div id="rank-math-primary-term-input" />'),!0)}},{key:"workaroundForFalseDiviTaxonomySelector",value:function(){var t=this.primaryTaxonomy.name.toLowerCase();return this.$diviSettingsModal.find(".et-fb-form__label-text").filter((function(e,r){return A()(r).text().toLowerCase()===t})).parents(".et-fb-form__group")}},{key:"renderContainer",value:function(){this.$diviTermSettingArea.after(this.$PrimaryTermSelectContainer)}},{key:"renderComponent",value:function(t){var e={taxonomySlug:this.primaryTaxonomy.slug,options:this.formatActiveTerms(t)};Object(p.render)(Object(p.createElement)(yn,e),this.$PrimaryTermSelectContainer[0])}},{key:"bindEvents",value:function(){var t=this;Object(l.addFilter)("et.builder.store.setting.update","rank-math",(function(e,r){return"et_pb_post_settings_".concat(t.primaryTaxonomy.rest_base)===r&&t.renderComponent(e),e}))}},{key:"formatActiveTerms",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.primaryTaxonomyValue;return this.primaryTaxonomyTerms.length&&e.trim()?e.split(",").map((function(e){var r=Object(ot.find)(t.primaryTaxonomyTerms,["term_id",parseInt(e)])||{};return{label:r.name,value:r.term_id}})):[]}}],r&&wn(e.prototype,r),n&&wn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();_n.initRecursionTimer=void 0,_n.attemptsRun=0,_n.maxAttempts=10,_n.attemptInterval=1e3;var On=["className","children"];function Sn(){return Sn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sn.apply(this,arguments)}function jn(t,e){if(null==t)return{};var r,n,a=function(t,e){if(null==t)return{};var r,n,a={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}var Tn=function(t){var e=t.className,r=t.children,n=jn(t,On),a=ln()("rank-math-rm-modal-button",e);return wp.element.createElement("button",Sn({type:"button",className:a},n),r)},Dn=function(){return wp.element.createElement("div",{className:"et-fb-icon et-fb-icon--close",style:{fill:"rgb(255, 255, 255)",width:"28px",minWidth:"28px",height:"28px",margin:"-6px"}},wp.element.createElement("svg",{viewBox:"0 0 28 28",preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}))))},In=function(){var t=ln()("rank-math-rm-modal-header-discard-button");return wp.element.createElement(Tn,{className:t,onClick:function(){Object(s.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}},wp.element.createElement(Dn,null))},Pn=function(){var t=ln()("rank-math-rm-modal-header");return wp.element.createElement("header",{className:t},wp.element.createElement("div",{className:"rank-math-rm-modal-header"},wp.element.createElement("div",{className:"rank-math-rm-modal-header-title"},"Rank Math SEO"),wp.element.createElement("ul",{className:"rank-math-rm-modal-header-options"},wp.element.createElement("li",{className:"rank-math-rm-modal-header-option"},wp.element.createElement(In,null)))))},An=function(t){var e=t.children,r=ln()("rank-math-rm-modal-content","rank-math-sidebar-panel");return wp.element.createElement("div",{className:r},e)},En=Object(s.withSelect)((function(t){return{rmUiActive:(0,t("rank-math").isDiviRankMathModalActive)()}}))((function(t){var e=t.rmUiActive,r=ln()("rank-math-rm-modal",{"rank-math-rm-modal-is-hidden":!e}),n=ln()("rank-math-rm-modal-inner");return wp.element.createElement("div",{className:r},wp.element.createElement("div",{className:n},wp.element.createElement(Pn,null),wp.element.createElement(An,null,Object(l.applyFilters)("rank_math_app",{})())))})),Mn=Object(d.withFilters)("rankMath.diviAppModal")(En),Rn=function(){return wp.element.createElement(d.SlotFillProvider,null,wp.element.createElement("div",{className:"rank-math-rm-app"},wp.element.createElement(Mn,null)))};function Cn(t){return Cn="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},Cn(t)}function xn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Un(){return Un="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=Fn(t,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(arguments.length<3?t:r):a.value}},Un.apply(this,arguments)}function Fn(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Kn(t)););return t}function Nn(t,e){return Nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Nn(t,e)}function $n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Kn(t);if(e){var a=Kn(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Hn(this,r)}}function Hn(t,e){if(e&&("object"===Cn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Kn(t){return Kn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Kn(t)}var zn=function(){return u.MediaUpload},Ln=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nn(t,e)}(i,t);var e,r,n,a=$n(i);function i(){return xn(this,i),a.apply(this,arguments)}return e=i,(r=[{key:"setup",value:function(t){c.a.use(c.a.createNonceMiddleware(rankMath.restNonce)),this.registerSlots=this.registerSlots.bind(this),Object(l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(l.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",zn),Un(Kn(i.prototype),"setup",this).call(this,t)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=b,this.RankMathAfterFocusKeyword=D,this.RankMathAdvancedTab=_,this.slots={AfterEditor:b,AfterFocusKeyword:D,AdvancedTab:_}}},{key:"updatePermalink",value:function(t){Object(s.dispatch)("rank-math").updatePermalink(t)}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),Object(s.dispatch)("rank-math").updatePermalink(t)}}])&&Bn(e.prototype,r),n&&Bn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(tn);window.addEventListener("message",(function(t){"et_builder_api_ready"===t.data.etBuilderEvent&&(window.rankMathEditor=new Ln,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new un),bn.init(),new _n,Object(p.render)(Object(p.createElement)(Rn),document.getElementById("rank-math-rm-app-root")),Object(s.dispatch)("rank-math").refreshResults())}))},7:function(t,e){t.exports=wp.components},8:function(t,e,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&t.push(o)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&t.push(c);else t.push(n.toString())}}return t.join(" ")}t.exports?(a.default=a,t.exports=a):void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n)}()},9:function(t,e){t.exports=wp.apiFetch}});
|
assets/admin/js/elementor.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=77)}({0:function(t,e){t.exports=wp.i18n},1:function(t,e){t.exports=lodash},13:function(t,e){t.exports=wp.apiFetch},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return Tn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return l})),n.d(r,"updatePillarContent",(function(){return d})),n.d(r,"toggleFrontendScore",(function(){return f})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return m})),n.d(r,"updateAdvancedRobots",(function(){return g})),n.d(r,"updateRobots",(function(){return y})),n.d(r,"updateBreadcrumbTitle",(function(){return b})),n.d(r,"resetDirtyMetadata",(function(){return k})),n.d(r,"updateFacebookTitle",(function(){return w})),n.d(r,"updateFacebookDescription",(function(){return v})),n.d(r,"updateFacebookImage",(function(){return _})),n.d(r,"updateFacebookImageID",(function(){return O})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return D})),n.d(r,"updateAppData",(function(){return p})),n.d(r,"updateAppUi",(function(){return s})),n.d(r,"updatePostID",(function(){return I})),n.d(r,"updatePermalink",(function(){return T})),n.d(r,"updateTitle",(function(){return S})),n.d(r,"updateDescription",(function(){return P})),n.d(r,"updateFeaturedImage",(function(){return A})),n.d(r,"updatePrimaryTermID",(function(){return M})),n.d(r,"updateRedirection",(function(){return E})),n.d(r,"updateRedirectionItem",(function(){return U})),n.d(r,"resetRedirection",(function(){return C})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return z})),n.d(r,"updateSerpSlug",(function(){return L})),n.d(r,"updateSerpDescription",(function(){return G})),n.d(r,"toggleSnippetEditor",(function(){return B})),n.d(r,"updateSnippetPreviewType",(function(){return V})),n.d(r,"toggleTrendsCta",(function(){return $})),n.d(r,"updateTwitterUseFacebook",(function(){return W})),n.d(r,"updateTwitterCardType",(function(){return q})),n.d(r,"updateTwitterTitle",(function(){return Q})),n.d(r,"updateTwitterDescription",(function(){return J})),n.d(r,"updateTwitterAuthor",(function(){return X})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return Z})),n.d(r,"updateTwitterHasOverlay",(function(){return tt})),n.d(r,"updateTwitterImageOverlay",(function(){return et})),n.d(r,"updateTwitterPlayerUrl",(function(){return nt})),n.d(r,"updateTwitterPlayerSize",(function(){return rt})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return at})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return it})),n.d(r,"updateTwitterAppDescription",(function(){return ot})),n.d(r,"updateTwitterAppIphoneID",(function(){return ct})),n.d(r,"updateTwitterAppIphoneName",(function(){return ut})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return pt})),n.d(r,"updateTwitterAppIpadID",(function(){return st})),n.d(r,"updateTwitterAppIpadName",(function(){return lt})),n.d(r,"updateTwitterAppIpadUrl",(function(){return dt})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ft})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return ht})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return mt})),n.d(r,"updateTwitterAppCountry",(function(){return gt})),n.d(r,"toggleLoaded",(function(){return yt})),n.d(r,"updateSelectedKeyword",(function(){return bt})),n.d(r,"refreshResults",(function(){return kt})),n.d(r,"setVersion",(function(){return wt})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return vt})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return _t})),n.d(r,"toggleSchemaEditor",(function(){return Pt})),n.d(r,"toggleSchemaTemplates",(function(){return At})),n.d(r,"schemaUpdated",(function(){return Mt})),n.d(r,"setEditingSchemaId",(function(){return Et})),n.d(r,"setEditorTab",(function(){return Ut})),n.d(r,"setTemplateTab",(function(){return Ct})),n.d(r,"updateEditSchemas",(function(){return Rt})),n.d(r,"updateSchemas",(function(){return Ft})),n.d(r,"updateEditSchema",(function(){return xt})),n.d(r,"saveSchema",(function(){return Kt})),n.d(r,"deleteSchema",(function(){return Nt})),n.d(r,"saveTemplate",(function(){return Ht})),n.d(r,"updateKeywordsData",(function(){return zt})),n.d(r,"updateAIScore",(function(){return Lt}));var a={};n.r(a),n.d(a,"appData",(function(){return Qt})),n.d(a,"appUi",(function(){return te}));var i={};n.r(i),n.d(i,"getAppData",(function(){return ee})),n.d(i,"getDirtyMetadata",(function(){return ne})),n.d(i,"getAnalysisScore",(function(){return re})),n.d(i,"getKeywords",(function(){return ae})),n.d(i,"getPillarContent",(function(){return ie})),n.d(i,"getRobots",(function(){return oe})),n.d(i,"getAdvancedRobots",(function(){return ce})),n.d(i,"getCanonicalUrl",(function(){return ue})),n.d(i,"getBreadcrumbTitle",(function(){return pe})),n.d(i,"getRichSnippets",(function(){return se})),n.d(i,"getShowScoreFrontend",(function(){return le})),n.d(i,"isLoaded",(function(){return de})),n.d(i,"getSelectedKeyword",(function(){return fe})),n.d(i,"isRefreshing",(function(){return he})),n.d(i,"isPro",(function(){return me})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ge})),n.d(i,"isDiviRankMathModalActive",(function(){return ye})),n.d(i,"getFacebookTitle",(function(){return be})),n.d(i,"getFacebookDescription",(function(){return ke})),n.d(i,"getFacebookAuthor",(function(){return we})),n.d(i,"getFacebookImageID",(function(){return ve})),n.d(i,"getFacebookImage",(function(){return _e})),n.d(i,"getFacebookHasOverlay",(function(){return Oe})),n.d(i,"getFacebookImageOverlay",(function(){return je})),n.d(i,"getPostID",(function(){return De})),n.d(i,"getTitle",(function(){return Ie})),n.d(i,"getPermalink",(function(){return Te})),n.d(i,"getDescription",(function(){return Se})),n.d(i,"getFeaturedImage",(function(){return Pe})),n.d(i,"getFeaturedImageHtml",(function(){return Ae})),n.d(i,"getPrimaryTermID",(function(){return Me})),n.d(i,"getRedirectionID",(function(){return Ee})),n.d(i,"getRedirectionType",(function(){return Ue})),n.d(i,"getRedirectionUrl",(function(){return Ce})),n.d(i,"getRedirectionItem",(function(){return Re})),n.d(i,"hasRedirect",(function(){return Fe})),n.d(i,"getSerpTitle",(function(){return Ke})),n.d(i,"getSerpSlug",(function(){return Ne})),n.d(i,"getSerpDescription",(function(){return He})),n.d(i,"isSnippetEditorOpen",(function(){return ze})),n.d(i,"getSnippetPreviewType",(function(){return Le})),n.d(i,"isTrendsCtaOpen",(function(){return Ge})),n.d(i,"isSchemaEditorOpen",(function(){return Be})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ve})),n.d(i,"hasSchemaUpdated",(function(){return $e})),n.d(i,"getSchemas",(function(){return We})),n.d(i,"getEditSchemas",(function(){return qe})),n.d(i,"getEditingSchema",(function(){return Qe})),n.d(i,"getPreviewSchema",(function(){return Je})),n.d(i,"getEditorTab",(function(){return Xe})),n.d(i,"getTemplateTab",(function(){return Ye})),n.d(i,"getTwitterUseFacebook",(function(){return Ze})),n.d(i,"getTwitterCardType",(function(){return tn})),n.d(i,"getTwitterTitle",(function(){return en})),n.d(i,"getTwitterDescription",(function(){return nn})),n.d(i,"getTwitterAuthor",(function(){return rn})),n.d(i,"getTwitterImageID",(function(){return an})),n.d(i,"getTwitterImage",(function(){return on})),n.d(i,"getTwitterHasOverlay",(function(){return cn})),n.d(i,"getTwitterImageOverlay",(function(){return un})),n.d(i,"getTwitterAppDescription",(function(){return pn})),n.d(i,"getTwitterAppIphoneID",(function(){return sn})),n.d(i,"getTwitterAppIphoneName",(function(){return ln})),n.d(i,"getTwitterAppIphoneUrl",(function(){return dn})),n.d(i,"getTwitterAppIpadID",(function(){return fn})),n.d(i,"getTwitterAppIpadName",(function(){return hn})),n.d(i,"getTwitterAppIpadUrl",(function(){return mn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return gn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return yn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return bn})),n.d(i,"getTwitterAppCountry",(function(){return kn})),n.d(i,"getTwitterPlayerUrl",(function(){return wn})),n.d(i,"getTwitterPlayerSize",(function(){return vn})),n.d(i,"getTwitterPlayerStream",(function(){return _n})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return On})),n.d(i,"getKeywordsData",(function(){return jn})),n.d(i,"getContentAIScore",(function(){return Dn}));var o=n(3),c=n(8),u=n(6);function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=Object(u.applyFilters)("rank_math_sanitize_data",e,t,n),null!==r&&(r=Object(u.applyFilters)("rank_math_sanitize_meta_value",r,t,n)),r=null===r?e:r,Object(u.doAction)("rank_math_data_changed",t,e,n),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:n,metaValue:r}}function s(t,e){return Object(u.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function l(t){return c.a.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),p("keywords",t,"rank_math_focus_keyword")}function d(t){return p("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function f(t){return p("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function h(t){return p("score",t,"rank_math_seo_score")}function m(t){return p("canonicalUrl",t,"rank_math_canonical_url")}function g(t){return p("advancedRobots",t,"rank_math_advanced_robots")}function y(t){return p("robots",t,"rank_math_robots",Object.keys(t))}function b(t){return p("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function k(){return p("dirtyMetadata",{})}function w(t){return p("facebookTitle",t,"rank_math_facebook_title")}function v(t){return p("facebookDescription",t,"rank_math_facebook_description")}function _(t){return p("facebookImage",t,"rank_math_facebook_image")}function O(t){return p("facebookImageID",t,"rank_math_facebook_image_id")}function j(t){return p("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function D(t){return p("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function I(t){return rankMath.objectID=t,p("postID",t)}function T(t){return p("permalink",t,"permalink")}function S(t){return p("title",t,"rank_math_title")}function P(t){return p("description",t,"rank_math_description")}function A(t){return p("featuredImage",t)}function M(t,e){return p("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function E(t,e){return p(t,e)}function U(t){return s("redirectionItem",t)}function C(){return s("redirectionItem",{})}function R(t){return s("hasRedirect",t)}var F=n(7),x=n(1),K=n(16),N=function(t,e){return t=(t=F.Helpers.cleanText(t)).replace(/\r?\n|\r/g," "),e?Object(x.truncate)(t,{length:e,separator:" "}):t},H=function(t){var e=rankMathEditor.assessor.dataCollector.getData(),n=e.excerpt,r=e.content?function(t){if(Object(x.isEmpty)(t))return"";t=Object(x.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=Object(x.filter)(F.Helpers.matchParagraphs(t,!0,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(x.filter)(e,(function(t){return Object(x.includes)(t.toLowerCase(),n.toLowerCase())}));if(0<r.length)return N(r[0],160)}return N(e[0],160)}(e.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(x.isUndefined)(n)||Object(x.isEmpty)(n)?r:Object(x.unescape)(n);if(c.a.setVariable("excerpt",a),c.a.setVariable("seo_description",a),""!==(t=Object(K.a)(Object(u.applyFilters)("rankMath/description",t))))return F.Helpers.cleanText(t);if(!Object(x.isUndefined)(n)&&!Object(x.isEmpty)(n))return F.Helpers.cleanText(n);var i=Object(x.unescape)(rankMath.assessor.serpData.descriptionTemplate);return Object(x.isUndefined)(i)||""===i?r:F.Helpers.cleanText(i)};function z(t){return t=c.a.swap(""!==t?t:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),s("serpTitle",t)}function L(t){return t=""!==t?t:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),s("serpSlug",t)}function G(t){return t=c.a.swap(H(t)),rankMathEditor.refresh("description"),s("serpDescription",t)}function B(t){return s("isSnippetEditorOpen",t)}function V(t){return s("snippetPreviewType",t)}function $(t){return s("isTrendsCtaOpen",t)}function W(t){return p("twitterUseFacebook",t,"rank_math_twitter_use_facebook",!0===t?"on":"off")}function q(t){return p("twitterCardType",t,"rank_math_twitter_card_type")}function Q(t){return p("twitterTitle",t,"rank_math_twitter_title")}function J(t){return p("twitterDescription",t,"rank_math_twitter_description")}function X(t){return p("twitterAuthor",t,"rank_math_twitter_author")}function Y(t){return p("twitterImageID",t,"rank_math_twitter_image_id")}function Z(t){return p("twitterImage",t,"rank_math_twitter_image")}function tt(t){return p("twitterHasOverlay",t,"rank_math_twitter_enable_image_overlay",!0===t?"on":"off")}function et(t){return p("twitterImageOverlay",t,"rank_math_twitter_image_overlay")}function nt(t){return p("twitterPlayerUrl",t,"rank_math_twitter_player_url")}function rt(t){return p("twitterPlayerSize",t,"rank_math_twitter_player_size")}function at(t){return p("twitterPlayerStream",t,"rank_math_twitter_player_stream")}function it(t){return p("twitterPlayerStreamCtype",t,"rank_math_twitter_player_stream_ctype")}function ot(t){return p("twitterAppDescription",t,"rank_math_twitter_app_description")}function ct(t){return p("twitterAppIphoneID",t,"rank_math_twitter_app_iphone_id")}function ut(t){return p("twitterAppIphoneName",t,"rank_math_twitter_app_iphone_name")}function pt(t){return p("twitterAppIphoneUrl",t,"rank_math_twitter_app_iphone_url")}function st(t){return p("twitterAppIpadID",t,"rank_math_twitter_app_ipad_id")}function lt(t){return p("twitterAppIpadName",t,"rank_math_twitter_app_ipad_name")}function dt(t){return p("twitterAppIpadUrl",t,"rank_math_twitter_app_ipad_url")}function ft(t){return p("twitterAppGoogleplayID",t,"rank_math_twitter_app_googleplay_id")}function ht(t){return p("twitterAppGoogleplayName",t,"rank_math_twitter_app_googleplay_name")}function mt(t){return p("twitterAppGoogleplayUrl",t,"rank_math_twitter_app_googleplay_url")}function gt(t){return p("twitterAppCountry",t,"rank_math_twitter_app_country")}function yt(t){return s("isLoaded",t)}function bt(t){return s("selectedKeyword",t)}function kt(){return s("refreshResults",Date.now())}function wt(){return s("isPro",!0)}function vt(t){return s("isDiviPageSettingsBarActive",t)}function _t(t){return s("isDiviRankMathModalActive",t)}var Ot=n(0),jt=n(13),Dt=n.n(jt);function It(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?It(Object(n),!0).forEach((function(e){St(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pt(t){return s("isSchemaEditorOpen",t)}function At(t){return s("isSchemaTemplatesOpen",t)}function Mt(t){return s("schemaUpdated",t)}function Et(t){return s("editingSchemaId",t)}function Ut(t){return s("editorTab",t)}function Ct(t){return s("templateTab",t)}function Rt(t){return s("editSchemas",t)}function Ft(t){return p("schemas",t)}function xt(t,e){var n=Tt({},Object(o.select)("rank-math").getEditSchemas());return n[t]=e,s("editSchemas",n)}function Kt(t,e){var n=Tt({},Object(o.select)("rank-math").getSchemas());return n[t]=e,p("schemas",n)}function Nt(t){var e=Tt({},Object(o.select)("rank-math").getSchemas());return delete e[t],Object(u.doAction)("rank_math_schema_trash",t),p("schemas",e,"rank_math_delete_"+t,"")}function Ht(t,e,n){return Dt()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:t,postId:n}}).then((function(n){e({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){e({showNotice:!1}),Object(x.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(Ot.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:t,title:t.metadata.title,type:t["@type"]})})),e({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function zt(t){return s("keywordsData",t)}function Lt(t){return p("contentAIScore",t,"rank_math_contentai_score")}function Gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(n),!0).forEach((function(e){Vt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $t=rankMath.assessor.serpData,Wt=rankMath.assessor.hasRedirection,qt={postID:null,title:$t.title?$t.title:$t.titleTemplate,description:$t.description,keywords:$t.focusKeywords,pillarContent:$t.pillarContent,featuredImage:"",permalink:!1,primaryTerm:$t.primaryTerm,robots:$t.robots,advancedRobots:$t.advancedRobots,canonicalUrl:$t.canonicalUrl,breadcrumbTitle:$t.breadcrumbTitle,showScoreFrontend:$t.showScoreFrontend,redirectionID:Wt?Object(x.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:Wt?Object(x.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:Wt?Object(x.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:$t.facebookTitle,facebookImage:$t.facebookImage,facebookImageID:$t.facebookImageID,facebookAuthor:$t.facebookAuthor,facebookDescription:$t.facebookDescription,facebookHasOverlay:$t.facebookHasOverlay,facebookImageOverlay:$t.facebookImageOverlay,twitterTitle:$t.twitterTitle,twitterImage:$t.twitterImage,twitterAuthor:$t.twitterAuthor,twitterImageID:$t.twitterImageID,twitterCardType:$t.twitterCardType,twitterUseFacebook:$t.twitterUseFacebook,twitterDescription:$t.twitterDescription,twitterHasOverlay:$t.twitterHasOverlay,twitterImageOverlay:$t.twitterImageOverlay,twitterPlayerUrl:$t.twitterPlayerUrl,twitterPlayerSize:$t.twitterPlayerSize,twitterPlayerStream:$t.twitterPlayerStream,twitterPlayerStreamCtype:$t.twitterPlayerStreamCtype,twitterAppDescription:$t.twitterAppDescription,twitterAppIphoneName:$t.twitterAppIphoneName,twitterAppIphoneID:$t.twitterAppIphoneID,twitterAppIphoneUrl:$t.twitterAppIphoneUrl,twitterAppIpadName:$t.twitterAppIpadName,twitterAppIpadID:$t.twitterAppIpadID,twitterAppIpadUrl:$t.twitterAppIpadUrl,twitterAppGoogleplayName:$t.twitterAppGoogleplayName,twitterAppGoogleplayID:$t.twitterAppGoogleplayID,twitterAppGoogleplayUrl:$t.twitterAppGoogleplayUrl,twitterAppCountry:$t.twitterAppCountry,schemas:Object(x.get)(rankMath,"schemas",{}),score:0,contentAIScore:{},dirtyMetadata:{}};function Qt(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qt,n=arguments.length>1?arguments[1]:void 0,r=Bt({},e.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Bt(Bt({},e),{},{dirtyMetadata:n.value}):Bt(Bt({},e),{},(Vt(t={},n.key,n.value),Vt(t,"dirtyMetadata",r),t)):e}function Jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jt(Object(n),!0).forEach((function(e){Yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zt={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!Object(x.isEmpty)(Object(x.get)(rankMath.assessor,"redirection.id",""))&&!Object(x.isEmpty)(Object(x.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1,keywordsData:Object(x.get)(rankMath,"ca_data",[])};function te(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zt,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?Xt(Xt({},t),{},Yt({},e.key,e.value)):t}function ee(t){return t.appData}function ne(t){return t.appData.dirtyMetadata}function re(t){return t.appData.score}function ae(t){return t.appData.keywords}function ie(t){return t.appData.pillarContent}function oe(t){return t.appData.robots}function ce(t){return t.appData.advancedRobots}function ue(t){return t.appData.canonicalUrl}function pe(t){return t.appData.breadcrumbTitle}function se(t){return"todo"}function le(t){return t.appData.showScoreFrontend}function de(t){return t.appUi.isLoaded}function fe(t){return t.appUi.selectedKeyword}function he(t){return t.appUi.refreshResults}function me(t){return t.appUi.isPro}function ge(t){return t.appUi.isDiviPageSettingsBarActive}function ye(t){return t.appUi.isDiviRankMathModalActive}function be(t){return t.appData.facebookTitle}function ke(t){return t.appData.facebookDescription}function we(t){return t.appData.facebookAuthor}function ve(t){return t.appData.facebookImageID}function _e(t){return t.appData.facebookImage}function Oe(t){return t.appData.facebookHasOverlay}function je(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function De(t){return t.appData.postID}function Ie(t){return t.appData.title}function Te(t){return t.appData.permalink}function Se(t){return t.appData.description}function Pe(t){return t.appData.featuredImage}function Ae(t){var e=t.appData.featuredImage;return'<img src="'.concat(e.source_url,'" alt="').concat(e.alt_text,'" >')}function Me(t){return t.appData.primaryTerm}function Ee(t){return t.appData.redirectionID}function Ue(t){return t.appData.redirectionType}function Ce(t){return t.appData.redirectionUrl}function Re(t){return t.appUi.redirectionItem}function Fe(t){return t.appUi.hasRedirect}var xe=n(9);function Ke(t){return Object(K.a)(t.appUi.serpTitle)}function Ne(t){return Object(xe.safeDecodeURIComponent)(t.appUi.serpSlug)}function He(t){return t.appUi.serpDescription}function ze(t){return t.appUi.isSnippetEditorOpen}function Le(t){return t.appUi.snippetPreviewType}function Ge(t){return t.appUi.isTrendsCtaOpen}function Be(t){return t.appUi.isSchemaEditorOpen}function Ve(t){return t.appUi.isSchemaTemplatesOpen}function $e(t){return t.appUi.schemaUpdated}function We(t){return t.appData.schemas}function qe(t){return t.appUi.editSchemas}function Qe(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function Je(t){return t.appData.schemas[t.appUi.editingSchemaId]}function Xe(t){return t.appUi.editorTab}function Ye(t){return t.appUi.templateTab}function Ze(t){return t.appData.twitterUseFacebook}function tn(t){return t.appData.twitterCardType}function en(t){return t.appData.twitterTitle}function nn(t){return t.appData.twitterDescription}function rn(t){return t.appData.twitterAuthor}function an(t){return t.appData.twitterImageID}function on(t){return t.appData.twitterImage}function cn(t){return t.appData.twitterHasOverlay}function un(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function pn(t){return t.appData.twitterAppDescription}function sn(t){return t.appData.twitterAppIphoneID}function ln(t){return t.appData.twitterAppIphoneName}function dn(t){return t.appData.twitterAppIphoneUrl}function fn(t){return t.appData.twitterAppIpadID}function hn(t){return t.appData.twitterAppIpadName}function mn(t){return t.appData.twitterAppIpadUrl}function gn(t){return t.appData.twitterAppGoogleplayID}function yn(t){return t.appData.twitterAppGoogleplayName}function bn(t){return t.appData.twitterAppGoogleplayUrl}function kn(t){return t.appData.twitterAppCountry}function wn(t){return t.appData.twitterPlayerUrl}function vn(t){return t.appData.twitterPlayerSize}function _n(t){return t.appData.twitterPlayerStream}function On(t){return t.appData.twitterPlayerStreamCtype}function jn(t){return t.appUi.keywordsData}function Dn(t){return t.appData.contentAIScore}var In=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function Tn(){return In}},16:function(t,e,n){"use strict";var r=document.createElement("div");e.a=function(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=t,t=r.textContent,r.textContent=""),t}},2:function(t,e){t.exports=jQuery},20:function(t,e,n){"use strict";var r=n(4),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,c=function(t){var e=t.children,n=t.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},e))};c.Slot=o,e.a=c},21:function(t,e,n){"use strict";var r=n(4),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,c=function(t){var e=t.children,n=t.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},e))};c.Slot=o,e.a=c},22:function(t,e,n){"use strict";var r=n(4),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,c=function(t){var e=t.children,n=t.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},e))};c.Slot=o,e.a=c},25:function(t,e,n){"use strict";var r=n(0),a=n(6);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var e,n,o;return e=t,(n=[{key:"contentLength",value:function(t){return{hasScore:t.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(e.prototype,n),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=o},3:function(t,e){t.exports=wp.data},30:function(t,e){t.exports=wp.mediaUtils},33:function(t,e,n){"use strict";var r=n(7),a=n(6),i=n(15),o=n(1),c=n(0),u=n(3);function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer=new r.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=e,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var e,n,s;return e=t,(n=[{key:"updateKeywordResult",value:function(t,e){rankMathEditor.resultManager.update(t,{keywordNotUsed:e}),t===this.getSelectedKeyword().toLowerCase()&&Object(u.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(t,e){return"schemas"===e||Object(o.isObject)(t)||Object(o.isEmpty)(t)?t:r.Helpers.sanitizeAppData(t)}},{key:"getPaper",value:function(t,e){var n=Object(i.a)().getState(),c=this.dataCollector.getData(),u=new r.Paper("",{locale:rankMath.localeFull});return u.setTitle(n.appUi.serpTitle),u.setPermalink(c.slug),u.setDescription(n.appUi.serpDescription),u.setUrl(c.permalink),u.setText(Object(o.unescape)(Object(a.applyFilters)("rank_math_content",c.content))),u.setKeyword(t),u.setKeywords(e),Object(o.isUndefined)(c.featuredImage)||(u.setThumbnail(c.featuredImage.source_url),u.setThumbnailAltText(r.Helpers.removeDiacritics(c.featuredImage.alt_text))),u}},{key:"registerRefresh",value:function(){var t=this;this.refresh=Object(o.debounce)((function(e){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),c=[];Object(a.doAction)("rank_math_"+e+"_refresh"),o.map((function(e,n){var a=t.getPaper(r.Helpers.removeDiacritics(e),o),i=0===n?rankMath.assessor.researchesTests:t.filterTests(t.getSecondaryKeywordTests());c.push(t.analyzer.analyzeSome(i,a).then((function(t){rankMathEditor.resultManager.update(a.getKeyword(),t,0===n),0===n&&Object(u.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(c).then((function(){Object(u.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var t=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(t.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var t=Object(i.a)().getState(),e=""!==t.appUi.selectedKeyword.data.value?t.appUi.selectedKeyword.data.value:t.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(e)}},{key:"getResearch",value:function(t){return this.analyzer.researcher.getResearch(t)}},{key:"filterTests",value:function(t){return Object(o.intersection)(t,rankMath.assessor.researchesTests)}}])&&p(e.prototype,n),s&&p(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}(),l=n(25);function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,(n=[{key:"setup",value:function(t){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new s(t),new l.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(t){this.assessor.refresh(t)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(t){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(t){throw"Implement the function"}}])&&d(e.prototype,n),o&&d(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=f},4:function(t,e){t.exports=wp.components},42:function(t,e){t.exports=Marionette},5:function(t,e){t.exports=wp.element},6:function(t,e){t.exports=wp.hooks},7:function(t,e){t.exports=rankMathAnalyzer},77:function(t,e,n){"use strict";n.r(e);var r=n(2),a=n.n(r),i=n(3),o=n(30),c=n(6),u=n(33),p=n(1),s=n(13),l=n.n(s),d=n(9),f=n(8);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var b=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initialize=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),setTimeout(this.elementorPreviewLoaded.bind(this),5e3)}var e,n,r;return e=t,(n=[{key:"elementorPreviewLoaded",value:function(){var t=this;Object(c.addAction)("rank_math_data_changed","rank-math",(function(){t.activateSaveButton()})),Object(c.addAction)("rank_math_update_app_ui","rank-math",(function(e){"hasRedirect"===e&&t.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){var t=Object(p.get)(elementor,"saver.footerSaver",!1);!1===t?elementor.channels.editor.trigger("status:change",!0):t.activateSaveButtons(document,!0)}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var t=[];return this.getContentArea().find(".elementor-widget-container").each((function(){t.push(a()(this).html())})),t.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var t=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return t.length<1?a()("<div />"):(this._contentArea=t,t)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return Object(d.safeDecodeURIComponent)(Object(i.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var t=elementor.settings.page.model.get("post_featured_image");if(!Object(p.isUndefined)(t)&&(t=""===t.id?0:parseInt(t.id),this.isValidMediaId(t))){var e=Object(i.select)("core").getMedia(t);if(!Object(p.isUndefined)(e))return e}}},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0<t}},{key:"subscribeToElementor",value:function(){Object(i.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(p.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),elementor.saver.on("before:save",this.savePost),elementor.saver.on("before:save",this.saveRedirection),elementor.saver.on("before:save",this.saveSchemas),elementor.settings.page.model.on("change",this.subscriber)}},{key:"refresh",value:function(){var t=m({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(t),!Object(p.isEqual)(t,this._data)&&t.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var t=Object(i.select)("rank-math").getDirtyMetadata();Object(p.isEmpty)(t)||(l()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t,content:this.getContent()}}).then((function(t){Object(p.isString)(t.slug)&&Object(i.dispatch)("rank-math").updatePermalink(t.slug),Object(c.doAction)("rank_math_metadata_updated",t)})),Object(i.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var t=Object(i.select)("rank-math").getRedirectionItem();Object(p.isEmpty)(t)||(t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink(),l()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?Object(i.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===t.action&&Object(i.dispatch)("rank-math").updateRedirection("redirectionID",t.id)})),Object(i.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var t=Object(i.select)("rank-math").getSchemas();if(!Object(p.isEmpty)(t)&&Object(i.select)("rank-math").hasSchemaUpdated()){var e=Object(i.select)("rank-math").getEditSchemas();l()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:t}}).then((function(n){if(!Object(p.isEmpty)(n)){var r=m({},t),a=m({},e);Object(p.map)(n,(function(t,e){r["schema-"+t]=m({},r[e]),a["schema-"+t]=m({},a[e]),delete r[e],delete a[e]})),Object(i.dispatch)("rank-math").schemaUpdated(!1),Object(i.dispatch)("rank-math").updateSchemas(r),Object(i.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(t){var e=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(p.isInteger)(t.id))return this.initialize?void Object(p.forEach)(n,(function(n,r){e._data[r]!==t[r]&&e[n](e._data[r])})):(this.initialize=!0,Object(p.forEach)(n,(function(t,n){e[t](e._data[n])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(t){Object(i.dispatch)("rank-math").updatePostID(t),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(t){f.a.setVariable("title",t),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(t){f.a.setVariable("excerpt",t),f.a.setVariable("excerpt_only",t),f.a.setVariable("wc_shortdesc",t),f.a.setVariable("seo_description",t),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(t){Object(i.dispatch)("rank-math").updateFeaturedImage(t),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&y(e.prototype,n),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),k=n(42),w=n.n(k),v=n(5),_=w.a.ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){a()("#elementor-panel-elements-search-area").hide()},onShow:function(){Object(v.render)(Object(v.createElement)(Object(c.applyFilters)("rank_math_app",{})),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){a()("#elementor-panel-elements-search-area").show()}}),O=function(t){return t["rank-math"]={region:t.global.region,view:_,options:{}},t};function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var e,n,r;return e=t,(n=[{key:"onThemeChange",value:function(t){var e=Object(p.get)(t,"changed.ui_theme",!1);if(!1!==e){this.manageContentAI(e);var n=this.getThemeLink();"light"!==e?n.attr("media","auto"===e?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):n.remove()}}},{key:"manageContentAI",value:function(t){if(rankMath.elementorContentAI){var e=this.getContentAILink();"light"!==t?e.attr("media","auto"===t?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):e.remove()}}},{key:"getThemeLink",value:function(){return this.link||this.createThemeLink(),this.link}},{key:"getContentAILink",value:function(){return this.contentAIlink||this.createcontentAILink(),this.contentAIlink}},{key:"createThemeLink",value:function(){var t="rank-math-elementor-dark-css";this.link=a()("#"+t),this.link.length||(this.link=a()("<link>",{id:t,rel:"stylesheet",href:rankMath.elementorDarkMode}))}},{key:"createcontentAILink",value:function(){var t="rank-math-content-ai-dark-css";this.contentAIlink=a()("#"+t),this.contentAIlink.length||(this.contentAIlink=a()("<link>",{id:t,rel:"stylesheet",href:rankMath.elementorContentAI}))}}])&&j(e.prototype,n),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),I=n(20),T=n(21),S=n(22);function P(t){return P="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},P(t)}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(){return E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=U(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(arguments.length<3?t:n):a.value}},E.apply(this,arguments)}function U(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=x(t)););return t}function C(t,e){return C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},C(t,e)}function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=x(t);if(e){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F(this,n)}}function F(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}var K=function(){return o.MediaUpload},N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(o,t);var e,n,r,a=R(o);function o(){return A(this,o),a.apply(this,arguments)}return e=o,(n=[{key:"setup",value:function(t){this.registerSlots=this.registerSlots.bind(this),Object(c.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(c.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",K),E(x(o.prototype),"setup",this).call(this,t)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=I.a,this.RankMathAfterFocusKeyword=S.a,this.RankMathAdvancedTab=T.a,this.slots={AfterEditor:I.a,AfterFocusKeyword:S.a,AdvancedTab:T.a}}},{key:"updatePermalink",value:function(t){Object(i.dispatch)("rank-math").updatePermalink(t)}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),Object(i.dispatch)("rank-math").updatePermalink(t)}}])&&M(e.prototype,n),r&&M(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(u.a);a()((function(){window.rankMathEditor=new N,window.rankMathGutenberg=window.rankMathEditor,new D,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),window.rankMathEditor.setup(new b),Object(i.dispatch)("rank-math").refreshResults()}))})),a()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",O)}))},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),a=n.n(r);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.map=null}var e,n,r;return e=t,(n=[{key:"swap",value:function(t,e){var n=this;if(!(t=t||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return t.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(t){return n.replace(e,t)})).trim()}},{key:"replace",value:function(t,e){var n=e.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(t=t||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in t?t[n]:"")}},{key:"getMap",value:function(){var t=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(e,n){e=e.toLowerCase().replace(/%+/g,"").split("(")[0],t.map[e]=n.example}))),this.map}},{key:"setVariable",value:function(t,e){null!==this.map?this.map[t]=e:void 0!==rankMath.variables[t]&&(rankMath.variables[t].example=e)}}])&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}())},9:function(t,e){t.exports=wp.url}});
|
1 |
+
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=76)}({0:function(t,e){t.exports=wp.i18n},1:function(t,e){t.exports=lodash},13:function(t,e){t.exports=wp.apiFetch},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return Tn}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return l})),n.d(r,"updatePillarContent",(function(){return d})),n.d(r,"toggleFrontendScore",(function(){return f})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return m})),n.d(r,"updateAdvancedRobots",(function(){return g})),n.d(r,"updateRobots",(function(){return y})),n.d(r,"updateBreadcrumbTitle",(function(){return b})),n.d(r,"resetDirtyMetadata",(function(){return k})),n.d(r,"updateFacebookTitle",(function(){return w})),n.d(r,"updateFacebookDescription",(function(){return v})),n.d(r,"updateFacebookImage",(function(){return _})),n.d(r,"updateFacebookImageID",(function(){return O})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return D})),n.d(r,"updateAppData",(function(){return p})),n.d(r,"updateAppUi",(function(){return s})),n.d(r,"updatePostID",(function(){return I})),n.d(r,"updatePermalink",(function(){return T})),n.d(r,"updateTitle",(function(){return S})),n.d(r,"updateDescription",(function(){return P})),n.d(r,"updateFeaturedImage",(function(){return A})),n.d(r,"updatePrimaryTermID",(function(){return M})),n.d(r,"updateRedirection",(function(){return E})),n.d(r,"updateRedirectionItem",(function(){return U})),n.d(r,"resetRedirection",(function(){return C})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return z})),n.d(r,"updateSerpSlug",(function(){return L})),n.d(r,"updateSerpDescription",(function(){return G})),n.d(r,"toggleSnippetEditor",(function(){return B})),n.d(r,"updateSnippetPreviewType",(function(){return V})),n.d(r,"toggleTrendsCta",(function(){return $})),n.d(r,"updateTwitterUseFacebook",(function(){return W})),n.d(r,"updateTwitterCardType",(function(){return q})),n.d(r,"updateTwitterTitle",(function(){return Q})),n.d(r,"updateTwitterDescription",(function(){return J})),n.d(r,"updateTwitterAuthor",(function(){return X})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return Z})),n.d(r,"updateTwitterHasOverlay",(function(){return tt})),n.d(r,"updateTwitterImageOverlay",(function(){return et})),n.d(r,"updateTwitterPlayerUrl",(function(){return nt})),n.d(r,"updateTwitterPlayerSize",(function(){return rt})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return at})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return it})),n.d(r,"updateTwitterAppDescription",(function(){return ot})),n.d(r,"updateTwitterAppIphoneID",(function(){return ct})),n.d(r,"updateTwitterAppIphoneName",(function(){return ut})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return pt})),n.d(r,"updateTwitterAppIpadID",(function(){return st})),n.d(r,"updateTwitterAppIpadName",(function(){return lt})),n.d(r,"updateTwitterAppIpadUrl",(function(){return dt})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ft})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return ht})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return mt})),n.d(r,"updateTwitterAppCountry",(function(){return gt})),n.d(r,"toggleLoaded",(function(){return yt})),n.d(r,"updateSelectedKeyword",(function(){return bt})),n.d(r,"refreshResults",(function(){return kt})),n.d(r,"setVersion",(function(){return wt})),n.d(r,"toggleIsDiviPageSettingsBarActive",(function(){return vt})),n.d(r,"toggleIsDiviRankMathModalActive",(function(){return _t})),n.d(r,"toggleSchemaEditor",(function(){return Pt})),n.d(r,"toggleSchemaTemplates",(function(){return At})),n.d(r,"schemaUpdated",(function(){return Mt})),n.d(r,"setEditingSchemaId",(function(){return Et})),n.d(r,"setEditorTab",(function(){return Ut})),n.d(r,"setTemplateTab",(function(){return Ct})),n.d(r,"updateEditSchemas",(function(){return Rt})),n.d(r,"updateSchemas",(function(){return Ft})),n.d(r,"updateEditSchema",(function(){return xt})),n.d(r,"saveSchema",(function(){return Kt})),n.d(r,"deleteSchema",(function(){return Nt})),n.d(r,"saveTemplate",(function(){return Ht})),n.d(r,"updateKeywordsData",(function(){return zt})),n.d(r,"updateAIScore",(function(){return Lt}));var a={};n.r(a),n.d(a,"appData",(function(){return Qt})),n.d(a,"appUi",(function(){return te}));var i={};n.r(i),n.d(i,"getAppData",(function(){return ee})),n.d(i,"getDirtyMetadata",(function(){return ne})),n.d(i,"getAnalysisScore",(function(){return re})),n.d(i,"getKeywords",(function(){return ae})),n.d(i,"getPillarContent",(function(){return ie})),n.d(i,"getRobots",(function(){return oe})),n.d(i,"getAdvancedRobots",(function(){return ce})),n.d(i,"getCanonicalUrl",(function(){return ue})),n.d(i,"getBreadcrumbTitle",(function(){return pe})),n.d(i,"getRichSnippets",(function(){return se})),n.d(i,"getShowScoreFrontend",(function(){return le})),n.d(i,"isLoaded",(function(){return de})),n.d(i,"getSelectedKeyword",(function(){return fe})),n.d(i,"isRefreshing",(function(){return he})),n.d(i,"isPro",(function(){return me})),n.d(i,"isDiviPageSettingsBarActive",(function(){return ge})),n.d(i,"isDiviRankMathModalActive",(function(){return ye})),n.d(i,"getFacebookTitle",(function(){return be})),n.d(i,"getFacebookDescription",(function(){return ke})),n.d(i,"getFacebookAuthor",(function(){return we})),n.d(i,"getFacebookImageID",(function(){return ve})),n.d(i,"getFacebookImage",(function(){return _e})),n.d(i,"getFacebookHasOverlay",(function(){return Oe})),n.d(i,"getFacebookImageOverlay",(function(){return je})),n.d(i,"getPostID",(function(){return De})),n.d(i,"getTitle",(function(){return Ie})),n.d(i,"getPermalink",(function(){return Te})),n.d(i,"getDescription",(function(){return Se})),n.d(i,"getFeaturedImage",(function(){return Pe})),n.d(i,"getFeaturedImageHtml",(function(){return Ae})),n.d(i,"getPrimaryTermID",(function(){return Me})),n.d(i,"getRedirectionID",(function(){return Ee})),n.d(i,"getRedirectionType",(function(){return Ue})),n.d(i,"getRedirectionUrl",(function(){return Ce})),n.d(i,"getRedirectionItem",(function(){return Re})),n.d(i,"hasRedirect",(function(){return Fe})),n.d(i,"getSerpTitle",(function(){return Ke})),n.d(i,"getSerpSlug",(function(){return Ne})),n.d(i,"getSerpDescription",(function(){return He})),n.d(i,"isSnippetEditorOpen",(function(){return ze})),n.d(i,"getSnippetPreviewType",(function(){return Le})),n.d(i,"isTrendsCtaOpen",(function(){return Ge})),n.d(i,"isSchemaEditorOpen",(function(){return Be})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ve})),n.d(i,"hasSchemaUpdated",(function(){return $e})),n.d(i,"getSchemas",(function(){return We})),n.d(i,"getEditSchemas",(function(){return qe})),n.d(i,"getEditingSchema",(function(){return Qe})),n.d(i,"getPreviewSchema",(function(){return Je})),n.d(i,"getEditorTab",(function(){return Xe})),n.d(i,"getTemplateTab",(function(){return Ye})),n.d(i,"getTwitterUseFacebook",(function(){return Ze})),n.d(i,"getTwitterCardType",(function(){return tn})),n.d(i,"getTwitterTitle",(function(){return en})),n.d(i,"getTwitterDescription",(function(){return nn})),n.d(i,"getTwitterAuthor",(function(){return rn})),n.d(i,"getTwitterImageID",(function(){return an})),n.d(i,"getTwitterImage",(function(){return on})),n.d(i,"getTwitterHasOverlay",(function(){return cn})),n.d(i,"getTwitterImageOverlay",(function(){return un})),n.d(i,"getTwitterAppDescription",(function(){return pn})),n.d(i,"getTwitterAppIphoneID",(function(){return sn})),n.d(i,"getTwitterAppIphoneName",(function(){return ln})),n.d(i,"getTwitterAppIphoneUrl",(function(){return dn})),n.d(i,"getTwitterAppIpadID",(function(){return fn})),n.d(i,"getTwitterAppIpadName",(function(){return hn})),n.d(i,"getTwitterAppIpadUrl",(function(){return mn})),n.d(i,"getTwitterAppGoogleplayID",(function(){return gn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return yn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return bn})),n.d(i,"getTwitterAppCountry",(function(){return kn})),n.d(i,"getTwitterPlayerUrl",(function(){return wn})),n.d(i,"getTwitterPlayerSize",(function(){return vn})),n.d(i,"getTwitterPlayerStream",(function(){return _n})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return On})),n.d(i,"getKeywordsData",(function(){return jn})),n.d(i,"getContentAIScore",(function(){return Dn}));var o=n(3),c=n(8),u=n(6);function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=Object(u.applyFilters)("rank_math_sanitize_data",e,t,n),null!==r&&(r=Object(u.applyFilters)("rank_math_sanitize_meta_value",r,t,n)),r=null===r?e:r,Object(u.doAction)("rank_math_data_changed",t,e,n),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:n,metaValue:r}}function s(t,e){return Object(u.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function l(t){return c.a.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),p("keywords",t,"rank_math_focus_keyword")}function d(t){return p("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function f(t){return p("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function h(t){return p("score",t,"rank_math_seo_score")}function m(t){return p("canonicalUrl",t,"rank_math_canonical_url")}function g(t){return p("advancedRobots",t,"rank_math_advanced_robots")}function y(t){return p("robots",t,"rank_math_robots",Object.keys(t))}function b(t){return p("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function k(){return p("dirtyMetadata",{})}function w(t){return p("facebookTitle",t,"rank_math_facebook_title")}function v(t){return p("facebookDescription",t,"rank_math_facebook_description")}function _(t){return p("facebookImage",t,"rank_math_facebook_image")}function O(t){return p("facebookImageID",t,"rank_math_facebook_image_id")}function j(t){return p("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function D(t){return p("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function I(t){return rankMath.objectID=t,p("postID",t)}function T(t){return p("permalink",t,"permalink")}function S(t){return p("title",t,"rank_math_title")}function P(t){return p("description",t,"rank_math_description")}function A(t){return p("featuredImage",t)}function M(t,e){return p("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function E(t,e){return p(t,e)}function U(t){return s("redirectionItem",t)}function C(){return s("redirectionItem",{})}function R(t){return s("hasRedirect",t)}var F=n(7),x=n(1),K=n(16),N=function(t,e){return t=(t=F.Helpers.cleanText(t)).replace(/\r?\n|\r/g," "),e?Object(x.truncate)(t,{length:e,separator:" "}):t},H=function(t){var e=rankMathEditor.assessor.dataCollector.getData(),n=e.excerpt,r=e.content?function(t){if(Object(x.isEmpty)(t))return"";t=Object(x.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=Object(x.filter)(F.Helpers.matchParagraphs(t,!0,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(x.filter)(e,(function(t){return Object(x.includes)(t.toLowerCase(),n.toLowerCase())}));if(0<r.length)return N(r[0],160)}return N(e[0],160)}(e.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(x.isUndefined)(n)||Object(x.isEmpty)(n)?r:Object(x.unescape)(n);if(c.a.setVariable("excerpt",a),c.a.setVariable("seo_description",a),""!==(t=Object(K.a)(Object(u.applyFilters)("rankMath/description",t))))return F.Helpers.cleanText(t);if(!Object(x.isUndefined)(n)&&!Object(x.isEmpty)(n))return F.Helpers.cleanText(n);var i=Object(x.unescape)(rankMath.assessor.serpData.descriptionTemplate);return Object(x.isUndefined)(i)||""===i?r:F.Helpers.cleanText(i)};function z(t){return t=c.a.swap(""!==t?t:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),s("serpTitle",t)}function L(t){return t=""!==t?t:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),s("serpSlug",t)}function G(t){return t=c.a.swap(H(t)),rankMathEditor.refresh("description"),s("serpDescription",t)}function B(t){return s("isSnippetEditorOpen",t)}function V(t){return s("snippetPreviewType",t)}function $(t){return s("isTrendsCtaOpen",t)}function W(t){return p("twitterUseFacebook",t,"rank_math_twitter_use_facebook",!0===t?"on":"off")}function q(t){return p("twitterCardType",t,"rank_math_twitter_card_type")}function Q(t){return p("twitterTitle",t,"rank_math_twitter_title")}function J(t){return p("twitterDescription",t,"rank_math_twitter_description")}function X(t){return p("twitterAuthor",t,"rank_math_twitter_author")}function Y(t){return p("twitterImageID",t,"rank_math_twitter_image_id")}function Z(t){return p("twitterImage",t,"rank_math_twitter_image")}function tt(t){return p("twitterHasOverlay",t,"rank_math_twitter_enable_image_overlay",!0===t?"on":"off")}function et(t){return p("twitterImageOverlay",t,"rank_math_twitter_image_overlay")}function nt(t){return p("twitterPlayerUrl",t,"rank_math_twitter_player_url")}function rt(t){return p("twitterPlayerSize",t,"rank_math_twitter_player_size")}function at(t){return p("twitterPlayerStream",t,"rank_math_twitter_player_stream")}function it(t){return p("twitterPlayerStreamCtype",t,"rank_math_twitter_player_stream_ctype")}function ot(t){return p("twitterAppDescription",t,"rank_math_twitter_app_description")}function ct(t){return p("twitterAppIphoneID",t,"rank_math_twitter_app_iphone_id")}function ut(t){return p("twitterAppIphoneName",t,"rank_math_twitter_app_iphone_name")}function pt(t){return p("twitterAppIphoneUrl",t,"rank_math_twitter_app_iphone_url")}function st(t){return p("twitterAppIpadID",t,"rank_math_twitter_app_ipad_id")}function lt(t){return p("twitterAppIpadName",t,"rank_math_twitter_app_ipad_name")}function dt(t){return p("twitterAppIpadUrl",t,"rank_math_twitter_app_ipad_url")}function ft(t){return p("twitterAppGoogleplayID",t,"rank_math_twitter_app_googleplay_id")}function ht(t){return p("twitterAppGoogleplayName",t,"rank_math_twitter_app_googleplay_name")}function mt(t){return p("twitterAppGoogleplayUrl",t,"rank_math_twitter_app_googleplay_url")}function gt(t){return p("twitterAppCountry",t,"rank_math_twitter_app_country")}function yt(t){return s("isLoaded",t)}function bt(t){return s("selectedKeyword",t)}function kt(){return s("refreshResults",Date.now())}function wt(){return s("isPro",!0)}function vt(t){return s("isDiviPageSettingsBarActive",t)}function _t(t){return s("isDiviRankMathModalActive",t)}var Ot=n(0),jt=n(13),Dt=n.n(jt);function It(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?It(Object(n),!0).forEach((function(e){St(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pt(t){return s("isSchemaEditorOpen",t)}function At(t){return s("isSchemaTemplatesOpen",t)}function Mt(t){return s("schemaUpdated",t)}function Et(t){return s("editingSchemaId",t)}function Ut(t){return s("editorTab",t)}function Ct(t){return s("templateTab",t)}function Rt(t){return s("editSchemas",t)}function Ft(t){return p("schemas",t)}function xt(t,e){var n=Tt({},Object(o.select)("rank-math").getEditSchemas());return n[t]=e,s("editSchemas",n)}function Kt(t,e){var n=Tt({},Object(o.select)("rank-math").getSchemas());return n[t]=e,p("schemas",n)}function Nt(t){var e=Tt({},Object(o.select)("rank-math").getSchemas());return delete e[t],Object(u.doAction)("rank_math_schema_trash",t),p("schemas",e,"rank_math_delete_"+t,"")}function Ht(t,e,n){return Dt()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:t,postId:n}}).then((function(n){e({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){e({showNotice:!1}),Object(x.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(Ot.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:t,title:t.metadata.title,type:t["@type"]})})),e({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function zt(t){return s("keywordsData",t)}function Lt(t){return p("contentAIScore",t,"rank_math_contentai_score")}function Gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(n),!0).forEach((function(e){Vt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $t=rankMath.assessor.serpData,Wt=rankMath.assessor.hasRedirection,qt={postID:null,title:$t.title?$t.title:$t.titleTemplate,description:$t.description,keywords:$t.focusKeywords,pillarContent:$t.pillarContent,featuredImage:"",permalink:!1,primaryTerm:$t.primaryTerm,robots:$t.robots,advancedRobots:$t.advancedRobots,canonicalUrl:$t.canonicalUrl,breadcrumbTitle:$t.breadcrumbTitle,showScoreFrontend:$t.showScoreFrontend,redirectionID:Wt?Object(x.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:Wt?Object(x.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:Wt?Object(x.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:$t.facebookTitle,facebookImage:$t.facebookImage,facebookImageID:$t.facebookImageID,facebookAuthor:$t.facebookAuthor,facebookDescription:$t.facebookDescription,facebookHasOverlay:$t.facebookHasOverlay,facebookImageOverlay:$t.facebookImageOverlay,twitterTitle:$t.twitterTitle,twitterImage:$t.twitterImage,twitterAuthor:$t.twitterAuthor,twitterImageID:$t.twitterImageID,twitterCardType:$t.twitterCardType,twitterUseFacebook:$t.twitterUseFacebook,twitterDescription:$t.twitterDescription,twitterHasOverlay:$t.twitterHasOverlay,twitterImageOverlay:$t.twitterImageOverlay,twitterPlayerUrl:$t.twitterPlayerUrl,twitterPlayerSize:$t.twitterPlayerSize,twitterPlayerStream:$t.twitterPlayerStream,twitterPlayerStreamCtype:$t.twitterPlayerStreamCtype,twitterAppDescription:$t.twitterAppDescription,twitterAppIphoneName:$t.twitterAppIphoneName,twitterAppIphoneID:$t.twitterAppIphoneID,twitterAppIphoneUrl:$t.twitterAppIphoneUrl,twitterAppIpadName:$t.twitterAppIpadName,twitterAppIpadID:$t.twitterAppIpadID,twitterAppIpadUrl:$t.twitterAppIpadUrl,twitterAppGoogleplayName:$t.twitterAppGoogleplayName,twitterAppGoogleplayID:$t.twitterAppGoogleplayID,twitterAppGoogleplayUrl:$t.twitterAppGoogleplayUrl,twitterAppCountry:$t.twitterAppCountry,schemas:Object(x.get)(rankMath,"schemas",{}),score:0,contentAIScore:{},dirtyMetadata:{}};function Qt(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qt,n=arguments.length>1?arguments[1]:void 0,r=Bt({},e.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Bt(Bt({},e),{},{dirtyMetadata:n.value}):Bt(Bt({},e),{},(Vt(t={},n.key,n.value),Vt(t,"dirtyMetadata",r),t)):e}function Jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jt(Object(n),!0).forEach((function(e){Yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zt={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!Object(x.isEmpty)(Object(x.get)(rankMath.assessor,"redirection.id",""))&&!Object(x.isEmpty)(Object(x.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1,keywordsData:Object(x.get)(rankMath,"ca_data",[])};function te(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zt,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?Xt(Xt({},t),{},Yt({},e.key,e.value)):t}function ee(t){return t.appData}function ne(t){return t.appData.dirtyMetadata}function re(t){return t.appData.score}function ae(t){return t.appData.keywords}function ie(t){return t.appData.pillarContent}function oe(t){return t.appData.robots}function ce(t){return t.appData.advancedRobots}function ue(t){return t.appData.canonicalUrl}function pe(t){return t.appData.breadcrumbTitle}function se(t){return"todo"}function le(t){return t.appData.showScoreFrontend}function de(t){return t.appUi.isLoaded}function fe(t){return t.appUi.selectedKeyword}function he(t){return t.appUi.refreshResults}function me(t){return t.appUi.isPro}function ge(t){return t.appUi.isDiviPageSettingsBarActive}function ye(t){return t.appUi.isDiviRankMathModalActive}function be(t){return t.appData.facebookTitle}function ke(t){return t.appData.facebookDescription}function we(t){return t.appData.facebookAuthor}function ve(t){return t.appData.facebookImageID}function _e(t){return t.appData.facebookImage}function Oe(t){return t.appData.facebookHasOverlay}function je(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function De(t){return t.appData.postID}function Ie(t){return t.appData.title}function Te(t){return t.appData.permalink}function Se(t){return t.appData.description}function Pe(t){return t.appData.featuredImage}function Ae(t){var e=t.appData.featuredImage;return'<img src="'.concat(e.source_url,'" alt="').concat(e.alt_text,'" >')}function Me(t){return t.appData.primaryTerm}function Ee(t){return t.appData.redirectionID}function Ue(t){return t.appData.redirectionType}function Ce(t){return t.appData.redirectionUrl}function Re(t){return t.appUi.redirectionItem}function Fe(t){return t.appUi.hasRedirect}var xe=n(9);function Ke(t){return Object(K.a)(t.appUi.serpTitle)}function Ne(t){return Object(xe.safeDecodeURIComponent)(t.appUi.serpSlug)}function He(t){return t.appUi.serpDescription}function ze(t){return t.appUi.isSnippetEditorOpen}function Le(t){return t.appUi.snippetPreviewType}function Ge(t){return t.appUi.isTrendsCtaOpen}function Be(t){return t.appUi.isSchemaEditorOpen}function Ve(t){return t.appUi.isSchemaTemplatesOpen}function $e(t){return t.appUi.schemaUpdated}function We(t){return t.appData.schemas}function qe(t){return t.appUi.editSchemas}function Qe(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function Je(t){return t.appData.schemas[t.appUi.editingSchemaId]}function Xe(t){return t.appUi.editorTab}function Ye(t){return t.appUi.templateTab}function Ze(t){return t.appData.twitterUseFacebook}function tn(t){return t.appData.twitterCardType}function en(t){return t.appData.twitterTitle}function nn(t){return t.appData.twitterDescription}function rn(t){return t.appData.twitterAuthor}function an(t){return t.appData.twitterImageID}function on(t){return t.appData.twitterImage}function cn(t){return t.appData.twitterHasOverlay}function un(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function pn(t){return t.appData.twitterAppDescription}function sn(t){return t.appData.twitterAppIphoneID}function ln(t){return t.appData.twitterAppIphoneName}function dn(t){return t.appData.twitterAppIphoneUrl}function fn(t){return t.appData.twitterAppIpadID}function hn(t){return t.appData.twitterAppIpadName}function mn(t){return t.appData.twitterAppIpadUrl}function gn(t){return t.appData.twitterAppGoogleplayID}function yn(t){return t.appData.twitterAppGoogleplayName}function bn(t){return t.appData.twitterAppGoogleplayUrl}function kn(t){return t.appData.twitterAppCountry}function wn(t){return t.appData.twitterPlayerUrl}function vn(t){return t.appData.twitterPlayerSize}function _n(t){return t.appData.twitterPlayerStream}function On(t){return t.appData.twitterPlayerStreamCtype}function jn(t){return t.appUi.keywordsData}function Dn(t){return t.appData.contentAIScore}var In=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function Tn(){return In}},16:function(t,e,n){"use strict";var r=document.createElement("div");e.a=function(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=t,t=r.textContent,r.textContent=""),t}},2:function(t,e){t.exports=jQuery},20:function(t,e,n){"use strict";var r=n(4),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,c=function(t){var e=t.children,n=t.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},e))};c.Slot=o,e.a=c},21:function(t,e,n){"use strict";var r=n(4),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,c=function(t){var e=t.children,n=t.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},e))};c.Slot=o,e.a=c},22:function(t,e,n){"use strict";var r=n(4),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,c=function(t){var e=t.children,n=t.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},e))};c.Slot=o,e.a=c},25:function(t,e,n){"use strict";var r=n(0),a=n(6);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var e,n,o;return e=t,(n=[{key:"contentLength",value:function(t){return{hasScore:t.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(e.prototype,n),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=o},3:function(t,e){t.exports=wp.data},30:function(t,e){t.exports=wp.mediaUtils},33:function(t,e,n){"use strict";var r=n(7),a=n(6),i=n(15),o=n(1),c=n(0),u=n(3);function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer=new r.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=e,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var e,n,s;return e=t,(n=[{key:"updateKeywordResult",value:function(t,e){rankMathEditor.resultManager.update(t,{keywordNotUsed:e}),t===this.getSelectedKeyword().toLowerCase()&&Object(u.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(t,e){return"schemas"===e||Object(o.isObject)(t)||Object(o.isEmpty)(t)?t:r.Helpers.sanitizeAppData(t)}},{key:"getPaper",value:function(t,e){var n=Object(i.a)().getState(),c=this.dataCollector.getData(),u=new r.Paper("",{locale:rankMath.localeFull});return u.setTitle(n.appUi.serpTitle),u.setPermalink(c.slug),u.setDescription(n.appUi.serpDescription),u.setUrl(c.permalink),u.setText(Object(o.unescape)(Object(a.applyFilters)("rank_math_content",c.content))),u.setKeyword(t),u.setKeywords(e),Object(o.isUndefined)(c.featuredImage)||(u.setThumbnail(c.featuredImage.source_url),u.setThumbnailAltText(r.Helpers.removeDiacritics(c.featuredImage.alt_text))),u}},{key:"registerRefresh",value:function(){var t=this;this.refresh=Object(o.debounce)((function(e){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),c=[];Object(a.doAction)("rank_math_"+e+"_refresh"),o.map((function(e,n){var a=t.getPaper(r.Helpers.removeDiacritics(e),o),i=0===n?rankMath.assessor.researchesTests:t.filterTests(t.getSecondaryKeywordTests());c.push(t.analyzer.analyzeSome(i,a).then((function(t){rankMathEditor.resultManager.update(a.getKeyword(),t,0===n),0===n&&Object(u.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(c).then((function(){Object(u.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var t=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(t.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var t=Object(i.a)().getState(),e=""!==t.appUi.selectedKeyword.data.value?t.appUi.selectedKeyword.data.value:t.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(e)}},{key:"getResearch",value:function(t){return this.analyzer.researcher.getResearch(t)}},{key:"filterTests",value:function(t){return Object(o.intersection)(t,rankMath.assessor.researchesTests)}}])&&p(e.prototype,n),s&&p(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}(),l=n(25);function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,(n=[{key:"setup",value:function(t){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new s(t),new l.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(t){this.assessor.refresh(t)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(t){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(t){throw"Implement the function"}}])&&d(e.prototype,n),o&&d(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.a=f},4:function(t,e){t.exports=wp.components},42:function(t,e){t.exports=Marionette},5:function(t,e){t.exports=wp.element},6:function(t,e){t.exports=wp.hooks},7:function(t,e){t.exports=rankMathAnalyzer},76:function(t,e,n){"use strict";n.r(e);var r=n(2),a=n.n(r),i=n(3),o=n(30),c=n(6),u=n(33),p=n(1),s=n(13),l=n.n(s),d=n(9),f=n(8);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var b=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initialize=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),setTimeout(this.elementorPreviewLoaded.bind(this),5e3)}var e,n,r;return e=t,(n=[{key:"elementorPreviewLoaded",value:function(){var t=this;Object(c.addAction)("rank_math_data_changed","rank-math",(function(){t.activateSaveButton()})),Object(c.addAction)("rank_math_update_app_ui","rank-math",(function(e){"hasRedirect"===e&&t.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){var t=Object(p.get)(elementor,"saver.footerSaver",!1);!1===t?elementor.channels.editor.trigger("status:change",!0):t.activateSaveButtons(document,!0)}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var t=[];return this.getContentArea().find(".elementor-widget-container").each((function(){t.push(a()(this).html())})),t.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var t=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return t.length<1?a()("<div />"):(this._contentArea=t,t)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return Object(d.safeDecodeURIComponent)(Object(i.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var t=elementor.settings.page.model.get("post_featured_image");if(!Object(p.isUndefined)(t)&&(t=""===t.id?0:parseInt(t.id),this.isValidMediaId(t))){var e=Object(i.select)("core").getMedia(t);if(!Object(p.isUndefined)(e))return e}}},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0<t}},{key:"subscribeToElementor",value:function(){Object(i.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(p.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),elementor.saver.on("before:save",this.savePost),elementor.saver.on("before:save",this.saveRedirection),elementor.saver.on("before:save",this.saveSchemas),elementor.settings.page.model.on("change",this.subscriber)}},{key:"refresh",value:function(){var t=m({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(t),!Object(p.isEqual)(t,this._data)&&t.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var t=Object(i.select)("rank-math").getDirtyMetadata();Object(p.isEmpty)(t)||(l()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t,content:this.getContent()}}).then((function(t){Object(p.isString)(t.slug)&&Object(i.dispatch)("rank-math").updatePermalink(t.slug),Object(c.doAction)("rank_math_metadata_updated",t)})),Object(i.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var t=Object(i.select)("rank-math").getRedirectionItem();Object(p.isEmpty)(t)||(t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink(),l()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?Object(i.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===t.action&&Object(i.dispatch)("rank-math").updateRedirection("redirectionID",t.id)})),Object(i.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var t=Object(i.select)("rank-math").getSchemas();if(!Object(p.isEmpty)(t)&&Object(i.select)("rank-math").hasSchemaUpdated()){var e=Object(i.select)("rank-math").getEditSchemas();l()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:t}}).then((function(n){if(!Object(p.isEmpty)(n)){var r=m({},t),a=m({},e);Object(p.map)(n,(function(t,e){r["schema-"+t]=m({},r[e]),a["schema-"+t]=m({},a[e]),delete r[e],delete a[e]})),Object(i.dispatch)("rank-math").schemaUpdated(!1),Object(i.dispatch)("rank-math").updateSchemas(r),Object(i.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(t){var e=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(p.isInteger)(t.id))return this.initialize?void Object(p.forEach)(n,(function(n,r){e._data[r]!==t[r]&&e[n](e._data[r])})):(this.initialize=!0,Object(p.forEach)(n,(function(t,n){e[t](e._data[n])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(t){Object(i.dispatch)("rank-math").updatePostID(t),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(t){f.a.setVariable("title",t),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(t){f.a.setVariable("excerpt",t),f.a.setVariable("excerpt_only",t),f.a.setVariable("wc_shortdesc",t),f.a.setVariable("seo_description",t),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(t){Object(i.dispatch)("rank-math").updateFeaturedImage(t),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&y(e.prototype,n),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),k=n(42),w=n.n(k),v=n(5),_=w.a.ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){a()("#elementor-panel-elements-search-area").hide()},onShow:function(){Object(v.render)(Object(v.createElement)(Object(c.applyFilters)("rank_math_app",{})),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){a()("#elementor-panel-elements-search-area").show()}}),O=function(t){return t["rank-math"]={region:t.global.region,view:_,options:{}},t};function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var e,n,r;return e=t,(n=[{key:"onThemeChange",value:function(t){var e=Object(p.get)(t,"changed.ui_theme",!1);if(!1!==e){this.manageContentAI(e);var n=this.getThemeLink();"light"!==e?n.attr("media","auto"===e?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):n.remove()}}},{key:"manageContentAI",value:function(t){if(rankMath.elementorContentAI){var e=this.getContentAILink();"light"!==t?e.attr("media","auto"===t?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):e.remove()}}},{key:"getThemeLink",value:function(){return this.link||this.createThemeLink(),this.link}},{key:"getContentAILink",value:function(){return this.contentAIlink||this.createcontentAILink(),this.contentAIlink}},{key:"createThemeLink",value:function(){var t="rank-math-elementor-dark-css";this.link=a()("#"+t),this.link.length||(this.link=a()("<link>",{id:t,rel:"stylesheet",href:rankMath.elementorDarkMode}))}},{key:"createcontentAILink",value:function(){var t="rank-math-content-ai-dark-css";this.contentAIlink=a()("#"+t),this.contentAIlink.length||(this.contentAIlink=a()("<link>",{id:t,rel:"stylesheet",href:rankMath.elementorContentAI}))}}])&&j(e.prototype,n),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),I=n(20),T=n(21),S=n(22);function P(t){return P="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},P(t)}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(){return E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=U(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(arguments.length<3?t:n):a.value}},E.apply(this,arguments)}function U(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=x(t)););return t}function C(t,e){return C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},C(t,e)}function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=x(t);if(e){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F(this,n)}}function F(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}var K=function(){return o.MediaUpload},N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(o,t);var e,n,r,a=R(o);function o(){return A(this,o),a.apply(this,arguments)}return e=o,(n=[{key:"setup",value:function(t){this.registerSlots=this.registerSlots.bind(this),Object(c.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(c.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",K),E(x(o.prototype),"setup",this).call(this,t)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=I.a,this.RankMathAfterFocusKeyword=S.a,this.RankMathAdvancedTab=T.a,this.slots={AfterEditor:I.a,AfterFocusKeyword:S.a,AdvancedTab:T.a}}},{key:"updatePermalink",value:function(t){Object(i.dispatch)("rank-math").updatePermalink(t)}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),Object(i.dispatch)("rank-math").updatePermalink(t)}}])&&M(e.prototype,n),r&&M(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(u.a);a()((function(){window.rankMathEditor=new N,window.rankMathGutenberg=window.rankMathEditor,new D,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),window.rankMathEditor.setup(new b),Object(i.dispatch)("rank-math").refreshResults()}))})),a()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",O)}))},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),a=n.n(r);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.map=null}var e,n,r;return e=t,(n=[{key:"swap",value:function(t,e){var n=this;if(!(t=t||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return t.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(t){return n.replace(e,t)})).trim()}},{key:"replace",value:function(t,e){var n=e.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(t=t||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in t?t[n]:"")}},{key:"getMap",value:function(){var t=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(e,n){e=e.toLowerCase().replace(/%+/g,"").split("(")[0],t.map[e]=n.example}))),this.map}},{key:"setVariable",value:function(t,e){null!==this.map?this.map[t]=e:void 0!==rankMath.variables[t]&&(rankMath.variables[t].example=e)}}])&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}())},9:function(t,e){t.exports=wp.url}});
|
assets/admin/js/gutenberg.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=76)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=rankMathAnalyzer},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),a=r.n(n);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,r,n;return t=e,(r=[{key:"swap",value:function(e,t){var r=this;if(!(e=e||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(e){return r.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var r=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(e=e||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in e?e[r]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,r){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=r.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())},function(e,t){e.exports=wp.url},,,function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&e.push(o)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=wp.apiFetch},,function(e,t,r){"use strict";r.d(t,"a",(function(){return Tr}));var n={};r.r(n),r.d(n,"updateKeywords",(function(){return p})),r.d(n,"updatePillarContent",(function(){return d})),r.d(n,"toggleFrontendScore",(function(){return f})),r.d(n,"updateAnalysisScore",(function(){return h})),r.d(n,"updateCanonicalUrl",(function(){return m})),r.d(n,"updateAdvancedRobots",(function(){return b})),r.d(n,"updateRobots",(function(){return y})),r.d(n,"updateBreadcrumbTitle",(function(){return g})),r.d(n,"resetDirtyMetadata",(function(){return w})),r.d(n,"updateFacebookTitle",(function(){return k})),r.d(n,"updateFacebookDescription",(function(){return v})),r.d(n,"updateFacebookImage",(function(){return O})),r.d(n,"updateFacebookImageID",(function(){return _})),r.d(n,"updateFacebookHasOverlay",(function(){return S})),r.d(n,"updateFacebookImageOverlay",(function(){return j})),r.d(n,"updateAppData",(function(){return s})),r.d(n,"updateAppUi",(function(){return l})),r.d(n,"updatePostID",(function(){return T})),r.d(n,"updatePermalink",(function(){return D})),r.d(n,"updateTitle",(function(){return P})),r.d(n,"updateDescription",(function(){return I})),r.d(n,"updateFeaturedImage",(function(){return A})),r.d(n,"updatePrimaryTermID",(function(){return E})),r.d(n,"updateRedirection",(function(){return M})),r.d(n,"updateRedirectionItem",(function(){return R})),r.d(n,"resetRedirection",(function(){return C})),r.d(n,"updateHasRedirect",(function(){return U})),r.d(n,"updateSerpTitle",(function(){return z})),r.d(n,"updateSerpSlug",(function(){return L})),r.d(n,"updateSerpDescription",(function(){return G})),r.d(n,"toggleSnippetEditor",(function(){return B})),r.d(n,"updateSnippetPreviewType",(function(){return V})),r.d(n,"toggleTrendsCta",(function(){return q})),r.d(n,"updateTwitterUseFacebook",(function(){return W})),r.d(n,"updateTwitterCardType",(function(){return $})),r.d(n,"updateTwitterTitle",(function(){return J})),r.d(n,"updateTwitterDescription",(function(){return Q})),r.d(n,"updateTwitterAuthor",(function(){return X})),r.d(n,"updateTwitterImageID",(function(){return Y})),r.d(n,"updateTwitterImage",(function(){return Z})),r.d(n,"updateTwitterHasOverlay",(function(){return ee})),r.d(n,"updateTwitterImageOverlay",(function(){return te})),r.d(n,"updateTwitterPlayerUrl",(function(){return re})),r.d(n,"updateTwitterPlayerSize",(function(){return ne})),r.d(n,"updateTwitterPlayerStreamUrl",(function(){return ae})),r.d(n,"updateTwitterPlayerStreamCtype",(function(){return ie})),r.d(n,"updateTwitterAppDescription",(function(){return oe})),r.d(n,"updateTwitterAppIphoneID",(function(){return ce})),r.d(n,"updateTwitterAppIphoneName",(function(){return ue})),r.d(n,"updateTwitterAppIphoneUrl",(function(){return se})),r.d(n,"updateTwitterAppIpadID",(function(){return le})),r.d(n,"updateTwitterAppIpadName",(function(){return pe})),r.d(n,"updateTwitterAppIpadUrl",(function(){return de})),r.d(n,"updateTwitterAppGoogleplayID",(function(){return fe})),r.d(n,"updateTwitterAppGoogleplayName",(function(){return he})),r.d(n,"updateTwitterAppGoogleplayUrl",(function(){return me})),r.d(n,"updateTwitterAppCountry",(function(){return be})),r.d(n,"toggleLoaded",(function(){return ye})),r.d(n,"updateSelectedKeyword",(function(){return ge})),r.d(n,"refreshResults",(function(){return we})),r.d(n,"setVersion",(function(){return ke})),r.d(n,"toggleIsDiviPageSettingsBarActive",(function(){return ve})),r.d(n,"toggleIsDiviRankMathModalActive",(function(){return Oe})),r.d(n,"toggleSchemaEditor",(function(){return Ie})),r.d(n,"toggleSchemaTemplates",(function(){return Ae})),r.d(n,"schemaUpdated",(function(){return Ee})),r.d(n,"setEditingSchemaId",(function(){return Me})),r.d(n,"setEditorTab",(function(){return Re})),r.d(n,"setTemplateTab",(function(){return Ce})),r.d(n,"updateEditSchemas",(function(){return Ue})),r.d(n,"updateSchemas",(function(){return xe})),r.d(n,"updateEditSchema",(function(){return Ne})),r.d(n,"saveSchema",(function(){return Fe})),r.d(n,"deleteSchema",(function(){return Ke})),r.d(n,"saveTemplate",(function(){return He})),r.d(n,"updateKeywordsData",(function(){return ze})),r.d(n,"updateAIScore",(function(){return Le}));var a={};r.r(a),r.d(a,"appData",(function(){return Je})),r.d(a,"appUi",(function(){return et}));var i={};r.r(i),r.d(i,"getAppData",(function(){return tt})),r.d(i,"getDirtyMetadata",(function(){return rt})),r.d(i,"getAnalysisScore",(function(){return nt})),r.d(i,"getKeywords",(function(){return at})),r.d(i,"getPillarContent",(function(){return it})),r.d(i,"getRobots",(function(){return ot})),r.d(i,"getAdvancedRobots",(function(){return ct})),r.d(i,"getCanonicalUrl",(function(){return ut})),r.d(i,"getBreadcrumbTitle",(function(){return st})),r.d(i,"getRichSnippets",(function(){return lt})),r.d(i,"getShowScoreFrontend",(function(){return pt})),r.d(i,"isLoaded",(function(){return dt})),r.d(i,"getSelectedKeyword",(function(){return ft})),r.d(i,"isRefreshing",(function(){return ht})),r.d(i,"isPro",(function(){return mt})),r.d(i,"isDiviPageSettingsBarActive",(function(){return bt})),r.d(i,"isDiviRankMathModalActive",(function(){return yt})),r.d(i,"getFacebookTitle",(function(){return gt})),r.d(i,"getFacebookDescription",(function(){return wt})),r.d(i,"getFacebookAuthor",(function(){return kt})),r.d(i,"getFacebookImageID",(function(){return vt})),r.d(i,"getFacebookImage",(function(){return Ot})),r.d(i,"getFacebookHasOverlay",(function(){return _t})),r.d(i,"getFacebookImageOverlay",(function(){return St})),r.d(i,"getPostID",(function(){return jt})),r.d(i,"getTitle",(function(){return Tt})),r.d(i,"getPermalink",(function(){return Dt})),r.d(i,"getDescription",(function(){return Pt})),r.d(i,"getFeaturedImage",(function(){return It})),r.d(i,"getFeaturedImageHtml",(function(){return At})),r.d(i,"getPrimaryTermID",(function(){return Et})),r.d(i,"getRedirectionID",(function(){return Mt})),r.d(i,"getRedirectionType",(function(){return Rt})),r.d(i,"getRedirectionUrl",(function(){return Ct})),r.d(i,"getRedirectionItem",(function(){return Ut})),r.d(i,"hasRedirect",(function(){return xt})),r.d(i,"getSerpTitle",(function(){return Ft})),r.d(i,"getSerpSlug",(function(){return Kt})),r.d(i,"getSerpDescription",(function(){return Ht})),r.d(i,"isSnippetEditorOpen",(function(){return zt})),r.d(i,"getSnippetPreviewType",(function(){return Lt})),r.d(i,"isTrendsCtaOpen",(function(){return Gt})),r.d(i,"isSchemaEditorOpen",(function(){return Bt})),r.d(i,"isSchemaTemplatesOpen",(function(){return Vt})),r.d(i,"hasSchemaUpdated",(function(){return qt})),r.d(i,"getSchemas",(function(){return Wt})),r.d(i,"getEditSchemas",(function(){return $t})),r.d(i,"getEditingSchema",(function(){return Jt})),r.d(i,"getPreviewSchema",(function(){return Qt})),r.d(i,"getEditorTab",(function(){return Xt})),r.d(i,"getTemplateTab",(function(){return Yt})),r.d(i,"getTwitterUseFacebook",(function(){return Zt})),r.d(i,"getTwitterCardType",(function(){return er})),r.d(i,"getTwitterTitle",(function(){return tr})),r.d(i,"getTwitterDescription",(function(){return rr})),r.d(i,"getTwitterAuthor",(function(){return nr})),r.d(i,"getTwitterImageID",(function(){return ar})),r.d(i,"getTwitterImage",(function(){return ir})),r.d(i,"getTwitterHasOverlay",(function(){return or})),r.d(i,"getTwitterImageOverlay",(function(){return cr})),r.d(i,"getTwitterAppDescription",(function(){return ur})),r.d(i,"getTwitterAppIphoneID",(function(){return sr})),r.d(i,"getTwitterAppIphoneName",(function(){return lr})),r.d(i,"getTwitterAppIphoneUrl",(function(){return pr})),r.d(i,"getTwitterAppIpadID",(function(){return dr})),r.d(i,"getTwitterAppIpadName",(function(){return fr})),r.d(i,"getTwitterAppIpadUrl",(function(){return hr})),r.d(i,"getTwitterAppGoogleplayID",(function(){return mr})),r.d(i,"getTwitterAppGoogleplayName",(function(){return br})),r.d(i,"getTwitterAppGoogleplayUrl",(function(){return yr})),r.d(i,"getTwitterAppCountry",(function(){return gr})),r.d(i,"getTwitterPlayerUrl",(function(){return wr})),r.d(i,"getTwitterPlayerSize",(function(){return kr})),r.d(i,"getTwitterPlayerStream",(function(){return vr})),r.d(i,"getTwitterPlayerStreamCtype",(function(){return Or})),r.d(i,"getKeywordsData",(function(){return _r})),r.d(i,"getContentAIScore",(function(){return Sr}));var o=r(3),c=r(8),u=r(6);function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(u.applyFilters)("rank_math_sanitize_data",t,e,r),null!==n&&(n=Object(u.applyFilters)("rank_math_sanitize_meta_value",n,e,r)),n=null===n?t:n,Object(u.doAction)("rank_math_data_changed",e,t,r),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:r,metaValue:n}}function l(e,t){return Object(u.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return c.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function d(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function f(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function m(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function y(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function g(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function w(){return s("dirtyMetadata",{})}function k(e){return s("facebookTitle",e,"rank_math_facebook_title")}function v(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function S(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function j(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function D(e){return s("permalink",e,"permalink")}function P(e){return s("title",e,"rank_math_title")}function I(e){return s("description",e,"rank_math_description")}function A(e){return s("featuredImage",e)}function E(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function M(e,t){return s(e,t)}function R(e){return l("redirectionItem",e)}function C(){return l("redirectionItem",{})}function U(e){return l("hasRedirect",e)}var x=r(7),N=r(1),F=r(16),K=function(e,t){return e=(e=x.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(N.truncate)(e,{length:t,separator:" "}):e},H=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),r=t.excerpt,n=t.content?function(e){if(Object(N.isEmpty)(e))return"";e=Object(N.unescape)(e).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(N.filter)(x.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=Object(N.filter)(t,(function(e){return Object(N.includes)(e.toLowerCase(),r.toLowerCase())}));if(0<n.length)return K(n[0],160)}return K(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(N.isUndefined)(r)||Object(N.isEmpty)(r)?n:Object(N.unescape)(r);if(c.a.setVariable("excerpt",a),c.a.setVariable("seo_description",a),""!==(e=Object(F.a)(Object(u.applyFilters)("rankMath/description",e))))return x.Helpers.cleanText(e);if(!Object(N.isUndefined)(r)&&!Object(N.isEmpty)(r))return x.Helpers.cleanText(r);var i=Object(N.unescape)(rankMath.assessor.serpData.descriptionTemplate);return Object(N.isUndefined)(i)||""===i?n:x.Helpers.cleanText(i)};function z(e){return e=c.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),l("serpTitle",e)}function L(e){return e=""!==e?e:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),l("serpSlug",e)}function G(e){return e=c.a.swap(H(e)),rankMathEditor.refresh("description"),l("serpDescription",e)}function B(e){return l("isSnippetEditorOpen",e)}function V(e){return l("snippetPreviewType",e)}function q(e){return l("isTrendsCtaOpen",e)}function W(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function $(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function J(e){return s("twitterTitle",e,"rank_math_twitter_title")}function Q(e){return s("twitterDescription",e,"rank_math_twitter_description")}function X(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function Z(e){return s("twitterImage",e,"rank_math_twitter_image")}function ee(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function te(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function re(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function ne(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function ae(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ie(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function oe(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ce(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function ue(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function se(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function le(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function pe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function de(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function fe(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function he(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function me(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function be(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function ye(e){return l("isLoaded",e)}function ge(e){return l("selectedKeyword",e)}function we(){return l("refreshResults",Date.now())}function ke(){return l("isPro",!0)}function ve(e){return l("isDiviPageSettingsBarActive",e)}function Oe(e){return l("isDiviRankMathModalActive",e)}var _e=r(0),Se=r(13),je=r.n(Se);function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ie(e){return l("isSchemaEditorOpen",e)}function Ae(e){return l("isSchemaTemplatesOpen",e)}function Ee(e){return l("schemaUpdated",e)}function Me(e){return l("editingSchemaId",e)}function Re(e){return l("editorTab",e)}function Ce(e){return l("templateTab",e)}function Ue(e){return l("editSchemas",e)}function xe(e){return s("schemas",e)}function Ne(e,t){var r=De({},Object(o.select)("rank-math").getEditSchemas());return r[e]=t,l("editSchemas",r)}function Fe(e,t){var r=De({},Object(o.select)("rank-math").getSchemas());return r[e]=t,s("schemas",r)}function Ke(e){var t=De({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(u.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function He(e,t,r){return je()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:r}}).then((function(r){t({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){t({showNotice:!1}),Object(N.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(_e.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function ze(e){return l("keywordsData",e)}function Le(e){return s("contentAIScore",e,"rank_math_contentai_score")}function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qe=rankMath.assessor.serpData,We=rankMath.assessor.hasRedirection,$e={postID:null,title:qe.title?qe.title:qe.titleTemplate,description:qe.description,keywords:qe.focusKeywords,pillarContent:qe.pillarContent,featuredImage:"",permalink:!1,primaryTerm:qe.primaryTerm,robots:qe.robots,advancedRobots:qe.advancedRobots,canonicalUrl:qe.canonicalUrl,breadcrumbTitle:qe.breadcrumbTitle,showScoreFrontend:qe.showScoreFrontend,redirectionID:We?Object(N.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:We?Object(N.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:We?Object(N.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:qe.facebookTitle,facebookImage:qe.facebookImage,facebookImageID:qe.facebookImageID,facebookAuthor:qe.facebookAuthor,facebookDescription:qe.facebookDescription,facebookHasOverlay:qe.facebookHasOverlay,facebookImageOverlay:qe.facebookImageOverlay,twitterTitle:qe.twitterTitle,twitterImage:qe.twitterImage,twitterAuthor:qe.twitterAuthor,twitterImageID:qe.twitterImageID,twitterCardType:qe.twitterCardType,twitterUseFacebook:qe.twitterUseFacebook,twitterDescription:qe.twitterDescription,twitterHasOverlay:qe.twitterHasOverlay,twitterImageOverlay:qe.twitterImageOverlay,twitterPlayerUrl:qe.twitterPlayerUrl,twitterPlayerSize:qe.twitterPlayerSize,twitterPlayerStream:qe.twitterPlayerStream,twitterPlayerStreamCtype:qe.twitterPlayerStreamCtype,twitterAppDescription:qe.twitterAppDescription,twitterAppIphoneName:qe.twitterAppIphoneName,twitterAppIphoneID:qe.twitterAppIphoneID,twitterAppIphoneUrl:qe.twitterAppIphoneUrl,twitterAppIpadName:qe.twitterAppIpadName,twitterAppIpadID:qe.twitterAppIpadID,twitterAppIpadUrl:qe.twitterAppIpadUrl,twitterAppGoogleplayName:qe.twitterAppGoogleplayName,twitterAppGoogleplayID:qe.twitterAppGoogleplayID,twitterAppGoogleplayUrl:qe.twitterAppGoogleplayUrl,twitterAppCountry:qe.twitterAppCountry,schemas:Object(N.get)(rankMath,"schemas",{}),score:0,contentAIScore:{},dirtyMetadata:{}};function Je(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$e,r=arguments.length>1?arguments[1]:void 0,n=Be({},t.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?Be(Be({},t),{},{dirtyMetadata:r.value}):Be(Be({},t),{},(Ve(e={},r.key,r.value),Ve(e,"dirtyMetadata",n),e)):t}function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ze={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!Object(N.isEmpty)(Object(N.get)(rankMath.assessor,"redirection.id",""))&&!Object(N.isEmpty)(Object(N.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1,keywordsData:Object(N.get)(rankMath,"ca_data",[])};function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Xe(Xe({},e),{},Ye({},t.key,t.value)):e}function tt(e){return e.appData}function rt(e){return e.appData.dirtyMetadata}function nt(e){return e.appData.score}function at(e){return e.appData.keywords}function it(e){return e.appData.pillarContent}function ot(e){return e.appData.robots}function ct(e){return e.appData.advancedRobots}function ut(e){return e.appData.canonicalUrl}function st(e){return e.appData.breadcrumbTitle}function lt(e){return"todo"}function pt(e){return e.appData.showScoreFrontend}function dt(e){return e.appUi.isLoaded}function ft(e){return e.appUi.selectedKeyword}function ht(e){return e.appUi.refreshResults}function mt(e){return e.appUi.isPro}function bt(e){return e.appUi.isDiviPageSettingsBarActive}function yt(e){return e.appUi.isDiviRankMathModalActive}function gt(e){return e.appData.facebookTitle}function wt(e){return e.appData.facebookDescription}function kt(e){return e.appData.facebookAuthor}function vt(e){return e.appData.facebookImageID}function Ot(e){return e.appData.facebookImage}function _t(e){return e.appData.facebookHasOverlay}function St(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function jt(e){return e.appData.postID}function Tt(e){return e.appData.title}function Dt(e){return e.appData.permalink}function Pt(e){return e.appData.description}function It(e){return e.appData.featuredImage}function At(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Mt(e){return e.appData.redirectionID}function Rt(e){return e.appData.redirectionType}function Ct(e){return e.appData.redirectionUrl}function Ut(e){return e.appUi.redirectionItem}function xt(e){return e.appUi.hasRedirect}var Nt=r(9);function Ft(e){return Object(F.a)(e.appUi.serpTitle)}function Kt(e){return Object(Nt.safeDecodeURIComponent)(e.appUi.serpSlug)}function Ht(e){return e.appUi.serpDescription}function zt(e){return e.appUi.isSnippetEditorOpen}function Lt(e){return e.appUi.snippetPreviewType}function Gt(e){return e.appUi.isTrendsCtaOpen}function Bt(e){return e.appUi.isSchemaEditorOpen}function Vt(e){return e.appUi.isSchemaTemplatesOpen}function qt(e){return e.appUi.schemaUpdated}function Wt(e){return e.appData.schemas}function $t(e){return e.appUi.editSchemas}function Jt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Qt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Xt(e){return e.appUi.editorTab}function Yt(e){return e.appUi.templateTab}function Zt(e){return e.appData.twitterUseFacebook}function er(e){return e.appData.twitterCardType}function tr(e){return e.appData.twitterTitle}function rr(e){return e.appData.twitterDescription}function nr(e){return e.appData.twitterAuthor}function ar(e){return e.appData.twitterImageID}function ir(e){return e.appData.twitterImage}function or(e){return e.appData.twitterHasOverlay}function cr(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function ur(e){return e.appData.twitterAppDescription}function sr(e){return e.appData.twitterAppIphoneID}function lr(e){return e.appData.twitterAppIphoneName}function pr(e){return e.appData.twitterAppIphoneUrl}function dr(e){return e.appData.twitterAppIpadID}function fr(e){return e.appData.twitterAppIpadName}function hr(e){return e.appData.twitterAppIpadUrl}function mr(e){return e.appData.twitterAppGoogleplayID}function br(e){return e.appData.twitterAppGoogleplayName}function yr(e){return e.appData.twitterAppGoogleplayUrl}function gr(e){return e.appData.twitterAppCountry}function wr(e){return e.appData.twitterPlayerUrl}function kr(e){return e.appData.twitterPlayerSize}function vr(e){return e.appData.twitterPlayerStream}function Or(e){return e.appData.twitterPlayerStreamCtype}function _r(e){return e.appUi.keywordsData}function Sr(e){return e.appData.contentAIScore}var jr=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:n});function Tr(){return jr}},function(e,t,r){"use strict";var n=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),n.innerHTML=e,e=n.textContent,n.textContent=""),e}},,,function(e,t,r){"use strict";var n=r(1);t.a=function(){return!(Object(n.isNil)(window.wp)||Object(n.isNil)(wp.data)||Object(n.isNil)(wp.data.select("core/editor"))||!window.document.body.classList.contains("block-editor-page")||!Object(n.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},function(e,t,r){"use strict";var n=r(4),a=Object(n.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,r=e.className;return wp.element.createElement(i,null,wp.element.createElement(n.PanelRow,{className:r},t))};c.Slot=o,t.a=c},function(e,t,r){"use strict";var n=r(4),a=Object(n.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,r=e.className;return wp.element.createElement(i,null,wp.element.createElement(n.PanelRow,{className:r},t))};c.Slot=o,t.a=c},function(e,t,r){"use strict";var n=r(4),a=Object(n.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,r=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:r},t))};c.Slot=o,t.a=c},,function(e,t,r){"use strict";t.a=function(e){return 100<e?"bad-fk dark":80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},function(e,t,r){"use strict";var n=r(0),a=r(6);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,r,o;return t=e,(r=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(n.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(n.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(n.sprintf)(Object(n.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(n.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,r),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=o},function(e,t,r){"use strict";var n=r(1),a=r(0),i=r(3),o=r(13),c=r.n(o),u=r(9),s=r(6),l=r(8),p=r(19);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var b=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.isSavingRedirection=!1,this.isSavingSchemas=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.isSavingPost=this.isSavingPost.bind(this),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,r,o;return t=e,(r=[{key:"collectGutenbergData",value:function(){if(Object(p.a)())return this._coreEditorSelect||(this._coreEditorSelect=Object(i.select)("core/editor")),!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return this._coreEditorSelect.getCurrentPostId()}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(u.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(u.safeDecodeURIComponent)(this.getPostAttribute("slug")||e)}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(i.select)("core").getMedia(e);if(!Object(n.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return Object(p.a)()?(this._coreEditorSelect||(this._coreEditorSelect=Object(i.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(n.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),Object(i.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var e=f({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"isSavingPost",value:function(){var e=Object(i.select)("core/editor");if(!e.isAutosavingPost()&&e.isSavingPost()){var t=Object(i.select)("rank-math").getDirtyMetadata();Object(n.isEmpty)(t)||(c()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t,content:this.getPostAttribute("content")}}).then((function(e){Object(s.doAction)("rank_math_metadata_updated",e)})),Object(i.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var e=this;if(!this.isSavingSchemas){var t=Object(i.select)("rank-math").getSchemas();if(!Object(n.isEmpty)(t)&&Object(i.select)("rank-math").hasSchemaUpdated()){this.isSavingSchemas=!0;var r=Object(i.select)("rank-math").getEditSchemas();c()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:t}}).then((function(a){if(!Object(n.isEmpty)(a)){var o=f({},t),c=f({},r);Object(n.map)(a,(function(e,t){o["schema-"+e]=f({},o[t]),c["schema-"+e]=f({},c[t]),delete o[t],delete c[t]})),Object(i.dispatch)("rank-math").updateSchemas(o),Object(i.dispatch)("rank-math").updateEditSchemas(c)}setTimeout((function(){Object(i.dispatch)("rank-math").schemaUpdated(!1),Object(s.doAction)("rank_math_schema_changed"),e.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var e=this;if(!this.isSavingRedirection){var t=Object(i.select)("rank-math").getRedirectionItem();if(!Object(n.isEmpty)(t)){this.isSavingRedirection=!0,t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink();var r=Object(i.dispatch)("rank-math"),a=Object(i.dispatch)("core/notices");r.resetRedirection(),c()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(a.createInfoNotice(t.message,{id:"redirectionNotice"}),r.updateRedirection("redirectionID",0)):"update"===t.action?a.createInfoNotice(t.message,{id:"redirectionNotice"}):"new"===t.action&&(r.updateRedirection("redirectionID",t.id),a.createSuccessNotice(t.message,{id:"redirectionNotice"})),setTimeout((function(){e.isSavingRedirection=!1,a.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&Object(n.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!Object(i.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var e=this.getSlug();if(this.oldSlug!==e){var t=Object(i.dispatch)("core/notices");this.oldSlug=e,t.createSuccessNotice(Object(a.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){t.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(e){var t=this,r={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(n.isInteger)(e.id))return this.initialize?void Object(n.forEach)(r,(function(r,n){t._data[n]!==e[n]&&t[r](t._data[n])})):(this.initialize=!0,Object(n.forEach)(r,(function(e,r){t[e](t._data[r])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(i.dispatch)("rank-math").updatePostID(e),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){l.a.setVariable("title",e),l.a.setVariable("term",e),l.a.setVariable("author",e),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){l.a.setVariable("excerpt",e),l.a.setVariable("excerpt_only",e),l.a.setVariable("wc_shortdesc",e),l.a.setVariable("seo_description",e),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(i.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&m(t.prototype,r),o&&m(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=b},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(19);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var s=u((function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&rankMath.postSettings.linkSuggestions){a.a.fn.extend({insertLink:function(e,t){var r=this[0],n="";if(r.selectionStart||"0"===r.selectionStart){var a=r.selectionStart,i=r.selectionEnd,o=r.scrollTop;n='<a href="'+e+'">'+r.value.substring(a,i)+"</a>",a===i&&(n='<a href="'+e+'">'+t+"</a>"),r.value=r.value.substring(0,a)+n+r.value.substring(i,r.value.length),r.focus(),r.selectionStart=a+n.length,r.selectionEnd=a+n.length,r.scrollTop=o}else n='<a href="'+e+'">'+t+"</a>",r.value+=n,r.focus()}});if("function"==typeof ClipboardJS)new ClipboardJS(".suggestion-copy").on("success",(function(e){var t=a()(e.trigger).parent().next(".suggestion-title"),r=t.html();t.text("Link Copied"),setTimeout((function(){t.html(r)}),1500)}));if("object"!==("undefined"==typeof tinymce?"undefined":o(tinymce)))return!0;var t=null,r=null;a()(".suggestion-insert").on("click",(function(e){e.preventDefault();var n,o,c,u,s=a()(this);if(s.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()){t=tinymce.activeEditor,r=a()(t.getBody());var l=t.selection.getContent()||"";if(r.find("a[data-mce-selected]").length){var p=(n="",o="",c=t.selection.getStart(),(u=t.dom.getParent(c,"a[href]"))||(o=t.selection.getContent({format:"raw"}))&&-1!==o.indexOf("</a>")&&((n=o.match(/href="([^">]+)"/))&&n[1]&&(u=t.$('a[href="'+n[1]+'"]',c)[0]),u&&t.selection.select(u)),u);t.dom.setAttribs(p,{href:s.data("url")}),a()(p).text()!==l&&t.insertContent(l)}else l.length?t.insertContent('<a href="'+s.data("url")+'">'+l+"</a>"):t.insertContent('<a href="'+s.data("url")+'">'+s.data("text")+"</a>")}else if(Object(i.a)()){var d=wp.data.select("core/block-editor").getSelectedBlock(),f=wp.data.select("core/block-editor").getSelectedBlock().clientId,h=wp.data.select("core/block-editor").getSelectionStart(),m=wp.data.select("core/block-editor").getSelectionEnd(),b=d.attributes.content,y=b.substring(h.offset,m.offset),g='<a href="'+s.data("url")+'">'+s.data("text")+"</a>";""!==y&&(g='<a href="'+s.data("url")+'">'+y+"</a>");var w=b.substring(0,h.offset)+g+b.substring(m.offset,b.length);wp.data.dispatch("core/block-editor").updateBlock(f,{attributes:{content:w}})}var k=s.closest(".suggestion-item").find(".suggestion-title"),v=k.html();k.text("Link Inserted"),s.addClass("clicked"),setTimeout((function(){var e,t,r,n;k.html(v),s.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(t=s,r=(e=k).data("fkcount")||0,n=e.data("fk"),(r+=1)===n.length&&(r=0),e.find(">a").text(n[r]),e.data("fkcount",r),t.data("text",n[r]))}),1500)})),a()("#rank_math_metabox_link_suggestions").find("h2").append(a()("#rank-math-link-suggestions-tooltip").html())}}));t.a=s},function(e,t,r){"use strict";var n=r(3),a=r(24);t.a=Object(n.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t,r){"use strict";var n=r(1),a=r(0),i=r(13),o=r.n(i),c=r(9),u=r(5),s=r(3),l=r(4);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var a=g(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(p,e);var t,r,i,u=m(p);function p(){var e;return d(this,p),(e=u.apply(this,arguments)).onChange=e.onChange.bind(y(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=p,(r=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(n.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var r=Object(n.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(r))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=o()({path:Object(c.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(s.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(l.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(l.SelectControl,{label:Object(a.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(n.unescape)(e.name)}})),onChange:this.onChange})}}])&&f(t.prototype,r),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),p}(u.Component);t.a=w},,,,function(e,t,r){"use strict";var n=r(7),a=r(6),i=r(15),o=r(1),c=r(0),u=r(3);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new n.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,r,l;return t=e,(r=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(u.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:n.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var r=Object(i.a)().getState(),c=this.dataCollector.getData(),u=new n.Paper("",{locale:rankMath.localeFull});return u.setTitle(r.appUi.serpTitle),u.setPermalink(c.slug),u.setDescription(r.appUi.serpDescription),u.setUrl(c.permalink),u.setText(Object(o.unescape)(Object(a.applyFilters)("rank_math_content",c.content))),u.setKeyword(e),u.setKeywords(t),Object(o.isUndefined)(c.featuredImage)||(u.setThumbnail(c.featuredImage.source_url),u.setThumbnailAltText(n.Helpers.removeDiacritics(c.featuredImage.alt_text))),u}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var r=Object(i.a)().getState();if(!1!==r.appUi.isLoaded){var o=r.appData.keywords.split(","),c=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,r){var a=e.getPaper(n.Helpers.removeDiacritics(t),o),i=0===r?rankMath.assessor.researchesTests:e.filterTests(e.getSecondaryKeywordTests());c.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===r),0===r&&Object(u.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(c).then((function(){Object(u.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return n.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return n.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}},{key:"filterTests",value:function(e){return Object(o.intersection)(e,rankMath.assessor.researchesTests)}}])&&s(t.prototype,r),l&&s(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p=r(25);function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o;return t=e,(r=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new n.ResultManager,this.assessor=new l(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&d(t.prototype,r),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=f},function(e,t){e.exports=React},function(e,t){e.exports=wp.editPost},function(e,t){e.exports=wp.plugins},,,,,function(e,t,r){var n=r(34);function a(e){return n.createElement("svg",e,n.createElement("g",{fill:"#fff"},[n.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z",key:0}),n.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z",key:1})]))}a.defaultProps={viewBox:"0 0 462.03 462.03",width:"20",className:"rank-math-icon"},e.exports=a,a.default=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(2),a=r.n(n),i=r(0),o=r(3),c=r(5),u=r(36),s=r(6),l=r(35),p=r(15),d=r(33),f=r(26),h=r(12),m=r.n(h),b=r(41),y=r.n(b),g=r(28),w=r(24);function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=Object(o.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),score:t.getAnalysisScore()}}))((function(e){var t,r=e.isLoaded,n=e.score,a=m()("rank-math-toolbar-score",(k(t={},Object(w.a)(n),!0),k(t,"loading",!r),t));return wp.element.createElement("div",{className:a},wp.element.createElement(y.a,null),wp.element.createElement(g.a,null))})),O=r(1),_=r(4),S=Object(o.withSelect)((function(e){var t=e("rank-math"),r=t.getTwitterUseFacebook()?t.getFacebookTitle():t.getTwitterTitle();return Object(O.isEmpty)(r)&&(r=t.getSerpTitle()),{title:r,permalink:e("core/editor").getPermalink()}}))((function(e){var t=e.title,r=e.permalink,n=encodeURI(r),a=encodeURI(t);return wp.element.createElement(c.Fragment,null,wp.element.createElement("p",null,Object(i.__)("Notify your readers by sharing!","rank-math")),wp.element.createElement("div",{className:"rank-math-social-share-buttons"},wp.element.createElement("div",{className:"rank-math-share-button rm-facebook"},wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(_.Dashicon,{icon:"facebook-alt"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-twitter"},wp.element.createElement("a",{href:"https://twitter.com/share?url="+n+"&text="+a,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(_.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+a+"&body="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(_.Dashicon,{icon:"email"})))))}));function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){return P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},P(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var a=E(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return A(this,r)}}function A(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(i,e);var t,r,n,a=I(i);function i(){return D(this,i),a.apply(this,arguments)}return t=i,r&&T(t.prototype,r),n&&T(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(r(29).a),R=Object(o.withSelect)((function(e,t){var r=t.slug,n=e("core").getTaxonomy(r),a=e("core/editor").getEditedPostAttribute;return{taxonomy:n,selectedTermIds:n?a(n.rest_base):[],primaryTermID:e("rank-math").getPrimaryTermID()}}))(M),C=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(c.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(_.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(R,e))):wp.element.createElement(t,e)},U=r(27),x=r(20),N=r(21),F=r(22);function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function H(){return H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H.apply(this,arguments)}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G(){return G="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=B(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(arguments.length<3?e:r):a.value}},G.apply(this,arguments)}function B(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$(e)););return e}function V(e,t){return V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},V(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=$(e);if(t){var a=$(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return W(this,r)}}function W(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(d,e);var t,r,n,a=q(d);function d(){return z(this,d),a.apply(this,arguments)}return t=d,(r=[{key:"setup",value:function(e){Object(p.a)(),this.registerSlots=this.registerSlots.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),G($(d.prototype),"setup",this).call(this,e),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector(),new U.a}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=x.a,this.RankMathAfterFocusKeyword=F.a,this.RankMathAdvancedTab=N.a,this.slots={AfterEditor:x.a,AfterFocusKeyword:F.a,AdvancedTab:N.a}}},{key:"registerSidebar",value:function(){Object(u.registerPlugin)("rank-math",{icon:wp.element.createElement(v,null),render:function(){return wp.element.createElement(c.Fragment,null,wp.element.createElement(l.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(v,null)},i.__("Rank Math","rank-math")),wp.element.createElement(l.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:i.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},Object(s.applyFilters)("rank_math_app",{})()))}})}},{key:"registerPostPublish",value:function(){Object(u.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(l.PluginPostPublishPanel,{initialOpen:!0,title:i.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(c.Fragment,null)},wp.element.createElement(S,null))}})}},{key:"registerPrimaryTermSelector",value:function(){Object(s.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(C,H({TermComponent:e},t))}}))}},{key:"updatePermalink",value:function(e){Object(o.dispatch)("core/editor").editPost({slug:e})}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(o.dispatch)("core/editor").editPost({slug:e})}}])&&L(t.prototype,r),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(d.a);a()(document).ready((function(){window.rankMathEditor=new J,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new f.a)}))}]);
|
1 |
+
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=77)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=rankMathAnalyzer},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),a=r.n(n);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,r,n;return t=e,(r=[{key:"swap",value:function(e,t){var r=this;if(!(e=e||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(e){return r.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var r=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(e=e||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in e?e[r]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,r){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=r.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())},function(e,t){e.exports=wp.url},,,function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&e.push(o)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=wp.apiFetch},,function(e,t,r){"use strict";r.d(t,"a",(function(){return Tr}));var n={};r.r(n),r.d(n,"updateKeywords",(function(){return p})),r.d(n,"updatePillarContent",(function(){return d})),r.d(n,"toggleFrontendScore",(function(){return f})),r.d(n,"updateAnalysisScore",(function(){return h})),r.d(n,"updateCanonicalUrl",(function(){return m})),r.d(n,"updateAdvancedRobots",(function(){return b})),r.d(n,"updateRobots",(function(){return y})),r.d(n,"updateBreadcrumbTitle",(function(){return g})),r.d(n,"resetDirtyMetadata",(function(){return w})),r.d(n,"updateFacebookTitle",(function(){return k})),r.d(n,"updateFacebookDescription",(function(){return v})),r.d(n,"updateFacebookImage",(function(){return O})),r.d(n,"updateFacebookImageID",(function(){return _})),r.d(n,"updateFacebookHasOverlay",(function(){return S})),r.d(n,"updateFacebookImageOverlay",(function(){return j})),r.d(n,"updateAppData",(function(){return s})),r.d(n,"updateAppUi",(function(){return l})),r.d(n,"updatePostID",(function(){return T})),r.d(n,"updatePermalink",(function(){return D})),r.d(n,"updateTitle",(function(){return P})),r.d(n,"updateDescription",(function(){return I})),r.d(n,"updateFeaturedImage",(function(){return A})),r.d(n,"updatePrimaryTermID",(function(){return E})),r.d(n,"updateRedirection",(function(){return M})),r.d(n,"updateRedirectionItem",(function(){return R})),r.d(n,"resetRedirection",(function(){return C})),r.d(n,"updateHasRedirect",(function(){return U})),r.d(n,"updateSerpTitle",(function(){return z})),r.d(n,"updateSerpSlug",(function(){return L})),r.d(n,"updateSerpDescription",(function(){return G})),r.d(n,"toggleSnippetEditor",(function(){return B})),r.d(n,"updateSnippetPreviewType",(function(){return V})),r.d(n,"toggleTrendsCta",(function(){return q})),r.d(n,"updateTwitterUseFacebook",(function(){return W})),r.d(n,"updateTwitterCardType",(function(){return $})),r.d(n,"updateTwitterTitle",(function(){return J})),r.d(n,"updateTwitterDescription",(function(){return Q})),r.d(n,"updateTwitterAuthor",(function(){return X})),r.d(n,"updateTwitterImageID",(function(){return Y})),r.d(n,"updateTwitterImage",(function(){return Z})),r.d(n,"updateTwitterHasOverlay",(function(){return ee})),r.d(n,"updateTwitterImageOverlay",(function(){return te})),r.d(n,"updateTwitterPlayerUrl",(function(){return re})),r.d(n,"updateTwitterPlayerSize",(function(){return ne})),r.d(n,"updateTwitterPlayerStreamUrl",(function(){return ae})),r.d(n,"updateTwitterPlayerStreamCtype",(function(){return ie})),r.d(n,"updateTwitterAppDescription",(function(){return oe})),r.d(n,"updateTwitterAppIphoneID",(function(){return ce})),r.d(n,"updateTwitterAppIphoneName",(function(){return ue})),r.d(n,"updateTwitterAppIphoneUrl",(function(){return se})),r.d(n,"updateTwitterAppIpadID",(function(){return le})),r.d(n,"updateTwitterAppIpadName",(function(){return pe})),r.d(n,"updateTwitterAppIpadUrl",(function(){return de})),r.d(n,"updateTwitterAppGoogleplayID",(function(){return fe})),r.d(n,"updateTwitterAppGoogleplayName",(function(){return he})),r.d(n,"updateTwitterAppGoogleplayUrl",(function(){return me})),r.d(n,"updateTwitterAppCountry",(function(){return be})),r.d(n,"toggleLoaded",(function(){return ye})),r.d(n,"updateSelectedKeyword",(function(){return ge})),r.d(n,"refreshResults",(function(){return we})),r.d(n,"setVersion",(function(){return ke})),r.d(n,"toggleIsDiviPageSettingsBarActive",(function(){return ve})),r.d(n,"toggleIsDiviRankMathModalActive",(function(){return Oe})),r.d(n,"toggleSchemaEditor",(function(){return Ie})),r.d(n,"toggleSchemaTemplates",(function(){return Ae})),r.d(n,"schemaUpdated",(function(){return Ee})),r.d(n,"setEditingSchemaId",(function(){return Me})),r.d(n,"setEditorTab",(function(){return Re})),r.d(n,"setTemplateTab",(function(){return Ce})),r.d(n,"updateEditSchemas",(function(){return Ue})),r.d(n,"updateSchemas",(function(){return xe})),r.d(n,"updateEditSchema",(function(){return Ne})),r.d(n,"saveSchema",(function(){return Fe})),r.d(n,"deleteSchema",(function(){return Ke})),r.d(n,"saveTemplate",(function(){return He})),r.d(n,"updateKeywordsData",(function(){return ze})),r.d(n,"updateAIScore",(function(){return Le}));var a={};r.r(a),r.d(a,"appData",(function(){return Je})),r.d(a,"appUi",(function(){return et}));var i={};r.r(i),r.d(i,"getAppData",(function(){return tt})),r.d(i,"getDirtyMetadata",(function(){return rt})),r.d(i,"getAnalysisScore",(function(){return nt})),r.d(i,"getKeywords",(function(){return at})),r.d(i,"getPillarContent",(function(){return it})),r.d(i,"getRobots",(function(){return ot})),r.d(i,"getAdvancedRobots",(function(){return ct})),r.d(i,"getCanonicalUrl",(function(){return ut})),r.d(i,"getBreadcrumbTitle",(function(){return st})),r.d(i,"getRichSnippets",(function(){return lt})),r.d(i,"getShowScoreFrontend",(function(){return pt})),r.d(i,"isLoaded",(function(){return dt})),r.d(i,"getSelectedKeyword",(function(){return ft})),r.d(i,"isRefreshing",(function(){return ht})),r.d(i,"isPro",(function(){return mt})),r.d(i,"isDiviPageSettingsBarActive",(function(){return bt})),r.d(i,"isDiviRankMathModalActive",(function(){return yt})),r.d(i,"getFacebookTitle",(function(){return gt})),r.d(i,"getFacebookDescription",(function(){return wt})),r.d(i,"getFacebookAuthor",(function(){return kt})),r.d(i,"getFacebookImageID",(function(){return vt})),r.d(i,"getFacebookImage",(function(){return Ot})),r.d(i,"getFacebookHasOverlay",(function(){return _t})),r.d(i,"getFacebookImageOverlay",(function(){return St})),r.d(i,"getPostID",(function(){return jt})),r.d(i,"getTitle",(function(){return Tt})),r.d(i,"getPermalink",(function(){return Dt})),r.d(i,"getDescription",(function(){return Pt})),r.d(i,"getFeaturedImage",(function(){return It})),r.d(i,"getFeaturedImageHtml",(function(){return At})),r.d(i,"getPrimaryTermID",(function(){return Et})),r.d(i,"getRedirectionID",(function(){return Mt})),r.d(i,"getRedirectionType",(function(){return Rt})),r.d(i,"getRedirectionUrl",(function(){return Ct})),r.d(i,"getRedirectionItem",(function(){return Ut})),r.d(i,"hasRedirect",(function(){return xt})),r.d(i,"getSerpTitle",(function(){return Ft})),r.d(i,"getSerpSlug",(function(){return Kt})),r.d(i,"getSerpDescription",(function(){return Ht})),r.d(i,"isSnippetEditorOpen",(function(){return zt})),r.d(i,"getSnippetPreviewType",(function(){return Lt})),r.d(i,"isTrendsCtaOpen",(function(){return Gt})),r.d(i,"isSchemaEditorOpen",(function(){return Bt})),r.d(i,"isSchemaTemplatesOpen",(function(){return Vt})),r.d(i,"hasSchemaUpdated",(function(){return qt})),r.d(i,"getSchemas",(function(){return Wt})),r.d(i,"getEditSchemas",(function(){return $t})),r.d(i,"getEditingSchema",(function(){return Jt})),r.d(i,"getPreviewSchema",(function(){return Qt})),r.d(i,"getEditorTab",(function(){return Xt})),r.d(i,"getTemplateTab",(function(){return Yt})),r.d(i,"getTwitterUseFacebook",(function(){return Zt})),r.d(i,"getTwitterCardType",(function(){return er})),r.d(i,"getTwitterTitle",(function(){return tr})),r.d(i,"getTwitterDescription",(function(){return rr})),r.d(i,"getTwitterAuthor",(function(){return nr})),r.d(i,"getTwitterImageID",(function(){return ar})),r.d(i,"getTwitterImage",(function(){return ir})),r.d(i,"getTwitterHasOverlay",(function(){return or})),r.d(i,"getTwitterImageOverlay",(function(){return cr})),r.d(i,"getTwitterAppDescription",(function(){return ur})),r.d(i,"getTwitterAppIphoneID",(function(){return sr})),r.d(i,"getTwitterAppIphoneName",(function(){return lr})),r.d(i,"getTwitterAppIphoneUrl",(function(){return pr})),r.d(i,"getTwitterAppIpadID",(function(){return dr})),r.d(i,"getTwitterAppIpadName",(function(){return fr})),r.d(i,"getTwitterAppIpadUrl",(function(){return hr})),r.d(i,"getTwitterAppGoogleplayID",(function(){return mr})),r.d(i,"getTwitterAppGoogleplayName",(function(){return br})),r.d(i,"getTwitterAppGoogleplayUrl",(function(){return yr})),r.d(i,"getTwitterAppCountry",(function(){return gr})),r.d(i,"getTwitterPlayerUrl",(function(){return wr})),r.d(i,"getTwitterPlayerSize",(function(){return kr})),r.d(i,"getTwitterPlayerStream",(function(){return vr})),r.d(i,"getTwitterPlayerStreamCtype",(function(){return Or})),r.d(i,"getKeywordsData",(function(){return _r})),r.d(i,"getContentAIScore",(function(){return Sr}));var o=r(3),c=r(8),u=r(6);function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(u.applyFilters)("rank_math_sanitize_data",t,e,r),null!==n&&(n=Object(u.applyFilters)("rank_math_sanitize_meta_value",n,e,r)),n=null===n?t:n,Object(u.doAction)("rank_math_data_changed",e,t,r),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:r,metaValue:n}}function l(e,t){return Object(u.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return c.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function d(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function f(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function m(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function y(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function g(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function w(){return s("dirtyMetadata",{})}function k(e){return s("facebookTitle",e,"rank_math_facebook_title")}function v(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function S(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function j(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function D(e){return s("permalink",e,"permalink")}function P(e){return s("title",e,"rank_math_title")}function I(e){return s("description",e,"rank_math_description")}function A(e){return s("featuredImage",e)}function E(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function M(e,t){return s(e,t)}function R(e){return l("redirectionItem",e)}function C(){return l("redirectionItem",{})}function U(e){return l("hasRedirect",e)}var x=r(7),N=r(1),F=r(16),K=function(e,t){return e=(e=x.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(N.truncate)(e,{length:t,separator:" "}):e},H=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),r=t.excerpt,n=t.content?function(e){if(Object(N.isEmpty)(e))return"";e=Object(N.unescape)(e).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(N.filter)(x.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==e.trim()}));if(!t.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=Object(N.filter)(t,(function(e){return Object(N.includes)(e.toLowerCase(),r.toLowerCase())}));if(0<n.length)return K(n[0],160)}return K(t[0],160)}(t.content.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")):"",a=Object(N.isUndefined)(r)||Object(N.isEmpty)(r)?n:Object(N.unescape)(r);if(c.a.setVariable("excerpt",a),c.a.setVariable("seo_description",a),""!==(e=Object(F.a)(Object(u.applyFilters)("rankMath/description",e))))return x.Helpers.cleanText(e);if(!Object(N.isUndefined)(r)&&!Object(N.isEmpty)(r))return x.Helpers.cleanText(r);var i=Object(N.unescape)(rankMath.assessor.serpData.descriptionTemplate);return Object(N.isUndefined)(i)||""===i?n:x.Helpers.cleanText(i)};function z(e){return e=c.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),l("serpTitle",e)}function L(e){return e=""!==e?e:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),l("serpSlug",e)}function G(e){return e=c.a.swap(H(e)),rankMathEditor.refresh("description"),l("serpDescription",e)}function B(e){return l("isSnippetEditorOpen",e)}function V(e){return l("snippetPreviewType",e)}function q(e){return l("isTrendsCtaOpen",e)}function W(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function $(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function J(e){return s("twitterTitle",e,"rank_math_twitter_title")}function Q(e){return s("twitterDescription",e,"rank_math_twitter_description")}function X(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function Z(e){return s("twitterImage",e,"rank_math_twitter_image")}function ee(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function te(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function re(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function ne(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function ae(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ie(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function oe(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function ce(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function ue(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function se(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function le(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function pe(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function de(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function fe(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function he(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function me(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function be(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function ye(e){return l("isLoaded",e)}function ge(e){return l("selectedKeyword",e)}function we(){return l("refreshResults",Date.now())}function ke(){return l("isPro",!0)}function ve(e){return l("isDiviPageSettingsBarActive",e)}function Oe(e){return l("isDiviRankMathModalActive",e)}var _e=r(0),Se=r(13),je=r.n(Se);function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ie(e){return l("isSchemaEditorOpen",e)}function Ae(e){return l("isSchemaTemplatesOpen",e)}function Ee(e){return l("schemaUpdated",e)}function Me(e){return l("editingSchemaId",e)}function Re(e){return l("editorTab",e)}function Ce(e){return l("templateTab",e)}function Ue(e){return l("editSchemas",e)}function xe(e){return s("schemas",e)}function Ne(e,t){var r=De({},Object(o.select)("rank-math").getEditSchemas());return r[e]=t,l("editSchemas",r)}function Fe(e,t){var r=De({},Object(o.select)("rank-math").getSchemas());return r[e]=t,s("schemas",r)}function Ke(e){var t=De({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(u.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function He(e,t,r){return je()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:r}}).then((function(r){t({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){t({showNotice:!1}),Object(N.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(_e.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function ze(e){return l("keywordsData",e)}function Le(e){return s("contentAIScore",e,"rank_math_contentai_score")}function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qe=rankMath.assessor.serpData,We=rankMath.assessor.hasRedirection,$e={postID:null,title:qe.title?qe.title:qe.titleTemplate,description:qe.description,keywords:qe.focusKeywords,pillarContent:qe.pillarContent,featuredImage:"",permalink:!1,primaryTerm:qe.primaryTerm,robots:qe.robots,advancedRobots:qe.advancedRobots,canonicalUrl:qe.canonicalUrl,breadcrumbTitle:qe.breadcrumbTitle,showScoreFrontend:qe.showScoreFrontend,redirectionID:We?Object(N.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:We?Object(N.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:We?Object(N.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:qe.facebookTitle,facebookImage:qe.facebookImage,facebookImageID:qe.facebookImageID,facebookAuthor:qe.facebookAuthor,facebookDescription:qe.facebookDescription,facebookHasOverlay:qe.facebookHasOverlay,facebookImageOverlay:qe.facebookImageOverlay,twitterTitle:qe.twitterTitle,twitterImage:qe.twitterImage,twitterAuthor:qe.twitterAuthor,twitterImageID:qe.twitterImageID,twitterCardType:qe.twitterCardType,twitterUseFacebook:qe.twitterUseFacebook,twitterDescription:qe.twitterDescription,twitterHasOverlay:qe.twitterHasOverlay,twitterImageOverlay:qe.twitterImageOverlay,twitterPlayerUrl:qe.twitterPlayerUrl,twitterPlayerSize:qe.twitterPlayerSize,twitterPlayerStream:qe.twitterPlayerStream,twitterPlayerStreamCtype:qe.twitterPlayerStreamCtype,twitterAppDescription:qe.twitterAppDescription,twitterAppIphoneName:qe.twitterAppIphoneName,twitterAppIphoneID:qe.twitterAppIphoneID,twitterAppIphoneUrl:qe.twitterAppIphoneUrl,twitterAppIpadName:qe.twitterAppIpadName,twitterAppIpadID:qe.twitterAppIpadID,twitterAppIpadUrl:qe.twitterAppIpadUrl,twitterAppGoogleplayName:qe.twitterAppGoogleplayName,twitterAppGoogleplayID:qe.twitterAppGoogleplayID,twitterAppGoogleplayUrl:qe.twitterAppGoogleplayUrl,twitterAppCountry:qe.twitterAppCountry,schemas:Object(N.get)(rankMath,"schemas",{}),score:0,contentAIScore:{},dirtyMetadata:{}};function Je(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$e,r=arguments.length>1?arguments[1]:void 0,n=Be({},t.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?Be(Be({},t),{},{dirtyMetadata:r.value}):Be(Be({},t),{},(Ve(e={},r.key,r.value),Ve(e,"dirtyMetadata",n),e)):t}function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ze={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!Object(N.isEmpty)(Object(N.get)(rankMath.assessor,"redirection.id",""))&&!Object(N.isEmpty)(Object(N.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},isTrendsCtaOpen:!1,editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1,keywordsData:Object(N.get)(rankMath,"ca_data",[])};function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Xe(Xe({},e),{},Ye({},t.key,t.value)):e}function tt(e){return e.appData}function rt(e){return e.appData.dirtyMetadata}function nt(e){return e.appData.score}function at(e){return e.appData.keywords}function it(e){return e.appData.pillarContent}function ot(e){return e.appData.robots}function ct(e){return e.appData.advancedRobots}function ut(e){return e.appData.canonicalUrl}function st(e){return e.appData.breadcrumbTitle}function lt(e){return"todo"}function pt(e){return e.appData.showScoreFrontend}function dt(e){return e.appUi.isLoaded}function ft(e){return e.appUi.selectedKeyword}function ht(e){return e.appUi.refreshResults}function mt(e){return e.appUi.isPro}function bt(e){return e.appUi.isDiviPageSettingsBarActive}function yt(e){return e.appUi.isDiviRankMathModalActive}function gt(e){return e.appData.facebookTitle}function wt(e){return e.appData.facebookDescription}function kt(e){return e.appData.facebookAuthor}function vt(e){return e.appData.facebookImageID}function Ot(e){return e.appData.facebookImage}function _t(e){return e.appData.facebookHasOverlay}function St(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function jt(e){return e.appData.postID}function Tt(e){return e.appData.title}function Dt(e){return e.appData.permalink}function Pt(e){return e.appData.description}function It(e){return e.appData.featuredImage}function At(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function Et(e){return e.appData.primaryTerm}function Mt(e){return e.appData.redirectionID}function Rt(e){return e.appData.redirectionType}function Ct(e){return e.appData.redirectionUrl}function Ut(e){return e.appUi.redirectionItem}function xt(e){return e.appUi.hasRedirect}var Nt=r(9);function Ft(e){return Object(F.a)(e.appUi.serpTitle)}function Kt(e){return Object(Nt.safeDecodeURIComponent)(e.appUi.serpSlug)}function Ht(e){return e.appUi.serpDescription}function zt(e){return e.appUi.isSnippetEditorOpen}function Lt(e){return e.appUi.snippetPreviewType}function Gt(e){return e.appUi.isTrendsCtaOpen}function Bt(e){return e.appUi.isSchemaEditorOpen}function Vt(e){return e.appUi.isSchemaTemplatesOpen}function qt(e){return e.appUi.schemaUpdated}function Wt(e){return e.appData.schemas}function $t(e){return e.appUi.editSchemas}function Jt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Qt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Xt(e){return e.appUi.editorTab}function Yt(e){return e.appUi.templateTab}function Zt(e){return e.appData.twitterUseFacebook}function er(e){return e.appData.twitterCardType}function tr(e){return e.appData.twitterTitle}function rr(e){return e.appData.twitterDescription}function nr(e){return e.appData.twitterAuthor}function ar(e){return e.appData.twitterImageID}function ir(e){return e.appData.twitterImage}function or(e){return e.appData.twitterHasOverlay}function cr(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function ur(e){return e.appData.twitterAppDescription}function sr(e){return e.appData.twitterAppIphoneID}function lr(e){return e.appData.twitterAppIphoneName}function pr(e){return e.appData.twitterAppIphoneUrl}function dr(e){return e.appData.twitterAppIpadID}function fr(e){return e.appData.twitterAppIpadName}function hr(e){return e.appData.twitterAppIpadUrl}function mr(e){return e.appData.twitterAppGoogleplayID}function br(e){return e.appData.twitterAppGoogleplayName}function yr(e){return e.appData.twitterAppGoogleplayUrl}function gr(e){return e.appData.twitterAppCountry}function wr(e){return e.appData.twitterPlayerUrl}function kr(e){return e.appData.twitterPlayerSize}function vr(e){return e.appData.twitterPlayerStream}function Or(e){return e.appData.twitterPlayerStreamCtype}function _r(e){return e.appUi.keywordsData}function Sr(e){return e.appData.contentAIScore}var jr=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:n});function Tr(){return jr}},function(e,t,r){"use strict";var n=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),n.innerHTML=e,e=n.textContent,n.textContent=""),e}},,,function(e,t,r){"use strict";var n=r(1);t.a=function(){return!(Object(n.isNil)(window.wp)||Object(n.isNil)(wp.data)||Object(n.isNil)(wp.data.select("core/editor"))||!window.document.body.classList.contains("block-editor-page")||!Object(n.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},function(e,t,r){"use strict";var n=r(4),a=Object(n.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,r=e.className;return wp.element.createElement(i,null,wp.element.createElement(n.PanelRow,{className:r},t))};c.Slot=o,t.a=c},function(e,t,r){"use strict";var n=r(4),a=Object(n.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,r=e.className;return wp.element.createElement(i,null,wp.element.createElement(n.PanelRow,{className:r},t))};c.Slot=o,t.a=c},function(e,t,r){"use strict";var n=r(4),a=Object(n.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,c=function(e){var t=e.children,r=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:r},t))};c.Slot=o,t.a=c},,function(e,t,r){"use strict";t.a=function(e){return 100<e?"bad-fk dark":80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},function(e,t,r){"use strict";var n=r(0),a=r(6);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,r,o;return t=e,(r=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(n.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(n.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(n.sprintf)(Object(n.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(n.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,r),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=o},function(e,t,r){"use strict";var n=r(1),a=r(0),i=r(3),o=r(13),c=r.n(o),u=r(9),s=r(6),l=r(8),p=r(19);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var b=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.isSavingRedirection=!1,this.isSavingSchemas=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.isSavingPost=this.isSavingPost.bind(this),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,r,o;return t=e,(r=[{key:"collectGutenbergData",value:function(){if(Object(p.a)())return this._coreEditorSelect||(this._coreEditorSelect=Object(i.select)("core/editor")),!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return this._coreEditorSelect.getCurrentPostId()}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(u.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(u.safeDecodeURIComponent)(this.getPostAttribute("slug")||e)}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(i.select)("core").getMedia(e);if(!Object(n.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return Object(p.a)()?(this._coreEditorSelect||(this._coreEditorSelect=Object(i.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(n.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),Object(i.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var e=f({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"isSavingPost",value:function(){var e=Object(i.select)("core/editor");if(!e.isAutosavingPost()&&e.isSavingPost()){var t=Object(i.select)("rank-math").getDirtyMetadata();Object(n.isEmpty)(t)||(c()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t,content:this.getPostAttribute("content")}}).then((function(e){Object(s.doAction)("rank_math_metadata_updated",e)})),Object(i.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var e=this;if(!this.isSavingSchemas){var t=Object(i.select)("rank-math").getSchemas();if(!Object(n.isEmpty)(t)&&Object(i.select)("rank-math").hasSchemaUpdated()){this.isSavingSchemas=!0;var r=Object(i.select)("rank-math").getEditSchemas();c()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:t}}).then((function(a){if(!Object(n.isEmpty)(a)){var o=f({},t),c=f({},r);Object(n.map)(a,(function(e,t){o["schema-"+e]=f({},o[t]),c["schema-"+e]=f({},c[t]),delete o[t],delete c[t]})),Object(i.dispatch)("rank-math").updateSchemas(o),Object(i.dispatch)("rank-math").updateEditSchemas(c)}setTimeout((function(){Object(i.dispatch)("rank-math").schemaUpdated(!1),Object(s.doAction)("rank_math_schema_changed"),e.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var e=this;if(!this.isSavingRedirection){var t=Object(i.select)("rank-math").getRedirectionItem();if(!Object(n.isEmpty)(t)){this.isSavingRedirection=!0,t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink();var r=Object(i.dispatch)("rank-math"),a=Object(i.dispatch)("core/notices");r.resetRedirection(),c()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(a.createInfoNotice(t.message,{id:"redirectionNotice"}),r.updateRedirection("redirectionID",0)):"update"===t.action?a.createInfoNotice(t.message,{id:"redirectionNotice"}):"new"===t.action&&(r.updateRedirection("redirectionID",t.id),a.createSuccessNotice(t.message,{id:"redirectionNotice"})),setTimeout((function(){e.isSavingRedirection=!1,a.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&Object(n.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!Object(i.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var e=this.getSlug();if(this.oldSlug!==e){var t=Object(i.dispatch)("core/notices");this.oldSlug=e,t.createSuccessNotice(Object(a.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){t.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(e){var t=this,r={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(n.isInteger)(e.id))return this.initialize?void Object(n.forEach)(r,(function(r,n){t._data[n]!==e[n]&&t[r](t._data[n])})):(this.initialize=!0,Object(n.forEach)(r,(function(e,r){t[e](t._data[r])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(i.dispatch)("rank-math").updatePostID(e),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){l.a.setVariable("title",e),l.a.setVariable("term",e),l.a.setVariable("author",e),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){l.a.setVariable("excerpt",e),l.a.setVariable("excerpt_only",e),l.a.setVariable("wc_shortdesc",e),l.a.setVariable("seo_description",e),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(i.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&m(t.prototype,r),o&&m(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=b},function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(19);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var s=u((function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&rankMath.postSettings.linkSuggestions){a.a.fn.extend({insertLink:function(e,t){var r=this[0],n="";if(r.selectionStart||"0"===r.selectionStart){var a=r.selectionStart,i=r.selectionEnd,o=r.scrollTop;n='<a href="'+e+'">'+r.value.substring(a,i)+"</a>",a===i&&(n='<a href="'+e+'">'+t+"</a>"),r.value=r.value.substring(0,a)+n+r.value.substring(i,r.value.length),r.focus(),r.selectionStart=a+n.length,r.selectionEnd=a+n.length,r.scrollTop=o}else n='<a href="'+e+'">'+t+"</a>",r.value+=n,r.focus()}});if("function"==typeof ClipboardJS)new ClipboardJS(".suggestion-copy").on("success",(function(e){var t=a()(e.trigger).parent().next(".suggestion-title"),r=t.html();t.text("Link Copied"),setTimeout((function(){t.html(r)}),1500)}));if("object"!==("undefined"==typeof tinymce?"undefined":o(tinymce)))return!0;var t=null,r=null;a()(".suggestion-insert").on("click",(function(e){e.preventDefault();var n,o,c,u,s=a()(this);if(s.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()){t=tinymce.activeEditor,r=a()(t.getBody());var l=t.selection.getContent()||"";if(r.find("a[data-mce-selected]").length){var p=(n="",o="",c=t.selection.getStart(),(u=t.dom.getParent(c,"a[href]"))||(o=t.selection.getContent({format:"raw"}))&&-1!==o.indexOf("</a>")&&((n=o.match(/href="([^">]+)"/))&&n[1]&&(u=t.$('a[href="'+n[1]+'"]',c)[0]),u&&t.selection.select(u)),u);t.dom.setAttribs(p,{href:s.data("url")}),a()(p).text()!==l&&t.insertContent(l)}else l.length?t.insertContent('<a href="'+s.data("url")+'">'+l+"</a>"):t.insertContent('<a href="'+s.data("url")+'">'+s.data("text")+"</a>")}else if(Object(i.a)()){var d=wp.data.select("core/block-editor").getSelectedBlock(),f=wp.data.select("core/block-editor").getSelectedBlock().clientId,h=wp.data.select("core/block-editor").getSelectionStart(),m=wp.data.select("core/block-editor").getSelectionEnd(),b=d.attributes.content,y=b.substring(h.offset,m.offset),g='<a href="'+s.data("url")+'">'+s.data("text")+"</a>";""!==y&&(g='<a href="'+s.data("url")+'">'+y+"</a>");var w=b.substring(0,h.offset)+g+b.substring(m.offset,b.length);wp.data.dispatch("core/block-editor").updateBlock(f,{attributes:{content:w}})}var k=s.closest(".suggestion-item").find(".suggestion-title"),v=k.html();k.text("Link Inserted"),s.addClass("clicked"),setTimeout((function(){var e,t,r,n;k.html(v),s.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(t=s,r=(e=k).data("fkcount")||0,n=e.data("fk"),(r+=1)===n.length&&(r=0),e.find(">a").text(n[r]),e.data("fkcount",r),t.data("text",n[r]))}),1500)})),a()("#rank_math_metabox_link_suggestions").find("h2").append(a()("#rank-math-link-suggestions-tooltip").html())}}));t.a=s},function(e,t,r){"use strict";var n=r(3),a=r(24);t.a=Object(n.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},function(e,t,r){"use strict";var n=r(1),a=r(0),i=r(13),o=r.n(i),c=r(9),u=r(5),s=r(3),l=r(4);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var a=g(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(p,e);var t,r,i,u=m(p);function p(){var e;return d(this,p),(e=u.apply(this,arguments)).onChange=e.onChange.bind(y(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=p,(r=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(n.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var r=Object(n.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(r))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=o()({path:Object(c.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(s.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(l.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(l.SelectControl,{label:Object(a.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(n.unescape)(e.name)}})),onChange:this.onChange})}}])&&f(t.prototype,r),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),p}(u.Component);t.a=w},,,,function(e,t,r){"use strict";var n=r(7),a=r(6),i=r(15),o=r(1),c=r(0),u=r(3);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new n.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,r,l;return t=e,(r=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword().toLowerCase()&&Object(u.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:n.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e,t){var r=Object(i.a)().getState(),c=this.dataCollector.getData(),u=new n.Paper("",{locale:rankMath.localeFull});return u.setTitle(r.appUi.serpTitle),u.setPermalink(c.slug),u.setDescription(r.appUi.serpDescription),u.setUrl(c.permalink),u.setText(Object(o.unescape)(Object(a.applyFilters)("rank_math_content",c.content))),u.setKeyword(e),u.setKeywords(t),Object(o.isUndefined)(c.featuredImage)||(u.setThumbnail(c.featuredImage.source_url),u.setThumbnailAltText(n.Helpers.removeDiacritics(c.featuredImage.alt_text))),u}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var r=Object(i.a)().getState();if(!1!==r.appUi.isLoaded){var o=r.appData.keywords.split(","),c=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,r){var a=e.getPaper(n.Helpers.removeDiacritics(t),o),i=0===r?rankMath.assessor.researchesTests:e.filterTests(e.getSecondaryKeywordTests());c.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===r),0===r&&Object(u.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(c).then((function(){Object(u.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return n.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return n.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}},{key:"filterTests",value:function(e){return Object(o.intersection)(e,rankMath.assessor.researchesTests)}}])&&s(t.prototype,r),l&&s(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p=r(25);function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o;return t=e,(r=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new n.ResultManager,this.assessor=new l(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&d(t.prototype,r),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.a=f},function(e,t){e.exports=React},function(e,t){e.exports=wp.editPost},function(e,t){e.exports=wp.plugins},,,,,function(e,t,r){var n=r(34);function a(e){return n.createElement("svg",e,n.createElement("g",{fill:"#fff"},[n.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z",key:0}),n.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z",key:1})]))}a.defaultProps={viewBox:"0 0 462.03 462.03",width:"20",className:"rank-math-icon"},e.exports=a,a.default=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(2),a=r.n(n),i=r(0),o=r(3),c=r(5),u=r(36),s=r(6),l=r(35),p=r(15),d=r(33),f=r(26),h=r(12),m=r.n(h),b=r(41),y=r.n(b),g=r(28),w=r(24);function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=Object(o.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),score:t.getAnalysisScore()}}))((function(e){var t,r=e.isLoaded,n=e.score,a=m()("rank-math-toolbar-score",(k(t={},Object(w.a)(n),!0),k(t,"loading",!r),t));return wp.element.createElement("div",{className:a},wp.element.createElement(y.a,null),wp.element.createElement(g.a,null))})),O=r(1),_=r(4),S=Object(o.withSelect)((function(e){var t=e("rank-math"),r=t.getTwitterUseFacebook()?t.getFacebookTitle():t.getTwitterTitle();return Object(O.isEmpty)(r)&&(r=t.getSerpTitle()),{title:r,permalink:e("core/editor").getPermalink()}}))((function(e){var t=e.title,r=e.permalink,n=encodeURI(r),a=encodeURI(t);return wp.element.createElement(c.Fragment,null,wp.element.createElement("p",null,Object(i.__)("Notify your readers by sharing!","rank-math")),wp.element.createElement("div",{className:"rank-math-social-share-buttons"},wp.element.createElement("div",{className:"rank-math-share-button rm-facebook"},wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(_.Dashicon,{icon:"facebook-alt"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-twitter"},wp.element.createElement("a",{href:"https://twitter.com/share?url="+n+"&text="+a,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(_.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+a+"&body="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(_.Dashicon,{icon:"email"})))))}));function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){return P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},P(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var a=E(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return A(this,r)}}function A(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(i,e);var t,r,n,a=I(i);function i(){return D(this,i),a.apply(this,arguments)}return t=i,r&&T(t.prototype,r),n&&T(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(r(29).a),R=Object(o.withSelect)((function(e,t){var r=t.slug,n=e("core").getTaxonomy(r),a=e("core/editor").getEditedPostAttribute;return{taxonomy:n,selectedTermIds:n?a(n.rest_base):[],primaryTermID:e("rank-math").getPrimaryTermID()}}))(M),C=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(c.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(_.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(R,e))):wp.element.createElement(t,e)},U=r(27),x=r(20),N=r(21),F=r(22);function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function H(){return H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H.apply(this,arguments)}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G(){return G="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=B(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(arguments.length<3?e:r):a.value}},G.apply(this,arguments)}function B(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$(e)););return e}function V(e,t){return V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},V(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=$(e);if(t){var a=$(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return W(this,r)}}function W(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(d,e);var t,r,n,a=q(d);function d(){return z(this,d),a.apply(this,arguments)}return t=d,(r=[{key:"setup",value:function(e){Object(p.a)(),this.registerSlots=this.registerSlots.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),G($(d.prototype),"setup",this).call(this,e),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector(),new U.a}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=x.a,this.RankMathAfterFocusKeyword=F.a,this.RankMathAdvancedTab=N.a,this.slots={AfterEditor:x.a,AfterFocusKeyword:F.a,AdvancedTab:N.a}}},{key:"registerSidebar",value:function(){Object(u.registerPlugin)("rank-math",{icon:wp.element.createElement(v,null),render:function(){return wp.element.createElement(c.Fragment,null,wp.element.createElement(l.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(v,null)},i.__("Rank Math","rank-math")),wp.element.createElement(l.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:i.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},Object(s.applyFilters)("rank_math_app",{})()))}})}},{key:"registerPostPublish",value:function(){Object(u.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(l.PluginPostPublishPanel,{initialOpen:!0,title:i.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(c.Fragment,null)},wp.element.createElement(S,null))}})}},{key:"registerPrimaryTermSelector",value:function(){Object(s.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(C,H({TermComponent:e},t))}}))}},{key:"updatePermalink",value:function(e){Object(o.dispatch)("core/editor").editPost({slug:e})}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(o.dispatch)("core/editor").editPost({slug:e})}}])&&L(t.prototype,r),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(d.a);a()(document).ready((function(){window.rankMathEditor=new J,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new f.a)}))}]);
|
assets/admin/js/rank-math-app.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=72)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(2),i=n.n(a);function r(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,a;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var a=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(a,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():i()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},i.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&r(t.prototype,n),a&&r(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}())},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.compose},,function(e,t,n){var a;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)){if(a.length){var s=i.apply(null,a);s&&e.push(s)}}else if("object"===r)if(a.toString===Object.prototype.toString)for(var o in a)n.call(a,o)&&a[o]&&e.push(o);else e.push(a.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},,,,function(e,t,n){"use strict";var a=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),a.innerHTML=e,e=a.textContent,a.textContent=""),e}},,,,function(e,t,n){"use strict";var a=n(4),i=Object(a.createSlotFill)("RankMathAfterEditor"),r=i.Fill,s=i.Slot,o=function(e){var t=e.children,n=e.className;return wp.element.createElement(r,null,wp.element.createElement(a.PanelRow,{className:n},t))};o.Slot=s,t.a=o},function(e,t,n){"use strict";var a=n(4),i=Object(a.createSlotFill)("RankMathAdvancedTab"),r=i.Fill,s=i.Slot,o=function(e){var t=e.children,n=e.className;return wp.element.createElement(r,null,wp.element.createElement(a.PanelRow,{className:n},t))};o.Slot=s,t.a=o},function(e,t,n){"use strict";var a=n(4),i=Object(a.createSlotFill)("RankMathAfterFocusKeyword"),r=i.Fill,s=i.Slot,o=function(e){var t=e.children,n=e.className;return wp.element.createElement(r,null,wp.element.createElement("div",{className:n},t))};o.Slot=s,t.a=o},,function(e,t,n){"use strict";t.a=function(e){return 100<e?"bad-fk dark":80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,,,function(e,t,n){"use strict";var a=n(3),i=n(24);t.a=Object(a.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(i.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=wp.htmlEntities},,,function(e,t){e.exports=React},,,function(e,t,n){"use strict";function a(e){return function(){return e}}var i=function(){};i.thatReturns=a,i.thatReturnsFalse=a(!1),i.thatReturnsTrue=a(!0),i.thatReturnsNull=a(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var a=n(53),i="object"==typeof self&&self&&self.Object===Object&&self,r=a||i||Function("return this")();e.exports=r},function(e,t,n){var a=n(39).Symbol;e.exports=a},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=o(n(34)),r=o(n(48)),s=o(n(51));function o(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function c(e,t){var n,s,o,p,u,d,h,m,g=[],f={};for(d=0;d<e.length;d++)if("string"!==(u=e[d]).type){if(!t.hasOwnProperty(u.value)||void 0===t[u.value])throw new Error("Invalid interpolation, missing component node: `"+u.value+"`");if("object"!==a(t[u.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+u.value+"`","\n> "+l);if("componentClose"===u.type)throw new Error("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){n=t[u.value],o=d;break}g.push(t[u.value])}else g.push(u.value);return n&&(p=function(e,t){var n,a,i=t[e],r=0;for(a=e+1;a<t.length;a++)if((n=t[a]).value===i.value){if("componentOpen"===n.type){r++;continue}if("componentClose"===n.type){if(0===r)return a;r--}}throw new Error("Missing closing component token `"+i.value+"`")}(o,e),h=c(e.slice(o+1,p),t),s=i.default.cloneElement(n,{},h),g.push(s),p<e.length-1&&(m=c(e.slice(p+1),t),g=g.concat(m))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(f["interpolation-child-"+t]=e)})),(0,r.default)(f))}t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":a(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var r=(0,s.default)(t);try{return c(r,n)}catch(e){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a=(e,t,n,a)=>(e=""+e,t=""+t,a&&(e=e.trim(),t=t.trim()),n?e==t:e.toLowerCase()==t.toLowerCase());function i(e,t){var n,a={};for(n in e)t.indexOf(n)<0&&(a[n]=e[n]);return a}function r(e){var t=document.createElement("div");return e.replace(/\&#?[0-9a-z]+;/gi,(function(e){return t.innerHTML=e,t.innerText}))}function s(e,t){for(t=t||"previous";e=e[t+"Sibling"];)if(3==e.nodeType)return e}function o(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/`|'/g,"'"):e}function l(e){var t=Object.prototype.toString.call(e).split(" ")[1].slice(0,-1);return e===Object(e)&&"Array"!=t&&"Function"!=t&&"RegExp"!=t&&"HTMLUnknownElement"!=t}function c(e,t,n){function a(e,t){for(var n in t)if(t.hasOwnProperty(n)){if(l(t[n])){l(e[n])?a(e[n],t[n]):e[n]=Object.assign({},t[n]);continue}if(Array.isArray(t[n])){e[n]=Object.assign([],t[n]);continue}e[n]=t[n]}}return e instanceof Object||(e={}),a(e,t),n&&a(e,n),e}function p(e){return String.prototype.normalize?"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:e}var u=()=>/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);function d(e){return e&&e.classList&&e.classList.contains(this.settings.classNames.tag)}var h={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,keepInvalidTags:!1,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:()=>{},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tag:"tagify__tag",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",inputInvalid:"tagify__input--invalid",tagX:"tagify__tag__removeBtn",tagText:"tagify__tag-text",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownInital:"tagify__dropdown--initial",scopeLoading:"tagify--loading",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:()=>Promise.resolve(),beforePaste:()=>Promise.resolve(),suggestionClick:()=>Promise.resolve()}};function m(){this.dropdown={};for(let e in this._dropdown)this.dropdown[e]="function"==typeof this._dropdown[e]?this._dropdown[e].bind(this):this._dropdown[e];this.settings.dropdown.enabled>=0&&this.dropdown.init()}var g={init(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector(this.settings.classNames.dropdownWrapperSelector)},show(e){var t,n,i,r=this.settings,s="mix"==r.mode&&!r.enforceWhitelist,o=!r.whitelist||!r.whitelist.length,c="manual"==r.dropdown.position;if(e=void 0===e?this.state.inputText:e,(!o||s||r.templates.dropdownItemNoMatch)&&!1!==r.dropdown.enable&&!this.state.isLoading){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(e),e&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",e),r.templates.dropdownItemNoMatch&&(i=r.templates.dropdownItemNoMatch.call(this,{value:e}))),!i){if(this.suggestedListItems.length)e&&s&&!this.state.editing.scope&&!a(this.suggestedListItems[0].value,e)&&this.suggestedListItems.unshift({value:e});else{if(!e||!s||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:e}]}n=""+(l(t=this.suggestedListItems[0])?t.value:t),r.autoComplete&&n&&0==n.indexOf(e)&&this.input.autocomplete.suggest.call(this,t)}this.dropdown.fill(i),r.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.children[0]),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=e||!0,this.state.dropdown.query=e,this.setStateSelection(),c||setTimeout((()=>{this.dropdown.position(),this.dropdown.render()})),setTimeout((()=>{this.trigger("dropdown:show",this.DOM.dropdown)}))}},hide(e){var t=this.DOM,n=t.scope,a=t.dropdown,i="manual"==this.settings.dropdown.position&&!e;if(a&&document.body.contains(a)&&!i)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),a.parentNode.removeChild(a),setTimeout((()=>{this.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",a),this},toggle(e){this.dropdown[this.state.dropdown.visible&&!e?"hide":"show"]()},render(){var e,t,n=((t=this.DOM.dropdown.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(t),e=t.clientHeight,t.parentNode.removeChild(t),e),a=this.settings;return this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(a.classNames.dropdownInital),this.dropdown.position(n),a.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout((()=>this.DOM.dropdown.classList.remove(a.classNames.dropdownInital)))),this},fill(e){var t;e="string"==typeof e?e:this.dropdown.createListHTML(e||this.suggestedListItems),this.DOM.dropdown.content.innerHTML=(t=e)?t.replace(/\>[\r\n ]+\</g,"><").replace(/(<.*?>)|\s+/g,((e,t)=>t||" ")):""},refilter(e){e=e||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(e),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},position(e){var t=this.settings.dropdown;if("manual"!=t.position){var n,a,i,r,s,o,l=this.DOM.dropdown,c=t.placeAbove,p=document.documentElement.clientHeight,u=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>480?t.position:"all",d=this.DOM["input"==u?"input":"scope"];e=e||l.clientHeight,this.state.dropdown.visible&&("text"==u?(i=(n=this.getCaretGlobalPosition()).bottom,a=n.top,r=n.left,s="auto"):(o=function(e){for(var t=0,n=0;e;)t+=e.offsetLeft||0,n+=e.offsetTop||0,e=e.parentNode;return{left:t,top:n}}(this.settings.dropdown.appendTarget),a=(n=d.getBoundingClientRect()).top-o.top,i=n.bottom-1-o.top,r=n.left-o.left,s=n.width+"px"),a=Math.floor(a),i=Math.ceil(i),c=void 0===c?p-n.bottom<e:c,l.style.cssText="left:"+(r+window.pageXOffset)+"px; width:"+s+";"+(c?"top: "+(a+window.pageYOffset)+"px":"top: "+(i+window.pageYOffset)+"px"),l.setAttribute("placement",c?"top":"bottom"),l.setAttribute("position",u))}},events:{binding(e=!0){var t=this.dropdown.events.callbacks,n=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this),onKeyDown:t.onKeyDown.bind(this),onMouseOver:t.onMouseOver.bind(this),onMouseLeave:t.onMouseLeave.bind(this),onClick:t.onClick.bind(this),onScroll:t.onScroll.bind(this)},a=e?"addEventListener":"removeEventListener";"manual"!=this.settings.dropdown.position&&(window[a]("resize",n.position),window[a]("keydown",n.onKeyDown)),this.DOM.dropdown[a]("mouseover",n.onMouseOver),this.DOM.dropdown[a]("mouseleave",n.onMouseLeave),this.DOM.dropdown[a]("mousedown",n.onClick),this.DOM.dropdown.content[a]("scroll",n.onScroll)},callbacks:{onKeyDown(e){var t=this.DOM.dropdown.querySelector(this.settings.classNames.dropdownItemActiveSelector),n=this.dropdown.getSuggestionDataByNode(t);switch(e.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":var a;e.preventDefault(),t&&(t=t[("ArrowUp"==e.key||"Up"==e.key?"previous":"next")+"ElementSibling"]),t||(a=this.DOM.dropdown.content.children,t=a["ArrowUp"==e.key||"Up"==e.key?a.length-1:0]),n=this.dropdown.getSuggestionDataByNode(t),this.dropdown.highlightOption(t,!0);break;case"Escape":case"Esc":this.dropdown.hide();break;case"ArrowRight":if(this.state.actions.ArrowLeft)return;case"Tab":if("mix"!=this.settings.mode&&t&&!this.settings.autoComplete.rightKey&&!this.state.editing){e.preventDefault();var i=this.dropdown.getMappedValue(n);return this.input.autocomplete.set.call(this,i),!1}return!0;case"Enter":e.preventDefault(),this.settings.hooks.suggestionClick(e,{tagify:this,tagData:n,suggestionElm:t}).then((()=>{if(t)return this.dropdown.selectOption(t);this.dropdown.hide(),"mix"!=this.settings.mode&&this.addTags(this.state.inputText.trim(),!0)})).catch((e=>e));break;case"Backspace":{if("mix"==this.settings.mode||this.state.editing.scope)return;const e=this.input.raw.call(this);""!=e&&8203!=e.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0))}}},onMouseOver(e){var t=e.target.closest(this.settings.classNames.dropdownItemSelector);t&&this.dropdown.highlightOption(t)},onMouseLeave(e){this.dropdown.highlightOption()},onClick(e){if(0==e.button&&e.target!=this.DOM.dropdown&&e.target!=this.DOM.dropdown.content){var t=e.target.closest(this.settings.classNames.dropdownItemSelector),n=this.dropdown.getSuggestionDataByNode(t);this.state.actions.selectOption=!0,setTimeout((()=>this.state.actions.selectOption=!1),50),this.settings.hooks.suggestionClick(e,{tagify:this,tagData:n,suggestionElm:t}).then((()=>{t?this.dropdown.selectOption(t):this.dropdown.hide()})).catch((e=>console.warn(e)))}},onScroll(e){var t=e.target,n=t.scrollTop/(t.scrollHeight-t.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(n)})}}},getSuggestionDataByNode(e){var t=e?+e.getAttribute("tagifySuggestionIdx"):-1;return this.suggestedListItems[t]||null},highlightOption(e,t){var n,a=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(a),this.state.ddItemElm.removeAttribute("aria-selected")),!e)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);n=this.suggestedListItems[this.getNodeIndex(e)],this.state.ddItemData=n,this.state.ddItemElm=e,e.classList.add(a),e.setAttribute("aria-selected",!0),t&&(e.parentNode.scrollTop=e.clientHeight+e.offsetTop-e.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,n),this.dropdown.position())},selectOption(e){var t,n=this.settings.dropdown,a=n.clearOnSelect,i=n.closeOnSelect;if(!e)return t=this.addTags(this.state.inputText,!0),void(i&&this.dropdown.hide());var r=e.getAttribute("tagifySuggestionIdx"),s=this.suggestedListItems[+r];this.trigger("dropdown:select",{data:s,elm:e}),r&&s?(this.state.editing?this.onEditTagDone(null,c({__isValid:!0},this.normalizeTags(s)[0])):t=this["mix"==this.settings.mode?"addMixTags":"addTags"]([s],a),this.DOM.input.parentNode&&(setTimeout((()=>{this.DOM.input.focus(),this.toggleFocusClass(!0),this.placeCaretAfterNode(t)})),i?setTimeout(this.dropdown.hide.bind(this)):this.dropdown.refilter())):this.dropdown.hide()},selectAll(){return this.suggestedListItems.length=0,this.dropdown.hide(),this.addTags(this.dropdown.filterListItems(""),!0),this},filterListItems(e,t){var n,a,i,r,s,o=this.settings,c=o.dropdown,u=(t=t||{},e="select"==o.mode&&this.value.length&&this.value[0][o.tagTextProp]==e?"":e,[]),d=[],h=o.whitelist,m=c.maxItems||1/0,g=c.searchKeys,f=0;if(!e||!g.length)return(o.duplicates?h:h.filter((e=>!this.isTagDuplicate(l(e)?e.value:e)))).slice(0,m);function v(e,t){return t.toLowerCase().split(" ").every((t=>e.includes(t.toLowerCase())))}for(s=c.caseSensitive?""+e:(""+e).toLowerCase();f<h.length;f++){let e,m;n=h[f]instanceof Object?h[f]:{value:h[f]};let b=Object.keys(n).some((e=>g.includes(e)))?g:["value"];c.fuzzySearch&&!t.exact?(i=b.reduce(((e,t)=>e+" "+(n[t]||"")),"").toLowerCase().trim(),c.accentedSearch&&(i=p(i),s=p(s)),e=0==i.indexOf(s),m=i===s,a=v(i,s)):(e=!0,a=b.some((e=>{var a=""+(n[e]||"");return c.accentedSearch&&(a=p(a),s=p(s)),c.caseSensitive||(a=a.toLowerCase()),m=a===s,t.exact?a===s:0==a.indexOf(s)}))),r=!o.duplicates&&this.isTagDuplicate(l(n)?n.value:n),a&&!r&&(m&&e?d.push(n):"startsWith"==c.sortby&&e?u.unshift(n):u.push(n))}return"function"==typeof c.sortby?c.sortby(d.concat(u),s):d.concat(u).slice(0,m)},getMappedValue(e){var t=this.settings.dropdown.mapValueTo;return t?"function"==typeof t?t(e):e[t]||e.value:e.value},createListHTML(e){return c([],e).map(((e,t)=>{"string"!=typeof e&&"number"!=typeof e||(e={value:e});var n=this.dropdown.getMappedValue(e);e.value=n&&"string"==typeof n?o(n):n;var a=this.settings.templates.dropdownItem.apply(this,[e,this]);return a.replace(/\s*tagifySuggestionIdx=(["'])(.*?)\1/gim,"").replace(">",` tagifySuggestionIdx="${t}">`)})).join("")}};const f="@yaireo/tagify/";var v,b={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},w={wrapper:(e,t)=>`<tags class="${t.classNames.namespace} ${t.mode?`${t.classNames[t.mode+"Mode"]}`:""} ${e.className}"\n ${t.readonly?"readonly":""}\n ${t.disabled?"disabled":""}\n ${t.required?"required":""}\n tabIndex="-1">\n <span ${!t.readonly&&t.userInput?"contenteditable":""} tabIndex="0" data-placeholder="${t.placeholder||"​"}" aria-placeholder="${t.placeholder||""}"\n class="${t.classNames.input}"\n role="textbox"\n aria-autocomplete="both"\n aria-multiline="${"mix"==t.mode}"></span>\n ​\n </tags>`,tag(e,t){var n=this.settings;return`<tag title="${e.title||e.value}"\n contenteditable='false'\n spellcheck='false'\n tabIndex="${n.a11y.focusableTags?0:-1}"\n class="${n.classNames.tag} ${e.class||""}"\n ${this.getAttributes(e)}>\n <x title='' class="${n.classNames.tagX}" role='button' aria-label='remove tag'></x>\n <div>\n <span class="${n.classNames.tagText}">${e[n.tagTextProp]||e.value}</span>\n </div>\n </tag>`},dropdown(e){var t=e.dropdown,n="manual"==t.position,a=`${e.classNames.dropdown}`;return`<div class="${n?"":a} ${t.classname}" role="listbox" aria-labelledby="dropdown">\n <div class="${e.classNames.dropdownWrapper}"></div>\n </div>`},dropdownItem(e,t){return`<div ${this.getAttributes(e)}\n class='${this.settings.classNames.dropdownItem} ${e.class?e.class:""}'\n tabindex="0"\n role="option">${e.value}</div>`},dropdownItemNoMatch:null},y={customBinding(){this.customEventsList.forEach((e=>{this.on(e,this.settings.callbacks[e])}))},binding(e=!0){var t,n=this.events.callbacks,a=e?"addEventListener":"removeEventListener";if(!this.state.mainEvents||!e){for(var i in this.state.mainEvents=e,e&&!this.listeners.main&&(this.events.bindGlobal.call(this),this.settings.isJQueryPlugin&&jQuery(this.DOM.originalInput).on("tagify.removeAllTags",this.removeAllTags.bind(this))),t=this.listeners.main=this.listeners.main||{focus:["input",n.onFocusBlur.bind(this)],keydown:["input",n.onKeydown.bind(this)],click:["scope",n.onClickScope.bind(this)],dblclick:["scope",n.onDoubleClickScope.bind(this)],paste:["input",n.onPaste.bind(this)],drop:["input",n.onDrop.bind(this)]})this.DOM[t[i][0]][a](i,t[i][1]);clearInterval(this.listeners.main.originalInputValueObserverInterval),this.listeners.main.originalInputValueObserverInterval=setInterval(n.observeOriginalInputValue.bind(this),500);var r=this.listeners.main.inputMutationObserver||new MutationObserver(n.onInputDOMChange.bind(this));r&&r.disconnect(),"mix"==this.settings.mode&&r.observe(this.DOM.input,{childList:!0})}},bindGlobal(e){var t,n=this.events.callbacks,a=e?"removeEventListener":"addEventListener";if(e||!this.listeners.global)for(t of(this.listeners.global=this.listeners&&this.listeners.global||[{type:this.isIE?"keydown":"input",target:this.DOM.input,cb:n[this.isIE?"onInputIE":"onInput"].bind(this)},{type:"keydown",target:window,cb:n.onWindowKeyDown.bind(this)},{type:"blur",target:this.DOM.input,cb:n.onFocusBlur.bind(this)}],this.listeners.global))t.target[a](t.type,t.cb)},unbindGlobal(){this.events.bindGlobal.call(this,!0)},callbacks:{onFocusBlur(e){var t=e.target?this.trim(e.target.textContent):"",n=this.settings,a=e.type,i=n.dropdown.enabled>=0,r={relatedTarget:e.relatedTarget},s=this.state.actions.selectOption&&(i||!n.dropdown.closeOnSelect),o=this.state.actions.addNew&&i,l=e.relatedTarget&&d.call(this,e.relatedTarget)&&this.DOM.scope.contains(e.relatedTarget);if("blur"==a){if(e.relatedTarget===this.DOM.scope)return this.dropdown.hide(),void this.DOM.input.focus();this.postUpdate(),this.triggerChangeEvent()}if(!s&&!o)if(this.state.hasFocus="focus"==a&&+new Date,this.toggleFocusClass(this.state.hasFocus),"mix"!=n.mode){if("focus"==a)return this.trigger("focus",r),void(0!==n.dropdown.enabled&&n.userInput||this.dropdown.show(this.value.length?"":void 0));"blur"==a&&(this.trigger("blur",r),this.loading(!1),"select"==this.settings.mode&&l&&(t=""),("select"==this.settings.mode&&t?!this.value.length||this.value[0].value!=t:t&&!this.state.actions.selectOption&&n.addTagOnBlur)&&this.addTags(t,!0),"select"!=this.settings.mode||t||this.removeTags()),this.DOM.input.removeAttribute("style"),this.dropdown.hide()}else"focus"==a?this.trigger("focus",r):"blur"==e.type&&(this.trigger("blur",r),this.loading(!1),this.dropdown.hide(),this.state.dropdown.visible=void 0,this.setStateSelection())},onWindowKeyDown(e){var t,n=document.activeElement;if(d.call(this,n)&&this.DOM.scope.contains(document.activeElement))switch(t=n.nextElementSibling,e.key){case"Backspace":this.removeTags(n),(t||this.DOM.input).focus();break;case"Enter":setTimeout(this.editTag.bind(this),0,n)}},onKeydown(e){var t=this.settings;"select"==t.mode&&t.enforceWhitelist&&this.value.length&&"Tab"!=e.key&&e.preventDefault();var n=this.trim(e.target.textContent);if(this.trigger("keydown",{originalEvent:this.cloneEvent(e)}),"mix"==t.mode){switch(e.key){case"Left":case"ArrowLeft":this.state.actions.ArrowLeft=!0;break;case"Delete":case"Backspace":if(this.state.editing)return;var a,i,o,l=document.getSelection(),c="Delete"==e.key&&l.anchorOffset==(l.anchorNode.length||0),p=l.anchorNode.previousSibling,h=1==l.anchorNode.nodeType||!l.anchorOffset&&p&&1==p.nodeType&&l.anchorNode.previousSibling,m=r(this.DOM.input.innerHTML),g=this.getTagElms();if("edit"==t.backspace&&h)return a=1==l.anchorNode.nodeType?null:l.anchorNode.previousElementSibling,setTimeout(this.editTag.bind(this),0,a),void e.preventDefault();if(u()&&h)return o=s(h),h.hasAttribute("readonly")||h.remove(),this.DOM.input.focus(),void setTimeout((()=>{this.placeCaretAfterNode(o),this.DOM.input.click()}));if("BR"==l.anchorNode.nodeName)return;if((c||h)&&1==l.anchorNode.nodeType?i=0==l.anchorOffset?c?g[0]:null:g[l.anchorOffset-1]:c?i=l.anchorNode.nextElementSibling:h&&(i=h),3==l.anchorNode.nodeType&&!l.anchorNode.nodeValue&&l.anchorNode.previousElementSibling&&e.preventDefault(),(h||c)&&!t.backspace)return void e.preventDefault();if("Range"!=l.type&&!l.anchorOffset&&l.anchorNode==this.DOM.input&&"Delete"!=e.key)return void e.preventDefault();if("Range"!=l.type&&i&&i.hasAttribute("readonly"))return void this.placeCaretAfterNode(s(i));clearTimeout(v),v=setTimeout((()=>{var e=document.getSelection(),t=r(this.DOM.input.innerHTML),n=!c&&e.anchorNode.previousSibling;if(t.length>=m.length&&n)if(d.call(this,n)&&!n.hasAttribute("readonly")){if(this.removeTags(n),this.fixFirefoxLastTagNoCaret(),2==this.DOM.input.children.length&&"BR"==this.DOM.input.children[1].tagName)return this.DOM.input.innerHTML="",this.value.length=0,!0}else n.remove();this.value=[].map.call(g,((e,t)=>{var n=this.tagData(e);if(e.parentNode||n.readonly)return n;this.trigger("remove",{tag:e,index:t,data:n})})).filter((e=>e))}),20)}return!0}switch(e.key){case"Backspace":"select"==t.mode&&t.enforceWhitelist&&this.value.length?this.removeTags():this.state.dropdown.visible&&"manual"!=t.dropdown.position||""!=e.target.textContent&&8203!=n.charCodeAt(0)||(!0===t.backspace?this.removeTags():"edit"==t.backspace&&setTimeout(this.editTag.bind(this),0));break;case"Esc":case"Escape":if(this.state.dropdown.visible)return;e.target.blur();break;case"Down":case"ArrowDown":this.state.dropdown.visible||this.dropdown.show();break;case"ArrowRight":{let e=this.state.inputSuggestion||this.state.ddItemData;if(e&&t.autoComplete.rightKey)return void this.addTags([e],!0);break}case"Tab":{let a="select"==t.mode;if(!n||a)return!0;e.preventDefault()}case"Enter":if(this.state.dropdown.visible||229==e.keyCode)return;e.preventDefault(),setTimeout((()=>{this.state.actions.selectOption||this.addTags(n,!0)}))}},onInput(e){if(this.postUpdate(),"mix"==this.settings.mode)return this.events.callbacks.onMixTagsInput.call(this,e);var t=this.input.normalize.call(this),n=t.length>=this.settings.dropdown.enabled,a={value:t,inputElm:this.DOM.input};a.isValid=this.validateTag({value:t}),this.state.inputText!=t&&(this.input.set.call(this,t,!1),-1!=t.search(this.settings.delimiters)?this.addTags(t)&&this.input.set.call(this):this.settings.dropdown.enabled>=0&&this.dropdown[n?"show":"hide"](t),this.trigger("input",a))},onMixTagsInput(e){var t,n,a,i,r,s,o,l,p=this.settings,d=this.value.length,h=this.getTagElms(),m=document.createDocumentFragment(),g=window.getSelection().getRangeAt(0),f=[].map.call(h,(e=>this.tagData(e).value));if("deleteContentBackward"==e.inputType&&u()&&this.events.callbacks.onKeydown.call(this,{target:e.target,key:"Backspace"}),this.value.slice().forEach((e=>{e.readonly&&!f.includes(e.value)&&m.appendChild(this.createTagElem(e))})),m.childNodes.length&&(g.insertNode(m),this.setRangeAtStartEnd(!1,m.lastChild)),h.length!=d)return this.value=[].map.call(this.getTagElms(),(e=>this.tagData(e))),void this.update({withoutChangeEvent:!0});if(this.hasMaxTags())return!0;if(window.getSelection&&(s=window.getSelection()).rangeCount>0&&3==s.anchorNode.nodeType){if((g=s.getRangeAt(0).cloneRange()).collapse(!0),g.setStart(s.focusNode,0),a=(t=g.toString().slice(0,g.endOffset)).split(p.pattern).length-1,(n=t.match(p.pattern))&&(i=t.slice(t.lastIndexOf(n[n.length-1]))),i){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:i.match(p.pattern)[0],value:i.replace(p.pattern,"")},this.state.tag.baseOffset=s.baseOffset-this.state.tag.value.length,l=this.state.tag.value.match(p.delimiters))return this.state.tag.value=this.state.tag.value.replace(p.delimiters,""),this.state.tag.delimiters=l[0],this.addTags(this.state.tag.value,p.dropdown.clearOnSelect),void this.dropdown.hide();r=this.state.tag.value.length>=p.dropdown.enabled;try{o=(o=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&o.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(e){}(o||a<this.state.mixMode.matchedPatternCount)&&(r=!1)}else this.state.flaggedTags={};this.state.mixMode.matchedPatternCount=a}setTimeout((()=>{this.update({withoutChangeEvent:!0}),this.trigger("input",c({},this.state.tag,{textContent:this.DOM.input.textContent})),this.state.tag&&this.dropdown[r?"show":"hide"](this.state.tag.value)}),10)},onInputIE(e){var t=this;setTimeout((function(){t.events.callbacks.onInput.call(t,e)}))},observeOriginalInputValue(){this.DOM.originalInput.value!=this.DOM.originalInput.tagifyValue&&this.loadOriginalValues()},onClickScope(e){var t=this.settings,n=e.target.closest("."+t.classNames.tag),a=+new Date-this.state.hasFocus;if(e.target!=this.DOM.scope){if(!e.target.classList.contains(t.classNames.tagX))return n?(this.trigger("click",{tag:n,index:this.getNodeIndex(n),data:this.tagData(n),originalEvent:this.cloneEvent(e)}),void(1!==t.editTags&&1!==t.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,e))):void(e.target==this.DOM.input&&("mix"==t.mode&&this.fixFirefoxLastTagNoCaret(),a>500)?this.state.dropdown.visible?this.dropdown.hide():0===t.dropdown.enabled&&"mix"!=t.mode&&this.dropdown.show(this.value.length?"":void 0):"select"==t.mode&&!this.state.dropdown.visible&&this.dropdown.show());this.removeTags(e.target.parentNode)}else this.state.hasFocus||this.DOM.input.focus()},onPaste(e){e.preventDefault();var t,n,a=this.settings;if("select"==a.mode&&a.enforceWhitelist||!a.userInput)return!1;a.readonly||(t=e.clipboardData||window.clipboardData,n=t.getData("Text"),a.hooks.beforePaste(e,{tagify:this,pastedText:n,clipboardData:t}).then((t=>{void 0===t&&(t=n),t&&(this.injectAtCaret(t,window.getSelection().getRangeAt(0)),"mix"==this.settings.mode?this.events.callbacks.onMixTagsInput.call(this,e):this.settings.pasteAsTags?this.addTags(this.state.inputText+t,!0):this.state.inputText=t)})).catch((e=>e)))},onDrop(e){e.preventDefault()},onEditTagInput(e,t){var n=e.closest("."+this.settings.classNames.tag),a=this.getNodeIndex(n),i=this.tagData(n),r=this.input.normalize.call(this,e),s=n.innerHTML!=n.__tagifyTagData.__originalHTML,o=this.validateTag({[this.settings.tagTextProp]:r});s||!0!==e.originalIsValid||(o=!0),n.classList.toggle(this.settings.classNames.tagInvalid,!0!==o),i.__isValid=o,n.title=!0===o?i.title||i.value:o,r.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=r),this.dropdown.show(r)),this.trigger("edit:input",{tag:n,index:a,data:c({},this.value[a],{newValue:r}),originalEvent:this.cloneEvent(t)})},onEditTagFocus(e){this.state.editing={scope:e,input:e.querySelector("[contenteditable]")}},onEditTagBlur(e){if(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(e)){var t,n,a=this.settings,i=e.closest("."+a.classNames.tag),r=this.input.normalize.call(this,e),s=this.tagData(i).__originalData,o=i.innerHTML!=i.__tagifyTagData.__originalHTML,l=this.validateTag({[a.tagTextProp]:r});if(r)if(o){if(t=this.hasMaxTags(),n=this.getWhitelistItem(r)||c({},s,{[a.tagTextProp]:r,value:r,__isValid:l}),a.transformTag.call(this,n,s),!0!==(l=!t&&this.validateTag({[a.tagTextProp]:n[a.tagTextProp]}))){if(this.trigger("invalid",{data:n,tag:i,message:l}),a.editTags.keepInvalid)return;a.keepInvalidTags?n.__isValid=l:n=s}else a.keepInvalidTags&&(delete n.title,delete n["aria-invalid"],delete n.class);this.onEditTagDone(i,n)}else this.onEditTagDone(i,s);else this.onEditTagDone(i)}},onEditTagkeydown(e,t){switch(this.trigger("edit:keydown",{originalEvent:this.cloneEvent(e)}),e.key){case"Esc":case"Escape":t.innerHTML=t.__tagifyTagData.__originalHTML;case"Enter":case"Tab":e.preventDefault(),e.target.blur()}},onDoubleClickScope(e){var t,n,a=e.target.closest("."+this.settings.classNames.tag),i=this.settings;a&&i.userInput&&(t=a.classList.contains(this.settings.classNames.tagEditing),n=a.hasAttribute("readonly"),"select"==i.mode||i.readonly||t||n||!this.settings.editTags||this.editTag(a),this.toggleFocusClass(!0),this.trigger("dblclick",{tag:a,index:this.getNodeIndex(a),data:this.tagData(a)}))},onInputDOMChange(e){e.forEach((e=>{e.addedNodes.forEach((e=>{if(e)if("<div><br></div>"==e.outerHTML)e.replaceWith(document.createElement("br"));else if(1==e.nodeType&&e.querySelector(this.settings.classNames.tagSelector)){let t=document.createTextNode("");3==e.childNodes[0].nodeType&&"BR"!=e.previousSibling.nodeName&&(t=document.createTextNode("\n")),e.replaceWith(t,...[...e.childNodes].slice(0,-1)),this.placeCaretAfterNode(t.previousSibling)}else d.call(this,e)&&e.previousSibling&&"BR"==e.previousSibling.nodeName&&(e.previousSibling.replaceWith("\n"),this.placeCaretAfterNode(e.previousSibling.previousSibling))})),e.removedNodes.forEach((e=>{e&&"BR"==e.nodeName&&d.call(this,t)&&(this.removeTags(t),this.fixFirefoxLastTagNoCaret())}))}));var t=this.DOM.input.lastChild;t&&""==t.nodeValue&&t.remove(),t&&"BR"==t.nodeName||this.DOM.input.appendChild(document.createElement("br"))}}};function k(e,t){if(!e){console.warn("Tagify:","input element not found",e);const t=new Proxy(this,{get:()=>()=>t});return t}if(e.previousElementSibling&&e.previousElementSibling.classList.contains("tagify"))return console.warn("Tagify: ","input element is already Tagified",e),this;var n;c(this,function(e){var t=document.createTextNode("");function n(e,n,a){a&&n.split(/\s+/g).forEach((n=>t[e+"EventListener"].call(t,n,a)))}return{off(e,t){return n("remove",e,t),this},on(e,t){return t&&"function"==typeof t&&n("add",e,t),this},trigger(n,a,i){var r;if(i=i||{cloneData:!0},n)if(e.settings.isJQueryPlugin)"remove"==n&&(n="removeTag"),jQuery(e.DOM.originalInput).triggerHandler(n,[a]);else{try{var s="object"==typeof a?a:{value:a};if((s=i.cloneData?c({},s):s).tagify=this,a instanceof Object)for(var o in a)a[o]instanceof HTMLElement&&(s[o]=a[o]);r=new CustomEvent(n,{detail:s})}catch(e){console.warn(e)}t.dispatchEvent(r)}}}}(this)),this.isFirefox="undefined"!=typeof InstallTrigger,this.isIE=window.document.documentMode,t=t||{},this.getPersistedData=(n=t.id,e=>{let t,a="/"+e;if(1==localStorage.getItem(f+n+"/v",1))try{t=JSON.parse(localStorage[f+n+a])}catch(e){}return t}),this.setPersistedData=(e=>e?(localStorage.setItem(f+e+"/v",1),(t,n)=>{let a="/"+n,i=JSON.stringify(t);t&&n&&(localStorage.setItem(f+e+a,i),dispatchEvent(new Event("storage")))}):()=>{})(t.id),this.clearPersistedData=(e=>t=>{const n=f+"/"+e+"/";if(t)localStorage.removeItem(n+t);else for(let e in localStorage)e.includes(n)&&localStorage.removeItem(e)})(t.id),this.applySettings(e,t),this.state={inputText:"",editing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(e),m.call(this),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),e.autofocus&&this.DOM.input.focus()}return k.prototype={_dropdown:g,customEventsList:["change","add","remove","invalid","input","click","keydown","focus","blur","edit:input","edit:beforeUpdate","edit:updated","edit:start","edit:keydown","dropdown:show","dropdown:hide","dropdown:select","dropdown:updated","dropdown:noMatch","dropdown:scroll"],dataProps:["__isValid","__removed","__originalData","__originalHTML","__tagId"],trim(e){return this.settings.trim&&e&&"string"==typeof e?e.trim():e},parseHTML:function(e){return(new DOMParser).parseFromString(e.trim(),"text/html").body.firstElementChild},templates:w,parseTemplate(e,t){return e=this.settings.templates[e]||e,this.parseHTML(e.apply(this,t))},set whitelist(e){const t=e&&Array.isArray(e);this.settings.whitelist=t?e:[],this.setPersistedData(t?e:[],"whitelist")},get whitelist(){return this.settings.whitelist},applySettings(e,n){h.templates=this.templates;var a=this.settings=c({},h,n);a.disabled=e.hasAttribute("disabled"),a.readonly=e.hasAttribute("readonly"),a.placeholder=e.getAttribute("placeholder")||a.placeholder||"",a.required=e.hasAttribute("required");for(let e in a.classNames)Object.defineProperty(a.classNames,e+"Selector",{get(){return"."+this[e].split(" ")[0]}});if(this.isIE&&(a.autoComplete=!1),["whitelist","blacklist"].forEach((t=>{var n=e.getAttribute("data-"+t);n&&(n=n.split(a.delimiters))instanceof Array&&(a[t]=n)})),"autoComplete"in n&&!l(n.autoComplete)&&(a.autoComplete=h.autoComplete,a.autoComplete.enabled=n.autoComplete),"mix"==a.mode&&(a.autoComplete.rightKey=!0,a.delimiters=n.delimiters||null,a.tagTextProp&&!a.dropdown.searchKeys.includes(a.tagTextProp)&&a.dropdown.searchKeys.push(a.tagTextProp)),e.pattern)try{a.pattern=new RegExp(e.pattern)}catch(e){}if(this.settings.delimiters)try{a.delimiters=new RegExp(this.settings.delimiters,"g")}catch(e){}a.disabled&&(a.userInput=!1),this.TEXTS=t(t({},b),a.texts||{}),"select"!=a.mode&&a.userInput||(a.dropdown.enabled=0),a.dropdown.appendTarget=n.dropdown&&n.dropdown.appendTarget?n.dropdown.appendTarget:document.body;let i=this.getPersistedData("whitelist");Array.isArray(i)&&(this.whitelist=Array.isArray(a.whitelist)?function(){const e=[],t={};for(let n of arguments)for(let a of n)l(a)?t[a.value]||(e.push(a),t[a.value]=1):e.includes(a)||e.push(a);return e}(a.whitelist,i):i)},getAttributes(e){var t,n=this.getCustomAttributes(e),a="";for(t in n)a+=" "+t+(void 0!==e[t]?`="${n[t]}"`:"");return a},getCustomAttributes(e){if(!l(e))return"";var t,n={};for(t in e)"__"!=t.slice(0,2)&&"class"!=t&&e.hasOwnProperty(t)&&void 0!==e[t]&&(n[t]=o(e[t]));return n},setStateSelection(){var e=window.getSelection(),t={anchorOffset:e.anchorOffset,anchorNode:e.anchorNode,range:e.getRangeAt&&e.rangeCount&&e.getRangeAt(0)};return this.state.selection=t,t},getCaretGlobalPosition(){const e=document.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),n=t.startContainer,a=t.startOffset;let i,r;if(a>0)return r=document.createRange(),r.setStart(n,a-1),r.setEnd(n,a),i=r.getBoundingClientRect(),{left:i.right,top:i.top,bottom:i.bottom};if(n.getBoundingClientRect)return n.getBoundingClientRect()}return{left:-9999,top:-9999}},getCSSVars(){var e,t=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:(({value:e,unit:t})=>"s"==t?1e3*e:e)(function(e){if(!e)return{};var t=(e=e.trim().split(" ")[0]).split(/\d+/g).filter((e=>e)).pop().trim();return{value:+e.split(t).filter((e=>e))[0].trim(),unit:t}}((e="tag-hide-transition",t.getPropertyValue("--"+e))))}},build(e){var t=this.DOM;this.settings.mixMode.integrated?(t.originalInput=null,t.scope=e,t.input=e):(t.originalInput=e,t.scope=this.parseTemplate("wrapper",[e,this.settings]),t.input=t.scope.querySelector(this.settings.classNames.inputSelector),e.parentNode.insertBefore(t.scope,e))},destroy(){this.events.unbindGlobal.call(this),this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.dropdown.hide(!0),clearTimeout(this.dropdownHide__bindEventsTimeout)},loadOriginalValues(e){var t,n=this.settings;if(this.state.blockChangeEvent=!0,void 0===e){const t=this.getPersistedData("value");e=t&&!this.DOM.originalInput.value?t:n.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value}if(this.removeAllTags(),e)if("mix"==n.mode)this.parseMixTags(e.trim()),(t=this.DOM.input.lastChild)&&"BR"==t.tagName||this.DOM.input.insertAdjacentHTML("beforeend","<br>");else{try{JSON.parse(e)instanceof Array&&(e=JSON.parse(e))}catch(e){}this.addTags(e).forEach((e=>e&&e.classList.add(n.classNames.tagNoAnimation)))}else this.postUpdate();this.state.lastOriginalValueReported=n.mixMode.integrated?"":this.DOM.originalInput.value,this.state.blockChangeEvent=!1},cloneEvent(e){var t={};for(var n in e)t[n]=e[n];return t},loading(e){return this.state.isLoading=e,this.DOM.scope.classList[e?"add":"remove"](this.settings.classNames.scopeLoading),this},tagLoading(e,t){return e&&e.classList[t?"add":"remove"](this.settings.classNames.tagLoading),this},toggleClass(e,t){"string"==typeof e&&this.DOM.scope.classList.toggle(e,t)},toggleFocusClass(e){this.toggleClass(this.settings.classNames.focus,!!e)},triggerChangeEvent:function(){if(!this.settings.mixMode.integrated){var e=this.DOM.originalInput,t=this.state.lastOriginalValueReported!==e.value,n=new CustomEvent("change",{bubbles:!0});t&&(this.state.lastOriginalValueReported=e.value,n.simulated=!0,e._valueTracker&&e._valueTracker.setValue(Math.random()),e.dispatchEvent(n),this.trigger("change",this.state.lastOriginalValueReported),e.value=this.state.lastOriginalValueReported)}},events:y,fixFirefoxLastTagNoCaret(){},placeCaretAfterNode(e){if(e&&e.parentNode){var t=e.nextSibling,n=window.getSelection(),a=n.getRangeAt(0);n.rangeCount&&(a.setStartAfter(t||e),a.collapse(!0),n.removeAllRanges(),n.addRange(a))}},insertAfterTag(e,t){if(t=t||this.settings.mixMode.insertAfterTag,e&&e.parentNode&&t)return t="string"==typeof t?document.createTextNode(t):t,e.parentNode.insertBefore(t,e.nextSibling),t},editTag(e,t){e=e||this.getLastTag(),t=t||{},this.dropdown.hide();var n=this.settings;function a(){return e.querySelector(n.classNames.tagTextSelector)}var i=a(),r=this.getNodeIndex(e),s=this.tagData(e),o=this.events.callbacks,l=this,p=!0;if(i){if(!(s instanceof Object&&"editable"in s)||s.editable)return i.setAttribute("contenteditable",!0),e.classList.add(n.classNames.tagEditing),this.tagData(e,{__originalData:c({},s),__originalHTML:e.innerHTML}),i.addEventListener("focus",o.onEditTagFocus.bind(this,e)),i.addEventListener("blur",(function(){setTimeout((()=>o.onEditTagBlur.call(l,a())))})),i.addEventListener("input",o.onEditTagInput.bind(this,i)),i.addEventListener("keydown",(t=>o.onEditTagkeydown.call(this,t,e))),i.focus(),this.setRangeAtStartEnd(!1,i),t.skipValidation||(p=this.editTagToggleValidity(e)),i.originalIsValid=p,this.trigger("edit:start",{tag:e,index:r,data:s,isValid:p}),this}else console.warn("Cannot find element in Tag template: .",n.classNames.tagTextSelector)},editTagToggleValidity(e,t){var n;if(t=t||this.tagData(e))return(n=!("__isValid"in t)||!0===t.__isValid)||this.removeTagsFromValue(e),this.update(),e.classList.toggle(this.settings.classNames.tagNotAllowed,!n),t.__isValid;console.warn("tag has no data: ",e,t)},onEditTagDone(e,t){t=t||{};var n={tag:e=e||this.state.editing.scope,index:this.getNodeIndex(e),previousData:this.tagData(e),data:t};this.trigger("edit:beforeUpdate",n,{cloneData:!1}),this.state.editing=!1,delete t.__originalData,delete t.__originalHTML,e&&t[this.settings.tagTextProp]?(e=this.replaceTag(e,t),this.editTagToggleValidity(e,t),this.settings.a11y.focusableTags&&e.focus()):e&&this.removeTags(e),this.trigger("edit:updated",n),this.dropdown.hide(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag(e,t){t&&t.value||(t=e.__tagifyTagData),t.__isValid&&1!=t.__isValid&&c(t,this.getInvalidTagAttrs(t,t.__isValid));var n=this.createTagElem(t);return e.parentNode.replaceChild(n,e),this.updateValueByDOMTags(),n},updateValueByDOMTags(){this.value.length=0,[].forEach.call(this.getTagElms(),(e=>{e.classList.contains(this.settings.classNames.tagNotAllowed.split(" ")[0])||this.value.push(this.tagData(e))})),this.update()},setRangeAtStartEnd(e,t){e="number"==typeof e?e:!!e,t=(t=t||this.DOM.input).lastChild||t;var n=document.getSelection();try{n.rangeCount>=1&&["Start","End"].forEach((a=>n.getRangeAt(0)["set"+a](t,e||t.length)))}catch(e){}},injectAtCaret(e,t){if(t=t||this.state.selection.range)return"string"==typeof e&&(e=document.createTextNode(e)),t.deleteContents(),t.insertNode(e),this.setRangeAtStartEnd(!1,e),this.updateValueByDOMTags(),this.update(),this},input:{set(e="",t=!0){var n=this.settings.dropdown.closeOnSelect;this.state.inputText=e,t&&(this.DOM.input.innerHTML=o(""+e)),!e&&n&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},raw(){return this.DOM.input.textContent},validate(){var e=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!e),e},normalize(e){var t=e||this.DOM.input,n=[];t.childNodes.forEach((e=>3==e.nodeType&&n.push(e.nodeValue))),n=n.join("\n");try{n=n.replace(/(?:\r\n|\r|\n)/g,this.settings.delimiters.source.charAt(0))}catch(e){}return n=n.replace(/\s/g," "),this.settings.trim&&(n=n.replace(/^\s+/,"")),n},autocomplete:{suggest(e){if(this.settings.autoComplete.enabled){"string"==typeof(e=e||{})&&(e={value:e});var t=e.value?""+e.value:"",n=t.substr(0,this.state.inputText.length).toLowerCase(),a=t.substring(this.state.inputText.length);t&&this.state.inputText&&n==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute("data-suggest",a),this.state.inputSuggestion=e):(this.DOM.input.removeAttribute("data-suggest"),delete this.state.inputSuggestion)}},set(e){var t=this.DOM.input.getAttribute("data-suggest"),n=e||(t?this.state.inputText+t:null);return!!n&&("mix"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+n)):(this.input.set.call(this,n),this.setRangeAtStartEnd()),this.input.autocomplete.suggest.call(this),this.dropdown.hide(),!0)}}},getTagIdx(e){return this.value.findIndex((t=>t.__tagId==(e||{}).__tagId))},getNodeIndex(e){var t=0;if(e)for(;e=e.previousElementSibling;)t++;return t},getTagElms(...e){var t="."+[...this.settings.classNames.tag.split(" "),...e].join(".");return[].slice.call(this.DOM.scope.querySelectorAll(t))},getLastTag(){var e=this.DOM.scope.querySelectorAll(`${this.settings.classNames.tagSelector}:not(.${this.settings.classNames.tagHide}):not([readonly])`);return e[e.length-1]},tagData:(e,t,n)=>e?(t&&(e.__tagifyTagData=n?t:c({},e.__tagifyTagData||{},t)),e.__tagifyTagData):(console.warn("tag elment doesn't exist",e,t),t),isTagDuplicate(e,t){var n=this.settings;return"select"!=n.mode&&this.value.reduce(((i,r)=>a(this.trim(""+e),r.value,t||n.dropdown.caseSensitive)?i+1:i),0)},getTagIndexByValue(e){var t=[];return this.getTagElms().forEach(((n,i)=>{a(this.trim(n.textContent),e,this.settings.dropdown.caseSensitive)&&t.push(i)})),t},getTagElmByValue(e){var t=this.getTagIndexByValue(e)[0];return this.getTagElms()[t]},flashTag(e){e&&(e.classList.add(this.settings.classNames.tagFlash),setTimeout((()=>{e.classList.remove(this.settings.classNames.tagFlash)}),100))},isTagBlacklisted(e){return e=this.trim(e.toLowerCase()),this.settings.blacklist.filter((t=>(""+t).toLowerCase()==e)).length},isTagWhitelisted(e){return!!this.getWhitelistItem(e)},getWhitelistItem(e,t,n){t=t||"value";var i,r=this.settings;return(n=n||r.whitelist).some((n=>{var s="string"==typeof n?n:n[t]||n.value;if(a(s,e,r.dropdown.caseSensitive,r.trim))return i="string"==typeof n?{value:n}:n,!0})),i||"value"!=t||"value"==r.tagTextProp||(i=this.getWhitelistItem(e,r.tagTextProp,n)),i},validateTag(e){var t=this.settings,n="value"in e?"value":t.tagTextProp,a=this.trim(e[n]+"");return(e[n]+"").trim()?t.pattern&&t.pattern instanceof RegExp&&!t.pattern.test(a)?this.TEXTS.pattern:!t.duplicates&&this.isTagDuplicate(a,this.state.editing)?this.TEXTS.duplicate:this.isTagBlacklisted(a)||t.enforceWhitelist&&!this.isTagWhitelisted(a)?this.TEXTS.notAllowed:!t.validate||t.validate(e):this.TEXTS.empty},getInvalidTagAttrs(e,t){return{"aria-invalid":!0,class:`${e.class||""} ${this.settings.classNames.tagNotAllowed}`.trim(),title:t}},hasMaxTags(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly(e,t){var n=this.settings;document.activeElement.blur(),n[t||"readonly"]=e,this.DOM.scope[(e?"set":"remove")+"Attribute"](t||"readonly",!0),"mix"==n.mode&&this.setContentEditable(!e)},setContentEditable(e){!this.settings.readonly&&this.settings.userInput&&(this.DOM.input.contentEditable=e)},setDisabled(e){this.setReadonly(e,"disabled")},normalizeTags(e){var t=this.settings,n=t.whitelist,a=t.delimiters,i=t.mode,r=t.tagTextProp;t.enforceWhitelist;var s=[],o=!!n&&n[0]instanceof Object,l=e instanceof Array,c=e=>(e+"").split(a).filter((e=>e)).map((e=>({[r]:this.trim(e),value:this.trim(e)})));if("number"==typeof e&&(e=e.toString()),"string"==typeof e){if(!e.trim())return[];e=c(e)}else l&&(e=[].concat(...e.map((e=>e.value?e:c(e)))));return o&&(e.forEach((e=>{var t=s.map((e=>e.value)),n=this.dropdown.filterListItems.call(this,e[r],{exact:!0});this.settings.duplicates||(n=n.filter((e=>!t.includes(e.value))));var a=n.length>1?this.getWhitelistItem(e[r],r,n):n[0];a&&a instanceof Object?s.push(a):"mix"!=i&&(null==e.value&&(e.value=e[r]),s.push(e))})),s.length&&(e=s)),e},parseMixTags(e){var t=this.settings,n=t.mixTagsInterpolator,a=t.duplicates,i=t.transformTag,r=t.enforceWhitelist,s=t.maxTags,o=t.tagTextProp,l=[];return e=e.split(n[0]).map(((e,t)=>{var c,p,u,d=e.split(n[1]),h=d[0],m=l.length==s;try{if(h==+h)throw Error;p=JSON.parse(h)}catch(e){p=this.normalizeTags(h)[0]||{value:h}}if(i.call(this,p),m||!(d.length>1)||r&&!this.isTagWhitelisted(p.value)||!a&&this.isTagDuplicate(p.value)){if(e)return t?n[0]+e:e}else p[c=p[o]?o:"value"]=this.trim(p[c]),u=this.createTagElem(p),l.push(p),u.classList.add(this.settings.classNames.tagNoAnimation),d[0]=u.outerHTML,this.value.push(p);return d.join("")})).join(""),this.DOM.input.innerHTML=e,this.DOM.input.appendChild(document.createTextNode("")),this.DOM.input.normalize(),this.getTagElms().forEach(((e,t)=>this.tagData(e,l[t]))),this.update({withoutChangeEvent:!0}),e},replaceTextWithNode(e,t){if(this.state.tag||t){t=t||this.state.tag.prefix+this.state.tag.value;var n,a,i=window.getSelection(),r=i.anchorNode,s=this.state.tag.delimiters?this.state.tag.delimiters.length:0;return r.splitText(i.anchorOffset-s),-1==(n=r.nodeValue.lastIndexOf(t))||(a=r.splitText(n),e&&r.parentNode.replaceChild(e,a)),!0}},selectTag(e,t){var n=this.settings;if(!n.enforceWhitelist||this.isTagWhitelisted(t.value)){this.input.set.call(this,t[n.tagTextProp]||t.value,!0),this.state.actions.selectOption&&setTimeout(this.setRangeAtStartEnd.bind(this));var a=this.getLastTag();return a?this.replaceTag(a,t):this.appendTag(e),n.enforceWhitelist&&this.setContentEditable(!1),this.value[0]=t,this.update(),this.trigger("add",{tag:e,data:t}),[e]}},addEmptyTag(e){var t=c({value:""},e||{}),n=this.createTagElem(t);this.tagData(n,t),this.appendTag(n),this.editTag(n,{skipValidation:!0})},addTags(e,t,n){var a=[],i=this.settings,r=document.createDocumentFragment();return n=n||i.skipInvalid,e&&0!=e.length?(e=this.normalizeTags(e),"mix"==i.mode?this.addMixTags(e):("select"==i.mode&&(t=!1),this.DOM.input.removeAttribute("style"),e.forEach((e=>{var t,s={},o=Object.assign({},e,{value:e.value+""});if(e=Object.assign({},o),i.transformTag.call(this,e),e.__isValid=this.hasMaxTags()||this.validateTag(e),!0!==e.__isValid){if(n)return;c(s,this.getInvalidTagAttrs(e,e.__isValid),{__preInvalidData:o}),e.__isValid==this.TEXTS.duplicate&&this.flashTag(this.getTagElmByValue(e.value))}if("readonly"in e&&(e.readonly?s["aria-readonly"]=!0:delete e.readonly),t=this.createTagElem(e,s),a.push(t),"select"==i.mode)return this.selectTag(t,e);r.appendChild(t),e.__isValid&&!0===e.__isValid?(this.value.push(e),this.trigger("add",{tag:t,index:this.value.length-1,data:e})):(this.trigger("invalid",{data:e,index:this.value.length,tag:t,message:e.__isValid}),i.keepInvalidTags||setTimeout((()=>this.removeTags(t,!0)),1e3)),this.dropdown.position()})),this.appendTag(r),this.update(),e.length&&t&&this.input.set.call(this),this.dropdown.refilter(),a)):("select"==i.mode&&this.removeAllTags(),a)},addMixTags(e){if((e=this.normalizeTags(e))[0].prefix||this.state.tag)return this.prefixedTextToTag(e[0]);"string"==typeof e&&(e=[{value:e}]);var t=!!this.state.selection,n=document.createDocumentFragment();return e.forEach((e=>{var t=this.createTagElem(e);n.appendChild(t),this.insertAfterTag(t)})),t?this.injectAtCaret(n):(this.DOM.input.focus(),(t=this.setStateSelection()).range.setStart(this.DOM.input,t.range.endOffset),t.range.setEnd(this.DOM.input,t.range.endOffset),this.DOM.input.appendChild(n),this.updateValueByDOMTags(),this.update()),n},prefixedTextToTag(e){var t,n=this.settings,a=this.state.tag.delimiters;if(n.transformTag.call(this,e),e.prefix=e.prefix||this.state.tag?this.state.tag.prefix:(n.pattern.source||n.pattern)[0],t=this.createTagElem(e),this.replaceTextWithNode(t)||this.DOM.input.appendChild(t),setTimeout((()=>t.classList.add(this.settings.classNames.tagNoAnimation)),300),this.value.push(e),this.update(),!a){var i=this.insertAfterTag(t)||t;this.placeCaretAfterNode(i)}return this.state.tag=null,this.trigger("add",c({},{tag:t},{data:e})),t},appendTag(e){var t=this.DOM,n=t.scope.lastElementChild;n===t.input?t.scope.insertBefore(e,n):t.scope.appendChild(e)},createTagElem(e,n){e.__tagId=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)));var a,i=c({},e,t({value:o(e.value+"")},n));return function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);t=n.nextNode();)t.textContent.trim()||t.parentNode.removeChild(t)}(a=this.parseTemplate("tag",[i])),this.tagData(a,e),a},reCheckInvalidTags(){var e=this.settings;this.getTagElms(e.classNames.tagNotAllowed).forEach(((e,t)=>{var n=this.tagData(e),a=this.hasMaxTags(),i=this.validateTag(n);if(!0===i&&!a)return n=n.__preInvalidData?n.__preInvalidData:{value:n.value},this.replaceTag(e,n);e.title=a||i}))},removeTags(e,t,n){var a;if(e=e&&e instanceof HTMLElement?[e]:e instanceof Array?e:e?[e]:[this.getLastTag()],a=e.reduce(((e,t)=>{t&&"string"==typeof t&&(t=this.getTagElmByValue(t));var n=this.tagData(t);return t&&n&&!n.readonly&&e.push({node:t,idx:this.getTagIdx(n),data:this.tagData(t,{__removed:!0})}),e}),[]),n="number"==typeof n?n:this.CSSVars.tagHideTransition,"select"==this.settings.mode&&(n=0,this.input.set.call(this)),1==a.length&&a[0].node.classList.contains(this.settings.classNames.tagNotAllowed)&&(t=!0),a.length)return this.settings.hooks.beforeRemoveTag(a,{tagify:this}).then((()=>{function e(e){e.node.parentNode&&(e.node.parentNode.removeChild(e.node),t?this.settings.keepInvalidTags&&this.trigger("remove",{tag:e.node,index:e.idx}):(this.trigger("remove",{tag:e.node,index:e.idx,data:e.data}),this.dropdown.refilter(),this.dropdown.position(),this.DOM.input.normalize(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()))}n&&n>10&&1==a.length?function(t){t.node.style.width=parseFloat(window.getComputedStyle(t.node).width)+"px",document.body.clientTop,t.node.classList.add(this.settings.classNames.tagHide),setTimeout(e.bind(this),n,t)}.call(this,a[0]):a.forEach(e.bind(this)),t||(this.removeTagsFromValue(a.map((e=>e.node))),this.update(),"select"==this.settings.mode&&this.setContentEditable(!0))})).catch((e=>{}))},removeTagsFromDOM(){[].slice.call(this.getTagElms()).forEach((e=>e.parentNode.removeChild(e)))},removeTagsFromValue(e){(e=Array.isArray(e)?e:[e]).forEach((e=>{var t=this.tagData(e),n=this.getTagIdx(t);n>-1&&this.value.splice(n,1)}))},removeAllTags(e){e=e||{},this.value=[],"mix"==this.settings.mode?this.DOM.input.innerHTML="":this.removeTagsFromDOM(),this.dropdown.position(),"select"==this.settings.mode&&(this.input.set.call(this),this.setContentEditable(!0)),this.update(e)},postUpdate(){var e=this.settings.classNames,t="mix"==this.settings.mode?this.settings.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value.trim():this.value.length+this.input.raw.call(this).length;this.toggleClass(e.hasMaxTags,this.value.length>=this.settings.maxTags),this.toggleClass(e.hasNoTags,!this.value.length),this.toggleClass(e.empty,!t)},setOriginalInputValue(e){var t=this.DOM.originalInput;this.settings.mixMode.integrated||(t.value=e,t.tagifyValue=t.value,this.setPersistedData(e,"value"))},update(e){var t=this.getInputValue();this.setOriginalInputValue(t),this.postUpdate(),(e||{}).withoutChangeEvent||this.state.blockChangeEvent||this.triggerChangeEvent()},getInputValue(){var e=this.getCleanValue();return"mix"==this.settings.mode?this.getMixedTagsAsString(e):e.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(e):JSON.stringify(e):""},getCleanValue(e){return t=e||this.value,n=this.dataProps,t&&Array.isArray(t)&&t.map((e=>i(e,n)));var t,n},getMixedTagsAsString(){var e="",t=this,n=this.settings.mixTagsInterpolator;return function a(r){r.childNodes.forEach((r=>{if(1==r.nodeType){const s=t.tagData(r);if("BR"==r.tagName&&(e+="\r\n"),"DIV"==r.tagName||"P"==r.tagName)e+="\r\n",a(r);else if(d.call(t,r)&&s){if(s.__removed)return;e+=n[0]+JSON.stringify(i(s,t.dataProps))+n[1]}}else e+=r.textContent}))}(this.DOM.input),e}},k.prototype.removeTag=k.prototype.removeTags,k}()},function(e,t,n){var a,i;a=function(){var e,t=0,n={},a={},i=(e=window.MutationObserver||window.WebKitMutationObserver,function(t,n){t&&1===t.nodeType&&(e?new e((function(e,t){n(e)})).observe(t,{childList:!0,subtree:!1}):window.addEventListener&&t.addEventListener("DOMNodeInserted",n,!1))});function r(e,t){if(!e)return this;t=t||{},this.parentElm=e,this.uid=t.uid,this.settings={selector:"*",callbacks:{}},Object.assign(this.settings,t),this.setup(),i(this.parentElm,this.setup.bind(this)),this.bindEvents()}return r.prototype={namespace:"dragsort",setup(){[...this.parentElm.childNodes].forEach((e=>{if(1!=e.nodeType)return e.parentNode.removeChild(e);e.matches(this.settings.selector)&&(e.draggable=!0)})),this.gap=this.getItemsGap(this.parentElm.firstElementChild)},throttle(e,t){var n=!1,a=this;return function(i){n||(e.call(a,i),n=!0,setTimeout((()=>n=!1),t))}},getDraggableElm(e){if(!e.closest)return null;var t=e.closest('[draggable="true"]');return this.uid==n.uid?t:null},dragstart(e,t){n=this;var a,i=this.getDraggableElm(t);i?(this.source=this.getInitialState(),this.target=this.getInitialState(),a=i.getBoundingClientRect(),this.source.elm=i,this.source.idx=this.getNodeIndex(i),this.source.size.width=a.width,this.source.size.height=a.height,e.dataTransfer.effectAllowed="move",setTimeout(this.afterDragStart.bind(this))):n={}},afterDragStart(){var e="vertical"==this.settings.mode?"height":"width";this.parentElm.classList.add(`${this.namespace}--dragStart`),this.source.elm.style[e]=this.source.size[e]+"px",this.source.elm.classList.add(`${this.namespace}--dragElem`)},dragover(e){e.preventDefault(),e.stopPropagation();var t=e.target;if((t=this.getDraggableElm(t))&&this.target){var n=this.target.elm,a=this.target.hoverDirection;e.dataTransfer.dropEffect="move",this.target.hoverDirection=this.getTargetDirection(e),n==t&&a==this.target.hoverDirection||this.directionAwareDragEnter(e,t)}},dragenter(e,t){(t=this.getDraggableElm(t))&&this.target&&this.isValidElm(t)&&this.source.elm!=t&&this.source.elm&&(this.target.bounding=t.getBoundingClientRect())},directionAwareDragEnter(e,t){var n;e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="none",this.isValidElm(t)&&this.source.elm!=t&&this.source.elm&&(e.dataTransfer.dropEffect="move",this.cleanupLastTarget(),this.target.elm=t,this.target.idx=this.getNodeIndex(t),t.classList.add("over"),n=Math.abs(this.target.idx-this.source.idx),this.source.elm.classList.toggle(`${this.namespace}--hide`,n>0),"vertical"==this.settings.mode?this.target.elm.style[this.target.hoverDirection?"marginBottom":"marginTop"]=this.source.size.height+this.gap+"px":this.target.elm.style[this.target.hoverDirection?"marginRight":"marginLeft"]=this.source.size.width+this.gap+"px")},dragend(e){if(clearTimeout(this.dragoverTimeout),this.dragoverTimeout=null,this.parentElm.classList.remove(`${this.namespace}--dragStart`),!this.isValidElm(this.target.elm))return this.cleanup();var t=this.target.hoverDirection?this.target.elm.nextElementSibling:this.target.elm;return this.source.elm!=this.target.elm&&this.target.elm&&(this.target.elm.classList.add(`${this.namespace}--noAnim`),this.cleanup(),this.parentElm.insertBefore(this.source.elm,t)),this.source.elm&&this.source.elm.classList.remove(`${this.namespace}--dragElem`,`${this.namespace}--hide`),this.settings.callbacks.dragEnd(this.source.elm),this},isTargetLastChild(){return this.parentElm.lastElementChild==this.target.elm},getTargetDirection(e){if(this.target.bounding)return"vertical"==this.settings.mode?e.pageY>this.target.bounding.top+this.target.bounding.height/2?1:0:e.pageX>this.target.bounding.left+this.target.bounding.width/2?1:0},getNodeIndex(e){for(var t=0;e=e.previousSibling;)3==e.nodeType&&/^\s*$/.test(e.data)||t++;return t},isValidElm(e){return e&&e.nodeType&&e.parentNode==this.parentElm},cleanup(){n={},[...this.parentElm.children].forEach((e=>{e.removeAttribute("style"),setTimeout((()=>{e.classList.remove(`${this.namespace}--over`,`${this.namespace}--noAnim`,`${this.namespace}--dragElem`)}),50)}))},cleanupLastTarget(){this.target.elm&&(this.target.elm.classList.remove(`${this.namespace}--hide`,`${this.namespace}--over`),this.target.elm.removeAttribute("style"))},getInitialState:()=>({elm:null,size:{}}),getItemsGap(e){var t=getComputedStyle(e);return"vertical"==this.settings.mode?parseInt(t.marginTop)+parseInt(t.marginBottom):parseInt(t.marginLeft)+parseInt(t.marginRight)},bindEvents(e){for(var t in this.listeners=this.listeners||{dragstart:e=>this.dragstart(e,e.target),dragenter:e=>this.dragenter(e,e.target),dragend:e=>this.dragend(e,e.target),dragover:this.throttle(this.dragover,350)},this.listeners)this.parentElm[e?"removeEventListener":"addEventListener"](t,this.listeners[t])},destroy(){this.cleanup(),this.bindEvents(!0),delete a[this.uid]}},function(e,n){return a[++t]=e.DragSort?a[e.DragSort]:new r(e,{...n,uid:t}),e.DragSort=t,a[t]}},"function"==typeof(i=i||{})&&i.amd?i([],a):e.exports=a()},function(e,t,n){var a=n(38),i=n(52),r=n(55),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,p,u,d,h,m=0,g=!1,f=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=l,a=c;return l=c=void 0,m=t,u=e.apply(a,n)}function w(e){return m=e,d=setTimeout(k,t),g?b(e):u}function y(e){var n=e-h;return void 0===h||n>=t||n<0||f&&e-m>=p}function k(){var e=i();if(y(e))return O(e);d=setTimeout(k,function(e){var n=t-(e-h);return f?o(n,p-(e-m)):n}(e))}function O(e){return d=void 0,v&&l?b(e):(l=c=void 0,u)}function E(){var e=i(),n=y(e);if(l=arguments,c=this,h=e,n){if(void 0===d)return w(h);if(f)return clearTimeout(d),d=setTimeout(k,t),b(h)}return void 0===d&&(d=setTimeout(k,t)),u}return t=r(t)||0,a(n)&&(g=!!n.leading,p=(f="maxWait"in n)?s(r(n.maxWait)||0,t):p,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==d&&clearTimeout(d),m=0,l=h=c=d=void 0},E.flush=function(){return void 0===d?u:O(i())},E}},,function(e,t,n){"use strict";var a=n(34),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=n(37),s=n(49),o=n(50),l="function"==typeof Symbol&&Symbol.iterator;function c(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,a={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return a[e]}))):t.toString(36);var n,a}function p(e,t,n,a){var r,o=typeof e;if("undefined"!==o&&"boolean"!==o||(e=null),null===e||"string"===o||"number"===o||"object"===o&&e.$$typeof===i)return n(a,e,""===t?"."+c(e,0):t),1;var u=0,d=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h<e.length;h++)u+=p(r=e[h],d+c(r,h),n,a);else{var m=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var g,f=m.call(e),v=0;!(g=f.next()).done;)u+=p(r=g.value,d+c(r,v++),n,a)}else if("object"===o){0;var b=""+e;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,"")}}return u}var u=/\/+/g;function d(e){return(""+e).replace(u,"$&/")}var h,m,g=f,f=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},v=function(e){var t=this;s(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function b(e,t,n,a){this.result=e,this.keyPrefix=t,this.func=n,this.context=a,this.count=0}function w(e,t,n){var i,s,o=e.result,l=e.keyPrefix,c=e.func,p=e.context,u=c.call(p,t,e.count++);Array.isArray(u)?y(u,o,n,r.thatReturnsArgument):null!=u&&(a.isValidElement(u)&&(i=u,s=l+(!u.key||t&&t.key===u.key?"":d(u.key)+"/")+n,u=a.cloneElement(i,{key:s},void 0!==i.props?i.props.children:void 0)),o.push(u))}function y(e,t,n,a,i){var r="";null!=n&&(r=d(n)+"/");var s=b.getPooled(t,r,a,i);!function(e,t,n){null==e||p(e,"",t,n)}(e,w,s),b.release(s)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h=function(e,t,n,a){var i=this;if(i.instancePool.length){var r=i.instancePool.pop();return i.call(r,e,t,n,a),r}return new i(e,t,n,a)},(m=b).instancePool=[],m.getPooled=h||g,m.poolSize||(m.poolSize=10),m.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return o(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(a.isValidElement(e))return o(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)y(e[n],t,n,r.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,i,r,s,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,i,r,s,o],p=0;(l=new Error(t.replace(/%s/g,(function(){return c[p++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var a=n(37);e.exports=a},function(e,t,n){"use strict";function a(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(a)}},function(e,t,n){var a=n(39);e.exports=function(){return a.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(54))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var a=n(56),i=n(38),r=n(58),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=o.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},function(e,t,n){var a=n(57),i=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(i,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var a=n(59),i=n(62);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==a(e)}},function(e,t,n){var a=n(40),i=n(60),r=n(61),s=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):r(e)}},function(e,t,n){var a=n(40),i=Object.prototype,r=i.hasOwnProperty,s=i.toString,o=a?a.toStringTag:void 0;e.exports=function(e){var t=r.call(e,o),n=e[o];try{e[o]=void 0;var a=!0}catch(e){}var i=s.call(e);return a&&(t?e[o]=n:delete e[o]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(0),i=n(3),r=n(6),s=n(5),o=n(12),l=n.n(o),c=n(1),p=n(10),u=n(4);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var h=["tabId","onClick","children","selected"];function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},k.apply(this,arguments)}function O(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var E=function(e){var t=e.tabId,n=e.onClick,a=e.children,i=e.selected,r=O(e,h);return wp.element.createElement(u.Button,k({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},r),a)},T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(r,e);var t,n,a,i=b(r);function r(){var e;g(this,r),(e=i.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,a=void 0===n?c.noop:n;e.setState({selected:t}),a(t)},e.onNavigate=function(e,t){t.click()};var t=e.props,n=t.tabs,a=t.initialTabName;return e.state={selected:a||(n.length>0?n[0].name:null)},e}return t=r,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,a=n.activeClass,i=void 0===a?"is-active":a,r=n.className,s=n.instanceId,o=n.orientation,p=void 0===o?"horizontal":o,d=n.tabs,h=Object(c.find)(d,{name:t}),g=s+"-"+h.name,f=d.slice(4);return wp.element.createElement("div",{className:r},wp.element.createElement(u.NavigableMenu,{role:"tablist",orientation:p,onNavigate:this.onNavigate,className:"components-tab-panel__tabs "+t},d.slice(0,4).map((function(n){return wp.element.createElement(E,{className:l()("components-tab-panel__tabs-item",n.className,m({},i,n.name===t)),tabId:s+"-"+n.name,"aria-controls":s+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(c.partial)(e.handleClick,n.name)},n.title)})),f.map((function(n){return wp.element.createElement(E,{className:l()("components-tab-panel__tabs-item",n.className,m({},i,n.name===t)),tabId:s+"-"+n.name,"aria-controls":s+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(c.partial)(e.handleClick,n.name)},n.title)}))),h&&wp.element.createElement("div",{"aria-labelledby":g,role:"tabpanel",id:g+"-view",className:"components-tab-panel__tab-content"},this.props.children(h)))}}])&&f(t.prototype,n),a&&f(t,a),Object.defineProperty(t,"prototype",{writable:!1}),r}(s.Component),_=Object(p.withInstanceId)(T),x=n(16);function j(e,t,n){var a=0;return!1!==Object(c.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function C(e,t){return e<=t.min||e>t.max}function N(e,t){return e<=t.minWidth||e>t.pixelWidth}var S=function(e){var t=function(e,t){var n=Object(x.a)(e).length,a=0,i=!1;if(!1!==Object(c.get)(t,"pixelWidth",!1)){i=!0;var r=document.createTextNode(e),s=document.createElement("span");s.appendChild(r),s.id="rank-math-width-tester",s.className=t.widthCheckerClass;var o=document.body.appendChild(s);a=document.getElementById("rank-math-width-tester").offsetWidth,o.outerHTML=""}return{left:j(n,a,t),isInvalid:C(n,t),isInvalidWidth:!!i&&N(a,t),count:n+" / "+t.max,pixelWidth:i?a+"px / "+t.pixelWidth+"px":""}}(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:l()("length-indicator-wrapper",{invalid:t.isInvalid||t.isInvalidWidth})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},D=n(31),I=n(43),M=n.n(I),A=function(e){var t=e.tags,n=e.components,a=e.children;return n=n||{},!1===Object(c.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),M()({mixedString:a,components:n})};function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function R(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=V(e);if(t){var i=V(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return B(this,n)}}function B(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return U(e)}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(o,e);var t,n,i,r=F(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(U(t)),t}return t=o,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(c.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(s.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(u.TextControl,{autoComplete:"off",placeholder:Object(D.decodeEntities)(Object(a.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(A,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(u.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&R(t.prototype,n),i&&R(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(s.Component),z=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(i.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,i=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(a.__)("Title","rank-math")),wp.element.createElement(S,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(a.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:i}),wp.element.createElement(H,{exclude:["seo_title","seo_description"],onClick:function(e){return i(t+" %"+e.variable+"%")}})))})),W=n(7),$=n(9),G=Object(p.compose)(Object(i.withSelect)((function(e){var t=rankMathEditor.assessor.dataCollector,n=e("rank-math").getSerpSlug();return{permalink:n||t.getSlug(),serpPermalink:t.getPermalink()}})),Object(i.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(W.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(W.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,i=e.updatePermalink,r=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(a.__)("Permalink","rank-math")),wp.element.createElement(S,{source:Object($.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(u.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object($.safeDecodeURIComponent)(t),onChange:i,help:rankMath.is_front_page?Object(a.__)("Editing Homepage permalink is not possible.","rank-math"):Object(a.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){r(e.target.value)}}))})),K=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(i.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,i=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(a.__)("Description","rank-math")),wp.element.createElement(S,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group rank-math-description-variables"},wp.element.createElement(u.TextareaControl,{id:"rank-math-editor-description",value:Object(x.a)(t),placeholder:n||Object(c.unescape)(rankMath.assessor.serpData.descriptionTemplate),help:Object(a.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:i}),wp.element.createElement(H,{exclude:["seo_title","seo_description"],onClick:function(e){return i(t+" %"+e.variable+"%")}})))})),q=Object(p.compose)(Object(i.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(i.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,a=l()("button button-secondary button-small",{active:"desktop"===t}),i=l()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:i},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Y=n(28),X=function(e,t,n,a){return Object(c.isUndefined)(t)?t:(t=Object(c.truncate)(t,{length:n,separator:a||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))},J=function(e,t){for(var n=[],a=1;a<=e;a++)n.push(wp.element.createElement(u.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(i.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(c.find)(t,(function(e){return!Object(c.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(c.isEmpty)(t))return null;var n=Object(c.get)(t,"review.reviewRating",{}),i=n.ratingValue;if(Object(c.isEmpty)(i))return null;Object(c.get)(n,"worstRating",1);var r=Object(c.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},J(r,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},J(n,"filled"))}(i,0,r)),wp.element.createElement("span",{className:"serp-rating-label"},Object(a.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},i))}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee=Object(i.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,i=e.permalink,r=e.description,s=e.previewType,o=void 0===s?"desktop":s,c=e.isNoIndex,p=e.keyword,u=e.onClick,d=e.showScore,h=void 0===d||d,m=e.showDevices,g=void 0!==m&&m,f=l()("serp-preview",(Q(t={"expanded-preview":""!==o},"".concat(o,"-preview"),""!==o&&g),Q(t,"noindex-preview",c),t)),v=l()("serp-title",{capitalize:rankMath.capitalizeTitle}),b=rankMathEditor.assessor.getResearch("slugify")(p);return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(a.__)("Preview","rank-math"),"data-desktop":Object(a.__)("Desktop Preview","rank-math"),"data-mobile":Object(a.__)("Mobile Preview","rank-math")},h&&wp.element.createElement(Y.a,null)," ",g&&wp.element.createElement(q,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:p||Object(a.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(a.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(a.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(a.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(a.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(a.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(a.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(a.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){u&&u()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:X(b,W.Helpers.sanitizeText(Object($.safeDecodeURIComponent)(i)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:v,dangerouslySetInnerHTML:{__html:X(p,W.Helpers.sanitizeText(n),60)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:X(p,W.Helpers.sanitizeText(r),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(a.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(a.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),te=Object(i.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(ee,{showScore:!1,showDevices:!0}),wp.element.createElement(z,null),wp.element.createElement(G,null),wp.element.createElement(K,null))})),ne=n(8),ae=function(e){var t=l()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType),n=l()("rank-math-social-preview-title",{capitalize:rankMath.capitalizeTitle});return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:n},e.title?ne.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?ne.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(s.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(u.Dashicon,{icon:"admin-links"}),e.siteurl))))))},ie=n(30),re=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(ie.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(a.__)("Replace Image","rank-math"):Object(a.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(u.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(a.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(a.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(a.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function se(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},oe.apply(this,arguments)}var le=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(c.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(i.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(ae,oe({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(a.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(u.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(a.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(a.__)("Read more","rank-math")))),wp.element.createElement(re,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-facebook-title"},Object(a.__)("Title","rank-math")),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextControl,{id:"rank-math-facebook-title",value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle}),wp.element.createElement(H,{onClick:function(t){return e.updateTitle(e.title+" %"+t.variable+"%")}}))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-facebook-description"},Object(a.__)("Description","rank-math")),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextareaControl,{id:"rank-math-facebook-description",value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription}),wp.element.createElement(H,{onClick:function(t){return e.updateDescription(e.description+" %"+t.variable+"%")}}))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(u.ToggleControl,{label:Object(a.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(u.SelectControl,{value:e.imageOverlay,label:Object(a.__)("Icon overlay","rank-math"),options:se(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(a.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),ce=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(i.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.description,label:Object(a.__)("App Description","rank-math"),help:Object(a.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.iphoneName,label:Object(a.__)("iPhone App Name","rank-math"),help:Object(a.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(u.TextControl,{value:e.iphoneID,label:Object(a.__)("iPhone App ID","rank-math"),help:Object(a.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(u.TextControl,{value:e.iphoneUrl,label:Object(a.__)("iPhone App URL","rank-math"),help:Object(a.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.ipadName,label:Object(a.__)("iPad App Name","rank-math"),help:Object(a.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(u.TextControl,{value:e.ipadID,label:Object(a.__)("iPad App ID","rank-math"),help:Object(a.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(u.TextControl,{value:e.ipadUrl,label:Object(a.__)("iPad App URL","rank-math"),help:Object(a.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.googleplayName,label:Object(a.__)("Google Play App Name","rank-math"),help:Object(a.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(u.TextControl,{value:e.googleplayID,label:Object(a.__)("Google Play App ID","rank-math"),help:Object(a.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(u.TextControl,{value:e.googleplayUrl,label:Object(a.__)("Google Play App URL","rank-math"),help:Object(a.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(u.TextControl,{value:e.country,label:Object(a.__)("App Country","rank-math"),help:Object(a.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),pe=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(i.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.url,label:Object(a.__)("Player URL","rank-math"),help:Object(a.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(u.TextControl,{value:e.size,label:Object(a.__)("Player Size","rank-math"),help:Object(a.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(u.TextControl,{value:e.stream,label:Object(a.__)("Stream URL","rank-math"),help:Object(a.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(u.TextControl,{value:e.ctype,label:Object(a.__)("Stream Content Type","rank-math"),help:Object(a.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ue(){return ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ue.apply(this,arguments)}var de=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),a=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(c.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:a,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(i.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(ae,ue({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(c.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(a.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(a.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(u.ToggleControl,{label:Object(a.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(u.SelectControl,{value:e.cardType,label:Object(a.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(a.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(a.__)("Summary Card","rank-math")},{value:"app",label:Object(a.__)("App Card","rank-math")},{value:"player",label:Object(a.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(a.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"),wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(a.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"),wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(re,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-twitter-title"},Object(a.__)("Title","rank-math")),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextControl,{id:"rank-math-twitter-title",value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle}),wp.element.createElement(H,{onClick:function(t){return e.updateTitle(e.title+" %"+t.variable+"%")}}))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-twitter-description"},Object(a.__)("Description","rank-math")),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextareaControl,{id:"rank-math-twitter-description",value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription}),wp.element.createElement(H,{onClick:function(t){return e.updateDescription(e.description+" %"+t.variable+"%")}}))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(u.ToggleControl,{label:Object(a.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(u.SelectControl,{value:e.imageOverlay,label:Object(a.__)("Icon overlay","rank-math"),options:se(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(a.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(pe,null),"app"===e.cardType&&wp.element.createElement(ce,null))})),he=function(){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(s.Fragment,null,wp.element.createElement(u.Dashicon,{icon:"facebook-alt"}),Object(a.__)("Facebook","rank-math")),view:le,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(s.Fragment,null,wp.element.createElement(u.Dashicon,{icon:"twitter"}),Object(a.__)("Twitter","rank-math")),view:de,className:"button-twitter"}]},(function(e){return Object(s.createElement)(e.view)})))},me=n(2),ge=n.n(me);function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function ve(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function be(e,t){return be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},be(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Oe(e);if(t){var i=Oe(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return ye(this,n)}}function ye(e,t){if(t&&("object"===fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ke(e)}function ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}var Ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}(o,e);var t,n,i,r=we(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this))._handleRef=e._handleRef.bind(ke(e)),e}return t=o,(n=[{key:"componentDidMount",value:function(){var e=ge()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=ge()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(a.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(A,{tags:"em"},Object(a.__)("Hey, we noticed you are using Rank Math SEO plugin for more than a week now –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(u.CheckboxControl,{label:wp.element.createElement(s.Fragment,null,wp.element.createElement("span",null,Object(a.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){ge.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=ge()(this.component);e.animate({opacity:.01},1500,(function(){var t=ge()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&ve(t.prototype,n),i&&ve(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(s.Component),Te=Object(u.withFilters)("rankMath.analytics.reportButton")((function(){return null})),_e=Object(p.compose)(Object(i.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(i.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,i=void 0===n?"":n,r=e.toggleEditor,o=[{name:"general",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(a.__)("General","rank-math"))),view:te}];return rankMath.canUser.social&&o.push({name:"social",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(a.__)("Social","rank-math"))),view:he}),rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&o.push({name:"review",className:"review-tab",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:Ee}),wp.element.createElement(s.Fragment,null,wp.element.createElement(u.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:r},Object(a.__)("Edit Snippet","rank-math")),""===i&&wp.element.createElement(Te,null),t&&wp.element.createElement(u.Modal,{title:Object(a.__)("Preview Snippet Editor","rank-math"),closeButtonLabel:Object(a.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:r,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(u.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:i,tabs:o},(function(e){return Object(s.createElement)(e.view)}))))})),xe=function(){return wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(u.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(a.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(a.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(a.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(_e,{buttonLabel:Object(a.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},je=Object(p.withInstanceId)((function(e){var t=e.className,n=e.instanceId,a=e.children,i="rank-math-tooltip-"+n,r=l()("rank-math-tooltip",t);return wp.element.createElement("span",{className:r},wp.element.createElement("input",{id:i,type:"checkbox"}),wp.element.createElement("label",{htmlFor:i,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},a))}));function Ce(e){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(e)}function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function De(e,t){return De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},De(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Ae(e);if(t){var i=Ae(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return Me(this,n)}}function Me(e,t){if(t&&("object"===Ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}var Pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&De(e,t)}(o,e);var t,n,i,r=Ie(o);function o(){return Ne(this,o),r.apply(this,arguments)}return t=o,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(c.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(u.PanelBody,{key:"panel-"+e,title:wp.element.createElement(s.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(a.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(a.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,a=this.getGroupItems(e);return Object.keys(a).map((function(e){if(Object(c.isUndefined)(n[e])||!t.isPrimary&&a[e])return!1;var i=n[e],r=l()("seo-check-"+e,{"test-ok":i.hasScore(),"test-fail":!i.hasScore()});return i.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(r+=" "+function(e,t){var n=Object(c.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}(i.getScore(),i.getMaxScore())),!1===i.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:r},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:i.getText()}}),i.hasTooltip()?wp.element.createElement(je,null,i.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return("post"===rankMath.objectType?{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}:{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0},advanced:{titleStartWithKeyword:!0,keywordNotUsed:!0}})[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return"post"===rankMath.objectType?{basic:Object(a.__)("Basic SEO","rank-math"),advanced:Object(a.__)("Additional","rank-math"),"title-readability":Object(a.__)("Title Readability","rank-math"),"content-readability":Object(a.__)("Content Readability","rank-math")}:{basic:Object(a.__)("Basic SEO","rank-math"),advanced:Object(a.__)("Additional","rank-math")}}}])&&Se(t.prototype,n),i&&Se(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(s.Component),Re=Object(i.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Pe),Le=n(22),Fe=Object(i.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(u.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(A,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(a.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(u.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(A,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(a.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(u.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(A,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(a.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Be=n(44),Ue=n.n(Be),Ve=n(45),He=n.n(Ve);function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function We(){return We=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},We.apply(this,arguments)}function $e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ge(e,t){return Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ge(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function qe(e,t){if(t&&("object"===ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ye(e)}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}var Je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ge(e,t)}(r,e);var t,n,a,i=Ke(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=i.call(this,e))._handleRef=t._handleRef.bind(Ye(t)),t}return t=r,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Ue.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100),this.addDragSort()}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",We({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",We({},e,{defaultValue:this.props.initialValue}))}},{key:"addDragSort",value:function(){this.props.settings.callbacks.dragEnd&&new He.a(this.tagify.DOM.scope,{selector:".tagify__tag",callbacks:{dragEnd:this.props.settings.callbacks.dragEnd}})}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&$e(t.prototype,n),a&&$e(t,a),Object.defineProperty(t,"prototype",{writable:!1}),r}(s.Component);function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Qe(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=it(e);if(t){var i=it(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return nt(this,n)}}function nt(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return at(e)}function at(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}var rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&et(e,t)}(l,e);var t,n,i,o=tt(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=o.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(s.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(at(t)),window.rankMathEditor.focusKeywordField=at(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:Object(c.debounce)(this.onRemove.bind(this),300),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(c.debounce)(this.onInput.bind(this),300));var n=Object(r.applyFilters)("rank_math_focus_keyword_settings",{addTagOnBlur:!0,maxTags:"post"===rankMath.objectType?rankMath.maxTags:1,whitelist:this.state.whitelist||[],focusableTags:!0,transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t){var n=t.title||t.value,a="";if(!t.class){var i=rankMathEditor.resultManager.getScore(W.Helpers.removeDiacritics(n));a+=e.getScoreClass(i)}return"<tag title='".concat(e.stripTags(n),"'\n tabIndex='0'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(t.class?t.class:a,"'\n ").concat(e.getAttributesEsc(t),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(n),"</span>\n </div>\n </tag>")}},callbacks:t},this);return this.setKeywordsClasses(),wp.element.createElement(Je,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(a.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var a=t.queryTags();n.map((function(t,n){if(!Object(c.isUndefined)(a[n])){var i=rankMathEditor.resultManager.getScore(W.Helpers.removeDiacritics(t.value));a[n].classList.remove("ok-fk","good-fk","bad-fk"),a[n].classList.add(e.getScoreClass(i))}}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(c.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=ge.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var a=ge.a.map(n,(function(e){return e}));t.setState({whitelist:a,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributesEsc",value:function(e){if("[object Object]"!==Object.prototype.toString.call(e))return"";var t,n,a="",i=Object.keys(e);for(n=i.length;n--;)"class"!==(t=i[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=""+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=ge()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Qe(t.prototype,n),i&&Qe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(s.Component),st=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(i.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),Object(c.isUndefined)(t.tag)||""===t.tag||t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(rt),ot=Object(u.withFilters)("rankMath.focusKeywords.Trends")(Object(p.compose)(Object(i.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(i.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(s.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(a.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(u.Modal,{title:Object(a.__)("Google Trends","rank-math"),closeButtonLabel:Object(a.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(a.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(a.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(a.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(a.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},rankMath.trendsUpgradeLabel))))))}))),lt=Object(u.withFilters)("rankMath.analytics.contentAI")((function(){return!1})),ct=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(i.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,i=e.togglePillarContent;return t?wp.element.createElement(u.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(a.__)("Focus Keyword","rank-math"),wp.element.createElement(je,null,wp.element.createElement(A,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(a.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),wp.element.createElement(ot,null),rankMath.currentEditor&&"classic"!==rankMath.currentEditor&&wp.element.createElement(lt,null),wp.element.createElement(Le.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(st,null)),wp.element.createElement(Fe,null),"post"===rankMath.objectType&&wp.element.createElement(u.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(s.Fragment,null,wp.element.createElement("strong",null,Object(a.__)("This post is Pillar Content","rank-math")),wp.element.createElement(je,null,Object(a.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:i})):null})),pt=n(20),ut=Object(i.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(ee,{onClick:t}),wp.element.createElement(_e,null),wp.element.createElement(pt.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(ct,null),rankMath.canUser.analysis&&wp.element.createElement(Re,null))})),dt=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},ht=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(i.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,a){n=dt(n,t,a),"index"===t&&(n=dt(n,"noindex",!a)),"noindex"===t&&(n=dt(n,"index",!a)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(u.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(a.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(u.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(s.Fragment,null,Object(a.__)("Index","rank-math"),wp.element.createElement(je,null,Object(a.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(s.Fragment,null,Object(a.__)("No Index","rank-math"),wp.element.createElement(je,null,Object(a.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(s.Fragment,null,Object(a.__)("Nofollow","rank-math"),wp.element.createElement(je,null,Object(a.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(s.Fragment,null,Object(a.__)("No Archive","rank-math"),wp.element.createElement(je,null,Object(a.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(s.Fragment,null,Object(a.__)("No Image Index","rank-math"),wp.element.createElement(je,null,Object(a.__)("This option prevents images on a page from being indexed by Google and other search engines","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(s.Fragment,null,Object(a.__)("No Snippet","rank-math"),wp.element.createElement(je,null,Object(a.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(i.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(gt(gt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,a){e("rank-math").updateRedirection(n,a),e("rank-math").updateRedirectionItem(gt(gt({},t),{},ft({},n,a)))}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(a.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),e.hasRedirect&&wp.element.createElement(u.SelectControl,{label:Object(a.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(a.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(a.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(a.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(a.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(a.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(u.TextControl,{type:"url",autoComplete:"off",label:Object(a.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(u.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),bt=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(i.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,i=e.onUrlChange;return wp.element.createElement(u.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(a.__)("Canonical URL","rank-math"),wp.element.createElement(je,null,Object(a.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(u.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return i(e)}}))})),wt=Object(p.compose)(Object(i.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(i.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(u.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(a.__)("Breadcrumb Title","rank-math"),wp.element.createElement(je,null,Object(a.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(u.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){Ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Et={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},Tt=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=kt({},t);Object(c.defaults)(n,Et);var a=null,i=null,r=null;return"max-snippet"in t&&(a=n["max-snippet"]),"max-image-preview"in t&&(i=n["max-image-preview"]),"max-video-preview"in t&&(r=n["max-video-preview"]),{meta:t,isSnippet:a,isImage:i,isVideo:r,maxSnippet:a?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:r?n["max-video-preview"]:-1}})),Object(i.withDispatch)((function(e,t){var n=kt({},t.meta);return{updateRobots:function(t,a){Object(c.isBoolean)(a)?!1===a?delete n[t]:n[t]=Et[t]:n[t]=a,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(u.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(a.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(u.CheckboxControl,{label:wp.element.createElement(s.Fragment,null,Object(a.__)("Max Snippet","rank-math"),wp.element.createElement(je,null,Object(a.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(u.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(u.CheckboxControl,{label:wp.element.createElement(s.Fragment,null,Object(a.__)("Max Video Preview","rank-math"),wp.element.createElement(je,null,Object(a.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(u.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(u.CheckboxControl,{label:wp.element.createElement(s.Fragment,null,Object(a.__)("Max Image Preview","rank-math"),wp.element.createElement(je,null,Object(a.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(u.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(a.__)("Large","rank-math")},{value:"standard",label:Object(a.__)("Standard","rank-math")},{value:"none",label:Object(a.__)("None","rank-math")}]})))})),_t=Object(p.compose)(Object(i.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(i.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(u.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(u.ToggleControl,{label:Object(a.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),xt=n(21),jt=Object(u.withFilters)("rankMath.advanced.newsSitemap")((function(){return null})),Ct=function(){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(Tt,null)),wp.element.createElement(jt,null),wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(bt,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(wt,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(u.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(vt,null)),rankMath.frontEndScore&&wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(_t,null)),wp.element.createElement(xt.a.Slot,null,(function(e){return e.length>0?e:[]})))},Nt=n(46),St=n.n(Nt),Dt={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=ge()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",St()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};ge()((function(){Dt.init()}));var It=function(e){"social"===e&&Object(i.dispatch)("rank-math").toggleSnippetEditor(!0)},Mt=function(){return wp.element.createElement(_,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(a.__)("General","rank-math")}),wp.element.createElement("span",null,Object(a.__)("General","rank-math"))),view:ut,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(a.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(a.__)("Advanced","rank-math"))),view:Ct,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(a.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(a.__)("Social","rank-math"))),view:xe,className:"rank-math-social-tab"}),Object(r.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:It},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(s.createElement)(e.view))}));var e};Object(r.addAction)("rank_math_loaded","rank-math",(function(){Object(r.addFilter)("rank_math_app","rank-math",(function(){return Mt}))}))}]);
|
1 |
+
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=72)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(2),i=n.n(a);function r(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,a;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var a=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(a,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():i()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},i.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&r(t.prototype,n),a&&r(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}())},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.compose},,function(e,t,n){var a;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)){if(a.length){var s=i.apply(null,a);s&&e.push(s)}}else if("object"===r)if(a.toString===Object.prototype.toString)for(var o in a)n.call(a,o)&&a[o]&&e.push(o);else e.push(a.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},,,,function(e,t,n){"use strict";var a=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),a.innerHTML=e,e=a.textContent,a.textContent=""),e}},,,,function(e,t,n){"use strict";var a=n(4),i=Object(a.createSlotFill)("RankMathAfterEditor"),r=i.Fill,s=i.Slot,o=function(e){var t=e.children,n=e.className;return wp.element.createElement(r,null,wp.element.createElement(a.PanelRow,{className:n},t))};o.Slot=s,t.a=o},function(e,t,n){"use strict";var a=n(4),i=Object(a.createSlotFill)("RankMathAdvancedTab"),r=i.Fill,s=i.Slot,o=function(e){var t=e.children,n=e.className;return wp.element.createElement(r,null,wp.element.createElement(a.PanelRow,{className:n},t))};o.Slot=s,t.a=o},function(e,t,n){"use strict";var a=n(4),i=Object(a.createSlotFill)("RankMathAfterFocusKeyword"),r=i.Fill,s=i.Slot,o=function(e){var t=e.children,n=e.className;return wp.element.createElement(r,null,wp.element.createElement("div",{className:n},t))};o.Slot=s,t.a=o},,function(e,t,n){"use strict";t.a=function(e){return 100<e?"bad-fk dark":80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,,,function(e,t,n){"use strict";var a=n(3),i=n(24);t.a=Object(a.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(i.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=wp.htmlEntities},,,function(e,t){e.exports=React},,,function(e,t,n){"use strict";function a(e){return function(){return e}}var i=function(){};i.thatReturns=a,i.thatReturnsFalse=a(!1),i.thatReturnsTrue=a(!0),i.thatReturnsNull=a(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var a=n(53),i="object"==typeof self&&self&&self.Object===Object&&self,r=a||i||Function("return this")();e.exports=r},function(e,t,n){var a=n(39).Symbol;e.exports=a},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=o(n(34)),r=o(n(48)),s=o(n(51));function o(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function c(e,t){var n,s,o,p,u,d,h,m,g=[],f={};for(d=0;d<e.length;d++)if("string"!==(u=e[d]).type){if(!t.hasOwnProperty(u.value)||void 0===t[u.value])throw new Error("Invalid interpolation, missing component node: `"+u.value+"`");if("object"!==a(t[u.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+u.value+"`","\n> "+l);if("componentClose"===u.type)throw new Error("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){n=t[u.value],o=d;break}g.push(t[u.value])}else g.push(u.value);return n&&(p=function(e,t){var n,a,i=t[e],r=0;for(a=e+1;a<t.length;a++)if((n=t[a]).value===i.value){if("componentOpen"===n.type){r++;continue}if("componentClose"===n.type){if(0===r)return a;r--}}throw new Error("Missing closing component token `"+i.value+"`")}(o,e),h=c(e.slice(o+1,p),t),s=i.default.cloneElement(n,{},h),g.push(s),p<e.length-1&&(m=c(e.slice(p+1),t),g=g.concat(m))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(f["interpolation-child-"+t]=e)})),(0,r.default)(f))}t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":a(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var r=(0,s.default)(t);try{return c(r,n)}catch(e){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a=(e,t,n,a)=>(e=""+e,t=""+t,a&&(e=e.trim(),t=t.trim()),n?e==t:e.toLowerCase()==t.toLowerCase());function i(e,t){var n,a={};for(n in e)t.indexOf(n)<0&&(a[n]=e[n]);return a}function r(e){var t=document.createElement("div");return e.replace(/\&#?[0-9a-z]+;/gi,(function(e){return t.innerHTML=e,t.innerText}))}function s(e,t){for(t=t||"previous";e=e[t+"Sibling"];)if(3==e.nodeType)return e}function o(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/`|'/g,"'"):e}function l(e){var t=Object.prototype.toString.call(e).split(" ")[1].slice(0,-1);return e===Object(e)&&"Array"!=t&&"Function"!=t&&"RegExp"!=t&&"HTMLUnknownElement"!=t}function c(e,t,n){function a(e,t){for(var n in t)if(t.hasOwnProperty(n)){if(l(t[n])){l(e[n])?a(e[n],t[n]):e[n]=Object.assign({},t[n]);continue}if(Array.isArray(t[n])){e[n]=Object.assign([],t[n]);continue}e[n]=t[n]}}return e instanceof Object||(e={}),a(e,t),n&&a(e,n),e}function p(e){return String.prototype.normalize?"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:e}var u=()=>/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);function d(e){return e&&e.classList&&e.classList.contains(this.settings.classNames.tag)}var h={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,keepInvalidTags:!1,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:()=>{},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tag:"tagify__tag",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",inputInvalid:"tagify__input--invalid",tagX:"tagify__tag__removeBtn",tagText:"tagify__tag-text",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownInital:"tagify__dropdown--initial",scopeLoading:"tagify--loading",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:()=>Promise.resolve(),beforePaste:()=>Promise.resolve(),suggestionClick:()=>Promise.resolve()}};function m(){this.dropdown={};for(let e in this._dropdown)this.dropdown[e]="function"==typeof this._dropdown[e]?this._dropdown[e].bind(this):this._dropdown[e];this.settings.dropdown.enabled>=0&&this.dropdown.init()}var g={init(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector(this.settings.classNames.dropdownWrapperSelector)},show(e){var t,n,i,r=this.settings,s="mix"==r.mode&&!r.enforceWhitelist,o=!r.whitelist||!r.whitelist.length,c="manual"==r.dropdown.position;if(e=void 0===e?this.state.inputText:e,(!o||s||r.templates.dropdownItemNoMatch)&&!1!==r.dropdown.enable&&!this.state.isLoading){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(e),e&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",e),r.templates.dropdownItemNoMatch&&(i=r.templates.dropdownItemNoMatch.call(this,{value:e}))),!i){if(this.suggestedListItems.length)e&&s&&!this.state.editing.scope&&!a(this.suggestedListItems[0].value,e)&&this.suggestedListItems.unshift({value:e});else{if(!e||!s||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:e}]}n=""+(l(t=this.suggestedListItems[0])?t.value:t),r.autoComplete&&n&&0==n.indexOf(e)&&this.input.autocomplete.suggest.call(this,t)}this.dropdown.fill(i),r.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.children[0]),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=e||!0,this.state.dropdown.query=e,this.setStateSelection(),c||setTimeout((()=>{this.dropdown.position(),this.dropdown.render()})),setTimeout((()=>{this.trigger("dropdown:show",this.DOM.dropdown)}))}},hide(e){var t=this.DOM,n=t.scope,a=t.dropdown,i="manual"==this.settings.dropdown.position&&!e;if(a&&document.body.contains(a)&&!i)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),a.parentNode.removeChild(a),setTimeout((()=>{this.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",a),this},toggle(e){this.dropdown[this.state.dropdown.visible&&!e?"hide":"show"]()},render(){var e,t,n=((t=this.DOM.dropdown.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(t),e=t.clientHeight,t.parentNode.removeChild(t),e),a=this.settings;return this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(a.classNames.dropdownInital),this.dropdown.position(n),a.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout((()=>this.DOM.dropdown.classList.remove(a.classNames.dropdownInital)))),this},fill(e){var t;e="string"==typeof e?e:this.dropdown.createListHTML(e||this.suggestedListItems),this.DOM.dropdown.content.innerHTML=(t=e)?t.replace(/\>[\r\n ]+\</g,"><").replace(/(<.*?>)|\s+/g,((e,t)=>t||" ")):""},refilter(e){e=e||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(e),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},position(e){var t=this.settings.dropdown;if("manual"!=t.position){var n,a,i,r,s,o,l=this.DOM.dropdown,c=t.placeAbove,p=document.documentElement.clientHeight,u=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>480?t.position:"all",d=this.DOM["input"==u?"input":"scope"];e=e||l.clientHeight,this.state.dropdown.visible&&("text"==u?(i=(n=this.getCaretGlobalPosition()).bottom,a=n.top,r=n.left,s="auto"):(o=function(e){for(var t=0,n=0;e;)t+=e.offsetLeft||0,n+=e.offsetTop||0,e=e.parentNode;return{left:t,top:n}}(this.settings.dropdown.appendTarget),a=(n=d.getBoundingClientRect()).top-o.top,i=n.bottom-1-o.top,r=n.left-o.left,s=n.width+"px"),a=Math.floor(a),i=Math.ceil(i),c=void 0===c?p-n.bottom<e:c,l.style.cssText="left:"+(r+window.pageXOffset)+"px; width:"+s+";"+(c?"top: "+(a+window.pageYOffset)+"px":"top: "+(i+window.pageYOffset)+"px"),l.setAttribute("placement",c?"top":"bottom"),l.setAttribute("position",u))}},events:{binding(e=!0){var t=this.dropdown.events.callbacks,n=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this),onKeyDown:t.onKeyDown.bind(this),onMouseOver:t.onMouseOver.bind(this),onMouseLeave:t.onMouseLeave.bind(this),onClick:t.onClick.bind(this),onScroll:t.onScroll.bind(this)},a=e?"addEventListener":"removeEventListener";"manual"!=this.settings.dropdown.position&&(window[a]("resize",n.position),window[a]("keydown",n.onKeyDown)),this.DOM.dropdown[a]("mouseover",n.onMouseOver),this.DOM.dropdown[a]("mouseleave",n.onMouseLeave),this.DOM.dropdown[a]("mousedown",n.onClick),this.DOM.dropdown.content[a]("scroll",n.onScroll)},callbacks:{onKeyDown(e){var t=this.DOM.dropdown.querySelector(this.settings.classNames.dropdownItemActiveSelector),n=this.dropdown.getSuggestionDataByNode(t);switch(e.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":var a;e.preventDefault(),t&&(t=t[("ArrowUp"==e.key||"Up"==e.key?"previous":"next")+"ElementSibling"]),t||(a=this.DOM.dropdown.content.children,t=a["ArrowUp"==e.key||"Up"==e.key?a.length-1:0]),n=this.dropdown.getSuggestionDataByNode(t),this.dropdown.highlightOption(t,!0);break;case"Escape":case"Esc":this.dropdown.hide();break;case"ArrowRight":if(this.state.actions.ArrowLeft)return;case"Tab":if("mix"!=this.settings.mode&&t&&!this.settings.autoComplete.rightKey&&!this.state.editing){e.preventDefault();var i=this.dropdown.getMappedValue(n);return this.input.autocomplete.set.call(this,i),!1}return!0;case"Enter":e.preventDefault(),this.settings.hooks.suggestionClick(e,{tagify:this,tagData:n,suggestionElm:t}).then((()=>{if(t)return this.dropdown.selectOption(t);this.dropdown.hide(),"mix"!=this.settings.mode&&this.addTags(this.state.inputText.trim(),!0)})).catch((e=>e));break;case"Backspace":{if("mix"==this.settings.mode||this.state.editing.scope)return;const e=this.input.raw.call(this);""!=e&&8203!=e.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0))}}},onMouseOver(e){var t=e.target.closest(this.settings.classNames.dropdownItemSelector);t&&this.dropdown.highlightOption(t)},onMouseLeave(e){this.dropdown.highlightOption()},onClick(e){if(0==e.button&&e.target!=this.DOM.dropdown&&e.target!=this.DOM.dropdown.content){var t=e.target.closest(this.settings.classNames.dropdownItemSelector),n=this.dropdown.getSuggestionDataByNode(t);this.state.actions.selectOption=!0,setTimeout((()=>this.state.actions.selectOption=!1),50),this.settings.hooks.suggestionClick(e,{tagify:this,tagData:n,suggestionElm:t}).then((()=>{t?this.dropdown.selectOption(t):this.dropdown.hide()})).catch((e=>console.warn(e)))}},onScroll(e){var t=e.target,n=t.scrollTop/(t.scrollHeight-t.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(n)})}}},getSuggestionDataByNode(e){var t=e?+e.getAttribute("tagifySuggestionIdx"):-1;return this.suggestedListItems[t]||null},highlightOption(e,t){var n,a=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(a),this.state.ddItemElm.removeAttribute("aria-selected")),!e)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);n=this.suggestedListItems[this.getNodeIndex(e)],this.state.ddItemData=n,this.state.ddItemElm=e,e.classList.add(a),e.setAttribute("aria-selected",!0),t&&(e.parentNode.scrollTop=e.clientHeight+e.offsetTop-e.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,n),this.dropdown.position())},selectOption(e){var t,n=this.settings.dropdown,a=n.clearOnSelect,i=n.closeOnSelect;if(!e)return t=this.addTags(this.state.inputText,!0),void(i&&this.dropdown.hide());var r=e.getAttribute("tagifySuggestionIdx"),s=this.suggestedListItems[+r];this.trigger("dropdown:select",{data:s,elm:e}),r&&s?(this.state.editing?this.onEditTagDone(null,c({__isValid:!0},this.normalizeTags(s)[0])):t=this["mix"==this.settings.mode?"addMixTags":"addTags"]([s],a),this.DOM.input.parentNode&&(setTimeout((()=>{this.DOM.input.focus(),this.toggleFocusClass(!0),this.placeCaretAfterNode(t)})),i?setTimeout(this.dropdown.hide.bind(this)):this.dropdown.refilter())):this.dropdown.hide()},selectAll(){return this.suggestedListItems.length=0,this.dropdown.hide(),this.addTags(this.dropdown.filterListItems(""),!0),this},filterListItems(e,t){var n,a,i,r,s,o=this.settings,c=o.dropdown,u=(t=t||{},e="select"==o.mode&&this.value.length&&this.value[0][o.tagTextProp]==e?"":e,[]),d=[],h=o.whitelist,m=c.maxItems||1/0,g=c.searchKeys,f=0;if(!e||!g.length)return(o.duplicates?h:h.filter((e=>!this.isTagDuplicate(l(e)?e.value:e)))).slice(0,m);function v(e,t){return t.toLowerCase().split(" ").every((t=>e.includes(t.toLowerCase())))}for(s=c.caseSensitive?""+e:(""+e).toLowerCase();f<h.length;f++){let e,m;n=h[f]instanceof Object?h[f]:{value:h[f]};let b=Object.keys(n).some((e=>g.includes(e)))?g:["value"];c.fuzzySearch&&!t.exact?(i=b.reduce(((e,t)=>e+" "+(n[t]||"")),"").toLowerCase().trim(),c.accentedSearch&&(i=p(i),s=p(s)),e=0==i.indexOf(s),m=i===s,a=v(i,s)):(e=!0,a=b.some((e=>{var a=""+(n[e]||"");return c.accentedSearch&&(a=p(a),s=p(s)),c.caseSensitive||(a=a.toLowerCase()),m=a===s,t.exact?a===s:0==a.indexOf(s)}))),r=!o.duplicates&&this.isTagDuplicate(l(n)?n.value:n),a&&!r&&(m&&e?d.push(n):"startsWith"==c.sortby&&e?u.unshift(n):u.push(n))}return"function"==typeof c.sortby?c.sortby(d.concat(u),s):d.concat(u).slice(0,m)},getMappedValue(e){var t=this.settings.dropdown.mapValueTo;return t?"function"==typeof t?t(e):e[t]||e.value:e.value},createListHTML(e){return c([],e).map(((e,t)=>{"string"!=typeof e&&"number"!=typeof e||(e={value:e});var n=this.dropdown.getMappedValue(e);e.value=n&&"string"==typeof n?o(n):n;var a=this.settings.templates.dropdownItem.apply(this,[e,this]);return a.replace(/\s*tagifySuggestionIdx=(["'])(.*?)\1/gim,"").replace(">",` tagifySuggestionIdx="${t}">`)})).join("")}};const f="@yaireo/tagify/";var v,b={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},w={wrapper:(e,t)=>`<tags class="${t.classNames.namespace} ${t.mode?`${t.classNames[t.mode+"Mode"]}`:""} ${e.className}"\n ${t.readonly?"readonly":""}\n ${t.disabled?"disabled":""}\n ${t.required?"required":""}\n tabIndex="-1">\n <span ${!t.readonly&&t.userInput?"contenteditable":""} tabIndex="0" data-placeholder="${t.placeholder||"​"}" aria-placeholder="${t.placeholder||""}"\n class="${t.classNames.input}"\n role="textbox"\n aria-autocomplete="both"\n aria-multiline="${"mix"==t.mode}"></span>\n ​\n </tags>`,tag(e,t){var n=this.settings;return`<tag title="${e.title||e.value}"\n contenteditable='false'\n spellcheck='false'\n tabIndex="${n.a11y.focusableTags?0:-1}"\n class="${n.classNames.tag} ${e.class||""}"\n ${this.getAttributes(e)}>\n <x title='' class="${n.classNames.tagX}" role='button' aria-label='remove tag'></x>\n <div>\n <span class="${n.classNames.tagText}">${e[n.tagTextProp]||e.value}</span>\n </div>\n </tag>`},dropdown(e){var t=e.dropdown,n="manual"==t.position,a=`${e.classNames.dropdown}`;return`<div class="${n?"":a} ${t.classname}" role="listbox" aria-labelledby="dropdown">\n <div class="${e.classNames.dropdownWrapper}"></div>\n </div>`},dropdownItem(e,t){return`<div ${this.getAttributes(e)}\n class='${this.settings.classNames.dropdownItem} ${e.class?e.class:""}'\n tabindex="0"\n role="option">${e.value}</div>`},dropdownItemNoMatch:null},y={customBinding(){this.customEventsList.forEach((e=>{this.on(e,this.settings.callbacks[e])}))},binding(e=!0){var t,n=this.events.callbacks,a=e?"addEventListener":"removeEventListener";if(!this.state.mainEvents||!e){for(var i in this.state.mainEvents=e,e&&!this.listeners.main&&(this.events.bindGlobal.call(this),this.settings.isJQueryPlugin&&jQuery(this.DOM.originalInput).on("tagify.removeAllTags",this.removeAllTags.bind(this))),t=this.listeners.main=this.listeners.main||{focus:["input",n.onFocusBlur.bind(this)],keydown:["input",n.onKeydown.bind(this)],click:["scope",n.onClickScope.bind(this)],dblclick:["scope",n.onDoubleClickScope.bind(this)],paste:["input",n.onPaste.bind(this)],drop:["input",n.onDrop.bind(this)]})this.DOM[t[i][0]][a](i,t[i][1]);clearInterval(this.listeners.main.originalInputValueObserverInterval),this.listeners.main.originalInputValueObserverInterval=setInterval(n.observeOriginalInputValue.bind(this),500);var r=this.listeners.main.inputMutationObserver||new MutationObserver(n.onInputDOMChange.bind(this));r&&r.disconnect(),"mix"==this.settings.mode&&r.observe(this.DOM.input,{childList:!0})}},bindGlobal(e){var t,n=this.events.callbacks,a=e?"removeEventListener":"addEventListener";if(e||!this.listeners.global)for(t of(this.listeners.global=this.listeners&&this.listeners.global||[{type:this.isIE?"keydown":"input",target:this.DOM.input,cb:n[this.isIE?"onInputIE":"onInput"].bind(this)},{type:"keydown",target:window,cb:n.onWindowKeyDown.bind(this)},{type:"blur",target:this.DOM.input,cb:n.onFocusBlur.bind(this)}],this.listeners.global))t.target[a](t.type,t.cb)},unbindGlobal(){this.events.bindGlobal.call(this,!0)},callbacks:{onFocusBlur(e){var t=e.target?this.trim(e.target.textContent):"",n=this.settings,a=e.type,i=n.dropdown.enabled>=0,r={relatedTarget:e.relatedTarget},s=this.state.actions.selectOption&&(i||!n.dropdown.closeOnSelect),o=this.state.actions.addNew&&i,l=e.relatedTarget&&d.call(this,e.relatedTarget)&&this.DOM.scope.contains(e.relatedTarget);if("blur"==a){if(e.relatedTarget===this.DOM.scope)return this.dropdown.hide(),void this.DOM.input.focus();this.postUpdate(),this.triggerChangeEvent()}if(!s&&!o)if(this.state.hasFocus="focus"==a&&+new Date,this.toggleFocusClass(this.state.hasFocus),"mix"!=n.mode){if("focus"==a)return this.trigger("focus",r),void(0!==n.dropdown.enabled&&n.userInput||this.dropdown.show(this.value.length?"":void 0));"blur"==a&&(this.trigger("blur",r),this.loading(!1),"select"==this.settings.mode&&l&&(t=""),("select"==this.settings.mode&&t?!this.value.length||this.value[0].value!=t:t&&!this.state.actions.selectOption&&n.addTagOnBlur)&&this.addTags(t,!0),"select"!=this.settings.mode||t||this.removeTags()),this.DOM.input.removeAttribute("style"),this.dropdown.hide()}else"focus"==a?this.trigger("focus",r):"blur"==e.type&&(this.trigger("blur",r),this.loading(!1),this.dropdown.hide(),this.state.dropdown.visible=void 0,this.setStateSelection())},onWindowKeyDown(e){var t,n=document.activeElement;if(d.call(this,n)&&this.DOM.scope.contains(document.activeElement))switch(t=n.nextElementSibling,e.key){case"Backspace":this.removeTags(n),(t||this.DOM.input).focus();break;case"Enter":setTimeout(this.editTag.bind(this),0,n)}},onKeydown(e){var t=this.settings;"select"==t.mode&&t.enforceWhitelist&&this.value.length&&"Tab"!=e.key&&e.preventDefault();var n=this.trim(e.target.textContent);if(this.trigger("keydown",{originalEvent:this.cloneEvent(e)}),"mix"==t.mode){switch(e.key){case"Left":case"ArrowLeft":this.state.actions.ArrowLeft=!0;break;case"Delete":case"Backspace":if(this.state.editing)return;var a,i,o,l=document.getSelection(),c="Delete"==e.key&&l.anchorOffset==(l.anchorNode.length||0),p=l.anchorNode.previousSibling,h=1==l.anchorNode.nodeType||!l.anchorOffset&&p&&1==p.nodeType&&l.anchorNode.previousSibling,m=r(this.DOM.input.innerHTML),g=this.getTagElms();if("edit"==t.backspace&&h)return a=1==l.anchorNode.nodeType?null:l.anchorNode.previousElementSibling,setTimeout(this.editTag.bind(this),0,a),void e.preventDefault();if(u()&&h)return o=s(h),h.hasAttribute("readonly")||h.remove(),this.DOM.input.focus(),void setTimeout((()=>{this.placeCaretAfterNode(o),this.DOM.input.click()}));if("BR"==l.anchorNode.nodeName)return;if((c||h)&&1==l.anchorNode.nodeType?i=0==l.anchorOffset?c?g[0]:null:g[l.anchorOffset-1]:c?i=l.anchorNode.nextElementSibling:h&&(i=h),3==l.anchorNode.nodeType&&!l.anchorNode.nodeValue&&l.anchorNode.previousElementSibling&&e.preventDefault(),(h||c)&&!t.backspace)return void e.preventDefault();if("Range"!=l.type&&!l.anchorOffset&&l.anchorNode==this.DOM.input&&"Delete"!=e.key)return void e.preventDefault();if("Range"!=l.type&&i&&i.hasAttribute("readonly"))return void this.placeCaretAfterNode(s(i));clearTimeout(v),v=setTimeout((()=>{var e=document.getSelection(),t=r(this.DOM.input.innerHTML),n=!c&&e.anchorNode.previousSibling;if(t.length>=m.length&&n)if(d.call(this,n)&&!n.hasAttribute("readonly")){if(this.removeTags(n),this.fixFirefoxLastTagNoCaret(),2==this.DOM.input.children.length&&"BR"==this.DOM.input.children[1].tagName)return this.DOM.input.innerHTML="",this.value.length=0,!0}else n.remove();this.value=[].map.call(g,((e,t)=>{var n=this.tagData(e);if(e.parentNode||n.readonly)return n;this.trigger("remove",{tag:e,index:t,data:n})})).filter((e=>e))}),20)}return!0}switch(e.key){case"Backspace":"select"==t.mode&&t.enforceWhitelist&&this.value.length?this.removeTags():this.state.dropdown.visible&&"manual"!=t.dropdown.position||""!=e.target.textContent&&8203!=n.charCodeAt(0)||(!0===t.backspace?this.removeTags():"edit"==t.backspace&&setTimeout(this.editTag.bind(this),0));break;case"Esc":case"Escape":if(this.state.dropdown.visible)return;e.target.blur();break;case"Down":case"ArrowDown":this.state.dropdown.visible||this.dropdown.show();break;case"ArrowRight":{let e=this.state.inputSuggestion||this.state.ddItemData;if(e&&t.autoComplete.rightKey)return void this.addTags([e],!0);break}case"Tab":{let a="select"==t.mode;if(!n||a)return!0;e.preventDefault()}case"Enter":if(this.state.dropdown.visible||229==e.keyCode)return;e.preventDefault(),setTimeout((()=>{this.state.actions.selectOption||this.addTags(n,!0)}))}},onInput(e){if(this.postUpdate(),"mix"==this.settings.mode)return this.events.callbacks.onMixTagsInput.call(this,e);var t=this.input.normalize.call(this),n=t.length>=this.settings.dropdown.enabled,a={value:t,inputElm:this.DOM.input};a.isValid=this.validateTag({value:t}),this.state.inputText!=t&&(this.input.set.call(this,t,!1),-1!=t.search(this.settings.delimiters)?this.addTags(t)&&this.input.set.call(this):this.settings.dropdown.enabled>=0&&this.dropdown[n?"show":"hide"](t),this.trigger("input",a))},onMixTagsInput(e){var t,n,a,i,r,s,o,l,p=this.settings,d=this.value.length,h=this.getTagElms(),m=document.createDocumentFragment(),g=window.getSelection().getRangeAt(0),f=[].map.call(h,(e=>this.tagData(e).value));if("deleteContentBackward"==e.inputType&&u()&&this.events.callbacks.onKeydown.call(this,{target:e.target,key:"Backspace"}),this.value.slice().forEach((e=>{e.readonly&&!f.includes(e.value)&&m.appendChild(this.createTagElem(e))})),m.childNodes.length&&(g.insertNode(m),this.setRangeAtStartEnd(!1,m.lastChild)),h.length!=d)return this.value=[].map.call(this.getTagElms(),(e=>this.tagData(e))),void this.update({withoutChangeEvent:!0});if(this.hasMaxTags())return!0;if(window.getSelection&&(s=window.getSelection()).rangeCount>0&&3==s.anchorNode.nodeType){if((g=s.getRangeAt(0).cloneRange()).collapse(!0),g.setStart(s.focusNode,0),a=(t=g.toString().slice(0,g.endOffset)).split(p.pattern).length-1,(n=t.match(p.pattern))&&(i=t.slice(t.lastIndexOf(n[n.length-1]))),i){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:i.match(p.pattern)[0],value:i.replace(p.pattern,"")},this.state.tag.baseOffset=s.baseOffset-this.state.tag.value.length,l=this.state.tag.value.match(p.delimiters))return this.state.tag.value=this.state.tag.value.replace(p.delimiters,""),this.state.tag.delimiters=l[0],this.addTags(this.state.tag.value,p.dropdown.clearOnSelect),void this.dropdown.hide();r=this.state.tag.value.length>=p.dropdown.enabled;try{o=(o=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&o.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(e){}(o||a<this.state.mixMode.matchedPatternCount)&&(r=!1)}else this.state.flaggedTags={};this.state.mixMode.matchedPatternCount=a}setTimeout((()=>{this.update({withoutChangeEvent:!0}),this.trigger("input",c({},this.state.tag,{textContent:this.DOM.input.textContent})),this.state.tag&&this.dropdown[r?"show":"hide"](this.state.tag.value)}),10)},onInputIE(e){var t=this;setTimeout((function(){t.events.callbacks.onInput.call(t,e)}))},observeOriginalInputValue(){this.DOM.originalInput.value!=this.DOM.originalInput.tagifyValue&&this.loadOriginalValues()},onClickScope(e){var t=this.settings,n=e.target.closest("."+t.classNames.tag),a=+new Date-this.state.hasFocus;if(e.target!=this.DOM.scope){if(!e.target.classList.contains(t.classNames.tagX))return n?(this.trigger("click",{tag:n,index:this.getNodeIndex(n),data:this.tagData(n),originalEvent:this.cloneEvent(e)}),void(1!==t.editTags&&1!==t.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,e))):void(e.target==this.DOM.input&&("mix"==t.mode&&this.fixFirefoxLastTagNoCaret(),a>500)?this.state.dropdown.visible?this.dropdown.hide():0===t.dropdown.enabled&&"mix"!=t.mode&&this.dropdown.show(this.value.length?"":void 0):"select"==t.mode&&!this.state.dropdown.visible&&this.dropdown.show());this.removeTags(e.target.parentNode)}else this.state.hasFocus||this.DOM.input.focus()},onPaste(e){e.preventDefault();var t,n,a=this.settings;if("select"==a.mode&&a.enforceWhitelist||!a.userInput)return!1;a.readonly||(t=e.clipboardData||window.clipboardData,n=t.getData("Text"),a.hooks.beforePaste(e,{tagify:this,pastedText:n,clipboardData:t}).then((t=>{void 0===t&&(t=n),t&&(this.injectAtCaret(t,window.getSelection().getRangeAt(0)),"mix"==this.settings.mode?this.events.callbacks.onMixTagsInput.call(this,e):this.settings.pasteAsTags?this.addTags(this.state.inputText+t,!0):this.state.inputText=t)})).catch((e=>e)))},onDrop(e){e.preventDefault()},onEditTagInput(e,t){var n=e.closest("."+this.settings.classNames.tag),a=this.getNodeIndex(n),i=this.tagData(n),r=this.input.normalize.call(this,e),s=n.innerHTML!=n.__tagifyTagData.__originalHTML,o=this.validateTag({[this.settings.tagTextProp]:r});s||!0!==e.originalIsValid||(o=!0),n.classList.toggle(this.settings.classNames.tagInvalid,!0!==o),i.__isValid=o,n.title=!0===o?i.title||i.value:o,r.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=r),this.dropdown.show(r)),this.trigger("edit:input",{tag:n,index:a,data:c({},this.value[a],{newValue:r}),originalEvent:this.cloneEvent(t)})},onEditTagFocus(e){this.state.editing={scope:e,input:e.querySelector("[contenteditable]")}},onEditTagBlur(e){if(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(e)){var t,n,a=this.settings,i=e.closest("."+a.classNames.tag),r=this.input.normalize.call(this,e),s=this.tagData(i).__originalData,o=i.innerHTML!=i.__tagifyTagData.__originalHTML,l=this.validateTag({[a.tagTextProp]:r});if(r)if(o){if(t=this.hasMaxTags(),n=this.getWhitelistItem(r)||c({},s,{[a.tagTextProp]:r,value:r,__isValid:l}),a.transformTag.call(this,n,s),!0!==(l=!t&&this.validateTag({[a.tagTextProp]:n[a.tagTextProp]}))){if(this.trigger("invalid",{data:n,tag:i,message:l}),a.editTags.keepInvalid)return;a.keepInvalidTags?n.__isValid=l:n=s}else a.keepInvalidTags&&(delete n.title,delete n["aria-invalid"],delete n.class);this.onEditTagDone(i,n)}else this.onEditTagDone(i,s);else this.onEditTagDone(i)}},onEditTagkeydown(e,t){switch(this.trigger("edit:keydown",{originalEvent:this.cloneEvent(e)}),e.key){case"Esc":case"Escape":t.innerHTML=t.__tagifyTagData.__originalHTML;case"Enter":case"Tab":e.preventDefault(),e.target.blur()}},onDoubleClickScope(e){var t,n,a=e.target.closest("."+this.settings.classNames.tag),i=this.settings;a&&i.userInput&&(t=a.classList.contains(this.settings.classNames.tagEditing),n=a.hasAttribute("readonly"),"select"==i.mode||i.readonly||t||n||!this.settings.editTags||this.editTag(a),this.toggleFocusClass(!0),this.trigger("dblclick",{tag:a,index:this.getNodeIndex(a),data:this.tagData(a)}))},onInputDOMChange(e){e.forEach((e=>{e.addedNodes.forEach((e=>{if(e)if("<div><br></div>"==e.outerHTML)e.replaceWith(document.createElement("br"));else if(1==e.nodeType&&e.querySelector(this.settings.classNames.tagSelector)){let t=document.createTextNode("");3==e.childNodes[0].nodeType&&"BR"!=e.previousSibling.nodeName&&(t=document.createTextNode("\n")),e.replaceWith(t,...[...e.childNodes].slice(0,-1)),this.placeCaretAfterNode(t.previousSibling)}else d.call(this,e)&&e.previousSibling&&"BR"==e.previousSibling.nodeName&&(e.previousSibling.replaceWith("\n"),this.placeCaretAfterNode(e.previousSibling.previousSibling))})),e.removedNodes.forEach((e=>{e&&"BR"==e.nodeName&&d.call(this,t)&&(this.removeTags(t),this.fixFirefoxLastTagNoCaret())}))}));var t=this.DOM.input.lastChild;t&&""==t.nodeValue&&t.remove(),t&&"BR"==t.nodeName||this.DOM.input.appendChild(document.createElement("br"))}}};function k(e,t){return e?e.previousElementSibling&&e.previousElementSibling.classList.contains("tagify")?(console.warn("Tagify: ","input element is already Tagified",e),this):(c(this,function(e){var t=document.createTextNode("");function n(e,n,a){a&&n.split(/\s+/g).forEach((n=>t[e+"EventListener"].call(t,n,a)))}return{off(e,t){return n("remove",e,t),this},on(e,t){return t&&"function"==typeof t&&n("add",e,t),this},trigger(n,a,i){var r;if(i=i||{cloneData:!0},n)if(e.settings.isJQueryPlugin)"remove"==n&&(n="removeTag"),jQuery(e.DOM.originalInput).triggerHandler(n,[a]);else{try{var s="object"==typeof a?a:{value:a};if((s=i.cloneData?c({},s):s).tagify=this,a instanceof Object)for(var o in a)a[o]instanceof HTMLElement&&(s[o]=a[o]);r=new CustomEvent(n,{detail:s})}catch(e){console.warn(e)}t.dispatchEvent(r)}}}}(this)),this.isFirefox="undefined"!=typeof InstallTrigger,this.isIE=window.document.documentMode,t=t||{},this.getPersistedData=(n=t.id,e=>{let t,a="/"+e;if(1==localStorage.getItem(f+n+"/v",1))try{t=JSON.parse(localStorage[f+n+a])}catch(e){}return t}),this.setPersistedData=(e=>e?(localStorage.setItem(f+e+"/v",1),(t,n)=>{let a="/"+n,i=JSON.stringify(t);t&&n&&(localStorage.setItem(f+e+a,i),dispatchEvent(new Event("storage")))}):()=>{})(t.id),this.clearPersistedData=(e=>t=>{const n=f+"/"+e+"/";if(t)localStorage.removeItem(n+t);else for(let e in localStorage)e.includes(n)&&localStorage.removeItem(e)})(t.id),this.applySettings(e,t),this.state={inputText:"",editing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(e),m.call(this),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),void(e.autofocus&&this.DOM.input.focus())):(console.warn("Tagify: ","input element not found",e),this);var n}return k.prototype={_dropdown:g,customEventsList:["change","add","remove","invalid","input","click","keydown","focus","blur","edit:input","edit:beforeUpdate","edit:updated","edit:start","edit:keydown","dropdown:show","dropdown:hide","dropdown:select","dropdown:updated","dropdown:noMatch","dropdown:scroll"],dataProps:["__isValid","__removed","__originalData","__originalHTML","__tagId"],trim(e){return this.settings.trim&&e&&"string"==typeof e?e.trim():e},parseHTML:function(e){return(new DOMParser).parseFromString(e.trim(),"text/html").body.firstElementChild},templates:w,parseTemplate(e,t){return e=this.settings.templates[e]||e,this.parseHTML(e.apply(this,t))},set whitelist(e){const t=e&&Array.isArray(e);this.settings.whitelist=t?e:[],this.setPersistedData(t?e:[],"whitelist")},get whitelist(){return this.settings.whitelist},applySettings(e,n){h.templates=this.templates;var a=this.settings=c({},h,n);a.disabled=e.hasAttribute("disabled"),a.readonly=e.hasAttribute("readonly"),a.placeholder=e.getAttribute("placeholder")||a.placeholder||"",a.required=e.hasAttribute("required");for(let e in a.classNames)Object.defineProperty(a.classNames,e+"Selector",{get(){return"."+this[e].split(" ")[0]}});if(this.isIE&&(a.autoComplete=!1),["whitelist","blacklist"].forEach((t=>{var n=e.getAttribute("data-"+t);n&&(n=n.split(a.delimiters))instanceof Array&&(a[t]=n)})),"autoComplete"in n&&!l(n.autoComplete)&&(a.autoComplete=h.autoComplete,a.autoComplete.enabled=n.autoComplete),"mix"==a.mode&&(a.autoComplete.rightKey=!0,a.delimiters=n.delimiters||null,a.tagTextProp&&!a.dropdown.searchKeys.includes(a.tagTextProp)&&a.dropdown.searchKeys.push(a.tagTextProp)),e.pattern)try{a.pattern=new RegExp(e.pattern)}catch(e){}if(this.settings.delimiters)try{a.delimiters=new RegExp(this.settings.delimiters,"g")}catch(e){}a.disabled&&(a.userInput=!1),this.TEXTS=t(t({},b),a.texts||{}),"select"!=a.mode&&a.userInput||(a.dropdown.enabled=0),a.dropdown.appendTarget=n.dropdown&&n.dropdown.appendTarget?n.dropdown.appendTarget:document.body;let i=this.getPersistedData("whitelist");Array.isArray(i)&&(this.whitelist=Array.isArray(a.whitelist)?function(){const e=[],t={};for(let n of arguments)for(let a of n)l(a)?t[a.value]||(e.push(a),t[a.value]=1):e.includes(a)||e.push(a);return e}(a.whitelist,i):i)},getAttributes(e){var t,n=this.getCustomAttributes(e),a="";for(t in n)a+=" "+t+(void 0!==e[t]?`="${n[t]}"`:"");return a},getCustomAttributes(e){if(!l(e))return"";var t,n={};for(t in e)"__"!=t.slice(0,2)&&"class"!=t&&e.hasOwnProperty(t)&&void 0!==e[t]&&(n[t]=o(e[t]));return n},setStateSelection(){var e=window.getSelection(),t={anchorOffset:e.anchorOffset,anchorNode:e.anchorNode,range:e.getRangeAt&&e.rangeCount&&e.getRangeAt(0)};return this.state.selection=t,t},getCaretGlobalPosition(){const e=document.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),n=t.startContainer,a=t.startOffset;let i,r;if(a>0)return r=document.createRange(),r.setStart(n,a-1),r.setEnd(n,a),i=r.getBoundingClientRect(),{left:i.right,top:i.top,bottom:i.bottom};if(n.getBoundingClientRect)return n.getBoundingClientRect()}return{left:-9999,top:-9999}},getCSSVars(){var e,t=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:(({value:e,unit:t})=>"s"==t?1e3*e:e)(function(e){if(!e)return{};var t=(e=e.trim().split(" ")[0]).split(/\d+/g).filter((e=>e)).pop().trim();return{value:+e.split(t).filter((e=>e))[0].trim(),unit:t}}((e="tag-hide-transition",t.getPropertyValue("--"+e))))}},build(e){var t=this.DOM;this.settings.mixMode.integrated?(t.originalInput=null,t.scope=e,t.input=e):(t.originalInput=e,t.scope=this.parseTemplate("wrapper",[e,this.settings]),t.input=t.scope.querySelector(this.settings.classNames.inputSelector),e.parentNode.insertBefore(t.scope,e))},destroy(){this.events.unbindGlobal.call(this),this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.dropdown.hide(!0),clearTimeout(this.dropdownHide__bindEventsTimeout)},loadOriginalValues(e){var t,n=this.settings;if(void 0===e){const t=this.getPersistedData("value");e=t&&!this.DOM.originalInput.value?t:n.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value}if(this.removeAllTags({withoutChangeEvent:!0}),e)if("mix"==n.mode)this.parseMixTags(e.trim()),(t=this.DOM.input.lastChild)&&"BR"==t.tagName||this.DOM.input.insertAdjacentHTML("beforeend","<br>");else{try{JSON.parse(e)instanceof Array&&(e=JSON.parse(e))}catch(e){}this.addTags(e).forEach((e=>e&&e.classList.add(n.classNames.tagNoAnimation)))}else this.postUpdate();this.state.lastOriginalValueReported=n.mixMode.integrated?"":this.DOM.originalInput.value,this.state.loadedOriginalValues=!0},cloneEvent(e){var t={};for(var n in e)t[n]=e[n];return t},loading(e){return this.state.isLoading=e,this.DOM.scope.classList[e?"add":"remove"](this.settings.classNames.scopeLoading),this},tagLoading(e,t){return e&&e.classList[t?"add":"remove"](this.settings.classNames.tagLoading),this},toggleClass(e,t){"string"==typeof e&&this.DOM.scope.classList.toggle(e,t)},toggleFocusClass(e){this.toggleClass(this.settings.classNames.focus,!!e)},triggerChangeEvent:function(){if(!this.settings.mixMode.integrated){var e=this.DOM.originalInput,t=this.state.lastOriginalValueReported!==e.value,n=new CustomEvent("change",{bubbles:!0});t&&(this.state.lastOriginalValueReported=e.value,n.simulated=!0,e._valueTracker&&e._valueTracker.setValue(Math.random()),e.dispatchEvent(n),this.trigger("change",this.state.lastOriginalValueReported),e.value=this.state.lastOriginalValueReported)}},events:y,fixFirefoxLastTagNoCaret(){},placeCaretAfterNode(e){if(e&&e.parentNode){var t=e.nextSibling,n=window.getSelection(),a=n.getRangeAt(0);n.rangeCount&&(a.setStartAfter(t||e),a.collapse(!0),n.removeAllRanges(),n.addRange(a))}},insertAfterTag(e,t){if(t=t||this.settings.mixMode.insertAfterTag,e&&e.parentNode&&t)return t="string"==typeof t?document.createTextNode(t):t,e.parentNode.insertBefore(t,e.nextSibling),t},editTag(e,t){e=e||this.getLastTag(),t=t||{},this.dropdown.hide();var n=this.settings;function a(){return e.querySelector(n.classNames.tagTextSelector)}var i=a(),r=this.getNodeIndex(e),s=this.tagData(e),o=this.events.callbacks,l=this,p=!0;if(i){if(!(s instanceof Object&&"editable"in s)||s.editable)return i.setAttribute("contenteditable",!0),e.classList.add(n.classNames.tagEditing),this.tagData(e,{__originalData:c({},s),__originalHTML:e.innerHTML}),i.addEventListener("focus",o.onEditTagFocus.bind(this,e)),i.addEventListener("blur",(function(){setTimeout((()=>o.onEditTagBlur.call(l,a())))})),i.addEventListener("input",o.onEditTagInput.bind(this,i)),i.addEventListener("keydown",(t=>o.onEditTagkeydown.call(this,t,e))),i.focus(),this.setRangeAtStartEnd(!1,i),t.skipValidation||(p=this.editTagToggleValidity(e)),i.originalIsValid=p,this.trigger("edit:start",{tag:e,index:r,data:s,isValid:p}),this}else console.warn("Cannot find element in Tag template: .",n.classNames.tagTextSelector)},editTagToggleValidity(e,t){var n;if(t=t||this.tagData(e))return(n=!("__isValid"in t)||!0===t.__isValid)||this.removeTagsFromValue(e),this.update(),e.classList.toggle(this.settings.classNames.tagNotAllowed,!n),t.__isValid;console.warn("tag has no data: ",e,t)},onEditTagDone(e,t){t=t||{};var n={tag:e=e||this.state.editing.scope,index:this.getNodeIndex(e),previousData:this.tagData(e),data:t};this.trigger("edit:beforeUpdate",n,{cloneData:!1}),this.state.editing=!1,delete t.__originalData,delete t.__originalHTML,e&&t[this.settings.tagTextProp]?(e=this.replaceTag(e,t),this.editTagToggleValidity(e,t),this.settings.a11y.focusableTags&&e.focus()):e&&this.removeTags(e),this.trigger("edit:updated",n),this.dropdown.hide(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag(e,t){t&&t.value||(t=e.__tagifyTagData),t.__isValid&&1!=t.__isValid&&c(t,this.getInvalidTagAttrs(t,t.__isValid));var n=this.createTagElem(t);return e.parentNode.replaceChild(n,e),this.updateValueByDOMTags(),n},updateValueByDOMTags(){this.value.length=0,[].forEach.call(this.getTagElms(),(e=>{e.classList.contains(this.settings.classNames.tagNotAllowed.split(" ")[0])||this.value.push(this.tagData(e))})),this.update()},setRangeAtStartEnd(e,t){e="number"==typeof e?e:!!e,t=(t=t||this.DOM.input).lastChild||t;var n=document.getSelection();try{n.rangeCount>=1&&["Start","End"].forEach((a=>n.getRangeAt(0)["set"+a](t,e||t.length)))}catch(e){}},injectAtCaret(e,t){if(t=t||this.state.selection.range)return"string"==typeof e&&(e=document.createTextNode(e)),t.deleteContents(),t.insertNode(e),this.setRangeAtStartEnd(!1,e),this.updateValueByDOMTags(),this.update(),this},input:{set(e="",t=!0){var n=this.settings.dropdown.closeOnSelect;this.state.inputText=e,t&&(this.DOM.input.innerHTML=o(""+e)),!e&&n&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},raw(){return this.DOM.input.textContent},validate(){var e=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!e),e},normalize(e){var t=e||this.DOM.input,n=[];t.childNodes.forEach((e=>3==e.nodeType&&n.push(e.nodeValue))),n=n.join("\n");try{n=n.replace(/(?:\r\n|\r|\n)/g,this.settings.delimiters.source.charAt(0))}catch(e){}return n=n.replace(/\s/g," "),this.settings.trim&&(n=n.replace(/^\s+/,"")),n},autocomplete:{suggest(e){if(this.settings.autoComplete.enabled){"string"==typeof(e=e||{})&&(e={value:e});var t=e.value?""+e.value:"",n=t.substr(0,this.state.inputText.length).toLowerCase(),a=t.substring(this.state.inputText.length);t&&this.state.inputText&&n==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute("data-suggest",a),this.state.inputSuggestion=e):(this.DOM.input.removeAttribute("data-suggest"),delete this.state.inputSuggestion)}},set(e){var t=this.DOM.input.getAttribute("data-suggest"),n=e||(t?this.state.inputText+t:null);return!!n&&("mix"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+n)):(this.input.set.call(this,n),this.setRangeAtStartEnd()),this.input.autocomplete.suggest.call(this),this.dropdown.hide(),!0)}}},getTagIdx(e){return this.value.findIndex((t=>t.__tagId==(e||{}).__tagId))},getNodeIndex(e){var t=0;if(e)for(;e=e.previousElementSibling;)t++;return t},getTagElms(...e){var t="."+[...this.settings.classNames.tag.split(" "),...e].join(".");return[].slice.call(this.DOM.scope.querySelectorAll(t))},getLastTag(){var e=this.DOM.scope.querySelectorAll(`${this.settings.classNames.tagSelector}:not(.${this.settings.classNames.tagHide}):not([readonly])`);return e[e.length-1]},tagData:(e,t,n)=>e?(t&&(e.__tagifyTagData=n?t:c({},e.__tagifyTagData||{},t)),e.__tagifyTagData):(console.warn("tag elment doesn't exist",e,t),t),isTagDuplicate(e,t){var n=this.settings;return"select"!=n.mode&&this.value.reduce(((i,r)=>a(this.trim(""+e),r.value,t||n.dropdown.caseSensitive)?i+1:i),0)},getTagIndexByValue(e){var t=[];return this.getTagElms().forEach(((n,i)=>{a(this.trim(n.textContent),e,this.settings.dropdown.caseSensitive)&&t.push(i)})),t},getTagElmByValue(e){var t=this.getTagIndexByValue(e)[0];return this.getTagElms()[t]},flashTag(e){e&&(e.classList.add(this.settings.classNames.tagFlash),setTimeout((()=>{e.classList.remove(this.settings.classNames.tagFlash)}),100))},isTagBlacklisted(e){return e=this.trim(e.toLowerCase()),this.settings.blacklist.filter((t=>(""+t).toLowerCase()==e)).length},isTagWhitelisted(e){return!!this.getWhitelistItem(e)},getWhitelistItem(e,t,n){t=t||"value";var i,r=this.settings;return(n=n||r.whitelist).some((n=>{var s="string"==typeof n?n:n[t]||n.value;if(a(s,e,r.dropdown.caseSensitive,r.trim))return i="string"==typeof n?{value:n}:n,!0})),i||"value"!=t||"value"==r.tagTextProp||(i=this.getWhitelistItem(e,r.tagTextProp,n)),i},validateTag(e){var t=this.settings,n="value"in e?"value":t.tagTextProp,a=this.trim(e[n]+"");return(e[n]+"").trim()?t.pattern&&t.pattern instanceof RegExp&&!t.pattern.test(a)?this.TEXTS.pattern:!t.duplicates&&this.isTagDuplicate(a,this.state.editing)?this.TEXTS.duplicate:this.isTagBlacklisted(a)||t.enforceWhitelist&&!this.isTagWhitelisted(a)?this.TEXTS.notAllowed:!t.validate||t.validate(e):this.TEXTS.empty},getInvalidTagAttrs(e,t){return{"aria-invalid":!0,class:`${e.class||""} ${this.settings.classNames.tagNotAllowed}`.trim(),title:t}},hasMaxTags(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly(e,t){var n=this.settings;document.activeElement.blur(),n[t||"readonly"]=e,this.DOM.scope[(e?"set":"remove")+"Attribute"](t||"readonly",!0),"mix"==n.mode&&this.setContentEditable(!e)},setContentEditable(e){!this.settings.readonly&&this.settings.userInput&&(this.DOM.input.contentEditable=e)},setDisabled(e){this.setReadonly(e,"disabled")},normalizeTags(e){var t=this.settings,n=t.whitelist,a=t.delimiters,i=t.mode,r=t.tagTextProp;t.enforceWhitelist;var s=[],o=!!n&&n[0]instanceof Object,l=e instanceof Array,c=e=>(e+"").split(a).filter((e=>e)).map((e=>({[r]:this.trim(e),value:this.trim(e)})));if("number"==typeof e&&(e=e.toString()),"string"==typeof e){if(!e.trim())return[];e=c(e)}else l&&(e=[].concat(...e.map((e=>e.value?e:c(e)))));return o&&(e.forEach((e=>{var t=s.map((e=>e.value)),n=this.dropdown.filterListItems.call(this,e[r],{exact:!0});this.settings.duplicates||(n=n.filter((e=>!t.includes(e.value))));var a=n.length>1?this.getWhitelistItem(e[r],r,n):n[0];a&&a instanceof Object?s.push(a):"mix"!=i&&(null==e.value&&(e.value=e[r]),s.push(e))})),s.length&&(e=s)),e},parseMixTags(e){var t=this.settings,n=t.mixTagsInterpolator,a=t.duplicates,i=t.transformTag,r=t.enforceWhitelist,s=t.maxTags,o=t.tagTextProp,l=[];return e=e.split(n[0]).map(((e,t)=>{var c,p,u,d=e.split(n[1]),h=d[0],m=l.length==s;try{if(h==+h)throw Error;p=JSON.parse(h)}catch(e){p=this.normalizeTags(h)[0]||{value:h}}if(i.call(this,p),m||!(d.length>1)||r&&!this.isTagWhitelisted(p.value)||!a&&this.isTagDuplicate(p.value)){if(e)return t?n[0]+e:e}else p[c=p[o]?o:"value"]=this.trim(p[c]),u=this.createTagElem(p),l.push(p),u.classList.add(this.settings.classNames.tagNoAnimation),d[0]=u.outerHTML,this.value.push(p);return d.join("")})).join(""),this.DOM.input.innerHTML=e,this.DOM.input.appendChild(document.createTextNode("")),this.DOM.input.normalize(),this.getTagElms().forEach(((e,t)=>this.tagData(e,l[t]))),this.update({withoutChangeEvent:!0}),e},replaceTextWithNode(e,t){if(this.state.tag||t){t=t||this.state.tag.prefix+this.state.tag.value;var n,a,i=window.getSelection(),r=i.anchorNode,s=this.state.tag.delimiters?this.state.tag.delimiters.length:0;return r.splitText(i.anchorOffset-s),-1==(n=r.nodeValue.lastIndexOf(t))||(a=r.splitText(n),e&&r.parentNode.replaceChild(e,a)),!0}},selectTag(e,t){var n=this.settings;if(!n.enforceWhitelist||this.isTagWhitelisted(t.value)){this.input.set.call(this,t[n.tagTextProp]||t.value,!0),this.state.actions.selectOption&&setTimeout(this.setRangeAtStartEnd.bind(this));var a=this.getLastTag();return a?this.replaceTag(a,t):this.appendTag(e),n.enforceWhitelist&&this.setContentEditable(!1),this.value[0]=t,this.update(),this.trigger("add",{tag:e,data:t}),[e]}},addEmptyTag(e){var t=c({value:""},e||{}),n=this.createTagElem(t);this.tagData(n,t),this.appendTag(n),this.editTag(n,{skipValidation:!0})},addTags(e,t,n){var a=[],i=this.settings,r=document.createDocumentFragment();return n=n||i.skipInvalid,e&&0!=e.length?(e=this.normalizeTags(e),"mix"==i.mode?this.addMixTags(e):("select"==i.mode&&(t=!1),this.DOM.input.removeAttribute("style"),e.forEach((e=>{var t,s={},o=Object.assign({},e,{value:e.value+""});if(e=Object.assign({},o),i.transformTag.call(this,e),e.__isValid=this.hasMaxTags()||this.validateTag(e),!0!==e.__isValid){if(n)return;c(s,this.getInvalidTagAttrs(e,e.__isValid),{__preInvalidData:o}),e.__isValid==this.TEXTS.duplicate&&this.flashTag(this.getTagElmByValue(e.value))}if("readonly"in e&&(e.readonly?s["aria-readonly"]=!0:delete e.readonly),t=this.createTagElem(e,s),a.push(t),"select"==i.mode)return this.selectTag(t,e);r.appendChild(t),e.__isValid&&!0===e.__isValid?(this.value.push(e),this.trigger("add",{tag:t,index:this.value.length-1,data:e})):(this.trigger("invalid",{data:e,index:this.value.length,tag:t,message:e.__isValid}),i.keepInvalidTags||setTimeout((()=>this.removeTags(t,!0)),1e3)),this.dropdown.position()})),this.appendTag(r),this.update(),e.length&&t&&this.input.set.call(this),this.dropdown.refilter(),a)):("select"==i.mode&&this.removeAllTags(),a)},addMixTags(e){if((e=this.normalizeTags(e))[0].prefix||this.state.tag)return this.prefixedTextToTag(e[0]);"string"==typeof e&&(e=[{value:e}]);var t=!!this.state.selection,n=document.createDocumentFragment();return e.forEach((e=>{var t=this.createTagElem(e);n.appendChild(t),this.insertAfterTag(t)})),t?this.injectAtCaret(n):(this.DOM.input.focus(),(t=this.setStateSelection()).range.setStart(this.DOM.input,t.range.endOffset),t.range.setEnd(this.DOM.input,t.range.endOffset),this.DOM.input.appendChild(n),this.updateValueByDOMTags(),this.update()),n},prefixedTextToTag(e){var t,n=this.settings,a=this.state.tag.delimiters;if(n.transformTag.call(this,e),e.prefix=e.prefix||this.state.tag?this.state.tag.prefix:(n.pattern.source||n.pattern)[0],t=this.createTagElem(e),this.replaceTextWithNode(t)||this.DOM.input.appendChild(t),setTimeout((()=>t.classList.add(this.settings.classNames.tagNoAnimation)),300),this.value.push(e),this.update(),!a){var i=this.insertAfterTag(t)||t;this.placeCaretAfterNode(i)}return this.state.tag=null,this.trigger("add",c({},{tag:t},{data:e})),t},appendTag(e){var t=this.DOM,n=t.scope.lastElementChild;n===t.input?t.scope.insertBefore(e,n):t.scope.appendChild(e)},createTagElem(e,n){e.__tagId=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)));var a,i=c({},e,t({value:o(e.value+"")},n));return function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);t=n.nextNode();)t.textContent.trim()||t.parentNode.removeChild(t)}(a=this.parseTemplate("tag",[i])),this.tagData(a,e),a},reCheckInvalidTags(){var e=this.settings;this.getTagElms(e.classNames.tagNotAllowed).forEach(((e,t)=>{var n=this.tagData(e),a=this.hasMaxTags(),i=this.validateTag(n);if(!0===i&&!a)return n=n.__preInvalidData?n.__preInvalidData:{value:n.value},this.replaceTag(e,n);e.title=a||i}))},removeTags(e,t,n){var a;e=e&&e instanceof HTMLElement?[e]:e instanceof Array?e:e?[e]:[this.getLastTag()],a=e.reduce(((e,t)=>{t&&"string"==typeof t&&(t=this.getTagElmByValue(t));var n=this.tagData(t);return t&&n&&!n.readonly&&e.push({node:t,idx:this.getTagIdx(n),data:this.tagData(t,{__removed:!0})}),e}),[]),n="number"==typeof n?n:this.CSSVars.tagHideTransition,"select"==this.settings.mode&&(n=0,this.input.set.call(this)),1==a.length&&a[0].node.classList.contains(this.settings.classNames.tagNotAllowed)&&(t=!0),a.length&&this.settings.hooks.beforeRemoveTag(a,{tagify:this}).then((()=>{function e(e){e.node.parentNode&&(e.node.parentNode.removeChild(e.node),t?this.settings.keepInvalidTags&&this.trigger("remove",{tag:e.node,index:e.idx}):(this.trigger("remove",{tag:e.node,index:e.idx,data:e.data}),this.dropdown.refilter(),this.dropdown.position(),this.DOM.input.normalize(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()))}n&&n>10&&1==a.length?function(t){t.node.style.width=parseFloat(window.getComputedStyle(t.node).width)+"px",document.body.clientTop,t.node.classList.add(this.settings.classNames.tagHide),setTimeout(e.bind(this),n,t)}.call(this,a[0]):a.forEach(e.bind(this)),t||(this.removeTagsFromValue(a.map((e=>e.node))),this.update(),"select"==this.settings.mode&&this.setContentEditable(!0))})).catch((e=>{}))},removeTagsFromDOM(){[].slice.call(this.getTagElms()).forEach((e=>e.parentNode.removeChild(e)))},removeTagsFromValue(e){(e=Array.isArray(e)?e:[e]).forEach((e=>{var t=this.tagData(e),n=this.getTagIdx(t);n>-1&&this.value.splice(n,1)}))},removeAllTags(e){e=e||{},this.value=[],"mix"==this.settings.mode?this.DOM.input.innerHTML="":this.removeTagsFromDOM(),this.dropdown.position(),"select"==this.settings.mode&&(this.input.set.call(this),this.setContentEditable(!0)),this.update(e)},postUpdate(){var e=this.settings.classNames,t="mix"==this.settings.mode?this.settings.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value.trim():this.value.length+this.input.raw.call(this).length;this.toggleClass(e.hasMaxTags,this.value.length>=this.settings.maxTags),this.toggleClass(e.hasNoTags,!this.value.length),this.toggleClass(e.empty,!t)},setOriginalInputValue(e){var t=this.DOM.originalInput;this.settings.mixMode.integrated||(t.value=e,t.tagifyValue=t.value,this.setPersistedData(e,"value"))},update(e){var t=this.getInputValue();this.setOriginalInputValue(t),this.postUpdate(),!(e||{}).withoutChangeEvent&&this.state.loadedOriginalValues&&this.triggerChangeEvent()},getInputValue(){var e=this.getCleanValue();return"mix"==this.settings.mode?this.getMixedTagsAsString(e):e.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(e):JSON.stringify(e):""},getCleanValue(e){return t=e||this.value,n=this.dataProps,t&&Array.isArray(t)&&t.map((e=>i(e,n)));var t,n},getMixedTagsAsString(){var e="",t=this,n=this.settings.mixTagsInterpolator;return function a(r){r.childNodes.forEach((r=>{if(1==r.nodeType){const s=t.tagData(r);if("BR"==r.tagName&&(e+="\r\n"),"DIV"==r.tagName||"P"==r.tagName)e+="\r\n",a(r);else if(d.call(t,r)&&s){if(s.__removed)return;e+=n[0]+JSON.stringify(i(s,t.dataProps))+n[1]}}else e+=r.textContent}))}(this.DOM.input),e}},k.prototype.removeTag=k.prototype.removeTags,k}()},function(e,t,n){var a,i;a=function(){var e,t=0,n={},a={},i=(e=window.MutationObserver||window.WebKitMutationObserver,function(t,n){t&&1===t.nodeType&&(e?new e((function(e,t){n(e)})).observe(t,{childList:!0,subtree:!1}):window.addEventListener&&t.addEventListener("DOMNodeInserted",n,!1))});function r(e,t){if(!e)return this;t=t||{},this.parentElm=e,this.uid=t.uid,this.settings={selector:"*",callbacks:{}},Object.assign(this.settings,t),this.setup(),i(this.parentElm,this.setup.bind(this)),this.bindEvents()}return r.prototype={namespace:"dragsort",setup(){[...this.parentElm.childNodes].forEach((e=>{if(1!=e.nodeType)return e.parentNode.removeChild(e);e.matches(this.settings.selector)&&(e.draggable=!0)})),this.gap=this.getItemsGap(this.parentElm.firstElementChild)},throttle(e,t){var n=!1,a=this;return function(i){n||(e.call(a,i),n=!0,setTimeout((()=>n=!1),t))}},getDraggableElm(e){if(!e.closest)return null;var t=e.closest('[draggable="true"]');return this.uid==n.uid?t:null},dragstart(e,t){n=this;var a,i=this.getDraggableElm(t);i?(this.source=this.getInitialState(),this.target=this.getInitialState(),a=i.getBoundingClientRect(),this.source.elm=i,this.source.idx=this.getNodeIndex(i),this.source.size.width=a.width,this.source.size.height=a.height,e.dataTransfer.effectAllowed="move",setTimeout(this.afterDragStart.bind(this))):n={}},afterDragStart(){var e="vertical"==this.settings.mode?"height":"width";this.parentElm.classList.add(`${this.namespace}--dragStart`),this.source.elm.style[e]=this.source.size[e]+"px",this.source.elm.classList.add(`${this.namespace}--dragElem`)},dragover(e){e.preventDefault(),e.stopPropagation();var t=e.target;if((t=this.getDraggableElm(t))&&this.target){var n=this.target.elm,a=this.target.hoverDirection;e.dataTransfer.dropEffect="move",this.target.hoverDirection=this.getTargetDirection(e),n==t&&a==this.target.hoverDirection||this.directionAwareDragEnter(e,t)}},dragenter(e,t){(t=this.getDraggableElm(t))&&this.target&&this.isValidElm(t)&&this.source.elm!=t&&this.source.elm&&(this.target.bounding=t.getBoundingClientRect())},directionAwareDragEnter(e,t){var n;e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="none",this.isValidElm(t)&&this.source.elm!=t&&this.source.elm&&(e.dataTransfer.dropEffect="move",this.cleanupLastTarget(),this.target.elm=t,this.target.idx=this.getNodeIndex(t),t.classList.add("over"),n=Math.abs(this.target.idx-this.source.idx),this.source.elm.classList.toggle(`${this.namespace}--hide`,n>0),"vertical"==this.settings.mode?this.target.elm.style[this.target.hoverDirection?"marginBottom":"marginTop"]=this.source.size.height+this.gap+"px":this.target.elm.style[this.target.hoverDirection?"marginRight":"marginLeft"]=this.source.size.width+this.gap+"px")},dragend(e){if(clearTimeout(this.dragoverTimeout),this.dragoverTimeout=null,this.parentElm.classList.remove(`${this.namespace}--dragStart`),!this.isValidElm(this.target.elm))return this.cleanup();var t=this.target.hoverDirection?this.target.elm.nextElementSibling:this.target.elm;return this.source.elm!=this.target.elm&&this.target.elm&&(this.target.elm.classList.add(`${this.namespace}--noAnim`),this.cleanup(),this.parentElm.insertBefore(this.source.elm,t)),this.source.elm&&this.source.elm.classList.remove(`${this.namespace}--dragElem`,`${this.namespace}--hide`),this.settings.callbacks.dragEnd(this.source.elm),this},isTargetLastChild(){return this.parentElm.lastElementChild==this.target.elm},getTargetDirection(e){if(this.target.bounding)return"vertical"==this.settings.mode?e.pageY>this.target.bounding.top+this.target.bounding.height/2?1:0:e.pageX>this.target.bounding.left+this.target.bounding.width/2?1:0},getNodeIndex(e){for(var t=0;e=e.previousSibling;)3==e.nodeType&&/^\s*$/.test(e.data)||t++;return t},isValidElm(e){return e&&e.nodeType&&e.parentNode==this.parentElm},cleanup(){n={},[...this.parentElm.children].forEach((e=>{e.removeAttribute("style"),setTimeout((()=>{e.classList.remove(`${this.namespace}--over`,`${this.namespace}--noAnim`,`${this.namespace}--dragElem`)}),50)}))},cleanupLastTarget(){this.target.elm&&(this.target.elm.classList.remove(`${this.namespace}--hide`,`${this.namespace}--over`),this.target.elm.removeAttribute("style"))},getInitialState:()=>({elm:null,size:{}}),getItemsGap(e){var t=getComputedStyle(e);return"vertical"==this.settings.mode?parseInt(t.marginTop)+parseInt(t.marginBottom):parseInt(t.marginLeft)+parseInt(t.marginRight)},bindEvents(e){for(var t in this.listeners=this.listeners||{dragstart:e=>this.dragstart(e,e.target),dragenter:e=>this.dragenter(e,e.target),dragend:e=>this.dragend(e,e.target),dragover:this.throttle(this.dragover,350)},this.listeners)this.parentElm[e?"removeEventListener":"addEventListener"](t,this.listeners[t])},destroy(){this.cleanup(),this.bindEvents(!0),delete a[this.uid]}},function(e,n){return a[++t]=e.DragSort?a[e.DragSort]:new r(e,{...n,uid:t}),e.DragSort=t,a[t]}},"function"==typeof(i=i||{})&&i.amd?i([],a):e.exports=a()},function(e,t,n){var a=n(38),i=n(52),r=n(55),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,p,u,d,h,m=0,g=!1,f=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=l,a=c;return l=c=void 0,m=t,u=e.apply(a,n)}function w(e){return m=e,d=setTimeout(k,t),g?b(e):u}function y(e){var n=e-h;return void 0===h||n>=t||n<0||f&&e-m>=p}function k(){var e=i();if(y(e))return O(e);d=setTimeout(k,function(e){var n=t-(e-h);return f?o(n,p-(e-m)):n}(e))}function O(e){return d=void 0,v&&l?b(e):(l=c=void 0,u)}function E(){var e=i(),n=y(e);if(l=arguments,c=this,h=e,n){if(void 0===d)return w(h);if(f)return clearTimeout(d),d=setTimeout(k,t),b(h)}return void 0===d&&(d=setTimeout(k,t)),u}return t=r(t)||0,a(n)&&(g=!!n.leading,p=(f="maxWait"in n)?s(r(n.maxWait)||0,t):p,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==d&&clearTimeout(d),m=0,l=h=c=d=void 0},E.flush=function(){return void 0===d?u:O(i())},E}},,function(e,t,n){"use strict";var a=n(34),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=n(37),s=n(49),o=n(50),l="function"==typeof Symbol&&Symbol.iterator;function c(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,a={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return a[e]}))):t.toString(36);var n,a}function p(e,t,n,a){var r,o=typeof e;if("undefined"!==o&&"boolean"!==o||(e=null),null===e||"string"===o||"number"===o||"object"===o&&e.$$typeof===i)return n(a,e,""===t?"."+c(e,0):t),1;var u=0,d=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h<e.length;h++)u+=p(r=e[h],d+c(r,h),n,a);else{var m=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var g,f=m.call(e),v=0;!(g=f.next()).done;)u+=p(r=g.value,d+c(r,v++),n,a)}else if("object"===o){0;var b=""+e;s(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,"")}}return u}var u=/\/+/g;function d(e){return(""+e).replace(u,"$&/")}var h,m,g=f,f=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},v=function(e){var t=this;s(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function b(e,t,n,a){this.result=e,this.keyPrefix=t,this.func=n,this.context=a,this.count=0}function w(e,t,n){var i,s,o=e.result,l=e.keyPrefix,c=e.func,p=e.context,u=c.call(p,t,e.count++);Array.isArray(u)?y(u,o,n,r.thatReturnsArgument):null!=u&&(a.isValidElement(u)&&(i=u,s=l+(!u.key||t&&t.key===u.key?"":d(u.key)+"/")+n,u=a.cloneElement(i,{key:s},void 0!==i.props?i.props.children:void 0)),o.push(u))}function y(e,t,n,a,i){var r="";null!=n&&(r=d(n)+"/");var s=b.getPooled(t,r,a,i);!function(e,t,n){null==e||p(e,"",t,n)}(e,w,s),b.release(s)}b.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h=function(e,t,n,a){var i=this;if(i.instancePool.length){var r=i.instancePool.pop();return i.call(r,e,t,n,a),r}return new i(e,t,n,a)},(m=b).instancePool=[],m.getPooled=h||g,m.poolSize||(m.poolSize=10),m.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return o(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(a.isValidElement(e))return o(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;s(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)y(e[n],t,n,r.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,i,r,s,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,i,r,s,o],p=0;(l=new Error(t.replace(/%s/g,(function(){return c[p++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var a=n(37);e.exports=a},function(e,t,n){"use strict";function a(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(a)}},function(e,t,n){var a=n(39);e.exports=function(){return a.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(54))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var a=n(56),i=n(38),r=n(58),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=o.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},function(e,t,n){var a=n(57),i=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(i,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var a=n(59),i=n(62);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==a(e)}},function(e,t,n){var a=n(40),i=n(60),r=n(61),s=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):r(e)}},function(e,t,n){var a=n(40),i=Object.prototype,r=i.hasOwnProperty,s=i.toString,o=a?a.toStringTag:void 0;e.exports=function(e){var t=r.call(e,o),n=e[o];try{e[o]=void 0;var a=!0}catch(e){}var i=s.call(e);return a&&(t?e[o]=n:delete e[o]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(0),i=n(3),r=n(6),s=n(5),o=n(12),l=n.n(o),c=n(1),p=n(10),u=n(4);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var h=["tabId","onClick","children","selected"];function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return w(this,n)}}function w(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},k.apply(this,arguments)}function O(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var E=function(e){var t=e.tabId,n=e.onClick,a=e.children,i=e.selected,r=O(e,h);return wp.element.createElement(u.Button,k({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},r),a)},T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(r,e);var t,n,a,i=b(r);function r(){var e;g(this,r),(e=i.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,a=void 0===n?c.noop:n;e.setState({selected:t}),a(t)},e.onNavigate=function(e,t){t.click()};var t=e.props,n=t.tabs,a=t.initialTabName;return e.state={selected:a||(n.length>0?n[0].name:null)},e}return t=r,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,a=n.activeClass,i=void 0===a?"is-active":a,r=n.className,s=n.instanceId,o=n.orientation,p=void 0===o?"horizontal":o,d=n.tabs,h=Object(c.find)(d,{name:t}),g=s+"-"+h.name,f=d.slice(4);return wp.element.createElement("div",{className:r},wp.element.createElement(u.NavigableMenu,{role:"tablist",orientation:p,onNavigate:this.onNavigate,className:"components-tab-panel__tabs "+t},d.slice(0,4).map((function(n){return wp.element.createElement(E,{className:l()("components-tab-panel__tabs-item",n.className,m({},i,n.name===t)),tabId:s+"-"+n.name,"aria-controls":s+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(c.partial)(e.handleClick,n.name)},n.title)})),f.map((function(n){return wp.element.createElement(E,{className:l()("components-tab-panel__tabs-item",n.className,m({},i,n.name===t)),tabId:s+"-"+n.name,"aria-controls":s+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(c.partial)(e.handleClick,n.name)},n.title)}))),h&&wp.element.createElement("div",{"aria-labelledby":g,role:"tabpanel",id:g+"-view",className:"components-tab-panel__tab-content"},this.props.children(h)))}}])&&f(t.prototype,n),a&&f(t,a),Object.defineProperty(t,"prototype",{writable:!1}),r}(s.Component),_=Object(p.withInstanceId)(T),x=n(16);function j(e,t,n){var a=0;return!1!==Object(c.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function C(e,t){return e<=t.min||e>t.max}function N(e,t){return e<=t.minWidth||e>t.pixelWidth}var S=function(e){var t=function(e,t){var n=Object(x.a)(e).length,a=0,i=!1;if(!1!==Object(c.get)(t,"pixelWidth",!1)){i=!0;var r=document.createTextNode(e),s=document.createElement("span");s.appendChild(r),s.id="rank-math-width-tester",s.className=t.widthCheckerClass;var o=document.body.appendChild(s);a=document.getElementById("rank-math-width-tester").offsetWidth,o.outerHTML=""}return{left:j(n,a,t),isInvalid:C(n,t),isInvalidWidth:!!i&&N(a,t),count:n+" / "+t.max,pixelWidth:i?a+"px / "+t.pixelWidth+"px":""}}(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:l()("length-indicator-wrapper",{invalid:t.isInvalid||t.isInvalidWidth})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},D=n(31),I=n(43),M=n.n(I),A=function(e){var t=e.tags,n=e.components,a=e.children;return n=n||{},!1===Object(c.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),M()({mixedString:a,components:n})};function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function R(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=U(e);if(t){var i=U(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return B(this,n)}}function B(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(o,e);var t,n,i,r=F(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(V(t)),t}return t=o,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(c.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(s.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(u.TextControl,{autoComplete:"off",placeholder:Object(D.decodeEntities)(Object(a.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(A,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(u.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!0):document.addEventListener("click",this.handleOutsideClick,!0),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&R(t.prototype,n),i&&R(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(s.Component),z=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(i.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,i=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(a.__)("Title","rank-math")),wp.element.createElement(S,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(a.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:i}),wp.element.createElement(H,{exclude:["seo_title","seo_description"],onClick:function(e){return i(t+" %"+e.variable+"%")}})))})),W=n(7),$=n(9),G=Object(p.compose)(Object(i.withSelect)((function(e){var t=rankMathEditor.assessor.dataCollector,n=e("rank-math").getSerpSlug();return{permalink:n||t.getSlug(),serpPermalink:t.getPermalink()}})),Object(i.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(W.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(W.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,i=e.updatePermalink,r=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(a.__)("Permalink","rank-math")),wp.element.createElement(S,{source:Object($.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(u.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object($.safeDecodeURIComponent)(t),onChange:i,help:rankMath.is_front_page?Object(a.__)("Editing Homepage permalink is not possible.","rank-math"):Object(a.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){r(e.target.value)}}))})),K=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(i.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,i=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(a.__)("Description","rank-math")),wp.element.createElement(S,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group rank-math-description-variables"},wp.element.createElement(u.TextareaControl,{id:"rank-math-editor-description",value:Object(x.a)(t),placeholder:n||Object(c.unescape)(rankMath.assessor.serpData.descriptionTemplate),help:Object(a.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:i}),wp.element.createElement(H,{exclude:["seo_title","seo_description"],onClick:function(e){return i(t+" %"+e.variable+"%")}})))})),q=Object(p.compose)(Object(i.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(i.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,a=l()("button button-secondary button-small",{active:"desktop"===t}),i=l()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:i},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),Y=n(28),X=function(e,t,n,a){return Object(c.isUndefined)(t)?t:(t=Object(c.truncate)(t,{length:n,separator:a||" "}),""===e?t:t.replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"})))},J=function(e,t){for(var n=[],a=1;a<=e;a++)n.push(wp.element.createElement(u.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(i.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(c.find)(t,(function(e){return!Object(c.isEmpty)(e.metadata.isPrimary)}))}}))((function(e){var t=e.schema;if(Object(c.isEmpty)(t))return null;var n=Object(c.get)(t,"review.reviewRating",{}),i=n.ratingValue;if(Object(c.isEmpty)(i))return null;Object(c.get)(n,"worstRating",1);var r=Object(c.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},J(r,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},J(n,"filled"))}(i,0,r)),wp.element.createElement("span",{className:"serp-rating-label"},Object(a.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},i))}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee=Object(i.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,i=e.permalink,r=e.description,s=e.previewType,o=void 0===s?"desktop":s,c=e.isNoIndex,p=e.keyword,u=e.onClick,d=e.showScore,h=void 0===d||d,m=e.showDevices,g=void 0!==m&&m,f=l()("serp-preview",(Q(t={"expanded-preview":""!==o},"".concat(o,"-preview"),""!==o&&g),Q(t,"noindex-preview",c),t)),v=l()("serp-title",{capitalize:rankMath.capitalizeTitle}),b=rankMathEditor.assessor.getResearch("slugify")(p);return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(a.__)("Preview","rank-math"),"data-desktop":Object(a.__)("Desktop Preview","rank-math"),"data-mobile":Object(a.__)("Mobile Preview","rank-math")},h&&wp.element.createElement(Y.a,null)," ",g&&wp.element.createElement(q,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:p||Object(a.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(a.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(a.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(a.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(a.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(a.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(a.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(a.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){u&&u()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:X(b,W.Helpers.sanitizeText(Object($.safeDecodeURIComponent)(i)),75,/-? +/)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:v,dangerouslySetInnerHTML:{__html:X(p,W.Helpers.sanitizeText(n),60)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:X(p,W.Helpers.sanitizeText(r),160)}}))),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(a.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(a.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),te=Object(i.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(ee,{showScore:!1,showDevices:!0}),wp.element.createElement(z,null),wp.element.createElement(G,null),wp.element.createElement(K,null))})),ne=n(8),ae=function(e){var t=l()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType),n=l()("rank-math-social-preview-title",{capitalize:rankMath.capitalizeTitle});return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:n},e.title?ne.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?ne.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(s.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(u.Dashicon,{icon:"admin-links"}),e.siteurl))))))},ie=n(30),re=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(ie.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(a.__)("Replace Image","rank-math"):Object(a.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(u.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(a.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(a.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(a.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function se(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},oe.apply(this,arguments)}var le=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(c.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(i.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(ae,oe({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(a.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(u.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(a.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/?utm_source=Plugin&utm_medium=Gutenberg%20Social%20Tab&utm_campaign=WP",target:"_blank",rel:"noreferrer noopener"},Object(a.__)("Read more","rank-math")))),wp.element.createElement(re,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-facebook-title"},Object(a.__)("Title","rank-math")),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextControl,{id:"rank-math-facebook-title",value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle}),wp.element.createElement(H,{onClick:function(t){return e.updateTitle(e.title+" %"+t.variable+"%")}}))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-facebook-description"},Object(a.__)("Description","rank-math")),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextareaControl,{id:"rank-math-facebook-description",value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription}),wp.element.createElement(H,{onClick:function(t){return e.updateDescription(e.description+" %"+t.variable+"%")}}))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(u.ToggleControl,{label:Object(a.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(u.SelectControl,{value:e.imageOverlay,label:Object(a.__)("Icon overlay","rank-math"),options:se(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(a.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),ce=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(i.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.description,label:Object(a.__)("App Description","rank-math"),help:Object(a.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.iphoneName,label:Object(a.__)("iPhone App Name","rank-math"),help:Object(a.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(u.TextControl,{value:e.iphoneID,label:Object(a.__)("iPhone App ID","rank-math"),help:Object(a.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(u.TextControl,{value:e.iphoneUrl,label:Object(a.__)("iPhone App URL","rank-math"),help:Object(a.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.ipadName,label:Object(a.__)("iPad App Name","rank-math"),help:Object(a.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(u.TextControl,{value:e.ipadID,label:Object(a.__)("iPad App ID","rank-math"),help:Object(a.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(u.TextControl,{value:e.ipadUrl,label:Object(a.__)("iPad App URL","rank-math"),help:Object(a.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.googleplayName,label:Object(a.__)("Google Play App Name","rank-math"),help:Object(a.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(u.TextControl,{value:e.googleplayID,label:Object(a.__)("Google Play App ID","rank-math"),help:Object(a.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(u.TextControl,{value:e.googleplayUrl,label:Object(a.__)("Google Play App URL","rank-math"),help:Object(a.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(u.TextControl,{value:e.country,label:Object(a.__)("App Country","rank-math"),help:Object(a.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),pe=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(i.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TextControl,{value:e.url,label:Object(a.__)("Player URL","rank-math"),help:Object(a.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(u.TextControl,{value:e.size,label:Object(a.__)("Player Size","rank-math"),help:Object(a.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(u.TextControl,{value:e.stream,label:Object(a.__)("Stream URL","rank-math"),help:Object(a.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(u.TextControl,{value:e.ctype,label:Object(a.__)("Stream Content Type","rank-math"),help:Object(a.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ue(){return ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ue.apply(this,arguments)}var de=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),a=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(c.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:a,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(i.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(ae,ue({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(c.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(a.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(a.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(u.ToggleControl,{label:Object(a.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(u.SelectControl,{value:e.cardType,label:Object(a.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(a.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(a.__)("Summary Card","rank-math")},{value:"app",label:Object(a.__)("App Card","rank-math")},{value:"player",label:Object(a.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(a.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"),wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(a.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"),wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(re,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-twitter-title"},Object(a.__)("Title","rank-math")),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextControl,{id:"rank-math-twitter-title",value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle}),wp.element.createElement(H,{onClick:function(t){return e.updateTitle(e.title+" %"+t.variable+"%")}}))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-twitter-description"},Object(a.__)("Description","rank-math")),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(u.TextareaControl,{id:"rank-math-twitter-description",value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription}),wp.element.createElement(H,{onClick:function(t){return e.updateDescription(e.description+" %"+t.variable+"%")}}))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(u.ToggleControl,{label:Object(a.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(u.SelectControl,{value:e.imageOverlay,label:Object(a.__)("Icon overlay","rank-math"),options:se(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(a.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(pe,null),"app"===e.cardType&&wp.element.createElement(ce,null))})),he=function(){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(s.Fragment,null,wp.element.createElement(u.Dashicon,{icon:"facebook-alt"}),Object(a.__)("Facebook","rank-math")),view:le,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(s.Fragment,null,wp.element.createElement(u.Dashicon,{icon:"twitter"}),Object(a.__)("Twitter","rank-math")),view:de,className:"button-twitter"}]},(function(e){return Object(s.createElement)(e.view)})))},me=n(2),ge=n.n(me);function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function ve(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function be(e,t){return be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},be(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Oe(e);if(t){var i=Oe(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return ye(this,n)}}function ye(e,t){if(t&&("object"===fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ke(e)}function ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}var Ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}(o,e);var t,n,i,r=we(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this))._handleRef=e._handleRef.bind(ke(e)),e}return t=o,(n=[{key:"componentDidMount",value:function(){var e=ge()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=ge()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(a.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(A,{tags:"em"},Object(a.__)("Hey, we noticed you are using Rank Math SEO plugin for more than a week now –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(u.CheckboxControl,{label:wp.element.createElement(s.Fragment,null,wp.element.createElement("span",null,Object(a.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){ge.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=ge()(this.component);e.animate({opacity:.01},1500,(function(){var t=ge()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&ve(t.prototype,n),i&&ve(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(s.Component),Te=Object(u.withFilters)("rankMath.analytics.reportButton")((function(){return null})),_e=Object(p.compose)(Object(i.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(i.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,i=void 0===n?"":n,r=e.toggleEditor,o=[{name:"general",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(a.__)("General","rank-math"))),view:te}];return rankMath.canUser.social&&o.push({name:"social",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(a.__)("Social","rank-math"))),view:he}),rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&o.push({name:"review",className:"review-tab",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:Ee}),wp.element.createElement(s.Fragment,null,wp.element.createElement(u.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:r},Object(a.__)("Edit Snippet","rank-math")),""===i&&wp.element.createElement(Te,null),t&&wp.element.createElement(u.Modal,{title:Object(a.__)("Preview Snippet Editor","rank-math"),closeButtonLabel:Object(a.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:r,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(u.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:i,tabs:o},(function(e){return Object(s.createElement)(e.view)}))))})),xe=function(){return wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(u.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(a.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(a.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(a.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(_e,{buttonLabel:Object(a.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},je=Object(p.withInstanceId)((function(e){var t=e.className,n=e.instanceId,a=e.children,i="rank-math-tooltip-"+n,r=l()("rank-math-tooltip",t);return wp.element.createElement("span",{className:r},wp.element.createElement("input",{id:i,type:"checkbox"}),wp.element.createElement("label",{htmlFor:i,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},a))}));function Ce(e){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(e)}function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function De(e,t){return De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},De(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Ae(e);if(t){var i=Ae(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return Me(this,n)}}function Me(e,t){if(t&&("object"===Ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}var Pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&De(e,t)}(o,e);var t,n,i,r=Ie(o);function o(){return Ne(this,o),r.apply(this,arguments)}return t=o,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(c.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(u.PanelBody,{key:"panel-"+e,title:wp.element.createElement(s.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(a.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(a.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,a=this.getGroupItems(e);return Object.keys(a).map((function(e){if(Object(c.isUndefined)(n[e])||!t.isPrimary&&a[e])return!1;var i=n[e],r=l()("seo-check-"+e,{"test-ok":i.hasScore(),"test-fail":!i.hasScore()});return i.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(r+=" "+function(e,t){var n=Object(c.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}(i.getScore(),i.getMaxScore())),!1===i.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:r},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:i.getText()}}),i.hasTooltip()?wp.element.createElement(je,null,i.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return("post"===rankMath.objectType?{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}:{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0},advanced:{titleStartWithKeyword:!0,keywordNotUsed:!0}})[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return"post"===rankMath.objectType?{basic:Object(a.__)("Basic SEO","rank-math"),advanced:Object(a.__)("Additional","rank-math"),"title-readability":Object(a.__)("Title Readability","rank-math"),"content-readability":Object(a.__)("Content Readability","rank-math")}:{basic:Object(a.__)("Basic SEO","rank-math"),advanced:Object(a.__)("Additional","rank-math")}}}])&&Se(t.prototype,n),i&&Se(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(s.Component),Re=Object(i.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Pe),Le=n(22),Fe=Object(i.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(u.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(A,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Score%20Notice&utm_campaign=WP",target:"_blank",rel:"noopener noreferrer"})}},Object(a.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(u.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(A,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(a.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(u.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(A,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(a.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Be=n(44),Ve=n.n(Be),Ue=n(45),He=n.n(Ue);function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function We(){return We=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},We.apply(this,arguments)}function $e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ge(e,t){return Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ge(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return qe(this,n)}}function qe(e,t){if(t&&("object"===ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ye(e)}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}var Je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ge(e,t)}(r,e);var t,n,a,i=Ke(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=i.call(this,e))._handleRef=t._handleRef.bind(Ye(t)),t}return t=r,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new Ve.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100),this.addDragSort()}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",We({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",We({},e,{defaultValue:this.props.initialValue}))}},{key:"addDragSort",value:function(){this.props.settings.callbacks.dragEnd&&new He.a(this.tagify.DOM.scope,{selector:".tagify__tag",callbacks:{dragEnd:this.props.settings.callbacks.dragEnd}})}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&$e(t.prototype,n),a&&$e(t,a),Object.defineProperty(t,"prototype",{writable:!1}),r}(s.Component);function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Qe(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=it(e);if(t){var i=it(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return nt(this,n)}}function nt(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return at(e)}function at(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}var rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&et(e,t)}(l,e);var t,n,i,o=tt(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=o.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(s.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(at(t)),window.rankMathEditor.focusKeywordField=at(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:Object(c.debounce)(this.onRemove.bind(this),300),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(c.debounce)(this.onInput.bind(this),300));var n=Object(r.applyFilters)("rank_math_focus_keyword_settings",{addTagOnBlur:!0,maxTags:"post"===rankMath.objectType?rankMath.maxTags:1,whitelist:this.state.whitelist||[],focusableTags:!0,transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t){var n=t.title||t.value,a="";if(!t.class){var i=rankMathEditor.resultManager.getScore(W.Helpers.removeDiacritics(n));a+=e.getScoreClass(i)}return"<tag title='".concat(e.stripTags(n),"'\n tabIndex='0'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(t.class?t.class:a,"'\n ").concat(e.getAttributesEsc(t),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(n),"</span>\n </div>\n </tag>")}},callbacks:t},this);return this.setKeywordsClasses(),wp.element.createElement(Je,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(a.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var a=t.queryTags();n.map((function(t,n){if(!Object(c.isUndefined)(a[n])){var i=rankMathEditor.resultManager.getScore(W.Helpers.removeDiacritics(t.value));a[n].classList.remove("ok-fk","good-fk","bad-fk"),a[n].classList.add(e.getScoreClass(i))}}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(c.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=ge.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var a=ge.a.map(n,(function(e){return e}));t.setState({whitelist:a,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributesEsc",value:function(e){if("[object Object]"!==Object.prototype.toString.call(e))return"";var t,n,a="",i=Object.keys(e);for(n=i.length;n--;)"class"!==(t=i[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=""+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=ge()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Qe(t.prototype,n),i&&Qe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(s.Component),st=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(i.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),Object(c.isUndefined)(t.tag)||""===t.tag||t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(rt),ot=Object(u.withFilters)("rankMath.focusKeywords.Trends")(Object(p.compose)(Object(i.withSelect)((function(e){return{isTrendsCtaOpen:e("rank-math").isTrendsCtaOpen()}})),Object(i.withDispatch)((function(e,t){return{toggleTrendsCta:function(){e("rank-math").toggleTrendsCta(!t.isTrendsCtaOpen)}}})))((function(e){var t=e.isTrendsCtaOpen,n=e.toggleTrendsCta;return wp.element.createElement(s.Fragment,null,wp.element.createElement("a",{href:"#",title:Object(a.__)("Trends","rank-math"),rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon},onClick:n}),t&&wp.element.createElement(u.Modal,{title:Object(a.__)("Google Trends","rank-math"),closeButtonLabel:Object(a.__)("Close","rank-math"),shouldCloseOnClickOutside:!0,onRequestClose:n,className:"rank-math-modal rank-math-trends-cta-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"components-panel__body rank-math-trends-cta-wrapper"},wp.element.createElement("img",{src:rankMath.trendsPreviewImage,alt:"",className:"trends-cta blurred"}),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks width-50"},wp.element.createElement("h3",null,Object(a.__)("Track Keyword Trends","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,Object(a.__)("Data fetched directly from Google","rank-math")),wp.element.createElement("li",null,Object(a.__)("Analyze search trends and compare keywords","rank-math")),wp.element.createElement("li",null,Object(a.__)("See data from a particular Country or timeframe","rank-math"))),wp.element.createElement("a",{className:"button button-primary is-green",href:rankMath.trendsUpgradeLink,rel:"noreferrer noopener",target:"_blank"},rankMath.trendsUpgradeLabel))))))}))),lt=Object(u.withFilters)("rankMath.analytics.contentAI")((function(){return!1})),ct=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(i.withDispatch)((function(e,t){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,i=e.togglePillarContent;return t?wp.element.createElement(u.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(a.__)("Focus Keyword","rank-math"),wp.element.createElement(je,null,wp.element.createElement(A,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(a.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),wp.element.createElement(ot,null),rankMath.currentEditor&&"classic"!==rankMath.currentEditor&&wp.element.createElement(lt,null),wp.element.createElement(Le.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(st,null)),wp.element.createElement(Fe,null),"post"===rankMath.objectType&&wp.element.createElement(u.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(s.Fragment,null,wp.element.createElement("strong",null,Object(a.__)("This post is Pillar Content","rank-math")),wp.element.createElement(je,null,Object(a.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:i})):null})),pt=n(20),ut=Object(i.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(ee,{onClick:t}),wp.element.createElement(_e,null),wp.element.createElement(pt.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(ct,null),rankMath.canUser.analysis&&wp.element.createElement(Re,null))})),dt=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},ht=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(i.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,a){n=dt(n,t,a),"index"===t&&(n=dt(n,"noindex",!a)),"noindex"===t&&(n=dt(n,"index",!a)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(u.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(a.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(u.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(s.Fragment,null,Object(a.__)("Index","rank-math"),wp.element.createElement(je,null,Object(a.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(s.Fragment,null,Object(a.__)("No Index","rank-math"),wp.element.createElement(je,null,Object(a.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(s.Fragment,null,Object(a.__)("Nofollow","rank-math"),wp.element.createElement(je,null,Object(a.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(s.Fragment,null,Object(a.__)("No Archive","rank-math"),wp.element.createElement(je,null,Object(a.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(s.Fragment,null,Object(a.__)("No Image Index","rank-math"),wp.element.createElement(je,null,Object(a.__)("This option prevents images on a page from being indexed by Google and other search engines","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(u.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(s.Fragment,null,Object(a.__)("No Snippet","rank-math"),wp.element.createElement(je,null,Object(a.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(i.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(gt(gt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,a){e("rank-math").updateRedirection(n,a),e("rank-math").updateRedirectionItem(gt(gt({},t),{},ft({},n,a)))}}})))((function(e){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(a.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),e.hasRedirect&&wp.element.createElement(u.SelectControl,{label:Object(a.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(a.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(a.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(a.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(a.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(a.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(u.TextControl,{type:"url",autoComplete:"off",label:Object(a.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(u.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),bt=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(i.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,i=e.onUrlChange;return wp.element.createElement(u.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(a.__)("Canonical URL","rank-math"),wp.element.createElement(je,null,Object(a.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(u.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return i(e)}}))})),wt=Object(p.compose)(Object(i.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(i.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(u.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(a.__)("Breadcrumb Title","rank-math"),wp.element.createElement(je,null,Object(a.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(u.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){Ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Et={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},Tt=Object(p.compose)(Object(i.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=kt({},t);Object(c.defaults)(n,Et);var a=null,i=null,r=null;return"max-snippet"in t&&(a=n["max-snippet"]),"max-image-preview"in t&&(i=n["max-image-preview"]),"max-video-preview"in t&&(r=n["max-video-preview"]),{meta:t,isSnippet:a,isImage:i,isVideo:r,maxSnippet:a?n["max-snippet"]:-1,maxImage:n["max-image-preview"],maxVideo:r?n["max-video-preview"]:-1}})),Object(i.withDispatch)((function(e,t){var n=kt({},t.meta);return{updateRobots:function(t,a){Object(c.isBoolean)(a)?!1===a?delete n[t]:n[t]=Et[t]:n[t]=a,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(u.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(a.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(u.CheckboxControl,{label:wp.element.createElement(s.Fragment,null,Object(a.__)("Max Snippet","rank-math"),wp.element.createElement(je,null,Object(a.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(u.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(u.CheckboxControl,{label:wp.element.createElement(s.Fragment,null,Object(a.__)("Max Video Preview","rank-math"),wp.element.createElement(je,null,Object(a.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(u.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(u.CheckboxControl,{label:wp.element.createElement(s.Fragment,null,Object(a.__)("Max Image Preview","rank-math"),wp.element.createElement(je,null,Object(a.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(u.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(a.__)("Large","rank-math")},{value:"standard",label:Object(a.__)("Standard","rank-math")},{value:"none",label:Object(a.__)("None","rank-math")}]})))})),_t=Object(p.compose)(Object(i.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(i.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(u.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(u.ToggleControl,{label:Object(a.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),xt=n(21),jt=Object(u.withFilters)("rankMath.advanced.newsSitemap")((function(){return null})),Ct=function(){return wp.element.createElement(s.Fragment,null,wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(Tt,null)),wp.element.createElement(jt,null),wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(bt,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(wt,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(u.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(vt,null)),rankMath.frontEndScore&&wp.element.createElement(u.PanelBody,{initialOpen:!0},wp.element.createElement(_t,null)),wp.element.createElement(xt.a.Slot,null,(function(e){return e.length>0?e:[]})))},Nt=n(46),St=n.n(Nt),Dt={init:function(){this.cacheProps(),this.initVars(),this.bindEvents()},cacheProps:function(){this.root=document.documentElement,this.$wpAdminbar=ge()("#wpadminbar")},initVars:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},bindEvents:function(){window.addEventListener("resize",St()(this.onWindowResize.bind(this)))},onWindowResize:function(){this.$wpAdminbar.length&&this.setWpAdminbarHeight.call(this)},setWpAdminbarHeight:function(){this.root.style.setProperty("--rankmath-wp-adminbar-height",this.$wpAdminbar.outerHeight()+"px")}};ge()((function(){Dt.init()}));var It=function(e){"social"===e&&Object(i.dispatch)("rank-math").toggleSnippetEditor(!0)},Mt=function(){return wp.element.createElement(_,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(a.__)("General","rank-math")}),wp.element.createElement("span",null,Object(a.__)("General","rank-math"))),view:ut,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(a.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(a.__)("Advanced","rank-math"))),view:Ct,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(s.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(a.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(a.__)("Social","rank-math"))),view:xe,className:"rank-math-social-tab"}),Object(r.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:It},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(s.createElement)(e.view))}));var e};Object(r.addAction)("rank_math_loaded","rank-math",(function(){Object(r.addFilter)("rank_math_app","rank-math",(function(){return Mt}))}))}]);
|
includes/admin/class-ask-review.php
CHANGED
@@ -87,10 +87,7 @@ class Ask_Review {
|
|
87 |
* @return void
|
88 |
*/
|
89 |
public function review_notice_js() {
|
90 |
-
if (
|
91 |
-
! Helper::has_notification( 'rank_math_review_plugin_notice' ) &&
|
92 |
-
! Helper::has_notification( 'rank_math_pro_notice' )
|
93 |
-
) {
|
94 |
return;
|
95 |
}
|
96 |
?>
|
87 |
* @return void
|
88 |
*/
|
89 |
public function review_notice_js() {
|
90 |
+
if ( ! Helper::has_notification( 'rank_math_review_plugin_notice' ) ) {
|
|
|
|
|
|
|
91 |
return;
|
92 |
}
|
93 |
?>
|
includes/admin/class-pro-notice.php
CHANGED
@@ -77,11 +77,14 @@ class Pro_Notice {
|
|
77 |
}
|
78 |
|
79 |
/**
|
80 |
-
* Add inline JS related to the Pro notice.
|
81 |
*
|
82 |
* @return void
|
83 |
*/
|
84 |
public function pro_notice_js() {
|
|
|
|
|
|
|
85 |
?>
|
86 |
<script>
|
87 |
(function( $ ) {
|
@@ -109,6 +112,67 @@ class Pro_Notice {
|
|
109 |
});
|
110 |
})(jQuery);
|
111 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
<?php
|
113 |
}
|
114 |
|
@@ -144,32 +208,38 @@ class Pro_Notice {
|
|
144 |
case 1:
|
145 |
$message = '<p><strong>';
|
146 |
|
147 |
-
$message .= esc_html__( '
|
148 |
-
$message .= '</strong></p
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
|
|
|
|
|
|
|
|
|
|
153 |
$message .= '<p>
|
154 |
-
|
155 |
-
|
156 |
-
<a href="#" class="rank-math-dismiss-pro-notice rank-math-already-upgraded-action">' . esc_html__( 'I already upgraded', 'rank-math' ) . '</a>
|
157 |
-
</p>';
|
158 |
break;
|
159 |
|
160 |
default:
|
161 |
$message = '<p><strong>';
|
162 |
|
163 |
-
$message .= esc_html__( '
|
164 |
$message .= '</strong></p><p>';
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
169 |
$message .= '<p>
|
170 |
-
<a href="https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Upgrade%20Notice%201%20New%20Yes&utm_campaign=WP" class="rank-math-dismiss-pro-notice rank-math-upgrade-action" target="_blank" rel="noopener noreferrer"><strong>' . esc_html__( 'Yes, I want better SEO', 'rank-math' ) . '</strong></a><
|
171 |
-
<a href="#" class="rank-math-dismiss-pro-notice rank-math-maybe-later-action">' . esc_html__( 'No, maybe later', 'rank-math' ) . '</a><br>
|
172 |
-
<a href="#" class="rank-math-dismiss-pro-notice rank-math-already-upgraded-action">' . esc_html__( 'I already purchased', 'rank-math' ) . '</a>
|
173 |
</p>';
|
174 |
break;
|
175 |
}
|
77 |
}
|
78 |
|
79 |
/**
|
80 |
+
* Add inline JS & CSS related to the Pro notice.
|
81 |
*
|
82 |
* @return void
|
83 |
*/
|
84 |
public function pro_notice_js() {
|
85 |
+
if ( ! Helper::has_notification( 'rank_math_pro_notice' ) ) {
|
86 |
+
return;
|
87 |
+
}
|
88 |
?>
|
89 |
<script>
|
90 |
(function( $ ) {
|
112 |
});
|
113 |
})(jQuery);
|
114 |
</script>
|
115 |
+
<style>
|
116 |
+
#rank_math_pro_notice.is-dismissible {
|
117 |
+
background: #253142;
|
118 |
+
color: #e4e5e7;
|
119 |
+
border-width: 3px;
|
120 |
+
border-style: solid;
|
121 |
+
border-color: #161e28;
|
122 |
+
padding: 0.25rem 1rem 1rem;
|
123 |
+
border-radius: 5px;
|
124 |
+
}
|
125 |
+
#rank_math_pro_notice.is-dismissible p {
|
126 |
+
font-size: 1.25rem;
|
127 |
+
color: #f7d070;
|
128 |
+
margin-bottom: 0;
|
129 |
+
}
|
130 |
+
#rank_math_pro_notice.is-dismissible ul {
|
131 |
+
line-height: 1;
|
132 |
+
margin-bottom: 0;
|
133 |
+
text-align: left;
|
134 |
+
opacity: 0.8;
|
135 |
+
font-size: 15px;
|
136 |
+
max-width: 530px;
|
137 |
+
}
|
138 |
+
#rank_math_pro_notice.is-dismissible li {
|
139 |
+
display: inline-block;
|
140 |
+
width: 49%;
|
141 |
+
margin-bottom: 0.5rem;
|
142 |
+
}
|
143 |
+
#rank_math_pro_notice ul li:before {
|
144 |
+
font-family: dashicons;
|
145 |
+
font-size: 20px;
|
146 |
+
width: 20px;
|
147 |
+
height: 20px;
|
148 |
+
margin-right: 5px;
|
149 |
+
content: '\f147';
|
150 |
+
text-align: center;
|
151 |
+
vertical-align: middle;
|
152 |
+
color: #161e28;
|
153 |
+
border-radius: 10px;
|
154 |
+
background: #9ce2b6;
|
155 |
+
}
|
156 |
+
#rank_math_pro_notice .button {
|
157 |
+
border-color: #f7d070;
|
158 |
+
background: #f7d070;
|
159 |
+
color: #5a4000;
|
160 |
+
font-size: 15px;
|
161 |
+
margin-right: 12px;
|
162 |
+
}
|
163 |
+
div#rank_math_pro_notice .rank-math-maybe-later-action,
|
164 |
+
div#rank_math_pro_notice .rank-math-already-upgraded-action {
|
165 |
+
color: #f7d070;
|
166 |
+
opacity: 0.7;
|
167 |
+
margin: 0 12px;
|
168 |
+
font-size: 13px;
|
169 |
+
}
|
170 |
+
|
171 |
+
.toplevel_page_rank-math #rank_math_pro_notice,
|
172 |
+
body[class*="rank-math_page_rank-math-options-"] div#rank_math_pro_notice {
|
173 |
+
display: none;
|
174 |
+
}
|
175 |
+
</style>
|
176 |
<?php
|
177 |
}
|
178 |
|
208 |
case 1:
|
209 |
$message = '<p><strong>';
|
210 |
|
211 |
+
$message .= esc_html__( 'Rank Your Content With the Power of PRO & A.I.', 'rank-math' );
|
212 |
+
$message .= '</strong></p>';
|
213 |
+
$message .= '<ul>
|
214 |
+
<li>' . esc_html__( 'Unlimited Websites', 'rank-math' ) . '</li>
|
215 |
+
<li>' . esc_html__( 'Content A.I. (Artificial Intelligence)', 'rank-math' ) . '</li>
|
216 |
+
<li>' . esc_html__( 'Keyword Rank Tracker', 'rank-math' ) . '</li>
|
217 |
+
<li>' . esc_html__( 'Powerful Schema Generator', 'rank-math' ) . '</li>
|
218 |
+
<li>' . esc_html__( '24x7 Premium Support', 'rank-math' ) . '</li>
|
219 |
+
<li>' . esc_html__( 'SEO Email Reports', 'rank-math' ) . '</li>
|
220 |
+
<li>' . esc_html__( 'and Many More…', 'rank-math' ) . '</li>
|
221 |
+
</ul>';
|
222 |
$message .= '<p>
|
223 |
+
<a href="https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Upgrade%20Notice%202%20New%20Yes&utm_campaign=WP" class="button rank-math-dismiss-pro-notice rank-math-upgrade-action" target="_blank" rel="noopener noreferrer"><strong>' . esc_html__( 'Yes, I want to learn more', 'rank-math' ) . '</strong></a><a href="#" class="rank-math-dismiss-pro-notice rank-math-already-upgraded-action">' . esc_html__( 'No, I don\'t want it', 'rank-math' ) . '</a><a href="#" class="rank-math-dismiss-pro-notice rank-math-already-upgraded-action">' . esc_html__( 'I already upgraded', 'rank-math' ) . '</a>
|
224 |
+
</p>';
|
|
|
|
|
225 |
break;
|
226 |
|
227 |
default:
|
228 |
$message = '<p><strong>';
|
229 |
|
230 |
+
$message .= esc_html__( 'Rank Your Content With the Power of PRO & A.I.', 'rank-math' );
|
231 |
$message .= '</strong></p><p>';
|
232 |
+
$message .= '<ul>
|
233 |
+
<li>' . esc_html__( 'Unlimited Websites', 'rank-math' ) . '</li>
|
234 |
+
<li>' . esc_html__( 'Content A.I. (Artificial Intelligence)', 'rank-math' ) . '</li>
|
235 |
+
<li>' . esc_html__( 'Keyword Rank Tracker', 'rank-math' ) . '</li>
|
236 |
+
<li>' . esc_html__( 'Powerful Schema Generator', 'rank-math' ) . '</li>
|
237 |
+
<li>' . esc_html__( '24x7 Premium Support', 'rank-math' ) . '</li>
|
238 |
+
<li>' . esc_html__( 'SEO Email Reports', 'rank-math' ) . '</li>
|
239 |
+
<li>' . esc_html__( 'and Many More…', 'rank-math' ) . '</li>
|
240 |
+
</ul>';
|
241 |
$message .= '<p>
|
242 |
+
<a href="https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Upgrade%20Notice%201%20New%20Yes&utm_campaign=WP" class="button rank-math-dismiss-pro-notice rank-math-upgrade-action" target="_blank" rel="noopener noreferrer"><strong>' . esc_html__( 'Yes, I want better SEO', 'rank-math' ) . '</strong></a><a href="#" class="rank-math-dismiss-pro-notice rank-math-maybe-later-action">' . esc_html__( 'No, maybe later', 'rank-math' ) . '</a><a href="#" class="rank-math-dismiss-pro-notice rank-math-already-upgraded-action">' . esc_html__( 'I already purchased', 'rank-math' ) . '</a>
|
|
|
|
|
243 |
</p>';
|
244 |
break;
|
245 |
}
|
includes/class-update-email.php
CHANGED
@@ -142,7 +142,7 @@ class Update_Email {
|
|
142 |
'name' => __( 'Rank Math Free', 'rank-math' ),
|
143 |
'old_version' => $old_version,
|
144 |
'new_version' => $new_version,
|
145 |
-
'changelog' => __( 'https://rankmath.com/changelog
|
146 |
],
|
147 |
];
|
148 |
|
142 |
'name' => __( 'Rank Math Free', 'rank-math' ),
|
143 |
'old_version' => $old_version,
|
144 |
'new_version' => $new_version,
|
145 |
+
'changelog' => __( 'https://rankmath.com/changelog/free', 'rank-math' ),
|
146 |
],
|
147 |
];
|
148 |
|
includes/modules/schema/class-frontend.php
CHANGED
@@ -246,7 +246,7 @@ class Frontend {
|
|
246 |
$schemas
|
247 |
);
|
248 |
|
249 |
-
$faq_key = ! empty( $faq_data ) ? key( array_filter( $faq_data ) ) : '';
|
250 |
if ( ! $faq_key ) {
|
251 |
return $schemas;
|
252 |
}
|
246 |
$schemas
|
247 |
);
|
248 |
|
249 |
+
$faq_key = is_array( $faq_data ) && ! empty( $faq_data ) ? key( array_filter( $faq_data ) ) : '';
|
250 |
if ( ! $faq_key ) {
|
251 |
return $schemas;
|
252 |
}
|
includes/modules/schema/class-jsonld.php
CHANGED
@@ -171,6 +171,10 @@ class JsonLD {
|
|
171 |
* @return array
|
172 |
*/
|
173 |
private function validate_schema( $data ) {
|
|
|
|
|
|
|
|
|
174 |
foreach ( $data as $id => $value ) {
|
175 |
if ( is_array( $value ) ) {
|
176 |
// Remove aline @type.
|
171 |
* @return array
|
172 |
*/
|
173 |
private function validate_schema( $data ) {
|
174 |
+
if ( ! is_array( $data ) || empty( $data ) ) {
|
175 |
+
return $data;
|
176 |
+
}
|
177 |
+
|
178 |
foreach ( $data as $id => $value ) {
|
179 |
if ( is_array( $value ) ) {
|
180 |
// Remove aline @type.
|
rank-math.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
*
|
10 |
* @wordpress-plugin
|
11 |
* Plugin Name: Rank Math SEO
|
12 |
-
* Version: 1.0.81
|
13 |
* Plugin URI: https://s.rankmath.com/home
|
14 |
* Description: Rank Math is a revolutionary SEO product that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible.
|
15 |
* Author: Rank Math
|
@@ -34,7 +34,7 @@ final class RankMath {
|
|
34 |
*
|
35 |
* @var string
|
36 |
*/
|
37 |
-
public $version = '1.0.81';
|
38 |
|
39 |
/**
|
40 |
* Rank Math database version.
|
9 |
*
|
10 |
* @wordpress-plugin
|
11 |
* Plugin Name: Rank Math SEO
|
12 |
+
* Version: 1.0.81.1
|
13 |
* Plugin URI: https://s.rankmath.com/home
|
14 |
* Description: Rank Math is a revolutionary SEO product that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible.
|
15 |
* Author: Rank Math
|
34 |
*
|
35 |
* @var string
|
36 |
*/
|
37 |
+
public $version = '1.0.81.1';
|
38 |
|
39 |
/**
|
40 |
* Rank Math database version.
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: seo, sitemap, google search console, schema, redirection, WordPress SEO
|
|
5 |
Tested up to: 5.9
|
6 |
Requires at least: 5.6
|
7 |
Requires PHP: 7.2
|
8 |
-
Stable tag: 1.0.81
|
9 |
License: GPL-2.0+
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
|
@@ -144,7 +144,7 @@ Even with significantly more features than other plugins, Rank Math SEO loads am
|
|
144 |
|
145 |
* **Quick Edit SEO Details** - Go through a lot of posts/pages quickly by ensuring they are optimized for search engines. Quickly edit multiple SEO fields at once using Rank Math SEO.
|
146 |
|
147 |
-
* **[Instant Indexing for Bing](https://rankmath.com/
|
148 |
|
149 |
* **[Instant Indexing for Google](https://rankmath.com/blog/google-indexing-api/)** - Instantly getting indexed by Google used to be reserved to huge brands and large websites. Not anymore. Just about anyone can take advantage of Google’s Instant Indexing feature using Rank Math SEO.
|
150 |
|
@@ -368,7 +368,7 @@ and many more
|
|
368 |
✔ Open External Links in New Tabs
|
369 |
✔ Nofollow External Links
|
370 |
✔ `Noindex` Paginated, Archive, Search Result Pages
|
371 |
-
✔ Instant Indexing for Bing [Also Google using our <a href="https://rankmath.com/blog/google-indexing-api/" target="_blank">Instant Indexing Plugin</a>]
|
372 |
|
373 |
**WooCommerce SEO**
|
374 |
✔ Automatic Schema for WooCommerce Products
|
@@ -581,6 +581,13 @@ Please drop us an email at support@rankmath.com and we would be more than happy
|
|
581 |
|
582 |
== Changelog ==
|
583 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
584 |
= 1.0.81 [Jan 26, 2022] =
|
585 |
* Added: [HUGE!] [Introducing IndexNow integration](https://rankmath.com/kb/how-to-use-indexnow/). We have replaced the old Bing Instant Indexing API with the latest IndexNow API. This new API also supports Yandex
|
586 |
* Added: [Submission Log in the Instant Indexing](https://rankmath.com/kb/how-to-use-indexnow/#checking-the-history) Settings page to monitor last 100 submissions and removed regular submission notifications
|
5 |
Tested up to: 5.9
|
6 |
Requires at least: 5.6
|
7 |
Requires PHP: 7.2
|
8 |
+
Stable tag: 1.0.81.1
|
9 |
License: GPL-2.0+
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
|
144 |
|
145 |
* **Quick Edit SEO Details** - Go through a lot of posts/pages quickly by ensuring they are optimized for search engines. Quickly edit multiple SEO fields at once using Rank Math SEO.
|
146 |
|
147 |
+
* **[Instant Indexing for Bing & Yandex](https://rankmath.com/kb/how-to-use-indexnow/)** - Get your content instantly indexed by Bing & Yandex using their IndexNow API.
|
148 |
|
149 |
* **[Instant Indexing for Google](https://rankmath.com/blog/google-indexing-api/)** - Instantly getting indexed by Google used to be reserved to huge brands and large websites. Not anymore. Just about anyone can take advantage of Google’s Instant Indexing feature using Rank Math SEO.
|
150 |
|
368 |
✔ Open External Links in New Tabs
|
369 |
✔ Nofollow External Links
|
370 |
✔ `Noindex` Paginated, Archive, Search Result Pages
|
371 |
+
✔ Instant Indexing for Bing & Yandex [Also Google using our <a href="https://rankmath.com/blog/google-indexing-api/" target="_blank">Instant Indexing Plugin</a>]
|
372 |
|
373 |
**WooCommerce SEO**
|
374 |
✔ Automatic Schema for WooCommerce Products
|
581 |
|
582 |
== Changelog ==
|
583 |
|
584 |
+
= 1.0.81.1 [Jan 27, 2022] =
|
585 |
+
* Fixed: [Variable dropdown](https://rankmath.com/kb/variables-in-seo-title-description/) was not working with the WordPress v5.9
|
586 |
+
* Fixed: [SEO Panel](https://rankmath.com/blog/divi-seo/) was not appearing on Divi's frontend editor for WordPress v5.9
|
587 |
+
* Fixed: PHP warnings for various non-arrays on some setups
|
588 |
+
* Fixed: Wrong changelog link in the [Update email](https://rankmath.com/kb/version-control/#update-notification-email)
|
589 |
+
|
590 |
+
|
591 |
= 1.0.81 [Jan 26, 2022] =
|
592 |
* Added: [HUGE!] [Introducing IndexNow integration](https://rankmath.com/kb/how-to-use-indexnow/). We have replaced the old Bing Instant Indexing API with the latest IndexNow API. This new API also supports Yandex
|
593 |
* Added: [Submission Log in the Instant Indexing](https://rankmath.com/kb/how-to-use-indexnow/#checking-the-history) Settings page to monitor last 100 submissions and removed regular submission notifications
|
vendor/composer/ClassLoader.php
CHANGED
@@ -42,75 +42,30 @@ namespace Composer\Autoload;
|
|
42 |
*/
|
43 |
class ClassLoader
|
44 |
{
|
45 |
-
/** @var ?string */
|
46 |
private $vendorDir;
|
47 |
|
48 |
// PSR-4
|
49 |
-
/**
|
50 |
-
* @var array[]
|
51 |
-
* @psalm-var array<string, array<string, int>>
|
52 |
-
*/
|
53 |
private $prefixLengthsPsr4 = array();
|
54 |
-
/**
|
55 |
-
* @var array[]
|
56 |
-
* @psalm-var array<string, array<int, string>>
|
57 |
-
*/
|
58 |
private $prefixDirsPsr4 = array();
|
59 |
-
/**
|
60 |
-
* @var array[]
|
61 |
-
* @psalm-var array<string, string>
|
62 |
-
*/
|
63 |
private $fallbackDirsPsr4 = array();
|
64 |
|
65 |
// PSR-0
|
66 |
-
/**
|
67 |
-
* @var array[]
|
68 |
-
* @psalm-var array<string, array<string, string[]>>
|
69 |
-
*/
|
70 |
private $prefixesPsr0 = array();
|
71 |
-
/**
|
72 |
-
* @var array[]
|
73 |
-
* @psalm-var array<string, string>
|
74 |
-
*/
|
75 |
private $fallbackDirsPsr0 = array();
|
76 |
|
77 |
-
/** @var bool */
|
78 |
private $useIncludePath = false;
|
79 |
-
|
80 |
-
/**
|
81 |
-
* @var string[]
|
82 |
-
* @psalm-var array<string, string>
|
83 |
-
*/
|
84 |
private $classMap = array();
|
85 |
-
|
86 |
-
/** @var bool */
|
87 |
private $classMapAuthoritative = false;
|
88 |
-
|
89 |
-
/**
|
90 |
-
* @var bool[]
|
91 |
-
* @psalm-var array<string, bool>
|
92 |
-
*/
|
93 |
private $missingClasses = array();
|
94 |
-
|
95 |
-
/** @var ?string */
|
96 |
private $apcuPrefix;
|
97 |
|
98 |
-
/**
|
99 |
-
* @var self[]
|
100 |
-
*/
|
101 |
private static $registeredLoaders = array();
|
102 |
|
103 |
-
/**
|
104 |
-
* @param ?string $vendorDir
|
105 |
-
*/
|
106 |
public function __construct($vendorDir = null)
|
107 |
{
|
108 |
$this->vendorDir = $vendorDir;
|
109 |
}
|
110 |
|
111 |
-
/**
|
112 |
-
* @return string[]
|
113 |
-
*/
|
114 |
public function getPrefixes()
|
115 |
{
|
116 |
if (!empty($this->prefixesPsr0)) {
|
@@ -120,47 +75,28 @@ class ClassLoader
|
|
120 |
return array();
|
121 |
}
|
122 |
|
123 |
-
/**
|
124 |
-
* @return array[]
|
125 |
-
* @psalm-return array<string, array<int, string>>
|
126 |
-
*/
|
127 |
public function getPrefixesPsr4()
|
128 |
{
|
129 |
return $this->prefixDirsPsr4;
|
130 |
}
|
131 |
|
132 |
-
/**
|
133 |
-
* @return array[]
|
134 |
-
* @psalm-return array<string, string>
|
135 |
-
*/
|
136 |
public function getFallbackDirs()
|
137 |
{
|
138 |
return $this->fallbackDirsPsr0;
|
139 |
}
|
140 |
|
141 |
-
/**
|
142 |
-
* @return array[]
|
143 |
-
* @psalm-return array<string, string>
|
144 |
-
*/
|
145 |
public function getFallbackDirsPsr4()
|
146 |
{
|
147 |
return $this->fallbackDirsPsr4;
|
148 |
}
|
149 |
|
150 |
-
/**
|
151 |
-
* @return string[] Array of classname => path
|
152 |
-
* @psalm-var array<string, string>
|
153 |
-
*/
|
154 |
public function getClassMap()
|
155 |
{
|
156 |
return $this->classMap;
|
157 |
}
|
158 |
|
159 |
/**
|
160 |
-
* @param
|
161 |
-
* @psalm-param array<string, string> $classMap
|
162 |
-
*
|
163 |
-
* @return void
|
164 |
*/
|
165 |
public function addClassMap(array $classMap)
|
166 |
{
|
@@ -175,11 +111,9 @@ class ClassLoader
|
|
175 |
* Registers a set of PSR-0 directories for a given prefix, either
|
176 |
* appending or prepending to the ones previously set for this prefix.
|
177 |
*
|
178 |
-
* @param string
|
179 |
-
* @param
|
180 |
-
* @param bool
|
181 |
-
*
|
182 |
-
* @return void
|
183 |
*/
|
184 |
public function add($prefix, $paths, $prepend = false)
|
185 |
{
|
@@ -222,13 +156,11 @@ class ClassLoader
|
|
222 |
* Registers a set of PSR-4 directories for a given namespace, either
|
223 |
* appending or prepending to the ones previously set for this namespace.
|
224 |
*
|
225 |
-
* @param string
|
226 |
-
* @param
|
227 |
-
* @param bool
|
228 |
*
|
229 |
* @throws \InvalidArgumentException
|
230 |
-
*
|
231 |
-
* @return void
|
232 |
*/
|
233 |
public function addPsr4($prefix, $paths, $prepend = false)
|
234 |
{
|
@@ -272,10 +204,8 @@ class ClassLoader
|
|
272 |
* Registers a set of PSR-0 directories for a given prefix,
|
273 |
* replacing any others previously set for this prefix.
|
274 |
*
|
275 |
-
* @param string
|
276 |
-
* @param
|
277 |
-
*
|
278 |
-
* @return void
|
279 |
*/
|
280 |
public function set($prefix, $paths)
|
281 |
{
|
@@ -290,12 +220,10 @@ class ClassLoader
|
|
290 |
* Registers a set of PSR-4 directories for a given namespace,
|
291 |
* replacing any others previously set for this namespace.
|
292 |
*
|
293 |
-
* @param string
|
294 |
-
* @param
|
295 |
*
|
296 |
* @throws \InvalidArgumentException
|
297 |
-
*
|
298 |
-
* @return void
|
299 |
*/
|
300 |
public function setPsr4($prefix, $paths)
|
301 |
{
|
@@ -315,8 +243,6 @@ class ClassLoader
|
|
315 |
* Turns on searching the include path for class files.
|
316 |
*
|
317 |
* @param bool $useIncludePath
|
318 |
-
*
|
319 |
-
* @return void
|
320 |
*/
|
321 |
public function setUseIncludePath($useIncludePath)
|
322 |
{
|
@@ -339,8 +265,6 @@ class ClassLoader
|
|
339 |
* that have not been registered with the class map.
|
340 |
*
|
341 |
* @param bool $classMapAuthoritative
|
342 |
-
*
|
343 |
-
* @return void
|
344 |
*/
|
345 |
public function setClassMapAuthoritative($classMapAuthoritative)
|
346 |
{
|
@@ -361,8 +285,6 @@ class ClassLoader
|
|
361 |
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
362 |
*
|
363 |
* @param string|null $apcuPrefix
|
364 |
-
*
|
365 |
-
* @return void
|
366 |
*/
|
367 |
public function setApcuPrefix($apcuPrefix)
|
368 |
{
|
@@ -383,8 +305,6 @@ class ClassLoader
|
|
383 |
* Registers this instance as an autoloader.
|
384 |
*
|
385 |
* @param bool $prepend Whether to prepend the autoloader or not
|
386 |
-
*
|
387 |
-
* @return void
|
388 |
*/
|
389 |
public function register($prepend = false)
|
390 |
{
|
@@ -404,8 +324,6 @@ class ClassLoader
|
|
404 |
|
405 |
/**
|
406 |
* Unregisters this instance as an autoloader.
|
407 |
-
*
|
408 |
-
* @return void
|
409 |
*/
|
410 |
public function unregister()
|
411 |
{
|
@@ -420,7 +338,7 @@ class ClassLoader
|
|
420 |
* Loads the given class or interface.
|
421 |
*
|
422 |
* @param string $class The name of the class
|
423 |
-
* @return
|
424 |
*/
|
425 |
public function loadClass($class)
|
426 |
{
|
@@ -429,8 +347,6 @@ class ClassLoader
|
|
429 |
|
430 |
return true;
|
431 |
}
|
432 |
-
|
433 |
-
return null;
|
434 |
}
|
435 |
|
436 |
/**
|
@@ -485,11 +401,6 @@ class ClassLoader
|
|
485 |
return self::$registeredLoaders;
|
486 |
}
|
487 |
|
488 |
-
/**
|
489 |
-
* @param string $class
|
490 |
-
* @param string $ext
|
491 |
-
* @return string|false
|
492 |
-
*/
|
493 |
private function findFileWithExtension($class, $ext)
|
494 |
{
|
495 |
// PSR-4 lookup
|
@@ -561,10 +472,6 @@ class ClassLoader
|
|
561 |
* Scope isolated include.
|
562 |
*
|
563 |
* Prevents access to $this/self from included files.
|
564 |
-
*
|
565 |
-
* @param string $file
|
566 |
-
* @return void
|
567 |
-
* @private
|
568 |
*/
|
569 |
function includeFile($file)
|
570 |
{
|
42 |
*/
|
43 |
class ClassLoader
|
44 |
{
|
|
|
45 |
private $vendorDir;
|
46 |
|
47 |
// PSR-4
|
|
|
|
|
|
|
|
|
48 |
private $prefixLengthsPsr4 = array();
|
|
|
|
|
|
|
|
|
49 |
private $prefixDirsPsr4 = array();
|
|
|
|
|
|
|
|
|
50 |
private $fallbackDirsPsr4 = array();
|
51 |
|
52 |
// PSR-0
|
|
|
|
|
|
|
|
|
53 |
private $prefixesPsr0 = array();
|
|
|
|
|
|
|
|
|
54 |
private $fallbackDirsPsr0 = array();
|
55 |
|
|
|
56 |
private $useIncludePath = false;
|
|
|
|
|
|
|
|
|
|
|
57 |
private $classMap = array();
|
|
|
|
|
58 |
private $classMapAuthoritative = false;
|
|
|
|
|
|
|
|
|
|
|
59 |
private $missingClasses = array();
|
|
|
|
|
60 |
private $apcuPrefix;
|
61 |
|
|
|
|
|
|
|
62 |
private static $registeredLoaders = array();
|
63 |
|
|
|
|
|
|
|
64 |
public function __construct($vendorDir = null)
|
65 |
{
|
66 |
$this->vendorDir = $vendorDir;
|
67 |
}
|
68 |
|
|
|
|
|
|
|
69 |
public function getPrefixes()
|
70 |
{
|
71 |
if (!empty($this->prefixesPsr0)) {
|
75 |
return array();
|
76 |
}
|
77 |
|
|
|
|
|
|
|
|
|
78 |
public function getPrefixesPsr4()
|
79 |
{
|
80 |
return $this->prefixDirsPsr4;
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
83 |
public function getFallbackDirs()
|
84 |
{
|
85 |
return $this->fallbackDirsPsr0;
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
88 |
public function getFallbackDirsPsr4()
|
89 |
{
|
90 |
return $this->fallbackDirsPsr4;
|
91 |
}
|
92 |
|
|
|
|
|
|
|
|
|
93 |
public function getClassMap()
|
94 |
{
|
95 |
return $this->classMap;
|
96 |
}
|
97 |
|
98 |
/**
|
99 |
+
* @param array $classMap Class to filename map
|
|
|
|
|
|
|
100 |
*/
|
101 |
public function addClassMap(array $classMap)
|
102 |
{
|
111 |
* Registers a set of PSR-0 directories for a given prefix, either
|
112 |
* appending or prepending to the ones previously set for this prefix.
|
113 |
*
|
114 |
+
* @param string $prefix The prefix
|
115 |
+
* @param array|string $paths The PSR-0 root directories
|
116 |
+
* @param bool $prepend Whether to prepend the directories
|
|
|
|
|
117 |
*/
|
118 |
public function add($prefix, $paths, $prepend = false)
|
119 |
{
|
156 |
* Registers a set of PSR-4 directories for a given namespace, either
|
157 |
* appending or prepending to the ones previously set for this namespace.
|
158 |
*
|
159 |
+
* @param string $prefix The prefix/namespace, with trailing '\\'
|
160 |
+
* @param array|string $paths The PSR-4 base directories
|
161 |
+
* @param bool $prepend Whether to prepend the directories
|
162 |
*
|
163 |
* @throws \InvalidArgumentException
|
|
|
|
|
164 |
*/
|
165 |
public function addPsr4($prefix, $paths, $prepend = false)
|
166 |
{
|
204 |
* Registers a set of PSR-0 directories for a given prefix,
|
205 |
* replacing any others previously set for this prefix.
|
206 |
*
|
207 |
+
* @param string $prefix The prefix
|
208 |
+
* @param array|string $paths The PSR-0 base directories
|
|
|
|
|
209 |
*/
|
210 |
public function set($prefix, $paths)
|
211 |
{
|
220 |
* Registers a set of PSR-4 directories for a given namespace,
|
221 |
* replacing any others previously set for this namespace.
|
222 |
*
|
223 |
+
* @param string $prefix The prefix/namespace, with trailing '\\'
|
224 |
+
* @param array|string $paths The PSR-4 base directories
|
225 |
*
|
226 |
* @throws \InvalidArgumentException
|
|
|
|
|
227 |
*/
|
228 |
public function setPsr4($prefix, $paths)
|
229 |
{
|
243 |
* Turns on searching the include path for class files.
|
244 |
*
|
245 |
* @param bool $useIncludePath
|
|
|
|
|
246 |
*/
|
247 |
public function setUseIncludePath($useIncludePath)
|
248 |
{
|
265 |
* that have not been registered with the class map.
|
266 |
*
|
267 |
* @param bool $classMapAuthoritative
|
|
|
|
|
268 |
*/
|
269 |
public function setClassMapAuthoritative($classMapAuthoritative)
|
270 |
{
|
285 |
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
286 |
*
|
287 |
* @param string|null $apcuPrefix
|
|
|
|
|
288 |
*/
|
289 |
public function setApcuPrefix($apcuPrefix)
|
290 |
{
|
305 |
* Registers this instance as an autoloader.
|
306 |
*
|
307 |
* @param bool $prepend Whether to prepend the autoloader or not
|
|
|
|
|
308 |
*/
|
309 |
public function register($prepend = false)
|
310 |
{
|
324 |
|
325 |
/**
|
326 |
* Unregisters this instance as an autoloader.
|
|
|
|
|
327 |
*/
|
328 |
public function unregister()
|
329 |
{
|
338 |
* Loads the given class or interface.
|
339 |
*
|
340 |
* @param string $class The name of the class
|
341 |
+
* @return bool|null True if loaded, null otherwise
|
342 |
*/
|
343 |
public function loadClass($class)
|
344 |
{
|
347 |
|
348 |
return true;
|
349 |
}
|
|
|
|
|
350 |
}
|
351 |
|
352 |
/**
|
401 |
return self::$registeredLoaders;
|
402 |
}
|
403 |
|
|
|
|
|
|
|
|
|
|
|
404 |
private function findFileWithExtension($class, $ext)
|
405 |
{
|
406 |
// PSR-4 lookup
|
472 |
* Scope isolated include.
|
473 |
*
|
474 |
* Prevents access to $this/self from included files.
|
|
|
|
|
|
|
|
|
475 |
*/
|
476 |
function includeFile($file)
|
477 |
{
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
|
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
-
'reference' => '
|
34 |
'name' => 'rankmath/seo-by-rank-math',
|
35 |
),
|
36 |
'versions' =>
|
@@ -64,12 +64,12 @@ private static $installed = array (
|
|
64 |
),
|
65 |
'mythemeshop/wordpress-helpers' =>
|
66 |
array (
|
67 |
-
'pretty_version' => 'v1.1.
|
68 |
-
'version' => '1.1.
|
69 |
'aliases' =>
|
70 |
array (
|
71 |
),
|
72 |
-
'reference' => '
|
73 |
),
|
74 |
'rankmath/seo-by-rank-math' =>
|
75 |
array (
|
@@ -78,7 +78,7 @@ private static $installed = array (
|
|
78 |
'aliases' =>
|
79 |
array (
|
80 |
),
|
81 |
-
'reference' => '
|
82 |
),
|
83 |
'woocommerce/action-scheduler' =>
|
84 |
array (
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
+
'reference' => '87e8930fa65b779f0c2fa9958e4cfcc3e3dfcc29',
|
34 |
'name' => 'rankmath/seo-by-rank-math',
|
35 |
),
|
36 |
'versions' =>
|
64 |
),
|
65 |
'mythemeshop/wordpress-helpers' =>
|
66 |
array (
|
67 |
+
'pretty_version' => 'v1.1.18',
|
68 |
+
'version' => '1.1.18.0',
|
69 |
'aliases' =>
|
70 |
array (
|
71 |
),
|
72 |
+
'reference' => '6294c995e9365bee25fcfa8f3c045800620a5278',
|
73 |
),
|
74 |
'rankmath/seo-by-rank-math' =>
|
75 |
array (
|
78 |
'aliases' =>
|
79 |
array (
|
80 |
),
|
81 |
+
'reference' => '87e8930fa65b779f0c2fa9958e4cfcc3e3dfcc29',
|
82 |
),
|
83 |
'woocommerce/action-scheduler' =>
|
84 |
array (
|
vendor/composer/installed.json
CHANGED
@@ -176,23 +176,23 @@
|
|
176 |
},
|
177 |
{
|
178 |
"name": "mythemeshop/wordpress-helpers",
|
179 |
-
"version": "v1.1.
|
180 |
-
"version_normalized": "1.1.
|
181 |
"source": {
|
182 |
"type": "git",
|
183 |
"url": "https://github.com/MyThemeShopTeam/wordpress-helpers.git",
|
184 |
-
"reference": "
|
185 |
},
|
186 |
"dist": {
|
187 |
"type": "zip",
|
188 |
-
"url": "https://api.github.com/repos/MyThemeShopTeam/wordpress-helpers/zipball/
|
189 |
-
"reference": "
|
190 |
"shasum": ""
|
191 |
},
|
192 |
"require": {
|
193 |
"php": ">=5.6"
|
194 |
},
|
195 |
-
"time": "2022-01-
|
196 |
"type": "library",
|
197 |
"installation-source": "dist",
|
198 |
"autoload": {
|
@@ -216,7 +216,7 @@
|
|
216 |
"description": "Collection of utilities required during development of a plugin or theme for WordPress. Build for developers by developers.",
|
217 |
"support": {
|
218 |
"issues": "https://github.com/MyThemeShopTeam/wordpress-helpers/issues",
|
219 |
-
"source": "https://github.com/MyThemeShopTeam/wordpress-helpers/tree/v1.1.
|
220 |
},
|
221 |
"install-path": "../mythemeshop/wordpress-helpers"
|
222 |
},
|
176 |
},
|
177 |
{
|
178 |
"name": "mythemeshop/wordpress-helpers",
|
179 |
+
"version": "v1.1.18",
|
180 |
+
"version_normalized": "1.1.18.0",
|
181 |
"source": {
|
182 |
"type": "git",
|
183 |
"url": "https://github.com/MyThemeShopTeam/wordpress-helpers.git",
|
184 |
+
"reference": "6294c995e9365bee25fcfa8f3c045800620a5278"
|
185 |
},
|
186 |
"dist": {
|
187 |
"type": "zip",
|
188 |
+
"url": "https://api.github.com/repos/MyThemeShopTeam/wordpress-helpers/zipball/6294c995e9365bee25fcfa8f3c045800620a5278",
|
189 |
+
"reference": "6294c995e9365bee25fcfa8f3c045800620a5278",
|
190 |
"shasum": ""
|
191 |
},
|
192 |
"require": {
|
193 |
"php": ">=5.6"
|
194 |
},
|
195 |
+
"time": "2022-01-27T12:13:00+00:00",
|
196 |
"type": "library",
|
197 |
"installation-source": "dist",
|
198 |
"autoload": {
|
216 |
"description": "Collection of utilities required during development of a plugin or theme for WordPress. Build for developers by developers.",
|
217 |
"support": {
|
218 |
"issues": "https://github.com/MyThemeShopTeam/wordpress-helpers/issues",
|
219 |
+
"source": "https://github.com/MyThemeShopTeam/wordpress-helpers/tree/v1.1.18"
|
220 |
},
|
221 |
"install-path": "../mythemeshop/wordpress-helpers"
|
222 |
},
|
vendor/composer/installed.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' => '
|
10 |
'name' => 'rankmath/seo-by-rank-math',
|
11 |
),
|
12 |
'versions' =>
|
@@ -40,12 +40,12 @@
|
|
40 |
),
|
41 |
'mythemeshop/wordpress-helpers' =>
|
42 |
array (
|
43 |
-
'pretty_version' => 'v1.1.
|
44 |
-
'version' => '1.1.
|
45 |
'aliases' =>
|
46 |
array (
|
47 |
),
|
48 |
-
'reference' => '
|
49 |
),
|
50 |
'rankmath/seo-by-rank-math' =>
|
51 |
array (
|
@@ -54,7 +54,7 @@
|
|
54 |
'aliases' =>
|
55 |
array (
|
56 |
),
|
57 |
-
'reference' => '
|
58 |
),
|
59 |
'woocommerce/action-scheduler' =>
|
60 |
array (
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '87e8930fa65b779f0c2fa9958e4cfcc3e3dfcc29',
|
10 |
'name' => 'rankmath/seo-by-rank-math',
|
11 |
),
|
12 |
'versions' =>
|
40 |
),
|
41 |
'mythemeshop/wordpress-helpers' =>
|
42 |
array (
|
43 |
+
'pretty_version' => 'v1.1.18',
|
44 |
+
'version' => '1.1.18.0',
|
45 |
'aliases' =>
|
46 |
array (
|
47 |
),
|
48 |
+
'reference' => '6294c995e9365bee25fcfa8f3c045800620a5278',
|
49 |
),
|
50 |
'rankmath/seo-by-rank-math' =>
|
51 |
array (
|
54 |
'aliases' =>
|
55 |
array (
|
56 |
),
|
57 |
+
'reference' => '87e8930fa65b779f0c2fa9958e4cfcc3e3dfcc29',
|
58 |
),
|
59 |
'woocommerce/action-scheduler' =>
|
60 |
array (
|
vendor/mythemeshop/wordpress-helpers/src/admin/class-list-table.php
CHANGED
@@ -52,7 +52,7 @@ class List_Table extends WP_List_Table {
|
|
52 |
* @return string
|
53 |
*/
|
54 |
protected function get_orderby( $default = 'create_date' ) {
|
55 |
-
return Param::get( 'orderby', $default,
|
56 |
}
|
57 |
|
58 |
/**
|
@@ -61,7 +61,7 @@ class List_Table extends WP_List_Table {
|
|
61 |
* @return bool|string
|
62 |
*/
|
63 |
protected function get_search() {
|
64 |
-
return Param::request( 's', false,
|
65 |
}
|
66 |
|
67 |
/**
|
52 |
* @return string
|
53 |
*/
|
54 |
protected function get_orderby( $default = 'create_date' ) {
|
55 |
+
return Param::get( 'orderby', $default, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH | FILTER_FLAG_STRIP_BACKTICK );
|
56 |
}
|
57 |
|
58 |
/**
|
61 |
* @return bool|string
|
62 |
*/
|
63 |
protected function get_search() {
|
64 |
+
return Param::request( 's', false, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_BACKTICK );
|
65 |
}
|
66 |
|
67 |
/**
|
vendor/mythemeshop/wordpress-helpers/src/helpers/class-wordpress.php
CHANGED
@@ -136,7 +136,7 @@ class WordPress {
|
|
136 |
return sanitize_key( $post_type );
|
137 |
}
|
138 |
|
139 |
-
if ( $post_id = Param::request( 'post_ID' ) ) { // phpcs:ignore
|
140 |
return get_post_type( $post_id );
|
141 |
}
|
142 |
|
136 |
return sanitize_key( $post_type );
|
137 |
}
|
138 |
|
139 |
+
if ( $post_id = Param::request( 'post_ID', 0, FILTER_VALIDATE_INT ) ) { // phpcs:ignore
|
140 |
return get_post_type( $post_id );
|
141 |
}
|
142 |
|
vendor/mythemeshop/wordpress-helpers/wordpress-helpers.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
*
|
10 |
* @wordpress-plugin
|
11 |
* Plugin Name: WordPress Helpers
|
12 |
-
* Version: 1.1.
|
13 |
* Plugin URI: http://mythemeshop.com/wordpress-helpers/
|
14 |
* Description: Collection of utilities required during development of a plugin or theme for WordPress. Build for developers by developers.
|
15 |
* Author: MyThemeShop
|
9 |
*
|
10 |
* @wordpress-plugin
|
11 |
* Plugin Name: WordPress Helpers
|
12 |
+
* Version: 1.1.18
|
13 |
* Plugin URI: http://mythemeshop.com/wordpress-helpers/
|
14 |
* Description: Collection of utilities required during development of a plugin or theme for WordPress. Build for developers by developers.
|
15 |
* Author: MyThemeShop
|