You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
34 KiB
JavaScript
1 line
34 KiB
JavaScript
7 months ago
|
"use strict";(globalThis.webpackChunkweb_stories_wp=globalThis.webpackChunkweb_stories_wp||[]).push([[7480],{17445:(e,t,r)=>{r.d(t,{default:()=>o});var n=r(19013),a=r(13882);function o(e,t){(0,a.default)(2,arguments);var r=(0,n.default)(e),o=(0,n.default)(t),i=r.getTime()-o.getTime();return i>0?-1:i<0?1:i}},7694:(e,t,r)=>{r.d(t,{default:()=>w});var n=r(84314),a=r(19013),o=r(13882);function i(e,t){(0,o.default)(2,arguments);var r=(0,a.default)(e),n=(0,a.default)(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function u(e){(0,o.default)(1,arguments);var t=(0,a.default)(e);return function(e){(0,o.default)(1,arguments);var t=(0,a.default)(e);return t.setHours(23,59,59,999),t}(t).getTime()===function(e){(0,o.default)(1,arguments);var t=(0,a.default)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}(t).getTime()}function l(e,t){(0,o.default)(2,arguments);var r,n=(0,a.default)(e),l=(0,a.default)(t),s=i(n,l),f=Math.abs(function(e,t){(0,o.default)(2,arguments);var r=(0,a.default)(e),n=(0,a.default)(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,l));if(f<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-s*f);var c=i(n,l)===-s;u((0,a.default)(e))&&1===f&&1===i(e,l)&&(c=!1),r=s*(f-Number(c))}return 0===r?0:r}var s={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},f="trunc";function c(e,t,r){(0,o.default)(2,arguments);var n,i=function(e,t){return(0,o.default)(2,arguments),(0,a.default)(e).getTime()-(0,a.default)(t).getTime()}(e,t)/1e3;return((n=null==r?void 0:r.roundingMethod)?s[n]:s[f])(i)}var d=r(8958);function h(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}var p=r(24262),m=1440,v=2520,g=43200,y=86400;function b(e,t,r){var u,s;(0,o.default)(2,arguments);var f=(0,n.getDefaultOptions)(),b=null!==(u=null!==(s=null==r?void 0:r.locale)&&void 0!==s?s:f.locale)&&void 0!==u?u:d.default;if(!b.formatDistance)throw new RangeError("locale must contain formatDistance property");var w=i(e,t);if(isNaN(w))throw new RangeError("Invalid time value");var x,k,D=h(h({},r),{addSuffix:Boolean(null==r?void 0:r.addSuffix),comparison:w});w>0?(x=(0,a.default)(t),k=(0,a.default)(e)):(x=(0,a.default)(e),k=(0,a.default)(t));var E,I=c(k,x),F=((0,p.default)(k)-(0,p.default)(x))/1e3,S=Math.round((I-F)/60);if(S<2)return null!=r&&r.includeSeconds?I<5?b.formatDistance("lessThanXSeconds",5,D):I<10?b.formatDistance("lessThanXSeconds",10,D):I<20?b.formatDistance("lessThanXSeconds",20,D):I<40?b.formatDistance("halfAMinute",0,D):I<60?b.formatDistance("lessThanXMinutes",1,D):b.formatDistance("xMinutes",1,D):0===S?b.formatDistance("lessThanXMinutes",1,D):b.formatDistance("xMinutes",S,D);if(S<45)return b.formatDistance("xMinutes",S,D);if(S<90)return b.formatDistance("aboutXHours",1,D);if(S<m){var C=Math.round(S/60);return b.formatDistance("aboutXHours",C,D)}if(S<v)return b.formatDistance("xDays",1,D);if(S<g){var M=Math.round(S/m);return b.formatDistance("xDays",M,D)}if(S<y)return E=Math.round(S/g),b.formatDistance("aboutXMonths",E,D);if((E=l(k,x))<12){var _=Math.round(S/g);return b.formatDistance("xMonths",_,D)}var O=E%12,P=Math.floor(E/12);return O<3?b.formatDistance("aboutXYears",P,D):O<9?b.formatDistance("overXYears",P,D):b.formatDistance("almostXYears",P+1,D)}function w(e,t){return(0,o.default)(1,arguments),b(e,Date.now(),t)}},42799:(e,t,r)=>{r.d(t,{default:()=>i});var n=r(19013),a=r(13882);function o(e){(0,a.default)(1,arguments);var t=(0,n.default)(e);return t.setHours(0,0,0,0),t}function i(e,t){(0,a.default)(2,arguments);var r=o(e),n=o(t);return r.getTime()===n.getTime()}},51085:(e,t,r)=>{r.d(t,{default:()=>o});var n=r(42799),a=r(13882);function o(e){return(0,a.default)(1,arguments),(0,n.default)(e,Date.now())}},55965:(e,t,r)=>{r.d(t,{default:()=>l});var n=r(42799),a=r(83946),o=r(19013),i=r(13882);function u(e,t){return(0,i.default)(2,arguments),function(e,t){(0,i.default
|