!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g-1},c.prototype.hasAlias=function(){return!d(this.options.aliases)},c.prototype.addAlias=function(a){this.hasAlias()||(this.options.aliases=[]),this.options.aliases.push(a)},c.prototype.getAliases=function(){return this.options.aliases},b.exports=c}()},{"lodash/defaults":122,"lodash/indexOf":129,"lodash/isEmpty":134}],2:[function(a,b,c){"use strict";var d=a("lodash/forEach"),e=a("lodash/filter"),f=a("lodash/isUndefined"),g=a("./values/replaceVar");!function(){var a=["content","title","snippet_title","snippet_meta","primary_category","data_page_title","data_meta_desc"],b={},c={},h=function(a){this._app=a,this._app.registerPlugin("replaceVariablePlugin",{status:"ready"}),this.registerReplacements(),this.registerModifications(),this.registerEvents()};h.prototype.registerReplacements=function(){this.addReplacement(new g("%%currentdate%%","currentdate")),this.addReplacement(new g("%%currentday%%","currentday")),this.addReplacement(new g("%%currentmonth%%","currentmonth")),this.addReplacement(new g("%%currenttime%%","currenttime")),this.addReplacement(new g("%%currentyear%%","currentyear")),this.addReplacement(new g("%%date%%","date")),this.addReplacement(new g("%%id%%","id")),this.addReplacement(new g("%%page%%","page")),this.addReplacement(new g("%%searchphrase%%","searchphrase")),this.addReplacement(new g("%%sitedesc%%","sitedesc")),this.addReplacement(new g("%%sitename%%","sitename")),this.addReplacement(new g("%%category%%","category")),this.addReplacement(new g("%%focuskw%%","keyword",{source:"app",aliases:["%%keyword%%"]})),this.addReplacement(new g("%%term_description%%","text",{source:"app",scope:["term","category","tag"],aliases:["%%tag_description%%","%%category_description%%"]})),this.addReplacement(new g("%%term_title%%","term_title",{scope:["post","term"]})),this.addReplacement(new g("%%title%%","title",{source:"app",scope:["post","term","page"]})),this.addReplacement(new g("%%parent_title%%","title",{source:"app",scope:["page","category"]})),this.addReplacement(new g("%%excerpt%%","excerpt",{source:"app",scope:["post"],aliases:["%%excerpt_only%%"]})),this.addReplacement(new g("%%primary_category%%","primaryCategory",{source:"app",scope:["post"]})),this.addReplacement(new g("%%sep%%(\\s*%%sep%%)*","sep"))},h.prototype.registerEvents=function(){var a=wpseoReplaceVarsL10n.scope;"post"===a&&jQuery(".categorydiv").each(this.bindTaxonomyEvents.bind(this)),"post"!==a&&"page"!==a||jQuery("#postcustomstuff > #list-table").each(this.bindFieldEvents.bind(this))},h.prototype.addReplacement=function(a){b[a.placeholder]=a},h.prototype.removeReplacement=function(a){delete b[a.getPlaceholder()]},h.prototype.registerModifications=function(){var b=this.replaceVariables.bind(this);d(a,function(a){this._app.registerModification(a,b,"replaceVariablePlugin",10)}.bind(this))},h.prototype.replaceVariables=function(a){return f(a)||(a=this.termtitleReplace(a),a=this.parentReplace(a),a=this.replaceCustomTaxonomy(a),a=this.replacePlaceholders(a)),a},h.prototype.getReplacementSource=function(a){return"app"===a.source?this._app.rawData:"direct"===a.source?"direct":wpseoReplaceVarsL10n.replace_vars},h.prototype.getReplacement=function(a){var b=this.getReplacementSource(a.options);return a.inScope(wpseoReplaceVarsL10n.scope)===!1?"":"direct"===b?a.replacement:b[a.replacement]||""},h.prototype.replacePlaceholders=function(a){return d(b,function(b){a=a.replace(new RegExp(b.getPlaceholder(!0),"g"),this.getReplacement(b))}.bind(this)),a},h.prototype.declareReloaded=function(){this._app.pluginReloaded("replaceVariablePlugin")},h.prototype.getCategoryName=function(a){var b=a.parent("label").clone();return b.children().remove(),b.text().trim()},h.prototype.parseTaxonomies=function(a,b){f(c[b])&&(c[b]={}),d(a,function(a){a=jQuery(a);var d=a.val();c[b][d]={label:this.getCategoryName(a),checked:a.prop("checked")}}.bind(this))},h.prototype.getAvailableTaxonomies=function(a){var b=jQuery(a).find("input[type=checkbox]"),c=jQuery(a).attr("id").replace("taxonomy-","");b.length>0&&this.parseTaxonomies(b,c),this.declareReloaded()},h.prototype.bindTaxonomyEvents=function(a,b){b=jQuery(b),b.on("wpListAddEnd",".categorychecklist",this.getAvailableTaxonomies.bind(this,b)),b.on("change","input[type=checkbox]",this.getAvailableTaxonomies.bind(this,b)),this.getAvailableTaxonomies(b)},h.prototype.replaceCustomTaxonomy=function(a){return d(c,function(b,c){var d="%%ct_"+c+"%%";"category"===c&&(d="%%"+c+"%%"),a=a.replace(d,this.getTaxonomyReplaceVar(c))}.bind(this)),a},h.prototype.getTaxonomyReplaceVar=function(a){var b=[],e=c[a];return f(e)===!0?"":(d(e,function(a){a.checked!==!1&&b.push(a.label)}),jQuery.unique(b).join(", "))},h.prototype.parseFields=function(a){jQuery(a).each(function(a,b){var c=jQuery("#"+b.id+"-key").val(),d=jQuery("#"+b.id+"-value").val();this.addReplacement(new g("%%cf_"+this.sanitizeCustomFieldNames(c)+"%%",d,{source:"direct"}))}.bind(this))},h.prototype.removeFields=function(a){jQuery(a).each(function(a,b){var c=jQuery("#"+b.id+"-key").val();this.removeReplacement("%%cf_"+this.sanitizeCustomFieldNames(c)+"%%")}.bind(this))},h.prototype.sanitizeCustomFieldNames=function(a){return a.replace(" ","_")},h.prototype.getAvailableFields=function(a){this.removeCustomFields();var b=jQuery(a).find("#the-list > tr:visible");b.length>0&&this.parseFields(b),this.declareReloaded()},h.prototype.bindFieldEvents=function(a,b){b=jQuery(b);var c=b.find("#the-list");c.on("wpListDelEnd.wpseoCustomFields",this.getAvailableFields.bind(this,b)),c.on("wpListAddEnd.wpseoCustomFields",this.getAvailableFields.bind(this,b)),c.on("input.wpseoCustomFields",".textarea",this.getAvailableFields.bind(this,b)),c.on("click.wpseoCustomFields",".button + .updatemeta",this.getAvailableFields.bind(this,b)),this.getAvailableFields(b)},h.prototype.removeCustomFields=function(){var a=e(b,function(a,b){return b.indexOf("%%cf_")>-1});d(a,function(a){this.removeReplacement(a)}.bind(this))},h.prototype.termtitleReplace=function(a){var b=this._app.rawData.name;return a=a.replace(/%%term_title%%/g,b)},h.prototype.parentReplace=function(a){var b=jQuery("#parent_id, #parent").eq(0);return this.hasParentTitle(b)&&(a=a.replace(/%%parent_title%%/,this.getParentTitleReplacement(b))),a},h.prototype.hasParentTitle=function(a){return!f(a)&&!f(a.prop("options"))},h.prototype.getParentTitleReplacement=function(a){var b=a.find("option:selected").text();return b===wpseoReplaceVarsL10n.no_parent_text?"":b},window.YoastReplaceVarPlugin=h}()},{"./values/replaceVar":1,"lodash/filter":124,"lodash/forEach":125,"lodash/isUndefined":141}],3:[function(a,b,c){var d=a("./_getNative"),e=a("./_root"),f=d(e,"DataView");b.exports=f},{"./_getNative":68,"./_root":105}],4:[function(a,b,c){function d(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b1?c[e-1]:void 0,h=e>2?c[2]:void 0;for(g=a.length>3&&"function"==typeof g?(e--,g):void 0,h&&f(c[0],c[1],h)&&(g=e<3?void 0:g,e=1),b=Object(b);++dm))return!1;var o=k.get(a);if(o&&k.get(b))return o==b;var p=-1,q=!0,r=c&i?new e:void 0;for(k.set(a,b),k.set(b,a);++p-1&&a%1==0&&a-1}var e=a("./_assocIndexOf");b.exports=d},{"./_assocIndexOf":23}],89:[function(a,b,c){function d(a,b){var c=this.__data__,d=e(c,a);return d<0?(++this.size,c.push([a,b])):c[d][1]=b,this}var e=a("./_assocIndexOf");b.exports=d},{"./_assocIndexOf":23}],90:[function(a,b,c){function d(){this.size=0,this.__data__={hash:new e,map:new(g||f),string:new e}}var e=a("./_Hash"),f=a("./_ListCache"),g=a("./_Map");b.exports=d},{"./_Hash":4,"./_ListCache":5,"./_Map":6}],91:[function(a,b,c){function d(a){var b=e(this,a).delete(a);return this.size-=b?1:0,b}var e=a("./_getMapData");b.exports=d},{"./_getMapData":66}],92:[function(a,b,c){function d(a){return e(this,a).get(a)}var e=a("./_getMapData");b.exports=d},{"./_getMapData":66}],93:[function(a,b,c){function d(a){return e(this,a).has(a)}var e=a("./_getMapData");b.exports=d},{"./_getMapData":66}],94:[function(a,b,c){function d(a,b){var c=e(this,a),d=c.size;return c.set(a,b),this.size+=c.size==d?0:1,this}var e=a("./_getMapData");b.exports=d},{"./_getMapData":66}],95:[function(a,b,c){function d(a){var b=-1,c=Array(a.size);return a.forEach(function(a,d){c[++b]=[d,a]}),c}b.exports=d},{}],96:[function(a,b,c){function d(a,b){return function(c){return null!=c&&(c[a]===b&&(void 0!==b||a in Object(c)))}}b.exports=d},{}],97:[function(a,b,c){function d(a){var b=e(a,function(a){return c.size===f&&c.clear(),a}),c=b.cache;return b}var e=a("./memoize"),f=500;b.exports=d},{"./memoize":144}],98:[function(a,b,c){var d=a("./_getNative"),e=d(Object,"create");b.exports=e},{"./_getNative":68}],99:[function(a,b,c){var d=a("./_overArg"),e=d(Object.keys,Object);b.exports=e},{"./_overArg":103}],100:[function(a,b,c){function d(a){var b=[];if(null!=a)for(var c in Object(a))b.push(c);return b}b.exports=d},{}],101:[function(a,b,c){var d=a("./_freeGlobal"),e="object"==typeof c&&c&&!c.nodeType&&c,f=e&&"object"==typeof b&&b&&!b.nodeType&&b,g=f&&f.exports===e,h=g&&d.process,i=function(){try{return h&&h.binding&&h.binding("util")}catch(a){}}();b.exports=i},{"./_freeGlobal":65}],102:[function(a,b,c){function d(a){return f.call(a)}var e=Object.prototype,f=e.toString;b.exports=d},{}],103:[function(a,b,c){function d(a,b){return function(c){return a(b(c))}}b.exports=d},{}],104:[function(a,b,c){function d(a,b,c){return b=f(void 0===b?a.length-1:b,0),function(){for(var d=arguments,g=-1,h=f(d.length-b,0),i=Array(h);++g0){if(++b>=e)return arguments[0]}else b=0;return a.apply(void 0,arguments)}}var e=800,f=16,g=Date.now;b.exports=d},{}],111:[function(a,b,c){function d(){this.__data__=new e,this.size=0}var e=a("./_ListCache");b.exports=d},{"./_ListCache":5}],112:[function(a,b,c){function d(a){var b=this.__data__,c=b.delete(a);return this.size=b.size,c}b.exports=d},{}],113:[function(a,b,c){function d(a){return this.__data__.get(a)}b.exports=d},{}],114:[function(a,b,c){function d(a){return this.__data__.has(a)}b.exports=d},{}],115:[function(a,b,c){function d(a,b){var c=this.__data__;if(c instanceof e){var d=c.__data__;if(!f||d.length-1&&a%1==0&&a<=e}var e=9007199254740991;b.exports=d},{}],137:[function(a,b,c){function d(a){var b=typeof a;return null!=a&&("object"==b||"function"==b)}b.exports=d},{}],138:[function(a,b,c){function d(a){return null!=a&&"object"==typeof a}b.exports=d},{}],139:[function(a,b,c){function d(a){return"symbol"==typeof a||f(a)&&e(a)==g}var e=a("./_baseGetTag"),f=a("./isObjectLike"),g="[object Symbol]";b.exports=d},{"./_baseGetTag":31,"./isObjectLike":138}],140:[function(a,b,c){var d=a("./_baseIsTypedArray"),e=a("./_baseUnary"),f=a("./_nodeUtil"),g=f&&f.isTypedArray,h=g?e(g):d;b.exports=h},{"./_baseIsTypedArray":40,"./_baseUnary":52,"./_nodeUtil":101}],141:[function(a,b,c){function d(a){return void 0===a}b.exports=d},{}],142:[function(a,b,c){function d(a){return g(a)?e(a):f(a)}var e=a("./_arrayLikeKeys"),f=a("./_baseKeys"),g=a("./isArrayLike");b.exports=d},{"./_arrayLikeKeys":18,"./_baseKeys":42,"./isArrayLike":132}],143:[function(a,b,c){function d(a){return g(a)?e(a,!0):f(a)}var e=a("./_arrayLikeKeys"),f=a("./_baseKeysIn"),g=a("./isArrayLike");b.exports=d},{"./_arrayLikeKeys":18,"./_baseKeysIn":43,"./isArrayLike":132}],144:[function(a,b,c){function d(a,b){if("function"!=typeof a||null!=b&&"function"!=typeof b)throw new TypeError(f);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g)||f,g};return c.cache=new(d.Cache||e),c}var e=a("./_MapCache"),f="Expected a function";d.Cache=e,b.exports=d},{"./_MapCache":7}],145:[function(a,b,c){function d(a){return g(a)?e(h(a)):f(a)}var e=a("./_baseProperty"),f=a("./_basePropertyDeep"),g=a("./_isKey"),h=a("./_toKey");b.exports=d},{"./_baseProperty":46,"./_basePropertyDeep":47,"./_isKey":80,"./_toKey":118}],146:[function(a,b,c){function d(){return!1}b.exports=d},{}],147:[function(a,b,c){function d(a){if(!a)return 0===a?a:0;if(a=e(a),a===f||a===-f){var b=a<0?-1:1;return b*g}return a===a?a:0}var e=a("./toNumber"),f=1/0,g=1.7976931348623157e308;b.exports=d},{"./toNumber":149}],148:[function(a,b,c){function d(a){var b=e(a),c=b%1;return b===b?c?b-c:b:0}var e=a("./toFinite");b.exports=d},{"./toFinite":147}],149:[function(a,b,c){function d(a){if("number"==typeof a)return a;if(f(a))return g;if(e(a)){var b="function"==typeof a.valueOf?a.valueOf():a;a=e(b)?b+"":b}if("string"!=typeof a)return 0===a?a:+a;a=a.replace(h,"");var c=j.test(a);return c||k.test(a)?l(a.slice(2),c?2:8):i.test(a)?g:+a}var e=a("./isObject"),f=a("./isSymbol"),g=NaN,h=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,k=/^0o[0-7]+$/i,l=parseInt;b.exports=d},{"./isObject":137,"./isSymbol":139}],150:[function(a,b,c){function d(a){return null==a?"":e(a)}var e=a("./_baseToString");b.exports=d},{"./_baseToString":51}]},{},[2]);