Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ (window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[18],{0:function(e,t){e.exports=React},10:function(e,t,r){var n=r(68),o=r(71);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},104:function(e,t,r){var n=r(131),o=r(40),i=r(3),a=r(44),u=r(55),c=r(56),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),f=!r&&!l&&a(e),p=!r&&!l&&!f&&c(e),d=r||l||f||p,y=d?n(e.length,String):[],h=y.length;for(var v in e)!t&&!s.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,h))||y.push(v);return y}},108:function(e,t,r){var n=r(57),o=r(135),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},109:function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},11:function(e,t){e.exports=window.yoast.styledComponents},115:function(e,t,r){var n=r(136),o=r(137),i=r(138);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},117:function(e,t,r){var n=r(32),o=r(139),i=r(140);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t0&&i(l)?r>1?e(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},197:function(e,t){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},198:function(e,t,r){var n=r(199),o=r(128),i=r(42),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},199:function(e,t){e.exports=function(e){return function(){return e}}},2:function(e,t,r){e.exports=r(91)()},20:function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},200:function(e,t){var r=800,n=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),u=n-(a-i);if(i=a,u>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},206:function(e,t,r){var n=r(42),o=r(146),i=r(147);e.exports=function(e,t){return i(o(e,t,n),e+"")}},23:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},24:function(e,t,r){var n=r(3),o=r(34),i=r(63),a=r(54);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},247:function(e,t,r){var n=r(9),o=r(40),i=r(3),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},25:function(e,t,r){var n=r(76),o=r(77),i=r(78),a=r(79),u=r(80);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}},355:function(e,t){e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1&&e%1==0&&e<=r}},5:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},52:function(e,t,r){var n=r(9),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),r=e[u];try{e[u]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[u]=r:delete e[u]),o}},53:function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},54:function(e,t,r){var n=r(61);e.exports=function(e){return null==e?"":n(e)}},55:function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?r:t)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var a=t;return Array.isArray(t)&&!Array.isArray(r)&&(a=i(t,o)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,i){n.call(t,i)?t[i]&&"object"==typeof t[i]?t[i]=e(t[i],r,o):t.push(r):t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},603:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},61:function(e,t,r){var n=r(9),o=r(31),i=r(3),a=r(15),u=1/0,c=n?n.prototype:void 0,s=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var r=t+"";return"0"==r&&1/t==-u?"-0":r}},63:function(e,t,r){var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(64)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=i},64:function(e,t,r){var n=r(60),o=500;e.exports=function(e){var t=n(e,function(e){return r.size===o&&r.clear(),e}),r=t.cache;return t}},65:function(e,t,r){var n=r(66),o=r(25),i=r(35);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},66:function(e,t,r){var n=r(67),o=r(72),i=r(73),a=r(74),u=r(75);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}},8:function(e,t,r){var n=r(9),o=r(52),i=r(53),a="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?u:a:c&&c in Object(e)?o(e):i(e)}},80:function(e,t,r){var n=r(13);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},81:function(e,t,r){var n=r(14);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},82:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},83:function(e,t,r){var n=r(14);e.exports=function(e){return n(this,e).get(e)}},84:function(e,t,r){var n=r(14);e.exports=function(e){return n(this,e).has(e)}},85:function(e,t,r){var n=r(14);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},880:function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t label");if(0===r.length)return"";var n=r.clone();return n.children().remove(),e.trim(n.text())}(o))}}function h(n){var o,i,a;o=e("#"+n+'checklist input[type="checkbox"]:checked');var u=e("#"+n+"checklist li");u.removeClass("wpseo-term-unchecked wpseo-primary-term wpseo-non-primary-term"),e(".wpseo-primary-category-label").remove(),u.addClass("wpseo-term-unchecked"),o.length<=1||o.each(function(o,u){u=e(u),(i=u.closest("li")).removeClass("wpseo-term-unchecked"),function(t){return 1===e(t).closest("li").children(".wpseo-make-primary-term").length}(u)||function(r,n){var o,i;o=e(n).closest("label"),i=t({taxonomy:f[r],term:o.text()}),o.after(i)}(n,u),u.val()===d(n)?(i.addClass("wpseo-primary-term"),(a=u.closest("label")).find(".wpseo-primary-category-label").remove(),a.append(r({taxonomy:f[n]}))):i.addClass("wpseo-non-primary-term")})}function v(t){y(t,e("#"+t+'checklist input[type="checkbox"]:checked:first').val()),h(t)}function m(e){""===d(e)&&v(e)}function b(){(0,l.default)()&&(0,u.default)(window,"wp.hooks.addFilter",c.default)("editor.PostTaxonomyType",p,function(e){return function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,a.Component),o(r,[{key:"render",value:function(){return wp.element.createElement(s.default,n({OriginalComponent:e},this.props))}}]),r}()})}e.fn.initYstSEOPrimaryCategory=function(){return this.each(function(t,r){var n=e("#"+r.name+"div");h(r.name),n.on("click",'input[type="checkbox"]',function(t){return function(){!1===e(this).prop("checked")&&e(this).val()===d(t)&&v(t),m(t),h(t)}}(r.name)),n.on("wpListAddEnd","#"+r.name+"checklist",function(e){return function(){m(e),h(e)}}(r.name)),n.on("click",".wpseo-make-primary-term",function(t){return function(r){var n;n=e(r.currentTarget).siblings("label").find("input"),y(t,n.val()),h(t),n.focus()}}(r.name))})},e(function(){t=wp.template("primary-term-ui"),r=wp.template("primary-term-screen-reader"),e(_.values(f)).initYstSEOPrimaryCategory(),b()})}(jQuery)},881:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r0&&e.updateReplacementVariable(e.props.primaryTaxonomyId)})}))}},{key:"getSelectedTerms",value:function(e,t){return e.filter(function(e){return t.includes(e.id)})}},{key:"updateSelectedTerms",value:function(e,t){var r=this.getSelectedTerms(e,t);this.setState({selectedTerms:r})}},{key:"onChange",value:function(e){var t=this.props.taxonomy.name;this.updateReplacementVariable(e),this.props.setPrimaryTaxonomyId(t,e),this.input.value=-1===e?"":e}},{key:"updateReplacementVariable",value:function(e){if("category"===this.props.taxonomy.name){var t=this.state.selectedTerms.find(function(t){return t.id===e});this.props.updateReplacementVariable("primary_"+this.props.taxonomy.name,t?t.name:"")}}},{key:"render",value:function(){var e=this.props,t=e.primaryTaxonomyId,r=e.taxonomy;if(this.state.selectedTerms.length<2)return null;var n="yoast-primary-"+r.name+"-picker";return wp.element.createElement(h,{className:"components-base-control__field"},wp.element.createElement("label",{htmlFor:n,className:"components-base-control__label"},(0,c.sprintf)((0,c.__)("Select the primary %s","wordpress-seo"),r.singularLabel.toLowerCase())),wp.element.createElement(d.default,{value:t,onChange:this.onChange,id:n,terms:this.state.selectedTerms}))}}]),t}();v.propTypes={selectedTermIds:i.default.arrayOf(i.default.number),primaryTaxonomyId:i.default.number,setPrimaryTaxonomyId:i.default.func,updateReplacementVariable:i.default.func,receiveEntityRecords:i.default.func,taxonomy:i.default.shape({name:i.default.string,fieldId:i.default.string,restBase:i.default.string,singularLabel:i.default.string})},t.default=(0,u.compose)([(0,a.withSelect)(function(e,t){var r=e("core/editor"),n=e("yoast-seo/editor"),o=t.taxonomy;return{selectedTermIds:r.getEditedPostAttribute(o.restBase)||[],primaryTaxonomyId:n.getPrimaryTaxonomyId(o.name)}}),(0,a.withDispatch)(function(e){var t=e("yoast-seo/editor");return{setPrimaryTaxonomyId:t.setPrimaryTaxonomyId,updateReplacementVariable:t.updateReplacementVariable}})])(v)},883:function(e,t){e.exports=window.wp.apiFetch},884:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isURL=function(e){return o.test(e)},t.getProtocol=function(e){var t=/^([^\s:]+:)/.exec(e);if(t)return t[1]},t.isValidProtocol=function(e){if(!e)return!1;return/^[a-z\-.\+]+[0-9]*:$/i.test(e)},t.getAuthority=function(e){var t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]},t.isValidAuthority=function(e){if(!e)return!1;return/^[^\s#?]+$/.test(e)},t.getPath=function(e){var t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]},t.isValidPath=function(e){if(!e)return!1;return/^[^\s#?]+$/.test(e)},t.getQueryString=function(e){var t=/^\S+?\?([^\s#]+)/.exec(e);if(t)return t[1]},t.isValidQueryString=function(e){if(!e)return!1;return/^[^\s#?\/]+$/.test(e)},t.getFragment=function(e){var t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]},t.isValidFragment=function(e){if(!e)return!1;return/^#[^\s#?\/]*$/.test(e)},t.addQueryArgs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,o=e.indexOf("?");-1!==o&&(t=Object.assign((0,n.parse)(e.substr(o+1)),t),r=r.substr(0,o));return r+"?"+(0,n.stringify)(t)},t.getQueryArg=u,t.hasQueryArg=function(e,t){return void 0!==u(e,t)},t.removeQueryArgs=function(e){for(var t=e.indexOf("?"),r=-1!==t?(0,n.parse)(e.substr(t+1)):{},o=-1!==t?e.substr(0,t):e,i=arguments.length,a=new Array(i>1?i-1:0),u=1;u0?k+P:""}},887:function(e,t,r){"use strict";var n=r(602),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),u=a?n.slice(0,a.index):n,c=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var s=0;null!==(a=i.exec(n))&&s=0;--o){var i,a=e[o];if("[]"===a)i=(i=[]).concat(n);else{i=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[u]=n}n=i}return n}(c,t,r)}};e.exports=function(e,t){var r=t?n.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,u=n.split(t.delimiter,a),c=0;c=s&&(p=c,d=!1,t=new n(t));e:for(;++f