WordPress/wp-includes/js/dist/i18n.min.js

2 lines
9.9 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.i18n=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return 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 i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));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="./node_modules/@wordpress/i18n/build-module/index.js")}({"./node_modules/@wordpress/i18n/build-module/index.js":function(t,e,n){"use strict";n.r(e),n.d(e,"sprintf",(function(){return u})),n.d(e,"createI18n",(function(){return y})),n.d(e,"defaultI18n",(function(){return w})),n.d(e,"setLocaleData",(function(){return j})),n.d(e,"resetLocaleData",(function(){return F})),n.d(e,"getLocaleData",(function(){return k})),n.d(e,"subscribe",(function(){return S})),n.d(e,"__",(function(){return O})),n.d(e,"_x",(function(){return L})),n.d(e,"_n",(function(){return T})),n.d(e,"_nx",(function(){return D})),n.d(e,"isRTL",(function(){return P})),n.d(e,"hasTranslation",(function(){return I}));var r=n("./node_modules/memize/index.js"),i=n.n(r),o=n("./node_modules/sprintf-js/src/sprintf.js"),s=n.n(o);const a=i()(console.error);function u(t,...e){try{return s.a.sprintf(t,...e)}catch(e){return a("sprintf error: \n\n"+e.toString()),t}}var l,c,p,f;l={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},c=["(","?"],p={")":["("],":":["?","?:"]},f=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var d={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,n){if(t)throw e;return n}};function h(t){var e=function(t){for(var e,n,r,i,o=[],s=[];e=t.match(f);){for(n=e[0],(r=t.substr(0,e.index).trim())&&o.push(r);i=s.pop();){if(p[n]){if(p[n][0]===i){n=p[n][1]||n;break}}else if(c.indexOf(i)>=0||l[i]<l[n]){s.push(i);break}o.push(i)}p[n]||s.push(n),t=t.substr(e.index+n.length)}return(t=t.trim())&&o.push(t),o.concat(s.reverse())}(t);return function(t){return function(t,e){var n,r,i,o,s,a,u=[];for(n=0;n<t.length;n++){if(s=t[n],o=d[s]){for(r=o.length,i=Array(r);r--;)i[r]=u.pop();try{a=o.apply(null,i)}catch(t){return t}}else a=e.hasOwnProperty(s)?e[s]:+s;u.push(a)}return u[0]}(e,t)}}var g={contextDelimiter:"",onMissingKey:null};function x(t,e){var n;for(n in this.data=t,this.pluralForms={},this.options={},g)this.options[n]=void 0!==e&&n in e?e[n]:g[n]}x.prototype.getPluralForm=function(t,e){var n,r,i,o,s=this.pluralForms[t];return s||("function"!=typeof(i=(n=this.data[t][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(t){var e,n,r;for(e=t.split(";"),n=0;n<e.length;n++)if(0===(r=e[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=h(r),i=function(t){return+o({n:t})}),s=this.pluralForms[t]=i),s(e)},x.prototype.dcnpgettext=function(t,e,n,r,i){var o,s,a;return o=void 0===i?0:this.getPluralForm(t,i),s=n,e&&(s=e+this.options.contextDelimiter+n),(a=this.data[t][s])&&a[o]?a[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,t),0===o?n:r)};const _={"":{plural_forms:t=>1===t?0:1}},b=/^i18n\.(n?gettext|has_tran