aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress/wp-includes/js/dist/date.min.js
blob: 2fc3967f48949af3d14822a862228e4635760eec (plain)
1
2
3
4
5
6
7
8
9
10
11
this.wp=this.wp||{},this.wp.date=function(c){var M={};function o(z){if(M[z])return M[z].exports;var A=M[z]={i:z,l:!1,exports:{}};return c[z].call(A.exports,A,A.exports,o),A.l=!0,A.exports}return o.m=c,o.c=M,o.d=function(c,M,z){o.o(c,M)||Object.defineProperty(c,M,{enumerable:!0,get:z})},o.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,M){if(1&M&&(c=o(c)),8&M)return c;if(4&M&&"object"==typeof c&&c&&c.__esModule)return c;var z=Object.create(null);if(o.r(z),Object.defineProperty(z,"default",{enumerable:!0,value:c}),2&M&&"string"!=typeof c)for(var A in c)o.d(z,A,function(M){return c[M]}.bind(null,A));return z},o.n=function(c){var M=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(M,"a",M),M},o.o=function(c,M){return Object.prototype.hasOwnProperty.call(c,M)},o.p="",o(o.s=319)}({211:function(c,M,o){var z,A,b;//! moment-timezone.js
//! version : 0.5.26
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(p,n){"use strict";c.exports?c.exports=n(o(29)):(A=[o(29)],void 0===(b="function"==typeof(z=n)?z.apply(M,A):z)||(c.exports=b))}(0,(function(c){"use strict";var M,o={},z={},A={},b={};c&&"string"==typeof c.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var p=c.version.split("."),n=+p[0],a=+p[1];function O(c){return c>96?c-87:c>64?c-29:c-48}function L(c){var M=0,o=c.split("."),z=o[0],A=o[1]||"",b=1,p=0,n=1;for(45===c.charCodeAt(0)&&(M=1,n=-1);M<z.length;M++)p=60*p+O(z.charCodeAt(M));for(M=0;M<A.length;M++)b/=60,p+=O(A.charCodeAt(M))*b;return p*n}function q(c){for(var M=0;M<c.length;M++)c[M]=L(c[M])}function e(c,M){var o,z=[];for(o=0;o<M.length;o++)z[o]=c[M[o]];return z}function i(c){var M=c.split("|"),o=M[2].split(" "),z=M[3].split(""),A=M[4].split(" ");return q(o),q(z),q(A),function(c,M){for(var o=0;o<M;o++)c[o]=Math.round((c[o-1]||0)+6e4*c[o]);c[M-1]=1/0}(A,z.length),{name:M[0],abbrs:e(M[1].split(" "),z),offsets:e(o,z),untils:A,population:0|M[5]}}function N(c){c&&this._set(i(c))}function d(c){var M=c.toTimeString(),o=M.match(/\([a-z ]+\)/i);"GMT"===(o=o&&o[0]?(o=o[0].match(/[A-Z]/g))?o.join(""):void 0:(o=M.match(/[A-Z]{3,5}/g))?o[0]:void 0)&&(o=void 0),this.at=+c,this.abbr=o,this.offset=c.getTimezoneOffset()}function W(c){this.zone=c,this.offsetScore=0,this.abbrScore=0}function f(c,M){for(var o,z;z=6e4*((M.at-c.at)/12e4|0);)(o=new d(new Date(c.at+z))).offset===c.offset?c=o:M=o;return c}function r(c,M){return c.offsetScore!==M.offsetScore?c.offsetScore-M.offsetScore:c.abbrScore!==M.abbrScore?c.abbrScore-M.abbrScore:c.zone.population!==M.zone.population?M.zone.population-c.zone.population:M.zone.name.localeCompare(c.zone.name)}function X(c,M){var o,z;for(q(M),o=0;o<M.length;o++)z=M[o],b[z]=b[z]||{},b[z][c]=!0}function t(c){var M,o,z,p=c.length,n={},a=[];for(M=0;M<p;M++)for(o in z=b[c[M].offset]||{})z.hasOwnProperty(o)&&(n[o]=!0);for(M in n)n.hasOwnProperty(M)&&a.push(A[M]);return a}function B(){try{var c=Intl.DateTimeFormat().resolvedOptions().timeZone;if(c&&c.length>3){var M=A[l(c)];if(M)return M;E("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,z,b,p=function(){var c,M,o,z=(new Date).getFullYear()-2,A=new d(new Date(z,0,1)),b=[A];for(o=1;o<48;o++)(M=new d(new Date(z,o,1))).offset!==A.offset&&(c=f(A,M),b.push(c),b.push(new d(new Date(c.at+6e4)))),A=M;for(o=0;o<4;o++)b.push(new d(new Date(z+o,0,1))),b.push(new d(new Date(z+o,6,1)));return b}(),n=p.length,a=t(p),O=[];for(z=0;z<a.length;z++){for(o=new W(T(a[z]),n),b=0;b<n;b++)o.scoreOffsetAt(p[b]);O.push(o)}return O.sort(r),O.length>0?O[0].zone.name:void 0}function l(c){return(c||"").toLowerCase().replace(/\//g,"_")}function u(c){var M,z,b,p;for("string"==typeof c&&(c=[c]),M=0;M<c.length;M++)p=l(z=(b=c[M].split("|"))[0]),o[p]=c[M],A[p]=z,X(p,b[2].split(" "))}function T(c,M){c=l(c);var b,p=o[c];return p instanceof N?p:"string"==typeof p?(p=new N(p),o[c]=p,p):z[c]&&M!==T&&(b=T(z[c],T))?((p=o[c]=new N)._set(b),p.name=A[c],p):null}function s(c){var M,o,b,p;for("string"==typeof c&&(c=[c]),M=0;M<c.length;M++)b=l((o=c[M].split("|"))[0]),p=l(o[1]),z[b]=p,A[b]=o[0],z[p]=b,A[p]=o[1]}function C(c){var M="X"===c._f||"x"===c._f;return!(!c._a||void 0!==c._tzm||M)}function E(c){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(c)}function S(M){var o=Array.prototype.slice.call(arguments,0,-1),z=arguments[arguments.length-1],A=T(z),b=c.utc.apply(null,o);return A&&!c.isMoment(M)&&C(b)&&b.add(A.parse(b),"minutes"),b.tz(z),b}(n<2||2===n&&a<6)&&E("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,z=this.untils;for(M=0;M<z.length;M++)if(o<z[M])return M},parse:function(c){var M,o,z,A,b=+c,p=this.offsets,n=this