@stacksjs/calendar-api 0.62.0 → 0.63.1
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/index.js +3 -640
- package/dist/index.js.map +16 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,642 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
8
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
-
for (let key of __getOwnPropNames(mod))
|
|
11
|
-
if (!__hasOwnProp.call(to, key))
|
|
12
|
-
__defProp(to, key, {
|
|
13
|
-
get: () => mod[key],
|
|
14
|
-
enumerable: true
|
|
15
|
-
});
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
2
|
+
var E$=Object.create;var{getPrototypeOf:q$,defineProperty:_,getOwnPropertyNames:K$}=Object;var P$=Object.prototype.hasOwnProperty;var Q$=($,Y,L)=>{L=$!=null?E$(q$($)):{};const v=Y||!$||!$.__esModule?_(L,"default",{value:$,enumerable:!0}):L;for(let R of K$($))if(!P$.call(v,R))_(v,R,{get:()=>$[R],enumerable:!0});return v};var l=($,Y)=>()=>(Y||$((Y={exports:{}}).exports,Y),Y.exports);var i=l((M,f)=>{(function($,Y){if(typeof M==="object")f.exports=M=Y();else if(typeof define==="function"&&define.amd)define([],Y);else $.CryptoJS=Y()})(M,function(){var $=$||function(Y,L){var v;if(typeof window!=="undefined"&&window.crypto)v=window.crypto;if(typeof self!=="undefined"&&self.crypto)v=self.crypto;if(typeof globalThis!=="undefined"&&globalThis.crypto)v=globalThis.crypto;if(!v&&typeof window!=="undefined"&&window.msCrypto)v=window.msCrypto;if(!v&&typeof global!=="undefined"&&global.crypto)v=global.crypto;if(!v)try{v=import.meta.require("crypto")}catch(D){}var R=function(){if(v){if(typeof v.getRandomValues==="function")try{return v.getRandomValues(new Uint32Array(1))[0]}catch(D){}if(typeof v.randomBytes==="function")try{return v.randomBytes(4).readInt32LE()}catch(D){}}throw new Error("Native crypto module could not be used to get secure random number.")},S=Object.create||function(){function D(){}return function(Q){var O;return D.prototype=Q,O=new D,D.prototype=null,O}}(),C={},V=C.lib={},F=V.Base=function(){return{extend:function(D){var Q=S(this);if(D)Q.mixIn(D);if(!Q.hasOwnProperty("init")||this.init===Q.init)Q.init=function(){Q.$super.init.apply(this,arguments)};return Q.init.prototype=Q,Q.$super=this,Q},create:function(){var D=this.extend();return D.init.apply(D,arguments),D},init:function(){},mixIn:function(D){for(var Q in D)if(D.hasOwnProperty(Q))this[Q]=D[Q];if(D.hasOwnProperty("toString"))this.toString=D.toString},clone:function(){return this.init.prototype.extend(this)}}}(),j=V.WordArray=F.extend({init:function(D,Q){if(D=this.words=D||[],Q!=L)this.sigBytes=Q;else this.sigBytes=D.length*4},toString:function(D){return(D||x).stringify(this)},concat:function(D){var Q=this.words,O=D.words,X=this.sigBytes,N=D.sigBytes;if(this.clamp(),X%4)for(var J=0;J<N;J++){var B=O[J>>>2]>>>24-J%4*8&255;Q[X+J>>>2]|=B<<24-(X+J)%4*8}else for(var I=0;I<N;I+=4)Q[X+I>>>2]=O[I>>>2];return this.sigBytes+=N,this},clamp:function(){var D=this.words,Q=this.sigBytes;D[Q>>>2]&=4294967295<<32-Q%4*8,D.length=Y.ceil(Q/4)},clone:function(){var D=F.clone.call(this);return D.words=this.words.slice(0),D},random:function(D){var Q=[];for(var O=0;O<D;O+=4)Q.push(R());return new j.init(Q,D)}}),z=C.enc={},x=z.Hex={stringify:function(D){var{words:Q,sigBytes:O}=D,X=[];for(var N=0;N<O;N++){var J=Q[N>>>2]>>>24-N%4*8&255;X.push((J>>>4).toString(16)),X.push((J&15).toString(16))}return X.join("")},parse:function(D){var Q=D.length,O=[];for(var X=0;X<Q;X+=2)O[X>>>3]|=parseInt(D.substr(X,2),16)<<24-X%8*4;return new j.init(O,Q/2)}},W=z.Latin1={stringify:function(D){var{words:Q,sigBytes:O}=D,X=[];for(var N=0;N<O;N++){var J=Q[N>>>2]>>>24-N%4*8&255;X.push(String.fromCharCode(J))}return X.join("")},parse:function(D){var Q=D.length,O=[];for(var X=0;X<Q;X++)O[X>>>2]|=(D.charCodeAt(X)&255)<<24-X%4*8;return new j.init(O,Q)}},Z=z.Utf8={stringify:function(D){try{return decodeURIComponent(escape(W.stringify(D)))}catch(Q){throw new Error("Malformed UTF-8 data")}},parse:function(D){return W.parse(unescape(encodeURIComponent(D)))}},U=V.BufferedBlockAlgorithm=F.extend({reset:function(){this._data=new j.init,this._nDataBytes=0},_append:function(D){if(typeof D=="string")D=Z.parse(D);this._data.concat(D),this._nDataBytes+=D.sigBytes},_process:function(D){var Q,O=this._data,X=O.words,N=O.sigBytes,J=this.blockSize,B=J*4,I=N/B;if(D)I=Y.ceil(I);else I=Y.max((I|0)-this._minBufferSize,0);var G=I*J,g=Y.min(G*4,N);if(G){for(var m=0;m<G;m+=J)this._doProcessBlock(X,m);Q=X.splice(0,G),O.sigBytes-=g}return new j.init(Q,g)},clone:function(){var D=F.clone.call(this);return D._data=this._data.clone(),D},_minBufferSize:0}),A=V.Hasher=U.extend({cfg:F.extend(),init:function(D){this.cfg=this.cfg.extend(D),this.reset()},reset:function(){U.reset.call(this),this._doReset()},update:function(D){return this._append(D),this._process(),this},finalize:function(D){if(D)this._append(D);var Q=this._doFinalize();return Q},blockSize:16,_createHelper:function(D){return function(Q,O){return new D.init(O).finalize(Q)}},_createHmacHelper:function(D){return function(Q,O){return new w.HMAC.init(D,O).finalize(Q)}}}),w=C.algo={};return C}(Math);return $})});var s=l((b,r)=>{(function($,Y){if(typeof b==="object")r.exports=b=Y(i());else if(typeof define==="function"&&define.amd)define(["./core"],Y);else Y($.CryptoJS)})(b,function($){return function(Y){var L=$,v=L.lib,R=v.WordArray,S=v.Hasher,C=L.algo,V=[];(function(){for(var Z=0;Z<64;Z++)V[Z]=Y.abs(Y.sin(Z+1))*4294967296|0})();var F=C.MD5=S.extend({_doReset:function(){this._hash=new R.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Z,U){for(var A=0;A<16;A++){var w=U+A,D=Z[w];Z[w]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}var Q=this._hash.words,O=Z[U+0],X=Z[U+1],N=Z[U+2],J=Z[U+3],B=Z[U+4],I=Z[U+5],G=Z[U+6],g=Z[U+7],m=Z[U+8],u=Z[U+9],H=Z[U+10],h=Z[U+11],p=Z[U+12],T=Z[U+13],k=Z[U+14],y=Z[U+15],E=Q[0],q=Q[1],K=Q[2],P=Q[3];E=j(E,q,K,P,O,7,V[0]),P=j(P,E,q,K,X,12,V[1]),K=j(K,P,E,q,N,17,V[2]),q=j(q,K,P,E,J,22,V[3]),E=j(E,q,K,P,B,7,V[4]),P=j(P,E,q,K,I,12,V[5]),K=j(K,P,E,q,G,17,V[6]),q=j(q,K,P,E,g,22,V[7]),E=j(E,q,K,P,m,7,V[8]),P=j(P,E,q,K,u,12,V[9]),K=j(K,P,E,q,H,17,V[10]),q=j(q,K,P,E,h,22,V[11]),E=j(E,q,K,P,p,7,V[12]),P=j(P,E,q,K,T,12,V[13]),K=j(K,P,E,q,k,17,V[14]),q=j(q,K,P,E,y,22,V[15]),E=z(E,q,K,P,X,5,V[16]),P=z(P,E,q,K,G,9,V[17]),K=z(K,P,E,q,h,14,V[18]),q=z(q,K,P,E,O,20,V[19]),E=z(E,q,K,P,I,5,V[20]),P=z(P,E,q,K,H,9,V[21]),K=z(K,P,E,q,y,14,V[22]),q=z(q,K,P,E,B,20,V[23]),E=z(E,q,K,P,u,5,V[24]),P=z(P,E,q,K,k,9,V[25]),K=z(K,P,E,q,J,14,V[26]),q=z(q,K,P,E,m,20,V[27]),E=z(E,q,K,P,T,5,V[28]),P=z(P,E,q,K,N,9,V[29]),K=z(K,P,E,q,g,14,V[30]),q=z(q,K,P,E,p,20,V[31]),E=x(E,q,K,P,I,4,V[32]),P=x(P,E,q,K,m,11,V[33]),K=x(K,P,E,q,h,16,V[34]),q=x(q,K,P,E,k,23,V[35]),E=x(E,q,K,P,X,4,V[36]),P=x(P,E,q,K,B,11,V[37]),K=x(K,P,E,q,g,16,V[38]),q=x(q,K,P,E,H,23,V[39]),E=x(E,q,K,P,T,4,V[40]),P=x(P,E,q,K,O,11,V[41]),K=x(K,P,E,q,J,16,V[42]),q=x(q,K,P,E,G,23,V[43]),E=x(E,q,K,P,u,4,V[44]),P=x(P,E,q,K,p,11,V[45]),K=x(K,P,E,q,y,16,V[46]),q=x(q,K,P,E,N,23,V[47]),E=W(E,q,K,P,O,6,V[48]),P=W(P,E,q,K,g,10,V[49]),K=W(K,P,E,q,k,15,V[50]),q=W(q,K,P,E,I,21,V[51]),E=W(E,q,K,P,p,6,V[52]),P=W(P,E,q,K,J,10,V[53]),K=W(K,P,E,q,H,15,V[54]),q=W(q,K,P,E,X,21,V[55]),E=W(E,q,K,P,m,6,V[56]),P=W(P,E,q,K,y,10,V[57]),K=W(K,P,E,q,G,15,V[58]),q=W(q,K,P,E,T,21,V[59]),E=W(E,q,K,P,B,6,V[60]),P=W(P,E,q,K,h,10,V[61]),K=W(K,P,E,q,N,15,V[62]),q=W(q,K,P,E,u,21,V[63]),Q[0]=Q[0]+E|0,Q[1]=Q[1]+q|0,Q[2]=Q[2]+K|0,Q[3]=Q[3]+P|0},_doFinalize:function(){var Z=this._data,U=Z.words,A=this._nDataBytes*8,w=Z.sigBytes*8;U[w>>>5]|=128<<24-w%32;var D=Y.floor(A/4294967296),Q=A;U[(w+64>>>9<<4)+15]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,U[(w+64>>>9<<4)+14]=(Q<<8|Q>>>24)&16711935|(Q<<24|Q>>>8)&4278255360,Z.sigBytes=(U.length+1)*4,this._process();var O=this._hash,X=O.words;for(var N=0;N<4;N++){var J=X[N];X[N]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360}return O},clone:function(){var Z=S.clone.call(this);return Z._hash=this._hash.clone(),Z}});function j(Z,U,A,w,D,Q,O){var X=Z+(U&A|~U&w)+D+O;return(X<<Q|X>>>32-Q)+U}function z(Z,U,A,w,D,Q,O){var X=Z+(U&w|A&~w)+D+O;return(X<<Q|X>>>32-Q)+U}function x(Z,U,A,w,D,Q,O){var X=Z+(U^A^w)+D+O;return(X<<Q|X>>>32-Q)+U}function W(Z,U,A,w,D,Q,O){var X=Z+(A^(U|~w))+D+O;return(X<<Q|X>>>32-Q)+U}L.MD5=S._createHelper(F),L.HmacMD5=S._createHmacHelper(F)}(Math),$.MD5})});function V$($){let Y="https://calendar.google.com/calendar/render?action=TEMPLATE";const L=n($.from,"UTC"),v=n($.to,"UTC"),R=$.allDay?"YYYYMMDD":"YYYYMMDDThhmmss";if(Y=`${Y}&dates=${useDateFormat(L,R).value}/${useDateFormat(v,R).value}`,$.timezone)Y=`${Y}&ctz=${$.timezone}`;if(Y=`${Y}&text=${encodeURIComponent($.title)}`,$.description)Y=`${Y}&details=${encodeURIComponent($.description)}`;if($.address)Y=`${Y}&location=${encodeURIComponent($.address)}`;return Y}function n($,Y){return new Date((typeof $==="string"?new Date($):$).toLocaleString("en-US",{timeZone:Y}))}var d=V$;var a=Q$(s(),1);function O$($){const Y=`UID:${N$($)}`,L=`SUMMARY:${$.title}`,v=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:Spatie calendar-links","BEGIN:VEVENT",Y,L],S=`${$.timezone||"PST"}:${v$}`,C=$.allDay?X$:S;if($.allDay)v.push(`DTSTAMP;TZID=${useDateFormat($.from,C).value}`),v.push(`DTSTART:${useDateFormat($.from,C).value}`),v.push(`DURATION:P${useMax(1,U$($.from,$.to)).value}D`);else v.push(`DTSTAMP;TZID=${useDateFormat($.from,C).value}`),v.push(`DTSTART;TZID=${useDateFormat($.from,C).value}`),v.push(`DTEND;TZID=${useDateFormat($.to,C).value}`);if($.description)v.push(`X-ALT-DESC;FMTTYPE=text/html:${$.description}`);if($.address)v.push(`LOCATION:${$.address}`);return v.push("END:VEVENT"),v.push("END:VCALENDAR"),Z$(v)}function Z$($){return`data:text/calendar;charset=utf8;base64,${btoa($.join("\r\n"))}`}function U$($,Y){const v=Date.UTC($.getFullYear(),$.getMonth(),$.getDate()),R=Date.UTC(Y.getFullYear(),Y.getMonth(),Y.getDate());return Math.floor((R-v)/86400000)}function N$($){const Y=useDateFormat($.from,o).value,L=useDateFormat($.to,o).value;return a.default(`${Y}${L}${$.title}`).toString()}var X$="YYYYMMDD",v$="YYYYMMDDThhmmss",o="YYYY-MM-DDThh:mm:ss+00:00",e=O$;function J$($){let Y="https://outlook.live.com/calendar/deeplink/compose?path=/calendar/action/compose&rru=addevent";const L=t($.from,"UTC"),v=t($.to,"UTC"),R=$.allDay?"YYYY-MM-DD":"YYYY-MM-DDThh:mm:ss";if(Y=$.allDay?`${Y}&startdt=${useDateFormat(L,R).value}`:`${Y}&startdt=${useDateFormat(L,R).value}Z`,Y=$.allDay?`${Y}&enddt=${useDateFormat(v,R).value}`:`${Y}&enddt=${useDateFormat(v,R).value}Z`,$.allDay)Y=`${Y}&allday=true`;if(Y=`${Y}&subject=${encodeURIComponent($.title)}`,$.description)Y=`${Y}&body=${encodeURIComponent($.description)}`;if($.address)Y=`${Y}&location=${encodeURIComponent($.address)}`;return Y}function t($,Y){return new Date((typeof $==="string"?new Date($):$).toLocaleString("en-US",{timeZone:Y}))}var $$=J$;function R$($){let Y="https://calendar.yahoo.com/?v=60&view=d&type=20";const L=D$($.from,"UTC"),v=D$($.to,"UTC"),R=$.allDay?"YYYYMMDD":"YYYYMMDDThhmmss";if($.allDay)Y=`${Y}&ST=${useDateFormat($.from,R).value}`,Y=`${Y}&DUR=allday`,Y=`${Y}&ET=${useDateFormat($.to,R).value}`;else Y=`${Y}&ST=${useDateFormat(L,R).value}Z`,Y=`${Y}&ET=${useDateFormat(v,R).value}Z`;if(Y=`${Y}&TITLE=${encodeURIComponent($.title)}`,$.description)Y=`${Y}&DESC=${encodeURIComponent($.description)}`;if($.address)Y=`${Y}&in_loc=${encodeURIComponent($.address)}`;return Y}function D$($,Y){return new Date((typeof $==="string"?new Date($):$).toLocaleString("en-US",{timeZone:Y}))}var Y$=R$;function G$(){return d(c)}function S$(){return e(c)}function F$(){return $$(c)}function B$(){return Y$(c)}var c={from:new Date("2022-12-12 01:00:00"),to:new Date("2022-12-12 05:00:00"),allDay:!1,address:"Playa Vista, Los Angeles, CA, USA",title:"test appointment",description:"test description",timezone:"EDT"};export{B$ as exportCalendarYahoo,F$ as exportCalendarOutlook,S$ as exportCalendarIcs,G$ as exportCalendarGoogle};
|
|
19
3
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
(function(root, factory) {
|
|
23
|
-
if (typeof exports === "object") {
|
|
24
|
-
module.exports = exports = factory();
|
|
25
|
-
} else if (typeof define === "function" && define.amd) {
|
|
26
|
-
define([], factory);
|
|
27
|
-
} else {
|
|
28
|
-
root.CryptoJS = factory();
|
|
29
|
-
}
|
|
30
|
-
})(exports, function() {
|
|
31
|
-
var CryptoJS = CryptoJS || function(Math2, undefined2) {
|
|
32
|
-
var crypto;
|
|
33
|
-
if (typeof window !== "undefined" && window.crypto) {
|
|
34
|
-
crypto = window.crypto;
|
|
35
|
-
}
|
|
36
|
-
if (typeof self !== "undefined" && self.crypto) {
|
|
37
|
-
crypto = self.crypto;
|
|
38
|
-
}
|
|
39
|
-
if (typeof globalThis !== "undefined" && globalThis.crypto) {
|
|
40
|
-
crypto = globalThis.crypto;
|
|
41
|
-
}
|
|
42
|
-
if (!crypto && typeof window !== "undefined" && window.msCrypto) {
|
|
43
|
-
crypto = window.msCrypto;
|
|
44
|
-
}
|
|
45
|
-
if (!crypto && typeof global !== "undefined" && global.crypto) {
|
|
46
|
-
crypto = global.crypto;
|
|
47
|
-
}
|
|
48
|
-
if (!crypto && typeof import.meta.require === "function") {
|
|
49
|
-
try {
|
|
50
|
-
crypto = import.meta.require("crypto");
|
|
51
|
-
} catch (err) {
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
var cryptoSecureRandomInt = function() {
|
|
55
|
-
if (crypto) {
|
|
56
|
-
if (typeof crypto.getRandomValues === "function") {
|
|
57
|
-
try {
|
|
58
|
-
return crypto.getRandomValues(new Uint32Array(1))[0];
|
|
59
|
-
} catch (err) {
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (typeof crypto.randomBytes === "function") {
|
|
63
|
-
try {
|
|
64
|
-
return crypto.randomBytes(4).readInt32LE();
|
|
65
|
-
} catch (err) {
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
70
|
-
};
|
|
71
|
-
var create = Object.create || function() {
|
|
72
|
-
function F() {
|
|
73
|
-
}
|
|
74
|
-
return function(obj) {
|
|
75
|
-
var subtype;
|
|
76
|
-
F.prototype = obj;
|
|
77
|
-
subtype = new F;
|
|
78
|
-
F.prototype = null;
|
|
79
|
-
return subtype;
|
|
80
|
-
};
|
|
81
|
-
}();
|
|
82
|
-
var C = {};
|
|
83
|
-
var C_lib = C.lib = {};
|
|
84
|
-
var Base = C_lib.Base = function() {
|
|
85
|
-
return {
|
|
86
|
-
extend: function(overrides) {
|
|
87
|
-
var subtype = create(this);
|
|
88
|
-
if (overrides) {
|
|
89
|
-
subtype.mixIn(overrides);
|
|
90
|
-
}
|
|
91
|
-
if (!subtype.hasOwnProperty("init") || this.init === subtype.init) {
|
|
92
|
-
subtype.init = function() {
|
|
93
|
-
subtype.$super.init.apply(this, arguments);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
subtype.init.prototype = subtype;
|
|
97
|
-
subtype.$super = this;
|
|
98
|
-
return subtype;
|
|
99
|
-
},
|
|
100
|
-
create: function() {
|
|
101
|
-
var instance = this.extend();
|
|
102
|
-
instance.init.apply(instance, arguments);
|
|
103
|
-
return instance;
|
|
104
|
-
},
|
|
105
|
-
init: function() {
|
|
106
|
-
},
|
|
107
|
-
mixIn: function(properties) {
|
|
108
|
-
for (var propertyName in properties) {
|
|
109
|
-
if (properties.hasOwnProperty(propertyName)) {
|
|
110
|
-
this[propertyName] = properties[propertyName];
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if (properties.hasOwnProperty("toString")) {
|
|
114
|
-
this.toString = properties.toString;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
clone: function() {
|
|
118
|
-
return this.init.prototype.extend(this);
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
}();
|
|
122
|
-
var WordArray = C_lib.WordArray = Base.extend({
|
|
123
|
-
init: function(words, sigBytes) {
|
|
124
|
-
words = this.words = words || [];
|
|
125
|
-
if (sigBytes != undefined2) {
|
|
126
|
-
this.sigBytes = sigBytes;
|
|
127
|
-
} else {
|
|
128
|
-
this.sigBytes = words.length * 4;
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
toString: function(encoder) {
|
|
132
|
-
return (encoder || Hex).stringify(this);
|
|
133
|
-
},
|
|
134
|
-
concat: function(wordArray) {
|
|
135
|
-
var thisWords = this.words;
|
|
136
|
-
var thatWords = wordArray.words;
|
|
137
|
-
var thisSigBytes = this.sigBytes;
|
|
138
|
-
var thatSigBytes = wordArray.sigBytes;
|
|
139
|
-
this.clamp();
|
|
140
|
-
if (thisSigBytes % 4) {
|
|
141
|
-
for (var i = 0;i < thatSigBytes; i++) {
|
|
142
|
-
var thatByte = thatWords[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
143
|
-
thisWords[thisSigBytes + i >>> 2] |= thatByte << 24 - (thisSigBytes + i) % 4 * 8;
|
|
144
|
-
}
|
|
145
|
-
} else {
|
|
146
|
-
for (var j = 0;j < thatSigBytes; j += 4) {
|
|
147
|
-
thisWords[thisSigBytes + j >>> 2] = thatWords[j >>> 2];
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
this.sigBytes += thatSigBytes;
|
|
151
|
-
return this;
|
|
152
|
-
},
|
|
153
|
-
clamp: function() {
|
|
154
|
-
var words = this.words;
|
|
155
|
-
var sigBytes = this.sigBytes;
|
|
156
|
-
words[sigBytes >>> 2] &= 4294967295 << 32 - sigBytes % 4 * 8;
|
|
157
|
-
words.length = Math2.ceil(sigBytes / 4);
|
|
158
|
-
},
|
|
159
|
-
clone: function() {
|
|
160
|
-
var clone = Base.clone.call(this);
|
|
161
|
-
clone.words = this.words.slice(0);
|
|
162
|
-
return clone;
|
|
163
|
-
},
|
|
164
|
-
random: function(nBytes) {
|
|
165
|
-
var words = [];
|
|
166
|
-
for (var i = 0;i < nBytes; i += 4) {
|
|
167
|
-
words.push(cryptoSecureRandomInt());
|
|
168
|
-
}
|
|
169
|
-
return new WordArray.init(words, nBytes);
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
var C_enc = C.enc = {};
|
|
173
|
-
var Hex = C_enc.Hex = {
|
|
174
|
-
stringify: function(wordArray) {
|
|
175
|
-
var words = wordArray.words;
|
|
176
|
-
var sigBytes = wordArray.sigBytes;
|
|
177
|
-
var hexChars = [];
|
|
178
|
-
for (var i = 0;i < sigBytes; i++) {
|
|
179
|
-
var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
180
|
-
hexChars.push((bite >>> 4).toString(16));
|
|
181
|
-
hexChars.push((bite & 15).toString(16));
|
|
182
|
-
}
|
|
183
|
-
return hexChars.join("");
|
|
184
|
-
},
|
|
185
|
-
parse: function(hexStr) {
|
|
186
|
-
var hexStrLength = hexStr.length;
|
|
187
|
-
var words = [];
|
|
188
|
-
for (var i = 0;i < hexStrLength; i += 2) {
|
|
189
|
-
words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << 24 - i % 8 * 4;
|
|
190
|
-
}
|
|
191
|
-
return new WordArray.init(words, hexStrLength / 2);
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
var Latin1 = C_enc.Latin1 = {
|
|
195
|
-
stringify: function(wordArray) {
|
|
196
|
-
var words = wordArray.words;
|
|
197
|
-
var sigBytes = wordArray.sigBytes;
|
|
198
|
-
var latin1Chars = [];
|
|
199
|
-
for (var i = 0;i < sigBytes; i++) {
|
|
200
|
-
var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
201
|
-
latin1Chars.push(String.fromCharCode(bite));
|
|
202
|
-
}
|
|
203
|
-
return latin1Chars.join("");
|
|
204
|
-
},
|
|
205
|
-
parse: function(latin1Str) {
|
|
206
|
-
var latin1StrLength = latin1Str.length;
|
|
207
|
-
var words = [];
|
|
208
|
-
for (var i = 0;i < latin1StrLength; i++) {
|
|
209
|
-
words[i >>> 2] |= (latin1Str.charCodeAt(i) & 255) << 24 - i % 4 * 8;
|
|
210
|
-
}
|
|
211
|
-
return new WordArray.init(words, latin1StrLength);
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
var Utf8 = C_enc.Utf8 = {
|
|
215
|
-
stringify: function(wordArray) {
|
|
216
|
-
try {
|
|
217
|
-
return decodeURIComponent(escape(Latin1.stringify(wordArray)));
|
|
218
|
-
} catch (e) {
|
|
219
|
-
throw new Error("Malformed UTF-8 data");
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
parse: function(utf8Str) {
|
|
223
|
-
return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
|
|
227
|
-
reset: function() {
|
|
228
|
-
this._data = new WordArray.init;
|
|
229
|
-
this._nDataBytes = 0;
|
|
230
|
-
},
|
|
231
|
-
_append: function(data) {
|
|
232
|
-
if (typeof data == "string") {
|
|
233
|
-
data = Utf8.parse(data);
|
|
234
|
-
}
|
|
235
|
-
this._data.concat(data);
|
|
236
|
-
this._nDataBytes += data.sigBytes;
|
|
237
|
-
},
|
|
238
|
-
_process: function(doFlush) {
|
|
239
|
-
var processedWords;
|
|
240
|
-
var data = this._data;
|
|
241
|
-
var dataWords = data.words;
|
|
242
|
-
var dataSigBytes = data.sigBytes;
|
|
243
|
-
var blockSize = this.blockSize;
|
|
244
|
-
var blockSizeBytes = blockSize * 4;
|
|
245
|
-
var nBlocksReady = dataSigBytes / blockSizeBytes;
|
|
246
|
-
if (doFlush) {
|
|
247
|
-
nBlocksReady = Math2.ceil(nBlocksReady);
|
|
248
|
-
} else {
|
|
249
|
-
nBlocksReady = Math2.max((nBlocksReady | 0) - this._minBufferSize, 0);
|
|
250
|
-
}
|
|
251
|
-
var nWordsReady = nBlocksReady * blockSize;
|
|
252
|
-
var nBytesReady = Math2.min(nWordsReady * 4, dataSigBytes);
|
|
253
|
-
if (nWordsReady) {
|
|
254
|
-
for (var offset = 0;offset < nWordsReady; offset += blockSize) {
|
|
255
|
-
this._doProcessBlock(dataWords, offset);
|
|
256
|
-
}
|
|
257
|
-
processedWords = dataWords.splice(0, nWordsReady);
|
|
258
|
-
data.sigBytes -= nBytesReady;
|
|
259
|
-
}
|
|
260
|
-
return new WordArray.init(processedWords, nBytesReady);
|
|
261
|
-
},
|
|
262
|
-
clone: function() {
|
|
263
|
-
var clone = Base.clone.call(this);
|
|
264
|
-
clone._data = this._data.clone();
|
|
265
|
-
return clone;
|
|
266
|
-
},
|
|
267
|
-
_minBufferSize: 0
|
|
268
|
-
});
|
|
269
|
-
var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
|
|
270
|
-
cfg: Base.extend(),
|
|
271
|
-
init: function(cfg) {
|
|
272
|
-
this.cfg = this.cfg.extend(cfg);
|
|
273
|
-
this.reset();
|
|
274
|
-
},
|
|
275
|
-
reset: function() {
|
|
276
|
-
BufferedBlockAlgorithm.reset.call(this);
|
|
277
|
-
this._doReset();
|
|
278
|
-
},
|
|
279
|
-
update: function(messageUpdate) {
|
|
280
|
-
this._append(messageUpdate);
|
|
281
|
-
this._process();
|
|
282
|
-
return this;
|
|
283
|
-
},
|
|
284
|
-
finalize: function(messageUpdate) {
|
|
285
|
-
if (messageUpdate) {
|
|
286
|
-
this._append(messageUpdate);
|
|
287
|
-
}
|
|
288
|
-
var hash = this._doFinalize();
|
|
289
|
-
return hash;
|
|
290
|
-
},
|
|
291
|
-
blockSize: 512 / 32,
|
|
292
|
-
_createHelper: function(hasher) {
|
|
293
|
-
return function(message, cfg) {
|
|
294
|
-
return new hasher.init(cfg).finalize(message);
|
|
295
|
-
};
|
|
296
|
-
},
|
|
297
|
-
_createHmacHelper: function(hasher) {
|
|
298
|
-
return function(message, key) {
|
|
299
|
-
return new C_algo.HMAC.init(hasher, key).finalize(message);
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
var C_algo = C.algo = {};
|
|
304
|
-
return C;
|
|
305
|
-
}(Math);
|
|
306
|
-
return CryptoJS;
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
|
|
310
|
-
// ../../../../node_modules/crypto-js/md5.js
|
|
311
|
-
var require_md5 = __commonJS((exports, module) => {
|
|
312
|
-
(function(root, factory) {
|
|
313
|
-
if (typeof exports === "object") {
|
|
314
|
-
module.exports = exports = factory(require_core());
|
|
315
|
-
} else if (typeof define === "function" && define.amd) {
|
|
316
|
-
define(["./core"], factory);
|
|
317
|
-
} else {
|
|
318
|
-
factory(root.CryptoJS);
|
|
319
|
-
}
|
|
320
|
-
})(exports, function(CryptoJS) {
|
|
321
|
-
(function(Math2) {
|
|
322
|
-
var C = CryptoJS;
|
|
323
|
-
var C_lib = C.lib;
|
|
324
|
-
var WordArray = C_lib.WordArray;
|
|
325
|
-
var Hasher = C_lib.Hasher;
|
|
326
|
-
var C_algo = C.algo;
|
|
327
|
-
var T = [];
|
|
328
|
-
(function() {
|
|
329
|
-
for (var i = 0;i < 64; i++) {
|
|
330
|
-
T[i] = Math2.abs(Math2.sin(i + 1)) * 4294967296 | 0;
|
|
331
|
-
}
|
|
332
|
-
})();
|
|
333
|
-
var MD5 = C_algo.MD5 = Hasher.extend({
|
|
334
|
-
_doReset: function() {
|
|
335
|
-
this._hash = new WordArray.init([
|
|
336
|
-
1732584193,
|
|
337
|
-
4023233417,
|
|
338
|
-
2562383102,
|
|
339
|
-
271733878
|
|
340
|
-
]);
|
|
341
|
-
},
|
|
342
|
-
_doProcessBlock: function(M, offset) {
|
|
343
|
-
for (var i = 0;i < 16; i++) {
|
|
344
|
-
var offset_i = offset + i;
|
|
345
|
-
var M_offset_i = M[offset_i];
|
|
346
|
-
M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 16711935 | (M_offset_i << 24 | M_offset_i >>> 8) & 4278255360;
|
|
347
|
-
}
|
|
348
|
-
var H = this._hash.words;
|
|
349
|
-
var M_offset_0 = M[offset + 0];
|
|
350
|
-
var M_offset_1 = M[offset + 1];
|
|
351
|
-
var M_offset_2 = M[offset + 2];
|
|
352
|
-
var M_offset_3 = M[offset + 3];
|
|
353
|
-
var M_offset_4 = M[offset + 4];
|
|
354
|
-
var M_offset_5 = M[offset + 5];
|
|
355
|
-
var M_offset_6 = M[offset + 6];
|
|
356
|
-
var M_offset_7 = M[offset + 7];
|
|
357
|
-
var M_offset_8 = M[offset + 8];
|
|
358
|
-
var M_offset_9 = M[offset + 9];
|
|
359
|
-
var M_offset_10 = M[offset + 10];
|
|
360
|
-
var M_offset_11 = M[offset + 11];
|
|
361
|
-
var M_offset_12 = M[offset + 12];
|
|
362
|
-
var M_offset_13 = M[offset + 13];
|
|
363
|
-
var M_offset_14 = M[offset + 14];
|
|
364
|
-
var M_offset_15 = M[offset + 15];
|
|
365
|
-
var a = H[0];
|
|
366
|
-
var b = H[1];
|
|
367
|
-
var c = H[2];
|
|
368
|
-
var d = H[3];
|
|
369
|
-
a = FF(a, b, c, d, M_offset_0, 7, T[0]);
|
|
370
|
-
d = FF(d, a, b, c, M_offset_1, 12, T[1]);
|
|
371
|
-
c = FF(c, d, a, b, M_offset_2, 17, T[2]);
|
|
372
|
-
b = FF(b, c, d, a, M_offset_3, 22, T[3]);
|
|
373
|
-
a = FF(a, b, c, d, M_offset_4, 7, T[4]);
|
|
374
|
-
d = FF(d, a, b, c, M_offset_5, 12, T[5]);
|
|
375
|
-
c = FF(c, d, a, b, M_offset_6, 17, T[6]);
|
|
376
|
-
b = FF(b, c, d, a, M_offset_7, 22, T[7]);
|
|
377
|
-
a = FF(a, b, c, d, M_offset_8, 7, T[8]);
|
|
378
|
-
d = FF(d, a, b, c, M_offset_9, 12, T[9]);
|
|
379
|
-
c = FF(c, d, a, b, M_offset_10, 17, T[10]);
|
|
380
|
-
b = FF(b, c, d, a, M_offset_11, 22, T[11]);
|
|
381
|
-
a = FF(a, b, c, d, M_offset_12, 7, T[12]);
|
|
382
|
-
d = FF(d, a, b, c, M_offset_13, 12, T[13]);
|
|
383
|
-
c = FF(c, d, a, b, M_offset_14, 17, T[14]);
|
|
384
|
-
b = FF(b, c, d, a, M_offset_15, 22, T[15]);
|
|
385
|
-
a = GG(a, b, c, d, M_offset_1, 5, T[16]);
|
|
386
|
-
d = GG(d, a, b, c, M_offset_6, 9, T[17]);
|
|
387
|
-
c = GG(c, d, a, b, M_offset_11, 14, T[18]);
|
|
388
|
-
b = GG(b, c, d, a, M_offset_0, 20, T[19]);
|
|
389
|
-
a = GG(a, b, c, d, M_offset_5, 5, T[20]);
|
|
390
|
-
d = GG(d, a, b, c, M_offset_10, 9, T[21]);
|
|
391
|
-
c = GG(c, d, a, b, M_offset_15, 14, T[22]);
|
|
392
|
-
b = GG(b, c, d, a, M_offset_4, 20, T[23]);
|
|
393
|
-
a = GG(a, b, c, d, M_offset_9, 5, T[24]);
|
|
394
|
-
d = GG(d, a, b, c, M_offset_14, 9, T[25]);
|
|
395
|
-
c = GG(c, d, a, b, M_offset_3, 14, T[26]);
|
|
396
|
-
b = GG(b, c, d, a, M_offset_8, 20, T[27]);
|
|
397
|
-
a = GG(a, b, c, d, M_offset_13, 5, T[28]);
|
|
398
|
-
d = GG(d, a, b, c, M_offset_2, 9, T[29]);
|
|
399
|
-
c = GG(c, d, a, b, M_offset_7, 14, T[30]);
|
|
400
|
-
b = GG(b, c, d, a, M_offset_12, 20, T[31]);
|
|
401
|
-
a = HH(a, b, c, d, M_offset_5, 4, T[32]);
|
|
402
|
-
d = HH(d, a, b, c, M_offset_8, 11, T[33]);
|
|
403
|
-
c = HH(c, d, a, b, M_offset_11, 16, T[34]);
|
|
404
|
-
b = HH(b, c, d, a, M_offset_14, 23, T[35]);
|
|
405
|
-
a = HH(a, b, c, d, M_offset_1, 4, T[36]);
|
|
406
|
-
d = HH(d, a, b, c, M_offset_4, 11, T[37]);
|
|
407
|
-
c = HH(c, d, a, b, M_offset_7, 16, T[38]);
|
|
408
|
-
b = HH(b, c, d, a, M_offset_10, 23, T[39]);
|
|
409
|
-
a = HH(a, b, c, d, M_offset_13, 4, T[40]);
|
|
410
|
-
d = HH(d, a, b, c, M_offset_0, 11, T[41]);
|
|
411
|
-
c = HH(c, d, a, b, M_offset_3, 16, T[42]);
|
|
412
|
-
b = HH(b, c, d, a, M_offset_6, 23, T[43]);
|
|
413
|
-
a = HH(a, b, c, d, M_offset_9, 4, T[44]);
|
|
414
|
-
d = HH(d, a, b, c, M_offset_12, 11, T[45]);
|
|
415
|
-
c = HH(c, d, a, b, M_offset_15, 16, T[46]);
|
|
416
|
-
b = HH(b, c, d, a, M_offset_2, 23, T[47]);
|
|
417
|
-
a = II(a, b, c, d, M_offset_0, 6, T[48]);
|
|
418
|
-
d = II(d, a, b, c, M_offset_7, 10, T[49]);
|
|
419
|
-
c = II(c, d, a, b, M_offset_14, 15, T[50]);
|
|
420
|
-
b = II(b, c, d, a, M_offset_5, 21, T[51]);
|
|
421
|
-
a = II(a, b, c, d, M_offset_12, 6, T[52]);
|
|
422
|
-
d = II(d, a, b, c, M_offset_3, 10, T[53]);
|
|
423
|
-
c = II(c, d, a, b, M_offset_10, 15, T[54]);
|
|
424
|
-
b = II(b, c, d, a, M_offset_1, 21, T[55]);
|
|
425
|
-
a = II(a, b, c, d, M_offset_8, 6, T[56]);
|
|
426
|
-
d = II(d, a, b, c, M_offset_15, 10, T[57]);
|
|
427
|
-
c = II(c, d, a, b, M_offset_6, 15, T[58]);
|
|
428
|
-
b = II(b, c, d, a, M_offset_13, 21, T[59]);
|
|
429
|
-
a = II(a, b, c, d, M_offset_4, 6, T[60]);
|
|
430
|
-
d = II(d, a, b, c, M_offset_11, 10, T[61]);
|
|
431
|
-
c = II(c, d, a, b, M_offset_2, 15, T[62]);
|
|
432
|
-
b = II(b, c, d, a, M_offset_9, 21, T[63]);
|
|
433
|
-
H[0] = H[0] + a | 0;
|
|
434
|
-
H[1] = H[1] + b | 0;
|
|
435
|
-
H[2] = H[2] + c | 0;
|
|
436
|
-
H[3] = H[3] + d | 0;
|
|
437
|
-
},
|
|
438
|
-
_doFinalize: function() {
|
|
439
|
-
var data = this._data;
|
|
440
|
-
var dataWords = data.words;
|
|
441
|
-
var nBitsTotal = this._nDataBytes * 8;
|
|
442
|
-
var nBitsLeft = data.sigBytes * 8;
|
|
443
|
-
dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32;
|
|
444
|
-
var nBitsTotalH = Math2.floor(nBitsTotal / 4294967296);
|
|
445
|
-
var nBitsTotalL = nBitsTotal;
|
|
446
|
-
dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 16711935 | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 4278255360;
|
|
447
|
-
dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 16711935 | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 4278255360;
|
|
448
|
-
data.sigBytes = (dataWords.length + 1) * 4;
|
|
449
|
-
this._process();
|
|
450
|
-
var hash = this._hash;
|
|
451
|
-
var H = hash.words;
|
|
452
|
-
for (var i = 0;i < 4; i++) {
|
|
453
|
-
var H_i = H[i];
|
|
454
|
-
H[i] = (H_i << 8 | H_i >>> 24) & 16711935 | (H_i << 24 | H_i >>> 8) & 4278255360;
|
|
455
|
-
}
|
|
456
|
-
return hash;
|
|
457
|
-
},
|
|
458
|
-
clone: function() {
|
|
459
|
-
var clone = Hasher.clone.call(this);
|
|
460
|
-
clone._hash = this._hash.clone();
|
|
461
|
-
return clone;
|
|
462
|
-
}
|
|
463
|
-
});
|
|
464
|
-
function FF(a, b, c, d, x, s, t) {
|
|
465
|
-
var n = a + (b & c | ~b & d) + x + t;
|
|
466
|
-
return (n << s | n >>> 32 - s) + b;
|
|
467
|
-
}
|
|
468
|
-
function GG(a, b, c, d, x, s, t) {
|
|
469
|
-
var n = a + (b & d | c & ~d) + x + t;
|
|
470
|
-
return (n << s | n >>> 32 - s) + b;
|
|
471
|
-
}
|
|
472
|
-
function HH(a, b, c, d, x, s, t) {
|
|
473
|
-
var n = a + (b ^ c ^ d) + x + t;
|
|
474
|
-
return (n << s | n >>> 32 - s) + b;
|
|
475
|
-
}
|
|
476
|
-
function II(a, b, c, d, x, s, t) {
|
|
477
|
-
var n = a + (c ^ (b | ~d)) + x + t;
|
|
478
|
-
return (n << s | n >>> 32 - s) + b;
|
|
479
|
-
}
|
|
480
|
-
C.MD5 = Hasher._createHelper(MD5);
|
|
481
|
-
C.HmacMD5 = Hasher._createHmacHelper(MD5);
|
|
482
|
-
})(Math);
|
|
483
|
-
return CryptoJS.MD5;
|
|
484
|
-
});
|
|
485
|
-
});
|
|
486
|
-
|
|
487
|
-
// src/generators/google.ts
|
|
488
|
-
var generateGoogle = function(link) {
|
|
489
|
-
let url = "https://calendar.google.com/calendar/render?action=TEMPLATE";
|
|
490
|
-
const utcStartDateTime = convertTZ(link.from, "UTC");
|
|
491
|
-
const utcEndDateTime = convertTZ(link.to, "UTC");
|
|
492
|
-
const dateTimeFormat = link.allDay ? dateFormat : timeFormat;
|
|
493
|
-
url = `${url}&dates=${useDateFormat(utcStartDateTime, dateTimeFormat).value}/${useDateFormat(utcEndDateTime, dateTimeFormat).value}`;
|
|
494
|
-
if (link.timezone)
|
|
495
|
-
url = `${url}&ctz=${link.timezone}`;
|
|
496
|
-
url = `${url}&text=${encodeURIComponent(link.title)}`;
|
|
497
|
-
if (link.description)
|
|
498
|
-
url = `${url}&details=${encodeURIComponent(link.description)}`;
|
|
499
|
-
if (link.address)
|
|
500
|
-
url = `${url}&location=${encodeURIComponent(link.address)}`;
|
|
501
|
-
return url;
|
|
502
|
-
};
|
|
503
|
-
var convertTZ = function(date, tzString) {
|
|
504
|
-
return new Date((typeof date === "string" ? new Date(date) : date).toLocaleString("en-US", { timeZone: tzString }));
|
|
505
|
-
};
|
|
506
|
-
var dateFormat = "YYYYMMDD";
|
|
507
|
-
var timeFormat = "YYYYMMDDThhmmss";
|
|
508
|
-
var google_default = generateGoogle;
|
|
509
|
-
|
|
510
|
-
// src/generators/ics.ts
|
|
511
|
-
var md5 = __toESM(require_md5(), 1);
|
|
512
|
-
var generateIcs = function(link) {
|
|
513
|
-
const uid = `UID:${generateEventUid(link)}`;
|
|
514
|
-
const summary = `SUMMARY:${link.title}`;
|
|
515
|
-
const url = [
|
|
516
|
-
"BEGIN:VCALENDAR",
|
|
517
|
-
"VERSION:2.0",
|
|
518
|
-
"PRODID:Spatie calendar-links",
|
|
519
|
-
"BEGIN:VEVENT",
|
|
520
|
-
uid,
|
|
521
|
-
summary
|
|
522
|
-
];
|
|
523
|
-
const timezone = link.timezone || "PST";
|
|
524
|
-
const formatTime = `${timezone}:${timeFormat2}`;
|
|
525
|
-
const dateTimeFormat = link.allDay ? dateFormat2 : formatTime;
|
|
526
|
-
if (link.allDay) {
|
|
527
|
-
url.push(`DTSTAMP;TZID=${useDateFormat(link.from, dateTimeFormat).value}`);
|
|
528
|
-
url.push(`DTSTART:${useDateFormat(link.from, dateTimeFormat).value}`);
|
|
529
|
-
url.push(`DURATION:P${useMax(1, dateDiffInDays(link.from, link.to)).value}D`);
|
|
530
|
-
} else {
|
|
531
|
-
url.push(`DTSTAMP;TZID=${useDateFormat(link.from, dateTimeFormat).value}`);
|
|
532
|
-
url.push(`DTSTART;TZID=${useDateFormat(link.from, dateTimeFormat).value}`);
|
|
533
|
-
url.push(`DTEND;TZID=${useDateFormat(link.to, dateTimeFormat).value}`);
|
|
534
|
-
}
|
|
535
|
-
if (link.description)
|
|
536
|
-
url.push(`X-ALT-DESC;FMTTYPE=text/html:${link.description}`);
|
|
537
|
-
if (link.address)
|
|
538
|
-
url.push(`LOCATION:${link.address}`);
|
|
539
|
-
url.push("END:VEVENT");
|
|
540
|
-
url.push("END:VCALENDAR");
|
|
541
|
-
return buildLink(url);
|
|
542
|
-
};
|
|
543
|
-
var buildLink = function(propertiesAndComponents) {
|
|
544
|
-
return `data:text/calendar;charset=utf8;base64,${btoa(propertiesAndComponents.join("\r\n"))}`;
|
|
545
|
-
};
|
|
546
|
-
var dateDiffInDays = function(from, to) {
|
|
547
|
-
const _MS_PER_DAY = 1000 * 60 * 60 * 24;
|
|
548
|
-
const utc1 = Date.UTC(from.getFullYear(), from.getMonth(), from.getDate());
|
|
549
|
-
const utc2 = Date.UTC(to.getFullYear(), to.getMonth(), to.getDate());
|
|
550
|
-
return Math.floor((utc2 - utc1) / _MS_PER_DAY);
|
|
551
|
-
};
|
|
552
|
-
var generateEventUid = function(link) {
|
|
553
|
-
const from = useDateFormat(link.from, atomicFormat).value;
|
|
554
|
-
const to = useDateFormat(link.to, atomicFormat).value;
|
|
555
|
-
return md5.default(`${from}${to}${link.title}`).toString();
|
|
556
|
-
};
|
|
557
|
-
var dateFormat2 = "YYYYMMDD";
|
|
558
|
-
var timeFormat2 = "YYYYMMDDThhmmss";
|
|
559
|
-
var atomicFormat = "YYYY-MM-DDThh:mm:ss+00:00";
|
|
560
|
-
var ics_default = generateIcs;
|
|
561
|
-
|
|
562
|
-
// src/generators/weboutlook.ts
|
|
563
|
-
var generateOutlook = function(link) {
|
|
564
|
-
let url = BASE_URL;
|
|
565
|
-
const utcStartDateTime = convertTZ2(link.from, "UTC");
|
|
566
|
-
const utcEndDateTime = convertTZ2(link.to, "UTC");
|
|
567
|
-
const dateTimeFormat = link.allDay ? dateFormat3 : timeFormat3;
|
|
568
|
-
url = link.allDay ? `${url}&startdt=${useDateFormat(utcStartDateTime, dateTimeFormat).value}` : `${url}&startdt=${useDateFormat(utcStartDateTime, dateTimeFormat).value}Z`;
|
|
569
|
-
url = link.allDay ? `${url}&enddt=${useDateFormat(utcEndDateTime, dateTimeFormat).value}` : `${url}&enddt=${useDateFormat(utcEndDateTime, dateTimeFormat).value}Z`;
|
|
570
|
-
if (link.allDay)
|
|
571
|
-
url = `${url}&allday=true`;
|
|
572
|
-
url = `${url}&subject=${encodeURIComponent(link.title)}`;
|
|
573
|
-
if (link.description)
|
|
574
|
-
url = `${url}&body=${encodeURIComponent(link.description)}`;
|
|
575
|
-
if (link.address)
|
|
576
|
-
url = `${url}&location=${encodeURIComponent(link.address)}`;
|
|
577
|
-
return url;
|
|
578
|
-
};
|
|
579
|
-
var convertTZ2 = function(date, tzString) {
|
|
580
|
-
return new Date((typeof date === "string" ? new Date(date) : date).toLocaleString("en-US", { timeZone: tzString }));
|
|
581
|
-
};
|
|
582
|
-
var dateFormat3 = "YYYY-MM-DD";
|
|
583
|
-
var timeFormat3 = "YYYY-MM-DDThh:mm:ss";
|
|
584
|
-
var BASE_URL = "https://outlook.live.com/calendar/deeplink/compose?path=/calendar/action/compose&rru=addevent";
|
|
585
|
-
var weboutlook_default = generateOutlook;
|
|
586
|
-
|
|
587
|
-
// src/generators/yahoo.ts
|
|
588
|
-
var generateYahoo = function(link) {
|
|
589
|
-
let url = "https://calendar.yahoo.com/?v=60&view=d&type=20";
|
|
590
|
-
const utcStartDateTime = convertTZ3(link.from, "UTC");
|
|
591
|
-
const utcEndDateTime = convertTZ3(link.to, "UTC");
|
|
592
|
-
const dateTimeFormat = link.allDay ? dateFormat4 : timeFormat4;
|
|
593
|
-
if (link.allDay) {
|
|
594
|
-
url = `${url}&ST=${useDateFormat(link.from, dateTimeFormat).value}`;
|
|
595
|
-
url = `${url}&DUR=allday`;
|
|
596
|
-
url = `${url}&ET=${useDateFormat(link.to, dateTimeFormat).value}`;
|
|
597
|
-
} else {
|
|
598
|
-
url = `${url}&ST=${useDateFormat(utcStartDateTime, dateTimeFormat).value}Z`;
|
|
599
|
-
url = `${url}&ET=${useDateFormat(utcEndDateTime, dateTimeFormat).value}Z`;
|
|
600
|
-
}
|
|
601
|
-
url = `${url}&TITLE=${encodeURIComponent(link.title)}`;
|
|
602
|
-
if (link.description)
|
|
603
|
-
url = `${url}&DESC=${encodeURIComponent(link.description)}`;
|
|
604
|
-
if (link.address)
|
|
605
|
-
url = `${url}&in_loc=${encodeURIComponent(link.address)}`;
|
|
606
|
-
return url;
|
|
607
|
-
};
|
|
608
|
-
var convertTZ3 = function(date, tzString) {
|
|
609
|
-
return new Date((typeof date === "string" ? new Date(date) : date).toLocaleString("en-US", { timeZone: tzString }));
|
|
610
|
-
};
|
|
611
|
-
var dateFormat4 = "YYYYMMDD";
|
|
612
|
-
var timeFormat4 = "YYYYMMDDThhmmss";
|
|
613
|
-
var yahoo_default = generateYahoo;
|
|
614
|
-
|
|
615
|
-
// src/links.ts
|
|
616
|
-
var exportCalendarGoogle = function() {
|
|
617
|
-
return google_default(link);
|
|
618
|
-
};
|
|
619
|
-
var exportCalendarIcs = function() {
|
|
620
|
-
return ics_default(link);
|
|
621
|
-
};
|
|
622
|
-
var exportCalendarOutlook = function() {
|
|
623
|
-
return weboutlook_default(link);
|
|
624
|
-
};
|
|
625
|
-
var exportCalendarYahoo = function() {
|
|
626
|
-
return yahoo_default(link);
|
|
627
|
-
};
|
|
628
|
-
var link = {
|
|
629
|
-
from: new Date("2022-12-12 01:00:00"),
|
|
630
|
-
to: new Date("2022-12-12 05:00:00"),
|
|
631
|
-
allDay: false,
|
|
632
|
-
address: "Playa Vista, Los Angeles, CA, USA",
|
|
633
|
-
title: "test appointment",
|
|
634
|
-
description: "test description",
|
|
635
|
-
timezone: "EDT"
|
|
636
|
-
};
|
|
637
|
-
export {
|
|
638
|
-
exportCalendarYahoo,
|
|
639
|
-
exportCalendarOutlook,
|
|
640
|
-
exportCalendarIcs,
|
|
641
|
-
exportCalendarGoogle
|
|
642
|
-
};
|
|
4
|
+
//# debugId=B344B139A1B7DC3264756E2164756E21
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../node_modules/crypto-js/core.js", "../../../../../node_modules/crypto-js/md5.js", "../src/generators/google.ts", "../src/generators/ics.ts", "../src/generators/weboutlook.ts", "../src/generators/yahoo.ts", "../src/links.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\troot.CryptoJS = factory();\n\t}\n}(this, function () {\n\n\t/*globals window, global, require*/\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\n\t var crypto;\n\n\t // Native crypto from window (Browser)\n\t if (typeof window !== 'undefined' && window.crypto) {\n\t crypto = window.crypto;\n\t }\n\n\t // Native crypto in web worker (Browser)\n\t if (typeof self !== 'undefined' && self.crypto) {\n\t crypto = self.crypto;\n\t }\n\n\t // Native crypto from worker\n\t if (typeof globalThis !== 'undefined' && globalThis.crypto) {\n\t crypto = globalThis.crypto;\n\t }\n\n\t // Native (experimental IE 11) crypto from window (Browser)\n\t if (!crypto && typeof window !== 'undefined' && window.msCrypto) {\n\t crypto = window.msCrypto;\n\t }\n\n\t // Native crypto from global (NodeJS)\n\t if (!crypto && typeof global !== 'undefined' && global.crypto) {\n\t crypto = global.crypto;\n\t }\n\n\t // Native crypto import via require (NodeJS)\n\t if (!crypto && typeof require === 'function') {\n\t try {\n\t crypto = require('crypto');\n\t } catch (err) {}\n\t }\n\n\t /*\n\t * Cryptographically secure pseudorandom number generator\n\t *\n\t * As Math.random() is cryptographically not safe to use\n\t */\n\t var cryptoSecureRandomInt = function () {\n\t if (crypto) {\n\t // Use getRandomValues method (Browser)\n\t if (typeof crypto.getRandomValues === 'function') {\n\t try {\n\t return crypto.getRandomValues(new Uint32Array(1))[0];\n\t } catch (err) {}\n\t }\n\n\t // Use randomBytes method (NodeJS)\n\t if (typeof crypto.randomBytes === 'function') {\n\t try {\n\t return crypto.randomBytes(4).readInt32LE();\n\t } catch (err) {}\n\t }\n\t }\n\n\t throw new Error('Native crypto module could not be used to get secure random number.');\n\t };\n\n\t /*\n\t * Local polyfill of Object.create\n\n\t */\n\t var create = Object.create || (function () {\n\t function F() {}\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }());\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var j = 0; j < thatSigBytes; j += 4) {\n\t thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t for (var i = 0; i < nBytes; i += 4) {\n\t words.push(cryptoSecureRandomInt());\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t var processedWords;\n\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));",
|
|
6
|
+
";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Constants table\n\t var T = [];\n\n\t // Compute constants\n\t (function () {\n\t for (var i = 0; i < 64; i++) {\n\t T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\n\t }\n\t }());\n\n\t /**\n\t * MD5 hash algorithm.\n\t */\n\t var MD5 = C_algo.MD5 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init([\n\t 0x67452301, 0xefcdab89,\n\t 0x98badcfe, 0x10325476\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Swap endian\n\t for (var i = 0; i < 16; i++) {\n\t // Shortcuts\n\t var offset_i = offset + i;\n\t var M_offset_i = M[offset_i];\n\n\t M[offset_i] = (\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n\t );\n\t }\n\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var M_offset_0 = M[offset + 0];\n\t var M_offset_1 = M[offset + 1];\n\t var M_offset_2 = M[offset + 2];\n\t var M_offset_3 = M[offset + 3];\n\t var M_offset_4 = M[offset + 4];\n\t var M_offset_5 = M[offset + 5];\n\t var M_offset_6 = M[offset + 6];\n\t var M_offset_7 = M[offset + 7];\n\t var M_offset_8 = M[offset + 8];\n\t var M_offset_9 = M[offset + 9];\n\t var M_offset_10 = M[offset + 10];\n\t var M_offset_11 = M[offset + 11];\n\t var M_offset_12 = M[offset + 12];\n\t var M_offset_13 = M[offset + 13];\n\t var M_offset_14 = M[offset + 14];\n\t var M_offset_15 = M[offset + 15];\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\n\t // Computation\n\t a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n\t d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n\t c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n\t b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n\t a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n\t d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n\t c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n\t b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n\t a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n\t d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n\t c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n\t b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n\t a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n\t d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n\t c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n\t b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n\n\t a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n\t d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n\t c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n\t b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n\t a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n\t d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n\t c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n\t b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n\t a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n\t d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n\t c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n\t b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n\t a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n\t d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n\t c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n\t b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n\n\t a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n\t d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n\t c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n\t b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n\t a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n\t d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n\t c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n\t b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n\t a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n\t d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n\t c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n\t b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n\t a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n\t d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n\t c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n\t b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n\n\t a = II(a, b, c, d, M_offset_0, 6, T[48]);\n\t d = II(d, a, b, c, M_offset_7, 10, T[49]);\n\t c = II(c, d, a, b, M_offset_14, 15, T[50]);\n\t b = II(b, c, d, a, M_offset_5, 21, T[51]);\n\t a = II(a, b, c, d, M_offset_12, 6, T[52]);\n\t d = II(d, a, b, c, M_offset_3, 10, T[53]);\n\t c = II(c, d, a, b, M_offset_10, 15, T[54]);\n\t b = II(b, c, d, a, M_offset_1, 21, T[55]);\n\t a = II(a, b, c, d, M_offset_8, 6, T[56]);\n\t d = II(d, a, b, c, M_offset_15, 10, T[57]);\n\t c = II(c, d, a, b, M_offset_6, 15, T[58]);\n\t b = II(b, c, d, a, M_offset_13, 21, T[59]);\n\t a = II(a, b, c, d, M_offset_4, 6, T[60]);\n\t d = II(d, a, b, c, M_offset_11, 10, T[61]);\n\t c = II(c, d, a, b, M_offset_2, 15, T[62]);\n\t b = II(b, c, d, a, M_offset_9, 21, T[63]);\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\n\t var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n\t var nBitsTotalL = nBitsTotal;\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\n\t (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\n\t );\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n\t (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\n\t );\n\n\t data.sigBytes = (dataWords.length + 1) * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Shortcuts\n\t var hash = this._hash;\n\t var H = hash.words;\n\n\t // Swap endian\n\t for (var i = 0; i < 4; i++) {\n\t // Shortcut\n\t var H_i = H[i];\n\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n\t }\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t function FF(a, b, c, d, x, s, t) {\n\t var n = a + ((b & c) | (~b & d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function GG(a, b, c, d, x, s, t) {\n\t var n = a + ((b & d) | (c & ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function HH(a, b, c, d, x, s, t) {\n\t var n = a + (b ^ c ^ d) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function II(a, b, c, d, x, s, t) {\n\t var n = a + (c ^ (b | ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.MD5('message');\n\t * var hash = CryptoJS.MD5(wordArray);\n\t */\n\t C.MD5 = Hasher._createHelper(MD5);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacMD5(message, key);\n\t */\n\t C.HmacMD5 = Hasher._createHmacHelper(MD5);\n\t}(Math));\n\n\n\treturn CryptoJS.MD5;\n\n}));",
|
|
7
|
+
"import type { CalendarLink } from '../types'\n\nconst dateFormat = 'YYYYMMDD'\nconst timeFormat = 'YYYYMMDDThhmmss'\n\nfunction generateGoogle(link: CalendarLink): string {\n // 20221020T170000Z/20221020T173000Z\n\n let url = 'https://calendar.google.com/calendar/render?action=TEMPLATE'\n\n const utcStartDateTime = convertTZ(link.from, 'UTC') // set timezone to UTC\n const utcEndDateTime = convertTZ(link.to, 'UTC') // set timezone to UTC\n const dateTimeFormat = link.allDay ? dateFormat : timeFormat\n\n url = `${url}&dates=${useDateFormat(utcStartDateTime, dateTimeFormat).value}/${\n useDateFormat(utcEndDateTime, dateTimeFormat).value\n }`\n\n if (link.timezone) url = `${url}&ctz=${link.timezone}`\n\n url = `${url}&text=${encodeURIComponent(link.title)}`\n\n if (link.description) url = `${url}&details=${encodeURIComponent(link.description)}`\n\n if (link.address) url = `${url}&location=${encodeURIComponent(link.address)}`\n\n return url\n}\n\nfunction convertTZ(date: Date | string, tzString: string): Date {\n return new Date((typeof date === 'string' ? new Date(date) : date).toLocaleString('en-US', { timeZone: tzString }))\n}\n\nexport default generateGoogle\n",
|
|
8
|
+
"import md5 from 'crypto-js/md5'\nimport type { CalendarLink } from '../types'\n\nconst dateFormat = 'YYYYMMDD'\nconst timeFormat = 'YYYYMMDDThhmmss'\n\nconst atomicFormat = 'YYYY-MM-DDThh:mm:ss+00:00'\n\nfunction generateIcs(link: CalendarLink): string {\n const uid = `UID:${generateEventUid(link)}`\n const summary = `SUMMARY:${link.title}`\n\n const url = [\n 'BEGIN:VCALENDAR',\n 'VERSION:2.0', // @see https://datatracker.ietf.org/doc/html/rfc5545#section-3.7.4\n 'PRODID:Spatie calendar-links', // @see https://datatracker.ietf.org/doc/html/rfc5545#section-3.7.3\n 'BEGIN:VEVENT',\n uid,\n summary,\n ]\n\n const timezone = link.timezone || 'PST'\n\n const formatTime = `${timezone}:${timeFormat}`\n\n const dateTimeFormat = link.allDay ? dateFormat : formatTime\n\n if (link.allDay) {\n url.push(`DTSTAMP;TZID=${useDateFormat(link.from, dateTimeFormat).value}`)\n url.push(`DTSTART:${useDateFormat(link.from, dateTimeFormat).value}`)\n url.push(`DURATION:P${useMax(1, dateDiffInDays(link.from, link.to)).value}D`)\n } else {\n url.push(`DTSTAMP;TZID=${useDateFormat(link.from, dateTimeFormat).value}`)\n url.push(`DTSTART;TZID=${useDateFormat(link.from, dateTimeFormat).value}`)\n url.push(`DTEND;TZID=${useDateFormat(link.to, dateTimeFormat).value}`)\n }\n\n if (link.description) url.push(`X-ALT-DESC;FMTTYPE=text/html:${link.description}`)\n\n if (link.address) url.push(`LOCATION:${link.address}`)\n\n url.push('END:VEVENT')\n url.push('END:VCALENDAR')\n\n return buildLink(url)\n}\n\nfunction buildLink(propertiesAndComponents: any): string {\n return `data:text/calendar;charset=utf8;base64,${btoa(propertiesAndComponents.join('\\r\\n'))}`\n}\n\n// a and b are javascript Date objects\nfunction dateDiffInDays(from: Date, to: Date): number {\n const _MS_PER_DAY = 1000 * 60 * 60 * 24\n\n // Discard the time and time-zone information.\n const utc1 = Date.UTC(from.getFullYear(), from.getMonth(), from.getDate())\n const utc2 = Date.UTC(to.getFullYear(), to.getMonth(), to.getDate())\n\n return Math.floor((utc2 - utc1) / _MS_PER_DAY)\n}\n\nfunction generateEventUid(link: any): string {\n const from = useDateFormat(link.from, atomicFormat).value\n const to = useDateFormat(link.to, atomicFormat).value\n\n return md5(`${from}${to}${link.title}`).toString()\n}\n\n// function escapeString(field: string): string {\n// return addcslashes(field, '\\r\\n,;')\n// }\n\nexport default generateIcs\n",
|
|
9
|
+
"import type { CalendarLink } from '../types'\n\nconst dateFormat = 'YYYY-MM-DD'\nconst timeFormat = 'YYYY-MM-DDThh:mm:ss'\n\nconst BASE_URL = 'https://outlook.live.com/calendar/deeplink/compose?path=/calendar/action/compose&rru=addevent'\n\nfunction generateOutlook(link: CalendarLink): string {\n // 20221020T170000Z/20221020T173000Z\n\n let url = BASE_URL\n\n const utcStartDateTime = convertTZ(link.from, 'UTC') // set timezone to UTC\n const utcEndDateTime = convertTZ(link.to, 'UTC') // set timezone to UTC\n const dateTimeFormat = link.allDay ? dateFormat : timeFormat\n\n url = link.allDay\n ? `${url}&startdt=${useDateFormat(utcStartDateTime, dateTimeFormat).value}`\n : `${url}&startdt=${useDateFormat(utcStartDateTime, dateTimeFormat).value}Z`\n url = link.allDay\n ? `${url}&enddt=${useDateFormat(utcEndDateTime, dateTimeFormat).value}`\n : `${url}&enddt=${useDateFormat(utcEndDateTime, dateTimeFormat).value}Z`\n\n if (link.allDay) url = `${url}&allday=true`\n\n url = `${url}&subject=${encodeURIComponent(link.title)}`\n\n if (link.description) url = `${url}&body=${encodeURIComponent(link.description)}`\n\n if (link.address) url = `${url}&location=${encodeURIComponent(link.address)}`\n\n return url\n}\n\nfunction convertTZ(date: Date | string, tzString: string): Date {\n return new Date((typeof date === 'string' ? new Date(date) : date).toLocaleString('en-US', { timeZone: tzString }))\n}\n\nexport default generateOutlook\n",
|
|
10
|
+
"import type { CalendarLink } from '../types'\n\nconst dateFormat = 'YYYYMMDD'\nconst timeFormat = 'YYYYMMDDThhmmss'\n\nfunction generateYahoo(link: CalendarLink): string {\n let url = 'https://calendar.yahoo.com/?v=60&view=d&type=20'\n\n const utcStartDateTime = convertTZ(link.from, 'UTC') // set timezone to UTC\n const utcEndDateTime = convertTZ(link.to, 'UTC') // set timezone to UTC\n const dateTimeFormat = link.allDay ? dateFormat : timeFormat\n\n if (link.allDay) {\n url = `${url}&ST=${useDateFormat(link.from, dateTimeFormat).value}`\n url = `${url}&DUR=allday`\n url = `${url}&ET=${useDateFormat(link.to, dateTimeFormat).value}`\n } else {\n url = `${url}&ST=${useDateFormat(utcStartDateTime, dateTimeFormat).value}Z`\n url = `${url}&ET=${useDateFormat(utcEndDateTime, dateTimeFormat).value}Z`\n }\n\n url = `${url}&TITLE=${encodeURIComponent(link.title)}`\n\n if (link.description) url = `${url}&DESC=${encodeURIComponent(link.description)}`\n\n if (link.address) url = `${url}&in_loc=${encodeURIComponent(link.address)}`\n\n return url\n}\n\nfunction convertTZ(date: Date | string, tzString: string): Date {\n return new Date((typeof date === 'string' ? new Date(date) : date).toLocaleString('en-US', { timeZone: tzString }))\n}\n\nexport default generateYahoo\n",
|
|
11
|
+
"import generateGoogle from './generators/google'\nimport generateIcs from './generators/ics'\nimport generateOutlook from './generators/weboutlook'\nimport generateYahoo from './generators/yahoo'\nimport type { CalendarLink } from './types'\n\nconst link: CalendarLink = {\n from: new Date('2022-12-12 01:00:00'),\n to: new Date('2022-12-12 05:00:00'),\n allDay: false,\n address: 'Playa Vista, Los Angeles, CA, USA',\n title: 'test appointment',\n description: 'test description',\n timezone: 'EDT',\n}\n\n// functions that mutate state and trigger updates\nfunction exportCalendarGoogle(): string {\n return generateGoogle(link)\n}\n\n// functions that mutate state and trigger updates\nfunction exportCalendarIcs(): string {\n return generateIcs(link)\n}\n\n// functions that mutate state and trigger updates\nfunction exportCalendarOutlook(): string {\n return generateOutlook(link)\n}\n\n// functions that mutate state and trigger updates\nfunction exportCalendarY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