@googleworkspace/meet-addons 1.2.0-dev-733472194 → 1.2.0-dev-733885818

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.mjs CHANGED
@@ -4,68 +4,67 @@ 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 l=this||self;function ea(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 fa(a){return a}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 h=Array(arguments.length-2),g=2;g<arguments.length;g++)h[g-2]=arguments[g];return b.prototype[e].apply(d,h)}};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){l.setTimeout(()=>{throw a;},0)};var ka,la;a:{for(var ma=["CLOSURE_FLAGS"],na=l,oa=0;oa<ma.length;oa++)if(na=na[ma[oa]],na==null){la=null;break a}la=na}var pa=la&&la[610401301];ka=pa!=null?pa:!1;var qa;const ra=l.navigator;qa=ra?ra.userAgentData||null:null;function sa(a){return ka?qa?qa.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function m(a){var b;a:{if(b=l.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function n(){return ka?!!qa&&qa.brands.length>0:!1}function ta(){return n()?sa("Chromium"):(m("Chrome")||m("CriOS"))&&!(n()?0:m("Edge"))||m("Silk")};function ua(a,b){b=Array.prototype.indexOf.call(a,b,void 0);b>=0&&Array.prototype.splice.call(a,b,1)};!m("Android")||ta();ta();m("Safari")&&(ta()||(n()?0:m("Coast"))||(n()?0:m("Opera"))||(n()?0:m("Edge"))||(n()?sa("Microsoft Edge"):m("Edg/"))||n()&&sa("Opera"));function va(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 wa=/[-_.]/g,xa={"-":"+",_:"/",".":"="};function ya(a){return xa[a]||""}function za(a){return a!=null&&a instanceof Uint8Array}var Aa={};function Ba(){return Ca||(Ca=new Da(null,Aa))}var Da=class{constructor(a,b){Ea(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};let Ca;function Ea(a){if(a!==Aa)throw Error("illegal external caller");};function Fa(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let Ga=void 0;function Ha(a){a=Error(a);Fa(a,"warning");return a}function Ia(a){if(a!=null){var b;var c=(b=Ga)!=null?b:Ga={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),Fa(a,"incident"),ja(a))}};function Ja(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var Ka=Ja(),La=Ja(),Ma=Ja(),Na=Ja();const p=Ja("jas",!0);function Oa(){return typeof BigInt==="function"};var Pa={};function Qa(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function Ra(a,b){if(a!=null)if(typeof a==="string")a=a?new Da(a,Aa):Ba();else if(a.constructor!==Da)if(za(a))a=a.length?new Da(new Uint8Array(a),Aa):Ba();else{if(!b)throw Error();a=void 0}return a}var Sa;const Ta=[];Ta[p]=55;Sa=Object.freeze(Ta);function Ua(a){if(a&2)throw Error();}var Va=Object.freeze({});function Wa(a){a.pa=!0;return a};var Xa=Wa(a=>typeof a==="number"),Ya=Wa(a=>typeof a==="string"),Za=Wa(a=>typeof a==="boolean");var $a=typeof l.BigInt==="function"&&typeof l.BigInt(0)==="bigint";var fb=Wa(a=>$a?a>=ab&&a<=bb:a[0]==="-"?cb(a,db):cb(a,eb));const db=Number.MIN_SAFE_INTEGER.toString(),ab=$a?BigInt(Number.MIN_SAFE_INTEGER):void 0,eb=Number.MAX_SAFE_INTEGER.toString(),bb=$a?BigInt(Number.MAX_SAFE_INTEGER):void 0;function cb(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 r=0,u=0;function gb(a){const b=a>>>0;r=b;u=(a-b)/4294967296>>>0}function hb(a){if(a<0){gb(-a);const [b,c]=ib(r,u);r=b>>>0;u=c>>>0}else gb(a)}function jb(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Oa()?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+kb(c)+kb(a));return c}
8
- function kb(a){a=String(a);return"0000000".slice(a.length)+a}function ib(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const lb=typeof BigInt==="function"?BigInt.asIntN:void 0,mb=Number.isSafeInteger,nb=Number.isFinite,ob=Math.trunc,pb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function qb(a){switch(typeof a){case "bigint":return!0;case "number":return nb(a);case "string":return pb.test(a);default:return!1}}function v(a){if(a!=null){if(!nb(a))throw Ha("enum");a|=0}return a}function rb(a){if(a!=null){if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;nb(a)}}
9
- function sb(a){if(a!=null)a:{if(!qb(a))throw Ha("int64");switch(typeof a){case "string":a=tb(a);break a;case "bigint":var b=a=lb(64,a);if(Ya(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Xa(b)&&!Number.isSafeInteger(b))throw Error(String(b));$a?a=BigInt(a):a=Za(a)?a?"1":"0":Ya(a)?a.trim()||"0":String(a);break a;default:a=ub(a)}}return a}
10
- function ub(a){a=ob(a);if(!mb(a)){hb(a);var b=r,c=u;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:jb(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a}
11
- function tb(a){var b=ob(Number(a));if(mb(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));b=a.length;if(!(a[0]==="-"?b<20||b===20&&Number(a.substring(0,7))>-922337:b<19||b===19&&Number(a.substring(0,6))<922337)){if(a.length<16)hb(Number(a));else if(Oa())a=BigInt(a),r=Number(a&BigInt(4294967295))>>>0,u=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");u=r=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));u*=1E6;r=r*1E6+f;r>=4294967296&&
12
- (u+=Math.trunc(r/4294967296),u>>>=0,r>>>=0)}if(b){const [d,e]=ib(r,u);r=d;u=e}}a=r;b=u;if(b&2147483648)if(Oa())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=ib(a,b);a="-"+jb(c,d)}else a=jb(a,b)}return a}function x(a){if(a!=null&&typeof a!=="string")throw Error();return a}function vb(a,b,c){if(a!=null&&typeof a==="object"&&a.H===Pa)return a;if(Array.isArray(a)){var d=a[p]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&(a[p]=e);return new b(a)}};function wb(a){return a};function xb(a,b,c,d){if(Array.isArray(a)){const f=a[p]|0;if(a.length===0&&f&1)return;if(d&&f&2)return a;var e;if(e=d&&c)e=f===0||!!(f&32)&&!(f&64||!(f&16));return e?(a[p]|=34,f&4&&Object.freeze(a),a):yb(a,f,b,c!==void 0,d)}return b(a)}
13
- function yb(a,b,c,d,e){const f=d?!!(b&32):void 0;d=[];var h=a.length;let g,k,t,C=!1;if(b&64){if(b&256?(h--,g=a[h],k=h):(k=4294967295,g=void 0),!(e||b&512)){C=!0;var q;t=((q=zb)!=null?q:wb)(g?k- -1:b>>14&1023||536870912,-1,a,g);k=t+-1}}else k=4294967295,b&1||(g=h&&a[h-1],Qa(g)?(h--,k=h,t=0):g=void 0);q=void 0;for(let w=0;w<h;w++){let D=a[w];if(D!=null&&(D=xb(D,c,f,e))!=null)if(w>=k){var E=void 0;((E=q)!=null?E:q={})[w- -1]=D}else d[w]=D}if(g)for(let w in g)if(E=g[w],E!=null&&(E=xb(E,c,f,e))!=null)if(h=
14
- +w,h<t)d[h+-1]=E;else{let D;((D=q)!=null?D:q={})[w]=E}q&&(C?d.push(q):d[k]=q);if(e){var F;c=b&64?(F=t)!=null?F:b>>14&1023||536870912:void 0;F=34;q!=null&&(F|=256);c!==void 0&&(F=F&-16760833|(c&1023)<<14);d[p]=b&577|F;(a=(b=fa(La))?a[b]:void 0)&&(d[La]=Array.prototype.slice.call(a))}return d}
15
- function Ab(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return fb(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(a.H===Pa)return Bb(a);if(a instanceof Da){const b=a.g;return b==null?"":typeof b==="string"?b:a.g=va(b)}if(za(a))return za(a)&&Ia(Na),va(a);return}return a}let zb;function Cb(a){try{return Bb(a)}finally{zb=void 0}}function Bb(a){a=a.m;return yb(a,a[p]|0,Ab,void 0,!1)};function Db(){Ia(Ma)};function Eb(a){if(typeof a!=="object"||a===null)return a;if(a.H===Pa){const b=a.m,c=b[p]|0;return c&2?a:yb(b,c,Eb,!0,!0)}if(a instanceof Da)return a;if(za(a))return za(a)&&Ia(Na),new Uint8Array(a)}function Fb(a){var b=a.m;if(!((b[p]|0)&2))return a;a=new a.constructor(yb(b,b[p]|0,Eb,!0,!0));b=a.m;b[p]&=-3;return a};function y(a,b){a=a.m;return Gb(a,a[p]|0,b)}function Gb(a,b,c){if(c===-1)return null;const d=c+(b&512?0:-1),e=a.length-1;if(d>=e&&b&256)return a[e][c];if(d<=e)return a[d]}function Hb(a,b,c){const d=a.m;let e=d[p]|0;Ua(e);z(d,e,b,c);return a}function z(a,b,c,d){const e=b&512?0:-1,f=c+e;var h=a.length-1;if(f>=h&&b&256)return a[h][c]=d,b;if(f<=h)return a[f]=d,b;d!==void 0&&(h=b>>14&1023||536870912,c>=h?d!=null&&(a[h+e]={[c]:d},b|=256,a[p]=b):a[f]=d);return b}
16
- function Ib(a,b,c,d){c=A(a,d)===c?c:-1;return Jb(a,b,c)!==void 0}function Kb(a){return!!(2&a)&&!!(4&a)||!!(1024&a)}function B(a,b,c,d){const e=a.m;let f=e[p]|0;Ua(f);z(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}function A(a,b){a=a.m;return Lb(Mb(a),a,a[p]|0,b)}function Mb(a){let b;return(b=a[Ka])!=null?b:a[Ka]=new Map}function Lb(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 h=d[f];Gb(b,c,h)!=null&&(e!==0&&(c=z(b,c,e)),e=h)}a.set(d,e);return e}
17
- function Jb(a,b,c){a=a.m;let d=a[p]|0;const e=Gb(a,d,c);b=vb(e,b,d);b!==e&&b!=null&&z(a,d,c,b);return b}function Nb(a,b,c){b=Jb(a,b,c);if(b==null)return b;a=a.m;let d=a[p]|0;if(!(d&2)){const e=Fb(b);e!==b&&(b=e,z(a,d,c,b))}return b}function Ob(a,b,c){c==null&&(c=void 0);return Hb(a,b,c)}
18
- function G(a,b,c,d){d==null&&(d=void 0);a:{const h=a.m;var e=h[p]|0;Ua(e);if(d==null){var f=Mb(h);if(Lb(f,h,e,c)===b)f.set(c,0);else break a}else{f=h;const g=Mb(f),k=Lb(g,f,e,c);k!==b&&(k&&(e=z(f,e,k)),g.set(c,b))}z(h,e,b,d)}return a}
19
- function Pb(a,b){const c=a.m;let d=c[p]|0;Ua(d);if(b==null)return z(c,d,1),a;let e=b[p]|0,f=e;const h=Kb(e),g=h||Object.isFrozen(b);let k=!0,t=!0;for(let q=0;q<b.length;q++){var C=b[q];h||(C=!!((C.m[p]|0)&2),k&&(k=!C),t&&(t=C))}h||(e=k?13:5,e=t?e|16:e&-17);g&&e===f||(b=Array.prototype.slice.call(b),f=0,e=Qb(e,d),e=Rb(e,d,!0));e!==f&&(b[p]=e);z(c,d,1,b);return a}function Qb(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025}function Rb(a,b,c){32&b&&c||(a&=-33);return a}
20
- function Sb(a){a=y(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Tb(a){a=y(a,1);a!=null&&(typeof a==="bigint"?fb(a)?a=Number(a):(a=lb(64,a),a=fb(a)?Number(a):String(a)):a=qb(a)?typeof a==="number"?ub(a):tb(a):void 0);return a!=null?a:0}function H(a,b){a=y(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function I(a,b){a=y(a,b);a=a==null?a:nb(a)?a|0:void 0;return a!=null?a:0}
21
- function J(a,b,c,d){c=A(a,d)===c?c:-1;return Nb(a,b,c)};function Ub(){var a=Vb||(Vb=Wb("[1,2,0]"));a=Fb(a);a=Hb(a,4,x("dev-733472194"));const b=a.m,c=b[p]|0;return c&2?a:new a.constructor(yb(b,c,Eb,!0,!0))}
22
- var K=class{constructor(a){a:{if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[p]|0;8192&b||!(64&b)||2&b||Db();if(b&1024)throw Error("farr");if(b&64){var c=a;break a}var d=a;b|=64;var e=d.length;if(e){var f=e-1;e=d[f];if(Qa(e)){b|=256;const h=b&512?0:-1;f-=h;if(f>=1024)throw Error("pvtlmt");for(c in e){const g=+c;if(g<f)d[g+h]=e[c],delete e[c];else break}b=b&-16760833|(f&1023)<<14}}}a[p]=b;c=a}this.m=c}toJSON(){return Cb(this)}};K.prototype.H=Pa;K.prototype.toString=function(){return this.m.toString()};function Xb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[p]|=32;b=new a(b)}return b}};var Wb=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[p]|=34;return new a(b)}}(class extends K{});var Yb=class extends K{};function Zb(a){var b=new $b(500);let c=0,d;return(...e)=>{ac(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},bc(b))))}}function cc(a){var b=new $b(100),c=Promise.resolve();return(...d)=>ac(b)?a(...d):c};function ac(a){return dc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function bc(a){const b=a.g;a=dc(a,a.index);return a>=b?0:b-a}function dc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var $b=class{constructor(a){this.g=a;this.h=[];this.index=0}};var ec=class extends K{},fc=[2,3];var gc=class extends K{};var L=class extends Error{constructor({errorType:a,message:b,i:c}){super(`Meet add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},M={errorType:"InternalError",message:"An unexpected error has occurred.",i:"No further information is available."},hc={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)."},
23
- ic={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."},jc={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."},kc={errorType:"NotSupportedInStandalone",
24
- message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},lc={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."},mc={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)."},
25
- nc={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."},oc={errorType:"DestinationNotReady",
26
- 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."},pc={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."},qc={errorType:"ActivityStartingStateMissingAttributes",
27
- 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."},rc={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."},
28
- 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."},
29
- 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."}),N=(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`,
30
- i:"No further information is available."}),xc={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",i:"Ensure that no activity is ongoing."},yc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message."},zc={errorType:"NoActivityFound",message:"No activity found.",i:"Ensure that the activity is started before performing this operation."},Ac={errorType:"RequiresEapEnrollment",
31
- message:"This feature is only available to early access partners.",i:"Meet add-on early access enrollment is currently closed."},Bc={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."},Cc={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",
32
- i:"Ensure that the activityStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Dc={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."},Ec={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",i:"Only instantiate the AddonSession once."},Fc={errorType:"UserCancelled",
33
- message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},Gc={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},Hc={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."},
34
- Ic={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."},Jc={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."};
35
- function Kc(a){switch(a){case 0:return M;case 1:return oc;case 2:return pc;case 3:return xc;case 4:return yc;case 5:return Ac;case 6:return kc;case 7:return Bc;case 8:return Cc;case 9:return Dc;case 10:return Fc;case 11:return Gc;case 12:return Hc;case 13:return Ic;case 14:return zc;case 15:return Jc;default:return M}}
36
- function Lc(a){let b;var c=(b=I(a,1))!=null?b:0;a=Mc(A(a,fc));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}.`,
7
+ var l=this||self;function ea(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 fa(a){return a}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 h=Array(arguments.length-2),g=2;g<arguments.length;g++)h[g-2]=arguments[g];return b.prototype[e].apply(d,h)}};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){l.setTimeout(()=>{throw a;},0)};var ka,la;a:{for(var ma=["CLOSURE_FLAGS"],na=l,oa=0;oa<ma.length;oa++)if(na=na[ma[oa]],na==null){la=null;break a}la=na}var pa=la&&la[610401301];ka=pa!=null?pa:!1;var qa;const ra=l.navigator;qa=ra?ra.userAgentData||null:null;function sa(a){return ka?qa?qa.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function m(a){var b;a:{if(b=l.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function n(){return ka?!!qa&&qa.brands.length>0:!1}function ta(){return n()?sa("Chromium"):(m("Chrome")||m("CriOS"))&&!(n()?0:m("Edge"))||m("Silk")};function ua(a,b){b=Array.prototype.indexOf.call(a,b,void 0);b>=0&&Array.prototype.splice.call(a,b,1)};!m("Android")||ta();ta();m("Safari")&&(ta()||(n()?0:m("Coast"))||(n()?0:m("Opera"))||(n()?0:m("Edge"))||(n()?sa("Microsoft Edge"):m("Edg/"))||n()&&sa("Opera"));function va(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 wa=/[-_.]/g,xa={"-":"+",_:"/",".":"="};function ya(a){return xa[a]||""}function za(a){return a!=null&&a instanceof Uint8Array}var Aa={};function Ba(){return Ca||(Ca=new Da(null,Aa))}var Da=class{constructor(a,b){Ea(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};let Ca;function Ea(a){if(a!==Aa)throw Error("illegal external caller");};function Fa(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let Ga=void 0;function Ha(a){a=Error(a);Fa(a,"warning");return a}function Ia(a){if(a!=null){var b;var c=(b=Ga)!=null?b:Ga={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),Fa(a,"incident"),ja(a))}};function Ja(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var Ka=Ja(),La=Ja(),Ma=Ja(),Na=Ja();const p=Ja("jas",!0);function Oa(){return typeof BigInt==="function"};var Pa={};function Qa(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function Ra(a,b){if(a!=null)if(typeof a==="string")a=a?new Da(a,Aa):Ba();else if(a.constructor!==Da)if(za(a))a=a.length?new Da(new Uint8Array(a),Aa):Ba();else{if(!b)throw Error();a=void 0}return a}var Sa;const Ta=[];Ta[p]=55;Sa=Object.freeze(Ta);function Ua(a){if(a&2)throw Error();}var Va=Object.freeze({});function Wa(a){a.pa=!0;return a};var Xa=Wa(a=>typeof a==="number"),Ya=Wa(a=>typeof a==="string"),Za=Wa(a=>typeof a==="boolean");var $a=typeof l.BigInt==="function"&&typeof l.BigInt(0)==="bigint";var fb=Wa(a=>$a?a>=ab&&a<=bb:a[0]==="-"?cb(a,db):cb(a,eb));const db=Number.MIN_SAFE_INTEGER.toString(),ab=$a?BigInt(Number.MIN_SAFE_INTEGER):void 0,eb=Number.MAX_SAFE_INTEGER.toString(),bb=$a?BigInt(Number.MAX_SAFE_INTEGER):void 0;function cb(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 r=0,u=0;function gb(a){const b=a>>>0;r=b;u=(a-b)/4294967296>>>0}function ib(a){if(a<0){gb(-a);const [b,c]=jb(r,u);r=b>>>0;u=c>>>0}else gb(a)}function kb(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Oa()?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+lb(c)+lb(a));return c}
8
+ function lb(a){a=String(a);return"0000000".slice(a.length)+a}function jb(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const mb=typeof BigInt==="function"?BigInt.asIntN:void 0,nb=Number.isSafeInteger,ob=Number.isFinite,pb=Math.trunc,qb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function rb(a){switch(typeof a){case "bigint":return!0;case "number":return ob(a);case "string":return qb.test(a);default:return!1}}function v(a){if(a!=null){if(!ob(a))throw Ha("enum");a|=0}return a}function sb(a){if(a!=null){if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;ob(a)}}
9
+ function tb(a){if(a!=null)a:{if(!rb(a))throw Ha("int64");switch(typeof a){case "string":a=ub(a);break a;case "bigint":var b=a=mb(64,a);if(Ya(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Xa(b)&&!Number.isSafeInteger(b))throw Error(String(b));$a?a=BigInt(a):a=Za(a)?a?"1":"0":Ya(a)?a.trim()||"0":String(a);break a;default:a=vb(a)}}return a}
10
+ function vb(a){a=pb(a);if(!nb(a)){ib(a);var b=r,c=u;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:kb(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a}
11
+ function ub(a){var b=pb(Number(a));if(nb(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));b=a.length;if(!(a[0]==="-"?b<20||b===20&&Number(a.substring(0,7))>-922337:b<19||b===19&&Number(a.substring(0,6))<922337)){if(a.length<16)ib(Number(a));else if(Oa())a=BigInt(a),r=Number(a&BigInt(4294967295))>>>0,u=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");u=r=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));u*=1E6;r=r*1E6+f;r>=4294967296&&
12
+ (u+=Math.trunc(r/4294967296),u>>>=0,r>>>=0)}if(b){const [d,e]=jb(r,u);r=d;u=e}}a=r;b=u;if(b&2147483648)if(Oa())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=jb(a,b);a="-"+kb(c,d)}else a=kb(a,b)}return a}function x(a){if(a!=null&&typeof a!=="string")throw Error();return a}function wb(a,b,c){if(a!=null&&typeof a==="object"&&a.H===Pa)return a;if(Array.isArray(a)){var d=a[p]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&(a[p]=e);return new b(a)}};function xb(a){return a};function yb(a,b,c,d,e){const f=d?!!(b&32):void 0;d=[];var h=a.length;let g,k,w,C=!1;if(b&64){if(b&256?(h--,g=a[h],k=h):(k=4294967295,g=void 0),!(e||b&512)){C=!0;var q;w=((q=zb)!=null?q:xb)(g?k- -1:b>>14&1023||536870912,-1,a,g);k=w+-1}}else k=4294967295,b&1||(g=h&&a[h-1],Qa(g)?(h--,k=h,w=0):g=void 0);q=void 0;for(let t=0;t<h;t++){let D=a[t];if(D!=null&&(D=c(D,f))!=null)if(t>=k){var E=void 0;((E=q)!=null?E:q={})[t- -1]=D}else d[t]=D}if(g)for(let t in g)if(E=g[t],E!=null&&(E=c(E,f))!=null)if(h=+t,h<
13
+ w)d[h+-1]=E;else{let D;((D=q)!=null?D:q={})[t]=E}q&&(C?d.push(q):d[k]=q);e&&(d[p]=b&16761409|(q!=null?290:34),(a=(b=fa(La))?a[b]:void 0)&&(d[La]=Array.prototype.slice.call(a)));return d}
14
+ function Ab(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return fb(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[p]|0;return a.length===0&&b&1?void 0:yb(a,b,Ab,!1,!1)}if(a.H===Pa)return Bb(a);if(a instanceof Da)return b=a.g,b==null?"":typeof b==="string"?b:a.g=va(b);if(za(a))return za(a)&&Ia(Na),va(a);return}return a}let zb;function Bb(a){a=a.m;return yb(a,a[p]|0,Ab,void 0,!1)};function Cb(){Ia(Ma)};function Db(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){const d=a[p]|0;if(a.length===0&&d&1)return;if(d&2)return a;var c;if(c=b)c=d===0||!!(d&32)&&!(d&64||!(d&16));return c?(a[p]|=34,d&4&&Object.freeze(a),a):yb(a,d,Db,b!==void 0,!0)}if(a.H===Pa)return b=a.m,c=b[p]|0,c&2?a:yb(b,c,Db,!0,!0);if(a instanceof Da)return a;if(za(a))return za(a)&&Ia(Na),new Uint8Array(a)}function Eb(a){var b=a.m;if(!((b[p]|0)&2))return a;a=new a.constructor(yb(b,b[p]|0,Db,!0,!0));b=a.m;b[p]&=-3;return a};function y(a,b){a=a.m;return Fb(a,a[p]|0,b)}function Fb(a,b,c){if(c===-1)return null;const d=c+(b&512?0:-1),e=a.length-1;if(d>=e&&b&256)return a[e][c];if(d<=e)return a[d]}function Gb(a,b,c){const d=a.m;let e=d[p]|0;Ua(e);z(d,e,b,c);return a}function z(a,b,c,d){const e=b&512?0:-1,f=c+e;var h=a.length-1;if(f>=h&&b&256)return a[h][c]=d,b;if(f<=h)return a[f]=d,b;d!==void 0&&(h=b>>14&1023||536870912,c>=h?d!=null&&(a[h+e]={[c]:d},b|=256,a[p]=b):a[f]=d);return b}
15
+ function Hb(a,b,c,d){c=A(a,d)===c?c:-1;return Ib(a,b,c)!==void 0}function Jb(a){return!!(2&a)&&!!(4&a)||!!(1024&a)}function B(a,b,c,d){const e=a.m;let f=e[p]|0;Ua(f);z(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}function A(a,b){a=a.m;return Kb(Lb(a),a,a[p]|0,b)}function Lb(a){let b;return(b=a[Ka])!=null?b:a[Ka]=new Map}function Kb(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 h=d[f];Fb(b,c,h)!=null&&(e!==0&&(c=z(b,c,e)),e=h)}a.set(d,e);return e}
16
+ function Ib(a,b,c){a=a.m;let d=a[p]|0;const e=Fb(a,d,c);b=wb(e,b,d);b!==e&&b!=null&&z(a,d,c,b);return b}function Mb(a,b,c){b=Ib(a,b,c);if(b==null)return b;a=a.m;let d=a[p]|0;if(!(d&2)){const e=Eb(b);e!==b&&(b=e,z(a,d,c,b))}return b}function Nb(a,b,c){c==null&&(c=void 0);return Gb(a,b,c)}
17
+ function F(a,b,c,d){d==null&&(d=void 0);a:{const h=a.m;var e=h[p]|0;Ua(e);if(d==null){var f=Lb(h);if(Kb(f,h,e,c)===b)f.set(c,0);else break a}else{f=h;const g=Lb(f),k=Kb(g,f,e,c);k!==b&&(k&&(e=z(f,e,k)),g.set(c,b))}z(h,e,b,d)}return a}
18
+ function Ob(a,b){const c=a.m;let d=c[p]|0;Ua(d);if(b==null)return z(c,d,1),a;let e=b[p]|0,f=e;const h=Jb(e),g=h||Object.isFrozen(b);let k=!0,w=!0;for(let q=0;q<b.length;q++){var C=b[q];h||(C=!!((C.m[p]|0)&2),k&&(k=!C),w&&(w=C))}h||(e=k?13:5,e=w?e|16:e&-17);g&&e===f||(b=Array.prototype.slice.call(b),f=0,e=Pb(e,d),e=Qb(e,d,!0));e!==f&&(b[p]=e);z(c,d,1,b);return a}function Pb(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025}function Qb(a,b,c){32&b&&c||(a&=-33);return a}
19
+ function Rb(a){a=y(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Sb(a){a=y(a,1);a!=null&&(typeof a==="bigint"?fb(a)?a=Number(a):(a=mb(64,a),a=fb(a)?Number(a):String(a)):a=rb(a)?typeof a==="number"?vb(a):ub(a):void 0);return a!=null?a:0}function G(a,b){a=y(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function H(a,b){a=y(a,b);a=a==null?a:ob(a)?a|0:void 0;return a!=null?a:0}
20
+ function I(a,b,c,d){c=A(a,d)===c?c:-1;return Mb(a,b,c)};function Tb(){var a=Ub||(Ub=Vb("[1,2,0]"));a=Eb(a);a=Gb(a,4,x("dev-733885818"));const b=a.m,c=b[p]|0;return c&2?a:new a.constructor(yb(b,c,Db,!0,!0))}
21
+ var J=class{constructor(a){a:{if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[p]|0;8192&b||!(64&b)||2&b||Cb();if(b&1024)throw Error("farr");if(b&64){var c=a;break a}var d=a;b|=64;var e=d.length;if(e){var f=e-1;e=d[f];if(Qa(e)){b|=256;const h=b&512?0:-1;f-=h;if(f>=1024)throw Error("pvtlmt");for(c in e){const g=+c;if(g<f)d[g+h]=e[c],delete e[c];else break}b=b&-16760833|(f&1023)<<14}}}a[p]=b;c=a}this.m=c}toJSON(){return Bb(this)}};J.prototype.H=Pa;J.prototype.toString=function(){return this.m.toString()};function Wb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[p]|=32;b=new a(b)}return b}};var Vb=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[p]|=34;return new a(b)}}(class extends J{});var Xb=class extends J{};function Yb(a){var b=new Zb(500);let c=0,d;return(...e)=>{$b(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},ac(b))))}}function bc(a){var b=new Zb(100),c=Promise.resolve();return(...d)=>$b(b)?a(...d):c};function $b(a){return cc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function ac(a){const b=a.g;a=cc(a,a.index);return a>=b?0:b-a}function cc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var Zb=class{constructor(a){this.g=a;this.h=[];this.index=0}};var dc=class extends J{},ec=[2,3];var fc=class extends J{};var K=class extends Error{constructor({errorType:a,message:b,i:c}){super(`Meet add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},L={errorType:"InternalError",message:"An unexpected error has occurred.",i:"No further information is available."},gc={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)."},
22
+ 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",
23
+ 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)."},
24
+ 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",
25
+ 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",
26
+ 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."},
27
+ rc={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."},sc={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."},
28
+ tc=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."}),M=(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`,
29
+ 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",
30
+ 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.",
31
+ 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",
32
+ 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."},
33
+ 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."};
34
+ function Jc(a){switch(a){case 0:return L;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 L}}
35
+ function Kc(a){let b;var c=(b=H(a,1))!=null?b:0;a=Lc(A(a,ec));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}.`,
37
36
  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.`,
38
- i:"No further information is available."}}return c;default:return vc(a)}}function Mc(a){switch(a){case 2:return"co";case 3:return"gd";case 0:return"unknown";default:return"unknown"}}function O({errorType:a,message:b,i:c},d=""){throw new L({errorType:a,message:d?`${b} ${d}`:b,i:c});}function Nc(a,b){O({...hc,message:`${hc.message}: ${a}. In URL ${b}`})};function Oc(a){var b=new Pc;return B(b,1,v(a),0)}function Qc(a,b){return B(a,2,x(b),"")}function Rc(a,b){return B(a,3,x(b),"")}var Pc=class extends K{getFrameType(){return I(this,1)}};function Sc(a){var b=a.m[p]|0,c=b,d=!(2&b),e=Pc;b=void 0===Va?2:4;a=a.m;var f=!!(2&c);const h=f?1:b;d&&(d=!f);b=Gb(a,c,1);b=Array.isArray(b)?b:Sa;var g=b[p]|0;f=!!(4&g);if(!f){var k=g;k===0&&(k=Qb(k,c));g=b;k|=1;var t=c;const C=!!(2&k);C&&(t|=2);let q=!C,E=!0,F=0,w=0;for(;F<g.length;F++){const D=vb(g[F],e,t);if(D instanceof e){if(!C){const wc=!!((D.m[p]|0)&2);q&&(q=!wc);E&&(E=wc)}g[w++]=D}}w<F&&(g.length=w);k|=4;k=E?k|16:k&-17;k=q?k|8:k&-9;g[p]=k;C&&Object.freeze(g);g=k}if(d&&!(8&g||!b.length&&(h===
39
- 1||h===4&&32&g))){Kb(g)&&(b=Array.prototype.slice.call(b),g=Qb(g,c),c=z(a,c,1,b));d=b;e=g;for(g=0;g<d.length;g++)k=d[g],t=Fb(k),k!==t&&(d[g]=t);e|=8;e=d.length?e&-17:e|16;g=d[p]=e}h===1||h===4&&32&g?Kb(g)||(c=g,a=!!(32&g),g|=!b.length||16&g&&(!f||a)?2:1024,g!==c&&(b[p]=g),Object.freeze(b)):(h===2&&Kb(g)&&(b=Array.prototype.slice.call(b),g=Qb(g,c),g=Rb(g,c,!1),b[p]=g,c=z(a,c,1,b)),Kb(g)||(a=g,g=Rb(g,c,!1),g!==a&&(b[p]=g)));return b}function Tc(a){var b=new Uc;return Pb(b,a)}var Uc=class extends K{};var Vc=class extends K{};var Wc=class extends K{};var Xc=class extends K{};var Yc=class extends K{};var Zc=class extends K{};var $c=class extends K{getMeetPlatformInfo(){return Nb(this,Yc,1)}};var ad=class extends K{getMeetingInfo(){return Nb(this,Zc,1)}};var bd=class extends K{},P=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];var cd=class extends K{};var dd=class extends K{};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 Q(){this.s=this.s;this.g=this.g}Q.prototype.s=!1;Q.prototype.dispose=function(){this.s||(this.s=!0,this.G())};Q.prototype[Symbol.dispose]=function(){this.dispose()};function hd(a,b){a.s?b():(a.g||(a.g=[]),a.g.push(b))}Q.prototype.G=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function id({J:a,R:b}){if(a===null)throw new L(uc("activityStartingState"));if(b||a!==void 0){if(typeof a!=="object")throw new L(N("activityStartingState",typeof a,`object${b?"":" | undefined"}`));if(a.mainStageUrl!==void 0&&typeof a.mainStageUrl!=="string")throw new L(N("mainStageUrl",typeof a.mainStageUrl,"string | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new L(N("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!==
40
- "string")throw new L(N("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.mainStageUrl+ +!!a.sidePanelUrl+ +!!a.additionalData)throw new L(rc);if(Object.keys(a).length===0)throw new L(qc);}}function jd(a){const b=[];b.push(Rc(Qc(Oc(2),a.mainStageUrl),a.additionalData));b.push(Rc(Qc(Oc(1),a.sidePanelUrl),a.additionalData));return b}
41
- var sd=class extends Q{constructor(a){super();this.context=a;this.h={};kd(this.context.g.U,b=>{switch(A(b.content,P)){case 7:const d=this.h.frameToFrameMessage;b=J(b.content,Xc,7,P);if(d&&b){var c=I(b,1);c=ed.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:H(b,2)})}}})}async getMeetingInfo(){const a=await ld(this.context.g);return{meetingId:H(a.getMeetingInfo(),1),meetingCode:H(a.getMeetingInfo(),2)}}async getFrameOpenReason(){let a;const b=(a=this.context.h.ca)!=null?
42
- a:0;let c;return(c=fd.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=Nb(await md(this.context.g),Uc,1);const b=a==null?void 0:Sc(a).find(c=>c.getFrameType()===2);a=a==null?void 0:Sc(a).find(c=>c.getFrameType()===1);return{mainStageUrl:(b==null?void 0:H(b,2))||void 0,sidePanelUrl:(a==null?void 0:H(a,2))||void 0,additionalData:(a==null?void 0:H(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=Tc(b);d=Ob(d,1,b);await a(c,
43
- d)}on(a,b){this.h[a]=b}async getMeetPlatformInfo(){const a=await od(this.context.g);return{isMeetHardware:Sb(a.getMeetPlatformInfo())}}async closeAddon(){await pd(this.context.g)}async startActivity(a){id({J:a,R:!1});const b=new dd;a&&(a=jd(a),a=Tc(a),Ob(b,1,a));await qd(this.context.g,b)}async endActivity(a){var b=rd,c=this.context.g,d=new Vc;a=B(d,1,v(a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0),0);await b(c,a)}};var td=Xb(class extends K{getFrameOpenReason(){return I(this,5)}});function ud(){const 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?O(lc):Nc("meet_sdk",b);b=void 0}(c=H(b,1))||Nc("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new L(mc);(d=H(b,2))||Nc("meet_control_channel_name",a);const e=H(b,4);e||Nc("addon_cloud_project_number",a);let f;return{ca:(f=b.getFrameOpenReason())!=null?f:0,frameType:c,ba:d,cloudProjectNumber:e,S:H(b,
44
- 3)||"https://meet.google.com"}};var vd=class extends K{};var wd=class extends K{};var xd=class extends K{};function yd(){var a=new zd,b=new xd;return G(a,1,Ad,b)}var zd=class extends K{},Ad=[1,2];function Bd(a){var b=new Cd;return Ob(b,2,a)}function Dd(a,b){return B(a,3,x(b),"")}var Cd=class extends K{};var Ed=class extends K{};var Fd=class extends K{};var Gd=class extends K{};var Hd=class extends K{};var Id=class extends K{};var Jd=class extends K{};var Kd=class extends K{setAddonStartingState(a){return Ob(this,1,a)}};var Ld=class extends K{};function Md(a,b){return G(a,2,R,b)}var S=class extends K{},R=[1,2,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20];function Nd(a){return J(a,bd,2,Od)}var Pd=class extends K{},Qd=Xb(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))}C(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.l(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)}class Zd{constructor(a,b){this.j=a;this.l=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){ja(b)}Yd(ce,a)}fe=!1};function je(){};function T(a){this.g=0;this.T=void 0;this.l=this.h=this.j=null;this.v=this.B=!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.l=this.g=null;this.j=!1}le.prototype.reset=function(){this.context=this.h=this.l=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.l=a;d.h=b;d.context=c;return d}
45
- function oe(){let a,b;const c=new T(function(d,e){a=d;b=e});return new pe(c,a,b)}T.prototype.then=function(a,b,c){return qe(this,Xd(typeof a==="function"?a:null),Xd(typeof b==="function"?b:null),c)};T.prototype.$goog_Thenable=!0;function re(a,b){b=Xd(b);b=ne(b,b);b.j=!0;se(a,b)}T.prototype.cancel=function(a){if(this.g==0){const b=new U(a);he(function(){te(this,b)},this)}};
46
- 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 h=c.h;h&&(h.j||(d++,h.g==a&&(e=h),!(e&&d>1)));h=h.next)e||(f=h);e&&(c.g==0&&d==1?te(c,b):(f?(d=f,d.next==c.l&&(c.l=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.l?a.l.next=b:a.h=b;a.l=b}
47
- function qe(a,b,c,d){const e=ne(null,null,null);e.g=new T(function(f,h){e.l=b?function(g){try{const k=b.call(d,g);f(k)}catch(k){h(k)}}:f;e.h=c?function(g){try{const k=c.call(d,g);k===void 0&&g instanceof U?h(g):f(k)}catch(k){h(k)}}:h});e.g.j=a;se(a,e);return e.g}T.prototype.ma=function(a){this.g=0;ke(this,2,a)};T.prototype.na=function(a){this.g=0;ke(this,3,a)};
48
- 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.ma,f=a.na;if(d instanceof T){se(d,ne(e||je,f||null,a));var h=!0}else{if(d)try{var g=!!d.$goog_Thenable}catch(k){g=!1}else g=!1;if(g)d.then(e,f,a),h=!0;else{g=typeof d;if(g=="object"&&d!=null||g=="function")try{const k=d.then;if(typeof k==="function"){xe(d,k,e,f,a);h=!0;break a}}catch(k){f.call(a,k);h=!0;break a}h=!1}}}h||(a.T=c,a.g=b,a.j=null,we(a),b!=3||c instanceof U||ye(a,c))}}
49
- function xe(a,b,c,d,e){function f(k){g||(g=!0,d.call(e,k))}function h(k){g||(g=!0,c.call(e,k))}let g=!1;try{b.call(a,h,f)}catch(k){f(k)}}function we(a){a.B||(a.B=!0,he(a.la,a))}function ue(a){let b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.l=null);return b}T.prototype.la=function(){let a;for(;a=ue(this);)ve(this,a,this.g,this.T);this.B=!1};
50
- function ve(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.v;a=a.j)a.v=!1;if(b.g)b.g.j=null,ze(b,c,d);else try{b.j?b.l.call(b.context):ze(b,c,d)}catch(e){Ae.call(null,e)}Yd(me,b)}function ze(a,b,c){b==2?a.l.call(a.context,c):a.h&&a.h.call(a.context,c)}function ye(a,b){a.v=!0;he(function(){a.v&&Ae.call(null,b)})}var Ae=ja;function U(a){ia.call(this,a)}ha(U,ia);U.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 Q{constructor(){super();this.h=new Set}signal(){const a=new Fe;this.h.add(a);hd(this,ea(gd,a));return a}};function Ee(a,b){return new Promise(c=>{He(()=>{a.L&&(a.ea=b,a.P=!0);for(const {I:d,slot:e}of a.o.values())try{e(b,{signal:a,I:d})}catch(f){ja(f)}for(const d of a.A)d.resolve(b);a.A.clear();c()})})}function kd(a,b,c){const d=Be++;He(()=>{Ie(a,d,b,c)});return d}
51
- function Ie(a,b,c,d){if(!a.s)if(d){if(!d.s){const e=()=>{He(()=>{a.o.delete(b);const f=Ce.get(d);f&&ua(f,e)})};a.o.set(b,{I:b,slot:c,F:e});Je(d,e)}}else a.o.set(b,{I:b,slot:c,F:()=>a.o.delete(b)})}
52
- var Fe=class extends Q{constructor(){super();this.L=!1;this.o=new Map;this.A=new Set;this.P=!1}detach(a){He(()=>{const b=this.o.get(a);b&&b.F()})}value(a){return this.promise(!0,a)}next(a){return this.promise(!1,a)}promise(a,b){const c=oe();He(()=>{if(this.s)c.reject(new U("Signal initially disposed"));else if(b&&b.s)c.reject(new U("Owner initially disposed"));else if(a&&this.L&&this.P)c.resolve(this.ea);else if(this.A.add(c),re(c.promise,()=>{this.A.delete(c)}),b){const d=()=>{c.reject(new U("Owner asynchronously disposed"))};
53
- re(c.promise,()=>{const e=Ce.get(b);e&&ua(e,d)});Je(b,d)}});return c.promise}G(){super.G();He(()=>{for(const {F:a}of this.o.values())a();this.o.clear();for(const a of this.A)a.reject(new U("Signal asynchronously disposed"));this.A.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){ja(a)}finally{Ke.length=0,Le=!1}}
54
- function Ne(a){const b=a+100;for(;a<b&&a<Ke.length;)try{Ke[a++]()}catch(c){ja(c)}return a}function Je(a,b){if(a.s)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 V(a){var b=new Pd;a=G(b,1,Od,a);return{content:JSON.stringify(Cb(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,ka:d})}),signal:c}};let Vb;var W=class extends K{};var X=class extends K{};var Re=class extends K{h(){return J(this,W,2,Qe)}g(){return Ib(this,W,2,Qe)}j(){return J(this,X,3,Qe)}l(){return Ib(this,X,3,Qe)}},Qe=[2,3];var Se=Xb(class extends K{});var Te=Xb(class extends K{}),Ue=[1,2];var Ve=({destination:a,origin:b,ra:c,Y: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,Y:a,onMessage:f=>{const h=Qd(f.data.content);A(h,Od)===2&&De(d,e,{content:Nd(h),ka:f,messagePort:f.data.messagePort})}});return new Xe(e,a,c)}async function ld(a){var b=Y;var c=new S;var d=new Gd;c=G(c,19,R,d);a=await b(a,V(c));let e;return(e=Nd(Qd(a.data.content)))==null?void 0:J(e,ad,20,P)}
55
- async function md(a){var b=Y;var c=new S;var d=new wd;c=G(c,17,R,d);a=await b(a,V(c));let e;return(e=Nd(Qd(a.data.content)))==null?void 0:J(e,Wc,18,P)}async function nd(a,b){var c=Y,d=new S;b=G(d,8,R,b);await c(a,V(b))}async function od(a){var b=Y;var c=new S;var d=new Fd;c=G(c,18,R,d);a=await b(a,V(c));let e;return(e=Nd(Qd(a.data.content)))==null?void 0:J(e,$c,19,P)}async function pd(a){var b=Y;var c=new S;var d=new vd;c=G(c,11,R,d);await b(a,V(c))}
56
- async function qd(a,b){var c=Y,d=new S;b=G(d,14,R,b);await c(a,V(b))}async function rd(a,b){var c=Y,d=new S;b=G(d,15,R,b);await c(a,V(b))}async function Ye(a){await a.h()}
57
- async function Y(a,b){(a=await a.channel.C(b))||O(M,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||O(M,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||O(M,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Qd(b)}catch(d){O(M,"The ControlMessage can't be deserialized."+` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=Nd(c))||O(M,"MeetToAddonMessage field on ControlMessage is falsy."+
58
- ` ${JSON.stringify(b)}`);b=b==null?void 0:J(b,gc,10,P);if((b==null?void 0:I(b,1))!==void 0)throw new L(Kc(I(b,1)));return a}async function Ze(a,b,c){var d=Y,e=new S;b=G(e,1,R,b);d=await d(a,V(b));a=d.data.messagePort;var f;(d=(f=Nd(Qd(d.data.content)))==null?void 0:J(f,ec,1,P))!=null?f=d:(f=new ec,f=B(f,1,v(0),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 L(Lc(d));return c}
59
- async function af(a){var b=Y;var c=new S;var d=new Ld;c=G(c,5,R,d);await b(a,V(c))}async function bf(a){var b=Y;var c=new S;var d=new Ed;c=G(c,6,R,d);await b(a,V(c))}async function cf(a,b,c){var d=Y,e=new S,f=new Hd;b=B(f,1,v(b),0);c=B(b,2,x(c),"");e=G(e,7,R,c);await d(a,V(e))}async function df(a,b){var c=Y,d=new S;b=G(d,16,R,b);await c(a,V(b))}
60
- class Xe extends Q{constructor(a,b,c){super();this.U=a;this.channel=b;this.h=cc(async()=>{var d=this.channel,e=d.C;var f=new S;var h=new Id;f=G(f,13,R,h);await e.call(d,V(f))});a=Ub();rb(y(a,1));rb(y(a,2));rb(y(a,3));c=Md(new S,Dd(Bd(a),c));this.channel.send(V(c));kd(this.U,async d=>{switch(A(d.content,P)){case 16:await Ye(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 K{h(){return J(this,W,2,gf)}g(){return Ib(this,W,2,gf)}j(){return J(this,X,3,gf)}l(){return Ib(this,X,3,gf)}},gf=[2,3];var jf=class extends K{};var kf=class extends K{};var lf=class extends K{};var nf=class extends K{h(){return J(this,W,2,mf)}g(){return Ib(this,W,2,mf)}j(){return J(this,X,3,mf)}l(){return Ib(this,X,3,mf)}},mf=[2,3],of=[5,6];var pf=class extends K{};var qf=class extends K{},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.ha()},this.config.da));return this}shutdown(){clearInterval(this.g)}};function uf(){const a=new Map,b={set(c,d){a.set(c,d);return b},D:()=>a};return b};function vf(a){if(a.g()){a=a.h().m;var b=a[p]|0;var c=Gb(a,b,1),d=Ra(c,!0);d!=null&&d!==c&&z(a,b,1,d);a=d;b=a==null?Ba():a;a=Uint8Array;Ea(Aa);c=b.g;if(c!=null&&!za(c))if(typeof c==="string"){wa.test(c)&&(c=c.replace(wa,ya));c=atob(c);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 wf(a,b){b=xf(b);G(a,2,mf,b);return a}function yf(a,b){b=xf(b);G(a,2,gf,b);return a}
61
- function xf(a){var b=new W;return B(b,1,Ra(a.bytes,!1),Ba())}function zf(a){if(a.l()){a=a.j();var b,c,d=H(a,1),e=(c=(b=Nb(a,Yb,2))==null?void 0:Tb(b))!=null?c:0;c=a.m;let f=c[p]|0;const h=Gb(c,f,4);b=h==null||typeof h==="number"?h:h==="NaN"||h==="Infinity"||h==="-Infinity"?Number(h):void 0;b!=null&&b!==h&&z(c,f,4,b);return{mediaId:d,mediaPlayoutPosition:e,mediaPlayoutRate:b!=null?b:0,playbackState:Af.get(I(a,3))}}}function Bf(a,b){b=Cf(b);G(a,3,mf,b);return a}
62
- function Df(a,b){b=Cf(b);G(a,3,gf,b);return a}const Af=uf().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").D(),Ef=uf().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).D();
63
- function Cf(a){var b=new X;b=B(b,1,x(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=B(b,4,c,0);c=new Yb;c=B(c,1,sb(a.mediaPlayoutPosition),"0");b=Ob(b,2,c);a=Ef.get(a.playbackState);return B(b,3,v(a),0)}function Ff({activityTitle:a}){var b=new lf;return Hb(b,4,x(a))}function Gf(a,b){var c=new kf;b=B(c,1,v(b.u),0);G(a,6,of,b);return a}function Hf(a){var b=new jf;G(a,5,of,b);return a};const If=uf().set("co-doing",1).set("co-watching",2).D();async function Jf(a,b,c){var d=b.C,e=new qf;var f=new pf;f=B(f,1,x(a.activityTitle),"");var h=If.get(a.K);f=B(f,2,v(h),0);e=G(e,3,rf,f);d=await d.call(b,e,Se);let g;if((g=Sb(d))!=null&&g)return new Kf(a,b,c,Nb(d,Re,2));throw new sf;}function Lf(a,b){const c=a.config.N(b);c&&!a.config.M(a.g,c)&&(a.g=c,a.j=Tb(b),a.v(a.g))}function Z(a,b){const {state:c,fa:d,context:e}=b(a.g);a.g=c;a.notify(a.g,e,d)}
64
- class Kf{constructor(a,b,c,d){this.l=a;this.h=b;this.config=c;this.v=Zb(e=>void this.l.O(e));Mf(this.h,e=>{const f=A(e,Ue);switch(f){case 1:Lf(this,J(e,Re,1,Ue));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.B=(new tf({da:1E3,ha:()=>{var e,f,h=(f=(e=this.l).ja)==null?void 0:f.call(e);if(this.g!==null){this.g={...this.g,...h};e=new qf;f=this.config;h=f.W;var g=new hf;g=B(g,1,sb(this.j),"0");f=h.call(f,g,this.g);
65
- e=G(e,1,rf,f);this.h.send(e)}}})).start();this.g=null;this.j=0;d&&Lf(this,d)}disconnect(){this.h.shutdown();this.B.shutdown()}notify(a,b,c){var d=c?Ff(c):void 0;c=this.config;var e=c.X;var f=new nf;f=B(f,1,sb(this.j),"0");d=Ob(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=G(e,2,rf,a);c.call(b,a)}};var Nf=class{constructor(a){this.g=a}broadcastStateUpdate(a){Z(this.g,()=>({state:a,context:{}}))}disconnect(){this.g.disconnect()}};function Of(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Pf=class{constructor(a){this.g=a}notifySwitchedToMedia(a,b,c){Z(this.g,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},fa:{activityTitle:a},context:{u:1}}))}notifyPauseState(a,b){Z(this.g,c=>{if(c==null)throw Error("Invalid before coWatchingState");return{state:{...c,playbackState:a?"PAUSE":"PLAY",mediaPlayoutPosition:b},context:{u:3}}})}notifySeekToTimestamp(a){Z(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
66
- context:{u:2}}})}notifyPlayoutRate(a){Z(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutRate:a},context:{u:4}}})}notifyBuffering(a){Z(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a,playbackState:"BUFFERING"},context:{u:3}}})}notifyReady(a){Z(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},context:{u:3}}})}disconnect(){this.g.disconnect()}};
67
- function Qf(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 Mf(a,b){const c=kd(a.signal,d=>{b(d)});a.o.push(c)}var Rf=class{constructor(a,b){this.channel=a;this.signal=b;this.o=[]}send(a){this.channel.send(JSON.stringify(Cb(a)))}async C(a,b){a=await this.channel.C(JSON.stringify(Cb(a)));return b(a.data)}shutdown(){this.o.forEach(a=>{this.signal.detach(a)})}};function Sf(a,b){var c=Tf;const d=a.signal(),e=a.signal();kd(b,f=>{const h=c(f)?d:e;De(a,h,f)},a);return{ia:d,ga:e}}function Uf(a,b,c,d=e=>e){kd(c,e=>{De(a,b,d(e))},a)};async function Vf(a,b){if(b)return a=await Jf({activityTitle:b.activityTitle,K:"co-watching",ja:()=>b.onCoWatchingStateQuery(),O:c=>{b.onCoWatchingStateChanged(c)}},a,{X:Bf,W:Df,V:Gf,N:zf,M:Qf}),new Pf(a)}async function Wf(a,b){if(b)return a=await Jf({activityTitle:b.activityTitle,K:"co-doing",O:c=>{b.onCoDoingStateChanged(c)}},a,{X:wf,W:yf,V:Hf,N:vf,M:Of}),new Nf(a)}
68
- async function Xf(a){const b=new Ge,c=b.signal();a=await a;Uf(b,c,a.signal,f=>f.content);const {ia:d,ga:e}=Sf(b,c);return{Z:new Rf(a.channel,d),aa:new Rf(a.channel,e)}}function Tf(a){a:switch(A(a,Ue)){case 1:a=J(a,Re,1,Ue);break a;default:throw Error("CA Message arrived with no known content message set");}return a.g()};async function Yf(a,b){({Z:a}=await Xf($e(a.g)));b=await Wf(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function Zf(a,b){({aa:a}=await Xf($e(a.g)));b=await Vf(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var $f=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 ag=class extends sd{async setAddonStartingState(a){if(a===null)throw new L(uc("addonStartingState"));if(typeof a!=="object")throw new L(N("addonStartingState",typeof a,"object | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new L(N("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!=="string")throw new L(N("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.sidePanelUrl+
69
- +!!a.additionalData)throw new L(tc);if(Object.keys(a).length===0)throw new L(sc);var b=[];b.push(Rc(Qc(Oc(1),a.sidePanelUrl),a.additionalData));a=this.context.g;var c=new Kd,d=c.setAddonStartingState,e=new Jd;b=Pb(e,b);await df(a,d.call(c,b))}};var bg=class extends sd{async notifyMainStage(a){await cf(this.context.g,2,a)}};var cg=class{constructor(a){a=a.cloudProjectNumber;const b=ud();if(b.cloudProjectNumber!==a)throw new L(nc);const c=b.S,d=b.ba;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 L(ic);return await Promise.resolve(new $f(a))}async createSidePanelClient(){var a=this.g;if(a.h.frameType!==1)throw new L(jc);return await Promise.resolve(new bg(a))}async createCoWatchingClient(a){return await Zf(this.g,a)}async createCoDoingClient(a){return await Yf(this.g,
70
- a)}async createRoomsStandaloneClient(){var a=this.g;if(a.h.frameType!==2)throw new L(ic);return await Promise.resolve(new ag(a))}};let dg=null;for(var eg={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 L(uc("config"));if(typeof a!=="object")throw new L(N("config",typeof a,"object"));if(typeof a.cloudProjectNumber!=="string")throw new L(N("cloudProjectNumber",typeof a.cloudProjectNumber,"string"));if(dg&&ud().S!=="integration.test.google.com")throw new L(Ec);
71
- return dg=new cg(a)}}},fg=["meet"],gg=l,hg;fg.length&&(hg=fg.shift());)fg.length||eg===void 0?gg[hg]&&gg[hg]!==Object.prototype[hg]?gg=gg[hg]:gg=gg[hg]={}:gg[hg]=eg;}).apply(topLevel);export const meet = topLevel.meet;
37
+ 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 N({errorType:a,message:b,i:c},d=""){throw new K({errorType:a,message:d?`${b} ${d}`:b,i:c});}function Mc(a,b){N({...gc,message:`${gc.message}: ${a}. In URL ${b}`})};function Nc(a){var b=new Oc;return B(b,1,v(a),0)}function Pc(a,b){return B(a,2,x(b),"")}function Qc(a,b){return B(a,3,x(b),"")}var Oc=class extends J{getFrameType(){return H(this,1)}};function Rc(a){var b=a.m[p]|0,c=b,d=!(2&b),e=Oc;b=void 0===Va?2:4;a=a.m;var f=!!(2&c);const h=f?1:b;d&&(d=!f);b=Fb(a,c,1);b=Array.isArray(b)?b:Sa;var g=b[p]|0;f=!!(4&g);if(!f){var k=g;k===0&&(k=Pb(k,c));g=b;k|=1;var w=c;const C=!!(2&k);C&&(w|=2);let q=!C,E=!0,t=0,D=0;for(;t<g.length;t++){const hb=wb(g[t],e,w);if(hb instanceof e){if(!C){const uc=!!((hb.m[p]|0)&2);q&&(q=!uc);E&&(E=uc)}g[D++]=hb}}D<t&&(g.length=D);k|=4;k=E?k|16:k&-17;k=q?k|8:k&-9;g[p]=k;C&&Object.freeze(g);g=k}if(d&&!(8&g||!b.length&&
38
+ (h===1||h===4&&32&g))){Jb(g)&&(b=Array.prototype.slice.call(b),g=Pb(g,c),c=z(a,c,1,b));d=b;e=g;for(g=0;g<d.length;g++)k=d[g],w=Eb(k),k!==w&&(d[g]=w);e|=8;e=d.length?e&-17:e|16;g=d[p]=e}h===1||h===4&&32&g?Jb(g)||(c=g,a=!!(32&g),g|=!b.length||16&g&&(!f||a)?2:1024,g!==c&&(b[p]=g),Object.freeze(b)):(h===2&&Jb(g)&&(b=Array.prototype.slice.call(b),g=Pb(g,c),g=Qb(g,c,!1),b[p]=g,c=z(a,c,1,b)),Jb(g)||(a=g,g=Qb(g,c,!1),g!==a&&(b[p]=g)));return b}function Sc(a){var b=new Tc;return Ob(b,a)}var Tc=class extends J{};var Uc=class extends J{};var Vc=class extends J{};var Wc=class extends J{};var Xc=class extends J{};var Yc=class extends J{};var Zc=class extends J{getMeetPlatformInfo(){return Mb(this,Xc,1)}};var $c=class extends J{getMeetingInfo(){return Mb(this,Yc,1)}};var ad=class extends J{},O=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];var bd=class extends J{};var cd=class extends J{};var dd=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),ed=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]);function fd(a){a&&typeof a.dispose=="function"&&a.dispose()};function P(){this.s=this.s;this.g=this.g}P.prototype.s=!1;P.prototype.dispose=function(){this.s||(this.s=!0,this.G())};P.prototype[Symbol.dispose]=function(){this.dispose()};function gd(a,b){a.s?b():(a.g||(a.g=[]),a.g.push(b))}P.prototype.G=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function hd({J:a,R:b}){if(a===null)throw new K(tc("activityStartingState"));if(b||a!==void 0){if(typeof a!=="object")throw new K(M("activityStartingState",typeof a,`object${b?"":" | undefined"}`));if(a.mainStageUrl!==void 0&&typeof a.mainStageUrl!=="string")throw new K(M("mainStageUrl",typeof a.mainStageUrl,"string | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new K(M("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!==
39
+ "string")throw new K(M("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.mainStageUrl+ +!!a.sidePanelUrl+ +!!a.additionalData)throw new K(qc);if(Object.keys(a).length===0)throw new K(pc);}}function id(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}
40
+ var rd=class extends P{constructor(a){super();this.context=a;this.h={};jd(this.context.g.U,b=>{switch(A(b.content,O)){case 7:const d=this.h.frameToFrameMessage;b=I(b.content,Wc,7,O);if(d&&b){var c=H(b,1);c=dd.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:G(b,2)})}}})}async getMeetingInfo(){const a=await kd(this.context.g);return{meetingId:G(a.getMeetingInfo(),1),meetingCode:G(a.getMeetingInfo(),2)}}async getFrameOpenReason(){let a;const b=(a=this.context.h.ca)!=null?
41
+ a:0;let c;return(c=ed.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=Mb(await ld(this.context.g),Tc,1);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:G(b,2))||void 0,sidePanelUrl:(a==null?void 0:G(a,2))||void 0,additionalData:(a==null?void 0:G(a,3))||void 0}}async setActivityStartingState(a){hd({J:a,R:!0});var b=id(a);a=md;var c=this.context.g;var d=new bd;b=Sc(b);d=Nb(d,1,b);await a(c,
42
+ d)}on(a,b){this.h[a]=b}async getMeetPlatformInfo(){const a=await nd(this.context.g);return{isMeetHardware:Rb(a.getMeetPlatformInfo())}}async closeAddon(){await od(this.context.g)}async startActivity(a){hd({J:a,R:!1});const b=new cd;a&&(a=id(a),a=Sc(a),Nb(b,1,a));await pd(this.context.g,b)}async endActivity(a){var b=qd,c=this.context.g,d=new Uc;a=B(d,1,v(a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0),0);await b(c,a)}};var sd=Wb(class extends J{getFrameOpenReason(){return H(this,5)}});function td(){const a=window.location.href;var b=window.location.href;var c=(new URL(b)).searchParams.get("meet_sdk");if(c)b=sd(atob(c));else{var d;((d=window.top)!=null?d:window)===window?N(kc):Mc("meet_sdk",b);b=void 0}(c=G(b,1))||Mc("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new K(lc);(d=G(b,2))||Mc("meet_control_channel_name",a);const e=G(b,4);e||Mc("addon_cloud_project_number",a);let f;return{ca:(f=b.getFrameOpenReason())!=null?f:0,frameType:c,ba:d,cloudProjectNumber:e,S:G(b,
43
+ 3)||"https://meet.google.com"}};var ud=class extends J{};var vd=class extends J{};var wd=class extends J{};function xd(){var a=new yd,b=new wd;return F(a,1,zd,b)}var yd=class extends J{},zd=[1,2];function Ad(a){var b=new Bd;return Nb(b,2,a)}function Cd(a,b){return B(a,3,x(b),"")}var Bd=class extends J{};var Dd=class extends J{};var Ed=class extends J{};var Fd=class extends J{};var Gd=class extends J{};var Hd=class extends J{};var Id=class extends J{};var Jd=class extends J{setAddonStartingState(a){return Nb(this,1,a)}};var Kd=class extends J{};function Ld(a,b){return F(a,2,Q,b)}var R=class extends J{},Q=[1,2,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20];function Md(a){return I(a,ad,2,Nd)}var Od=class extends J{},Pd=Wb(Od),Nd=[1,2];class Qd{constructor(a,b){this.data=a;this.channel=b}};var Rd=Promise;function Sd(a){const b=new MessageChannel;Td(b.port1,a);return b}function Ud(a,b){Td(a,b);return new Vd(a)}class Vd{constructor(a){this.g=a}send(a,b,c=[]){b=Sd(b);this.g.postMessage(a,[b.port2].concat(c))}C(a,b){return new Rd(c=>{this.send(a,c,b)})}}function Td(a,b){b&&(a.onmessage=c=>{var d=c.data;c=Ud(c.ports[0]);b(new Qd(d,c))})};var Wd=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?a=>a&&AsyncContext.Snapshot.wrap(a):a=>a;function Xd(a,b){a.l(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)}class Yd{constructor(a,b){this.j=a;this.l=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 Zd(){var a=$d;let b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}class ae{constructor(){this.h=this.g=null}add(a,b){const c=be.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}}var be=new Yd(()=>new ce,a=>a.reset());class ce{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 de,ee=!1,$d=new ae,ge=(a,b)=>{de||fe();ee||(de(),ee=!0);$d.add(a,b)},fe=()=>{const a=Promise.resolve(void 0);de=()=>{a.then(he)}};function he(){let a;for(;a=Zd();){try{a.h.call(a.g)}catch(b){ja(b)}Xd(be,a)}ee=!1};function ie(){};function S(a){this.g=0;this.T=void 0;this.l=this.h=this.j=null;this.v=this.B=!1;if(a!=ie)try{const b=this;a.call(void 0,function(c){je(b,2,c)},function(c){je(b,3,c)})}catch(b){je(this,3,b)}}function ke(){this.next=this.context=this.h=this.l=this.g=null;this.j=!1}ke.prototype.reset=function(){this.context=this.h=this.l=this.g=null;this.j=!1};var le=new Yd(function(){return new ke},function(a){a.reset()});function me(a,b,c){const d=le.get();d.l=a;d.h=b;d.context=c;return d}
44
+ function ne(){let a,b;const c=new S(function(d,e){a=d;b=e});return new oe(c,a,b)}S.prototype.then=function(a,b,c){return pe(this,Wd(typeof a==="function"?a:null),Wd(typeof b==="function"?b:null),c)};S.prototype.$goog_Thenable=!0;function qe(a,b){b=Wd(b);b=me(b,b);b.j=!0;re(a,b)}S.prototype.cancel=function(a){if(this.g==0){const b=new T(a);ge(function(){se(this,b)},this)}};
45
+ function se(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 h=c.h;h&&(h.j||(d++,h.g==a&&(e=h),!(e&&d>1)));h=h.next)e||(f=h);e&&(c.g==0&&d==1?se(c,b):(f?(d=f,d.next==c.l&&(c.l=d),d.next=d.next.next):te(c),ue(c,e,3,b)))}a.j=null}else je(a,3,b)}function re(a,b){a.h||a.g!=2&&a.g!=3||ve(a);a.l?a.l.next=b:a.h=b;a.l=b}
46
+ function pe(a,b,c,d){const e=me(null,null,null);e.g=new S(function(f,h){e.l=b?function(g){try{const k=b.call(d,g);f(k)}catch(k){h(k)}}:f;e.h=c?function(g){try{const k=c.call(d,g);k===void 0&&g instanceof T?h(g):f(k)}catch(k){h(k)}}:h});e.g.j=a;re(a,e);return e.g}S.prototype.ma=function(a){this.g=0;je(this,2,a)};S.prototype.na=function(a){this.g=0;je(this,3,a)};
47
+ function je(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.ma,f=a.na;if(d instanceof S){re(d,me(e||ie,f||null,a));var h=!0}else{if(d)try{var g=!!d.$goog_Thenable}catch(k){g=!1}else g=!1;if(g)d.then(e,f,a),h=!0;else{g=typeof d;if(g=="object"&&d!=null||g=="function")try{const k=d.then;if(typeof k==="function"){we(d,k,e,f,a);h=!0;break a}}catch(k){f.call(a,k);h=!0;break a}h=!1}}}h||(a.T=c,a.g=b,a.j=null,ve(a),b!=3||c instanceof T||xe(a,c))}}
48
+ function we(a,b,c,d,e){function f(k){g||(g=!0,d.call(e,k))}function h(k){g||(g=!0,c.call(e,k))}let g=!1;try{b.call(a,h,f)}catch(k){f(k)}}function ve(a){a.B||(a.B=!0,ge(a.la,a))}function te(a){let b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.l=null);return b}S.prototype.la=function(){let a;for(;a=te(this);)ue(this,a,this.g,this.T);this.B=!1};
49
+ function ue(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.v;a=a.j)a.v=!1;if(b.g)b.g.j=null,ye(b,c,d);else try{b.j?b.l.call(b.context):ye(b,c,d)}catch(e){ze.call(null,e)}Xd(le,b)}function ye(a,b,c){b==2?a.l.call(a.context,c):a.h&&a.h.call(a.context,c)}function xe(a,b){a.v=!0;ge(function(){a.v&&ze.call(null,b)})}var ze=ja;function T(a){ia.call(this,a)}ha(T,ia);T.prototype.name="cancel";function oe(a,b,c){this.promise=a;this.resolve=b;this.reject=c};let Ae=1,Be=new WeakMap;function Ce(a,b,c){var d=De;a.h.has(b);d(b,c)}var Fe=class extends P{constructor(){super();this.h=new Set}signal(){const a=new Ee;this.h.add(a);gd(this,ea(fd,a));return a}};function De(a,b){return new Promise(c=>{Ge(()=>{a.L&&(a.ea=b,a.P=!0);for(const {I:d,slot:e}of a.o.values())try{e(b,{signal:a,I:d})}catch(f){ja(f)}for(const d of a.A)d.resolve(b);a.A.clear();c()})})}function jd(a,b,c){const d=Ae++;Ge(()=>{He(a,d,b,c)});return d}
50
+ function He(a,b,c,d){if(!a.s)if(d){if(!d.s){const e=()=>{Ge(()=>{a.o.delete(b);const f=Be.get(d);f&&ua(f,e)})};a.o.set(b,{I:b,slot:c,F:e});Ie(d,e)}}else a.o.set(b,{I:b,slot:c,F:()=>a.o.delete(b)})}
51
+ var Ee=class extends P{constructor(){super();this.L=!1;this.o=new Map;this.A=new Set;this.P=!1}detach(a){Ge(()=>{const b=this.o.get(a);b&&b.F()})}value(a){return this.promise(!0,a)}next(a){return this.promise(!1,a)}promise(a,b){const c=ne();Ge(()=>{if(this.s)c.reject(new T("Signal initially disposed"));else if(b&&b.s)c.reject(new T("Owner initially disposed"));else if(a&&this.L&&this.P)c.resolve(this.ea);else if(this.A.add(c),qe(c.promise,()=>{this.A.delete(c)}),b){const d=()=>{c.reject(new T("Owner asynchronously disposed"))};
52
+ qe(c.promise,()=>{const e=Be.get(b);e&&ua(e,d)});Ie(b,d)}});return c.promise}G(){super.G();Ge(()=>{for(const {F:a}of this.o.values())a();this.o.clear();for(const a of this.A)a.reject(new T("Signal asynchronously disposed"));this.A.clear()})}};const Je=[];let Ke=!1;function Ge(a){Je.push(a);Le()}async function Le(){if(!Ke)try{Ke=!0;let a=Me(0);for(;a<Je.length;)await Promise.resolve(),a=Me(a)}catch(a){ja(a)}finally{Je.length=0,Ke=!1}}
53
+ function Me(a){const b=a+100;for(;a<b&&a<Je.length;)try{Je[a++]()}catch(c){ja(c)}return a}function Ie(a,b){if(a.s)b();else{var c=Be.get(a);if(c)c.push(b);else{const d=[b];Be.set(a,d);gd(a,()=>{for(const e of[...d])e();Be.delete(a)})}}};function U(a){var b=new Od;a=F(b,1,Nd,a);return{content:JSON.stringify(Bb(a))}}const Ne=new Fe;function Oe(a,b){const c=Ne.signal();return{channel:Ud(a,d=>{const e=b(d.data);Ce(Ne,c,{content:e,ka:d})}),signal:c}};let Ub;var V=class extends J{};var W=class extends J{};var Qe=class extends J{h(){return I(this,V,2,Pe)}g(){return Hb(this,V,2,Pe)}j(){return I(this,W,3,Pe)}l(){return Hb(this,W,3,Pe)}},Pe=[2,3];var Re=Wb(class extends J{});var Se=Wb(class extends J{}),Te=[1,2];var Ue=({destination:a,origin:b,ra:c,Y:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=Sd(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return Ud(f.port1,e)};function Ve(a,b,c){const d=new Fe,e=d.signal();a=Ue({destination:window.parent,origin:b,Y:a,onMessage:f=>{const h=Pd(f.data.content);A(h,Nd)===2&&Ce(d,e,{content:Md(h),ka:f,messagePort:f.data.messagePort})}});return new We(e,a,c)}async function kd(a){var b=X;var c=new R;var d=new Fd;c=F(c,19,Q,d);a=await b(a,U(c));let e;return(e=Md(Pd(a.data.content)))==null?void 0:I(e,$c,20,O)}
54
+ async function ld(a){var b=X;var c=new R;var d=new vd;c=F(c,17,Q,d);a=await b(a,U(c));let e;return(e=Md(Pd(a.data.content)))==null?void 0:I(e,Vc,18,O)}async function md(a,b){var c=X,d=new R;b=F(d,8,Q,b);await c(a,U(b))}async function nd(a){var b=X;var c=new R;var d=new Ed;c=F(c,18,Q,d);a=await b(a,U(c));let e;return(e=Md(Pd(a.data.content)))==null?void 0:I(e,Zc,19,O)}async function od(a){var b=X;var c=new R;var d=new ud;c=F(c,11,Q,d);await b(a,U(c))}
55
+ async function pd(a,b){var c=X,d=new R;b=F(d,14,Q,b);await c(a,U(b))}async function qd(a,b){var c=X,d=new R;b=F(d,15,Q,b);await c(a,U(b))}async function Xe(a){await a.h()}
56
+ async function X(a,b){(a=await a.channel.C(b))||N(L,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||N(L,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||N(L,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Pd(b)}catch(d){N(L,"The ControlMessage can't be deserialized."+` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=Md(c))||N(L,"MeetToAddonMessage field on ControlMessage is falsy."+
57
+ ` ${JSON.stringify(b)}`);b=b==null?void 0:I(b,fc,10,O);if((b==null?void 0:H(b,1))!==void 0)throw new K(Jc(H(b,1)));return a}async function Ye(a,b,c){var d=X,e=new R;b=F(e,1,Q,b);d=await d(a,U(b));a=d.data.messagePort;var f;(d=(f=Md(Pd(d.data.content)))==null?void 0:I(f,dc,1,O))!=null?f=d:(f=new dc,f=B(f,1,v(0),0));return{channel:a?Oe(a,c):void 0,response:f}}async function Ze(a){const b=xd(),{channel:c,response:d}=await Ye(a,b,e=>Se(e));if(!c)throw new K(Kc(d));return c}
58
+ async function $e(a){var b=X;var c=new R;var d=new Kd;c=F(c,5,Q,d);await b(a,U(c))}async function af(a){var b=X;var c=new R;var d=new Dd;c=F(c,6,Q,d);await b(a,U(c))}async function bf(a,b,c){var d=X,e=new R,f=new Gd;b=B(f,1,v(b),0);c=B(b,2,x(c),"");e=F(e,7,Q,c);await d(a,U(e))}async function cf(a,b){var c=X,d=new R;b=F(d,16,Q,b);await c(a,U(b))}
59
+ class We extends P{constructor(a,b,c){super();this.U=a;this.channel=b;this.h=bc(async()=>{var d=this.channel,e=d.C;var f=new R;var h=new Hd;f=F(f,13,Q,h);await e.call(d,U(f))});a=Tb();sb(y(a,1));sb(y(a,2));sb(y(a,3));c=Ld(new R,Cd(Ad(a),c));this.channel.send(U(c));jd(this.U,async d=>{switch(A(d.content,O)){case 16:await Xe(this)}})}};let df;var ef=class{constructor(a){var b=df;this.h=a;this.g=b}delete(){throw Error("Not implemented.");}};var gf=class extends J{h(){return I(this,V,2,ff)}g(){return Hb(this,V,2,ff)}j(){return I(this,W,3,ff)}l(){return Hb(this,W,3,ff)}},ff=[2,3];var hf=class extends J{};var jf=class extends J{};var kf=class extends J{};var mf=class extends J{h(){return I(this,V,2,lf)}g(){return Hb(this,V,2,lf)}j(){return I(this,W,3,lf)}l(){return Hb(this,W,3,lf)}},lf=[2,3],nf=[5,6];var of=class extends J{};var pf=class extends J{},qf=[1,2,3];var rf=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var sf=class{constructor(a){this.config=a}start(){this.g!=null||(this.g=setInterval(()=>{this.config.ha()},this.config.da));return this}shutdown(){clearInterval(this.g)}};function tf(){const a=new Map,b={set(c,d){a.set(c,d);return b},D:()=>a};return b};function uf(a){if(a.g()){a=a.h().m;var b=a[p]|0;var c=Fb(a,b,1),d=Ra(c,!0);d!=null&&d!==c&&z(a,b,1,d);a=d;b=a==null?Ba():a;a=Uint8Array;Ea(Aa);c=b.g;if(c!=null&&!za(c))if(typeof c==="string"){wa.test(c)&&(c=c.replace(wa,ya));c=atob(c);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 vf(a,b){b=wf(b);F(a,2,lf,b);return a}function xf(a,b){b=wf(b);F(a,2,ff,b);return a}
60
+ function wf(a){var b=new V;return B(b,1,Ra(a.bytes,!1),Ba())}function yf(a){if(a.l()){a=a.j();var b,c,d=G(a,1),e=(c=(b=Mb(a,Xb,2))==null?void 0:Sb(b))!=null?c:0;c=a.m;let f=c[p]|0;const h=Fb(c,f,4);b=h==null||typeof h==="number"?h:h==="NaN"||h==="Infinity"||h==="-Infinity"?Number(h):void 0;b!=null&&b!==h&&z(c,f,4,b);return{mediaId:d,mediaPlayoutPosition:e,mediaPlayoutRate:b!=null?b:0,playbackState:zf.get(H(a,3))}}}function Af(a,b){b=Bf(b);F(a,3,lf,b);return a}
61
+ function Cf(a,b){b=Bf(b);F(a,3,ff,b);return a}const zf=tf().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").D(),Df=tf().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).D();
62
+ function Bf(a){var b=new W;b=B(b,1,x(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=B(b,4,c,0);c=new Xb;c=B(c,1,tb(a.mediaPlayoutPosition),"0");b=Nb(b,2,c);a=Df.get(a.playbackState);return B(b,3,v(a),0)}function Ef({activityTitle:a}){var b=new kf;return Gb(b,4,x(a))}function Ff(a,b){var c=new jf;b=B(c,1,v(b.u),0);F(a,6,nf,b);return a}function Gf(a){var b=new hf;F(a,5,nf,b);return a};const Hf=tf().set("co-doing",1).set("co-watching",2).D();async function If(a,b,c){var d=b.C,e=new pf;var f=new of;f=B(f,1,x(a.activityTitle),"");var h=Hf.get(a.K);f=B(f,2,v(h),0);e=F(e,3,qf,f);d=await d.call(b,e,Re);let g;if((g=Rb(d))!=null&&g)return new Jf(a,b,c,Mb(d,Qe,2));throw new rf;}function Kf(a,b){const c=a.config.N(b);c&&!a.config.M(a.g,c)&&(a.g=c,a.j=Sb(b),a.v(a.g))}function Y(a,b){const {state:c,fa:d,context:e}=b(a.g);a.g=c;a.notify(a.g,e,d)}
63
+ class Jf{constructor(a,b,c,d){this.l=a;this.h=b;this.config=c;this.v=Yb(e=>void this.l.O(e));Lf(this.h,e=>{const f=A(e,Te);switch(f){case 1:Kf(this,I(e,Qe,1,Te));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.B=(new sf({da:1E3,ha:()=>{var e,f,h=(f=(e=this.l).ja)==null?void 0:f.call(e);if(this.g!==null){this.g={...this.g,...h};e=new pf;f=this.config;h=f.W;var g=new gf;g=B(g,1,tb(this.j),"0");f=h.call(f,g,this.g);
64
+ e=F(e,1,qf,f);this.h.send(e)}}})).start();this.g=null;this.j=0;d&&Kf(this,d)}disconnect(){this.h.shutdown();this.B.shutdown()}notify(a,b,c){var d=c?Ef(c):void 0;c=this.config;var e=c.X;var f=new mf;f=B(f,1,tb(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 pf;a=F(e,2,qf,a);c.call(b,a)}};var Mf=class{constructor(a){this.g=a}broadcastStateUpdate(a){Y(this.g,()=>({state:a,context:{}}))}disconnect(){this.g.disconnect()}};function Nf(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Of=class{constructor(a){this.g=a}notifySwitchedToMedia(a,b,c){Y(this.g,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},fa:{activityTitle:a},context:{u: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:{u:3}}})}notifySeekToTimestamp(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
65
+ context:{u:2}}})}notifyPlayoutRate(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutRate:a},context:{u:4}}})}notifyBuffering(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a,playbackState:"BUFFERING"},context:{u:3}}})}notifyReady(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},context:{u:3}}})}disconnect(){this.g.disconnect()}};
66
+ function Pf(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 Lf(a,b){const c=jd(a.signal,d=>{b(d)});a.o.push(c)}var Qf=class{constructor(a,b){this.channel=a;this.signal=b;this.o=[]}send(a){this.channel.send(JSON.stringify(Bb(a)))}async C(a,b){a=await this.channel.C(JSON.stringify(Bb(a)));return b(a.data)}shutdown(){this.o.forEach(a=>{this.signal.detach(a)})}};function Rf(a,b){var c=Sf;const d=a.signal(),e=a.signal();jd(b,f=>{const h=c(f)?d:e;Ce(a,h,f)},a);return{ia:d,ga:e}}function Tf(a,b,c,d=e=>e){jd(c,e=>{Ce(a,b,d(e))},a)};async function Uf(a,b){if(b)return a=await If({activityTitle:b.activityTitle,K:"co-watching",ja:()=>b.onCoWatchingStateQuery(),O:c=>{b.onCoWatchingStateChanged(c)}},a,{X:Af,W:Cf,V:Ff,N:yf,M:Pf}),new Of(a)}async function Vf(a,b){if(b)return a=await If({activityTitle:b.activityTitle,K:"co-doing",O:c=>{b.onCoDoingStateChanged(c)}},a,{X:vf,W:xf,V:Gf,N:uf,M:Nf}),new Mf(a)}
67
+ async function Wf(a){const b=new Fe,c=b.signal();a=await a;Tf(b,c,a.signal,f=>f.content);const {ia:d,ga:e}=Rf(b,c);return{Z:new Qf(a.channel,d),aa:new Qf(a.channel,e)}}function Sf(a){a:switch(A(a,Te)){case 1:a=I(a,Qe,1,Te);break a;default:throw Error("CA Message arrived with no known content message set");}return a.g()};async function Xf(a,b){({Z:a}=await Wf(Ze(a.g)));b=await Vf(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function Yf(a,b){({aa:a}=await Wf(Ze(a.g)));b=await Uf(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var Zf=class extends rd{async notifySidePanel(a){await bf(this.context.g,1,a)}async unloadSidePanel(){await $e(this.context.g)}async loadSidePanel(){await af(this.context.g)}};var $f=class extends rd{async setAddonStartingState(a){if(a===null)throw new K(tc("addonStartingState"));if(typeof a!=="object")throw new K(M("addonStartingState",typeof a,"object | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new K(M("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!=="string")throw new K(M("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.sidePanelUrl+
68
+ +!!a.additionalData)throw new K(sc);if(Object.keys(a).length===0)throw new K(rc);var b=[];b.push(Qc(Pc(Nc(1),a.sidePanelUrl),a.additionalData));a=this.context.g;var c=new Jd,d=c.setAddonStartingState,e=new Id;b=Ob(e,b);await cf(a,d.call(c,b))}};var ag=class extends rd{async notifyMainStage(a){await bf(this.context.g,2,a)}};var bg=class{constructor(a){a=a.cloudProjectNumber;const b=td();if(b.cloudProjectNumber!==a)throw new K(mc);const c=b.S,d=b.ba;let e;df=(e=df)!=null?e:Ve(d,c,a);this.g=new ef(b)}async createMainStageClient(){var a=this.g;if(a.h.frameType!==2)throw new K(hc);return await Promise.resolve(new Zf(a))}async createSidePanelClient(){var a=this.g;if(a.h.frameType!==1)throw new K(ic);return await Promise.resolve(new ag(a))}async createCoWatchingClient(a){return await Yf(this.g,a)}async createCoDoingClient(a){return await Xf(this.g,
69
+ a)}async createRoomsStandaloneClient(){var a=this.g;if(a.h.frameType!==2)throw new K(hc);return await Promise.resolve(new $f(a))}};let cg=null;for(var dg={addon:{getFrameType:function(){a:{var a=td().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 K(tc("config"));if(typeof a!=="object")throw new K(M("config",typeof a,"object"));if(typeof a.cloudProjectNumber!=="string")throw new K(M("cloudProjectNumber",typeof a.cloudProjectNumber,"string"));if(cg&&td().S!=="integration.test.google.com")throw new K(Dc);
70
+ return cg=new bg(a)}}},eg=["meet"],Z=l,fg;eg.length&&(fg=eg.shift());)eg.length||dg===void 0?Z[fg]&&Z[fg]!==Object.prototype[fg]?Z=Z[fg]:Z=Z[fg]={}:Z[fg]=dg;}).apply(topLevel);export const meet = topLevel.meet;
@@ -3,20 +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 p=this||self;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.j(a.message,a.o);}
7
- var ba={message:"cloudProjectNumber was not defined.",o:"Ensure that cloudProjectNumber is provided in the call to exposeToMeetWhenScreensharing.",j:v},ca={message:"additionalData was defined, but startActivityOnOpen was not true.",o:"Ensure that startActivityOnOpen is set to true if additionalData is provided in the call to exposeToMeetWhenScreensharing.",j:v},da={message:"Received an incorrect value for startActivityOnOpen.",o:"Ensure that startActivityOnOpen is set to true if a mainStageUrl is provided in the call to exposeToMeetWhenScreensharing.",
8
- j:v};let ea;function fa(a){p.setTimeout(()=>{throw a;},0)};var x,y;a:{for(var ha=["CLOSURE_FLAGS"],z=p,A=0;A<ha.length;A++)if(z=z[ha[A]],z==null){y=null;break a}y=z}var ia=y&&y[610401301];x=ia!=null?ia:!1;var B;const ja=p.navigator;B=ja?ja.userAgentData||null:null;function C(a){return x?B?B.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function D(a){var b;a:{if(b=p.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function E(){return x?!!B&&B.brands.length>0:!1}function F(){return E()?C("Chromium"):(D("Chrome")||D("CriOS"))&&!(E()?0:D("Edge"))||D("Silk")};!D("Android")||F();F();D("Safari")&&(F()||(E()?0:D("Coast"))||(E()?0:D("Opera"))||(E()?0:D("Edge"))||(E()?C("Microsoft Edge"):D("Edg/"))||E()&&C("Opera"));var ka={},G=null;var la={};function ma(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let na=void 0;function oa(a){if(a!=null){var b;var c=(b=na)!=null?b:na={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),ma(a,"incident"),fa(a))}};function H(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var pa=H(),qa=H(),ra=H();const I=H("jas",!0);var sa={};function J(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}var K;const ta=[];ta[I]=55;K=Object.freeze(ta);function L(a){if(a&2)throw Error();}function ua(a){const b=aa(pa);return b?a[b]:void 0}function va(a,b,c){const e=b&512?0:-1,d=a.length;b=b&64?b&256:!!d&&J(a[d-1]);const f=d+(b?-1:0);for(let g=0;g<f;g++)c(g-e,a[g]);if(b){a=a[d-1];for(const g in a)!isNaN(g)&&c(+g,a[g])}};var M=typeof p.BigInt==="function"&&typeof p.BigInt(0)==="bigint";const wa=Number.MIN_SAFE_INTEGER.toString(),xa=M?BigInt(Number.MIN_SAFE_INTEGER):void 0,ya=Number.MAX_SAFE_INTEGER.toString(),za=M?BigInt(Number.MAX_SAFE_INTEGER):void 0;function Aa(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 Ba=Number.isFinite;function Ca(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Ba(a)?a|0:void 0}function N(a){if(a!=null&&typeof a!=="string")throw Error();return a};function Da(a){return a};function Ea(a,b,c,e){if(Array.isArray(a)){const f=a[I]|0;if(a.length===0&&f&1)return;if(e&&f&2)return a;var d;if(d=e&&c)d=f===0||!!(f&32)&&!(f&64||!(f&16));return d?(a[I]|=34,f&4&&Object.freeze(a),a):Fa(a,f,b,c!==void 0,e)}return b(a)}
9
- function Fa(a,b,c,e,d){const f=e?!!(b&32):void 0;e=[];var g=a.length;let h,k,n,m=!1;if(b&64){if(b&256?(g--,h=a[g],k=g):(k=4294967295,h=void 0),!(d||b&512)){m=!0;var q;n=((q=Ga)!=null?q:Da)(h?k- -1:b>>14&1023||536870912,-1,a,h);k=n+-1}}else k=4294967295,b&1||(h=g&&a[g-1],J(h)?(g--,k=g,n=0):h=void 0);q=void 0;for(let r=0;r<g;r++){let t=a[r];if(t!=null&&(t=Ea(t,c,f,d))!=null)if(r>=k){var l=void 0;((l=q)!=null?l:q={})[r- -1]=t}else e[r]=t}if(h)for(let r in h)if(l=h[r],l!=null&&(l=Ea(l,c,f,d))!=null)if(g=
10
- +r,g<n)e[g+-1]=l;else{let t;((t=q)!=null?t:q={})[r]=l}q&&(m?e.push(q):e[k]=q);if(d){var u;c=b&64?(u=n)!=null?u:b>>14&1023||536870912:void 0;u=34;q!=null&&(u|=256);c!==void 0&&(u=u&-16760833|(c&1023)<<14);e[I]=b&577|u;(a=ua(a))&&(e[pa]=Array.prototype.slice.call(a))}return e}
11
- function Ha(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return(M?a>=xa&&a<=za:a[0]==="-"?Aa(a,wa):Aa(a,ya))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(a.v===sa)return Ia(a);if(a!=null&&a instanceof Uint8Array){a!=null&&a instanceof Uint8Array&&oa(ra);let b="",c=0;const e=a.length-10240;for(;c<e;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}return}return a}let Ga;
12
- function Ia(a){a=a.i;return Fa(a,a[I]|0,Ha,void 0,!1)};let Ja,Ka;function La(a){switch(typeof a){case "boolean":return Ja||(Ja=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Ka||(Ka=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}function Ma(a,b,c){a=Na(a,b[0],b[1],c?1:2);b!==Ja&&c&&(a[I]|=8192);return a}
13
- function Na(a,b,c,e){if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=a[I]|0;8192&d||!(64&d)||2&d||Oa();if(d&1024)throw Error("farr");if(d&64)return a;e===1||e===2||(d|=64);if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var f=c.length;if(f){var g=f-1;e=c[g];if(J(e)){d|=256;b=d&512?0:-1;g-=b;if(g>=1024)throw Error("pvtlmt");for(var h in e)if(f=+h,f<g)c[f+b]=e[h],delete e[h];else break;d=d&-16760833|(g&1023)<<14;break a}}if(b){h=
14
- Math.max(b,f-(d&512?0:-1));if(h>1024)throw Error("spvt");d=d&-16760833|(h&1023)<<14}}}a[I]=d;return a}function Oa(){oa(qa)};function O(a,b,c){const e=a.i;let d=e[I]|0;L(d);P(e,d,b,c);return a}function P(a,b,c,e){const d=b&512?0:-1,f=c+d;var g=a.length-1;if(f>=g&&b&256)return a[g][c]=e,b;if(f<=g)return a[f]=e,b;e!==void 0&&(g=b>>14&1023||536870912,c>=g?e!=null&&(a[g+d]={[c]:e},b|=256,a[I]=b):a[f]=e);return b}function Q(a,b,c,e){const d=a.i;let f=d[I]|0;L(f);P(d,f,b,(e==="0"?Number(c)===0:c===e)?void 0:c);return a}function Pa(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025}function Qa(a,b){32&b||(a&=-33);return a};var R=class{constructor(a){this.i=Na(a)}toJSON(){try{var a=Ia(this)}finally{Ga=void 0}return a}};R.prototype.v=sa;R.prototype.toString=function(){return this.i.toString()};function S(a,b){for(;b>127;)a.g.push(b&127|128),b>>>=7;a.g.push(b)}var Ra=class{constructor(){this.g=[]}length(){return this.g.length}end(){const a=this.g;this.g=[];return a}};function T(a,b){b.length!==0&&(a.l.push(b),a.h+=b.length)}function Sa(a,b){S(a.g,b*8+2);b=a.g.end();T(a,b);b.push(a.h);return b}function Ta(a,b){var c=b.pop();for(c=a.h+a.g.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.h++;b.push(c);a.h++}function Ua(a,b){T(a,a.g.end());for(let c=0;c<b.length;c++)T(a,b[c].g(la)||new Uint8Array(0))}var Va=class{constructor(){this.l=[];this.h=0;this.g=new Ra}};function U(){const a=class{constructor(){throw Error();}};Object.setPrototypeOf(a,a.prototype);return a}var V=U(),Wa=U();var W=class{constructor(a,b){this.g=a;a=aa(V);this.h=!!a&&b===a||!1}};function Xa(a,b,c,e,d){b=Ya(b,e);b!=null&&(c=Sa(a,c),d(b,a),Ta(a,c))}const Za=new W(Xa,V),$a=new W(Xa,V);var ab=Symbol(),bb=Symbol();let cb,db;
15
- function X(a){var b=eb,c=fb,e=a[ab];if(e)return e;e={};e.B=a;e.m=La(a[0]);var d=a[1];let f=1;d&&d.constructor===Object&&(e.s=d,d=a[++f],typeof d==="function"&&(e.u=!0,cb!=null||(cb=d),db!=null||(db=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 m;var k=void 0;d instanceof W?m=d:(m=Za,f--);let q;if((q=m)==null?0:q.h){d=a[++f];k=a;var n=f;typeof d===
16
- "function"&&(d=d(),k[n]=d);k=d}d=a[++f];n=h+1;typeof d==="number"&&d<0&&(n-=d,d=a[++f]);for(;h<n;h++){const l=g[h];k?c(e,h,m,k,l):b(e,h,m,l)}}return a[ab]=e}function Ya(a,b){if(a instanceof R)return a.i;if(Array.isArray(a))return Ma(a,b,!1)};function eb(a,b,c){a[b]=c.g}function fb(a,b,c,e){let d,f;const g=c.g;a[b]=(h,k,n)=>g(h,k,n,f||(f=X(e).m),d||(d=gb(e)))}function gb(a){let b=a[bb];if(!b){const c=X(a);b=(e,d)=>hb(e,d,c);a[bb]=b}return b}function hb(a,b,c){va(a,a[I]|0|(c.m[1]?512:0),(e,d)=>{if(d!=null){var f=ib(c,e);f&&f(b,d,e)}});(a=ua(a))&&Ua(b,a)}
17
- function ib(a,b){var c=a[b];if(c)return c;if(c=a.s)if(c=c[b]){c=Array.isArray(c)?c[0]instanceof W?c:[$a,c]:[c,void 0];var e=c[0].g;if(c=c[1]){const d=gb(c),f=X(c).m;c=a.u?db(f,d):(g,h,k)=>e(g,h,k,f,d)}else c=e;return a[b]=c}};function jb(a,b,c){b=b==null||typeof b==="string"?b:void 0;b!=null&&(b=(ea||(ea=new TextEncoder)).encode(b),S(a.g,c*8+2),S(a.g,b.length),T(a,a.g.end()),T(a,b))};function kb(a){var b=new lb;if(a!=null){if(!Ba(a))throw b=Error("enum"),ma(b,"warning"),b;a|=0}return Q(b,1,a,0)}var lb=class extends R{};var mb=class extends R{};var nb=class extends R{};nb.prototype.g=function(a){return function(){const b=new Va;hb(this.i,b,X(a));T(b,b.g.end());const c=new Uint8Array(b.h),e=b.l,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.l=[c];return c}}([0,new W(jb,Wa),-1,[0,function(a,b,c=V){return new W(b,c)}(function(a,b,c,e,d){if(a.g()!==2)return!1;var f=a.h;e=Ma(void 0,e,!0);var g=b[I]|0;L(g);if(c===-1)var h=null;else{h=c+(g&512?0:-1);var k=b.length-1;h=h>=k&&g&256?b[k][c]:h<=k?b[h]:void 0}h=Array.isArray(h)?h:K;const n=h!==
18
- K;if(64&g||!(8192&g)||!n){let m=k=n?h[I]|0:0;if(!n||2&m||2&m&&4&m||1024&m||4&m&&!(32&m))h=Array.prototype.slice.call(h),m=Pa(m,g),g=P(b,g,c,h);b=m;b===0&&(b=Pa(b,g));m=Qa((b|1)&-29,g);m!==k&&(h[I]=m)}h.push(e);f.call(a,e,d);return!0},function(a,b,c,e,d){if(Array.isArray(b))for(let n=0;n<b.length;n++){var f=a,g=c,h=d,k=Ya(b[n],e);k!=null&&(g=Sa(f,g),h(k,f),Ta(f,g))}}),[0,new W(function(a,b,c){b=Ca(b);if(b!=null)if(b=parseInt(b,10),S(a.g,c*8),a=a.g,c=b,c>=0)S(a,c);else{for(b=0;b<9;b++)a.g.push(c&127|
19
- 128),c>>=7;a.g.push(1)}},U()),new W(jb,Wa),-1]],new W(function(a,b,c){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(S(a.g,c*8),a.g.g.push(b?1:0))},U())]);function ob(){let a,b;const c=(b=(a=(new URL(pb||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?qb:c}let pb="";const qb=["https://meet.google.com"];for(var rb={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 nb;c=O(g,2,N(c));b&&O(c,1,N(b));b=[];e&&!a&&w(ca);d&&!a&&w(da);if(f){g=b.push;var h=kb(1);f=Q(h,2,N(f),"");f=Q(f,3,N(e),"");g.call(b,f)}d&&(f=b.push,g=kb(2),d=Q(g,2,N(d),""),e=Q(d,3,N(e),""),f.call(b,e));{e=new mb;d=b;const u=e.i;let r=u[I]|0;L(r);if(d==null)P(u,r,1);else{f=b=d[I]|0;h=(g=!!(2&b)&&!!(4&b)||!!(1024&b))||
20
- Object.isFrozen(d);var k=!0,n=!0;for(let t=0;t<d.length;t++){var m=d[t];g||(m=!!((m.i[I]|0)&2),k&&(k=!m),n&&(n=m))}g||(b=k?13:5,b=n?b|16:b&-17);h&&b===f||(d=Array.prototype.slice.call(d),f=0,b=Pa(b,r),b=Qa(b,r));b!==f&&(d[I]=b);P(u,r,1,d)}}e==null&&(e=void 0);e=O(c,3,e);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(e,4,a);a=c.g();var l;l===void 0&&(l=0);if(!G)for(G={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
21
- e=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++)for(b=c.concat(e[d].split("")),ka[d]=b,f=0;f<b.length;f++)g=b[f],G[g]===void 0&&(G[g]=f);l=ka[l];c=Array(Math.floor(a.length/3));e=l[64]||"";for(d=b=0;b<a.length-2;b+=3)h=a[b],k=a[b+1],g=a[b+2],f=l[h>>2],h=l[(h&3)<<4|k>>4],k=l[(k&15)<<2|g>>6],g=l[g&63],c[d++]=f+h+k+g;f=0;g=e;switch(a.length-b){case 2:f=a[b+1],g=l[(f&15)<<2]||e;case 1:a=a[b],c[d]=l[a>>2]+l[(a&3)<<4|f>>4]+g+e}a=c.join("");l=window;l.top===l.self&&(a={handle:a,permittedOrigins:ob(),exposeOrigin:!0},
22
- (q=l.navigator.mediaDevices)==null||q.setCaptureHandleConfig(a))}},sb=["meet","addon","screensharing"],Y=p,Z;sb.length&&(Z=sb.shift());)sb.length||rb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=rb;}).apply(topLevel);export const meet = topLevel.meet;
6
+ var p=this||self;function aa(a){return a};var r=class extends Error{constructor(a,b){super(`Meet Addon Screenshare Info error: ${`${a}${b?` - ${b}`:""}`}`)}};function t(a){throw new a.j(a.message,a.o);}
7
+ var ba={message:"cloudProjectNumber was not defined.",o:"Ensure that cloudProjectNumber is provided in the call to exposeToMeetWhenScreensharing.",j:r},da={message:"additionalData was defined, but startActivityOnOpen was not true.",o:"Ensure that startActivityOnOpen is set to true if additionalData is provided in the call to exposeToMeetWhenScreensharing.",j:r},ea={message:"Received an incorrect value for startActivityOnOpen.",o:"Ensure that startActivityOnOpen is set to true if a mainStageUrl is provided in the call to exposeToMeetWhenScreensharing.",
8
+ j:r};let fa;function ha(a){p.setTimeout(()=>{throw a;},0)};var u,v;a:{for(var ia=["CLOSURE_FLAGS"],w=p,x=0;x<ia.length;x++)if(w=w[ia[x]],w==null){v=null;break a}v=w}var ja=v&&v[610401301];u=ja!=null?ja:!1;var y;const ka=p.navigator;y=ka?ka.userAgentData||null:null;function A(a){return u?y?y.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function B(a){var b;a:{if(b=p.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function C(){return u?!!y&&y.brands.length>0:!1}function D(){return C()?A("Chromium"):(B("Chrome")||B("CriOS"))&&!(C()?0:B("Edge"))||B("Silk")};!B("Android")||D();D();B("Safari")&&(D()||(C()?0:B("Coast"))||(C()?0:B("Opera"))||(C()?0:B("Edge"))||(C()?A("Microsoft Edge"):B("Edg/"))||C()&&A("Opera"));var la={},E=null;function ma(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let na=void 0;function oa(a){if(a!=null){var b;var c=(b=na)!=null?b:na={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),ma(a,"incident"),ha(a))}};function G(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var pa=G(),qa=G();const H=G("jas",!0);var ra={};function I(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}var J;const sa=[];sa[H]=55;J=Object.freeze(sa);function K(a){if(a&2)throw Error();}function ta(a,b,c){const e=b&512?0:-1,d=a.length;b=b&64?b&256:!!d&&I(a[d-1]);const f=d+(b?-1:0);for(let g=0;g<f;g++)c(g-e,a[g]);if(b){a=a[d-1];for(const g in a)!isNaN(g)&&c(+g,a[g])}};var L=typeof p.BigInt==="function"&&typeof p.BigInt(0)==="bigint";const ua=Number.MIN_SAFE_INTEGER.toString(),va=L?BigInt(Number.MIN_SAFE_INTEGER):void 0,wa=Number.MAX_SAFE_INTEGER.toString(),xa=L?BigInt(Number.MAX_SAFE_INTEGER):void 0;function ya(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 za=Number.isFinite;function Aa(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return za(a)?a|0:void 0}function M(a){if(a!=null&&typeof a!=="string")throw Error();return a};function Ba(a){return a};function Ca(a,b,c){var e=Da;c=c?!!(b&32):void 0;const d=[];let f=a.length,g,h,l,n=!1;if(b&64){if(b&256?(f--,g=a[f],h=f):(h=4294967295,g=void 0),!(b&512)){n=!0;var k;l=((k=Ea)!=null?k:Ba)(g?h- -1:b>>14&1023||536870912,-1,a,g);h=l+-1}}else h=4294967295,b&1||(g=f&&a[f-1],I(g)?(f--,h=f,l=0):g=void 0);b=void 0;for(k=0;k<f;k++){let m=a[k];if(m!=null&&(m=e(m,c))!=null)if(k>=h){var q=void 0;((q=b)!=null?q:b={})[k- -1]=m}else d[k]=m}if(g)for(let m in g)if(a=g[m],a!=null&&(a=e(a,c))!=null)if(q=+m,q<l)d[q+-1]=
9
+ a;else{let z;((z=b)!=null?z:b={})[m]=a}b&&(n?d.push(b):d[h]=b);return d}
10
+ function Da(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return(L?a>=va&&a<=xa:a[0]==="-"?ya(a,ua):ya(a,wa))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[H]|0;return a.length===0&&b&1?void 0:Ca(a,b,!1)}if(a.v===ra)return Fa(a);if(a!=null&&a instanceof Uint8Array){a!=null&&a instanceof Uint8Array&&oa(qa);b="";let c=0;const e=a.length-10240;for(;c<e;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,
11
+ c?a.subarray(c):a);return btoa(b)}return}return a}let Ea;function Fa(a){a=a.i;return Ca(a,a[H]|0)};let N,Ga;function Ha(a){switch(typeof a){case "boolean":return N||(N=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Ga||(Ga=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}function Ia(a,b,c){a=Ja(a,b[0],b[1],c?1:2);b!==N&&c&&(a[H]|=8192);return a}
12
+ function Ja(a,b,c,e){if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=a[H]|0;8192&d||!(64&d)||2&d||Ka();if(d&1024)throw Error("farr");if(d&64)return a;e===1||e===2||(d|=64);if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var f=c.length;if(f){var g=f-1;e=c[g];if(I(e)){d|=256;b=d&512?0:-1;g-=b;if(g>=1024)throw Error("pvtlmt");for(var h in e)if(f=+h,f<g)c[f+b]=e[h],delete e[h];else break;d=d&-16760833|(g&1023)<<14;break a}}if(b){h=
13
+ Math.max(b,f-(d&512?0:-1));if(h>1024)throw Error("spvt");d=d&-16760833|(h&1023)<<14}}}a[H]=d;return a}function Ka(){oa(pa)};function O(a,b,c){const e=a.i;let d=e[H]|0;K(d);P(e,d,b,c);return a}function P(a,b,c,e){const d=b&512?0:-1,f=c+d;var g=a.length-1;if(f>=g&&b&256)return a[g][c]=e,b;if(f<=g)return a[f]=e,b;e!==void 0&&(g=b>>14&1023||536870912,c>=g?e!=null&&(a[g+d]={[c]:e},b|=256,a[H]=b):a[f]=e);return b}function Q(a,b,c,e){const d=a.i;let f=d[H]|0;K(f);P(d,f,b,(e==="0"?Number(c)===0:c===e)?void 0:c);return a}function La(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025}function Ma(a,b){32&b||(a&=-33);return a};var R=class{constructor(a){this.i=Ja(a)}toJSON(){var a=Fa(this);return a}};R.prototype.v=ra;R.prototype.toString=function(){return this.i.toString()};function S(a,b){for(;b>127;)a.g.push(b&127|128),b>>>=7;a.g.push(b)}var Na=class{constructor(){this.g=[]}length(){return this.g.length}end(){const a=this.g;this.g=[];return a}};function T(a,b){b.length!==0&&(a.l.push(b),a.h+=b.length)}function Oa(a,b){S(a.g,b*8+2);b=a.g.end();T(a,b);b.push(a.h);return b}function Pa(a,b){var c=b.pop();for(c=a.h+a.g.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.h++;b.push(c);a.h++}var Qa=class{constructor(){this.l=[];this.h=0;this.g=new Na}};function U(){const a=class{constructor(){throw Error();}};Object.setPrototypeOf(a,a.prototype);return a}var V=U(),Ra=U();var W=class{constructor(a,b){this.g=a;a=aa(V);this.h=!!a&&b===a||!1}};function Sa(a,b,c,e,d){b=Ta(b,e);b!=null&&(c=Oa(a,c),d(b,a),Pa(a,c))}const Ua=new W(Sa,V),Va=new W(Sa,V);var Wa=Symbol(),Xa=Symbol();let Ya,Za;
14
+ function X(a){var b=$a,c=ab,e=a[Wa];if(e)return e;e={};e.B=a;e.m=Ha(a[0]);var d=a[1];let f=1;d&&d.constructor===Object&&(e.s=d,d=a[++f],typeof d==="function"&&(e.u=!0,Ya!=null||(Ya=d),Za!=null||(Za=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 k;var l=void 0;d instanceof W?k=d:(k=Ua,f--);let q;if((q=k)==null?0:q.h){d=a[++f];l=a;var n=f;typeof d===
15
+ "function"&&(d=d(),l[n]=d);l=d}d=a[++f];n=h+1;typeof d==="number"&&d<0&&(n-=d,d=a[++f]);for(;h<n;h++){const m=g[h];l?c(e,h,k,l,m):b(e,h,k,m)}}return a[Wa]=e}function Ta(a,b){if(a instanceof R)return a.i;if(Array.isArray(a))return Ia(a,b,!1)};function $a(a,b,c){a[b]=c.g}function ab(a,b,c,e){let d,f;const g=c.g;a[b]=(h,l,n)=>g(h,l,n,f||(f=X(e).m),d||(d=bb(e)))}function bb(a){let b=a[Xa];if(!b){const c=X(a);b=(e,d)=>cb(e,d,c);a[Xa]=b}return b}function cb(a,b,c){ta(a,a[H]|0|(c.m[1]?512:0),(e,d)=>{if(d!=null){var f=db(c,e);f&&f(b,d,e)}})}
16
+ function db(a,b){var c=a[b];if(c)return c;if(c=a.s)if(c=c[b]){c=Array.isArray(c)?c[0]instanceof W?c:[Va,c]:[c,void 0];var e=c[0].g;if(c=c[1]){const d=bb(c),f=X(c).m;c=a.u?Za(f,d):(g,h,l)=>e(g,h,l,f,d)}else c=e;return a[b]=c}};function eb(a,b,c){b=b==null||typeof b==="string"?b:void 0;b!=null&&(b=(fa||(fa=new TextEncoder)).encode(b),S(a.g,c*8+2),S(a.g,b.length),T(a,a.g.end()),T(a,b))};function fb(a){var b=new gb;if(a!=null){if(!za(a))throw b=Error("enum"),ma(b,"warning"),b;a|=0}return Q(b,1,a,0)}var gb=class extends R{};var hb=class extends R{};var ib=class extends R{};ib.prototype.g=function(a){return function(){const b=new Qa;cb(this.i,b,X(a));T(b,b.g.end());const c=new Uint8Array(b.h),e=b.l,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.l=[c];return c}}([0,new W(eb,Ra),-1,[0,function(a,b,c=V){return new W(b,c)}(function(a,b,c,e,d){if(a.g()!==2)return!1;var f=a.h;e=Ia(void 0,e,!0);var g=b[H]|0;K(g);if(c===-1)var h=null;else{h=c+(g&512?0:-1);var l=b.length-1;h=h>=l&&g&256?b[l][c]:h<=l?b[h]:void 0}h=Array.isArray(h)?h:J;const n=h!==
17
+ J;if(64&g||!(8192&g)||!n){let k=l=n?h[H]|0:0;if(!n||2&k||2&k&&4&k||1024&k||4&k&&!(32&k))h=Array.prototype.slice.call(h),k=La(k,g),g=P(b,g,c,h);b=k;b===0&&(b=La(b,g));k=Ma((b|1)&-29,g);k!==l&&(h[H]=k)}h.push(e);f.call(a,e,d);return!0},function(a,b,c,e,d){if(Array.isArray(b))for(let n=0;n<b.length;n++){var f=a,g=c,h=d,l=Ta(b[n],e);l!=null&&(g=Oa(f,g),h(l,f),Pa(f,g))}}),[0,new W(function(a,b,c){b=Aa(b);if(b!=null)if(b=parseInt(b,10),S(a.g,c*8),a=a.g,c=b,c>=0)S(a,c);else{for(b=0;b<9;b++)a.g.push(c&127|
18
+ 128),c>>=7;a.g.push(1)}},U()),new W(eb,Ra),-1]],new W(function(a,b,c){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(S(a.g,c*8),a.g.g.push(b?1:0))},U())]);function jb(){let a,b;const c=(b=(a=(new URL(kb||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?lb:c}let kb="";const lb=["https://meet.google.com"];for(var mb={exposeToMeetWhenScreensharing:function(a){var b=a.A,c=a.cloudProjectNumber,e=a.additionalData,d=a.mainStageUrl,f=a.sidePanelUrl;a=a.startActivityOnOpen;c||t(ba);var g=new ib;c=O(g,2,M(c));b&&O(c,1,M(b));b=[];e&&!a&&t(da);d&&!a&&t(ea);if(f){g=b.push;var h=fb(1);f=Q(h,2,M(f),"");f=Q(f,3,M(e),"");g.call(b,f)}d&&(f=b.push,g=fb(2),d=Q(g,2,M(d),""),e=Q(d,3,M(e),""),f.call(b,e));{e=new hb;d=b;const z=e.i;let F=z[H]|0;K(F);if(d==null)P(z,F,1);else{f=b=d[H]|0;h=(g=!!(2&b)&&!!(4&b)||!!(1024&b))||
19
+ Object.isFrozen(d);var l=!0,n=!0;for(let ca=0;ca<d.length;ca++){var k=d[ca];g||(k=!!((k.i[H]|0)&2),l&&(l=!k),n&&(n=k))}g||(b=l?13:5,b=n?b|16:b&-17);h&&b===f||(d=Array.prototype.slice.call(d),f=0,b=La(b,F),b=Ma(b,F));b!==f&&(d[H]=b);P(z,F,1,d)}}e==null&&(e=void 0);e=O(c,3,e);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(e,4,a);a=c.g();var m;m===void 0&&(m=0);if(!E)for(E={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
20
+ e=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++)for(b=c.concat(e[d].split("")),la[d]=b,f=0;f<b.length;f++)g=b[f],E[g]===void 0&&(E[g]=f);m=la[m];c=Array(Math.floor(a.length/3));e=m[64]||"";for(d=b=0;b<a.length-2;b+=3)h=a[b],l=a[b+1],g=a[b+2],f=m[h>>2],h=m[(h&3)<<4|l>>4],l=m[(l&15)<<2|g>>6],g=m[g&63],c[d++]=f+h+l+g;f=0;g=e;switch(a.length-b){case 2:f=a[b+1],g=m[(f&15)<<2]||e;case 1:a=a[b],c[d]=m[a>>2]+m[(a&3)<<4|f>>4]+g+e}a=c.join("");m=window;m.top===m.self&&(a={handle:a,permittedOrigins:jb(),exposeOrigin:!0},
21
+ (q=m.navigator.mediaDevices)==null||q.setCaptureHandleConfig(a))}},nb=["meet","addon","screensharing"],Y=p,Z;nb.length&&(Z=nb.shift());)nb.length||mb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=mb;}).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-733472194",
4
+ "version": "1.2.0-dev-733885818",
5
5
  "repository": "googleworkspace/meet",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://developers.google.com/meet/add-ons/guides/overview",