1(self.webpackChunkcambria=self.webpackChunkcambria||[]).push([[799],{40362(e,t,r){"use strict";var n=r(56441);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},46374(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(64820),o=r.n(n),a=r(63696),i=r(62688),c=r.n(i),s=function(e){var t=e.date,r=e.live,n=e.editionInfo,i=e.useLongFormat,c=e.hoursLimit,s=e.useRelativePastLimit,u=n.locale.slice(0,2).toLowerCase(),l=(0,a.useState)("not-recent"),m=o()(l,2),f=m[0],p=m[1],h=(0,a.useState)(r),d=o()(h,2),v=d[0],y=d[1],g=function(e,t){var r=new Date(e),n=r.getTime();if(!Number.isFinite(n))return e||"";var o=(new Date).getTime()-n,a=36e5,u=864e5,l=a*c,m=Math.floor(o/36e5%24),h=Math.floor(o/6e4%60),d=i?"hour":"hr";m>1&&(d+="s");var g=i?"minute":"min";h>1&&(g+="s");var b=m>0?"".concat(m," ").concat(d):"",T=h>0?"".concat(h," ").concat(g):"",L=new Intl.RelativeTimeFormat(t,{numeric:"auto",style:"long"});if(o<6e4)return"not-recent"===f&&p("recent"),"Just now";if(o<a)return"not-recent"===f&&p("recent"),L.format(-Math.floor(o/6e4),"minutes");if(o<u)return"recent"===f&&p("not-recent"),"".concat(b," ").concat(T," ").concat("ago");if(o<l)return"recent"===f&&p("not-recent"),L.format(-Math.floor(o/u),"days");if(v&&y(!1),s){var R=Math.floor(o/u),w=Math.floor(R/7);return w>=1?L.format(-w,"weeks"):L.format(-R,"days")}return r.toLocaleString(t,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"})},b=(0,a.useState)(g(t,u)),T=o()(b,2),L=T[0],R=T[1],w=(0,a.useRef)(null);(0,a.useEffect)(function(){var e=!0;return v&&(w.current=setInterval(function(){e&&R(g(t,u))},6e4)),function(){e=!1,w.current&&clearInterval(w.current)}},[]);var I="time-ago time-ago--".concat(f);return a.createElement("div",{className:I,suppressHydrationWarning:!0},a.createElement("time",{dateTime:t,"aria-label":"Updated on ".concat(t),suppressHydrationWarning:!0},L))};s.propTypes={date:c().string.isRequired,live:c().bool,editionInfo:c().shape({}),useLongFormat:c().bool,hoursLimit:c().number,useRelativePastLimit:c().bool},s.defaultProps={live:!0,editionInfo:{locale:"en"},useLongFormat:!1,hoursLimit:12,useRelativePastLimit:!1};const u=s},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},62688(e,t,r){e.exports=r(40362)()}}]); 2//# sourceMappingURL=TimeAgo.4d4c77149e40b5412b43.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.