@stackshift-ui/blog 6.0.7-beta.1 → 6.0.8-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/blog.js CHANGED
@@ -1 +1 @@
1
- "use strict";var Ef=Object.create;var K=Object.defineProperty;var Lf=Object.getOwnPropertyDescriptor;var zf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,Af=Object.prototype.hasOwnProperty;var a=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},Be=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zf(t))!Af.call(e,o)&&o!==r&&K(e,o,{get:()=>t[o],enumerable:!(n=Lf(t,o))||n.enumerable});return e};var xe=(e,t,r)=>(r=e!=null?Ef(Rf(e)):{},Be(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),Qf=e=>Be(K({},"__esModule",{value:!0}),e);var Bf,Zu,ee,qe,qf,je,Ku,jf,Xf,em,he,q=a(()=>{"use strict";Bf=Math.pow(10,8)*24*60*60*1e3,Zu=-Bf,ee=6048e5,qe=864e5,qf=3600,je=qf*24,Ku=je*7,jf=je*365.2425,Xf=jf/12,em=Xf*3,he=Symbol.for("constructDateFrom")});function p(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&he in e?e[he](t):e instanceof Date?new e.constructor(t):new Date(t)}var F=a(()=>{"use strict";q()});function b(e,t){return p(t||e,e)}var I=a(()=>{"use strict";F()});var Xe=a(()=>{"use strict"});var Ue=a(()=>{"use strict"});var Ve=a(()=>{"use strict"});var Ge=a(()=>{"use strict"});var Je=a(()=>{"use strict"});var Ze=a(()=>{"use strict"});var Ke=a(()=>{"use strict"});var et=a(()=>{"use strict"});var tt=a(()=>{"use strict"});function W(){return Uf}var Uf,j=a(()=>{"use strict";Uf={}});function N(e,t){var c,l,D,y,w,h,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.weekStartsOn)!=null?D:(l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)!=null?y:r.weekStartsOn)!=null?M:(h=(w=r.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)!=null?O:0,o=b(e,t==null?void 0:t.in),f=o.getDay(),u=(f<n?7:0)+f-n;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}var L=a(()=>{"use strict";j();I()});function H(e,t){return N(e,{...t,weekStartsOn:1})}var X=a(()=>{"use strict";L()});function te(e,t){let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=p(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let f=H(o),u=p(r,0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);let c=H(u);return r.getTime()>=f.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}var re=a(()=>{"use strict";F();X();I()});function ge(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}var rt=a(()=>{"use strict";I()});function at(e,...t){let r=p.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var nt=a(()=>{"use strict";F()});function De(e,t){let r=b(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}var ye=a(()=>{"use strict";I()});function ot(e,t,r){let[n,o]=at(r==null?void 0:r.in,e,t),f=De(n),u=De(o),c=+f-ge(f),l=+u-ge(u);return Math.round((c-l)/qe)}var we=a(()=>{"use strict";rt();nt();q();ye()});function ft(e,t){let r=te(e,t),n=p((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),H(n)}var be=a(()=>{"use strict";F();re();X()});var ut=a(()=>{"use strict"});var mt=a(()=>{"use strict"});var ct=a(()=>{"use strict"});var it=a(()=>{"use strict"});var lt=a(()=>{"use strict"});var dt=a(()=>{"use strict"});var st=a(()=>{"use strict"});var xt=a(()=>{"use strict"});var ht=a(()=>{"use strict"});var gt=a(()=>{"use strict"});var Dt=a(()=>{"use strict"});var yt=a(()=>{"use strict"});var wt=a(()=>{"use strict"});var bt=a(()=>{"use strict"});var Mt=a(()=>{"use strict"});var Ot=a(()=>{"use strict"});var kt=a(()=>{"use strict"});var St=a(()=>{"use strict"});function pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Me=a(()=>{"use strict"});function vt(e){return!(!pt(e)&&typeof e!="number"||isNaN(+b(e)))}var Oe=a(()=>{"use strict";Me();I()});var It=a(()=>{"use strict"});var Tt=a(()=>{"use strict"});var Nt=a(()=>{"use strict"});var Yt=a(()=>{"use strict"});var Ft=a(()=>{"use strict"});var Wt=a(()=>{"use strict"});var Pt=a(()=>{"use strict"});var _t=a(()=>{"use strict"});var Ct=a(()=>{"use strict"});var Ht=a(()=>{"use strict"});var $t=a(()=>{"use strict"});var Et=a(()=>{"use strict"});var Lt=a(()=>{"use strict"});var zt=a(()=>{"use strict"});var Rt=a(()=>{"use strict"});var At=a(()=>{"use strict"});var Qt=a(()=>{"use strict"});var Bt=a(()=>{"use strict"});var qt=a(()=>{"use strict"});var jt=a(()=>{"use strict"});var Xt=a(()=>{"use strict"});var Ut=a(()=>{"use strict"});var Vt=a(()=>{"use strict"});var Gt=a(()=>{"use strict"});var Jt=a(()=>{"use strict"});var Zt=a(()=>{"use strict"});var Kt=a(()=>{"use strict"});var er=a(()=>{"use strict"});var tr=a(()=>{"use strict"});var rr=a(()=>{"use strict"});var ar=a(()=>{"use strict"});var nr=a(()=>{"use strict"});var or=a(()=>{"use strict"});function fr(e,t){let r=b(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var ke=a(()=>{"use strict";I()});var ur=a(()=>{"use strict"});var mr=a(()=>{"use strict"});var cr=a(()=>{"use strict"});var ir=a(()=>{"use strict"});var lr=a(()=>{"use strict"});var dr=a(()=>{"use strict"});var sr=a(()=>{"use strict"});var xr=a(()=>{"use strict"});var hr=a(()=>{"use strict"});var gr=a(()=>{"use strict"});var Dr=a(()=>{"use strict"});var yr=a(()=>{"use strict"});var wr=a(()=>{"use strict"});var Vf,br,Mr=a(()=>{"use strict";Vf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},br=(e,t,r)=>{let n,o=Vf[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n}});function ae(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Or=a(()=>{"use strict"});var Gf,Jf,Zf,kr,Sr=a(()=>{"use strict";Or();Gf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kr={date:ae({formats:Gf,defaultWidth:"full"}),time:ae({formats:Jf,defaultWidth:"full"}),dateTime:ae({formats:Zf,defaultWidth:"full"})}});var Kf,pr,vr=a(()=>{"use strict";Kf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pr=(e,t,r,n)=>Kf[e]});function z(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,c=r!=null&&r.width?String(r.width):u;o=e.formattingValues[c]||e.formattingValues[u]}else{let u=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[c]||e.values[u]}let f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var Ir=a(()=>{"use strict"});var eu,tu,ru,au,nu,ou,fu,Tr,Nr=a(()=>{"use strict";Ir();eu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ru={narrow:["tf","F","M","A","M","tf","tf","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},au={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","ue","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ou={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},fu=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Tr={ordinalNumber:fu,era:z({values:eu,defaultWidth:"wide"}),quarter:z({values:tu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:z({values:ru,defaultWidth:"wide"}),day:z({values:au,defaultWidth:"wide"}),dayPeriod:z({values:nu,defaultWidth:"wide",formattingValues:ou,defaultFormattingWidth:"wide"})}});function R(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],f=t.match(o);if(!f)return null;let u=f[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?mu(c,w=>w.test(u)):uu(c,w=>w.test(u)),D;D=e.valueCallback?e.valueCallback(l):l,D=r.valueCallback?r.valueCallback(D):D;let y=t.slice(u.length);return{value:D,rest:y}}}function uu(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function mu(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}var Yr=a(()=>{"use strict"});function Fr(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],f=t.match(e.parsePattern);if(!f)return null;let u=e.valueCallback?e.valueCallback(f[0]):f[0];u=r.valueCallback?r.valueCallback(u):u;let c=t.slice(o.length);return{value:u,rest:c}}}var Wr=a(()=>{"use strict"});var cu,iu,lu,du,su,xu,hu,gu,Du,yu,wu,bu,Pr,_r=a(()=>{"use strict";Yr();Wr();cu=/^(\d+)(th|st|nd|rd)?/i,iu=/\d+/i,lu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},du={any:[/^b/i,/^(a|c)/i]},su={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xu={any:[/1/i,/2/i,/3/i,/4/i]},hu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Du={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Pr={ordinalNumber:Fr({matchPattern:cu,parsePattern:iu,valueCallback:e=>parseInt(e,10)}),era:R({matchPatterns:lu,defaultMatchWidth:"wide",parsePatterns:du,defaultParseWidth:"any"}),quarter:R({matchPatterns:su,defaultMatchWidth:"wide",parsePatterns:xu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:R({matchPatterns:hu,defaultMatchWidth:"wide",parsePatterns:gu,defaultParseWidth:"any"}),day:R({matchPatterns:Du,defaultMatchWidth:"wide",parsePatterns:yu,defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:wu,defaultMatchWidth:"any",parsePatterns:bu,defaultParseWidth:"any"})}});var Se,Cr=a(()=>{"use strict";Mr();Sr();vr();Nr();_r();Se={code:"en-US",formatDistance:br,formatLong:kr,formatRelative:pr,localize:Tr,match:Pr,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var Hr=a(()=>{"use strict";Cr()});function $r(e,t){let r=b(e,t==null?void 0:t.in);return ot(r,fr(r))+1}var pe=a(()=>{"use strict";we();ke();I()});function Er(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+ft(r);return Math.round(n/ee)+1}var ve=a(()=>{"use strict";q();X();be();I()});function ne(e,t){var y,w,h,M,O,_,C,E;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=W(),f=(E=(C=(M=(h=t==null?void 0:t.firstWeekContainsDate)!=null?h:(w=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)!=null?M:o.firstWeekContainsDate)!=null?C:(_=(O=o.locale)==null?void 0:O.options)==null?void 0:_.firstWeekContainsDate)!=null?E:1,u=p((t==null?void 0:t.in)||e,0);u.setFullYear(n+1,0,f),u.setHours(0,0,0,0);let c=N(u,t),l=p((t==null?void 0:t.in)||e,0);l.setFullYear(n,0,f),l.setHours(0,0,0,0);let D=N(l,t);return+r>=+c?n+1:+r>=+D?n:n-1}var oe=a(()=>{"use strict";j();F();L();I()});function Lr(e,t){var c,l,D,y,w,h,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.firstWeekContainsDate)!=null?D:(l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)!=null?y:r.firstWeekContainsDate)!=null?M:(h=(w=r.locale)==null?void 0:w.options)==null?void 0:h.firstWeekContainsDate)!=null?O:1,o=ne(e,t),f=p((t==null?void 0:t.in)||e,0);return f.setFullYear(o,0,n),f.setHours(0,0,0,0),N(f,t)}var Ie=a(()=>{"use strict";j();F();oe();L()});function zr(e,t){let r=b(e,t==null?void 0:t.in),n=+N(r,t)-+Lr(r,t);return Math.round(n/ee)+1}var Te=a(()=>{"use strict";q();L();Ie();I()});function x(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Ne=a(()=>{"use strict"});var Y,Rr=a(()=>{"use strict";Ne();Y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return x(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):x(r+1,2)},d(e,t){return x(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return x(e.getHours()%12||12,t.length)},H(e,t){return x(e.getHours(),t.length)},m(e,t){return x(e.getMinutes(),t.length)},s(e,t){return x(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return x(o,t.length)}}});function Ar(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),f=n%60;return f===0?r+String(o):r+String(o)+t+x(f,2)}function Qr(e,t){return e%60===0?(e>0?"-":"+")+x(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=x(Math.trunc(n/60),2),f=x(n%60,2);return r+o+t+f}var A,Ye,Br=a(()=>{"use strict";pe();ve();re();Te();oe();Ne();Rr();A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ye={ue:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"ue":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,r,n){let o=ne(e,n),f=o>0?o:1-o;if(t==="YY"){let u=f%100;return x(u,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):x(f,t.length)},R:function(e,t){let r=te(e);return x(r,t.length)},u:function(e,t){let r=e.getFullYear();return x(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return x(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return x(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return x(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=zr(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):x(o,t.length)},I:function(e,t,r){let n=Er(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):x(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,r){let n=$r(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):x(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return x(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return x(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return x(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=A.noon:n===0?o=A.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=A.evening:n>=12?o=A.afternoon:n>=4?o=A.morning:o=A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Qr(n);case"XXXX":case"XX":return $(n);case"XXXXX":case"XXX":default:return $(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Qr(n);case"xxxx":case"xx":return $(n);case"xxxxx":case"xxx":default:return $(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ar(n,":");case"OOOO":default:return"GMT"+$(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ar(n,":");case"zzzz":default:return"GMT"+$(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return x(n,t.length)},T:function(e,t,r){return x(+e,t.length)}}});var qr,jr,Mu,Xr,Ur=a(()=>{"use strict";qr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},jr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mu=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return qr(e,t);let f;switch(n){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",qr(n,t)).replace("{{time}}",jr(o,t))},Xr={p:jr,P:Mu}});function Vr(e){return Ou.test(e)}function Gr(e){return ku.test(e)}function Jr(e,t,r){let n=pu(e,t,r);if(console.warn(n),Su.includes(e))throw new RangeError(n)}function pu(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Ou,ku,Su,Zr=a(()=>{"use strict";Ou=/^D+$/,ku=/^Y+$/,Su=["D","DD","YY","YYYY"]});function P(e,t,r){var y,w,h,M,O,_,C,E,i,k,T,$e,Ee,Le,ze,Re,Ae,Qe;let n=W(),o=(w=(y=r==null?void 0:r.locale)!=null?y:n.locale)!=null?w:Se,f=(k=(i=(_=(O=r==null?void 0:r.firstWeekContainsDate)!=null?O:(M=(h=r==null?void 0:r.locale)==null?void 0:h.options)==null?void 0:M.firstWeekContainsDate)!=null?_:n.firstWeekContainsDate)!=null?i:(E=(C=n.locale)==null?void 0:C.options)==null?void 0:E.firstWeekContainsDate)!=null?k:1,u=(Qe=(Ae=(Le=(Ee=r==null?void 0:r.weekStartsOn)!=null?Ee:($e=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:$e.weekStartsOn)!=null?Le:n.weekStartsOn)!=null?Ae:(Re=(ze=n.locale)==null?void 0:ze.options)==null?void 0:Re.weekStartsOn)!=null?Qe:0,c=b(e,r==null?void 0:r.in);if(!vt(c))throw new RangeError("Invalid time value");let l=t.match(Iu).map(v=>{let S=v[0];if(S==="p"||S==="P"){let se=Xr[S];return se(v,o.formatLong)}return v}).join("").match(vu).map(v=>{if(v==="''")return{isToken:!1,value:"'"};let S=v[0];if(S==="'")return{isToken:!1,value:Fu(v)};if(Ye[S])return{isToken:!0,value:v};if(S.match(Yu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:v}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));let D={firstWeekContainsDate:f,weekStartsOn:u,locale:o};return l.map(v=>{if(!v.isToken)return v.value;let S=v.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Gr(S)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Vr(S))&&Jr(S,t,String(e));let se=Ye[S[0]];return se(c,S,o.localize,D)}).join("")}function Fu(e){let t=e.match(Tu);return t?t[1].replace(Nu,"'"):e}var vu,Iu,Tu,Nu,Yu,Kr=a(()=>{"use strict";Hr();j();Br();Ur();Zr();Oe();I();vu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tu=/^'([^]*?)'?$/,Nu=/''/g,Yu=/[a-zA-Z]/});var ea=a(()=>{"use strict"});var ta=a(()=>{"use strict"});var ra=a(()=>{"use strict"});var aa=a(()=>{"use strict"});var na=a(()=>{"use strict"});var oa=a(()=>{"use strict"});var fa=a(()=>{"use strict"});var ua=a(()=>{"use strict"});var ma=a(()=>{"use strict"});var ca=a(()=>{"use strict"});var ia=a(()=>{"use strict"});var la=a(()=>{"use strict"});var da=a(()=>{"use strict"});var sa=a(()=>{"use strict"});var xa=a(()=>{"use strict"});var ha=a(()=>{"use strict"});var ga=a(()=>{"use strict"});var Da=a(()=>{"use strict"});var ya=a(()=>{"use strict"});var wa=a(()=>{"use strict"});var ba=a(()=>{"use strict"});var Ma=a(()=>{"use strict"});var Oa=a(()=>{"use strict"});var ka=a(()=>{"use strict"});var Sa=a(()=>{"use strict"});var pa=a(()=>{"use strict"});var va=a(()=>{"use strict"});var Ia=a(()=>{"use strict"});var Ta=a(()=>{"use strict"});var Na=a(()=>{"use strict"});var Ya=a(()=>{"use strict"});var Fa=a(()=>{"use strict"});var Wa=a(()=>{"use strict"});var Pa=a(()=>{"use strict"});var _a=a(()=>{"use strict"});var Ca=a(()=>{"use strict"});var Ha=a(()=>{"use strict"});var $a=a(()=>{"use strict"});var Ea=a(()=>{"use strict"});var La=a(()=>{"use strict"});var za=a(()=>{"use strict"});var Ra=a(()=>{"use strict"});var Aa=a(()=>{"use strict"});var Qa=a(()=>{"use strict"});var Ba=a(()=>{"use strict"});var qa=a(()=>{"use strict"});var ja=a(()=>{"use strict"});var Xa=a(()=>{"use strict"});var Ua=a(()=>{"use strict"});var Va=a(()=>{"use strict"});var Ga=a(()=>{"use strict"});var Ja=a(()=>{"use strict"});var Za=a(()=>{"use strict"});var Ka=a(()=>{"use strict"});var en=a(()=>{"use strict"});var tn=a(()=>{"use strict"});var rn=a(()=>{"use strict"});var an=a(()=>{"use strict"});var nn=a(()=>{"use strict"});var on=a(()=>{"use strict"});var fn=a(()=>{"use strict"});var un=a(()=>{"use strict"});var mn=a(()=>{"use strict"});var cn=a(()=>{"use strict"});var ln=a(()=>{"use strict"});var dn=a(()=>{"use strict"});var sn=a(()=>{"use strict"});var xn=a(()=>{"use strict"});var hn=a(()=>{"use strict"});var gn=a(()=>{"use strict"});var Dn=a(()=>{"use strict"});var yn=a(()=>{"use strict"});var wn=a(()=>{"use strict"});var bn=a(()=>{"use strict"});var Mn=a(()=>{"use strict"});var On=a(()=>{"use strict"});var kn=a(()=>{"use strict"});var Sn=a(()=>{"use strict"});var pn=a(()=>{"use strict"});var vn=a(()=>{"use strict"});var In=a(()=>{"use strict"});var Tn=a(()=>{"use strict"});var Nn=a(()=>{"use strict"});var Yn=a(()=>{"use strict"});var Fn=a(()=>{"use strict"});var Wn=a(()=>{"use strict"});var Pn=a(()=>{"use strict"});var _n=a(()=>{"use strict"});var Cn=a(()=>{"use strict"});var Hn=a(()=>{"use strict"});var $n=a(()=>{"use strict"});var En=a(()=>{"use strict"});var Ln=a(()=>{"use strict"});var zn=a(()=>{"use strict"});var Rn=a(()=>{"use strict"});var An=a(()=>{"use strict"});var Qn=a(()=>{"use strict"});var Bn=a(()=>{"use strict"});var qn=a(()=>{"use strict"});var jn=a(()=>{"use strict"});var Xn=a(()=>{"use strict"});var Un=a(()=>{"use strict"});var Vn=a(()=>{"use strict"});var Gn=a(()=>{"use strict"});var Jn=a(()=>{"use strict"});var Zn=a(()=>{"use strict"});var Kn=a(()=>{"use strict"});var eo=a(()=>{"use strict"});var to=a(()=>{"use strict"});var ro=a(()=>{"use strict"});var ao=a(()=>{"use strict"});var no=a(()=>{"use strict"});var oo=a(()=>{"use strict"});var fo=a(()=>{"use strict"});var uo=a(()=>{"use strict"});var mo=a(()=>{"use strict"});var co=a(()=>{"use strict"});var io=a(()=>{"use strict"});var lo=a(()=>{"use strict"});var so=a(()=>{"use strict"});var xo=a(()=>{"use strict"});var ho=a(()=>{"use strict"});var go=a(()=>{"use strict"});var Do=a(()=>{"use strict"});var yo=a(()=>{"use strict"});var wo=a(()=>{"use strict"});var bo=a(()=>{"use strict"});var Mo=a(()=>{"use strict"});var Oo=a(()=>{"use strict"});var ko=a(()=>{"use strict"});var So=a(()=>{"use strict"});var po=a(()=>{"use strict"});var vo=a(()=>{"use strict"});var Io=a(()=>{"use strict"});var To=a(()=>{"use strict"});var No=a(()=>{"use strict"});var Yo=a(()=>{"use strict"});var Fo=a(()=>{"use strict"});var Wo=a(()=>{"use strict"});var Po=a(()=>{"use strict"});var _o=a(()=>{"use strict"});var Co=a(()=>{"use strict"});var Ho=a(()=>{"use strict"});var $o=a(()=>{"use strict"});var Eo=a(()=>{"use strict"});var Lo=a(()=>{"use strict"});var zo=a(()=>{"use strict"});var Ro=a(()=>{"use strict"});var Ao=a(()=>{"use strict"});var Qo=a(()=>{"use strict"});var Bo=a(()=>{"use strict"});var qo=a(()=>{"use strict"});var jo=a(()=>{"use strict"});var Xo=a(()=>{"use strict"});var Uo=a(()=>{"use strict"});var U=a(()=>{"use strict";Ve();Ke();Xe();tt();mt();et();ct();Ue();it();lt();dt();st();xt();Dt();yt();wt();bt();Mt();F();Ot();kt();It();we();Tt();Nt();Yt();Wt();Pt();_t();Ct();Ht();Et();Lt();zt();Bt();qt();jt();Xt();Ut();Vt();Gt();Jt();Zt();er();tr();rr();nr();ur();mr();Rt();cr();ir();dr();sr();xr();At();hr();gr();Dr();yr();lr();or();wr();Kr();ea();ta();ra();aa();na();oa();fa();ua();ma();ca();ia();la();da();sa();pe();xa();ga();Da();ya();wa();ba();ve();re();Ma();Oa();ka();Sa();pa();Ft();va();Ia();Ta();Te();Na();oe();Fa();Wa();Pa();_a();Ca();Ha();$a();Ea();La();za();Ra();Me();Aa();Qa();Ba();qa();ja();Qt();ha();Ka();en();tn();St();an();on();fn();mn();cn();ln();sn();nn();xn();Ge();Je();hn();gn();Dn();yn();wn();bn();Mn();On();kn();Sn();pn();vn();Oe();In();Ze();Tn();Yn();Fn();Pn();_n();Ya();Cn();Wn();Hn();$n();ht();En();Ln();zn();Rn();gt();An();Qn();Bn();qn();jn();Xn();Un();Vn();Gn();Jn();Zn();Kn();eo();Za();to();ro();ao();no();oo();fo();uo();mo();co();io();lo();so();xo();ho();go();Do();yo();bo();Mo();Ga();Oo();ko();So();Ja();Va();ut();po();vo();wo();Io();To();Ua();No();Yo();ye();Fo();rn();X();be();un();ar();Kt();dn();Wo();Po();L();Ie();ke();_o();Ho();$o();Nn();Eo();$t();Lo();zo();Co();Ro();Ao();Qo();Bo();I();Xa();qo();jo();Xo();Uo()});var af={};B(af,{Blog_A:()=>rf,default:()=>rf});function rf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,g.jsx)(ef.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(Go.Container,{maxWidth:1280,children:[(0,g.jsx)(Wu,{subtitle:e,title:t}),(0,g.jsx)(Pu,{posts:r}),(0,g.jsx)(_u,{primaryButton:n})]})})}function Wu({subtitle:e,title:t}){return(0,g.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,g.jsx)(tf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,g.jsx)(Jo.Heading,{fontSize:"3xl",children:t}):null]})}function Pu({posts:e}){var n,o,f,u;if(!e)return null;let t=6,r=0;return(0,g.jsxs)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,g.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((c,l)=>(0,g.jsx)(fe,{post:c},l)),(0,g.jsx)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+1,r+3))==null?void 0:o.map((c,l)=>(0,g.jsx)(fe,{post:c},l))})]}),(0,g.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,g.jsx)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(r+3,r+5))==null?void 0:f.map((c,l)=>(0,g.jsx)(fe,{post:c},l))}),(u=e==null?void 0:e.slice(r+5,t))==null?void 0:u.map((c,l)=>(0,g.jsx)(fe,{post:c},l))]})]})}function fe({post:e,key:t}){var r,n,o;return(0,g.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,g.jsx)(Zo.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,g.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,g.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,g.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((f,u)=>(0,g.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:f==null?void 0:f.title},u))}):null,(0,g.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?P(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),e!=null&&e.title?(0,g.jsx)(Ko.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((o=e==null?void 0:e.title)==null?void 0:o.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function _u({primaryButton:e}){return e!=null&&e.label?(0,g.jsx)("div",{className:"mt-10 text-center",children:(0,g.jsx)(Vo.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var Vo,Go,ue,Jo,Zo,Ko,ef,tf,g,nf=a(()=>{"use strict";Vo=require("@stackshift-ui/button"),Go=require("@stackshift-ui/container"),ue=require("@stackshift-ui/flex"),Jo=require("@stackshift-ui/heading"),Zo=require("@stackshift-ui/image"),Ko=require("@stackshift-ui/link"),ef=require("@stackshift-ui/section"),tf=require("@stackshift-ui/text");U();g=require("react/jsx-runtime")});var me,ce,Fe=a(()=>{"use strict";me=xe(require("react")),ce=e=>{let[t,r]=me.default.useState(!1),n=me.default.useCallback(o=>{o.matches?r(!0):r(!1)},[]);return me.default.useEffect(()=>{let o=window.matchMedia(`(max-width: ${e}px)`);return o.addEventListener("change",n),o.matches&&r(!0),()=>o.removeEventListener("change",n)},[]),t}});var df={};B(df,{Blog_B:()=>lf,default:()=>lf});function lf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,s.jsx)(ef.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(Go.Container,{maxWidth:1280,children:[(0,s.jsx)(Cu,{subtitle:e,title:t}),(0,s.jsx)(Hu,{posts:r,count:0,blogsPerPage:5}),(0,s.jsx)(Eu,{primaryButton:n})]})})}function Cu({subtitle:e,title:t}){return(0,s.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,s.jsx)(tf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,s.jsx)(Jo.Heading,{fontSize:"3xl",children:t}):null]})}function Hu({posts:e,count:t,blogsPerPage:r}){return(0,s.jsxs)(ue.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,s.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,o)=>(0,s.jsx)(of,{size:"lg",post:n},o))}),(0,s.jsx)(ue.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,o)=>(0,s.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,s.jsx)(of,{post:n,size:"sm"},o)},o))})]})}function of({post:e,size:t,key:r}){let n=ce("1024");return(0,s.jsxs)("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,s.jsx)($u,{post:e,size:t,breakpoints:n},r):null,(0,s.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,s.jsxs)("div",{children:[e!=null&&e.publishedAt?(0,s.jsx)(tf.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,e!=null&&e.title?(0,s.jsx)(Jo.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,s.jsx)(tf.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,s.jsx)(Ko.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function $u({post:e,size:t,breakpoints:r,key:n}){var o;return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsx)(Zo.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(o=e==null?void 0:e.mainImage)!=null?o:`blog-variantB-image-${n}`}):(0,s.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,s.jsx)(Zo.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function Eu({primaryButton:e}){return e!=null&&e.label?(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(ff.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var ff,Go,ue,Jo,Zo,Ko,ef,tf,s,sf=a(()=>{"use strict";ff=require("@stackshift-ui/button");U();Fe();s=require("react/jsx-runtime")});var kf={};B(kf,{Blog_C:()=>Of,default:()=>Of});function Of({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(ef.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(Go.Container,{maxWidth:1280,children:[(0,d.jsxs)(ue.Flex,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:4,children:[(0,d.jsx)(Lu,{subtitle:e,title:t}),(0,d.jsx)(xf,{primaryButton:n})]}),(0,d.jsx)(zu,{posts:r,blogsPerPage:3}),(0,d.jsx)(xf,{primaryButton:n})]})})}function Lu({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"text-center md:text-left",children:[e?(0,d.jsx)(tf.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,d.jsx)(Jo.Heading,{fontSize:"3xl",children:t}):null]})}function zu({posts:e,blogsPerPage:t}){var r;return e?(0,d.jsx)("div",{children:(r=e==null?void 0:e.slice(0,t))==null?void 0:r.map((n,o)=>(0,d.jsx)("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-md shadow",children:(0,d.jsx)(Ru,{post:n,className:`${o%2===0?"flex-row":"flex-row-reverse"}`},o)},o))}):null}function Ru({post:e,className:t,key:r}){var f,u,c,l,D,y,w;let o=ce("1100")?70:200;return(0,d.jsxs)(ue.Flex,{wrap:!0,className:`bg-white overflow-hidden rounded-lg shadow w-full ${t}`,children:[(e==null?void 0:e.mainImage)&&(0,d.jsx)(Zo.Image,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:(f=e==null?void 0:e.alt)!=null?f:`blog-variantC-image-${r}`}),(0,d.jsxs)("div",{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[(0,d.jsxs)(ue.Flex,{gap:2,children:[(e==null?void 0:e.categories)&&((u=e==null?void 0:e.categories)==null?void 0:u.map((h,M)=>(0,d.jsx)(hf.Badge,{className:"bg-secondary/70",children:h==null?void 0:h.title},M))),(e==null?void 0:e.publishedAt)&&(0,d.jsx)(tf.Text,{muted:!0,className:"m-1",children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")})]}),(e==null?void 0:e.title)&&(0,d.jsx)(Jo.Heading,{className:"my-4",type:"h3",children:((c=e==null?void 0:e.title)==null?void 0:c.length)>40?((l=e==null?void 0:e.title)==null?void 0:l.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&(0,d.jsxs)("div",{className:"flex mb-10 flex-wrap",children:[(0,d.jsx)("span",{className:"italic text-primary",children:"By\xA0"}),(D=e==null?void 0:e.authors)==null?void 0:D.map((h,M,{length:O})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(tf.Text,{className:"italic text-primary",children:h==null?void 0:h.name}),M+1!==O?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,d.jsx)(tf.Text,{muted:!0,className:"mb-6 leading-loose text-justify",children:((y=e==null?void 0:e.excerpt)==null?void 0:y.length)>o?((w=e==null?void 0:e.excerpt)==null?void 0:w.substring(0,o))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&(0,d.jsx)(Ko.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-primary-foreground",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function xf({primaryButton:e}){return e!=null&&e.label?(0,d.jsx)(Mf.default.Fragment,{children:(0,d.jsx)(gf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var hf,gf,Go,ue,Jo,Zo,Ko,ef,tf,Mf,d,Sf=a(()=>{"use strict";hf=require("@stackshift-ui/badge"),gf=require("@stackshift-ui/button");U();Mf=xe(require("react"));Fe();d=require("react/jsx-runtime")});var _f={};B(_f,{Blog_D:()=>Pf,default:()=>Pf});function Pf({subtitle:e,title:t,posts:r}){let[n,o]=Q.default.useState("All"),[f,u]=Q.default.useState(1),[c,l]=Q.default.useState(""),D=6;Q.default.useEffect(()=>{u(1)},[n]);let y=(r!=null?r:[]).flatMap(i=>{var k;return((k=i==null?void 0:i.categories)!=null?k:[]).map(T=>({category:T==null?void 0:T.title,title:i==null?void 0:i.title,slug:i==null?void 0:i.slug,excerpt:i==null?void 0:i.excerpt,publishedAt:i==null?void 0:i.publishedAt,mainImage:i==null?void 0:i.mainImage,authors:i==null?void 0:i.authors}))}),w=y==null?void 0:y.reduce((i,k)=>{let T=k==null?void 0:k.category;return i.indexOf(T)===-1&&i.push(T),i},[]),h=n==="All"?r==null?void 0:r.filter(i=>{var k;return(k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(c.toLowerCase())}):y.filter(i=>{var k;return(i==null?void 0:i.category)===n&&((k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(c.toLowerCase()))}),M=f*D,O=M-D,_=h==null?void 0:h.slice(O,M),C=i=>u(i);return(0,m.jsx)(ef.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(Go.Container,{maxWidth:1280,children:[(0,m.jsx)(Qu,{subtitle:e,title:t}),(0,m.jsx)(Bu,{handleSearchChange:i=>{l(i.target.value),o("All"),u(1)}}),(0,m.jsxs)(ue.Flex,{wrap:!0,children:[(0,m.jsx)(qu,{categories:w,activeTab:n,setActiveTab:o}),(h==null?void 0:h.length)===0?(0,m.jsx)(Au,{}):(0,m.jsx)(ju,{currentPosts:_,activeTab:n,blogsPerPage:D})]}),(0,m.jsx)(Xu,{blogsPerPage:D,totalBlogs:h==null?void 0:h.length,paginate:C,currentPage:f})]})})}function Au({message:e="No post available."}){return(0,m.jsx)("div",{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function Qu({subtitle:e,title:t}){return(0,m.jsxs)("div",{className:"w-full mb-16",children:[e?(0,m.jsx)(tf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,m.jsx)(Jo.Heading,{fontSize:"3xl",children:t}):null]})}function Bu({handleSearchChange:e}){return(0,m.jsxs)("div",{className:"relative mb-5 w-full lg:w-1/4",children:[(0,m.jsx)(Yf.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white border rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,m.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white border-r rounded-global text-primary flex items-center",children:(0,m.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function qu({categories:e,activeTab:t,setActiveTab:r}){return(0,m.jsx)(If.Card,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"md",children:e&&(0,m.jsxs)(Q.default.Fragment,{children:[(0,m.jsx)(Jo.Heading,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),(0,m.jsxs)("ul",{children:[(e==null?void 0:e.length)>1&&(0,m.jsx)(pf,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,m.jsx)(pf,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function pf({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,m.jsx)("li",{children:(0,m.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Show all blog posts",className:`mb-4 block ${n?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===n?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>r(n),children:n})},e)}function ju({currentPosts:e,activeTab:t,blogsPerPage:r}){var n;return e?(0,m.jsx)("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((o,f)=>(0,m.jsx)(vf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,m.jsx)(vf,{post:o},f))}):null}function vf({post:e}){var t,r,n,o;return e?(0,m.jsxs)(ue.Flex,{wrap:!0,className:"mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[(0,m.jsx)("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:(0,m.jsx)(Zo.Image,{className:"object-cover w-full h-full overflow-hidden rounded",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:(t=e==null?void 0:e.alt)!=null?t:`blog-variantD-image-${e==null?void 0:e.title}`})}),(0,m.jsxs)("div",{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&(0,m.jsx)(Ko.Link,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading",href:`/${(r=e==null?void 0:e.link)!=null?r:"page-not-added"}`,children:(e==null?void 0:e.title.length)>25?((n=e==null?void 0:e.title)==null?void 0:n.substring(0,25))+"...":e==null?void 0:e.title}),(0,m.jsxs)(ue.Flex,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:c})=>(0,m.jsxs)(ue.Flex,{children:[(0,m.jsx)(tf.Text,{className:"text-primary",children:f==null?void 0:f.name}),u+1!==c?(0,m.jsx)("span",{children:"\xA0,\xA0"}):null]},u)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?(0,m.jsx)("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?(0,m.jsx)(tf.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,m.jsx)(tf.Text,{muted:!0,children:(e==null?void 0:e.excerpt.length)>60?(e==null?void 0:e.excerpt.substring(0,60))+"...":e==null?void 0:e.excerpt}):null]})]}):null}function Xu({blogsPerPage:e,totalBlogs:t,paginate:r,currentPage:n}){if(!e)return null;let o=[];for(let f=1;f<=Math.ceil(t/e);f++)o.push(f);return(0,m.jsx)("nav",{className:"mt-4","aria-label":"Pagination",children:(0,m.jsx)("ul",{className:"flex space-x-2 justify-end mr-5",children:o.map(f=>(0,m.jsx)(de.Button,{variant:"unstyled",as:"button",ariaLabel:`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded-global focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var de,If,Go,ue,Jo,Zo,Yf,Ko,ef,tf,Q,m,Cf=a(()=>{"use strict";de=require("@stackshift-ui/button"),If=require("@stackshift-ui/card"),Yf=require("@stackshift-ui/input");U();Q=xe(require("react")),m=require("react/jsx-runtime")});var Gu={};B(Gu,{Blog:()=>Hf});module.exports=Qf(Gu);var Z=require("react"),Uu={variant_a:(0,Z.lazy)(()=>Promise.resolve().then(()=>(nf(),af))),variant_b:(0,Z.lazy)(()=>Promise.resolve().then(()=>(sf(),df))),variant_c:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Sf(),kf))),variant_d:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Cf(),_f)))},Vu="Blog",Hf=({data:e})=>{var o,f,u,c,l,D,y,w;let t=e==null?void 0:e.variant,r=t&&Uu[t],n={subtitle:(f=(o=e==null?void 0:e.variants)==null?void 0:o.subtitle)!=null?f:void 0,title:(c=(u=e==null?void 0:e.variants)==null?void 0:u.title)!=null?c:void 0,posts:(D=(l=e==null?void 0:e.variants)==null?void 0:l.posts)!=null?D:void 0,primaryButton:(w=(y=e==null?void 0:e.variants)==null?void 0:y.primaryButton)!=null?w:void 0};return r?(0,$f.jsx)(r,{...n}):null};Hf.displayName=Vu;0&&(module.exports={Blog});
1
+ "use strict";var Ef=Object.create;var te=Object.defineProperty;var zf=Object.getOwnPropertyDescriptor;var Lf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,Af=Object.prototype.hasOwnProperty;var a=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},qe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lf(t))!Af.call(e,o)&&o!==r&&te(e,o,{get:()=>t[o],enumerable:!(n=zf(t,o))||n.enumerable});return e};var he=(e,t,r)=>(r=e!=null?Ef(Rf(e)):{},qe(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Qf=e=>qe(te({},"__esModule",{value:!0}),e);var Bf,Zu,re,je,qf,Xe,Ku,jf,Xf,em,ge,q=a(()=>{"use strict";Bf=Math.pow(10,8)*24*60*60*1e3,Zu=-Bf,re=6048e5,je=864e5,qf=3600,Xe=qf*24,Ku=Xe*7,jf=Xe*365.2425,Xf=jf/12,em=Xf*3,ge=Symbol.for("constructDateFrom")});function v(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ge in e?e[ge](t):e instanceof Date?new e.constructor(t):new Date(t)}var F=a(()=>{"use strict";q()});function b(e,t){return v(t||e,e)}var I=a(()=>{"use strict";F()});var Ue=a(()=>{"use strict"});var Ve=a(()=>{"use strict"});var Ge=a(()=>{"use strict"});var Je=a(()=>{"use strict"});var Ze=a(()=>{"use strict"});var Ke=a(()=>{"use strict"});var et=a(()=>{"use strict"});var tt=a(()=>{"use strict"});var rt=a(()=>{"use strict"});function W(){return Uf}var Uf,j=a(()=>{"use strict";Uf={}});function N(e,t){var m,s,D,y,w,g,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.weekStartsOn)!=null?D:(s=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:s.weekStartsOn)!=null?y:r.weekStartsOn)!=null?M:(g=(w=r.locale)==null?void 0:w.options)==null?void 0:g.weekStartsOn)!=null?O:0,o=b(e,t==null?void 0:t.in),f=o.getDay(),u=(f<n?7:0)+f-n;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}var z=a(()=>{"use strict";j();I()});function H(e,t){return N(e,{...t,weekStartsOn:1})}var X=a(()=>{"use strict";z()});function ae(e,t){let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=v(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let f=H(o),u=v(r,0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);let m=H(u);return r.getTime()>=f.getTime()?n+1:r.getTime()>=m.getTime()?n:n-1}var ne=a(()=>{"use strict";F();X();I()});function De(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}var at=a(()=>{"use strict";I()});function nt(e,...t){let r=v.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var ot=a(()=>{"use strict";F()});function ye(e,t){let r=b(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}var we=a(()=>{"use strict";I()});function ft(e,t,r){let[n,o]=nt(r==null?void 0:r.in,e,t),f=ye(n),u=ye(o),m=+f-De(f),s=+u-De(u);return Math.round((m-s)/je)}var be=a(()=>{"use strict";at();ot();q();we()});function ut(e,t){let r=ae(e,t),n=v((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),H(n)}var Me=a(()=>{"use strict";F();ne();X()});var mt=a(()=>{"use strict"});var ct=a(()=>{"use strict"});var it=a(()=>{"use strict"});var lt=a(()=>{"use strict"});var dt=a(()=>{"use strict"});var st=a(()=>{"use strict"});var xt=a(()=>{"use strict"});var ht=a(()=>{"use strict"});var gt=a(()=>{"use strict"});var Dt=a(()=>{"use strict"});var yt=a(()=>{"use strict"});var wt=a(()=>{"use strict"});var bt=a(()=>{"use strict"});var Mt=a(()=>{"use strict"});var Ot=a(()=>{"use strict"});var kt=a(()=>{"use strict"});var St=a(()=>{"use strict"});var vt=a(()=>{"use strict"});function pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Oe=a(()=>{"use strict"});function It(e){return!(!pt(e)&&typeof e!="number"||isNaN(+b(e)))}var ke=a(()=>{"use strict";Oe();I()});var Tt=a(()=>{"use strict"});var Nt=a(()=>{"use strict"});var Yt=a(()=>{"use strict"});var Ft=a(()=>{"use strict"});var Wt=a(()=>{"use strict"});var Pt=a(()=>{"use strict"});var _t=a(()=>{"use strict"});var Ct=a(()=>{"use strict"});var Ht=a(()=>{"use strict"});var $t=a(()=>{"use strict"});var Et=a(()=>{"use strict"});var zt=a(()=>{"use strict"});var Lt=a(()=>{"use strict"});var Rt=a(()=>{"use strict"});var At=a(()=>{"use strict"});var Qt=a(()=>{"use strict"});var Bt=a(()=>{"use strict"});var qt=a(()=>{"use strict"});var jt=a(()=>{"use strict"});var Xt=a(()=>{"use strict"});var Ut=a(()=>{"use strict"});var Vt=a(()=>{"use strict"});var Gt=a(()=>{"use strict"});var Jt=a(()=>{"use strict"});var Zt=a(()=>{"use strict"});var Kt=a(()=>{"use strict"});var er=a(()=>{"use strict"});var tr=a(()=>{"use strict"});var rr=a(()=>{"use strict"});var ar=a(()=>{"use strict"});var nr=a(()=>{"use strict"});var or=a(()=>{"use strict"});var fr=a(()=>{"use strict"});function ur(e,t){let r=b(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Se=a(()=>{"use strict";I()});var mr=a(()=>{"use strict"});var cr=a(()=>{"use strict"});var ir=a(()=>{"use strict"});var lr=a(()=>{"use strict"});var dr=a(()=>{"use strict"});var sr=a(()=>{"use strict"});var xr=a(()=>{"use strict"});var hr=a(()=>{"use strict"});var gr=a(()=>{"use strict"});var Dr=a(()=>{"use strict"});var yr=a(()=>{"use strict"});var wr=a(()=>{"use strict"});var br=a(()=>{"use strict"});var Vf,Mr,Or=a(()=>{"use strict";Vf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mr=(e,t,r)=>{let n,o=Vf[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n}});function oe(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var kr=a(()=>{"use strict"});var Gf,Jf,Zf,Sr,vr=a(()=>{"use strict";kr();Gf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Sr={date:oe({formats:Gf,defaultWidth:"full"}),time:oe({formats:Jf,defaultWidth:"full"}),dateTime:oe({formats:Zf,defaultWidth:"full"})}});var Kf,pr,Ir=a(()=>{"use strict";Kf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pr=(e,t,r,n)=>Kf[e]});function L(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,m=r!=null&&r.width?String(r.width):u;o=e.formattingValues[m]||e.formattingValues[u]}else{let u=e.defaultWidth,m=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[m]||e.values[u]}let f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var Tr=a(()=>{"use strict"});var eu,tu,ru,au,nu,ou,fu,Nr,Yr=a(()=>{"use strict";Tr();eu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ru={narrow:["We","F","M","A","M","We","We","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},au={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ou={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},fu=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Nr={ordinalNumber:fu,era:L({values:eu,defaultWidth:"wide"}),quarter:L({values:tu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:L({values:ru,defaultWidth:"wide"}),day:L({values:au,defaultWidth:"wide"}),dayPeriod:L({values:nu,defaultWidth:"wide",formattingValues:ou,defaultFormattingWidth:"wide"})}});function R(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],f=t.match(o);if(!f)return null;let u=f[0],m=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(m)?mu(m,w=>w.test(u)):uu(m,w=>w.test(u)),D;D=e.valueCallback?e.valueCallback(s):s,D=r.valueCallback?r.valueCallback(D):D;let y=t.slice(u.length);return{value:D,rest:y}}}function uu(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function mu(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}var Fr=a(()=>{"use strict"});function Wr(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],f=t.match(e.parsePattern);if(!f)return null;let u=e.valueCallback?e.valueCallback(f[0]):f[0];u=r.valueCallback?r.valueCallback(u):u;let m=t.slice(o.length);return{value:u,rest:m}}}var Pr=a(()=>{"use strict"});var cu,iu,lu,du,su,xu,hu,gu,Du,yu,wu,bu,_r,Cr=a(()=>{"use strict";Fr();Pr();cu=/^(\d+)(th|st|nd|rd)?/i,iu=/\d+/i,lu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},du={any:[/^b/i,/^(a|c)/i]},su={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xu={any:[/1/i,/2/i,/3/i,/4/i]},hu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Du={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_r={ordinalNumber:Wr({matchPattern:cu,parsePattern:iu,valueCallback:e=>parseInt(e,10)}),era:R({matchPatterns:lu,defaultMatchWidth:"wide",parsePatterns:du,defaultParseWidth:"any"}),quarter:R({matchPatterns:su,defaultMatchWidth:"wide",parsePatterns:xu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:R({matchPatterns:hu,defaultMatchWidth:"wide",parsePatterns:gu,defaultParseWidth:"any"}),day:R({matchPatterns:Du,defaultMatchWidth:"wide",parsePatterns:yu,defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:wu,defaultMatchWidth:"any",parsePatterns:bu,defaultParseWidth:"any"})}});var ve,Hr=a(()=>{"use strict";Or();vr();Ir();Yr();Cr();ve={code:"en-US",formatDistance:Mr,formatLong:Sr,formatRelative:pr,localize:Nr,match:_r,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var $r=a(()=>{"use strict";Hr()});function Er(e,t){let r=b(e,t==null?void 0:t.in);return ft(r,ur(r))+1}var pe=a(()=>{"use strict";be();Se();I()});function zr(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+ut(r);return Math.round(n/re)+1}var Ie=a(()=>{"use strict";q();X();Me();I()});function fe(e,t){var y,w,g,M,O,_,C,E;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=W(),f=(E=(C=(M=(g=t==null?void 0:t.firstWeekContainsDate)!=null?g:(w=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)!=null?M:o.firstWeekContainsDate)!=null?C:(_=(O=o.locale)==null?void 0:O.options)==null?void 0:_.firstWeekContainsDate)!=null?E:1,u=v((t==null?void 0:t.in)||e,0);u.setFullYear(n+1,0,f),u.setHours(0,0,0,0);let m=N(u,t),s=v((t==null?void 0:t.in)||e,0);s.setFullYear(n,0,f),s.setHours(0,0,0,0);let D=N(s,t);return+r>=+m?n+1:+r>=+D?n:n-1}var ue=a(()=>{"use strict";j();F();z();I()});function Lr(e,t){var m,s,D,y,w,g,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.firstWeekContainsDate)!=null?D:(s=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:s.firstWeekContainsDate)!=null?y:r.firstWeekContainsDate)!=null?M:(g=(w=r.locale)==null?void 0:w.options)==null?void 0:g.firstWeekContainsDate)!=null?O:1,o=fe(e,t),f=v((t==null?void 0:t.in)||e,0);return f.setFullYear(o,0,n),f.setHours(0,0,0,0),N(f,t)}var Te=a(()=>{"use strict";j();F();ue();z()});function Rr(e,t){let r=b(e,t==null?void 0:t.in),n=+N(r,t)-+Lr(r,t);return Math.round(n/re)+1}var Ne=a(()=>{"use strict";q();z();Te();I()});function h(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Ye=a(()=>{"use strict"});var Y,Ar=a(()=>{"use strict";Ye();Y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return h(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):h(r+1,2)},d(e,t){return h(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return h(e.getHours()%12||12,t.length)},H(e,t){return h(e.getHours(),t.length)},m(e,t){return h(e.getMinutes(),t.length)},s(e,t){return h(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return h(o,t.length)}}});function Qr(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),f=n%60;return f===0?r+String(o):r+String(o)+t+h(f,2)}function Br(e,t){return e%60===0?(e>0?"-":"+")+h(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=h(Math.trunc(n/60),2),f=h(n%60,2);return r+o+t+f}var A,Fe,qr=a(()=>{"use strict";pe();Ie();ne();Ne();ue();Ye();Ar();A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fe={We:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"We":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,r,n){let o=fe(e,n),f=o>0?o:1-o;if(t==="YY"){let u=f%100;return h(u,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):h(f,t.length)},R:function(e,t){let r=ae(e);return h(r,t.length)},u:function(e,t){let r=e.getFullYear();return h(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return h(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return h(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return h(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=Rr(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):h(o,t.length)},I:function(e,t,r){let n=zr(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):h(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,r){let n=Er(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):h(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return h(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return h(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return h(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=A.noon:n===0?o=A.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=A.evening:n>=12?o=A.afternoon:n>=4?o=A.morning:o=A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},We:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):h(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):h(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"V";switch(t){case"X":return Br(n);case"XXXX":case"XX":return $(n);case"XXXXX":case"XXX":default:return $(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Br(n);case"xxxx":case"xx":return $(n);case"xxxxx":case"xxx":default:return $(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qr(n,":");case"OOOO":default:return"GMT"+$(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qr(n,":");case"zzzz":default:return"GMT"+$(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return h(n,t.length)},T:function(e,t,r){return h(+e,t.length)}}});var jr,Xr,Mu,Ur,Vr=a(()=>{"use strict";jr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Xr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mu=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return jr(e,t);let f;switch(n){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",jr(n,t)).replace("{{time}}",Xr(o,t))},Ur={p:Xr,P:Mu}});function Gr(e){return Ou.test(e)}function Jr(e){return ku.test(e)}function Zr(e,t,r){let n=vu(e,t,r);if(console.warn(n),Su.includes(e))throw new RangeError(n)}function vu(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Ou,ku,Su,Kr=a(()=>{"use strict";Ou=/^D+$/,ku=/^Y+$/,Su=["D","DD","YY","YYYY"]});function P(e,t,r){var y,w,g,M,O,_,C,E,i,k,T,Ee,ze,Le,Re,Ae,Qe,Be;let n=W(),o=(w=(y=r==null?void 0:r.locale)!=null?y:n.locale)!=null?w:ve,f=(k=(i=(_=(O=r==null?void 0:r.firstWeekContainsDate)!=null?O:(M=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:M.firstWeekContainsDate)!=null?_:n.firstWeekContainsDate)!=null?i:(E=(C=n.locale)==null?void 0:C.options)==null?void 0:E.firstWeekContainsDate)!=null?k:1,u=(Be=(Qe=(Le=(ze=r==null?void 0:r.weekStartsOn)!=null?ze:(Ee=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:Ee.weekStartsOn)!=null?Le:n.weekStartsOn)!=null?Qe:(Ae=(Re=n.locale)==null?void 0:Re.options)==null?void 0:Ae.weekStartsOn)!=null?Be:0,m=b(e,r==null?void 0:r.in);if(!It(m))throw new RangeError("Invalid time value");let s=t.match(Iu).map(p=>{let S=p[0];if(S==="p"||S==="P"){let xe=Ur[S];return xe(p,o.formatLong)}return p}).join("").match(pu).map(p=>{if(p==="''")return{isToken:!1,value:"'"};let S=p[0];if(S==="'")return{isToken:!1,value:Fu(p)};if(Fe[S])return{isToken:!0,value:p};if(S.match(Yu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:p}});o.localize.preprocessor&&(s=o.localize.preprocessor(m,s));let D={firstWeekContainsDate:f,weekStartsOn:u,locale:o};return s.map(p=>{if(!p.isToken)return p.value;let S=p.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Jr(S)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Gr(S))&&Zr(S,t,String(e));let xe=Fe[S[0]];return xe(m,S,o.localize,D)}).join("")}function Fu(e){let t=e.match(Tu);return t?t[1].replace(Nu,"'"):e}var pu,Iu,Tu,Nu,Yu,ea=a(()=>{"use strict";$r();j();qr();Vr();Kr();ke();I();pu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tu=/^'([^]*?)'?$/,Nu=/''/g,Yu=/[a-zA-V]/});var ta=a(()=>{"use strict"});var ra=a(()=>{"use strict"});var aa=a(()=>{"use strict"});var na=a(()=>{"use strict"});var oa=a(()=>{"use strict"});var fa=a(()=>{"use strict"});var ua=a(()=>{"use strict"});var ma=a(()=>{"use strict"});var ca=a(()=>{"use strict"});var ia=a(()=>{"use strict"});var la=a(()=>{"use strict"});var da=a(()=>{"use strict"});var sa=a(()=>{"use strict"});var xa=a(()=>{"use strict"});var ha=a(()=>{"use strict"});var ga=a(()=>{"use strict"});var Da=a(()=>{"use strict"});var ya=a(()=>{"use strict"});var wa=a(()=>{"use strict"});var ba=a(()=>{"use strict"});var Ma=a(()=>{"use strict"});var Oa=a(()=>{"use strict"});var ka=a(()=>{"use strict"});var Sa=a(()=>{"use strict"});var va=a(()=>{"use strict"});var pa=a(()=>{"use strict"});var Ia=a(()=>{"use strict"});var Ta=a(()=>{"use strict"});var Na=a(()=>{"use strict"});var Ya=a(()=>{"use strict"});var Fa=a(()=>{"use strict"});var Wa=a(()=>{"use strict"});var Pa=a(()=>{"use strict"});var _a=a(()=>{"use strict"});var Ca=a(()=>{"use strict"});var Ha=a(()=>{"use strict"});var $a=a(()=>{"use strict"});var Ea=a(()=>{"use strict"});var za=a(()=>{"use strict"});var La=a(()=>{"use strict"});var Ra=a(()=>{"use strict"});var Aa=a(()=>{"use strict"});var Qa=a(()=>{"use strict"});var Ba=a(()=>{"use strict"});var qa=a(()=>{"use strict"});var ja=a(()=>{"use strict"});var Xa=a(()=>{"use strict"});var Ua=a(()=>{"use strict"});var Va=a(()=>{"use strict"});var Ga=a(()=>{"use strict"});var Ja=a(()=>{"use strict"});var Za=a(()=>{"use strict"});var Ka=a(()=>{"use strict"});var en=a(()=>{"use strict"});var tn=a(()=>{"use strict"});var rn=a(()=>{"use strict"});var an=a(()=>{"use strict"});var nn=a(()=>{"use strict"});var on=a(()=>{"use strict"});var fn=a(()=>{"use strict"});var un=a(()=>{"use strict"});var mn=a(()=>{"use strict"});var cn=a(()=>{"use strict"});var ln=a(()=>{"use strict"});var dn=a(()=>{"use strict"});var sn=a(()=>{"use strict"});var xn=a(()=>{"use strict"});var hn=a(()=>{"use strict"});var gn=a(()=>{"use strict"});var Dn=a(()=>{"use strict"});var yn=a(()=>{"use strict"});var wn=a(()=>{"use strict"});var bn=a(()=>{"use strict"});var Mn=a(()=>{"use strict"});var On=a(()=>{"use strict"});var kn=a(()=>{"use strict"});var Sn=a(()=>{"use strict"});var vn=a(()=>{"use strict"});var pn=a(()=>{"use strict"});var In=a(()=>{"use strict"});var Tn=a(()=>{"use strict"});var Nn=a(()=>{"use strict"});var Yn=a(()=>{"use strict"});var Fn=a(()=>{"use strict"});var Wn=a(()=>{"use strict"});var Pn=a(()=>{"use strict"});var _n=a(()=>{"use strict"});var Cn=a(()=>{"use strict"});var Hn=a(()=>{"use strict"});var $n=a(()=>{"use strict"});var En=a(()=>{"use strict"});var zn=a(()=>{"use strict"});var Ln=a(()=>{"use strict"});var Rn=a(()=>{"use strict"});var An=a(()=>{"use strict"});var Qn=a(()=>{"use strict"});var Bn=a(()=>{"use strict"});var qn=a(()=>{"use strict"});var jn=a(()=>{"use strict"});var Xn=a(()=>{"use strict"});var Un=a(()=>{"use strict"});var Vn=a(()=>{"use strict"});var Gn=a(()=>{"use strict"});var Jn=a(()=>{"use strict"});var Zn=a(()=>{"use strict"});var Kn=a(()=>{"use strict"});var eo=a(()=>{"use strict"});var to=a(()=>{"use strict"});var ro=a(()=>{"use strict"});var ao=a(()=>{"use strict"});var no=a(()=>{"use strict"});var oo=a(()=>{"use strict"});var fo=a(()=>{"use strict"});var uo=a(()=>{"use strict"});var mo=a(()=>{"use strict"});var co=a(()=>{"use strict"});var io=a(()=>{"use strict"});var lo=a(()=>{"use strict"});var so=a(()=>{"use strict"});var xo=a(()=>{"use strict"});var ho=a(()=>{"use strict"});var go=a(()=>{"use strict"});var Do=a(()=>{"use strict"});var yo=a(()=>{"use strict"});var wo=a(()=>{"use strict"});var bo=a(()=>{"use strict"});var Mo=a(()=>{"use strict"});var Oo=a(()=>{"use strict"});var ko=a(()=>{"use strict"});var So=a(()=>{"use strict"});var vo=a(()=>{"use strict"});var po=a(()=>{"use strict"});var Io=a(()=>{"use strict"});var To=a(()=>{"use strict"});var No=a(()=>{"use strict"});var Yo=a(()=>{"use strict"});var Fo=a(()=>{"use strict"});var Wo=a(()=>{"use strict"});var Po=a(()=>{"use strict"});var _o=a(()=>{"use strict"});var Co=a(()=>{"use strict"});var Ho=a(()=>{"use strict"});var $o=a(()=>{"use strict"});var Eo=a(()=>{"use strict"});var zo=a(()=>{"use strict"});var Lo=a(()=>{"use strict"});var Ro=a(()=>{"use strict"});var Ao=a(()=>{"use strict"});var Qo=a(()=>{"use strict"});var Bo=a(()=>{"use strict"});var qo=a(()=>{"use strict"});var jo=a(()=>{"use strict"});var Xo=a(()=>{"use strict"});var Uo=a(()=>{"use strict"});var Vo=a(()=>{"use strict"});var U=a(()=>{"use strict";Ge();et();Ue();rt();ct();tt();it();Ve();lt();dt();st();xt();ht();yt();wt();bt();Mt();Ot();F();kt();St();Tt();be();Nt();Yt();Ft();Pt();_t();Ct();Ht();$t();zt();Lt();Rt();qt();jt();Xt();Ut();Vt();Gt();Jt();Zt();Kt();tr();rr();ar();or();mr();cr();At();ir();lr();sr();xr();hr();Qt();gr();Dr();yr();wr();dr();fr();br();ea();ta();ra();aa();na();oa();fa();ua();ma();ca();ia();la();da();sa();xa();pe();ha();Da();ya();wa();ba();Ma();Ie();ne();Oa();ka();Sa();va();pa();Wt();Ia();Ta();Na();Ne();Ya();ue();Wa();Pa();_a();Ca();Ha();$a();Ea();za();La();Ra();Aa();Oe();Qa();Ba();qa();ja();Xa();Bt();ga();en();tn();rn();vt();nn();fn();un();cn();ln();dn();xn();on();hn();Je();Ze();gn();Dn();yn();wn();bn();Mn();On();kn();Sn();vn();pn();In();ke();Tn();Ke();Nn();Fn();Wn();_n();Cn();Fa();Hn();Pn();$n();En();gt();zn();Ln();Rn();An();Dt();Qn();Bn();qn();jn();Xn();Un();Vn();Gn();Jn();Zn();Kn();eo();to();Ka();ro();ao();no();oo();fo();uo();mo();co();io();lo();so();xo();ho();go();Do();yo();wo();Mo();Oo();Ja();ko();So();vo();Za();Ga();mt();po();Io();bo();To();No();Va();Yo();Fo();we();Wo();an();X();Me();mn();nr();er();sn();Po();_o();z();Te();Se();Co();$o();Eo();Yn();zo();Et();Lo();Ro();Ho();Ao();Qo();Bo();qo();I();Ua();jo();Xo();Uo();Vo()});var af={};B(af,{Blog_A:()=>rf,default:()=>rf});function rf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(tf.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(Jo.Container,{maxWidth:1280,children:[(0,d.jsx)(Wu,{subtitle:e,title:t}),(0,d.jsx)(Pu,{posts:r}),(0,d.jsx)(_u,{primaryButton:n})]})})}function Wu({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,d.jsx)(We.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,d.jsx)(Zo.Heading,{fontSize:"3xl",children:t}):null]})}function Pu({posts:e}){var n,o,f,u;if(!e)return null;let t=6,r=0;return(0,d.jsxs)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,d.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((m,s)=>(0,d.jsx)(me,{post:m},s)),(0,d.jsx)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+1,r+3))==null?void 0:o.map((m,s)=>(0,d.jsx)(me,{post:m},s))})]}),(0,d.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,d.jsx)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(r+3,r+5))==null?void 0:f.map((m,s)=>(0,d.jsx)(me,{post:m},s))}),(u=e==null?void 0:e.slice(r+5,t))==null?void 0:u.map((m,s)=>(0,d.jsx)(me,{post:m},s))]})]})}function me({post:e,key:t}){var r,n,o,f;return(0,d.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,d.jsx)(Ko.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,d.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,d.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,d.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((u,m)=>(0,d.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:u==null?void 0:u.title},m))}):null,(0,d.jsxs)(V.Flex,{align:"center",className:"mt-auto",children:[(0,d.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?P(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),(e==null?void 0:e.authors)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,d.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(o=e==null?void 0:e.authors)==null?void 0:o.map((u,m,{length:s})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(We.Text,{className:"italic",fontSize:"sm",children:u==null?void 0:u.name}),m+1!==s?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,d.jsx)(ef.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((f=e==null?void 0:e.title)==null?void 0:f.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function _u({primaryButton:e}){return e!=null&&e.label?(0,d.jsx)("div",{className:"mt-10 text-center",children:(0,d.jsx)(Go.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var Go,Jo,V,Zo,Ko,ef,tf,We,d,nf=a(()=>{"use strict";Go=require("@stackshift-ui/button"),Jo=require("@stackshift-ui/container"),V=require("@stackshift-ui/flex"),Zo=require("@stackshift-ui/heading"),Ko=require("@stackshift-ui/image"),ef=require("@stackshift-ui/link"),tf=require("@stackshift-ui/section"),We=require("@stackshift-ui/text");U();d=require("react/jsx-runtime")});var ce,ie,Pe=a(()=>{"use strict";ce=he(require("react")),ie=e=>{let[t,r]=ce.default.useState(!1),n=ce.default.useCallback(o=>{o.matches?r(!0):r(!1)},[]);return ce.default.useEffect(()=>{let o=window.matchMedia(`(max-width: ${e}px)`);return o.addEventListener("change",n),o.matches&&r(!0),()=>o.removeEventListener("change",n)},[]),t}});var df={};B(df,{Blog_B:()=>lf,default:()=>lf});function lf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,l.jsx)(tf.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(Jo.Container,{maxWidth:1280,children:[(0,l.jsx)(Cu,{subtitle:e,title:t}),(0,l.jsx)(Hu,{posts:r,count:0,blogsPerPage:5}),(0,l.jsx)(Eu,{primaryButton:n})]})})}function Cu({subtitle:e,title:t}){return(0,l.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,l.jsx)(We.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,l.jsx)(Zo.Heading,{fontSize:"3xl",children:t}):null]})}function Hu({posts:e,count:t,blogsPerPage:r}){return(0,l.jsxs)(V.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,l.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,o)=>(0,l.jsx)(of,{size:"lg",post:n},o))}),(0,l.jsx)(V.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,o)=>(0,l.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,l.jsx)(of,{post:n,size:"sm"},o)},o))})]})}function of({post:e,size:t,key:r}){var o;let n=ie("1024");return(0,l.jsxs)("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,l.jsx)($u,{post:e,size:t,breakpoints:n},r):null,(0,l.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)(V.Flex,{align:"center",children:[e!=null&&e.publishedAt?(0,l.jsx)(We.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,(e==null?void 0:e.authors)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,l.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:m})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(We.Text,{className:"italic",fontSize:"sm",children:f==null?void 0:f.name}),u+1!==m?(0,l.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,l.jsx)(Zo.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,l.jsx)(We.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,l.jsx)(ef.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function $u({post:e,size:t,breakpoints:r,key:n}){var o;return(0,l.jsx)(l.Fragment,{children:r?(0,l.jsx)(Ko.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(o=e==null?void 0:e.mainImage)!=null?o:`blog-variantB-image-${n}`}):(0,l.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,l.jsx)(Ko.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function Eu({primaryButton:e}){return e!=null&&e.label?(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)(ff.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var ff,Jo,V,Zo,Ko,ef,tf,We,l,sf=a(()=>{"use strict";ff=require("@stackshift-ui/button");U();Pe();l=require("react/jsx-runtime")});var kf={};B(kf,{Blog_C:()=>Of,default:()=>Of});function Of({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,x.jsx)(tf.Section,{className:"py-20 bg-background",children:(0,x.jsxs)(Jo.Container,{maxWidth:1280,children:[(0,x.jsxs)(V.Flex,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:4,children:[(0,x.jsx)(zu,{subtitle:e,title:t}),(0,x.jsx)(xf,{primaryButton:n})]}),(0,x.jsx)(Lu,{posts:r,blogsPerPage:3}),(0,x.jsx)(xf,{primaryButton:n})]})})}function zu({subtitle:e,title:t}){return(0,x.jsxs)("div",{className:"text-center md:text-left",children:[e?(0,x.jsx)(We.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,x.jsx)(Zo.Heading,{fontSize:"3xl",children:t}):null]})}function Lu({posts:e,blogsPerPage:t}){var r;return e?(0,x.jsx)("div",{children:(r=e==null?void 0:e.slice(0,t))==null?void 0:r.map((n,o)=>(0,x.jsx)("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-md shadow",children:(0,x.jsx)(Ru,{post:n,className:`${o%2===0?"flex-row":"flex-row-reverse"}`},o)},o))}):null}function Ru({post:e,className:t,key:r}){var f,u,m,s,D,y,w;let o=ie("1100")?70:200;return(0,x.jsxs)(V.Flex,{wrap:!0,className:`bg-white overflow-hidden rounded-lg shadow w-full ${t}`,children:[(e==null?void 0:e.mainImage)&&(0,x.jsx)(Ko.Image,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:(f=e==null?void 0:e.alt)!=null?f:`blog-variantC-image-${r}`}),(0,x.jsxs)("div",{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[(0,x.jsxs)(V.Flex,{gap:2,children:[(e==null?void 0:e.categories)&&((u=e==null?void 0:e.categories)==null?void 0:u.map((g,M)=>(0,x.jsx)(hf.Badge,{className:"bg-secondary/70",children:g==null?void 0:g.title},M))),(e==null?void 0:e.publishedAt)&&(0,x.jsx)(We.Text,{muted:!0,className:"m-1",children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")})]}),(e==null?void 0:e.title)&&(0,x.jsx)(Zo.Heading,{className:"my-4",type:"h3",children:((m=e==null?void 0:e.title)==null?void 0:m.length)>40?((s=e==null?void 0:e.title)==null?void 0:s.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&(0,x.jsxs)("div",{className:"flex mb-10 flex-wrap",children:[(0,x.jsx)("span",{className:"italic text-primary",children:"By\xA0"}),(D=e==null?void 0:e.authors)==null?void 0:D.map((g,M,{length:O})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(We.Text,{className:"italic text-primary",children:g==null?void 0:g.name}),M+1!==O?(0,x.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,x.jsx)(We.Text,{muted:!0,className:"mb-6 leading-loose text-justify",children:((y=e==null?void 0:e.excerpt)==null?void 0:y.length)>o?((w=e==null?void 0:e.excerpt)==null?void 0:w.substring(0,o))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&(0,x.jsx)(ef.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-primary-foreground",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function xf({primaryButton:e}){return e!=null&&e.label?(0,x.jsx)(Mf.default.Fragment,{children:(0,x.jsx)(gf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var hf,gf,Jo,V,Zo,Ko,ef,tf,We,Mf,x,Sf=a(()=>{"use strict";hf=require("@stackshift-ui/badge"),gf=require("@stackshift-ui/button");U();Mf=he(require("react"));Pe();x=require("react/jsx-runtime")});var _f={};B(_f,{Blog_D:()=>Pf,default:()=>Pf});function Pf({subtitle:e,title:t,posts:r}){let[n,o]=Q.default.useState("All"),[f,u]=Q.default.useState(1),[m,s]=Q.default.useState(""),D=6;Q.default.useEffect(()=>{u(1)},[n]);let y=(r!=null?r:[]).flatMap(i=>{var k;return((k=i==null?void 0:i.categories)!=null?k:[]).map(T=>({category:T==null?void 0:T.title,title:i==null?void 0:i.title,slug:i==null?void 0:i.slug,excerpt:i==null?void 0:i.excerpt,publishedAt:i==null?void 0:i.publishedAt,mainImage:i==null?void 0:i.mainImage,authors:i==null?void 0:i.authors}))}),w=y==null?void 0:y.reduce((i,k)=>{let T=k==null?void 0:k.category;return i.indexOf(T)===-1&&i.push(T),i},[]),g=n==="All"?r==null?void 0:r.filter(i=>{var k;return(k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(m.toLowerCase())}):y.filter(i=>{var k;return(i==null?void 0:i.category)===n&&((k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(m.toLowerCase()))}),M=f*D,O=M-D,_=g==null?void 0:g.slice(O,M),C=i=>u(i);return(0,c.jsx)(tf.Section,{className:"py-20 bg-background",children:(0,c.jsxs)(Jo.Container,{maxWidth:1280,children:[(0,c.jsx)(Qu,{subtitle:e,title:t}),(0,c.jsx)(Bu,{handleSearchChange:i=>{s(i.target.value),o("All"),u(1)}}),(0,c.jsxs)(V.Flex,{wrap:!0,children:[(0,c.jsx)(qu,{categories:w,activeTab:n,setActiveTab:o}),(g==null?void 0:g.length)===0?(0,c.jsx)(Au,{}):(0,c.jsx)(ju,{currentPosts:_,activeTab:n,blogsPerPage:D})]}),(0,c.jsx)(Xu,{blogsPerPage:D,totalBlogs:g==null?void 0:g.length,paginate:C,currentPage:f})]})})}function Au({message:e="No post available."}){return(0,c.jsx)("div",{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function Qu({subtitle:e,title:t}){return(0,c.jsxs)("div",{className:"w-full mb-16",children:[e?(0,c.jsx)(We.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,c.jsx)($e.Heading,{fontSize:"3xl",children:t}):null]})}function Bu({handleSearchChange:e}){return(0,c.jsxs)("div",{className:"relative mb-5 w-full lg:w-1/4",children:[(0,c.jsx)(Yf.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white border rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,c.jsx)(se.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white border-r rounded-global text-primary flex items-center",children:(0,c.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function qu({categories:e,activeTab:t,setActiveTab:r}){return(0,c.jsx)(If.Card,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"md",children:e&&(0,c.jsxs)(Q.default.Fragment,{children:[(0,c.jsx)($e.Heading,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),(0,c.jsxs)("ul",{children:[(e==null?void 0:e.length)>1&&(0,c.jsx)(vf,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,c.jsx)(vf,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function vf({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,c.jsx)("li",{children:(0,c.jsx)(se.Button,{as:"button",variant:"unstyled",ariaLabel:"Show all blog posts",className:`mb-4 block ${n?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===n?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>r(n),children:n})},e)}function ju({currentPosts:e,activeTab:t,blogsPerPage:r}){var n;return e?(0,c.jsx)("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((o,f)=>(0,c.jsx)(pf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,c.jsx)(pf,{post:o},f))}):null}function pf({post:e}){var t,r,n,o;return e?(0,c.jsxs)(V.Flex,{wrap:!0,className:"mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[(0,c.jsx)("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:(0,c.jsx)(Ko.Image,{className:"object-cover w-full h-full overflow-hidden rounded",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:(t=e==null?void 0:e.alt)!=null?t:`blog-variantD-image-${e==null?void 0:e.title}`})}),(0,c.jsxs)("div",{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&(0,c.jsx)(ef.Link,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading",href:`/${(r=e==null?void 0:e.link)!=null?r:"page-not-added"}`,children:(e==null?void 0:e.title.length)>25?((n=e==null?void 0:e.title)==null?void 0:n.substring(0,25))+"...":e==null?void 0:e.title}),(0,c.jsxs)(V.Flex,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:m})=>(0,c.jsxs)(V.Flex,{children:[(0,c.jsx)(We.Text,{className:"text-primary",children:f==null?void 0:f.name}),u+1!==m?(0,c.jsx)("span",{children:"\xA0,\xA0"}):null]},u)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?(0,c.jsx)("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?(0,c.jsx)(We.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,c.jsx)(We.Text,{muted:!0,children:(e==null?void 0:e.excerpt.length)>60?(e==null?void 0:e.excerpt.substring(0,60))+"...":e==null?void 0:e.excerpt}):null]})]}):null}function Xu({blogsPerPage:e,totalBlogs:t,paginate:r,currentPage:n}){if(!e)return null;let o=[];for(let f=1;f<=Math.ceil(t/e);f++)o.push(f);return(0,c.jsx)("nav",{className:"mt-4","aria-label":"Pagination",children:(0,c.jsx)("ul",{className:"flex space-x-2 justify-end mr-5",children:o.map(f=>(0,c.jsx)(se.Button,{variant:"unstyled",as:"button",ariaLabel:`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded-global focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var se,If,Jo,V,$e,Ko,Yf,ef,tf,We,Q,c,Cf=a(()=>{"use strict";se=require("@stackshift-ui/button"),If=require("@stackshift-ui/card"),Yf=require("@stackshift-ui/input");U();Q=he(require("react")),c=require("react/jsx-runtime")});var Gu={};B(Gu,{Blog:()=>Hf});module.exports=Qf(Gu);var ee=require("react"),Uu={variant_a:(0,ee.lazy)(()=>Promise.resolve().then(()=>(nf(),af))),variant_b:(0,ee.lazy)(()=>Promise.resolve().then(()=>(sf(),df))),variant_c:(0,ee.lazy)(()=>Promise.resolve().then(()=>(Sf(),kf))),variant_d:(0,ee.lazy)(()=>Promise.resolve().then(()=>(Cf(),_f)))},Vu="Blog",Hf=({data:e})=>{var o,f,u,m,s,D,y,w;let t=e==null?void 0:e.variant,r=t&&Uu[t],n={subtitle:(f=(o=e==null?void 0:e.variants)==null?void 0:o.subtitle)!=null?f:void 0,title:(m=(u=e==null?void 0:e.variants)==null?void 0:u.title)!=null?m:void 0,posts:(D=(s=e==null?void 0:e.variants)==null?void 0:s.posts)!=null?D:void 0,primaryButton:(w=(y=e==null?void 0:e.variants)==null?void 0:y.primaryButton)!=null?w:void 0};return r?(0,$f.jsx)(r,{...n}):null};Hf.displayName=Vu;0&&(module.exports={Blog});
package/dist/blog.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-36PHMMAS.mjs";export{a as Blog};
1
+ import{a}from"./chunk-XHIU3MJF.mjs";export{a as Blog};
package/dist/blog_a.js CHANGED
@@ -1 +1 @@
1
- "use strict";var Q=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var He=Object.prototype.hasOwnProperty;var Qe=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},_e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Le(t))!He.call(e,a)&&a!==r&&Q(e,a,{get:()=>t[a],enumerable:!(n=qe(t,a))||n.enumerable});return e};var Xe=e=>_e(Q({},"__esModule",{value:!0}),e);var Nt={};Qe(Nt,{Blog_A:()=>Ee,default:()=>Ee});module.exports=Xe(Nt);var Se=require("@stackshift-ui/button"),Ye=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),Te=require("@stackshift-ui/heading"),Fe=require("@stackshift-ui/image"),Ie=require("@stackshift-ui/link"),Ne=require("@stackshift-ui/section"),Ce=require("@stackshift-ui/text");var Ae=Math.pow(10,8)*24*60*60*1e3,Et=-Ae,I=6048e5,te=864e5;var Re=3600;var re=Re*24,qt=re*7,je=re*365.2425,Ge=je/12,Lt=Ge*3,_=Symbol.for("constructDateFrom");function g(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function m(e,t){return g(t||e,e)}var Be={};function M(){return Be}function O(e,t){var c,d,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.weekStartsOn)!=null?f:(d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)!=null?w:r.weekStartsOn)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.weekStartsOn)!=null?k:0,a=m(e,t==null?void 0:t.in),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function D(e,t){return O(e,{...t,weekStartsOn:1})}function N(e,t){let r=m(e,t==null?void 0:t.in),n=r.getFullYear(),a=g(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=D(a),i=g(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);let c=D(i);return r.getTime()>=o.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function X(e){let t=m(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ne(e,...t){let r=g.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function A(e,t){let r=m(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function ae(e,t,r){let[n,a]=ne(r==null?void 0:r.in,e,t),o=A(n),i=A(a),c=+o-X(o),d=+i-X(i);return Math.round((c-d)/te)}function oe(e,t){let r=N(e,t),n=g((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),D(n)}function ie(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ce(e){return!(!ie(e)&&typeof e!="number"||isNaN(+m(e)))}function ue(e,t){let r=m(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Ve={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},se=(e,t,r)=>{let n,a=Ve[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function C(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var $e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Je={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},de={date:C({formats:$e,defaultWidth:"full"}),time:C({formats:ze,defaultWidth:"full"}),dateTime:C({formats:Je,defaultWidth:"full"})};var Ue={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},me=(e,t,r,n)=>Ue[e];function W(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,c=r!=null&&r.width?String(r.width):i;a=e.formattingValues[c]||e.formattingValues[i]}else{let i=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[c]||e.values[i]}let o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}var Ze={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ke={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},et={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},at=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},fe={ordinalNumber:at,era:W({values:Ze,defaultWidth:"wide"}),quarter:W({values:Ke,defaultWidth:"wide",argumentCallback:e=>e-1}),month:W({values:et,defaultWidth:"wide"}),day:W({values:tt,defaultWidth:"wide"}),dayPeriod:W({values:rt,defaultWidth:"wide",formattingValues:nt,defaultFormattingWidth:"wide"})};function p(e){return(t,r={})=>{let n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let i=o[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?it(c,l=>l.test(i)):ot(c,l=>l.test(i)),f;f=e.valueCallback?e.valueCallback(d):d,f=r.valueCallback?r.valueCallback(f):f;let w=t.slice(i.length);return{value:f,rest:w}}}function ot(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function it(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function le(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let a=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;let c=t.slice(a.length);return{value:i,rest:c}}}var ct=/^(\d+)(th|st|nd|rd)?/i,ut=/\d+/i,st={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},dt={any:[/^b/i,/^(a|c)/i]},mt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ft={any:[/1/i,/2/i,/3/i,/4/i]},lt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},he={ordinalNumber:le({matchPattern:ct,parsePattern:ut,valueCallback:e=>parseInt(e,10)}),era:p({matchPatterns:st,defaultMatchWidth:"wide",parsePatterns:dt,defaultParseWidth:"any"}),quarter:p({matchPatterns:mt,defaultMatchWidth:"wide",parsePatterns:ft,defaultParseWidth:"any",valueCallback:e=>e+1}),month:p({matchPatterns:lt,defaultMatchWidth:"wide",parsePatterns:ht,defaultParseWidth:"any"}),day:p({matchPatterns:gt,defaultMatchWidth:"wide",parsePatterns:wt,defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:xt,defaultMatchWidth:"any",parsePatterns:bt,defaultParseWidth:"any"})};var R={code:"en-US",formatDistance:se,formatLong:de,formatRelative:me,localize:fe,match:he,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ge(e,t){let r=m(e,t==null?void 0:t.in);return ae(r,ue(r))+1}function we(e,t){let r=m(e,t==null?void 0:t.in),n=+D(r)-+oe(r);return Math.round(n/I)+1}function E(e,t){var w,l,b,y,k,Y,T,F;let r=m(e,t==null?void 0:t.in),n=r.getFullYear(),a=M(),o=(F=(T=(y=(b=t==null?void 0:t.firstWeekContainsDate)!=null?b:(l=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:l.firstWeekContainsDate)!=null?y:a.firstWeekContainsDate)!=null?T:(Y=(k=a.locale)==null?void 0:k.options)==null?void 0:Y.firstWeekContainsDate)!=null?F:1,i=g((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);let c=O(i,t),d=g((t==null?void 0:t.in)||e,0);d.setFullYear(n,0,o),d.setHours(0,0,0,0);let f=O(d,t);return+r>=+c?n+1:+r>=+f?n:n-1}function xe(e,t){var c,d,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.firstWeekContainsDate)!=null?f:(d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)!=null?w:r.firstWeekContainsDate)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.firstWeekContainsDate)!=null?k:1,a=E(e,t),o=g((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),O(o,t)}function be(e,t){let r=m(e,t==null?void 0:t.in),n=+O(r,t)-+xe(r,t);return Math.round(n/I)+1}function u(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var P={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return u(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):u(r+1,2)},d(e,t){return u(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return u(e.getHours()%12||12,t.length)},H(e,t){return u(e.getHours(),t.length)},m(e,t){return u(e.getMinutes(),t.length)},s(e,t){return u(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return u(a,t.length)}};var S={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},j={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return P.y(e,t)},Y:function(e,t,r,n){let a=E(e,n),o=a>0?a:1-a;if(t==="YY"){let i=o%100;return u(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):u(o,t.length)},R:function(e,t){let r=N(e);return u(r,t.length)},u:function(e,t){let r=e.getFullYear();return u(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return u(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return u(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return P.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return u(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a=be(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):u(a,t.length)},I:function(e,t,r){let n=we(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):u(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):P.d(e,t)},D:function(e,t,r){let n=ge(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):u(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return u(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return u(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return u(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),a;switch(n===12?a=S.noon:n===0?a=S.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),a;switch(n>=17?a=S.evening:n>=12?a=S.afternoon:n>=4?a=S.morning:a=S.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return P.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):P.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):u(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):u(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):P.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):P.s(e,t)},S:function(e,t){return P.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ke(n);case"XXXX":case"XX":return v(n);case"XXXXX":case"XXX":default:return v(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return ke(n);case"xxxx":case"xx":return v(n);case"xxxxx":case"xxx":default:return v(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ye(n,":");case"OOOO":default:return"GMT"+v(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ye(n,":");case"zzzz":default:return"GMT"+v(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return u(n,t.length)},T:function(e,t,r){return u(+e,t.length)}};function ye(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+u(o,2)}function ke(e,t){return e%60===0?(e>0?"-":"+")+u(Math.abs(e)/60,2):v(e,t)}function v(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=u(Math.trunc(n/60),2),o=u(n%60,2);return r+a+t+o}var Oe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Pe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yt=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return Oe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Oe(n,t)).replace("{{time}}",Pe(a,t))},Me={p:Pe,P:yt};var kt=/^D+$/,Ot=/^Y+$/,Pt=["D","DD","YY","YYYY"];function De(e){return kt.test(e)}function ve(e){return Ot.test(e)}function We(e,t,r){let n=Mt(e,t,r);if(console.warn(n),Pt.includes(e))throw new RangeError(n)}function Mt(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Dt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wt=/^'([^]*?)'?$/,pt=/''/g,St=/[a-zA-Z]/;function pe(e,t,r){var w,l,b,y,k,Y,T,F,G,B,V,$,z,J,U,Z,K,ee;let n=M(),a=(l=(w=r==null?void 0:r.locale)!=null?w:n.locale)!=null?l:R,o=(B=(G=(Y=(k=r==null?void 0:r.firstWeekContainsDate)!=null?k:(y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)!=null?Y:n.firstWeekContainsDate)!=null?G:(F=(T=n.locale)==null?void 0:T.options)==null?void 0:F.firstWeekContainsDate)!=null?B:1,i=(ee=(K=(J=(z=r==null?void 0:r.weekStartsOn)!=null?z:($=(V=r==null?void 0:r.locale)==null?void 0:V.options)==null?void 0:$.weekStartsOn)!=null?J:n.weekStartsOn)!=null?K:(Z=(U=n.locale)==null?void 0:U.options)==null?void 0:Z.weekStartsOn)!=null?ee:0,c=m(e,r==null?void 0:r.in);if(!ce(c))throw new RangeError("Invalid time value");let d=t.match(vt).map(x=>{let h=x[0];if(h==="p"||h==="P"){let H=Me[h];return H(x,a.formatLong)}return x}).join("").match(Dt).map(x=>{if(x==="''")return{isToken:!1,value:"'"};let h=x[0];if(h==="'")return{isToken:!1,value:Yt(x)};if(j[h])return{isToken:!0,value:x};if(h.match(St))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(d=a.localize.preprocessor(c,d));let f={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return d.map(x=>{if(!x.isToken)return x.value;let h=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&ve(h)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&De(h))&&We(h,t,String(e));let H=j[h[0]];return H(c,h,a.localize,f)}).join("")}function Yt(e){let t=e.match(Wt);return t?t[1].replace(pt,"'"):e}var s=require("react/jsx-runtime");function Ee({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,s.jsx)(Ne.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(Ye.Container,{maxWidth:1280,children:[(0,s.jsx)(Tt,{subtitle:e,title:t}),(0,s.jsx)(Ft,{posts:r}),(0,s.jsx)(It,{primaryButton:n})]})})}function Tt({subtitle:e,title:t}){return(0,s.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,s.jsx)(Ce.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,s.jsx)(Te.Heading,{fontSize:"3xl",children:t}):null]})}function Ft({posts:e}){var n,a,o,i;if(!e)return null;let t=6,r=0;return(0,s.jsxs)(L.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,s.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((c,d)=>(0,s.jsx)(q,{post:c},d)),(0,s.jsx)(L.Flex,{gap:4,className:"flex-col lg:flex-row",children:(a=e==null?void 0:e.slice(r+1,r+3))==null?void 0:a.map((c,d)=>(0,s.jsx)(q,{post:c},d))})]}),(0,s.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,s.jsx)(L.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+3,r+5))==null?void 0:o.map((c,d)=>(0,s.jsx)(q,{post:c},d))}),(i=e==null?void 0:e.slice(r+5,t))==null?void 0:i.map((c,d)=>(0,s.jsx)(q,{post:c},d))]})]})}function q({post:e,key:t}){var r,n,a;return(0,s.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,s.jsx)(Fe.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,s.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,s.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((o,i)=>(0,s.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:o==null?void 0:o.title},i))}):null,(0,s.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?pe(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),e!=null&&e.title?(0,s.jsx)(Ie.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((a=e==null?void 0:e.title)==null?void 0:a.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function It({primaryButton:e}){return e!=null&&e.label?(0,s.jsx)("div",{className:"mt-10 text-center",children:(0,s.jsx)(Se.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}0&&(module.exports={Blog_A});
1
+ "use strict";var Q=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var He=Object.prototype.hasOwnProperty;var Qe=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},_e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Le(t))!He.call(e,a)&&a!==r&&Q(e,a,{get:()=>t[a],enumerable:!(n=qe(t,a))||n.enumerable});return e};var Xe=e=>_e(Q({},"__esModule",{value:!0}),e);var It={};Qe(It,{Blog_A:()=>Ee,default:()=>Ee});module.exports=Xe(It);var Ye=require("@stackshift-ui/button"),Te=require("@stackshift-ui/container"),N=require("@stackshift-ui/flex"),Fe=require("@stackshift-ui/heading"),Ne=require("@stackshift-ui/image"),Ie=require("@stackshift-ui/link"),Ce=require("@stackshift-ui/section"),G=require("@stackshift-ui/text");var Ae=Math.pow(10,8)*24*60*60*1e3,Et=-Ae,I=6048e5,re=864e5;var Re=3600;var ne=Re*24,qt=ne*7,je=ne*365.2425,Ge=je/12,Lt=Ge*3,_=Symbol.for("constructDateFrom");function g(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function d(e,t){return g(t||e,e)}var Be={};function M(){return Be}function O(e,t){var u,m,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.weekStartsOn)!=null?f:(m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)!=null?w:r.weekStartsOn)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.weekStartsOn)!=null?k:0,a=d(e,t==null?void 0:t.in),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function D(e,t){return O(e,{...t,weekStartsOn:1})}function C(e,t){let r=d(e,t==null?void 0:t.in),n=r.getFullYear(),a=g(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=D(a),i=g(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);let u=D(i);return r.getTime()>=o.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function X(e){let t=d(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ae(e,...t){let r=g.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function A(e,t){let r=d(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function oe(e,t,r){let[n,a]=ae(r==null?void 0:r.in,e,t),o=A(n),i=A(a),u=+o-X(o),m=+i-X(i);return Math.round((u-m)/re)}function ie(e,t){let r=C(e,t),n=g((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),D(n)}function ce(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ue(e){return!(!ce(e)&&typeof e!="number"||isNaN(+d(e)))}function se(e,t){let r=d(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Ve={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},me=(e,t,r)=>{let n,a=Ve[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function E(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var ze={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Je={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},de={date:E({formats:ze,defaultWidth:"full"}),time:E({formats:$e,defaultWidth:"full"}),dateTime:E({formats:Je,defaultWidth:"full"})};var Ue={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fe=(e,t,r,n)=>Ue[e];function W(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,u=r!=null&&r.width?String(r.width):i;a=e.formattingValues[u]||e.formattingValues[i]}else{let i=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[i]}let o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}var Ze={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ke={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},et={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},at=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},le={ordinalNumber:at,era:W({values:Ze,defaultWidth:"wide"}),quarter:W({values:Ke,defaultWidth:"wide",argumentCallback:e=>e-1}),month:W({values:et,defaultWidth:"wide"}),day:W({values:tt,defaultWidth:"wide"}),dayPeriod:W({values:rt,defaultWidth:"wide",formattingValues:nt,defaultFormattingWidth:"wide"})};function p(e){return(t,r={})=>{let n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let i=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(u)?it(u,l=>l.test(i)):ot(u,l=>l.test(i)),f;f=e.valueCallback?e.valueCallback(m):m,f=r.valueCallback?r.valueCallback(f):f;let w=t.slice(i.length);return{value:f,rest:w}}}function ot(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function it(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function he(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let a=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;let u=t.slice(a.length);return{value:i,rest:u}}}var ct=/^(\d+)(th|st|nd|rd)?/i,ut=/\d+/i,st={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},mt={any:[/^b/i,/^(a|c)/i]},dt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ft={any:[/1/i,/2/i,/3/i,/4/i]},lt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ge={ordinalNumber:he({matchPattern:ct,parsePattern:ut,valueCallback:e=>parseInt(e,10)}),era:p({matchPatterns:st,defaultMatchWidth:"wide",parsePatterns:mt,defaultParseWidth:"any"}),quarter:p({matchPatterns:dt,defaultMatchWidth:"wide",parsePatterns:ft,defaultParseWidth:"any",valueCallback:e=>e+1}),month:p({matchPatterns:lt,defaultMatchWidth:"wide",parsePatterns:ht,defaultParseWidth:"any"}),day:p({matchPatterns:gt,defaultMatchWidth:"wide",parsePatterns:wt,defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:xt,defaultMatchWidth:"any",parsePatterns:bt,defaultParseWidth:"any"})};var R={code:"en-US",formatDistance:me,formatLong:de,formatRelative:fe,localize:le,match:ge,options:{weekStartsOn:0,firstWeekContainsDate:1}};function we(e,t){let r=d(e,t==null?void 0:t.in);return oe(r,se(r))+1}function xe(e,t){let r=d(e,t==null?void 0:t.in),n=+D(r)-+ie(r);return Math.round(n/I)+1}function q(e,t){var w,l,b,y,k,Y,T,F;let r=d(e,t==null?void 0:t.in),n=r.getFullYear(),a=M(),o=(F=(T=(y=(b=t==null?void 0:t.firstWeekContainsDate)!=null?b:(l=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:l.firstWeekContainsDate)!=null?y:a.firstWeekContainsDate)!=null?T:(Y=(k=a.locale)==null?void 0:k.options)==null?void 0:Y.firstWeekContainsDate)!=null?F:1,i=g((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);let u=O(i,t),m=g((t==null?void 0:t.in)||e,0);m.setFullYear(n,0,o),m.setHours(0,0,0,0);let f=O(m,t);return+r>=+u?n+1:+r>=+f?n:n-1}function be(e,t){var u,m,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.firstWeekContainsDate)!=null?f:(m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)!=null?w:r.firstWeekContainsDate)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.firstWeekContainsDate)!=null?k:1,a=q(e,t),o=g((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),O(o,t)}function ye(e,t){let r=d(e,t==null?void 0:t.in),n=+O(r,t)-+be(r,t);return Math.round(n/I)+1}function s(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var P={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return s(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):s(r+1,2)},d(e,t){return s(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return s(e.getHours()%12||12,t.length)},H(e,t){return s(e.getHours(),t.length)},m(e,t){return s(e.getMinutes(),t.length)},s(e,t){return s(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return s(a,t.length)}};var S={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},j={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return P.y(e,t)},Y:function(e,t,r,n){let a=q(e,n),o=a>0?a:1-a;if(t==="YY"){let i=o%100;return s(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){let r=C(e);return s(r,t.length)},u:function(e,t){let r=e.getFullYear();return s(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return P.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a=ye(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,r){let n=xe(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):P.d(e,t)},D:function(e,t,r){let n=we(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return s(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),a;switch(n===12?a=S.noon:n===0?a=S.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),a;switch(n>=17?a=S.evening:n>=12?a=S.afternoon:n>=4?a=S.morning:a=S.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return P.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):P.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):P.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):P.s(e,t)},S:function(e,t){return P.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Oe(n);case"XXXX":case"XX":return v(n);case"XXXXX":case"XXX":default:return v(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Oe(n);case"xxxx":case"xx":return v(n);case"xxxxx":case"xxx":default:return v(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ke(n,":");case"OOOO":default:return"GMT"+v(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ke(n,":");case"zzzz":default:return"GMT"+v(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return s(n,t.length)},T:function(e,t,r){return s(+e,t.length)}};function ke(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+s(o,2)}function Oe(e,t){return e%60===0?(e>0?"-":"+")+s(Math.abs(e)/60,2):v(e,t)}function v(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=s(Math.trunc(n/60),2),o=s(n%60,2);return r+a+t+o}var Pe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Me=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yt=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return Pe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Pe(n,t)).replace("{{time}}",Me(a,t))},De={p:Me,P:yt};var kt=/^D+$/,Ot=/^Y+$/,Pt=["D","DD","YY","YYYY"];function ve(e){return kt.test(e)}function We(e){return Ot.test(e)}function pe(e,t,r){let n=Mt(e,t,r);if(console.warn(n),Pt.includes(e))throw new RangeError(n)}function Mt(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Dt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wt=/^'([^]*?)'?$/,pt=/''/g,St=/[a-zA-Z]/;function Se(e,t,r){var w,l,b,y,k,Y,T,F,B,V,z,$,J,U,Z,K,ee,te;let n=M(),a=(l=(w=r==null?void 0:r.locale)!=null?w:n.locale)!=null?l:R,o=(V=(B=(Y=(k=r==null?void 0:r.firstWeekContainsDate)!=null?k:(y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)!=null?Y:n.firstWeekContainsDate)!=null?B:(F=(T=n.locale)==null?void 0:T.options)==null?void 0:F.firstWeekContainsDate)!=null?V:1,i=(te=(ee=(U=(J=r==null?void 0:r.weekStartsOn)!=null?J:($=(z=r==null?void 0:r.locale)==null?void 0:z.options)==null?void 0:$.weekStartsOn)!=null?U:n.weekStartsOn)!=null?ee:(K=(Z=n.locale)==null?void 0:Z.options)==null?void 0:K.weekStartsOn)!=null?te:0,u=d(e,r==null?void 0:r.in);if(!ue(u))throw new RangeError("Invalid time value");let m=t.match(vt).map(x=>{let h=x[0];if(h==="p"||h==="P"){let H=De[h];return H(x,a.formatLong)}return x}).join("").match(Dt).map(x=>{if(x==="''")return{isToken:!1,value:"'"};let h=x[0];if(h==="'")return{isToken:!1,value:Yt(x)};if(j[h])return{isToken:!0,value:x};if(h.match(St))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(m=a.localize.preprocessor(u,m));let f={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return m.map(x=>{if(!x.isToken)return x.value;let h=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&We(h)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&ve(h))&&pe(h,t,String(e));let H=j[h[0]];return H(u,h,a.localize,f)}).join("")}function Yt(e){let t=e.match(Wt);return t?t[1].replace(pt,"'"):e}var c=require("react/jsx-runtime");function Ee({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,c.jsx)(Ce.Section,{className:"py-20 bg-background",children:(0,c.jsxs)(Te.Container,{maxWidth:1280,children:[(0,c.jsx)(Tt,{subtitle:e,title:t}),(0,c.jsx)(Ft,{posts:r}),(0,c.jsx)(Nt,{primaryButton:n})]})})}function Tt({subtitle:e,title:t}){return(0,c.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,c.jsx)(G.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,c.jsx)(Fe.Heading,{fontSize:"3xl",children:t}):null]})}function Ft({posts:e}){var n,a,o,i;if(!e)return null;let t=6,r=0;return(0,c.jsxs)(N.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,c.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((u,m)=>(0,c.jsx)(L,{post:u},m)),(0,c.jsx)(N.Flex,{gap:4,className:"flex-col lg:flex-row",children:(a=e==null?void 0:e.slice(r+1,r+3))==null?void 0:a.map((u,m)=>(0,c.jsx)(L,{post:u},m))})]}),(0,c.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,c.jsx)(N.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+3,r+5))==null?void 0:o.map((u,m)=>(0,c.jsx)(L,{post:u},m))}),(i=e==null?void 0:e.slice(r+5,t))==null?void 0:i.map((u,m)=>(0,c.jsx)(L,{post:u},m))]})]})}function L({post:e,key:t}){var r,n,a,o;return(0,c.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,c.jsx)(Ne.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,c.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,c.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,c.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((i,u)=>(0,c.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:i==null?void 0:i.title},u))}):null,(0,c.jsxs)(N.Flex,{align:"center",className:"mt-auto",children:[(0,c.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?Se(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),(e==null?void 0:e.authors)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,c.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(a=e==null?void 0:e.authors)==null?void 0:a.map((i,u,{length:m})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(G.Text,{className:"italic",fontSize:"sm",children:i==null?void 0:i.name}),u+1!==m?(0,c.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,c.jsx)(Ie.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((o=e==null?void 0:e.title)==null?void 0:o.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function Nt({primaryButton:e}){return e!=null&&e.label?(0,c.jsx)("div",{className:"mt-10 text-center",children:(0,c.jsx)(Ye.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}0&&(module.exports={Blog_A});
package/dist/blog_a.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-4JEFLTN2.mjs";import"./chunk-PC6NMI3O.mjs";export{a as Blog_A,a as default};
1
+ import{a}from"./chunk-OSCI5VC3.mjs";import"./chunk-PC6NMI3O.mjs";export{a as Blog_A,a as default};
package/dist/blog_b.js CHANGED
@@ -1 +1 @@
1
- "use strict";var Qe=Object.create;var I=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Xe=Object.prototype.hasOwnProperty;var Be=(e,t)=>{for(var r in t)I(e,r,{get:t[r],enumerable:!0})},ae=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _e(t))!Xe.call(e,a)&&a!==r&&I(e,a,{get:()=>t[a],enumerable:!(n=je(t,a))||n.enumerable});return e};var Ae=(e,t,r)=>(r=e!=null?Qe(Re(e)):{},ae(t||!e||!e.__esModule?I(r,"default",{value:e,enumerable:!0}):r,e)),Ge=e=>ae(I({},"__esModule",{value:!0}),e);var Qt={};Be(Qt,{Blog_B:()=>He,default:()=>He});module.exports=Ge(Qt);var Ee=require("@stackshift-ui/button"),Ce=require("@stackshift-ui/container"),A=require("@stackshift-ui/flex"),V=require("@stackshift-ui/heading"),G=require("@stackshift-ui/image"),qe=require("@stackshift-ui/link"),Le=require("@stackshift-ui/section"),H=require("@stackshift-ui/text");var Ve=Math.pow(10,8)*24*60*60*1e3,_t=-Ve,N=6048e5,oe=864e5;var $e=3600;var ie=$e*24,Rt=ie*7,ze=ie*365.2425,Je=ze/12,Xt=Je*3,j=Symbol.for("constructDateFrom");function g(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&j in e?e[j](t):e instanceof Date?new e.constructor(t):new Date(t)}function d(e,t){return g(t||e,e)}var Ue={};function M(){return Ue}function O(e,t){var u,m,f,w,l,y,x,k;let r=M(),n=(k=(x=(w=(f=t==null?void 0:t.weekStartsOn)!=null?f:(m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)!=null?w:r.weekStartsOn)!=null?x:(y=(l=r.locale)==null?void 0:l.options)==null?void 0:y.weekStartsOn)!=null?k:0,a=d(e,t==null?void 0:t.in),o=a.getDay(),s=(o<n?7:0)+o-n;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function p(e,t){return O(e,{...t,weekStartsOn:1})}function E(e,t){let r=d(e,t==null?void 0:t.in),n=r.getFullYear(),a=g(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=p(a),s=g(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let u=p(s);return r.getTime()>=o.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function _(e){let t=d(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function se(e,...t){let r=g.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function R(e,t){let r=d(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function ce(e,t,r){let[n,a]=se(r==null?void 0:r.in,e,t),o=R(n),s=R(a),u=+o-_(o),m=+s-_(s);return Math.round((u-m)/oe)}function ue(e,t){let r=E(e,t),n=g((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),p(n)}function de(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function me(e){return!(!de(e)&&typeof e!="number"||isNaN(+d(e)))}function fe(e,t){let r=d(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Ze={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},le=(e,t,r)=>{let n,a=Ze[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function C(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Ke={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},et={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},he={date:C({formats:Ke,defaultWidth:"full"}),time:C({formats:et,defaultWidth:"full"}),dateTime:C({formats:tt,defaultWidth:"full"})};var rt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ge=(e,t,r,n)=>rt[e];function D(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,u=r!=null&&r.width?String(r.width):s;a=e.formattingValues[u]||e.formattingValues[s]}else{let s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}let o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}var nt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},at={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ot={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},it={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},st={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ct={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ut=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},we={ordinalNumber:ut,era:D({values:nt,defaultWidth:"wide"}),quarter:D({values:at,defaultWidth:"wide",argumentCallback:e=>e-1}),month:D({values:ot,defaultWidth:"wide"}),day:D({values:it,defaultWidth:"wide"}),dayPeriod:D({values:st,defaultWidth:"wide",formattingValues:ct,defaultFormattingWidth:"wide"})};function W(e){return(t,r={})=>{let n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let s=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(u)?mt(u,l=>l.test(s)):dt(u,l=>l.test(s)),f;f=e.valueCallback?e.valueCallback(m):m,f=r.valueCallback?r.valueCallback(f):f;let w=t.slice(s.length);return{value:f,rest:w}}}function dt(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function mt(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function be(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let a=n[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;let u=t.slice(a.length);return{value:s,rest:u}}}var ft=/^(\d+)(th|st|nd|rd)?/i,lt=/\d+/i,ht={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gt={any:[/^b/i,/^(a|c)/i]},wt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bt={any:[/1/i,/2/i,/3/i,/4/i]},yt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ot={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Pt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ye={ordinalNumber:be({matchPattern:ft,parsePattern:lt,valueCallback:e=>parseInt(e,10)}),era:W({matchPatterns:ht,defaultMatchWidth:"wide",parsePatterns:gt,defaultParseWidth:"any"}),quarter:W({matchPatterns:wt,defaultMatchWidth:"wide",parsePatterns:bt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:W({matchPatterns:yt,defaultMatchWidth:"wide",parsePatterns:xt,defaultParseWidth:"any"}),day:W({matchPatterns:kt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),dayPeriod:W({matchPatterns:Pt,defaultMatchWidth:"any",parsePatterns:Mt,defaultParseWidth:"any"})};var X={code:"en-US",formatDistance:le,formatLong:he,formatRelative:ge,localize:we,match:ye,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xe(e,t){let r=d(e,t==null?void 0:t.in);return ce(r,fe(r))+1}function ke(e,t){let r=d(e,t==null?void 0:t.in),n=+p(r)-+ue(r);return Math.round(n/N)+1}function q(e,t){var w,l,y,x,k,Y,T,F;let r=d(e,t==null?void 0:t.in),n=r.getFullYear(),a=M(),o=(F=(T=(x=(y=t==null?void 0:t.firstWeekContainsDate)!=null?y:(l=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:l.firstWeekContainsDate)!=null?x:a.firstWeekContainsDate)!=null?T:(Y=(k=a.locale)==null?void 0:k.options)==null?void 0:Y.firstWeekContainsDate)!=null?F:1,s=g((t==null?void 0:t.in)||e,0);s.setFullYear(n+1,0,o),s.setHours(0,0,0,0);let u=O(s,t),m=g((t==null?void 0:t.in)||e,0);m.setFullYear(n,0,o),m.setHours(0,0,0,0);let f=O(m,t);return+r>=+u?n+1:+r>=+f?n:n-1}function Oe(e,t){var u,m,f,w,l,y,x,k;let r=M(),n=(k=(x=(w=(f=t==null?void 0:t.firstWeekContainsDate)!=null?f:(m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)!=null?w:r.firstWeekContainsDate)!=null?x:(y=(l=r.locale)==null?void 0:l.options)==null?void 0:y.firstWeekContainsDate)!=null?k:1,a=q(e,t),o=g((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),O(o,t)}function Pe(e,t){let r=d(e,t==null?void 0:t.in),n=+O(r,t)-+Oe(r,t);return Math.round(n/N)+1}function c(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var P={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return c(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):c(r+1,2)},d(e,t){return c(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return c(e.getHours()%12||12,t.length)},H(e,t){return c(e.getHours(),t.length)},m(e,t){return c(e.getMinutes(),t.length)},s(e,t){return c(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return c(a,t.length)}};var S={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},B={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return P.y(e,t)},Y:function(e,t,r,n){let a=q(e,n),o=a>0?a:1-a;if(t==="YY"){let s=o%100;return c(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):c(o,t.length)},R:function(e,t){let r=E(e);return c(r,t.length)},u:function(e,t){let r=e.getFullYear();return c(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return c(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return c(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return P.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return c(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a=Pe(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):c(a,t.length)},I:function(e,t,r){let n=ke(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):c(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):P.d(e,t)},D:function(e,t,r){let n=xe(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):c(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return c(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return c(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return c(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),a;switch(n===12?a=S.noon:n===0?a=S.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),a;switch(n>=17?a=S.evening:n>=12?a=S.afternoon:n>=4?a=S.morning:a=S.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return P.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):P.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):c(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):c(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):P.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):P.s(e,t)},S:function(e,t){return P.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return pe(n);case"XXXX":case"XX":return v(n);case"XXXXX":case"XXX":default:return v(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return pe(n);case"xxxx":case"xx":return v(n);case"xxxxx":case"xxx":default:return v(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Me(n,":");case"OOOO":default:return"GMT"+v(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Me(n,":");case"zzzz":default:return"GMT"+v(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return c(n,t.length)},T:function(e,t,r){return c(+e,t.length)}};function Me(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+c(o,2)}function pe(e,t){return e%60===0?(e>0?"-":"+")+c(Math.abs(e)/60,2):v(e,t)}function v(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=c(Math.trunc(n/60),2),o=c(n%60,2);return r+a+t+o}var ve=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},De=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},pt=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return ve(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",ve(n,t)).replace("{{time}}",De(a,t))},We={p:De,P:pt};var vt=/^D+$/,Dt=/^Y+$/,Wt=["D","DD","YY","YYYY"];function Se(e){return vt.test(e)}function Ye(e){return Dt.test(e)}function Te(e,t,r){let n=St(e,t,r);if(console.warn(n),Wt.includes(e))throw new RangeError(n)}function St(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Yt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ft=/^'([^]*?)'?$/,It=/''/g,Nt=/[a-zA-Z]/;function Fe(e,t,r){var w,l,y,x,k,Y,T,F,$,z,J,U,Z,K,ee,te,re,ne;let n=M(),a=(l=(w=r==null?void 0:r.locale)!=null?w:n.locale)!=null?l:X,o=(z=($=(Y=(k=r==null?void 0:r.firstWeekContainsDate)!=null?k:(x=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:x.firstWeekContainsDate)!=null?Y:n.firstWeekContainsDate)!=null?$:(F=(T=n.locale)==null?void 0:T.options)==null?void 0:F.firstWeekContainsDate)!=null?z:1,s=(ne=(re=(K=(Z=r==null?void 0:r.weekStartsOn)!=null?Z:(U=(J=r==null?void 0:r.locale)==null?void 0:J.options)==null?void 0:U.weekStartsOn)!=null?K:n.weekStartsOn)!=null?re:(te=(ee=n.locale)==null?void 0:ee.options)==null?void 0:te.weekStartsOn)!=null?ne:0,u=d(e,r==null?void 0:r.in);if(!me(u))throw new RangeError("Invalid time value");let m=t.match(Tt).map(b=>{let h=b[0];if(h==="p"||h==="P"){let Q=We[h];return Q(b,a.formatLong)}return b}).join("").match(Yt).map(b=>{if(b==="''")return{isToken:!1,value:"'"};let h=b[0];if(h==="'")return{isToken:!1,value:Et(b)};if(B[h])return{isToken:!0,value:b};if(h.match(Nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:b}});a.localize.preprocessor&&(m=a.localize.preprocessor(u,m));let f={firstWeekContainsDate:o,weekStartsOn:s,locale:a};return m.map(b=>{if(!b.isToken)return b.value;let h=b.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Ye(h)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Se(h))&&Te(h,t,String(e));let Q=B[h[0]];return Q(u,h,a.localize,f)}).join("")}function Et(e){let t=e.match(Ft);return t?t[1].replace(It,"'"):e}var L=Ae(require("react")),Ie=e=>{let[t,r]=L.default.useState(!1),n=L.default.useCallback(a=>{a.matches?r(!0):r(!1)},[]);return L.default.useEffect(()=>{let a=window.matchMedia(`(max-width: ${e}px)`);return a.addEventListener("change",n),a.matches&&r(!0),()=>a.removeEventListener("change",n)},[]),t};var i=require("react/jsx-runtime");function He({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,i.jsx)(Le.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(Ce.Container,{maxWidth:1280,children:[(0,i.jsx)(Ct,{subtitle:e,title:t}),(0,i.jsx)(qt,{posts:r,count:0,blogsPerPage:5}),(0,i.jsx)(Ht,{primaryButton:n})]})})}function Ct({subtitle:e,title:t}){return(0,i.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,i.jsx)(H.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,i.jsx)(V.Heading,{fontSize:"3xl",children:t}):null]})}function qt({posts:e,count:t,blogsPerPage:r}){return(0,i.jsxs)(A.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,i.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,a)=>(0,i.jsx)(Ne,{size:"lg",post:n},a))}),(0,i.jsx)(A.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,a)=>(0,i.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,i.jsx)(Ne,{post:n,size:"sm"},a)},a))})]})}function Ne({post:e,size:t,key:r}){let n=Ie("1024");return(0,i.jsxs)("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,i.jsx)(Lt,{post:e,size:t,breakpoints:n},r):null,(0,i.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,i.jsxs)("div",{children:[e!=null&&e.publishedAt?(0,i.jsx)(H.Text,{muted:!0,className:"text-sm",children:Fe(new Date(e.publishedAt)," dd MMM, yyyy")}):null,e!=null&&e.title?(0,i.jsx)(V.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,i.jsx)(H.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,i.jsx)(qe.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function Lt({post:e,size:t,breakpoints:r,key:n}){var a;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(G.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(a=e==null?void 0:e.mainImage)!=null?a:`blog-variantB-image-${n}`}):(0,i.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,i.jsx)(G.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function Ht({primaryButton:e}){return e!=null&&e.label?(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)(Ee.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}0&&(module.exports={Blog_B});
1
+ "use strict";var Qe=Object.create;var N=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Xe=Object.prototype.hasOwnProperty;var Be=(e,t)=>{for(var r in t)N(e,r,{get:t[r],enumerable:!0})},ae=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _e(t))!Xe.call(e,a)&&a!==r&&N(e,a,{get:()=>t[a],enumerable:!(n=je(t,a))||n.enumerable});return e};var Ae=(e,t,r)=>(r=e!=null?Qe(Re(e)):{},ae(t||!e||!e.__esModule?N(r,"default",{value:e,enumerable:!0}):r,e)),Ge=e=>ae(N({},"__esModule",{value:!0}),e);var Qt={};Be(Qt,{Blog_B:()=>He,default:()=>He});module.exports=Ge(Qt);var Ee=require("@stackshift-ui/button"),Ce=require("@stackshift-ui/container"),Q=require("@stackshift-ui/flex"),z=require("@stackshift-ui/heading"),G=require("@stackshift-ui/image"),qe=require("@stackshift-ui/link"),Le=require("@stackshift-ui/section"),I=require("@stackshift-ui/text");var ze=Math.pow(10,8)*24*60*60*1e3,_t=-ze,E=6048e5,oe=864e5;var Ve=3600;var ie=Ve*24,Rt=ie*7,$e=ie*365.2425,Je=$e/12,Xt=Je*3,_=Symbol.for("constructDateFrom");function g(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function d(e,t){return g(t||e,e)}var Ue={};function v(){return Ue}function O(e,t){var u,m,f,w,l,y,x,k;let r=v(),n=(k=(x=(w=(f=t==null?void 0:t.weekStartsOn)!=null?f:(m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)!=null?w:r.weekStartsOn)!=null?x:(y=(l=r.locale)==null?void 0:l.options)==null?void 0:y.weekStartsOn)!=null?k:0,a=d(e,t==null?void 0:t.in),o=a.getDay(),s=(o<n?7:0)+o-n;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function M(e,t){return O(e,{...t,weekStartsOn:1})}function C(e,t){let r=d(e,t==null?void 0:t.in),n=r.getFullYear(),a=g(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=M(a),s=g(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let u=M(s);return r.getTime()>=o.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function R(e){let t=d(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function se(e,...t){let r=g.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function X(e,t){let r=d(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function ce(e,t,r){let[n,a]=se(r==null?void 0:r.in,e,t),o=X(n),s=X(a),u=+o-R(o),m=+s-R(s);return Math.round((u-m)/oe)}function ue(e,t){let r=C(e,t),n=g((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),M(n)}function de(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function me(e){return!(!de(e)&&typeof e!="number"||isNaN(+d(e)))}function fe(e,t){let r=d(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Ze={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},le=(e,t,r)=>{let n,a=Ze[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function q(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Ke={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},et={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},he={date:q({formats:Ke,defaultWidth:"full"}),time:q({formats:et,defaultWidth:"full"}),dateTime:q({formats:tt,defaultWidth:"full"})};var rt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ge=(e,t,r,n)=>rt[e];function D(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,u=r!=null&&r.width?String(r.width):s;a=e.formattingValues[u]||e.formattingValues[s]}else{let s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}let o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}var nt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},at={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ot={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},it={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},st={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ct={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ut=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},we={ordinalNumber:ut,era:D({values:nt,defaultWidth:"wide"}),quarter:D({values:at,defaultWidth:"wide",argumentCallback:e=>e-1}),month:D({values:ot,defaultWidth:"wide"}),day:D({values:it,defaultWidth:"wide"}),dayPeriod:D({values:st,defaultWidth:"wide",formattingValues:ct,defaultFormattingWidth:"wide"})};function W(e){return(t,r={})=>{let n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let s=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(u)?mt(u,l=>l.test(s)):dt(u,l=>l.test(s)),f;f=e.valueCallback?e.valueCallback(m):m,f=r.valueCallback?r.valueCallback(f):f;let w=t.slice(s.length);return{value:f,rest:w}}}function dt(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function mt(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function be(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let a=n[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;let u=t.slice(a.length);return{value:s,rest:u}}}var ft=/^(\d+)(th|st|nd|rd)?/i,lt=/\d+/i,ht={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gt={any:[/^b/i,/^(a|c)/i]},wt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bt={any:[/1/i,/2/i,/3/i,/4/i]},yt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ot={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Pt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ye={ordinalNumber:be({matchPattern:ft,parsePattern:lt,valueCallback:e=>parseInt(e,10)}),era:W({matchPatterns:ht,defaultMatchWidth:"wide",parsePatterns:gt,defaultParseWidth:"any"}),quarter:W({matchPatterns:wt,defaultMatchWidth:"wide",parsePatterns:bt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:W({matchPatterns:yt,defaultMatchWidth:"wide",parsePatterns:xt,defaultParseWidth:"any"}),day:W({matchPatterns:kt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),dayPeriod:W({matchPatterns:Pt,defaultMatchWidth:"any",parsePatterns:vt,defaultParseWidth:"any"})};var B={code:"en-US",formatDistance:le,formatLong:he,formatRelative:ge,localize:we,match:ye,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xe(e,t){let r=d(e,t==null?void 0:t.in);return ce(r,fe(r))+1}function ke(e,t){let r=d(e,t==null?void 0:t.in),n=+M(r)-+ue(r);return Math.round(n/E)+1}function L(e,t){var w,l,y,x,k,Y,T,F;let r=d(e,t==null?void 0:t.in),n=r.getFullYear(),a=v(),o=(F=(T=(x=(y=t==null?void 0:t.firstWeekContainsDate)!=null?y:(l=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:l.firstWeekContainsDate)!=null?x:a.firstWeekContainsDate)!=null?T:(Y=(k=a.locale)==null?void 0:k.options)==null?void 0:Y.firstWeekContainsDate)!=null?F:1,s=g((t==null?void 0:t.in)||e,0);s.setFullYear(n+1,0,o),s.setHours(0,0,0,0);let u=O(s,t),m=g((t==null?void 0:t.in)||e,0);m.setFullYear(n,0,o),m.setHours(0,0,0,0);let f=O(m,t);return+r>=+u?n+1:+r>=+f?n:n-1}function Oe(e,t){var u,m,f,w,l,y,x,k;let r=v(),n=(k=(x=(w=(f=t==null?void 0:t.firstWeekContainsDate)!=null?f:(m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)!=null?w:r.firstWeekContainsDate)!=null?x:(y=(l=r.locale)==null?void 0:l.options)==null?void 0:y.firstWeekContainsDate)!=null?k:1,a=L(e,t),o=g((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),O(o,t)}function Pe(e,t){let r=d(e,t==null?void 0:t.in),n=+O(r,t)-+Oe(r,t);return Math.round(n/E)+1}function c(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var P={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return c(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):c(r+1,2)},d(e,t){return c(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return c(e.getHours()%12||12,t.length)},H(e,t){return c(e.getHours(),t.length)},m(e,t){return c(e.getMinutes(),t.length)},s(e,t){return c(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return c(a,t.length)}};var S={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},A={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return P.y(e,t)},Y:function(e,t,r,n){let a=L(e,n),o=a>0?a:1-a;if(t==="YY"){let s=o%100;return c(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):c(o,t.length)},R:function(e,t){let r=C(e);return c(r,t.length)},u:function(e,t){let r=e.getFullYear();return c(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return c(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return c(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return P.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return c(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a=Pe(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):c(a,t.length)},I:function(e,t,r){let n=ke(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):c(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):P.d(e,t)},D:function(e,t,r){let n=xe(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):c(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return c(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return c(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return c(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),a;switch(n===12?a=S.noon:n===0?a=S.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),a;switch(n>=17?a=S.evening:n>=12?a=S.afternoon:n>=4?a=S.morning:a=S.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return P.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):P.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):c(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):c(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):P.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):P.s(e,t)},S:function(e,t){return P.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Me(n);case"XXXX":case"XX":return p(n);case"XXXXX":case"XXX":default:return p(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Me(n);case"xxxx":case"xx":return p(n);case"xxxxx":case"xxx":default:return p(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ve(n,":");case"OOOO":default:return"GMT"+p(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ve(n,":");case"zzzz":default:return"GMT"+p(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return c(n,t.length)},T:function(e,t,r){return c(+e,t.length)}};function ve(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+c(o,2)}function Me(e,t){return e%60===0?(e>0?"-":"+")+c(Math.abs(e)/60,2):p(e,t)}function p(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=c(Math.trunc(n/60),2),o=c(n%60,2);return r+a+t+o}var pe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},De=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mt=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return pe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",pe(n,t)).replace("{{time}}",De(a,t))},We={p:De,P:Mt};var pt=/^D+$/,Dt=/^Y+$/,Wt=["D","DD","YY","YYYY"];function Se(e){return pt.test(e)}function Ye(e){return Dt.test(e)}function Te(e,t,r){let n=St(e,t,r);if(console.warn(n),Wt.includes(e))throw new RangeError(n)}function St(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Yt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ft=/^'([^]*?)'?$/,It=/''/g,Nt=/[a-zA-Z]/;function Fe(e,t,r){var w,l,y,x,k,Y,T,F,V,$,J,U,Z,K,ee,te,re,ne;let n=v(),a=(l=(w=r==null?void 0:r.locale)!=null?w:n.locale)!=null?l:B,o=($=(V=(Y=(k=r==null?void 0:r.firstWeekContainsDate)!=null?k:(x=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:x.firstWeekContainsDate)!=null?Y:n.firstWeekContainsDate)!=null?V:(F=(T=n.locale)==null?void 0:T.options)==null?void 0:F.firstWeekContainsDate)!=null?$:1,s=(ne=(re=(K=(Z=r==null?void 0:r.weekStartsOn)!=null?Z:(U=(J=r==null?void 0:r.locale)==null?void 0:J.options)==null?void 0:U.weekStartsOn)!=null?K:n.weekStartsOn)!=null?re:(te=(ee=n.locale)==null?void 0:ee.options)==null?void 0:te.weekStartsOn)!=null?ne:0,u=d(e,r==null?void 0:r.in);if(!me(u))throw new RangeError("Invalid time value");let m=t.match(Tt).map(b=>{let h=b[0];if(h==="p"||h==="P"){let j=We[h];return j(b,a.formatLong)}return b}).join("").match(Yt).map(b=>{if(b==="''")return{isToken:!1,value:"'"};let h=b[0];if(h==="'")return{isToken:!1,value:Et(b)};if(A[h])return{isToken:!0,value:b};if(h.match(Nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:b}});a.localize.preprocessor&&(m=a.localize.preprocessor(u,m));let f={firstWeekContainsDate:o,weekStartsOn:s,locale:a};return m.map(b=>{if(!b.isToken)return b.value;let h=b.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Ye(h)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Se(h))&&Te(h,t,String(e));let j=A[h[0]];return j(u,h,a.localize,f)}).join("")}function Et(e){let t=e.match(Ft);return t?t[1].replace(It,"'"):e}var H=Ae(require("react")),Ie=e=>{let[t,r]=H.default.useState(!1),n=H.default.useCallback(a=>{a.matches?r(!0):r(!1)},[]);return H.default.useEffect(()=>{let a=window.matchMedia(`(max-width: ${e}px)`);return a.addEventListener("change",n),a.matches&&r(!0),()=>a.removeEventListener("change",n)},[]),t};var i=require("react/jsx-runtime");function He({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,i.jsx)(Le.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(Ce.Container,{maxWidth:1280,children:[(0,i.jsx)(Ct,{subtitle:e,title:t}),(0,i.jsx)(qt,{posts:r,count:0,blogsPerPage:5}),(0,i.jsx)(Ht,{primaryButton:n})]})})}function Ct({subtitle:e,title:t}){return(0,i.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,i.jsx)(I.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,i.jsx)(z.Heading,{fontSize:"3xl",children:t}):null]})}function qt({posts:e,count:t,blogsPerPage:r}){return(0,i.jsxs)(Q.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,i.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,a)=>(0,i.jsx)(Ne,{size:"lg",post:n},a))}),(0,i.jsx)(Q.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,a)=>(0,i.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,i.jsx)(Ne,{post:n,size:"sm"},a)},a))})]})}function Ne({post:e,size:t,key:r}){var a;let n=Ie("1024");return(0,i.jsxs)("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,i.jsx)(Lt,{post:e,size:t,breakpoints:n},r):null,(0,i.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)(Q.Flex,{align:"center",children:[e!=null&&e.publishedAt?(0,i.jsx)(I.Text,{muted:!0,className:"text-sm",children:Fe(new Date(e.publishedAt)," dd MMM, yyyy")}):null,(e==null?void 0:e.authors)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,i.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(a=e==null?void 0:e.authors)==null?void 0:a.map((o,s,{length:u})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I.Text,{className:"italic",fontSize:"sm",children:o==null?void 0:o.name}),s+1!==u?(0,i.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,i.jsx)(z.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,i.jsx)(I.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,i.jsx)(qe.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function Lt({post:e,size:t,breakpoints:r,key:n}){var a;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(G.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(a=e==null?void 0:e.mainImage)!=null?a:`blog-variantB-image-${n}`}):(0,i.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,i.jsx)(G.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function Ht({primaryButton:e}){return e!=null&&e.label?(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)(Ee.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}0&&(module.exports={Blog_B});
package/dist/blog_b.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-HRT2UV7A.mjs";import"./chunk-TMLYY2AQ.mjs";import"./chunk-PC6NMI3O.mjs";export{a as Blog_B,a as default};
1
+ import{a}from"./chunk-DK7SFSP5.mjs";import"./chunk-TMLYY2AQ.mjs";import"./chunk-PC6NMI3O.mjs";export{a as Blog_B,a as default};
@@ -0,0 +1 @@
1
+ import{a as b}from"./chunk-TMLYY2AQ.mjs";import{a as s}from"./chunk-PC6NMI3O.mjs";import{Button as h}from"@stackshift-ui/button";import{Container as w}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Heading as o}from"@stackshift-ui/heading";import{Image as u}from"@stackshift-ui/image";import{Link as N}from"@stackshift-ui/link";import{Section as P}from"@stackshift-ui/section";import{Text as g}from"@stackshift-ui/text";import{Fragment as d,jsx as l,jsxs as r}from"react/jsx-runtime";function k({subtitle:e,title:i,posts:m,primaryButton:n}){return l(P,{className:"py-20 bg-background",children:r(w,{maxWidth:1280,children:[l(y,{subtitle:e,title:i}),l(z,{posts:m,count:0,blogsPerPage:5}),l(I,{primaryButton:n})]})})}function y({subtitle:e,title:i}){return r("div",{className:"w-full mb-16 text-center",children:[e?l(g,{weight:"bold",className:"text-secondary",children:e}):null,i?l(o,{fontSize:"3xl",children:i}):null]})}function z({posts:e,count:i,blogsPerPage:m}){return r(c,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[l("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(i,i+1).map((n,a)=>l(f,{size:"lg",post:n},a))}),l(c,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(i+1,m).map((n,a)=>l("div",{className:"w-full lg:basis-[45%]",children:l(f,{post:n,size:"sm"},a)},a))})]})}function f({post:e,size:i,key:m}){var a;let n=b("1024");return r("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?l($,{post:e,size:i,breakpoints:n},m):null,r("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[r("div",{children:[r(c,{align:"center",children:[e!=null&&e.publishedAt?l(g,{muted:!0,className:"text-sm",children:s(new Date(e.publishedAt)," dd MMM, yyyy")}):null,(e==null?void 0:e.authors)&&r(d,{children:[l("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),l("div",{className:"flex mt-auto text-sm text-gray-500",children:(a=e==null?void 0:e.authors)==null?void 0:a.map((t,v,{length:x})=>r(d,{children:[l(g,{className:"italic",fontSize:"sm",children:t==null?void 0:t.name}),v+1!==x?l("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?l(o,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?l(g,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?l(N,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function $({post:e,size:i,breakpoints:m,key:n}){var a;return l(d,{children:m?l(u,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(a=e==null?void 0:e.mainImage)!=null?a:`blog-variantB-image-${n}`}):l("div",{className:`${i==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:l(u,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function I({primaryButton:e}){return e!=null&&e.label?l("div",{className:"text-center",children:l(h,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}export{k as a};
@@ -0,0 +1 @@
1
+ import{a as b}from"./chunk-PC6NMI3O.mjs";import{Button as w}from"@stackshift-ui/button";import{Container as N}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as h}from"@stackshift-ui/heading";import{Image as k}from"@stackshift-ui/image";import{Link as P}from"@stackshift-ui/link";import{Section as y}from"@stackshift-ui/section";import{Text as v}from"@stackshift-ui/text";import{Fragment as t,jsx as l,jsxs as m}from"react/jsx-runtime";function A({subtitle:e,title:d,posts:a,primaryButton:c}){return l(y,{className:"py-20 bg-background",children:m(N,{maxWidth:1280,children:[l(F,{subtitle:e,title:d}),l(L,{posts:a}),l(S,{primaryButton:c})]})})}function F({subtitle:e,title:d}){return m("div",{className:"mb-16 text-center",children:[e?l(v,{weight:"bold",className:"text-secondary",children:e}):null,d?l(h,{fontSize:"3xl",children:d}):null]})}function L({posts:e}){var c,x,f,n;if(!e)return null;let d=6,a=0;return m(u,{gap:4,className:"flex-col lg:flex-row",children:[m("div",{className:"w-full space-y-5 lg:w-1/2",children:[(c=e==null?void 0:e.slice(a,a+1))==null?void 0:c.map((i,r)=>l(g,{post:i},r)),l(u,{gap:4,className:"flex-col lg:flex-row",children:(x=e==null?void 0:e.slice(a+1,a+3))==null?void 0:x.map((i,r)=>l(g,{post:i},r))})]}),m("div",{className:"w-full space-y-5 lg:w-1/2",children:[l(u,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(a+3,a+5))==null?void 0:f.map((i,r)=>l(g,{post:i},r))}),(n=e==null?void 0:e.slice(a+5,d))==null?void 0:n.map((i,r)=>l(g,{post:i},r))]})]})}function g({post:e,key:d}){var a,c,x,f;return m("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?l(k,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(a=e==null?void 0:e.alt)!=null?a:`blog-variantA-image-${d}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,l("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),m("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?l("div",{className:"absolute flex left-5 top-5",children:(c=e==null?void 0:e.categories)==null?void 0:c.map((n,i)=>l("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:n==null?void 0:n.title},i))}):null,m(u,{align:"center",className:"mt-auto",children:[l("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?b(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),(e==null?void 0:e.authors)&&m(t,{children:[l("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),l("div",{className:"flex mt-auto text-sm text-gray-500",children:(x=e==null?void 0:e.authors)==null?void 0:x.map((n,i,{length:r})=>m(t,{children:[l(v,{className:"italic",fontSize:"sm",children:n==null?void 0:n.name}),i+1!==r?l("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?l(P,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((f=e==null?void 0:e.title)==null?void 0:f.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function S({primaryButton:e}){return e!=null&&e.label?l("div",{className:"mt-10 text-center",children:l(w,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}export{A as a};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var Ef=Object.create;var K=Object.defineProperty;var Lf=Object.getOwnPropertyDescriptor;var zf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,Af=Object.prototype.hasOwnProperty;var a=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},Ze=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zf(t))!Af.call(e,o)&&o!==r&&K(e,o,{get:()=>t[o],enumerable:!(n=Lf(t,o))||n.enumerable});return e};var xe=(e,t,r)=>(r=e!=null?Ef(Rf(e)):{},Ze(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),Qf=e=>Ze(K({},"__esModule",{value:!0}),e);var Bf,Zu,ee,Ke,qf,et,Ku,jf,Xf,em,he,q=a(()=>{"use strict";Bf=Math.pow(10,8)*24*60*60*1e3,Zu=-Bf,ee=6048e5,Ke=864e5,qf=3600,et=qf*24,Ku=et*7,jf=et*365.2425,Xf=jf/12,em=Xf*3,he=Symbol.for("constructDateFrom")});function S(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&he in e?e[he](t):e instanceof Date?new e.constructor(t):new Date(t)}var F=a(()=>{"use strict";q()});function b(e,t){return S(t||e,e)}var I=a(()=>{"use strict";F()});var tt=a(()=>{"use strict"});var rt=a(()=>{"use strict"});var at=a(()=>{"use strict"});var nt=a(()=>{"use strict"});var ot=a(()=>{"use strict"});var ft=a(()=>{"use strict"});var ut=a(()=>{"use strict"});var mt=a(()=>{"use strict"});var ct=a(()=>{"use strict"});function W(){return Uf}var Uf,j=a(()=>{"use strict";Uf={}});function N(e,t){var c,l,D,y,w,h,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.weekStartsOn)!=null?D:(l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)!=null?y:r.weekStartsOn)!=null?M:(h=(w=r.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)!=null?O:0,o=b(e,t==null?void 0:t.in),f=o.getDay(),u=(f<n?7:0)+f-n;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}var L=a(()=>{"use strict";j();I()});function H(e,t){return N(e,{...t,weekStartsOn:1})}var X=a(()=>{"use strict";L()});function te(e,t){let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=S(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let f=H(o),u=S(r,0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);let c=H(u);return r.getTime()>=f.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}var re=a(()=>{"use strict";F();X();I()});function ge(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}var it=a(()=>{"use strict";I()});function lt(e,...t){let r=S.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var dt=a(()=>{"use strict";F()});function De(e,t){let r=b(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}var ye=a(()=>{"use strict";I()});function st(e,t,r){let[n,o]=lt(r==null?void 0:r.in,e,t),f=De(n),u=De(o),c=+f-ge(f),l=+u-ge(u);return Math.round((c-l)/Ke)}var we=a(()=>{"use strict";it();dt();q();ye()});function xt(e,t){let r=te(e,t),n=S((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),H(n)}var be=a(()=>{"use strict";F();re();X()});var ht=a(()=>{"use strict"});var gt=a(()=>{"use strict"});var Dt=a(()=>{"use strict"});var yt=a(()=>{"use strict"});var wt=a(()=>{"use strict"});var bt=a(()=>{"use strict"});var Mt=a(()=>{"use strict"});var Ot=a(()=>{"use strict"});var kt=a(()=>{"use strict"});var pt=a(()=>{"use strict"});var St=a(()=>{"use strict"});var vt=a(()=>{"use strict"});var It=a(()=>{"use strict"});var Tt=a(()=>{"use strict"});var Nt=a(()=>{"use strict"});var Yt=a(()=>{"use strict"});var Ft=a(()=>{"use strict"});var Wt=a(()=>{"use strict"});function Pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Me=a(()=>{"use strict"});function _t(e){return!(!Pt(e)&&typeof e!="number"||isNaN(+b(e)))}var Oe=a(()=>{"use strict";Me();I()});var Ct=a(()=>{"use strict"});var Ht=a(()=>{"use strict"});var $t=a(()=>{"use strict"});var Et=a(()=>{"use strict"});var Lt=a(()=>{"use strict"});var zt=a(()=>{"use strict"});var Rt=a(()=>{"use strict"});var At=a(()=>{"use strict"});var Qt=a(()=>{"use strict"});var Bt=a(()=>{"use strict"});var qt=a(()=>{"use strict"});var jt=a(()=>{"use strict"});var Xt=a(()=>{"use strict"});var Ut=a(()=>{"use strict"});var Vt=a(()=>{"use strict"});var Gt=a(()=>{"use strict"});var Jt=a(()=>{"use strict"});var Zt=a(()=>{"use strict"});var Kt=a(()=>{"use strict"});var er=a(()=>{"use strict"});var tr=a(()=>{"use strict"});var rr=a(()=>{"use strict"});var ar=a(()=>{"use strict"});var nr=a(()=>{"use strict"});var or=a(()=>{"use strict"});var fr=a(()=>{"use strict"});var ur=a(()=>{"use strict"});var mr=a(()=>{"use strict"});var cr=a(()=>{"use strict"});var ir=a(()=>{"use strict"});var lr=a(()=>{"use strict"});var dr=a(()=>{"use strict"});var sr=a(()=>{"use strict"});function xr(e,t){let r=b(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var ke=a(()=>{"use strict";I()});var hr=a(()=>{"use strict"});var gr=a(()=>{"use strict"});var Dr=a(()=>{"use strict"});var yr=a(()=>{"use strict"});var wr=a(()=>{"use strict"});var br=a(()=>{"use strict"});var Mr=a(()=>{"use strict"});var Or=a(()=>{"use strict"});var kr=a(()=>{"use strict"});var pr=a(()=>{"use strict"});var Sr=a(()=>{"use strict"});var vr=a(()=>{"use strict"});var Ir=a(()=>{"use strict"});var Vf,Tr,Nr=a(()=>{"use strict";Vf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Tr=(e,t,r)=>{let n,o=Vf[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n}});function ae(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Yr=a(()=>{"use strict"});var Gf,Jf,Zf,Fr,Wr=a(()=>{"use strict";Yr();Gf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fr={date:ae({formats:Gf,defaultWidth:"full"}),time:ae({formats:Jf,defaultWidth:"full"}),dateTime:ae({formats:Zf,defaultWidth:"full"})}});var Kf,Pr,_r=a(()=>{"use strict";Kf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pr=(e,t,r,n)=>Kf[e]});function z(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,c=r!=null&&r.width?String(r.width):u;o=e.formattingValues[c]||e.formattingValues[u]}else{let u=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[c]||e.values[u]}let f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var Cr=a(()=>{"use strict"});var eu,tu,ru,au,nu,ou,fu,Hr,$r=a(()=>{"use strict";Cr();eu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ru={narrow:["cf","F","M","A","M","cf","cf","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},au={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ou={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},fu=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Hr={ordinalNumber:fu,era:z({values:eu,defaultWidth:"wide"}),quarter:z({values:tu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:z({values:ru,defaultWidth:"wide"}),day:z({values:au,defaultWidth:"wide"}),dayPeriod:z({values:nu,defaultWidth:"wide",formattingValues:ou,defaultFormattingWidth:"wide"})}});function R(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],f=t.match(o);if(!f)return null;let u=f[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?mu(c,w=>w.test(u)):uu(c,w=>w.test(u)),D;D=e.valueCallback?e.valueCallback(l):l,D=r.valueCallback?r.valueCallback(D):D;let y=t.slice(u.length);return{value:D,rest:y}}}function uu(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function mu(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}var Er=a(()=>{"use strict"});function Lr(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],f=t.match(e.parsePattern);if(!f)return null;let u=e.valueCallback?e.valueCallback(f[0]):f[0];u=r.valueCallback?r.valueCallback(u):u;let c=t.slice(o.length);return{value:u,rest:c}}}var zr=a(()=>{"use strict"});var cu,iu,lu,du,su,xu,hu,gu,Du,yu,wu,bu,Rr,Ar=a(()=>{"use strict";Er();zr();cu=/^(\d+)(th|st|nd|rd)?/i,iu=/\d+/i,lu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},du={any:[/^b/i,/^(a|c)/i]},su={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xu={any:[/1/i,/2/i,/3/i,/4/i]},hu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Du={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Rr={ordinalNumber:Lr({matchPattern:cu,parsePattern:iu,valueCallback:e=>parseInt(e,10)}),era:R({matchPatterns:lu,defaultMatchWidth:"wide",parsePatterns:du,defaultParseWidth:"any"}),quarter:R({matchPatterns:su,defaultMatchWidth:"wide",parsePatterns:xu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:R({matchPatterns:hu,defaultMatchWidth:"wide",parsePatterns:gu,defaultParseWidth:"any"}),day:R({matchPatterns:Du,defaultMatchWidth:"wide",parsePatterns:yu,defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:wu,defaultMatchWidth:"any",parsePatterns:bu,defaultParseWidth:"any"})}});var pe,Qr=a(()=>{"use strict";Nr();Wr();_r();$r();Ar();pe={code:"en-US",formatDistance:Tr,formatLong:Fr,formatRelative:Pr,localize:Hr,match:Rr,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var Br=a(()=>{"use strict";Qr()});function qr(e,t){let r=b(e,t==null?void 0:t.in);return st(r,xr(r))+1}var Se=a(()=>{"use strict";we();ke();I()});function jr(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+xt(r);return Math.round(n/ee)+1}var ve=a(()=>{"use strict";q();X();be();I()});function ne(e,t){var y,w,h,M,O,_,C,E;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=W(),f=(E=(C=(M=(h=t==null?void 0:t.firstWeekContainsDate)!=null?h:(w=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)!=null?M:o.firstWeekContainsDate)!=null?C:(_=(O=o.locale)==null?void 0:O.options)==null?void 0:_.firstWeekContainsDate)!=null?E:1,u=S((t==null?void 0:t.in)||e,0);u.setFullYear(n+1,0,f),u.setHours(0,0,0,0);let c=N(u,t),l=S((t==null?void 0:t.in)||e,0);l.setFullYear(n,0,f),l.setHours(0,0,0,0);let D=N(l,t);return+r>=+c?n+1:+r>=+D?n:n-1}var oe=a(()=>{"use strict";j();F();L();I()});function Xr(e,t){var c,l,D,y,w,h,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.firstWeekContainsDate)!=null?D:(l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)!=null?y:r.firstWeekContainsDate)!=null?M:(h=(w=r.locale)==null?void 0:w.options)==null?void 0:h.firstWeekContainsDate)!=null?O:1,o=ne(e,t),f=S((t==null?void 0:t.in)||e,0);return f.setFullYear(o,0,n),f.setHours(0,0,0,0),N(f,t)}var Ie=a(()=>{"use strict";j();F();oe();L()});function Ur(e,t){let r=b(e,t==null?void 0:t.in),n=+N(r,t)-+Xr(r,t);return Math.round(n/ee)+1}var Te=a(()=>{"use strict";q();L();Ie();I()});function x(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Ne=a(()=>{"use strict"});var Y,Vr=a(()=>{"use strict";Ne();Y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return x(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):x(r+1,2)},d(e,t){return x(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return x(e.getHours()%12||12,t.length)},H(e,t){return x(e.getHours(),t.length)},m(e,t){return x(e.getMinutes(),t.length)},s(e,t){return x(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return x(o,t.length)}}});function Gr(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),f=n%60;return f===0?r+String(o):r+String(o)+t+x(f,2)}function Jr(e,t){return e%60===0?(e>0?"-":"+")+x(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=x(Math.trunc(n/60),2),f=x(n%60,2);return r+o+t+f}var A,Ye,Zr=a(()=>{"use strict";Se();ve();re();Te();oe();Ne();Vr();A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ye={ue:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"ue":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,r,n){let o=ne(e,n),f=o>0?o:1-o;if(t==="YY"){let u=f%100;return x(u,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):x(f,t.length)},R:function(e,t){let r=te(e);return x(r,t.length)},u:function(e,t){let r=e.getFullYear();return x(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return x(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return x(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return x(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=Ur(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):x(o,t.length)},I:function(e,t,r){let n=jr(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):x(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,r){let n=qr(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):x(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return x(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return x(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return x(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=A.noon:n===0?o=A.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=A.evening:n>=12?o=A.afternoon:n>=4?o=A.morning:o=A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Jr(n);case"XXXX":case"XX":return $(n);case"XXXXX":case"XXX":default:return $(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Jr(n);case"xxxx":case"xx":return $(n);case"xxxxx":case"xxx":default:return $(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Gr(n,":");case"OOOO":default:return"GMT"+$(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Gr(n,":");case"zzzz":default:return"GMT"+$(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return x(n,t.length)},T:function(e,t,r){return x(+e,t.length)}}});var Kr,ea,Mu,ta,ra=a(()=>{"use strict";Kr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ea=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mu=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Kr(e,t);let f;switch(n){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",Kr(n,t)).replace("{{time}}",ea(o,t))},ta={p:ea,P:Mu}});function aa(e){return Ou.test(e)}function na(e){return ku.test(e)}function oa(e,t,r){let n=Su(e,t,r);if(console.warn(n),pu.includes(e))throw new RangeError(n)}function Su(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Ou,ku,pu,fa=a(()=>{"use strict";Ou=/^D+$/,ku=/^Y+$/,pu=["D","DD","YY","YYYY"]});function P(e,t,r){var y,w,h,M,O,_,C,E,i,k,T,qe,je,Xe,Ue,Ve,Ge,Je;let n=W(),o=(w=(y=r==null?void 0:r.locale)!=null?y:n.locale)!=null?w:pe,f=(k=(i=(_=(O=r==null?void 0:r.firstWeekContainsDate)!=null?O:(M=(h=r==null?void 0:r.locale)==null?void 0:h.options)==null?void 0:M.firstWeekContainsDate)!=null?_:n.firstWeekContainsDate)!=null?i:(E=(C=n.locale)==null?void 0:C.options)==null?void 0:E.firstWeekContainsDate)!=null?k:1,u=(Je=(Ge=(Xe=(je=r==null?void 0:r.weekStartsOn)!=null?je:(qe=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:qe.weekStartsOn)!=null?Xe:n.weekStartsOn)!=null?Ge:(Ve=(Ue=n.locale)==null?void 0:Ue.options)==null?void 0:Ve.weekStartsOn)!=null?Je:0,c=b(e,r==null?void 0:r.in);if(!_t(c))throw new RangeError("Invalid time value");let l=t.match(Iu).map(v=>{let p=v[0];if(p==="p"||p==="P"){let se=ta[p];return se(v,o.formatLong)}return v}).join("").match(vu).map(v=>{if(v==="''")return{isToken:!1,value:"'"};let p=v[0];if(p==="'")return{isToken:!1,value:Fu(v)};if(Ye[p])return{isToken:!0,value:v};if(p.match(Yu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:v}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));let D={firstWeekContainsDate:f,weekStartsOn:u,locale:o};return l.map(v=>{if(!v.isToken)return v.value;let p=v.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&na(p)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&aa(p))&&oa(p,t,String(e));let se=Ye[p[0]];return se(c,p,o.localize,D)}).join("")}function Fu(e){let t=e.match(Tu);return t?t[1].replace(Nu,"'"):e}var vu,Iu,Tu,Nu,Yu,ua=a(()=>{"use strict";Br();j();Zr();ra();fa();Oe();I();vu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tu=/^'([^]*?)'?$/,Nu=/''/g,Yu=/[a-zA-Z]/});var ma=a(()=>{"use strict"});var ca=a(()=>{"use strict"});var ia=a(()=>{"use strict"});var la=a(()=>{"use strict"});var da=a(()=>{"use strict"});var sa=a(()=>{"use strict"});var xa=a(()=>{"use strict"});var ha=a(()=>{"use strict"});var ga=a(()=>{"use strict"});var Da=a(()=>{"use strict"});var ya=a(()=>{"use strict"});var wa=a(()=>{"use strict"});var ba=a(()=>{"use strict"});var Ma=a(()=>{"use strict"});var Oa=a(()=>{"use strict"});var ka=a(()=>{"use strict"});var pa=a(()=>{"use strict"});var Sa=a(()=>{"use strict"});var va=a(()=>{"use strict"});var Ia=a(()=>{"use strict"});var Ta=a(()=>{"use strict"});var Na=a(()=>{"use strict"});var Ya=a(()=>{"use strict"});var Fa=a(()=>{"use strict"});var Wa=a(()=>{"use strict"});var Pa=a(()=>{"use strict"});var _a=a(()=>{"use strict"});var Ca=a(()=>{"use strict"});var Ha=a(()=>{"use strict"});var $a=a(()=>{"use strict"});var Ea=a(()=>{"use strict"});var La=a(()=>{"use strict"});var za=a(()=>{"use strict"});var Ra=a(()=>{"use strict"});var Aa=a(()=>{"use strict"});var Qa=a(()=>{"use strict"});var Ba=a(()=>{"use strict"});var qa=a(()=>{"use strict"});var ja=a(()=>{"use strict"});var Xa=a(()=>{"use strict"});var Ua=a(()=>{"use strict"});var Va=a(()=>{"use strict"});var Ga=a(()=>{"use strict"});var Ja=a(()=>{"use strict"});var Za=a(()=>{"use strict"});var Ka=a(()=>{"use strict"});var en=a(()=>{"use strict"});var tn=a(()=>{"use strict"});var rn=a(()=>{"use strict"});var an=a(()=>{"use strict"});var nn=a(()=>{"use strict"});var on=a(()=>{"use strict"});var fn=a(()=>{"use strict"});var un=a(()=>{"use strict"});var mn=a(()=>{"use strict"});var cn=a(()=>{"use strict"});var ln=a(()=>{"use strict"});var dn=a(()=>{"use strict"});var sn=a(()=>{"use strict"});var xn=a(()=>{"use strict"});var hn=a(()=>{"use strict"});var gn=a(()=>{"use strict"});var Dn=a(()=>{"use strict"});var yn=a(()=>{"use strict"});var wn=a(()=>{"use strict"});var bn=a(()=>{"use strict"});var Mn=a(()=>{"use strict"});var On=a(()=>{"use strict"});var kn=a(()=>{"use strict"});var pn=a(()=>{"use strict"});var Sn=a(()=>{"use strict"});var vn=a(()=>{"use strict"});var In=a(()=>{"use strict"});var Tn=a(()=>{"use strict"});var Nn=a(()=>{"use strict"});var Yn=a(()=>{"use strict"});var Fn=a(()=>{"use strict"});var Wn=a(()=>{"use strict"});var Pn=a(()=>{"use strict"});var _n=a(()=>{"use strict"});var Cn=a(()=>{"use strict"});var Hn=a(()=>{"use strict"});var $n=a(()=>{"use strict"});var En=a(()=>{"use strict"});var Ln=a(()=>{"use strict"});var zn=a(()=>{"use strict"});var Rn=a(()=>{"use strict"});var An=a(()=>{"use strict"});var Qn=a(()=>{"use strict"});var Bn=a(()=>{"use strict"});var qn=a(()=>{"use strict"});var jn=a(()=>{"use strict"});var Xn=a(()=>{"use strict"});var Un=a(()=>{"use strict"});var Vn=a(()=>{"use strict"});var Gn=a(()=>{"use strict"});var Jn=a(()=>{"use strict"});var Zn=a(()=>{"use strict"});var Kn=a(()=>{"use strict"});var eo=a(()=>{"use strict"});var to=a(()=>{"use strict"});var ro=a(()=>{"use strict"});var ao=a(()=>{"use strict"});var no=a(()=>{"use strict"});var oo=a(()=>{"use strict"});var fo=a(()=>{"use strict"});var uo=a(()=>{"use strict"});var mo=a(()=>{"use strict"});var co=a(()=>{"use strict"});var io=a(()=>{"use strict"});var lo=a(()=>{"use strict"});var so=a(()=>{"use strict"});var xo=a(()=>{"use strict"});var ho=a(()=>{"use strict"});var go=a(()=>{"use strict"});var Do=a(()=>{"use strict"});var yo=a(()=>{"use strict"});var wo=a(()=>{"use strict"});var bo=a(()=>{"use strict"});var Mo=a(()=>{"use strict"});var Oo=a(()=>{"use strict"});var ko=a(()=>{"use strict"});var po=a(()=>{"use strict"});var So=a(()=>{"use strict"});var vo=a(()=>{"use strict"});var Io=a(()=>{"use strict"});var To=a(()=>{"use strict"});var No=a(()=>{"use strict"});var Yo=a(()=>{"use strict"});var Fo=a(()=>{"use strict"});var Wo=a(()=>{"use strict"});var Po=a(()=>{"use strict"});var _o=a(()=>{"use strict"});var Co=a(()=>{"use strict"});var Ho=a(()=>{"use strict"});var $o=a(()=>{"use strict"});var Eo=a(()=>{"use strict"});var Lo=a(()=>{"use strict"});var zo=a(()=>{"use strict"});var Ro=a(()=>{"use strict"});var Ao=a(()=>{"use strict"});var Qo=a(()=>{"use strict"});var Bo=a(()=>{"use strict"});var qo=a(()=>{"use strict"});var jo=a(()=>{"use strict"});var Xo=a(()=>{"use strict"});var Uo=a(()=>{"use strict"});var Vo=a(()=>{"use strict"});var Go=a(()=>{"use strict"});var Jo=a(()=>{"use strict"});var Zo=a(()=>{"use strict"});var Ko=a(()=>{"use strict"});var ef=a(()=>{"use strict"});var tf=a(()=>{"use strict"});var rf=a(()=>{"use strict"});var U=a(()=>{"use strict";at();ut();tt();ct();gt();mt();Dt();rt();yt();wt();bt();Mt();Ot();St();vt();It();Tt();Nt();F();Yt();Ft();Ct();we();Ht();$t();Et();zt();Rt();At();Qt();Bt();jt();Xt();Ut();Zt();Kt();er();tr();rr();ar();nr();or();fr();mr();cr();ir();dr();hr();gr();Vt();Dr();yr();br();Mr();Or();Gt();kr();pr();Sr();vr();wr();sr();Ir();ua();ma();ca();ia();la();da();sa();xa();ha();ga();Da();ya();wa();ba();Ma();Se();Oa();pa();Sa();va();Ia();Ta();ve();re();Na();Ya();Fa();Wa();Pa();Lt();_a();Ca();Ha();Te();$a();oe();La();za();Ra();Aa();Qa();Ba();qa();ja();Xa();Ua();Va();Me();Ga();Ja();Za();Ka();en();Jt();ka();un();mn();cn();Wt();dn();xn();hn();Dn();yn();wn();Mn();sn();On();nt();ot();kn();pn();Sn();vn();In();Tn();Nn();Yn();Fn();Wn();Pn();_n();Oe();Cn();ft();Hn();En();Ln();Rn();An();Ea();Qn();zn();Bn();qn();kt();jn();Xn();Un();Vn();pt();Gn();Jn();Zn();Kn();eo();to();ro();ao();no();oo();fo();uo();mo();fn();co();io();lo();so();xo();ho();go();Do();yo();wo();bo();Mo();Oo();ko();po();So();vo();To();No();nn();Yo();Fo();Wo();on();an();ht();Po();_o();Io();Co();Ho();rn();$o();Eo();ye();Lo();ln();X();be();gn();lr();ur();bn();zo();Ro();L();Ie();ke();Ao();Bo();qo();$n();jo();qt();Xo();Uo();Qo();Vo();Go();Jo();Zo();I();tn();Ko();ef();tf();rf()});var lf={};B(lf,{Blog_A:()=>Fe,default:()=>Fe});function Fe({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,g.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(nf.Container,{maxWidth:1280,children:[(0,g.jsx)(Wu,{subtitle:e,title:t}),(0,g.jsx)(Pu,{posts:r}),(0,g.jsx)(_u,{primaryButton:n})]})})}function Wu({subtitle:e,title:t}){return(0,g.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,g.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,g.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Pu({posts:e}){var n,o,f,u;if(!e)return null;let t=6,r=0;return(0,g.jsxs)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,g.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((c,l)=>(0,g.jsx)(fe,{post:c},l)),(0,g.jsx)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+1,r+3))==null?void 0:o.map((c,l)=>(0,g.jsx)(fe,{post:c},l))})]}),(0,g.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,g.jsx)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(r+3,r+5))==null?void 0:f.map((c,l)=>(0,g.jsx)(fe,{post:c},l))}),(u=e==null?void 0:e.slice(r+5,t))==null?void 0:u.map((c,l)=>(0,g.jsx)(fe,{post:c},l))]})]})}function fe({post:e,key:t}){var r,n,o;return(0,g.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,g.jsx)(ff.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,g.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,g.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,g.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((f,u)=>(0,g.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:f==null?void 0:f.title},u))}):null,(0,g.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?P(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),e!=null&&e.title?(0,g.jsx)(uf.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((o=e==null?void 0:e.title)==null?void 0:o.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function _u({primaryButton:e}){return e!=null&&e.label?(0,g.jsx)("div",{className:"mt-10 text-center",children:(0,g.jsx)(af.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var af,nf,ue,of,ff,uf,mf,cf,g,We=a(()=>{"use strict";af=require("@stackshift-ui/button"),nf=require("@stackshift-ui/container"),ue=require("@stackshift-ui/flex"),of=require("@stackshift-ui/heading"),ff=require("@stackshift-ui/image"),uf=require("@stackshift-ui/link"),mf=require("@stackshift-ui/section"),cf=require("@stackshift-ui/text");U();g=require("react/jsx-runtime")});var me,ce,Pe=a(()=>{"use strict";me=xe(require("react")),ce=e=>{let[t,r]=me.default.useState(!1),n=me.default.useCallback(o=>{o.matches?r(!0):r(!1)},[]);return me.default.useEffect(()=>{let o=window.matchMedia(`(max-width: ${e}px)`);return o.addEventListener("change",n),o.matches&&r(!0),()=>o.removeEventListener("change",n)},[]),t}});var Df={};B(Df,{Blog_B:()=>$e,default:()=>$e});function $e({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,s.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(nf.Container,{maxWidth:1280,children:[(0,s.jsx)(Cu,{subtitle:e,title:t}),(0,s.jsx)(Hu,{posts:r,count:0,blogsPerPage:5}),(0,s.jsx)(Eu,{primaryButton:n})]})})}function Cu({subtitle:e,title:t}){return(0,s.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,s.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,s.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Hu({posts:e,count:t,blogsPerPage:r}){return(0,s.jsxs)(ue.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,s.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,o)=>(0,s.jsx)(df,{size:"lg",post:n},o))}),(0,s.jsx)(ue.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,o)=>(0,s.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,s.jsx)(df,{post:n,size:"sm"},o)},o))})]})}function df({post:e,size:t,key:r}){let n=ce("1024");return(0,s.jsxs)("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,s.jsx)($u,{post:e,size:t,breakpoints:n},r):null,(0,s.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,s.jsxs)("div",{children:[e!=null&&e.publishedAt?(0,s.jsx)(cf.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,e!=null&&e.title?(0,s.jsx)(of.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,s.jsx)(cf.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,s.jsx)(uf.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function $u({post:e,size:t,breakpoints:r,key:n}){var o;return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsx)(ff.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(o=e==null?void 0:e.mainImage)!=null?o:`blog-variantB-image-${n}`}):(0,s.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,s.jsx)(ff.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function Eu({primaryButton:e}){return e!=null&&e.label?(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(sf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var sf,nf,ue,of,ff,uf,mf,cf,s,Ee=a(()=>{"use strict";sf=require("@stackshift-ui/button");U();Pe();s=require("react/jsx-runtime")});var vf={};B(vf,{Blog_C:()=>ze,default:()=>ze});function ze({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(nf.Container,{maxWidth:1280,children:[(0,d.jsxs)(ue.Flex,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:4,children:[(0,d.jsx)(Lu,{subtitle:e,title:t}),(0,d.jsx)(yf,{primaryButton:n})]}),(0,d.jsx)(zu,{posts:r,blogsPerPage:3}),(0,d.jsx)(yf,{primaryButton:n})]})})}function Lu({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"text-center md:text-left",children:[e?(0,d.jsx)(cf.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,d.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function zu({posts:e,blogsPerPage:t}){var r;return e?(0,d.jsx)("div",{children:(r=e==null?void 0:e.slice(0,t))==null?void 0:r.map((n,o)=>(0,d.jsx)("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-md shadow",children:(0,d.jsx)(Ru,{post:n,className:`${o%2===0?"flex-row":"flex-row-reverse"}`},o)},o))}):null}function Ru({post:e,className:t,key:r}){var f,u,c,l,D,y,w;let o=ce("1100")?70:200;return(0,d.jsxs)(ue.Flex,{wrap:!0,className:`bg-white overflow-hidden rounded-lg shadow w-full ${t}`,children:[(e==null?void 0:e.mainImage)&&(0,d.jsx)(ff.Image,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:(f=e==null?void 0:e.alt)!=null?f:`blog-variantC-image-${r}`}),(0,d.jsxs)("div",{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[(0,d.jsxs)(ue.Flex,{gap:2,children:[(e==null?void 0:e.categories)&&((u=e==null?void 0:e.categories)==null?void 0:u.map((h,M)=>(0,d.jsx)(wf.Badge,{className:"bg-secondary/70",children:h==null?void 0:h.title},M))),(e==null?void 0:e.publishedAt)&&(0,d.jsx)(cf.Text,{muted:!0,className:"m-1",children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")})]}),(e==null?void 0:e.title)&&(0,d.jsx)(of.Heading,{className:"my-4",type:"h3",children:((c=e==null?void 0:e.title)==null?void 0:c.length)>40?((l=e==null?void 0:e.title)==null?void 0:l.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&(0,d.jsxs)("div",{className:"flex mb-10 flex-wrap",children:[(0,d.jsx)("span",{className:"italic text-primary",children:"By\xA0"}),(D=e==null?void 0:e.authors)==null?void 0:D.map((h,M,{length:O})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(cf.Text,{className:"italic text-primary",children:h==null?void 0:h.name}),M+1!==O?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,d.jsx)(cf.Text,{muted:!0,className:"mb-6 leading-loose text-justify",children:((y=e==null?void 0:e.excerpt)==null?void 0:y.length)>o?((w=e==null?void 0:e.excerpt)==null?void 0:w.substring(0,o))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&(0,d.jsx)(uf.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-primary-foreground",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function yf({primaryButton:e}){return e!=null&&e.label?(0,d.jsx)(Sf.default.Fragment,{children:(0,d.jsx)(bf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var wf,bf,nf,ue,of,ff,uf,mf,cf,Sf,d,Re=a(()=>{"use strict";wf=require("@stackshift-ui/badge"),bf=require("@stackshift-ui/button");U();Sf=xe(require("react"));Pe();d=require("react/jsx-runtime")});var Cf={};B(Cf,{Blog_D:()=>Qe,default:()=>Qe});function Qe({subtitle:e,title:t,posts:r}){let[n,o]=Q.default.useState("All"),[f,u]=Q.default.useState(1),[c,l]=Q.default.useState(""),D=6;Q.default.useEffect(()=>{u(1)},[n]);let y=(r!=null?r:[]).flatMap(i=>{var k;return((k=i==null?void 0:i.categories)!=null?k:[]).map(T=>({category:T==null?void 0:T.title,title:i==null?void 0:i.title,slug:i==null?void 0:i.slug,excerpt:i==null?void 0:i.excerpt,publishedAt:i==null?void 0:i.publishedAt,mainImage:i==null?void 0:i.mainImage,authors:i==null?void 0:i.authors}))}),w=y==null?void 0:y.reduce((i,k)=>{let T=k==null?void 0:k.category;return i.indexOf(T)===-1&&i.push(T),i},[]),h=n==="All"?r==null?void 0:r.filter(i=>{var k;return(k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(c.toLowerCase())}):y.filter(i=>{var k;return(i==null?void 0:i.category)===n&&((k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(c.toLowerCase()))}),M=f*D,O=M-D,_=h==null?void 0:h.slice(O,M),C=i=>u(i);return(0,m.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(nf.Container,{maxWidth:1280,children:[(0,m.jsx)(Qu,{subtitle:e,title:t}),(0,m.jsx)(Bu,{handleSearchChange:i=>{l(i.target.value),o("All"),u(1)}}),(0,m.jsxs)(ue.Flex,{wrap:!0,children:[(0,m.jsx)(qu,{categories:w,activeTab:n,setActiveTab:o}),(h==null?void 0:h.length)===0?(0,m.jsx)(Au,{}):(0,m.jsx)(ju,{currentPosts:_,activeTab:n,blogsPerPage:D})]}),(0,m.jsx)(Xu,{blogsPerPage:D,totalBlogs:h==null?void 0:h.length,paginate:C,currentPage:f})]})})}function Au({message:e="No post available."}){return(0,m.jsx)("div",{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function Qu({subtitle:e,title:t}){return(0,m.jsxs)("div",{className:"w-full mb-16",children:[e?(0,m.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,m.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Bu({handleSearchChange:e}){return(0,m.jsxs)("div",{className:"relative mb-5 w-full lg:w-1/4",children:[(0,m.jsx)(Wf.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white border rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,m.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white border-r rounded-global text-primary flex items-center",children:(0,m.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function qu({categories:e,activeTab:t,setActiveTab:r}){return(0,m.jsx)(Nf.Card,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"md",children:e&&(0,m.jsxs)(Q.default.Fragment,{children:[(0,m.jsx)(of.Heading,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),(0,m.jsxs)("ul",{children:[(e==null?void 0:e.length)>1&&(0,m.jsx)(If,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,m.jsx)(If,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function If({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,m.jsx)("li",{children:(0,m.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Show all blog posts",className:`mb-4 block ${n?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===n?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>r(n),children:n})},e)}function ju({currentPosts:e,activeTab:t,blogsPerPage:r}){var n;return e?(0,m.jsx)("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((o,f)=>(0,m.jsx)(Tf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,m.jsx)(Tf,{post:o},f))}):null}function Tf({post:e}){var t,r,n,o;return e?(0,m.jsxs)(ue.Flex,{wrap:!0,className:"mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[(0,m.jsx)("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:(0,m.jsx)(ff.Image,{className:"object-cover w-full h-full overflow-hidden rounded",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:(t=e==null?void 0:e.alt)!=null?t:`blog-variantD-image-${e==null?void 0:e.title}`})}),(0,m.jsxs)("div",{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&(0,m.jsx)(uf.Link,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading",href:`/${(r=e==null?void 0:e.link)!=null?r:"page-not-added"}`,children:(e==null?void 0:e.title.length)>25?((n=e==null?void 0:e.title)==null?void 0:n.substring(0,25))+"...":e==null?void 0:e.title}),(0,m.jsxs)(ue.Flex,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:c})=>(0,m.jsxs)(ue.Flex,{children:[(0,m.jsx)(cf.Text,{className:"text-primary",children:f==null?void 0:f.name}),u+1!==c?(0,m.jsx)("span",{children:"\xA0,\xA0"}):null]},u)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?(0,m.jsx)("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?(0,m.jsx)(cf.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,m.jsx)(cf.Text,{muted:!0,children:(e==null?void 0:e.excerpt.length)>60?(e==null?void 0:e.excerpt.substring(0,60))+"...":e==null?void 0:e.excerpt}):null]})]}):null}function Xu({blogsPerPage:e,totalBlogs:t,paginate:r,currentPage:n}){if(!e)return null;let o=[];for(let f=1;f<=Math.ceil(t/e);f++)o.push(f);return(0,m.jsx)("nav",{className:"mt-4","aria-label":"Pagination",children:(0,m.jsx)("ul",{className:"flex space-x-2 justify-end mr-5",children:o.map(f=>(0,m.jsx)(de.Button,{variant:"unstyled",as:"button",ariaLabel:`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded-global focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var de,Nf,nf,ue,of,ff,Wf,uf,mf,cf,Q,m,Be=a(()=>{"use strict";de=require("@stackshift-ui/button"),Nf=require("@stackshift-ui/card"),Wf=require("@stackshift-ui/input");U();Q=xe(require("react")),m=require("react/jsx-runtime")});var Gu={};B(Gu,{Blog:()=>Hf,Blog_A:()=>Fe,Blog_B:()=>$e,Blog_C:()=>ze,Blog_D:()=>Qe});module.exports=Qf(Gu);var Z=require("react"),Uu={variant_a:(0,Z.lazy)(()=>Promise.resolve().then(()=>(We(),lf))),variant_b:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Ee(),Df))),variant_c:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Re(),vf))),variant_d:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Be(),Cf)))},Vu="Blog",Hf=({data:e})=>{var o,f,u,c,l,D,y,w;let t=e==null?void 0:e.variant,r=t&&Uu[t],n={subtitle:(f=(o=e==null?void 0:e.variants)==null?void 0:o.subtitle)!=null?f:void 0,title:(c=(u=e==null?void 0:e.variants)==null?void 0:u.title)!=null?c:void 0,posts:(D=(l=e==null?void 0:e.variants)==null?void 0:l.posts)!=null?D:void 0,primaryButton:(w=(y=e==null?void 0:e.variants)==null?void 0:y.primaryButton)!=null?w:void 0};return r?(0,$f.jsx)(r,{...n}):null};Hf.displayName=Vu;We();Ee();Re();Be();0&&(module.exports={Blog,Blog_A,Blog_B,Blog_C,Blog_D});
2
+ "use strict";var Ef=Object.create;var te=Object.defineProperty;var zf=Object.getOwnPropertyDescriptor;var Lf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,Af=Object.prototype.hasOwnProperty;var a=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},Ke=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lf(t))!Af.call(e,o)&&o!==r&&te(e,o,{get:()=>t[o],enumerable:!(n=zf(t,o))||n.enumerable});return e};var he=(e,t,r)=>(r=e!=null?Ef(Rf(e)):{},Ke(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Qf=e=>Ke(te({},"__esModule",{value:!0}),e);var Bf,Zu,re,et,qf,tt,Ku,jf,Xf,em,ge,q=a(()=>{"use strict";Bf=Math.pow(10,8)*24*60*60*1e3,Zu=-Bf,re=6048e5,et=864e5,qf=3600,tt=qf*24,Ku=tt*7,jf=tt*365.2425,Xf=jf/12,em=Xf*3,ge=Symbol.for("constructDateFrom")});function v(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ge in e?e[ge](t):e instanceof Date?new e.constructor(t):new Date(t)}var F=a(()=>{"use strict";q()});function b(e,t){return v(t||e,e)}var I=a(()=>{"use strict";F()});var rt=a(()=>{"use strict"});var at=a(()=>{"use strict"});var nt=a(()=>{"use strict"});var ot=a(()=>{"use strict"});var ft=a(()=>{"use strict"});var ut=a(()=>{"use strict"});var mt=a(()=>{"use strict"});var ct=a(()=>{"use strict"});var it=a(()=>{"use strict"});function W(){return Uf}var Uf,j=a(()=>{"use strict";Uf={}});function N(e,t){var m,s,D,y,w,g,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.weekStartsOn)!=null?D:(s=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:s.weekStartsOn)!=null?y:r.weekStartsOn)!=null?M:(g=(w=r.locale)==null?void 0:w.options)==null?void 0:g.weekStartsOn)!=null?O:0,o=b(e,t==null?void 0:t.in),f=o.getDay(),u=(f<n?7:0)+f-n;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}var z=a(()=>{"use strict";j();I()});function H(e,t){return N(e,{...t,weekStartsOn:1})}var X=a(()=>{"use strict";z()});function ae(e,t){let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=v(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let f=H(o),u=v(r,0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);let m=H(u);return r.getTime()>=f.getTime()?n+1:r.getTime()>=m.getTime()?n:n-1}var ne=a(()=>{"use strict";F();X();I()});function De(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}var lt=a(()=>{"use strict";I()});function dt(e,...t){let r=v.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var st=a(()=>{"use strict";F()});function ye(e,t){let r=b(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}var we=a(()=>{"use strict";I()});function xt(e,t,r){let[n,o]=dt(r==null?void 0:r.in,e,t),f=ye(n),u=ye(o),m=+f-De(f),s=+u-De(u);return Math.round((m-s)/et)}var be=a(()=>{"use strict";lt();st();q();we()});function ht(e,t){let r=ae(e,t),n=v((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),H(n)}var Me=a(()=>{"use strict";F();ne();X()});var gt=a(()=>{"use strict"});var Dt=a(()=>{"use strict"});var yt=a(()=>{"use strict"});var wt=a(()=>{"use strict"});var bt=a(()=>{"use strict"});var Mt=a(()=>{"use strict"});var Ot=a(()=>{"use strict"});var kt=a(()=>{"use strict"});var St=a(()=>{"use strict"});var vt=a(()=>{"use strict"});var pt=a(()=>{"use strict"});var It=a(()=>{"use strict"});var Tt=a(()=>{"use strict"});var Nt=a(()=>{"use strict"});var Yt=a(()=>{"use strict"});var Ft=a(()=>{"use strict"});var Wt=a(()=>{"use strict"});var Pt=a(()=>{"use strict"});function _t(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Oe=a(()=>{"use strict"});function Ct(e){return!(!_t(e)&&typeof e!="number"||isNaN(+b(e)))}var ke=a(()=>{"use strict";Oe();I()});var Ht=a(()=>{"use strict"});var $t=a(()=>{"use strict"});var Et=a(()=>{"use strict"});var zt=a(()=>{"use strict"});var Lt=a(()=>{"use strict"});var Rt=a(()=>{"use strict"});var At=a(()=>{"use strict"});var Qt=a(()=>{"use strict"});var Bt=a(()=>{"use strict"});var qt=a(()=>{"use strict"});var jt=a(()=>{"use strict"});var Xt=a(()=>{"use strict"});var Ut=a(()=>{"use strict"});var Vt=a(()=>{"use strict"});var Gt=a(()=>{"use strict"});var Jt=a(()=>{"use strict"});var Zt=a(()=>{"use strict"});var Kt=a(()=>{"use strict"});var er=a(()=>{"use strict"});var tr=a(()=>{"use strict"});var rr=a(()=>{"use strict"});var ar=a(()=>{"use strict"});var nr=a(()=>{"use strict"});var or=a(()=>{"use strict"});var fr=a(()=>{"use strict"});var ur=a(()=>{"use strict"});var mr=a(()=>{"use strict"});var cr=a(()=>{"use strict"});var ir=a(()=>{"use strict"});var lr=a(()=>{"use strict"});var dr=a(()=>{"use strict"});var sr=a(()=>{"use strict"});var xr=a(()=>{"use strict"});function hr(e,t){let r=b(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Se=a(()=>{"use strict";I()});var gr=a(()=>{"use strict"});var Dr=a(()=>{"use strict"});var yr=a(()=>{"use strict"});var wr=a(()=>{"use strict"});var br=a(()=>{"use strict"});var Mr=a(()=>{"use strict"});var Or=a(()=>{"use strict"});var kr=a(()=>{"use strict"});var Sr=a(()=>{"use strict"});var vr=a(()=>{"use strict"});var pr=a(()=>{"use strict"});var Ir=a(()=>{"use strict"});var Tr=a(()=>{"use strict"});var Vf,Nr,Yr=a(()=>{"use strict";Vf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Nr=(e,t,r)=>{let n,o=Vf[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n}});function oe(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Fr=a(()=>{"use strict"});var Gf,Jf,Zf,Wr,Pr=a(()=>{"use strict";Fr();Gf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wr={date:oe({formats:Gf,defaultWidth:"full"}),time:oe({formats:Jf,defaultWidth:"full"}),dateTime:oe({formats:Zf,defaultWidth:"full"})}});var Kf,_r,Cr=a(()=>{"use strict";Kf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_r=(e,t,r,n)=>Kf[e]});function L(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,m=r!=null&&r.width?String(r.width):u;o=e.formattingValues[m]||e.formattingValues[u]}else{let u=e.defaultWidth,m=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[m]||e.values[u]}let f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var Hr=a(()=>{"use strict"});var eu,tu,ru,au,nu,ou,fu,$r,Er=a(()=>{"use strict";Hr();eu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ru={narrow:["We","F","M","A","M","We","We","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},au={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ou={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},fu=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},$r={ordinalNumber:fu,era:L({values:eu,defaultWidth:"wide"}),quarter:L({values:tu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:L({values:ru,defaultWidth:"wide"}),day:L({values:au,defaultWidth:"wide"}),dayPeriod:L({values:nu,defaultWidth:"wide",formattingValues:ou,defaultFormattingWidth:"wide"})}});function R(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],f=t.match(o);if(!f)return null;let u=f[0],m=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(m)?mu(m,w=>w.test(u)):uu(m,w=>w.test(u)),D;D=e.valueCallback?e.valueCallback(s):s,D=r.valueCallback?r.valueCallback(D):D;let y=t.slice(u.length);return{value:D,rest:y}}}function uu(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function mu(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}var zr=a(()=>{"use strict"});function Lr(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],f=t.match(e.parsePattern);if(!f)return null;let u=e.valueCallback?e.valueCallback(f[0]):f[0];u=r.valueCallback?r.valueCallback(u):u;let m=t.slice(o.length);return{value:u,rest:m}}}var Rr=a(()=>{"use strict"});var cu,iu,lu,du,su,xu,hu,gu,Du,yu,wu,bu,Ar,Qr=a(()=>{"use strict";zr();Rr();cu=/^(\d+)(th|st|nd|rd)?/i,iu=/\d+/i,lu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},du={any:[/^b/i,/^(a|c)/i]},su={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xu={any:[/1/i,/2/i,/3/i,/4/i]},hu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Du={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ar={ordinalNumber:Lr({matchPattern:cu,parsePattern:iu,valueCallback:e=>parseInt(e,10)}),era:R({matchPatterns:lu,defaultMatchWidth:"wide",parsePatterns:du,defaultParseWidth:"any"}),quarter:R({matchPatterns:su,defaultMatchWidth:"wide",parsePatterns:xu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:R({matchPatterns:hu,defaultMatchWidth:"wide",parsePatterns:gu,defaultParseWidth:"any"}),day:R({matchPatterns:Du,defaultMatchWidth:"wide",parsePatterns:yu,defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:wu,defaultMatchWidth:"any",parsePatterns:bu,defaultParseWidth:"any"})}});var ve,Br=a(()=>{"use strict";Yr();Pr();Cr();Er();Qr();ve={code:"en-US",formatDistance:Nr,formatLong:Wr,formatRelative:_r,localize:$r,match:Ar,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var qr=a(()=>{"use strict";Br()});function jr(e,t){let r=b(e,t==null?void 0:t.in);return xt(r,hr(r))+1}var pe=a(()=>{"use strict";be();Se();I()});function Xr(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+ht(r);return Math.round(n/re)+1}var Ie=a(()=>{"use strict";q();X();Me();I()});function fe(e,t){var y,w,g,M,O,_,C,E;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=W(),f=(E=(C=(M=(g=t==null?void 0:t.firstWeekContainsDate)!=null?g:(w=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)!=null?M:o.firstWeekContainsDate)!=null?C:(_=(O=o.locale)==null?void 0:O.options)==null?void 0:_.firstWeekContainsDate)!=null?E:1,u=v((t==null?void 0:t.in)||e,0);u.setFullYear(n+1,0,f),u.setHours(0,0,0,0);let m=N(u,t),s=v((t==null?void 0:t.in)||e,0);s.setFullYear(n,0,f),s.setHours(0,0,0,0);let D=N(s,t);return+r>=+m?n+1:+r>=+D?n:n-1}var ue=a(()=>{"use strict";j();F();z();I()});function Ur(e,t){var m,s,D,y,w,g,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.firstWeekContainsDate)!=null?D:(s=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:s.firstWeekContainsDate)!=null?y:r.firstWeekContainsDate)!=null?M:(g=(w=r.locale)==null?void 0:w.options)==null?void 0:g.firstWeekContainsDate)!=null?O:1,o=fe(e,t),f=v((t==null?void 0:t.in)||e,0);return f.setFullYear(o,0,n),f.setHours(0,0,0,0),N(f,t)}var Te=a(()=>{"use strict";j();F();ue();z()});function Vr(e,t){let r=b(e,t==null?void 0:t.in),n=+N(r,t)-+Ur(r,t);return Math.round(n/re)+1}var Ne=a(()=>{"use strict";q();z();Te();I()});function h(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Ye=a(()=>{"use strict"});var Y,Gr=a(()=>{"use strict";Ye();Y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return h(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):h(r+1,2)},d(e,t){return h(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return h(e.getHours()%12||12,t.length)},H(e,t){return h(e.getHours(),t.length)},m(e,t){return h(e.getMinutes(),t.length)},s(e,t){return h(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return h(o,t.length)}}});function Jr(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),f=n%60;return f===0?r+String(o):r+String(o)+t+h(f,2)}function Zr(e,t){return e%60===0?(e>0?"-":"+")+h(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=h(Math.trunc(n/60),2),f=h(n%60,2);return r+o+t+f}var A,Fe,Kr=a(()=>{"use strict";pe();Ie();ne();Ne();ue();Ye();Gr();A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fe={We:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"We":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,r,n){let o=fe(e,n),f=o>0?o:1-o;if(t==="YY"){let u=f%100;return h(u,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):h(f,t.length)},R:function(e,t){let r=ae(e);return h(r,t.length)},u:function(e,t){let r=e.getFullYear();return h(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return h(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return h(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return h(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=Vr(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):h(o,t.length)},I:function(e,t,r){let n=Xr(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):h(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,r){let n=jr(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):h(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return h(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return h(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return h(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=A.noon:n===0?o=A.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=A.evening:n>=12?o=A.afternoon:n>=4?o=A.morning:o=A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},We:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):h(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):h(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"V";switch(t){case"X":return Zr(n);case"XXXX":case"XX":return $(n);case"XXXXX":case"XXX":default:return $(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Zr(n);case"xxxx":case"xx":return $(n);case"xxxxx":case"xxx":default:return $(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Jr(n,":");case"OOOO":default:return"GMT"+$(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Jr(n,":");case"zzzz":default:return"GMT"+$(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return h(n,t.length)},T:function(e,t,r){return h(+e,t.length)}}});var ea,ta,Mu,ra,aa=a(()=>{"use strict";ea=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ta=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mu=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return ea(e,t);let f;switch(n){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",ea(n,t)).replace("{{time}}",ta(o,t))},ra={p:ta,P:Mu}});function na(e){return Ou.test(e)}function oa(e){return ku.test(e)}function fa(e,t,r){let n=vu(e,t,r);if(console.warn(n),Su.includes(e))throw new RangeError(n)}function vu(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Ou,ku,Su,ua=a(()=>{"use strict";Ou=/^D+$/,ku=/^Y+$/,Su=["D","DD","YY","YYYY"]});function P(e,t,r){var y,w,g,M,O,_,C,E,i,k,T,je,Xe,Ue,Ve,Ge,Je,Ze;let n=W(),o=(w=(y=r==null?void 0:r.locale)!=null?y:n.locale)!=null?w:ve,f=(k=(i=(_=(O=r==null?void 0:r.firstWeekContainsDate)!=null?O:(M=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:M.firstWeekContainsDate)!=null?_:n.firstWeekContainsDate)!=null?i:(E=(C=n.locale)==null?void 0:C.options)==null?void 0:E.firstWeekContainsDate)!=null?k:1,u=(Ze=(Je=(Ue=(Xe=r==null?void 0:r.weekStartsOn)!=null?Xe:(je=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:je.weekStartsOn)!=null?Ue:n.weekStartsOn)!=null?Je:(Ge=(Ve=n.locale)==null?void 0:Ve.options)==null?void 0:Ge.weekStartsOn)!=null?Ze:0,m=b(e,r==null?void 0:r.in);if(!Ct(m))throw new RangeError("Invalid time value");let s=t.match(Iu).map(p=>{let S=p[0];if(S==="p"||S==="P"){let xe=ra[S];return xe(p,o.formatLong)}return p}).join("").match(pu).map(p=>{if(p==="''")return{isToken:!1,value:"'"};let S=p[0];if(S==="'")return{isToken:!1,value:Fu(p)};if(Fe[S])return{isToken:!0,value:p};if(S.match(Yu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:p}});o.localize.preprocessor&&(s=o.localize.preprocessor(m,s));let D={firstWeekContainsDate:f,weekStartsOn:u,locale:o};return s.map(p=>{if(!p.isToken)return p.value;let S=p.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&oa(S)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&na(S))&&fa(S,t,String(e));let xe=Fe[S[0]];return xe(m,S,o.localize,D)}).join("")}function Fu(e){let t=e.match(Tu);return t?t[1].replace(Nu,"'"):e}var pu,Iu,Tu,Nu,Yu,ma=a(()=>{"use strict";qr();j();Kr();aa();ua();ke();I();pu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tu=/^'([^]*?)'?$/,Nu=/''/g,Yu=/[a-zA-V]/});var ca=a(()=>{"use strict"});var ia=a(()=>{"use strict"});var la=a(()=>{"use strict"});var da=a(()=>{"use strict"});var sa=a(()=>{"use strict"});var xa=a(()=>{"use strict"});var ha=a(()=>{"use strict"});var ga=a(()=>{"use strict"});var Da=a(()=>{"use strict"});var ya=a(()=>{"use strict"});var wa=a(()=>{"use strict"});var ba=a(()=>{"use strict"});var Ma=a(()=>{"use strict"});var Oa=a(()=>{"use strict"});var ka=a(()=>{"use strict"});var Sa=a(()=>{"use strict"});var va=a(()=>{"use strict"});var pa=a(()=>{"use strict"});var Ia=a(()=>{"use strict"});var Ta=a(()=>{"use strict"});var Na=a(()=>{"use strict"});var Ya=a(()=>{"use strict"});var Fa=a(()=>{"use strict"});var Wa=a(()=>{"use strict"});var Pa=a(()=>{"use strict"});var _a=a(()=>{"use strict"});var Ca=a(()=>{"use strict"});var Ha=a(()=>{"use strict"});var $a=a(()=>{"use strict"});var Ea=a(()=>{"use strict"});var za=a(()=>{"use strict"});var La=a(()=>{"use strict"});var Ra=a(()=>{"use strict"});var Aa=a(()=>{"use strict"});var Qa=a(()=>{"use strict"});var Ba=a(()=>{"use strict"});var qa=a(()=>{"use strict"});var ja=a(()=>{"use strict"});var Xa=a(()=>{"use strict"});var Ua=a(()=>{"use strict"});var Va=a(()=>{"use strict"});var Ga=a(()=>{"use strict"});var Ja=a(()=>{"use strict"});var Za=a(()=>{"use strict"});var Ka=a(()=>{"use strict"});var en=a(()=>{"use strict"});var tn=a(()=>{"use strict"});var rn=a(()=>{"use strict"});var an=a(()=>{"use strict"});var nn=a(()=>{"use strict"});var on=a(()=>{"use strict"});var fn=a(()=>{"use strict"});var un=a(()=>{"use strict"});var mn=a(()=>{"use strict"});var cn=a(()=>{"use strict"});var ln=a(()=>{"use strict"});var dn=a(()=>{"use strict"});var sn=a(()=>{"use strict"});var xn=a(()=>{"use strict"});var hn=a(()=>{"use strict"});var gn=a(()=>{"use strict"});var Dn=a(()=>{"use strict"});var yn=a(()=>{"use strict"});var wn=a(()=>{"use strict"});var bn=a(()=>{"use strict"});var Mn=a(()=>{"use strict"});var On=a(()=>{"use strict"});var kn=a(()=>{"use strict"});var Sn=a(()=>{"use strict"});var vn=a(()=>{"use strict"});var pn=a(()=>{"use strict"});var In=a(()=>{"use strict"});var Tn=a(()=>{"use strict"});var Nn=a(()=>{"use strict"});var Yn=a(()=>{"use strict"});var Fn=a(()=>{"use strict"});var Wn=a(()=>{"use strict"});var Pn=a(()=>{"use strict"});var _n=a(()=>{"use strict"});var Cn=a(()=>{"use strict"});var Hn=a(()=>{"use strict"});var $n=a(()=>{"use strict"});var En=a(()=>{"use strict"});var zn=a(()=>{"use strict"});var Ln=a(()=>{"use strict"});var Rn=a(()=>{"use strict"});var An=a(()=>{"use strict"});var Qn=a(()=>{"use strict"});var Bn=a(()=>{"use strict"});var qn=a(()=>{"use strict"});var jn=a(()=>{"use strict"});var Xn=a(()=>{"use strict"});var Un=a(()=>{"use strict"});var Vn=a(()=>{"use strict"});var Gn=a(()=>{"use strict"});var Jn=a(()=>{"use strict"});var Zn=a(()=>{"use strict"});var Kn=a(()=>{"use strict"});var eo=a(()=>{"use strict"});var to=a(()=>{"use strict"});var ro=a(()=>{"use strict"});var ao=a(()=>{"use strict"});var no=a(()=>{"use strict"});var oo=a(()=>{"use strict"});var fo=a(()=>{"use strict"});var uo=a(()=>{"use strict"});var mo=a(()=>{"use strict"});var co=a(()=>{"use strict"});var io=a(()=>{"use strict"});var lo=a(()=>{"use strict"});var so=a(()=>{"use strict"});var xo=a(()=>{"use strict"});var ho=a(()=>{"use strict"});var go=a(()=>{"use strict"});var Do=a(()=>{"use strict"});var yo=a(()=>{"use strict"});var wo=a(()=>{"use strict"});var bo=a(()=>{"use strict"});var Mo=a(()=>{"use strict"});var Oo=a(()=>{"use strict"});var ko=a(()=>{"use strict"});var So=a(()=>{"use strict"});var vo=a(()=>{"use strict"});var po=a(()=>{"use strict"});var Io=a(()=>{"use strict"});var To=a(()=>{"use strict"});var No=a(()=>{"use strict"});var Yo=a(()=>{"use strict"});var Fo=a(()=>{"use strict"});var Wo=a(()=>{"use strict"});var Po=a(()=>{"use strict"});var _o=a(()=>{"use strict"});var Co=a(()=>{"use strict"});var Ho=a(()=>{"use strict"});var $o=a(()=>{"use strict"});var Eo=a(()=>{"use strict"});var zo=a(()=>{"use strict"});var Lo=a(()=>{"use strict"});var Ro=a(()=>{"use strict"});var Ao=a(()=>{"use strict"});var Qo=a(()=>{"use strict"});var Bo=a(()=>{"use strict"});var qo=a(()=>{"use strict"});var jo=a(()=>{"use strict"});var Xo=a(()=>{"use strict"});var Uo=a(()=>{"use strict"});var Vo=a(()=>{"use strict"});var Go=a(()=>{"use strict"});var Jo=a(()=>{"use strict"});var Zo=a(()=>{"use strict"});var Ko=a(()=>{"use strict"});var ef=a(()=>{"use strict"});var tf=a(()=>{"use strict"});var rf=a(()=>{"use strict"});var af=a(()=>{"use strict"});var U=a(()=>{"use strict";nt();mt();rt();it();Dt();ct();yt();at();wt();bt();Mt();Ot();kt();pt();It();Tt();Nt();Yt();F();Ft();Wt();Ht();be();$t();Et();zt();Rt();At();Qt();Bt();qt();Xt();Ut();Vt();Kt();er();tr();rr();ar();nr();or();fr();ur();cr();ir();lr();sr();gr();Dr();Gt();yr();wr();Mr();Or();kr();Jt();Sr();vr();pr();Ir();br();xr();Tr();ma();ca();ia();la();da();sa();xa();ha();ga();Da();ya();wa();ba();Ma();Oa();pe();ka();va();pa();Ia();Ta();Na();Ie();ne();Ya();Fa();Wa();Pa();_a();Lt();Ca();Ha();$a();Ne();Ea();ue();La();Ra();Aa();Qa();Ba();qa();ja();Xa();Ua();Va();Ga();Oe();Ja();Za();Ka();en();tn();Zt();Sa();mn();cn();ln();Pt();sn();hn();gn();yn();wn();bn();On();xn();kn();ot();ft();Sn();vn();pn();In();Tn();Nn();Yn();Fn();Wn();Pn();_n();Cn();ke();Hn();ut();$n();zn();Ln();An();Qn();za();Bn();Rn();qn();jn();St();Xn();Un();Vn();Gn();vt();Jn();Zn();Kn();eo();to();ro();ao();no();oo();fo();uo();mo();co();un();io();lo();so();xo();ho();go();Do();yo();wo();bo();Mo();Oo();ko();So();vo();po();Io();No();Yo();on();Fo();Wo();Po();fn();nn();gt();_o();Co();To();Ho();$o();an();Eo();zo();we();Lo();dn();X();Me();Dn();dr();mr();Mn();Ro();Ao();z();Te();Se();Qo();qo();jo();En();Xo();jt();Uo();Vo();Bo();Go();Jo();Zo();Ko();I();rn();ef();tf();rf();af()});var lf={};B(lf,{Blog_A:()=>Pe,default:()=>Pe});function Pe({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(cf.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(of.Container,{maxWidth:1280,children:[(0,d.jsx)(Wu,{subtitle:e,title:t}),(0,d.jsx)(Pu,{posts:r}),(0,d.jsx)(_u,{primaryButton:n})]})})}function Wu({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,d.jsx)(We.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,d.jsx)(ff.Heading,{fontSize:"3xl",children:t}):null]})}function Pu({posts:e}){var n,o,f,u;if(!e)return null;let t=6,r=0;return(0,d.jsxs)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,d.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((m,s)=>(0,d.jsx)(me,{post:m},s)),(0,d.jsx)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+1,r+3))==null?void 0:o.map((m,s)=>(0,d.jsx)(me,{post:m},s))})]}),(0,d.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,d.jsx)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(r+3,r+5))==null?void 0:f.map((m,s)=>(0,d.jsx)(me,{post:m},s))}),(u=e==null?void 0:e.slice(r+5,t))==null?void 0:u.map((m,s)=>(0,d.jsx)(me,{post:m},s))]})]})}function me({post:e,key:t}){var r,n,o,f;return(0,d.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,d.jsx)(uf.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,d.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,d.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,d.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((u,m)=>(0,d.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:u==null?void 0:u.title},m))}):null,(0,d.jsxs)(V.Flex,{align:"center",className:"mt-auto",children:[(0,d.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?P(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),(e==null?void 0:e.authors)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,d.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(o=e==null?void 0:e.authors)==null?void 0:o.map((u,m,{length:s})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(We.Text,{className:"italic",fontSize:"sm",children:u==null?void 0:u.name}),m+1!==s?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,d.jsx)(mf.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((f=e==null?void 0:e.title)==null?void 0:f.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function _u({primaryButton:e}){return e!=null&&e.label?(0,d.jsx)("div",{className:"mt-10 text-center",children:(0,d.jsx)(nf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var nf,of,V,ff,uf,mf,cf,We,d,_e=a(()=>{"use strict";nf=require("@stackshift-ui/button"),of=require("@stackshift-ui/container"),V=require("@stackshift-ui/flex"),ff=require("@stackshift-ui/heading"),uf=require("@stackshift-ui/image"),mf=require("@stackshift-ui/link"),cf=require("@stackshift-ui/section"),We=require("@stackshift-ui/text");U();d=require("react/jsx-runtime")});var ce,ie,Ce=a(()=>{"use strict";ce=he(require("react")),ie=e=>{let[t,r]=ce.default.useState(!1),n=ce.default.useCallback(o=>{o.matches?r(!0):r(!1)},[]);return ce.default.useEffect(()=>{let o=window.matchMedia(`(max-width: ${e}px)`);return o.addEventListener("change",n),o.matches&&r(!0),()=>o.removeEventListener("change",n)},[]),t}});var Df={};B(Df,{Blog_B:()=>Ee,default:()=>Ee});function Ee({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,l.jsx)(cf.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(of.Container,{maxWidth:1280,children:[(0,l.jsx)(Cu,{subtitle:e,title:t}),(0,l.jsx)(Hu,{posts:r,count:0,blogsPerPage:5}),(0,l.jsx)(Eu,{primaryButton:n})]})})}function Cu({subtitle:e,title:t}){return(0,l.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,l.jsx)(We.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,l.jsx)($e.Heading,{fontSize:"3xl",children:t}):null]})}function Hu({posts:e,count:t,blogsPerPage:r}){return(0,l.jsxs)(V.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,l.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,o)=>(0,l.jsx)(df,{size:"lg",post:n},o))}),(0,l.jsx)(V.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,o)=>(0,l.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,l.jsx)(df,{post:n,size:"sm"},o)},o))})]})}function df({post:e,size:t,key:r}){var o;let n=ie("1024");return(0,l.jsxs)("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,l.jsx)($u,{post:e,size:t,breakpoints:n},r):null,(0,l.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)(V.Flex,{align:"center",children:[e!=null&&e.publishedAt?(0,l.jsx)(We.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,(e==null?void 0:e.authors)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,l.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:m})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(We.Text,{className:"italic",fontSize:"sm",children:f==null?void 0:f.name}),u+1!==m?(0,l.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,l.jsx)($e.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,l.jsx)(We.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,l.jsx)(mf.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function $u({post:e,size:t,breakpoints:r,key:n}){var o;return(0,l.jsx)(l.Fragment,{children:r?(0,l.jsx)(uf.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(o=e==null?void 0:e.mainImage)!=null?o:`blog-variantB-image-${n}`}):(0,l.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,l.jsx)(uf.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function Eu({primaryButton:e}){return e!=null&&e.label?(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)(sf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var sf,of,V,$e,uf,mf,cf,We,l,ze=a(()=>{"use strict";sf=require("@stackshift-ui/button");U();Ce();l=require("react/jsx-runtime")});var pf={};B(pf,{Blog_C:()=>Re,default:()=>Re});function Re({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,x.jsx)(cf.Section,{className:"py-20 bg-background",children:(0,x.jsxs)(of.Container,{maxWidth:1280,children:[(0,x.jsxs)(V.Flex,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:4,children:[(0,x.jsx)(zu,{subtitle:e,title:t}),(0,x.jsx)(yf,{primaryButton:n})]}),(0,x.jsx)(Lu,{posts:r,blogsPerPage:3}),(0,x.jsx)(yf,{primaryButton:n})]})})}function zu({subtitle:e,title:t}){return(0,x.jsxs)("div",{className:"text-center md:text-left",children:[e?(0,x.jsx)(We.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,x.jsx)(ff.Heading,{fontSize:"3xl",children:t}):null]})}function Lu({posts:e,blogsPerPage:t}){var r;return e?(0,x.jsx)("div",{children:(r=e==null?void 0:e.slice(0,t))==null?void 0:r.map((n,o)=>(0,x.jsx)("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-md shadow",children:(0,x.jsx)(Ru,{post:n,className:`${o%2===0?"flex-row":"flex-row-reverse"}`},o)},o))}):null}function Ru({post:e,className:t,key:r}){var f,u,m,s,D,y,w;let o=ie("1100")?70:200;return(0,x.jsxs)(V.Flex,{wrap:!0,className:`bg-white overflow-hidden rounded-lg shadow w-full ${t}`,children:[(e==null?void 0:e.mainImage)&&(0,x.jsx)(uf.Image,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:(f=e==null?void 0:e.alt)!=null?f:`blog-variantC-image-${r}`}),(0,x.jsxs)("div",{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[(0,x.jsxs)(V.Flex,{gap:2,children:[(e==null?void 0:e.categories)&&((u=e==null?void 0:e.categories)==null?void 0:u.map((g,M)=>(0,x.jsx)(wf.Badge,{className:"bg-secondary/70",children:g==null?void 0:g.title},M))),(e==null?void 0:e.publishedAt)&&(0,x.jsx)(We.Text,{muted:!0,className:"m-1",children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")})]}),(e==null?void 0:e.title)&&(0,x.jsx)(ff.Heading,{className:"my-4",type:"h3",children:((m=e==null?void 0:e.title)==null?void 0:m.length)>40?((s=e==null?void 0:e.title)==null?void 0:s.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&(0,x.jsxs)("div",{className:"flex mb-10 flex-wrap",children:[(0,x.jsx)("span",{className:"italic text-primary",children:"By\xA0"}),(D=e==null?void 0:e.authors)==null?void 0:D.map((g,M,{length:O})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(We.Text,{className:"italic text-primary",children:g==null?void 0:g.name}),M+1!==O?(0,x.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,x.jsx)(We.Text,{muted:!0,className:"mb-6 leading-loose text-justify",children:((y=e==null?void 0:e.excerpt)==null?void 0:y.length)>o?((w=e==null?void 0:e.excerpt)==null?void 0:w.substring(0,o))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&(0,x.jsx)(mf.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-primary-foreground",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function yf({primaryButton:e}){return e!=null&&e.label?(0,x.jsx)(vf.default.Fragment,{children:(0,x.jsx)(bf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var wf,bf,of,V,ff,uf,mf,cf,We,vf,x,Ae=a(()=>{"use strict";wf=require("@stackshift-ui/badge"),bf=require("@stackshift-ui/button");U();vf=he(require("react"));Ce();x=require("react/jsx-runtime")});var Cf={};B(Cf,{Blog_D:()=>Be,default:()=>Be});function Be({subtitle:e,title:t,posts:r}){let[n,o]=Q.default.useState("All"),[f,u]=Q.default.useState(1),[m,s]=Q.default.useState(""),D=6;Q.default.useEffect(()=>{u(1)},[n]);let y=(r!=null?r:[]).flatMap(i=>{var k;return((k=i==null?void 0:i.categories)!=null?k:[]).map(T=>({category:T==null?void 0:T.title,title:i==null?void 0:i.title,slug:i==null?void 0:i.slug,excerpt:i==null?void 0:i.excerpt,publishedAt:i==null?void 0:i.publishedAt,mainImage:i==null?void 0:i.mainImage,authors:i==null?void 0:i.authors}))}),w=y==null?void 0:y.reduce((i,k)=>{let T=k==null?void 0:k.category;return i.indexOf(T)===-1&&i.push(T),i},[]),g=n==="All"?r==null?void 0:r.filter(i=>{var k;return(k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(m.toLowerCase())}):y.filter(i=>{var k;return(i==null?void 0:i.category)===n&&((k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(m.toLowerCase()))}),M=f*D,O=M-D,_=g==null?void 0:g.slice(O,M),C=i=>u(i);return(0,c.jsx)(cf.Section,{className:"py-20 bg-background",children:(0,c.jsxs)(of.Container,{maxWidth:1280,children:[(0,c.jsx)(Qu,{subtitle:e,title:t}),(0,c.jsx)(Bu,{handleSearchChange:i=>{s(i.target.value),o("All"),u(1)}}),(0,c.jsxs)(V.Flex,{wrap:!0,children:[(0,c.jsx)(qu,{categories:w,activeTab:n,setActiveTab:o}),(g==null?void 0:g.length)===0?(0,c.jsx)(Au,{}):(0,c.jsx)(ju,{currentPosts:_,activeTab:n,blogsPerPage:D})]}),(0,c.jsx)(Xu,{blogsPerPage:D,totalBlogs:g==null?void 0:g.length,paginate:C,currentPage:f})]})})}function Au({message:e="No post available."}){return(0,c.jsx)("div",{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function Qu({subtitle:e,title:t}){return(0,c.jsxs)("div",{className:"w-full mb-16",children:[e?(0,c.jsx)(We.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,c.jsx)(ff.Heading,{fontSize:"3xl",children:t}):null]})}function Bu({handleSearchChange:e}){return(0,c.jsxs)("div",{className:"relative mb-5 w-full lg:w-1/4",children:[(0,c.jsx)(Wf.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white border rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,c.jsx)(se.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white border-r rounded-global text-primary flex items-center",children:(0,c.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function qu({categories:e,activeTab:t,setActiveTab:r}){return(0,c.jsx)(Nf.Card,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"md",children:e&&(0,c.jsxs)(Q.default.Fragment,{children:[(0,c.jsx)(ff.Heading,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),(0,c.jsxs)("ul",{children:[(e==null?void 0:e.length)>1&&(0,c.jsx)(If,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,c.jsx)(If,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function If({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,c.jsx)("li",{children:(0,c.jsx)(se.Button,{as:"button",variant:"unstyled",ariaLabel:"Show all blog posts",className:`mb-4 block ${n?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===n?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>r(n),children:n})},e)}function ju({currentPosts:e,activeTab:t,blogsPerPage:r}){var n;return e?(0,c.jsx)("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((o,f)=>(0,c.jsx)(Tf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,c.jsx)(Tf,{post:o},f))}):null}function Tf({post:e}){var t,r,n,o;return e?(0,c.jsxs)(V.Flex,{wrap:!0,className:"mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[(0,c.jsx)("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:(0,c.jsx)(uf.Image,{className:"object-cover w-full h-full overflow-hidden rounded",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:(t=e==null?void 0:e.alt)!=null?t:`blog-variantD-image-${e==null?void 0:e.title}`})}),(0,c.jsxs)("div",{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&(0,c.jsx)(mf.Link,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading",href:`/${(r=e==null?void 0:e.link)!=null?r:"page-not-added"}`,children:(e==null?void 0:e.title.length)>25?((n=e==null?void 0:e.title)==null?void 0:n.substring(0,25))+"...":e==null?void 0:e.title}),(0,c.jsxs)(V.Flex,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:m})=>(0,c.jsxs)(V.Flex,{children:[(0,c.jsx)(We.Text,{className:"text-primary",children:f==null?void 0:f.name}),u+1!==m?(0,c.jsx)("span",{children:"\xA0,\xA0"}):null]},u)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?(0,c.jsx)("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?(0,c.jsx)(We.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,c.jsx)(We.Text,{muted:!0,children:(e==null?void 0:e.excerpt.length)>60?(e==null?void 0:e.excerpt.substring(0,60))+"...":e==null?void 0:e.excerpt}):null]})]}):null}function Xu({blogsPerPage:e,totalBlogs:t,paginate:r,currentPage:n}){if(!e)return null;let o=[];for(let f=1;f<=Math.ceil(t/e);f++)o.push(f);return(0,c.jsx)("nav",{className:"mt-4","aria-label":"Pagination",children:(0,c.jsx)("ul",{className:"flex space-x-2 justify-end mr-5",children:o.map(f=>(0,c.jsx)(se.Button,{variant:"unstyled",as:"button",ariaLabel:`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded-global focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var se,Nf,of,V,ff,uf,Wf,mf,cf,We,Q,c,qe=a(()=>{"use strict";se=require("@stackshift-ui/button"),Nf=require("@stackshift-ui/card"),Wf=require("@stackshift-ui/input");U();Q=he(require("react")),c=require("react/jsx-runtime")});var Gu={};B(Gu,{Blog:()=>Hf,Blog_A:()=>Pe,Blog_B:()=>Ee,Blog_C:()=>Re,Blog_D:()=>Be});module.exports=Qf(Gu);var ee=require("react"),Uu={variant_a:(0,ee.lazy)(()=>Promise.resolve().then(()=>(_e(),lf))),variant_b:(0,ee.lazy)(()=>Promise.resolve().then(()=>(ze(),Df))),variant_c:(0,ee.lazy)(()=>Promise.resolve().then(()=>(Ae(),pf))),variant_d:(0,ee.lazy)(()=>Promise.resolve().then(()=>(qe(),Cf)))},Vu="Blog",Hf=({data:e})=>{var o,f,u,m,s,D,y,w;let t=e==null?void 0:e.variant,r=t&&Uu[t],n={subtitle:(f=(o=e==null?void 0:e.variants)==null?void 0:o.subtitle)!=null?f:void 0,title:(m=(u=e==null?void 0:e.variants)==null?void 0:u.title)!=null?m:void 0,posts:(D=(s=e==null?void 0:e.variants)==null?void 0:s.posts)!=null?D:void 0,primaryButton:(w=(y=e==null?void 0:e.variants)==null?void 0:y.primaryButton)!=null?w:void 0};return r?(0,$f.jsx)(r,{...n}):null};Hf.displayName=Vu;_e();ze();Ae();qe();0&&(module.exports={Blog,Blog_A,Blog_B,Blog_C,Blog_D});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a as f}from"./chunk-36PHMMAS.mjs";import{a as o}from"./chunk-4JEFLTN2.mjs";import{a as r}from"./chunk-HRT2UV7A.mjs";import{a as e}from"./chunk-4BI64LD3.mjs";import"./chunk-TMLYY2AQ.mjs";import{a as t}from"./chunk-7K4AC7BM.mjs";import"./chunk-PC6NMI3O.mjs";export{f as Blog,o as Blog_A,r as Blog_B,e as Blog_C,t as Blog_D};
2
+ "use strict";import{a as f}from"./chunk-XHIU3MJF.mjs";import{a as o}from"./chunk-OSCI5VC3.mjs";import{a as r}from"./chunk-DK7SFSP5.mjs";import{a as e}from"./chunk-4BI64LD3.mjs";import"./chunk-TMLYY2AQ.mjs";import{a as t}from"./chunk-7K4AC7BM.mjs";import"./chunk-PC6NMI3O.mjs";export{f as Blog,o as Blog_A,r as Blog_B,e as Blog_C,t as Blog_D};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/blog",
3
3
  "description": "",
4
- "version": "6.0.7-beta.1",
4
+ "version": "6.0.8-beta.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -30,27 +30,27 @@
30
30
  "typescript": "^5.6.2",
31
31
  "vite-tsconfig-paths": "^5.0.1",
32
32
  "vitest": "^2.1.1",
33
- "@stackshift-ui/eslint-config": "6.0.2",
34
- "@stackshift-ui/typescript-config": "6.0.2"
33
+ "@stackshift-ui/eslint-config": "6.0.3-beta.0",
34
+ "@stackshift-ui/typescript-config": "6.0.3-beta.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "classnames": "^2.5.1",
38
- "@stackshift-ui/container": "6.0.3",
39
- "@stackshift-ui/card": "6.0.3",
40
- "@stackshift-ui/badge": "6.0.3",
41
- "@stackshift-ui/button": "6.0.3",
42
- "@stackshift-ui/flex": "6.0.3",
43
- "@stackshift-ui/heading": "6.0.3",
44
- "@stackshift-ui/input": "6.0.4",
45
- "@stackshift-ui/link": "6.0.3",
46
- "@stackshift-ui/image": "6.0.3",
47
- "@stackshift-ui/system": "6.0.3",
48
- "@stackshift-ui/text": "6.0.3",
49
- "@stackshift-ui/scripts": "6.0.2",
50
- "@stackshift-ui/section": "6.0.3"
38
+ "@stackshift-ui/badge": "6.0.4-beta.0",
39
+ "@stackshift-ui/container": "6.0.4-beta.0",
40
+ "@stackshift-ui/card": "6.0.4-beta.0",
41
+ "@stackshift-ui/image": "6.0.4-beta.0",
42
+ "@stackshift-ui/scripts": "6.0.3-beta.0",
43
+ "@stackshift-ui/heading": "6.0.4-beta.0",
44
+ "@stackshift-ui/link": "6.0.4-beta.0",
45
+ "@stackshift-ui/system": "6.0.4-beta.0",
46
+ "@stackshift-ui/section": "6.0.4-beta.0",
47
+ "@stackshift-ui/input": "6.0.5-beta.0",
48
+ "@stackshift-ui/flex": "6.0.4-beta.0",
49
+ "@stackshift-ui/button": "6.0.4-beta.0",
50
+ "@stackshift-ui/text": "6.0.4-beta.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@stackshift-ui/system": ">=0.0.0",
53
+ "@stackshift-ui/system": ">=6.0.4-beta.0",
54
54
  "@types/react": "16.8 - 19",
55
55
  "next": "10 - 14",
56
56
  "react": "16.8 - 19",
package/src/blog_a.tsx CHANGED
@@ -91,9 +91,29 @@ function BlogItem({ post, key }: { post?: BlogPost; key: number }) {
91
91
  ))}
92
92
  </div>
93
93
  ) : null}
94
- <span className="mt-auto text-sm text-gray-500">
95
- {post?.publishedAt ? format(new Date(post?.publishedAt), "dd MMM, yyyy") : ""}
96
- </span>
94
+
95
+ <Flex align="center" className="mt-auto">
96
+ <span className="mt-auto text-sm text-gray-500">
97
+ {post?.publishedAt ? format(new Date(post?.publishedAt), "dd MMM, yyyy") : ""}
98
+ </span>
99
+
100
+ {post?.authors && (
101
+ <>
102
+ <span className="mx-2 w-1 h-1 bg-gray-500 rounded-full"></span>
103
+ <div className="flex mt-auto text-sm text-gray-500">
104
+ {post?.authors?.map((author, index, { length }) => (
105
+ <>
106
+ <Text className="italic" fontSize="sm">
107
+ {author?.name}
108
+ </Text>
109
+ {index + 1 !== length ? <span>&nbsp;,&nbsp;</span> : null}
110
+ </>
111
+ ))}
112
+ </div>
113
+ </>
114
+ )}
115
+ </Flex>
116
+
97
117
  {post?.title ? (
98
118
  <Link
99
119
  className="text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none"
package/src/blog_b.tsx CHANGED
@@ -76,11 +76,29 @@ function BlogItem({ post, size, key }: { post: BlogPost; size?: string; key: num
76
76
  ) : null}
77
77
  <div className="p-6 bg-white flex flex-col justify-between" style={{ height: "295px" }}>
78
78
  <div>
79
- {post?.publishedAt ? (
80
- <Text muted className="text-sm">
81
- {format(new Date(post.publishedAt), " dd MMM, yyyy")}
82
- </Text>
83
- ) : null}
79
+ <Flex align="center">
80
+ {post?.publishedAt ? (
81
+ <Text muted className="text-sm">
82
+ {format(new Date(post.publishedAt), " dd MMM, yyyy")}
83
+ </Text>
84
+ ) : null}
85
+ {post?.authors && (
86
+ <>
87
+ <span className="mx-2 w-1 h-1 bg-gray-500 rounded-full"></span>
88
+ <div className="flex mt-auto text-sm text-gray-500">
89
+ {post?.authors?.map((author, index, { length }) => (
90
+ <>
91
+ <Text className="italic" fontSize="sm">
92
+ {author?.name}
93
+ </Text>
94
+ {index + 1 !== length ? <span>&nbsp;,&nbsp;</span> : null}
95
+ </>
96
+ ))}
97
+ </div>
98
+ </>
99
+ )}
100
+ </Flex>
101
+
84
102
  {post?.title ? (
85
103
  <Heading type="h4" className="my-2">
86
104
  {post.title.length > 25 ? `${post.title.substring(0, 25)}...` : post.title}
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-PC6NMI3O.mjs";import{Button as b}from"@stackshift-ui/button";import{Container as v}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as w}from"@stackshift-ui/heading";import{Image as h}from"@stackshift-ui/image";import{Link as N}from"@stackshift-ui/link";import{Section as k}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import{jsx as l,jsxs as d}from"react/jsx-runtime";function P({subtitle:e,title:i,posts:a,primaryButton:n}){return l(k,{className:"py-20 bg-background",children:d(v,{maxWidth:1280,children:[l(y,{subtitle:e,title:i}),l(A,{posts:a}),l(L,{primaryButton:n})]})})}function y({subtitle:e,title:i}){return d("div",{className:"mb-16 text-center",children:[e?l(o,{weight:"bold",className:"text-secondary",children:e}):null,i?l(w,{fontSize:"3xl",children:i}):null]})}function A({posts:e}){var n,f,c,x;if(!e)return null;let i=6,a=0;return d(u,{gap:4,className:"flex-col lg:flex-row",children:[d("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(a,a+1))==null?void 0:n.map((m,r)=>l(g,{post:m},r)),l(u,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(a+1,a+3))==null?void 0:f.map((m,r)=>l(g,{post:m},r))})]}),d("div",{className:"w-full space-y-5 lg:w-1/2",children:[l(u,{gap:4,className:"flex-col lg:flex-row",children:(c=e==null?void 0:e.slice(a+3,a+5))==null?void 0:c.map((m,r)=>l(g,{post:m},r))}),(x=e==null?void 0:e.slice(a+5,i))==null?void 0:x.map((m,r)=>l(g,{post:m},r))]})]})}function g({post:e,key:i}){var a,n,f;return d("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?l(h,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(a=e==null?void 0:e.alt)!=null?a:`blog-variantA-image-${i}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,l("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),d("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?l("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((c,x)=>l("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:c==null?void 0:c.title},x))}):null,l("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?t(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),e!=null&&e.title?l(N,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((f=e==null?void 0:e.title)==null?void 0:f.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function L({primaryButton:e}){return e!=null&&e.label?l("div",{className:"mt-10 text-center",children:l(b,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}export{P as a};
@@ -1 +0,0 @@
1
- import{a as d}from"./chunk-TMLYY2AQ.mjs";import{a as g}from"./chunk-PC6NMI3O.mjs";import{Button as s}from"@stackshift-ui/button";import{Container as f}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Heading as b}from"@stackshift-ui/heading";import{Image as o}from"@stackshift-ui/image";import{Link as h}from"@stackshift-ui/link";import{Section as v}from"@stackshift-ui/section";import{Text as m}from"@stackshift-ui/text";import{Fragment as y,jsx as l,jsxs as r}from"react/jsx-runtime";function w({subtitle:e,title:i,posts:t,primaryButton:a}){return l(v,{className:"py-20 bg-background",children:r(f,{maxWidth:1280,children:[l(x,{subtitle:e,title:i}),l(P,{posts:t,count:0,blogsPerPage:5}),l(k,{primaryButton:a})]})})}function x({subtitle:e,title:i}){return r("div",{className:"w-full mb-16 text-center",children:[e?l(m,{weight:"bold",className:"text-secondary",children:e}):null,i?l(b,{fontSize:"3xl",children:i}):null]})}function P({posts:e,count:i,blogsPerPage:t}){return r(c,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[l("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(i,i+1).map((a,n)=>l(u,{size:"lg",post:a},n))}),l(c,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(i+1,t).map((a,n)=>l("div",{className:"w-full lg:basis-[45%]",children:l(u,{post:a,size:"sm"},n)},n))})]})}function u({post:e,size:i,key:t}){let a=d("1024");return r("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?l(N,{post:e,size:i,breakpoints:a},t):null,r("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[r("div",{children:[e!=null&&e.publishedAt?l(m,{muted:!0,className:"text-sm",children:g(new Date(e.publishedAt)," dd MMM, yyyy")}):null,e!=null&&e.title?l(b,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?l(m,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?l(h,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function N({post:e,size:i,breakpoints:t,key:a}){var n;return l(y,{children:t?l(o,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(n=e==null?void 0:e.mainImage)!=null?n:`blog-variantB-image-${a}`}):l("div",{className:`${i==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:l(o,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function k({primaryButton:e}){return e!=null&&e.label?l("div",{className:"text-center",children:l(s,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}export{w as a};
File without changes