@googleworkspace/meet-addons 0.9.1-665015387 → 0.9.1-666062218
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 +63 -31
- package/meet.addons.js +63 -63
- package/package.json +23 -1
package/meet.addons.d.ts
CHANGED
|
@@ -310,25 +310,25 @@ export type FrameType = 'SIDE_PANEL' | 'MAIN_STAGE';
|
|
|
310
310
|
* - `OPEN_ADDON`: The frame was opened because the add-on was selected in the
|
|
311
311
|
* activities panel.
|
|
312
312
|
*
|
|
313
|
-
* - `
|
|
314
|
-
*
|
|
313
|
+
* - `START_ACTIVITY`: The frame was opened because the local user started an
|
|
314
|
+
* activity.
|
|
315
315
|
*
|
|
316
|
-
* - `
|
|
317
|
-
*
|
|
316
|
+
* - `JOIN_ACTIVITY`: The frame was opened because the user joined an activity
|
|
317
|
+
* started by another user.
|
|
318
318
|
*/
|
|
319
319
|
export type FrameOpenReason =
|
|
320
320
|
| 'UNKNOWN'
|
|
321
321
|
| 'OPEN_ADDON'
|
|
322
|
-
| '
|
|
323
|
-
| '
|
|
322
|
+
| 'START_ACTIVITY'
|
|
323
|
+
| 'JOIN_ACTIVITY';
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
|
-
* The different reasons why the
|
|
326
|
+
* The different reasons why the activity was ended:
|
|
327
327
|
*
|
|
328
|
-
* - `END_REASON_UNSPECIFIED`: The reason for ending the
|
|
328
|
+
* - `END_REASON_UNSPECIFIED`: The reason for ending the activity is
|
|
329
329
|
* unspecified.
|
|
330
330
|
*/
|
|
331
|
-
export type
|
|
331
|
+
export type EndActivityReason = 'END_REASON_UNSPECIFIED';
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
334
|
* A client-initiated message sent from one add-on frame to another.
|
|
@@ -350,26 +350,28 @@ export interface FrameToFrameMessage {
|
|
|
350
350
|
* Possible error types for when interacting with the Meet Web Add-ons SDK
|
|
351
351
|
* throws an error.
|
|
352
352
|
*/
|
|
353
|
+
|
|
353
354
|
export type ErrorType =
|
|
354
355
|
|
|
356
|
+
| 'ActivityStartingStateEmpty'
|
|
357
|
+
| 'ActivityStartingStateMissingAttributes'
|
|
358
|
+
| 'ActivityStartingStateUnrecognizedAttributes'
|
|
355
359
|
| 'AddonSessionAlreadyCreated'
|
|
356
360
|
| 'ArgumentNullError'
|
|
357
361
|
| 'ArgumentTypeError'
|
|
358
362
|
| 'CoactivityIsOngoing'
|
|
359
|
-
| 'CollaborationStartingStateEmpty'
|
|
360
|
-
| 'CollaborationStartingStateMissingAttributes'
|
|
361
|
-
| 'CollaborationStartingStateUnrecognizedAttributes'
|
|
362
363
|
| 'DestinationNotReady'
|
|
363
364
|
| 'InternalError'
|
|
365
|
+
| 'InvalidActivityStartingState'
|
|
364
366
|
| 'InvalidCloudProjectNumber'
|
|
365
|
-
| 'InvalidCollaborationStartingState'
|
|
366
367
|
| 'MissingUrlParameter'
|
|
367
368
|
| 'NeedsMainStageContext'
|
|
368
369
|
| 'NeedsSidePanelContext'
|
|
369
370
|
| 'NotSupportedInStandalone'
|
|
370
371
|
| 'RequiresEapEnrollment'
|
|
371
|
-
| '
|
|
372
|
+
| 'SizeLimitExceededActivityStartingState'
|
|
372
373
|
| 'SizeLimitExceededFrameToFrameMessage'
|
|
374
|
+
| 'UserCancelled'
|
|
373
375
|
| 'UserNotInitiator';
|
|
374
376
|
|
|
375
377
|
/**
|
|
@@ -385,17 +387,37 @@ export interface AddonCallbacks {
|
|
|
385
387
|
|
|
386
388
|
/**
|
|
387
389
|
* Starting state of the add-on when the participant accepts the invitation to
|
|
388
|
-
*
|
|
390
|
+
* start an activity.
|
|
389
391
|
*/
|
|
390
|
-
export interface
|
|
392
|
+
export interface ActivityStartingState {
|
|
391
393
|
/**
|
|
392
|
-
* The URL that the main stage opens for users joining the
|
|
394
|
+
* The URL that the main stage opens for users joining the activity.
|
|
393
395
|
* The length of this URL must be less than 512 characters.
|
|
394
396
|
*/
|
|
395
397
|
mainStageUrl?: string;
|
|
396
398
|
|
|
397
399
|
/**
|
|
398
|
-
* The URL that the side panel opens for users joining the
|
|
400
|
+
* The URL that the side panel opens for users joining the activity.
|
|
401
|
+
* The length of this URL must be less than 512 characters.
|
|
402
|
+
*/
|
|
403
|
+
sidePanelUrl?: string;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Data internal to the add-on that it can use to initialize itself. Useful
|
|
407
|
+
* for communicating application-specific state to users joining the activity
|
|
408
|
+
* that cannot be stored in the URLs.
|
|
409
|
+
* The length of this string must be less than 4,096 characters.
|
|
410
|
+
*/
|
|
411
|
+
additionalData?: string;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Starting state of an individual add-on frame.
|
|
416
|
+
* @ignore Exclusively intended for use by the rooms standalone add-on.
|
|
417
|
+
*/
|
|
418
|
+
export interface AddonStartingState {
|
|
419
|
+
/**
|
|
420
|
+
* The URL that the side panel opens for users starting the add-on.
|
|
399
421
|
* The length of this URL must be less than 512 characters.
|
|
400
422
|
*/
|
|
401
423
|
sidePanelUrl?: string;
|
|
@@ -419,15 +441,15 @@ export interface MeetAddonClient {
|
|
|
419
441
|
getMeetingInfo(): Promise<MeetingInfo>;
|
|
420
442
|
/**
|
|
421
443
|
* Retrieves information about the initial state of the add-on when the
|
|
422
|
-
* participant accepts the invitation to
|
|
444
|
+
* participant accepts the invitation to activity.
|
|
423
445
|
*/
|
|
424
|
-
|
|
446
|
+
getActivityStartingState(): Promise<ActivityStartingState>;
|
|
425
447
|
/**
|
|
426
448
|
* Sets or updates information about the initial state of the add-on that's
|
|
427
|
-
* used when the participant accepts the invitation to
|
|
449
|
+
* used when the participant accepts the invitation to join the activity.
|
|
428
450
|
*/
|
|
429
|
-
|
|
430
|
-
|
|
451
|
+
setActivityStartingState(
|
|
452
|
+
activityStartingState: ActivityStartingState,
|
|
431
453
|
): Promise<void>;
|
|
432
454
|
/**
|
|
433
455
|
* Provides access to the {@link
|
|
@@ -456,25 +478,23 @@ export interface MeetAddonClient {
|
|
|
456
478
|
getCurrentMeetingRecordingStatus(): Promise<RecordingStatus>;
|
|
457
479
|
|
|
458
480
|
/**
|
|
459
|
-
* Starts
|
|
481
|
+
* Starts an activity with the provided starting state of frames that the
|
|
460
482
|
* initiator and participants can use during the activity.
|
|
461
483
|
*/
|
|
462
|
-
|
|
463
|
-
collaborationStartingState?: CollaborationStartingState,
|
|
464
|
-
): Promise<void>;
|
|
484
|
+
startActivity(activityStartingState?: ActivityStartingState): Promise<void>;
|
|
465
485
|
|
|
466
486
|
/**
|
|
467
|
-
* Ends an ongoing
|
|
487
|
+
* Ends an ongoing activity.
|
|
468
488
|
* Will fail if:
|
|
469
489
|
* - There is not an ongoing coActivity.
|
|
470
|
-
* - The user is not the initiator of the
|
|
490
|
+
* - The user is not the initiator of the activity.
|
|
471
491
|
*/
|
|
472
|
-
|
|
492
|
+
endActivity(): Promise<void>;
|
|
473
493
|
|
|
474
494
|
/**
|
|
475
495
|
* Close the add-on that's running in the Meet iframe by unloading all
|
|
476
496
|
* iframes and closing the side panel if it's open. Calling this while there's
|
|
477
|
-
* an ongoing
|
|
497
|
+
* an ongoing activity has no effect.
|
|
478
498
|
*/
|
|
479
499
|
closeAddon(): Promise<void>;
|
|
480
500
|
}
|
|
@@ -530,6 +550,18 @@ export interface MeetMainStageClient extends MeetAddonClient {
|
|
|
530
550
|
loadSidePanel(): Promise<void>;
|
|
531
551
|
}
|
|
532
552
|
|
|
553
|
+
/**
|
|
554
|
+
* The `MeetAddonClient` for the rooms standalone component of an add-on.
|
|
555
|
+
* @ignore Exclusively intended for use by the rooms standalone add-on.
|
|
556
|
+
*/
|
|
557
|
+
export interface MeetRoomsStandaloneClient extends MeetAddonClient {
|
|
558
|
+
/**
|
|
559
|
+
* Sets or updates information about the initial state of the add-on that's
|
|
560
|
+
* used when the add-on is transferred into a Meet call.
|
|
561
|
+
*/
|
|
562
|
+
setAddonStartingState(addonStartingState: AddonStartingState): Promise<void>;
|
|
563
|
+
}
|
|
564
|
+
|
|
533
565
|
/**
|
|
534
566
|
* The AddonSession interface. Used to interact with Meet.
|
|
535
567
|
*/
|
package/meet.addons.js
CHANGED
|
@@ -5,82 +5,82 @@ a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=
|
|
|
5
5
|
SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
var m=this||self,ea=function(a,b){a:{var c=["CLOSURE_FLAGS"];for(var d=m,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},fa=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},ha=function(a,b,c){return a.call.apply(a.bind,arguments)},ia=function(a,b,c){ia=ha;return ia.apply(null,arguments)},ja=function(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
|
-
ka=function(a,b){function c(){}c.prototype=b.prototype;a.Z=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.
|
|
8
|
+
ka=function(a,b){function c(){}c.prototype=b.prototype;a.Z=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Qb=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 la(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,la);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}ka(la,Error);la.prototype.name="CustomError";function ma(a){m.setTimeout(()=>{throw a;},0)};var na=ea(610401301,!1),oa=ea(645172343,ea(1,!0));function pa(){var a=m.navigator;return a&&(a=a.userAgent)?a:""}var qa;const ra=m.navigator;qa=ra?ra.userAgentData||null:null;function sa(a){return na?qa?qa.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function n(a){return pa().indexOf(a)!=-1};function q(){return na?!!qa&&qa.brands.length>0:!1}function ta(){return q()?sa("Chromium"):(n("Chrome")||n("CriOS"))&&!(q()?0:n("Edge"))||n("Silk")};function ua(a,b){b=Array.prototype.indexOf.call(a,b,void 0);let c;(c=b>=0)&&Array.prototype.splice.call(a,b,1);return c};var va=pa().toLowerCase().indexOf("webkit")!=-1&&!n("Edge");!n("Android")||ta();ta();n("Safari")&&(ta()||(q()?0:n("Coast"))||(q()?0:n("Opera"))||(q()?0:n("Edge"))||(q()?sa("Microsoft Edge"):n("Edg/"))||q()&&sa("Opera"));function wa(a){let b="",c=0;const d=a.length-10240;for(;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}const xa=/[-_.]/g,ya={"-":"+",_:"/",".":"="};function za(a){return ya[a]||""}function Aa(a){return a!=null&&a instanceof Uint8Array}var Ba={};let Ca;function Da(a){if(a!==Ba)throw Error("illegal external caller");}var Fa=function(){return Ca||(Ca=new Ea(null,Ba))},Ea=class{constructor(a,b){Da(b);this.qa=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};var Ga=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let Ha;function Ia(){const a=Error();Ga(a,"incident");ma(a)}function Ja(a){a=Error(a);Ga(a,"warning");return a};function Ka(){return typeof BigInt==="function"};function La(a){return Array.prototype.slice.call(a)};var r=Symbol(),Ma=Symbol(),Na=Symbol();function Oa(a,b){b[r]=(a|0)&-14591}function Pa(a,b){b[r]=(a|34)&-14557};var Qa={},Ra={};function Sa(a){return!(!a||typeof a!=="object"||a.Tb!==Ra)}function Ta(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function Ua(a,b,c){if(a!=null)if(typeof a==="string")a=a?new Ea(a,Ba):Fa();else if(a.constructor!==Ea)if(Aa(a))a=a.length?new Ea(c?a:new Uint8Array(a),Ba):Fa();else{if(!b)throw Error();a=void 0}return a}function Va(a){return!Array.isArray(a)||a.length?!1:(a[r]|0)&1?!0:!1}var Wa;const Ya=[];Ya[r]=55;Wa=Object.freeze(Ya);
|
|
9
9
|
function Za(a){if(a&2)throw Error();}var $a=Object.freeze({});Object.freeze({});var ab=Object.freeze({});let u=0,v=0;function bb(a){const b=a>>>0;u=b;v=(a-b)/4294967296>>>0}function cb(a){if(a<0){bb(0-a);const [b,c]=db(u,v);u=b>>>0;v=c>>>0}else bb(a)}function eb(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Ka()?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+fb(c)+fb(a));return c}
|
|
10
|
-
function fb(a){a=String(a);return"0000000".slice(a.length)+a}function db(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};function gb(a){a.
|
|
10
|
+
function fb(a){a=String(a);return"0000000".slice(a.length)+a}function db(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};function gb(a){a.Sb=!0;return a};var hb=gb(a=>typeof a==="number"),ib=gb(a=>typeof a==="string"),jb=gb(a=>typeof a==="boolean");var kb=typeof m.BigInt==="function"&&typeof m.BigInt(0)==="bigint";var qb=gb(a=>kb?a>=lb&&a<=mb:a[0]==="-"?nb(a,ob):nb(a,pb));const ob=Number.MIN_SAFE_INTEGER.toString(),lb=kb?BigInt(Number.MIN_SAFE_INTEGER):void 0,pb=Number.MAX_SAFE_INTEGER.toString(),mb=kb?BigInt(Number.MAX_SAFE_INTEGER):void 0;function nb(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}};function rb(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a}const sb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function tb(a){const b=typeof a;switch(b){case "bigint":return!0;case "number":return Number.isFinite(a)}return b!=="string"?!1:sb.test(a)}
|
|
11
11
|
function ub(a){if(!tb(a))throw Ja("int64");switch(typeof a){case "string":return vb(a);case "bigint":var b=a=BigInt.asIntN(64,a);if(ib(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(hb(b)&&!Number.isSafeInteger(b))throw Error(String(b));a=kb?BigInt(a):jb(a)?a?"1":"0":ib(a)?a.trim()||"0":String(a);return a;default:return wb(a)}}
|
|
12
12
|
function wb(a){a=Math.trunc(a);if(!Number.isSafeInteger(a)){cb(a);var b=u,c=v;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);b=c*4294967296+(b>>>0);a=a?-b:b}return a}
|
|
13
13
|
function vb(a){var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));if(!(a[0]==="-"?a.length<20||a.length===20&&Number(a.substring(0,7))>-922337:a.length<19||a.length===19&&Number(a.substring(0,6))<922337)){if(a.length<16)cb(Number(a));else if(Ka())a=BigInt(a),u=Number(a&BigInt(4294967295))>>>0,v=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");v=u=0;const c=a.length;for(let d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6){const f=Number(a.slice(d,
|
|
14
|
-
e));v*=1E6;u=u*1E6+f;u>=4294967296&&(v+=Math.trunc(u/4294967296),v>>>=0,u>>>=0)}if(b){const [d,e]=db(u,v);u=d;v=e}}a=u;b=v;if(b&2147483648)if(Ka())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=db(a,b);a="-"+eb(c,d)}else a=eb(a,b)}return a}function xb(a){if(a!=null&&typeof a!=="string")throw Error();return a}function yb(a,b,c){if(a!=null&&typeof a==="object"&&a.
|
|
15
|
-
function Pb(a,b,c,d,e){const f=d||c?a[r]|0:0;d=d?!!(f&32):void 0;a=La(a);for(let g=0;g<a.length;g++)a[g]=Ob(a[g],b,c,d,e);c&&c(f,a);return a}function Qb(a){return a.
|
|
14
|
+
e));v*=1E6;u=u*1E6+f;u>=4294967296&&(v+=Math.trunc(u/4294967296),v>>>=0,u>>>=0)}if(b){const [d,e]=db(u,v);u=d;v=e}}a=u;b=v;if(b&2147483648)if(Ka())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=db(a,b);a="-"+eb(c,d)}else a=eb(a,b)}return a}function xb(a){if(a!=null&&typeof a!=="string")throw Error();return a}function yb(a,b,c){if(a!=null&&typeof a==="object"&&a.Ha===Qa)return a;if(Array.isArray(a)){var d=a[r]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&(a[r]=e);return new b(a)}};var Db=function(a){var b=zb(a);if(b)return b;if(Math.random()>.01)return a;if(Ab===void 0)if(typeof Proxy!=="function")Ab=null;else try{Ab=Proxy.toString().indexOf("[native code]")!==-1?Proxy:null}catch{Ab=null}b=Ab;if(!b)return a;b=new b(a,{set(c,d,e){Bb();c[d]=e;return!0}});Cb(a,b);return b};function Bb(){Ia()}let Eb=void 0,Fb=void 0;var zb=function(a){let b;return(b=Eb)==null?void 0:b.get(a)};function Cb(a,b){(Eb||(Eb=new WeakMap)).set(a,b);(Fb||(Fb=new WeakMap)).set(b,a)}let Ab=void 0;let Gb;function Kb(a,b){Gb=b;a=new a(b);Gb=void 0;return a};function Lb(a,b){return Mb(b)}function Mb(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return qb(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Va(a))return}else{if(Aa(a))return wa(a);if(a instanceof Ea){const b=a.qa;return b==null?"":typeof b==="string"?b:a.qa=wa(b)}}}return a};function Nb(a,b,c){a=La(a);var d=a.length;const e=b&256?a[d-1]:void 0;d+=e?-1:0;for(b=b&512?1:0;b<d;b++)a[b]=c(a[b]);if(e){b=a[b]={};for(const f in e)b[f]=c(e[f])}return a}function Ob(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=Va(a)?void 0:e&&(a[r]|0)&2?a:Pb(a,b,c,d!==void 0,e);else if(Ta(a)){const f={};for(let g in a)f[g]=Ob(a[g],b,c,d,e);a=f}else a=b(a,d);return a}}
|
|
15
|
+
function Pb(a,b,c,d,e){const f=d||c?a[r]|0:0;d=d?!!(f&32):void 0;a=La(a);for(let g=0;g<a.length;g++)a[g]=Ob(a[g],b,c,d,e);c&&c(f,a);return a}function Qb(a){return a.Ha===Qa?a.toJSON():Mb(a)};function Rb(a,b,c=Pa){if(a!=null){if(a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=a[r]|0;if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(a[r]=(d|34)&-12293,a):Pb(a,Rb,d&4?Pa:c,!0,!0)}a.Ha===Qa&&(c=a.h,d=c[r],a=d&2?a:Kb(a.constructor,Sb(c,d,!0)));return a}}function Sb(a,b,c){const d=c||b&2?Pa:Oa,e=!!(b&32);a=Nb(a,b,f=>Rb(f,e,d));a[r]=a[r]|32|(c?2:0);return a}function Tb(a){const b=a.h,c=b[r];return c&2?Kb(a.constructor,Sb(b,c,!1)):a};var Vb=function(a,b){a=a.h;return Ub(a,a[r],b)};function Wb(a,b,c,d){b=d+(+!!(b&512)-1);if(!(b<0||b>=a.length||b>=c))return a[b]}var Ub=function(a,b,c,d){if(c===-1)return null;const e=b>>14&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(Wb(a,b,e,c)&&Ma!=null){var g;a=(g=Ha)!=null?g:Ha={};g=a[Ma]||0;g>=4||(a[Ma]=g+1,Ia())}return d}return Wb(a,b,e,c)}},Xb=function(a,b,c){const d=a.h;let e=d[r];Za(e);w(d,e,b,c);return a};
|
|
16
16
|
function w(a,b,c,d,e){const f=b>>14&1023||536870912;if(c>=f||e&&!oa){let g=b;if(b&256)e=a[a.length-1];else{if(d==null)return g;e=a[f+(+!!(b&512)-1)]={};g|=256}e[c]=d;c<f&&(a[c+(+!!(b&512)-1)]=void 0);g!==b&&(a[r]=g);return g}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b}var Zb=function(a,b,c,d){c=x(a,d)===c?c:-1;return Yb(a,b,c)!==void 0};function $b(a){return!!(2&a)&&!!(4&a)||!!(2048&a)}
|
|
17
17
|
function y(a,b,c,d){const e=a.h;let f=e[r];Za(f);w(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}var x=function(a,b){a=a.h;return ac(bc(a),a,a[r],b)};function bc(a){let b;return(b=a[Na])!=null?b:a[Na]=new Map}function ac(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];Ub(b,c,g)!=null&&(e!==0&&(c=w(b,c,e)),e=g)}a.set(d,e);return e}function Yb(a,b,c,d){a=a.h;let e=a[r];const f=Ub(a,e,c,d);b=yb(f,b,e);b!==f&&b!=null&&w(a,e,c,b,d);return b}
|
|
18
18
|
var z=function(a,b,c){b=Yb(a,b,c,!1);if(b==null)return b;a=a.h;let d=a[r];if(!(d&2)){const e=Tb(b);e!==b&&(b=e,w(a,d,c,b,!1))}return b},A=function(a,b,c){c==null&&(c=void 0);return Xb(a,b,c)},B=function(a,b,c,d){d==null&&(d=void 0);a:{const g=a.h;var e=g[r];Za(e);if(d==null){var f=bc(g);if(ac(f,g,e,c)===b)f.set(c,0);else break a}else{f=g;const h=bc(f),k=ac(h,f,e,c);k!==b&&(k&&(e=w(f,e,k)),h.set(c,b))}w(g,e,b,d)}return a};function cc(a,b){a=(2&b?a|2:a&-3)|32;return a&=-2049}
|
|
19
19
|
function dc(a,b,c){32&b&&c||(a&=-33);return a}function ec(a,b){return a!=null?a:b}
|
|
20
20
|
var fc=function(a){a=Vb(a,1);a!=null&&(typeof a==="bigint"?qb(a)?a=Number(a):(a=BigInt.asIntN(64,a),a=qb(a)?Number(a):String(a)):a=tb(a)?typeof a==="number"?wb(a):vb(a):void 0);return ec(a,0)},C=function(a,b){a=Vb(a,b);return ec(a==null||typeof a==="string"?a:void 0,"")},D=function(a,b){a=Vb(a,b);a=a==null?a:Number.isFinite(a)?a|0:void 0;return ec(a,0)},E=function(a,b,c,d){c=x(a,d)===c?c:-1;return z(a,b,c)},F=function(a,b,c){return y(a,b,xb(c),"")},G=function(a,b,c){if(c!=null){if(!Number.isFinite(c))throw Ja("enum");
|
|
21
21
|
c|=0}return y(a,b,c,0)};let gc;
|
|
22
|
-
var ic=function(a){try{return gc=!0,JSON.stringify(hc(a),Lb)}finally{gc=!1}},H=class{constructor(a){a:{a==null&&(a=Gb);Gb=void 0;if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[r]|0;if(b&2048)throw Error("farr");if(b&64)break a;var c=a;b|=64;var d=c.length;if(d&&(--d,Ta(c[d]))){b|=256;c=d-(+!!(b&512)-1);if(c>=1024)throw Error("pvtlmt");b=b&-16760833|(c&1023)<<14}}a[r]=b}this.h=a}toJSON(){return hc(this)}getExtension(a){const b=a.J?a.
|
|
23
|
-
!0):a.U(this,a.J,a.L,!0):a.
|
|
22
|
+
var ic=function(a){try{return gc=!0,JSON.stringify(hc(a),Lb)}finally{gc=!1}},H=class{constructor(a){a:{a==null&&(a=Gb);Gb=void 0;if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[r]|0;if(b&2048)throw Error("farr");if(b&64)break a;var c=a;b|=64;var d=c.length;if(d&&(--d,Ta(c[d]))){b|=256;c=d-(+!!(b&512)-1);if(c>=1024)throw Error("pvtlmt");b=b&-16760833|(c&1023)<<14}}a[r]=b}this.h=a}toJSON(){return hc(this)}getExtension(a){const b=a.J?a.Ab?a.U(this,a.J,a.L,void 0===$a?2:4,
|
|
23
|
+
!0):a.U(this,a.J,a.L,!0):a.Ab?a.U(this,a.L,void 0===$a?2:4,!0):a.U(this,a.L,a.defaultValue,!0);return a.Rb&&b==null?a.defaultValue:b}hasExtension(a){a.J?a=Yb(this,a.J,a.L,!0)!==void 0:(a=a.J?a.U(this,a.J,a.L,!0):a.U(this,a.L,null,!0),a=(a===null?void 0:a)!==void 0);return a}clone(){const a=this.h;return Kb(this.constructor,Sb(a,a[r],!1))}};H.prototype.Ha=Qa;H.prototype.toString=function(){try{return gc=!0,hc(this).toString()}finally{gc=!1}};
|
|
24
24
|
function hc(a){a=gc?a.h:Pb(a.h,Qb,void 0,void 0,!1);{var b=!gc;let p=a.length;if(p){var c=a[p-1],d=Ta(c);d?p--:c=void 0;var e=a;if(d){b:{var f=c;var g={};d=!1;if(f)for(var h in f){if(isNaN(+h)){g[h]=f[h];continue}let t=f[h];Array.isArray(t)&&(Va(t)||Sa(t)&&t.size===0)&&(t=null);t==null&&(d=!0);t!=null&&(g[h]=t)}if(d){for(let t in g)break b;g=null}else g=f}f=g==null?c!=null:g!==c}for(;p>0;p--){h=e[p-1];if(!(h==null||Va(h)||Sa(h)&&h.size===0))break;var k=!0}if(e!==a||f||k){if(!b)e=Array.prototype.slice.call(e,
|
|
25
|
-
0,p);else if(k||f||g)e.length=p;g&&e.push(g)}k=e}else k=a}return k};function jc(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[r]|=32;b=Kb(a,b)}return b}};var kc=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[r]|=34;return new a(b)}}(class extends H{});var lc=class extends H{setSeconds(a){return y(this,1,a==null?a:ub(a),"0")}};var mc=class extends H{};var oc=class extends H{
|
|
25
|
+
0,p);else if(k||f||g)e.length=p;g&&e.push(g)}k=e}else k=a}return k};function jc(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[r]|=32;b=Kb(a,b)}return b}};var kc=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[r]|=34;return new a(b)}}(class extends H{});var lc=class extends H{setSeconds(a){return y(this,1,a==null?a:ub(a),"0")}};var mc=class extends H{};var oc=class extends H{Ua(){return x(this,nc)}},nc=[2,3];var pc=class extends H{};var I=class extends Error{constructor({errorType:a,message:b,g:c}){super(`Meet Add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},qc={errorType:"InternalError",message:"An unexpected error has occurred.",g:"No further information is available."},rc={errorType:"InternalError",message:"An unexpected error has occurred.",g:"No further information is available."},sc={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",g:"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
26
|
tc={errorType:"NeedsMainStageContext",message:"This method can only be invoked if the addon is running in the main stage.",g:"Use getFrameType to check whether the addon is running in the main stage before invoking this method."},uc={errorType:"NeedsSidePanelContext",message:"This method can only be invoked if the addon is running in the side panel.",g:"Use getFrameType to check whether the addon is running in the side panel before invoking this method."},vc={errorType:"NotSupportedInStandalone",
|
|
27
27
|
message:"This method is not supported in standalone mode.",g:"Do not call this method in standalone mode."},wc={errorType:"InternalError",message:"The frame type URL parameter is set to an unexpected value.",g:"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)."},xc={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.",
|
|
28
|
-
g:"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."},yc={errorType:"DestinationNotReady",message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",g:"Make sure the destination frame has connected before sending messages to it."},zc={errorType:"
|
|
29
|
-
message:"Origin of the
|
|
30
|
-
Bc={errorType:"
|
|
31
|
-
Dc=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,g:"No further information is available."}),Ec={errorType:"CoactivityIsOngoing",message:"Operation cannot be performed while
|
|
32
|
-
g:"Meet add-on early access enrollment is currently closed."},Hc={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current
|
|
33
|
-
Jc={errorType:"SizeLimitExceededFrameToFrameMessage",message:"The size of the frame to frame message exceeds the limits allowed.",g:"Ensure that the frame to frame message size is less than 1,000,000 characters."},Kc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",g:"Only instantiate the AddonSession once."};
|
|
34
|
-
function
|
|
35
|
-
function
|
|
36
|
-
g:"No further information is available."};case 4:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon is not authorized for this ${a}.`,g:"No further information is available."};case 0:return Dc(a);case 5:a:switch(a){case "coActivity":c={errorType:"InternalError",message:`Could not connect to ${a} channel. The coActivity was not found.`,g:`Consider starting the ${a} only after after the
|
|
37
|
-
message:`Could not connect to ${a} channel.`,g:"No further information is available."}}return c;default:return Dc(a)}}function
|
|
38
|
-
(f===1||f===4&&32&g))){$b(g)&&(c=La(c),g=cc(g,a),a=w(b,a,1,c));d=c;e=g;for(g=0;g<d.length;g++)k=d[g],p=Tb(k),k!==p&&(d[g]=p);e|=8;e=d.length?e&-17:e|16;g=d[r]=e}let t;f===1||f===4&&32&g?$b(g)||(a=g,b=!!(32&g),g|=!c.length||16&g&&(!h||b)?2:2048,g!==a&&(c[r]=g),Object.freeze(c)):(h=f!==5?!1:!!(32&g)||$b(g)||!!zb(c),(f===2||h)&&$b(g)&&(c=La(c),g=cc(g,a),g=dc(g,a,!1),c[r]=g,a=w(b,a,1,c)),$b(g)||(b=g,g=dc(g,a,!1),g!==b&&(c[r]=g)),h&&(t=Db(c)));return t||c},
|
|
39
|
-
t[r];Za(J);if(a==null)w(t,J,1);else{var c=a,d;a=((d=Fb)==null?void 0:d.get(c))||c;c=d=a[r]|0;var e=!!(2&d)||!!(2048&d),f=e||Object.isFrozen(a),g;if(g=!f)g=void 0===ab||!1;var h=!0,k=!0;for(let T=0;T<a.length;T++){var p=a[T];e||(p=!!((p.h[r]|0)&2),h&&(h=!p),k&&(k=p))}e||(d|=5,d=h?d|8:d&-9,d=k?d|16:d&-17);if(g||f&&d!==c)a=La(a),c=0,d=cc(d,J),d=dc(d,J,!0);d!==c&&(a[r]=d);w(t,J,1,a)}}return b},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
0)
|
|
44
|
-
|
|
45
|
-
e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}});if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.
|
|
46
|
-
var
|
|
47
|
-
N.prototype.cancel=function(a){if(this.m==0){var b=new O(a);
|
|
48
|
-
var
|
|
49
|
-
h);k===void 0&&h instanceof O?g(h):f(k)}catch(p){g(p)}}:g});e.C.H=a;
|
|
50
|
-
var
|
|
51
|
-
(f=!0,c.call(e,k))},h=function(k){f||(f=!0,d.call(e,k))};try{b.call(a,g,h)}catch(k){h(k)}},
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
{a.l.delete(b);const f=
|
|
55
|
-
this.
|
|
56
|
-
async function
|
|
57
|
-
var
|
|
58
|
-
S,d=new M;b=B(d,15,L,b);await c(a,P(b))},
|
|
59
|
-
` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=E(c,
|
|
60
|
-
|
|
61
|
-
class
|
|
28
|
+
g:"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."},yc={errorType:"DestinationNotReady",message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",g:"Make sure the destination frame has connected before sending messages to it."},zc={errorType:"InvalidActivityStartingState",
|
|
29
|
+
message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",g:"Ensure that the ActivityStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest."},Ac={errorType:"ActivityStartingStateMissingAttributes",message:"The supplied ActivityStartingState object does not contain any recognized attributes.",g:"Ensure that the ActivityStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},
|
|
30
|
+
Bc={errorType:"ActivityStartingStateUnrecognizedAttributes",message:"The supplied ActivityStartingState object contains attributes that are not recognized.",g:"Ensure that the ActivityStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},Cc=(a,b,c)=>({errorType:"ArgumentTypeError",message:`The type '${b}' of argument supplied for '${a}' did not match the expected type '${c}'.`,g:"Ensure the type of the argument provided matches the expected type."}),
|
|
31
|
+
Dc=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,g:"No further information is available."}),Ec={errorType:"CoactivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",g:"Ensure that no activity is ongoing."},Fc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",g:"Send one of the available commands in the frame message."},Gc={errorType:"RequiresEapEnrollment",message:"This feature is only available to early access partners.",
|
|
32
|
+
g:"Meet add-on early access enrollment is currently closed."},Hc={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current activity.",g:"Ensure that the user is the initiator of the current activity or that the activity has ended."},Ic={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",g:"Ensure that the activityStartingState URL size is less than 512 characters and the data size is less than 4096 characters."},
|
|
33
|
+
Jc={errorType:"SizeLimitExceededFrameToFrameMessage",message:"The size of the frame to frame message exceeds the limits allowed.",g:"Ensure that the frame to frame message size is less than 1,000,000 characters."},Kc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",g:"Only instantiate the AddonSession once."},Lc={errorType:"UserCancelled",message:"The user cancelled starting an activity.",g:"The user needs to click continue to start the activity."};
|
|
34
|
+
function Mc(a){switch(a){case 0:return qc;case 1:return yc;case 2:return zc;case 3:return Ec;case 4:return Fc;case 5:return Gc;case 6:return vc;case 7:return Hc;case 8:return Ic;case 9:return Jc;case 10:return Lc;default:return rc}}
|
|
35
|
+
function Nc(a){let b;var c=(b=D(a,1))!=null?b:0;a=Oc(a.Ua());switch(c){case 1:return{errorType:"InternalError",message:`Could not connect to ${a} channel. Meet did not respond with a MessagePort.`,g:"No further information is available."};case 2:return{errorType:"InternalError",message:`Could not connect to ${a}. A conflicting ${a} exists.`,g:"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}.`,
|
|
36
|
+
g:"No further information is available."};case 4:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon is not authorized for this ${a}.`,g:"No further information is available."};case 0:return Dc(a);case 5:a:switch(a){case "coActivity":c={errorType:"InternalError",message:`Could not connect to ${a} channel. The coActivity was not found.`,g:`Consider starting the ${a} only after after the startActivity promise returns.`};break a;default:c={errorType:"InternalError",
|
|
37
|
+
message:`Could not connect to ${a} channel.`,g:"No further information is available."}}return c;default:return Dc(a)}}function Oc(a){switch(a){case 2:return"coActivity";case 3:return"guaranteed delivery";case 0:return"unknown";default:return"unknown"}}function Pc({errorType:a,message:b,g:c},d=""){throw new I({errorType:a,message:d?`${b} ${d}`:b,g:c});}function Qc(a,b){Pc({...sc,message:`${sc.message}: ${a}. In URL ${b}`})};var Sc=function(a){var b=new Rc;return G(b,1,a)},Rc=class extends H{getFrameType(){return D(this,1)}};var Tc=function(a){var b=a.h,c=b[r];a=c;var d=!(2&c),e=Rc,f=void 0===$a?2:5;f=(c=!!(2&a))?1:f;d&&(d=!c);c=Ub(b,a,1);c=Array.isArray(c)?c:Wa;var g=c[r]|0,h=!!(4&g);if(!h){var k=g;k===0&&(k=cc(k,a));g=c;k|=1;var p=a;const J=!!(2&k);J&&(p|=2);let T=!J,Hb=!0,Xa=0,Ib=0;for(;Xa<g.length;Xa++){const Jb=yb(g[Xa],e,p);if(Jb instanceof e){if(!J){const Zc=!!((Jb.h[r]|0)&2);T&&(T=!Zc);Hb&&(Hb=Zc)}g[Ib++]=Jb}}Ib<Xa&&(g.length=Ib);k|=4;k=Hb?k|16:k&-17;k=T?k|8:k&-9;g[r]=k;J&&Object.freeze(g);g=k}if(d&&!(8&g||!c.length&&
|
|
38
|
+
(f===1||f===4&&32&g))){$b(g)&&(c=La(c),g=cc(g,a),a=w(b,a,1,c));d=c;e=g;for(g=0;g<d.length;g++)k=d[g],p=Tb(k),k!==p&&(d[g]=p);e|=8;e=d.length?e&-17:e|16;g=d[r]=e}let t;f===1||f===4&&32&g?$b(g)||(a=g,b=!!(32&g),g|=!c.length||16&g&&(!h||b)?2:2048,g!==a&&(c[r]=g),Object.freeze(c)):(h=f!==5?!1:!!(32&g)||$b(g)||!!zb(c),(f===2||h)&&$b(g)&&(c=La(c),g=cc(g,a),g=dc(g,a,!1),c[r]=g,a=w(b,a,1,c)),$b(g)||(b=g,g=dc(g,a,!1),g!==b&&(c[r]=g)),h&&(t=Db(c)));return t||c},Vc=function(a){{var b=new Uc;const t=b.h;let J=
|
|
39
|
+
t[r];Za(J);if(a==null)w(t,J,1);else{var c=a,d;a=((d=Fb)==null?void 0:d.get(c))||c;c=d=a[r]|0;var e=!!(2&d)||!!(2048&d),f=e||Object.isFrozen(a),g;if(g=!f)g=void 0===ab||!1;var h=!0,k=!0;for(let T=0;T<a.length;T++){var p=a[T];e||(p=!!((p.h[r]|0)&2),h&&(h=!p),k&&(k=p))}e||(d|=5,d=h?d|8:d&-9,d=k?d|16:d&-17);if(g||f&&d!==c)a=La(a),c=0,d=cc(d,J),d=dc(d,J,!0);d!==c&&(a[r]=d);w(t,J,1,a)}}return b},Uc=class extends H{};var Wc=class extends H{constructor(){super()}};var Yc=function(a){var b=new Xc;return G(b,1,a)},Xc=class extends H{constructor(){super()}};var $c=class extends H{kb(a){return F(this,2,a)}};var ad=class extends H{};var bd=class extends H{};var dd=class extends H{F(){return x(this,cd)}Aa(){return E(this,Uc,2,cd)}oa(a){return B(this,2,cd,a)}getMeetingInfo(){return E(this,bd,3,cd)}getMeetPlatformInfo(){return E(this,ad,4,cd)}},cd=[2,3,4,5];var fd=class extends H{Va(){return x(this,ed)}},ed=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17];var gd=class extends H{constructor(){super()}Aa(){return z(this,Uc,1)}oa(a){return A(this,1,a)}};var hd=class extends H{constructor(){super()}Aa(){return z(this,Uc,1)}oa(a){return A(this,1,a)}};var id=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),jd=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]),kd=new Map([[0,"RECORDING_STATUS_UNKNOWN"],[1,"RECORDING_STARTING"],[2,"RECORDING_IN_PROGRESS"],[3,"NOT_RECORDING"]]);function ld(a){a&&typeof a.dispose=="function"&&a.dispose()};var K=function(){this.u=this.u;this.G=this.G};K.prototype.u=!1;K.prototype.dispose=function(){this.u||(this.u=!0,this.D())};K.prototype[Symbol.dispose]=function(){this.dispose()};var md=function(a,b){a.u?b():(a.G||(a.G=[]),a.G.push(b))};K.prototype.D=function(){if(this.G)for(;this.G.length;)this.G.shift()()};var nd=function({Na:a,cb:b}){if(a===null)throw new I({errorType:"ArgumentNullError",message:"The argument supplied for 'activityStartingState' was 'null' but a value was expected.",g:"Ensure you are passing a value of the expected type for the argument."});if(b||a!==void 0){if(typeof a!=="object")throw new I(Cc("activityStartingState",typeof a,`object${b?"":" | undefined"}`));if(a.mainStageUrl!==void 0&&typeof a.mainStageUrl!=="string")throw new I(Cc("mainStageUrl",typeof a.mainStageUrl,"string | undefined"));
|
|
40
|
+
if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new I(Cc("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!=="string")throw new I(Cc("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.mainStageUrl+ +!!a.sidePanelUrl+ +!!a.additionalData)throw new I(Bc);if(Object.keys(a).length===0)throw new I(Ac);}},od=function(a){const b=[];var c=b.push;var d=Sc(2);d=F(d,2,a.mainStageUrl);
|
|
41
|
+
d=F(d,3,a.additionalData);c.call(b,d);c=b.push;d=Sc(1);d=F(d,2,a.sidePanelUrl);a=F(d,3,a.additionalData);c.call(b,a);return b},wd=class extends K{constructor(a){super();this.context=a;this.ab={};pd(this.context.i.Hb,b=>{switch(b.content.Va()){case 7:const d=this.ab.frameToFrameMessage;b=E(b.content,$c,7,ed);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)})}break;case 16:qd(this.context.i)}})}async getMeetingInfo(){const a=await rd(this.context.i,
|
|
42
|
+
Yc(2));return{meetingId:C(a.getMeetingInfo(),1)}}async getFrameOpenReason(){let a;const b=(a=this.context.ta.wb)!=null?a:0;let c;return(c=jd.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=(await rd(this.context.i,Yc(1))).Aa();const b=a==null?void 0:Tc(a).find(c=>c.getFrameType()===2);a=a==null?void 0:Tc(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){nd({Na:a,
|
|
43
|
+
cb:!0});a=od(a);await sd(this.context.i,(new gd).oa(Vc(a)))}on(a,b){this.ab[a]=b}async getMeetPlatformInfo(){const a=await rd(this.context.i,Yc(3));return{isMeetHardware:ec(rb(Vb(a.getMeetPlatformInfo(),1)),!1)}}async getCurrentMeetingRecordingStatus(){var a=await rd(this.context.i,Yc(4));let b;a=(b=D(a,x(a,cd)===5?5:-1))!=null?b:0;let c;return(c=kd.get(a))!=null?c:"RECORDING_STATUS_UNKNOWN"}async closeAddon(){await td(this.context.i)}async startActivity(a){nd({Na:a,cb:!1});const b=new hd;a&&(a=od(a),
|
|
44
|
+
b.oa(Vc(a)));await ud(this.context.i,b)}async endActivity(a){var b=vd,c=this.context.i,d=new Wc;a=G(d,1,a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0);await b(c,a)}};var xd=jc(class extends H{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");c?b=xd(atob(c)):(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 I(wc);const d=C(b,2);d||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{wb:a,frameType:c,sb:d,cloudProjectNumber:e,fb:f}};var zd=class extends H{constructor(){super()}};var Ad=class extends H{constructor(){super()}};var Bd=class extends H{constructor(){super()}};var Ed=function(){var a=new Cd,b=new Ad;return B(a,1,Dd,b)},Fd=function(){var a=new Cd,b=new Bd;return B(a,2,Dd,b)},Cd=class extends H{constructor(){super()}Ua(){return x(this,Dd)}},Dd=[1,2];var Gd=class extends H{constructor(){super()}};var Hd=class extends H{constructor(){super()}};var Id=class extends H{constructor(){super()}kb(a){return F(this,2,a)}};var Jd=class extends H{constructor(){super()}};var Kd=class extends H{constructor(){super()}};var M=class extends H{constructor(){super()}Va(){return x(this,L)}},L=[1,2,5,6,7,8,9,10,11,13,14,15,16];var Ld=class extends H{},Md=jc(Ld),Nd=[1,2];class Od{constructor(a,b){this.data=a;this.channel=b}};var Pd=Promise;var Rd=function(a){const b=new MessageChannel;Qd(b.port1,a);return b},Td=function(a,b){Qd(a,b);return new Sd(a)};class Sd{constructor(a){this.Jb=a}send(a,b,c=[]){b=Rd(b);this.Jb.postMessage(a,[b.port2].concat(c))}Y(a,b){return new Pd(c=>{this.send(a,c,b)})}}const Qd=function(a,b){b&&(a.onmessage=c=>{var d=c.data;c=Td(c.ports[0]);b(new Od(d,c))})};class Ud{constructor(a,b){this.Cb=100;this.tb=a;this.Lb=b;this.la=0;this.ia=null}get(){let a;this.la>0?(this.la--,a=this.ia,this.ia=a.next,a.next=null):a=this.tb();return a}put(a){this.Lb(a);this.la<this.Cb&&(this.la++,a.next=this.ia,this.ia=a)}};var Vd=function(){};function Wd(a,b){for(const c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}const Xd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Yd(a,b){let c,d;for(let e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(let f=0;f<Xd.length;f++)c=Xd[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Zd=function(){var a=document;var b="IFRAME";a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};var $d,ae=function(){var a=m.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!n("Presto")&&(a=function(){var e=Zd();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=ia(function(k){if((h=="*"||k.origin==h)&&k.data==g)this.port1.onmessage()},this);f.addEventListener("message",
|
|
45
|
+
e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}});if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.Ra;c.Ra=null;e()}};return function(e){d.next={Ra:e};d=d.next;b.port2.postMessage(0)}}return function(e){m.setTimeout(e,0)}};class be{constructor(){this.ra=this.P=null}add(a,b){const c=ce.get();c.set(a,b);this.ra?this.ra.next=c:this.P=c;this.ra=c}remove(){let a=null;this.P&&(a=this.P,this.P=this.P.next,this.P||(this.ra=null),a.next=null);return a}}var ce=new Ud(()=>new de,a=>a.reset());class de{constructor(){this.next=this.scope=this.xa=null}set(a,b){this.xa=a;this.scope=b;this.next=null}reset(){this.next=this.scope=this.xa=null}};let ee,fe=!1,ge=new be,ie=(a,b)=>{ee||he();fe||(ee(),fe=!0);ge.add(a,b)},he=()=>{if(m.Promise&&m.Promise.resolve){const a=m.Promise.resolve(void 0);ee=()=>{a.then(je)}}else ee=()=>{var a=je;typeof m.setImmediate!=="function"||m.Window&&m.Window.prototype&&m.Window.prototype.setImmediate==m.setImmediate?($d||($d=ae()),$d(a)):m.setImmediate(a)}};var je=()=>{let a;for(;a=ge.remove();){try{a.xa.call(a.scope)}catch(b){ma(b)}ce.put(a)}fe=!1};var N=function(a){this.m=0;this.hb=void 0;this.I=this.B=this.H=null;this.fa=this.wa=!1;if(a!=Vd)try{var b=this;a.call(void 0,function(c){ke(b,2,c)},function(c){ke(b,3,c)})}catch(c){ke(this,3,c)}},le=function(){this.next=this.context=this.N=this.V=this.C=null;this.S=!1};le.prototype.reset=function(){this.context=this.N=this.V=this.C=null;this.S=!1};
|
|
46
|
+
var me=new Ud(function(){return new le},function(a){a.reset()}),ne=function(a,b,c){var d=me.get();d.V=a;d.N=b;d.context=c;return d},pe=function(){var a,b,c=new N(function(d,e){a=d;b=e});return new oe(c,a,b)};N.prototype.then=function(a,b,c){return qe(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)};N.prototype.$goog_Thenable=!0;var se=function(a,b){b=ne(b,b);b.S=!0;re(a,b)};N.prototype.Mb=function(a,b){return qe(this,null,a,b)};N.prototype.catch=N.prototype.Mb;
|
|
47
|
+
N.prototype.cancel=function(a){if(this.m==0){var b=new O(a);ie(function(){te(this,b)},this)}};
|
|
48
|
+
var te=function(a,b){if(a.m==0)if(a.H){var c=a.H;if(c.B){for(var d=0,e=null,f=null,g=c.B;g&&(g.S||(d++,g.C==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.m==0&&d==1?te(c,b):(f?(d=f,d.next==c.I&&(c.I=d),d.next=d.next.next):ue(c),ve(c,e,3,b)))}a.H=null}else ke(a,3,b)},re=function(a,b){a.B||a.m!=2&&a.m!=3||we(a);a.I?a.I.next=b:a.B=b;a.I=b},qe=function(a,b,c,d){var e=ne(null,null,null);e.C=new N(function(f,g){e.V=b?function(h){try{var k=b.call(d,h);f(k)}catch(p){g(p)}}:f;e.N=c?function(h){try{var k=c.call(d,
|
|
49
|
+
h);k===void 0&&h instanceof O?g(h):f(k)}catch(p){g(p)}}:g});e.C.H=a;re(a,e);return e.C};N.prototype.Ob=function(a){this.m=0;ke(this,2,a)};N.prototype.Pb=function(a){this.m=0;ke(this,3,a)};
|
|
50
|
+
var ke=function(a,b,c){if(a.m==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.m=1;a:{var d=c,e=a.Ob,f=a.Pb;if(d instanceof N){re(d,ne(e||Vd,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(p){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{if(fa(d))try{var k=d.then;if(typeof k==="function"){xe(d,k,e,f,a);g=!0;break a}}catch(p){f.call(a,p);g=!0;break a}g=!1}}}g||(a.hb=c,a.m=b,a.H=null,we(a),b!=3||c instanceof O||ye(a,c))}},xe=function(a,b,c,d,e){var f=!1,g=function(k){f||
|
|
51
|
+
(f=!0,c.call(e,k))},h=function(k){f||(f=!0,d.call(e,k))};try{b.call(a,g,h)}catch(k){h(k)}},we=function(a){a.wa||(a.wa=!0,ie(a.vb,a))},ue=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.I=null);return b};N.prototype.vb=function(){for(var a;a=ue(this);)ve(this,a,this.m,this.hb);this.wa=!1};
|
|
52
|
+
var ve=function(a,b,c,d){if(c==3&&b.N&&!b.S)for(;a&&a.fa;a=a.H)a.fa=!1;if(b.C)b.C.H=null,ze(b,c,d);else try{b.S?b.V.call(b.context):ze(b,c,d)}catch(e){Ae.call(null,e)}me.put(b)},ze=function(a,b,c){b==2?a.V.call(a.context,c):a.N&&a.N.call(a.context,c)},ye=function(a,b){a.fa=!0;ie(function(){a.fa&&Ae.call(null,b)})},Ae=ma,O=function(a){la.call(this,a)};ka(O,la);O.prototype.name="cancel";var oe=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};let Be=1,Ce=new WeakMap;
|
|
53
|
+
var Ee=function(a,b,c){var d=De;a.nb.has(b);d(b,c)},Ge=class extends K{constructor(){super();this.nb=new Set}signal(){const a=new Fe;this.nb.add(a);md(this,ja(ld,a));return a}},De=function(a,b){return new Promise(c=>{He(()=>{a.Qa&&(a.Bb=b,a.Za=!0);for(const {Ma:d,slot:e}of a.l.values())try{e(b,{signal:a,Ma:d})}catch(f){ma(f)}for(const d of a.O)d.resolve(b);a.O.clear();c()})})},pd=function(a,b,c){const d=Be++;He(()=>{Ie(a,d,b,c)});return d},Ie=function(a,b,c,d){if(!a.u)if(d){if(!d.u){const e=()=>{He(()=>
|
|
54
|
+
{a.l.delete(b);const f=Ce.get(d);f&&ua(f,e)})};a.l.set(b,{Ma:b,slot:c,va:e});Je(d,e)}}else a.l.set(b,{Ma:b,slot:c,va:()=>a.l.delete(b)})},Fe=class extends K{constructor(){super();this.Qa=!1;this.l=new Map;this.O=new Set;this.Za=!1}detach(a){He(()=>{const b=this.l.get(a);b&&b.va()})}value(a){return this.promise(!0,a)}next(a){return this.promise(!1,a)}promise(a,b){const c=pe();He(()=>{if(this.u)c.reject(new O("Signal initially disposed"));else if(b&&b.u)c.reject(new O("Owner initially disposed"));else if(a&&
|
|
55
|
+
this.Qa&&this.Za)c.resolve(this.Bb);else if(this.O.add(c),se(c.promise,()=>{this.O.delete(c)}),b){const d=()=>{c.reject(new O("Owner asynchronously disposed"))};se(c.promise,()=>{const e=Ce.get(b);e&&ua(e,d)});Je(b,d)}});return c.promise}D(){super.D();He(()=>{for(const {va:a}of this.l.values())a();this.l.clear();for(const a of this.O)a.reject(new O("Signal asynchronously disposed"));this.O.clear()})}};const Ke=[];let Le=!1;function He(a){Ke.push(a);Me()}
|
|
56
|
+
async function Me(){if(!Le)try{Le=!0;let a=Ne(0);for(;a<Ke.length;)await Promise.resolve(),a=Ne(a)}catch(a){ma(a)}finally{Ke.length=0,Le=!1}}function Ne(a){const b=a+100;for(;a<b&&a<Ke.length;)try{Ke[a++]()}catch(c){ma(c)}return a}function Je(a,b){if(a.u)b();else{var c=Ce.get(a);if(c)c.push(b);else{const d=[b];Ce.set(a,d);md(a,()=>{for(const e of[...d])e();Ce.delete(a)})}}};function P(a){var b=new Ld;a=B(b,1,Nd,a);return{content:ic(a)}}const Oe=new Ge;function Pe(a,b){const c=Oe.signal();return{channel:Td(a,d=>{const e=b(d.data);Ee(Oe,c,{content:e,gb:d})}),signal:c}};var Qe=function(a,b){return G(a,1,b)},Re=class extends H{};var Se=class extends H{jb(a){return A(this,1,a)}};var Te=class extends H{jb(a){return A(this,1,a)}};var Ve=jc(class extends H{F(){return x(this,Ue)}Ba(){return E(this,Se,1,Ue)}pa(a){return B(this,1,Ue,a)}}),Ue=[1,2];let We;var Q=class extends H{getState(){const a=this.h;let b=a[r];const c=Ub(a,b,1),d=Ua(c,!0,!!(b&34));d!=null&&d!==c&&w(a,b,1,d);return d==null?Fa():d}};var R=class extends H{};var Ye=class extends H{ya(){return E(this,Q,2,Xe)}ma(a){B(this,2,Xe,a)}ha(){return Zb(this,Q,2,Xe)}za(){return E(this,R,3,Xe)}na(a){B(this,3,Xe,a)}Da(){return Zb(this,R,3,Xe)}},Xe=[2,3];var Ze=jc(class extends H{});var af=jc(class extends H{F(){return x(this,$e)}}),$e=[1,2];var bf=({destination:a,origin:b,Ub:c,pb:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=Rd(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return Td(f.port1,e)};function cf(a,b,c){const d=new Ge,e=d.signal();a=bf({destination:window.parent,origin:b,pb:a,onMessage:f=>{const g=Md(f.data.content);x(g,Nd)===2&&Ee(d,e,{content:E(g,fd,2,Nd),gb:f,messagePort:f.data.messagePort})}});return new df(e,a,c)}
|
|
57
|
+
var qd=async function(a){a=a.channel;var b=a.Y;var c=new M;var d=new Jd;c=B(c,13,L,d);await b.call(a,P(c))},rd=async function(a,b){var c=S,d=new M;b=B(d,9,L,b);a=await c(a,P(b));let e;return(e=E(Md(a.data.content),fd,2,Nd))==null?void 0:E(e,dd,9,ed)},sd=async function(a,b){var c=S,d=new M;b=B(d,8,L,b);await c(a,P(b))},td=async function(a){var b=S;var c=new M;var d=new zd;c=B(c,11,L,d);await b(a,P(c))},ud=async function(a,b){var c=S,d=new M;b=B(d,14,L,b);await c(a,P(b))},vd=async function(a,b){var c=
|
|
58
|
+
S,d=new M;b=B(d,15,L,b);await c(a,P(b))},ef=async function(a){setInterval(async()=>{await qd(a)},1E3)},S=async function(a,b){(a=await a.channel.Y(b))||Pc(rc,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||Pc(rc,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||Pc(rc,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Md(b)}catch(d){Pc(rc,"The ControlMessage can't be deserialized."+
|
|
59
|
+
` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=E(c,fd,2,Nd))||Pc(rc,"MeetToAddonMessage field on ControlMessage is falsy."+` ${JSON.stringify(b)}`);b=b==null?void 0:E(b,pc,10,ed);if((b==null?void 0:D(b,1))!==void 0)throw new I(Mc(D(b,1)));return a},ff=async function(a,b,c){var d=S,e=new M;b=B(e,1,L,b);d=await d(a,P(b));a=d.data.messagePort;var f;(d=(f=E(Md(d.data.content),fd,2,Nd))==null?void 0:E(f,oc,1,ed))!=null?f=d:(f=new oc,f=G(f,1,0));return{channel:a?Pe(a,c):void 0,response:f}},gf=async function(a){const b=
|
|
60
|
+
Ed(),{channel:c,response:d}=await ff(a,b,e=>af(e));if(!c)throw new I(Nc(d));return c},hf=async function(a){const b=Fd(),{channel:c,response:d}=await ff(a,b,e=>Ve(e));if(!c)throw new I(Nc(d));return{channel:c,response:d}},jf=async function(a){var b=S;var c=new M;var d=new Kd;c=B(c,5,L,d);await b(a,P(c))},kf=async function(a){var b=S;var c=new M;var d=new Hd;c=B(c,6,L,d);await b(a,P(c))},lf=async function(a,b,c){var d=S,e=new M,f=new Id;b=G(f,1,b).kb(c);e=B(e,7,L,b);await d(a,P(e))};
|
|
61
|
+
class df extends K{constructor(a,b,c){super();this.Hb=a;this.channel=b;a=We||(We=kc("[0,9,1]"));a=Tb(a);a=Xb(a,4,xb("666062218"));b=a.h;var d=b[r];b=d&2?a:Kb(a.constructor,Sb(b,d,!0));a=new M;d=new Gd;b=A(d,2,b);c=F(b,3,c);c=B(a,2,L,c);this.channel.send(P(c));ef(this)}};let mf;var nf=class{constructor(a){var b=mf;this.ta=a;this.i=b}delete(){throw Error("Not implemented.");}};var of=class extends H{constructor(){super()}};var pf=class extends H{constructor(){super()}};var rf=class extends H{constructor(){super()}F(){return x(this,qf)}Ba(){return E(this,Se,1,qf)}pa(a){return B(this,1,qf,a)}},qf=[1,2,3];var U=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.W=!1};U.prototype.stopPropagation=function(){this.W=!0};U.prototype.preventDefault=function(){this.defaultPrevented=!0};var V=function(a,b){U.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.T=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;
|
|
62
62
|
this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=va||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=va||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=
|
|
63
63
|
a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.timeStamp=a.timeStamp;this.T=a;a.defaultPrevented&&V.Z.preventDefault.call(this)}};ka(V,U);
|
|
64
|
-
V.prototype.stopPropagation=function(){V.Z.stopPropagation.call(this);this.T.stopPropagation?this.T.stopPropagation():this.T.cancelBubble=!0};V.prototype.preventDefault=function(){V.Z.preventDefault.call(this);var a=this.T;a.preventDefault?a.preventDefault():a.returnValue=!1};var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
d,e);else if(a.attachEvent)a.attachEvent(
|
|
68
|
-
0;f<b.length;f++)
|
|
69
|
-
|
|
70
|
-
X.prototype.dispatchEvent=function(a){var b,c=this.
|
|
71
|
-
X.prototype.D=function(){X.Z.D.call(this);if(this.v){var a=this.v,b=0,c;for(c in a.j){for(var d=a.j[c],e=0;e<d.length;e++)++b,
|
|
72
|
-
X.prototype.
|
|
73
|
-
l.start=function(){this.enabled=!0;this.o||(this.o=this.aa.setTimeout(this.
|
|
74
|
-
d=await
|
|
75
|
-
|
|
76
|
-
b=a.send;var c=new
|
|
77
|
-
function
|
|
78
|
-
const
|
|
79
|
-
function
|
|
80
|
-
class
|
|
81
|
-
this.A=null;this.
|
|
64
|
+
V.prototype.stopPropagation=function(){V.Z.stopPropagation.call(this);this.T.stopPropagation?this.T.stopPropagation():this.T.cancelBubble=!0};V.prototype.preventDefault=function(){V.Z.preventDefault.call(this);var a=this.T;a.preventDefault?a.preventDefault():a.returnValue=!1};var sf="closure_listenable_"+(Math.random()*1E6|0);var tf=0;var uf=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ga=e;this.key=++tf;this.X=this.ca=!1},vf=function(a){a.X=!0;a.listener=null;a.proxy=null;a.src=null;a.ga=null};var W=function(a){this.src=a;this.j={};this.ba=0};W.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.j[f];a||(a=this.j[f]=[],this.ba++);var g=wf(a,b,d,e);g>-1?(b=a[g],c||(b.ca=!1)):(b=new uf(b,this.src,f,!!d,e),b.ca=c,a.push(b));return b};W.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=wf(e,b,c,d);return b>-1?(vf(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.j[a],this.ba--),!0):!1};
|
|
65
|
+
var xf=function(a,b){var c=b.type;c in a.j&&ua(a.j[c],b)&&(vf(b),a.j[c].length==0&&(delete a.j[c],a.ba--))};W.prototype.Ca=function(a,b,c,d){a=this.j[a.toString()];var e=-1;a&&(e=wf(a,b,c,d));return e>-1?a[e]:null};W.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Wd(this.j,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};
|
|
66
|
+
var wf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.X&&f.listener==b&&f.capture==!!c&&f.ga==d)return e}return-1};var yf="closure_lm_"+(Math.random()*1E6|0),zf={},Af=0,Cf=function(a,b,c,d,e){if(d&&d.once)Bf(a,b,c,d,e);else if(Array.isArray(b))for(var f=0;f<b.length;f++)Cf(a,b[f],c,d,e);else c=Df(c),a&&a[sf]?Ef(a,b,c,fa(d)?!!d.capture:!!d,e):Ff(a,b,c,!1,d,e)},Ff=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=fa(e)?!!e.capture:!!e,h=Gf(a);h||(a[yf]=h=new W(a));c=h.add(b,c,d,g,f);if(!c.proxy){d=Hf();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)e===void 0&&(e=!1),a.addEventListener(b.toString(),
|
|
67
|
+
d,e);else if(a.attachEvent)a.attachEvent(If(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Af++}},Hf=function(){const a=Jf,b=function(c){return a.call(b.src,b.listener,c)};return b},Bf=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Bf(a,b[f],c,d,e);else c=Df(c),a&&a[sf]?a.v.add(String(b),c,!0,fa(d)?!!d.capture:!!d,e):Ff(a,b,c,!0,d,e)},Kf=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
|
|
68
|
+
0;f<b.length;f++)Kf(a,b[f],c,d,e);else d=fa(d)?!!d.capture:!!d,c=Df(c),a&&a[sf]?a.v.remove(String(b),c,d,e):a&&(a=Gf(a))&&(b=a.Ca(b,c,d,e))&&Lf(b)},Lf=function(a){if(typeof a!=="number"&&a&&!a.X){var b=a.src;if(b&&b[sf])xf(b.v,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(If(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Af--;(c=Gf(b))?(xf(c,a),c.ba==0&&(c.src=null,b[yf]=null)):vf(a)}}},If=function(a){return a in zf?
|
|
69
|
+
zf[a]:zf[a]="on"+a},Jf=function(a,b){if(a.X)a=!0;else{b=new V(b,this);var c=a.listener,d=a.ga||a.src;a.ca&&Lf(a);a=c.call(d,b)}return a},Gf=function(a){a=a[yf];return a instanceof W?a:null},Mf="__closure_events_fn_"+(Math.random()*1E9>>>0),Df=function(a){if(typeof a==="function")return a;a[Mf]||(a[Mf]=function(b){return a.handleEvent(b)});return a[Mf]};var X=function(){K.call(this);this.v=new W(this);this.ob=this;this.Ja=null};ka(X,K);X.prototype[sf]=!0;X.prototype.addEventListener=function(a,b,c,d){Cf(this,a,b,c,d)};X.prototype.removeEventListener=function(a,b,c,d){Kf(this,a,b,c,d)};
|
|
70
|
+
X.prototype.dispatchEvent=function(a){var b,c=this.Ja;if(c)for(b=[];c;c=c.Ja)b.push(c);c=this.ob;var d=a.type||a;if(typeof a==="string")a=new U(a,c);else if(a instanceof U)a.target=a.target||c;else{var e=a;a=new U(d,c);Yd(a,e)}e=!0;if(b)for(var f=b.length-1;!a.W&&f>=0;f--){var g=a.currentTarget=b[f];e=Nf(g,d,!0,a)&&e}a.W||(g=a.currentTarget=c,e=Nf(g,d,!0,a)&&e,a.W||(e=Nf(g,d,!1,a)&&e));if(b)for(f=0;!a.W&&f<b.length;f++)g=a.currentTarget=b[f],e=Nf(g,d,!1,a)&&e;return e};
|
|
71
|
+
X.prototype.D=function(){X.Z.D.call(this);if(this.v){var a=this.v,b=0,c;for(c in a.j){for(var d=a.j[c],e=0;e<d.length;e++)++b,vf(d[e]);delete a.j[c];a.ba--}}this.Ja=null};var Ef=function(a,b,c,d,e){a.v.add(String(b),c,!1,d,e)},Nf=function(a,b,c,d){b=a.v.j[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.X&&g.capture==c){var h=g.listener,k=g.ga||g.src;g.ca&&xf(a.v,g);e=h.call(k,d)!==!1&&e}}return e&&!d.defaultPrevented};
|
|
72
|
+
X.prototype.Ca=function(a,b,c,d){return this.v.Ca(String(a),b,c,d)};X.prototype.hasListener=function(a,b){return this.v.hasListener(a!==void 0?String(a):void 0,b)};var Of=function(a,b){X.call(this);this.ka=a||1;this.aa=b||m;this.Pa=ia(this.Nb,this);this.eb=Date.now()};ka(Of,X);l=Of.prototype;l.enabled=!1;l.o=null;l.setInterval=function(a){this.ka=a;this.o&&this.enabled?(this.stop(),this.start()):this.o&&this.stop()};l.Nb=function(){if(this.enabled){const a=Date.now()-this.eb;a>0&&a<this.ka*.8?this.o=this.aa.setTimeout(this.Pa,this.ka-a):(this.o&&(this.aa.clearTimeout(this.o),this.o=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
|
|
73
|
+
l.start=function(){this.enabled=!0;this.o||(this.o=this.aa.setTimeout(this.Pa,this.ka),this.eb=Date.now())};l.stop=function(){this.enabled=!1;this.o&&(this.aa.clearTimeout(this.o),this.o=null)};l.D=function(){Of.Z.D.call(this);this.stop();delete this.aa};var Rf=async function(a,b){switch(b.F()){case 1:var c=Pf;b=b.Ba();await c(a,b);break;case 2:return c=Qf,b=E(b,Te,2,Ue),await c(a,b)}},Tf=function(a){a.Ea=setTimeout(async()=>{await Sf(a)},3E3)},Pf=async function(a,b){a.Ea&&(clearTimeout(a.Ea),Tf(a));let c;((c=z(b,Re,1))==null?void 0:D(c,1))!==D(a.ua,1)?(a.Ia++,await Uf(a)):a.Ia=0},Qf=async function(a,b){var c=new pf;b=z(b,Re,1);if(!b)return c=new rf,a=new pf,a=G(a,1,4),B(c,2,qf,a);var d;const e=(d=kd.get(D(b,1)))!=null?d:"RECORDING_STATUS_UNKNOWN";
|
|
74
|
+
d=await Vf(a,e);G(c,1,d);d===2&&Qe(a.ua,D(b,1));a=new rf;return B(a,2,qf,c)},Uf=async function(a){if(a.Ia>3)try{await a.K.onRecordingStatusChanged({recordingStatus:"RECORDING_STATUS_UNKNOWN"})}catch(b){}},Vf=async function(a,b){const c=new Promise((d,e)=>{setTimeout(()=>{e(new Wf)},5E3)});try{return await Promise.race([c,(async()=>a.K.onRecordingStatusChanged({recordingStatus:b}))()])?2:3}catch(d){return d instanceof Wf?5:4}},Sf=async function(a){try{await a.K.onRecordingStatusChanged({recordingStatus:"RECORDING_STATUS_UNKNOWN"})}catch(b){}},
|
|
75
|
+
Xf=class extends K{constructor(a,b){super();this.Xa=a;this.K=b;this.ja=new Of(1E3);this.Ia=0;a=this.Xa.response;this.ea=this.Xa.channel;this.xb=pd(this.ea.signal,async e=>{var f=await Rf(this,e.content);f&&(e=e.gb,f=ic(f),e.channel.send(f,void 0,void 0))},this);let c,d;a=(d=(c=E(a,mc,3,nc))==null?void 0:D(c,1))!=null?d:0;this.ua=Qe(new Re,a);md(this,ja(ld,this.ja));Ef(this.ja,"tick",()=>{this.ea.channel.send(ic((new rf).pa((new Se).jb(this.ua))))});this.ja.start();Tf(this)}disconnect(){var a=this.ea.channel,
|
|
76
|
+
b=a.send;var c=new rf;var d=new of;c=B(c,3,qf,d);b.call(a,ic(c));this.ja.stop();clearTimeout(this.Ea);this.ea.signal.detach(this.xb)}},Wf=class extends Error{constructor(){super("Timed out waiting for guaranteed delivery delegate method to return")}};async function Yf(a,b){a=await hf(a.i);return new Xf(a,b)};var $f=class extends H{La(a){return y(this,1,a==null?a:ub(a),"0")}ya(){return E(this,Q,2,Zf)}ma(a){B(this,2,Zf,a)}ha(){return Zb(this,Q,2,Zf)}za(){return E(this,R,3,Zf)}na(a){B(this,3,Zf,a)}Da(){return Zb(this,R,3,Zf)}},Zf=[2,3];var ag=class extends H{constructor(){super()}};var bg=class extends H{constructor(){super()}};var cg=class extends H{constructor(){super()}Ka(a){return Xb(this,4,xb(a))}};var eg=class extends H{constructor(){super()}La(a){return y(this,1,a==null?a:ub(a),"0")}ya(){return E(this,Q,2,dg)}ma(a){B(this,2,dg,a)}ha(){return Zb(this,Q,2,dg)}za(){return E(this,R,3,dg)}na(a){B(this,3,dg,a)}Da(){return Zb(this,R,3,dg)}},dg=[2,3],fg=[5,6];var gg=class extends H{constructor(){super()}Ka(a){return F(this,1,a)}};var ig=class extends H{constructor(){super()}F(){return x(this,hg)}Ba(){return E(this,$f,1,hg)}pa(a){return B(this,1,hg,a)}},hg=[1,2,3];function jg(a){var b=new kg;let c=0,d;return(...e)=>{if(lg(b)){mg(b);var f=!0}else f=!1;f?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let g;(g=d)==null||g()},ng(b))))}};var ng=function(a){const b=a.Sa;let c;a=Date.now()-((c=a.Fa[a.index])!=null?c:0);return a>=b?0:b-a},lg=function(a){const b=a.Sa;let c;return Date.now()-((c=a.Fa[a.index])!=null?c:0)>=b},mg=function(a){a.Fa[a.index]=Date.now();a.index=(a.index+1)%a.Db},kg=class{constructor(){this.Db=1;this.Sa=500;this.Fa=[];this.index=0}};var og=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var pg=class{constructor(a){this.config=a}start(){this.bb!=null||(this.bb=setInterval(()=>{this.config.Gb()},this.config.zb));return this}shutdown(){clearInterval(this.bb)}};function qg(){const a=new Map,b={set(c,d){a.set(c,d);return b},sa:()=>a};return b};function rg(a){if(a.ha()){var b=a.ya().getState();a=Uint8Array;Da(Ba);var c=b.qa;if(c!=null&&!Aa(c))if(typeof c==="string"){xa.test(c)&&(c=c.replace(xa,za));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.qa=c;return{bytes:new a(b||0)}}}function sg(a,b){a.ma(tg(b));return a}function ug(a,b){a.ma(tg(b));return a}function tg(a){var b=new Q;return y(b,1,Ua(a.bytes,!1,!1),Fa())}
|
|
77
|
+
function vg(a){if(a.Da()){a=a.za();var b,c,d=C(a,1),e=(c=(b=z(a,lc,2))==null?void 0:fc(b))!=null?c:0;c=a.h;let f=c[r];const g=Ub(c,f,4);b=g==null||typeof g==="number"?g:g==="NaN"||g==="Infinity"||g==="-Infinity"?Number(g):void 0;b!=null&&b!==g&&w(c,f,4,b);return{mediaId:d,mediaPlayoutPosition:e,mediaPlayoutRate:ec(b,0),playbackState:wg.get(D(a,3))}}}function xg(a,b){a.na(yg(b));return a}function zg(a,b){a.na(yg(b));return a}
|
|
78
|
+
const wg=qg().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").sa(),Ag=qg().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).sa();function yg(a){var b=new R;b=F(b,1,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 lc).setSeconds(a.mediaPlayoutPosition);b=A(b,2,c);a=Ag.get(a.playbackState);return G(b,3,a)}
|
|
79
|
+
function Bg({activityTitle:a}){return(new cg).Ka(a)}function Cg(a,b){var c=new bg;b=G(c,1,b.M);B(a,6,fg,b);return a}function Dg(a){var b=new ag;B(a,5,fg,b);return a};const Eg=qg().set("co-doing",1).set("co-watching",2).sa();async function Fg(a,b,c){var d=b.Y,e=new ig;var f=(new gg).Ka(a.activityTitle);var g=Eg.get(a.Oa);f=G(f,2,g);e=B(e,3,hg,f);d=await d.call(b,e,Ze);let h;if((h=ec(rb(Vb(d,1)),!1))!=null&&h)return new Gg(a,b,c,z(d,Ye,2));throw new og;}var Hg=function(a,b){const c=a.config.Wa(b);c&&!a.config.Ta(a.A,c)&&(a.A=c,a.Ga=fc(b),a.ub(a.A))},Y=function(a,b){const {state:c,Eb:d,context:e}=b(a.A);a.A=c;a.notify(a.A,e,d)};
|
|
80
|
+
class Gg{constructor(a,b,c,d){this.K=a;this.da=b;this.config=c;this.ub=jg(e=>void this.K.Ya(e));Ig(this.da,e=>{const f=e.F();switch(f){case 1:Hg(this,E(e,Ye,1,$e));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.yb=(new pg({zb:1E3,Gb:()=>{var e;let f;const g=(f=(e=this.K).Kb)==null?void 0:f.call(e);this.A!==null&&(this.A={...this.A,...g},e=(new ig).pa(this.config.lb((new $f).La(this.Ga),this.A)),this.da.send(e))}})).start();
|
|
81
|
+
this.A=null;this.Ga=0;d&&Hg(this,d)}disconnect(){this.da.shutdown();this.yb.shutdown()}notify(a,b,c){var d=c?Bg(c):void 0;c=this.config;var e=c.mb,f=(new eg).La(this.Ga);d=A(f,4,d);a=e.call(c,d,a);a=this.config.ib(a,b);b=this.da;c=b.send;e=new ig;a=B(e,2,hg,a);c.call(b,a)}};var Jg=class{constructor(a){this.s=a}broadcastStateUpdate(a){Y(this.s,()=>({state:a,context:{}}))}disconnect(){this.s.disconnect()}};function Kg(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Lg=class{constructor(a){this.s=a}notifySwitchedToMedia(a,b,c){Y(this.s,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},Eb:{activityTitle:a},context:{M:1}}))}notifyPauseState(a,b){Y(this.s,c=>{if(c==null)throw Error("Invalid before coWatchingState");return{state:{...c,playbackState:a?"PAUSE":"PLAY",mediaPlayoutPosition:b},context:{M:3}}})}notifySeekToTimestamp(a){Y(this.s,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
|
|
82
82
|
context:{M:2}}})}notifyPlayoutRate(a){Y(this.s,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutRate:a},context:{M:4}}})}notifyBuffering(a){Y(this.s,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a,playbackState:"BUFFERING"},context:{M:3}}})}notifyReady(a){Y(this.s,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},context:{M:3}}})}disconnect(){this.s.disconnect()}};
|
|
83
|
-
function
|
|
84
|
-
async function
|
|
85
|
-
a)}async createGuaranteedDeliveryClient(a){return await
|
|
86
|
-
for(var
|
|
83
|
+
function Mg(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};var Ig=function(a,b){const c=pd(a.signal,d=>{b(d)});a.l.push(c)},Ng=class{constructor(a,b){this.channel=a;this.signal=b;this.l=[]}send(a){this.channel.send(ic(a))}async Y(a,b){a=await this.channel.Y(ic(a));return b(a.data)}shutdown(){this.l.forEach(a=>{this.signal.detach(a)})}};function Og(a,b){var c=Pg;const d=a.signal(),e=a.signal();pd(b,f=>{const g=c(f)?d:e;Ee(a,g,f)},a);return{Ib:d,Fb:e}}function Qg(a,b,c,d=e=>e){pd(c,e=>{Ee(a,b,d(e))},a)};async function Rg(a,b){if(b)return a=await Fg({activityTitle:b.activityTitle,Oa:"co-watching",Kb:()=>b.onCoWatchingStateQuery(),Ya:c=>{b.onCoWatchingStateChanged(c)}},a,{mb:xg,lb:zg,ib:Cg,Wa:vg,Ta:Mg}),new Lg(a)}async function Sg(a,b){if(b)return a=await Fg({activityTitle:b.activityTitle,Oa:"co-doing",Ya:c=>{b.onCoDoingStateChanged(c)}},a,{mb:sg,lb:ug,ib:Dg,Wa:rg,Ta:Kg}),new Jg(a)}
|
|
84
|
+
async function Tg(a){const b=new Ge,c=b.signal();a=await a;Qg(b,c,a.signal,f=>f.content);const {Ib:d,Fb:e}=Og(b,c);return{qb:new Ng(a.channel,d),rb:new Ng(a.channel,e)}}function Pg(a){a:switch(a.F()){case 1:a=E(a,Ye,1,$e);break a;default:throw Error("CA Message arrived with no known content message set");}return a.ha()};async function Ug(a,b){({qb:a}=await Tg(gf(a.i)));b=await Sg(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function Vg(a,b){({rb:a}=await Tg(gf(a.i)));b=await Rg(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var Wg=class extends wd{async notifySidePanel(a){await lf(this.context.i,1,a)}async unloadSidePanel(){await jf(this.context.i)}async loadSidePanel(){await kf(this.context.i)}};var Xg=class extends wd{async notifyMainStage(a){await lf(this.context.i,2,a)}};var Yg=class{constructor(a){a=a.cloudProjectNumber;const b=yd();if(b.cloudProjectNumber!==a)throw new I(xc);const c=b.fb,d=b.sb;let e;mf=(e=mf)!=null?e:cf(d,c,a);this.R=new nf(b)}async createMainStageClient(){var a=this.R;if(a.ta.frameType!==2)throw new I(tc);return await Promise.resolve(new Wg(a))}async createSidePanelClient(){var a=this.R;if(a.ta.frameType!==1)throw new I(uc);return await Promise.resolve(new Xg(a))}async createCoWatchingClient(a){return await Vg(this.R,a)}async createCoDoingClient(a){return await Ug(this.R,
|
|
85
|
+
a)}async createGuaranteedDeliveryClient(a){return await Yf(this.R,a)}};let Zg=null;var $g={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(Zg&&yd().fb!=="integration.test.google.com")throw new I(Kc);return Zg=new Yg(a)}}},ah=["meet"],Z=m;ah[0]in Z||typeof Z.execScript=="undefined"||Z.execScript("var "+ah[0]);
|
|
86
|
+
for(var bh;ah.length&&(bh=ah.shift());)ah.length||$g===void 0?Z=Z[bh]&&Z[bh]!==Object.prototype[bh]?Z[bh]:Z[bh]={}:Z[bh]=$g;}).call(this);
|
package/package.json
CHANGED
|
@@ -1,11 +1,33 @@
|
|
|
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": "0.9.1-
|
|
4
|
+
"version": "0.9.1-666062218",
|
|
5
5
|
"repository": "googleworkspace/meet",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://developers.google.com/meet/add-ons/guides/overview",
|
|
8
8
|
"author": "Addons Team <meet-addons-support@google.com>",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./meet.addons.js",
|
|
12
|
+
"types": "./meet.addons.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./addons": {
|
|
15
|
+
"import": "./meet.addons.js",
|
|
16
|
+
"types": "./meet.addons.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./screenshare": {
|
|
19
|
+
"import": "./meet.addons.screenshare.js",
|
|
20
|
+
"types": "./meet.addons.screenshare.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./meet.addons": {
|
|
23
|
+
"import": "./meet.addons.js",
|
|
24
|
+
"types": "./meet.addons.d.ts"
|
|
25
|
+
},
|
|
26
|
+
"./meet.addons.screenshare": {
|
|
27
|
+
"import": "./meet.addons.screenshare.js",
|
|
28
|
+
"types": "./meet.addons.screenshare.d.ts"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
9
31
|
"keywords": [
|
|
10
32
|
"google",
|
|
11
33
|
"meet",
|