mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
80ce372761
Updated packages: @wordpress/annotations: 1.7.2 -> 1.9.0 @wordpress/api-fetch: 3.6.4 -> 3.8.0 @wordpress/block-directory: 1.0.5 -> 1.2.0 @wordpress/block-editor: 3.2.5 -> 3.4.0 @wordpress/block-library: 2.9.6 -> 2.11.0 @wordpress/blocks: 6.7.2 -> 6.9.0 @wordpress/components: 8.3.2 -> 8.5.0 @wordpress/compose: 3.7.2 -> 3.9.0 @wordpress/core-data: 2.7.5 -> 2.9.0 @wordpress/data: 4.9.2 -> 4.11.0 @wordpress/data-controls: 1.3.4 -> 1.5.0 @wordpress/date: 3.5.0 -> 3.7.0 @wordpress/dom: 2.5.2 -> 2.6.0 @wordpress/e2e-test-utils: 3.0.0 -> 4.0.0 @wordpress/edit-post: 3.8.6 -> 3.10.0 @wordpress/editor: 9.7.6 -> 9.9.0 @wordpress/element: 2.8.2 -> 2.10.0 @wordpress/escape-html: 1.5.1 -> 1.6.0 @wordpress/format-library: 1.9.5 -> 1.11.0 @wordpress/i18n: 3.6.1 -> 3.7.0 @wordpress/keycodes: 2.6.2 -> 2.7.0 @wordpress/list-reusable-blocks: 1.8.4 -> 1.10.0 @wordpress/media-utils: 1.2.4 -> 1.4.0 @wordpress/notices: 1.8.2 -> 1.10.0 @wordpress/nux: 3.7.2 -> 3.9.0 @wordpress/plugins: 2.7.2 -> 2.9.0 @wordpress/rich-text: 3.7.2 -> 3.9.0 @wordpress/scripts: 6.0.0 -> 6.1.1 @wordpress/server-side-render: 1.3.4 -> 1.5.0 @wordpress/shortcode: 2.4.1 -> 2.5.0 @wordpress/token-list: 1.6.1 -> 1.8.0 @wordpress/url: 2.8.2 -> 2.9.0 @wordpress/viewport: 2.8.2 -> 2.10.0 Props gziolo, youknowriad. Fixes #49142. Built from https://develop.svn.wordpress.org/trunk@47051 git-svn-id: http://core.svn.wordpress.org/trunk@46851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
8.9 KiB
JavaScript
2 lines
8.9 KiB
JavaScript
/*! This file is auto-generated */
|
||
this.wp=this.wp||{},this.wp.i18n=function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(r,i,function(t){return n[t]}.bind(null,i));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=380)}({148:function(n,t,e){var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(n){return function(n,t){var e,r,u,a,s,c,p,l,f,d=1,h=n.length,g="";for(r=0;r<h;r++)if("string"==typeof n[r])g+=n[r];else if("object"==typeof n[r]){if((a=n[r]).keys)for(e=t[d],u=0;u<a.keys.length;u++){if(null==e)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[u],a.keys[u-1]));e=e[a.keys[u]]}else e=a.param_no?t[a.param_no]:t[d++];if(i.not_type.test(a.type)&&i.not_primitive.test(a.type)&&e instanceof Function&&(e=e()),i.numeric_arg.test(a.type)&&"number"!=typeof e&&isNaN(e))throw new TypeError(o("[sprintf] expecting number but found %T",e));switch(i.number.test(a.type)&&(l=e>=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?g+=e:(!i.number.test(a.type)||l&&!a.sign?f="":(f=l?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(f+e).length,s=a.width&&p>0?c.repeat(p):"",g+=a.align?f+e+s:"0"===c?f+s+e:s+f+e)}return g}(function(n){if(a[n])return a[n];var t,e=n,r=[],o=0;for(;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],s=t[2],c=[];if(null===(c=i.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(s=s.substring(c[0].length));)if(null!==(c=i.key_access.exec(s)))u.push(c[1]);else{if(null===(c=i.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return a[n]=r}(n),arguments)}function u(n,t){return o.apply(null,[n].concat(t||[]))}var a=Object.create(null);t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},380:function(n,t,e){"use strict";e.r(t);var r,i,o,u,a=e(7);r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n<t},"<=":function(n,t){return n<=t},">":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function c(n){var t=function(n){for(var t,e,a,s,c=[],p=[];t=n.match(u);){for(e=t[0],(a=n.substr(0,t.index).trim())&&c.push(a);s=p.pop();){if(o[e]){if(o[e][0]===s){e=o[e][1]||e;break}}else if(i.indexOf(s)>=0||r[s]<r[e]){p.push(s);break}c.push(s)}o[e]||p.push(e),n=n.substr(t.index+e.length)}return(n=n.trim())&&c.push(n),c.concat(p.reverse())}(n);return function(n){return function(n,t){var e,r,i,o,u,a,c=[];for(e=0;e<n.length;e++){if(u=n[e],o=s[u]){for(r=o.length,i=Array(r);r--;)i[r]=c.pop();try{a=o.apply(null,i)}catch(n){return n}}else a=t.hasOwnProperty(u)?t[u]:+u;c.push(a)}return c[0]}(t,n)}}var p={contextDelimiter:"",onMissingKey:null};function l(n,t){var e;for(e in this.data=n,this.pluralForms={},this.options={},p)this.options[e]=void 0!==t&&e in t?t[e]:p[e]}l.prototype.getPluralForm=function(n,t){var e,r,i,o,u=this.pluralForms[n];return u||("function"!=typeof(i=(e=this.data[n][""])["Plural-Forms"]||e["plural-forms"]||e.plural_forms)&&(r=function(n){var t,e,r;for(t=n.split(";"),e=0;e<t.length;e++)if(0===(r=t[e].trim()).indexOf("plural="))return r.substr(7)}(e["Plural-Forms"]||e["plural-forms"]||e.plural_forms),o=c(r),i=function(n){return+o({n:n})}),u=this.pluralForms[n]=i),u(t)},l.prototype.dcnpgettext=function(n,t,e,r,i){var o,u,a;return o=void 0===i?0:this.getPluralForm(n,i),u=e,t&&(u=t+this.options.contextDelimiter+e),(a=this.data[n][u])&&a[o]?a[o]:(this.options.onMissingKey&&this.options.onMissingKey(e,n),0===o?e:r)};var f=e(42),d=e.n(f),h=e(148),g=e.n(h);e.d(t,"setLocaleData",(function(){return x})),e.d(t,"__",(function(){return w})),e.d(t,"_x",(function(){return _})),e.d(t,"_n",(function(){return k})),e.d(t,"_nx",(function(){return j})),e.d(t,"sprintf",(function(){return O}));var y={"":{plural_forms:function(n){return 1===n?0:1}}},v=d()(console.error),b=new l({});function x(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";b.data[t]=Object(a.a)({},y,b.data[t],n),b.data[t][""]=Object(a.a)({},y[""],b.data[t][""])}function m(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return b.data[n]||x(void 0,n),b.dcnpgettext(n,t,e,r,i)}function w(n,t){return m(t,void 0,n)}function _(n,t,e){return m(e,t,n)}function k(n,t,e,r){return m(r,void 0,n,t,e)}function j(n,t,e,r,i){return m(i,r,n,t,e)}function O(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return g.a.sprintf.apply(g.a,[n].concat(e))}catch(t){return v("sprintf error: \n\n"+t.toString()),n}}},42:function(n,t,e){n.exports=function(n,t){var e,r,i,o=0;function u(){var t,u,a=r,s=arguments.length;n:for(;a;){if(a.args.length===arguments.length){for(u=0;u<s;u++)if(a.args[u]!==arguments[u]){a=a.next;continue n}return a!==r&&(a===i&&(i=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(t=new Array(s),u=0;u<s;u++)t[u]=arguments[u];return a={args:t,val:n.apply(null,t)},r?(r.prev=a,a.next=r):i=a,o===e?(i=i.prev).next=null:o++,r=a,a.val}return t&&t.maxSize&&(e=t.maxSize),u.clear=function(){r=null,i=null,o=0},u}},7:function(n,t,e){"use strict";e.d(t,"a",(function(){return i}));var r=e(9);function i(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{},i=Object.keys(Object(e));"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(e).filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})))),i.forEach((function(t){Object(r.a)(n,t,e[t])}))}return n}},9:function(n,t,e){"use strict";function r(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.d(t,"a",(function(){return r}))}}); |