(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["7294"],{53325:function(t){t.exports=function(t,e){return t>e}},89179:function(t,e,n){var r=n(55639),i=n(40554),a=n(14841),s=n(79833),o=r.isFinite,u=Math.min;t.exports=function(t){var e=Math[t];return function(t,n){if(t=a(t),(n=null==n?0:u(i(n),292))&&o(t)){var r=(s(t)+"e").split("e");return+((r=(s(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}},7739:function(t,e,n){var r=n(89465),i=n(55189),a=Object.prototype.hasOwnProperty,s=i(function(t,e,n){a.call(t,n)?t[n].push(e):r(t,n,[e])});t.exports=s},84753:function(t,e,n){var r=n(56029),i=n(53325),a=n(67206);t.exports=function(t,e){return t&&t.length?r(t,a(e,2),i):void 0}},43174:function(t,e,n){var r=n(55189)(function(t,e,n){t[+!n].push(e)},function(){return[[],[]]});t.exports=r},59854:function(t,e,n){var r=n(89179)("round");t.exports=r},93220:function(t,e,n){var r=n(13866)(n(3674));t.exports=r},98643:function(t,e,n){"use strict";n.d(e,{Z:()=>r});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(36150).Z)("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]])},47655:function(t,e,n){"use strict";n.d(e,{Z:()=>r});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(36150).Z)("BookmarkCheck",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]])},72910:function(t,e,n){"use strict";n.d(e,{Z:()=>r});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(36150).Z)("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},20817:function(t,e,n){"use strict";n.d(e,{Z:()=>r});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(36150).Z)("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},41830:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;ey,QS:()=>$,ko:()=>m,lQ:()=>p,lk:()=>f,oW:()=>h,sm:()=>d}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var a=i(function(t,e){var n,r,i,a,s,o,u,l,c,f,d,h,$,p,y,m,v,D,g,M;t.exports=(n="millisecond",r="second",i="minute",a="hour",s="week",o="month",u="quarter",l="year",c="date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},(p={})[$="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t){return t instanceof g},m=function(t,e,n){var r;if(!t)return $;if("string"==typeof t)p[t]&&(r=t),e&&(p[t]=e,r=t);else{var i=t.name;p[i]=t,r=i}return!n&&r&&($=r),r||!n&&$},v=function(t,e){if(y(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new g(n)},(D={s:h,z:function(t){var e=-t.utcOffset(),n=Math.abs(e);return(e<=0?"+":"-")+h(Math.floor(n/60),2,"0")+":"+h(n%60,2,"0")},m:function t(e,n){if(e.date()=Math.abs(t)?60*t:t,i=this;if(e)return i.$offset=r,i.$u=0===t,i;if(0!==t){var a=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(r+a,"minute")).$offset=r,i.$x.$localOffset=a}else i=this.utc();return i};var o=r.format;r.format=function(t){return o.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var u=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=r.diff;r.diff=function(t,e,r){if(t&&this.$u===t.$u)return l.call(this,t,e,r);var i=this.local(),a=n(t).local();return l.call(i,a,e,r)}}});let o={dateTimeLocal:"YYYY-MM-DD[T]HH:mm:ss",dateTimeUTC:"YYYYMMDD[T]HHmmss[Z]",allDay:"YYYYMMDD"};function u(t){let e=new URLSearchParams;return Object.keys(t).sort().forEach(n=>{let r=t[n];null!=r&&e.append(n,r)}),e.toString().replace(/\+/g,"%20")}function l({startTime:t,endTime:e},n){let r=o[n];return{start:t.format(r),end:e.format(r)}}a.extend(s);let c=(t,e=!0)=>{let{start:n,end:i,duration:s}=t,o=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,["start","end","duration"]),u=e?a(n).utc():a(n),l=i?e?a(i).utc():a(i):(()=>{if(t.allDay)return u.add(1,"day");if(s&&2==s.length){let t=Number(s[0]);return u.add(t,s[1])}return e?a().utc():a()})();return r({},o,{startTime:u,endTime:l})},f=t=>{let e=c(t),{start:n,end:r}=l(e,e.allDay?"allDay":"dateTimeUTC"),i={action:"TEMPLATE",text:e.title,details:e.description,location:e.location,trp:e.busy,dates:n+"/"+r,recur:e.rRule?"RRULE:"+e.rRule:void 0};return e.guests&&e.guests.length&&(i.add=e.guests.join()),`https://calendar.google.com/calendar/render?${u(i)}`},d=t=>{let e=c(t,!1),{start:n,end:r}=l(e,"dateTimeLocal");return`https://outlook.live.com/calendar/0/action/compose?${u({path:"/calendar/action/compose",rru:"addevent",startdt:n,enddt:r,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})}`},h=t=>{let e=c(t,!1),{start:n,end:r}=l(e,"dateTimeLocal");return`https://outlook.live.com/calendar/0/deeplink/compose?${u({path:"/calendar/action/compose",rru:"addevent",startdt:n,enddt:r,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})}`},$=t=>{let e=c(t,!1),{start:n,end:r}=l(e,"dateTimeLocal");return`https://outlook.office.com/calendar/0/action/compose?${u({path:"/calendar/action/compose",rru:"addevent",startdt:n,enddt:r,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})}`},p=t=>{let e=c(t,!1),{start:n,end:r}=l(e,"dateTimeLocal");return`https://outlook.office.com/calendar/0/deeplink/compose?${u({path:"/calendar/action/compose",rru:"addevent",startdt:n,enddt:r,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})}`},y=t=>{let e=c(t),{start:n,end:r}=l(e,e.allDay?"allDay":"dateTimeUTC");return`https://calendar.yahoo.com/?${u({v:60,title:e.title,st:n,et:r,desc:e.description,in_loc:e.location,dur:!!e.allDay&&"allday"})}`},m=t=>{let e=c(t),n=(e.description||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\r\n/gm,"\n").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),r=(e.location||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\r\n/gm,"\n").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),{start:i,end:s}=l(e,e.allDay?"allDay":"dateTimeUTC"),u=a(new Date).utc().format(o.dateTimeUTC),f=[{key:"BEGIN",value:"VCALENDAR"},{key:"VERSION",value:"2.0"},{key:"PRODID",value:e.title},{key:"BEGIN",value:"VEVENT"},{key:"URL",value:e.url},{key:"DTSTART",value:i},{key:"DTEND",value:s},{key:"DTSTAMP",value:u},...e.allDay?[{key:"X-MICROSOFT-CDO-ALLDAYEVENT",value:"TRUE"},{key:"X-MICROSOFT-MSNCALENDAR-ALLDAYEVENT",value:"TRUE"}]:[],{key:"RRULE",value:e.rRule},{key:"SUMMARY",value:e.title},{key:"DESCRIPTION",value:n},{key:"LOCATION",value:r},{key:"ORGANIZER",value:e.organizer},{key:"STATUS",value:e.status},{key:"UID",value:Math.floor(1e5*Math.random()).toString().replace(".","")},{key:"END",value:"VEVENT"},{key:"END",value:"VCALENDAR"}],d="";return f.forEach(t=>{if(t.value){if("ORGANIZER"==t.key){let e=t.value;d+=`${t.key};${encodeURIComponent(`CN=${e.name}:MAILTO:${e.email}\r `)}`}else d+=`${t.key}:${encodeURIComponent(`${t.value}\r `)}`}}),`data:text/calendar;charset=utf8,${d}`}}}]); //# sourceMappingURL=7294.b1723064.js.map