Loading
function(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(615339),i=n(374372),s=n(355418),a=n(476858);let o=RegExp(`(questo|ultimo|scorso|prossimo|dopo\\s*questo|questa|ultima|scorsa|prossima\\s*questa)\\s*(${(0,a.uJ)(r.EB)})(?=\\s*)(?=\\W|$)`,"i"),l=1,u=2;class c extends s.c{innerPattern(){return o}innerExtract(e,t){let n=t[l].toLowerCase(),s=t[u].toLowerCase(),a=r.EB[s];if("prossimo"==n||n.startsWith("dopo")){let t={};return t[a]=1,i.BP.createRelativeFromReference(e.reference,t)}if("prima"==n||"precedente"==n){let t={};return t[a]=-1,i.BP.createRelativeFromReference(e.reference,t)}let o=e.createParsingComponents(),c=new Date(e.reference.instant.getTime());return s.match(/settimana/i)?(c.setDate(c.getDate()-c.getDay()),o.imply("day",c.getDate()),o.imply("month",c.getMonth()+1),o.imply("year",c.getFullYear())):s.match(/mese/i)?(c.setDate(1),o.imply("day",c.getDate()),o.assign("year",c.getFullYear()),o.assign("month",c.getMonth()+1)):s.match(/anno/i)&&(c.setDate(1),c.setMonth(0),o.imply("day",c.getDate()),o.imply("month",c.getMonth()+1),o.assign("year",c.getFullYear())),o}}}