@googleworkspace/meet-addons 1.2.0-dev-810597686 → 1.2.0-dev-811518847

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/meet.addons.d.ts CHANGED
@@ -1,248 +1,5 @@
1
1
 
2
2
 
3
- // Original file: live_sharing.v2.types.d.ts
4
-
5
-
6
- /**
7
- * Binary-encoded state for CoDoing experiences.
8
- */
9
- export interface CoDoingState {
10
- bytes: Uint8Array;
11
- }
12
-
13
-
14
- /**
15
- * Host-provided set of base configuration options.
16
- */
17
- export interface CoActivityDelegate {
18
- /**
19
- * User-suitable string describing the CoActivity.
20
- */
21
- activityTitle: string;
22
- }
23
-
24
-
25
- /**
26
- * Host-provided set of callbacks required to operate a CoDoing experience.
27
- */
28
- export interface CoDoingDelegate extends CoActivityDelegate {
29
- /**
30
- * Callback for state updates broadcast by other participants in the meeting.
31
- *
32
- * Note: This isn't called in response to local changes.
33
- *
34
- * @param update the state update to be applied.
35
- */
36
- onCoDoingStateChanged(newState: CoDoingState): void;
37
- }
38
-
39
-
40
-
41
- /**
42
- * Client-constructed CoDoing experience with hooks for hosts to notify
43
- * of state updates.
44
- */
45
- export interface CoDoingClient {
46
- /**
47
- * Broadcasts state to all other current participants, and is the default
48
- * state for any participant until some other state is broadcast.
49
- *
50
- * **Note:** This shared state is eventually consistent across
51
- * participants. For predictable behavior, this binary state should be
52
- * complete, not partial, as the Meet add-ons SDK doesn't provide
53
- * guarantees around the delivery of individual messages -- only eventual
54
- * consistency.
55
- *
56
- * **Note:** In a race condition where two participants call this method
57
- * simultaneously, the Meet add-ons SDK selects a canonical winning
58
- * update. The losing update might or might not be applied to participants,
59
- * but the winning update is always applied later.
60
- */
61
- broadcastStateUpdate(newState: CoDoingState): void;
62
- }
63
-
64
-
65
-
66
- /**
67
- * Current PlaybackState for CoWatching experiences.
68
- */
69
- export type PlaybackState =
70
- | 'INVALID'
71
- | 'BUFFERING'
72
- | 'PLAY'
73
- | 'PAUSE'
74
- | 'ENDED';
75
-
76
- /**
77
- * State for CoWatching experiences.
78
- */
79
- export interface CoWatchingState {
80
- /**
81
- * The identifier for the media being played.
82
- *
83
- * Note: The actual format only matters to the co-watching app.
84
- */
85
- mediaId: string;
86
-
87
- /** The current position of the media playout, in seconds. */
88
- mediaPlayoutPosition: number;
89
-
90
- /** The current playout rate, where {@code 1.0} is normal speed. */
91
- mediaPlayoutRate: number;
92
-
93
- /** The current player state, such as Paused, Playing, Buffering, etc. */
94
- playbackState: PlaybackState;
95
- }
96
-
97
-
98
-
99
- type CoWatchingQueryResponse = Pick<CoWatchingState, 'mediaPlayoutPosition'>;
100
-
101
-
102
- /**
103
- * Host-provided set of callbacks required to operate a CoWatching experience.
104
- */
105
- export interface CoWatchingDelegate extends CoActivityDelegate {
106
- /**
107
- * Apply the supplied state to media playout, up to and including switching
108
- * to a new media stream if the mediaId changes.
109
- *
110
- * @param state the new state to be applied to the player.
111
- */
112
- onCoWatchingStateChanged(newState: CoWatchingState): void;
113
-
114
- /**
115
- * Return the current state of the local media playout. This is called
116
- * regularly so it should be written to be performant.
117
- *
118
- * @return a {@link CoWatchingState} describing the current state.
119
- */
120
- onCoWatchingStateQuery(): CoWatchingQueryResponse;
121
- }
122
-
123
-
124
-
125
- /**
126
- * Client-constructed CoWatching experience with hooks for hosts to manage the
127
- * state.
128
- */
129
- export interface CoWatchingClient {
130
- /**
131
- * Notify Meet that the user has switched media so Meet can pass that along
132
- * to other users.
133
- *
134
- * @param mediaTitle The title of the media switched to. This title is
135
- * reflected in the Meet UI when other users are considering connecting to
136
- * the co-watching session.
137
- * @param mediaId The string URI of the media switched to.
138
- * @param mediaPlayoutPosition The position at which the media began playout.
139
- */
140
- notifySwitchedToMedia(
141
- mediaTitle: string,
142
- mediaId: string,
143
- mediaPlayoutPosition: number,
144
- ): void;
145
-
146
- /**
147
- * Notify Meet that the user has paused or unpaused the playback of media, so
148
- * Meet can mirror that action for other users.
149
- *
150
- * @param paused The new paused or unpaused state.
151
- */
152
- notifyPauseState(paused: boolean, mediaPlayoutPosition: number): void;
153
-
154
- /**
155
- * Notify Meet that the user has sought the playback point of the media, so
156
- * Meet can mirror that action for other users.
157
- *
158
- * @param mediaPlayoutPosition The timestamp that the user sought.
159
- */
160
- notifySeekToTimestamp(mediaPlayoutPosition: number): void;
161
-
162
- /**
163
- * Notify Meet that the user updated the playout rate of the media to a new
164
- * value (for example, 1.25x).
165
- *
166
- * @param rate The rate at which the media is now being played.
167
- * @param mediaPlayoutPosition The position at which the media began playout
168
- */
169
- notifyPlayoutRate(rate: number, mediaPlayoutPosition: number): void;
170
-
171
- /**
172
- * Notify Meet that the media isn't ready to be played due to
173
- * buffering, a prior media switch, seeking, or normal network
174
- * congestion.
175
- *
176
- * @param mediaPlayoutPosition The timestamp at which the media is paused or
177
- * waiting for buffering to complete.
178
- */
179
- notifyBuffering(mediaPlayoutPosition: number): void;
180
-
181
- /**
182
- * Notify Meet that the buffering is complete and the media is now ready to
183
- * play, starting at the supplied timestamp.
184
- *
185
- * @param mediaPlayoutPosition The timestamp at which the media is buffered
186
- * and is now ready to play.
187
- */
188
- notifyReady(mediaPlayoutPosition: number): void;
189
- }
190
-
191
-
192
-
193
- // Original file: index.types.d.ts
194
-
195
-
196
- /**
197
- * Parameters to retrieve the add-on session.
198
- */
199
- export interface AddonSessionOptions {
200
- /**
201
- * The Google Cloud project number of the add-on.
202
- */
203
- cloudProjectNumber: string;
204
- }
205
-
206
- /**
207
- * The main entry point for accessing Meet add-on functionality. Available
208
- * globally under `window.meet.addon`.
209
- */
210
- export interface MeetAddon {
211
- /**
212
- * Returns the {@link
213
- * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.frametype
214
- * | FrameType} in which the add-on is running in.
215
- */
216
- getFrameType: () => FrameType;
217
-
218
- /**
219
- * Creates an add-on session.
220
- */
221
- createAddonSession: (options: AddonSessionOptions) => Promise<AddonSession>;
222
- }
223
-
224
- /** The structure of the top-level add-on export. */
225
- interface MeetAddonExport {
226
- addon: MeetAddon;
227
- }
228
-
229
- /** The structure of an error generated from the Meet add-ons SDK. */
230
- interface MeetAddonError extends Error {
231
- readonly errorType: ErrorType;
232
- }
233
-
234
- /**
235
- * The main entry point for accessing Meet add-on functionality.
236
- */
237
- export const meet: MeetAddonExport;
238
-
239
- declare global {
240
- export interface Window {
241
- meet: MeetAddonExport;
242
- }
243
- }
244
-
245
-
246
3
  // Original file: client.types.d.ts
247
4
 
248
5
 
@@ -500,3 +257,246 @@ export interface AddonSession {
500
257
  coWatchingDelegate: CoWatchingDelegate,
501
258
  ): Promise<CoWatchingClient>;
502
259
  }
260
+
261
+
262
+ // Original file: index.types.d.ts
263
+
264
+
265
+ /**
266
+ * Parameters to retrieve the add-on session.
267
+ */
268
+ export interface AddonSessionOptions {
269
+ /**
270
+ * The Google Cloud project number of the add-on.
271
+ */
272
+ cloudProjectNumber: string;
273
+ }
274
+
275
+ /**
276
+ * The main entry point for accessing Meet add-on functionality. Available
277
+ * globally under `window.meet.addon`.
278
+ */
279
+ export interface MeetAddon {
280
+ /**
281
+ * Returns the {@link
282
+ * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.frametype
283
+ * | FrameType} in which the add-on is running in.
284
+ */
285
+ getFrameType: () => FrameType;
286
+
287
+ /**
288
+ * Creates an add-on session.
289
+ */
290
+ createAddonSession: (options: AddonSessionOptions) => Promise<AddonSession>;
291
+ }
292
+
293
+ /** The structure of the top-level add-on export. */
294
+ interface MeetAddonExport {
295
+ addon: MeetAddon;
296
+ }
297
+
298
+ /** The structure of an error generated from the Meet add-ons SDK. */
299
+ interface MeetAddonError extends Error {
300
+ readonly errorType: ErrorType;
301
+ }
302
+
303
+ /**
304
+ * The main entry point for accessing Meet add-on functionality.
305
+ */
306
+ export const meet: MeetAddonExport;
307
+
308
+ declare global {
309
+ export interface Window {
310
+ meet: MeetAddonExport;
311
+ }
312
+ }
313
+
314
+
315
+ // Original file: live_sharing.v2.types.d.ts
316
+
317
+
318
+ /**
319
+ * Binary-encoded state for CoDoing experiences.
320
+ */
321
+ export interface CoDoingState {
322
+ bytes: Uint8Array;
323
+ }
324
+
325
+
326
+ /**
327
+ * Host-provided set of base configuration options.
328
+ */
329
+ export interface CoActivityDelegate {
330
+ /**
331
+ * User-suitable string describing the CoActivity.
332
+ */
333
+ activityTitle: string;
334
+ }
335
+
336
+
337
+ /**
338
+ * Host-provided set of callbacks required to operate a CoDoing experience.
339
+ */
340
+ export interface CoDoingDelegate extends CoActivityDelegate {
341
+ /**
342
+ * Callback for state updates broadcast by other participants in the meeting.
343
+ *
344
+ * Note: This isn't called in response to local changes.
345
+ *
346
+ * @param update the state update to be applied.
347
+ */
348
+ onCoDoingStateChanged(newState: CoDoingState): void;
349
+ }
350
+
351
+
352
+
353
+ /**
354
+ * Client-constructed CoDoing experience with hooks for hosts to notify
355
+ * of state updates.
356
+ */
357
+ export interface CoDoingClient {
358
+ /**
359
+ * Broadcasts state to all other current participants, and is the default
360
+ * state for any participant until some other state is broadcast.
361
+ *
362
+ * **Note:** This shared state is eventually consistent across
363
+ * participants. For predictable behavior, this binary state should be
364
+ * complete, not partial, as the Meet add-ons SDK doesn't provide
365
+ * guarantees around the delivery of individual messages -- only eventual
366
+ * consistency.
367
+ *
368
+ * **Note:** In a race condition where two participants call this method
369
+ * simultaneously, the Meet add-ons SDK selects a canonical winning
370
+ * update. The losing update might or might not be applied to participants,
371
+ * but the winning update is always applied later.
372
+ */
373
+ broadcastStateUpdate(newState: CoDoingState): void;
374
+ }
375
+
376
+
377
+
378
+ /**
379
+ * Current PlaybackState for CoWatching experiences.
380
+ */
381
+ export type PlaybackState =
382
+ | 'INVALID'
383
+ | 'BUFFERING'
384
+ | 'PLAY'
385
+ | 'PAUSE'
386
+ | 'ENDED';
387
+
388
+ /**
389
+ * State for CoWatching experiences.
390
+ */
391
+ export interface CoWatchingState {
392
+ /**
393
+ * The identifier for the media being played.
394
+ *
395
+ * Note: The actual format only matters to the co-watching app.
396
+ */
397
+ mediaId: string;
398
+
399
+ /** The current position of the media playout, in seconds. */
400
+ mediaPlayoutPosition: number;
401
+
402
+ /** The current playout rate, where {@code 1.0} is normal speed. */
403
+ mediaPlayoutRate: number;
404
+
405
+ /** The current player state, such as Paused, Playing, Buffering, etc. */
406
+ playbackState: PlaybackState;
407
+ }
408
+
409
+
410
+
411
+ type CoWatchingQueryResponse = Pick<CoWatchingState, 'mediaPlayoutPosition'>;
412
+
413
+
414
+ /**
415
+ * Host-provided set of callbacks required to operate a CoWatching experience.
416
+ */
417
+ export interface CoWatchingDelegate extends CoActivityDelegate {
418
+ /**
419
+ * Apply the supplied state to media playout, up to and including switching
420
+ * to a new media stream if the mediaId changes.
421
+ *
422
+ * @param state the new state to be applied to the player.
423
+ */
424
+ onCoWatchingStateChanged(newState: CoWatchingState): void;
425
+
426
+ /**
427
+ * Return the current state of the local media playout. This is called
428
+ * regularly so it should be written to be performant.
429
+ *
430
+ * @return a {@link CoWatchingState} describing the current state.
431
+ */
432
+ onCoWatchingStateQuery(): CoWatchingQueryResponse;
433
+ }
434
+
435
+
436
+
437
+ /**
438
+ * Client-constructed CoWatching experience with hooks for hosts to manage the
439
+ * state.
440
+ */
441
+ export interface CoWatchingClient {
442
+ /**
443
+ * Notify Meet that the user has switched media so Meet can pass that along
444
+ * to other users.
445
+ *
446
+ * @param mediaTitle The title of the media switched to. This title is
447
+ * reflected in the Meet UI when other users are considering connecting to
448
+ * the co-watching session.
449
+ * @param mediaId The string URI of the media switched to.
450
+ * @param mediaPlayoutPosition The position at which the media began playout.
451
+ */
452
+ notifySwitchedToMedia(
453
+ mediaTitle: string,
454
+ mediaId: string,
455
+ mediaPlayoutPosition: number,
456
+ ): void;
457
+
458
+ /**
459
+ * Notify Meet that the user has paused or unpaused the playback of media, so
460
+ * Meet can mirror that action for other users.
461
+ *
462
+ * @param paused The new paused or unpaused state.
463
+ */
464
+ notifyPauseState(paused: boolean, mediaPlayoutPosition: number): void;
465
+
466
+ /**
467
+ * Notify Meet that the user has sought the playback point of the media, so
468
+ * Meet can mirror that action for other users.
469
+ *
470
+ * @param mediaPlayoutPosition The timestamp that the user sought.
471
+ */
472
+ notifySeekToTimestamp(mediaPlayoutPosition: number): void;
473
+
474
+ /**
475
+ * Notify Meet that the user updated the playout rate of the media to a new
476
+ * value (for example, 1.25x).
477
+ *
478
+ * @param rate The rate at which the media is now being played.
479
+ * @param mediaPlayoutPosition The position at which the media began playout
480
+ */
481
+ notifyPlayoutRate(rate: number, mediaPlayoutPosition: number): void;
482
+
483
+ /**
484
+ * Notify Meet that the media isn't ready to be played due to
485
+ * buffering, a prior media switch, seeking, or normal network
486
+ * congestion.
487
+ *
488
+ * @param mediaPlayoutPosition The timestamp at which the media is paused or
489
+ * waiting for buffering to complete.
490
+ */
491
+ notifyBuffering(mediaPlayoutPosition: number): void;
492
+
493
+ /**
494
+ * Notify Meet that the buffering is complete and the media is now ready to
495
+ * play, starting at the supplied timestamp.
496
+ *
497
+ * @param mediaPlayoutPosition The timestamp at which the media is buffered
498
+ * and is now ready to play.
499
+ */
500
+ notifyReady(mediaPlayoutPosition: number): void;
501
+ }
502
+
package/meet.addons.mjs CHANGED
@@ -4,72 +4,71 @@ function da(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){v
4
4
  Copyright The Closure Library Authors.
5
5
  SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- var ea=this||self;function fa(a,b){a:{var c=["CLOSURE_FLAGS"];for(var d=ea,e=0;e<c.length;e++)if(d=d[c[e]],d==null){c=null;break a}c=d}a=c&&c[a];return a!=null?a:b}function ha(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}
8
- function ia(a,b){function c(){}c.prototype=b.prototype;a.qa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.oa=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function ja(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ja);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}ia(ja,Error);ja.prototype.name="CustomError";function ka(a){ea.setTimeout(()=>{throw a;},0)};var la=fa(748402147,fa(1,!0));function ma(a,b){b=Array.prototype.indexOf.call(a,b,void 0);b>=0&&Array.prototype.splice.call(a,b,1)};const na=/[-_.]/g,oa={"-":"+",_:"/",".":"="};function pa(a){return oa[a]||""}var qa={};function ra(){return sa||(sa=new ta(null,qa))}var ta=class{constructor(a,b){ua(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};let sa;function ua(a){if(a!==qa)throw Error("illegal external caller");};function va(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let wa=void 0;function xa(a){a=Error(a);va(a,"warning");return a};function ya(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var za=ya(),Aa=ya(),Ba=ya("m_m",!0);const k=ya("jas",!0);var Ca;const Da=[];Da[k]=7;Ca=Object.freeze(Da);function Ea(){return typeof BigInt==="function"};var Fa={};function l(a,b){return b===void 0?a.g!==Ga&&!!(2&(a.l[k]|0)):!!(2&b)&&a.g!==Ga}const Ga={};function Ha(a,b){if(a!=null)if(typeof a==="string")a=a?new ta(a,qa):ra();else if(a.constructor!==ta)if(a!=null&&a instanceof Uint8Array)a=a.length?new ta(new Uint8Array(a),qa):ra();else{if(!b)throw Error();a=void 0}return a}var Ia=Object.freeze({});function Ja(a){a.pa=!0;return a};var Ka=Ja(a=>typeof a==="number"),La=Ja(a=>typeof a==="string"),Ma=Ja(a=>typeof a==="boolean");var Na=typeof ea.BigInt==="function"&&typeof ea.BigInt(0)==="bigint";function p(a){var b=a;if(La(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Ka(b)&&!Number.isSafeInteger(b))throw Error(String(b));return Na?BigInt(a):a=Ma(a)?a?"1":"0":La(a)?a.trim()||"0":String(a)}var Ta=Ja(a=>Na?a>=Oa&&a<=Pa:a[0]==="-"?Qa(a,Ra):Qa(a,Sa));const Ra=Number.MIN_SAFE_INTEGER.toString(),Oa=Na?BigInt(Number.MIN_SAFE_INTEGER):void 0,Sa=Number.MAX_SAFE_INTEGER.toString(),Pa=Na?BigInt(Number.MAX_SAFE_INTEGER):void 0;
9
- function Qa(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(let c=0;c<a.length;c++){const d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};let q=0,t=0;function Ua(a){const b=a>>>0;q=b;t=(a-b)/4294967296>>>0}function Va(a){if(a<0){Ua(-a);const [b,c]=Wa(q,t);q=b>>>0;t=c>>>0}else Ua(a)}function Xa(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Ea()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+Ya(c)+Ya(a));return c}
10
- function Ya(a){a=String(a);return"0000000".slice(a.length)+a}function Za(){var a=q,b=t;if(b&2147483648)if(Ea())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=Wa(a,b);a="-"+Xa(c,d)}else a=Xa(a,b);return a}function Wa(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const $a=typeof BigInt==="function"?BigInt.asIntN:void 0,ab=Number.isSafeInteger,bb=Number.isFinite,cb=Math.trunc;function db(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)}const eb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function fb(a){switch(typeof a){case "bigint":return!0;case "number":return bb(a);case "string":return eb.test(a);default:return!1}}
11
- function gb(a){if(a!=null){if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;bb(a)}}function hb(a){if(a!=null)a:{if(!fb(a))throw xa("int64");switch(typeof a){case "string":var b=cb(Number(a));ab(b)?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=ib(a));break a;case "bigint":a=p($a(64,a));break a;default:a=lb(a)}}return a}
12
- function ib(a){var b=a.length;if(a[0]==="-"?b<20||b===20&&a<="-9223372036854775808":b<19||b===19&&a<="9223372036854775807")return a;if(a.length<16)Va(Number(a));else if(Ea())a=BigInt(a),q=Number(a&BigInt(4294967295))>>>0,t=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");t=q=0;const c=a.length;for(let d=b,e=(c-b)%6+b;e<=c;d=e,e+=6){const f=Number(a.slice(d,e));t*=1E6;q=q*1E6+f;q>=4294967296&&(t+=Math.trunc(q/4294967296),t>>>=0,q>>>=0)}if(b){const [d,e]=Wa(q,t);q=d;t=e}}return Za()}
13
- function lb(a){a=cb(a);if(!ab(a)){Va(a);var b=q,c=t;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);const d=c*4294967296+(b>>>0);b=Number.isSafeInteger(d)?d:Xa(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a}function u(a){if(a!=null&&typeof a!=="string")throw Error();return a}function mb(a,b,c){if(a!=null&&a[Ba]===Fa)return a;if(Array.isArray(a)){var d=a[k]|0;c=d|c&32|c&2;c!==d&&(a[k]=c);return new b(a)}};function nb(a){return a};function ob(a,b,c,d){var e=d!==void 0;d=!!d;const f=[];var g=a.length;let h,m=4294967295,n=!1;const r=!!(b&64),z=r?b&128?0:-1:void 0;if(!(b&1||(h=g&&a[g-1],h!=null&&typeof h==="object"&&h.constructor===Object?(g--,m=g):h=void 0,!r||b&128||e))){n=!0;var A;m=((A=pb)!=null?A:nb)(m-z,z,a,h,void 0)+z}b=void 0;for(e=0;e<g;e++)if(A=a[e],A!=null&&(A=c(A,d))!=null)if(r&&e>=m){const G=e-z;let H;((H=b)!=null?H:b={})[G]=A}else f[e]=A;if(h)for(let G in h){a=h[G];if(a==null||(a=c(a,d))==null)continue;g=+G;let H;
7
+ var ea=this||self;function fa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function ha(a,b){function c(){}c.prototype=b.prototype;a.qa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.oa=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function ia(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ia);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}ha(ia,Error);ia.prototype.name="CustomError";function ja(a){ea.setTimeout(()=>{throw a;},0)};var ka,la;a:{for(var ma=["CLOSURE_FLAGS"],na=ea,oa=0;oa<ma.length;oa++)if(na=na[ma[oa]],na==null){la=null;break a}la=na}var pa=la&&la[748402147];ka=pa!=null?pa:!0;function qa(a,b){b=Array.prototype.indexOf.call(a,b,void 0);b>=0&&Array.prototype.splice.call(a,b,1)};const ra=/[-_.]/g,sa={"-":"+",_:"/",".":"="};function ta(a){return sa[a]||""}var ua={};function va(){return wa||(wa=new xa(null,ua))}var xa=class{constructor(a,b){ya(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};let wa;function ya(a){if(a!==ua)throw Error("illegal external caller");};function za(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let Aa=void 0;function Ba(a){a=Error(a);za(a,"warning");return a};function Ca(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var Da=Ca(),Ea=Ca(),Fa=Ca("m_m",!0);const k=Ca("jas",!0);var Ga;const Ha=[];Ha[k]=7;Ga=Object.freeze(Ha);function Ia(){return typeof BigInt==="function"};var Ja={};function l(a,b){return b===void 0?a.g!==Ka&&!!(2&(a.l[k]|0)):!!(2&b)&&a.g!==Ka}const Ka={};function La(a,b){if(a!=null)if(typeof a==="string")a=a?new xa(a,ua):va();else if(a.constructor!==xa)if(a!=null&&a instanceof Uint8Array)a=a.length?new xa(new Uint8Array(a),ua):va();else{if(!b)throw Error();a=void 0}return a}var Ma=Object.freeze({});function Na(a){a.pa=!0;return a};var Oa=Na(a=>typeof a==="number"),Pa=Na(a=>typeof a==="string"),Qa=Na(a=>typeof a==="boolean");var Ra=typeof ea.BigInt==="function"&&typeof ea.BigInt(0)==="bigint";function p(a){var b=a;if(Pa(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Oa(b)&&!Number.isSafeInteger(b))throw Error(String(b));return Ra?BigInt(a):a=Qa(a)?a?"1":"0":Pa(a)?a.trim()||"0":String(a)}var Xa=Na(a=>Ra?a>=Sa&&a<=Ta:a[0]==="-"?Ua(a,Va):Ua(a,Wa));const Va=Number.MIN_SAFE_INTEGER.toString(),Sa=Ra?BigInt(Number.MIN_SAFE_INTEGER):void 0,Wa=Number.MAX_SAFE_INTEGER.toString(),Ta=Ra?BigInt(Number.MAX_SAFE_INTEGER):void 0;
8
+ function Ua(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(let c=0;c<a.length;c++){const d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};let q=0,t=0;function Ya(a){const b=a>>>0;q=b;t=(a-b)/4294967296>>>0}function Za(a){if(a<0){Ya(-a);const [b,c]=$a(q,t);q=b>>>0;t=c>>>0}else Ya(a)}function ab(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Ia()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+bb(c)+bb(a));return c}
9
+ function bb(a){a=String(a);return"0000000".slice(a.length)+a}function cb(){var a=q,b=t;if(b&2147483648)if(Ia())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=$a(a,b);a="-"+ab(c,d)}else a=ab(a,b);return a}function $a(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const db=typeof BigInt==="function"?BigInt.asIntN:void 0,eb=Number.isSafeInteger,fb=Number.isFinite,gb=Math.trunc;function hb(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)}const ib=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function jb(a){switch(typeof a){case "bigint":return!0;case "number":return fb(a);case "string":return ib.test(a);default:return!1}}
10
+ function kb(a){if(a!=null){if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;fb(a)}}function lb(a){if(a!=null)a:{if(!jb(a))throw Ba("int64");switch(typeof a){case "string":var b=gb(Number(a));eb(b)?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=mb(a));break a;case "bigint":a=p(db(64,a));break a;default:a=pb(a)}}return a}
11
+ function mb(a){var b=a.length;if(a[0]==="-"?b<20||b===20&&a<="-9223372036854775808":b<19||b===19&&a<="9223372036854775807")return a;if(a.length<16)Za(Number(a));else if(Ia())a=BigInt(a),q=Number(a&BigInt(4294967295))>>>0,t=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");t=q=0;const c=a.length;for(let d=b,e=(c-b)%6+b;e<=c;d=e,e+=6){const f=Number(a.slice(d,e));t*=1E6;q=q*1E6+f;q>=4294967296&&(t+=Math.trunc(q/4294967296),t>>>=0,q>>>=0)}if(b){const [d,e]=$a(q,t);q=d;t=e}}return cb()}
12
+ function pb(a){a=gb(a);if(!eb(a)){Za(a);var b=q,c=t;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);const d=c*4294967296+(b>>>0);b=Number.isSafeInteger(d)?d:ab(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a}function u(a){if(a!=null&&typeof a!=="string")throw Error();return a}function qb(a,b,c){if(a!=null&&a[Fa]===Ja)return a;if(Array.isArray(a)){var d=a[k]|0;c=d|c&32|c&2;c!==d&&(a[k]=c);return new b(a)}};function rb(a){return a};function sb(a,b,c,d){var e=d!==void 0;d=!!d;const f=[];var g=a.length;let h,m=4294967295,n=!1;const r=!!(b&64),z=r?b&128?0:-1:void 0;if(!(b&1||(h=g&&a[g-1],h!=null&&typeof h==="object"&&h.constructor===Object?(g--,m=g):h=void 0,!r||b&128||e))){n=!0;var A;m=((A=tb)!=null?A:rb)(m-z,z,a,h,void 0)+z}b=void 0;for(e=0;e<g;e++)if(A=a[e],A!=null&&(A=c(A,d))!=null)if(r&&e>=m){const G=e-z;let H;((H=b)!=null?H:b={})[G]=A}else f[e]=A;if(h)for(let G in h){a=h[G];if(a==null||(a=c(a,d))==null)continue;g=+G;let H;
14
13
  if(r&&!Number.isNaN(g)&&(H=g+z)<m)f[H]=a;else{let R;((R=b)!=null?R:b={})[G]=a}}b&&(n?f.push(b):f[m]=b);return f}
15
- function qb(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return Ta(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[k]|0;return a.length===0&&b&1?void 0:ob(a,b,qb)}if(a!=null&&a[Ba]===Fa)return rb(a);if(a instanceof ta){b=a.g;if(b==null)a="";else if(typeof b==="string")a=b;else{let c="",d=0;const e=b.length-10240;for(;d<e;)c+=String.fromCharCode.apply(null,b.subarray(d,d+=10240));c+=String.fromCharCode.apply(null,d?b.subarray(d):
16
- b);a=a.g=btoa(c)}return a}return}return a}let pb;function rb(a){a=a.l;return ob(a,a[k]|0,qb)};function sb(a){if(a==null){var b=32;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[k]|0;if(la&&1&b)throw Error("rfarr");2048&b&&!(2&b)&&tb();if(b&256)throw Error("farr");if(b&64)return b&2048||(a[k]=b|2048),a;var c=a;b|=64;var d=c.length;if(d){var e=d-1;d=c[e];if(d!=null&&typeof d==="object"&&d.constructor===Object){const f=b&128?0:-1;e-=f;if(e>=1024)throw Error("pvtlmt");for(const g in d){const h=+g;if(h<e)c[h+f]=d[g],delete d[g];else break}b=b&-8380417|(e&1023)<<13}}}a[k]=b|2112;return a}
17
- function tb(){if(la)throw Error("carr");if(Aa!=null){var a;var b=(a=wa)!=null?a:wa={};a=b[Aa]||0;a>=5||(b[Aa]=a+1,b=Error(),va(b,"incident"),ka(b))}};function ub(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[k]|0;a.length===0&&c&1?a=void 0:c&2||(!b||4096&c||16&c?a=vb(a,c,!1,b&&!(c&16)):(a[k]|=34,c&4&&Object.freeze(a)));return a}if(a!=null&&a[Ba]===Fa)return b=a.l,c=b[k]|0,l(a,c)?a:wb(a,b,c)?xb(a,b):vb(b,c);if(a instanceof ta)return a}function xb(a,b,c){a=new a.constructor(b);c&&(a.g=Ga);a.A=Ga;return a}function vb(a,b,c,d){d!=null||(d=!!(34&b));a=ob(a,b,ub,d);d=32;c&&(d|=2);b=b&8380609|d;a[k]=b;return a}
18
- function yb(a){const b=a.l,c=b[k]|0;return l(a,c)?wb(a,b,c)?xb(a,b,!0):new a.constructor(vb(b,c,!1)):a}function zb(a){if(a.g!==Ga)return!1;var b=a.l;b=vb(b,b[k]|0);b[k]|=2048;a.l=b;a.g=void 0;a.A=void 0;return!0}function Ab(a){if(!zb(a)&&l(a,a.l[k]|0))throw Error();}function Bb(a,b){b===void 0&&(b=a[k]|0);b&32&&!(b&4096)&&(a[k]=b|4096)}function wb(a,b,c){return c&2?!0:c&32&&!(c&4096)?(b[k]=c|2,a.g=Ga,!0):!1};const Cb=p(0);function v(a,b,c,d){a=Db(a.l,b,c,d);if(a!==null)return a}function Db(a,b,c,d){if(b===-1)return null;const e=b+(c?0:-1),f=a.length-1;let g,h;if(!(f<1+(c?0:-1))){if(e>=f)if(g=a[f],g!=null&&typeof g==="object"&&g.constructor===Object)c=g[b],h=!0;else if(e===f)c=g;else return;else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return h?g[b]=d:a[e]=d,d}return c}}function Eb(a,b,c){Ab(a);const d=a.l;w(d,d[k]|0,b,c);return a}
19
- function w(a,b,c,d){const e=c+-1;var f=a.length-1;if(f>=0&&e>=f){const g=a[f];if(g!=null&&typeof g==="object"&&g.constructor===Object)return g[c]=d,b}if(e<=f)return a[e]=d,b;if(d!==void 0){let g;f=((g=b)!=null?g:b=a[k]|0)>>13&1023||536870912;c>=f?d!=null&&(a[f+-1]={[c]:d}):a[e]=d}return b}function Fb(a,b,c,d){const e=a.l;var f=e[k]|0;a=x(a,d)===c?c:-1;return Gb(e,f,b,a)!==void 0}function Hb(a){return!!(2&a)&&!!(4&a)||!!(256&a)}function Ib(a){return Ha(a,!0)}
20
- function y(a,b,c,d){Ab(a);const e=a.l;w(e,e[k]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}function x(a,b){a=a.l;return Jb(Kb(a),a,void 0,b)}function Kb(a){let b;return(b=a[za])!=null?b:a[za]=new Map}function Jb(a,b,c,d){let e=a.get(d);if(e!=null)return e;e=0;for(let f=0;f<d.length;f++){const g=d[f];Db(b,g)!=null&&(e!==0&&(c=w(b,c,e)),e=g)}a.set(d,e);return e}
21
- function Gb(a,b,c,d){let e=!1;d=Db(a,d,void 0,f=>{const g=mb(f,c,b);e=g!==f&&g!=null;return g});if(d!=null)return e&&!l(d)&&Bb(a,b),d}function Lb(a,b,c){let d=a.l,e=d[k]|0;b=Gb(d,e,b,c);if(b==null)return b;e=d[k]|0;if(!l(a,e)){const f=yb(b);f!==b&&(zb(a)&&(d=a.l,e=d[k]|0),b=f,e=w(d,e,c,b),Bb(d,e))}return b}function Mb(a){a==null&&(a=void 0);return a}function Nb(a,b,c){c=Mb(c);Eb(a,b,c);c&&!l(c)&&Bb(a.l);return a}
22
- function B(a,b,c,d){d=Mb(d);a:{var e=d;Ab(a);const h=a.l;var f=h[k]|0;if(e==null){var g=Kb(h);if(Jb(g,h,f,c)===b)g.set(c,0);else break a}else{g=h;const m=Kb(g),n=Jb(m,g,f,c);n!==b&&(n&&(f=w(g,f,n)),m.set(c,b))}w(h,f,b,e)}d&&!l(d)&&Bb(a.l);return a}
23
- function Ob(a,b){Ab(a);const c=a.l;let d=c[k]|0;if(b==null)return w(c,d,1),a;let e=b===Ca?7:b[k]|0,f=e;const g=Hb(e),h=g||Object.isFrozen(b);let m=!0,n=!0;for(let z=0;z<b.length;z++){var r=b[z];g||(r=l(r),m&&(m=!r),n&&(n=r))}g||(e=m?13:5,e=n?e&-4097:e|4096);h&&e===f||(b=[...b],f=0,e=Pb(e,d));e!==f&&(b[k]=e);d=w(c,d,1,b);2&e||!(4096&e||16&e)||Bb(c,d);return a}function Pb(a,b){return a=(2&b?a|2:a&-3)&-273}
24
- function Qb(a){a=v(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Rb(a){a=v(a,1);var b=typeof a;a!=null&&(b==="bigint"?a=p($a(64,a)):fb(a)?b==="string"?(b=cb(Number(a)),ab(b)?a=p(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=Ea()?p($a(64,BigInt(a))):p(ib(a)))):ab(a)?a=p(lb(a)):(a=cb(a),ab(a)?a=String(a):(Va(a),a=Za()),a=p(a)):a=void 0);return a!=null?a:Cb}
25
- function C(a,b){a=v(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function D(a,b){a=v(a,b);a=a==null?a:bb(a)?a|0:void 0;return a!=null?a:0}function E(a,b,c,d){c=x(a,d)===c?c:-1;return Lb(a,b,c)}function F(a,b,c){if(c!=null){if(!bb(c))throw xa("enum");c|=0}return y(a,b,c,0)};function Sb(){var a=Tb||(Tb=Ub("[1,2,0]"));a=yb(a);a=Eb(a,4,u("dev-810597686"));const b=a.l,c=b[k]|0;return l(a,c)?a:wb(a,b,c)?xb(a,b):new a.constructor(vb(b,c,!0))}var I=class{constructor(a){this.l=sb(a)}toJSON(){return rb(this)}};I.prototype[Ba]=Fa;I.prototype.toString=function(){return this.l.toString()};function Vb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[k]|=32;b=new a(b)}return b}};var Ub=function(a){return b=>{b=JSON.parse(b);if(!Array.isArray(b)){var c=typeof b;throw Error("Expected jspb data to be an array, got "+(c!="object"?c:b?Array.isArray(b)?"array":c:"null")+": "+b);}b[k]|=34;return new a(b)}}(class extends I{});var Wb=class extends I{};function Xb(a){var b=new Yb(500);let c=0,d;return(...e)=>{Zb(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},$b(b))))}}function ac(a){var b=new Yb(100),c=Promise.resolve();return(...d)=>Zb(b)?a(...d):c};function Zb(a){return bc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function $b(a){const b=a.g;a=bc(a,a.index);return a>=b?0:b-a}function bc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var Yb=class{constructor(a){this.g=a;this.h=[];this.index=0}};var cc=class extends I{},dc=[2,3];var ec=class extends I{};var J=class extends Error{constructor({errorType:a,message:b,i:c}){super(`Meet add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},K={errorType:"InternalError",message:"An unexpected error has occurred.",i:"No further information is available."},fc={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect)."},
26
- hc={errorType:"NeedsMainStageContext",message:"This method can only be invoked if the addon is running in the main stage.",i:"Use getFrameType to check whether the addon is running in the main stage before invoking this method."},ic={errorType:"NeedsSidePanelContext",message:"This method can only be invoked if the addon is running in the side panel.",i:"Use getFrameType to check whether the addon is running in the side panel before invoking this method."},jc={errorType:"NotSupportedInStandalone",
27
- message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},kc={errorType:"MustBeIframed",message:"The SDK must be run in an iframe as part of a Google Meet add-on.",i:"See https://developers.google.com/meet/add-ons/guides/deploy-add-on to deploy to Meet."},lc={errorType:"InternalError",message:"The frame type URL parameter is set to an unexpected value.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect)."},
28
- mc={errorType:"InvalidCloudProjectNumber",message:"Cloud Project Number provided by meet does not match the one passed in by the SDK. Ensure that the correct Cloud Project Number is passed to the SDK as a string.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect) and ensure that the correct Cloud Project Number was passed into the SDK as a string."},nc={errorType:"DestinationNotReady",
29
- message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",i:"Make sure the destination frame has connected before sending messages to it."},oc={errorType:"InvalidActivityStartingState",message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the add-on manifest.",i:"Ensure that the ActivityStartingState iframeURL origins match the origins of the URLs provided in the add-on manifest."},pc={errorType:"ActivityStartingStateMissingAttributes",
30
- message:"The supplied ActivityStartingState object does not contain any recognized attributes.",i:"Ensure that the ActivityStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},qc={errorType:"ActivityStartingStateUnrecognizedAttributes",message:"The supplied ActivityStartingState object contains attributes that are not recognized.",i:"Ensure that the ActivityStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},
31
- sc={errorType:"AddonStartingStateMissingAttributes",message:"The supplied AddonStartingState object does not contain any recognized attributes.",i:"Ensure that the AddonStartingState object contains at least one of the following attributes: sidePanelUrl, additionalData."},tc={errorType:"AddonStartingStateUnrecognizedAttributes",message:"The supplied AddonStartingState object contains attributes that are not recognized.",i:"Ensure that the AddonStartingState object has only the following attributes: sidePanelUrl, additionalData."},
32
- uc=a=>({errorType:"ArgumentNullError",message:`The argument supplied for '${a}' was 'null' but a value was expected.`,i:"Ensure you are passing a value of the expected type for the argument."}),L=(a,b,c)=>({errorType:"ArgumentTypeError",message:`The type '${b}' of argument supplied for '${a}' did not match the expected type '${c}'.`,i:"Ensure the type of the argument provided matches the expected type."}),vc=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,
33
- i:"No further information is available."}),wc={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",i:"Ensure that no activity is ongoing."},xc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message."},yc={errorType:"NoActivityFound",message:"No activity found.",i:"Ensure that the activity is started before performing this operation."},zc={errorType:"RequiresEapEnrollment",
34
- message:"This feature is only available to early access partners.",i:"Meet add-on early access enrollment is currently closed."},Ac={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current activity.",i:"Ensure that the user is the initiator of the current activity or that the activity has ended."},Bc={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",
35
- i:"Ensure that the activityStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Cc={errorType:"SizeLimitExceededFrameToFrameMessage",message:"The size of the frame to frame message exceeds the limits allowed.",i:"Ensure that the frame to frame message size is less than 1,000,000 characters."},Dc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",i:"Only instantiate the AddonSession once."},Ec={errorType:"UserCancelled",
36
- message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},Fc={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},Gc={errorType:"InvalidAddonStartingState",message:"Origin of the AddonStartingState iframeURLs does not match the origin of the URLs provided in the add-on manifest.",i:"Ensure that the AddonStartingState iframeURL origins match the origins of the URLs provided in the add-on manifest."},
37
- Hc={errorType:"SizeLimitExceededAddonStartingState",message:"The size of the AddonStartingState URLs and/or its data exceed the limits allowed.",i:"Ensure that the AddonStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Ic={errorType:"MeetingPolicyPreventsStartingActivity",message:"A meeting policy (such as using host control settings) prevents the user from starting the activity.",i:"Have a meeting host or administrator modify the necessary settings to allow the current user to start the activity."};
38
- function Jc(a){switch(a){case 0:return K;case 1:return nc;case 2:return oc;case 3:return wc;case 4:return xc;case 5:return zc;case 6:return jc;case 7:return Ac;case 8:return Bc;case 9:return Cc;case 10:return Ec;case 11:return Fc;case 12:return Gc;case 13:return Hc;case 14:return yc;case 15:return Ic;default:return K}}
39
- function Kc(a){let b;var c=(b=D(a,1))!=null?b:0;a=Lc(x(a,dc));switch(c){case 1:return{errorType:"InternalError",message:`Could not connect to ${a} channel. Meet did not respond with a MessagePort.`,i:"No further information is available."};case 2:return{errorType:"InternalError",message:`Could not connect to ${a}. A conflicting ${a} exists.`,i:"No further information is available."};case 3:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon does not have permission to open a ${a}.`,
40
- i:"This method might require EAP enrollment."};case 4:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon is not authorized for this ${a}.`,i:"No further information is available."};case 0:return vc(a);case 5:a:switch(a){case "co":c={errorType:"InternalError",message:`Could not connect to ${a} channel. The coActivity was not found.`,i:`Consider starting the ${a} only after after the startActivity promise returns.`};break a;default:c={errorType:"InternalError",message:`Could not connect to ${a} channel.`,
41
- i:"No further information is available."}}return c;default:return vc(a)}}function Lc(a){switch(a){case 2:return"co";case 3:return"gd";case 0:return"unknown";default:return"unknown"}}function M({errorType:a,message:b,i:c},d=""){throw new J({errorType:a,message:d?`${b} ${d}`:b,i:c});}function Mc(a,b){M({...fc,message:`${fc.message}: ${a}. In URL ${b}`})};function Nc(a){var b=new Oc;return F(b,1,a)}function Pc(a,b){return y(a,2,u(b),"")}function Qc(a,b){return y(a,3,u(b),"")}var Oc=class extends I{getFrameType(){return D(this,1)}};function Rc(a){var b=a.l,c=b,d=b[k]|0,e=Oc;b=void 0===Ia?2:4;var f=l(a,d);const g=f?1:b;b=g===3;var h=!f;(g===2||h)&&zb(a)&&(c=a.l,d=c[k]|0);a=Db(c,1);f=Array.isArray(a)?a:Ca;var m=f===Ca?7:f[k]|0;a=m;2&d&&(a|=2);var n=a|1;if(a=!(4&n)){var r=f,z=d;const A=!!(2&n);A&&(z|=2);let G=!A,H=!0,R=0,jb=0;for(;R<r.length;R++){const kb=mb(r[R],e,z);if(kb instanceof e){if(!A){const rc=l(kb);G&&(G=!rc);H&&(H=rc)}r[jb++]=kb}}jb<R&&(r.length=jb);n|=4;n=H?n&-4097:n|4096;n=G?n|8:n&-9}n!==m&&(f[k]=n,2&n&&Object.freeze(f));
42
- if(h&&!(8&n||!f.length&&(g===1||(g!==4?0:2&n||!(16&n)&&32&d)))){Hb(n)&&(f=[...f],n=Pb(n,d),d=w(c,d,1,f));e=f;h=n;for(m=0;m<e.length;m++)r=e[m],n=yb(r),r!==n&&(e[m]=n);h|=8;n=h=e.length?h|4096:h&-4097;f[k]=n}h=e=n;g===1||(g!==4?0:2&e||!(16&e)&&32&d)?Hb(e)||(e|=!f.length||a&&!(4096&e)||32&d&&!(4096&e||16&e)?2:256,e!==h&&(f[k]=e),Object.freeze(f)):(g===2&&Hb(e)&&(f=[...f],h=0,e=Pb(e,d),d=w(c,d,1,f)),Hb(e)||(b||(e|=16),e!==h&&(f[k]=e)));2&e||!(4096&e||16&e)||Bb(c,d);return f}
43
- function Sc(a){var b=new Tc;return Ob(b,a)}var Tc=class extends I{};var Uc=class extends I{};function Vc(a){return Lb(a,Tc,1)}var Wc=class extends I{};var Xc=class extends I{};var Yc=class extends I{};var Zc=class extends I{};var $c=class extends I{getMeetPlatformInfo(){return Lb(this,Yc,1)}};var ad=class extends I{getMeetingInfo(){return Lb(this,Zc,1)}};var bd=class extends I{},N=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];var cd=class extends I{};var dd=class extends I{};var ed=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),fd=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]);function gd(a){a&&typeof a.dispose=="function"&&a.dispose()};function O(){this.o=this.o;this.g=this.g}O.prototype.o=!1;O.prototype.dispose=function(){this.o||(this.o=!0,this.H())};O.prototype[Symbol.dispose]=function(){this.dispose()};function hd(a,b){a.o?b():(a.g||(a.g=[]),a.g.push(b))}O.prototype.H=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function id({J:a,R:b}){if(a===null)throw new J(uc("activityStartingState"));if(b||a!==void 0){if(typeof a!=="object")throw new J(L("activityStartingState",typeof a,`object${b?"":" | undefined"}`));if(a.mainStageUrl!==void 0&&typeof a.mainStageUrl!=="string")throw new J(L("mainStageUrl",typeof a.mainStageUrl,"string | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new J(L("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!==
44
- "string")throw new J(L("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.mainStageUrl+ +!!a.sidePanelUrl+ +!!a.additionalData)throw new J(qc);if(Object.keys(a).length===0)throw new J(pc);}}function jd(a){const b=[];b.push(Qc(Pc(Nc(2),a.mainStageUrl),a.additionalData));b.push(Qc(Pc(Nc(1),a.sidePanelUrl),a.additionalData));return b}
45
- var sd=class extends O{constructor(a){super();this.context=a;this.h={};kd(this.context.g.U,b=>{switch(x(b.content,N)){case 7:const d=this.h.frameToFrameMessage;b=E(b.content,Xc,7,N);if(d&&b){var c=D(b,1);c=ed.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:C(b,2)})}}},this)}async getMeetingInfo(){var a=await ld(this.context.g);var b=a.getMeetingInfo();b=C(b,1);a=a.getMeetingInfo();a=C(a,2);return{meetingId:b,meetingCode:a}}async getFrameOpenReason(){let a;const b=(a=
46
- this.context.h.da)!=null?a:0;let c;return(c=fd.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=Vc(await md(this.context.g));const b=a==null?void 0:Rc(a).find(c=>c.getFrameType()===2);a=a==null?void 0:Rc(a).find(c=>c.getFrameType()===1);return{mainStageUrl:(b==null?void 0:C(b,2))||void 0,sidePanelUrl:(a==null?void 0:C(a,2))||void 0,additionalData:(a==null?void 0:C(a,3))||void 0}}async setActivityStartingState(a){id({J:a,R:!0});var b=jd(a);a=nd;var c=this.context.g;var d=new cd;b=Sc(b);
47
- d=Nb(d,1,b);await a(c,d)}on(a,b){this.h[a]=b}async getMeetPlatformInfo(){var a=(await od(this.context.g)).getMeetPlatformInfo();return{isMeetHardware:Qb(a)}}async closeAddon(){await pd(this.context.g)}async startActivity(a){id({J:a,R:!1});const b=new dd;a&&(a=jd(a),a=Sc(a),Nb(b,1,a));await qd(this.context.g,b)}async endActivity(a){var b=rd,c=this.context.g,d=new Uc;a=F(d,1,a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0);await b(c,a)}};var td=Vb(class extends I{getFrameOpenReason(){return D(this,5)}});function ud(){var a=window.location.href;var b=window.location.href;var c=(new URL(b)).searchParams.get("meet_sdk");if(c)b=td(atob(c));else{var d;((d=window.top)!=null?d:window)===window?M(kc):Mc("meet_sdk",b);b=void 0}(c=C(b,1))||Mc("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new J(lc);(d=C(b,2))||Mc("meet_control_channel_name",a);const e=C(b,4);e||Mc("addon_cloud_project_number",a);var f;a=(f=b.getFrameOpenReason())!=null?f:0;f=C(b,3)||"https://meet.google.com";return{da:a,frameType:c,
48
- ca:d,cloudProjectNumber:e,S:f}};var vd=class extends I{};var wd=class extends I{};var xd=class extends I{};function yd(){var a=new zd,b=new xd;return B(a,1,Ad,b)}var zd=class extends I{},Ad=[1,2];function Bd(a){var b=new Cd;return Nb(b,2,a)}function Dd(a,b){return y(a,3,u(b),"")}var Cd=class extends I{};var Ed=class extends I{};var Fd=class extends I{};var Gd=class extends I{};var Hd=class extends I{};var Id=class extends I{};var Jd=class extends I{};var Kd=class extends I{setAddonStartingState(a){return Nb(this,1,a)}};var Ld=class extends I{};function Md(a,b){return B(a,2,P,b)}var Q=class extends I{},P=[1,2,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20];function Nd(a){return E(a,bd,2,Od)}var Pd=class extends I{},Qd=Vb(Pd),Od=[1,2];class Rd{constructor(a,b){this.data=a;this.channel=b}};var Sd=Promise;function Td(a){const b=new MessageChannel;Ud(b.port1,a);return b}function Vd(a,b){Ud(a,b);return new Wd(a)}class Wd{constructor(a){this.g=a}send(a,b,c=[]){b=Td(b);this.g.postMessage(a,[b.port2].concat(c))}D(a,b){return new Sd(c=>{this.send(a,c,b)})}}function Ud(a,b){b&&(a.onmessage=c=>{var d=c.data;c=Vd(c.ports[0]);b(new Rd(d,c))})};var Xd=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?a=>a&&AsyncContext.Snapshot.wrap(a):a=>a;function Yd(a,b){a.m(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)}class Zd{constructor(a,b){this.j=a;this.m=b;this.h=0;this.g=null}get(){let a;this.h>0?(this.h--,a=this.g,this.g=a.next,a.next=null):a=this.j();return a}};function $d(){var a=ae;let b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}class be{constructor(){this.h=this.g=null}add(a,b){const c=ce.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}}var ce=new Zd(()=>new de,a=>a.reset());class de{constructor(){this.next=this.g=this.h=null}set(a,b){this.h=a;this.g=b;this.next=null}reset(){this.next=this.g=this.h=null}};let ee,fe=!1,ae=new be,he=(a,b)=>{ee||ge();fe||(ee(),fe=!0);ae.add(a,b)},ge=()=>{const a=Promise.resolve(void 0);ee=()=>{a.then(ie)}};function ie(){let a;for(;a=$d();){try{a.h.call(a.g)}catch(b){ka(b)}Yd(ce,a)}fe=!1};function je(){};function S(a){this.g=0;this.T=void 0;this.m=this.h=this.j=null;this.u=this.A=!1;if(a!=je)try{const b=this;a.call(void 0,function(c){ke(b,2,c)},function(c){ke(b,3,c)})}catch(b){ke(this,3,b)}}function le(){this.next=this.context=this.h=this.m=this.g=null;this.j=!1}le.prototype.reset=function(){this.context=this.h=this.m=this.g=null;this.j=!1};var me=new Zd(function(){return new le},function(a){a.reset()});function ne(a,b,c){const d=me.get();d.m=a;d.h=b;d.context=c;return d}
49
- function oe(){let a,b;const c=new S(function(d,e){a=d;b=e});return new pe(c,a,b)}S.prototype.then=function(a,b,c){return qe(this,Xd(typeof a==="function"?a:null),Xd(typeof b==="function"?b:null),c)};S.prototype.$goog_Thenable=!0;function re(a,b){b=Xd(b);b=ne(b,b);b.j=!0;se(a,b)}S.prototype.cancel=function(a){if(this.g==0){const b=new T(a);he(function(){te(this,b)},this)}};
50
- function te(a,b){if(a.g==0)if(a.j){var c=a.j;if(c.h){var d=0,e=null,f=null;for(let g=c.h;g&&(g.j||(d++,g.g==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.g==0&&d==1?te(c,b):(f?(d=f,d.next==c.m&&(c.m=d),d.next=d.next.next):ue(c),ve(c,e,3,b)))}a.j=null}else ke(a,3,b)}function se(a,b){a.h||a.g!=2&&a.g!=3||we(a);a.m?a.m.next=b:a.h=b;a.m=b}
51
- function qe(a,b,c,d){const e=ne(null,null,null);e.g=new S(function(f,g){e.m=b?function(h){try{const m=b.call(d,h);f(m)}catch(m){g(m)}}:f;e.h=c?function(h){try{const m=c.call(d,h);m===void 0&&h instanceof T?g(h):f(m)}catch(m){g(m)}}:g});e.g.j=a;se(a,e);return e.g}S.prototype.na=function(a){this.g=0;ke(this,2,a)};S.prototype.Y=function(a){this.g=0;ke(this,3,a)};
52
- function ke(a,b,c){if(a.g==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.na,f=a.Y;if(d instanceof S){se(d,ne(e||je,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(m){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{h=typeof d;if(h=="object"&&d!=null||h=="function")try{const m=d.then;if(typeof m==="function"){xe(d,m,e,f,a);g=!0;break a}}catch(m){f.call(a,m);g=!0;break a}g=!1}}}g||(a.T=c,a.g=b,a.j=null,we(a),b!=3||c instanceof T||ye(a,c))}}
53
- function xe(a,b,c,d,e){function f(m){h||(h=!0,d.call(e,m))}function g(m){h||(h=!0,c.call(e,m))}let h=!1;try{b.call(a,g,f)}catch(m){f(m)}}function we(a){a.A||(a.A=!0,he(a.ma,a))}function ue(a){let b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.m=null);return b}S.prototype.ma=function(){let a;for(;a=ue(this);)ve(this,a,this.g,this.T);this.A=!1};
54
- function ve(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.u;a=a.j)a.u=!1;if(b.g)b.g.j=null,ze(b,c,d);else try{b.j?b.m.call(b.context):ze(b,c,d)}catch(e){Ae.call(null,e)}Yd(me,b)}function ze(a,b,c){b==2?a.m.call(a.context,c):a.h&&a.h.call(a.context,c)}function ye(a,b){a.u=!0;he(function(){a.u&&Ae.call(null,b)})}var Ae=ka;function T(a){ja.call(this,a)}ia(T,ja);T.prototype.name="cancel";function pe(a,b,c){this.promise=a;this.resolve=b;this.reject=c};let Be=1,Ce=new WeakMap;function De(a,b,c){var d=Ee;a.h.has(b);d(b,c)}var Ge=class extends O{constructor(){super();this.h=new Set}signal(){const a=new Fe;this.h.add(a);hd(this,ha(gd,a));return a}};function Ee(a,b){return new Promise(c=>{He(()=>{a.L&&(a.fa=b,a.P=!0);for(const {I:d,slot:e}of a.v.values())try{e(b,{signal:a,I:d})}catch(f){ka(f)}for(const d of a.C)d.resolve(b);a.C.clear();c()})})}function kd(a,b,c){const d=Be++;He(()=>{Ie(a,d,b,c)})}
55
- function Ie(a,b,c,d){if(!a.o)if(d){if(!d.o){const e=()=>{He(()=>{a.v.delete(b);const f=Ce.get(d);f&&ma(f,e)})};a.v.set(b,{I:b,slot:c,G:e});Je(d,e)}}else a.v.set(b,{I:b,slot:c,G:()=>a.v.delete(b)})}
56
- var Fe=class extends O{constructor(){super();this.L=!1;this.v=new Map;this.C=new Set;this.P=!1}detach(a){He(()=>{const b=this.v.get(a);b&&b.G()})}value(a){return this.promise(!0,a)}next(a){return this.promise(!1,a)}promise(a,b){const c=oe();He(()=>{if(this.o)c.reject(new T("Signal initially disposed"));else if(b&&b.o)c.reject(new T("Owner initially disposed"));else if(a&&this.L&&this.P)c.resolve(this.fa);else if(this.C.add(c),re(c.promise,()=>{this.C.delete(c)}),b){const d=()=>{c.reject(new T("Owner asynchronously disposed"))};
57
- re(c.promise,()=>{const e=Ce.get(b);e&&ma(e,d)});Je(b,d)}});return c.promise}H(){super.H();He(()=>{for(const {G:a}of this.v.values())a();this.v.clear();for(const a of this.C)a.reject(new T("Signal asynchronously disposed"));this.C.clear()})}};const Ke=[];let Le=!1;function He(a){Ke.push(a);Me()}async function Me(){if(!Le)try{Le=!0;let a=Ne(0);for(;a<Ke.length;)await Promise.resolve(),a=Ne(a)}catch(a){ka(a)}finally{Ke.length=0,Le=!1}}
58
- function Ne(a){const b=a+100;for(;a<b&&a<Ke.length;)try{Ke[a++]()}catch(c){ka(c)}return a}function Je(a,b){if(a.o)b();else{var c=Ce.get(a);if(c)c.push(b);else{const d=[b];Ce.set(a,d);hd(a,()=>{for(const e of[...d])e();Ce.delete(a)})}}};function U(a){var b=new Pd;a=B(b,1,Od,a);return{content:JSON.stringify(rb(a))}}const Oe=new Ge;function Pe(a,b){const c=Oe.signal();return{channel:Vd(a,d=>{const e=b(d.data);De(Oe,c,{content:e,la:d})}),signal:c}};let Tb;var V=class extends I{};var W=class extends I{};var Re=class extends I{j(){return E(this,V,2,Qe)}h(){return Fb(this,V,2,Qe)}m(){return E(this,W,3,Qe)}u(){return Fb(this,W,3,Qe)}},Qe=[2,3];var Se=Vb(class extends I{});var Te=Vb(class extends I{}),Ue=[1,2];var Ve=({destination:a,origin:b,ra:c,Z:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=Td(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return Vd(f.port1,e)};function We(a,b,c){const d=new Ge,e=d.signal();a=Ve({destination:window.parent,origin:b,Z:a,onMessage:f=>{const g=Qd(f.data.content);x(g,Od)===2&&De(d,e,{content:Nd(g),la:f,messagePort:f.data.messagePort})}});return new Xe(e,a,c)}async function ld(a){var b=X;var c=new Q;var d=new Gd;c=B(c,19,P,d);a=await b(a,U(c));let e;return(e=Nd(Qd(a.data.content)))==null?void 0:E(e,ad,20,N)}
59
- async function md(a){var b=X;var c=new Q;var d=new wd;c=B(c,17,P,d);a=await b(a,U(c));let e;return(e=Nd(Qd(a.data.content)))==null?void 0:E(e,Wc,18,N)}async function nd(a,b){var c=X,d=new Q;b=B(d,8,P,b);await c(a,U(b))}async function od(a){var b=X;var c=new Q;var d=new Fd;c=B(c,18,P,d);a=await b(a,U(c));let e;return(e=Nd(Qd(a.data.content)))==null?void 0:E(e,$c,19,N)}async function pd(a){var b=X;var c=new Q;var d=new vd;c=B(c,11,P,d);await b(a,U(c))}
60
- async function qd(a,b){var c=X,d=new Q;b=B(d,14,P,b);await c(a,U(b))}async function rd(a,b){var c=X,d=new Q;b=B(d,15,P,b);await c(a,U(b))}async function Ye(a){await a.h()}
61
- async function X(a,b){(a=await a.channel.D(b))||M(K,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||M(K,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||M(K,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Qd(b)}catch(d){M(K,"The ControlMessage can't be deserialized."+` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=Nd(c))||M(K,"MeetToAddonMessage field on ControlMessage is falsy."+
62
- ` ${JSON.stringify(b)}`);b=b==null?void 0:E(b,ec,10,N);if((b==null?void 0:D(b,1))!==void 0)throw a=D(b,1),new J(Jc(a));return a}async function Ze(a,b,c){var d=X,e=new Q;b=B(e,1,P,b);d=await d(a,U(b));a=d.data.messagePort;var f;(d=(f=Nd(Qd(d.data.content)))==null?void 0:E(f,cc,1,N))!=null?f=d:(f=new cc,f=F(f,1,0));return{channel:a?Pe(a,c):void 0,response:f}}async function $e(a){const b=yd(),{channel:c,response:d}=await Ze(a,b,e=>Te(e));if(!c)throw new J(Kc(d));return c}
63
- async function af(a){var b=X;var c=new Q;var d=new Ld;c=B(c,5,P,d);await b(a,U(c))}async function bf(a){var b=X;var c=new Q;var d=new Ed;c=B(c,6,P,d);await b(a,U(c))}async function cf(a,b,c){var d=X,e=new Q,f=new Hd;b=F(f,1,b);c=y(b,2,u(c),"");e=B(e,7,P,c);await d(a,U(e))}async function df(a,b){var c=X,d=new Q;b=B(d,16,P,b);await c(a,U(b))}
64
- class Xe extends O{constructor(a,b,c){super();this.U=a;this.channel=b;this.h=ac(async()=>{var d=this.channel,e=d.D;var f=new Q;var g=new Id;f=B(f,13,P,g);await e.call(d,U(f))});a=Sb();C(a,4);gb(v(a,1));gb(v(a,2));gb(v(a,3));c=Md(new Q,Dd(Bd(a),c));this.channel.send(U(c));kd(this.U,async d=>{switch(x(d.content,N)){case 16:await Ye(this)}},this)}};let ef;var ff=class{constructor(a){var b=ef;this.h=a;this.g=b}delete(){throw Error("Not implemented.");}};var hf=class extends I{j(){return E(this,V,2,gf)}h(){return Fb(this,V,2,gf)}m(){return E(this,W,3,gf)}u(){return Fb(this,W,3,gf)}},gf=[2,3];var jf=class extends I{};var kf=class extends I{};var lf=class extends I{};var nf=class extends I{j(){return E(this,V,2,mf)}h(){return Fb(this,V,2,mf)}m(){return E(this,W,3,mf)}u(){return Fb(this,W,3,mf)}},mf=[2,3],of=[5,6];var pf=class extends I{};var qf=class extends I{},rf=[1,2,3];var sf=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var tf=class{constructor(a){this.config=a}start(){this.g!=null||(this.g=setInterval(()=>{this.config.ia()},this.config.ea));return this}shutdown(){clearInterval(this.g)}};function uf(a){return Ta(a)?Number(a):String(a)};function vf(){const a=new Map,b={set(c,d){a.set(c,d);return b},F:()=>a};return b};function wf(a){if(a.h()){a=a.j();a=v(a,1,void 0,Ib);var b=a==null?ra():a;a=Uint8Array;ua(qa);var c=b.g;if(!(c==null||c!=null&&c instanceof Uint8Array))if(typeof c==="string"){c=na.test(c)?c.replace(na,pa):c;c=atob(c);const d=new Uint8Array(c.length);for(let e=0;e<c.length;e++)d[e]=c.charCodeAt(e);c=d}else c=null;b=c==null?c:b.g=c;return{bytes:new a(b||0)}}}function xf(a,b){b=yf(b);B(a,2,mf,b);return a}function zf(a,b){b=yf(b);B(a,2,gf,b);return a}
65
- function yf(a){var b=new V;return y(b,1,Ha(a.bytes,!1),ra())}function Af(a){if(a.u()){a=a.m();var b,c=C(a,1);var d=(b=Lb(a,Wb,2))==null?void 0:Rb(b);b=d!=null?uf(d):void 0;b=b!=null?b:0;let e;d=(e=v(a,4,void 0,db))!=null?e:0;return{mediaId:c,mediaPlayoutPosition:b,mediaPlayoutRate:d,playbackState:Bf.get(D(a,3))}}}function Cf(a,b){b=Df(b);B(a,3,mf,b);return a}function Ef(a,b){b=Df(b);B(a,3,gf,b);return a}
66
- const Bf=vf().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").F(),Ff=vf().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).F();function Df(a){var b=new W;b=y(b,1,u(a.mediaId),"");var c=a.mediaPlayoutRate;if(c!=null&&typeof c!=="number")throw Error(`Value of float/double field must be a number, found ${typeof c}: ${c}`);b=y(b,4,c,0);c=new Wb;c=y(c,1,hb(a.mediaPlayoutPosition),"0");b=Nb(b,2,c);a=Ff.get(a.playbackState);return F(b,3,a)}
67
- function Gf({activityTitle:a}){var b=new lf;return Eb(b,4,u(a))}function Hf(a,b){var c=new kf;b=F(c,1,b.B);B(a,6,of,b);return a}function If(a){var b=new jf;B(a,5,of,b);return a};const Jf=vf().set("co-doing",1).set("co-watching",2).F();async function Kf(a,b,c){var d=b.D,e=new qf;var f=new pf;f=y(f,1,u(a.activityTitle),"");var g=Jf.get(a.K);f=F(f,2,g);e=B(e,3,rf,f);d=await d.call(b,e,Se);let h;if((h=Qb(d))!=null&&h)return new Lf(a,b,c,Lb(d,Re,2));throw new sf;}function Mf(a,b){const c=a.config.N(b);c&&!a.config.M(a.g,c)&&(a.g=c,a.j=uf(Rb(b)),a.u(a.g))}function Y(a,b){const {state:c,ga:d,context:e}=b(a.g);a.g=c;a.notify(a.g,e,d)}
68
- class Lf{constructor(a,b,c,d){this.m=a;this.h=b;this.config=c;this.u=Xb(e=>void this.m.O(e));Nf(this.h,e=>{const f=x(e,Ue);switch(f){case 1:Mf(this,E(e,Re,1,Ue));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.A=(new tf({ea:1E3,ia:()=>{var e,f,g=(f=(e=this.m).ka)==null?void 0:f.call(e);if(this.g!==null){this.g={...this.g,...g};e=new qf;f=this.config;g=f.W;var h=new hf;h=y(h,1,hb(this.j),"0");f=g.call(f,h,this.g);
69
- e=B(e,1,rf,f);this.h.send(e)}}})).start();this.g=null;this.j=0;d&&Mf(this,d)}disconnect(){this.h.shutdown();this.A.shutdown()}notify(a,b,c){var d=c?Gf(c):void 0;c=this.config;var e=c.X;var f=new nf;f=y(f,1,hb(this.j),"0");d=Nb(f,4,d);a=e.call(c,d,a);a=this.config.V(a,b);b=this.h;c=b.send;e=new qf;a=B(e,2,rf,a);c.call(b,a)}};var Of=class{constructor(a){this.g=a}broadcastStateUpdate(a){Y(this.g,()=>({state:a,context:{}}))}disconnect(){this.g.disconnect()}};function Pf(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Qf=class{constructor(a){this.g=a}notifySwitchedToMedia(a,b,c){Y(this.g,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},ga:{activityTitle:a},context:{B:1}}))}notifyPauseState(a,b){Y(this.g,c=>{if(c==null)throw Error("Invalid before coWatchingState");return{state:{...c,playbackState:a?"PAUSE":"PLAY",mediaPlayoutPosition:b},context:{B:3}}})}notifySeekToTimestamp(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
14
+ function ub(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return Xa(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[k]|0;return a.length===0&&b&1?void 0:sb(a,b,ub)}if(a!=null&&a[Fa]===Ja)return vb(a);if(a instanceof xa){b=a.g;if(b==null)a="";else if(typeof b==="string")a=b;else{let c="",d=0;const e=b.length-10240;for(;d<e;)c+=String.fromCharCode.apply(null,b.subarray(d,d+=10240));c+=String.fromCharCode.apply(null,d?b.subarray(d):
15
+ b);a=a.g=btoa(c)}return a}return}return a}let tb;function vb(a){a=a.l;return sb(a,a[k]|0,ub)};function wb(a){if(a==null){var b=32;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[k]|0;if(ka&&1&b)throw Error("rfarr");2048&b&&!(2&b)&&xb();if(b&256)throw Error("farr");if(b&64)return b&2048||(a[k]=b|2048),a;var c=a;b|=64;var d=c.length;if(d){var e=d-1;d=c[e];if(d!=null&&typeof d==="object"&&d.constructor===Object){const f=b&128?0:-1;e-=f;if(e>=1024)throw Error("pvtlmt");for(const g in d){const h=+g;if(h<e)c[h+f]=d[g],delete d[g];else break}b=b&-16760833|(e&1023)<<14}}}a[k]=b|2112;return a}
16
+ function xb(){if(ka)throw Error("carr");if(Ea!=null){var a;var b=(a=Aa)!=null?a:Aa={};a=b[Ea]||0;a>=5||(b[Ea]=a+1,b=Error(),za(b,"incident"),ja(b))}};function yb(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[k]|0;a.length===0&&c&1?a=void 0:c&2||(!b||4096&c||16&c?a=zb(a,c,!1,b&&!(c&16)):(a[k]|=34,c&4&&Object.freeze(a)));return a}if(a!=null&&a[Fa]===Ja)return b=a.l,c=b[k]|0,l(a,c)?a:Ab(a,b,c)?Bb(a,b):zb(b,c);if(a instanceof xa)return a}function Bb(a,b,c){a=new a.constructor(b);c&&(a.g=Ka);a.A=Ka;return a}function zb(a,b,c,d){d!=null||(d=!!(34&b));a=sb(a,b,yb,d);d=32;c&&(d|=2);b=b&16769217|d;a[k]=b;return a}
17
+ function Cb(a){const b=a.l,c=b[k]|0;return l(a,c)?Ab(a,b,c)?Bb(a,b,!0):new a.constructor(zb(b,c,!1)):a}function Db(a){if(a.g!==Ka)return!1;var b=a.l;b=zb(b,b[k]|0);b[k]|=2048;a.l=b;a.g=void 0;a.A=void 0;return!0}function Eb(a){if(!Db(a)&&l(a,a.l[k]|0))throw Error();}function Fb(a,b){b===void 0&&(b=a[k]|0);b&32&&!(b&4096)&&(a[k]=b|4096)}function Ab(a,b,c){return c&2?!0:c&32&&!(c&4096)?(b[k]=c|2,a.g=Ka,!0):!1};const Gb=p(0);function v(a,b,c,d){a=Hb(a.l,b,c,d);if(a!==null)return a}function Hb(a,b,c,d){if(b===-1)return null;const e=b+(c?0:-1),f=a.length-1;let g,h;if(!(f<1+(c?0:-1))){if(e>=f)if(g=a[f],g!=null&&typeof g==="object"&&g.constructor===Object)c=g[b],h=!0;else if(e===f)c=g;else return;else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return h?g[b]=d:a[e]=d,d}return c}}function Ib(a,b,c){Eb(a);const d=a.l;w(d,d[k]|0,b,c);return a}
18
+ function w(a,b,c,d){const e=c+-1;var f=a.length-1;if(f>=0&&e>=f){const g=a[f];if(g!=null&&typeof g==="object"&&g.constructor===Object)return g[c]=d,b}if(e<=f)return a[e]=d,b;if(d!==void 0){let g;f=((g=b)!=null?g:b=a[k]|0)>>14&1023||536870912;c>=f?d!=null&&(a[f+-1]={[c]:d}):a[e]=d}return b}function Jb(a,b,c,d){const e=a.l;var f=e[k]|0;a=x(a,d)===c?c:-1;return Kb(e,f,b,a)!==void 0}function Lb(a){return!!(2&a)&&!!(4&a)||!!(256&a)}function Mb(a){return La(a,!0)}
19
+ function y(a,b,c,d){Eb(a);const e=a.l;w(e,e[k]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}function x(a,b){a=a.l;return Nb(Ob(a),a,void 0,b)}function Ob(a){let b;return(b=a[Da])!=null?b:a[Da]=new Map}function Nb(a,b,c,d){let e=a.get(d);if(e!=null)return e;e=0;for(let f=0;f<d.length;f++){const g=d[f];Hb(b,g)!=null&&(e!==0&&(c=w(b,c,e)),e=g)}a.set(d,e);return e}
20
+ function Kb(a,b,c,d){let e=!1;d=Hb(a,d,void 0,f=>{const g=qb(f,c,b);e=g!==f&&g!=null;return g});if(d!=null)return e&&!l(d)&&Fb(a,b),d}function Pb(a,b,c){let d=a.l,e=d[k]|0;b=Kb(d,e,b,c);if(b==null)return b;e=d[k]|0;if(!l(a,e)){const f=Cb(b);f!==b&&(Db(a)&&(d=a.l,e=d[k]|0),b=f,e=w(d,e,c,b),Fb(d,e))}return b}function Qb(a){a==null&&(a=void 0);return a}function Rb(a,b,c){c=Qb(c);Ib(a,b,c);c&&!l(c)&&Fb(a.l);return a}
21
+ function B(a,b,c,d){d=Qb(d);a:{var e=d;Eb(a);const h=a.l;var f=h[k]|0;if(e==null){var g=Ob(h);if(Nb(g,h,f,c)===b)g.set(c,0);else break a}else{g=h;const m=Ob(g),n=Nb(m,g,f,c);n!==b&&(n&&(f=w(g,f,n)),m.set(c,b))}w(h,f,b,e)}d&&!l(d)&&Fb(a.l);return a}
22
+ function Sb(a,b){Eb(a);const c=a.l;let d=c[k]|0;if(b==null)return w(c,d,1),a;let e=b===Ga?7:b[k]|0,f=e;const g=Lb(e),h=g||Object.isFrozen(b);let m=!0,n=!0;for(let z=0;z<b.length;z++){var r=b[z];g||(r=l(r),m&&(m=!r),n&&(n=r))}g||(e=m?13:5,e=n?e&-4097:e|4096);h&&e===f||(b=[...b],f=0,e=Tb(e,d));e!==f&&(b[k]=e);d=w(c,d,1,b);2&e||!(4096&e||16&e)||Fb(c,d);return a}function Tb(a,b){return a=(2&b?a|2:a&-3)&-273}
23
+ function Ub(a){a=v(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Vb(a){a=v(a,1);var b=typeof a;a!=null&&(b==="bigint"?a=p(db(64,a)):jb(a)?b==="string"?(b=gb(Number(a)),eb(b)?a=p(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=Ia()?p(db(64,BigInt(a))):p(mb(a)))):eb(a)?a=p(pb(a)):(a=gb(a),eb(a)?a=String(a):(Za(a),a=cb()),a=p(a)):a=void 0);return a!=null?a:Gb}
24
+ function C(a,b){a=v(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function D(a,b){a=v(a,b);a=a==null?a:fb(a)?a|0:void 0;return a!=null?a:0}function E(a,b,c,d){c=x(a,d)===c?c:-1;return Pb(a,b,c)}function F(a,b,c){if(c!=null){if(!fb(c))throw Ba("enum");c|=0}return y(a,b,c,0)};function Wb(){var a=Xb||(Xb=Yb("[1,2,0]"));a=Cb(a);a=Ib(a,4,u("dev-811518847"));const b=a.l,c=b[k]|0;return l(a,c)?a:Ab(a,b,c)?Bb(a,b):new a.constructor(zb(b,c,!0))}var I=class{constructor(a){this.l=wb(a)}toJSON(){return vb(this)}};I.prototype[Fa]=Ja;I.prototype.toString=function(){return this.l.toString()};function Zb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[k]|=32;b=new a(b)}return b}};var Yb=function(a){return b=>{b=JSON.parse(b);if(!Array.isArray(b)){var c=typeof b;throw Error("Expected jspb data to be an array, got "+(c!="object"?c:b?Array.isArray(b)?"array":c:"null")+": "+b);}b[k]|=34;return new a(b)}}(class extends I{});var $b=class extends I{};function ac(a){var b=new bc(500);let c=0,d;return(...e)=>{cc(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},dc(b))))}}function ec(a){var b=new bc(100),c=Promise.resolve();return(...d)=>cc(b)?a(...d):c};function cc(a){return fc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function dc(a){const b=a.g;a=fc(a,a.index);return a>=b?0:b-a}function fc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var bc=class{constructor(a){this.g=a;this.h=[];this.index=0}};var hc=class extends I{},ic=[2,3];var jc=class extends I{};var J=class extends Error{constructor({errorType:a,message:b,i:c}){super(`Meet add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},K={errorType:"InternalError",message:"An unexpected error has occurred.",i:"No further information is available."},kc={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect)."},
25
+ lc={errorType:"NeedsMainStageContext",message:"This method can only be invoked if the addon is running in the main stage.",i:"Use getFrameType to check whether the addon is running in the main stage before invoking this method."},mc={errorType:"NeedsSidePanelContext",message:"This method can only be invoked if the addon is running in the side panel.",i:"Use getFrameType to check whether the addon is running in the side panel before invoking this method."},nc={errorType:"NotSupportedInStandalone",
26
+ message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},oc={errorType:"MustBeIframed",message:"The SDK must be run in an iframe as part of a Google Meet add-on.",i:"See https://developers.google.com/meet/add-ons/guides/deploy-add-on to deploy to Meet."},pc={errorType:"InternalError",message:"The frame type URL parameter is set to an unexpected value.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect)."},
27
+ qc={errorType:"InvalidCloudProjectNumber",message:"Cloud Project Number provided by meet does not match the one passed in by the SDK. Ensure that the correct Cloud Project Number is passed to the SDK as a string.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect) and ensure that the correct Cloud Project Number was passed into the SDK as a string."},rc={errorType:"DestinationNotReady",
28
+ message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",i:"Make sure the destination frame has connected before sending messages to it."},sc={errorType:"InvalidActivityStartingState",message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the add-on manifest.",i:"Ensure that the ActivityStartingState iframeURL origins match the origins of the URLs provided in the add-on manifest."},tc={errorType:"ActivityStartingStateMissingAttributes",
29
+ message:"The supplied ActivityStartingState object does not contain any recognized attributes.",i:"Ensure that the ActivityStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},uc={errorType:"ActivityStartingStateUnrecognizedAttributes",message:"The supplied ActivityStartingState object contains attributes that are not recognized.",i:"Ensure that the ActivityStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},
30
+ wc={errorType:"AddonStartingStateMissingAttributes",message:"The supplied AddonStartingState object does not contain any recognized attributes.",i:"Ensure that the AddonStartingState object contains at least one of the following attributes: sidePanelUrl, additionalData."},xc={errorType:"AddonStartingStateUnrecognizedAttributes",message:"The supplied AddonStartingState object contains attributes that are not recognized.",i:"Ensure that the AddonStartingState object has only the following attributes: sidePanelUrl, additionalData."},
31
+ yc=a=>({errorType:"ArgumentNullError",message:`The argument supplied for '${a}' was 'null' but a value was expected.`,i:"Ensure you are passing a value of the expected type for the argument."}),L=(a,b,c)=>({errorType:"ArgumentTypeError",message:`The type '${b}' of argument supplied for '${a}' did not match the expected type '${c}'.`,i:"Ensure the type of the argument provided matches the expected type."}),zc=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,
32
+ i:"No further information is available."}),Ac={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",i:"Ensure that no activity is ongoing."},Bc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message."},Cc={errorType:"NoActivityFound",message:"No activity found.",i:"Ensure that the activity is started before performing this operation."},Dc={errorType:"RequiresEapEnrollment",
33
+ message:"This feature is only available to early access partners.",i:"Meet add-on early access enrollment is currently closed."},Ec={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current activity.",i:"Ensure that the user is the initiator of the current activity or that the activity has ended."},Fc={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",
34
+ i:"Ensure that the activityStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Gc={errorType:"SizeLimitExceededFrameToFrameMessage",message:"The size of the frame to frame message exceeds the limits allowed.",i:"Ensure that the frame to frame message size is less than 1,000,000 characters."},Hc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",i:"Only instantiate the AddonSession once."},Ic={errorType:"UserCancelled",
35
+ message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},Jc={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},Kc={errorType:"InvalidAddonStartingState",message:"Origin of the AddonStartingState iframeURLs does not match the origin of the URLs provided in the add-on manifest.",i:"Ensure that the AddonStartingState iframeURL origins match the origins of the URLs provided in the add-on manifest."},
36
+ Lc={errorType:"SizeLimitExceededAddonStartingState",message:"The size of the AddonStartingState URLs and/or its data exceed the limits allowed.",i:"Ensure that the AddonStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Mc={errorType:"MeetingPolicyPreventsStartingActivity",message:"A meeting policy (such as using host control settings) prevents the user from starting the activity.",i:"Have a meeting host or administrator modify the necessary settings to allow the current user to start the activity."};
37
+ function Nc(a){switch(a){case 0:return K;case 1:return rc;case 2:return sc;case 3:return Ac;case 4:return Bc;case 5:return Dc;case 6:return nc;case 7:return Ec;case 8:return Fc;case 9:return Gc;case 10:return Ic;case 11:return Jc;case 12:return Kc;case 13:return Lc;case 14:return Cc;case 15:return Mc;default:return K}}
38
+ function Oc(a){let b;var c=(b=D(a,1))!=null?b:0;a=Pc(x(a,ic));switch(c){case 1:return{errorType:"InternalError",message:`Could not connect to ${a} channel. Meet did not respond with a MessagePort.`,i:"No further information is available."};case 2:return{errorType:"InternalError",message:`Could not connect to ${a}. A conflicting ${a} exists.`,i:"No further information is available."};case 3:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon does not have permission to open a ${a}.`,
39
+ i:"This method might require EAP enrollment."};case 4:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon is not authorized for this ${a}.`,i:"No further information is available."};case 0:return zc(a);case 5:a:switch(a){case "co":c={errorType:"InternalError",message:`Could not connect to ${a} channel. The coActivity was not found.`,i:`Consider starting the ${a} only after after the startActivity promise returns.`};break a;default:c={errorType:"InternalError",message:`Could not connect to ${a} channel.`,
40
+ i:"No further information is available."}}return c;default:return zc(a)}}function Pc(a){switch(a){case 2:return"co";case 3:return"gd";case 0:return"unknown";default:return"unknown"}}function M({errorType:a,message:b,i:c},d=""){throw new J({errorType:a,message:d?`${b} ${d}`:b,i:c});}function Qc(a,b){M({...kc,message:`${kc.message}: ${a}. In URL ${b}`})};function Rc(a){var b=new Sc;return F(b,1,a)}function Tc(a,b){return y(a,2,u(b),"")}function Uc(a,b){return y(a,3,u(b),"")}var Sc=class extends I{getFrameType(){return D(this,1)}};function Vc(a){var b=a.l,c=b,d=b[k]|0,e=Sc;b=void 0===Ma?2:4;var f=l(a,d);const g=f?1:b;b=g===3;var h=!f;(g===2||h)&&Db(a)&&(c=a.l,d=c[k]|0);a=Hb(c,1);f=Array.isArray(a)?a:Ga;var m=f===Ga?7:f[k]|0;a=m;2&d&&(a|=2);var n=a|1;if(a=!(4&n)){var r=f,z=d;const A=!!(2&n);A&&(z|=2);let G=!A,H=!0,R=0,nb=0;for(;R<r.length;R++){const ob=qb(r[R],e,z);if(ob instanceof e){if(!A){const vc=l(ob);G&&(G=!vc);H&&(H=vc)}r[nb++]=ob}}nb<R&&(r.length=nb);n|=4;n=H?n&-4097:n|4096;n=G?n|8:n&-9}n!==m&&(f[k]=n,2&n&&Object.freeze(f));
41
+ if(h&&!(8&n||!f.length&&(g===1||(g!==4?0:2&n||!(16&n)&&32&d)))){Lb(n)&&(f=[...f],n=Tb(n,d),d=w(c,d,1,f));e=f;h=n;for(m=0;m<e.length;m++)r=e[m],n=Cb(r),r!==n&&(e[m]=n);h|=8;n=h=e.length?h|4096:h&-4097;f[k]=n}h=e=n;g===1||(g!==4?0:2&e||!(16&e)&&32&d)?Lb(e)||(e|=!f.length||a&&!(4096&e)||32&d&&!(4096&e||16&e)?2:256,e!==h&&(f[k]=e),Object.freeze(f)):(g===2&&Lb(e)&&(f=[...f],h=0,e=Tb(e,d),d=w(c,d,1,f)),Lb(e)||(b||(e|=16),e!==h&&(f[k]=e)));2&e||!(4096&e||16&e)||Fb(c,d);return f}
42
+ function Wc(a){var b=new Xc;return Sb(b,a)}var Xc=class extends I{};var Yc=class extends I{};function Zc(a){return Pb(a,Xc,1)}var $c=class extends I{};var ad=class extends I{};var bd=class extends I{};var cd=class extends I{};var dd=class extends I{getMeetPlatformInfo(){return Pb(this,bd,1)}};var ed=class extends I{getMeetingInfo(){return Pb(this,cd,1)}};var fd=class extends I{},N=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];var gd=class extends I{};var hd=class extends I{};var id=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),jd=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]);function kd(a){a&&typeof a.dispose=="function"&&a.dispose()};function O(){this.o=this.o;this.g=this.g}O.prototype.o=!1;O.prototype.dispose=function(){this.o||(this.o=!0,this.H())};O.prototype[Symbol.dispose]=function(){this.dispose()};function ld(a,b){a.o?b():(a.g||(a.g=[]),a.g.push(b))}O.prototype.H=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function md({J:a,R:b}){if(a===null)throw new J(yc("activityStartingState"));if(b||a!==void 0){if(typeof a!=="object")throw new J(L("activityStartingState",typeof a,`object${b?"":" | undefined"}`));if(a.mainStageUrl!==void 0&&typeof a.mainStageUrl!=="string")throw new J(L("mainStageUrl",typeof a.mainStageUrl,"string | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new J(L("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!==
43
+ "string")throw new J(L("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.mainStageUrl+ +!!a.sidePanelUrl+ +!!a.additionalData)throw new J(uc);if(Object.keys(a).length===0)throw new J(tc);}}function nd(a){const b=[];b.push(Uc(Tc(Rc(2),a.mainStageUrl),a.additionalData));b.push(Uc(Tc(Rc(1),a.sidePanelUrl),a.additionalData));return b}
44
+ var wd=class extends O{constructor(a){super();this.context=a;this.h={};od(this.context.g.U,b=>{switch(x(b.content,N)){case 7:const d=this.h.frameToFrameMessage;b=E(b.content,ad,7,N);if(d&&b){var c=D(b,1);c=id.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:C(b,2)})}}},this)}async getMeetingInfo(){var a=await pd(this.context.g);var b=a.getMeetingInfo();b=C(b,1);a=a.getMeetingInfo();a=C(a,2);return{meetingId:b,meetingCode:a}}async getFrameOpenReason(){let a;const b=(a=
45
+ this.context.h.da)!=null?a:0;let c;return(c=jd.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=Zc(await qd(this.context.g));const b=a==null?void 0:Vc(a).find(c=>c.getFrameType()===2);a=a==null?void 0:Vc(a).find(c=>c.getFrameType()===1);return{mainStageUrl:(b==null?void 0:C(b,2))||void 0,sidePanelUrl:(a==null?void 0:C(a,2))||void 0,additionalData:(a==null?void 0:C(a,3))||void 0}}async setActivityStartingState(a){md({J:a,R:!0});var b=nd(a);a=rd;var c=this.context.g;var d=new gd;b=Wc(b);
46
+ d=Rb(d,1,b);await a(c,d)}on(a,b){this.h[a]=b}async getMeetPlatformInfo(){var a=(await sd(this.context.g)).getMeetPlatformInfo();return{isMeetHardware:Ub(a)}}async closeAddon(){await td(this.context.g)}async startActivity(a){md({J:a,R:!1});const b=new hd;a&&(a=nd(a),a=Wc(a),Rb(b,1,a));await ud(this.context.g,b)}async endActivity(a){var b=vd,c=this.context.g,d=new Yc;a=F(d,1,a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0);await b(c,a)}};var xd=Zb(class extends I{getFrameOpenReason(){return D(this,5)}});function yd(){var a=window.location.href;var b=window.location.href;var c=(new URL(b)).searchParams.get("meet_sdk");if(c)b=xd(atob(c));else{var d;((d=window.top)!=null?d:window)===window?M(oc):Qc("meet_sdk",b);b=void 0}(c=C(b,1))||Qc("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new J(pc);(d=C(b,2))||Qc("meet_control_channel_name",a);const e=C(b,4);e||Qc("addon_cloud_project_number",a);var f;a=(f=b.getFrameOpenReason())!=null?f:0;f=C(b,3)||"https://meet.google.com";return{da:a,frameType:c,
47
+ ca:d,cloudProjectNumber:e,S:f}};var zd=class extends I{};var Ad=class extends I{};var Bd=class extends I{};function Cd(){var a=new Dd,b=new Bd;return B(a,1,Ed,b)}var Dd=class extends I{},Ed=[1,2];function Fd(a){var b=new Gd;return Rb(b,2,a)}function Hd(a,b){return y(a,3,u(b),"")}var Gd=class extends I{};var Id=class extends I{};var Jd=class extends I{};var Kd=class extends I{};var Ld=class extends I{};var Md=class extends I{};var Nd=class extends I{};var Od=class extends I{setAddonStartingState(a){return Rb(this,1,a)}};var Pd=class extends I{};function Qd(a,b){return B(a,2,P,b)}var Q=class extends I{},P=[1,2,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20];function Rd(a){return E(a,fd,2,Sd)}var Td=class extends I{},Ud=Zb(Td),Sd=[1,2];class Vd{constructor(a,b){this.data=a;this.channel=b}};var Wd=Promise;function Xd(a){const b=new MessageChannel;Yd(b.port1,a);return b}function Zd(a,b){Yd(a,b);return new $d(a)}class $d{constructor(a){this.g=a}send(a,b,c=[]){b=Xd(b);this.g.postMessage(a,[b.port2].concat(c))}D(a,b){return new Wd(c=>{this.send(a,c,b)})}}function Yd(a,b){b&&(a.onmessage=c=>{var d=c.data;c=Zd(c.ports[0]);b(new Vd(d,c))})};var ae=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?a=>a&&AsyncContext.Snapshot.wrap(a):a=>a;function be(a,b){a.m(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)}class ce{constructor(a,b){this.j=a;this.m=b;this.h=0;this.g=null}get(){let a;this.h>0?(this.h--,a=this.g,this.g=a.next,a.next=null):a=this.j();return a}};function de(){var a=ee;let b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}class fe{constructor(){this.h=this.g=null}add(a,b){const c=ge.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}}var ge=new ce(()=>new he,a=>a.reset());class he{constructor(){this.next=this.g=this.h=null}set(a,b){this.h=a;this.g=b;this.next=null}reset(){this.next=this.g=this.h=null}};let ie,je=!1,ee=new fe,le=(a,b)=>{ie||ke();je||(ie(),je=!0);ee.add(a,b)},ke=()=>{const a=Promise.resolve(void 0);ie=()=>{a.then(me)}};function me(){let a;for(;a=de();){try{a.h.call(a.g)}catch(b){ja(b)}be(ge,a)}je=!1};function ne(){};function S(a){this.g=0;this.T=void 0;this.m=this.h=this.j=null;this.u=this.A=!1;if(a!=ne)try{const b=this;a.call(void 0,function(c){oe(b,2,c)},function(c){oe(b,3,c)})}catch(b){oe(this,3,b)}}function pe(){this.next=this.context=this.h=this.m=this.g=null;this.j=!1}pe.prototype.reset=function(){this.context=this.h=this.m=this.g=null;this.j=!1};var qe=new ce(function(){return new pe},function(a){a.reset()});function re(a,b,c){const d=qe.get();d.m=a;d.h=b;d.context=c;return d}
48
+ function se(){let a,b;const c=new S(function(d,e){a=d;b=e});return new te(c,a,b)}S.prototype.then=function(a,b,c){return ue(this,ae(typeof a==="function"?a:null),ae(typeof b==="function"?b:null),c)};S.prototype.$goog_Thenable=!0;function ve(a,b){b=ae(b);b=re(b,b);b.j=!0;we(a,b)}S.prototype.cancel=function(a){if(this.g==0){const b=new T(a);le(function(){xe(this,b)},this)}};
49
+ function xe(a,b){if(a.g==0)if(a.j){var c=a.j;if(c.h){var d=0,e=null,f=null;for(let g=c.h;g&&(g.j||(d++,g.g==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.g==0&&d==1?xe(c,b):(f?(d=f,d.next==c.m&&(c.m=d),d.next=d.next.next):ye(c),ze(c,e,3,b)))}a.j=null}else oe(a,3,b)}function we(a,b){a.h||a.g!=2&&a.g!=3||Ae(a);a.m?a.m.next=b:a.h=b;a.m=b}
50
+ function ue(a,b,c,d){const e=re(null,null,null);e.g=new S(function(f,g){e.m=b?function(h){try{const m=b.call(d,h);f(m)}catch(m){g(m)}}:f;e.h=c?function(h){try{const m=c.call(d,h);m===void 0&&h instanceof T?g(h):f(m)}catch(m){g(m)}}:g});e.g.j=a;we(a,e);return e.g}S.prototype.na=function(a){this.g=0;oe(this,2,a)};S.prototype.Y=function(a){this.g=0;oe(this,3,a)};
51
+ function oe(a,b,c){if(a.g==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.na,f=a.Y;if(d instanceof S){we(d,re(e||ne,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(m){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{h=typeof d;if(h=="object"&&d!=null||h=="function")try{const m=d.then;if(typeof m==="function"){Be(d,m,e,f,a);g=!0;break a}}catch(m){f.call(a,m);g=!0;break a}g=!1}}}g||(a.T=c,a.g=b,a.j=null,Ae(a),b!=3||c instanceof T||Ce(a,c))}}
52
+ function Be(a,b,c,d,e){function f(m){h||(h=!0,d.call(e,m))}function g(m){h||(h=!0,c.call(e,m))}let h=!1;try{b.call(a,g,f)}catch(m){f(m)}}function Ae(a){a.A||(a.A=!0,le(a.ma,a))}function ye(a){let b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.m=null);return b}S.prototype.ma=function(){let a;for(;a=ye(this);)ze(this,a,this.g,this.T);this.A=!1};
53
+ function ze(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.u;a=a.j)a.u=!1;if(b.g)b.g.j=null,De(b,c,d);else try{b.j?b.m.call(b.context):De(b,c,d)}catch(e){Ee.call(null,e)}be(qe,b)}function De(a,b,c){b==2?a.m.call(a.context,c):a.h&&a.h.call(a.context,c)}function Ce(a,b){a.u=!0;le(function(){a.u&&Ee.call(null,b)})}var Ee=ja;function T(a){ia.call(this,a)}ha(T,ia);T.prototype.name="cancel";function te(a,b,c){this.promise=a;this.resolve=b;this.reject=c};let Fe=1,Ge=new WeakMap;function He(a,b,c){var d=Ie;a.h.has(b);d(b,c)}var Ke=class extends O{constructor(){super();this.h=new Set}signal(){const a=new Je;this.h.add(a);ld(this,fa(kd,a));return a}};function Ie(a,b){return new Promise(c=>{Le(()=>{a.L&&(a.fa=b,a.P=!0);for(const {I:d,slot:e}of a.v.values())try{e(b,{signal:a,I:d})}catch(f){ja(f)}for(const d of a.C)d.resolve(b);a.C.clear();c()})})}function od(a,b,c){const d=Fe++;Le(()=>{Me(a,d,b,c)})}
54
+ function Me(a,b,c,d){if(!a.o)if(d){if(!d.o){const e=()=>{Le(()=>{a.v.delete(b);const f=Ge.get(d);f&&qa(f,e)})};a.v.set(b,{I:b,slot:c,G:e});Ne(d,e)}}else a.v.set(b,{I:b,slot:c,G:()=>a.v.delete(b)})}
55
+ var Je=class extends O{constructor(){super();this.L=!1;this.v=new Map;this.C=new Set;this.P=!1}detach(a){Le(()=>{const b=this.v.get(a);b&&b.G()})}value(a){return this.promise(!0,a)}next(a){return this.promise(!1,a)}promise(a,b){const c=se();Le(()=>{if(this.o)c.reject(new T("Signal initially disposed"));else if(b&&b.o)c.reject(new T("Owner initially disposed"));else if(a&&this.L&&this.P)c.resolve(this.fa);else if(this.C.add(c),ve(c.promise,()=>{this.C.delete(c)}),b){const d=()=>{c.reject(new T("Owner asynchronously disposed"))};
56
+ ve(c.promise,()=>{const e=Ge.get(b);e&&qa(e,d)});Ne(b,d)}});return c.promise}H(){super.H();Le(()=>{for(const {G:a}of this.v.values())a();this.v.clear();for(const a of this.C)a.reject(new T("Signal asynchronously disposed"));this.C.clear()})}};const Oe=[];let Pe=!1;function Le(a){Oe.push(a);Qe()}async function Qe(){if(!Pe)try{Pe=!0;let a=Re(0);for(;a<Oe.length;)await Promise.resolve(),a=Re(a)}catch(a){ja(a)}finally{Oe.length=0,Pe=!1}}
57
+ function Re(a){const b=a+100;for(;a<b&&a<Oe.length;)try{Oe[a++]()}catch(c){ja(c)}return a}function Ne(a,b){if(a.o)b();else{var c=Ge.get(a);if(c)c.push(b);else{const d=[b];Ge.set(a,d);ld(a,()=>{for(const e of[...d])e();Ge.delete(a)})}}};function U(a){var b=new Td;a=B(b,1,Sd,a);return{content:JSON.stringify(vb(a))}}const Se=new Ke;function Te(a,b){const c=Se.signal();return{channel:Zd(a,d=>{const e=b(d.data);He(Se,c,{content:e,la:d})}),signal:c}};let Xb;var V=class extends I{};var W=class extends I{};var Ve=class extends I{j(){return E(this,V,2,Ue)}h(){return Jb(this,V,2,Ue)}m(){return E(this,W,3,Ue)}u(){return Jb(this,W,3,Ue)}},Ue=[2,3];var We=Zb(class extends I{});var Xe=Zb(class extends I{}),Ye=[1,2];var Ze=({destination:a,origin:b,ra:c,Z:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=Xd(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return Zd(f.port1,e)};function $e(a,b,c){const d=new Ke,e=d.signal();a=Ze({destination:window.parent,origin:b,Z:a,onMessage:f=>{const g=Ud(f.data.content);x(g,Sd)===2&&He(d,e,{content:Rd(g),la:f,messagePort:f.data.messagePort})}});return new af(e,a,c)}async function pd(a){var b=X;var c=new Q;var d=new Kd;c=B(c,19,P,d);a=await b(a,U(c));let e;return(e=Rd(Ud(a.data.content)))==null?void 0:E(e,ed,20,N)}
58
+ async function qd(a){var b=X;var c=new Q;var d=new Ad;c=B(c,17,P,d);a=await b(a,U(c));let e;return(e=Rd(Ud(a.data.content)))==null?void 0:E(e,$c,18,N)}async function rd(a,b){var c=X,d=new Q;b=B(d,8,P,b);await c(a,U(b))}async function sd(a){var b=X;var c=new Q;var d=new Jd;c=B(c,18,P,d);a=await b(a,U(c));let e;return(e=Rd(Ud(a.data.content)))==null?void 0:E(e,dd,19,N)}async function td(a){var b=X;var c=new Q;var d=new zd;c=B(c,11,P,d);await b(a,U(c))}
59
+ async function ud(a,b){var c=X,d=new Q;b=B(d,14,P,b);await c(a,U(b))}async function vd(a,b){var c=X,d=new Q;b=B(d,15,P,b);await c(a,U(b))}async function bf(a){await a.h()}
60
+ async function X(a,b){(a=await a.channel.D(b))||M(K,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||M(K,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||M(K,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Ud(b)}catch(d){M(K,"The ControlMessage can't be deserialized."+` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=Rd(c))||M(K,"MeetToAddonMessage field on ControlMessage is falsy."+
61
+ ` ${JSON.stringify(b)}`);b=b==null?void 0:E(b,jc,10,N);if((b==null?void 0:D(b,1))!==void 0)throw a=D(b,1),new J(Nc(a));return a}async function cf(a,b,c){var d=X,e=new Q;b=B(e,1,P,b);d=await d(a,U(b));a=d.data.messagePort;var f;(d=(f=Rd(Ud(d.data.content)))==null?void 0:E(f,hc,1,N))!=null?f=d:(f=new hc,f=F(f,1,0));return{channel:a?Te(a,c):void 0,response:f}}async function df(a){const b=Cd(),{channel:c,response:d}=await cf(a,b,e=>Xe(e));if(!c)throw new J(Oc(d));return c}
62
+ async function ef(a){var b=X;var c=new Q;var d=new Pd;c=B(c,5,P,d);await b(a,U(c))}async function ff(a){var b=X;var c=new Q;var d=new Id;c=B(c,6,P,d);await b(a,U(c))}async function gf(a,b,c){var d=X,e=new Q,f=new Ld;b=F(f,1,b);c=y(b,2,u(c),"");e=B(e,7,P,c);await d(a,U(e))}async function hf(a,b){var c=X,d=new Q;b=B(d,16,P,b);await c(a,U(b))}
63
+ class af extends O{constructor(a,b,c){super();this.U=a;this.channel=b;this.h=ec(async()=>{var d=this.channel,e=d.D;var f=new Q;var g=new Md;f=B(f,13,P,g);await e.call(d,U(f))});a=Wb();C(a,4);kb(v(a,1));kb(v(a,2));kb(v(a,3));c=Qd(new Q,Hd(Fd(a),c));this.channel.send(U(c));od(this.U,async d=>{switch(x(d.content,N)){case 16:await bf(this)}},this)}};let jf;var kf=class{constructor(a){var b=jf;this.h=a;this.g=b}delete(){throw Error("Not implemented.");}};var mf=class extends I{j(){return E(this,V,2,lf)}h(){return Jb(this,V,2,lf)}m(){return E(this,W,3,lf)}u(){return Jb(this,W,3,lf)}},lf=[2,3];var nf=class extends I{};var of=class extends I{};var pf=class extends I{};var rf=class extends I{j(){return E(this,V,2,qf)}h(){return Jb(this,V,2,qf)}m(){return E(this,W,3,qf)}u(){return Jb(this,W,3,qf)}},qf=[2,3],sf=[5,6];var tf=class extends I{};var uf=class extends I{},vf=[1,2,3];var wf=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var xf=class{constructor(a){this.config=a}start(){this.g!=null||(this.g=setInterval(()=>{this.config.ia()},this.config.ea));return this}shutdown(){clearInterval(this.g)}};function yf(a){return Xa(a)?Number(a):String(a)};function zf(){const a=new Map,b={set(c,d){a.set(c,d);return b},F:()=>a};return b};function Af(a){if(a.h()){a=a.j();a=v(a,1,void 0,Mb);var b=a==null?va():a;a=Uint8Array;ya(ua);var c=b.g;if(!(c==null||c!=null&&c instanceof Uint8Array))if(typeof c==="string"){c=ra.test(c)?c.replace(ra,ta):c;c=atob(c);const d=new Uint8Array(c.length);for(let e=0;e<c.length;e++)d[e]=c.charCodeAt(e);c=d}else c=null;b=c==null?c:b.g=c;return{bytes:new a(b||0)}}}function Bf(a,b){b=Cf(b);B(a,2,qf,b);return a}function Df(a,b){b=Cf(b);B(a,2,lf,b);return a}
64
+ function Cf(a){var b=new V;return y(b,1,La(a.bytes,!1),va())}function Ef(a){if(a.u()){a=a.m();var b,c=C(a,1);var d=(b=Pb(a,$b,2))==null?void 0:Vb(b);b=d!=null?yf(d):void 0;b=b!=null?b:0;let e;d=(e=v(a,4,void 0,hb))!=null?e:0;return{mediaId:c,mediaPlayoutPosition:b,mediaPlayoutRate:d,playbackState:Ff.get(D(a,3))}}}function Gf(a,b){b=Hf(b);B(a,3,qf,b);return a}function If(a,b){b=Hf(b);B(a,3,lf,b);return a}
65
+ const Ff=zf().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").F(),Jf=zf().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).F();function Hf(a){var b=new W;b=y(b,1,u(a.mediaId),"");var c=a.mediaPlayoutRate;if(c!=null&&typeof c!=="number")throw Error(`Value of float/double field must be a number, found ${typeof c}: ${c}`);b=y(b,4,c,0);c=new $b;c=y(c,1,lb(a.mediaPlayoutPosition),"0");b=Rb(b,2,c);a=Jf.get(a.playbackState);return F(b,3,a)}
66
+ function Kf({activityTitle:a}){var b=new pf;return Ib(b,4,u(a))}function Lf(a,b){var c=new of;b=F(c,1,b.B);B(a,6,sf,b);return a}function Mf(a){var b=new nf;B(a,5,sf,b);return a};const Nf=zf().set("co-doing",1).set("co-watching",2).F();async function Of(a,b,c){var d=b.D,e=new uf;var f=new tf;f=y(f,1,u(a.activityTitle),"");var g=Nf.get(a.K);f=F(f,2,g);e=B(e,3,vf,f);d=await d.call(b,e,We);let h;if((h=Ub(d))!=null&&h)return new Pf(a,b,c,Pb(d,Ve,2));throw new wf;}function Qf(a,b){const c=a.config.N(b);c&&!a.config.M(a.g,c)&&(a.g=c,a.j=yf(Vb(b)),a.u(a.g))}function Y(a,b){const {state:c,ga:d,context:e}=b(a.g);a.g=c;a.notify(a.g,e,d)}
67
+ class Pf{constructor(a,b,c,d){this.m=a;this.h=b;this.config=c;this.u=ac(e=>void this.m.O(e));Rf(this.h,e=>{const f=x(e,Ye);switch(f){case 1:Qf(this,E(e,Ve,1,Ye));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.A=(new xf({ea:1E3,ia:()=>{var e,f,g=(f=(e=this.m).ka)==null?void 0:f.call(e);if(this.g!==null){this.g={...this.g,...g};e=new uf;f=this.config;g=f.W;var h=new mf;h=y(h,1,lb(this.j),"0");f=g.call(f,h,this.g);
68
+ e=B(e,1,vf,f);this.h.send(e)}}})).start();this.g=null;this.j=0;d&&Qf(this,d)}disconnect(){this.h.shutdown();this.A.shutdown()}notify(a,b,c){var d=c?Kf(c):void 0;c=this.config;var e=c.X;var f=new rf;f=y(f,1,lb(this.j),"0");d=Rb(f,4,d);a=e.call(c,d,a);a=this.config.V(a,b);b=this.h;c=b.send;e=new uf;a=B(e,2,vf,a);c.call(b,a)}};var Sf=class{constructor(a){this.g=a}broadcastStateUpdate(a){Y(this.g,()=>({state:a,context:{}}))}disconnect(){this.g.disconnect()}};function Tf(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Uf=class{constructor(a){this.g=a}notifySwitchedToMedia(a,b,c){Y(this.g,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},ga:{activityTitle:a},context:{B:1}}))}notifyPauseState(a,b){Y(this.g,c=>{if(c==null)throw Error("Invalid before coWatchingState");return{state:{...c,playbackState:a?"PAUSE":"PLAY",mediaPlayoutPosition:b},context:{B:3}}})}notifySeekToTimestamp(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
70
69
  context:{B:2}}})}notifyPlayoutRate(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutRate:a},context:{B:4}}})}notifyBuffering(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a,playbackState:"BUFFERING"},context:{B:3}}})}notifyReady(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},context:{B:3}}})}disconnect(){this.g.disconnect()}};
71
- function Rf(a,b){if(a==null||b==null)return!1;const c=a.playbackState==="PLAY"?3*Math.max(a.mediaPlayoutRate,1):0,d=Math.abs(a.mediaPlayoutPosition-b.mediaPlayoutPosition);return a.mediaId===b.mediaId&&a.mediaPlayoutRate===b.mediaPlayoutRate&&d<=c&&a.playbackState===b.playbackState};function Nf(a,b){kd(a.signal,c=>{b(c)},a.g)}var Sf=class{constructor(a,b){this.channel=a;this.signal=b;this.g=new O}send(a){this.channel.send(JSON.stringify(rb(a)))}async D(a,b){a=await this.channel.D(JSON.stringify(rb(a)));return b(a.data)}shutdown(){this.g.dispose()}};function Tf(a,b){var c=Uf;const d=a.signal(),e=a.signal();kd(b,f=>{const g=c(f)?d:e;De(a,g,f)},a);return{ja:d,ha:e}}function Vf(a,b,c,d=e=>e){kd(c,e=>{De(a,b,d(e))},a)};async function Wf(a,b){if(b)return a=await Kf({activityTitle:b.activityTitle,K:"co-watching",ka:()=>b.onCoWatchingStateQuery(),O:c=>{b.onCoWatchingStateChanged(c)}},a,{X:Cf,W:Ef,V:Hf,N:Af,M:Rf}),new Qf(a)}async function Xf(a,b){if(b)return a=await Kf({activityTitle:b.activityTitle,K:"co-doing",O:c=>{b.onCoDoingStateChanged(c)}},a,{X:xf,W:zf,V:If,N:wf,M:Pf}),new Of(a)}
72
- async function Yf(a){var b=new Ge,c=b.signal();a=await a;Vf(b,c,a.signal,f=>f.content);const {ja:d,ha:e}=Tf(b,c);b=new Sf(a.channel,d);c=new Sf(a.channel,e);return{aa:b,ba:c}}function Uf(a){a:switch(x(a,Ue)){case 1:a=E(a,Re,1,Ue);break a;default:throw Error("CA Message arrived with no known content message set");}return a.h()};async function Zf(a,b){({aa:a}=await Yf($e(a.g)));b=await Xf(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function $f(a,b){({ba:a}=await Yf($e(a.g)));b=await Wf(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var ag=class extends sd{async notifySidePanel(a){await cf(this.context.g,1,a)}async unloadSidePanel(){await af(this.context.g)}async loadSidePanel(){await bf(this.context.g)}};var bg=class extends sd{async setAddonStartingState(a){if(a===null)throw new J(uc("addonStartingState"));if(typeof a!=="object")throw new J(L("addonStartingState",typeof a,"object | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new J(L("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!=="string")throw new J(L("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.sidePanelUrl+
73
- +!!a.additionalData)throw new J(tc);if(Object.keys(a).length===0)throw new J(sc);var b=[];b.push(Qc(Pc(Nc(1),a.sidePanelUrl),a.additionalData));a=this.context.g;var c=new Kd,d=c.setAddonStartingState,e=new Jd;b=Ob(e,b);await df(a,d.call(c,b))}};var cg=class extends sd{async notifyMainStage(a){await cf(this.context.g,2,a)}};var dg=class{constructor(a){a=a.cloudProjectNumber;const b=ud();if(b.cloudProjectNumber!==a)throw new J(mc);const c=b.S,d=b.ca;let e;ef=(e=ef)!=null?e:We(d,c,a);this.g=new ff(b)}async createMainStageClient(){var a=this.g;if(a.h.frameType!==2)throw new J(hc);return await Promise.resolve(new ag(a))}async createSidePanelClient(){var a=this.g;if(a.h.frameType!==1)throw new J(ic);return await Promise.resolve(new cg(a))}async createCoWatchingClient(a){return await $f(this.g,a)}async createCoDoingClient(a){return await Zf(this.g,
74
- a)}async createRoomsStandaloneClient(){var a=this.g;if(a.h.frameType!==2)throw new J(hc);return await Promise.resolve(new bg(a))}};let eg=null;for(var fg={addon:{getFrameType:function(){a:{var a=ud().frameType;switch(a){case 2:a="MAIN_STAGE";break a;case 1:a="SIDE_PANEL";break a;default:throw Error(`Unknown frame type: ${a}`);}}return a},createAddonSession:async function(a){if(a===null)throw new J(uc("config"));if(typeof a!=="object")throw new J(L("config",typeof a,"object"));if(typeof a.cloudProjectNumber!=="string")throw new J(L("cloudProjectNumber",typeof a.cloudProjectNumber,"string"));if(eg&&ud().S!=="integration.test.google.com")throw new J(Dc);
75
- return eg=new dg(a)}}},gg=["meet"],Z=ea,hg;gg.length&&(hg=gg.shift());)gg.length||fg===void 0?Z[hg]&&Z[hg]!==Object.prototype[hg]?Z=Z[hg]:Z=Z[hg]={}:Z[hg]=fg;}).apply(topLevel);export const meet = topLevel.meet;
70
+ function Vf(a,b){if(a==null||b==null)return!1;const c=a.playbackState==="PLAY"?3*Math.max(a.mediaPlayoutRate,1):0,d=Math.abs(a.mediaPlayoutPosition-b.mediaPlayoutPosition);return a.mediaId===b.mediaId&&a.mediaPlayoutRate===b.mediaPlayoutRate&&d<=c&&a.playbackState===b.playbackState};function Rf(a,b){od(a.signal,c=>{b(c)},a.g)}var Wf=class{constructor(a,b){this.channel=a;this.signal=b;this.g=new O}send(a){this.channel.send(JSON.stringify(vb(a)))}async D(a,b){a=await this.channel.D(JSON.stringify(vb(a)));return b(a.data)}shutdown(){this.g.dispose()}};function Xf(a,b){var c=Yf;const d=a.signal(),e=a.signal();od(b,f=>{const g=c(f)?d:e;He(a,g,f)},a);return{ja:d,ha:e}}function Zf(a,b,c,d=e=>e){od(c,e=>{He(a,b,d(e))},a)};async function $f(a,b){if(b)return a=await Of({activityTitle:b.activityTitle,K:"co-watching",ka:()=>b.onCoWatchingStateQuery(),O:c=>{b.onCoWatchingStateChanged(c)}},a,{X:Gf,W:If,V:Lf,N:Ef,M:Vf}),new Uf(a)}async function ag(a,b){if(b)return a=await Of({activityTitle:b.activityTitle,K:"co-doing",O:c=>{b.onCoDoingStateChanged(c)}},a,{X:Bf,W:Df,V:Mf,N:Af,M:Tf}),new Sf(a)}
71
+ async function bg(a){var b=new Ke,c=b.signal();a=await a;Zf(b,c,a.signal,f=>f.content);const {ja:d,ha:e}=Xf(b,c);b=new Wf(a.channel,d);c=new Wf(a.channel,e);return{aa:b,ba:c}}function Yf(a){a:switch(x(a,Ye)){case 1:a=E(a,Ve,1,Ye);break a;default:throw Error("CA Message arrived with no known content message set");}return a.h()};async function cg(a,b){({aa:a}=await bg(df(a.g)));b=await ag(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function dg(a,b){({ba:a}=await bg(df(a.g)));b=await $f(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var eg=class extends wd{async notifySidePanel(a){await gf(this.context.g,1,a)}async unloadSidePanel(){await ef(this.context.g)}async loadSidePanel(){await ff(this.context.g)}};var fg=class extends wd{async setAddonStartingState(a){if(a===null)throw new J(yc("addonStartingState"));if(typeof a!=="object")throw new J(L("addonStartingState",typeof a,"object | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new J(L("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!=="string")throw new J(L("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.sidePanelUrl+
72
+ +!!a.additionalData)throw new J(xc);if(Object.keys(a).length===0)throw new J(wc);var b=[];b.push(Uc(Tc(Rc(1),a.sidePanelUrl),a.additionalData));a=this.context.g;var c=new Od,d=c.setAddonStartingState,e=new Nd;b=Sb(e,b);await hf(a,d.call(c,b))}};var gg=class extends wd{async notifyMainStage(a){await gf(this.context.g,2,a)}};var hg=class{constructor(a){a=a.cloudProjectNumber;const b=yd();if(b.cloudProjectNumber!==a)throw new J(qc);const c=b.S,d=b.ca;let e;jf=(e=jf)!=null?e:$e(d,c,a);this.g=new kf(b)}async createMainStageClient(){var a=this.g;if(a.h.frameType!==2)throw new J(lc);return await Promise.resolve(new eg(a))}async createSidePanelClient(){var a=this.g;if(a.h.frameType!==1)throw new J(mc);return await Promise.resolve(new gg(a))}async createCoWatchingClient(a){return await dg(this.g,a)}async createCoDoingClient(a){return await cg(this.g,
73
+ a)}async createRoomsStandaloneClient(){var a=this.g;if(a.h.frameType!==2)throw new J(lc);return await Promise.resolve(new fg(a))}};let ig=null;for(var jg={addon:{getFrameType:function(){a:{var a=yd().frameType;switch(a){case 2:a="MAIN_STAGE";break a;case 1:a="SIDE_PANEL";break a;default:throw Error(`Unknown frame type: ${a}`);}}return a},createAddonSession:async function(a){if(a===null)throw new J(yc("config"));if(typeof a!=="object")throw new J(L("config",typeof a,"object"));if(typeof a.cloudProjectNumber!=="string")throw new J(L("cloudProjectNumber",typeof a.cloudProjectNumber,"string"));if(ig&&yd().S!=="integration.test.google.com")throw new J(Hc);
74
+ return ig=new hg(a)}}},kg=["meet"],Z=ea,lg;kg.length&&(lg=kg.shift());)kg.length||jg===void 0?Z[lg]&&Z[lg]!==Object.prototype[lg]?Z=Z[lg]:Z=Z[lg]={}:Z[lg]=jg;}).apply(topLevel);export const meet = topLevel.meet;
@@ -1,40 +1,5 @@
1
1
 
2
2
 
3
- // Original file: screenshare_info.types.d.ts
4
-
5
- /**
6
- * Information about the add-on that should be used when a user transitions
7
- * from screen sharing to an in-meeting add-on experience.
8
- */
9
- export interface AddonScreenshareInfo {
10
- /**
11
- * The Google Cloud project number of the add-on that Meet should start when
12
- * transitioning from screen sharing to the Meet add-on.
13
- */
14
- cloudProjectNumber: string;
15
- /**
16
- * Whether to start an activity when the add-on is opened. If a
17
- * mainstage URL is provided, must be true.
18
- */
19
- startActivityOnOpen: boolean;
20
- /**
21
- * Data supplied by the third-party that the add-on can use to initialize
22
- * itself
23
- */
24
- additionalData?: string;
25
- /**
26
- * The URL that the side panel opens after the add-on starts. Must
27
- * belong to the same domain as the URLs specified in the add-on manifest.
28
- */
29
- sidePanelUrl?: string;
30
- /**
31
- * The URL that the main stage opens after the add-on starts. Must
32
- * belong to the same domain as the URLs specified in the add-on manifest.
33
- */
34
- mainStageUrl?: string;
35
- }
36
-
37
-
38
3
  // Original file: index.types.d.ts
39
4
 
40
5
 
@@ -68,3 +33,38 @@ declare global {
68
33
  meet: MeetAddonScreenshareExport;
69
34
  }
70
35
  }
36
+
37
+
38
+ // Original file: screenshare_info.types.d.ts
39
+
40
+ /**
41
+ * Information about the add-on that should be used when a user transitions
42
+ * from screen sharing to an in-meeting add-on experience.
43
+ */
44
+ export interface AddonScreenshareInfo {
45
+ /**
46
+ * The Google Cloud project number of the add-on that Meet should start when
47
+ * transitioning from screen sharing to the Meet add-on.
48
+ */
49
+ cloudProjectNumber: string;
50
+ /**
51
+ * Whether to start an activity when the add-on is opened. If a
52
+ * mainstage URL is provided, must be true.
53
+ */
54
+ startActivityOnOpen: boolean;
55
+ /**
56
+ * Data supplied by the third-party that the add-on can use to initialize
57
+ * itself
58
+ */
59
+ additionalData?: string;
60
+ /**
61
+ * The URL that the side panel opens after the add-on starts. Must
62
+ * belong to the same domain as the URLs specified in the add-on manifest.
63
+ */
64
+ sidePanelUrl?: string;
65
+ /**
66
+ * The URL that the main stage opens after the add-on starts. Must
67
+ * belong to the same domain as the URLs specified in the add-on manifest.
68
+ */
69
+ mainStageUrl?: string;
70
+ }
@@ -3,19 +3,19 @@ const topLevel = typeof global !== 'undefined' ? global : typeof self !== 'undef
3
3
  Copyright The Closure Library Authors.
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- var m=this||self;function u(a,b){a:{var c=["CLOSURE_FLAGS"];for(var e=m,d=0;d<c.length;d++)if(e=e[c[d]],e==null){c=null;break a}c=e}a=c&&c[a];return a!=null?a:b}function aa(a){return a};var v=class extends Error{constructor(a,b){super(`Meet Addon Screenshare Info error: ${`${a}${b?` - ${b}`:""}`}`)}};function w(a){throw new a.l(a.message,a.m);}
7
- var ba={message:"cloudProjectNumber was not defined.",m:"Ensure that cloudProjectNumber is provided in the call to exposeToMeetWhenScreensharing.",l:v},ca={message:"additionalData was defined, but startActivityOnOpen was not true.",m:"Ensure that startActivityOnOpen is set to true if additionalData is provided in the call to exposeToMeetWhenScreensharing.",l:v},da={message:"Received an incorrect value for startActivityOnOpen.",m:"Ensure that startActivityOnOpen is set to true if a mainStageUrl is provided in the call to exposeToMeetWhenScreensharing.",
8
- l:v};let x;function ea(a){m.setTimeout(()=>{throw a;},0)};var fa=u(748402147,u(1,!0));var ha={},z=null;function ia(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let ja=void 0;function ka(a,b){if(a!=null){var c;var e=(c=ja)!=null?c:ja={};c=e[a]||0;c>=b||(e[a]=c+1,a=Error(),ia(a,"incident"),ea(a))}};function A(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var la=A(),ma=A(),B=A("m_m",!0);const C=A("jas",!0);var D;const na=[];na[C]=7;D=Object.freeze(na);var E={};function F(a,b){return b===void 0?a.g!==G&&!!(2&(a.h[C]|0)):!!(2&b)&&a.g!==G}const G={};function oa(a,b,c){const e=b&128?0:-1,d=a.length;var f;if(f=!!d)f=a[d-1],f=f!=null&&typeof f==="object"&&f.constructor===Object;const g=d+(f?-1:0);for(b=b&128?1:0;b<g;b++)c(b-e,a[b]);if(f){a=a[d-1];for(const h in a)!isNaN(h)&&c(+h,a[h])}}var pa={};var H=typeof m.BigInt==="function"&&typeof m.BigInt(0)==="bigint";const qa=Number.MIN_SAFE_INTEGER.toString(),ra=H?BigInt(Number.MIN_SAFE_INTEGER):void 0,sa=Number.MAX_SAFE_INTEGER.toString(),ta=H?BigInt(Number.MAX_SAFE_INTEGER):void 0;function ua(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(let c=0;c<a.length;c++){const e=a[c],d=b[c];if(e>d)return!1;if(e<d)return!0}};const va=Number.isFinite;function wa(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return va(a)?a|0:void 0}function I(a){if(a!=null&&typeof a!=="string")throw Error();return a};function xa(a){return a};function J(a,b,c,e){var d=e!==void 0;e=!!e;const f=[];var g=a.length;let h,k=4294967295,p=!1;const l=!!(b&64),q=l?b&128?0:-1:void 0;if(!(b&1||(h=g&&a[g-1],h!=null&&typeof h==="object"&&h.constructor===Object?(g--,k=g):h=void 0,!l||b&128||d))){p=!0;var n;k=((n=ya)!=null?n:xa)(k-q,q,a,h,void 0)+q}b=void 0;for(d=0;d<g;d++)if(n=a[d],n!=null&&(n=c(n,e))!=null)if(l&&d>=k){const t=d-q;let r;((r=b)!=null?r:b={})[t]=n}else f[d]=n;if(h)for(let t in h){a=h[t];if(a==null||(a=c(a,e))==null)continue;g=+t;let r;
9
- if(l&&!Number.isNaN(g)&&(r=g+q)<k)f[r]=a;else{let y;((y=b)!=null?y:b={})[t]=a}}b&&(p?f.push(b):f[k]=b);return f}function za(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return(H?a>=ra&&a<=ta:a[0]==="-"?ua(a,qa):ua(a,sa))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){const b=a[C]|0;return a.length===0&&b&1?void 0:J(a,b,za)}if(a!=null&&a[B]===E)return Aa(a);return}return a}let ya;function Aa(a){a=a.h;return J(a,a[C]|0,za)};let Ba,Ca;function Da(a){switch(typeof a){case "boolean":return Ba||(Ba=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Ca||(Ca=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}function Ea(a,b,c){return a=Fa(a,b[0],b[1],c?1:2)}
10
- function Fa(a,b,c,e=0){if(a==null){var d=32;c?(a=[c],d|=128):a=[];b&&(d=d&-8380417|(b&1023)<<13)}else{if(!Array.isArray(a))throw Error("narr");d=a[C]|0;if(fa&&1&d)throw Error("rfarr");2048&d&&!(2&d)&&Ga();if(d&256)throw Error("farr");if(d&64)return e!==0||d&2048||(a[C]=d|2048),a;if(c&&(d|=128,c!==a[0]))throw Error("mid");a:{c=a;d|=64;var f=c.length;if(f){var g=f-1;const k=c[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=d&128?0:-1;g-=b;if(g>=1024)throw Error("pvtlmt");for(var h in k)if(f=
11
- +h,f<g)c[f+b]=k[h],delete k[h];else break;d=d&-8380417|(g&1023)<<13;break a}}if(b){h=Math.max(b,f-(d&128?0:-1));if(h>1024)throw Error("spvt");d=d&-8380417|(h&1023)<<13}}}d|=64;e===0&&(d|=2048);a[C]=d;return a}function Ga(){if(fa)throw Error("carr");ka(ma,5)};function Ha(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[C]|0;a.length===0&&c&1?a=void 0:c&2||(!b||4096&c||16&c?a=K(a,c,!1,b&&!(c&16)):(a[C]|=34,c&4&&Object.freeze(a)));return a}if(a!=null&&a[B]===E){c=a.h;const e=c[C]|0;F(a,e)||(e&2?b=!0:e&32&&!(e&4096)?(c[C]=e|2,a.g=G,b=!0):b=!1,b?(a=new a.constructor(c),a.j=G):a=K(c,e));return a}}function K(a,b,c,e){e!=null||(e=!!(34&b));a=J(a,b,Ha,e);e=32;c&&(e|=2);b=b&8380609|e;a[C]=b;return a}
12
- function L(a){if(a.g!==G)var b=!1;else b=a.h,b=K(b,b[C]|0),b[C]|=2048,a.h=b,a.g=void 0,a.j=void 0,b=!0;if(!b&&F(a,a.h[C]|0))throw Error();}function Ia(a,b){b===void 0&&(b=a[C]|0);b&32&&!(b&4096)&&(a[C]=b|4096)};function M(a,b,c){L(a);const e=a.h;N(e,e[C]|0,b,c);return a}function N(a,b,c,e,d){const f=c+(d?0:-1);var g=a.length-1;if(g>=1+(d?0:-1)&&f>=g){const h=a[g];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[c]=e,b}if(f<=g)return a[f]=e,b;if(e!==void 0){let h;g=((h=b)!=null?h:b=a[C]|0)>>13&1023||536870912;c>=g?e!=null&&(a[g+(d?0:-1)]={[c]:e}):a[f]=e}return b}function O(a,b,c,e){L(a);const d=a.h;N(d,d[C]|0,b,(e==="0"?Number(c)===0:c===e)?void 0:c);return a}
13
- function Ja(a,b){return a=(2&b?a|2:a&-3)&-273};function P(a,b){for(;b>127;)a.g.push(b&127|128),b>>>=7;a.g.push(b)}var Ka=class{constructor(){this.g=[]}length(){return this.g.length}end(){const a=this.g;this.g=[];return a}};function Q(a,b){b.length!==0&&(a.j.push(b),a.i+=b.length)}function La(a,b){P(a.g,b*8+2);b=a.g.end();Q(a,b);b.push(a.i);return b}function Ma(a,b){var c=b.pop();for(c=a.i+a.g.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.i++;b.push(c);a.i++}var Na=class{constructor(){this.j=[];this.i=0;this.g=new Ka}};function R(){const a=class{constructor(){throw Error();}};Object.setPrototypeOf(a,a.prototype);return a}var S=R(),Oa=R(),Pa=R(),Qa=R();var T=class{constructor(a){this.h=Fa(a)}toJSON(){var a=Aa(this);return a}};T.prototype[B]=E;T.prototype.toString=function(){return this.h.toString()};var U=class{constructor(a,b){this.g=a;a=aa(S);this.i=!!a&&b===a||!1}};function Ra(a,b,c,e,d){b=Sa(b,e);b!=null&&(c=La(a,c),d(b,a),Ma(a,c))}const Ta=new U(Ra,S),Ua=new U(Ra,S);var Va=Symbol(),Wa=Symbol();let Xa,V;
14
- function W(a){var b=Ya,c=Za,e=a[Va];if(e)return e;e={};e.B=a;e.o=Da(a[0]);var d=a[1];let f=1;d&&d.constructor===Object&&(e.u=d,d=a[++f],typeof d==="function"&&(e.v=!0,Xa!=null||(Xa=d),V!=null||(V=a[f+1]),d=a[f+=2]));const g={};for(;d&&Array.isArray(d)&&d.length&&typeof d[0]==="number"&&d[0]>0;){for(var h=0;h<d.length;h++)g[d[h]]=d;d=a[++f]}for(h=1;d!==void 0;){typeof d==="number"&&(h+=d,d=a[++f]);let l;var k=void 0;d instanceof U?l=d:(l=Ta,f--);let q;if((q=l)==null?0:q.i){d=a[++f];k=a;var p=f;typeof d===
15
- "function"&&(d=d(),k[p]=d);k=d}d=a[++f];p=h+1;typeof d==="number"&&d<0&&(p-=d,d=a[++f]);for(;h<p;h++){const n=g[h];k?c(e,h,l,k,n):b(e,h,l,n)}}return a[Va]=e}function Sa(a,b){if(a instanceof T)return a.h;if(Array.isArray(a))return Ea(a,b,!1)};function Ya(a,b,c){a[b]=c.g}function Za(a,b,c,e){let d,f;const g=c.g;a[b]=(h,k,p)=>g(h,k,p,f||(f=W(e).o),d||(d=$a(e)))}function $a(a){let b=a[Wa];if(!b){const c=W(a);b=(e,d)=>ab(e,d,c);a[Wa]=b}return b}function ab(a,b,c){oa(a,a[C]|0,(e,d)=>{if(d!=null){var f=bb(c,e);f?f(b,d,e):e<500||ka(la,3)}})}
16
- function bb(a,b){var c=a[b];if(c)return c;if(c=a.u)if(c=c[b]){c=Array.isArray(c)?c[0]instanceof U?c:[Ua,c]:[c,void 0];var e=c[0].g;if(c=c[1]){const d=$a(c),f=W(c).o;c=a.v?V(f,d):(g,h,k)=>e(g,h,k,f,d)}else c=e;return a[b]=c}};function cb(a,b,c){b=b==null||typeof b==="string"?b:void 0;b!=null&&(b=(x||(x=new TextEncoder)).encode(b),P(a.g,c*8+2),P(a.g,b.length),Q(a,a.g.end()),Q(a,b))};function db(a){var b=new eb;if(a!=null){if(!va(a))throw b=Error("enum"),ia(b,"warning"),b;a|=0}return O(b,1,a,0)}var eb=class extends T{};var fb=class extends T{};var gb=class extends T{};gb.prototype.i=function(a){return function(){const b=new Na;ab(this.h,b,W(a));Q(b,b.g.end());const c=new Uint8Array(b.i),e=b.j,d=e.length;let f=0;for(let g=0;g<d;g++){const h=e[g];c.set(h,f);f+=h.length}b.j=[c];return c}}([0,new U(cb,Pa),-1,[0,function(a,b,c=S){return new U(b,c)}(function(a,b,c,e,d){if(a.g()!==2)return!1;var f=a.i;e=Ea(void 0,e,!0);var g=b[C]|0;if(g&2)throw Error();const h=g&128?pa:void 0;if(c===-1)var k=null;else{k=c+(h?0:-1);var p=b.length-1;if(p<1+(h?0:-1))k=void 0;else if(k>=
17
- p){var l=b[p];l!=null&&typeof l==="object"&&l.constructor===Object?k=l[c]:k===p?k=l:k=void 0}else k=b[k]}k=Array.isArray(k)?k:D;l=p=k===D?7:k[C]|0;2&g&&(l|=2);l|=1;if(2&l||2&l&&4&l||256&l||16&l)k=[...k],p=0,l=Ja(l,g),N(b,g,c,k,h);l&=-13;l!==p&&(k[C]=l);k.push(e);f.call(a,e,d);return!0},function(a,b,c,e,d){if(Array.isArray(b))for(let p=0;p<b.length;p++){var f=a,g=c,h=d,k=Sa(b[p],e);k!=null&&(g=La(f,g),h(k,f),Ma(f,g))}}),[0,new U(function(a,b,c){b=wa(b);if(b!=null)if(b=parseInt(b,10),P(a.g,c*8),a=a.g,
18
- c=b,c>=0)P(a,c);else{for(b=0;b<9;b++)a.g.push(c&127|128),c>>=7;a.g.push(1)}},Qa),new U(cb,Pa),-1]],new U(function(a,b,c){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(P(a.g,c*8),a.g.g.push(b?1:0))},Oa)]);function hb(){let a,b;const c=(b=(a=(new URL(ib||window.location.href)).searchParams.get("meet_capture_handle_origins"))==null?void 0:a.split(",").filter(e=>{try{return(new URL(e)).origin.endsWith(".google.com")}catch(d){return!1}}))!=null?b:[];return c.length===0?jb:c}let ib="";const jb=["https://meet.google.com"];for(var kb={exposeToMeetWhenScreensharing:function(a){var b=a.A,c=a.cloudProjectNumber,e=a.additionalData,d=a.mainStageUrl,f=a.sidePanelUrl;a=a.startActivityOnOpen;c||w(ba);var g=new gb;c=M(g,2,I(c));b&&M(c,1,I(b));b=[];e&&!a&&w(ca);d&&!a&&w(da);if(f){g=b.push;var h=db(1);f=O(h,2,I(f),"");f=O(f,3,I(e),"");g.call(b,f)}d&&(f=b.push,g=db(2),d=O(g,2,I(d),""),e=O(d,3,I(e),""),f.call(b,e));{e=new fb;d=b;L(e);const t=e.h;let r=t[C]|0;if(d==null)N(t,r,1);else{f=b=d===D?7:d[C]|0;h=(g=!!(2&b)&&!!(4&b)||!!(256&
19
- b))||Object.isFrozen(d);var k=!0,p=!0;for(let y=0;y<d.length;y++){var l=d[y];g||(l=F(l),k&&(k=!l),p&&(p=l))}g||(b=k?13:5,b=p?b&-4097:b|4096);h&&b===f||(d=[...d],f=0,b=Ja(b,r));b!==f&&(d[C]=b);r=N(t,r,1,d);2&b||!(4096&b||16&b)||Ia(t,r)}}e==null&&(e=void 0);M(c,3,e);e&&!F(e)&&Ia(c.h);if(a!=null&&typeof a!=="boolean"){var q=typeof a;throw Error(`Expected boolean but got ${q!="object"?q:a?Array.isArray(a)?"array":q:"null"}: ${a}`);}M(c,4,a);a=c.i();var n;n===void 0&&(n=0);if(!z)for(z={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
20
- e=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++)for(b=c.concat(e[d].split("")),ha[d]=b,f=0;f<b.length;f++)g=b[f],z[g]===void 0&&(z[g]=f);n=ha[n];c=Array(Math.floor(a.length/3));e=n[64]||"";for(d=b=0;b<a.length-2;b+=3)h=a[b],k=a[b+1],g=a[b+2],f=n[h>>2],h=n[(h&3)<<4|k>>4],k=n[(k&15)<<2|g>>6],g=n[g&63],c[d++]=f+h+k+g;f=0;g=e;switch(a.length-b){case 2:f=a[b+1],g=n[(f&15)<<2]||e;case 1:a=a[b],c[d]=n[a>>2]+n[(a&3)<<4|f>>4]+g+e}a=c.join("");n=window;n.top===n.self&&(a={handle:a,permittedOrigins:hb(),exposeOrigin:!0},
21
- (q=n.navigator.mediaDevices)==null||q.setCaptureHandleConfig(a))}},X=["meet","addon","screensharing"],Y=m,Z;X.length&&(Z=X.shift());)X.length||kb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=kb;}).apply(topLevel);export const meet = topLevel.meet;
6
+ var m=this||self;function aa(a){return a};var u=class extends Error{constructor(a,b){super(`Meet Addon Screenshare Info error: ${`${a}${b?` - ${b}`:""}`}`)}};function v(a){throw new a.l(a.message,a.m);}
7
+ var ba={message:"cloudProjectNumber was not defined.",m:"Ensure that cloudProjectNumber is provided in the call to exposeToMeetWhenScreensharing.",l:u},ca={message:"additionalData was defined, but startActivityOnOpen was not true.",m:"Ensure that startActivityOnOpen is set to true if additionalData is provided in the call to exposeToMeetWhenScreensharing.",l:u},da={message:"Received an incorrect value for startActivityOnOpen.",m:"Ensure that startActivityOnOpen is set to true if a mainStageUrl is provided in the call to exposeToMeetWhenScreensharing.",
8
+ l:u};let ea;function fa(a){m.setTimeout(()=>{throw a;},0)};var w,x;a:{for(var ha=["CLOSURE_FLAGS"],z=m,A=0;A<ha.length;A++)if(z=z[ha[A]],z==null){x=null;break a}x=z}var ia=x&&x[748402147];w=ia!=null?ia:!0;var ja={},B=null;function ka(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let la=void 0;function ma(a,b){if(a!=null){var c;var e=(c=la)!=null?c:la={};c=e[a]||0;c>=b||(e[a]=c+1,a=Error(),ka(a,"incident"),fa(a))}};function C(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var na=C(),oa=C(),D=C("m_m",!0);const E=C("jas",!0);var F;const pa=[];pa[E]=7;F=Object.freeze(pa);var G={};function H(a,b){return b===void 0?a.g!==I&&!!(2&(a.h[E]|0)):!!(2&b)&&a.g!==I}const I={};function qa(a,b,c){const e=b&128?0:-1,d=a.length;var f;if(f=!!d)f=a[d-1],f=f!=null&&typeof f==="object"&&f.constructor===Object;const g=d+(f?-1:0);for(b=b&128?1:0;b<g;b++)c(b-e,a[b]);if(f){a=a[d-1];for(const h in a)!isNaN(h)&&c(+h,a[h])}}var ra={};var J=typeof m.BigInt==="function"&&typeof m.BigInt(0)==="bigint";const sa=Number.MIN_SAFE_INTEGER.toString(),ta=J?BigInt(Number.MIN_SAFE_INTEGER):void 0,ua=Number.MAX_SAFE_INTEGER.toString(),va=J?BigInt(Number.MAX_SAFE_INTEGER):void 0;function wa(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(let c=0;c<a.length;c++){const e=a[c],d=b[c];if(e>d)return!1;if(e<d)return!0}};const xa=Number.isFinite;function ya(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return xa(a)?a|0:void 0}function K(a){if(a!=null&&typeof a!=="string")throw Error();return a};function za(a){return a};function L(a,b,c,e){var d=e!==void 0;e=!!e;const f=[];var g=a.length;let h,k=4294967295,p=!1;const l=!!(b&64),q=l?b&128?0:-1:void 0;if(!(b&1||(h=g&&a[g-1],h!=null&&typeof h==="object"&&h.constructor===Object?(g--,k=g):h=void 0,!l||b&128||d))){p=!0;var n;k=((n=Aa)!=null?n:za)(k-q,q,a,h,void 0)+q}b=void 0;for(d=0;d<g;d++)if(n=a[d],n!=null&&(n=c(n,e))!=null)if(l&&d>=k){const t=d-q;let r;((r=b)!=null?r:b={})[t]=n}else f[d]=n;if(h)for(let t in h){a=h[t];if(a==null||(a=c(a,e))==null)continue;g=+t;let r;
9
+ if(l&&!Number.isNaN(g)&&(r=g+q)<k)f[r]=a;else{let y;((y=b)!=null?y:b={})[t]=a}}b&&(p?f.push(b):f[k]=b);return f}function Ba(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return(J?a>=ta&&a<=va:a[0]==="-"?wa(a,sa):wa(a,ua))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){const b=a[E]|0;return a.length===0&&b&1?void 0:L(a,b,Ba)}if(a!=null&&a[D]===G)return Ca(a);return}return a}let Aa;function Ca(a){a=a.h;return L(a,a[E]|0,Ba)};let Da,Ea;function Fa(a){switch(typeof a){case "boolean":return Da||(Da=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Ea||(Ea=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}function Ga(a,b,c){return a=Ha(a,b[0],b[1],c?1:2)}
10
+ function Ha(a,b,c,e=0){if(a==null){var d=32;c?(a=[c],d|=128):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=a[E]|0;if(w&&1&d)throw Error("rfarr");2048&d&&!(2&d)&&Ia();if(d&256)throw Error("farr");if(d&64)return e!==0||d&2048||(a[E]=d|2048),a;if(c&&(d|=128,c!==a[0]))throw Error("mid");a:{c=a;d|=64;var f=c.length;if(f){var g=f-1;const k=c[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=d&128?0:-1;g-=b;if(g>=1024)throw Error("pvtlmt");for(var h in k)if(f=
11
+ +h,f<g)c[f+b]=k[h],delete k[h];else break;d=d&-16760833|(g&1023)<<14;break a}}if(b){h=Math.max(b,f-(d&128?0:-1));if(h>1024)throw Error("spvt");d=d&-16760833|(h&1023)<<14}}}d|=64;e===0&&(d|=2048);a[E]=d;return a}function Ia(){if(w)throw Error("carr");ma(oa,5)};function Ja(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[E]|0;a.length===0&&c&1?a=void 0:c&2||(!b||4096&c||16&c?a=M(a,c,!1,b&&!(c&16)):(a[E]|=34,c&4&&Object.freeze(a)));return a}if(a!=null&&a[D]===G){c=a.h;const e=c[E]|0;H(a,e)||(e&2?b=!0:e&32&&!(e&4096)?(c[E]=e|2,a.g=I,b=!0):b=!1,b?(a=new a.constructor(c),a.j=I):a=M(c,e));return a}}function M(a,b,c,e){e!=null||(e=!!(34&b));a=L(a,b,Ja,e);e=32;c&&(e|=2);b=b&16769217|e;a[E]=b;return a}
12
+ function N(a){if(a.g!==I)var b=!1;else b=a.h,b=M(b,b[E]|0),b[E]|=2048,a.h=b,a.g=void 0,a.j=void 0,b=!0;if(!b&&H(a,a.h[E]|0))throw Error();}function Ka(a,b){b===void 0&&(b=a[E]|0);b&32&&!(b&4096)&&(a[E]=b|4096)};function O(a,b,c){N(a);const e=a.h;P(e,e[E]|0,b,c);return a}function P(a,b,c,e,d){const f=c+(d?0:-1);var g=a.length-1;if(g>=1+(d?0:-1)&&f>=g){const h=a[g];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[c]=e,b}if(f<=g)return a[f]=e,b;if(e!==void 0){let h;g=((h=b)!=null?h:b=a[E]|0)>>14&1023||536870912;c>=g?e!=null&&(a[g+(d?0:-1)]={[c]:e}):a[f]=e}return b}function Q(a,b,c,e){N(a);const d=a.h;P(d,d[E]|0,b,(e==="0"?Number(c)===0:c===e)?void 0:c);return a}
13
+ function La(a,b){return a=(2&b?a|2:a&-3)&-273};function R(a,b){for(;b>127;)a.g.push(b&127|128),b>>>=7;a.g.push(b)}var Ma=class{constructor(){this.g=[]}length(){return this.g.length}end(){const a=this.g;this.g=[];return a}};function S(a,b){b.length!==0&&(a.j.push(b),a.i+=b.length)}function Na(a,b){R(a.g,b*8+2);b=a.g.end();S(a,b);b.push(a.i);return b}function Oa(a,b){var c=b.pop();for(c=a.i+a.g.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.i++;b.push(c);a.i++}var Pa=class{constructor(){this.j=[];this.i=0;this.g=new Ma}};function T(){const a=class{constructor(){throw Error();}};Object.setPrototypeOf(a,a.prototype);return a}var U=T(),Qa=T(),Ra=T(),Sa=T();var V=class{constructor(a){this.h=Ha(a)}toJSON(){var a=Ca(this);return a}};V.prototype[D]=G;V.prototype.toString=function(){return this.h.toString()};var W=class{constructor(a,b){this.g=a;a=aa(U);this.i=!!a&&b===a||!1}};function Ta(a,b,c,e,d){b=Ua(b,e);b!=null&&(c=Na(a,c),d(b,a),Oa(a,c))}const Va=new W(Ta,U),Wa=new W(Ta,U);var Xa=Symbol(),Ya=Symbol();let Za,$a;
14
+ function X(a){var b=ab,c=bb,e=a[Xa];if(e)return e;e={};e.B=a;e.o=Fa(a[0]);var d=a[1];let f=1;d&&d.constructor===Object&&(e.u=d,d=a[++f],typeof d==="function"&&(e.v=!0,Za!=null||(Za=d),$a!=null||($a=a[f+1]),d=a[f+=2]));const g={};for(;d&&Array.isArray(d)&&d.length&&typeof d[0]==="number"&&d[0]>0;){for(var h=0;h<d.length;h++)g[d[h]]=d;d=a[++f]}for(h=1;d!==void 0;){typeof d==="number"&&(h+=d,d=a[++f]);let l;var k=void 0;d instanceof W?l=d:(l=Va,f--);let q;if((q=l)==null?0:q.i){d=a[++f];k=a;var p=f;typeof d===
15
+ "function"&&(d=d(),k[p]=d);k=d}d=a[++f];p=h+1;typeof d==="number"&&d<0&&(p-=d,d=a[++f]);for(;h<p;h++){const n=g[h];k?c(e,h,l,k,n):b(e,h,l,n)}}return a[Xa]=e}function Ua(a,b){if(a instanceof V)return a.h;if(Array.isArray(a))return Ga(a,b,!1)};function ab(a,b,c){a[b]=c.g}function bb(a,b,c,e){let d,f;const g=c.g;a[b]=(h,k,p)=>g(h,k,p,f||(f=X(e).o),d||(d=cb(e)))}function cb(a){let b=a[Ya];if(!b){const c=X(a);b=(e,d)=>db(e,d,c);a[Ya]=b}return b}function db(a,b,c){qa(a,a[E]|0,(e,d)=>{if(d!=null){var f=eb(c,e);f?f(b,d,e):e<500||ma(na,3)}})}
16
+ function eb(a,b){var c=a[b];if(c)return c;if(c=a.u)if(c=c[b]){c=Array.isArray(c)?c[0]instanceof W?c:[Wa,c]:[c,void 0];var e=c[0].g;if(c=c[1]){const d=cb(c),f=X(c).o;c=a.v?$a(f,d):(g,h,k)=>e(g,h,k,f,d)}else c=e;return a[b]=c}};function fb(a,b,c){b=b==null||typeof b==="string"?b:void 0;b!=null&&(b=(ea||(ea=new TextEncoder)).encode(b),R(a.g,c*8+2),R(a.g,b.length),S(a,a.g.end()),S(a,b))};function gb(a){var b=new hb;if(a!=null){if(!xa(a))throw b=Error("enum"),ka(b,"warning"),b;a|=0}return Q(b,1,a,0)}var hb=class extends V{};var ib=class extends V{};var jb=class extends V{};jb.prototype.i=function(a){return function(){const b=new Pa;db(this.h,b,X(a));S(b,b.g.end());const c=new Uint8Array(b.i),e=b.j,d=e.length;let f=0;for(let g=0;g<d;g++){const h=e[g];c.set(h,f);f+=h.length}b.j=[c];return c}}([0,new W(fb,Ra),-1,[0,function(a,b,c=U){return new W(b,c)}(function(a,b,c,e,d){if(a.g()!==2)return!1;var f=a.i;e=Ga(void 0,e,!0);var g=b[E]|0;if(g&2)throw Error();const h=g&128?ra:void 0;if(c===-1)var k=null;else{k=c+(h?0:-1);var p=b.length-1;if(p<1+(h?0:-1))k=void 0;else if(k>=
17
+ p){var l=b[p];l!=null&&typeof l==="object"&&l.constructor===Object?k=l[c]:k===p?k=l:k=void 0}else k=b[k]}k=Array.isArray(k)?k:F;l=p=k===F?7:k[E]|0;2&g&&(l|=2);l|=1;if(2&l||2&l&&4&l||256&l||16&l)k=[...k],p=0,l=La(l,g),P(b,g,c,k,h);l&=-13;l!==p&&(k[E]=l);k.push(e);f.call(a,e,d);return!0},function(a,b,c,e,d){if(Array.isArray(b))for(let p=0;p<b.length;p++){var f=a,g=c,h=d,k=Ua(b[p],e);k!=null&&(g=Na(f,g),h(k,f),Oa(f,g))}}),[0,new W(function(a,b,c){b=ya(b);if(b!=null)if(b=parseInt(b,10),R(a.g,c*8),a=a.g,
18
+ c=b,c>=0)R(a,c);else{for(b=0;b<9;b++)a.g.push(c&127|128),c>>=7;a.g.push(1)}},Sa),new W(fb,Ra),-1]],new W(function(a,b,c){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(R(a.g,c*8),a.g.g.push(b?1:0))},Qa)]);function kb(){let a,b;const c=(b=(a=(new URL(lb||window.location.href)).searchParams.get("meet_capture_handle_origins"))==null?void 0:a.split(",").filter(e=>{try{return(new URL(e)).origin.endsWith(".google.com")}catch(d){return!1}}))!=null?b:[];return c.length===0?mb:c}let lb="";const mb=["https://meet.google.com"];for(var nb={exposeToMeetWhenScreensharing:function(a){var b=a.A,c=a.cloudProjectNumber,e=a.additionalData,d=a.mainStageUrl,f=a.sidePanelUrl;a=a.startActivityOnOpen;c||v(ba);var g=new jb;c=O(g,2,K(c));b&&O(c,1,K(b));b=[];e&&!a&&v(ca);d&&!a&&v(da);if(f){g=b.push;var h=gb(1);f=Q(h,2,K(f),"");f=Q(f,3,K(e),"");g.call(b,f)}d&&(f=b.push,g=gb(2),d=Q(g,2,K(d),""),e=Q(d,3,K(e),""),f.call(b,e));{e=new ib;d=b;N(e);const t=e.h;let r=t[E]|0;if(d==null)P(t,r,1);else{f=b=d===F?7:d[E]|0;h=(g=!!(2&b)&&!!(4&b)||!!(256&
19
+ b))||Object.isFrozen(d);var k=!0,p=!0;for(let y=0;y<d.length;y++){var l=d[y];g||(l=H(l),k&&(k=!l),p&&(p=l))}g||(b=k?13:5,b=p?b&-4097:b|4096);h&&b===f||(d=[...d],f=0,b=La(b,r));b!==f&&(d[E]=b);r=P(t,r,1,d);2&b||!(4096&b||16&b)||Ka(t,r)}}e==null&&(e=void 0);O(c,3,e);e&&!H(e)&&Ka(c.h);if(a!=null&&typeof a!=="boolean"){var q=typeof a;throw Error(`Expected boolean but got ${q!="object"?q:a?Array.isArray(a)?"array":q:"null"}: ${a}`);}O(c,4,a);a=c.i();var n;n===void 0&&(n=0);if(!B)for(B={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
20
+ e=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++)for(b=c.concat(e[d].split("")),ja[d]=b,f=0;f<b.length;f++)g=b[f],B[g]===void 0&&(B[g]=f);n=ja[n];c=Array(Math.floor(a.length/3));e=n[64]||"";for(d=b=0;b<a.length-2;b+=3)h=a[b],k=a[b+1],g=a[b+2],f=n[h>>2],h=n[(h&3)<<4|k>>4],k=n[(k&15)<<2|g>>6],g=n[g&63],c[d++]=f+h+k+g;f=0;g=e;switch(a.length-b){case 2:f=a[b+1],g=n[(f&15)<<2]||e;case 1:a=a[b],c[d]=n[a>>2]+n[(a&3)<<4|f>>4]+g+e}a=c.join("");n=window;n.top===n.self&&(a={handle:a,permittedOrigins:kb(),exposeOrigin:!0},
21
+ (q=n.navigator.mediaDevices)==null||q.setCaptureHandleConfig(a))}},ob=["meet","addon","screensharing"],Y=m,Z;ob.length&&(Z=ob.shift());)ob.length||nb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=nb;}).apply(topLevel);export const meet = topLevel.meet;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@googleworkspace/meet-addons",
3
3
  "description": "The Google Meet add-ons SDK lets you embed your app into Google Meet as an add-on where users can discover, share, and collaborate in the app without leaving Meet",
4
- "version": "1.2.0-dev-810597686",
4
+ "version": "1.2.0-dev-811518847",
5
5
  "repository": "googleworkspace/meet",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://developers.google.com/meet/add-ons/guides/overview",