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

12 lines
765 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
(()=>{var M={5537:(M,z,b)=>{(M.exports=b(3849)).tz.load(b(1681))},1685:function(M,z,b){var p,O,A;//! moment-timezone-utils.js
//! version : 0.5.40
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(c,q){"use strict";M.exports?M.exports=q(b(5537)):(O=[b(6154)],void 0===(A="function"==typeof(p=q)?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",b=1e-6;function p(M,p){for(var O="",A=Math.abs(M),c=Math.floor(A),q=function(M,p){for(var O,A=".",c="";p>0;)p-=1,M*=60,O=Math.floor(M+b),A+=z[O],M-=O,O&&(c+=A,A="");return c}(A-c,Math.min(~~p,10));c>0;)O=z[c%60]+O,c=Math.floor(c/60);return M<0&&(O="-"+O),O&&q?O+q:(q||"-"!==O)&&(O||q)||"0"}function O(M){var z,b=[],O=0;for(z=0;z<M.length-1;z++)b[z]=p(Math.round((M[z]-O)/1e3)/60,1),O=M[z];return b.join(" ")}function A(M){var z,b,O=0,A=[],c=[],q=[],o={};for(z=0;z<M.abbrs.length;z++)void 0===o[b=M.abbrs[z]+"|"+M.offsets[z]]&&(o[b]=O,A[O]=M.abbrs[z],c[O]=p(Math.round(60*M.offsets[z])/60,1),O++),q[z]=p(o[b],0);return A.join(" ")+"|"+c.join(" ")+"|"+q.join("")}function c(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,A(M),O(M.untils),c(M.population)].join("|")}function o(M){return[M.name,M.zones.join(" ")].join("|")}function W(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 d(M,z){return W(M.offsets,z.offsets)&&W(M.abbrs,z.abbrs)&&W(M.untils,z.untils)}function R(M,z){var b=[],p=[];return M.links&&(p=M.links.slice()),function(M,z,b,p){var O,A,c,q,o,W,R=[];for(O=0;O<M.length;O++){for(W=!1,c=M[O],A=0;A<R.length;A++)d(c,q=(o=R[A])[0])&&(c.population>q.population||c.population===q.population&&p&&p[c.name]?o.unshift(c):o.push(c),W=!0);W||R.push([c])}for(O=0;O<R.length;O++)for(o=R[O],z.push(o[0]),A=1;A<o.length;A++)b.push(o[0].name+"|"+o[A].name)}(M.zones,b,p,z),{version:M.version,zones:b,links:p.sort()}}function a(M,z,b){var p=Array.prototype.slice,O=function(M,z,b){var p,O,A=0,c=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&&(c=Math.min(c,O+1)));return[A,c]}(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,countries:M.countries}}return M.tz.pack=q,M.tz.packBase60=p,M.tz.createLinks=R,M.tz.filterYears=a,M.tz.filterLinkPack=function(M,z,b,p){var O,A,c=M.zones,W=[];for(O=0;O<c.length;O++)W[O]=a(c[O],z,b);for(A=R({zones:W,links:M.links.slice(),version:M.version},p),O=0;O<A.zones.length;O++)A.zones[O]=q(A.zones[O]);return A.countries=M.countries?M.countries.map((function(M){return o(M)})):[],A},M.tz.packCountry=o,M}))},3849:function(M,z,b){var p,O,A;//! moment-timezone.js
//! version : 0.5.40
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(c,q){"use strict";M.exports?M.exports=q(b(6154)):(O=[b(6154)],void 0===(A="function"==typeof(p=q)?p.apply(z,O):p)||(M.exports=A))}(0,(function(M){"use strict";void 0===M.version&&M.default&&(M=M.default);var z,b={},p={},O={},A={},c={};M&&"string"==typeof M.version||C("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var q=M.version.split("."),o=+q[0],W=+q[1];function d(M){return M>96?M-87:M>64?M-29:M-48}function R(M){var z=0,b=M.split("."),p=b[0],O=b[1]||"",A=1,c=0,q=1;for(45===M.charCodeAt(0)&&(z=1,q=-1);z<p.length;z++)c=60*c+d(p.charCodeAt(z));for(z=0;z<O.length;z++)A/=60,c+=d(O.charCodeAt(z))*A;return c*q}function a(M){for(var z=0;z<M.length;z++)M[z]=R(M[z])}function n(M,z){var b,p=[];for(b=0;b<z.length;b++)p[b]=M[z[b]];return p}function L(M){var z=M.split("|"),b=z[2].split(" "),p=z[3].split(""),O=z[4].split(" ");return a(b),a(p),a(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:n(z[1].split(" "),p),offsets:n(b,p),untils:O,population:0|z[5]}}function f(M){M&&this._set(L(M))}function B(M,z){this.name=M,this.zones=z}function i(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 X(M){this.zone=M,this.offsetScore=0,this.abbrScore=0}function N(M,z){for(var b,p;p=6e4*((z.at-M.at)/12e4|0);)(b=new i(new Date(M.at+p))).offset===M.offset?M=b:z=b;return M}function e(M,z){return M.offsetScore!==z.offsetScore?M.offsetScore-z.offsetScore:M.abbrScore!==z.abbrScore?M.abbrScore-z.abbrScore:M.zone.population!==z.zone.population?z.zone.population-M.zone.population:z.zone.name.localeCompare(M.zone.name)}function u(M,z){var b,p;for(a(z),b=0;b<z.length;b++)p=z[b],c[p]=c[p]||{},c[p][M]=!0}function r(M){var z,b,p,O=M.length,q={},o=[];for(z=0;z<O;z++)for(b in p=c[M[z].offset]||{})p.hasOwnProperty(b)&&(q[b]=!0);for(z in q)q.hasOwnProperty(z)&&o.push(A[z]);return o}function t(){try{var M=Intl.DateTimeFormat().resolvedOptions().timeZone;if(M&&M.length>3){var z=A[T(M)];if(z)return z;C("Moment Timezone found "+M+" from the Intl api, but did not have that data loaded.")}}catch(M){}var b,p,O,c=function(){var M,z,b,p=(new Date).getFullYear()-2,O=new i(new Date(p,0,1)),A=[O];for(b=1;b<48;b++)(z=new i(new Date(p,b,1))).offset!==O.offset&&(M=N(O,z),A.push(M),A.push(new i(new Date(M.at+6e4)))),O=z;for(b=0;b<4;b++)A.push(new i(new Date(p+b,0,1))),A.push(new i(new Date(p+b,6,1)));return A}(),q=c.length,o=r(c),W=[];for(p=0;p<o.length;p++){for(b=new X(s(o[p]),q),O=0;O<q;O++)b.scoreOffsetAt(c[O]);W.push(b)}return W.sort(e),W.length>0?W[0].zone.name:void 0}function T(M){return(M||"").toLowerCase().replace(/\//g,"_")}function l(M){var z,p,O,c;for("string"==typeof M&&(M=[M]),z=0;z<M.length;z++)c=T(p=(O=M[z].split("|"))[0]),b[c]=M[z],A[c]=p,u(c,O[2].split(" "))}function s(M,z){M=T(M);var O,c=b[M];return c instanceof f?c:"string"==typeof c?(c=new f(c),b[M]=c,c):p[M]&&z!==s&&(O=s(p[M],s))?((c=b[M]=new f)._set(O),c.name=A[M],c):null}function m(M){var z,b,O,c;for("string"==typeof M&&(M=[M]),z=0;z<M.length;z++)O=T((b=M[z].split("|"))[0]),c=T(b[1]),p[O]=c,A[O]=b[0],p[c]=O,A[c]=b[1]}function E(M){var z="X"===M._f||"x"===M._f;return!(!M._a||void 0!==M._tzm||z)}function C(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=s(p),A=M.utc.apply(null,b);return O&&!M.isMoment(z)&&E(A)&&A.add(O.parse(A),"minutes"),A.tz(p),A}(o<2||2===o&&W<6)&&C("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+M.version+". See momentjs.com"),f.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},countries:function(){var M=this.name;return Object.keys(O).filter((function(z){return