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

11 lines
915 KiB
JavaScript
Raw Normal View History

Block Editor: Update the WordPress Packages from Gutenberg 5.3 - @wordpress/a11y@2.2.0 - @wordpress/annotations@1.2.0 - @wordpress/api-fetch@3.1.0 - @wordpress/autop@2.2.0 - @wordpress/babel-plugin-import-jsx-pragma@2.1.0 - @wordpress/babel-preset-default@4.1.0 - @wordpress/blob@2.3.0 - @wordpress/block-editor@1.1.0 - @wordpress/block-library@2.4.0 - @wordpress/block-serialization-default-parser@3.1.0 - @wordpress/blocks@6.2.0 - @wordpress/components@7.2.0 - @wordpress/compose@3.2.0 - @wordpress/core-data@2.2.0 - @wordpress/data@4.4.0 - @wordpress/date@3.2.0 - @wordpress/deprecated@2.2.0 - @wordpress/docgen@1.1.0 - @wordpress/dom-ready@2.2.0 - @wordpress/dom@2.2.0 - @wordpress/e2e-test-utils@1.1.0 - @wordpress/e2e-tests@1.1.0 - @wordpress/edit-post@3.3.0 - @wordpress/edit-widgets@0.2.0 - @wordpress/editor@9.2.0 - @wordpress/element@2.3.0 - @wordpress/escape-html@1.2.0 - @wordpress/eslint-plugin@2.1.0 - @wordpress/format-library@1.4.0 - @wordpress/hooks@2.2.0 - @wordpress/html-entities@2.2.0 - @wordpress/i18n@3.3.0 - @wordpress/keycodes@2.2.0 - @wordpress/list-reusable-blocks@1.3.0 - @wordpress/notices@1.3.0 - @wordpress/nux@3.2.0 - @wordpress/plugins@2.2.0 - @wordpress/priority-queue@1.1.0 - @wordpress/redux-routine@3.2.0 - @wordpress/rich-text@3.2.0 - @wordpress/scripts@3.1.0 - @wordpress/shortcode@2.2.0 - @wordpress/url@2.5.0 - @wordpress/viewport@2.3.0 - @wordpress/wordcount@2.2.0 Built from https://develop.svn.wordpress.org/trunk@44960 git-svn-id: http://core.svn.wordpress.org/trunk@44791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-03-21 13:48:00 +01:00
this.wp=this.wp||{},this.wp.date=function(M){var z={};function b(p){if(z[p])return z[p].exports;var O=z[p]={i:p,l:!1,exports:{}};return M[p].call(O.exports,O,O.exports,b),O.l=!0,O.exports}return b.m=M,b.c=z,b.d=function(M,z,p){b.o(M,z)||Object.defineProperty(M,z,{enumerable:!0,get:p})},b.r=function(M){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},b.t=function(M,z){if(1&z&&(M=b(M)),8&z)return M;if(4&z&&"object"==typeof M&&M&&M.__esModule)return M;var p=Object.create(null);if(b.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:M}),2&z&&"string"!=typeof M)for(var O in M)b.d(p,O,function(z){return M[z]}.bind(null,O));return p},b.n=function(M){var z=M&&M.__esModule?function(){return M.default}:function(){return M};return b.d(z,"a",z),z},b.o=function(M,z){return Object.prototype.hasOwnProperty.call(M,z)},b.p="",b(b.s=335)}({198:function(M,z,b){var p,O,A;//! moment-timezone.js
//! version : 0.5.23
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(q,o){"use strict";M.exports?M.exports=o(b(29)):(O=[b(29)],void 0===(A="function"==typeof(p=o)?p.apply(z,O):p)||(M.exports=A))}(0,(function(M){"use strict";var z,b={},p={},O={},A={};M&&"string"==typeof M.version||t("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var q=M.version.split("."),o=+q[0],c=+q[1];function W(M){return M>96?M-87:M>64?M-29:M-48}function d(M){var z=0,b=M.split("."),p=b[0],O=b[1]||"",A=1,q=0,o=1;for(45===M.charCodeAt(0)&&(z=1,o=-1);z<p.length;z++)q=60*q+W(p.charCodeAt(z));for(z=0;z<O.length;z++)A/=60,q+=W(O.charCodeAt(z))*A;return q*o}function R(M){for(var z=0;z<M.length;z++)M[z]=d(M[z])}function X(M,z){var b,p=[];for(b=0;b<z.length;b++)p[b]=M[z[b]];return p}function B(M){var z=M.split("|"),b=z[2].split(" "),p=z[3].split(""),O=z[4].split(" ");return R(b),R(p),R(O),function(M,z){for(var b=0;b<z;b++)M[b]=Math.round((M[b-1]||0)+6e4*M[b]);M[z-1]=1/0}(O,p.length),{name:z[0],abbrs:X(z[1].split(" "),p),offsets:X(b,p),untils:O,population:0|z[5]}}function n(M){M&&this._set(B(M))}function L(M){var z=M.toTimeString(),b=z.match(/\([a-z ]+\)/i);"GMT"===(b=b&&b[0]?(b=b[0].match(/[A-Z]/g))?b.join(""):void 0:(b=z.match(/[A-Z]{3,5}/g))?b[0]:void 0)&&(b=void 0),this.at=+M,this.abbr=b,this.offset=M.getTimezoneOffset()}function f(M){this.zone=M,this.offsetScore=0,this.abbrScore=0}function a(M,z){for(var b,p;p=6e4*((z.at-M.at)/12e4|0);)(b=new L(new Date(M.at+p))).offset===M.offset?M=b:z=b;return M}function N(M,z){return M.offsetScore!==z.offsetScore?M.offsetScore-z.offsetScore:M.abbrScore!==z.abbrScore?M.abbrScore-z.abbrScore:z.zone.population-M.zone.population}function l(M,z){var b,p;for(R(z),b=0;b<z.length;b++)p=z[b],A[p]=A[p]||{},A[p][M]=!0}function u(M){var z,b,p,q=M.length,o={},c=[];for(z=0;z<q;z++)for(b in p=A[M[z].offset]||{})p.hasOwnProperty(b)&&(o[b]=!0);for(z in o)o.hasOwnProperty(z)&&c.push(O[z]);return c}function i(){try{var M=Intl.DateTimeFormat().resolvedOptions().timeZone;if(M&&M.length>3){var z=O[e(M)];if(z)return z;t("Moment Timezone found "+M+" from the Intl api, but did not have that data loaded.")}}catch(M){}var b,p,A,q=function(){var M,z,b,p=(new Date).getFullYear()-2,O=new L(new Date(p,0,1)),A=[O];for(b=1;b<48;b++)(z=new L(new Date(p,b,1))).offset!==O.offset&&(M=a(O,z),A.push(M),A.push(new L(new Date(M.at+6e4)))),O=z;for(b=0;b<4;b++)A.push(new L(new Date(p+b,0,1))),A.push(new L(new Date(p+b,6,1)));return A}(),o=q.length,c=u(q),W=[];for(p=0;p<c.length;p++){for(b=new f(H(c[p]),o),A=0;A<o;A++)b.scoreOffsetAt(q[A]);W.push(b)}return W.sort(N),W.length>0?W[0].zone.name:void 0}function e(M){return(M||"").toLowerCase().replace(/\//g,"_")}function r(M){var z,p,A,q;for("string"==typeof M&&(M=[M]),z=0;z<M.length;z++)q=e(p=(A=M[z].split("|"))[0]),b[q]=M[z],O[q]=p,l(q,A[2].split(" "))}function H(M,z){M=e(M);var A,q=b[M];return q instanceof n?q:"string"==typeof q?(q=new n(q),b[M]=q,q):p[M]&&z!==H&&(A=H(p[M],H))?((q=b[M]=new n)._set(A),q.name=O[M],q):null}function F(M){var z,b,A,q;for("string"==typeof M&&(M=[M]),z=0;z<M.length;z++)A=e((b=M[z].split("|"))[0]),q=e(b[1]),p[A]=q,O[A]=b[0],p[q]=A,O[q]=b[1]}function T(M){var z="X"===M._f||"x"===M._f;return!(!M._a||void 0!==M._tzm||z)}function t(M){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(M)}function s(z){var b=Array.prototype.slice.call(arguments,0,-1),p=arguments[arguments.length-1],O=H(p),A=M.utc.apply(null,b);return O&&!M.isMoment(z)&&T(A)&&A.add(O.parse(A),"minutes"),A.tz(p),A}(o<2||2===o&&c<6)&&t("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+M.version+". See momentjs.com"),n.prototype={_set:function(M){this.name=M.name,this.abbrs=M.abbrs,this.untils=M.untils,this.offsets=M.offsets,this.population=M.population},_index:function(M){var z,b=+M,p=this.untils;for(z=0;z<p.length;z++)if(b<p[z])return z},parse:function(M){var z,b,p,O,A=+M,q=this.offsets,o=this.untils,c=o.length-1;for(O=0;O<c;O++)if(z=q[O],b=q[O+1],p=q[O?O-1:O],z<b&&s.moveAmbiguousForward?z=b:z>p&&s.moveInvalidForward&&(z=p),A<o[O]-6e4*z)return q[O];return q[c]},abbr:function(M){return this.
//! version : 0.5.23
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(q,o){"use strict";M.exports?M.exports=o(b(337)):(O=[b(29)],void 0===(A="function"==typeof(p=o)?p.apply(z,O):p)||(M.exports=A))}(0,(function(M){"use strict";if(!M.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function b(M,b){for(var p="",O=Math.abs(M),A=Math.floor(O),q=function(M,b){for(var p,O=".",A="";b>0;)b-=1,M*=60,p=Math.floor(M+1e-6),O+=z[p],M-=p,p&&(A+=O,O="");return A}(O-A,Math.min(~~b,10));A>0;)p=z[A%60]+p,A=Math.floor(A/60);return M<0&&(p="-"+p),p&&q?p+q:(q||"-"!==p)&&(p||q)||"0"}function p(M){var z,p=[],O=0;for(z=0;z<M.length-1;z++)p[z]=b(Math.round((M[z]-O)/1e3)/60,1),O=M[z];return p.join(" ")}function O(M){var z,p,O=0,A=[],q=[],o=[],c={};for(z=0;z<M.abbrs.length;z++)void 0===c[p=M.abbrs[z]+"|"+M.offsets[z]]&&(c[p]=O,A[O]=M.abbrs[z],q[O]=b(Math.round(60*M.offsets[z])/60,1),O++),o[z]=b(c[p],0);return A.join(" ")+"|"+q.join(" ")+"|"+o.join("")}function A(M){if(!M)return"";if(M<1e3)return"|"+M;var z=String(0|M).length-2;return"|"+Math.round(M/Math.pow(10,z))+"e"+z}function q(M){return function(M){if(!M.name)throw new Error("Missing name");if(!M.abbrs)throw new Error("Missing abbrs");if(!M.untils)throw new Error("Missing untils");if(!M.offsets)throw new Error("Missing offsets");if(M.offsets.length!==M.untils.length||M.offsets.length!==M.abbrs.length)throw new Error("Mismatched array lengths")}(M),[M.name,O(M),p(M.untils)+A(M.population)].join("|")}function o(M,z){var b;if(M.length!==z.length)return!1;for(b=0;b<M.length;b++)if(M[b]!==z[b])return!1;return!0}function c(M,z){return o(M.offsets,z.offsets)&&o(M.abbrs,z.abbrs)&&o(M.untils,z.untils)}function W(M,z){var b=[],p=[];return M.links&&(p=M.links.slice()),function(M,z,b,p){var O,A,q,o,W,d,R=[];for(O=0;O<M.length;O++){for(d=!1,q=M[O],A=0;A<R.length;A++)c(q,o=(W=R[A])[0])&&(q.population>o.population||q.population===o.population&&p&&p[q.name]?W.unshift(q):W.push(q),d=!0);d||R.push([q])}for(O=0;O<R.length;O++)for(W=R[O],z.push(W[0]),A=1;A<W.length;A++)b.push(W[0].name+"|"+W[A].name)}(M.zones,b,p,z),{version:M.version,zones:b,links:p.sort()}}function d(M,z,b){var p=Array.prototype.slice,O=function(M,z,b){var p,O,A=0,q=M.length+1;for(b||(b=z),z>b&&(O=z,z=b,b=O),O=0;O<M.length;O++)null!=M[O]&&((p=new Date(M[O]).getUTCFullYear())<z&&(A=O+1),p>b&&(q=Math.min(q,O+1)));return[A,q]}(M.untils,z,b),A=p.apply(M.untils,O);return A[A.length-1]=null,{name:M.name,abbrs:p.apply(M.abbrs,O),untils:A,offsets:p.apply(M.offsets,O),population:M.population}}return M.tz.pack=q,M.tz.packBase60=b,M.tz.createLinks=W,M.tz.filterYears=d,M.tz.filterLinkPack=function(M,z,b,p){var O,A,o=M.zones,c=[];for(O=0;O<o.length;O++)c[O]=d(o[O],z,b);for(A=W({zones:c,links:M.links.slice(),version:M.version},p),O=0;O<A.zones.length;O++)A.zones[O]=q(A.zones[O]);return A},M}))},337:function(M,z,b){(M.exports=b(198)).tz.load(b(338))},338:function(M){M.exports=JSON.parse('{"version":"2018g","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5","Africa/Algiers|LMT PMT WET WEST CET CEST|-c.c -9.l 0 -10 -10 -20|01232323232323232454542423234542324|-3bQob.c ME01.P cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|LMT EET EEST|-25.9 -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBC5.9 1AQM5.9 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0