PageSourceSearch

https://saibotq-ai-detector-pro.hf.space/static/js/protobuf.Cj15o6C6.js

js saibotq-ai-detector-pro.hf.space collected 2026-10-04 17:19:47 UTC 755,888 bytes, 1 lines download raw bytes

1import{o as e,t}from"./rolldown-runtime.DAXXjFlN.js";Promise.withResolvers===void 0&&(Promise.withResolvers=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return{resolve:e,reject:t,promise:n}});function n(e){let t=document.cookie.match(`\\b${e}=([^;]*)\\b`);return t?t[1]:void 0}function r(){let e=`testData`;try{let{localStorage:t}=window;t.setItem(e,e),t.getItem(e),t.removeItem(e)}catch{return!1}return!0}function i(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.trim().length>0)}function a(e){return typeof structuredClone==`function`?structuredClone(e):JSON.parse(JSON.stringify(e))}function o(e){return Object.freeze(e),Array.isArray(e)?e.forEach(e=>{typeof e==`object`&&e&&!Object.isFrozen(e)&&o(e)}):Object.values(e).forEach(e=>{typeof e==`object`&&e&&!Object.isFrozen(e)&&o(e)}),e}var s=(()=>{let e=window.__streamlit;if(e)return o(a(e))})(),c={get BACKEND_BASE_URL(){return s?.BACKEND_BASE_URL},get HOST_CONFIG_BASE_URL(){return s?.HOST_CONFIG_BASE_URL},get DOWNLOAD_ASSETS_BASE_URL(){return s?.DOWNLOAD_ASSETS_BASE_URL},get MAIN_PAGE_BASE_URL(){return s?.MAIN_PAGE_BASE_URL},get CUSTOM_COMPONENT_CLIENT_ID(){return s?.CUSTOM_COMPONENT_CLIENT_ID},get LIGHT_THEME(){return s?.LIGHT_THEME},get DARK_THEME(){return s?.DARK_THEME},get ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION(){return s?.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION},get HOST_CONFIG(){return s?.HOST_CONFIG}};function l(e){return e!=null}function u(e){return e==null}var d=()=>window.location.hostname===`localhost`||window.location.hostname===`127.0.0.1`,f=t(((e,t)=>{t.exports=n;function n(e,t){for(var n=Array(arguments.length-1),r=0,i=2,a=!0;i<arguments.length;)n[r++]=arguments[i++];return new Promise(function(i,o){n[r]=function(e){if(a)if(a=!1,e)o(e);else{for(var t=Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];i.apply(null,t)}};try{e.apply(t||null,n)}catch(e){a&&(a=!1,o(e))}})}})),p=t((e=>{var t=e;t.length=function(e){var t=e.length;if(!t)return 0;for(;t>0&&e.charAt(t-1)===`=`;)--t;return Math.floor(t*3/4)};for(var n=Array(64),r=Array(123),i=0;i<64;)r[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r[45]=62,r[95]=63,t.encode=function(e,t,r){for(var i=null,a=[],o=0,s=0,c;t<r;){var l=e[t++];switch(s){case 0:a[o++]=n[l>>2],c=(l&3)<<4,s=1;break;case 1:a[o++]=n[c|l>>4],c=(l&15)<<2,s=2;break;case 2:a[o++]=n[c|l>>6],a[o++]=n[l&63],s=0;break}o>8191&&((i||=[]).push(String.fromCharCode.apply(String,a)),o=0)}return s&&(a[o++]=n[c],a[o++]=61,s===1&&(a[o++]=61)),i?(o&&i.push(String.fromCharCode.apply(String,a.slice(0,o))),i.join(``)):String.fromCharCode.apply(String,a.slice(0,o))};var a=`invalid encoding`;t.decode=function(e,t,n){for(var i=n,o=0,s,c=0;c<e.length;){var l=e.charCodeAt(c++);if(l===61&&o>1)break;if((l=r[l])===void 0)throw Error(a);switch(o){case 0:s=l,o=1;break;case 1:t[n++]=s<<2|(l&48)>>4,s=l,o=2;break;case 2:t[n++]=(s&15)<<4|(l&60)>>2,s=l,o=3;break;case 3:t[n++]=(s&3)<<6|l,o=0;break}}if(o===1)throw Error(a);return n-i};var o=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,s=/[-_]/,c=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;t.test=function(e){return o.test(e)||s.test(e)&&c.test(e)}})),m=t(((e,t)=>{t.exports=n;function n(){this._listeners=Object.create(null)}n.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},n.prototype.off=function(e,t){if(e===void 0)this._listeners=Object.create(null);else if(t===void 0)this._listeners[e]=[];else{var n=this._listeners[e];if(!n)return this;for(var r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r}return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}})),h=t(((e,t)=>{t.exports=n(n);function n(e){return typeof Float32Array<`u`?(function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=n[3]===128;function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function a(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}e.writeFloatLE=r?i:a,e.writeFloatBE=r?a:i;function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.readFloatLE=r?o:s,e.readFloatBE=r?s:o})():(function(){function t(e,t,n,r){var i=+(t<0);if(i&&(t=-t),t===0)e(1/t>
10?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var a=Math.floor(Math.log(t)/Math.LN2),o=Math.round(t*2**-a*8388608)&8388607;e((i<<31|a+127<<23|o)>>>0,n,r)}}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i);function n(e,t,n){var r=e(t,n),i=(r>>31)*2+1,a=r>>>23&255,o=r&8388607;return a===255?o?NaN:i*(1/0):a===0?i*1401298464324817e-60*o:i*2**(a-150)*(o+8388608)}e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,o)})(),typeof Float64Array<`u`?(function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=n[7]===128;function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function a(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}e.writeDoubleLE=r?i:a,e.writeDoubleBE=r?a:i;function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.readDoubleLE=r?o:s,e.readDoubleBE=r?s:o})():(function(){function t(e,t,n,r,i,a){var o=+(r<0);if(o&&(r=-r),r===0)e(0,i,a+t),e(1/r>0?0:2147483648,i,a+n);else if(isNaN(r))e(0,i,a+t),e(2146959360,i,a+n);else if(r>17976931348623157e292)e(0,i,a+t),e((o<<31|2146435072)>>>0,i,a+n);else{var s;if(r<22250738585072014e-324)s=r/5e-324,e(s>>>0,i,a+t),e((o<<31|s/4294967296)>>>0,i,a+n);else{var c=Math.floor(Math.log(r)/Math.LN2);c===1024&&(c=1023),s=r*2**-c,e(s*4503599627370496>>>0,i,a+t),e((o<<31|c+1023<<20|s*1048576&1048575)>>>0,i,a+n)}}}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0);function n(e,t,n,r,i){var a=e(r,i+t),o=e(r,i+n),s=(o>>31)*2+1,c=o>>>20&2047,l=4294967296*(o&1048575)+a;return c===2047?l?NaN:s*(1/0):c===0?s*5e-324*l:s*2**(c-1075)*(l+4503599627370496)}e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,o,4,0)})(),e}function r(e,t,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function i(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=e&255}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}})),g=t((e=>{var t=e,n=`�`,r;try{r=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}catch{r=new TextDecoder(`utf-8`,{ignoreBOM:!0})}t.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)n=e.charCodeAt(r),n<128?t+=1:n<2048?t+=2:(n&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320?(++r,t+=4):t+=3;return t};function i(e,t,r,i){for(var a=t;a<r;){var o=e[a++];if(o<=127)i+=String.fromCharCode(o);else if(o>=192&&o<224){var s=(o&31)<<6|e[a++]&63;i+=s>=128?String.fromCharCode(s):n}else if(o>=224&&o<240){var c=(o&15)<<12|(e[a++]&63)<<6|e[a++]&63;i+=c>=2048?String.fromCharCode(c):n}else if(o>=240){var l=(o&7)<<18|(e[a++]&63)<<12|(e[a++]&63)<<6|e[a++]&63;l<65536||l>1114111?i+=n:(l-=65536,i+=String.fromCharCode(55296+(l>>10)),i+=String.fromCharCode(56320+(l&1023)))}}return i}t.read=function(e,t,n){if(n-t<1)return``;for(var r=``,a=t,o,s,c,l,u,d,f,p;a+7<n;a+=8){if(o=e[a],s=e[a+1],c=e[a+2],l=e[a+3],u=e[a+4],d=e[a+5],f=e[a+6],p=e[a+7],(o|s|c|l|u|d|f|p)&128)return i(e,a,n,r);r+=String.fromCharCode(o,s,c,l,u,d,f,p)}for(;a<n;++a){if(o=e[a],o&128)return i(e,a,n,r);r+=String.fromCharCode(o)}return r};function a(e,t,n){var i=t===0&&n===e.length?e:e.subarray?e.subarray(t,n):e.slice(t,n);return Array.isArray(i)&&(i=Uint8Array.from(i)),r.decode(i)}t.readStrict=function(e,t,n){if(n-t<1)return``;for(var r=``,i=t,o,s,c,l,u,d,f,p;i+7<n;i+=8){if(o=e[i],s=e[i+1],c=e[i+2],l=e[i+3],u=e[i+4],d=e[i+5],f=e[i+6],p=e[i+7],(o|s|c|l|u|d|f|p)&128)return r+a(e,i,n);r+=String.fromCharCode(o,s,c,l,u,d,f,p)}for(;i<n;++i){if(o=e[i],o&128)return r+a(e,i,n);r+=String.fromCharCode(o)}return r},t.write=function(e,t,n){for(var r=n,i,a,o=0;o<e.length;++o)i=e.charCodeAt(o),i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)==55296&&((a=e.charCodeAt(o+1))&64512)==56320?(i=65536+((i&1023)<<10)+(a&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-r}})),_=t(((e,t)=>{t.exports=n;function n(e,t,n){var r=n||8192,i=r>>>1,a=null,o=r;return function(n){if(n<1||n>i)return e(n);o+n>r&&(a=e(r),o=0);var s=t.call(a,o,o+=n);return o&7&&(o=(o|7)+1),s}}})),v=t(((e,t)=>{t.exports=r;var n=b();function r(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=r.zero=new r(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=r.zeroHash=`\0\0\0\0\0\0\0\0`;r.fromNumber=function(e){if(e===0)return i;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new r(n,a)},r.from=function(e){if(typeof e==`number`)return r.fromNumber(e);if(n.isString(e))if(n.Long)e=n.Long.fromString(e);else return r.fromNumber(parseInt(e,10));return e.low||e.high?new r(e.low>>>0,e.high>>>0):i},r.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296},r.prototype.toLong=function(e){return n.Long?new n.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var o=String.prototype.charCodeAt;
vendor: 4,531 bytes, line 1
1r.fromHash=function(e){return e===a?i:new r((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},r.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},r.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},r.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}})),y=t(((e,t)=>{(function(n,r){function i(e){return e.default||e}typeof define==`function`&&define.amd?define([],function(){var e={};return r(e),i(e)}):typeof e==`object`?(r(e),typeof t==`object`&&(t.exports=i(e))):(function(){var e={};r(e),n.Long=i(e)})()})(typeof globalThis<`u`?globalThis:typeof self<`u`?self:e,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function n(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0});function r(e){return(e&&e.__isLong__)===!0}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}n.isLong=r;var a={},o={};function s(e,t){var n,r,i;return t?(e>>>=0,(i=0<=e&&e<256)&&(r=o[e],r)?r:(n=l(e,0,!0),i&&(o[e]=n),n)):(e|=0,(i=-128<=e&&e<128)&&(r=a[e],r)?r:(n=l(e,e<0?-1:0,!1),i&&(a[e]=n),n))}n.fromInt=s;function c(e,t){if(isNaN(e))return t?b:y;if(t){if(e<0)return b;if(e>=g)return T}else{if(e<=-_)return E;if(e+1>=_)return w}return e<0?c(-e,t).neg():l(e%h|0,e/h|0,t)}n.fromNumber=c;function l(e,t,r){return new n(e,t,r)}n.fromBits=l;var u=Math.pow;function d(e,t,n){if(e.length===0)throw Error(`empty string`);if(typeof t==`number`?(n=t,t=!1):t=!!t,e===`NaN`||e===`Infinity`||e===`+Infinity`||e===`-Infinity`)return t?b:y;if(n||=10,n<2||36<n)throw RangeError(`radix`);var r;if((r=e.indexOf(`-`))>0)throw Error(`interior hyphen`);if(r===0)return d(e.substring(1),t,n).neg();for(var i=c(u(n,8)),a=y,o=0;o<e.length;o+=8){var s=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+s),n);if(s<8){var f=c(u(n,s));a=a.mul(f).add(c(l))}else a=a.mul(i),a=a.add(c(l))}return a.unsigned=t,a}n.fromString=d;function f(e,t){return typeof e==`number`?c(e,t):typeof e==`string`?d(e,t):l(e.low,e.high,typeof t==`boolean`?t:e.unsigned)}n.fromValue=f;var p=65536,m=1<<24,h=p*p,g=h*h,_=g/2,v=s(m),y=s(0);n.ZERO=y;var b=s(0,!0);n.UZERO=b;var x=s(1);n.ONE=x;var S=s(1,!0);n.UONE=S;var C=s(-1);n.NEG_ONE=C;var w=l(-1,2147483647,!1);n.MAX_VALUE=w;var T=l(-1,-1,!0);n.MAX_UNSIGNED_VALUE=T;var E=l(0,-2147483648,!1);n.MIN_VALUE=E;var D=n.prototype;D.toInt=function(){return this.unsigned?this.low>>>0:this.low},D.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},D.toString=function(e){if(e||=10,e<2||36<e)throw RangeError(`radix`);if(this.isZero())return`0`;if(this.isNegative())if(this.eq(E)){var t=c(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}else return`-`+this.neg().toString(e);for(var i=c(u(e,6),this.unsigned),a=this,o=``;;){var s=a.div(i),l=(a.sub(s.mul(i)).toInt()>>>0).toString(e);if(a=s,a.isZero())return l+o;for(;l.length<6;)l=`0`+l;o=``+l+o}},D.getHighBits=function(){return this.high},D.getHighBitsUnsigned=function(){return this.high>>>0}
1,D.getLowBits=function(){return this.low},D.getLowBitsUnsigned=function(){return this.low>>>0},D.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=this.high==0?this.low:this.high,t=31;t>0&&!(e&1<<t);t--);return this.high==0?t+1:t+33},D.isSafeInteger=function(){var e=this.high>>21;return e?this.unsigned?!1:e===-1&&!(this.low===0&&this.high===-2097152):!0},D.isZero=function(){return this.high===0&&this.low===0},D.eqz=D.isZero,D.isNegative=function(){return!this.unsigned&&this.high<0},D.isPositive=function(){return this.unsigned||this.high>=0},D.isOdd=function(){return(this.low&1)==1},D.isEven=function(){return(this.low&1)==0},D.equals=function(e){return r(e)||(e=f(e)),this.unsigned!==e.unsigned&&this.high>>>31==1&&e.high>>>31==1?!1:this.high===e.high&&this.low===e.low},D.eq=D.equals,D.notEquals=function(e){return!this.eq(e)},D.neq=D.notEquals,D.ne=D.notEquals,D.lessThan=function(e){return this.comp(e)<0},D.lt=D.lessThan,D.lessThanOrEqual=function(e){return this.comp(e)<=0},D.lte=D.lessThanOrEqual,D.le=D.lessThanOrEqual,D.greaterThan=function(e){return this.comp(e)>0},D.gt=D.greaterThan,D.greaterThanOrEqual=function(e){return this.comp(e)>=0},D.gte=D.greaterThanOrEqual,D.ge=D.greaterThanOrEqual,D.compare=function(e){if(r(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},D.comp=D.compare,D.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(x)},D.neg=D.negate,D.add=function(e){r(e)||(e=f(e));var t=this.high>>>16,n=this.high&65535,i=this.low>>>16,a=this.low&65535,o=e.high>>>16,s=e.high&65535,c=e.low>>>16,u=e.low&65535,d=0,p=0,m=0,h=0;return h+=a+u,m+=h>>>16,h&=65535,m+=i+c,p+=m>>>16,m&=65535,p+=n+s,d+=p>>>16,p&=65535,d+=t+o,d&=65535,l(m<<16|h,d<<16|p,this.unsigned)},D.subtract=function(e){return r(e)||(e=f(e)),this.add(e.neg())},D.sub=D.subtract,D.multiply=function(e){if(this.isZero())return this;if(r(e)||(e=f(e)),t)return l(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?b:y;if(this.eq(E))return e.isOdd()?E:y;if(e.eq(E))return this.isOdd()?E:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(v)&&e.lt(v))return c(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=this.high&65535,a=this.low>>>16,o=this.low&65535,s=e.high>>>16,u=e.high&65535,d=e.low>>>16,p=e.low&65535,m=0,h=0,g=0,_=0;return _+=o*p,g+=_>>>16,_&=65535,g+=a*p,h+=g>>>16,g&=65535,g+=o*d,h+=g>>>16,g&=65535,h+=i*p,m+=h>>>16,h&=65535,h+=a*d,m+=h>>>16,h&=65535,h+=o*u,m+=h>>>16,h&=65535,m+=n*p+i*d+a*u+o*s,m&=65535,l(g<<16|_,m<<16|h,this.unsigned)},D.mul=D.multiply,D.divide=function(e){if(r(e)||(e=f(e)),e.isZero())throw Error(`division by zero`);if(t)return!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1?this:l((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(this.isZero())return this.unsigned?b:y;var n,i,a;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return S;a=b}else{if(this.eq(E))return e.eq(x)||e.eq(C)?E:e.eq(E)?x:(n=this.shr(1).div(e).shl(1),n.eq(y)?e.isNegative()?x:C:(i=this.sub(e.mul(n)),a=n.add(i.div(e)),a));if(e.eq(E))return this.unsigned?b:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=y}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),s=o<=48?1:u(2,o-48),d=c(n),p=d.mul(e);p.isNegative()||p.gt(i);)n-=s,d=c(n,this.unsigned),p=d.mul(e);d.isZero()&&(d=x),a=a.add(d),i=i.sub(p)}return a},D.div=D.divide,D.modulo=function(e){return r(e)||(e=f(e)),t?l((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},D.mod=D.modulo,D.rem=D.modulo,D.not=function(){return l(~this.low,~this.high,this.unsigned)},D.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},D.clz=D.countLeadingZeros,D.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},D.ctz=D.countTrailingZeros,D.and=function(e){return r(e)||(e=f(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},D.or=function(e){return r(e)||(e=f(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},D.xor=function(e){return r(e)||(e=f(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},D.shiftLeft=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):l(0,this.low<<e-32,this.unsigned)},D.shl=D.shiftLeft,D.shiftRight=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},D.shr=D.shiftRight,D.shiftRightUnsigned=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):l(e===32?this.high:this.high>>>e-32,0,this.unsigned)},D.shru=D.shiftRightUnsigned,D.shr_u=D.shiftRightUnsigned,D.rotateLeft=function(e){var t;return r(e)&&(e=e.toInt()),(e&=63)==0?this:e===32?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(e-=32,t=32-e,l(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},D.rotl=D.rotateLeft,D.rotateRight=function(e){var t;return r(e)&&(e=e.toInt()),(e&=63)==0?this:e===32?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(e-=32,t=32-e,l(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},D.rotr=D.rotateRight,D.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},D.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},D.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},D.toBytesLE=function(){var e=this.high,t=this.low;return[t&255,t>>>8&255,t>>>16&255,t>>>24,e&255,e>>
1>8&255,e>>>16&255,e>>>24]},D.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},typeof BigInt==`function`&&(n.fromBigInt=function(e,t){return l(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},n.fromValue=function(e,t){return typeof e==`bigint`?n.fromBigInt(e,t):f(e,t)},D.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e}),e.default=n})})),b=t((e=>{var t=e;t.asPromise=f(),t.base64=p(),t.EventEmitter=m(),t.float=h(),t.utf8=g(),t.pool=_(),t.LongBits=v();function n(e){return e===`__proto__`||e===`prototype`||e===`constructor`}t.isUnsafeProperty=n,t.isNode=!!(typeof global<`u`&&global&&global.process&&global.process.versions&&global.process.versions.node),t.global=t.isNode&&global||typeof window<`u`&&window||typeof self<`u`&&self||typeof globalThis<`u`&&globalThis||e,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return typeof e==`string`||e instanceof String},t.isObject=function(e){return e&&typeof e==`object`},t.isset=t.isSet=function(e,t){var n=e[t];return n!=null&&Object.hasOwnProperty.call(e,t)?typeof n!=`object`||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1},t.Buffer=(function(){try{var e=t.global.Buffer;return e.prototype.utf8Write?e:null}catch{return null}})(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return typeof e==`number`?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):typeof Uint8Array>`u`?e:new Uint8Array(e)},t.rawField=function(e,n,r){var i=[],a=e<<3|n;for(a>>>=0;a>127;)i.push(a&127|128),a>>>=7;i.push(a);for(var o=0;o<r.length;++o)i.push(r[o]);return t.newBuffer(i)},t.Array=typeof Uint8Array<`u`?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||(function(){try{var e=y();return e&&e.isLong?e:null}catch{return null}})(),t.key2Re=/^(?:true|false|0|1)$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,n){var r=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(r.lo,r.hi,n):r.toNumber(!!n)},t.longFromKey=function(e,n){return t.key64Re.test(e)&&!t.key32Re.test(e)?t.longFromHash(e,n):e},t.boolFromKey=function(e){return e===`true`||e===`1`};function r(e){var t=typeof arguments[arguments.length-1]==`boolean`,r=t?arguments.length-1:arguments.length;t&&=arguments[arguments.length-1];for(var i=1;i<r;++i){var a=arguments[i];if(a)for(var o=Object.keys(a),s=0;s<o.length;++s)!n(o[s])&&(!t||!Object.prototype.hasOwnProperty.call(e,o[s])||e[o[s]]===void 0)&&(e[o[s]]=a[o[s]])}return e}t.merge=r,t.nestingLimit=32,t.recursionLimit=100,t.makeProp=function(e,t,n){Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:n===void 0?!0:n,configurable:!0,writable:!0})},t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function i(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack||``}),n&&r(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+`: `+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}t.newError=i,t.ProtocolError=i(`ProtocolError`),t.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(t[e[n]]===1&&this[e[n]]!==void 0&&this[e[n]]!==null)return e[n]}},t.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;if(!e){t._Buffer_from=t._Buffer_allocUnsafe=null;return}t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}})),x=t(((e,t)=>{t.exports=u;var n=b(),r,i=n.LongBits,a=n.base64,o=n.utf8;function s(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function c(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new s(c,0,0),this.tail=this.head,this.states=null}var d=function(){return n.Buffer?function(){return(u.create=function(){return new r})()}:function(){return new u}};u.create=d(),u.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(u.alloc=n.pool(u.alloc,n.Array.prototype.subarray)),u.prototype._push=function(e,t,n){return this.tail=this.tail.next=new s(e,t,n),this.len+=t,this};function f(e,t,n){t[n]=e&255}function p(e,t,n){for(var r=0;r<e.length;)t[n++]=e.charCodeAt(r++)}function m(e,t,n){for(;e>127;)t[n++]=e&127|128,e>>>=7;t[n]=e}function h(e,t){this.len=e,this.next=void 0,this.val=t}h.prototype=Object.create(s.prototype),h.prototype.fn=m,u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},u.prototype.int32=function(e){return(e|=0)<0?this._push(g,10,i.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function g(e,t,n){for(var r=e.lo,i=e.hi;i;)t[n++]=r&127|128,r=(r>>>7|i<<25)>>>0,i>>>=7;for(;r>127;)t[n++]=r&127|128,r>>>=7;t[n++]=r}u.prototype.uint64=function(e){var t=i.from(e);return this._push(g,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(g,t.length(),t)},u.prototype.bool=function(e){return this._push(f,1,+!!e)};function _(e,t,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}u.prototype.fixed32=function(e){return this._push(_,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=i.from(e);return this._push(_,4,t.lo)._push(_,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var v=n.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};u.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(n.isString(e)){var r=u.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t)._push(v,t,e)},u.prototype.raw=function(e){var t=e.length>>>0;return t?this._push(v,t,e):this},u.prototype.string=function(e){var t=o.length(e);return t?this.uint32(t)._push(t===e.length?p:o.write,t,e):this._push(f,1,0)},u.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new s(c,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new s(c,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},u.prototype.finish=function(){return this.finishInto(this.constructor.alloc(this.len),0)},u.prototype.finishInto=function(e,t){t===void 0&&(t=0);for(var n=this.head.next,r=t;n;)n.fn(n.val,e,r),r+=n.len,n=n.next;return e},u._configure=function(e){r=e,u.create=d(),r._configure()}})),S=t(((e,t)=>{t.exports=i;var n=x();i.prototype=Object.create(n.prototype,{constructor:{value:i,writable:!0,enumerable:!1,
1configurable:!0}});var r=b();function i(){n.call(this)}i._configure=function(){i.alloc=r._Buffer_allocUnsafe,i.writeBytesBuffer=r.Buffer&&r.Buffer.prototype instanceof Uint8Array&&r.Buffer.prototype.set.name===`set`?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},i.prototype.bytes=function(e){r.isString(e)&&(e=r._Buffer_from(e,`base64`));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.raw=function(e){var t=e.length>>>0;return t?this._push(i.writeBytesBuffer,t,e):this};function a(e,t,n){for(var r=0;r<e.length;)t[n++]=e.charCodeAt(r++)}function o(e,t,n){e.length<40?r.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i.prototype.string=function(e){var t=r.Buffer.byteLength(e);return this.uint32(t),t&&this._push(t===e.length&&t<40?a:o,t,e),this},i._configure()})),C=t(((e,t)=>{t.exports=s;var n=b(),r,i=n.LongBits,a=n.utf8;function o(e,t){return RangeError(`index out of range: `+e.pos+` + `+(t||1)+` > `+e.len)}function s(e){this.buf=e,this.pos=0,this.len=e.length,this.discardUnknown=s.discardUnknown}var c=typeof Uint8Array<`u`?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new s(e);throw Error(`illegal buffer`)}:function(e){if(Array.isArray(e))return new s(e);throw Error(`illegal buffer`)},l=function(){return n.Buffer?function(e){return(s.create=function(e){return n.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};s.create=l(),s.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,s.prototype.raw=function(e,t){return Array.isArray(this.buf)?this.buf.slice(e,t):e===t?new this.buf.constructor(0):this._slice.call(this.buf,e,t)},s.prototype.uint32=function(){var e=this.buf,t=this.pos,n=(e[t]&127)>>>0;if(e[t++]<128||(n=(n|(e[t]&127)<<7)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<14)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<21)>>>0,e[t++]<128)||(n=(n|(e[t]&15)<<28)>>>0,e[t++]<128))return this.pos=t,n;for(var r=0;r<5;++r){if(t>=this.len)throw this.pos=t,o(this);if(e[t++]<128)return this.pos=t,n}throw this.pos=t,Error(`invalid varint encoding`)},s.prototype.tag=function(){var e=this.buf,t=this.pos,n=(e[t]&127)>>>0;if(e[t++]<128||(n=(n|(e[t]&127)<<7)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<14)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<21)>>>0,e[t++]<128))return this.pos=t,n;if(n=(n|(e[t]&15)<<28)>>>0,e[t]<128&&!(e[t]&112))return this.pos=t+1,n;throw this.pos=t+1,Error(`invalid tag encoding`)},s.prototype.int32=function(){return this.uint32()|0},s.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function u(){var e=new i(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(this.buf[this.pos]&127)<<28)>>>0,e.hi=(e.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<4;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e}throw o(this)}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(`invalid varint encoding`)}s.prototype.bool=function(){for(var e=!1,t,n=0;n<10;++n){if(this.pos>=this.len)throw o(this);if(t=this.buf[this.pos++],t&127&&(e=!0),t<128)return e}throw Error(`invalid varint encoding`)};function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}s.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)},s.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)|0};function f(){if(this.pos+8>this.len)throw o(this,8);return new i(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}s.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},s.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},s.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos=n,this.raw(t,n)},s.prototype.string=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos=n,a.read(this.buf,t,n)},s.prototype.stringVerify=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos=n,a.readStrict(this.buf,t,n)},s.prototype.skip=function(e){if(typeof e==`number`){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},s.recursionLimit=n.recursionLimit,s.discardUnknown=!0,s.prototype.skipType=function(e,t,n){if(t===void 0&&(t=0),t>s.recursionLimit)throw Error(`max depth exceeded`);if(n===0)throw Error(`illegal tag: field number 0`);switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var r=this.tag(),i=r>>>3;if(e=r&7,!i)throw Error(`illegal tag: field number 0`);if(e===4){if(n!==void 0&&i!==n)throw Error(`invalid end group tag`);break}this.skipType(e,t+1,i)}break;case 5:this.skip(4);break;default:throw Error(`invalid wire type `+e+` at offset `+this.pos)}return this},s._configure=function(e){r=e,s.create=l(),r._configure();var t=n.Long?`toLong`:`toNumber`;n.merge(s.prototype,{int64:function(){return u.call(this)[t](!1)},uint64:function(){return u.call(this)[t](!0)},sint64:function(){return u.call(this).zzDecode()[t](!1)},fixed64:function(){return f.call(this)[t](!0)},sfixed64:function(){return f.call(this)[t](!1)}})}})),w=t(((e,t)=>{t.exports=i;var n=C();i.prototype=Object.create(n.prototype,{constructor:{value:i,writable:!0,enumerable:!1,
1configurable:!0}});var r=b();function i(e){n.call(this,e)}i._configure=function(){r.Buffer&&(i.prototype._slice=r.Buffer.prototype.slice)},i.prototype.raw=function(e,t){return e===t?r.Buffer.alloc(0):this._slice.call(this.buf,e,t)},i.prototype.string=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw RangeError(`index out of range: `+this.pos+` + `+e+` > `+this.len);return this.pos=n,this.buf.utf8Slice?this.buf.utf8Slice(t,n):this.buf.toString(`utf-8`,t,n)},i._configure()})),T=t(((e,t)=>{t.exports=r;var n=b();r.prototype=Object.create(n.EventEmitter.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});function r(e,t,r){if(typeof e!=`function`)throw TypeError(`rpcImpl must be a function`);n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}r.prototype.rpcCall=function e(t,r,i,a,o){if(!a)throw TypeError(`request must be specified`);var s=this;if(!o)return n.asPromise(e,s,t,r,i,a);if(!s.rpcImpl){setTimeout(function(){o(Error(`already ended`))},0);return}try{return s.rpcImpl(t,r[s.requestDelimited?`encodeDelimited`:`encode`](a).finish(),function(e,n){if(e)return s.emit(`error`,e,t),o(e);if(n===null){s.end(!0);return}if(!(n instanceof i))try{n=i[s.responseDelimited?`decodeDelimited`:`decode`](n)}catch(e){return s.emit(`error`,e,t),o(e)}return s.emit(`data`,n,t),o(null,n)})}catch(e){s.emit(`error`,e,t),setTimeout(function(){o(e)},0);return}},r.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(`end`).off()),this}})),E=t((e=>{var t=e;t.Service=T()})),D=t(((e,t)=>{t.exports=Object.create(null)})),O=t((e=>{e.build=`minimal`,e.Writer=x(),e.BufferWriter=S(),e.Reader=C(),e.BufferReader=w(),e.util=b(),e.rpc=E(),e.roots=D(),e.configure=t;function t(){e.util._configure(),e.Writer._configure(e.BufferWriter),e.Reader._configure(e.BufferReader)}t()})),k=e(t(((e,t)=>{t.exports=O()}))(),1),A=k.Reader,j=k.Writer,M=k.util,N=M.global.Object,P=M.global.undefined,F=M.global.Error,I=M.global.TypeError,L=M.global.String,R=M.global.Boolean,z=M.global.Number,B=M.global.isFinite,V=M.global.Array,H=M.global.parseInt,U=M.global.BigInt,W=k.roots.default||(k.roots.default={}),ee=W.Alert=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.body=``,e.prototype.format=0,e.prototype.icon=``,e.prototype.widthConfig=null,e.prototype.title=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.body!=null&&N.hasOwnProperty.call(e,`body`)&&e.body!==``&&t.uint32(10).string(e.body),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&e.format!==0&&t.uint32(16).int32(e.format),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(26).string(e.icon),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&W.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(34).fork(),n+1).ldelim(),e.title!=null&&N.hasOwnProperty.call(e,`title`)&&e.title!==``&&t.uint32(42).string(e.title),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Alert,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.body=s:delete o.body;continue;case 2:if(a!==0)break;(s=e.int32())?o.format=s:delete o.format;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 4:if(a!==2)break;o.widthConfig=W.streamlit.WidthConfig.decode(e,e.uint32(),P,r+1,o.widthConfig);continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.title=s:delete o.title;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Alert)return e;if(!M.isObject(e))throw I(`.Alert: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Alert;if(e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=L(e.body)),e.format!==0&&(typeof e.format!=`string`||W.Alert.Format[e.format]!==0))switch(e.format){case`UNUSED`:case 0:n.format=0;break;case`ERROR`:case 1:n.format=1;break;case`WARNING`:case 2:n.format=2;break;case`INFO`:case 3:n.format=3;break;case`SUCCESS`:case 4:n.format=4;break;default:typeof e.format==`number`&&(e.format|0)===e.format&&(n.format=e.format)}if(e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.widthConfig!=null){if(!M.isObject(e.widthConfig))throw I(`.Alert.widthConfig: object expected`);n.widthConfig=W.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return e.title!=null&&(typeof e.title!=`string`||e.title.length)&&(n.title=L(e.title)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.body=``,r.format=t.enums===L?`UNUSED`:0,r.icon=``,r.widthConfig=null,r.title=``),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&(r.body=e.body),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&(r.format=t.enums===L?W.Alert.Format[e.format]===P?e.format:W.Alert.Format[e.format]:e.format),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&(r.widthConfig=W.streamlit.WidthConfig.toObject(e.widthConfig,t,n+1)),e.title!=null&&N.hasOwnProperty.call(e,`title`)&&(r.title=e.title),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Alert`},e.Format=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`UNUSED`]=0,t[e[1]=`ERROR`]=1,t[e[2]=`WARNING`]=2,t[e[3]=`INFO`]=3,t[e[4]=`SUCCESS`]=4,t})(),e})(),te=W.streamlit=(()=>{let e={};return e.WidthConfig=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.useStretch=null,e.prototype.useContent=null,e.prototype.pixelWidth=null,e.prototype.remWidth=null;let t;return N.defineProperty(e.prototype,`widthSpec`,{get:M.oneOfGetter(t=[`useStretch`,`useContent`,`pixelWidth`,`remWidth`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.useStretch!=null&&N.hasOwnProperty.call(e,`useStretch`)&&t.uint32(8).bool(e.useStretch),e.useContent!=null&&N.hasOwnProperty.call(e,`useContent`)&&t.uint32(16).bool(e.useContent),e.pixelWidth!=null&&N.hasOwnProperty.call(e,`pixelWidth`)&&t.uint32(24).uint32(e.pixelWidth),e.remWidth!=null&&N.hasOwnProperty.call(e,`remWidth`)&&t.uint32(37).float(e.remWidth),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.streamlit.WidthConfig;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.useStretch=e.bool(),o.widthSpec=`useStretch`;continue;case 2:if(a!==0)break;o.useContent=e.bool(),o.widthSpec=`useContent`;continue;case 3:if(a!==0)break;o.pixelWidth=e.uint32(),o.widthSpec=`pixelWidth`;continue;case 4:if(a!==5)break;o.remWidth=e.float(),o.widthSpec=`remWidth`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.streamlit.WidthConfig)return e;if(!M.isObject(e))throw I(`.streamlit.WidthConfig: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.streamlit.WidthConfig;return e.useStretch!=null&&(n.useStretch=R(e.useStretch)),e.useContent!=null&&(n.useContent=R(e.useContent)),e.pixelWidth!=null&&(n.pixelWidth=e.pixelWidth>>>0),e.remWidth!=null&&(n.remWidth=z(e.remWidth)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.useStretch!=null&&N.hasOwnProperty.call(e,`useStretch`)&&(r.useStretch=e.useStretch,t.oneofs&&(r.widthSpec=`useStretch`)),e.useContent!=null&&N.hasOwnProperty.call(e,`useContent`)&&(r.useContent=e.useContent,t.oneofs&&(r.widthSpec=`useContent`)),e.pixelWidth!=null&&N.hasOwnProperty.call(e,`pixelWidth`)&&(r.pixelWidth=e.pixelWidth,t.oneofs&&(r.widthSpec=`pixelWidth`)),e.remWidth!=null&&N.hasOwnProperty.call(e,`remWidth`)&&(r.remWidth=t.json&&!B(e.remWidth)?L(e.remWidth):e.remWidth,t.oneofs&&(r.widthSpec=`remWidth`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/streamlit.WidthConfig`},e})(),e.GapSize=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`GAP_UNDEFINED`]=0,t[e[1]=`SMALL`]=1,t[e[2]=`MEDIUM`]=2,t[e[3]=`LARGE`]=3,t[e[4]=`NONE`]=4,t[e[5]=`XXSMALL`]=5,t[e[6]=`XSMALL`]=6,t[e[7]=`XLARGE`]=7,t[e[8]=`XXLARGE`]=8,t})(),e.GapConfig=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.gapSize=null;let t;return N.defineProperty(e.prototype,`gapSpec`,{get:M.oneOfGetter(t=[`gapSize`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.gapSize!=null&&N.hasOwnProperty.call(e,`gapSize`)&&t.uint32(8).int32(e.gapSize),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);
1let a=t===P?e.len:e.pos+t,o=i||new W.streamlit.GapConfig;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.gapSize=e.int32(),o.gapSpec=`gapSize`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.streamlit.GapConfig)return e;if(!M.isObject(e))throw I(`.streamlit.GapConfig: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.streamlit.GapConfig;switch(e.gapSize){case`GAP_UNDEFINED`:case 0:n.gapSize=0;break;case`SMALL`:case 1:n.gapSize=1;break;case`MEDIUM`:case 2:n.gapSize=2;break;case`LARGE`:case 3:n.gapSize=3;break;case`NONE`:case 4:n.gapSize=4;break;case`XXSMALL`:case 5:n.gapSize=5;break;case`XSMALL`:case 6:n.gapSize=6;break;case`XLARGE`:case 7:n.gapSize=7;break;case`XXLARGE`:case 8:n.gapSize=8;break;default:typeof e.gapSize==`number`&&(e.gapSize|0)===e.gapSize&&(n.gapSize=e.gapSize)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.gapSize!=null&&N.hasOwnProperty.call(e,`gapSize`)&&(r.gapSize=t.enums===L?W.streamlit.GapSize[e.gapSize]===P?e.gapSize:W.streamlit.GapSize[e.gapSize]:e.gapSize,t.oneofs&&(r.gapSpec=`gapSize`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/streamlit.GapConfig`},e})(),e.HeightConfig=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.useStretch=null,e.prototype.useContent=null,e.prototype.pixelHeight=null,e.prototype.remHeight=null;let t;return N.defineProperty(e.prototype,`heightSpec`,{get:M.oneOfGetter(t=[`useStretch`,`useContent`,`pixelHeight`,`remHeight`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.useStretch!=null&&N.hasOwnProperty.call(e,`useStretch`)&&t.uint32(8).bool(e.useStretch),e.useContent!=null&&N.hasOwnProperty.call(e,`useContent`)&&t.uint32(16).bool(e.useContent),e.pixelHeight!=null&&N.hasOwnProperty.call(e,`pixelHeight`)&&t.uint32(24).uint32(e.pixelHeight),e.remHeight!=null&&N.hasOwnProperty.call(e,`remHeight`)&&t.uint32(37).float(e.remHeight),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.streamlit.HeightConfig;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.useStretch=e.bool(),o.heightSpec=`useStretch`;continue;case 2:if(a!==0)break;o.useContent=e.bool(),o.heightSpec=`useContent`;continue;case 3:if(a!==0)break;o.pixelHeight=e.uint32(),o.heightSpec=`pixelHeight`;continue;case 4:if(a!==5)break;o.remHeight=e.float(),o.heightSpec=`remHeight`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.streamlit.HeightConfig)return e;if(!M.isObject(e))throw I(`.streamlit.HeightConfig: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.streamlit.HeightConfig;return e.useStretch!=null&&(n.useStretch=R(e.useStretch)),e.useContent!=null&&(n.useContent=R(e.useContent)),e.pixelHeight!=null&&(n.pixelHeight=e.pixelHeight>>>0),e.remHeight!=null&&(n.remHeight=z(e.remHeight)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.useStretch!=null&&N.hasOwnProperty.call(e,`useStretch`)&&(r.useStretch=e.useStretch,t.oneofs&&(r.heightSpec=`useStretch`)),e.useContent!=null&&N.hasOwnProperty.call(e,`useContent`)&&(r.useContent=e.useContent,t.oneofs&&(r.heightSpec=`useContent`)),e.pixelHeight!=null&&N.hasOwnProperty.call(e,`pixelHeight`)&&(r.pixelHeight=e.pixelHeight,t.oneofs&&(r.heightSpec=`pixelHeight`)),e.remHeight!=null&&N.hasOwnProperty.call(e,`remHeight`)&&(r.remHeight=t.json&&!B(e.remHeight)?L(e.remHeight):e.remHeight,t.oneofs&&(r.heightSpec=`remHeight`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/streamlit.HeightConfig`},e})(),e.ButtonLikeIconPosition=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`LEFT`]=0,t[e[1]=`RIGHT`]=1,t})(),e.SelectWidgetFilterMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`FILTER_MODE_FUZZY`]=0,t[e[1]=`FILTER_MODE_CONTAINS`]=1,t[e[2]=`FILTER_MODE_PREFIX`]=2,t[e[3]=`FILTER_MODE_NONE`]=3,t})(),e.TextAlignmentConfig=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.alignment=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.alignment!=null&&N.hasOwnProperty.call(e,`alignment`)&&e.alignment!==0&&t.uint32(8).int32(e.alignment),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.streamlit.TextAlignmentConfig,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.int32())?o.alignment=s:delete o.alignment;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.streamlit.TextAlignmentConfig)return e;if(!M.isObject(e))throw I(`.streamlit.TextAlignmentConfig: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.streamlit.TextAlignmentConfig;if(e.alignment!==0&&(typeof e.alignment!=`string`||W.streamlit.TextAlignmentConfig.Alignment[e.alignment]!==0))switch(e.alignment){case`UNSPECIFIED`:case 0:n.alignment=0;break;case`LEFT`:case 1:n.alignment=1;break;case`CENTER`:case 2:n.alignment=2;break;case`RIGHT`:case 3:n.alignment=3;break;case`JUSTIFY`:case 4:n.alignment=4;break;default:typeof e.alignment==`number`&&(e.alignment|0)===e.alignment&&(n.alignment=e.alignment)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.alignment=t.enums===L?`UNSPECIFIED`:0),e.alignment!=null&&N.hasOwnProperty.call(e,`alignment`)&&(r.alignment=t.enums===L?W.streamlit.TextAlignmentConfig.Alignment[e.alignment]===P?e.alignment:W.streamlit.TextAlignmentConfig.Alignment[e.alignment]:e.alignment),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/streamlit.TextAlignmentConfig`},e.Alignment=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`UNSPECIFIED`]=0,t[e[1]=`LEFT`]=1,t[e[2]=`CENTER`]=2,t[e[3]=`RIGHT`]=3,t[e[4]=`JUSTIFY`]=4,t})(),e})(),e})();W.AppPage=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.pageScriptHash=``,e.prototype.pageName=``,e.prototype.icon=``,e.prototype.isDefault=!1,e.prototype.sectionHeader=``,e.prototype.urlPathname=``,e.prototype.isHidden=!1,e.prototype.externalUrl=null;let t;return N.defineProperty(e.prototype,`_externalUrl`,{get:M.oneOfGetter(t=[`externalUrl`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&e.pageScriptHash!==``&&t.uint32(10).string(e.pageScriptHash),e.pageName!=null&&N.hasOwnProperty.call(e,`pageName`)&&e.pageName!==``&&t.uint32(18).string(e.pageName),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(26).string(e.icon),e.isDefault!=null&&N.hasOwnProperty.call(e,`isDefault`)&&e.isDefault!==!1&&t.uint32(32).bool(e.isDefault),e.sectionHeader!=null&&N.hasOwnProperty.call(e,`sectionHeader`)&&e.sectionHeader!==``&&t.uint32(42).string(e.sectionHeader),e.urlPathname!=null&&N.hasOwnProperty.call(e,`urlPathname`)&&e.urlPathname!==``&&t.uint32(50).string(e.urlPathname),e.isHidden!=null&&N.hasOwnProperty.call(e,`isHidden`)&&e.isHidden!==!1&&t.uint32(56).bool(e.isHidden),e.externalUrl!=null&&N.hasOwnProperty.call(e,`externalUrl`)&&t.uint32(66).string(e.externalUrl),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.AppPage,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.pageName=s:delete o.pageName;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 4:if(a!==0)break;(s=e.bool())?o.isDefault=s:delete o.isDefault;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.sectionHeader=s:delete o.sectionHeader;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.urlPathname=s:delete o.urlPathname;continue;case 7:if(a!==0)break;(s=e.bool())?o.isHidden=s:delete o.isHidden;continue;case 8:if(a!==2)break;o.externalUrl=e.stringVerify(),o._externalUrl=`externalUrl`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.AppPage)return e;if(!M.isObject(e))throw I(`.AppPage: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.AppPage;return e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=L(e.pageScriptHash)),e.pageName!=null&&(typeof e.pageName!=`string`||e.pageName.length)&&(n.pageName=L(e.pageName)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.isDefault!=null&&e.isDefault&&(n.isDefault=R(e.isDefault)),e.sectionHeader!=null&&(typeof e.sectionHeader!=`string`||e.sectionHeader.length)&&(n.sectionHeader=L(e.sectionHeader)),e.urlPathname!=null&&(typeof e.urlPathname!=`string`||e.urlPathname.length)&&(n.urlPathname=L(e.urlPathname)),e.isHidden!=null&&e.isHidden&&(n.isHidden=R(e.isHidden)),e.externalUrl!=null&&(n.externalUrl=L(e.externalUrl)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.pageScriptHash=``,r.pageName=``,r.icon=``,r.isDefault=!1,r.sectionHeader=``,r.urlPathname=``,r.isHidden=!1),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&(r.pageScriptHash=e.pageScriptHash),e.pageName!=null&&N.hasOwnProperty.call(e,`pageName`)&&(r.pageName=e.pageName),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.isDefault!=null&&N.hasOwnProperty.call(e,`isDefault`)&&(r.isDefault=e.isDefault),e.sectionHeader!=null&&N.hasOwnProperty.call(e,`sectionHeader`)&&(r.sectionHeader=e.sectionHeader),e.urlPathname!=null&&N.hasOwnProperty.call(e,`urlPathname`)&&(r.urlPathname=e.urlPathname),e.isHidden!=null&&N.hasOwnProperty.call(e,`isHidden`)&&(r.isHidden=e.isHidden),e.externalUrl!=null&&N.hasOwnProperty.call(e,`externalUrl`)&&(r.externalUrl=e.externalUrl),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/AppPage`},e})(),W.ArrowData=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=M.newBuffer([]),e.prototype.styler=null,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&N.hasOwnProperty.call(e,`data`)&&e.data.length&&t.uint32(10).bytes(e.data),e.styler!=null&&N.hasOwnProperty.call(e,`styler`)&&W.ArrowData.PandasStyler.encode(e.styler,t.uint32(18).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ArrowData,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.bytes()).length?o.data=s:delete o.data;continue;case 2:if(a!==2)break;o.styler=W.ArrowData.PandasStyler.decode(e,e.uint32(),P,r+1,o.styler);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ArrowData)return e;if(!M.isObject(e))throw I(`.ArrowData: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ArrowData;if(e.data!=null&&e.data.length&&(typeof e.data==`string`?M.base64.decode(e.data,n.data=M.newBuffer(M.base64.length(e.data)),0):e.data.length>=0&&(n.data=e.data)),e.styler!=null){if(!M.isObject(e.styler))throw I(`.ArrowData.styler: object expected`);n.styler=W.ArrowData.PandasStyler.fromObject(e.styler,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(t.bytes===L?r.data=``:(r.data=[],t.bytes!==V&&(r.data=M.newBuffer(r.data))),r.styler=null),e.data!=null&&N.hasOwnProperty.call(e,`data`)&&(r.data=t.bytes===L?M.base64.encode(e.data,
10,e.data.length):t.bytes===V?V.prototype.slice.call(e.data):e.data),e.styler!=null&&N.hasOwnProperty.call(e,`styler`)&&(r.styler=W.ArrowData.PandasStyler.toObject(e.styler,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ArrowData`},e.PandasStyler=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.uuid=``,e.prototype.caption=``,e.prototype.styles=``,e.prototype.displayValues=M.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.uuid!=null&&N.hasOwnProperty.call(e,`uuid`)&&e.uuid!==``&&t.uint32(10).string(e.uuid),e.caption!=null&&N.hasOwnProperty.call(e,`caption`)&&e.caption!==``&&t.uint32(18).string(e.caption),e.styles!=null&&N.hasOwnProperty.call(e,`styles`)&&e.styles!==``&&t.uint32(26).string(e.styles),e.displayValues!=null&&N.hasOwnProperty.call(e,`displayValues`)&&e.displayValues.length&&t.uint32(34).bytes(e.displayValues),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ArrowData.PandasStyler,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.uuid=s:delete o.uuid;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.caption=s:delete o.caption;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.styles=s:delete o.styles;continue;case 4:if(a!==2)break;(s=e.bytes()).length?o.displayValues=s:delete o.displayValues;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ArrowData.PandasStyler)return e;if(!M.isObject(e))throw I(`.ArrowData.PandasStyler: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ArrowData.PandasStyler;return e.uuid!=null&&(typeof e.uuid!=`string`||e.uuid.length)&&(n.uuid=L(e.uuid)),e.caption!=null&&(typeof e.caption!=`string`||e.caption.length)&&(n.caption=L(e.caption)),e.styles!=null&&(typeof e.styles!=`string`||e.styles.length)&&(n.styles=L(e.styles)),e.displayValues!=null&&e.displayValues.length&&(typeof e.displayValues==`string`?M.base64.decode(e.displayValues,n.displayValues=M.newBuffer(M.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(n.displayValues=e.displayValues)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.uuid=``,r.caption=``,r.styles=``,t.bytes===L?r.displayValues=``:(r.displayValues=[],t.bytes!==V&&(r.displayValues=M.newBuffer(r.displayValues)))),e.uuid!=null&&N.hasOwnProperty.call(e,`uuid`)&&(r.uuid=e.uuid),e.caption!=null&&N.hasOwnProperty.call(e,`caption`)&&(r.caption=e.caption),e.styles!=null&&N.hasOwnProperty.call(e,`styles`)&&(r.styles=e.styles),e.displayValues!=null&&N.hasOwnProperty.call(e,`displayValues`)&&(r.displayValues=t.bytes===L?M.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===V?V.prototype.slice.call(e.displayValues):e.displayValues),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ArrowData.PandasStyler`},e})(),e})(),W.ArrowNamedDataSet=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.name=``,e.prototype.hasName=!1,e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(10).string(e.name),e.data!=null&&N.hasOwnProperty.call(e,`data`)&&W.ArrowData.encode(e.data,t.uint32(18).fork(),n+1).ldelim(),e.hasName!=null&&N.hasOwnProperty.call(e,`hasName`)&&e.hasName!==!1&&t.uint32(24).bool(e.hasName),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ArrowNamedDataSet,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 3:if(a!==0)break;(s=e.bool())?o.hasName=s:delete o.hasName;continue;case 2:if(a!==2)break;o.data=W.ArrowData.decode(e,e.uint32(),P,r+1,o.data);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ArrowNamedDataSet)return e;if(!M.isObject(e))throw I(`.ArrowNamedDataSet: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ArrowNamedDataSet;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.hasName!=null&&e.hasName&&(n.hasName=R(e.hasName)),e.data!=null){if(!M.isObject(e.data))throw I(`.ArrowNamedDataSet.data: object expected`);n.data=W.ArrowData.fromObject(e.data,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.name=``,r.data=null,r.hasName=!1),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.data!=null&&N.hasOwnProperty.call(e,`data`)&&(r.data=W.ArrowData.toObject(e.data,t,n+1)),e.hasName!=null&&N.hasOwnProperty.call(e,`hasName`)&&(r.hasName=e.hasName),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ArrowNamedDataSet`},e})(),W.Audio=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.url=``,e.prototype.startTime=0,e.prototype.endTime=0,e.prototype.loop=!1,e.prototype.autoplay=!1,e.prototype.id=``,e.prototype.widthConfig=null;let t;return N.defineProperty(e.prototype,`_widthConfig`,{get:M.oneOfGetter(t=[`widthConfig`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.startTime!=null&&N.hasOwnProperty.call(e,`startTime`)&&e.startTime!==0&&t.uint32(24).int32(e.startTime),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(42).string(e.url),e.endTime!=null&&N.hasOwnProperty.call(e,`endTime`)&&e.endTime!==0&&t.uint32(48).int32(e.endTime),e.loop!=null&&N.hasOwnProperty.call(e,`loop`)&&e.loop!==!1&&t.uint32(56).bool(e.loop),e.autoplay!=null&&N.hasOwnProperty.call(e,`autoplay`)&&e.autoplay!==!1&&t.uint32(64).bool(e.autoplay),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(74).string(e.id),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&W.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(82).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Audio,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 5:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue;case 3:if(a!==0)break;(s=e.int32())?o.startTime=s:delete o.startTime;continue;case 6:if(a!==0)break;(s=e.int32())?o.endTime=s:delete o.endTime;continue;case 7:if(a!==0)break;(s=e.bool())?o.loop=s:delete o.loop;continue;case 8:if(a!==0)break;(s=e.bool())?o.autoplay=s:delete o.autoplay;continue;
1case 9:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 10:if(a!==2)break;o.widthConfig=W.streamlit.WidthConfig.decode(e,e.uint32(),P,r+1,o.widthConfig),o._widthConfig=`widthConfig`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Audio)return e;if(!M.isObject(e))throw I(`.Audio: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Audio;if(e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),e.startTime!=null&&z(e.startTime)!==0&&(n.startTime=e.startTime|0),e.endTime!=null&&z(e.endTime)!==0&&(n.endTime=e.endTime|0),e.loop!=null&&e.loop&&(n.loop=R(e.loop)),e.autoplay!=null&&e.autoplay&&(n.autoplay=R(e.autoplay)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.widthConfig!=null){if(!M.isObject(e.widthConfig))throw I(`.Audio.widthConfig: object expected`);n.widthConfig=W.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.startTime=0,r.url=``,r.endTime=0,r.loop=!1,r.autoplay=!1,r.id=``),e.startTime!=null&&N.hasOwnProperty.call(e,`startTime`)&&(r.startTime=e.startTime),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),e.endTime!=null&&N.hasOwnProperty.call(e,`endTime`)&&(r.endTime=e.endTime),e.loop!=null&&N.hasOwnProperty.call(e,`loop`)&&(r.loop=e.loop),e.autoplay!=null&&N.hasOwnProperty.call(e,`autoplay`)&&(r.autoplay=e.autoplay),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&(r.widthConfig=W.streamlit.WidthConfig.toObject(e.widthConfig,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Audio`},e})(),W.AudioInput=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.help=``,e.prototype.formId=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.sampleRate=null;let t;return N.defineProperty(e.prototype,`_sampleRate`,{get:M.oneOfGetter(t=[`sampleRate`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(26).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(34).string(e.formId),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(40).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(50).fork(),n+1).ldelim(),e.sampleRate!=null&&N.hasOwnProperty.call(e,`sampleRate`)&&t.uint32(56).int32(e.sampleRate),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.AudioInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 5:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 6:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 7:if(a!==0)break;o.sampleRate=e.int32(),o._sampleRate=`sampleRate`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.AudioInput)return e;if(!M.isObject(e))throw I(`.AudioInput: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.AudioInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.AudioInput.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.sampleRate!=null&&(n.sampleRate=e.sampleRate|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.help=``,r.formId=``,r.disabled=!1,r.labelVisibility=null),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.sampleRate!=null&&N.hasOwnProperty.call(e,`sampleRate`)&&(r.sampleRate=e.sampleRate),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/AudioInput`},e})();var G=W.LabelVisibility=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.value!=null&&N.hasOwnProperty.call(e,`value`)&&e.value!==0&&t.uint32(8).int32(e.value),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.LabelVisibility,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.int32())?o.value=s:delete o.value;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.LabelVisibility)return e;if(!M.isObject(e))throw I(`.LabelVisibility: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.LabelVisibility;if(e.value!==0&&(typeof e.value!=`string`||W.LabelVisibility.LabelVisibilityOptions[e.value]!==0))switch(e.value){case`VISIBLE`:case 0:n.value=0;break;case`HIDDEN`:case 1:n.value=1;break;case`COLLAPSED`:case 2:n.value=2;break;default:typeof e.value==`number`&&(e.value|0)===e.value&&(n.value=e.value)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.value=t.enums===L?`VISIBLE`:0),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=t.enums===L?W.LabelVisibility.LabelVisibilityOptions[e.value]===P?e.value:W.LabelVisibility.LabelVisibilityOptions[e.value]:e.value),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/LabelVisibility`},e.LabelVisibilityOptions=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`VISIBLE`]=0,t[e[1]=`HIDDEN`]=1,t[e[2]=`COLLAPSED`]=2,t})(),e})();W.AuthRedirect=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.url=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(10).string(e.url),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.AuthRedirect,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.AuthRedirect)return e;if(!M.isObject(e))throw I(`.AuthRedirect: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.AuthRedirect;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.url=``),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/AuthRedirect`},e})(),W.AutoRerun=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.interval=0,e.prototype.fragmentId=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.interval!=null&&N.hasOwnProperty.call(e,`interval`)&&!N.is(e.interval,0)&&t.uint32(13).float(e.interval),e.fragmentId!=null&&N.hasOwnProperty.call(e,`fragmentId`)&&e.fragmentId!==``&&t.uint32(18).string(e.fragmentId),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.AutoRerun,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==5)break;N.is(s=e.float(),0)?delete o.interval:o.interval=s;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.fragmentId=s:delete o.fragmentId;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.AutoRerun)return e;if(!M.isObject(e))throw I(`.AutoRerun: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.AutoRerun;return e.interval!=null&&(N.is(z(e.interval),0)||(n.interval=z(e.interval))),e.fragmentId!=null&&(typeof e.fragmentId!=`string`||e.fragmentId.length)&&(n.fragmentId=L(e.fragmentId)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.interval=0,r.fragmentId=``),e.interval!=null&&N.hasOwnProperty.call(e,`interval`)&&(r.interval=t.json&&!B(e.interval)?L(e.interval):e.interval),e.fragmentId!=null&&N.hasOwnProperty.call(e,`fragmentId`)&&(r.fragmentId=e.fragmentId),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/AutoRerun`},e})();var K=W.BackMsg=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.clearCache=null,e.prototype.setRunOnSave=null,e.prototype.stopScript=null,e.prototype.rerunScript=null,e.prototype.loadGitInfo=null,e.prototype.debugDisconnectWebsocket=null,e.prototype.debugShutdownRuntime=null,e.prototype.fileUrlsRequest=null,e.prototype.appHeartbeat=null,e.prototype.backendOperationRequest=null,e.prototype.debugLastBackmsgId=``;let t;return N.defineProperty(e.prototype,`type`,{get:M.oneOfGetter(t=[`clearCache`,`setRunOnSave`,`stopScript`,`rerunScript`,`loadGitInfo`,`debugDisconnectWebsocket`,`debugShutdownRuntime`,`fileUrlsRequest`,`appHeartbeat`,`backendOperationRequest`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.clearCache!=null&&N.hasOwnProperty.call(e,`clearCache`)&&t.uint32(40).bool(e.clearCache),e.setRunOnSave!=null&&N.hasOwnProperty.call(e,`setRunOnSave`)&&t.uint32(48).bool(e.setRunOnSave),e.stopScript!=null&&N.hasOwnProperty.call(e,`stopScript`)&&t.uint32(56).bool(e.stopScript),e.rerunScript!=null&&N.hasOwnProperty.call(e,`rerunScript`)&&W.ClientState.encode(e.rerunScript,t.uint32(90).fork(),n+1).ldelim(),e.loadGitInfo!=null&&N.hasOwnProperty.call(e,`loadGitInfo`)&&t.uint32(96).bool(e.loadGitInfo),e.debugL
1astBackmsgId!=null&&N.hasOwnProperty.call(e,`debugLastBackmsgId`)&&e.debugLastBackmsgId!==``&&t.uint32(106).string(e.debugLastBackmsgId),e.debugDisconnectWebsocket!=null&&N.hasOwnProperty.call(e,`debugDisconnectWebsocket`)&&t.uint32(112).bool(e.debugDisconnectWebsocket),e.debugShutdownRuntime!=null&&N.hasOwnProperty.call(e,`debugShutdownRuntime`)&&t.uint32(120).bool(e.debugShutdownRuntime),e.fileUrlsRequest!=null&&N.hasOwnProperty.call(e,`fileUrlsRequest`)&&W.FileURLsRequest.encode(e.fileUrlsRequest,t.uint32(130).fork(),n+1).ldelim(),e.appHeartbeat!=null&&N.hasOwnProperty.call(e,`appHeartbeat`)&&t.uint32(136).bool(e.appHeartbeat),e.backendOperationRequest!=null&&N.hasOwnProperty.call(e,`backendOperationRequest`)&&W.BackendOperationRequest.encode(e.backendOperationRequest,t.uint32(154).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.BackMsg,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 5:if(a!==0)break;o.clearCache=e.bool(),o.type=`clearCache`;continue;case 6:if(a!==0)break;o.setRunOnSave=e.bool(),o.type=`setRunOnSave`;continue;case 7:if(a!==0)break;o.stopScript=e.bool(),o.type=`stopScript`;continue;case 11:if(a!==2)break;o.rerunScript=W.ClientState.decode(e,e.uint32(),P,r+1,o.rerunScript),o.type=`rerunScript`;continue;case 12:if(a!==0)break;o.loadGitInfo=e.bool(),o.type=`loadGitInfo`;continue;case 14:if(a!==0)break;o.debugDisconnectWebsocket=e.bool(),o.type=`debugDisconnectWebsocket`;continue;case 15:if(a!==0)break;o.debugShutdownRuntime=e.bool(),o.type=`debugShutdownRuntime`;continue;case 16:if(a!==2)break;o.fileUrlsRequest=W.FileURLsRequest.decode(e,e.uint32(),P,r+1,o.fileUrlsRequest),o.type=`fileUrlsRequest`;continue;case 17:if(a!==0)break;o.appHeartbeat=e.bool(),o.type=`appHeartbeat`;continue;case 19:if(a!==2)break;o.backendOperationRequest=W.BackendOperationRequest.decode(e,e.uint32(),P,r+1,o.backendOperationRequest),o.type=`backendOperationRequest`;continue;case 13:if(a!==2)break;(s=e.stringVerify()).length?o.debugLastBackmsgId=s:delete o.debugLastBackmsgId;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.BackMsg)return e;if(!M.isObject(e))throw I(`.BackMsg: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.BackMsg;if(e.clearCache!=null&&(n.clearCache=R(e.clearCache)),e.setRunOnSave!=null&&(n.setRunOnSave=R(e.setRunOnSave)),e.stopScript!=null&&(n.stopScript=R(e.stopScript)),e.rerunScript!=null){if(!M.isObject(e.rerunScript))throw I(`.BackMsg.rerunScript: object expected`);n.rerunScript=W.ClientState.fromObject(e.rerunScript,t+1)}if(e.loadGitInfo!=null&&(n.loadGitInfo=R(e.loadGitInfo)),e.debugDisconnectWebsocket!=null&&(n.debugDisconnectWebsocket=R(e.debugDisconnectWebsocket)),e.debugShutdownRuntime!=null&&(n.debugShutdownRuntime=R(e.debugShutdownRuntime)),e.fileUrlsRequest!=null){if(!M.isObject(e.fileUrlsRequest))throw I(`.BackMsg.fileUrlsRequest: object expected`);n.fileUrlsRequest=W.FileURLsRequest.fromObject(e.fileUrlsRequest,t+1)}if(e.appHeartbeat!=null&&(n.appHeartbeat=R(e.appHeartbeat)),e.backendOperationRequest!=null){if(!M.isObject(e.backendOperationRequest))throw I(`.BackMsg.backendOperationRequest: object expected`);n.backendOperationRequest=W.BackendOperationRequest.fromObject(e.backendOperationRequest,t+1)}return e.debugLastBackmsgId!=null&&(typeof e.debugLastBackmsgId!=`string`||e.debugLastBackmsgId.length)&&(n.debugLastBackmsgId=L(e.debugLastBackmsgId)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};
1return t.defaults&&(r.debugLastBackmsgId=``),e.clearCache!=null&&N.hasOwnProperty.call(e,`clearCache`)&&(r.clearCache=e.clearCache,t.oneofs&&(r.type=`clearCache`)),e.setRunOnSave!=null&&N.hasOwnProperty.call(e,`setRunOnSave`)&&(r.setRunOnSave=e.setRunOnSave,t.oneofs&&(r.type=`setRunOnSave`)),e.stopScript!=null&&N.hasOwnProperty.call(e,`stopScript`)&&(r.stopScript=e.stopScript,t.oneofs&&(r.type=`stopScript`)),e.rerunScript!=null&&N.hasOwnProperty.call(e,`rerunScript`)&&(r.rerunScript=W.ClientState.toObject(e.rerunScript,t,n+1),t.oneofs&&(r.type=`rerunScript`)),e.loadGitInfo!=null&&N.hasOwnProperty.call(e,`loadGitInfo`)&&(r.loadGitInfo=e.loadGitInfo,t.oneofs&&(r.type=`loadGitInfo`)),e.debugLastBackmsgId!=null&&N.hasOwnProperty.call(e,`debugLastBackmsgId`)&&(r.debugLastBackmsgId=e.debugLastBackmsgId),e.debugDisconnectWebsocket!=null&&N.hasOwnProperty.call(e,`debugDisconnectWebsocket`)&&(r.debugDisconnectWebsocket=e.debugDisconnectWebsocket,t.oneofs&&(r.type=`debugDisconnectWebsocket`)),e.debugShutdownRuntime!=null&&N.hasOwnProperty.call(e,`debugShutdownRuntime`)&&(r.debugShutdownRuntime=e.debugShutdownRuntime,t.oneofs&&(r.type=`debugShutdownRuntime`)),e.fileUrlsRequest!=null&&N.hasOwnProperty.call(e,`fileUrlsRequest`)&&(r.fileUrlsRequest=W.FileURLsRequest.toObject(e.fileUrlsRequest,t,n+1),t.oneofs&&(r.type=`fileUrlsRequest`)),e.appHeartbeat!=null&&N.hasOwnProperty.call(e,`appHeartbeat`)&&(r.appHeartbeat=e.appHeartbeat,t.oneofs&&(r.type=`appHeartbeat`)),e.backendOperationRequest!=null&&N.hasOwnProperty.call(e,`backendOperationRequest`)&&(r.backendOperationRequest=W.BackendOperationRequest.toObject(e.backendOperationRequest,t,n+1),t.oneofs&&(r.type=`backendOperationRequest`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/BackMsg`},e})(),q=W.BackendOperationRequest=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.requestId=``,e.prototype.sessionId=``,e.prototype.deferredFile=null,e.prototype.installSkills=null,e.prototype.dismissSkillsNudge=null;let t;return N.defineProperty(e.prototype,`payload`,{get:M.oneOfGetter(t=[`deferredFile`,`installSkills`,`dismissSkillsNudge`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.requestId!=null&&N.hasOwnProperty.call(e,`requestId`)&&e.requestId!==``&&t.uint32(10).string(e.requestId),e.sessionId!=null&&N.hasOwnProperty.call(e,`sessionId`)&&e.sessionId!==``&&t.uint32(18).string(e.sessionId),e.deferredFile!=null&&N.hasOwnProperty.call(e,`deferredFile`)&&W.DeferredFileRequestPayload.encode(e.deferredFile,t.uint32(26).fork(),n+1).ldelim(),e.installSkills!=null&&N.hasOwnProperty.call(e,`installSkills`)&&W.InstallSkillsRequestPayload.encode(e.installSkills,t.uint32(34).fork(),n+1).ldelim(),e.dismissSkillsNudge!=null&&N.hasOwnProperty.call(e,`dismissSkillsNudge`)&&W.DismissSkillsNudgeRequestPayload.encode(e.dismissSkillsNudge,t.uint32(42).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.BackendOperationRequest,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.requestId=s:delete o.requestId;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.sessionId=s:delete o.sessionId;continue;case 3:if(a!==2)break;o.deferredFile=W.DeferredFileRequestPayload.decode(e,e.uint32(),P,r+1,o.deferredFile),o.payload=`deferredFile`;continue;case 4:if(a!==2)break;o.installSkills=W.InstallSkillsRequestPayload.decode(e,e.uint32(),P,r+1,o.installSkills),o.payload=`installSkills`;continue;case 5:if(a!==2)break;o.dismissSkillsNudge=W.DismissSkillsNudgeRequestPayload.decode(e,e.uint32(),P,r+1,o.dismissSkillsNudge),o.payload=`dismissSkillsNudge`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.BackendOperationRequest)return e;if(!M.isObject(e))throw I(`.BackendOperationRequest: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.BackendOperationRequest;if(e.requestId!=null&&(typeof e.requestId!=`string`||e.requestId.length)&&(n.requestId=L(e.requestId)),e.sessionId!=null&&(typeof e.sessionId!=`string`||e.sessionId.length)&&(n.sessionId=L(e.sessionId)),e.deferredFile!=null){if(!M.isObject(e.deferredFile))throw I(`.BackendOperationRequest.deferredFile: object expected`);n.deferredFile=W.DeferredFileRequestPayload.fromObject(e.deferredFile,t+1)}if(e.installSkills!=null){if(!M.isObject(e.installSkills))throw I(`.BackendOperationRequest.installSkills: object expected`);n.installSkills=W.InstallSkillsRequestPayload.fromObject(e.installSkills,t+1)}if(e.dismissSkillsNudge!=null){if(!M.isObject(e.dismissSkillsNudge))throw I(`.BackendOperationRequest.dismissSkillsNudge: object expected`);
1n.dismissSkillsNudge=W.DismissSkillsNudgeRequestPayload.fromObject(e.dismissSkillsNudge,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.requestId=``,r.sessionId=``),e.requestId!=null&&N.hasOwnProperty.call(e,`requestId`)&&(r.requestId=e.requestId),e.sessionId!=null&&N.hasOwnProperty.call(e,`sessionId`)&&(r.sessionId=e.sessionId),e.deferredFile!=null&&N.hasOwnProperty.call(e,`deferredFile`)&&(r.deferredFile=W.DeferredFileRequestPayload.toObject(e.deferredFile,t,n+1),t.oneofs&&(r.payload=`deferredFile`)),e.installSkills!=null&&N.hasOwnProperty.call(e,`installSkills`)&&(r.installSkills=W.InstallSkillsRequestPayload.toObject(e.installSkills,t,n+1),t.oneofs&&(r.payload=`installSkills`)),e.dismissSkillsNudge!=null&&N.hasOwnProperty.call(e,`dismissSkillsNudge`)&&(r.dismissSkillsNudge=W.DismissSkillsNudgeRequestPayload.toObject(e.dismissSkillsNudge,t,n+1),t.oneofs&&(r.payload=`dismissSkillsNudge`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/BackendOperationRequest`},e})();W.DeferredFileRequestPayload=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.fileId=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.fileId!=null&&N.hasOwnProperty.call(e,`fileId`)&&e.fileId!==``&&t.uint32(10).string(e.fileId),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DeferredFileRequestPayload,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.fileId=s:delete o.fileId;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DeferredFileRequestPayload)return e;if(!M.isObject(e))throw I(`.DeferredFileRequestPayload: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.DeferredFileRequestPayload;return e.fileId!=null&&(typeof e.fileId!=`string`||e.fileId.length)&&(n.fileId=L(e.fileId)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.fileId=``),e.fileId!=null&&N.hasOwnProperty.call(e,`fileId`)&&(r.fileId=e.fileId),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DeferredFileRequestPayload`},e})(),W.InstallSkillsRequestPayload=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.InstallSkillsRequestPayload;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}e.skipType(i&7,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.InstallSkillsRequestPayload)return e;if(!M.isObject(e))throw I(`.InstallSkillsRequestPayload: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);return new W.InstallSkillsRequestPayload},e.toObject=function(){return{}},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/InstallSkillsRequestPayload`},e})(),W.DismissSkillsNudgeRequestPayload=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DismissSkillsNudgeRequestPayload;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}e.skipType(i&7,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DismissSkillsNudgeRequestPayload)return e;if(!M.isObject(e))throw I(`.DismissSkillsNudgeRequestPayload: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);return new W.DismissSkillsNudgeRequestPayload},e.toObject=function(){return{}},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DismissSkillsNudgeRequestPayload`},e})(),W.ContextInfo=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.timezone=null,e.prototype.timezoneOffset=null,e.prototype.locale=null,e.prototype.url=null,e.prototype.isEmbedded=null,e.prototype.colorScheme=null;let t;return N.defineProperty(e.prototype,`_timezone`,{get:M.oneOfGetter(t=[`timezone`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_timezoneOffset`,{get:M.oneOfGetter(t=[`timezoneOffset`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_locale`,{get:M.oneOfGetter(t=[`locale`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_url`,{get:M.oneOfGetter(t=[`url`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_isEmbedded`,{get:M.oneOfGetter(t=[`isEmbedded`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_colorScheme`,{get:M.oneOfGetter(t=[`colorScheme`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.timezone!=null&&N.hasOwnProperty.call(e,`timezone`)&&t.uint32(10).string(e.timezone),e.timezoneOffset!=null&&N.hasOwnProperty.call(e,`timezoneOffset`)&&t.uint32(16).int32(e.timezoneOffset),e.locale!=null&&N.hasOwnProperty.call(e,`locale`)&&t.uint32(26).string(e.locale),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&t.uint32(34).string(e.url),e.isEmbedded!=null&&N.hasOwnProperty.call(e,`isEmbedded`)&&t.uint32(40).bool(e.isEmbedded),e.colorScheme!=null&&N.hasOwnProperty.call(e,`colorScheme`)&&t.uint32(50).string(e.colorScheme),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ContextInfo;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.timezone=e.stringVerify(),o._timezone=`timezone`;continue;case 2:if(a!==0)break;o.timezoneOffset=e.int32(),o._timezoneOffset=`timezoneOffset`;
1continue;case 3:if(a!==2)break;o.locale=e.stringVerify(),o._locale=`locale`;continue;case 4:if(a!==2)break;o.url=e.stringVerify(),o._url=`url`;continue;case 5:if(a!==0)break;o.isEmbedded=e.bool(),o._isEmbedded=`isEmbedded`;continue;case 6:if(a!==2)break;o.colorScheme=e.stringVerify(),o._colorScheme=`colorScheme`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ContextInfo)return e;if(!M.isObject(e))throw I(`.ContextInfo: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ContextInfo;return e.timezone!=null&&(n.timezone=L(e.timezone)),e.timezoneOffset!=null&&(n.timezoneOffset=e.timezoneOffset|0),e.locale!=null&&(n.locale=L(e.locale)),e.url!=null&&(n.url=L(e.url)),e.isEmbedded!=null&&(n.isEmbedded=R(e.isEmbedded)),e.colorScheme!=null&&(n.colorScheme=L(e.colorScheme)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.timezone!=null&&N.hasOwnProperty.call(e,`timezone`)&&(r.timezone=e.timezone),e.timezoneOffset!=null&&N.hasOwnProperty.call(e,`timezoneOffset`)&&(r.timezoneOffset=e.timezoneOffset),e.locale!=null&&N.hasOwnProperty.call(e,`locale`)&&(r.locale=e.locale),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),e.isEmbedded!=null&&N.hasOwnProperty.call(e,`isEmbedded`)&&(r.isEmbedded=e.isEmbedded),e.colorScheme!=null&&N.hasOwnProperty.call(e,`colorScheme`)&&(r.colorScheme=e.colorScheme),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ContextInfo`},e})(),W.ClientState=(()=>{let e=function(e){if(this.cachedMessageHashes=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.queryString=``,e.prototype.widgetStates=null,e.prototype.pageScriptHash=``,e.prototype.pageName=``,e.prototype.fragmentId=``,e.prototype.isAutoRerun=!1,e.prototype.cachedMessageHashes=M.emptyArray,e.prototype.contextInfo=null,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.queryString!=null&&N.hasOwnProperty.call(e,`queryString`)&&e.queryString!==``&&t.uint32(10).string(e.queryString),e.widgetStates!=null&&N.hasOwnProperty.call(e,`widgetStates`)&&W.WidgetStates.encode(e.widgetStates,t.uint32(18).fork(),n+1).ldelim(),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&e.pageScriptHash!==``&&t.uint32(26).string(e.pageScriptHash),e.pageName!=null&&N.hasOwnProperty.call(e,`pageName`)&&e.pageName!==``&&t.uint32(34).string(e.pageName),e.fragmentId!=null&&N.hasOwnProperty.call(e,`fragmentId`)&&e.fragmentId!==``&&t.uint32(42).string(e.fragmentId),e.isAutoRerun!=null&&N.hasOwnProperty.call(e,`isAutoRerun`)&&e.isAutoRerun!==!1&&t.uint32(48).bool(e.isAutoRerun),e.cachedMessageHashes!=null&&e.cachedMessageHashes.length)for(let n=0;n<e.cachedMessageHashes.length;++n)t.uint32(58).string(e.cachedMessageHashes[n]);if(e.contextInfo!=null&&N.hasOwnProperty.call(e,`contextInfo`)&&W.ContextInfo.encode(e.contextInfo,t.uint32(66).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ClientState,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.queryString=s:delete o.queryString;continue;case 2:if(a!==2)break;o.widgetStates=W.WidgetStates.decode(e,e.uint32(),P,r+1,o.widgetStates);continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.pageName=s:delete o.pageName;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.fragmentId=s:delete o.fragmentId;continue;case 6:if(a!==0)break;(s=e.bool())?o.isAutoRerun=s:delete o.isAutoRerun;continue;case 7:if(a!==2)break;o.cachedMessageHashes&&o.cachedMessageHashes.length||(o.cachedMessageHashes=[]),o.cachedMessageHashes.push(e.stringVerify());continue;case 8:if(a!==2)break;o.contextInfo=W.ContextInfo.decode(e,e.uint32(),P,r+1,o.contextInfo);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ClientState)return e;if(!M.isObject(e))throw I(`.ClientState: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ClientState;if(e.queryString!=null&&(typeof e.queryString!=`string`||e.queryString.length)&&(n.queryString=L(e.queryString)),e.widgetStates!=null){if(!M.isObject(e.widgetStates))throw I(`.ClientState.widgetStates: object expected`);n.widgetStates=W.WidgetStates.fromObject(e.widgetStates,t+1)}if(e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=L(e.pageScriptHash)),e.pageName!=null&&(typeof e.pageName!=`string`||e.pageName.length)&&(n.pageName=L(e.pageName)),e.fragmentId!=null&&(typeof e.fragmentId!=`string`||e.fragmentId.length)&&(n.fragmentId=L(e.fragmentId)),e.isAutoRerun!=null&&e.isAutoRerun&&(n.isAutoRerun=R(e.isAutoRerun)),e.cachedMessageHashes
1){if(!V.isArray(e.cachedMessageHashes))throw I(`.ClientState.cachedMessageHashes: array expected`);n.cachedMessageHashes=V(e.cachedMessageHashes.length);for(let t=0;t<e.cachedMessageHashes.length;++t)n.cachedMessageHashes[t]=L(e.cachedMessageHashes[t])}if(e.contextInfo!=null){if(!M.isObject(e.contextInfo))throw I(`.ClientState.contextInfo: object expected`);n.contextInfo=W.ContextInfo.fromObject(e.contextInfo,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.cachedMessageHashes=[]),t.defaults&&(r.queryString=``,r.widgetStates=null,r.pageScriptHash=``,r.pageName=``,r.fragmentId=``,r.isAutoRerun=!1,r.contextInfo=null),e.queryString!=null&&N.hasOwnProperty.call(e,`queryString`)&&(r.queryString=e.queryString),e.widgetStates!=null&&N.hasOwnProperty.call(e,`widgetStates`)&&(r.widgetStates=W.WidgetStates.toObject(e.widgetStates,t,n+1)),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&(r.pageScriptHash=e.pageScriptHash),e.pageName!=null&&N.hasOwnProperty.call(e,`pageName`)&&(r.pageName=e.pageName),e.fragmentId!=null&&N.hasOwnProperty.call(e,`fragmentId`)&&(r.fragmentId=e.fragmentId),e.isAutoRerun!=null&&N.hasOwnProperty.call(e,`isAutoRerun`)&&(r.isAutoRerun=e.isAutoRerun),e.cachedMessageHashes&&e.cachedMessageHashes.length){r.cachedMessageHashes=V(e.cachedMessageHashes.length);for(let t=0;t<e.cachedMessageHashes.length;++t)r.cachedMessageHashes[t]=e.cachedMessageHashes[t]}return e.contextInfo!=null&&N.hasOwnProperty.call(e,`contextInfo`)&&(r.contextInfo=W.ContextInfo.toObject(e.contextInfo,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ClientState`},e})();var J=W.WidgetStates=(()=>{let e=function(e){if(this.widgets=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.widgets=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.widgets!=null&&e.widgets.length)for(let r=0;r<e.widgets.length;++r)W.WidgetState.encode(e.widgets[r],t.uint32(10).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.WidgetStates;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.widgets&&o.widgets.length||(o.widgets=[]),o.widgets.push(W.WidgetState.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.WidgetStates)return e;if(!M.isObject(e))throw I(`.WidgetStates: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.WidgetStates;if(e.widgets){if(!V.isArray(e.widgets))throw I(`.WidgetStates.widgets: array expected`);n.widgets=V(e.widgets.length);for(let r=0;r<e.widgets.length;++r){if(!M.isObject(e.widgets[r]))throw I(`.WidgetStates.widgets: object expected`);n.widgets[r]=W.WidgetState.fromObject(e.widgets[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.widgets=[]),e.widgets&&e.widgets.length){r.widgets=V(e.widgets.length);for(let i=0;i<e.widgets.length;++i)r.widgets[i]=W.WidgetState.toObject(e.widgets[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/WidgetStates`},e})(),Y=W.WidgetState=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.triggerValue=null,e.prototype.boolValue=null,e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.stringValue=null,e.prototype.doubleArrayValue=null,e.prototype.intArrayValue=null,e.prototype.stringArrayValue=null,e.prototype.jsonValue=null,e.prototype.arrowValue=null,e.prototype.bytesValue=null,e.prototype.fileUploaderStateValue=null,e.prototype.stringTriggerValue=null,e.prototype.chatInputValue=null,e.prototype.jsonTriggerValue=null;let t;return N.defineProperty(e.prototype,`value`,{get:M.oneOfGetter(t=[`triggerValue`,`boolValue`,`doubleValue`,`intValue`,`stringValue`,`doubleArrayValue`,`intArrayValue`,`stringArrayValue`,`jsonValue`,`arrowValue`,`bytesValue`,`fileUploaderStateValue`,`stringTriggerValue`,`chatInputValue`,`jsonTriggerValue`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.triggerValue!=null&&N.hasOwnProperty.call(e,`triggerValue`)&&t.uint32(16).bool(e.triggerValue),e.boolValue!=null&&N.hasOwnProperty.call(e,`boolValue`)&&t.uint32(24).bool(e.boolValue),e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(33).double(e.doubleValue),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&t.uint32(40).sint64(e.intValue),e.stringValue!=null&&N.hasOwnProperty.call(e,`stringValue`)&&t.uint32(50).string(e.stringValue),e.doubleArrayValue!=null&&N.hasOwnProperty.call(e,`doubleArrayValue`)&&W.DoubleArray.encode(e.doubleArrayValue,t.uint32(58).fork(),n+1).ldelim(),e.intArrayValue!=null&&N.hasOwnProperty.call(e,`intArrayValue`)&&W.SInt64Array.encode(e.intArrayValue,t.uint32(66).fork(),n+1).ldelim(),e.stringArrayValue!=null&&N.hasOwnProperty.call(e,`stringArrayValue`)&&W.StringArray.encode(e.stringArrayValue,t.uint32(74).fork(),n+1).ldelim(),e.jsonValue!=null&&N.hasOwnProperty.call(e,`jsonValue`)&&t.uint32(82).string(e.jsonValue),e.arrowValue!=null&&N.hasOwnProperty.call(e,`arrowValue`)&&W.ArrowTable.encode(e.arrowValue,t.uint32(90).fork(),n+1).ldelim(),e.bytesValue!=null&&N.hasOwnProperty.call(e,`bytesValue`)&&t.uint32(98).bytes(e.bytesValue),e.fileUploaderStateValue!=null&&N.hasOwnProperty.call(e,`fileUploaderStateValue`)&&W.FileUploaderState.encode(e.fileUploaderStateValue,t.uint32(106).fork(),n+1).ldelim(),e.stringTriggerValue!=null&&N.hasOwnProperty.call(e,`stringTriggerValue`)&&W.StringTriggerValue.encode(e.stringTriggerValue,t.uint32(114).fork(),n+1).ldelim(),e.chatInputValue!=null&&N.hasOwnProperty.call(e,`chatInputValue`)&&W.ChatInputValue.encode(e.chatInputValue,t.uint32(122).fork(),n+1).ldelim(),e.jsonTriggerValue!=null&&N.hasOwnProperty.call(e,`jsonTriggerValue`)&&t.uint32(130).string(e.jsonTriggerValue),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.WidgetState,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==0)break;o.triggerValue=e.bool(),o.value=`triggerValue`;continue;case 3:if(a!==0)break;o.boolValue=e.bool(),o.value=`boolValue`;continue;case 4:if(a!==1)break;o.doubleValue=e.double(),o.value=`doubleValue`;continue;case 5:if(a!==0)break;o.intValue=e.sint64(),o.value=`intValue`;continue;case 6:if(a!==2)break;o.stringValue=e.stringVerify(),o.value=`stringValue`;continue;case 7:if(a!==2)break;o.doubleArrayValue=W.DoubleArray.decode(e,e.uint32(),P,r+1,o.doubleArrayValue),o.value=`doubleArrayValue`;continue;case 8:if(a!==2)break;o.intArrayValue=W.SInt64Array.decode(e,e.uint32(),P,r+1,o.intArrayValue),o.value=`intArrayValue`;continue;
1case 9:if(a!==2)break;o.stringArrayValue=W.StringArray.decode(e,e.uint32(),P,r+1,o.stringArrayValue),o.value=`stringArrayValue`;continue;case 10:if(a!==2)break;o.jsonValue=e.stringVerify(),o.value=`jsonValue`;continue;case 11:if(a!==2)break;o.arrowValue=W.ArrowTable.decode(e,e.uint32(),P,r+1,o.arrowValue),o.value=`arrowValue`;continue;case 12:if(a!==2)break;o.bytesValue=e.bytes(),o.value=`bytesValue`;continue;case 13:if(a!==2)break;o.fileUploaderStateValue=W.FileUploaderState.decode(e,e.uint32(),P,r+1,o.fileUploaderStateValue),o.value=`fileUploaderStateValue`;continue;case 14:if(a!==2)break;o.stringTriggerValue=W.StringTriggerValue.decode(e,e.uint32(),P,r+1,o.stringTriggerValue),o.value=`stringTriggerValue`;continue;case 15:if(a!==2)break;o.chatInputValue=W.ChatInputValue.decode(e,e.uint32(),P,r+1,o.chatInputValue),o.value=`chatInputValue`;continue;case 16:if(a!==2)break;o.jsonTriggerValue=e.stringVerify(),o.value=`jsonTriggerValue`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.WidgetState)return e;if(!M.isObject(e))throw I(`.WidgetState: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.WidgetState;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.triggerValue!=null&&(n.triggerValue=R(e.triggerValue)),e.boolValue!=null&&(n.boolValue=R(e.boolValue)),e.doubleValue!=null&&(n.doubleValue=z(e.doubleValue)),e.intValue!=null&&(M.Long?n.intValue=M.Long.fromValue(e.intValue,!1):typeof e.intValue==`string`?n.intValue=H(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.stringValue!=null&&(n.stringValue=L(e.stringValue)),e.doubleArrayValue!=null){if(!M.isObject(e.doubleArrayValue))throw I(`.WidgetState.doubleArrayValue: object expected`);n.doubleArrayValue=W.DoubleArray.fromObject(e.doubleArrayValue,t+1)}if(e.intArrayValue!=null){if(!M.isObject(e.intArrayValue))throw I(`.WidgetState.intArrayValue: object expected`);n.intArrayValue=W.SInt64Array.fromObject(e.intArrayValue,t+1)}if(e.stringArrayValue!=null){if(!M.isObject(e.stringArrayValue))throw I(`.WidgetState.stringArrayValue: object expected`);n.stringArrayValue=W.StringArray.fromObject(e.stringArrayValue,t+1)}if(e.jsonValue!=null&&(n.jsonValue=L(e.jsonValue)),e.arrowValue!=null){if(!M.isObject(e.arrowValue))throw I(`.WidgetState.arrowValue: object expected`);n.arrowValue=W.ArrowTable.fromObject(e.arrowValue,t+1)}if(e.bytesValue!=null&&(typeof e.bytesValue==`string`?M.base64.decode(e.bytesValue,n.bytesValue=M.newBuffer(M.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(n.bytesValue=e.bytesValue)),e.fileUploaderStateValue!=null){if(!M.isObject(e.fileUploaderStateValue))throw I(`.WidgetState.fileUploaderStateValue: object expected`);n.fileUploaderStateValue=W.FileUploaderState.fromObject(e.fileUploaderStateValue,t+1)}if(e.stringTriggerValue!=null){if(!M.isObject(e.stringTriggerValue))throw I(`.WidgetState.stringTriggerValue: object expected`);n.stringTriggerValue=W.StringTriggerValue.fromObject(e.stringTriggerValue,t+1)}if(e.chatInputValue!=null){if(!M.isObject(e.chatInputValue))throw I(`.WidgetState.chatInputValue: object expected`);n.chatInputValue=W.ChatInputValue.fromObject(e.chatInputValue,t+1)}return e.jsonTriggerValue!=null&&(n.jsonTriggerValue=L(e.jsonTriggerValue)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.triggerValue!=null&&N.hasOwnProperty.call(e,`triggerValue`)&&(r.triggerValue=e.triggerValue,t.oneofs&&(r.value=`triggerValue`)),e.boolValue!=null&&N.hasOwnProperty.call(e,`boolValue`)&&(r.boolValue=e.boolValue,t.oneofs&&(r.value=`boolValue`)),e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&(r.doubleValue=t.json&&!B(e.doubleValue)?L(e.doubleValue):e.doubleValue,t.oneofs&&(r.value=`doubleValue`)),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&(U!==void 0&&t.longs===U?r.intValue=typeof e.intValue==`number`?U(e.intValue):M.Long.fromBits(e.intValue.low>>>0,e.intValue.high>>>0,!1).toBigInt():typeof e.intValue==`number`?r.intValue=t.longs===L?L(e.intValue):e.intValue:r.intValue=t.longs===L?M.Long.prototype.toString.call(e.intValue):t.longs===z?new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(r.value=`intValue`)),e.stringValue!=null&&N.hasOwnProperty.call(e,`stringValue`)&&(r.stringValue=e.stringValue,t.oneofs&&(r.value=`stringValue`)),e.doubleArrayValue!=null&&N.hasOwnProperty.call(e,`doubleArrayValue`)&&(r.doubleArrayValue=W.DoubleArray.toObject(e.doubleArrayValue,t,n+1),t.oneofs&&(r.value=`doubleArrayValue`)),e.intArrayValue!=null&&N.hasOwnProperty.call(e,`intArrayValue`)&&(r.intArrayValue=W.SInt64Array.toObject(e.intArrayValue,t,n+1),t.oneofs&&(r.value=`intArrayValue`)),e.stringArrayValue!=null&&N.hasOwnProperty.call(e,`stringArrayValue`)&&(r.stringArrayValue=W.StringArray.toObject(e.stringArrayValue,t,n+1),t.oneofs&&(r.value=`stringArrayValue`)),e.jsonValue!=null&&N.hasOwnProperty.call(e,`jsonValue`)&&(r.jsonValue=e.jsonValue,t.oneofs&&(r.value=`jsonValue`)),e.arrowValue!=null&&N.hasOwnProperty.call(e,`arrowValue`)&&(r.arrowValue=W.ArrowTable.toObject(e.arrowValue,t,n+1),t.oneofs&&(r.value=`arrowValue`)),e.bytesValue!=null&&N.hasOwnProperty.call(e,`bytesValue`)&&(r.bytesValue=t.bytes===L?M.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===V?V.prototype.slice.call(e.bytesValue):e.bytesValue,t.oneofs&&(r.value=`bytesValue`)),e.fileUploaderStateValue!=null&&N.hasOwnProperty.call(e,`fileUploaderStateValue`)&&(r.fileUploaderStateValue=W.FileUploaderState.toObject(e.fileUploaderStateValue,t,n+1),t.oneofs&&(r.value=`fileUploaderStateValue`)),e.stringTriggerValue!=null&&N.hasOwnProperty.call(e,`stringTriggerValue`)&&(r.stringTriggerValue=W.StringTriggerValue.toObject(e.stringTriggerValue,t,n+1),t.oneofs&&(r.value=`stringTriggerValue`)),e.chatInputValue!=null&&N.hasOwnProperty.call(e,`chatInputValue`)&&(r.chatInputValue=W.ChatInputValue.toObject(e.chatInputValue,t,n+1),t.oneofs&&(r.value=`chatInputValue`)),e.jsonTriggerValue!=null&&N.hasOwnProperty.call(e,`jsonTriggerValue`)&&(r.jsonTriggerValue=e.jsonTriggerValue,t.oneofs&&(r.value=`jsonTriggerValue`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/WidgetState`},e})(),X=W.StringArray=(()=>{let e=function(e){if(this.data=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&e.data.length)for(let n=0;n<e.data.length;++n)t.uint32(10).string(e.data[n]);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.StringArray;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.stringVerify());continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.StringArray)return e;if(!M.isObject(e))throw I(`.StringArray: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.StringArray;
1if(e.data){if(!V.isArray(e.data))throw I(`.StringArray.data: array expected`);n.data=V(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=L(e.data[t])}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.data=[]),e.data&&e.data.length){r.data=V(e.data.length);for(let t=0;t<e.data.length;++t)r.data[t]=e.data[t]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/StringArray`},e})(),Z=W.DoubleArray=(()=>{let e=function(e){if(this.data=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.double(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DoubleArray;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.double());continue}if(a!==1)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.double());continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DoubleArray)return e;if(!M.isObject(e))throw I(`.DoubleArray: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.DoubleArray;
1if(e.data){if(!V.isArray(e.data))throw I(`.DoubleArray.data: array expected`);n.data=V(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=z(e.data[t])}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.data=[]),e.data&&e.data.length){r.data=V(e.data.length);for(let n=0;n<e.data.length;++n)r.data[n]=t.json&&!B(e.data[n])?L(e.data[n]):e.data[n]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DoubleArray`},e})();W.Int32Array=(()=>{let e=function(e){if(this.data=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.int32(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Int32Array;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.int32());continue}if(a!==0)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.int32());continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Int32Array)return e;if(!M.isObject(e))throw I(`.Int32Array: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Int32Array;if(e.data){if(!V.isArray(e.data))throw I(`.Int32Array.data: array expected`);n.data=V(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]|0}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.data=[]),e.data&&e.data.length){r.data=V(e.data.length);for(let t=0;t<e.data.length;++t)r.data[t]=e.data[t]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Int32Array`},e})(),W.Int64Array=(()=>{let e=function(e){if(this.data=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.int64(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Int64Array;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.int64());continue}if(a!==0)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.int64());continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Int64Array)return e;if(!M.isObject(e))throw I(`.Int64Array: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Int64Array;if(e.data){if(!V.isArray(e.data))throw I(`.Int64Array.data: array expected`);n.data=V(e.data.length);for(let t=0;t<e.data.length;++t)M.Long?n.data[t]=M.Long.fromValue(e.data[t],!1):typeof e.data[t]==`string`?n.data[t]=H(e.data[t],10):typeof e.data[t]==`number`?n.data[t]=e.data[t]:typeof e.data[t]==`object`&&(n.data[t]=new M.LongBits(e.data[t].low>>>0,e.data[t].high>>>0).toNumber())}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.data=[]),e.data&&e.data.length){r.data=V(e.data.length);for(let n=0;n<e.data.length;++n)U!==void 0&&t.longs===U?r.data[n]=typeof e.data[n]==`number`?U(e.data[n]):M.Long.fromBits(e.data[n].low>>>0,e.data[n].high>>>0,!1).toBigInt():typeof e.data[n]==`number`?r.data[n]=t.longs===L?L(e.data[n]):e.data[n]:r.data[n]=t.longs===L?M.Long.prototype.toString.call(e.data[n]):t.longs===z?new M.LongBits(e.data[n].low>>>0,e.data[n].high>>>0).toNumber():e.data[n]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Int64Array`},e})();var Q=W.SInt64Array=(()=>{let e=function(e){if(this.data=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.sint64(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.SInt64Array;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.sint64());continue}if(a!==0)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.sint64());continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.SInt64Array)return e;if(!M.isObject(e))throw I(`.SInt64Array: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.SInt64Array;
1if(e.data){if(!V.isArray(e.data))throw I(`.SInt64Array.data: array expected`);n.data=V(e.data.length);for(let t=0;t<e.data.length;++t)M.Long?n.data[t]=M.Long.fromValue(e.data[t],!1):typeof e.data[t]==`string`?n.data[t]=H(e.data[t],10):typeof e.data[t]==`number`?n.data[t]=e.data[t]:typeof e.data[t]==`object`&&(n.data[t]=new M.LongBits(e.data[t].low>>>0,e.data[t].high>>>0).toNumber())}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.data=[]),e.data&&e.data.length){r.data=V(e.data.length);for(let n=0;n<e.data.length;++n)U!==void 0&&t.longs===U?r.data[n]=typeof e.data[n]==`number`?U(e.data[n]):M.Long.fromBits(e.data[n].low>>>0,e.data[n].high>>>0,!1).toBigInt():typeof e.data[n]==`number`?r.data[n]=t.longs===L?L(e.data[n]):e.data[n]:r.data[n]=t.longs===L?M.Long.prototype.toString.call(e.data[n]):t.longs===z?new M.LongBits(e.data[n].low>>>0,e.data[n].high>>>0).toNumber():e.data[n]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/SInt64Array`},e})();W.UInt32Array=(()=>{let e=function(e){if(this.data=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.uint32(e.data[n]);t.ldelim()}if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.UInt32Array;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a===2){o.data&&o.data.length||(o.data=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.data.push(e.uint32());continue}if(a!==0)break;o.data&&o.data.length||(o.data=[]),o.data.push(e.uint32());continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.UInt32Array)return e;if(!M.isObject(e))throw I(`.UInt32Array: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.UInt32Array;if(e.data){if(!V.isArray(e.data))throw I(`.UInt32Array.data: array expected`);n.data=V(e.data.length);for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]>>>0}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.data=[]),e.data&&e.data.length){r.data=V(e.data.length);for(let t=0;t<e.data.length;++t)r.data[t]=e.data[t]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/UInt32Array`},e})();var ne=W.StringTriggerValue=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.data=null;let t;return N.defineProperty(e.prototype,`_data`,{get:M.oneOfGetter(t=[`data`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&N.hasOwnProperty.call(e,`data`)&&t.uint32(10).string(e.data),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.StringTriggerValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.data=e.stringVerify(),o._data=`data`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.StringTriggerValue)return e;if(!M.isObject(e))throw I(`.StringTriggerValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.StringTriggerValue;return e.data!=null&&(n.data=L(e.data)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.data!=null&&N.hasOwnProperty.call(e,`data`)&&(r.data=e.data),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/StringTriggerValue`},e})();W.FileURLsRequest=(()=>{let e=function(e){if(this.fileNames=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.requestId=``,e.prototype.fileNames=M.emptyArray,e.prototype.sessionId=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.requestId!=null&&N.hasOwnProperty.call(e,`requestId`)&&e.requestId!==``&&t.uint32(10).string(e.requestId),e.fileNames!=null&&e.fileNames.length)for(let n=0;n<e.fileNames.length;++n)t.uint32(18).string(e.fileNames[n]);if(e.sessionId!=null&&N.hasOwnProperty.call(e,`sessionId`)&&e.sessionId!==``&&t.uint32(26).string(e.sessionId),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.FileURLsRequest,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.requestId=s:delete o.requestId;continue;case 2:if(a!==2)break;o.fileNames&&o.fileNames.length||(o.fileNames=[]),o.fileNames.push(e.stringVerify());continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.sessionId=s:delete o.sessionId;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.FileURLsRequest)return e;if(!M.isObject(e))throw I(`.FileURLsRequest: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.FileURLsRequest;if(e.requestId!=null&&(typeof e.requestId!=`string`||e.requestId.length)&&(n.requestId=L(e.requestId)),e.fileNames){if
1(!V.isArray(e.fileNames))throw I(`.FileURLsRequest.fileNames: array expected`);n.fileNames=V(e.fileNames.length);for(let t=0;t<e.fileNames.length;++t)n.fileNames[t]=L(e.fileNames[t])}return e.sessionId!=null&&(typeof e.sessionId!=`string`||e.sessionId.length)&&(n.sessionId=L(e.sessionId)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.fileNames=[]),t.defaults&&(r.requestId=``,r.sessionId=``),e.requestId!=null&&N.hasOwnProperty.call(e,`requestId`)&&(r.requestId=e.requestId),e.fileNames&&e.fileNames.length){r.fileNames=V(e.fileNames.length);for(let t=0;t<e.fileNames.length;++t)r.fileNames[t]=e.fileNames[t]}return e.sessionId!=null&&N.hasOwnProperty.call(e,`sessionId`)&&(r.sessionId=e.sessionId),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/FileURLsRequest`},e})(),W.FileURLs=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.fileId=``,e.prototype.uploadUrl=``,e.prototype.deleteUrl=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.fileId!=null&&N.hasOwnProperty.call(e,`fileId`)&&e.fileId!==``&&t.uint32(10).string(e.fileId),e.uploadUrl!=null&&N.hasOwnProperty.call(e,`uploadUrl`)&&e.uploadUrl!==``&&t.uint32(18).string(e.uploadUrl),e.deleteUrl!=null&&N.hasOwnProperty.call(e,`deleteUrl`)&&e.deleteUrl!==``&&t.uint32(26).string(e.deleteUrl),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.FileURLs,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.fileId=s:delete o.fileId;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.uploadUrl=s:delete o.uploadUrl;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.deleteUrl=s:delete o.deleteUrl;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.FileURLs)return e;if(!M.isObject(e))throw I(`.FileURLs: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.FileURLs;return e.fileId!=null&&(typeof e.fileId!=`string`||e.fileId.length)&&(n.fileId=L(e.fileId)),e.uploadUrl!=null&&(typeof e.uploadUrl!=`string`||e.uploadUrl.length)&&(n.uploadUrl=L(e.uploadUrl)),e.deleteUrl!=null&&(typeof e.deleteUrl!=`string`||e.deleteUrl.length)&&(n.deleteUrl=L(e.deleteUrl)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.fileId=``,r.uploadUrl=``,r.deleteUrl=``),e.fileId!=null&&N.hasOwnProperty.call(e,`fileId`)&&(r.fileId=e.fileId),e.uploadUrl!=null&&N.hasOwnProperty.call(e,`uploadUrl`)&&(r.uploadUrl=e.uploadUrl),e.deleteUrl!=null&&N.hasOwnProperty.call(e,`deleteUrl`)&&(r.deleteUrl=e.deleteUrl),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/FileURLs`},e})(),W.FileURLsResponse=(()=>{let e=function(e){if(this.fileUrls=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.responseId=``,e.prototype.fileUrls=M.emptyArray,e.prototype.errorMsg=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.responseId!=null&&N.hasOwnProperty.call(e,`responseId`)&&e.responseId!==``&&t.uint32(10).string(e.responseId),e.fileUrls!=null&&e.fileUrls.length)for(let r=0;r<e.fileUrls.length;++r)W.FileURLs.encode(e.fileUrls[r],t.uint32(18).fork(),n+1).ldelim();if(e.errorMsg!=null&&N.hasOwnProperty.call(e,`errorMsg`)&&e.errorMsg!==``&&t.uint32(26).string(e.errorMsg),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.FileURLsResponse,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.responseId=s:delete o.responseId;continue;case 2:if(a!==2)break;o.fileUrls&&o.fileUrls.length||(o.fileUrls=[]),o.fileUrls.push(W.FileURLs.decode(e,e.uint32(),P,r+1));continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.errorMsg=s:delete o.errorMsg;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.FileURLsResponse)return e;if(!M.isObject(e))throw I(`.FileURLsResponse: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.FileURLsResponse;if(e.responseId!=null&&(typeof e.responseId!=`string`||e.responseId.length)&&(n.responseId=L(e.responseId)),e.fileUrls){if(!V.isArray(e.fileUrls))throw I(`.FileURLsResponse.fileUrls: array expected`);n.fileUrls=V(e.fileUrls.length);for(let r=0;r<e.fileUrls.length;++r){if(!M.isObject(e.fileUrls[r]))throw I(`.FileURLsResponse.fileUrls: object expected`);n.fileUrls[r]=W.FileURLs.fromObject(e.fileUrls[r],t+1)}}return e.errorMsg!=null&&(typeof e.errorMsg!=`string`||e.errorMsg.length)&&(n.errorMsg=L(e.errorMsg)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.fileUrls=[]),t.defaults&&(r.responseId=``,r.errorMsg=``),e.responseId!=null&&N.hasOwnProperty.call(e,`responseId`)&&(r.responseId=e.responseId),e.fileUrls&&e.fileUrls.length){r.fileUrls=V(e.fileUrls.length);for(let i=0;i<e.fileUrls.length;++i)r.fileUrls[i]=W.FileURLs.toObject(e.fileUrls[i],t,n+1)}return e.errorMsg!=null&&N.hasOwnProperty.call(e,`errorMsg`)&&(r.errorMsg=e.errorMsg),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/FileURLsResponse`},e})();var re=W.UploadedFileInfo=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.name=``,e.prototype.size=M.Long?M.Long.fromBits(0,0,!0):0,e.prototype.fileId=``,e.prototype.fileUrls=null,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(18).string(e.name),e.size!=null&&N.hasOwnProperty.call(e,`size`)&&(typeof e.size==`object`?e.size.low||e.size.high:e.size!==0)&&t.uint32(24).uint64(e.size),e.fileId!=null&&N.hasOwnProperty.call(e,`fileId`)&&e.fileId!==``&&t.uint32(34).string(e.fileId),e.fileUrls!=null&&N.hasOwnProperty.call(e,`fileUrls`)&&W.FileURLs.encode(e.fileUrls,t.uint32(42).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.UploadedFileInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 2:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 3:if(a!==0)break;(typeof(s=e.uint64())==`object`?s.low||s.high:s!==0)?o.size=s:delete o.size;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.fileId=s:delete o.fileId;continue;case 5:if(a!==2)break;o.fileUrls=W.FileURLs.decode(e,e.uint32(),P,r+1,o.fileUrls);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.UploadedFileInfo)return e;if(!M.isObject(e))throw I(`.UploadedFileInfo: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.UploadedFileInfo;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.size!=null&&(typeof e.size==`object`?e.size.low||e.size.high:z(e.size)!==0)&&(M.Long?n.size=M.Long.fromValue(e.size,!0):typeof e.size==`string`?n.size=H(e.size,10):typeof e.size==`number`?n.size=e.size:typeof e.size==`object`&&(n.size=new M.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.fileId!=null&&(typeof e.fileId!=`string`||e.fileId.length)&&(n.fileId=L(e.fileId)),e.fileUrls!=null){if(!M.isObject(e.fileUrls))throw I(`.UploadedFileInfo.fileUrls: object expected`);n.fileUrls=W.FileURLs.fromObject(e.fileUrls,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if(t.defaults){if(r.name=``,M.Long){let e=new M.Long(0,0,!0);r.size=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.size=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;r.fileId=``,r.fileUrls=null}return e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.size!=null&&N.hasOwnProperty.call(e,`size`)&&(U!==void 0&&t.longs===U?r.size=typeof e.size==`number`?U(e.size):M.Long.fromBits(e.size.low>>>0,e.size.high>>>0,!0).toBigInt():typeof e.size==`number`?r.size=t.longs===L?L(e.size):e.size:r.size=t.longs===L?M.Long.prototype.toString.call(e.size):t.longs===z?new M.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0):e.size),e.fileId!=null&&N.hasOwnProperty.call(e,`fileId`)&&(r.fileId=e.fileId),e.fileUrls!=null&&N.hasOwnProperty.call(e,`fileUrls`)&&(r.fileUrls=W.FileURLs.toObject(e.fileUrls,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/UploadedFileInfo`},e})(),ie=W.FileUploaderState=(()=>{let e=function(e){if(this.uploadedFileInfo=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.uploadedFileInfo=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.uploadedFileInfo!=null&&e.uploadedFileInfo.length)for(let r=0;r<e.uploadedFileInfo.length;++r)W.UploadedFileInfo.encode(e.uploadedFileInfo[r],t.uint32(18).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.FileUploaderState;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 2:if(a!==2)break;o.uploadedFileInfo&&o.uploadedFileInfo.length||(o.uploadedFileInfo=[]),o.uploadedFileInfo.push(W.UploadedFileInfo.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.FileUploaderState)return e;if(!M.isObject(e))throw I(`.FileUploaderState: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.FileUploaderState;if(e.uploadedFileInfo){if(!V.isArray(e.uploadedFileInfo))throw I(`.FileUploaderState.uploadedFileInfo: array expected`);n.uploadedFileInfo=V(e.uploadedFileInfo.length);for(let r=0;r<e.uploadedFileInfo.length;++r){if(!M.isObject(e.uploadedFileInfo[r]))throw I(`.FileUploaderState.uploadedFileInfo: object expected`);n.uploadedFileInfo[r]=W.UploadedFileInfo.fromObject(e.uploadedFileInfo[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.uploadedFileInfo=[]),e.uploadedFileInfo&&e.uploadedFileInfo.length){r.uploadedFileInfo=V(e.uploadedFileInfo.length);for(let i=0;i<e.uploadedFileInfo.length;++i)r.uploadedFileInfo[i]=W.UploadedFileInfo.toObject(e.uploadedFileInfo[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/FileUploaderState`},e})(),ae=W.ChatInputValue=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.data=null,e.prototype.fileUploaderState=null,e.prototype.audioFileInfo=null;let t;return N.defineProperty(e.prototype,`_data`,{get:M.oneOfGetter(t=[`data`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_fileUploaderState`,{get:M.oneOfGetter(t=[`fileUploaderState`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_audioFileInfo`,{get:M.oneOfGetter(t=[`audioFileInfo`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&N.hasOwnProperty.call(e,`data`)&&t.uint32(10).string(e.data),e.fileUploaderState!=null&&N.hasOwnProperty.call(e,`fileUploaderState`)&&W.FileUploaderState.encode(e.fileUploaderState,t.uint32(18).fork(),n+1).ldelim(),e.audioFileInfo!=null&&N.hasOwnProperty.call(e,`audioFileInfo`)&&W.UploadedFileInfo.encode(e.audioFileInfo,t.uint32(26).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ChatInputValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.data=e.stringVerify(),o._data=`data`;continue;case 2:if(a!==2)break;o.fileUploaderState=W.FileUploaderState.decode(e,e.uint32(),P,r+1,o.fileUploaderState),o._fileUploaderState=`fileUploaderState`;continue;case 3:if(a!==2)break;o.audioFileInfo=W.UploadedFileInfo.decode(e,e.uint32(),P,r+1,o.audioFileInfo),o._audioFileInfo=`audioFileInfo`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ChatInputValue)return e;if(!M.isObject(e))throw I(`.ChatInputValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ChatInputValue;if(e.data!=null&&(n.data=L(e.data)),e.fileUploaderState!=null){if(!M.isObject(e.fileUploaderState))throw I(`.ChatInputValue.fileUploaderState: object expected`);n.fileUploaderState=W.FileUploaderState.fromObject(e.fileUploaderState,t+1)}if(e.audioFileInfo!=null){if(!M.isObject(e.audioFileInfo))throw I(`.ChatInputValue.audioFileInfo: object expected`);n.audioFileInfo=W.UploadedFileInfo.fromObject(e.audioFileInfo,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.data!=null&&N.hasOwnProperty.call(e,`data`)&&(r.data=e.data),e.fileUploaderState!=null&&N.hasOwnProperty.call(e,`fileUploaderState`)&&(r.fileUploaderState=W.FileUploaderState.toObject(e.fileUploaderState,t,n+1)),e.audioFileInfo!=null&&N.hasOwnProperty.call(e,`audioFileInfo`)&&(r.audioFileInfo=W.UploadedFileInfo.toObject(e.audioFileInfo,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ChatInputValue`},e})();W.ComponentInstance=(()=>{let e=function(e){if(this.specialArgs=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.jsonArgs=``,e.prototype.specialArgs=M.emptyArray,e.prototype.componentName=``,e.prototype.url=``,e.prototype.
1formId=``,e.prototype.tabIndex=null;let t;return N.defineProperty(e.prototype,`_tabIndex`,{get:M.oneOfGetter(t=[`tabIndex`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.jsonArgs!=null&&N.hasOwnProperty.call(e,`jsonArgs`)&&e.jsonArgs!==``&&t.uint32(18).string(e.jsonArgs),e.specialArgs!=null&&e.specialArgs.length)for(let r=0;r<e.specialArgs.length;++r)W.SpecialArg.encode(e.specialArgs[r],t.uint32(26).fork(),n+1).ldelim();if(e.componentName!=null&&N.hasOwnProperty.call(e,`componentName`)&&e.componentName!==``&&t.uint32(34).string(e.componentName),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(42).string(e.url),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(50).string(e.formId),e.tabIndex!=null&&N.hasOwnProperty.call(e,`tabIndex`)&&t.uint32(56).int32(e.tabIndex),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ComponentInstance,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.jsonArgs=s:delete o.jsonArgs;continue;case 3:if(a!==2)break;o.specialArgs&&o.specialArgs.length||(o.specialArgs=[]),o.specialArgs.push(W.SpecialArg.decode(e,e.uint32(),P,r+1));continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.componentName=s:delete o.componentName;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 7:if(a!==0)break;o.tabIndex=e.int32(),o._tabIndex=`tabIndex`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ComponentInstance)return e;if(!M.isObject(e))throw I(`.ComponentInstance: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ComponentInstance;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.jsonArgs!=null&&(typeof e.jsonArgs!=`string`||e.jsonArgs.length)&&(n.jsonArgs=L(e.jsonArgs)),e.specialArgs){if(!V.isArray(e.specialArgs))throw I(`.ComponentInstance.specialArgs: array expected`);n.specialArgs=V(e.specialArgs.length);for(let r=0;r<e.specialArgs.length;++r){if(!M.isObject(e.specialArgs[r]))throw I(`.ComponentInstance.specialArgs: object expected`);n.specialArgs[r]=W.SpecialArg.fromObject(e.specialArgs[r],t+1)}}return e.componentName!=null&&(typeof e.componentName!=`string`||e.componentName.length)&&(n.componentName=L(e.componentName)),e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.tabIndex!=null&&(n.tabIndex=e.tabIndex|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.specialArgs=[]),t.defaults&&(r.id=``,r.jsonArgs=``,r.componentName=``,r.url=``,r.formId=``),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.jsonArgs!=null&&N.hasOwnProperty.call(e,`jsonArgs`)&&(r.jsonArgs=e.jsonArgs),e.specialArgs&&e.specialArgs.length){r.specialArgs=V(e.specialArgs.length);for(let i=0;i<e.specialArgs.length;++i)r.specialArgs[i]=W.SpecialArg.toObject(e.specialArgs[i],t,n+1)}return e.componentName!=null&&N.hasOwnProperty.call(e,`componentName`)&&(r.componentName=e.componentName),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.tabIndex!=null&&N.hasOwnProperty.call(e,`tabIndex`)&&(r.tabIndex=e.tabIndex),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ComponentInstance`},e})(),W.SpecialArg=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.key=``,e.prototype.arrowDataframe=null,e.prototype.bytes=null;let t;return N.defineProperty(e.prototype,`value`,{get:M.oneOfGetter(t=[`arrowDataframe`,`bytes`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.key!=null&&N.hasOwnProperty.call(e,`key`)&&e.key!==``&&t.uint32(10).string(e.key),e.arrowDataframe!=null&&N.hasOwnProperty.call(e,`arrowDataframe`)&&W.ArrowDataframe.encode(e.arrowDataframe,t.uint32(18).fork(),n+1).ldelim(),e.bytes!=null&&N.hasOwnProperty.call(e,`bytes`)&&t.uint32(26).bytes(e.bytes),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.SpecialArg,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.key=s:delete o.key;continue;case 2:if(a!==2)break;o.arrowDataframe=W.ArrowDataframe.decode(e,e.uint32(),P,r+1,o.arrowDataframe),o.value=`arrowDataframe`;continue;case 3:if(a!==2)break;o.bytes=e.bytes(),o.value=`bytes`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.SpecialArg)return e;if(!M.isObject(e))throw I(`.SpecialArg: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.SpecialArg;if(e.key!=null&&(typeof e.key!=`string`||e.key.length)&&(n.key=L(e.key)),e.arrowDataframe!=null){if(!M.isObject(e.arrowDataframe))throw I(`.SpecialArg.arrowDataframe: object expected`);n.arrowDataframe=W.ArrowDataframe.fromObject(e.arrowDataframe,t+1)}return e.bytes!=null&&(typeof e.bytes==`string`?M.base64.decode(e.bytes,n.bytes=M.newBuffer(M.base64.length(e.bytes)),0):e.bytes.length>=0&&(n.bytes=e.bytes)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.key=``),e.key!=null&&N.hasOwnProperty.call(e,`key`)&&(r.key=e.key),e.arrowDataframe!=null&&N.hasOwnProperty.call(e,`arrowDataframe`)&&(r.arrowDataframe=W.ArrowDataframe.toObject(e.arrowDataframe,t,n+1),t.oneofs&&(r.value=`arrowDataframe`)),e.bytes!=null&&N.hasOwnProperty.call(e,`bytes`)&&(r.bytes=t.bytes===L?M.base64.encode(e.bytes,0,e.bytes.length):t.bytes===V?V.prototype.slice.call(e.bytes):e.bytes,t.oneofs&&(r.value=`bytes`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/SpecialArg`},e})();var oe=W.ArrowDataframe=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=null,e.prototype.height=0,e.prototype.width=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&N.hasOwnProperty.call(e,`data`)&&W.ArrowTable.encode(e.data,t.uint32(10).fork(),n+1).ldelim(),e.height!=null&&N.hasOwnProperty.call(e,`height`)&&e.height!==0&&t.uint32(16).uint32(e.height),e.width!=null&&N.hasOwnProperty.call(e,`width`)&&e.width!==0&&t.uint32(24).uint32(e.width),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ArrowDataframe,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.data=W.ArrowTable.decode(e,e.uint32(),P,r+1,o.data);continue;case 2:if(a!==0)break;(s=e.uint32())?o.height=s:delete o.height;continue;case 3:if(a!==0)break;(s=e.uint32())?o.width=s:delete o.width;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ArrowDataframe)return e;if(!M.isObject(e))throw I(`.ArrowDataframe: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ArrowDataframe;if(e.data!=null){if(!M.isObject(e.data))throw I(`.ArrowDataframe.data: object expected`);n.data=W.ArrowTable.fromObject(e.data,t+1)}return e.height!=null&&z(e.height)!==0&&(n.height=e.height>>>0),e.width!=null&&z(e.width)!==0&&(n.width=e.width>>>0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.data=null,r.height=0,r.width=0),e.data!=null&&N.hasOwnProperty.call(e,`data`)&&(r.data=W.ArrowTable.toObject(e.data,t,n+1)),e.height!=null&&N.hasOwnProperty.call(e,`height`)&&(r.height=e.height),e.width!=null&&N.hasOwnProperty.call(e,`width`)&&(r.width=e.width),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ArrowDataframe`},e})();W.ArrowTable=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.data=M.newBuffer([]),e.prototype.index=M.newBuffer([]),e.prototype.columns=M.newBuffer([]),e.prototype.styler=null,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.data!=null&&N.hasOwnProperty.call(e,`data`)&&e.data.length&&t.uint32(10).bytes(e.data),e.index!=null&&N.hasOwnProperty.call(e,`index`)&&e.index.length&&t.uint32(18).bytes(e.index),e.columns!=null&&N.hasOwnProperty.call(e,`columns`)&&e.columns.length&&t.uint32(26).bytes(e.columns),e.styler!=null&&N.hasOwnProperty.call(e,`styler`)&&W.ArrowTableStyler.encode(e.styler,t.uint32(42).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ArrowTable,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.bytes()).length?o.data=s:delete o.data;continue;case 2:if(a!==2)break;(s=e.bytes()).length?o.index=s:delete o.index;continue;case 3:if(a!==2)break;(s=e.bytes()).length?o.columns=s:delete o.columns;continue;case 5:if(a!==2)break;o.styler=W.ArrowTableStyler.decode(e,e.uint32(),P,r+1,o.styler);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ArrowTable)return e;if(!M.isObject(e))throw I(`.ArrowTable: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ArrowTable;if(e.data!=null&&e.data.length&&(typeof e.data==`string`?M.base64.decode(e.data,n.data=M.newBuffer(M.base64.length(e.data)),0):e.data.length>=0&&(n.data=e.data)),e.index!=null&&e.index.length&&(typeof e.index==`string`?M.base64.decode(e.index,n.index=M.newBuffer(M.base64.length(e.index)),0):e.index.length>=0&&(n.index=e.index)),e.columns!=null&&e.columns.length&&(typeof e.columns==`string`?M.base64.decode(e.columns,n.columns=M.newBuffer(M.base64.length(e.columns)),0):e.columns.length>=0&&(n.columns=e.columns)),e.styler!=null){if(!M.isObject(e.styler))throw I(`.ArrowTable.styler: object expected`);n.styler=W.ArrowTableStyler.fromObject(e.styler,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(t.bytes===L?r.data=``:(r.data=[],t.bytes!==V&&(r.data=M.newBuffer(r.data))),t.bytes===L?r.index=``:(r.index=[],t.bytes!==V&&(r.index=M.newBuffer(r.
1index))),t.bytes===L?r.columns=``:(r.columns=[],t.bytes!==V&&(r.columns=M.newBuffer(r.columns))),r.styler=null),e.data!=null&&N.hasOwnProperty.call(e,`data`)&&(r.data=t.bytes===L?M.base64.encode(e.data,0,e.data.length):t.bytes===V?V.prototype.slice.call(e.data):e.data),e.index!=null&&N.hasOwnProperty.call(e,`index`)&&(r.index=t.bytes===L?M.base64.encode(e.index,0,e.index.length):t.bytes===V?V.prototype.slice.call(e.index):e.index),e.columns!=null&&N.hasOwnProperty.call(e,`columns`)&&(r.columns=t.bytes===L?M.base64.encode(e.columns,0,e.columns.length):t.bytes===V?V.prototype.slice.call(e.columns):e.columns),e.styler!=null&&N.hasOwnProperty.call(e,`styler`)&&(r.styler=W.ArrowTableStyler.toObject(e.styler,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ArrowTable`},e})(),W.ArrowTableStyler=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.uuid=``,e.prototype.caption=``,e.prototype.styles=``,e.prototype.displayValues=M.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.uuid!=null&&N.hasOwnProperty.call(e,`uuid`)&&e.uuid!==``&&t.uint32(10).string(e.uuid),e.caption!=null&&N.hasOwnProperty.call(e,`caption`)&&e.caption!==``&&t.uint32(18).string(e.caption),e.styles!=null&&N.hasOwnProperty.call(e,`styles`)&&e.styles!==``&&t.uint32(26).string(e.styles),e.displayValues!=null&&N.hasOwnProperty.call(e,`displayValues`)&&e.displayValues.length&&t.uint32(34).bytes(e.displayValues),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ArrowTableStyler,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.uuid=s:delete o.uuid;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.caption=s:delete o.caption;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.styles=s:delete o.styles;continue;case 4:if(a!==2)break;(s=e.bytes()).length?o.displayValues=s:delete o.displayValues;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ArrowTableStyler)return e;if(!M.isObject(e))throw I(`.ArrowTableStyler: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ArrowTableStyler;return e.uuid!=null&&(typeof e.uuid!=`string`||e.uuid.length)&&(n.uuid=L(e.uuid)),e.caption!=null&&(typeof e.caption!=`string`||e.caption.length)&&(n.caption=L(e.caption)),e.styles!=null&&(typeof e.styles!=`string`||e.styles.length)&&(n.styles=L(e.styles)),e.displayValues!=null&&e.displayValues.length&&(typeof e.displayValues==`string`?M.base64.decode(e.displayValues,n.displayValues=M.newBuffer(M.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(n.displayValues=e.displayValues)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.uuid=``,r.caption=``,r.styles=``,t.bytes===L?r.displayValues=``:(r.displayValues=[],t.bytes!==V&&(r.displayValues=M.newBuffer(r.displayValues)))),e.uuid!=null&&N.hasOwnProperty.call(e,`uuid`)&&(r.uuid=e.uuid),e.caption!=null&&N.hasOwnProperty.call(e,`caption`)&&(r.caption=e.caption),e.styles!=null&&N.hasOwnProperty.call(e,`styles`)&&(r.styles=e.styles),e.displayValues!=null&&N.hasOwnProperty.call(e,`displayValues`)&&(r.displayValues=t.bytes===L?M.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===V?V.prototype.slice.call(e.displayValues):e.displayValues),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ArrowTableStyler`},e})(),W.Balloons=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.show!=null&&N.hasOwnProperty.call(e,`show`)&&e.show!==!1&&t.uint32(24).bool(e.show),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Balloons,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 3:if(a!==0)break;(s=e.bool())?o.show=s:delete o.show;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Balloons)return e;if(!M.isObject(e))throw I(`.Balloons: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Balloons;return e.show!=null&&e.show&&(n.show=R(e.show)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.show=!1),e.show!=null&&N.hasOwnProperty.call(e,`show`)&&(r.show=e.show),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Balloons`},e})(),W.MixedData=(()=>{let e=function(e){if(this.arrowBlobs={},e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.json=``,e.prototype.arrowBlobs=M.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.json!=null&&N.hasOwnProperty.call(e,`json`)&&e.json!==``&&t.uint32(10).string(e.json),e.arrowBlobs!=null&&N.hasOwnProperty.call(e,`arrowBlobs`))for(let r=N.keys(e.arrowBlobs),i=0;i<r.length;++i)t.uint32(18).fork().uint32(10).string(r[i]),W.ArrowData.encode(e.arrowBlobs[r[i]],t.uint32(18).fork(),n+1).ldelim().ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.MixedData,s,c;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(c=e.stringVerify()).length?o.json=c:delete o.json;continue;case 2:{if(a!==2)break;o.arrowBlobs===M.emptyObject&&(o.arrowBlobs={});let t=e.uint32()+e.pos;for(s=``,c=null;e.pos<t;){let t=e.tag();switch(a=t&7,t>>>=3){case 1:if(a!==2)break;s=e.stringVerify();continue;case 2:if(a!==2)break;c=W.ArrowData.decode(e,e.uint32(),P,r+1);continue}e.skipType(a,r,t)}s===`__proto__`&&M.makeProp(o.arrowBlobs,s),o.arrowBlobs[s]=c||new W.ArrowData;continue}}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.MixedData)return e;if(!M.isObject(e))throw I(`.MixedData: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.MixedData;if(e.json!=null&&(typeof e.json!=`string`||e.json.length)&&(n.json=L(e.json)),e.arrowBlobs){if(!M.isObject(e.arrowBlobs)
1)throw I(`.MixedData.arrowBlobs: object expected`);n.arrowBlobs={};for(let r=N.keys(e.arrowBlobs),i=0;i<r.length;++i){if(r[i]===`__proto__`&&M.makeProp(n.arrowBlobs,r[i]),!M.isObject(e.arrowBlobs[r[i]]))throw I(`.MixedData.arrowBlobs: object expected`);n.arrowBlobs[r[i]]=W.ArrowData.fromObject(e.arrowBlobs[r[i]],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};(t.objects||t.defaults)&&(r.arrowBlobs={}),t.defaults&&(r.json=``),e.json!=null&&N.hasOwnProperty.call(e,`json`)&&(r.json=e.json);let i;if(e.arrowBlobs&&(i=N.keys(e.arrowBlobs)).length){r.arrowBlobs={};for(let a=0;a<i.length;++a)i[a]===`__proto__`&&M.makeProp(r.arrowBlobs,i[a]),r.arrowBlobs[i[a]]=W.ArrowData.toObject(e.arrowBlobs[i[a]],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/MixedData`},e})(),W.BidiComponent=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.componentName=``,e.prototype.jsContent=null,e.prototype.jsSourcePath=null,e.prototype.formId=``,e.prototype.htmlContent=null,e.prototype.cssContent=null,e.prototype.cssSourcePath=null,e.prototype.isolateStyles=!1,e.prototype.json=null,e.prototype.arrowData=null,e.prototype.bytes=null,e.prototype.mixed=null;let t;return N.defineProperty(e.prototype,`_jsContent`,{get:M.oneOfGetter(t=[`jsContent`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_jsSourcePath`,{get:M.oneOfGetter(t=[`jsSourcePath`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_htmlContent`,{get:M.oneOfGetter(t=[`htmlContent`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_cssContent`,{get:M.oneOfGetter(t=[`cssContent`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_cssSourcePath`,{get:M.oneOfGetter(t=[`cssSourcePath`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`data`,{get:M.oneOfGetter(t=[`json`,`arrowData`,`bytes`,`mixed`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.componentName!=null&&N.hasOwnProperty.call(e,`componentName`)&&e.componentName!==``&&t.uint32(18).string(e.componentName),e.jsContent!=null&&N.hasOwnProperty.call(e,`jsContent`)&&t.uint32(26).string(e.jsContent),e.jsSourcePath!=null&&N.hasOwnProperty.call(e,`jsSourcePath`)&&t.uint32(34).string(e.jsSourcePath),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(42).string(e.formId),e.htmlContent!=null&&N.hasOwnProperty.call(e,`htmlContent`)&&t.uint32(50).string(e.htmlContent),e.cssContent!=null&&N.hasOwnProperty.call(e,`cssContent`)&&t.uint32(58).string(e.cssContent),e.cssSourcePath!=null&&N.hasOwnProperty.call(e,`cssSourcePath`)&&t.uint32(66).string(e.cssSourcePath),e.isolateStyles!=null&&N.hasOwnProperty.call(e,`isolateStyles`)&&e.isolateStyles!==!1&&t.uint32(72).bool(e.isolateStyles),e.json!=null&&N.hasOwnProperty.call(e,`json`)&&t.uint32(82).string(e.json),e.arrowData!=null&&N.hasOwnProperty.call(e,`arrowData`)&&W.ArrowData.encode(e.arrowData,t.uint32(90).fork(),n+1).ldelim(),e.bytes!=null&&N.hasOwnProperty.call(e,`bytes`)&&t.uint32(98).bytes(e.bytes),e.mixed!=null&&N.hasOwnProperty.call(e,`mixed`)&&W.MixedData.encode(e.mixed,t.uint32(106).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.BidiComponent,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.componentName=s:delete o.componentName;continue;case 3:if(a!==2)break;o.jsContent=e.stringVerify(),o._jsContent=`jsContent`;continue;case 4:if(a!==2)break;o.jsSourcePath=e.stringVerify(),o._jsSourcePath=`jsSourcePath`;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==2)break;o.htmlContent=e.stringVerify(),o._htmlContent=`htmlContent`;continue;case 7:if(a!==2)break;o.cssContent=e.stringVerify(),o._cssContent=`cssContent`;continue;case 8:if(a!==2)break;o.cssSourcePath=e.stringVerify(),o._cssSourcePath=`cssSourcePath`;continue;
1case 9:if(a!==0)break;(s=e.bool())?o.isolateStyles=s:delete o.isolateStyles;continue;case 10:if(a!==2)break;o.json=e.stringVerify(),o.data=`json`;continue;case 11:if(a!==2)break;o.arrowData=W.ArrowData.decode(e,e.uint32(),P,r+1,o.arrowData),o.data=`arrowData`;continue;case 12:if(a!==2)break;o.bytes=e.bytes(),o.data=`bytes`;continue;case 13:if(a!==2)break;o.mixed=W.MixedData.decode(e,e.uint32(),P,r+1,o.mixed),o.data=`mixed`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.BidiComponent)return e;if(!M.isObject(e))throw I(`.BidiComponent: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.BidiComponent;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.componentName!=null&&(typeof e.componentName!=`string`||e.componentName.length)&&(n.componentName=L(e.componentName)),e.jsContent!=null&&(n.jsContent=L(e.jsContent)),e.jsSourcePath!=null&&(n.jsSourcePath=L(e.jsSourcePath)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.htmlContent!=null&&(n.htmlContent=L(e.htmlContent)),e.cssContent!=null&&(n.cssContent=L(e.cssContent)),e.cssSourcePath!=null&&(n.cssSourcePath=L(e.cssSourcePath)),e.isolateStyles!=null&&e.isolateStyles&&(n.isolateStyles=R(e.isolateStyles)),e.json!=null&&(n.json=L(e.json)),e.arrowData!=null){if(!M.isObject(e.arrowData))throw I(`.BidiComponent.arrowData: object expected`);n.arrowData=W.ArrowData.fromObject(e.arrowData,t+1)}if(e.bytes!=null&&(typeof e.bytes==`string`?M.base64.decode(e.bytes,n.bytes=M.newBuffer(M.base64.length(e.bytes)),0):e.bytes.length>=0&&(n.bytes=e.bytes)),e.mixed!=null){if(!M.isObject(e.mixed))throw I(`.BidiComponent.mixed: object expected`);n.mixed=W.MixedData.fromObject(e.mixed,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.componentName=``,r.formId=``,r.isolateStyles=!1),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.componentName!=null&&N.hasOwnProperty.call(e,`componentName`)&&(r.componentName=e.componentName),e.jsContent!=null&&N.hasOwnProperty.call(e,`jsContent`)&&(r.jsContent=e.jsContent),e.jsSourcePath!=null&&N.hasOwnProperty.call(e,`jsSourcePath`)&&(r.jsSourcePath=e.jsSourcePath),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.htmlContent!=null&&N.hasOwnProperty.call(e,`htmlContent`)&&(r.htmlContent=e.htmlContent),e.cssContent!=null&&N.hasOwnProperty.call(e,`cssContent`)&&(r.cssContent=e.cssContent),e.cssSourcePath!=null&&N.hasOwnProperty.call(e,`cssSourcePath`)&&(r.cssSourcePath=e.cssSourcePath),e.isolateStyles!=null&&N.hasOwnProperty.call(e,`isolateStyles`)&&(r.isolateStyles=e.isolateStyles),e.json!=null&&N.hasOwnProperty.call(e,`json`)&&(r.json=e.json,t.oneofs&&(r.data=`json`)),e.arrowData!=null&&N.hasOwnProperty.call(e,`arrowData`)&&(r.arrowData=W.ArrowData.toObject(e.arrowData,t,n+1),t.oneofs&&(r.data=`arrowData`)),e.bytes!=null&&N.hasOwnProperty.call(e,`bytes`)&&(r.bytes=t.bytes===L?M.base64.encode(e.bytes,0,e.bytes.length):t.bytes===V?V.prototype.slice.call(e.bytes):e.bytes,t.oneofs&&(r.data=`bytes`)),e.mixed!=null&&N.hasOwnProperty.call(e,`mixed`)&&(r.mixed=W.MixedData.toObject(e.mixed,t,n+1),t.oneofs&&(r.data=`mixed`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/BidiComponent`},e})();var se=W.Block=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.vertical=null,e.prototype.horizontal=null,e.prototype.column=null,e.prototype.expandable=null,e.prototype.form=null,e.prototype.tabContainer=null,e.prototype.tab=null,e.prototype.chatMessage=null,e.prototype.popover=null,e.prototype.dialog=null,e.prototype.flexContainer=null,e.prototype.transparent=null,e.prototype.allowEmpty=!1,e.prototype.id=null,e.prototype.height
1Config=null,e.prototype.widthConfig=null,e.prototype.autoscroll=null;let t;return N.defineProperty(e.prototype,`type`,{get:M.oneOfGetter(t=[`vertical`,`horizontal`,`column`,`expandable`,`form`,`tabContainer`,`tab`,`chatMessage`,`popover`,`dialog`,`flexContainer`,`transparent`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_id`,{get:M.oneOfGetter(t=[`id`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_heightConfig`,{get:M.oneOfGetter(t=[`heightConfig`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_widthConfig`,{get:M.oneOfGetter(t=[`widthConfig`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_autoscroll`,{get:M.oneOfGetter(t=[`autoscroll`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.vertical!=null&&N.hasOwnProperty.call(e,`vertical`)&&W.Block.Vertical.encode(e.vertical,t.uint32(10).fork(),n+1).ldelim(),e.horizontal!=null&&N.hasOwnProperty.call(e,`horizontal`)&&W.Block.Horizontal.encode(e.horizontal,t.uint32(18).fork(),n+1).ldelim(),e.column!=null&&N.hasOwnProperty.call(e,`column`)&&W.Block.Column.encode(e.column,t.uint32(26).fork(),n+1).ldelim(),e.expandable!=null&&N.hasOwnProperty.call(e,`expandable`)&&W.Block.Expandable.encode(e.expandable,t.uint32(34).fork(),n+1).ldelim(),e.form!=null&&N.hasOwnProperty.call(e,`form`)&&W.Block.Form.encode(e.form,t.uint32(42).fork(),n+1).ldelim(),e.tabContainer!=null&&N.hasOwnProperty.call(e,`tabContainer`)&&W.Block.TabContainer.encode(e.tabContainer,t.uint32(50).fork(),n+1).ldelim(),e.tab!=null&&N.hasOwnProperty.call(e,`tab`)&&W.Block.Tab.encode(e.tab,t.uint32(58).fork(),n+1).ldelim(),e.allowEmpty!=null&&N.hasOwnProperty.call(e,`allowEmpty`)&&e.allowEmpty!==!1&&t.uint32(64).bool(e.allowEmpty),e.chatMessage!=null&&N.hasOwnProperty.call(e,`chatMessage`)&&W.Block.ChatMessage.encode(e.chatMessage,t.uint32(74).fork(),n+1).ldelim(),e.popover!=null&&N.hasOwnProperty.call(e,`popover`)&&W.Block.Popover.encode(e.popover,t.uint32(82).fork(),n+1).ldelim(),e.dialog!=null&&N.hasOwnProperty.call(e,`dialog`)&&W.Block.Dialog.encode(e.dialog,t.uint32(90).fork(),n+1).ldelim(),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&t.uint32(98).string(e.id),e.flexContainer!=null&&N.hasOwnProperty.call(e,`flexContainer`)&&W.Block.FlexContainer.encode(e.flexContainer,t.uint32(106).fork(),n+1).ldelim(),e.heightConfig!=null&&N.hasOwnProperty.call(e,`heightConfig`)&&W.streamlit.HeightConfig.encode(e.heightConfig,t.uint32(114).fork(),n+1).ldelim(),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&W.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(122).fork(),n+1).ldelim(),e.autoscroll!=null&&N.hasOwnProperty.call(e,`autoscroll`)&&t.uint32(128).bool(e.autoscroll),e.transparent!=null&&N.hasOwnProperty.call(e,`transparent`)&&W.Block.Transparent.encode(e.transparent,t.uint32(138).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.vertical=W.Block.Vertical.decode(e,e.uint32(),P,r+1,o.vertical),o.type=`vertical`;continue;case 2:if(a!==2)break;o.horizontal=W.Block.Horizontal.decode(e,e.uint32(),P,r+1,o.horizontal),o.type=`horizontal`;continue;case 3:if(a!==2)break;o.column=W.Block.Column.decode(e,e.uint32(),P,r+1,o.column),o.type=`column`;continue;case 4:if(a!==2)break;o.expandable=W.Block.Expandable.decode(e,e.uint32(),P,r+1,o.expandable),o.type=`expandable`;continue;case 5:if(a!==2)break;o.form=W.Block.Form.decode(e,e.uint32(),P,r+1,o.form),o.type=`form`;continue;case 6:if(a!==2)break;o.tabContainer=W.Block.TabContainer.decode(e,e.uint32(),P,r+1,o.tabContainer),o.type=`tabContainer`;continue;case 7:if(a!==2)break;o.tab=W.Block.Tab.decode(e,e.uint32(),P,r+1,o.tab),o.type=`tab`;continue;
1case 9:if(a!==2)break;o.chatMessage=W.Block.ChatMessage.decode(e,e.uint32(),P,r+1,o.chatMessage),o.type=`chatMessage`;continue;case 10:if(a!==2)break;o.popover=W.Block.Popover.decode(e,e.uint32(),P,r+1,o.popover),o.type=`popover`;continue;case 11:if(a!==2)break;o.dialog=W.Block.Dialog.decode(e,e.uint32(),P,r+1,o.dialog),o.type=`dialog`;continue;case 13:if(a!==2)break;o.flexContainer=W.Block.FlexContainer.decode(e,e.uint32(),P,r+1,o.flexContainer),o.type=`flexContainer`;continue;case 17:if(a!==2)break;o.transparent=W.Block.Transparent.decode(e,e.uint32(),P,r+1,o.transparent),o.type=`transparent`;continue;case 8:if(a!==0)break;(s=e.bool())?o.allowEmpty=s:delete o.allowEmpty;continue;case 12:if(a!==2)break;o.id=e.stringVerify(),o._id=`id`;continue;case 14:if(a!==2)break;o.heightConfig=W.streamlit.HeightConfig.decode(e,e.uint32(),P,r+1,o.heightConfig),o._heightConfig=`heightConfig`;continue;case 15:if(a!==2)break;o.widthConfig=W.streamlit.WidthConfig.decode(e,e.uint32(),P,r+1,o.widthConfig),o._widthConfig=`widthConfig`;continue;case 16:if(a!==0)break;o.autoscroll=e.bool(),o._autoscroll=`autoscroll`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block)return e;if(!M.isObject(e))throw I(`.Block: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block;if(e.vertical!=null){if(!M.isObject(e.vertical))throw I(`.Block.vertical: object expected`);n.vertical=W.Block.Vertical.fromObject(e.vertical,t+1)}if(e.horizontal!=null){if(!M.isObject(e.horizontal))throw I(`.Block.horizontal: object expected`);n.horizontal=W.Block.Horizontal.fromObject(e.horizontal,t+1)}if(e.column!=null){if(!M.isObject(e.column))throw I(`.Block.column: object expected`);n.column=W.Block.Column.fromObject(e.column,t+1)}if(e.expandable!=null){if(!M.isObject(e.expandable))throw I(`.Block.expandable: object expected`);n.expandable=W.Block.Expandable.fromObject(e.expandable,t+1)}if(e.form!=null){if(!M.isObject(e.form))throw I(`.Block.form: object expected`);n.form=W.Block.Form.fromObject(e.form,t+1)}if(e.tabContainer!=null){if(!M.isObject(e.tabContainer))throw I(`.Block.tabContainer: object expected`);n.tabContainer=W.Block.TabContainer.fromObject(e.tabContainer,t+1)}if(e.tab!=null){if(!M.isObject(e.tab))throw I(`.Block.tab: object expected`);n.tab=W.Block.Tab.fromObject(e.tab,t+1)}if(e.chatMessage!=null){if(!M.isObject(e.chatMessage))throw I(`.Block.chatMessage: object expected`);n.chatMessage=W.Block.ChatMessage.fromObject(e.chatMessage,t+1)}if(e.popover!=null){if(!M.isObject(e.popover))throw I(`.Block.popover: object expected`);n.popover=W.Block.Popover.fromObject(e.popover,t+1)}if(e.dialog!=null){if(!M.isObject(e.dialog))throw I(`.Block.dialog: object expected`);n.dialog=W.Block.Dialog.fromObject(e.dialog,t+1)}if(e.flexContainer!=null){if(!M.isObject(e.flexContainer))throw I(`.Block.flexContainer: object expected`);n.flexContainer=W.Block.FlexContainer.fromObject(e.flexContainer,t+1)}if(e.transparent!=null){if(!M.isObject(e.transparent))throw I(`.Block.transparent: object expected`);n.transparent=W.Block.Transparent.fromObject(e.transparent,t+1)}if(e.allowEmpty!=null&&e.allowEmpty&&(n.allowEmpty=R(e.allowEmpty)),e.id!=null&&(n.id=L(e.id)),e.heightConfig!=null){if(!M.isObject(e.heightConfig))throw I(`.Block.heightConfig: object expected`);n.heightConfig=W.streamlit.HeightConfig.fromObject(e.heightConfig,t+1)}if(e.widthConfig!=null){if(!M.isObject(e.widthConfig))throw I(`.Block.widthConfig: object expected`);n.widthConfig=W.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return e.autoscroll!=null&&(n.autoscroll=R(e.autoscroll)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.allowEmpty=!1),e.vertical!=null&&N.hasOwnProperty.call(e,`vertical`)&&(r.vertical=W.Block.Vertical.toObject(e.vertical,t,n+1),t.oneofs&&(r.type=`vertical`)),e.horizontal!=null&&N.hasOwnProperty.call(e,`horizontal`)&&(r.horizontal=W.Block.Horizontal.toObject(e.horizontal,t,n+1),t.oneofs&&(r.type=`horizontal`)),e.column!=null&&N.hasOwnProperty.call(e,`column`)&&(r.column=W.Block.Column.toObject(e.column,t,n+1),t.oneofs&&(r.type=`column`)),e.expandable!=null&&N.hasOwnProperty.call(e,`expandable`)&&(r.expandable=W.Block.Expandable.toObject(e.expandable,t,n+1),t.oneofs&&(r.type=`expandable`)),e.form!=null&&N.hasOwnProperty.call(e,`form`)&&(r.form=W.Block.Form.toObject(e.form,t,n+1),t.oneofs&&(r.type=`form`)),e.tabContainer!=null&&N.hasOwnProperty.call(e,`tabContainer`)&&(r.tabContainer=W.Block.TabContainer.toObject(e.tabContainer,t,n+1),t.oneofs&&(r.type=`tabContainer`)),e.tab!=null&&N.hasOwnProperty.call(e,`tab`)&&(r.tab=W.Block.Tab.toObject(e.tab,t,n+1),t.oneofs&&(r.type=`tab`)),e.allowEmpty!=null&&N.hasOwnProperty.call(e,`allowEmpty`)&&(r.allowEmpty=e.allowEmpty),e.chatMessage!=null&&N.hasOwnProperty.call(e,`chatMessage`)&&(r.chatMessage=W.Block.ChatMessage.toObject(e.chatMessage,t,n+1),t.oneofs&&(r.type=`chatMessage`)),e.popover!=null&&N.hasOwnProperty.call(e,`popover`)&&(r.popover=W.Block.Popover.toObject(e.popover,t,n+1),t.oneofs&&(r.type=`popover`)),e.dialog!=null&&N.hasOwnProperty.call(e,`dialog`)&&(r.dialog=W.Block.Dialog.toObject(e.dialog,t,n+1),t.oneofs&&(r.type=`dialog`)),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.flexContainer!=null&&N.hasOwnProperty.call(e,`flexContainer`)&&(r.flexContainer=W.Block.FlexContainer.toObject(e.flexContainer,t,n+1),t.oneofs&&(r.type=`flexContainer`)),e.heightConfig!=null&&N.hasOwnProperty.call(e,`heightConfig`)&&(r.heightConfig=W.streamlit.HeightConfig.toObject(e.height
1Config,t,n+1)),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&(r.widthConfig=W.streamlit.WidthConfig.toObject(e.widthConfig,t,n+1)),e.autoscroll!=null&&N.hasOwnProperty.call(e,`autoscroll`)&&(r.autoscroll=e.autoscroll),e.transparent!=null&&N.hasOwnProperty.call(e,`transparent`)&&(r.transparent=W.Block.Transparent.toObject(e.transparent,t,n+1),t.oneofs&&(r.type=`transparent`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block`},e.Vertical=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.border=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.border!=null&&N.hasOwnProperty.call(e,`border`)&&e.border!==!1&&t.uint32(8).bool(e.border),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Vertical,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.border=s:delete o.border;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Vertical)return e;if(!M.isObject(e))throw I(`.Block.Vertical: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.Vertical;return e.border!=null&&e.border&&(n.border=R(e.border)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.border=!1),e.border!=null&&N.hasOwnProperty.call(e,`border`)&&(r.border=e.border),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Vertical`},e})(),e.Horizontal=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.gap=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.gap!=null&&N.hasOwnProperty.call(e,`gap`)&&e.gap!==``&&t.uint32(10).string(e.gap),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Horizontal,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.gap=s:delete o.gap;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Horizontal)return e;if(!M.isObject(e))throw I(`.Block.Horizontal: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.Horizontal;return e.gap!=null&&(typeof e.gap!=`string`||e.gap.length)&&(n.gap=L(e.gap)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.gap=``),e.gap!=null&&N.hasOwnProperty.call(e,`gap`)&&(r.gap=e.gap),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Horizontal`},e})(),e.FlexContainer=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.border=!1,e.prototype.gapConfig=null,e.prototype.scale=0,e.prototype.direction=0,e.prototype.wrap=!1,e.prototype.justify=0,e.prototype.align=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.border!=null&&N.hasOwnProperty.call(e,`border`)&&e.border!==!1&&t.uint32(8).bool(e.border),e.gapConfig!=null&&N.hasOwnProperty.call(e,`gapConfig`)&&W.streamlit.Ga
1pConfig.encode(e.gapConfig,t.uint32(18).fork(),n+1).ldelim(),e.scale!=null&&N.hasOwnProperty.call(e,`scale`)&&!N.is(e.scale,0)&&t.uint32(29).float(e.scale),e.direction!=null&&N.hasOwnProperty.call(e,`direction`)&&e.direction!==0&&t.uint32(32).int32(e.direction),e.wrap!=null&&N.hasOwnProperty.call(e,`wrap`)&&e.wrap!==!1&&t.uint32(40).bool(e.wrap),e.justify!=null&&N.hasOwnProperty.call(e,`justify`)&&e.justify!==0&&t.uint32(56).int32(e.justify),e.align!=null&&N.hasOwnProperty.call(e,`align`)&&e.align!==0&&t.uint32(64).int32(e.align),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.FlexContainer,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.border=s:delete o.border;continue;case 2:if(a!==2)break;o.gapConfig=W.streamlit.GapConfig.decode(e,e.uint32(),P,r+1,o.gapConfig);continue;case 3:if(a!==5)break;N.is(s=e.float(),0)?delete o.scale:o.scale=s;continue;case 4:if(a!==0)break;(s=e.int32())?o.direction=s:delete o.direction;continue;case 5:if(a!==0)break;(s=e.bool())?o.wrap=s:delete o.wrap;continue;case 7:if(a!==0)break;(s=e.int32())?o.justify=s:delete o.justify;continue;case 8:if(a!==0)break;(s=e.int32())?o.align=s:delete o.align;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.FlexContainer)return e;if(!M.isObject(e))throw I(`.Block.FlexContainer: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.FlexContainer;if(e.border!=null&&e.border&&(n.border=R(e.border)),e.gapConfig!=null){if(!M.isObject(e.gapConfig))throw I(`.Block.FlexContainer.gapConfig: object expected`);n.gapConfig=W.streamlit.GapConfig.fromObject(e.gapConfig,t+1)}if(e.scale!=null&&(N.is(z(e.scale),0)||(n.scale=z(e.scale))),e.direction!==0&&(typeof e.direction!=`string`||W.Block.FlexContainer.Direction[e.direction]!==0))switch(e.direction){case`DIRECTION_UNDEFINED`:case 0:n.direction=0;break;case`VERTICAL`:case 1:n.direction=1;break;case`HORIZONTAL`:case 2:n.direction=2;break;default:typeof e.direction==`number`&&(e.direction|0)===e.direction&&(n.direction=e.direction)}if(e.wrap!=null&&e.wrap&&(n.wrap=R(e.wrap)),e.justify!==0&&(typeof e.justify!=`string`||W.Block.FlexContainer.Justify[e.justify]!==0))switch(e.justify){case`JUSTIFY_UNDEFINED`:case 0:n.justify=0;break;case`JUSTIFY_START`:case 1:n.justify=1;break;case`JUSTIFY_END`:case 2:n.justify=2;break;case`JUSTIFY_CENTER`:case 3:n.justify=3;break;case`SPACE_BETWEEN`:case 4:n.justify=4;break;default:typeof e.justify==`number`&&(e.justify|0)===e.justify&&(n.justify=e.justify)}if(e.align!==0&&(typeof e.align!=`string`||W.Block.FlexContainer.Align[e.align]!==0))switch(e.align){case`ALIGN_UNDEFINED`:case 0:n.align=0;break;case`ALIGN_START`:case 1:n.align=1;break;case`ALIGN_END`:case 2:n.align=2;break;case`ALIGN_CENTER`:case 3:n.align=3;break;case`STRETCH`:case 4:n.align=4;break;default:typeof e.align==`number`&&(e.align|0)===e.align&&(n.align=e.align)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.border=!1,r.gapConfig=null,r.scale=0,r.direction=t.enums===L?`DIRECTION_UNDEFINED`:0,r.wrap=!1,r.justify=t.enums===L?`JUSTIFY_UNDEFINED`:0,r.align=t.enums===L?`ALIGN_UNDEFINED`:0),e.border!=null&&N.hasOwnProperty.call(e,`border`)&&(r.border=e.border),e.gapConfig!=null&&N.hasOwnProperty.call(e,`gapConfig`)&&(r.gapConfig=W.streamlit.GapConfig.toObject(e.gapConfig,t,n+1)),e.scale!=null&&N.hasOwnProperty.call(e,`scale`)&&(r.scale=t.json&&!B(e.scale)?L(e.scale):e.scale),e.direction!=null&&N.hasOwnProperty.call(e,`direction`)&&(r.direction=t.enums===L?W.Block.FlexContainer.Direction[e.direction]===P?e.direction:W.Block.FlexContainer.Direction[e.direction]:e.direction),e.wrap!=null&&N.hasOwnProperty.call(e,`wrap`)&&(r.wrap=e.wrap),e.justify!=null&&N.hasOwnProperty.call(e,`justify`)&&(r.justify=t.enums===L?W.Block.FlexContainer.Justify[e.justify]===P?e.justify:W.Block.FlexContainer.Justify[e.justify]:e.justify),e.align!=null&&N.hasOwnProperty.call(e,`align`)&&(r.align=t.enums===L?W.Block.FlexContainer.Align[e.align]===P?e.align:W.Block.FlexContainer.Align[e.align]:e.align),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.FlexContainer`},e.Direction=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`DIRECTION_UNDEFINED`]=0,t[e[1]=`VERTICAL`]=1,t[e[2]=`HORIZONTAL`]=2,t})(),e.Justify=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`JUSTIFY_UNDEFINED`]=0,t[e[1]=`JUSTIFY_START`]=1,t[e[2]=`JUSTIFY_END`]=2,t[e[3]=`JUSTIFY_CENTER`]=3,t[e[4]=`SPACE_BETWEEN`]=4,t})(),e.Align=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`ALIGN_UNDEFINED`]=0,t[e[1]=`ALIGN_START`]=1,t[e[2]=`ALIGN_END`]=2,t[e[3]=`ALIGN_CENTER`]=3,t[e[4]=`STRETCH`]=4,t})(),e})(),e.Column=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.weight=0,e.prototype.verticalAlignment=0,e.prototype.showBorder=!1,e.prototype.gapConfig=null;let t;return N.defineProperty(e.prototype,`_gapConfig`,{get:M.oneOfGetter(t=[`gapConfig`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.weight!=null&&N.hasOwnProperty.call(e,`weight`)&&!N.is(e.weight,0)&&t.uint32(9).double(e.weight),e.verticalAlignment!=null&&N.hasOwnProperty.call(e,`verticalAlignment`)&&e.verticalAlignment!==0&&t.uint32(24).int32(e.verticalAlignment),e.showBorder!=null&&N.hasOwnProperty.call(e,`showBorder`)&&e.showBorder!==!1&&t.uint32(32).bool(e.showBorder),e.gapConfig!=null&&N.hasOwnProperty.call(e,`gapConfig`)&&W.streamlit.Ga
1pConfig.encode(e.gapConfig,t.uint32(42).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Column,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;N.is(s=e.double(),0)?delete o.weight:o.weight=s;continue;case 3:if(a!==0)break;(s=e.int32())?o.verticalAlignment=s:delete o.verticalAlignment;continue;case 4:if(a!==0)break;(s=e.bool())?o.showBorder=s:delete o.showBorder;continue;case 5:if(a!==2)break;o.gapConfig=W.streamlit.GapConfig.decode(e,e.uint32(),P,r+1,o.gapConfig),o._gapConfig=`gapConfig`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Column)return e;if(!M.isObject(e))throw I(`.Block.Column: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.Column;if(e.weight!=null&&(N.is(z(e.weight),0)||(n.weight=z(e.weight))),e.verticalAlignment!==0&&(typeof e.verticalAlignment!=`string`||W.Block.Column.VerticalAlignment[e.verticalAlignment]!==0))switch(e.verticalAlignment){case`TOP`:case 0:n.verticalAlignment=0;break;case`CENTER`:case 1:n.verticalAlignment=1;break;case`BOTTOM`:case 2:n.verticalAlignment=2;break;default:typeof e.verticalAlignment==`number`&&(e.verticalAlignment|0)===e.verticalAlignment&&(n.verticalAlignment=e.verticalAlignment)}if(e.showBorder!=null&&e.showBorder&&(n.showBorder=R(e.showBorder)),e.gapConfig!=null){if(!M.isObject(e.gapConfig))throw I(`.Block.Column.gapConfig: object expected`);n.gapConfig=W.streamlit.GapConfig.fromObject(e.gapConfig,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.weight=0,r.verticalAlignment=t.enums===L?`TOP`:0,r.showBorder=!1),e.weight!=null&&N.hasOwnProperty.call(e,`weight`)&&(r.weight=t.json&&!B(e.weight)?L(e.weight):e.weight),e.verticalAlignment!=null&&N.hasOwnProperty.call(e,`verticalAlignment`)&&(r.verticalAlignment=t.enums===L?W.Block.Column.VerticalAlignment[e.verticalAlignment]===P?e.verticalAlignment:W.Block.Column.VerticalAlignment[e.verticalAlignment]:e.verticalAlignment),e.showBorder!=null&&N.hasOwnProperty.call(e,`showBorder`)&&(r.showBorder=e.showBorder),e.gapConfig!=null&&N.hasOwnProperty.call(e,`gapConfig`)&&(r.gapConfig=W.streamlit.GapConfig.toObject(e.gapConfig,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Column`},e.VerticalAlignment=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`TOP`]=0,t[e[1]=`CENTER`]=1,t[e[2]=`BOTTOM`]=2,t})(),e})(),e.Expandable=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.label=``,e.prototype.expanded=null,e.prototype.icon=``,e.prototype.id=null,e.prototype.type=0;let t;return N.defineProperty(e.prototype,`_expanded`,{get:M.oneOfGetter(t=[`expanded`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_id`,{get:M.oneOfGetter(t=[`id`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(10).string(e.label),e.expanded!=null&&N.hasOwnProperty.call(e,`expanded`)&&t.uint32(16).bool(e.expanded),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(26).string(e.icon),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&t.uint32(34).string(e.id),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==0&&t.uint32(40).int32(e.type),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Expandable,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 2:if(a!==0)break;o.expanded=e.bool(),o._expanded=`expanded`;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 4:if(a!==2)break;o.id=e.stringVerify(),o._id=`id`;continue;case 5:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Expandable)return e;if(!M.isObject(e))throw I(`.Block.Expandable: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.Expandable;if(e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.expanded!=null&&(n.expanded=R(e.expanded)),e.
1icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.id!=null&&(n.id=L(e.id)),e.type!==0&&(typeof e.type!=`string`||W.Block.Expandable.Type[e.type]!==0))switch(e.type){case`DEFAULT`:case 0:n.type=0;break;case`COMPACT`:case 1:n.type=1;break;default:typeof e.type==`number`&&(e.type|0)===e.type&&(n.type=e.type)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.label=``,r.icon=``,r.type=t.enums===L?`DEFAULT`:0),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.expanded!=null&&N.hasOwnProperty.call(e,`expanded`)&&(r.expanded=e.expanded),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=t.enums===L?W.Block.Expandable.Type[e.type]===P?e.type:W.Block.Expandable.Type[e.type]:e.type),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Expandable`},e.Type=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`DEFAULT`]=0,t[e[1]=`COMPACT`]=1,t})(),e})(),e.Dialog=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.title=``,e.prototype.dismissible=!1,e.prototype.width=0,e.prototype.isOpen=null,e.prototype.id=``,e.prototype.icon=``;let t;return N.defineProperty(e.prototype,`_isOpen`,{get:M.oneOfGetter(t=[`isOpen`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.title!=null&&N.hasOwnProperty.call(e,`title`)&&e.title!==``&&t.uint32(10).string(e.title),e.dismissible!=null&&N.hasOwnProperty.call(e,`dismissible`)&&e.dismissible!==!1&&t.uint32(16).bool(e.dismissible),e.width!=null&&N.hasOwnProperty.call(e,`width`)&&e.width!==0&&t.uint32(24).int32(e.width),e.isOpen!=null&&N.hasOwnProperty.call(e,`isOpen`)&&t.uint32(32).bool(e.isOpen),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(42).string(e.id),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(50).string(e.icon),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Dialog,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.title=s:delete o.title;continue;case 2:if(a!==0)break;(s=e.bool())?o.dismissible=s:delete o.dismissible;continue;case 3:if(a!==0)break;(s=e.int32())?o.width=s:delete o.width;continue;case 4:if(a!==0)break;o.isOpen=e.bool(),o._isOpen=`isOpen`;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Dialog)return e;if(!M.isObject(e))throw I(`.Block.Dialog: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.Dialog;if(e.title!=null&&(typeof e.title!=`string`||e.title.length)&&(n.title=L(e.title)),e.dismissible!=null&&e.dismissible&&(n.dismissible=R(e.dismissible)),e.width!==0&&(typeof e.width!=`string`||W.Block.Dialog.DialogWidth[e.width]!==0))switch(e.width){case`SMALL`:case 0:n.width=0;break;case`LARGE`:case 1:n.width=1;break;case`MEDIUM`:case 2:n.width=2;break;default:typeof e.width==`number`&&(e.width|0)===e.width&&(n.width=e.width)}return e.isOpen!=null&&(n.isOpen=R(e.isOpen)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.title=``,r.dismissible=!1,r.width=t.enums===L?`SMALL`:0,r.id=``,r.icon=``),e.title!=null&&N.hasOwnProperty.call(e,`title`)&&(r.title=e.title),e.dismissible!=null&&N.hasOwnProperty.call(e,`dismissible`)&&(r.dismissible=e.dismissible),e.width!=null&&N.hasOwnProperty.call(e,`width`)&&(r.width=t.enums===L?W.Block.Dialog.DialogWidth[e.width]===P?e.width:W.Block.Dialog.DialogWidth[e.width]:e.width),e.isOpen!=null&&N.hasOwnProperty.call(e,`isOpen`)&&(r.isOpen=e.isOpen),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Dialog`},e.DialogWidth=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`SMALL`]=0,t[e[1]=`LARGE`]=1,t[e[2]=`MEDIUM`]=2,t})(),e})(),e.Form=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.formId=``,e.prototype.clearOnSubmit=!1,e.prototype.border=!1,e.prototype.enterToSubmit=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(10).string(e.formId),e.clearOnSubmit!=null&&N.hasOwnProperty.call(e,`clearOnSubmit`)&&e.clearOnSubmit!==!1&&t.uint32(16).bool(e.clearOnSubmit),e.border!=null&&N.hasOwnProperty.call(e,`border`)&&e.border!==!1&&t.uint32(24).bool(e.border),e.enterToSubmit!=null&&N.hasOwnProperty.call(e,`enterToSubmit`)&&e.enterToSubmit!==!1&&t.uint32(32).bool(e.enterToSubmit),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Form,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 2:if(a!==0)break;(s=e.bool())?o.clearOnSubmit=s:delete o.clearOnSubmit;
1continue;case 3:if(a!==0)break;(s=e.bool())?o.border=s:delete o.border;continue;case 4:if(a!==0)break;(s=e.bool())?o.enterToSubmit=s:delete o.enterToSubmit;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Form)return e;if(!M.isObject(e))throw I(`.Block.Form: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.Form;return e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.clearOnSubmit!=null&&e.clearOnSubmit&&(n.clearOnSubmit=R(e.clearOnSubmit)),e.border!=null&&e.border&&(n.border=R(e.border)),e.enterToSubmit!=null&&e.enterToSubmit&&(n.enterToSubmit=R(e.enterToSubmit)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.formId=``,r.clearOnSubmit=!1,r.border=!1,r.enterToSubmit=!1),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.clearOnSubmit!=null&&N.hasOwnProperty.call(e,`clearOnSubmit`)&&(r.clearOnSubmit=e.clearOnSubmit),e.border!=null&&N.hasOwnProperty.call(e,`border`)&&(r.border=e.border),e.enterToSubmit!=null&&N.hasOwnProperty.call(e,`enterToSubmit`)&&(r.enterToSubmit=e.enterToSubmit),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Form`},e})(),e.TabContainer=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.defaultTabIndex=0,e.prototype.id=null;let t;return N.defineProperty(e.prototype,`_id`,{get:M.oneOfGetter(t=[`id`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.defaultTabIndex!=null&&N.hasOwnProperty.call(e,`defaultTabIndex`)&&e.defaultTabIndex!==0&&t.uint32(8).int32(e.defaultTabIndex),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&t.uint32(18).string(e.id),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.TabContainer,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.int32())?o.defaultTabIndex=s:delete o.defaultTabIndex;continue;case 2:if(a!==2)break;o.id=e.stringVerify(),o._id=`id`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.TabContainer)return e;if(!M.isObject(e))throw I(`.Block.TabContainer: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.TabContainer;return e.defaultTabIndex!=null&&z(e.defaultTabIndex)!==0&&(n.defaultTabIndex=e.defaultTabIndex|0),e.id!=null&&(n.id=L(e.id)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.defaultTabIndex=0),e.defaultTabIndex!=null&&N.hasOwnProperty.call(e,`defaultTabIndex`)&&(r.defaultTabIndex=e.defaultTabIndex),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.TabContainer`},e})(),e.Tab=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.label=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(10).string(e.label),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Tab,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Tab)return e;if(!M.isObject(e))throw I(`.Block.Tab: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.Tab;return e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.label=``),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Tab`},e})(),e.Popover=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.label=``,e.prototype.help=``,e.prototype.disabled=!1,e.prototype.icon=``,e.prototype.type=``,e.prototype.open=null,e.prototype.id=null;let t;return N.defineProperty(e.prototype,`_open`,{get:M.oneOfGetter(t=[`open`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_id`,{get:M.oneOfGetter(t=[`id`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(10).string(e.label),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(26).string(e.help),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(32).bool(e.disabled),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(42).string(e.icon),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==``&&t.uint32(50).string(e.type),e.open!=null&&N.hasOwnProperty.call(e,`open`)&&t.uint32(56).bool(e.open),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&t.uint32(66).string(e.id),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Popover,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 4:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 6:if(a!==2)break;
1(s=e.stringVerify()).length?o.type=s:delete o.type;continue;case 7:if(a!==0)break;o.open=e.bool(),o._open=`open`;continue;case 8:if(a!==2)break;o.id=e.stringVerify(),o._id=`id`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Popover)return e;if(!M.isObject(e))throw I(`.Block.Popover: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.Popover;return e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=L(e.type)),e.open!=null&&(n.open=R(e.open)),e.id!=null&&(n.id=L(e.id)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.label=``,r.help=``,r.disabled=!1,r.icon=``,r.type=``),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=e.type),e.open!=null&&N.hasOwnProperty.call(e,`open`)&&(r.open=e.open),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Popover`},e})(),e.ChatMessage=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.name=``,e.prototype.avatar=``,e.prototype.avatarType=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(10).string(e.name),e.avatar!=null&&N.hasOwnProperty.call(e,`avatar`)&&e.avatar!==``&&t.uint32(18).string(e.avatar),e.avatarType!=null&&N.hasOwnProperty.call(e,`avatarType`)&&e.avatarType!==0&&t.uint32(24).int32(e.avatarType),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.ChatMessage,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.avatar=s:delete o.avatar;continue;case 3:if(a!==0)break;(s=e.int32())?o.avatarType=s:delete o.avatarType;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.ChatMessage)return e;if(!M.isObject(e))throw I(`.Block.ChatMessage: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Block.ChatMessage;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.avatar!=null&&(typeof e.avatar!=`string`||e.avatar.length)&&(n.avatar=L(e.avatar)),e.avatarType!==0&&(typeof e.avatarType!=`string`||W.Block.ChatMessage.AvatarType[e.avatarType]!==0))switch(e.avatarType){case`IMAGE`:case 0:n.avatarType=0;break;case`EMOJI`:case 1:n.avatarType=1;break;case`ICON`:case 2:n.avatarType=2;break;default:typeof e.avatarType==`number`&&(e.avatarType|0)===e.avatarType&&(n.avatarType=e.avatarType)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.name=``,r.avatar=``,r.avatarType=t.enums===L?`IMAGE`:0),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.avatar!=null&&N.hasOwnProperty.call(e,`avatar`)&&(r.avatar=e.avatar),e.avatarType!=null&&N.hasOwnProperty.call(e,`avatarType`)&&(r.avatarType=t.enums===L?W.Block.ChatMessage.AvatarType[e.avatarType]===P?e.avatarType:W.Block.ChatMessage.AvatarType[e.avatarType]:e.avatarType),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.ChatMessage`},e.AvatarType=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`IMAGE`]=0,t[e[1]=`EMOJI`]=1,t[e[2]=`ICON`]=2,t})(),e})(),e.Transparent=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Block.Transparent;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}e.skipType(i&7,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Block.Transparent)return e;if(!M.isObject(e))throw I(`.Block.Transparent: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);return new W.Block.Transparent},e.toObject=function(){return{}},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Block.Transparent`},e})(),e})();W.Button=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.id=``,e.prototype.label=``,e.prototype.default=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.isFormSubmitter=!1,e.prototype.type=``,e.prototype.disabled=!1,e.prototype.icon=``,e.prototype.shortcut=``,e.prototype.iconPosition=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&e.default!==!1&&t.uint32(24).bool(e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(42).string(e.formId),e.isFormSubmitter!=null&&N.hasOwnProperty.call(e,`isFormSubmitter`)&&e.isFormSubmitter!==!1&&t.uint32(48).bool(e.isFormSubmitter),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==``&&t.uint32(58).string(e.type),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(64).bool(e.disabled),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(82).string(e.icon),e.shortcut!=null&&N.hasOwnProperty.call(e,`shortcut`)&&e.shortcut!==``&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&N.hasOwnProperty.call(e,`iconPosition`)&&e.iconPosition!==0&&t.uint32(96).int32(e.iconPosition),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Button,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;(s=e.bool())?o.default=s:delete o.default;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==0)break;(s=e.bool())?o.isFormSubmitter=s:delete o.isFormSubmitter;continue;case 7:if(a!==2)break;
1(s=e.stringVerify()).length?o.type=s:delete o.type;continue;case 8:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.shortcut=s:delete o.shortcut;continue;case 12:if(a!==0)break;(s=e.int32())?o.iconPosition=s:delete o.iconPosition;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Button)return e;if(!M.isObject(e))throw I(`.Button: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Button;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&e.default&&(n.default=R(e.default)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.isFormSubmitter!=null&&e.isFormSubmitter&&(n.isFormSubmitter=R(e.isFormSubmitter)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=L(e.type)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.shortcut!=null&&(typeof e.shortcut!=`string`||e.shortcut.length)&&(n.shortcut=L(e.shortcut)),e.iconPosition!==0&&(typeof e.iconPosition!=`string`||W.streamlit.ButtonLikeIconPosition[e.iconPosition]!==0))switch(e.iconPosition){case`LEFT`:case 0:n.iconPosition=0;break;case`RIGHT`:case 1:n.iconPosition=1;break;default:typeof e.iconPosition==`number`&&(e.iconPosition|0)===e.iconPosition&&(n.iconPosition=e.iconPosition)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.default=!1,r.help=``,r.formId=``,r.isFormSubmitter=!1,r.type=``,r.disabled=!1,r.icon=``,r.shortcut=``,r.iconPosition=t.enums===L?`LEFT`:0),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.isFormSubmitter!=null&&N.hasOwnProperty.call(e,`isFormSubmitter`)&&(r.isFormSubmitter=e.isFormSubmitter),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=e.type),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.shortcut!=null&&N.hasOwnProperty.call(e,`shortcut`)&&(r.shortcut=e.shortcut),e.iconPosition!=null&&N.hasOwnProperty.call(e,`iconPosition`)&&(r.iconPosition=t.enums===L?W.streamlit.ButtonLikeIconPosition[e.iconPosition]===P?e.iconPosition:W.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Button`},e})();var ce=W.ButtonGroup=(()=>{let e=function(e){if(this.options=[],this.default=[],this.rawValues=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.options=M.emptyArray,e.prototype.default=M.emptyArray,e.prototype.disabled=!1,e.prototype.clickMode=0,e.prototype.formId=``,e.prototype.setValue=!1,e.prototype.style=0,e.prototype.label=``,e.prototype.labelVisibility=null,e.prototype.help=null,e.prototype.rawValues=M.emptyArray,e.prototype.queryParamKey=null,e.prototype.required=!1;let t;return N.defineProperty(e.prototype,`_help`,{get:M.oneOfGetter(t=[`help`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.options!=null&&e.options.length)for(let r=0;r<e.options.length;++r)W.ButtonGroup.Option.encode(e.options[r],t.uint32(18).fork(),n+1).ldelim();if(e.default!=null&&e.default.length){t.uint32(26).fork();for(let n=0;n<e.default.length;++n)t.uint32(e.default[n]);t.ldelim()}if(e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(32).bool(e.disabled),e.clickMode!=null&&N.hasOwnProperty.call(e,`clickMode`)&&e.clickMode!==0&&t.uint32(40).int32(e.clickMode),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(50).string(e.formId),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(64).bool(e.setValue),e.style!=null&&N.hasOwnProperty.call(e,`style`)&&e.style!==0&&t.uint32(80).int32(e.style),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(90).string(e.label),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(98).fork(),n+1).ldelim(),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&t.uint32(106).string(e.help),e.rawValues!=null&&e.rawValues.length)for(let n=0;n<e.rawValues.length;++n)t.uint32(114).string(e.rawValues[n]);if(e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(122).string(e.queryParamKey),e.required!=null&&N.hasOwnProperty.call(e,`required`)&&e.required!==!1&&t.uint32(128).bool(e.required),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ButtonGroup,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(W.ButtonGroup.Option.decode(e,e.uint32(),P,r+1));continue;case 3:if(a===2){o.default&&o.default.length||(o.default=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.default.push(e.uint32());continue}if(a!==0)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.uint32());continue;case 4:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 5:if(a!==0)break;(s=e.int32())?o.clickMode=s:delete o.clickMode;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 10:if(a!==0)break;(s=e.int32())?o.style=s:delete o.style;continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 12:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 13:if(a!==2)break;o.help=e.stringVerify(),o._help=`help`;continue;case 14:if(a!==2)break;o.rawValues&&o.rawValues.length||(o.rawValues=[]),o.rawValues.push(e.stringVerify());continue;case 15:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue;case 16:if(a!==0)break;(s=e.bool())?o.required=s:delete o.required;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ButtonGroup)return e;if(!M.isObject(e))throw I(`.ButtonGroup: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ButtonGroup;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.options){if(!V.isArray(e.options))throw I(`.ButtonGroup.options: array expected`);n.options=V(e.options.length);for(let r=0;r<e.options.length;++r){if(!M.isObject(e.options[r]))throw I(`.ButtonGroup.options: object expected`);n.options[r]=W.ButtonGroup.Option.fromObject(e.options[r],t+1)}}if(e.default){if(!V.isArray(e.default))throw I(`.ButtonGroup.default: array expected`);n.default=V(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]>>>0}if(e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.clickMode!==0&&(typeof e.clickMode!=`string`||W.ButtonGroup.ClickMode[e.clickMode]!==0))switch(e.clickMode){case`SINGLE_SELECT`:case 0:n.
1clickMode=0;break;case`MULTI_SELECT`:case 1:n.clickMode=1;break;default:typeof e.clickMode==`number`&&(e.clickMode|0)===e.clickMode&&(n.clickMode=e.clickMode)}if(e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.style!==0&&(typeof e.style!=`string`||W.ButtonGroup.Style[e.style]!==0))switch(e.style){case`SEGMENTED_CONTROL`:case 0:n.style=0;break;case`PILLS`:case 1:n.style=1;break;default:typeof e.style==`number`&&(e.style|0)===e.style&&(n.style=e.style)}if(e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.ButtonGroup.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.help!=null&&(n.help=L(e.help)),e.rawValues){if(!V.isArray(e.rawValues))throw I(`.ButtonGroup.rawValues: array expected`);n.rawValues=V(e.rawValues.length);for(let t=0;t<e.rawValues.length;++t)n.rawValues[t]=L(e.rawValues[t])}return e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),e.required!=null&&e.required&&(n.required=R(e.required)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.options=[],r.default=[],r.rawValues=[]),t.defaults&&(r.id=``,r.disabled=!1,r.clickMode=t.enums===L?`SINGLE_SELECT`:0,r.formId=``,r.setValue=!1,r.style=t.enums===L?`SEGMENTED_CONTROL`:0,r.label=``,r.labelVisibility=null,r.required=!1),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.options&&e.options.length){r.options=V(e.options.length);for(let i=0;i<e.options.length;++i)r.options[i]=W.ButtonGroup.Option.toObject(e.options[i],t,n+1)}if(e.default&&e.default.length){r.default=V(e.default.length);for(let t=0;t<e.default.length;++t)r.default[t]=e.default[t]}if(e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.clickMode!=null&&N.hasOwnProperty.call(e,`clickMode`)&&(r.clickMode=t.enums===L?W.ButtonGroup.ClickMode[e.clickMode]===P?e.clickMode:W.ButtonGroup.ClickMode[e.clickMode]:e.clickMode),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.style!=null&&N.hasOwnProperty.call(e,`style`)&&(r.style=t.enums===L?W.ButtonGroup.Style[e.style]===P?e.style:W.ButtonGroup.Style[e.style]:e.style),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.rawValues&&e.rawValues.length){r.rawValues=V(e.rawValues.length);for(let t=0;t<e.rawValues.length;++t)r.rawValues[t]=e.rawValues[t]}return e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),e.required!=null&&N.hasOwnProperty.call(e,`required`)&&(r.required=e.required),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ButtonGroup`},e.ClickMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`SINGLE_SELECT`]=0,t[e[1]=`MULTI_SELECT`]=1,t})(),e.Option=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.content=``,e.prototype.contentIcon=null;let t;return N.defineProperty(e.prototype,`_contentIcon`,{get:M.oneOfGetter(t=[`contentIcon`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.content!=null&&N.hasOwnProperty.call(e,`content`)&&e.content!==``&&t.uint32(10).string(e.content),e.contentIcon!=null&&N.hasOwnProperty.call(e,`contentIcon`)&&t.uint32(26).string(e.contentIcon),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ButtonGroup.Option,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.content=s:delete o.content;continue;case 3:if(a!==2)break;o.contentIcon=e.stringVerify(),o._contentIcon=`contentIcon`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ButtonGroup.Option)return e;if(!M.isObject(e))throw I(`.ButtonGroup.Option: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ButtonGroup.Option;return e.content!=null&&(typeof e.content!=`string`||e.content.length)&&(n.content=L(e.content)),e.contentIcon!=null&&(n.contentIcon=L(e.contentIcon)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.content=``),e.content!=null&&N.hasOwnProperty.call(e,`content`)&&(r.content=e.content),e.contentIcon!=null&&N.hasOwnProperty.call(e,`contentIcon`)&&(r.contentIcon=e.contentIcon),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ButtonGroup.Option`},e})(),e.Style=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`SEGMENTED_CONTROL`]=0,t[e[1]=`PILLS`]=1,t})(),e})();W.CameraInput=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.help=``,e.prototype.formId=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.resolutionHeight=null;let t;return N.defineProperty(e.prototype,`_resolutionHeight`,{get:M.oneOfGetter(t=[`resolutionHeight`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(26).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(34).string(e.formId),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(40).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(50).fork(),n+1).ldelim(),e.resolutionHeight!=null&&N.hasOwnProperty.call(e,`resolutionHeight`)&&t.uint32(56).int32(e.resolutionHeight),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.CameraInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 5:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 6:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 7:if(a!==0)break;o.resolutionHeight=e.int32(),o._resolutionHeight=`resolutionHeight`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.CameraInput)return e;if(!M.isObject(e))throw I(`.CameraInput: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.CameraInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.CameraInput.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.resolutionHeight!=null&&(n.resolutionHeight=e.resolutionHeight|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.help=``,r.formId=``,r.disabled=!1,r.labelVisibility=null),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.resolutionHeight!=null&&N.hasOwnProperty.call(e,`resolutionHeight`)&&(r.resolutionHeight=e.resolutionHeight),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/CameraInput`},e})();var le=W.ChatInput=(()=>{let e=function(e){if(this.fileType=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.placeholder=``,e.prototype.maxChars=0,e.prototype.disabled=!1,e.prototype.value=``,e.prototype.setValue=!1,e.prototype.default=``,e.prototype.acceptFile=0,e.prototype.fileType=M.emptyArray,e.prototype.maxUploadSizeMb=0,e.prototype.acceptAudio=!1,e.prototype.audioSampleRate=null,e.prototype.submitMode=0;let t;return N.defineProperty(e.prototype,`_audioSampleRate`,{get:M.oneOfGetter(t=[`audioSampleRate`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&e.placeholder!==``&&t.uint32(18).string(e.placeholder),e.maxChars!=null&&N.hasOwnProperty.call(e,`maxChars`)&&e.maxChars!==0&&t.uint32(24).uint32(e.maxChars),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(32).bool(e.disabled),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&e.value!==``&&t.uint32(42).string(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(48).bool(e.setValue),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&e.default!==``&&t.uint32(58).string(e.default),e.acceptFile!=null&&N.hasOwnProperty.call(e,`acceptFile`)&&e.acceptFile!==0&&t.uint32(72).int32(e.acceptFile),e.fileType!=null&&e.fileType.length)for(let n=0;n<e.fileType.length;++n)t.uint32(82).string(e.fileType[n]);if(e.maxUploadSizeMb!=null&&N.hasOwnProperty.call(e,`maxUploadSizeMb`)&&e.maxUploadSizeMb!==0&&t.uint32(88).int32(e.maxUploadSizeMb),e.acceptAudio!=null&&N.hasOwnProperty.call(e,`acceptAudio`)&&e.acceptAudio!==!1&&t.uint32(96).bool(e.acceptAudio),e.audioSampleRate!=null&&N.hasOwnProperty.call(e,`audioSampleRate`)&&t.uint32(104).int32(e.audioSampleRate),e.submitMode!=null&&N.hasOwnProperty.call(e,`submitMode`)&&e.submitMode!==0&&t.uint32(112).int32(e.submitMode),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ChatInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.placeholder=s:delete o.placeholder;continue;case 3:if(a!==0)break;(s=e.uint32())?o.maxChars=s:delete o.maxChars;continue;case 4:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.value=s:delete o.value;continue;case 6:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.default=s:delete o.default;continue;
1case 9:if(a!==0)break;(s=e.int32())?o.acceptFile=s:delete o.acceptFile;continue;case 10:if(a!==2)break;o.fileType&&o.fileType.length||(o.fileType=[]),o.fileType.push(e.stringVerify());continue;case 11:if(a!==0)break;(s=e.int32())?o.maxUploadSizeMb=s:delete o.maxUploadSizeMb;continue;case 12:if(a!==0)break;(s=e.bool())?o.acceptAudio=s:delete o.acceptAudio;continue;case 13:if(a!==0)break;o.audioSampleRate=e.int32(),o._audioSampleRate=`audioSampleRate`;continue;case 14:if(a!==0)break;(s=e.int32())?o.submitMode=s:delete o.submitMode;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ChatInput)return e;if(!M.isObject(e))throw I(`.ChatInput: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ChatInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=L(e.placeholder)),e.maxChars!=null&&z(e.maxChars)!==0&&(n.maxChars=e.maxChars>>>0),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.value!=null&&(typeof e.value!=`string`||e.value.length)&&(n.value=L(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.default!=null&&(typeof e.default!=`string`||e.default.length)&&(n.default=L(e.default)),e.acceptFile!==0&&(typeof e.acceptFile!=`string`||W.ChatInput.AcceptFile[e.acceptFile]!==0))switch(e.acceptFile){case`NONE`:case 0:n.acceptFile=0;break;case`SINGLE`:case 1:n.acceptFile=1;break;case`MULTIPLE`:case 2:n.acceptFile=2;break;case`DIRECTORY`:case 3:n.acceptFile=3;break;default:typeof e.acceptFile==`number`&&(e.acceptFile|0)===e.acceptFile&&(n.acceptFile=e.acceptFile)}if(e.fileType){if(!V.isArray(e.fileType))throw I(`.ChatInput.fileType: array expected`);n.fileType=V(e.fileType.length);for(let t=0;t<e.fileType.length;++t)n.fileType[t]=L(e.fileType[t])}if(e.maxUploadSizeMb!=null&&z(e.maxUploadSizeMb)!==0&&(n.maxUploadSizeMb=e.maxUploadSizeMb|0),e.acceptAudio!=null&&e.acceptAudio&&(n.acceptAudio=R(e.acceptAudio)),e.audioSampleRate!=null&&(n.audioSampleRate=e.audioSampleRate|0),e.submitMode!==0&&(typeof e.submitMode!=`string`||W.ChatInput.SubmitMode[e.submitMode]!==0))switch(e.submitMode){case`SUBMIT_MODE_SUBMIT`:case 0:n.submitMode=0;break;case`SUBMIT_MODE_DISABLE`:case 1:n.submitMode=1;break;case`SUBMIT_MODE_STOP`:case 2:n.submitMode=2;break;default:typeof e.submitMode==`number`&&(e.submitMode|0)===e.submitMode&&(n.submitMode=e.submitMode)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.fileType=[]),t.defaults&&(r.id=``,r.placeholder=``,r.maxChars=0,r.disabled=!1,r.value=``,r.setValue=!1,r.default=``,r.acceptFile=t.enums===L?`NONE`:0,r.maxUploadSizeMb=0,r.acceptAudio=!1,r.submitMode=t.enums===L?`SUBMIT_MODE_SUBMIT`:0),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&(r.placeholder=e.placeholder),e.maxChars!=null&&N.hasOwnProperty.call(e,`maxChars`)&&(r.maxChars=e.maxChars),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.acceptFile!=null&&N.hasOwnProperty.call(e,`acceptFile`)&&(r.acceptFile=t.enums===L?W.ChatInput.AcceptFile[e.acceptFile]===P?e.acceptFile:W.ChatInput.AcceptFile[e.acceptFile]:e.acceptFile),e.fileType&&e.fileType.length){r.fileType=V(e.fileType.length);for(let t=0;t<e.fileType.length;++t)r.fileType[t]=e.fileType[t]}return e.maxUploadSizeMb!=null&&N.hasOwnProperty.call(e,`maxUploadSizeMb`)&&(r.maxUploadSizeMb=e.maxUploadSizeMb),e.acceptAudio!=null&&N.hasOwnProperty.call(e,`acceptAudio`)&&(r.acceptAudio=e.acceptAudio),e.audioSampleRate!=null&&N.hasOwnProperty.call(e,`audioSampleRate`)&&(r.audioSampleRate=e.audioSampleRate),e.submitMode!=null&&N.hasOwnProperty.call(e,`submitMode`)&&(r.submitMode=t.enums===L?W.ChatInput.
1SubmitMode[e.submitMode]===P?e.submitMode:W.ChatInput.SubmitMode[e.submitMode]:e.submitMode),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ChatInput`},e.AcceptFile=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`NONE`]=0,t[e[1]=`SINGLE`]=1,t[e[2]=`MULTIPLE`]=2,t[e[3]=`DIRECTORY`]=3,t})(),e.SubmitMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`SUBMIT_MODE_SUBMIT`]=0,t[e[1]=`SUBMIT_MODE_DISABLE`]=1,t[e[2]=`SUBMIT_MODE_STOP`]=2,t})(),e})(),ue=W.Checkbox=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=!1,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.type=0,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&e.default!==!1&&t.uint32(24).bool(e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(42).string(e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&e.value!==!1&&t.uint32(48).bool(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(56).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork(),n+1).ldelim(),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==0&&t.uint32(80).int32(e.type),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(90).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Checkbox,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;(s=e.bool())?o.default=s:delete o.default;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==0)break;(s=e.bool())?o.value=s:delete o.value;continue;case 7:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 8:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 9:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 10:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 11:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Checkbox)return e;if(!M.isObject(e))throw I(`.Checkbox: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Checkbox;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&e.default&&(n.default=R(e.default)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value!=null&&e.value&&(n.value=R(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.Checkbox.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.type!==0&&(typeof e.type!=`string`||W.Checkbox.StyleType[e.type]!==0))switch(e.type){case`DEFAULT`:case 0:n.type=0;break;case`TOGGLE`:case 1:n.type=1;break;default:typeof e.type==`number`&&(e.type|0)===e.type&&(n.type=e.type)}return e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.default=!1,r.help=``,r.formId=``,r.value=!1,r.setValue=!1,r.disabled=!1,r.labelVisibility=null,r.type=t.enums===L?`DEFAULT`:0),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=t.enums===L?W.Checkbox.StyleType[e.type]===P?e.type:W.Checkbox.StyleType[e.type]:e.type),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Checkbox`},e.StyleType=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`DEFAULT`]=0,t[e[1]=`TOGGLE`]=1,t})(),e})();W.Code=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.codeText=``,e.prototype.language=``,e.prototype.showLineNumbers=!1,e.prototype.wrapLines=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.codeText!=null&&N.hasOwnProperty.call(e,`codeText`)&&e.codeText!==``&&t.uint32(10).string(e.codeText),e.language!=null&&N.hasOwnProperty.call(e,`language`)&&e.language!==``&&t.uint32(18).string(e.language),e.showLineNumbers!=null&&N.hasOwnProperty.call(e,`showLineNumbers`)&&e.showLineNumbers!==!1&&t.uint32(24).bool(e.showLineNumbers),e.wrapLines!=null&&N.hasOwnProperty.call(e,`wrapLines`)&&e.wrapLines!==!1&&t.uint32(32).bool(e.wrapLines),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Code,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.codeText=s:delete o.codeText;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.language=s:delete o.language;continue;case 3:if(a!==0)break;(s=e.bool())?o.showLineNumbers=s:delete o.showLineNumbers;continue;case 4:if(a!==0)break;(s=e.bool())?o.wrapLines=s:delete o.wrapLines;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Code)return e;if(!M.isObject(e))throw I(`.Code: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Code;return e.codeText!=null&&(typeof e.codeText!=`string`||e.codeText.length)&&(n.codeText=L(e.codeText)),e.language!=null&&(typeof e.language!=`string`||e.language.length)&&(n.language=L(e.language)),e.showLineNumbers!=null&&e.showLineNumbers&&(n.showLineNumbers=R(e.showLineNumbers)),e.wrapLines!=null&&e.wrapLines&&(n.wrapLines=R(e.wrapLines)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.codeText=``,r.language=``,r.showLineNumbers=!1,r.wrapLines=!1),e.codeText!=null&&N.hasOwnProperty.call(e,`codeText`)&&(r.codeText=e.codeText),e.language!=null&&N.hasOwnProperty.call(e,`language`)&&(r.language=e.language),e.showLineNumbers!=null&&N.hasOwnProperty.call(e,`showLineNumbers`)&&(r.showLineNumbers=e.showLineNumbers),e.wrapLines!=null&&N.hasOwnProperty.call(e,`wrapLines`)&&(r.wrapLines=e.wrapLines),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Code`},e})(),W.ColorPicker=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=``,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=``,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&e.default!==``&&t.uint32(26).string(e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(42).string(e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&e.value!==``&&t.uint32(50).string(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(56).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork(),n+1).ldelim(),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(82).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ColorPicker,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.default=s:delete o.default;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.value=s:delete o.value;continue;case 7:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 8:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;
1case 9:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 10:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ColorPicker)return e;if(!M.isObject(e))throw I(`.ColorPicker: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ColorPicker;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&(typeof e.default!=`string`||e.default.length)&&(n.default=L(e.default)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value!=null&&(typeof e.value!=`string`||e.value.length)&&(n.value=L(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.ColorPicker.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.default=``,r.help=``,r.formId=``,r.value=``,r.setValue=!1,r.disabled=!1,r.labelVisibility=null),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ColorPicker`},e})();var de=W.Dataframe=(()=>{let e=function(e){if(this.columnOrder=[],this.selectionMode=[],this.buttonClickWidgets={},e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.arrowData=null,e.prototype.id=``,e.prototype.columns=``,e.prototype.editingMode=0,e.prototype.disabled=!1,e.prototype.formId=``,e.prototype.columnOrder=M.emptyArray,e.prototype.selectionMode=M.emptyArray,e.prototype.rowHeight=null,e.prototype.placeholder=null,e.prototype.selectionState=null,e.prototype.selectionDefault=null,e.prototype.buttonClickWidgets=M.emptyObject;let t;return N.defineProperty(e.prototype,`_rowHeight`,{get:M.oneOfGetter(t=[`rowHeight`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_placeholder`,{get:M.oneOfGetter(t=[`placeholder`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_selectionState`,{get:M.oneOfGetter(t=[`selectionState`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_selectionDefault`,{get:M.oneOfGetter(t=[`selectionDefault`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.arrowData!=null&&N.hasOwnProperty.call(e,`arrowData`)&&W.ArrowData.encode(e.arrowData,t.uint32(10).fork(),n+1).ldelim(),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(18).string(e.id),e.columns!=null&&N.hasOwnProperty.call(e,`columns`)&&e.columns!==``&&t.uint32(26).string(e.columns),e.editingMode!=null&&N.hasOwnProperty.call(e,`editingMode`)&&e.editingMode!==0&&t.uint32(32).int32(e.editingMode),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(40).bool(e.disabled),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(50).string(e.formId),e.columnOrder!=null&&e.columnOrder.length)for(let n=0;n<e.columnOrder.length;++n)t.uint32(58).string(e.columnOrder[n]);if(e.selectionMode!=null&&e.selectionMode.length){t.uint32(66).fork();for(let n=0;n<e.selectionMode.length;++n)t.int32(e.selectionMode[n]);t.ldelim()}if(e.rowHeight!=null&&N.hasOwnProperty.call(e,`rowHeight`)&&t.uint32(72).uint32(e.rowHeight),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&t.uint32(82).string(e.placeholder),e.selectionState!=null&&N.hasOwnProperty.call(e,`selectionState`)&&t.uint32(90).string(e.selectionState),e.selectionDefault!=null&&N.hasOwnProperty.call(e,`selectionDefault`)&&t.uint32(98).string(e.selectionDefault),e.buttonClickWidgets!=null&&N.hasOwnProperty.call(e,`buttonClickWidgets`))for(let n=N.keys(e.buttonClickWidgets),r=0;r<n.length;++r)t.uint32(106).fork().uint32(10).string(n[r]).uint32(18).string(e.buttonClickWidgets[n[r]]).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Dataframe,s,c;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.arrowData=W.ArrowData.decode(e,e.uint32(),P,r+1,o.arrowData);continue;case 2:if(a!==2)break;(c=e.stringVerify()).length?o.id=c:delete o.id;continue;case 3:if(a!==2)break;(c=e.stringVerify()).length?o.columns=c:delete o.columns;continue;case 4:if(a!==0)break;(c=e.int32())?o.editingMode=c:delete o.editingMode;continue;case 5:if(a!==0)break;(c=e.bool())?o.disabled=c:delete o.disabled;continue;case 6:if(a!==2)break;(c=e.stringVerify()).length?o.formId=c:delete o.formId;continue;case 7:if(a!==2)break;o.columnOrder&&o.columnOrder.length||(o.columnOrder=[]),o.columnOrder.push(e.stringVerify());continue;case 8:if(a===2){o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.selectionMode.push(e.int32());continue}if(a!==0)break;o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]),o.selectionMode.push(e.int32());continue;
1case 9:if(a!==0)break;o.rowHeight=e.uint32(),o._rowHeight=`rowHeight`;continue;case 10:if(a!==2)break;o.placeholder=e.stringVerify(),o._placeholder=`placeholder`;continue;case 11:if(a!==2)break;o.selectionState=e.stringVerify(),o._selectionState=`selectionState`;continue;case 12:if(a!==2)break;o.selectionDefault=e.stringVerify(),o._selectionDefault=`selectionDefault`;continue;case 13:{if(a!==2)break;o.buttonClickWidgets===M.emptyObject&&(o.buttonClickWidgets={});let t=e.uint32()+e.pos;for(s=``,c=``;e.pos<t;){let t=e.tag();switch(a=t&7,t>>>=3){case 1:if(a!==2)break;s=e.stringVerify();continue;case 2:if(a!==2)break;c=e.stringVerify();continue}e.skipType(a,r,t)}s===`__proto__`&&M.makeProp(o.buttonClickWidgets,s),o.buttonClickWidgets[s]=c;continue}}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Dataframe)return e;if(!M.isObject(e))throw I(`.Dataframe: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Dataframe;if(e.arrowData!=null){if(!M.isObject(e.arrowData))throw I(`.Dataframe.arrowData: object expected`);n.arrowData=W.ArrowData.fromObject(e.arrowData,t+1)}if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.columns!=null&&(typeof e.columns!=`string`||e.columns.length)&&(n.columns=L(e.columns)),e.editingMode!==0&&(typeof e.editingMode!=`string`||W.Dataframe.EditingMode[e.editingMode]!==0))switch(e.editingMode){case`READ_ONLY`:case 0:n.editingMode=0;break;case`FIXED`:case 1:n.editingMode=1;break;case`DYNAMIC`:case 2:n.editingMode=2;break;case`ADD_ONLY`:case 3:n.editingMode=3;break;case`DELETE_ONLY`:case 4:n.editingMode=4;break;default:typeof e.editingMode==`number`&&(e.editingMode|0)===e.editingMode&&(n.editingMode=e.editingMode)}if(e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.columnOrder){if(!V.isArray(e.columnOrder))throw I(`.Dataframe.columnOrder: array expected`);n.columnOrder=V(e.columnOrder.length);for(let t=0;t<e.columnOrder.length;++t)n.columnOrder[t]=L(e.columnOrder[t])}if(e.selectionMode){if(!V.isArray(e.selectionMode))throw I(`.Dataframe.selectionMode: array expected`);n.selectionMode=[];for(let t=0;t<e.selectionMode.length;++t)switch(e.selectionMode[t]){case`SINGLE_ROW`:case 0:n.selectionMode[n.selectionMode.length]=0;break;case`MULTI_ROW`:case 1:n.selectionMode[n.selectionMode.length]=1;break;case`SINGLE_COLUMN`:case 2:n.selectionMode[n.selectionMode.length]=2;break;case`MULTI_COLUMN`:case 3:n.selectionMode[n.selectionMode.length]=3;break;case`SINGLE_CELL`:case 4:n.selectionMode[n.selectionMode.length]=4;break;case`MULTI_CELL`:case 5:n.selectionMode[n.selectionMode.length]=5;break;case`SINGLE_ROW_REQUIRED`:case 6:n.selectionMode[n.selectionMode.length]=6;break;default:typeof e.selectionMode[t]==`number`&&(e.selectionMode[t]|0)===e.selectionMode[t]&&(n.selectionMode[n.selectionMode.length]=e.selectionMode[t])}}if(e.rowHeight!=null&&(n.rowHeight=e.rowHeight>>>0),e.placeholder!=null&&(n.placeholder=L(e.placeholder)),e.selectionState!=null&&(n.selectionState=L(e.selectionState)),e.selectionDefault!=null&&(n.selectionDefault=L(e.selectionDefault)),e.buttonClickWidgets){if(!M.isObject(e.buttonClickWidgets))throw I(`.Dataframe.buttonClickWidgets: object expected`);n.buttonClickWidgets={};for(let t=N.keys(e.buttonClickWidgets),r=0;r<t.length;++r)t[r]===`__proto__`&&M.makeProp(n.buttonClickWidgets,t[r]),n.buttonClickWidgets[t[r]]=L(e.buttonClickWidgets[t[r]])}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.columnOrder=[],r.selectionMode=[]),(t.objects||t.defaults)&&(r.buttonClickWidgets={}),t.defaults&&(r.arrowData=null,r.id=``,r.columns=``,r.editingMode=t.enums===L?`READ_ONLY`:0,r.disabled=!1,r.formId=``),e.arrowData!=null&&N.hasOwnProperty.call(e,`arrowData`)&&(r.arrowData=W.ArrowData.toObject(e.arrowData,t,n+1)),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.columns!=null&&N.hasOwnProperty.call(e,`columns`)&&(r.columns=e.columns),e.editingMode!=null&&N.hasOwnProperty.call(e,`editingMode`)&&(r.editingMode=t.enums===L?W.Dataframe.EditingMode[e.editingMode]===P?e.editingMode:W.Dataframe.EditingMode[e.editingMode]:e.editingMode),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.columnOrder&&e.columnOrder.length){r.columnOrder=V(e.columnOrder.length);for(let t=0;t<e.columnOrder.length;++t)r.columnOrder[t]=e.columnOrder[t]}if(e.selectionMode&&e.selectionMode.length){r.selectionMode=V(e.selectionMode.length);for(let n=0;n<e.selectionMode.length;++n)r.selectionMode[n]=t.enums===L?W.Dataframe.SelectionMode[e.selectionMode[n]]===P?e.selectionMode[n]:W.Dataframe.SelectionMode[e.selectionMode[n]]:e.selectionMode[n]}e.rowHeight!=null&&N.hasOwnProperty.call(e,`rowHeight`)&&(r.rowHeight=e.rowHeight),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&(r.placeholder=e.placeholder),e.selectionState!=null&&N.hasOwnProperty.call(e,`selectionState`)&&(r.selectionState=e.selectionState),e.selectionDefault!=null&&N.hasOwnProperty.call(e,`selectionDefault`)&&(r.selectionDefault=e.selectionDefault);let i;if(e.buttonClickWidgets&&(i=N.keys(e.buttonClickWidgets)).length){r.buttonClickWidgets={};for(let t=0;t<i.length;++t)i[t]===`__proto__`&&M.makeProp(r.buttonClickWidgets,i[t]),r.buttonClickWidgets[i[t]]=e.buttonClickWidgets[i[t]]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Dataframe`},e.EditingMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`READ_ONLY`]=0,t[e[1]=`FIXED`]=1,t[e[2]=`DYNAMIC`]=2,t[e[3]=`ADD_ONLY`]=3,t[e[4]=`DELETE_ONLY`]=4,t})(),e.SelectionMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`SINGLE_ROW`]=0,t[e[1]=`MULTI_ROW`]=1,t[e[2]=`SINGLE_COLUMN`]=2,t[e[3]=`MULTI_COLUMN`]=3,t[e[4]=`SINGLE_CELL`]=4,t[e[5]=`MULTI_CELL`]=5,t[e[6]=`SINGLE_ROW_REQUIRED`]=6,t})(),e})();W.DateInput=(()=>{let e=function(e){if(this.default=[],this.value=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=M.emptyArray,e.prototype.min=``,e.prototype.max=``,e.prototype.isRange=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=M.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.format=``,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let n=0;n<e.default.length;++n)t.uint32(26).string(e.default[n]);if(e.min!=null&&N.hasOwnProperty.call(e,`min`)&&e.min!==``&&t.uint32(34).string(e.min),e.max!=null&&N.hasOwnProperty.call(e,`max`)&&e.max!==``&&t.uint32(42).string(e.max),e.isRange!=null&&N.hasOwnProperty.call(e,`isRange`)&&e.isRange!==!1&&t.uint32(48).bool(e.isRange),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(58).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(66).string(e.formId),e.value!=null&&e.value.length)for(let n=0;n<e.value.length;++n)t.uint32(74).string(e.value[n]);if(e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(80).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(88).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(98).fork(),n+1).ldelim(),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&e.format!==``&&t.uint32(106).string(e.format),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(114).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DateInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.stringVerify());continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.min=s:delete o.min;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.max=s:delete o.max;continue;case 6:if(a!==0)break;(s=e.bool())?o.isRange=s:delete o.isRange;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 8:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;
1case 9:if(a!==2)break;o.value&&o.value.length||(o.value=[]),o.value.push(e.stringVerify());continue;case 10:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 11:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 12:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 13:if(a!==2)break;(s=e.stringVerify()).length?o.format=s:delete o.format;continue;case 14:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DateInput)return e;if(!M.isObject(e))throw I(`.DateInput: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.DateInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default){if(!V.isArray(e.default))throw I(`.DateInput.default: array expected`);n.default=V(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=L(e.default[t])}if(e.min!=null&&(typeof e.min!=`string`||e.min.length)&&(n.min=L(e.min)),e.max!=null&&(typeof e.max!=`string`||e.max.length)&&(n.max=L(e.max)),e.isRange!=null&&e.isRange&&(n.isRange=R(e.isRange)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value){if(!V.isArray(e.value))throw I(`.DateInput.value: array expected`);n.value=V(e.value.length);for(let t=0;t<e.value.length;++t)n.value[t]=L(e.value[t])}if(e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.DateInput.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=L(e.format)),e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.default=[],r.value=[]),t.defaults&&(r.id=``,r.label=``,r.min=``,r.max=``,r.isRange=!1,r.help=``,r.formId=``,r.setValue=!1,r.disabled=!1,r.labelVisibility=null,r.format=``),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default&&e.default.length){r.default=V(e.default.length);for(let t=0;t<e.default.length;++t)r.default[t]=e.default[t]}if(e.min!=null&&N.hasOwnProperty.call(e,`min`)&&(r.min=e.min),e.max!=null&&N.hasOwnProperty.call(e,`max`)&&(r.max=e.max),e.isRange!=null&&N.hasOwnProperty.call(e,`isRange`)&&(r.isRange=e.isRange),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value&&e.value.length){r.value=V(e.value.length);for(let t=0;t<e.value.length;++t)r.value[t]=e.value[t]}return e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&(r.format=e.format),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DateInput`},e})(),W.DateTimeInput=(()=>{let e=function(e){if(this.default=[],this.value=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=M.emptyArray,e.prototype.min=``,e.prototype.max=``,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=M.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.format=``,e.prototype.step=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.isRange=!1,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let n=0;n<e.default.length;++n)t.uint32(26).string(e.default[n]);if(e.min!=null&&N.hasOwnProperty.call(e,`min`)&&e.min!==``&&t.uint32(34).string(e.min),e.max!=null&&N.hasOwnProperty.call(e,`max`)&&e.max!==``&&t.uint32(42).string(e.max),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(50).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(58).string(e.formId),e.value!=null&&e.value.length)for(let n=0;n<e.value.length;++n)t.uint32(66).string(e.value[n]);if(e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(72).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(80).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(90).fork(),n+1).ldelim(),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&e.format!==``&&t.uint32(98).string(e.format),e.step!=null&&N.hasOwnProperty.call(e,`step`)&&(typeof e.step==`object`?e.step.low||e.step.high:e.step!==0)&&t.uint32(104).int64(e.step),e.isRange!=null&&N.hasOwnProperty.call(e,`isRange`)&&e.isRange!==!1&&t.uint32(112).bool(e.isRange),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(122).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DateTimeInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.stringVerify());continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.min=s:delete o.min;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.max=s:delete o.max;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==2)break;o.value&&o.value.length||(o.value=[]),o.value.push(e.stringVerify());continue;
1case 9:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 10:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 11:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 12:if(a!==2)break;(s=e.stringVerify()).length?o.format=s:delete o.format;continue;case 13:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.step=s:delete o.step;continue;case 14:if(a!==0)break;(s=e.bool())?o.isRange=s:delete o.isRange;continue;case 15:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DateTimeInput)return e;if(!M.isObject(e))throw I(`.DateTimeInput: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.DateTimeInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default){if(!V.isArray(e.default))throw I(`.DateTimeInput.default: array expected`);n.default=V(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=L(e.default[t])}if(e.min!=null&&(typeof e.min!=`string`||e.min.length)&&(n.min=L(e.min)),e.max!=null&&(typeof e.max!=`string`||e.max.length)&&(n.max=L(e.max)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value){if(!V.isArray(e.value))throw I(`.DateTimeInput.value: array expected`);n.value=V(e.value.length);for(let t=0;t<e.value.length;++t)n.value[t]=L(e.value[t])}if(e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.DateTimeInput.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=L(e.format)),e.step!=null&&(typeof e.step==`object`?e.step.low||e.step.high:z(e.step)!==0)&&(M.Long?n.step=M.Long.fromValue(e.step,!1):typeof e.step==`string`?n.step=H(e.step,10):typeof e.step==`number`?n.step=e.step:typeof e.step==`object`&&(n.step=new M.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.isRange!=null&&e.isRange&&(n.isRange=R(e.isRange)),e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.default=[],r.value=[]),t.defaults){if(r.id=``,r.label=``,r.min=``,r.max=``,r.help=``,r.formId=``,r.setValue=!1,r.disabled=!1,r.labelVisibility=null,r.format=``,M.Long){let e=new M.Long(0,0,!1);r.step=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.step=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;r.isRange=!1}if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default&&e.default.length){r.default=V(e.default.length);for(let t=0;t<e.default.length;++t)r.default[t]=e.default[t]}if(e.min!=null&&N.hasOwnProperty.call(e,`min`)&&(r.min=e.min),e.max!=null&&N.hasOwnProperty.call(e,`max`)&&(r.max=e.max),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value&&e.value.length){r.value=V(e.value.length);for(let t=0;t<e.value.length;++t)r.value[t]=e.value[t]}return e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&(r.format=e.format),e.step!=null&&N.hasOwnProperty.call(e,`step`)&&(U!==void 0&&t.longs===U?r.step=typeof e.step==`number`?U(e.step):M.Long.fromBits(e.step.low>>>0,e.step.high>>>0,!1).toBigInt():typeof e.step==`number`?r.step=t.longs===L?L(e.step):e.step:r.step=t.longs===L?M.Long.prototype.toString.call(e.step):t.longs===z?new M.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.isRange!=null&&N.hasOwnProperty.call(e,`isRange`)&&(r.isRange=e.isRange),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DateTimeInput`},e})();var fe=W.DeckGlJsonChart=(()=>{let e=function(e){if(this.selectionMode=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.json=``,e.prototype.tooltip=``,e.prototype.id=``,e.prototype.mapboxToken=``,e.prototype.selectionMode=M.emptyArray,e.prototype.formId=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.json!=null&&N.hasOwnProperty.call(e,`json`)&&e.json!==``&&t.uint32(10).string(e.json),e.tooltip!=null&&N.hasOwnProperty.call(e,`tooltip`)&&e.tooltip!==``&&t.uint32(18).string(e.tooltip),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(42).string(e.id),e.mapboxToken!=null&&N.hasOwnProperty.call(e,`mapboxToken`)&&e.mapboxToken!==``&&t.uint32(50).string(e.mapboxToken),e.selectionMode!=null&&e.selectionMode.length){t.uint32(74).fork();for(let n=0;n<e.selectionMode.length;++n)t.int32(e.selectionMode[n]);t.ldelim()}if(e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(82).string(e.formId),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DeckGlJsonChart,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.json=s:delete o.json;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.tooltip=s:delete o.tooltip;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.mapboxToken=s:delete o.mapboxToken;continue;
1case 9:if(a===2){o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.selectionMode.push(e.int32());continue}if(a!==0)break;o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]),o.selectionMode.push(e.int32());continue;case 10:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DeckGlJsonChart)return e;if(!M.isObject(e))throw I(`.DeckGlJsonChart: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.DeckGlJsonChart;if(e.json!=null&&(typeof e.json!=`string`||e.json.length)&&(n.json=L(e.json)),e.tooltip!=null&&(typeof e.tooltip!=`string`||e.tooltip.length)&&(n.tooltip=L(e.tooltip)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.mapboxToken!=null&&(typeof e.mapboxToken!=`string`||e.mapboxToken.length)&&(n.mapboxToken=L(e.mapboxToken)),e.selectionMode){if(!V.isArray(e.selectionMode))throw I(`.DeckGlJsonChart.selectionMode: array expected`);n.selectionMode=[];for(let t=0;t<e.selectionMode.length;++t)switch(e.selectionMode[t]){case`SINGLE_OBJECT`:case 0:n.selectionMode[n.selectionMode.length]=0;break;case`MULTI_OBJECT`:case 1:n.selectionMode[n.selectionMode.length]=1;break;default:typeof e.selectionMode[t]==`number`&&(e.selectionMode[t]|0)===e.selectionMode[t]&&(n.selectionMode[n.selectionMode.length]=e.selectionMode[t])}}return e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.selectionMode=[]),t.defaults&&(r.json=``,r.tooltip=``,r.id=``,r.mapboxToken=``,r.formId=``),e.json!=null&&N.hasOwnProperty.call(e,`json`)&&(r.json=e.json),e.tooltip!=null&&N.hasOwnProperty.call(e,`tooltip`)&&(r.tooltip=e.tooltip),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.mapboxToken!=null&&N.hasOwnProperty.call(e,`mapboxToken`)&&(r.mapboxToken=e.mapboxToken),e.selectionMode&&e.selectionMode.length){r.selectionMode=V(e.selectionMode.length);for(let n=0;n<e.selectionMode.length;++n)r.selectionMode[n]=t.enums===L?W.DeckGlJsonChart.SelectionMode[e.selectionMode[n]]===P?e.selectionMode[n]:W.DeckGlJsonChart.SelectionMode[e.selectionMode[n]]:e.selectionMode[n]}return e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DeckGlJsonChart`},e.SelectionMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`SINGLE_OBJECT`]=0,t[e[1]=`MULTI_OBJECT`]=1,t})(),e})();W.Delta=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.newElement=null,e.prototype.addBlock=null,e.prototype.newTransient=null,e.prototype.fragmentId=``;let t;return N.defineProperty(e.prototype,`type`,{get:M.oneOfGetter(t=[`newElement`,`addBlock`,`newTransient`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.newElement!=null&&N.hasOwnProperty.call(e,`newElement`)&&W.Element.encode(e.newElement,t.uint32(26).fork(),n+1).ldelim(),e.addBlock!=null&&N.hasOwnProperty.call(e,`addBlock`)&&W.Block.encode(e.addBlock,t.uint32(50).fork(),n+1).ldelim(),e.fragmentId!=null&&N.hasOwnProperty.call(e,`fragmentId`)&&e.fragmentId!==``&&t.uint32(66).string(e.fragmentId),e.newTransient!=null&&N.hasOwnProperty.call(e,`newTransient`)&&W.Transient.encode(e.newTransient,t.uint32(74).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Delta,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 3:if(a!==2)break;o.newElement=W.Element.decode(e,e.uint32(),P,r+1,o.newElement),o.type=`newElement`;continue;case 6:if(a!==2)break;o.addBlock=W.Block.decode(e,e.uint32(),P,r+1,o.addBlock),o.type=`addBlock`;continue;
1case 9:if(a!==2)break;o.newTransient=W.Transient.decode(e,e.uint32(),P,r+1,o.newTransient),o.type=`newTransient`;continue;case 8:if(a!==2)break;(s=e.stringVerify()).length?o.fragmentId=s:delete o.fragmentId;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Delta)return e;if(!M.isObject(e))throw I(`.Delta: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Delta;if(e.newElement!=null){if(!M.isObject(e.newElement))throw I(`.Delta.newElement: object expected`);n.newElement=W.Element.fromObject(e.newElement,t+1)}if(e.addBlock!=null){if(!M.isObject(e.addBlock))throw I(`.Delta.addBlock: object expected`);n.addBlock=W.Block.fromObject(e.addBlock,t+1)}if(e.newTransient!=null){if(!M.isObject(e.newTransient))throw I(`.Delta.newTransient: object expected`);n.newTransient=W.Transient.fromObject(e.newTransient,t+1)}return e.fragmentId!=null&&(typeof e.fragmentId!=`string`||e.fragmentId.length)&&(n.fragmentId=L(e.fragmentId)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.fragmentId=``),e.newElement!=null&&N.hasOwnProperty.call(e,`newElement`)&&(r.newElement=W.Element.toObject(e.newElement,t,n+1),t.oneofs&&(r.type=`newElement`)),e.addBlock!=null&&N.hasOwnProperty.call(e,`addBlock`)&&(r.addBlock=W.Block.toObject(e.addBlock,t,n+1),t.oneofs&&(r.type=`addBlock`)),e.fragmentId!=null&&N.hasOwnProperty.call(e,`fragmentId`)&&(r.fragmentId=e.fragmentId),e.newTransient!=null&&N.hasOwnProperty.call(e,`newTransient`)&&(r.newTransient=W.Transient.toObject(e.newTransient,t,n+1),t.oneofs&&(r.type=`newTransient`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Delta`},e})();var pe=W.Element=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.heightConfig=null,e.prototype.widthConfig=null,e.prototype.textAlignmentConfig=null,e.prototype.hasOneShotEffect=null,e.prototype.alert=null,e.prototype.dataframe=null,e.prototype.table=null,e.prototype.vegaLiteChart=null,e.prototype.audio=null,e.prototype.audioInput=null,e.prototype.balloons=null,e.prototype.bidiComponent=null,e.prototype.button=null,e.prototype.buttonGroup=null,e.prototype.downloadButton=null,e.prototype.cameraInput=null,e.prototype.chatInput=null,e.prototype.checkbox=null,e.prototype.colorPicker=null,e.prototype.componentInstance=null,e.prototype.dateInput=null,e.prototype.deckGlJsonChart=null,e.prototype.helpInfo=null,e.prototype.empty=null,e.prototype.exception=null,e.prototype.favicon=null,e.prototype.feedback=null,e.prototype.fileUploader=null,e.prototype.graphvizChart=null,e.prototype.html=null,e.prototype.iframe=null,e.prototype.imgs=null,e.prototype.json=null,e.prototype.linkButton=null,e.prototype.markdown=null,e.prototype.metric=null,e.prototype.multiselect=null,e.prototype.numberInput=null,e.prototype.pageLink=null,e.prototype.plotlyChart=null,e.prototype.progress=null,e.prototype.radio=null,e.prototype.selectbox=null,e.prototype.skeleton=null,e.prototype.slider=null,e.prototype.snow=null,e.prototype.space=null,e.prototype.spinner=null,e.prototype.text=null,e.prototype.textArea=null,e.prototype.textInput=null,e.prototype.timeInput=null,e.prototype.dateTimeInput=null,e.prototype.toast=null,e.prototype.video=null,e.prototype.heading=null,e.prototype.code=null,e.prototype.menuButton=null,e.prototype.pagination=null;let t;return N.defineProperty(e.prototype,`_heightConfig`,{get:M.oneOfGetter(t=[`heightConfig`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_widthConfig`,{get:M.oneOfGetter(t=[`widthConfig`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_textAlignmentConfig`,{get:M.oneOfGetter(t=[`textAlignmentConfig`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_hasOneShotEffect`,{get:M.oneOfGetter(t=[`hasOneShotEffect`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`type`,{get:M.oneOfGetter(t=`alert.dataframe.table.vegaLiteChart.audio.audioInput.balloons.bidiComponent.button.buttonGroup.downloadButton.cameraInput.chatInput.checkbox.colorPicker.componentInstance.dateInput.deckGlJsonChart.helpInfo.empty.exception.favicon.feedback.fileUploader.graphvizChart.html.iframe.imgs.json.linkButton.markdown.metric.multiselect.numberInput.pageLink.plotlyChart.progress.radio.selectbox.skeleton.slider.snow.space.spinner.text.textArea.textInput.timeInput.dateTimeInput.toast.video.heading.code.menuButton.pagination`.split(`.`)),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.text!=null&&N.hasOwnProperty.call(e,`text`)&&W.Text.encode(e.text,t.uint32(10).fork(),n+1).ldelim(),e.empty!=null&&N.hasOwnProperty.call(e,`empty`)&&W.Empty.encode(e.empty,t.uint32(18).fork(),n+1).ldelim(),e.progress!=null&&N.hasOwnProperty.call(e,`progress`)&&W.Progress.encode(e.progress,t.uint32(42).fork(),n+1).ldelim(),e.imgs!=null&&N.hasOwnProperty.call(e,`imgs`)&&W.ImageList.encode(e.imgs,t.uint32(50).fork(),n+1).ldelim(),e.helpInfo!=null&&N.hasOwnProperty.call(e,`helpInfo`)&&W.Help.encode(e.helpInfo,t.uint32(58).fork(),n+1).ldelim(),e.exception!=null&&N.hasOwnProperty.call(e,`exception`)&&W.Exception.encode(e.exception,t.uint32(66).fork(),n+1).ldelim(),e.balloons!=null&&N.hasOwnProperty.call(e,`balloons`)&&W.Balloons.encode(e.balloons,t.uint32(98).fork(),n+1).ldelim(),e.audio!=null&&N.hasOwnProperty.call(e,`audio`)&&W.Audio.encode(e.audio,t.uint32(106).fork(),n+1).ldelim(),e.video!=null&&N.hasOwnProperty.call(e,`video`)&&W.Video.encode(e.video,t.uint32(114).fork(),n+1).ldelim(),e.plotlyChart!=null&&N.hasOwnProperty.call(e,`plotlyChart`)&&W.PlotlyC
1hart.encode(e.plotlyChart,t.uint32(130).fork(),n+1).ldelim(),e.graphvizChart!=null&&N.hasOwnProperty.call(e,`graphvizChart`)&&W.GraphVizChart.encode(e.graphvizChart,t.uint32(146).fork(),n+1).ldelim(),e.button!=null&&N.hasOwnProperty.call(e,`button`)&&W.Button.encode(e.button,t.uint32(154).fork(),n+1).ldelim(),e.checkbox!=null&&N.hasOwnProperty.call(e,`checkbox`)&&W.Checkbox.encode(e.checkbox,t.uint32(162).fork(),n+1).ldelim(),e.slider!=null&&N.hasOwnProperty.call(e,`slider`)&&W.Slider.encode(e.slider,t.uint32(170).fork(),n+1).ldelim(),e.textArea!=null&&N.hasOwnProperty.call(e,`textArea`)&&W.TextArea.encode(e.textArea,t.uint32(178).fork(),n+1).ldelim(),e.radio!=null&&N.hasOwnProperty.call(e,`radio`)&&W.Radio.encode(e.radio,t.uint32(186).fork(),n+1).ldelim(),e.textInput!=null&&N.hasOwnProperty.call(e,`textInput`)&&W.TextInput.encode(e.textInput,t.uint32(194).fork(),n+1).ldelim(),e.selectbox!=null&&N.hasOwnProperty.call(e,`selectbox`)&&W.Selectbox.encode(e.selectbox,t.uint32(202).fork(),n+1).ldelim(),e.timeInput!=null&&N.hasOwnProperty.call(e,`timeInput`)&&W.TimeInput.encode(e.timeInput,t.uint32(210).fork(),n+1).ldelim(),e.dateInput!=null&&N.hasOwnProperty.call(e,`dateInput`)&&W.DateInput.encode(e.dateInput,t.uint32(218).fork(),n+1).ldelim(),e.multiselect!=null&&N.hasOwnProperty.call(e,`multiselect`)&&W.MultiSelect.encode(e.multiselect,t.uint32(226).fork(),n+1).ldelim(),e.markdown!=null&&N.hasOwnProperty.call(e,`markdown`)&&W.Markdown.encode(e.markdown,t.uint32(234).fork(),n+1).ldelim(),e.alert!=null&&N.hasOwnProperty.call(e,`alert`)&&W.Alert.encode(e.alert,t.uint32(242).fork(),n+1).ldelim(),e.json!=null&&N.hasOwnProperty.call(e,`json`)&&W.Json.encode(e.json,t.uint32(250).fork(),n+1).ldelim(),e.numberInput!=null&&N.hasOwnProperty.call(e,`numberInput`)&&W.NumberInput.encode(e.numberInput,t.uint32(258).fork(),n+1).ldelim(),e.fileUploader!=null&&N.hasOwnProperty.call(e,`fileUploader`)&&W.FileUploader.encode(e.fileUploader,t.uint32(266).fork(),n+1).ldelim(),e.deckGlJsonChart!=null&&N.hasOwnProperty.call(e,`deckGlJsonChart`)&&W.DeckGlJsonChart.encode(e.deckGlJsonChart,t.uint32(274).fork(),n+1).ldelim(),e.colorPicker!=null&&N.hasOwnProperty.call(e,`colorPicker`)&&W.ColorPicker.encode(e.colorPicker,t.uint32(282).fork(),n+1).ldelim(),e.favicon!=null&&N.hasOwnProperty.call(e,`favicon`)&&W.Favicon.encode(e.favicon,t.uint32(290).fork(),n+1).ldelim(),e.componentInstance!=null&&N.hasOwnProperty.call(e,`componentInstance`)&&W.ComponentInstance.encode(e.componentInstance,t.uint32(298).fork(),n+1).ldelim(),e.iframe!=null&&N.hasOwnProperty.call(e,`iframe`)&&W.IFrame.encode(e.iframe,t.uint32(306).fork(),n+1).ldelim(),e.table!=null&&N.hasOwnProperty.call(e,`table`)&&W.Table.encode(e.table,t.uint32(314).fork(),n+1).ldelim(),e.dataframe!=null&&N.hasOwnProperty.call(e,`dataframe`)&&W.Dataframe.encode(e.dataframe,t.uint32(322).fork(),n+1).ldelim(),e.vegaLiteChart!=null&&N.hasOwnProperty.call(e,`vegaLiteChart`)&&W.VegaLiteChart.encode(e.vegaLiteChart,t.uint32(330).fork(),n+1).ldelim(),e.metric!=null&&N.hasOwnProperty.call(e,`metric`)&&W.Metric.encode(e.metric,t.uint32(338).fork(),n+1).ldelim(),e.downloadButton!=null&&N.hasOwnProperty.call(e,`downloadButton`)&&W.DownloadButton.encode(e.downloadButton,t.uint32(346).fork(),n+1).ldelim(),e.spinner!=null&&N.hasOwnProperty.call(e,`spinner`)&&W.Spinner.encode(e.spinner,t.uint32(354).fork(),n+1).ldelim(),e.cameraInput!=null&&N.hasOwnProperty.call(e,`cameraInput`)&&W.CameraInput.encode(e.cameraInput,t.uint32(362).fork(),n+1).ldelim(),e.snow!=null&&N.hasOwnProperty.call(e,`snow`)&&W.Snow.encode(e.snow,t.uint32(370).fork(),n+1).ldelim(),e.heading!=null&&N.hasOwnProperty.call(e,`heading`)&&W.Heading.encode(e.heading,t.uint32(378).fork(),n+1).ldelim(),e.code!=null&&N.hasOwnProperty.call(e,`code`)&&W.Code.encode(e.code,t.uint32(386).fork(),n+1).ldelim(),e.chatInput!=null&&N.hasOwnProperty.call(e,`chatInput`)&&W.ChatInput.encode(e.chatInput,t.uint32(394).fork(),n+1).ldelim(),e.toast!=null&&N.hasOwnProperty.call(e,`toast`)&&W.Toast.encode(e.toast,t.uint32(402).fork(),n+1).ldelim(),e.linkButton!=null&&N.hasOwnProperty.call(e,`linkButton`)&&W.LinkButton.encode(e.linkButton,t.uint32(410).fork(),n+1).ldelim(),e.skeleton!=null&&N.hasOwnProperty.call(e,`skeleton`)&&W.Skeleton.encode(e.skeleton,t.uint32(418).fork(),n+1).ldelim(),e.pageLink!=null&&N.hasOwnProperty.call(e,`pageLink`)&&W.PageLink.encode(e.pageLink,t.uint32(426).fork(),n+1).ldelim(),e.html!=null&&N.hasOwnProperty.call(e,`html`)&&W.Html.encode(e.html,t.uint32(434).fork(),n+1).ldelim(),e.buttonGroup!=null&&N.hasOwnProperty.call(e,`buttonGroup`)&&W.ButtonGroup.encode(e.buttonGroup,t.uint32(442).fork(),n+1).ldelim(),e.audioInput!=null&&N.hasOwnProperty.call(e,`audioInput`)&&W.AudioInput.encode(e.audio
1Input,t.uint32(450).fork(),n+1).ldelim(),e.heightConfig!=null&&N.hasOwnProperty.call(e,`heightConfig`)&&W.streamlit.HeightConfig.encode(e.heightConfig,t.uint32(458).fork(),n+1).ldelim(),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&W.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(466).fork(),n+1).ldelim(),e.bidiComponent!=null&&N.hasOwnProperty.call(e,`bidiComponent`)&&W.BidiComponent.encode(e.bidiComponent,t.uint32(474).fork(),n+1).ldelim(),e.space!=null&&N.hasOwnProperty.call(e,`space`)&&W.Space.encode(e.space,t.uint32(482).fork(),n+1).ldelim(),e.textAlignmentConfig!=null&&N.hasOwnProperty.call(e,`textAlignmentConfig`)&&W.streamlit.TextAlignmentConfig.encode(e.textAlignmentConfig,t.uint32(490).fork(),n+1).ldelim(),e.dateTimeInput!=null&&N.hasOwnProperty.call(e,`dateTimeInput`)&&W.DateTimeInput.encode(e.dateTimeInput,t.uint32(498).fork(),n+1).ldelim(),e.feedback!=null&&N.hasOwnProperty.call(e,`feedback`)&&W.Feedback.encode(e.feedback,t.uint32(506).fork(),n+1).ldelim(),e.menuButton!=null&&N.hasOwnProperty.call(e,`menuButton`)&&W.MenuButton.encode(e.menuButton,t.uint32(514).fork(),n+1).ldelim(),e.hasOneShotEffect!=null&&N.hasOwnProperty.call(e,`hasOneShotEffect`)&&t.uint32(520).bool(e.hasOneShotEffect),e.pagination!=null&&N.hasOwnProperty.call(e,`pagination`)&&W.Pagination.encode(e.pagination,t.uint32(530).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Element;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 57:if(a!==2)break;o.heightConfig=W.streamlit.HeightConfig.decode(e,e.uint32(),P,r+1,o.heightConfig),o._heightConfig=`heightConfig`;continue;case 58:if(a!==2)break;o.widthConfig=W.streamlit.WidthConfig.decode(e,e.uint32(),P,r+1,o.widthConfig),o._widthConfig=`widthConfig`;continue;case 61:if(a!==2)break;o.textAlignmentConfig=W.streamlit.TextAlignmentConfig.decode(e,e.uint32(),P,r+1,o.textAlignmentConfig),o._textAlignmentConfig=`textAlignmentConfig`;continue;case 65:if(a!==0)break;o.hasOneShotEffect=e.bool(),o._hasOneShotEffect=`hasOneShotEffect`;continue;case 30:if(a!==2)break;o.alert=W.Alert.decode(e,e.uint32(),P,r+1,o.alert),o.type=`alert`;continue;case 40:if(a!==2)break;o.dataframe=W.Dataframe.decode(e,e.uint32(),P,r+1,o.dataframe),o.type=`dataframe`;continue;case 39:if(a!==2)break;o.table=W.Table.decode(e,e.uint32(),P,r+1,o.table),o.type=`table`;continue;case 41:if(a!==2)break;o.vegaLiteChart=W.VegaLiteChart.decode(e,e.uint32(),P,r+1,o.vegaLiteChart),o.type=`vegaLiteChart`;continue;case 13:if(a!==2)break;o.audio=W.Audio.decode(e,e.uint32(),P,r+1,o.audio),o.type=`audio`;continue;case 56:if(a!==2)break;o.audioInput=W.AudioInput.decode(e,e.uint32(),P,r+1,o.audioInput),o.type=`audioInput`;continue;case 12:if(a!==2)break;o.balloons=W.Balloons.decode(e,e.uint32(),P,r+1,o.balloons),o.type=`balloons`;continue;case 59:if(a!==2)break;o.bidiComponent=W.BidiComponent.decode(e,e.uint32(),P,r+1,o.bidiComponent),o.type=`bidiComponent`;continue;case 19:if(a!==2)break;o.button=W.Button.decode(e,e.uint32(),P,r+1,o.button),o.type=`button`;continue;case 55:if(a!==2)break;o.buttonGroup=W.ButtonGroup.decode(e,e.uint32(),P,r+1,o.buttonGroup),o.type=`buttonGroup`;continue;case 43:if(a!==2)break;o.downloadButton=W.DownloadButton.decode(e,e.uint32(),P,r+1,o.downloadButton),o.type=`downloadButton`;continue;case 45:if(a!==2)break;o.cameraInput=W.CameraInput.decode(e,e.uint32(),P,r+1,o.cameraInput),o.type=`cameraInput`;continue;case 49:if(a!==2)break;o.chatInput=W.ChatInput.decode(e,e.uint32(),P,r+1,o.chatInput),o.type=`chatInput`;continue;case 20:if(a!==2)break;o.checkbox=W.Checkbox.decode(e,e.uint32(),P,r+1,o.checkbox),o.type=`checkbox`;continue;case 35:if(a!==2)break;o.colorPicker=W.ColorPicker.decode(e,e.uint32(),P,r+1,o.colorPicker),o.type=`colorPicker`;continue;case 37:if(a!==2)break;o.componentInstance=W.ComponentInstance.decode(e,e.uint32(),P,r+1,o.componentInstance),o.type=`componentInstance`;continue;case 27:if(a!==2)break;o.dateInput=W.DateInput.decode(e,e.uint32(),P,r+1,o.dateInput),o.type=`dateInput`;continue;case 34:if(a!==2)break;o.deckGlJsonChart=W.DeckGlJsonChart.decode(e,e.uint32(),P,r+1,o.deckGlJsonChart),o.type=`deckGlJsonChart`;continue;case 7:if(a!==2)break;o.helpInfo=W.Help.decode(e,e.uint32(),P,r+1,o.helpInfo),o.type=`helpInfo`;continue;case 2:if(a!==2)break;o.empty=W.Empty.decode(e,e.uint32(),P,r+1,o.empty),o.type=`empty`;continue;case 8:if(a!==2)break;o.exception=W.Exception.decode(e,e.uint32(),P,r+1,o.exception),o.type=`exception`;continue;case 36:if(a!==2)break;o.favicon=W.Favicon.decode(e,e.uint32(),P,r+1,o.favicon),o.type=`favicon`;continue;case 63:if(a!==2)break;o.feedback=W.Feedback.decode(e,e.uint32(),P,r+1,o.feedback),o.type=`feedback`;continue;case 33:if(a!==2)break;o.fileUploader=W.FileUploader.decode(e,e.uint32(),P,r+1,o.fileUploader),o.type=`fileUploader`;continue;case 18:if(a!==2)break;o.graphvizChart=W.GraphVizChart.decode(e,e.uint32(),P,r+1,o.graphvizChart),o.type=`graphvizChart`;continue;
1case 54:if(a!==2)break;o.html=W.Html.decode(e,e.uint32(),P,r+1,o.html),o.type=`html`;continue;case 38:if(a!==2)break;o.iframe=W.IFrame.decode(e,e.uint32(),P,r+1,o.iframe),o.type=`iframe`;continue;case 6:if(a!==2)break;o.imgs=W.ImageList.decode(e,e.uint32(),P,r+1,o.imgs),o.type=`imgs`;continue;case 31:if(a!==2)break;o.json=W.Json.decode(e,e.uint32(),P,r+1,o.json),o.type=`json`;continue;case 51:if(a!==2)break;o.linkButton=W.LinkButton.decode(e,e.uint32(),P,r+1,o.linkButton),o.type=`linkButton`;continue;case 29:if(a!==2)break;o.markdown=W.Markdown.decode(e,e.uint32(),P,r+1,o.markdown),o.type=`markdown`;continue;case 42:if(a!==2)break;o.metric=W.Metric.decode(e,e.uint32(),P,r+1,o.metric),o.type=`metric`;continue;case 28:if(a!==2)break;o.multiselect=W.MultiSelect.decode(e,e.uint32(),P,r+1,o.multiselect),o.type=`multiselect`;continue;case 32:if(a!==2)break;o.numberInput=W.NumberInput.decode(e,e.uint32(),P,r+1,o.numberInput),o.type=`numberInput`;continue;case 53:if(a!==2)break;o.pageLink=W.PageLink.decode(e,e.uint32(),P,r+1,o.pageLink),o.type=`pageLink`;continue;case 16:if(a!==2)break;o.plotlyChart=W.PlotlyChart.decode(e,e.uint32(),P,r+1,o.plotlyChart),o.type=`plotlyChart`;continue;case 5:if(a!==2)break;o.progress=W.Progress.decode(e,e.uint32(),P,r+1,o.progress),o.type=`progress`;continue;case 23:if(a!==2)break;o.radio=W.Radio.decode(e,e.uint32(),P,r+1,o.radio),o.type=`radio`;continue;case 25:if(a!==2)break;o.selectbox=W.Selectbox.decode(e,e.uint32(),P,r+1,o.selectbox),o.type=`selectbox`;continue;case 52:if(a!==2)break;o.skeleton=W.Skeleton.decode(e,e.uint32(),P,r+1,o.skeleton),o.type=`skeleton`;continue;case 21:if(a!==2)break;o.slider=W.Slider.decode(e,e.uint32(),P,r+1,o.slider),o.type=`slider`;continue;case 46:if(a!==2)break;o.snow=W.Snow.decode(e,e.uint32(),P,r+1,o.snow),o.type=`snow`;continue;case 60:if(a!==2)break;o.space=W.Space.decode(e,e.uint32(),P,r+1,o.space),o.type=`space`;continue;case 44:if(a!==2)break;o.spinner=W.Spinner.decode(e,e.uint32(),P,r+1,o.spinner),o.type=`spinner`;continue;case 1:if(a!==2)break;o.text=W.Text.decode(e,e.uint32(),P,r+1,o.text),o.type=`text`;continue;case 22:if(a!==2)break;o.textArea=W.TextArea.decode(e,e.uint32(),P,r+1,o.textArea),o.type=`textArea`;continue;case 24:if(a!==2)break;o.textInput=W.TextInput.decode(e,e.uint32(),P,r+1,o.textInput),o.type=`textInput`;continue;case 26:if(a!==2)break;o.timeInput=W.TimeInput.decode(e,e.uint32(),P,r+1,o.timeInput),o.type=`timeInput`;continue;case 62:if(a!==2)break;o.dateTimeInput=W.DateTimeInput.decode(e,e.uint32(),P,r+1,o.dateTimeInput),o.type=`dateTimeInput`;continue;case 50:if(a!==2)break;o.toast=W.Toast.decode(e,e.uint32(),P,r+1,o.toast),o.type=`toast`;continue;case 14:if(a!==2)break;o.video=W.Video.decode(e,e.uint32(),P,r+1,o.video),o.type=`video`;continue;case 47:if(a!==2)break;o.heading=W.Heading.decode(e,e.uint32(),P,r+1,o.heading),o.type=`heading`;continue;case 48:if(a!==2)break;o.code=W.Code.decode(e,e.uint32(),P,r+1,o.code),o.type=`code`;continue;case 64:if(a!==2)break;o.menuButton=W.MenuButton.decode(e,e.uint32(),P,r+1,o.menuButton),o.type=`menuButton`;continue;case 66:if(a!==2)break;o.pagination=W.Pagination.decode(e,e.uint32(),P,r+1,o.pagination),o.type=`pagination`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Element)return e;if(!M.isObject(e))throw I(`.Element: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Element;if(e.heightConfig!=null){if(!M.isObject(e.heightConfig))throw I(`.Element.heightConfig: object expected`);n.heightConfig=W.streamlit.HeightConfig.fromObject(e.heightConfig,t+1)}if(e.widthConfig!=null){if(!M.isObject(e.widthConfig))throw I(`.Element.widthConfig: object expected`);n.widthConfig=W.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}if(e.textAlignmentConfig!=null){if(!M.isObject(e.textAlignmentConfig))throw I(`.Element.textAlignmentConfig: object expected`);n.textAlignmentConfig=W.streamlit.TextAlignmentConfig.fromObject(e.textAlignmentConfig,t+1)}if(e.hasOneShotEffect!=null&&(n.hasOneShotEffect=R(e.hasOneShotEffect)),e.alert!=null){if(!M.isObject(e.alert))throw I(`.Element.alert: object expected`);n.alert=W.Alert.fromObject(e.alert,t+1)}if(e.dataframe!=null){if(!M.isObject(e.dataframe))throw I(`.Element.dataframe: object expected`);n.dataframe=W.Dataframe.fromObject(e.dataframe,t+1)}if(e.table!=null){if(!M.isObject(e.table))throw I(`.Element.table: object expected`);n.table=W.Table.fromObject(e.table,t+1)}if(e.vegaLiteChart!=null){if(!M.isObject(e.vegaLiteChart))throw I(`.Element.vegaLiteChart: object expected`);n.vegaLiteChart=W.VegaLiteChart.fromObject(e.vegaLiteChart,t+1)}if(e.audio!=null){if(!M.isObject(e.audio))throw I(`.Element.audio: object expected`);n.audio=W.Audio.fromObject(e.audio,t+1)}
1if(e.audioInput!=null){if(!M.isObject(e.audioInput))throw I(`.Element.audioInput: object expected`);n.audioInput=W.AudioInput.fromObject(e.audioInput,t+1)}if(e.balloons!=null){if(!M.isObject(e.balloons))throw I(`.Element.balloons: object expected`);n.balloons=W.Balloons.fromObject(e.balloons,t+1)}if(e.bidiComponent!=null){if(!M.isObject(e.bidiComponent))throw I(`.Element.bidiComponent: object expected`);n.bidiComponent=W.BidiComponent.fromObject(e.bidiComponent,t+1)}if(e.button!=null){if(!M.isObject(e.button))throw I(`.Element.button: object expected`);n.button=W.Button.fromObject(e.button,t+1)}if(e.buttonGroup!=null){if(!M.isObject(e.buttonGroup))throw I(`.Element.buttonGroup: object expected`);n.buttonGroup=W.ButtonGroup.fromObject(e.buttonGroup,t+1)}if(e.downloadButton!=null){if(!M.isObject(e.downloadButton))throw I(`.Element.downloadButton: object expected`);n.downloadButton=W.DownloadButton.fromObject(e.downloadButton,t+1)}if(e.cameraInput!=null){if(!M.isObject(e.cameraInput))throw I(`.Element.cameraInput: object expected`);n.cameraInput=W.CameraInput.fromObject(e.cameraInput,t+1)}if(e.chatInput!=null){if(!M.isObject(e.chatInput))throw I(`.Element.chatInput: object expected`);n.chatInput=W.ChatInput.fromObject(e.chatInput,t+1)}if(e.checkbox!=null){if(!M.isObject(e.checkbox))throw I(`.Element.checkbox: object expected`);n.checkbox=W.Checkbox.fromObject(e.checkbox,t+1)}if(e.colorPicker!=null){if(!M.isObject(e.colorPicker))throw I(`.Element.colorPicker: object expected`);n.colorPicker=W.ColorPicker.fromObject(e.colorPicker,t+1)}if(e.componentInstance!=null){if(!M.isObject(e.componentInstance))throw I(`.Element.componentInstance: object expected`);n.componentInstance=W.ComponentInstance.fromObject(e.componentInstance,t+1)}if(e.dateInput!=null){if(!M.isObject(e.dateInput))throw I(`.Element.dateInput: object expected`);n.dateInput=W.DateInput.fromObject(e.dateInput,t+1)}if(e.deckGlJsonChart!=null){if(!M.isObject(e.deckGlJsonChart))throw I(`.Element.deckGlJsonChart: object expected`);n.deckGlJsonChart=W.DeckGlJsonChart.fromObject(e.deckGlJsonChart,t+1)}if(e.helpInfo!=null){if(!M.isObject(e.helpInfo))throw I(`.Element.helpInfo: object expected`);n.helpInfo=W.Help.fromObject(e.helpInfo,t+1)}if(e.empty!=null){if(!M.isObject(e.empty))throw I(`.Element.empty: object expected`);n.empty=W.Empty.fromObject(e.empty,t+1)}if(e.exception!=null){if(!M.isObject(e.exception))throw I(`.Element.exception: object expected`);n.exception=W.Exception.fromObject(e.exception,t+1)}if(e.favicon!=null){if(!M.isObject(e.favicon))throw I(`.Element.favicon: object expected`);n.favicon=W.Favicon.fromObject(e.favicon,t+1)}if(e.feedback!=null){if(!M.isObject(e.feedback))throw I(`.Element.feedback: object expected`);n.feedback=W.Feedback.fromObject(e.feedback,t+1)}if(e.fileUploader!=null){if(!M.isObject(e.fileUploader))throw I(`.Element.fileUploader: object expected`);n.fileUploader=W.FileUploader.fromObject(e.fileUploader,t+1)}if(e.graphvizChart!=null){if(!M.isObject(e.graphvizChart))throw I(`.Element.graphvizChart: object expected`);n.graphvizChart=W.GraphVizChart.fromObject(e.graphvizChart,t+1)}if(e.html!=null){if(!M.isObject(e.html))throw I(`.Element.html: object expected`);n.html=W.Html.fromObject(e.html,t+1)}if(e.iframe!=null){if(!M.isObject(e.iframe))throw I(`.Element.iframe: object expected`);n.iframe=W.IFrame.fromObject(e.iframe,t+1)}if(e.imgs!=null){if(!M.isObject(e.imgs))throw I(`.Element.imgs: object expected`);n.imgs=W.ImageList.fromObject(e.imgs,t+1)}if(e.json!=null){if(!M.isObject(e.json))throw I(`.Element.json: object expected`);n.json=W.Json.fromObject(e.json,t+1)}if(e.linkButton!=null){if(!M.isObject(e.linkButton))throw I(`.Element.linkButton: object expected`);n.linkButton=W.LinkButton.fromObject(e.linkButton,t+1)}if(e.markdown!=null){if(!M.isObject(e.markdown))throw I(`.Element.markdown: object expected`);n.markdown=W.Markdown.fromObject(e.markdown,t+1)}if(e.metric!=null){if(!M.isObject(e.metric))throw I(`.Element.metric: object expected`);n.metric=W.Metric.fromObject(e.metric,t+1)}if(e.multiselect!=null){if(!M.isObject(e.multiselect))throw I(`.Element.multiselect: object expected`);n.multiselect=W.MultiSelect.fromObject(e.multiselect,t+1)}if(e.numberInput!=null){if(!M.isObject(e.numberInput))throw I(`.Element.numberInput: object expected`);n.numberInput=W.NumberInput.fromObject(e.numberInput,t+1)}if(e.pageLink!=null){if(!M.isObject(e.pageLink))throw I(`.Element.pageLink: object expected`);n.pageLink=W.PageLink.fromObject(e.pageLink,t+1)}if(e.plotlyChart!=null){if(!M.isObject(e.plotlyChart))throw I(`.Element.plotlyChart: object expected`);
1n.plotlyChart=W.PlotlyChart.fromObject(e.plotlyChart,t+1)}if(e.progress!=null){if(!M.isObject(e.progress))throw I(`.Element.progress: object expected`);n.progress=W.Progress.fromObject(e.progress,t+1)}if(e.radio!=null){if(!M.isObject(e.radio))throw I(`.Element.radio: object expected`);n.radio=W.Radio.fromObject(e.radio,t+1)}if(e.selectbox!=null){if(!M.isObject(e.selectbox))throw I(`.Element.selectbox: object expected`);n.selectbox=W.Selectbox.fromObject(e.selectbox,t+1)}if(e.skeleton!=null){if(!M.isObject(e.skeleton))throw I(`.Element.skeleton: object expected`);n.skeleton=W.Skeleton.fromObject(e.skeleton,t+1)}if(e.slider!=null){if(!M.isObject(e.slider))throw I(`.Element.slider: object expected`);n.slider=W.Slider.fromObject(e.slider,t+1)}if(e.snow!=null){if(!M.isObject(e.snow))throw I(`.Element.snow: object expected`);n.snow=W.Snow.fromObject(e.snow,t+1)}if(e.space!=null){if(!M.isObject(e.space))throw I(`.Element.space: object expected`);n.space=W.Space.fromObject(e.space,t+1)}if(e.spinner!=null){if(!M.isObject(e.spinner))throw I(`.Element.spinner: object expected`);n.spinner=W.Spinner.fromObject(e.spinner,t+1)}if(e.text!=null){if(!M.isObject(e.text))throw I(`.Element.text: object expected`);n.text=W.Text.fromObject(e.text,t+1)}if(e.textArea!=null){if(!M.isObject(e.textArea))throw I(`.Element.textArea: object expected`);n.textArea=W.TextArea.fromObject(e.textArea,t+1)}if(e.textInput!=null){if(!M.isObject(e.textInput))throw I(`.Element.textInput: object expected`);n.textInput=W.TextInput.fromObject(e.textInput,t+1)}if(e.timeInput!=null){if(!M.isObject(e.timeInput))throw I(`.Element.timeInput: object expected`);n.timeInput=W.TimeInput.fromObject(e.timeInput,t+1)}if(e.dateTimeInput!=null){if(!M.isObject(e.dateTimeInput))throw I(`.Element.dateTimeInput: object expected`);n.dateTimeInput=W.DateTimeInput.fromObject(e.dateTimeInput,t+1)}if(e.toast!=null){if(!M.isObject(e.toast))throw I(`.Element.toast: object expected`);n.toast=W.Toast.fromObject(e.toast,t+1)}if(e.video!=null){if(!M.isObject(e.video))throw I(`.Element.video: object expected`);n.video=W.Video.fromObject(e.video,t+1)}if(e.heading!=null){if(!M.isObject(e.heading))throw I(`.Element.heading: object expected`);n.heading=W.Heading.fromObject(e.heading,t+1)}if(e.code!=null){if(!M.isObject(e.code))throw I(`.Element.code: object expected`);n.code=W.Code.fromObject(e.code,t+1)}if(e.menuButton!=null){if(!M.isObject(e.menuButton))throw I(`.Element.menuButton: object expected`);n.menuButton=W.MenuButton.fromObject(e.menuButton,t+1)}if(e.pagination!=null){if(!M.isObject(e.pagination))throw I(`.Element.pagination: object expected`);n.pagination=W.Pagination.fromObject(e.pagination,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.text!=null&&N.hasOwnProperty.call(e,`text`)&&(r.text=W.Text.toObject(e.text,t,n+1),t.oneofs&&(r.type=`text`)),e.empty!=null&&N.hasOwnProperty.call(e,`empty`)&&(r.empty=W.Empty.toObject(e.empty,t,n+1),t.oneofs&&(r.type=`empty`)),e.progress!=null&&N.hasOwnProperty.call(e,`progress`)&&(r.progress=W.Progress.toObject(e.progress,t,n+1),t.oneofs&&(r.type=`progress`)),e.imgs!=null&&N.hasOwnProperty.call(e,`imgs`)&&(r.imgs=W.ImageList.toObject(e.imgs,t,n+1),t.oneofs&&(r.type=`imgs`)),e.helpInfo!=null&&N.hasOwnProperty.call(e,`helpInfo`)&&(r.helpInfo=W.Help.toObject(e.helpInfo,t,n+1),t.oneofs&&(r.type=`helpInfo`)),e.exception!=null&&N.hasOwnProperty.call(e,`exception`)&&(r.exception=W.Exception.toObject(e.exception,t,n+1),t.oneofs&&(r.type=`exception`)),e.balloons!=null&&N.hasOwnProperty.call(e,`balloons`)&&(r.balloons=W.Balloons.toObject(e.balloons,t,n+1),t.oneofs&&(r.type=`balloons`)),e.audio!=null&&N.hasOwnProperty.call(e,`audio`)&&(r.audio=W.Audio.toObject(e.audio,t,n+1),t.oneofs&&(r.type=`audio`)),e.video!=null&&N.hasOwnProperty.call(e,`video`)&&(r.video=W.Video.toObject(e.video,t,n+1),t.oneofs&&(r.type=`video`)),e.plotlyChart!=null&&N.hasOwnProperty.call(e,`plotlyChart`)&&(r.plotlyChart=W.PlotlyChart.toObject(e.plotlyChart,t,n+1),t.oneofs&&(r.type=`plotlyChart`)),e.graphvizChart!=null&&N.hasOwnProperty.call(e,`graphvizChart`)&&(r.graphvizChart=W.GraphVizChart.toObject(e.graphvizChart,t,n+1),t.oneofs&&(r.type=`graphvizChart`)),e.button!=null&&N.hasOwnProperty.call(e,`button`)&&(r.button=W.Button.toObject(e.button,t,n+1),t.oneofs&&(r.type=`button`)),e.checkbox!=null&&N.hasOwnProperty.call(e,`checkbox`)&&(r.checkbox=W.Checkbox.toObject(e.checkbox,t,n+1),t.oneofs&&(r.type=`checkbox`)),e.slider!=null&&N.hasOwnProperty.call(e,`slider`)&&(r.slider=W.Slider.toObject(e.slider,t,n+1),t.oneofs&&(r.type=`slider`)),e.textArea!=null&&N.hasOwnProperty.call(e,`textArea`)&&(r.textArea=W.TextArea.toObject(e.textArea,t,n+1),t.oneofs&&(r.type=`textArea`)),e.radio!=null&&N.hasOwnProperty.call(e,`radio`)&&(r.radio=W.Radio.toObject(e.radio,t,n+1),t.oneofs&&(r.type=`radio`)),e.textInput!=null&&N.hasOwnProperty.call(e,`textInput`)&&(r.textInput=W.TextInput.toObject(e.textInput,t,n+1),t.oneofs&&(r.type=`textInput`)),e.selectbox!=null&&N.hasOwnProperty.call(e,`selectbox`)&&(r.selectbox=W.Selectbox.toObject(e.selectbox,t,n+1),t.oneofs&&(r.type=`selectbox`)),e.timeInput!=null&&N.hasOwnProperty.call(e,`timeInput`)&&(r.timeInput=W.TimeInput.toObject(e.timeInput,t,n+1),t.oneofs&&(r.type=`timeInput`)),e.dateInput!=null&&N.hasOwnProperty.call(e,`dateInput`)&&(r.dateInput=W.DateInput.toObject(e.dateInput,t,n+1),t.oneofs&&(r.type=`dateInput`)),e.multiselect!=null&&N.hasOwnProperty.call(e,`multiselect`)&&(r.multiselect=W.MultiSelect.toObject(e.multiselect,t,n+1),t.oneofs&&(r.type=`multiselect`)),e.markdown!=null&&N.hasOwnProperty.call(e,`markdown`)&&(r.markdown=W.Markdown.toObject(e.markdown,t,n+1),t.oneofs&&(r.type=`markdown`)),e.alert!=null&&N.hasOwnProperty.call(e,`alert`)&&(r.alert=W.Alert.toObject(e.alert,t,n+1),t.oneofs&&(r.type=`alert`)),e.json!=null&&N.hasOwnProperty.call(e,`json`)&&(r.json=W.Json.toObject(e.json,t,n+1),t.oneofs&&(r.type=`json`)),e.numberInput!=null&&N.hasOwnProperty.call(e,`numberInput`)&&(r.numberInput=W.NumberInput.toObject(e.numberInput,t,n+1),t.oneofs&&(r.type=`numberInput`)),e.fileUploader!=null&&N.hasOwnProperty.call(e,`fileUploader`)&&(r.fileUploader=W.FileUploader.toObject(e.fileUploader,t,n+1),t.oneofs&&(r.type=`fileUploader`)),e.deckGlJsonChart!=null&&N.hasOwnProperty.call(e,`deckGlJsonChart`)&&(r.deckGlJsonChart=W.DeckGlJsonChart.toObject(e.deckGlJsonChart,t,n+1),t.oneofs&&(r.type=`deckGlJsonChart`)),e.colorPicker!=null&&N.hasOwnProperty.call(e,`colorPicker`)&&(r.colorPicker=W.ColorPicker.toObject(e.colorPicker,t,n+1),t.oneofs&&(r.type=`colorPicker`)),e.favicon!=null&&N.hasOwnProperty.call(e,`favicon`)&&(r.favicon=W.Favicon.toObject(e.favicon,t,n+1),t.oneofs&&(r.type=`favicon`)),e.componentInstance!=null&&N.hasOwnProperty.call(e,`componentInstance`)&&(r.componentInstance=W.ComponentInstance.toObject(e.componentInstance,t,n+1),t.oneofs&&(r.type=`componentInstance`)),e.iframe!=null&&N.hasOwnProperty.call(e,`iframe`)&&(r.iframe=W.IFrame.toObject(e.iframe,t,n+1),t.oneofs&&(r.type=`iframe`)),e.table!=null&&N.hasOwnProperty.call(e,`table`)&&(r.table=W.Table.toObject(e.table,t,n+1),t.oneofs&&(r.type=`table`)),e.dataframe!=null&&N.hasOwnProperty.call(e,`dataframe`)&&(r.dataframe=W.Dataframe.toObject(e.dataframe,t,n+1),t.oneofs&&(r.type=`dataframe`)),e.vegaLiteChart!=null&&N.hasOwnProperty.call(e,`vegaLiteChart`)&&(r.vegaLiteChart=W.VegaLiteChart.toObject(e.vegaLiteChart,t,n+1),t.oneofs&&(r.type=`vegaLiteChart`)),e.metric!=null&&N.hasOwnProperty.call(e,`metric`)&&(r.metric=W.Metric.toObject(e.metric,t,n+1),t.oneofs&&(r.type=`metric`)),e.downloadButton!=null&&N.hasOwnProperty.call(e,`downloadButton`)&&(r.downloadButton=W.DownloadButton.toObject(e.downloadButton,t,n+1),t.oneofs&&(r.type=`downloadButton`)),e.spinner!=null&&N.hasOwnProperty.call(e,`spinner`)&&(r.spinner=W.Spinner.toObject(e.spinner,t,n+1),t.oneofs&&(r.type=`spinner`)),e.cameraInput!=null&&N.hasOwnProperty.call(e,`cameraInput`)&&(r.cameraInput=W.CameraInput.toObject(e.cameraInput,t,n+1),t.oneofs&&(r.type=`cameraInput`)),e.snow!=null&&N.hasOwnProperty.call(e,`snow`)&&(r.snow=W.Snow.toObject(e.snow,t,n+1),t.oneofs&&(r.type=`snow`)),e.heading!=null&&N.hasOwnProperty.call(e,`heading`)&&(r.heading=W.Heading.toObject(e.heading,t,n+1),t.oneofs&&(r.type=`heading`)),e.code!=null&&N.hasOwnProperty.call(e,`code`)&&(r.code=W.Code.toObject(e.code,t,n+1),t.oneofs&&(r.type=`code`)),e.chatInput!=null&&N.hasOwnProperty.call(e,`chatInput`)&&(r.chatInput=W.ChatInput.toObject(e.chatInput,t,n+1),t.oneofs&&(r.type=`chatInput`)),e.toast!=null&&N.hasOwnProperty.call(e,`toast`)&&(r.toast=W.Toast.toObject(e.toast,t,n+1),t.oneofs&&(r.type=`toast`)),e.linkButton!=null&&N.hasOwnProperty.call(e,`linkButton`)&&(r.linkButton=W.LinkButton.toObject(e.linkButton,t,n+1),t.oneofs&&(r.type=`linkButton`)),e.skeleton!=null&&N.hasOwnProperty.call(e,`skeleton`)&&(r.skeleton=W.Skeleton.toObject(e.skeleton,t,n+1),t.oneofs&&(r.type=`skeleton`)),e.pageLink!=null&&N.hasOwnProperty.call(e,`pageLink`)&&(r.pageLink=W.PageLink.toObject(e.pageLink,t,n+1),t.oneofs&&(r.type=`pageLink`)),e.html!=null&&N.hasOwnProperty.call(e,`html`)&&(r.html=W.Html.toObject(e.html,t,n+1),t.oneofs&&(r.type=`html`)),e.buttonGroup!=null&&N.hasOwnProperty.call(e,`buttonGroup`)&&(r.buttonGroup=W.ButtonGroup.toObject(e.buttonGroup,t,n+1),t.oneofs&&(r.type=`buttonGroup`)),e.audioInput!=null&&N.hasOwnProperty.call(e,`audioInput`)&&(r.audioInput=W.AudioInput.toObject(e.audio
1Input,t,n+1),t.oneofs&&(r.type=`audioInput`)),e.heightConfig!=null&&N.hasOwnProperty.call(e,`heightConfig`)&&(r.heightConfig=W.streamlit.HeightConfig.toObject(e.heightConfig,t,n+1)),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&(r.widthConfig=W.streamlit.WidthConfig.toObject(e.widthConfig,t,n+1)),e.bidiComponent!=null&&N.hasOwnProperty.call(e,`bidiComponent`)&&(r.bidiComponent=W.BidiComponent.toObject(e.bidiComponent,t,n+1),t.oneofs&&(r.type=`bidiComponent`)),e.space!=null&&N.hasOwnProperty.call(e,`space`)&&(r.space=W.Space.toObject(e.space,t,n+1),t.oneofs&&(r.type=`space`)),e.textAlignmentConfig!=null&&N.hasOwnProperty.call(e,`textAlignmentConfig`)&&(r.textAlignmentConfig=W.streamlit.TextAlignmentConfig.toObject(e.textAlignmentConfig,t,n+1)),e.dateTimeInput!=null&&N.hasOwnProperty.call(e,`dateTimeInput`)&&(r.dateTimeInput=W.DateTimeInput.toObject(e.dateTimeInput,t,n+1),t.oneofs&&(r.type=`dateTimeInput`)),e.feedback!=null&&N.hasOwnProperty.call(e,`feedback`)&&(r.feedback=W.Feedback.toObject(e.feedback,t,n+1),t.oneofs&&(r.type=`feedback`)),e.menuButton!=null&&N.hasOwnProperty.call(e,`menuButton`)&&(r.menuButton=W.MenuButton.toObject(e.menuButton,t,n+1),t.oneofs&&(r.type=`menuButton`)),e.hasOneShotEffect!=null&&N.hasOwnProperty.call(e,`hasOneShotEffect`)&&(r.hasOneShotEffect=e.hasOneShotEffect),e.pagination!=null&&N.hasOwnProperty.call(e,`pagination`)&&(r.pagination=W.Pagination.toObject(e.pagination,t,n+1),t.oneofs&&(r.type=`pagination`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Element`},e})();W.DownloadButton=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.url=``,e.prototype.disabled=!1,e.prototype.useContainerWidth=!1,e.prototype.type=``,e.prototype.icon=``,e.prototype.ignoreRerun=!1,e.prototype.deferredFileId=null,e.prototype.shortcut=``,e.prototype.iconPosition=0;let t;return N.defineProperty(e.prototype,`_deferredFileId`,{get:M.oneOfGetter(t=[`deferredFileId`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&e.default!==!1&&t.uint32(24).bool(e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(42).string(e.formId),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(50).string(e.url),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&N.hasOwnProperty.call(e,`useContainerWidth`)&&e.useContainerWidth!==!1&&t.uint32(64).bool(e.useContainerWidth),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==``&&t.uint32(74).string(e.type),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(82).string(e.icon),e.ignoreRerun!=null&&N.hasOwnProperty.call(e,`ignoreRerun`)&&e.ignoreRerun!==!1&&t.uint32(88).bool(e.ignoreRerun),e.deferredFileId!=null&&N.hasOwnProperty.call(e,`deferredFileId`)&&t.uint32(98).string(e.deferredFileId),e.shortcut!=null&&N.hasOwnProperty.call(e,`shortcut`)&&e.shortcut!==``&&t.uint32(106).string(e.shortcut),e.iconPosition!=null&&N.hasOwnProperty.call(e,`iconPosition`)&&e.iconPosition!==0&&t.uint32(112).int32(e.iconPosition),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DownloadButton,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;(s=e.bool())?o.default=s:delete o.default;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue;case 7:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 8:if(a!==0)break;(s=e.bool())?o.useContainerWidth=s:delete o.useContainerWidth;continue;
1case 9:if(a!==2)break;(s=e.stringVerify()).length?o.type=s:delete o.type;continue;case 10:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 11:if(a!==0)break;(s=e.bool())?o.ignoreRerun=s:delete o.ignoreRerun;continue;case 12:if(a!==2)break;o.deferredFileId=e.stringVerify(),o._deferredFileId=`deferredFileId`;continue;case 13:if(a!==2)break;(s=e.stringVerify()).length?o.shortcut=s:delete o.shortcut;continue;case 14:if(a!==0)break;(s=e.int32())?o.iconPosition=s:delete o.iconPosition;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DownloadButton)return e;if(!M.isObject(e))throw I(`.DownloadButton: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.DownloadButton;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&e.default&&(n.default=R(e.default)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.useContainerWidth!=null&&e.useContainerWidth&&(n.useContainerWidth=R(e.useContainerWidth)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=L(e.type)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.ignoreRerun!=null&&e.ignoreRerun&&(n.ignoreRerun=R(e.ignoreRerun)),e.deferredFileId!=null&&(n.deferredFileId=L(e.deferredFileId)),e.shortcut!=null&&(typeof e.shortcut!=`string`||e.shortcut.length)&&(n.shortcut=L(e.shortcut)),e.iconPosition!==0&&(typeof e.iconPosition!=`string`||W.streamlit.ButtonLikeIconPosition[e.iconPosition]!==0))switch(e.iconPosition){case`LEFT`:case 0:n.iconPosition=0;break;case`RIGHT`:case 1:n.iconPosition=1;break;default:typeof e.iconPosition==`number`&&(e.iconPosition|0)===e.iconPosition&&(n.iconPosition=e.iconPosition)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.default=!1,r.help=``,r.formId=``,r.url=``,r.disabled=!1,r.useContainerWidth=!1,r.type=``,r.icon=``,r.ignoreRerun=!1,r.shortcut=``,r.iconPosition=t.enums===L?`LEFT`:0),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.useContainerWidth!=null&&N.hasOwnProperty.call(e,`useContainerWidth`)&&(r.useContainerWidth=e.useContainerWidth),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=e.type),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.ignoreRerun!=null&&N.hasOwnProperty.call(e,`ignoreRerun`)&&(r.ignoreRerun=e.ignoreRerun),e.deferredFileId!=null&&N.hasOwnProperty.call(e,`deferredFileId`)&&(r.deferredFileId=e.deferredFileId),e.shortcut!=null&&N.hasOwnProperty.call(e,`shortcut`)&&(r.shortcut=e.shortcut),e.iconPosition!=null&&N.hasOwnProperty.call(e,`iconPosition`)&&(r.iconPosition=t.enums===L?W.streamlit.ButtonLikeIconPosition[e.iconPosition]===P?e.iconPosition:W.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DownloadButton`},e})(),W.Empty=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Empty;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}e.skipType(i&7,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Empty)return e;if(!M.isObject(e))throw I(`.Empty: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);return new W.Empty},e.toObject=function(){return{}},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Empty`},e})(),W.Exception=(()=>{let e=function(e){if(this.stackTrace=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.type=``,e.prototype.message=``,e.prototype.messageIsMarkdown=!1,e.prototype.stackTrace=M.emptyArray,e.prototype.isWarning=!1,e.prototype.widthConfig=null,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==``&&t.uint32(10).string(e.type),e.message!=null&&N.hasOwnProperty.call(e,`message`)&&e.message!==``&&t.uint32(18).string(e.message),e.stackTrace!=null&&e.stackTrace.length)for(let n=0;n<e.stackTrace.length;++n)t.uint32(26).string(e.stackTrace[n]);if(e.messageIsMarkdown!=null&&N.hasOwnProperty.call(e,`messageIsMarkdown`)&&e.messageIsMarkdown!==!1&&t.uint32(32).bool(e.messageIsMarkdown),e.isWarning!=null&&N.hasOwnProperty.call(e,`isWarning`)&&e.isWarning!==!1&&t.uint32(40).bool(e.isWarning),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&W.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(50).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Exception,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;
1(s=e.stringVerify()).length?o.type=s:delete o.type;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.message=s:delete o.message;continue;case 4:if(a!==0)break;(s=e.bool())?o.messageIsMarkdown=s:delete o.messageIsMarkdown;continue;case 3:if(a!==2)break;o.stackTrace&&o.stackTrace.length||(o.stackTrace=[]),o.stackTrace.push(e.stringVerify());continue;case 5:if(a!==0)break;(s=e.bool())?o.isWarning=s:delete o.isWarning;continue;case 6:if(a!==2)break;o.widthConfig=W.streamlit.WidthConfig.decode(e,e.uint32(),P,r+1,o.widthConfig);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Exception)return e;if(!M.isObject(e))throw I(`.Exception: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Exception;if(e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=L(e.type)),e.message!=null&&(typeof e.message!=`string`||e.message.length)&&(n.message=L(e.message)),e.messageIsMarkdown!=null&&e.messageIsMarkdown&&(n.messageIsMarkdown=R(e.messageIsMarkdown)),e.stackTrace){if(!V.isArray(e.stackTrace))throw I(`.Exception.stackTrace: array expected`);n.stackTrace=V(e.stackTrace.length);for(let t=0;t<e.stackTrace.length;++t)n.stackTrace[t]=L(e.stackTrace[t])}if(e.isWarning!=null&&e.isWarning&&(n.isWarning=R(e.isWarning)),e.widthConfig!=null){if(!M.isObject(e.widthConfig))throw I(`.Exception.widthConfig: object expected`);n.widthConfig=W.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.stackTrace=[]),t.defaults&&(r.type=``,r.message=``,r.messageIsMarkdown=!1,r.isWarning=!1,r.widthConfig=null),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=e.type),e.message!=null&&N.hasOwnProperty.call(e,`message`)&&(r.message=e.message),e.stackTrace&&e.stackTrace.length){r.stackTrace=V(e.stackTrace.length);for(let t=0;t<e.stackTrace.length;++t)r.stackTrace[t]=e.stackTrace[t]}return e.messageIsMarkdown!=null&&N.hasOwnProperty.call(e,`messageIsMarkdown`)&&(r.messageIsMarkdown=e.messageIsMarkdown),e.isWarning!=null&&N.hasOwnProperty.call(e,`isWarning`)&&(r.isWarning=e.isWarning),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&(r.widthConfig=W.streamlit.WidthConfig.toObject(e.widthConfig,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Exception`},e})(),W.Favicon=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.url=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(10).string(e.url),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Favicon,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Favicon)return e;if(!M.isObject(e))throw I(`.Favicon: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Favicon;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.url=``),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Favicon`},e})();var me=W.Feedback=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.type=0,e.prototype.default=null,e.prototype.disabled=!1,e.prototype.formId=``,e.prototype.value=null,e.prototype.setValue=!1;let t;return N.defineProperty(e.prototype,`_default`,{get:M.oneOfGetter(t=[`default`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_value`,{get:M.oneOfGetter(t=[`value`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==0&&t.uint32(16).int32(e.type),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&t.uint32(24).uint32(e.default),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(32).bool(e.disabled),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(42).string(e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&t.uint32(48).uint32(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(56).bool(e.setValue),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Feedback,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 3:if(a!==0)break;o.default=e.uint32(),o._default=`default`;continue;case 4:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==0)break;o.value=e.uint32(),o._value=`value`;continue;case 7:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Feedback)return e;if(!M.isObject(e))throw I(`.Feedback: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Feedback;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.type!==0&&(typeof e.type!=`string`||W.Feedback.FeedbackType[e.type]!==0))switch(e.type){case`THUMBS`:case 0:n.type=0;break;case`FACES`:case 1:n.type=1;break;case`STARS`:case 2:n.type=2;break;default:typeof e.type==`number`&&(e.type|0)===e.type&&(n.type=e.type)}return e.default!=null&&(n.default=e.default>>>0),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value!=null&&(n.value=e.value>>>0),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.type=t.enums===L?`THUMBS`:0,r.disabled=!1,r.formId=``,r.setValue=!1),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=t.enums===L?W.Feedback.FeedbackType[e.type]===P?e.type:W.Feedback.FeedbackType[e.type]:e.type),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Feedback`},e.FeedbackType=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`THUMBS`]=0,t[e[1]=`FACES`]=1,t[e[2]=`STARS`]=2,t})(),e})();W.FileUploader=(()=>
1{let e=function(e){if(this.type=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.id=``,e.prototype.label=``,e.prototype.type=M.emptyArray,e.prototype.maxUploadSizeMb=0,e.prototype.multipleFiles=!1,e.prototype.help=``,e.prototype.formId=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.acceptDirectory=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.type!=null&&e.type.length)for(let n=0;n<e.type.length;++n)t.uint32(26).string(e.type[n]);if(e.maxUploadSizeMb!=null&&N.hasOwnProperty.call(e,`maxUploadSizeMb`)&&e.maxUploadSizeMb!==0&&t.uint32(32).int32(e.maxUploadSizeMb),e.multipleFiles!=null&&N.hasOwnProperty.call(e,`multipleFiles`)&&e.multipleFiles!==!1&&t.uint32(48).bool(e.multipleFiles),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(58).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(66).string(e.formId),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(82).fork(),n+1).ldelim(),e.acceptDirectory!=null&&N.hasOwnProperty.call(e,`acceptDirectory`)&&e.acceptDirectory!==!1&&t.uint32(88).bool(e.acceptDirectory),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.FileUploader,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.type&&o.type.length||(o.type=[]),o.type.push(e.stringVerify());continue;case 4:if(a!==0)break;(s=e.int32())?o.maxUploadSizeMb=s:delete o.maxUploadSizeMb;continue;case 6:if(a!==0)break;(s=e.bool())?o.multipleFiles=s:delete o.multipleFiles;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 8:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 9:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 11:if(a!==0)break;(s=e.bool())?o.acceptDirectory=s:delete o.acceptDirectory;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.FileUploader)return e;if(!M.isObject(e))throw I(`.FileUploader: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.FileUploader;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.type){if(!V.isArray(e.type))throw I(`.FileUploader.type: array expected`);n.type=V(e.type.length);for(let t=0;t<e.type.length;++t)n.type[t]=L(e.type[t])}if(e.maxUploadSizeMb!=null&&z(e.maxUploadSizeMb)!==0&&(n.maxUploadSizeMb=e.maxUploadSizeMb|0),e.multipleFiles!=null&&e.multipleFiles&&(n.multipleFiles=R(e.multipleFiles)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.FileUploader.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.acceptDirectory!=null&&e.acceptDirectory&&(n.acceptDirectory=R(e.acceptDirectory)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.type=[]),t.defaults&&(r.id=``,r.label=``,r.maxUploadSizeMb=0,r.multipleFiles=!1,r.help=``,r.formId=``,r.disabled=!1,r.labelVisibility=null,r.acceptDirectory=!1),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.type&&e.type.length){r.type=V(e.type.length);for(let t=0;t<e.type.length;++t)r.type[t]=e.type[t]}return e.maxUploadSizeMb!=null&&N.hasOwnProperty.call(e,`maxUploadSizeMb`)&&(r.maxUploadSizeMb=e.maxUploadSizeMb),e.multipleFiles!=null&&N.hasOwnProperty.call(e,`multipleFiles`)&&(r.multipleFiles=e.multipleFiles),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.acceptDirectory!=null&&N.hasOwnProperty.call(e,`acceptDirectory`)&&(r.acceptDirectory=e.acceptDirectory),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/FileUploader`},e})(),W.GraphVizChart=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.spec=``,e.prototype.elementId=``,e.prototype.engine=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.spec!=null&&N.hasOwnProperty.call(e,`spec`)&&e.spec!==``&&t.uint32(10).string(e.spec),e.elementId!=null&&N.hasOwnProperty.call(e,`elementId`)&&e.elementId!==``&&t.uint32(42).string(e.elementId),e.engine!=null&&N.hasOwnProperty.call(e,`engine`)&&e.engine!==``&&t.uint32(50).string(e.engine),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.GraphVizChart,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.spec=s:delete o.spec;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.elementId=s:delete o.elementId;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.engine=s:delete o.engine;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.GraphVizChart)return e;if(!M.isObject(e))throw I(`.GraphVizChart: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.GraphVizChart;return e.spec!=null&&(typeof e.spec!=`string`||e.spec.length)&&(n.spec=L(e.spec)),e.elementId!=null&&(typeof e.elementId!=`string`||e.elementId.length)&&(n.elementId=L(e.elementId)),e.engine!=null&&(typeof e.engine!=`string`||e.engine.length)&&(n.engine=L(e.engine)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.spec=``,r.elementId=``,r.engine=``),e.spec!=null&&N.hasOwnProperty.call(e,`spec`)&&(r.spec=e.spec),e.elementId!=null&&N.hasOwnProperty.call(e,`elementId`)&&(r.elementId=e.elementId),e.engine!=null&&N.hasOwnProperty.call(e,`engine`)&&(r.engine=e.engine),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/GraphVizChart`},e})(),W.Heading=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.tag=``,e.prototype.anchor=``,e.prototype.body=``,e.prototype.help=``,e.prototype.hideAnchor=!1,e.prototype.divider=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.tag!=null&&N.hasOwnProperty.call(e,`tag`)&&e.tag!==``&&t.uint32(10).string(e.tag),e.anchor!=null&&N.hasOwnProperty.call(e,`anchor`)&&e.anchor!==``&&t.uint32(18).string(e.anchor),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&e.body!==``&&t.uint32(26).string(e.body),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.hideAnchor!=null&&N.hasOwnProperty.call(e,`hideAnchor`)&&e.hideAnchor!==!1&&t.uint32(40).bool(e.hideAnchor),e.divider!=null&&N.hasOwnProperty.call(e,`divider`)&&e.divider!==``&&t.uint32(50).string(e.divider),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Heading,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.tag=s:delete o.tag;continue;case 2:if(a!==2)break;
1(s=e.stringVerify()).length?o.anchor=s:delete o.anchor;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.body=s:delete o.body;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 5:if(a!==0)break;(s=e.bool())?o.hideAnchor=s:delete o.hideAnchor;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.divider=s:delete o.divider;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Heading)return e;if(!M.isObject(e))throw I(`.Heading: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Heading;return e.tag!=null&&(typeof e.tag!=`string`||e.tag.length)&&(n.tag=L(e.tag)),e.anchor!=null&&(typeof e.anchor!=`string`||e.anchor.length)&&(n.anchor=L(e.anchor)),e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=L(e.body)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.hideAnchor!=null&&e.hideAnchor&&(n.hideAnchor=R(e.hideAnchor)),e.divider!=null&&(typeof e.divider!=`string`||e.divider.length)&&(n.divider=L(e.divider)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.tag=``,r.anchor=``,r.body=``,r.help=``,r.hideAnchor=!1,r.divider=``),e.tag!=null&&N.hasOwnProperty.call(e,`tag`)&&(r.tag=e.tag),e.anchor!=null&&N.hasOwnProperty.call(e,`anchor`)&&(r.anchor=e.anchor),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&(r.body=e.body),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.hideAnchor!=null&&N.hasOwnProperty.call(e,`hideAnchor`)&&(r.hideAnchor=e.hideAnchor),e.divider!=null&&N.hasOwnProperty.call(e,`divider`)&&(r.divider=e.divider),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Heading`},e})(),W.Help=(()=>{let e=function(e){if(this.members=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.docString=``,e.prototype.type=``,e.prototype.name=``,e.prototype.value=``,e.prototype.members=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.docString!=null&&N.hasOwnProperty.call(e,`docString`)&&e.docString!==``&&t.uint32(26).string(e.docString),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==``&&t.uint32(34).string(e.type),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(50).string(e.name),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&e.value!==``&&t.uint32(58).string(e.value),e.members!=null&&e.members.length)for(let r=0;r<e.members.length;++r)W.Member.encode(e.members[r],t.uint32(66).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Help,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 3:if(a!==2)break;(s=e.stringVerify()).length?o.docString=s:delete o.docString;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.type=s:delete o.type;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.value=s:delete o.value;continue;case 8:if(a!==2)break;o.members&&o.members.length||(o.members=[]),o.members.push(W.Member.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Help)return e;if(!M.isObject(e))throw I(`.Help: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Help;if(e.docString!=null&&(typeof e.docString!=`string`||e.docString.length)&&(n.docString=L(e.docString)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=L(e.type)),e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.value!=null&&(typeof e.value!=`string`||e.value.length)&&(n.value=L(e.value)),e.members){if(!V.isArray(e.members))throw I(`.Help.members: array expected`);n.members=V(e.members.length);for(let r=0;r<e.members.length;++r){if(!M.isObject(e.members[r]))throw I(`.Help.members: object expected`);n.members[r]=W.Member.fromObject(e.members[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.members=[]),t.defaults&&(r.docString=``,r.type=``,r.name=``,r.value=``),e.docString!=null&&N.hasOwnProperty.call(e,`docString`)&&(r.docString=e.docString),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=e.type),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.members&&e.members.length){r.members=V(e.members.length);for(let i=0;i<e.members.length;++i)r.members[i]=W.Member.toObject(e.members[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Help`},e})(),W.Member=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.name=``,e.prototype.type=``,e.prototype.value=null,e.prototype.docString=null;let t;return N.defineProperty(e.prototype,`contents`,{get:M.oneOfGetter(t=[`value`,`docString`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(10).string(e.name),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==``&&t.uint32(18).string(e.type),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&t.uint32(26).string(e.value),e.docString!=null&&N.hasOwnProperty.call(e,`docString`)&&t.uint32(34).string(e.docString),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Member,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 2:if(a!==2)break;
1(s=e.stringVerify()).length?o.type=s:delete o.type;continue;case 3:if(a!==2)break;o.value=e.stringVerify(),o.contents=`value`;continue;case 4:if(a!==2)break;o.docString=e.stringVerify(),o.contents=`docString`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Member)return e;if(!M.isObject(e))throw I(`.Member: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Member;return e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=L(e.type)),e.value!=null&&(n.value=L(e.value)),e.docString!=null&&(n.docString=L(e.docString)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.name=``,r.type=``),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=e.type),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value,t.oneofs&&(r.contents=`value`)),e.docString!=null&&N.hasOwnProperty.call(e,`docString`)&&(r.docString=e.docString,t.oneofs&&(r.contents=`docString`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Member`},e})(),W.Html=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.body=``,e.prototype.unsafeAllowJavascript=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.body!=null&&N.hasOwnProperty.call(e,`body`)&&e.body!==``&&t.uint32(10).string(e.body),e.unsafeAllowJavascript!=null&&N.hasOwnProperty.call(e,`unsafeAllowJavascript`)&&e.unsafeAllowJavascript!==!1&&t.uint32(16).bool(e.unsafeAllowJavascript),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Html,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.body=s:delete o.body;continue;case 2:if(a!==0)break;(s=e.bool())?o.unsafeAllowJavascript=s:delete o.unsafeAllowJavascript;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Html)return e;if(!M.isObject(e))throw I(`.Html: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Html;return e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=L(e.body)),e.unsafeAllowJavascript!=null&&e.unsafeAllowJavascript&&(n.unsafeAllowJavascript=R(e.unsafeAllowJavascript)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.body=``,r.unsafeAllowJavascript=!1),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&(r.body=e.body),e.unsafeAllowJavascript!=null&&N.hasOwnProperty.call(e,`unsafeAllowJavascript`)&&(r.unsafeAllowJavascript=e.unsafeAllowJavascript),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Html`},e})(),W.IFrame=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.src=null,e.prototype.srcdoc=null,e.prototype.scrolling=!1,e.prototype.tabIndex=null;let t;return N.defineProperty(e.prototype,`type`,{get:M.oneOfGetter(t=[`src`,`srcdoc`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_tabIndex`,{get:M.oneOfGetter(t=[`tabIndex`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.src!=null&&N.hasOwnProperty.call(e,`src`)&&t.uint32(10).string(e.src),e.srcdoc!=null&&N.hasOwnProperty.call(e,`srcdoc`)&&t.uint32(18).string(e.srcdoc),e.scrolling!=null&&N.hasOwnProperty.call(e,`scrolling`)&&e.scrolling!==!1&&t.uint32(56).bool(e.scrolling),e.tabIndex!=null&&N.hasOwnProperty.call(e,`tabIndex`)&&t.uint32(64).int32(e.tabIndex),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.IFrame,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.src=e.stringVerify(),o.type=`src`;continue;case 2:if(a!==2)break;o.srcdoc=e.stringVerify(),o.type=`srcdoc`;continue;case 7:if(a!==0)break;(s=e.bool())?o.scrolling=s:delete o.scrolling;continue;case 8:if(a!==0)break;o.tabIndex=e.int32(),o._tabIndex=`tabIndex`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.IFrame)return e;if(!M.isObject(e))throw I(`.IFrame: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.IFrame;return e.src!=null&&(n.src=L(e.src)),e.srcdoc!=null&&(n.srcdoc=L(e.srcdoc)),e.scrolling!=null&&e.scrolling&&(n.scrolling=R(e.scrolling)),e.tabIndex!=null&&(n.tabIndex=e.tabIndex|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.scrolling=!1),e.src!=null&&N.hasOwnProperty.call(e,`src`)&&(r.src=e.src,t.oneofs&&(r.type=`src`)),e.srcdoc!=null&&N.hasOwnProperty.call(e,`srcdoc`)&&(r.srcdoc=e.srcdoc,t.oneofs&&(r.type=`srcdoc`)),e.scrolling!=null&&N.hasOwnProperty.call(e,`scrolling`)&&(r.scrolling=e.scrolling),e.tabIndex!=null&&N.hasOwnProperty.call(e,`tabIndex`)&&(r.tabIndex=e.tabIndex),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/IFrame`},e})(),W.Image=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.url=``,e.prototype.caption=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.caption!=null&&N.hasOwnProperty.call(e,`caption`)&&e.caption!==``&&t.uint32(18).string(e.caption),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(26).string(e.url),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Image,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 3:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.caption=s:delete o.caption;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Image)return e;if(!M.isObject(e))throw I(`.Image: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Image;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),e.caption!=null&&(typeof e.caption!=`
1string`||e.caption.length)&&(n.caption=L(e.caption)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.caption=``,r.url=``),e.caption!=null&&N.hasOwnProperty.call(e,`caption`)&&(r.caption=e.caption),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Image`},e})(),W.ImageList=(()=>{let e=function(e){if(this.imgs=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.imgs=M.emptyArray,e.prototype.link=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.imgs!=null&&e.imgs.length)for(let r=0;r<e.imgs.length;++r)W.Image.encode(e.imgs[r],t.uint32(10).fork(),n+1).ldelim();if(e.link!=null&&N.hasOwnProperty.call(e,`link`)&&e.link!==``&&t.uint32(26).string(e.link),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ImageList,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.imgs&&o.imgs.length||(o.imgs=[]),o.imgs.push(W.Image.decode(e,e.uint32(),P,r+1));continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.link=s:delete o.link;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ImageList)return e;if(!M.isObject(e))throw I(`.ImageList: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ImageList;if(e.imgs){if(!V.isArray(e.imgs))throw I(`.ImageList.imgs: array expected`);n.imgs=V(e.imgs.length);for(let r=0;r<e.imgs.length;++r){if(!M.isObject(e.imgs[r]))throw I(`.ImageList.imgs: object expected`);n.imgs[r]=W.Image.fromObject(e.imgs[r],t+1)}}return e.link!=null&&(typeof e.link!=`string`||e.link.length)&&(n.link=L(e.link)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.imgs=[]),t.defaults&&(r.link=``),e.imgs&&e.imgs.length){r.imgs=V(e.imgs.length);for(let i=0;i<e.imgs.length;++i)r.imgs[i]=W.Image.toObject(e.imgs[i],t,n+1)}return e.link!=null&&N.hasOwnProperty.call(e,`link`)&&(r.link=e.link),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ImageList`},e})(),W.Json=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.body=``,e.prototype.expanded=!1,e.prototype.maxExpandDepth=null;let t;return N.defineProperty(e.prototype,`_maxExpandDepth`,{get:M.oneOfGetter(t=[`maxExpandDepth`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.body!=null&&N.hasOwnProperty.call(e,`body`)&&e.body!==``&&t.uint32(10).string(e.body),e.expanded!=null&&N.hasOwnProperty.call(e,`expanded`)&&e.expanded!==!1&&t.uint32(16).bool(e.expanded),e.maxExpandDepth!=null&&N.hasOwnProperty.call(e,`maxExpandDepth`)&&t.uint32(24).int32(e.maxExpandDepth),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Json,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.body=s:delete o.body;continue;case 2:if(a!==0)break;(s=e.bool())?o.expanded=s:delete o.expanded;continue;case 3:if(a!==0)break;o.maxExpandDepth=e.int32(),o._maxExpandDepth=`maxExpandDepth`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Json)return e;if(!M.isObject(e))throw I(`.Json: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Json;return e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=L(e.body)),e.expanded!=null&&e.expanded&&(n.expanded=R(e.expanded)),e.maxExpandDepth!=null&&(n.maxExpandDepth=e.maxExpandDepth|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.body=``,r.expanded=!1),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&(r.body=e.body),e.expanded!=null&&N.hasOwnProperty.call(e,`expanded`)&&(r.expanded=e.expanded),e.maxExpandDepth!=null&&N.hasOwnProperty.call(e,`maxExpandDepth`)&&(r.maxExpandDepth=e.maxExpandDepth),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Json`},e})(),W.LinkButton=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.id=``,e.prototype.label=``,e.prototype.help=``,e.prototype.url=``,e.prototype.disabled=!1,e.prototype.useContainerWidth=!1,e.prototype.type=``,e.prototype.icon=``,e.prototype.shortcut=``,e.prototype.iconPosition=0,e.prototype.ignoreRerun=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(50).string(e.url),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&N.hasOwnProperty.call(e,`useContainerWidth`)&&e.useContainerWidth!==!1&&t.uint32(64).bool(e.useContainerWidth),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==``&&t.uint32(74).string(e.type),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(82).string(e.icon),e.shortcut!=null&&N.hasOwnProperty.call(e,`shortcut`)&&e.shortcut!==``&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&N.hasOwnProperty.call(e,`iconPosition`)&&e.iconPosition!==0&&t.uint32(96).int32(e.iconPosition),e.ignoreRerun!=null&&N.hasOwnProperty.call(e,`ignoreRerun`)&&e.ignoreRerun!==!1&&t.uint32(104).bool(e.ignoreRerun),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.LinkButton,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue;case 7:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 8:if(a!==0)break;(s=e.bool())?o.useContainerWidth=s:delete o.useContainerWidth;continue;
1case 9:if(a!==2)break;(s=e.stringVerify()).length?o.type=s:delete o.type;continue;case 10:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.shortcut=s:delete o.shortcut;continue;case 12:if(a!==0)break;(s=e.int32())?o.iconPosition=s:delete o.iconPosition;continue;case 13:if(a!==0)break;(s=e.bool())?o.ignoreRerun=s:delete o.ignoreRerun;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.LinkButton)return e;if(!M.isObject(e))throw I(`.LinkButton: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.LinkButton;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.useContainerWidth!=null&&e.useContainerWidth&&(n.useContainerWidth=R(e.useContainerWidth)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=L(e.type)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.shortcut!=null&&(typeof e.shortcut!=`string`||e.shortcut.length)&&(n.shortcut=L(e.shortcut)),e.iconPosition!==0&&(typeof e.iconPosition!=`string`||W.streamlit.ButtonLikeIconPosition[e.iconPosition]!==0))switch(e.iconPosition){case`LEFT`:case 0:n.iconPosition=0;break;case`RIGHT`:case 1:n.iconPosition=1;break;default:typeof e.iconPosition==`number`&&(e.iconPosition|0)===e.iconPosition&&(n.iconPosition=e.iconPosition)}return e.ignoreRerun!=null&&e.ignoreRerun&&(n.ignoreRerun=R(e.ignoreRerun)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.help=``,r.url=``,r.disabled=!1,r.useContainerWidth=!1,r.type=``,r.icon=``,r.shortcut=``,r.iconPosition=t.enums===L?`LEFT`:0,r.ignoreRerun=!1),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.useContainerWidth!=null&&N.hasOwnProperty.call(e,`useContainerWidth`)&&(r.useContainerWidth=e.useContainerWidth),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=e.type),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.shortcut!=null&&N.hasOwnProperty.call(e,`shortcut`)&&(r.shortcut=e.shortcut),e.iconPosition!=null&&N.hasOwnProperty.call(e,`iconPosition`)&&(r.iconPosition=t.enums===L?W.streamlit.ButtonLikeIconPosition[e.iconPosition]===P?e.iconPosition:W.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),e.ignoreRerun!=null&&N.hasOwnProperty.call(e,`ignoreRerun`)&&(r.ignoreRerun=e.ignoreRerun),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/LinkButton`},e})();var he=W.Markdown=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.body=``,e.prototype.allowHtml=!1,e.prototype.elementType=0,e.prototype.help=``,e.prototype.unterminatedParsing=!1,e.prototype.hideAnchors=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.body!=null&&N.hasOwnProperty.call(e,`body`)&&e.body!==``&&t.uint32(10).string(e.body),e.allowHtml!=null&&N.hasOwnProperty.call(e,`allowHtml`)&&e.allowHtml!==!1&&t.uint32(16).bool(e.allowHtml),e.elementType!=null&&N.hasOwnProperty.call(e,`elementType`)&&e.elementType!==0&&t.uint32(32).int32(e.elementType),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(42).string(e.help),e.unterminatedParsing!=null&&N.hasOwnProperty.call(e,`unterminatedParsing`)&&e.unterminatedParsing!==!1&&t.uint32(48).bool(e.unterminatedParsing),e.hideAnchors!=null&&N.hasOwnProperty.call(e,`hideAnchors`)&&e.hideAnchors!==!1&&t.uint32(56).bool(e.hideAnchors),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Markdown,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.body=s:delete o.body;continue;case 2:if(a!==0)break;(s=e.bool())?o.allowHtml=s:delete o.allowHtml;continue;case 4:if(a!==0)break;(s=e.int32())?o.elementType=s:delete o.elementType;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 6:if(a!==0)break;(s=e.bool())?o.unterminatedParsing=s:delete o.unterminatedParsing;continue;case 7:if(a!==0)break;(s=e.bool())?o.hideAnchors=s:delete o.hideAnchors;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Markdown)return e;if(!M.isObject(e))throw I(`.Markdown: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Markdown;if(e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=L(e.body)),e.allowHtml!=null&&e.allowHtml&&(n.allowHtml=R(e.allowHtml)),e.elementType!==0&&(typeof e.elementType!=`string`||W.Markdown.Type[e.elementType]!==0))switch(e.elementType){case`UNSPECIFIED`:case 0:n.elementType=0;break;case`NATIVE`:case 1:n.elementType=1;break;case`CAPTION`:case 2:n.elementType=2;break;case`CODE`:case 3:n.elementType=3;break;case`LATEX`:case 4:n.elementType=4;break;case`DIVIDER`:case 5:n.elementType=5;break;default:typeof e.elementType==`number`&&(e.elementType|0)===e.elementType&&(n.elementType=e.elementType)}return e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.unterminatedParsing!=null&&e.unterminatedParsing&&(n.unterminatedParsing=R(e.unterminatedParsing)),e.hideAnchors!=null&&e.hideAnchors&&(n.hideAnchors=R(e.hideAnchors)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.body=``,r.allowHtml=!1,r.elementType=t.enums===L?`UNSPECIFIED`:0,r.help=``,r.unterminatedParsing=!1,r.hideAnchors=!1),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&(r.body=e.body),e.allowHtml!=null&&N.hasOwnProperty.call(e,`allowHtml`)&&(r.allowHtml=e.allowHtml),e.elementType!=null&&N.hasOwnProperty.call(e,`elementType`)&&(r.elementType=t.enums===L?W.Markdown.Type[e.elementType]===P?e.elementType:W.Markdown.Type[e.elementType]:e.elementType),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.unterminatedParsing!=null&&N.hasOwnProperty.call(e,`unterminatedParsing`)&&(r.unterminatedParsing=e.unterminatedParsing),e.hideAnchors!=null&&N.hasOwnProperty.call(e,`hideAnchors`)&&(r.hideAnchors=e.hideAnchors),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Markdown`},e.Type=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`UNSPECIFIED`]=0,t[e[1]=`NATIVE`]=1,t[e[2]=`CAPTION`]=2,t[e[3]=`CODE`]=3,t[e[4]=`LATEX`]=4,t[e[5]=`DIVIDER`]=5,t})(),e})();W.MenuButton=(()=>{let e=function(e){if(this.options=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.id=``,e.prototype.label=``,e.prototype.options=M.emptyArray,e.prototype.help=``,e.prototype.type=``,e.prototype.disabled=!1,e.prototype.icon=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(26).string(e.options[n]);if(e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==``&&t.uint32(42).string(e.type),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(48).bool(e.disabled),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(58).string(e.icon),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.MenuButton,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.stringVerify());continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;
1(s=e.stringVerify()).length?o.type=s:delete o.type;continue;case 6:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.MenuButton)return e;if(!M.isObject(e))throw I(`.MenuButton: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.MenuButton;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.options){if(!V.isArray(e.options))throw I(`.MenuButton.options: array expected`);n.options=V(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=L(e.options[t])}return e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.type!=null&&(typeof e.type!=`string`||e.type.length)&&(n.type=L(e.type)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.options=[]),t.defaults&&(r.id=``,r.label=``,r.help=``,r.type=``,r.disabled=!1,r.icon=``),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.options&&e.options.length){r.options=V(e.options.length);for(let t=0;t<e.options.length;++t)r.options[t]=e.options[t]}return e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=e.type),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/MenuButton`},e})();var ge=W.Metric=(()=>{let e=function(e){if(this.chartData=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.label=``,e.prototype.body=``,e.prototype.delta=``,e.prototype.direction=0,e.prototype.color=0,e.prototype.help=``,e.prototype.labelVisibility=null,e.prototype.showBorder=!1,e.prototype.chartData=M.emptyArray,e.prototype.chartType=0,e.prototype.format=``,e.prototype.deltaDescription=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(10).string(e.label),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&e.body!==``&&t.uint32(18).string(e.body),e.delta!=null&&N.hasOwnProperty.call(e,`delta`)&&e.delta!==``&&t.uint32(26).string(e.delta),e.direction!=null&&N.hasOwnProperty.call(e,`direction`)&&e.direction!==0&&t.uint32(32).int32(e.direction),e.color!=null&&N.hasOwnProperty.call(e,`color`)&&e.color!==0&&t.uint32(40).int32(e.color),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(50).string(e.help),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(58).fork(),n+1).ldelim(),e.showBorder!=null&&N.hasOwnProperty.call(e,`showBorder`)&&e.showBorder!==!1&&t.uint32(64).bool(e.showBorder),e.chartData!=null&&e.chartData.length){t.uint32(74).fork();for(let n=0;n<e.chartData.length;++n)t.double(e.chartData[n]);t.ldelim()}if(e.chartType!=null&&N.hasOwnProperty.call(e,`chartType`)&&e.chartType!==0&&t.uint32(80).int32(e.chartType),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&e.format!==``&&t.uint32(90).string(e.format),e.deltaDescription!=null&&N.hasOwnProperty.call(e,`deltaDescription`)&&e.deltaDescription!==``&&t.uint32(98).string(e.deltaDescription),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Metric,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.body=s:delete o.body;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.delta=s:delete o.delta;continue;case 4:if(a!==0)break;(s=e.int32())?o.direction=s:delete o.direction;continue;case 5:if(a!==0)break;(s=e.int32())?o.color=s:delete o.color;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 7:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 8:if(a!==0)break;(s=e.bool())?o.showBorder=s:delete o.showBorder;continue;
1case 9:if(a===2){o.chartData&&o.chartData.length||(o.chartData=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.chartData.push(e.double());continue}if(a!==1)break;o.chartData&&o.chartData.length||(o.chartData=[]),o.chartData.push(e.double());continue;case 10:if(a!==0)break;(s=e.int32())?o.chartType=s:delete o.chartType;continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.format=s:delete o.format;continue;case 12:if(a!==2)break;(s=e.stringVerify()).length?o.deltaDescription=s:delete o.deltaDescription;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Metric)return e;if(!M.isObject(e))throw I(`.Metric: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Metric;if(e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=L(e.body)),e.delta!=null&&(typeof e.delta!=`string`||e.delta.length)&&(n.delta=L(e.delta)),e.direction!==0&&(typeof e.direction!=`string`||W.Metric.MetricDirection[e.direction]!==0))switch(e.direction){case`DOWN`:case 0:n.direction=0;break;case`UP`:case 1:n.direction=1;break;case`NONE`:case 2:n.direction=2;break;default:typeof e.direction==`number`&&(e.direction|0)===e.direction&&(n.direction=e.direction)}if(e.color!==0&&(typeof e.color!=`string`||W.Metric.MetricColor[e.color]!==0))switch(e.color){case`RED`:case 0:n.color=0;break;case`GREEN`:case 1:n.color=1;break;case`GRAY`:case 2:n.color=2;break;case`ORANGE`:case 3:n.color=3;break;case`YELLOW`:case 4:n.color=4;break;case`BLUE`:case 5:n.color=5;break;case`VIOLET`:case 6:n.color=6;break;case`PRIMARY`:case 7:n.color=7;break;default:typeof e.color==`number`&&(e.color|0)===e.color&&(n.color=e.color)}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.Metric.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.showBorder!=null&&e.showBorder&&(n.showBorder=R(e.showBorder)),e.chartData){if(!V.isArray(e.chartData))throw I(`.Metric.chartData: array expected`);n.chartData=V(e.chartData.length);for(let t=0;t<e.chartData.length;++t)n.chartData[t]=z(e.chartData[t])}if(e.chartType!==0&&(typeof e.chartType!=`string`||W.Metric.ChartType[e.chartType]!==0))switch(e.chartType){case`LINE`:case 0:n.chartType=0;break;case`BAR`:case 1:n.chartType=1;break;case`AREA`:case 2:n.chartType=2;break;default:typeof e.chartType==`number`&&(e.chartType|0)===e.chartType&&(n.chartType=e.chartType)}return e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=L(e.format)),e.deltaDescription!=null&&(typeof e.deltaDescription!=`string`||e.deltaDescription.length)&&(n.deltaDescription=L(e.deltaDescription)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.chartData=[]),t.defaults&&(r.label=``,r.body=``,r.delta=``,r.direction=t.enums===L?`DOWN`:0,r.color=t.enums===L?`RED`:0,r.help=``,r.labelVisibility=null,r.showBorder=!1,r.chartType=t.enums===L?`LINE`:0,r.format=``,r.deltaDescription=``),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&(r.body=e.body),e.delta!=null&&N.hasOwnProperty.call(e,`delta`)&&(r.delta=e.delta),e.direction!=null&&N.hasOwnProperty.call(e,`direction`)&&(r.direction=t.enums===L?W.Metric.MetricDirection[e.direction]===P?e.direction:W.Metric.MetricDirection[e.direction]:e.direction),e.color!=null&&N.hasOwnProperty.call(e,`color`)&&(r.color=t.enums===L?W.Metric.MetricColor[e.color]===P?e.color:W.Metric.MetricColor[e.color]:e.color),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.showBorder!=null&&N.hasOwnProperty.call(e,`showBorder`)&&(r.showBorder=e.showBorder),e.chartData&&e.chartData.length){r.chartData=V(e.chartData.length);for(let n=0;n<e.chartData.length;++n)r.chartData[n]=t.json&&!B(e.chartData[n])?L(e.chartData[n]):e.chartData[n]}return e.chartType!=null&&N.hasOwnProperty.call(e,`chartType`)&&(r.chartType=t.enums===L?W.Metric.ChartType[e.chartType]===P?e.chartType:W.Metric.ChartType[e.chartType]:e.chartType),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&(r.format=e.format),e.deltaDescription!=null&&N.hasOwnProperty.call(e,`deltaDescription`)&&(r.deltaDescription=e.deltaDescription),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Metric`},e.MetricDirection=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`DOWN`]=0,t[e[1]=`UP`]=1,t[e[2]=`NONE`]=2,t})(),e.MetricColor=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`RED`]=0,t[e[1]=`GREEN`]=1,t[e[2]=`GRAY`]=2,t[e[3]=`ORANGE`]=3,t[e[4]=`YELLOW`]=4,t[e[5]=`BLUE`]=5,t[e[6]=`VIOLET`]=6,t[e[7]=`PRIMARY`]=7,t})(),e.ChartType=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`LINE`]=0,t[e[1]=`BAR`]=1,t[e[2]=`AREA`]=2,t})(),e})();W.MultiSelect=(()=>{let e=function(e){if(this.default=[],this.options=[],this.rawValues=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=M.emptyArray,e.prototype.options=M.emptyArray,e.prototype.help=``,e.prototype.formId=``,e.prototype.rawValues=M.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.maxSelections=0,e.prototype.placeholder=``,e.prototype.acceptNewOptions=null,e.prototype.queryParamKey=null,e.prototype.filterMode=0;let t;return N.defineProperty(e.prototype,`_acceptNewOptions`,{get:M.oneOfGetter(t=[`acceptNewOptions`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&e.default.length){t.uint32(26).fork();for(let n=0;n<e.default.length;++n)t.int32(e.default[n]);t.ldelim()}if(e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);if(e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(42).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(50).string(e.formId),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(64).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(82).fork(),n+1).ldelim(),e.maxSelections!=null&&N.hasOwnProperty.call(e,`maxSelections`)&&e.maxSelections!==0&&t.uint32(88).int32(e.maxSelections),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&e.placeholder!==``&&t.uint32(98).string(e.placeholder),e.acceptNewOptions!=null&&N.hasOwnProperty.call(e,`acceptNewOptions`)&&t.uint32(104).bool(e.acceptNewOptions),e.rawValues!=null&&e.rawValues.length)for(let n=0;n<e.rawValues.length;++n)t.uint32(114).string(e.rawValues[n]);if(e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(122).string(e.queryParamKey),e.filterMode!=null&&N.hasOwnProperty.call(e,`filterMode`)&&e.filterMode!==0&&t.uint32(128).int32(e.filterMode),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.MultiSelect,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a===2){o.default&&o.default.length||(o.default=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.default.push(e.int32());continue}if(a!==0)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.int32());continue;case 4:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.stringVerify());continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 14:if(a!==2)break;o.rawValues&&o.rawValues.length||(o.rawValues=[]),o.rawValues.push(e.stringVerify());continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;
1case 9:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 11:if(a!==0)break;(s=e.int32())?o.maxSelections=s:delete o.maxSelections;continue;case 12:if(a!==2)break;(s=e.stringVerify()).length?o.placeholder=s:delete o.placeholder;continue;case 13:if(a!==0)break;o.acceptNewOptions=e.bool(),o._acceptNewOptions=`acceptNewOptions`;continue;case 15:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue;case 16:if(a!==0)break;(s=e.int32())?o.filterMode=s:delete o.filterMode;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.MultiSelect)return e;if(!M.isObject(e))throw I(`.MultiSelect: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.MultiSelect;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default){if(!V.isArray(e.default))throw I(`.MultiSelect.default: array expected`);n.default=V(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]|0}if(e.options){if(!V.isArray(e.options))throw I(`.MultiSelect.options: array expected`);n.options=V(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=L(e.options[t])}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.rawValues){if(!V.isArray(e.rawValues))throw I(`.MultiSelect.rawValues: array expected`);n.rawValues=V(e.rawValues.length);for(let t=0;t<e.rawValues.length;++t)n.rawValues[t]=L(e.rawValues[t])}if(e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.MultiSelect.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.maxSelections!=null&&z(e.maxSelections)!==0&&(n.maxSelections=e.maxSelections|0),e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=L(e.placeholder)),e.acceptNewOptions!=null&&(n.acceptNewOptions=R(e.acceptNewOptions)),e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),e.filterMode!==0&&(typeof e.filterMode!=`string`||W.streamlit.SelectWidgetFilterMode[e.filterMode]!==0))switch(e.filterMode){case`FILTER_MODE_FUZZY`:case 0:n.filterMode=0;break;case`FILTER_MODE_CONTAINS`:case 1:n.filterMode=1;break;case`FILTER_MODE_PREFIX`:case 2:n.filterMode=2;break;case`FILTER_MODE_NONE`:case 3:n.filterMode=3;break;default:typeof e.filterMode==`number`&&(e.filterMode|0)===e.filterMode&&(n.filterMode=e.filterMode)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.default=[],r.options=[],r.rawValues=[]),t.defaults&&(r.id=``,r.label=``,r.help=``,r.formId=``,r.setValue=!1,r.disabled=!1,r.labelVisibility=null,r.maxSelections=0,r.placeholder=``,r.filterMode=t.enums===L?`FILTER_MODE_FUZZY`:0),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default&&e.default.length){r.default=V(e.default.length);for(let t=0;t<e.default.length;++t)r.default[t]=e.default[t]}if(e.options&&e.options.length){r.options=V(e.options.length);for(let t=0;t<e.options.length;++t)r.options[t]=e.options[t]}if(e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.maxSelections!=null&&N.hasOwnProperty.call(e,`maxSelections`)&&(r.maxSelections=e.maxSelections),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&(r.placeholder=e.placeholder),e.acceptNewOptions!=null&&N.hasOwnProperty.call(e,`acceptNewOptions`)&&(r.acceptNewOptions=e.acceptNewOptions),e.rawValues&&e.rawValues.length){r.rawValues=V(e.rawValues.length);for(let t=0;t<e.rawValues.length;++t)r.rawValues[t]=e.rawValues[t]}return e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),e.filterMode!=null&&N.hasOwnProperty.call(e,`filterMode`)&&(r.filterMode=t.enums===L?W.streamlit.SelectWidgetFilterMode[e.filterMode]===P?e.filterMode:W.streamlit.SelectWidgetFilterMode[e.filterMode]:e.filterMode),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/MultiSelect`},e})();var _e=W.NumberInput=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.formId=``,e.prototype.format=``,e.prototype.hasMin=!1,e.prototype.hasMax=!1,e.prototype.dataType=0,e.prototype.default=null,e.prototype.step=0,e.prototype.min=0,e.prototype.max=0,e.prototype.help=``,e.prototype.value=null,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.placeholder=``,e.prototype.icon=``,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_default`,{get:M.oneOfGetter(t=[`default`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_value`,{get:M.oneOfGetter(t=[`value`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(26).string(e.formId),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&e.format!==``&&t.uint32(66).string(e.format),e.hasMin!=null&&N.hasOwnProperty.call(e,`hasMin`)&&e.hasMin!==!1&&t.uint32(88).bool(e.hasMin),e.hasMax!=null&&N.hasOwnProperty.call(e,`hasMax`)&&e.hasMax!==!1&&t.uint32(96).bool(e.hasMax),e.dataType!=null&&N.hasOwnProperty.call(e,`dataType`)&&e.dataType!==0&&t.uint32(104).int32(e.dataType),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&t.uint32(113).double(e.default),e.step!=null&&N.hasOwnProperty.call(e,`step`)&&!N.is(e.step,0)&&t.uint32(121).double(e.step),e.min!=null&&N.hasOwnProperty.call(e,`min`)&&!N.is(e.min,0)&&t.uint32(129).double(e.min),e.max!=null&&N.hasOwnProperty.call(e,`max`)&&!N.is(e.max,0
1)&&t.uint32(137).double(e.max),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(146).string(e.help),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&t.uint32(153).double(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(160).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(168).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(178).fork(),n+1).ldelim(),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&e.placeholder!==``&&t.uint32(186).string(e.placeholder),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(194).string(e.icon),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(202).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.NumberInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==2)break;(s=e.stringVerify()).length?o.format=s:delete o.format;continue;case 11:if(a!==0)break;(s=e.bool())?o.hasMin=s:delete o.hasMin;continue;case 12:if(a!==0)break;(s=e.bool())?o.hasMax=s:delete o.hasMax;continue;case 13:if(a!==0)break;(s=e.int32())?o.dataType=s:delete o.dataType;continue;case 14:if(a!==1)break;o.default=e.double(),o._default=`default`;continue;case 15:if(a!==1)break;N.is(s=e.double(),0)?delete o.step:o.step=s;continue;case 16:if(a!==1)break;N.is(s=e.double(),0)?delete o.min:o.min=s;continue;case 17:if(a!==1)break;N.is(s=e.double(),0)?delete o.max:o.max=s;continue;case 18:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 19:if(a!==1)break;o.value=e.double(),o._value=`value`;continue;case 20:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 21:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 22:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 23:if(a!==2)break;(s=e.stringVerify()).length?o.placeholder=s:delete o.placeholder;continue;case 24:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 25:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.NumberInput)return e;if(!M.isObject(e))throw I(`.NumberInput: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.NumberInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=L(e.format)),e.hasMin!=null&&e.hasMin&&(n.hasMin=R(e.hasMin)),e.hasMax!=null&&e.hasMax&&(n.hasMax=R(e.hasMax)),e.dataType!==0&&(typeof e.dataType!=`string`||W.NumberInput.DataType[e.dataType]!==0))switch(e.dataType){case`INT`:case 0:n.dataType=0;break;case`FLOAT`:case 1:n.dataType=1;break;default:typeof e.dataType==`number`&&(e.dataType|0)===e.dataType&&(n.dataType=e.dataType)}if(e.default!=null&&(n.default=z(e.default)),e.step!=null&&(N.is(z(e.step),0)||(n.step=z(e.step))),e.min!=null&&(N.is(z(e.min),0)||(n.min=z(e.min))),e.max!=null&&(N.is(z(e.max),0)||(n.max=z(e.max))),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.value!=null&&(n.value=z(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.NumberInput.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=L(e.placeholder)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.formId=``,r.format=``,r.hasMin=!1,r.hasMax=!1,r.dataType=t.enums===L?`INT`:0,r.step=0,r.min=0,r.max=0,r.help=``,r.setValue=!1,r.disabled=!1,r.labelVisibility=null,r.placeholder=``,r.icon=``),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&(r.format=e.format),e.hasMin!=null&&N.hasOwnProperty.call(e,`hasMin`)&&(r.hasMin=e.hasMin),e.hasMax!=null&&N.hasOwnProperty.call(e,`hasMax`)&&(r.hasMax=e.hasMax),e.dataType!=null&&N.hasOwnProperty.call(e,`dataType`)&&(r.dataType=t.enums===L?W.NumberInput.DataType[e.dataType]===P?e.dataType:W.NumberInput.DataType[e.dataType]:e.dataType),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=t.json&&!B(e.default)?L(e.default):e.default),e.step!=null&&N.hasOwnProperty.call(e,`step`)&&(r.step=t.json&&!B(e.step)?L(e.step):e.step),e.min!=null&&N.hasOwnProperty.call(e,`min`)&&(r.min=t.json&&!B(e.min)?L(e.min):e.min),e.max!=null&&N.hasOwnProperty.call(e,`max`)&&(r.max=t.json&&!B(e.max)?L(e.max):e.max),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=t.json&&!B(e.value)?L(e.value):e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&(r.placeholder=e.placeholder),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/NumberInput`},e.DataType=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`INT`]=0,t[e[1]=`FLOAT`]=1,t})(),e})();W.PageLink=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.page=``,e.prototype.label=``,e.prototype.icon=``,e.prototype.pageScriptHash=``,e.prototype.help=``,e.prototype.useContainerWidth=null,e.prototype.disabled=!1,e.prototype.external=!1,e.prototype.queryString=``,e.prototype.iconPosition=0;let t;return N.defineProperty(e.prototype,`_useContainerWidth`,{get:M.oneOfGetter(t=[`useContainerWidth`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.page!=null&&N.hasOwnProperty.call(e,`page`)&&e.page!==``&&t.uint32(10).string(e.page),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(26).string(e.icon),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&e.pageScriptHash!==``&&t.uint32(34).string(e.pageScriptHash),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(42).string(e.help),e.useContainerWidth!=null&&N.hasOwnProperty.call(e,`useContainerWidth`)&&t.uint32(48).bool(e.useContainerWidth),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(56).bool(e.disabled),e.external!=null&&N.hasOwnProperty.call(e,`external`)&&e.external!==!1&&t.uint32(64).bool(e.external),e.queryString!=null&&N.hasOwnProperty.call(e,`queryString`)&&e.queryString!==``&&t.uint32(74).string(e.queryString),e.iconPosition!=null&&N.hasOwnProperty.call(e,`iconPosition`)&&e.iconPosition!==0&&t.uint32(80).int32(e.iconPosition),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.PageLink,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.page=s:delete o.page;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 6:if(a!==0)break;o.useContainerWidth=e.bool(),o._useContainerWidth=`useContainerWidth`;continue;case 7:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 8:if(a!==0)break;(s=e.bool())?o.external=s:delete o.external;continue;
1case 9:if(a!==2)break;(s=e.stringVerify()).length?o.queryString=s:delete o.queryString;continue;case 10:if(a!==0)break;(s=e.int32())?o.iconPosition=s:delete o.iconPosition;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.PageLink)return e;if(!M.isObject(e))throw I(`.PageLink: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.PageLink;if(e.page!=null&&(typeof e.page!=`string`||e.page.length)&&(n.page=L(e.page)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=L(e.pageScriptHash)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.useContainerWidth!=null&&(n.useContainerWidth=R(e.useContainerWidth)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.external!=null&&e.external&&(n.external=R(e.external)),e.queryString!=null&&(typeof e.queryString!=`string`||e.queryString.length)&&(n.queryString=L(e.queryString)),e.iconPosition!==0&&(typeof e.iconPosition!=`string`||W.streamlit.ButtonLikeIconPosition[e.iconPosition]!==0))switch(e.iconPosition){case`LEFT`:case 0:n.iconPosition=0;break;case`RIGHT`:case 1:n.iconPosition=1;break;default:typeof e.iconPosition==`number`&&(e.iconPosition|0)===e.iconPosition&&(n.iconPosition=e.iconPosition)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.page=``,r.label=``,r.icon=``,r.pageScriptHash=``,r.help=``,r.disabled=!1,r.external=!1,r.queryString=``,r.iconPosition=t.enums===L?`LEFT`:0),e.page!=null&&N.hasOwnProperty.call(e,`page`)&&(r.page=e.page),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&(r.pageScriptHash=e.pageScriptHash),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.useContainerWidth!=null&&N.hasOwnProperty.call(e,`useContainerWidth`)&&(r.useContainerWidth=e.useContainerWidth),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.external!=null&&N.hasOwnProperty.call(e,`external`)&&(r.external=e.external),e.queryString!=null&&N.hasOwnProperty.call(e,`queryString`)&&(r.queryString=e.queryString),e.iconPosition!=null&&N.hasOwnProperty.call(e,`iconPosition`)&&(r.iconPosition=t.enums===L?W.streamlit.ButtonLikeIconPosition[e.iconPosition]===P?e.iconPosition:W.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/PageLink`},e})(),W.Pagination=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.numPages=0,e.prototype.default=0,e.prototype.maxVisiblePages=null,e.prototype.disabled=!1,e.prototype.formId=``,e.prototype.value=0,e.prototype.setValue=!1,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_maxVisiblePages`,{get:M.oneOfGetter(t=[`maxVisiblePages`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.numPages!=null&&N.hasOwnProperty.call(e,`numPages`)&&e.numPages!==0&&t.uint32(16).uint32(e.numPages),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&e.default!==0&&t.uint32(24).uint32(e.default),e.maxVisiblePages!=null&&N.hasOwnProperty.call(e,`maxVisiblePages`)&&t.uint32(32).uint32(e.maxVisiblePages),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(40).bool(e.disabled),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(50).string(e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&e.value!==0&&t.uint32(56).uint32(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(64).bool(e.setValue),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(74).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Pagination,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==0)break;(s=e.uint32())?o.numPages=s:delete o.numPages;continue;case 3:if(a!==0)break;(s=e.uint32())?o.default=s:delete o.default;continue;case 4:if(a!==0)break;o.maxVisiblePages=e.uint32(),o._maxVisiblePages=`maxVisiblePages`;continue;case 5:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 7:if(a!==0)break;(s=e.uint32())?o.value=s:delete o.value;continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;
1case 9:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Pagination)return e;if(!M.isObject(e))throw I(`.Pagination: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Pagination;return e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.numPages!=null&&z(e.numPages)!==0&&(n.numPages=e.numPages>>>0),e.default!=null&&z(e.default)!==0&&(n.default=e.default>>>0),e.maxVisiblePages!=null&&(n.maxVisiblePages=e.maxVisiblePages>>>0),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value!=null&&z(e.value)!==0&&(n.value=e.value>>>0),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.numPages=0,r.default=0,r.disabled=!1,r.formId=``,r.value=0,r.setValue=!1),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.numPages!=null&&N.hasOwnProperty.call(e,`numPages`)&&(r.numPages=e.numPages),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.maxVisiblePages!=null&&N.hasOwnProperty.call(e,`maxVisiblePages`)&&(r.maxVisiblePages=e.maxVisiblePages),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Pagination`},e})();var ve=W.PlotlyChart=(()=>{let e=function(e){if(this.selectionMode=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.theme=``,e.prototype.id=``,e.prototype.selectionMode=M.emptyArray,e.prototype.formId=``,e.prototype.spec=``,e.prototype.config=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.theme!=null&&N.hasOwnProperty.call(e,`theme`)&&e.theme!==``&&t.uint32(50).string(e.theme),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length){t.uint32(66).fork();for(let n=0;n<e.selectionMode.length;++n)t.int32(e.selectionMode[n]);t.ldelim()}if(e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(74).string(e.formId),e.spec!=null&&N.hasOwnProperty.call(e,`spec`)&&e.spec!==``&&t.uint32(82).string(e.spec),e.config!=null&&N.hasOwnProperty.call(e,`config`)&&e.config!==``&&t.uint32(90).string(e.config),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.PlotlyChart,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 6:if(a!==2)break;(s=e.stringVerify()).length?o.theme=s:delete o.theme;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 8:if(a===2){o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.selectionMode.push(e.int32());continue}if(a!==0)break;o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]),o.selectionMode.push(e.int32());continue;case 9:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 10:if(a!==2)break;(s=e.stringVerify()).length?o.spec=s:delete o.spec;continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.config=s:delete o.config;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o}
1,e.fromObject=function(e,t){if(e instanceof W.PlotlyChart)return e;if(!M.isObject(e))throw I(`.PlotlyChart: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.PlotlyChart;if(e.theme!=null&&(typeof e.theme!=`string`||e.theme.length)&&(n.theme=L(e.theme)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.selectionMode){if(!V.isArray(e.selectionMode))throw I(`.PlotlyChart.selectionMode: array expected`);n.selectionMode=[];for(let t=0;t<e.selectionMode.length;++t)switch(e.selectionMode[t]){case`POINTS`:case 0:n.selectionMode[n.selectionMode.length]=0;break;case`BOX`:case 1:n.selectionMode[n.selectionMode.length]=1;break;case`LASSO`:case 2:n.selectionMode[n.selectionMode.length]=2;break;default:typeof e.selectionMode[t]==`number`&&(e.selectionMode[t]|0)===e.selectionMode[t]&&(n.selectionMode[n.selectionMode.length]=e.selectionMode[t])}}return e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.spec!=null&&(typeof e.spec!=`string`||e.spec.length)&&(n.spec=L(e.spec)),e.config!=null&&(typeof e.config!=`string`||e.config.length)&&(n.config=L(e.config)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.selectionMode=[]),t.defaults&&(r.theme=``,r.id=``,r.formId=``,r.spec=``,r.config=``),e.theme!=null&&N.hasOwnProperty.call(e,`theme`)&&(r.theme=e.theme),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.selectionMode&&e.selectionMode.length){r.selectionMode=V(e.selectionMode.length);for(let n=0;n<e.selectionMode.length;++n)r.selectionMode[n]=t.enums===L?W.PlotlyChart.SelectionMode[e.selectionMode[n]]===P?e.selectionMode[n]:W.PlotlyChart.SelectionMode[e.selectionMode[n]]:e.selectionMode[n]}return e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.spec!=null&&N.hasOwnProperty.call(e,`spec`)&&(r.spec=e.spec),e.config!=null&&N.hasOwnProperty.call(e,`config`)&&(r.config=e.config),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/PlotlyChart`},e.SelectionMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`POINTS`]=0,t[e[1]=`BOX`]=1,t[e[2]=`LASSO`]=2,t})(),e})();W.Progress=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.value=0,e.prototype.text=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.value!=null&&N.hasOwnProperty.call(e,`value`)&&e.value!==0&&t.uint32(8).uint32(e.value),e.text!=null&&N.hasOwnProperty.call(e,`text`)&&e.text!==``&&t.uint32(18).string(e.text),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Progress,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.uint32())?o.value=s:delete o.value;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.text=s:delete o.text;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Progress)return e;if(!M.isObject(e))throw I(`.Progress: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Progress;return e.value!=null&&z(e.value)!==0&&(n.value=e.value>>>0),e.text!=null&&(typeof e.text!=`string`||e.text.length)&&(n.text=L(e.text)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.value=0,r.text=``),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.text!=null&&N.hasOwnProperty.call(e,`text`)&&(r.text=e.text),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Progress`},e})(),W.Radio=(()=>{let e=function(e){if(this.options=[],this.captions=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.options=M.emptyArray,e.prototype.help=``,e.prototype.formId=``,e.prototype.rawValue=null,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.horizontal=!1,e.prototype.labelVisibility=null,e.prototype.captions=M.emptyArray,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_default`,{get:M.oneOfGetter(t=[`default`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_rawValue`,{get:M.oneOfGetter(t=[`rawValue`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&t.uint32(24).int32(e.default),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);if(e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(42).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(50).string(e.formId),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(64).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(72).bool(e.disabled),e.horizontal!=null&&N.hasOwnProperty.call(e,`horizontal`)&&e.horizontal!==!1&&t.uint32(80).bool(e.horizontal),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(90).fork(),n+1).ldelim(),e.captions!=null&&e.captions.length)for(let n=0;n<e.captions.length;++n)t.uint32(98).string(e.captions[n]);if(e.rawValue!=null&&N.hasOwnProperty.call(e,`rawValue`)&&t.uint32(106).string(e.rawValue),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(114).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Radio,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;o.default=e.int32(),o._default=`default`;continue;case 4:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.stringVerify());continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 13:if(a!==2)break;o.rawValue=e.stringVerify(),o._rawValue=`rawValue`;continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;
1case 9:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==0)break;(s=e.bool())?o.horizontal=s:delete o.horizontal;continue;case 11:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 12:if(a!==2)break;o.captions&&o.captions.length||(o.captions=[]),o.captions.push(e.stringVerify());continue;case 14:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Radio)return e;if(!M.isObject(e))throw I(`.Radio: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Radio;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&(n.default=e.default|0),e.options){if(!V.isArray(e.options))throw I(`.Radio.options: array expected`);n.options=V(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=L(e.options[t])}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.rawValue!=null&&(n.rawValue=L(e.rawValue)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.horizontal!=null&&e.horizontal&&(n.horizontal=R(e.horizontal)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.Radio.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.captions){if(!V.isArray(e.captions))throw I(`.Radio.captions: array expected`);n.captions=V(e.captions.length);for(let t=0;t<e.captions.length;++t)n.captions[t]=L(e.captions[t])}return e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.options=[],r.captions=[]),t.defaults&&(r.id=``,r.label=``,r.help=``,r.formId=``,r.setValue=!1,r.disabled=!1,r.horizontal=!1,r.labelVisibility=null),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.options&&e.options.length){r.options=V(e.options.length);for(let t=0;t<e.options.length;++t)r.options[t]=e.options[t]}if(e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.horizontal!=null&&N.hasOwnProperty.call(e,`horizontal`)&&(r.horizontal=e.horizontal),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.captions&&e.captions.length){r.captions=V(e.captions.length);for(let t=0;t<e.captions.length;++t)r.captions[t]=e.captions[t]}return e.rawValue!=null&&N.hasOwnProperty.call(e,`rawValue`)&&(r.rawValue=e.rawValue),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Radio`},e})(),W.Selectbox=(()=>{let e=function(e){if(this.options=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.options=M.emptyArray,e.prototype.help=``,e.prototype.formId=``,e.prototype.rawValue=null,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.placeholder=``,e.prototype.acceptNewOptions=null,e.prototype.queryParamKey=null,e.prototype.filterMode=0;let t;return N.defineProperty(e.prototype,`_default`,{get:M.oneOfGetter(t=[`default`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_rawValue`,{get:M.oneOfGetter(t=[`rawValue`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_acceptNewOptions`,{get:M.oneOfGetter(t=[`acceptNewOptions`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&t.uint32(24).int32(e.default),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);if(e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(42).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(50).string(e.formId),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(64).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(82).fork(),n+1).ldelim(),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&e.placeholder!==``&&t.uint32(90).string(e.placeholder),e.acceptNewOptions!=null&&N.hasOwnProperty.call(e,`acceptNewOptions`)&&t.uint32(96).bool(e.acceptNewOptions),e.rawValue!=null&&N.hasOwnProperty.call(e,`rawValue`)&&t.uint32(106).string(e.rawValue),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(114).string(e.queryParamKey),e.filterMode!=null&&N.hasOwnProperty.call(e,`filterMode`)&&e.filterMode!==0&&t.uint32(120).int32(e.filterMode),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Selectbox,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==0)break;o.default=e.int32(),o._default=`default`;continue;case 4:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.stringVerify());continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 13:if(a!==2)break;o.rawValue=e.stringVerify(),o._rawValue=`rawValue`;continue;case 8:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;
1case 9:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 10:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.placeholder=s:delete o.placeholder;continue;case 12:if(a!==0)break;o.acceptNewOptions=e.bool(),o._acceptNewOptions=`acceptNewOptions`;continue;case 14:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue;case 15:if(a!==0)break;(s=e.int32())?o.filterMode=s:delete o.filterMode;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Selectbox)return e;if(!M.isObject(e))throw I(`.Selectbox: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Selectbox;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&(n.default=e.default|0),e.options){if(!V.isArray(e.options))throw I(`.Selectbox.options: array expected`);n.options=V(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=L(e.options[t])}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.rawValue!=null&&(n.rawValue=L(e.rawValue)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.Selectbox.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=L(e.placeholder)),e.acceptNewOptions!=null&&(n.acceptNewOptions=R(e.acceptNewOptions)),e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),e.filterMode!==0&&(typeof e.filterMode!=`string`||W.streamlit.SelectWidgetFilterMode[e.filterMode]!==0))switch(e.filterMode){case`FILTER_MODE_FUZZY`:case 0:n.filterMode=0;break;case`FILTER_MODE_CONTAINS`:case 1:n.filterMode=1;break;case`FILTER_MODE_PREFIX`:case 2:n.filterMode=2;break;case`FILTER_MODE_NONE`:case 3:n.filterMode=3;break;default:typeof e.filterMode==`number`&&(e.filterMode|0)===e.filterMode&&(n.filterMode=e.filterMode)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.options=[]),t.defaults&&(r.id=``,r.label=``,r.help=``,r.formId=``,r.setValue=!1,r.disabled=!1,r.labelVisibility=null,r.placeholder=``,r.filterMode=t.enums===L?`FILTER_MODE_FUZZY`:0),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.options&&e.options.length){r.options=V(e.options.length);for(let t=0;t<e.options.length;++t)r.options[t]=e.options[t]}return e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&(r.placeholder=e.placeholder),e.acceptNewOptions!=null&&N.hasOwnProperty.call(e,`acceptNewOptions`)&&(r.acceptNewOptions=e.acceptNewOptions),e.rawValue!=null&&N.hasOwnProperty.call(e,`rawValue`)&&(r.rawValue=e.rawValue),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),e.filterMode!=null&&N.hasOwnProperty.call(e,`filterMode`)&&(r.filterMode=t.enums===L?W.streamlit.SelectWidgetFilterMode[e.filterMode]===P?e.filterMode:W.streamlit.SelectWidgetFilterMode[e.filterMode]:e.filterMode),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Selectbox`},e})();var ye=W.Skeleton=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.style=0,e.prototype.height=null;let t;return N.defineProperty(e.prototype,`_height`,{get:M.oneOfGetter(t=[`height`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.style!=null&&N.hasOwnProperty.call(e,`style`)&&e.style!==0&&t.uint32(8).int32(e.style),e.height!=null&&N.hasOwnProperty.call(e,`height`)&&t.uint32(16).int32(e.height),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Skeleton,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.int32())?o.style=s:delete o.style;continue;case 2:if(a!==0)break;
1o.height=e.int32(),o._height=`height`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Skeleton)return e;if(!M.isObject(e))throw I(`.Skeleton: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Skeleton;if(e.style!==0&&(typeof e.style!=`string`||W.Skeleton.SkeletonStyle[e.style]!==0))switch(e.style){case`ELEMENT`:case 0:n.style=0;break;case`APP`:case 1:n.style=1;break;default:typeof e.style==`number`&&(e.style|0)===e.style&&(n.style=e.style)}return e.height!=null&&(n.height=e.height|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.style=t.enums===L?`ELEMENT`:0),e.style!=null&&N.hasOwnProperty.call(e,`style`)&&(r.style=t.enums===L?W.Skeleton.SkeletonStyle[e.style]===P?e.style:W.Skeleton.SkeletonStyle[e.style]:e.style),e.height!=null&&N.hasOwnProperty.call(e,`height`)&&(r.height=e.height),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Skeleton`},e.SkeletonStyle=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`ELEMENT`]=0,t[e[1]=`APP`]=1,t})(),e})(),be=W.Slider=(()=>{let e=function(e){if(this.default=[],this.value=[],this.options=[],this.rawValue=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.formId=``,e.prototype.label=``,e.prototype.format=``,e.prototype.dataType=0,e.prototype.default=M.emptyArray,e.prototype.min=0,e.prototype.max=0,e.prototype.step=0,e.prototype.value=M.emptyArray,e.prototype.setValue=!1,e.prototype.options=M.emptyArray,e.prototype.help=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.type=0,e.prototype.rawValue=M.emptyArray,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(18).string(e.formId),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(26).string(e.label),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&e.format!==``&&t.uint32(34).string(e.format),e.dataType!=null&&N.hasOwnProperty.call(e,`dataType`)&&e.dataType!==0&&t.uint32(40).int32(e.dataType),e.default!=null&&e.default.length){t.uint32(50).fork();for(let n=0;n<e.default.length;++n)t.double(e.default[n]);t.ldelim()}if(e.min!=null&&N.hasOwnProperty.call(e,`min`)&&!N.is(e.min,0)&&t.uint32(57).double(e.min),e.max!=null&&N.hasOwnProperty.call(e,`max`)&&!N.is(e.max,0)&&t.uint32(65).double(e.max),e.step!=null&&N.hasOwnProperty.call(e,`step`)&&!N.is(e.step,0)&&t.uint32(73).double(e.step),e.value!=null&&e.value.length){t.uint32(82).fork();for(let n=0;n<e.value.length;++n)t.double(e.value[n]);t.ldelim()}if(e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(88).bool(e.setValue),e.options!=null&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(106).string(e.options[n]);if(e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(114).string(e.help),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(120).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(130).fork(),n+1).ldelim(),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==0&&t.uint32(136).int32(e.type),e.rawValue!=null&&e.rawValue.length)for(let n=0;n<e.rawValue.length;++n)t.uint32(146).string(e.rawValue[n]);if(e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(154).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Slider,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.format=s:delete o.format;continue;case 5:if(a!==0)break;(s=e.int32())?o.dataType=s:delete o.dataType;continue;case 6:if(a===2){o.default&&o.default.length||(o.default=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.default.push(e.double());continue}if(a!==1)break;o.default&&o.default.length||(o.default=[]),o.default.push(e.double());continue;case 7:if(a!==1)break;N.is(s=e.double(),0)?delete o.min:o.min=s;continue;case 8:if(a!==1)break;N.is(s=e.double(),0)?delete o.max:o.max=s;continue;
1case 9:if(a!==1)break;N.is(s=e.double(),0)?delete o.step:o.step=s;continue;case 10:if(a===2){o.value&&o.value.length||(o.value=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.value.push(e.double());continue}if(a!==1)break;o.value&&o.value.length||(o.value=[]),o.value.push(e.double());continue;case 11:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 13:if(a!==2)break;o.options&&o.options.length||(o.options=[]),o.options.push(e.stringVerify());continue;case 14:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 15:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 16:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 17:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 18:if(a!==2)break;o.rawValue&&o.rawValue.length||(o.rawValue=[]),o.rawValue.push(e.stringVerify());continue;case 19:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Slider)return e;if(!M.isObject(e))throw I(`.Slider: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Slider;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.format!=null&&(typeof e.format!=`string`||e.format.length)&&(n.format=L(e.format)),e.dataType!==0&&(typeof e.dataType!=`string`||W.Slider.DataType[e.dataType]!==0))switch(e.dataType){case`INT`:case 0:n.dataType=0;break;case`FLOAT`:case 1:n.dataType=1;break;case`DATETIME`:case 2:n.dataType=2;break;case`DATE`:case 3:n.dataType=3;break;case`TIME`:case 4:n.dataType=4;break;default:typeof e.dataType==`number`&&(e.dataType|0)===e.dataType&&(n.dataType=e.dataType)}if(e.default){if(!V.isArray(e.default))throw I(`.Slider.default: array expected`);n.default=V(e.default.length);for(let t=0;t<e.default.length;++t)n.default[t]=z(e.default[t])}if(e.min!=null&&(N.is(z(e.min),0)||(n.min=z(e.min))),e.max!=null&&(N.is(z(e.max),0)||(n.max=z(e.max))),e.step!=null&&(N.is(z(e.step),0)||(n.step=z(e.step))),e.value){if(!V.isArray(e.value))throw I(`.Slider.value: array expected`);n.value=V(e.value.length);for(let t=0;t<e.value.length;++t)n.value[t]=z(e.value[t])}if(e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.options){if(!V.isArray(e.options))throw I(`.Slider.options: array expected`);n.options=V(e.options.length);for(let t=0;t<e.options.length;++t)n.options[t]=L(e.options[t])}if(e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.Slider.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}if(e.type!==0&&(typeof e.type!=`string`||W.Slider.Type[e.type]!==0))switch(e.type){case`UNSPECIFIED`:case 0:n.type=0;break;case`SLIDER`:case 1:n.type=1;break;case`SELECT_SLIDER`:case 2:n.type=2;break;default:typeof e.type==`number`&&(e.type|0)===e.type&&(n.type=e.type)}if(e.rawValue){if(!V.isArray(e.rawValue))throw I(`.Slider.rawValue: array expected`);n.rawValue=V(e.rawValue.length);for(let t=0;t<e.rawValue.length;++t)n.rawValue[t]=L(e.rawValue[t])}return e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.default=[],r.value=[],r.options=[],r.rawValue=[]),t.defaults&&(r.id=``,r.formId=``,r.label=``,r.format=``,r.dataType=t.enums===L?`INT`:0,r.min=0,r.max=0,r.step=0,r.setValue=!1,r.help=``,r.disabled=!1,r.labelVisibility=null,r.type=t.enums===L?`UNSPECIFIED`:0),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.format!=null&&N.hasOwnProperty.call(e,`format`)&&(r.format=e.format),e.dataType!=null&&N.hasOwnProperty.call(e,`dataType`)&&(r.dataType=t.enums===L?W.Slider.DataType[e.dataType]===P?e.dataType:W.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){r.default=V(e.default.length);for(let n=0;n<e.default.length;++n)r.default[n]=t.json&&!B(e.default[n])?L(e.default[n]):e.default[n]}if(e.min!=null&&N.hasOwnProperty.call(e,`min`)&&(r.min=t.json&&!B(e.min)?L(e.min):e.min),e.max!=null&&N.hasOwnProperty.call(e,`max`)&&(r.max=t.json&&!B(e.max)?L(e.max):e.max),e.step!=null&&N.hasOwnProperty.call(e,`step`)&&(r.step=t.json&&!B(e.step)?L(e.step):e.step),e.value&&e.value.length){r.value=V(e.value.length);for(let n=0;n<e.value.length;++n)r.value[n]=t.json&&!B(e.value[n])?L(e.value[n]):e.value[n]}if(e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.options&&e.options.length){r.options=V(e.options.length);for(let t=0;t<e.options.length;++t)r.options[t]=e.options[t]}if(e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=t.enums===L?W.Slider.Type[e.type]===P?e.type:W.Slider.Type[e.type]:e.type),e.rawValue&&e.rawValue.length){r.rawValue=V(e.rawValue.length);for(let t=0;t<e.rawValue.length;++t)r.rawValue[t]=e.rawValue[t]}return e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Slider`},e.DataType=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`INT`]=0,t[e[1]=`FLOAT`]=1,t[e[2]=`DATETIME`]=2,t[e[3]=`DATE`]=3,t[e[4]=`TIME`]=4,t})(),e.Type=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`UNSPECIFIED`]=0,t[e[1]=`SLIDER`]=1,t[e[2]=`SELECT_SLIDER`]=2,t})(),e})();W.Snow=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.show!=null&&N.hasOwnProperty.call(e,`show`)&&e.show!==!1&&t.uint32(8).bool(e.show),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Snow,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.show=s:delete o.show;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Snow)return e;if(!M.isObject(e))throw I(`.Snow: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Snow;return e.show!=null&&e.show&&(n.show=R(e.show)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.show=!1),e.show!=null&&N.hasOwnProperty.call(e,`show`)&&(r.show=e.show),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Snow`},e})(),W.Space=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Space;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}e.skipType(i&7,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Space)return e;
1if(!M.isObject(e))throw I(`.Space: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);return new W.Space},e.toObject=function(){return{}},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Space`},e})(),W.Spinner=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.text=``,e.prototype.cache=!1,e.prototype.showTime=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.text!=null&&N.hasOwnProperty.call(e,`text`)&&e.text!==``&&t.uint32(10).string(e.text),e.cache!=null&&N.hasOwnProperty.call(e,`cache`)&&e.cache!==!1&&t.uint32(16).bool(e.cache),e.showTime!=null&&N.hasOwnProperty.call(e,`showTime`)&&e.showTime!==!1&&t.uint32(24).bool(e.showTime),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Spinner,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.text=s:delete o.text;continue;case 2:if(a!==0)break;(s=e.bool())?o.cache=s:delete o.cache;continue;case 3:if(a!==0)break;(s=e.bool())?o.showTime=s:delete o.showTime;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Spinner)return e;if(!M.isObject(e))throw I(`.Spinner: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Spinner;return e.text!=null&&(typeof e.text!=`string`||e.text.length)&&(n.text=L(e.text)),e.cache!=null&&e.cache&&(n.cache=R(e.cache)),e.showTime!=null&&e.showTime&&(n.showTime=R(e.showTime)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.text=``,r.cache=!1,r.showTime=!1),e.text!=null&&N.hasOwnProperty.call(e,`text`)&&(r.text=e.text),e.cache!=null&&N.hasOwnProperty.call(e,`cache`)&&(r.cache=e.cache),e.showTime!=null&&N.hasOwnProperty.call(e,`showTime`)&&(r.showTime=e.showTime),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Spinner`},e})();var xe=W.Table=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.arrowData=null,e.prototype.borderMode=0,e.prototype.hideIndex=!1,e.prototype.hideHeader=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.arrowData!=null&&N.hasOwnProperty.call(e,`arrowData`)&&W.ArrowData.encode(e.arrowData,t.uint32(10).fork(),n+1).ldelim(),e.borderMode!=null&&N.hasOwnProperty.call(e,`borderMode`)&&e.borderMode!==0&&t.uint32(16).int32(e.borderMode),e.hideIndex!=null&&N.hasOwnProperty.call(e,`hideIndex`)&&e.hideIndex!==!1&&t.uint32(24).bool(e.hideIndex),e.hideHeader!=null&&N.hasOwnProperty.call(e,`hideHeader`)&&e.hideHeader!==!1&&t.uint32(32).bool(e.hideHeader),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Table,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.arrowData=W.ArrowData.decode(e,e.uint32(),P,r+1,o.arrowData);continue;case 2:if(a!==0)break;(s=e.int32())?o.borderMode=s:delete o.borderMode;continue;case 3:if(a!==0)break;(s=e.bool())?o.hideIndex=s:delete o.hideIndex;continue;case 4:if(a!==0)break;(s=e.bool())?o.hideHeader=s:delete o.hideHeader;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Table)return e;if(!M.isObject(e))throw I(`.Table: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Table;if(e.arrowData!=null){if(!M.isObject(e.arrowData))throw I(`.Table.arrowData: object expected`);n.arrowData=W.ArrowData.fromObject(e.arrowData,t+1)}if(e.borderMode!==0&&(typeof e.borderMode!=`string`||W.Table.BorderMode[e.borderMode]!==0))switch(e.borderMode){case`ALL`:case 0:n.borderMode=0;break;case`NONE`:case 1:n.borderMode=1;break;case`HORIZONTAL`:case 2:n.borderMode=2;break;default:typeof e.borderMode==`number`&&(e.borderMode|0)===e.borderMode&&(n.borderMode=e.borderMode)}return e.hideIndex!=null&&e.hideIndex&&(n.hideIndex=R(e.hideIndex)),e.hideHeader!=null&&e.hideHeader&&(n.hideHeader=R(e.hideHeader)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.arrowData=null,r.borderMode=t.enums===L?`ALL`:0,r.hideIndex=!1,r.hideHeader=!1),e.arrowData!=null&&N.hasOwnProperty.call(e,`arrowData`)&&(r.arrowData=W.ArrowData.toObject(e.arrowData,t,n+1)),e.borderMode!=null&&N.hasOwnProperty.call(e,`borderMode`)&&(r.borderMode=t.enums===L?W.Table.BorderMode[e.borderMode]===P?e.borderMode:W.Table.BorderMode[e.borderMode]:e.borderMode),e.hideIndex!=null&&N.hasOwnProperty.call(e,`hideIndex`)&&(r.hideIndex=e.hideIndex),e.hideHeader!=null&&N.hasOwnProperty.call(e,`hideHeader`)&&(r.hideHeader=e.hideHeader),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Table`},e.BorderMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`ALL`]=0,t[e[1]=`NONE`]=1,t[e[2]=`HORIZONTAL`]=2,t})(),e})();W.Text=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.body=``,e.prototype.help=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.body!=null&&N.hasOwnProperty.call(e,`body`)&&e.body!==``&&t.uint32(10).string(e.body),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(18).string(e.help),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Text,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.body=s:delete o.body;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Text)return e;if(!M.isObject(e))throw I(`.Text: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Text;return e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=L(e.body)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.body=``,r.help=``),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&(r.body=e.body),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Text`},e})(),W.TextArea=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.maxChars=0,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=null,e.prototype.setValue=!1,e.prototype.placeholder=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_default`,{get:M.oneOfGetter(t=[`default`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_value`,{get:M.oneOfGetter(t=[`value`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&t.uint32(26).string(e.default),e.maxChars!=null&&N.hasOwnProperty.call(e,`maxChars`)&&e.maxChars!==0&&t.uint32(40).uint32(e.maxChars),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(50).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(58).string(e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&t.uint32(66).string(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(72).bool(e.setValue),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&e.placeholder!==``&&t.uint32(82).string(e.placeholder),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(88).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(98).fork(),n+1).ldelim(),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(106).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.TextArea,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default=e.stringVerify(),o._default=`default`;continue;case 5:if(a!==0)break;(s=e.uint32())?o.maxChars=s:delete o.maxChars;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==2)break;o.value=e.stringVerify(),o._value=`value`;continue;
1case 9:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 10:if(a!==2)break;(s=e.stringVerify()).length?o.placeholder=s:delete o.placeholder;continue;case 11:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 12:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 13:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.TextArea)return e;if(!M.isObject(e))throw I(`.TextArea: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.TextArea;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&(n.default=L(e.default)),e.maxChars!=null&&z(e.maxChars)!==0&&(n.maxChars=e.maxChars>>>0),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value!=null&&(n.value=L(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=L(e.placeholder)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.TextArea.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.maxChars=0,r.help=``,r.formId=``,r.setValue=!1,r.placeholder=``,r.disabled=!1,r.labelVisibility=null),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.maxChars!=null&&N.hasOwnProperty.call(e,`maxChars`)&&(r.maxChars=e.maxChars),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&(r.placeholder=e.placeholder),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/TextArea`},e})();var Se=W.TextInput=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.type=0,e.prototype.maxChars=0,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=null,e.prototype.setValue=!1,e.prototype.autocomplete=``,e.prototype.placeholder=``,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.icon=``,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_default`,{get:M.oneOfGetter(t=[`default`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_value`,{get:M.oneOfGetter(t=[`value`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&t.uint32(26).string(e.default),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==0&&t.uint32(32).int32(e.type),e.maxChars!=null&&N.hasOwnProperty.call(e,`maxChars`)&&e.maxChars!==0&&t.uint32(40).uint32(e.maxChars),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(50).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(58).string(e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&t.uint32(66).string(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(72).bool(e.setValue),e.autocomplete!=null&&N.hasOwnProperty.call(e,`autocomplete`)&&e.autocomplete!==``&&t.uint32(82).string(e.autocomplete),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&e.placeholder!==``&&t.uint32(90).string(e.placeholder),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(96).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(106).fork(),n+1).ldelim(),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(114).string(e.icon),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(122).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.TextInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default=e.stringVerify(),o._default=`default`;continue;case 4:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 5:if(a!==0)break;(s=e.uint32())?o.maxChars=s:delete o.maxChars;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 8:if(a!==2)break;o.value=e.stringVerify(),o._value=`value`;continue;
1case 9:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 10:if(a!==2)break;(s=e.stringVerify()).length?o.autocomplete=s:delete o.autocomplete;continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.placeholder=s:delete o.placeholder;continue;case 12:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;case 13:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 14:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 15:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.TextInput)return e;if(!M.isObject(e))throw I(`.TextInput: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.TextInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&(n.default=L(e.default)),e.type!==0&&(typeof e.type!=`string`||W.TextInput.Type[e.type]!==0))switch(e.type){case`DEFAULT`:case 0:n.type=0;break;case`PASSWORD`:case 1:n.type=1;break;default:typeof e.type==`number`&&(e.type|0)===e.type&&(n.type=e.type)}if(e.maxChars!=null&&z(e.maxChars)!==0&&(n.maxChars=e.maxChars>>>0),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value!=null&&(n.value=L(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.autocomplete!=null&&(typeof e.autocomplete!=`string`||e.autocomplete.length)&&(n.autocomplete=L(e.autocomplete)),e.placeholder!=null&&(typeof e.placeholder!=`string`||e.placeholder.length)&&(n.placeholder=L(e.placeholder)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.TextInput.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.id=``,r.label=``,r.type=t.enums===L?`DEFAULT`:0,r.maxChars=0,r.help=``,r.formId=``,r.setValue=!1,r.autocomplete=``,r.placeholder=``,r.disabled=!1,r.labelVisibility=null,r.icon=``),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=t.enums===L?W.TextInput.Type[e.type]===P?e.type:W.TextInput.Type[e.type]:e.type),e.maxChars!=null&&N.hasOwnProperty.call(e,`maxChars`)&&(r.maxChars=e.maxChars),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.autocomplete!=null&&N.hasOwnProperty.call(e,`autocomplete`)&&(r.autocomplete=e.autocomplete),e.placeholder!=null&&N.hasOwnProperty.call(e,`placeholder`)&&(r.placeholder=e.placeholder),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/TextInput`},e.Type=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`DEFAULT`]=0,t[e[1]=`PASSWORD`]=1,t})(),e})();W.TimeInput=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.id=``,e.prototype.label=``,e.prototype.default=null,e.prototype.help=``,e.prototype.formId=``,e.prototype.value=null,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.step=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.queryParamKey=null;let t;return N.defineProperty(e.prototype,`_default`,{get:M.oneOfGetter(t=[`default`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_value`,{get:M.oneOfGetter(t=[`value`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_queryParamKey`,{get:M.oneOfGetter(t=[`queryParamKey`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(10).string(e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(18).string(e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&t.uint32(26).string(e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(42).string(e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&t.uint32(50).string(e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&e.setValue!==!1&&t.uint32(56).bool(e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&e.disabled!==!1&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&W.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork(),n+1).ldelim(),e.step!=null&&N.hasOwnProperty.call(e,`step`)&&(typeof e.step==`object`?e.step.low||e.step.high:e.step!==0)&&t.uint32(80).int64(e.step),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&t.uint32(90).string(e.queryParamKey),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.TimeInput,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 3:if(a!==2)break;o.default=e.stringVerify(),o._default=`default`;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue;case 6:if(a!==2)break;o.value=e.stringVerify(),o._value=`value`;continue;case 7:if(a!==0)break;(s=e.bool())?o.setValue=s:delete o.setValue;continue;case 8:if(a!==0)break;(s=e.bool())?o.disabled=s:delete o.disabled;continue;
1case 9:if(a!==2)break;o.labelVisibility=W.LabelVisibility.decode(e,e.uint32(),P,r+1,o.labelVisibility);continue;case 10:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.step=s:delete o.step;continue;case 11:if(a!==2)break;o.queryParamKey=e.stringVerify(),o._queryParamKey=`queryParamKey`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.TimeInput)return e;if(!M.isObject(e))throw I(`.TimeInput: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.TimeInput;if(e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.default!=null&&(n.default=L(e.default)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),e.value!=null&&(n.value=L(e.value)),e.setValue!=null&&e.setValue&&(n.setValue=R(e.setValue)),e.disabled!=null&&e.disabled&&(n.disabled=R(e.disabled)),e.labelVisibility!=null){if(!M.isObject(e.labelVisibility))throw I(`.TimeInput.labelVisibility: object expected`);n.labelVisibility=W.LabelVisibility.fromObject(e.labelVisibility,t+1)}return e.step!=null&&(typeof e.step==`object`?e.step.low||e.step.high:z(e.step)!==0)&&(M.Long?n.step=M.Long.fromValue(e.step,!1):typeof e.step==`string`?n.step=H(e.step,10):typeof e.step==`number`?n.step=e.step:typeof e.step==`object`&&(n.step=new M.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.queryParamKey!=null&&(n.queryParamKey=L(e.queryParamKey)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if(t.defaults)if(r.id=``,r.label=``,r.help=``,r.formId=``,r.setValue=!1,r.disabled=!1,r.labelVisibility=null,M.Long){let e=new M.Long(0,0,!1);r.step=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.step=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;return e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.default!=null&&N.hasOwnProperty.call(e,`default`)&&(r.default=e.default),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),e.setValue!=null&&N.hasOwnProperty.call(e,`setValue`)&&(r.setValue=e.setValue),e.disabled!=null&&N.hasOwnProperty.call(e,`disabled`)&&(r.disabled=e.disabled),e.labelVisibility!=null&&N.hasOwnProperty.call(e,`labelVisibility`)&&(r.labelVisibility=W.LabelVisibility.toObject(e.labelVisibility,t,n+1)),e.step!=null&&N.hasOwnProperty.call(e,`step`)&&(U!==void 0&&t.longs===U?r.step=typeof e.step==`number`?U(e.step):M.Long.fromBits(e.step.low>>>0,e.step.high>>>0,!1).toBigInt():typeof e.step==`number`?r.step=t.longs===L?L(e.step):e.step:r.step=t.longs===L?M.Long.prototype.toString.call(e.step):t.longs===z?new M.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.queryParamKey!=null&&N.hasOwnProperty.call(e,`queryParamKey`)&&(r.queryParamKey=e.queryParamKey),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/TimeInput`},e})(),W.Toast=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.body=``,e.prototype.icon=``,e.prototype.duration=null;let t;return N.defineProperty(e.prototype,`_duration`,{get:M.oneOfGetter(t=[`duration`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.body!=null&&N.hasOwnProperty.call(e,`body`)&&e.body!==``&&t.uint32(10).string(e.body),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&e.icon!==``&&t.uint32(18).string(e.icon),e.duration!=null&&N.hasOwnProperty.call(e,`duration`)&&t.uint32(24).int32(e.duration),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Toast,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.body=s:delete o.body;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.icon=s:delete o.icon;continue;case 3:if(a!==0)break;o.duration=e.int32(),o._duration=`duration`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Toast)return e;if(!M.isObject(e))throw I(`.Toast: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Toast;return e.body!=null&&(typeof e.body!=`string`||e.body.length)&&(n.body=L(e.body)),e.icon!=null&&(typeof e.icon!=`string`||e.icon.length)&&(n.icon=L(e.icon)),e.duration!=null&&(n.duration=e.duration|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.body=``,r.icon=``),e.body!=null&&N.hasOwnProperty.call(e,`body`)&&(r.body=e.body),e.icon!=null&&N.hasOwnProperty.call(e,`icon`)&&(r.icon=e.icon),e.duration!=null&&N.hasOwnProperty.call(e,`duration`)&&(r.duration=e.duration),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Toast`},e})(),W.VegaLiteChart=(()=>{let e=function(e){if(this.datasets=[],this.selectionMode=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.spec=``,e.prototype.data=null,e.prototype.datasets=M.emptyArray,e.prototype.useContainerWidth=!1,e.prototype.theme=``,e.prototype.id=``,e.prototype.selectionMode=M.emptyArray,e.prototype.formId=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.spec!=null&&N.hasOwnProperty.call(e,`spec`)&&e.spec!==``&&t.uint32(10).string(e.spec),e.data!=null&&N.hasOwnProperty.call(e,`data`)&&W.ArrowData.encode(e.data,t.uint32(18).fork(),n+1).ldelim(),e.datasets!=null&&e.datasets.length)for(let r=0;r<e.datasets.length;++r)W.ArrowNamedDataSet.encode(e.datasets[r],t.uint32(34).fork(),n+1).ldelim();if(e.useContainerWidth!=null&&N.hasOwnProperty.call(e,`useContainerWidth`)&&e.useContainerWidth!==!1&&t.uint32(40).bool(e.useContainerWidth),e.theme!=null&&N.hasOwnProperty.call(e,`theme`)&&e.theme!==``&&t.uint32(50).string(e.theme),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length)for(let n=0;n<e.selectionMode.length;++n)t.uint32(66).string(e.selectionMode[n]);if(e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&e.formId!==``&&t.uint32(74).string(e.formId),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.VegaLiteChart,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.spec=s:delete o.spec;continue;case 2:if(a!==2)break;o.data=W.ArrowData.decode(e,e.uint32(),P,r+1,o.data);continue;case 4:if(a!==2)break;o.datasets&&o.datasets.length||(o.datasets=[]),o.datasets.push(W.ArrowNamedDataSet.decode(e,e.uint32(),P,r+1));continue;case 5:if(a!==0)break;(s=e.bool())?o.useContainerWidth=s:delete o.useContainerWidth;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.theme=s:delete o.theme;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 8:if(a!==2)break;o.selectionMode&&o.selectionMode.length||(o.selectionMode=[]),o.selectionMode.push(e.stringVerify());continue;
1case 9:if(a!==2)break;(s=e.stringVerify()).length?o.formId=s:delete o.formId;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.VegaLiteChart)return e;if(!M.isObject(e))throw I(`.VegaLiteChart: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.VegaLiteChart;if(e.spec!=null&&(typeof e.spec!=`string`||e.spec.length)&&(n.spec=L(e.spec)),e.data!=null){if(!M.isObject(e.data))throw I(`.VegaLiteChart.data: object expected`);n.data=W.ArrowData.fromObject(e.data,t+1)}if(e.datasets){if(!V.isArray(e.datasets))throw I(`.VegaLiteChart.datasets: array expected`);n.datasets=V(e.datasets.length);for(let r=0;r<e.datasets.length;++r){if(!M.isObject(e.datasets[r]))throw I(`.VegaLiteChart.datasets: object expected`);n.datasets[r]=W.ArrowNamedDataSet.fromObject(e.datasets[r],t+1)}}if(e.useContainerWidth!=null&&e.useContainerWidth&&(n.useContainerWidth=R(e.useContainerWidth)),e.theme!=null&&(typeof e.theme!=`string`||e.theme.length)&&(n.theme=L(e.theme)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.selectionMode){if(!V.isArray(e.selectionMode))throw I(`.VegaLiteChart.selectionMode: array expected`);n.selectionMode=V(e.selectionMode.length);for(let t=0;t<e.selectionMode.length;++t)n.selectionMode[t]=L(e.selectionMode[t])}return e.formId!=null&&(typeof e.formId!=`string`||e.formId.length)&&(n.formId=L(e.formId)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.datasets=[],r.selectionMode=[]),t.defaults&&(r.spec=``,r.data=null,r.useContainerWidth=!1,r.theme=``,r.id=``,r.formId=``),e.spec!=null&&N.hasOwnProperty.call(e,`spec`)&&(r.spec=e.spec),e.data!=null&&N.hasOwnProperty.call(e,`data`)&&(r.data=W.ArrowData.toObject(e.data,t,n+1)),e.datasets&&e.datasets.length){r.datasets=V(e.datasets.length);for(let i=0;i<e.datasets.length;++i)r.datasets[i]=W.ArrowNamedDataSet.toObject(e.datasets[i],t,n+1)}if(e.useContainerWidth!=null&&N.hasOwnProperty.call(e,`useContainerWidth`)&&(r.useContainerWidth=e.useContainerWidth),e.theme!=null&&N.hasOwnProperty.call(e,`theme`)&&(r.theme=e.theme),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.selectionMode&&e.selectionMode.length){r.selectionMode=V(e.selectionMode.length);for(let t=0;t<e.selectionMode.length;++t)r.selectionMode[t]=e.selectionMode[t]}return e.formId!=null&&N.hasOwnProperty.call(e,`formId`)&&(r.formId=e.formId),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/VegaLiteChart`},e})(),W.SubtitleTrack=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.label=``,e.prototype.url=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(10).string(e.label),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(18).string(e.url),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.SubtitleTrack,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.SubtitleTrack)return e;if(!M.isObject(e))throw I(`.SubtitleTrack: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.SubtitleTrack;return e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.label=``,r.url=``),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/SubtitleTrack`},e})();
1var Ce=W.Video=(()=>{let e=function(e){if(this.subtitles=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.url=``,e.prototype.startTime=0,e.prototype.type=0,e.prototype.subtitles=M.emptyArray,e.prototype.endTime=0,e.prototype.loop=!1,e.prototype.autoplay=!1,e.prototype.muted=!1,e.prototype.id=``,e.prototype.widthConfig=null;let t;return N.defineProperty(e.prototype,`_widthConfig`,{get:M.oneOfGetter(t=[`widthConfig`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.startTime!=null&&N.hasOwnProperty.call(e,`startTime`)&&e.startTime!==0&&t.uint32(24).int32(e.startTime),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==0&&t.uint32(40).int32(e.type),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(50).string(e.url),e.subtitles!=null&&e.subtitles.length)for(let r=0;r<e.subtitles.length;++r)W.SubtitleTrack.encode(e.subtitles[r],t.uint32(58).fork(),n+1).ldelim();if(e.endTime!=null&&N.hasOwnProperty.call(e,`endTime`)&&e.endTime!==0&&t.uint32(64).int32(e.endTime),e.loop!=null&&N.hasOwnProperty.call(e,`loop`)&&e.loop!==!1&&t.uint32(72).bool(e.loop),e.autoplay!=null&&N.hasOwnProperty.call(e,`autoplay`)&&e.autoplay!==!1&&t.uint32(80).bool(e.autoplay),e.muted!=null&&N.hasOwnProperty.call(e,`muted`)&&e.muted!==!1&&t.uint32(88).bool(e.muted),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&e.id!==``&&t.uint32(98).string(e.id),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&W.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(106).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Video,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 6:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue;case 3:if(a!==0)break;(s=e.int32())?o.startTime=s:delete o.startTime;continue;case 5:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 7:if(a!==2)break;o.subtitles&&o.subtitles.length||(o.subtitles=[]),o.subtitles.push(W.SubtitleTrack.decode(e,e.uint32(),P,r+1));continue;case 8:if(a!==0)break;(s=e.int32())?o.endTime=s:delete o.endTime;continue;case 9:if(a!==0)break;(s=e.bool())?o.loop=s:delete o.loop;continue;case 10:if(a!==0)break;(s=e.bool())?o.autoplay=s:delete o.autoplay;continue;case 11:if(a!==0)break;(s=e.bool())?o.muted=s:delete o.muted;continue;case 12:if(a!==2)break;(s=e.stringVerify()).length?o.id=s:delete o.id;continue;case 13:if(a!==2)break;o.widthConfig=W.streamlit.WidthConfig.decode(e,e.uint32(),P,r+1,o.widthConfig),o._widthConfig=`widthConfig`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Video)return e;if(!M.isObject(e))throw I(`.Video: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Video;if(e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),e.startTime!=null&&z(e.startTime)!==0&&(n.startTime=e.startTime|0),e.type!==0&&(typeof e.type!=`string`||W.Video.Type[e.type]!==0))switch(e.type){case`UNUSED`:case 0:n.type=0;break;case`NATIVE`:case 1:n.type=1;break;case`YOUTUBE_IFRAME`:case 2:n.type=2;break;default:typeof e.type==`number`&&(e.type|0)===e.type&&(n.type=e.type)}if(e.subtitles){if(!V.isArray(e.subtitles))throw I(`.Video.subtitles: array expected`);n.subtitles=V(e.subtitles.length);for(let r=0;r<e.subtitles.length;++r){if(!M.isObject(e.subtitles[r]))throw I(`.Video.subtitles: object expected`);n.subtitles[r]=W.SubtitleTrack.fromObject(e.subtitles[r],t+1)}}if(e.endTime!=null&&z(e.endTime)!==0&&(n.endTime=e.endTime|0),e.loop!=null&&e.loop&&(n.loop=R(e.loop)),e.autoplay!=null&&e.autoplay&&(n.autoplay=R(e.autoplay)),e.muted!=null&&e.muted&&(n.muted=R(e.muted)),e.id!=null&&(typeof e.id!=`string`||e.id.length)&&(n.id=L(e.id)),e.widthConfig!=null){if(!M.isObject(e.widthConfig))throw I(`.Video.widthConfig: object expected`);n.widthConfig=W.streamlit.WidthConfig.fromObject(e.widthConfig,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.subtitles=[]),t.defaults&&(r.startTime=0,r.type=t.enums===L?`UNUSED`:0,r.url=``,r.endTime=0,r.loop=!1,r.autoplay=!1,r.muted=!1,r.id=``),e.startTime!=null&&N.hasOwnProperty.call(e,`startTime`)&&(r.startTime=e.startTime),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=t.enums===L?W.Video.Type[e.type]===P?e.type:W.Video.Type[e.type]:e.type),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),e.subtitles&&e.subtitles.length){r.subtitles=V(e.subt
1itles.length);for(let i=0;i<e.subtitles.length;++i)r.subtitles[i]=W.SubtitleTrack.toObject(e.subtitles[i],t,n+1)}return e.endTime!=null&&N.hasOwnProperty.call(e,`endTime`)&&(r.endTime=e.endTime),e.loop!=null&&N.hasOwnProperty.call(e,`loop`)&&(r.loop=e.loop),e.autoplay!=null&&N.hasOwnProperty.call(e,`autoplay`)&&(r.autoplay=e.autoplay),e.muted!=null&&N.hasOwnProperty.call(e,`muted`)&&(r.muted=e.muted),e.id!=null&&N.hasOwnProperty.call(e,`id`)&&(r.id=e.id),e.widthConfig!=null&&N.hasOwnProperty.call(e,`widthConfig`)&&(r.widthConfig=W.streamlit.WidthConfig.toObject(e.widthConfig,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Video`},e.Type=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`UNUSED`]=0,t[e[1]=`NATIVE`]=1,t[e[2]=`YOUTUBE_IFRAME`]=2,t})(),e})();W.Transient=(()=>{let e=function(e){if(this.elements=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.elements=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.elements!=null&&e.elements.length)for(let r=0;r<e.elements.length;++r)W.Element.encode(e.elements[r],t.uint32(10).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Transient;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.elements&&o.elements.length||(o.elements=[]),o.elements.push(W.Element.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Transient)return e;if(!M.isObject(e))throw I(`.Transient: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Transient;if(e.elements){if(!V.isArray(e.elements))throw I(`.Transient.elements: array expected`);n.elements=V(e.elements.length);for(let r=0;r<e.elements.length;++r){if(!M.isObject(e.elements[r]))throw I(`.Transient.elements: object expected`);n.elements[r]=W.Element.fromObject(e.elements[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.elements=[]),e.elements&&e.elements.length){r.elements=V(e.elements.length);for(let i=0;i<e.elements.length;++i)r.elements[i]=W.Element.toObject(e.elements[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Transient`},e})();var we=W.ForwardMsg=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.hash=``,e.prototype.metadata=null,e.prototype.newSession=null,e.prototype.delta=null,e.prototype.pageInfoChanged=null,e.prototype.pageConfigChanged=null,e.prototype.scriptFinished=null,e.prototype.gitInfoChanged=null,e.prototype.pageProfile=null,e.prototype.sessionStatusChanged=null,e.prototype.sessionEvent=null,e.prototype.navigation=null,e.prototype.pageNotFound=null,e.prototype.fileUrlsResponse=null,e.prototype.autoRerun=null,e.prototype.logo=null,e.prototype.authRedirect=null,e.prototype.parentMessage=null,e.prototype.refHash=null,e.prototype.heartbeatAck=null,e.prototype.backendOperationResponse=null,e.prototype.debugLastBackmsgId=``;let t;return N.defineProperty(e.prototype,`type`,{get:M.oneOfGetter(t=[`newSession`,`delta`,`pageInfoChanged`,`pageConfigChanged`,`scriptFinished`,`gitInfoChanged`,`pageProfile`,`sessionStatusChanged`,`sessionEvent`,`navigation`,`pageNotFound`,`fileUrlsResponse`,`autoRerun`,`logo`,`authRedirect`,`parentMessage`,`refHash`,`heartbeatAck`,`backendOperationResponse`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.hash!=null&&N.hasOwnProperty.call(e,`hash`)&&e.hash!==``&&t.uint32(10).string(e.hash),e.metadata!=null&&N.hasOwnProperty.call(e,`metadata`)&&W.ForwardMsgMetadata.encode(e.metadata,t.uint32(18).fork(),n+1).ldelim(),e.newSession!=null&&N.hasOwnProperty.call(e,`newSession`)&&W.NewSession.encode(e.newSession,t.uint32(34).fork(),n+1).ldelim(),e.delta!=null&&N.hasOwnProperty.call(e,`delta`)&&W.Delta.encode(e.delta,t.uint32(42).fork(),n+1).ldelim(),e.scriptFinished!=null&&N.hasOwnProperty.call(e,`scriptFinished`)&&t.uint32(48).int32(e.scriptFinished),e.sessionStatusChanged!=null&&N.hasOwnProperty.call(e,`sessionStatusChanged`)&&W.SessionStatus.encode(e.sessionStatusChanged,t.uint32(74).fork(),n+1).ldelim(),e.sessionEvent!=null&&N.hasOwnProperty.call(e,`sessionEvent`)&&W.SessionEvent.encode(e.sessionEvent,t.uint32(82).fork(),n+1).ldelim(),e.refHash!=null&&N.hasOwnProperty.call(e,`refHash`)&&t.uint32(90).string(e.refHash),e.pageInfoChanged!=null&&N.hasOwnProperty.call(e,`pageInfoChanged`)&&W.PageInfo.encode(e.pageInfoChanged,t.uint32(98).fork(),n+1).ldelim(),e.pageConfigChanged!=null&&N.hasOwnProperty.call(e,`pageConfigChanged`)&&W.PageConfig.encode(e.page
1ConfigChanged,t.uint32(106).fork(),n+1).ldelim(),e.gitInfoChanged!=null&&N.hasOwnProperty.call(e,`gitInfoChanged`)&&W.GitInfo.encode(e.gitInfoChanged,t.uint32(114).fork(),n+1).ldelim(),e.pageNotFound!=null&&N.hasOwnProperty.call(e,`pageNotFound`)&&W.PageNotFound.encode(e.pageNotFound,t.uint32(122).fork(),n+1).ldelim(),e.debugLastBackmsgId!=null&&N.hasOwnProperty.call(e,`debugLastBackmsgId`)&&e.debugLastBackmsgId!==``&&t.uint32(138).string(e.debugLastBackmsgId),e.pageProfile!=null&&N.hasOwnProperty.call(e,`pageProfile`)&&W.PageProfile.encode(e.pageProfile,t.uint32(146).fork(),n+1).ldelim(),e.fileUrlsResponse!=null&&N.hasOwnProperty.call(e,`fileUrlsResponse`)&&W.FileURLsResponse.encode(e.fileUrlsResponse,t.uint32(154).fork(),n+1).ldelim(),e.parentMessage!=null&&N.hasOwnProperty.call(e,`parentMessage`)&&W.ParentMessage.encode(e.parentMessage,t.uint32(162).fork(),n+1).ldelim(),e.autoRerun!=null&&N.hasOwnProperty.call(e,`autoRerun`)&&W.AutoRerun.encode(e.autoRerun,t.uint32(170).fork(),n+1).ldelim(),e.logo!=null&&N.hasOwnProperty.call(e,`logo`)&&W.Logo.encode(e.logo,t.uint32(178).fork(),n+1).ldelim(),e.navigation!=null&&N.hasOwnProperty.call(e,`navigation`)&&W.Navigation.encode(e.navigation,t.uint32(186).fork(),n+1).ldelim(),e.authRedirect!=null&&N.hasOwnProperty.call(e,`authRedirect`)&&W.AuthRedirect.encode(e.authRedirect,t.uint32(194).fork(),n+1).ldelim(),e.heartbeatAck!=null&&N.hasOwnProperty.call(e,`heartbeatAck`)&&t.uint32(208).bool(e.heartbeatAck),e.backendOperationResponse!=null&&N.hasOwnProperty.call(e,`backendOperationResponse`)&&W.BackendOperationResponse.encode(e.backendOperationResponse,t.uint32(218).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ForwardMsg,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.hash=s:delete o.hash;continue;case 2:if(a!==2)break;o.metadata=W.ForwardMsgMetadata.decode(e,e.uint32(),P,r+1,o.metadata);continue;case 4:if(a!==2)break;o.newSession=W.NewSession.decode(e,e.uint32(),P,r+1,o.newSession),o.type=`newSession`;continue;case 5:if(a!==2)break;o.delta=W.Delta.decode(e,e.uint32(),P,r+1,o.delta),o.type=`delta`;continue;case 12:if(a!==2)break;o.pageInfoChanged=W.PageInfo.decode(e,e.uint32(),P,r+1,o.pageInfoChanged),o.type=`pageInfoChanged`;continue;case 13:if(a!==2)break;o.pageConfigChanged=W.PageConfig.decode(e,e.uint32(),P,r+1,o.pageConfigChanged),o.type=`pageConfigChanged`;continue;case 6:if(a!==0)break;o.scriptFinished=e.int32(),o.type=`scriptFinished`;continue;case 14:if(a!==2)break;o.gitInfoChanged=W.GitInfo.decode(e,e.uint32(),P,r+1,o.gitInfoChanged),o.type=`gitInfoChanged`;continue;case 18:if(a!==2)break;o.pageProfile=W.PageProfile.decode(e,e.uint32(),P,r+1,o.pageProfile),o.type=`pageProfile`;continue;case 9:if(a!==2)break;o.sessionStatusChanged=W.SessionStatus.decode(e,e.uint32(),P,r+1,o.sessionStatusChanged),o.type=`sessionStatusChanged`;continue;case 10:if(a!==2)break;o.sessionEvent=W.SessionEvent.decode(e,e.uint32(),P,r+1,o.sessionEvent),o.type=`sessionEvent`;continue;case 23:if(a!==2)break;o.navigation=W.Navigation.decode(e,e.uint32(),P,r+1,o.navigation),o.type=`navigation`;continue;case 15:if(a!==2)break;o.pageNotFound=W.PageNotFound.decode(e,e.uint32(),P,r+1,o.pageNotFound),o.type=`pageNotFound`;continue;case 19:if(a!==2)break;o.fileUrlsResponse=W.FileURLsResponse.decode(e,e.uint32(),P,r+1,o.fileUrlsResponse),o.type=`fileUrlsResponse`;continue;case 21:if(a!==2)break;o.autoRerun=W.AutoRerun.decode(e,e.uint32(),P,r+1,o.autoRerun),o.type=`autoRerun`;continue;case 22:if(a!==2)break;o.logo=W.Logo.decode(e,e.uint32(),P,r+1,o.logo),o.type=`logo`;continue;case 24:if(a!==2)break;o.authRedirect=W.AuthRedirect.decode(e,e.uint32(),P,r+1,o.authRedirect),o.type=`authRedirect`;continue;case 20:if(a!==2)break;o.parentMessage=W.ParentMessage.decode(e,e.uint32(),P,r+1,o.parentMessage),o.type=`parentMessage`;continue;case 11:if(a!==2)break;o.refHash=e.stringVerify(),o.type=`refHash`;continue;case 26:if(a!==0)break;o.heartbeatAck=e.bool(),o.type=`heartbeatAck`;continue;case 27:if(a!==2)break;o.backendOperationResponse=W.BackendOperationResponse.decode(e,e.uint32(),P,r+1,o.backendOperationResponse),o.type=`backendOperationResponse`;
1continue;case 17:if(a!==2)break;(s=e.stringVerify()).length?o.debugLastBackmsgId=s:delete o.debugLastBackmsgId;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ForwardMsg)return e;if(!M.isObject(e))throw I(`.ForwardMsg: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ForwardMsg;if(e.hash!=null&&(typeof e.hash!=`string`||e.hash.length)&&(n.hash=L(e.hash)),e.metadata!=null){if(!M.isObject(e.metadata))throw I(`.ForwardMsg.metadata: object expected`);n.metadata=W.ForwardMsgMetadata.fromObject(e.metadata,t+1)}if(e.newSession!=null){if(!M.isObject(e.newSession))throw I(`.ForwardMsg.newSession: object expected`);n.newSession=W.NewSession.fromObject(e.newSession,t+1)}if(e.delta!=null){if(!M.isObject(e.delta))throw I(`.ForwardMsg.delta: object expected`);n.delta=W.Delta.fromObject(e.delta,t+1)}if(e.pageInfoChanged!=null){if(!M.isObject(e.pageInfoChanged))throw I(`.ForwardMsg.pageInfoChanged: object expected`);n.pageInfoChanged=W.PageInfo.fromObject(e.pageInfoChanged,t+1)}if(e.pageConfigChanged!=null){if(!M.isObject(e.pageConfigChanged))throw I(`.ForwardMsg.pageConfigChanged: object expected`);n.pageConfigChanged=W.PageConfig.fromObject(e.pageConfigChanged,t+1)}switch(e.scriptFinished){case`FINISHED_SUCCESSFULLY`:case 0:n.scriptFinished=0;break;case`FINISHED_WITH_COMPILE_ERROR`:case 1:n.scriptFinished=1;break;case`FINISHED_EARLY_FOR_RERUN`:case 2:n.scriptFinished=2;break;case`FINISHED_FRAGMENT_RUN_SUCCESSFULLY`:case 3:n.scriptFinished=3;break;default:typeof e.scriptFinished==`number`&&(e.scriptFinished|0)===e.scriptFinished&&(n.scriptFinished=e.scriptFinished)}if(e.gitInfoChanged!=null){if(!M.isObject(e.gitInfoChanged))throw I(`.ForwardMsg.gitInfoChanged: object expected`);n.gitInfoChanged=W.GitInfo.fromObject(e.gitInfoChanged,t+1)}if(e.pageProfile!=null){if(!M.isObject(e.pageProfile))throw I(`.ForwardMsg.pageProfile: object expected`);n.pageProfile=W.PageProfile.fromObject(e.pageProfile,t+1)}if(e.sessionStatusChanged!=null){if(!M.isObject(e.sessionStatusChanged))throw I(`.ForwardMsg.sessionStatusChanged: object expected`);n.sessionStatusChanged=W.SessionStatus.fromObject(e.sessionStatusChanged,t+1)}if(e.sessionEvent!=null){if(!M.isObject(e.sessionEvent))throw I(`.ForwardMsg.sessionEvent: object expected`);n.sessionEvent=W.SessionEvent.fromObject(e.sessionEvent,t+1)}if(e.navigation!=null){if(!M.isObject(e.navigation))throw I(`.ForwardMsg.navigation: object expected`);n.navigation=W.Navigation.fromObject(e.navigation,t+1)}if(e.pageNotFound!=null){if(!M.isObject(e.pageNotFound))throw I(`.ForwardMsg.pageNotFound: object expected`);n.pageNotFound=W.PageNotFound.fromObject(e.pageNotFound,t+1)}if(e.fileUrlsResponse!=null){if(!M.isObject(e.fileUrlsResponse))throw I(`.ForwardMsg.fileUrlsResponse: object expected`);n.fileUrlsResponse=W.FileURLsResponse.fromObject(e.fileUrlsResponse,t+1)}if(e.autoRerun!=null){if(!M.isObject(e.autoRerun))throw I(`.ForwardMsg.autoRerun: object expected`);n.autoRerun=W.AutoRerun.fromObject(e.autoRerun,t+1)}if(e.logo!=null){if(!M.isObject(e.logo))throw I(`.ForwardMsg.logo: object expected`);n.logo=W.Logo.fromObject(e.logo,t+1)}if(e.authRedirect!=null){if(!M.isObject(e.authRedirect))throw I(`.ForwardMsg.authRedirect: object expected`);n.authRedirect=W.AuthRedirect.fromObject(e.authRedirect,t+1)}if(e.parentMessage!=null){if(!M.isObject(e.parentMessage))throw I(`.ForwardMsg.parentMessage: object expected`);n.parentMessage=W.ParentMessage.fromObject(e.parentMessage,t+1)}if(e.refHash!=null&&(n.refHash=L(e.refHash)),e.heartbeatAck!=null&&(n.heartbeatAck=R(e.heartbeatAck)),e.backendOperationResponse!=null){if(!M.isObject(e.backendOperationResponse))throw I(`.ForwardMsg.backendOperationResponse: object expected`);n.backendOperationResponse=W.BackendOperationResponse.fromObject(e.backendOperationResponse,t+1)}return e.debugLastBackmsgId!=null&&(typeof e.debugLastBackmsgId!=`string`||e.debugLastBackmsgId.length)&&(n.debugLastBackmsgId=L(e.debugLastBackmsgId)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.hash=``,r.metadata=null,r.debugLastBackmsgId=``),e.hash!=null&&N.hasOwnProperty.call(e,`hash`)&&(r.hash=e.hash),e.metadata!=null&&N.hasOwnProperty.call(e,`metadata`)&&(r.metadata=W.ForwardMsgMetadata.toObject(e.metadata,t,n+1)),e.newSession!=null&&N.hasOwnProperty.call(e,`newSession`)&&(r.newSession=W.NewSession.toObject(e.newSession,t,n+1),t.oneofs&&(r.type=`newSession`)),e.delta!=null&&N.hasOwnProperty.call(e,`delta`)&&(r.delta=W.Delta.toObject(e.delta,t,n+1),t.oneofs&&(r.type=`delta`)),e.scriptFinished!=null&&N.hasOwnProperty.call(e,`scriptFinished`)&&(r.scriptFinished=t.enums===L?W.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]===P?e.scriptFinished:W.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]:e.scriptFinished,t.oneofs&&(r.type=`scriptFinished`)),e.sessionStatusChanged!=null&&N.hasOwnProperty.call(e,`sessionStatusChanged`)&&(r.sessionStatusChanged=W.SessionStatus.toObject(e.sessionStatusChanged,t,n+1),t.oneofs&&(r.type=`sessionStatusChanged`)),e.sessionEvent!=null&&N.hasOwnProperty.call(e,`sessionEvent`)&&(r.sessionEvent=W.SessionEvent.toObject(e.sessionEvent,t,n+1),t.oneofs&&(r.type=`sessionEvent`)),e.refHash!=null&&N.hasOwnProperty.call(e,`refHash`)&&(r.refHash=e.refHash,t.oneofs&&(r.type=`refHash`)),e.pageInfoChanged!=null&&N.hasOwnProperty.call(e,`pageInfoChanged`)&&(r.pageInfoChanged=W.PageInfo.toObject(e.pageInfoChanged,t,n+1),t.oneofs&&(r.type=`pageInfoChanged`)),e.pageConfigChanged!=null&&N.hasOwnProperty.call(e,`pageConfigChanged`)&&(r.pageConfigChanged=W.PageConfig.toObject(e.pageConfigChanged,t,n+1),t.oneofs&&(r.type=`pageConfigChanged`)),e.gitInfoChanged!=null&&N.hasOwnProperty.call(e,`gitInfoChanged`)&&(r.gitInfoChanged=W.GitInfo.toObject(e.gitInfoChanged,t,n+1),t.oneofs&&(r.type=`gitInfoChanged`)),e.pageNotFound!=null&&N.hasOwnProperty.call(e,`pageNotFound`)&&(r.pageNotFound=W.PageNotFound.toObject(e.pageNotFound,t,n+1),t.oneofs&&(r.type=`pageNotFound`)),e.debugL
1astBackmsgId!=null&&N.hasOwnProperty.call(e,`debugLastBackmsgId`)&&(r.debugLastBackmsgId=e.debugLastBackmsgId),e.pageProfile!=null&&N.hasOwnProperty.call(e,`pageProfile`)&&(r.pageProfile=W.PageProfile.toObject(e.pageProfile,t,n+1),t.oneofs&&(r.type=`pageProfile`)),e.fileUrlsResponse!=null&&N.hasOwnProperty.call(e,`fileUrlsResponse`)&&(r.fileUrlsResponse=W.FileURLsResponse.toObject(e.fileUrlsResponse,t,n+1),t.oneofs&&(r.type=`fileUrlsResponse`)),e.parentMessage!=null&&N.hasOwnProperty.call(e,`parentMessage`)&&(r.parentMessage=W.ParentMessage.toObject(e.parentMessage,t,n+1),t.oneofs&&(r.type=`parentMessage`)),e.autoRerun!=null&&N.hasOwnProperty.call(e,`autoRerun`)&&(r.autoRerun=W.AutoRerun.toObject(e.autoRerun,t,n+1),t.oneofs&&(r.type=`autoRerun`)),e.logo!=null&&N.hasOwnProperty.call(e,`logo`)&&(r.logo=W.Logo.toObject(e.logo,t,n+1),t.oneofs&&(r.type=`logo`)),e.navigation!=null&&N.hasOwnProperty.call(e,`navigation`)&&(r.navigation=W.Navigation.toObject(e.navigation,t,n+1),t.oneofs&&(r.type=`navigation`)),e.authRedirect!=null&&N.hasOwnProperty.call(e,`authRedirect`)&&(r.authRedirect=W.AuthRedirect.toObject(e.authRedirect,t,n+1),t.oneofs&&(r.type=`authRedirect`)),e.heartbeatAck!=null&&N.hasOwnProperty.call(e,`heartbeatAck`)&&(r.heartbeatAck=e.heartbeatAck,t.oneofs&&(r.type=`heartbeatAck`)),e.backendOperationResponse!=null&&N.hasOwnProperty.call(e,`backendOperationResponse`)&&(r.backendOperationResponse=W.BackendOperationResponse.toObject(e.backendOperationResponse,t,n+1),t.oneofs&&(r.type=`backendOperationResponse`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ForwardMsg`},e.ScriptFinishedStatus=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`FINISHED_SUCCESSFULLY`]=0,t[e[1]=`FINISHED_WITH_COMPILE_ERROR`]=1,t[e[2]=`FINISHED_EARLY_FOR_RERUN`]=2,t[e[3]=`FINISHED_FRAGMENT_RUN_SUCCESSFULLY`]=3,t})(),e})();W.BackendOperationResponse=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.requestId=``,e.prototype.errorMsg=``,e.prototype.deferredFile=null,e.prototype.installSkills=null,e.prototype.dismissSkillsNudge=null;let t;return N.defineProperty(e.prototype,`payload`,{get:M.oneOfGetter(t=[`deferredFile`,`installSkills`,`dismissSkillsNudge`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.requestId!=null&&N.hasOwnProperty.call(e,`requestId`)&&e.requestId!==``&&t.uint32(10).string(e.requestId),e.errorMsg!=null&&N.hasOwnProperty.call(e,`errorMsg`)&&e.errorMsg!==``&&t.uint32(18).string(e.errorMsg),e.deferredFile!=null&&N.hasOwnProperty.call(e,`deferredFile`)&&W.DeferredFileResponsePayload.encode(e.deferredFile,t.uint32(26).fork(),n+1).ldelim(),e.installSkills!=null&&N.hasOwnProperty.call(e,`installSkills`)&&W.InstallSkillsResponsePayload.encode(e.installSkills,t.uint32(34).fork(),n+1).ldelim(),e.dismissSkillsNudge!=null&&N.hasOwnProperty.call(e,`dismissSkillsNudge`)&&W.DismissSkillsNudgeResponsePayload.encode(e.dismissSkillsNudge,t.uint32(42).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.BackendOperationResponse,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.requestId=s:delete o.requestId;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.errorMsg=s:delete o.errorMsg;continue;case 3:if(a!==2)break;o.deferredFile=W.DeferredFileResponsePayload.decode(e,e.uint32(),P,r+1,o.deferredFile),o.payload=`deferredFile`;continue;case 4:if(a!==2)break;o.installSkills=W.InstallSkillsResponsePayload.decode(e,e.uint32(),P,r+1,o.installSkills),o.payload=`installSkills`;continue;case 5:if(a!==2)break;o.dismissSkillsNudge=W.DismissSkillsNudgeResponsePayload.decode(e,e.uint32(),P,r+1,o.dismissSkillsNudge),o.payload=`dismissSkillsNudge`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.BackendOperationResponse)return e;if(!M.isObject(e))throw I(`.BackendOperationResponse: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.BackendOperationResponse;if(e.requestId!=null&&(typeof e.requestId!=`string`||e.requestId.length)&&(n.requestId=L(e.requestId)),e.errorMsg!=null&&(typeof e.errorMsg!=`string`||e.errorMsg.length)&&(n.errorMsg=L(e.errorMsg)),e.deferredFile!=null){if(!M.isObject(e.deferredFile))throw I(`.BackendOperationResponse.deferredFile: object expected`);n.deferredFile=W.DeferredFileResponsePayload.fromObject(e.deferredFile,t+1)}if(e.installSkills!=null){if(!M.isObject(e.installSkills))throw I(`.BackendOperationResponse.installSkills: object expected`);n.installSkills=W.InstallSkillsResponsePayload.fromObject(e.installSkills,t+1)}if(e.dismissSkillsNudge!=null){if(!M.isObject(e.dismissSkillsNudge))throw I(`.BackendOperationResponse.dismissSkillsNudge: object expected`);
1n.dismissSkillsNudge=W.DismissSkillsNudgeResponsePayload.fromObject(e.dismissSkillsNudge,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.requestId=``,r.errorMsg=``),e.requestId!=null&&N.hasOwnProperty.call(e,`requestId`)&&(r.requestId=e.requestId),e.errorMsg!=null&&N.hasOwnProperty.call(e,`errorMsg`)&&(r.errorMsg=e.errorMsg),e.deferredFile!=null&&N.hasOwnProperty.call(e,`deferredFile`)&&(r.deferredFile=W.DeferredFileResponsePayload.toObject(e.deferredFile,t,n+1),t.oneofs&&(r.payload=`deferredFile`)),e.installSkills!=null&&N.hasOwnProperty.call(e,`installSkills`)&&(r.installSkills=W.InstallSkillsResponsePayload.toObject(e.installSkills,t,n+1),t.oneofs&&(r.payload=`installSkills`)),e.dismissSkillsNudge!=null&&N.hasOwnProperty.call(e,`dismissSkillsNudge`)&&(r.dismissSkillsNudge=W.DismissSkillsNudgeResponsePayload.toObject(e.dismissSkillsNudge,t,n+1),t.oneofs&&(r.payload=`dismissSkillsNudge`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/BackendOperationResponse`},e})(),W.DeferredFileResponsePayload=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.url=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(10).string(e.url),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DeferredFileResponsePayload,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DeferredFileResponsePayload)return e;if(!M.isObject(e))throw I(`.DeferredFileResponsePayload: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.DeferredFileResponsePayload;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.url=``),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DeferredFileResponsePayload`},e})(),W.InstallSkillsResponsePayload=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.detail=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.detail!=null&&N.hasOwnProperty.call(e,`detail`)&&e.detail!==``&&t.uint32(10).string(e.detail),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.InstallSkillsResponsePayload,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.detail=s:delete o.detail;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.InstallSkillsResponsePayload)return e;if(!M.isObject(e))throw I(`.InstallSkillsResponsePayload: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.InstallSkillsResponsePayload;return e.detail!=null&&(typeof e.detail!=`string`||e.detail.length)&&(n.detail=L(e.detail)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.detail=``),e.detail!=null&&N.hasOwnProperty.call(e,`detail`)&&(r.detail=e.detail),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/InstallSkillsResponsePayload`},e})(),W.DismissSkillsNudgeResponsePayload=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.DismissSkillsNudgeResponsePayload;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}e.skipType(i&7,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.DismissSkillsNudgeResponsePayload)return e;if(!M.isObject(e))throw I(`.DismissSkillsNudgeResponsePayload: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);return new W.DismissSkillsNudgeResponsePayload},e.toObject=function(){return{}},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/DismissSkillsNudgeResponsePayload`},e})();var Te=W.ForwardMsgMetadata=(()=>{let e=function(e){if(this.deltaPath=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.cacheable=!1,e.prototype.deltaPath=M.emptyArray,e.prototype.activeScriptHash=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);
1if(e.cacheable!=null&&N.hasOwnProperty.call(e,`cacheable`)&&e.cacheable!==!1&&t.uint32(8).bool(e.cacheable),e.deltaPath!=null&&e.deltaPath.length){t.uint32(18).fork();for(let n=0;n<e.deltaPath.length;++n)t.uint32(e.deltaPath[n]);t.ldelim()}if(e.activeScriptHash!=null&&N.hasOwnProperty.call(e,`activeScriptHash`)&&e.activeScriptHash!==``&&t.uint32(34).string(e.activeScriptHash),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ForwardMsgMetadata,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.cacheable=s:delete o.cacheable;continue;case 2:if(a===2){o.deltaPath&&o.deltaPath.length||(o.deltaPath=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.deltaPath.push(e.uint32());continue}if(a!==0)break;o.deltaPath&&o.deltaPath.length||(o.deltaPath=[]),o.deltaPath.push(e.uint32());continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.activeScriptHash=s:delete o.activeScriptHash;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ForwardMsgMetadata)return e;if(!M.isObject(e))throw I(`.ForwardMsgMetadata: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ForwardMsgMetadata;if(e.cacheable!=null&&e.cacheable&&(n.cacheable=R(e.cacheable)),e.deltaPath){if(!V.isArray(e.deltaPath))throw I(`.ForwardMsgMetadata.deltaPath: array expected`);n.deltaPath=V(e.deltaPath.length);for(let t=0;t<e.deltaPath.length;++t)n.deltaPath[t]=e.deltaPath[t]>>>0}return e.activeScriptHash!=null&&(typeof e.activeScriptHash!=`string`||e.activeScriptHash.length)&&(n.activeScriptHash=L(e.activeScriptHash)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.deltaPath=[]),t.defaults&&(r.cacheable=!1,r.activeScriptHash=``),e.cacheable!=null&&N.hasOwnProperty.call(e,`cacheable`)&&(r.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){r.deltaPath=V(e.deltaPath.length);for(let t=0;t<e.deltaPath.length;++t)r.deltaPath[t]=e.deltaPath[t]}return e.activeScriptHash!=null&&N.hasOwnProperty.call(e,`activeScriptHash`)&&(r.activeScriptHash=e.activeScriptHash),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ForwardMsgMetadata`},e})(),Ee=W.ForwardMsgList=(()=>{let e=function(e){if(this.messages=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.messages=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.messages!=null&&e.messages.length)for(let r=0;r<e.messages.length;++r)W.ForwardMsg.encode(e.messages[r],t.uint32(10).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ForwardMsgList;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.messages&&o.messages.length||(o.messages=[]),o.messages.push(W.ForwardMsg.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ForwardMsgList)return e;if(!M.isObject(e))throw I(`.ForwardMsgList: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ForwardMsgList;if(e.messages){if(!V.isArray(e.messages))throw I(`.ForwardMsgList.messages: array expected`);n.messages=V(e.messages.length);for(let r=0;r<e.messages.length;++r){if(!M.isObject(e.messages[r]))throw I(`.ForwardMsgList.messages: object expected`);n.messages[r]=W.ForwardMsg.fromObject(e.messages[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.messages=[]),e.messages&&e.messages.length){r.messages=V(e.messages.length);for(let i=0;i<e.messages.length;++i)r.messages[i]=W.ForwardMsg.toObject(e.messages[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ForwardMsgList`},e})(),De=W.GitInfo=(()=>{let e=function(e){if(this.untrackedFiles=[],this.uncommittedFiles=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.repository=``,e.prototype.branch=``,e.prototype.module=``,e.prototype.untrackedFiles=M.emptyArray,e.prototype.uncommittedFiles=M.emptyArray,e.prototype.state=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.repository!=null&&N.hasOwnProperty.call(e,`repository`)&&e.repository!==``&&t.uint32(10).string(e.repository),e.branch!=null&&N.hasOwnProperty.call(e,`branch`)&&e.branch!==``&&t.uint32(18).string(e.branch),e.module!=null&&N.hasOwnProperty.call(e,`module`)&&e.module!==``&&t.uint32(26).string(e.module),e.untrackedFiles!=null&&e.untrackedFiles.length)for(let n=0;n<e.untrackedFiles.length;++n)t.uint32(34).string(e.untrackedFiles[n]);if(e.uncommittedFiles!=null&&e.uncommittedFiles.length)for(let n=0;n<e.uncommittedFiles.length;++n)t.uint32(42).string(e.uncommittedFiles[n]);if(e.state!=null&&N.hasOwnProperty.call(e,`state`)&&e.state!==0&&t.uint32(48).int32(e.state),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.GitInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.repository=s:delete o.repository;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.branch=s:delete o.branch;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.module=s:delete o.module;continue;case 4:if(a!==2)break;o.untrackedFiles&&o.untrackedFiles.length||(o.untrackedFiles=[]),o.untrackedFiles.push(e.stringVerify());continue;case 5:if(a!==2)break;o.uncommittedFiles&&o.uncommittedFiles.length||(o.uncommittedFiles=[]),o.uncommittedFiles.push(e.stringVerify());continue;case 6:if(a!==0)break;(s=e.int32())?o.state=s:delete o.state;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.GitInfo)return e;if(!M.isObject(e))throw I(`.GitInfo: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.GitInfo;if(e.repository!=null&&(typeof e.repository!=`string`||e.repository.length)&&(n.repository=L(e.repository)
1),e.branch!=null&&(typeof e.branch!=`string`||e.branch.length)&&(n.branch=L(e.branch)),e.module!=null&&(typeof e.module!=`string`||e.module.length)&&(n.module=L(e.module)),e.untrackedFiles){if(!V.isArray(e.untrackedFiles))throw I(`.GitInfo.untrackedFiles: array expected`);n.untrackedFiles=V(e.untrackedFiles.length);for(let t=0;t<e.untrackedFiles.length;++t)n.untrackedFiles[t]=L(e.untrackedFiles[t])}if(e.uncommittedFiles){if(!V.isArray(e.uncommittedFiles))throw I(`.GitInfo.uncommittedFiles: array expected`);n.uncommittedFiles=V(e.uncommittedFiles.length);for(let t=0;t<e.uncommittedFiles.length;++t)n.uncommittedFiles[t]=L(e.uncommittedFiles[t])}if(e.state!==0&&(typeof e.state!=`string`||W.GitInfo.GitStates[e.state]!==0))switch(e.state){case`DEFAULT`:case 0:n.state=0;break;case`HEAD_DETACHED`:case 1:n.state=1;break;case`AHEAD_OF_REMOTE`:case 2:n.state=2;break;default:typeof e.state==`number`&&(e.state|0)===e.state&&(n.state=e.state)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.untrackedFiles=[],r.uncommittedFiles=[]),t.defaults&&(r.repository=``,r.branch=``,r.module=``,r.state=t.enums===L?`DEFAULT`:0),e.repository!=null&&N.hasOwnProperty.call(e,`repository`)&&(r.repository=e.repository),e.branch!=null&&N.hasOwnProperty.call(e,`branch`)&&(r.branch=e.branch),e.module!=null&&N.hasOwnProperty.call(e,`module`)&&(r.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){r.untrackedFiles=V(e.untrackedFiles.length);for(let t=0;t<e.untrackedFiles.length;++t)r.untrackedFiles[t]=e.untrackedFiles[t]}if(e.uncommittedFiles&&e.uncommittedFiles.length){r.uncommittedFiles=V(e.uncommittedFiles.length);for(let t=0;t<e.uncommittedFiles.length;++t)r.uncommittedFiles[t]=e.uncommittedFiles[t]}return e.state!=null&&N.hasOwnProperty.call(e,`state`)&&(r.state=t.enums===L?W.GitInfo.GitStates[e.state]===P?e.state:W.GitInfo.GitStates[e.state]:e.state),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/GitInfo`},e.GitStates=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`DEFAULT`]=0,t[e[1]=`HEAD_DETACHED`]=1,t[e[2]=`AHEAD_OF_REMOTE`]=2,t})(),e})(),$=W.Logo=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.image=``,e.prototype.link=``,e.prototype.iconImage=``,e.prototype.size=``,e.prototype.imageType=0,e.prototype.iconImageType=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.image!=null&&N.hasOwnProperty.call(e,`image`)&&e.image!==``&&t.uint32(10).string(e.image),e.link!=null&&N.hasOwnProperty.call(e,`link`)&&e.link!==``&&t.uint32(18).string(e.link),e.iconImage!=null&&N.hasOwnProperty.call(e,`iconImage`)&&e.iconImage!==``&&t.uint32(26).string(e.iconImage),e.size!=null&&N.hasOwnProperty.call(e,`size`)&&e.size!==``&&t.uint32(34).string(e.size),e.imageType!=null&&N.hasOwnProperty.call(e,`imageType`)&&e.imageType!==0&&t.uint32(40).int32(e.imageType),e.iconImageType!=null&&N.hasOwnProperty.call(e,`iconImageType`)&&e.iconImageType!==0&&t.uint32(48).int32(e.iconImageType),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Logo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.image=s:delete o.image;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.link=s:delete o.link;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.iconImage=s:delete o.iconImage;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.size=s:delete o.size;continue;case 5:if(a!==0)break;(s=e.int32())?o.imageType=s:delete o.imageType;continue;case 6:if(a!==0)break;(s=e.int32())?o.iconImageType=s:delete o.iconImageType;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Logo)return e;if(!M.isObject(e))throw I(`.Logo: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Logo;if(e.image!=null&&(typeof e.image!=`string`||e.image.length)&&(n.image=L(e.image)),e.link!=null&&(typeof e.link!=`string`||e.link.length)&&(n.link=L(e.link)),e.iconImage!=null&&(typeof e.iconImage!=`string`||e.iconImage.length)&&(n.iconImage=L(e.iconImage)),e.size!=null&&(typeof e.size!=`string`||e.size.length)&&(n.size=L(e.size)),e.imageType!==0&&(typeof e.imageType!=`string`||W.Logo.ImageType[e.imageType]!==0))switch(e.imageType){case`IMAGE`:case 0:n.imageType=0;break;case`EMOJI`:case 1:n.imageType=1;break;case`ICON`:case 2:n.imageType=2;break;default:typeof e.imageType==`number`&&(e.imageType|0)===e.imageType&&(n.imageType=e.imageType)}if(e.iconImageType!==0&&(typeof e.iconImageType!=`string`||W.Logo.ImageType[e.iconImageType]!==0))switch(e.iconImageType){case`IMAGE`:case 0:n.iconImageType=0;break;case`EMOJI`:case 1:n.iconImageType=1;break;case`ICON`:case 2:n.iconImageType=2;break;default:typeof e.iconImageType==`number`&&(e.iconImageType|0)===e.iconImageType&&(n.iconImageType=e.iconImageType)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.image=``,r.link=``,r.iconImage=``,r.size=``,r.imageType=t.enums===L?`IMAGE`:0,r.iconImageType=t.enums===L?`IMAGE`:0),e.image!=null&&N.hasOwnProperty.call(e,`image`)&&(r.image=e.image),e.link!=null&&N.hasOwnProperty.call(e,`link`)&&(r.link=e.link),e.iconImage!=null&&N.hasOwnProperty.call(e,`iconImage`)&&(r.iconImage=e.iconImage),e.size!=null&&N.hasOwnProperty.call(e,`size`)&&(r.size=e.size),e.imageType!=null&&N.hasOwnProperty.call(e,`imageType`)&&(r.imageType=t.enums===L?W.Logo.ImageType[e.imageType]===P?e.imageType:W.Logo.ImageType[e.imageType]:e.imageType),e.iconImageType!=null&&N.hasOwnProperty.call(e,`iconImageType`)&&(r.iconImageType=t.enums===L?W.Logo.ImageType[e.iconImageType]===P?e.iconImageType:W.Logo.ImageType[e.iconImageType]:e.iconImageType),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Logo`},e.ImageType=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`IMAGE`]=0,t[e[1]=`EMOJI`]=1,t[e[2]=`ICON`]=2,t})(),e})(),Oe=W.Navigation=(()=>{let e=function(e){if(this.sections=[],this.appPages=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.sections=M.emptyArray,e.prototype.appPages=M.emptyArray,e.prototype.position=0,e.prototype.pageScriptHash=``,e.prototype.expanded=!1,e.prototype.visibleItems=null;let t;return N.defineProperty(e.prototype,`_visibleItems`,{get:M.oneOfGetter(t=[`visibleItems`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.sections!=null&&e.sections.length)for(let n=0;n<e.sections.length;++n)t.uint32(10).string(e.sections[n]);if(e.appPages!=null&&e.appPages.length)for(let r=0;r<e.appPages.length;++r)W.AppPage.encode(e.appPages[r],t.uint32(18).fork(),n+1).ldelim();if(e.position!=null&&N.hasOwnProperty.call(e,`position`)&&e.position!==0&&t.uint32(24).int32(e.position),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&e.pageScriptHash!==``&&t.uint32(34).string(e.pageScriptHash),e.expanded!=null&&N.hasOwnProperty.call(e,`expanded`)&&e.expanded!==!1&&t.uint32(40).bool(e.expanded),e.visibleItems!=null&&N.hasOwnProperty.call(e,`visibleItems`)&&t.uint32(48).uint32(e.visibleItems),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Navigation,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.sections&&o.sections.length||(o.sections=[]),o.sections.push(e.stringVerify());continue;case 2:if(a!==2)break;o.appPages&&o.appPages.length||(o.appPages=[]),o.appPages.push(W.AppPage.decode(e,e.uint32(),P,r+1));continue;case 3:if(a!==0)break;(s=e.int32())?o.position=s:delete o.position;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 5:if(a!==0)break;(s=e.bool())?o.expanded=s:delete o.expanded;continue;case 6:if(a!==0)break;o.visibleItems=e.uint32(),o._visibleItems=`visibleItems`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Navigation)return e;if(!M.isObject(e))throw I(`.Navigation: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Navigation;if(e.sections){if(!V.isArray(e.sections))throw I(`.Navigation.sections: array expected`);n.sections=V(e.sections.length);for(let t=0;t<e.sections.length;++t)n.sections[t]=L(e.sections[t])}if(e.appPages){if(!V.isArray(e.appPages))throw I(`.Navigation.appPages: array expected`);n.appPages=V(e.appPages.length);for(let r=0;r<e.appPages.length;++r){if(!M.isObject(e.appPages[r]))throw I(`.Navigation.appPages: object expected`);n.appPages[r]=W.AppPage.fromObject(e.appPages[r],t+1)}}if(e.position!==0&&(typeof e.position!=`string`||W.Navigation.Position[e.position]!==0))switch(e.position){case`HIDDEN`:case 0:n.position=0;break;case`SIDEBAR`:case 1:n.position=1;break;case`TOP`:case 2:n.position=2;break;default:typeof e.position==`number`&&(e.position|0)===e.position&&(n.position=e.position)}return e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=L(e.pageScriptHash)),e.expanded!=null&&e.expanded&&(n.expanded=R(e.expanded)),e.visibleItems!=null&&(n.visibleItems=e.visibleItems>>>0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.sections=[],r.appPages=[]),t.defaults&&(r.position=t.enums===L?`HIDDEN`:0,r.pageScriptHash=``,r.expanded=!1),e.sections&&e.sections.length){r.sections=V(e.sections.length);for(let t=0;t<e.sections.length;++t)r.sections[t]=e.sections[t]}if(e.appPages&&e.appPages.length){r.appPages=V(e.appPages.length);for(let i=0;i<e.appPages.length;++i)r.appPages[i]=W.AppPage.toObject(e.appPages[i],t,n+1)}return e.position!=null&&N.hasOwnProperty.call(e,`position`)&&(r.position=t.enums===L?W.Navigation.Position[e.position]===P?e.position:W.Navigation.Position[e.position]:e.position),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&(r.pageScriptHash=e.pageScriptHash),e.expanded!=null&&N.hasOwnProperty.call(e,`expanded`)&&(r.expanded=e.expanded),e.visibleItems!=null&&N.hasOwnProperty.call(e,`visibleItems`)&&(r.visibleItems=e.visibleItems),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Navigation`},e.Position=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`HIDDEN`]=0,t[e[1]=`SIDEBAR`]=1,t[e[2]=`TOP`]=2,t})(),e})();W.NewSession=(()=>{let e=function(e){if(this.appPages=[],this.fragmentIdsThisRun=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.initialize=null,e.prototype.scriptRunId=``,e.prototype.name=``,e.prototype.mainScriptPath=``,e.prototype.config=null,e.prototype.customTheme=null,e.prototype.appPages=M.emptyArray,e.prototype.pageScriptHash=``,e.prototype.fragmentIdsThisRun=M.emptyArray,e.prototype.mainScriptHash=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.initialize!=null&&N.hasOwnProperty.call(e,`initialize`)&&W.Initialize.encode(e.initialize,t.uint32(10).fork(),n+1).ldelim(),e.scriptRunId!=null&&N.hasOwnProperty.call(e,`scriptRunId`)&&e.scriptRunId!==``&&t.uint32(18).string(e.scriptRunId),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(26).string(e.name),e.mainScriptPath!=null&&N.hasOwnProperty.call(e,`mainScriptPath`)&&e.mainScriptPath!==``&&t.uint32(34).string(e.mainScriptPath),e.config!=null&&N.hasOwnProperty.call(e,`config`)&&W.Config.encode(e.config,t.uint32(50).fork(),n+1).ldelim(),e.customTheme!=null&&N.hasOwnProperty.call(e,`customTheme`)&&W.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork(),n+1).ldelim(),e.appPages!=null&&e.appPages.length)for(let r=0;r<e.appPages.length;++r)W.AppPage.encode(e.appPages[r],t.uint32(66).fork(),n+1).ldelim();if(e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&e.pageScriptHash!==``&&t.uint32(74).string(e.pageScriptHash),e.fragmentIdsThisRun!=null&&e.fragmentIdsThisRun.length)for(let n=0;n<e.fragmentIdsThisRun.length;++n)t.uint32(82).string(e.fragmentIdsThisRun[n]);if(e.mainScriptHash!=null&&N.hasOwnProperty.call(e,`mainScriptHash`)&&e.mainScriptHash!==``&&t.uint32(90).string(e.mainScriptHash),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.NewSession,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.initialize=W.Initialize.decode(e,e.uint32(),P,r+1,o.initialize);continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.scriptRunId=s:delete o.scriptRunId;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.mainScriptPath=s:delete o.mainScriptPath;continue;case 6:if(a!==2)break;o.config=W.Config.decode(e,e.uint32(),P,r+1,o.config);continue;case 7:if(a!==2)break;o.customTheme=W.CustomThemeConfig.decode(e,e.uint32(),P,r+1,o.customTheme);continue;case 8:if(a!==2)break;o.appPages&&o.appPages.length||(o.appPages=[]),o.appPages.push(W.AppPage.decode(e,e.uint32(),P,r+1));continue;
1case 9:if(a!==2)break;(s=e.stringVerify()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 10:if(a!==2)break;o.fragmentIdsThisRun&&o.fragmentIdsThisRun.length||(o.fragmentIdsThisRun=[]),o.fragmentIdsThisRun.push(e.stringVerify());continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.mainScriptHash=s:delete o.mainScriptHash;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.NewSession)return e;if(!M.isObject(e))throw I(`.NewSession: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.NewSession;if(e.initialize!=null){if(!M.isObject(e.initialize))throw I(`.NewSession.initialize: object expected`);n.initialize=W.Initialize.fromObject(e.initialize,t+1)}if(e.scriptRunId!=null&&(typeof e.scriptRunId!=`string`||e.scriptRunId.length)&&(n.scriptRunId=L(e.scriptRunId)),e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.mainScriptPath!=null&&(typeof e.mainScriptPath!=`string`||e.mainScriptPath.length)&&(n.mainScriptPath=L(e.mainScriptPath)),e.config!=null){if(!M.isObject(e.config))throw I(`.NewSession.config: object expected`);n.config=W.Config.fromObject(e.config,t+1)}if(e.customTheme!=null){if(!M.isObject(e.customTheme))throw I(`.NewSession.customTheme: object expected`);n.customTheme=W.CustomThemeConfig.fromObject(e.customTheme,t+1)}if(e.appPages){if(!V.isArray(e.appPages))throw I(`.NewSession.appPages: array expected`);n.appPages=V(e.appPages.length);for(let r=0;r<e.appPages.length;++r){if(!M.isObject(e.appPages[r]))throw I(`.NewSession.appPages: object expected`);n.appPages[r]=W.AppPage.fromObject(e.appPages[r],t+1)}}if(e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=L(e.pageScriptHash)),e.fragmentIdsThisRun){if(!V.isArray(e.fragmentIdsThisRun))throw I(`.NewSession.fragmentIdsThisRun: array expected`);n.fragmentIdsThisRun=V(e.fragmentIdsThisRun.length);for(let t=0;t<e.fragmentIdsThisRun.length;++t)n.fragmentIdsThisRun[t]=L(e.fragmentIdsThisRun[t])}return e.mainScriptHash!=null&&(typeof e.mainScriptHash!=`string`||e.mainScriptHash.length)&&(n.mainScriptHash=L(e.mainScriptHash)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.appPages=[],r.fragmentIdsThisRun=[]),t.defaults&&(r.initialize=null,r.scriptRunId=``,r.name=``,r.mainScriptPath=``,r.config=null,r.customTheme=null,r.pageScriptHash=``,r.mainScriptHash=``),e.initialize!=null&&N.hasOwnProperty.call(e,`initialize`)&&(r.initialize=W.Initialize.toObject(e.initialize,t,n+1)),e.scriptRunId!=null&&N.hasOwnProperty.call(e,`scriptRunId`)&&(r.scriptRunId=e.scriptRunId),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.mainScriptPath!=null&&N.hasOwnProperty.call(e,`mainScriptPath`)&&(r.mainScriptPath=e.mainScriptPath),e.config!=null&&N.hasOwnProperty.call(e,`config`)&&(r.config=W.Config.toObject(e.config,t,n+1)),e.customTheme!=null&&N.hasOwnProperty.call(e,`customTheme`)&&(r.customTheme=W.CustomThemeConfig.toObject(e.customTheme,t,n+1)),e.appPages&&e.appPages.length){r.appPages=V(e.appPages.length);for(let i=0;i<e.appPages.length;++i)r.appPages[i]=W.AppPage.toObject(e.appPages[i],t,n+1)}if(e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&(r.pageScriptHash=e.pageScriptHash),e.fragmentIdsThisRun&&e.fragmentIdsThisRun.length){r.fragmentIdsThisRun=V(e.fragmentIdsThisRun.length);for(let t=0;t<e.fragmentIdsThisRun.length;++t)r.fragmentIdsThisRun[t]=e.fragmentIdsThisRun[t]}return e.mainScriptHash!=null&&N.hasOwnProperty.call(e,`mainScriptHash`)&&(r.mainScriptHash=e.mainScriptHash),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/NewSession`},e})(),W.Initialize=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.userInfo=null,e.prototype.environmentInfo=null,e.prototype.sessionStatus=null,e.prototype.sessionId=``,e.prototype.isHello=!1,e.prototype.recommendSkillsInstall=!1,e.prototype.skillsNudgeSuppressedLocality=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.userInfo!=null&&N.hasOwnProperty.call(e,`userInfo`)&&W.UserInfo.encode(e.userInfo,t.uint32(10).fork(),n+1).ldelim(),e.environmentInfo!=null&&N.hasOwnProperty.call(e,`environmentInfo`)&&W.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork(),n+1).ldelim(),e.sessionStatus!=null&&N.hasOwnProperty.call(e,`sessionStatus`)&&W.SessionStatus.encode(e.sessionStatus,t.uint32(34).fork(),n+1).ldelim(),e.sessionId!=null&&N.hasOwnProperty.call(e,`sessionId`)&&e.sessionId!==``&&t.uint32(50).string(e.sessionId),e.isHello!=null&&N.hasOwnProperty.call(e,`isHello`)&&e.isHello!==!1&&t.uint32(56).bool(e.isHello),e.recommendSkillsInstall!=null&&N.hasOwnProperty.call(e,`recommendSkillsInstall`)&&e.recommendSkillsInstall!==!1&&t.uint32(64).bool(e.recommendSkillsInstall),e.skillsNudgeSuppressedLocality!=null&&N.hasOwnProperty.call(e,`skillsNudgeSuppressedLocality`)&&e.skillsNudgeSuppressedLocality!==``&&t.uint32(74).string(e.skillsNudgeSuppressedLocality),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Initialize,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.userInfo=W.UserInfo.decode(e,e.uint32(),P,r+1,o.userInfo);continue;case 3:if(a!==2)break;o.environmentInfo=W.EnvironmentInfo.decode(e,e.uint32(),P,r+1,o.environmentInfo);continue;case 4:if(a!==2)break;o.sessionStatus=W.SessionStatus.decode(e,e.uint32(),P,r+1,o.sessionStatus);continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.sessionId=s:delete o.sessionId;continue;case 7:if(a!==0)break;(s=e.bool())?o.isHello=s:delete o.isHello;continue;case 8:if(a!==0)break;(s=e.bool())?o.recommendSkillsInstall=s:delete o.recommendSkillsInstall;continue;
1case 9:if(a!==2)break;(s=e.stringVerify()).length?o.skillsNudgeSuppressedLocality=s:delete o.skillsNudgeSuppressedLocality;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Initialize)return e;if(!M.isObject(e))throw I(`.Initialize: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Initialize;if(e.userInfo!=null){if(!M.isObject(e.userInfo))throw I(`.Initialize.userInfo: object expected`);n.userInfo=W.UserInfo.fromObject(e.userInfo,t+1)}if(e.environmentInfo!=null){if(!M.isObject(e.environmentInfo))throw I(`.Initialize.environmentInfo: object expected`);n.environmentInfo=W.EnvironmentInfo.fromObject(e.environmentInfo,t+1)}if(e.sessionStatus!=null){if(!M.isObject(e.sessionStatus))throw I(`.Initialize.sessionStatus: object expected`);n.sessionStatus=W.SessionStatus.fromObject(e.sessionStatus,t+1)}return e.sessionId!=null&&(typeof e.sessionId!=`string`||e.sessionId.length)&&(n.sessionId=L(e.sessionId)),e.isHello!=null&&e.isHello&&(n.isHello=R(e.isHello)),e.recommendSkillsInstall!=null&&e.recommendSkillsInstall&&(n.recommendSkillsInstall=R(e.recommendSkillsInstall)),e.skillsNudgeSuppressedLocality!=null&&(typeof e.skillsNudgeSuppressedLocality!=`string`||e.skillsNudgeSuppressedLocality.length)&&(n.skillsNudgeSuppressedLocality=L(e.skillsNudgeSuppressedLocality)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.userInfo=null,r.environmentInfo=null,r.sessionStatus=null,r.sessionId=``,r.isHello=!1,r.recommendSkillsInstall=!1,r.skillsNudgeSuppressedLocality=``),e.userInfo!=null&&N.hasOwnProperty.call(e,`userInfo`)&&(r.userInfo=W.UserInfo.toObject(e.userInfo,t,n+1)),e.environmentInfo!=null&&N.hasOwnProperty.call(e,`environmentInfo`)&&(r.environmentInfo=W.EnvironmentInfo.toObject(e.environmentInfo,t,n+1)),e.sessionStatus!=null&&N.hasOwnProperty.call(e,`sessionStatus`)&&(r.sessionStatus=W.SessionStatus.toObject(e.sessionStatus,t,n+1)),e.sessionId!=null&&N.hasOwnProperty.call(e,`sessionId`)&&(r.sessionId=e.sessionId),e.isHello!=null&&N.hasOwnProperty.call(e,`isHello`)&&(r.isHello=e.isHello),e.recommendSkillsInstall!=null&&N.hasOwnProperty.call(e,`recommendSkillsInstall`)&&(r.recommendSkillsInstall=e.recommendSkillsInstall),e.skillsNudgeSuppressedLocality!=null&&N.hasOwnProperty.call(e,`skillsNudgeSuppressedLocality`)&&(r.skillsNudgeSuppressedLocality=e.skillsNudgeSuppressedLocality),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Initialize`},e})();var ke=W.Config=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.gatherUsageStats=!1,e.prototype.maxCachedMessageAge=0,e.prototype.allowRunOnSave=!1,e.prototype.hideTopBar=!1,e.prototype.hideSidebarNav=!1,e.prototype.toolbarMode=0,e.prototype.showErrorLinks=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.gatherUsageStats!=null&&N.hasOwnProperty.call(e,`gatherUsageStats`)&&e.gatherUsageStats!==!1&&t.uint32(16).bool(e.gatherUsageStats),e.maxCachedMessageAge!=null&&N.hasOwnProperty.call(e,`maxCachedMessageAge`)&&e.maxCachedMessageAge!==0&&t.uint32(24).int32(e.maxCachedMessageAge),e.allowRunOnSave!=null&&N.hasOwnProperty.call(e,`allowRunOnSave`)&&e.allowRunOnSave!==!1&&t.uint32(40).bool(e.allowRunOnSave),e.hideTopBar!=null&&N.hasOwnProperty.call(e,`hideTopBar`)&&e.hideTopBar!==!1&&t.uint32(48).bool(e.hideTopBar),e.hideSidebarNav!=null&&N.hasOwnProperty.call(e,`hideSidebarNav`)&&e.hideSidebarNav!==!1&&t.uint32(56).bool(e.hideSidebarNav),e.toolbarMode!=null&&N.hasOwnProperty.call(e,`toolbarMode`)&&e.toolbarMode!==0&&t.uint32(64).int32(e.toolbarMode),e.showErrorLinks!=null&&N.hasOwnProperty.call(e,`showErrorLinks`)&&e.showErrorLinks!==0&&t.uint32(72).int32(e.showErrorLinks),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Config,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 2:if(a!==0)break;(s=e.bool())?o.gatherUsageStats=s:delete o.gatherUsageStats;continue;case 3:if(a!==0)break;(s=e.int32())?o.maxCachedMessageAge=s:delete o.maxCachedMessageAge;continue;case 5:if(a!==0)break;(s=e.bool())?o.allowRunOnSave=s:delete o.allowRunOnSave;continue;case 6:if(a!==0)break;(s=e.bool())?o.hideTopBar=s:delete o.hideTopBar;continue;case 7:if(a!==0)break;(s=e.bool())?o.hideSidebarNav=s:delete o.hideSidebarNav;continue;case 8:if(a!==0)break;(s=e.int32())?o.toolbarMode=s:delete o.toolbarMode;continue;
1case 9:if(a!==0)break;(s=e.int32())?o.showErrorLinks=s:delete o.showErrorLinks;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Config)return e;if(!M.isObject(e))throw I(`.Config: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Config;if(e.gatherUsageStats!=null&&e.gatherUsageStats&&(n.gatherUsageStats=R(e.gatherUsageStats)),e.maxCachedMessageAge!=null&&z(e.maxCachedMessageAge)!==0&&(n.maxCachedMessageAge=e.maxCachedMessageAge|0),e.allowRunOnSave!=null&&e.allowRunOnSave&&(n.allowRunOnSave=R(e.allowRunOnSave)),e.hideTopBar!=null&&e.hideTopBar&&(n.hideTopBar=R(e.hideTopBar)),e.hideSidebarNav!=null&&e.hideSidebarNav&&(n.hideSidebarNav=R(e.hideSidebarNav)),e.toolbarMode!==0&&(typeof e.toolbarMode!=`string`||W.Config.ToolbarMode[e.toolbarMode]!==0))switch(e.toolbarMode){case`AUTO`:case 0:n.toolbarMode=0;break;case`DEVELOPER`:case 1:n.toolbarMode=1;break;case`VIEWER`:case 2:n.toolbarMode=2;break;case`MINIMAL`:case 3:n.toolbarMode=3;break;default:typeof e.toolbarMode==`number`&&(e.toolbarMode|0)===e.toolbarMode&&(n.toolbarMode=e.toolbarMode)}if(e.showErrorLinks!==0&&(typeof e.showErrorLinks!=`string`||W.Config.ShowErrorLinks[e.showErrorLinks]!==0))switch(e.showErrorLinks){case`SHOW_ERROR_LINKS_UNSPECIFIED`:case 0:n.showErrorLinks=0;break;case`SHOW_ERROR_LINKS_AUTO`:case 1:n.showErrorLinks=1;break;case`SHOW_ERROR_LINKS_TRUE`:case 2:n.showErrorLinks=2;break;case`SHOW_ERROR_LINKS_FALSE`:case 3:n.showErrorLinks=3;break;default:typeof e.showErrorLinks==`number`&&(e.showErrorLinks|0)===e.showErrorLinks&&(n.showErrorLinks=e.showErrorLinks)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.gatherUsageStats=!1,r.maxCachedMessageAge=0,r.allowRunOnSave=!1,r.hideTopBar=!1,r.hideSidebarNav=!1,r.toolbarMode=t.enums===L?`AUTO`:0,r.showErrorLinks=t.enums===L?`SHOW_ERROR_LINKS_UNSPECIFIED`:0),e.gatherUsageStats!=null&&N.hasOwnProperty.call(e,`gatherUsageStats`)&&(r.gatherUsageStats=e.gatherUsageStats),e.maxCachedMessageAge!=null&&N.hasOwnProperty.call(e,`maxCachedMessageAge`)&&(r.maxCachedMessageAge=e.maxCachedMessageAge),e.allowRunOnSave!=null&&N.hasOwnProperty.call(e,`allowRunOnSave`)&&(r.allowRunOnSave=e.allowRunOnSave),e.hideTopBar!=null&&N.hasOwnProperty.call(e,`hideTopBar`)&&(r.hideTopBar=e.hideTopBar),e.hideSidebarNav!=null&&N.hasOwnProperty.call(e,`hideSidebarNav`)&&(r.hideSidebarNav=e.hideSidebarNav),e.toolbarMode!=null&&N.hasOwnProperty.call(e,`toolbarMode`)&&(r.toolbarMode=t.enums===L?W.Config.ToolbarMode[e.toolbarMode]===P?e.toolbarMode:W.Config.ToolbarMode[e.toolbarMode]:e.toolbarMode),e.showErrorLinks!=null&&N.hasOwnProperty.call(e,`showErrorLinks`)&&(r.showErrorLinks=t.enums===L?W.Config.ShowErrorLinks[e.showErrorLinks]===P?e.showErrorLinks:W.Config.ShowErrorLinks[e.showErrorLinks]:e.showErrorLinks),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Config`},e.ToolbarMode=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`AUTO`]=0,t[e[1]=`DEVELOPER`]=1,t[e[2]=`VIEWER`]=2,t[e[3]=`MINIMAL`]=3,t})(),e.ShowErrorLinks=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`SHOW_ERROR_LINKS_UNSPECIFIED`]=0,t[e[1]=`SHOW_ERROR_LINKS_AUTO`]=1,t[e[2]=`SHOW_ERROR_LINKS_TRUE`]=2,t[e[3]=`SHOW_ERROR_LINKS_FALSE`]=3,t})(),e})(),Ae=W.CustomThemeConfig=(()=>{let e=function(e){if(this.fontFaces=[],this.fontSources=[],this.headingFontSizes=[],this.headingFontWeights=[],this.chartCategoricalColors=[],this.chartSequentialColors=[],this.chartDivergingColors=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.primaryColor=``,e.prototype.secondaryBackgroundColor=``,e.prototype.backgroundColor=``,e.prototype.textColor=``,e.prototype.base=0,e.prototype.headingFont=``,e.prototype.bodyFont=``,e.prototype.codeFont=``,e.prototype.fontFaces=M.emptyArray,e.prototype.fontSources=M.emptyArray,e.prototype.baseRadius=null,e.prototype.buttonRadius=null,e.prototype.borderColor=null,e.prototype.dataframeBorderColor=null,e.prototype.showWidgetBorder=null,e.prototype.linkColor=null,e.prototype.linkUnderline=null,e.prototype.baseFontSize=null,e.prototype.baseFontWeight=null,e.prototype.codeFontWeight=null,e.prototype.codeFontSize=null,e.prototype.headingFontSizes=M.emptyArray,e.prototype.headingFontWeights=M.emptyArray,e.prototype.showSidebarBorder=null,e.prototype.codeTextColor=null,e.prototype.codeBackgroun
1dColor=null,e.prototype.dataframeHeaderBackgroundColor=null,e.prototype.chartCategoricalColors=M.emptyArray,e.prototype.chartSequentialColors=M.emptyArray,e.prototype.chartDivergingColors=M.emptyArray,e.prototype.redColor=null,e.prototype.orangeColor=null,e.prototype.yellowColor=null,e.prototype.blueColor=null,e.prototype.greenColor=null,e.prototype.violetColor=null,e.prototype.grayColor=null,e.prototype.redBackgroundColor=null,e.prototype.orangeBackgroundColor=null,e.prototype.yellowBackgroundColor=null,e.prototype.blueBackgroundColor=null,e.prototype.greenBackgroundColor=null,e.prototype.violetBackgroundColor=null,e.prototype.grayBackgroundColor=null,e.prototype.redTextColor=null,e.prototype.orangeTextColor=null,e.prototype.yellowTextColor=null,e.prototype.blueTextColor=null,e.prototype.greenTextColor=null,e.prototype.violetTextColor=null,e.prototype.grayTextColor=null,e.prototype.metricValueFontSize=null,e.prototype.metricValueFontWeight=null,e.prototype.sidebar=null,e.prototype.light=null,e.prototype.dark=null;let t;return N.defineProperty(e.prototype,`_baseRadius`,{get:M.oneOfGetter(t=[`baseRadius`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_buttonRadius`,{get:M.oneOfGetter(t=[`buttonRadius`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_borderColor`,{get:M.oneOfGetter(t=[`borderColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_dataframeBorderColor`,{get:M.oneOfGetter(t=[`dataframeBorderColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_showWidgetBorder`,{get:M.oneOfGetter(t=[`showWidgetBorder`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_linkColor`,{get:M.oneOfGetter(t=[`linkColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_linkUnderline`,{get:M.oneOfGetter(t=[`linkUnderline`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_baseFontSize`,{get:M.oneOfGetter(t=[`baseFontSize`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_baseFontWeight`,{get:M.oneOfGetter(t=[`baseFontWeight`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_codeFontWeight`,{get:M.oneOfGetter(t=[`codeFontWeight`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_codeFontSize`,{get:M.oneOfGetter(t=[`codeFontSize`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_showSidebarBorder`,{get:M.oneOfGetter(t=[`showSidebarBorder`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_codeTextColor`,{get:M.oneOfGetter(t=[`codeTextColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_codeBackgroundColor`,{get:M.oneOfGetter(t=[`codeBackgroundColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_dataframeHeaderBackgroundColor`,{get:M.oneOfGetter(t=[`dataframeHeaderBackgroundColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_redColor`,{get:M.oneOfGetter(t=[`redColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_orangeColor`,{get:M.oneOfGetter(t=[`orangeColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_yellowColor`,{get:M.oneOfGetter(t=[`yellowColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_blueColor`,{get:M.oneOfGetter(t=[`blueColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_greenColor`,{get:M.oneOfGetter(t=[`greenColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_violetColor`,{get:M.oneOfGetter(t=[`violetColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_grayColor`,{get:M.oneOfGetter(t=[`grayColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_redBackgroundColor`,{get:M.oneOfGetter(t=[`redBackgroundColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_orangeBackgroundColor`,{get:M.oneOfGetter(t=[`orangeBackgroundColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_yellowBackgroundColor`,{get:M.oneOfGetter(t=[`yellowBackgroundColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_blueBackgroundColor`,{get:M.oneOfGetter(t=[`blueBackgroundColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_greenBackgroundColor`,{get:M.oneOfGetter(t=[`greenBackgroundColor`]),set:M.oneOfSetter(t)}
1),N.defineProperty(e.prototype,`_violetBackgroundColor`,{get:M.oneOfGetter(t=[`violetBackgroundColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_grayBackgroundColor`,{get:M.oneOfGetter(t=[`grayBackgroundColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_redTextColor`,{get:M.oneOfGetter(t=[`redTextColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_orangeTextColor`,{get:M.oneOfGetter(t=[`orangeTextColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_yellowTextColor`,{get:M.oneOfGetter(t=[`yellowTextColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_blueTextColor`,{get:M.oneOfGetter(t=[`blueTextColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_greenTextColor`,{get:M.oneOfGetter(t=[`greenTextColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_violetTextColor`,{get:M.oneOfGetter(t=[`violetTextColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_grayTextColor`,{get:M.oneOfGetter(t=[`grayTextColor`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_metricValueFontSize`,{get:M.oneOfGetter(t=[`metricValueFontSize`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_metricValueFontWeight`,{get:M.oneOfGetter(t=[`metricValueFontWeight`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_sidebar`,{get:M.oneOfGetter(t=[`sidebar`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_light`,{get:M.oneOfGetter(t=[`light`]),set:M.oneOfSetter(t)}),N.defineProperty(e.prototype,`_dark`,{get:M.oneOfGetter(t=[`dark`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.primaryColor!=null&&N.hasOwnProperty.call(e,`primaryColor`)&&e.primaryColor!==``&&t.uint32(10).string(e.primaryColor),e.secondaryBackgroundColor!=null&&N.hasOwnProperty.call(e,`secondaryBackgroundColor`)&&e.secondaryBackgroundColor!==``&&t.uint32(18).string(e.secondaryBackgroundColor),e.backgroundColor!=null&&N.hasOwnProperty.call(e,`backgroundColor`)&&e.backgroundColor!==``&&t.uint32(26).string(e.backgroundColor),e.textColor!=null&&N.hasOwnProperty.call(e,`textColor`)&&e.textColor!==``&&t.uint32(34).string(e.textColor),e.base!=null&&N.hasOwnProperty.call(e,`base`)&&e.base!==0&&t.uint32(48).int32(e.base),e.headingFont!=null&&N.hasOwnProperty.call(e,`headingFont`)&&e.headingFont!==``&&t.uint32(98).string(e.headingFont),e.bodyFont!=null&&N.hasOwnProperty.call(e,`bodyFont`)&&e.bodyFont!==``&&t.uint32(106).string(e.bodyFont),e.codeFont!=null&&N.hasOwnProperty.call(e,`codeFont`)&&e.codeFont!==``&&t.uint32(114).string(e.codeFont),e.fontFaces!=null&&e.fontFaces.length)for(let r=0;r<e.fontFaces.length;++r)W.FontFace.encode(e.fontFaces[r],t.uint32(122).fork(),n+1).ldelim();if(e.baseRadius!=null&&N.hasOwnProperty.call(e,`baseRadius`)&&t.uint32(146).string(e.baseRadius),e.borderColor!=null&&N.hasOwnProperty.call(e,`borderColor`)&&t.uint32(154).string(e.borderColor),e.showWidgetBorder!=null&&N.hasOwnProperty.call(e,`showWidgetBorder`)&&t.uint32(160).bool(e.showWidgetBorder),e.linkColor!=null&&N.hasOwnProperty.call(e,`linkColor`)&&t.uint32(170).string(e.linkColor),e.baseFontSize!=null&&N.hasOwnProperty.call(e,`baseFontSize`)&&t.uint32(176).int32(e.baseFontSize),e.showSidebarBorder!=null&&N.hasOwnProperty.call(e,`showSidebarBorder`)&&t.uint32(184).bool(e.showSidebarBorder),e.sidebar!=null&&N.hasOwnProperty.call(e,`sidebar`)&&W.CustomThemeConfig.encode(e.sidebar,t.uint32(194).fork(),n+1).ldelim(),e.codeBackgroundColor!=null&&N.hasOwnProperty.call(e,`codeBackgroundColor`)&&t.uint32(202).string(e.codeBackgroundColor),e.buttonRadius!=null&&N.hasOwnProperty.call(e,`buttonRadius`)&&t.uint32(210).string(e.buttonRadius),e.dataframeBorderColor!=null&&N.hasOwnProperty.call(e,`dataframeBorderColor`)&&t.uint32(218).string(e.dataframeBorderColor),e.codeFontSize!=null&&N.hasOwnProperty.call(e,`codeFontSize`)&&t.uint32(226).string(e.codeFontSize),e.linkUnderline!=null&&N.hasOwnProperty.call(e,`linkUnderline`)&&t.uint32(232).bool(e.linkUnderline),e.baseFontWeight!=null&&N.hasOwnProperty.call(e,`baseFontWeight`)&&t.uint32(240).int32(e.baseFontWeight),e.dataframeHeaderBackgroun
1dColor!=null&&N.hasOwnProperty.call(e,`dataframeHeaderBackgroundColor`)&&t.uint32(250).string(e.dataframeHeaderBackgroundColor),e.codeFontWeight!=null&&N.hasOwnProperty.call(e,`codeFontWeight`)&&t.uint32(256).int32(e.codeFontWeight),e.chartCategoricalColors!=null&&e.chartCategoricalColors.length)for(let n=0;n<e.chartCategoricalColors.length;++n)t.uint32(266).string(e.chartCategoricalColors[n]);if(e.headingFontWeights!=null&&e.headingFontWeights.length){t.uint32(274).fork();for(let n=0;n<e.headingFontWeights.length;++n)t.int32(e.headingFontWeights[n]);t.ldelim()}if(e.headingFontSizes!=null&&e.headingFontSizes.length)for(let n=0;n<e.headingFontSizes.length;++n)t.uint32(282).string(e.headingFontSizes[n]);if(e.chartSequentialColors!=null&&e.chartSequentialColors.length)for(let n=0;n<e.chartSequentialColors.length;++n)t.uint32(290).string(e.chartSequentialColors[n]);if(e.fontSources!=null&&e.fontSources.length)for(let r=0;r<e.fontSources.length;++r)W.FontSource.encode(e.fontSources[r],t.uint32(298).fork(),n+1).ldelim();if(e.redColor!=null&&N.hasOwnProperty.call(e,`redColor`)&&t.uint32(306).string(e.redColor),e.orangeColor!=null&&N.hasOwnProperty.call(e,`orangeColor`)&&t.uint32(314).string(e.orangeColor),e.yellowColor!=null&&N.hasOwnProperty.call(e,`yellowColor`)&&t.uint32(322).string(e.yellowColor),e.blueColor!=null&&N.hasOwnProperty.call(e,`blueColor`)&&t.uint32(330).string(e.blueColor),e.greenColor!=null&&N.hasOwnProperty.call(e,`greenColor`)&&t.uint32(338).string(e.greenColor),e.violetColor!=null&&N.hasOwnProperty.call(e,`violetColor`)&&t.uint32(346).string(e.violetColor),e.grayColor!=null&&N.hasOwnProperty.call(e,`grayColor`)&&t.uint32(354).string(e.grayColor),e.redBackgroundColor!=null&&N.hasOwnProperty.call(e,`redBackgroundColor`)&&t.uint32(362).string(e.redBackgroundColor),e.orangeBackgroundColor!=null&&N.hasOwnProperty.call(e,`orangeBackgroundColor`)&&t.uint32(370).string(e.orangeBackgroundColor),e.yellowBackgroundColor!=null&&N.hasOwnProperty.call(e,`yellowBackgroundColor`)&&t.uint32(378).string(e.yellowBackgroundColor),e.blueBackgroundColor!=null&&N.hasOwnProperty.call(e,`blueBackgroundColor`)&&t.uint32(386).string(e.blueBackgroundColor),e.greenBackgroundColor!=null&&N.hasOwnProperty.call(e,`greenBackgroundColor`)&&t.uint32(394).string(e.green
1BackgroundColor),e.violetBackgroundColor!=null&&N.hasOwnProperty.call(e,`violetBackgroundColor`)&&t.uint32(402).string(e.violetBackgroundColor),e.grayBackgroundColor!=null&&N.hasOwnProperty.call(e,`grayBackgroundColor`)&&t.uint32(410).string(e.grayBackgroundColor),e.redTextColor!=null&&N.hasOwnProperty.call(e,`redTextColor`)&&t.uint32(418).string(e.redTextColor),e.orangeTextColor!=null&&N.hasOwnProperty.call(e,`orangeTextColor`)&&t.uint32(426).string(e.orangeTextColor),e.yellowTextColor!=null&&N.hasOwnProperty.call(e,`yellowTextColor`)&&t.uint32(434).string(e.yellowTextColor),e.blueTextColor!=null&&N.hasOwnProperty.call(e,`blueTextColor`)&&t.uint32(442).string(e.blueTextColor),e.greenTextColor!=null&&N.hasOwnProperty.call(e,`greenTextColor`)&&t.uint32(450).string(e.greenTextColor),e.violetTextColor!=null&&N.hasOwnProperty.call(e,`violetTextColor`)&&t.uint32(458).string(e.violetTextColor),e.grayTextColor!=null&&N.hasOwnProperty.call(e,`grayTextColor`)&&t.uint32(466).string(e.grayTextColor),e.codeTextColor!=null&&N.hasOwnProperty.call(e,`codeTextColor`)&&t.uint32(474).string(e.codeTextColor),e.light!=null&&N.hasOwnProperty.call(e,`light`)&&W.CustomThemeConfig.encode(e.light,t.uint32(482).fork(),n+1).ldelim(),e.dark!=null&&N.hasOwnProperty.call(e,`dark`)&&W.CustomThemeConfig.encode(e.dark,t.uint32(490).fork(),n+1).ldelim(),e.chartDivergingColors!=null&&e.chartDivergingColors.length)for(let n=0;n<e.chartDivergingColors.length;++n)t.uint32(498).string(e.chartDivergingColors[n]);if(e.metricValueFontSize!=null&&N.hasOwnProperty.call(e,`metricValueFontSize`)&&t.uint32(514).string(e.metricValueFontSize),e.metricValueFontWeight!=null&&N.hasOwnProperty.call(e,`metricValueFontWeight`)&&t.uint32(520).int32(e.metricValueFontWeight),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.CustomThemeConfig,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.primaryColor=s:delete o.primaryColor;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.secondaryBackgroundColor=s:delete o.secondaryBackgroundColor;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.backgroundColor=s:delete o.backgroundColor;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.textColor=s:delete o.textColor;continue;case 6:if(a!==0)break;(s=e.int32())?o.base=s:delete o.base;continue;case 12:if(a!==2)break;(s=e.stringVerify()).length?o.headingFont=s:delete o.headingFont;continue;case 13:if(a!==2)break;(s=e.stringVerify()).length?o.bodyFont=s:delete o.bodyFont;continue;case 14:if(a!==2)break;(s=e.stringVerify()).length?o.codeFont=s:delete o.codeFont;continue;case 15:if(a!==2)break;o.fontFaces&&o.fontFaces.length||(o.fontFaces=[]),o.fontFaces.push(W.FontFace.decode(e,e.uint32(),P,r+1));continue;case 37:if(a!==2)break;o.fontSources&&o.fontSources.length||(o.fontSources=[]),o.fontSources.push(W.FontSource.decode(e,e.uint32(),P,r+1));continue;case 18:if(a!==2)break;o.baseRadius=e.stringVerify(),o._baseRadius=`baseRadius`;continue;case 26:if(a!==2)break;o.buttonRadius=e.stringVerify(),o._buttonRadius=`buttonRadius`;continue;case 19:if(a!==2)break;o.borderColor=e.stringVerify(),o._borderColor=`borderColor`;continue;case 27:if(a!==2)break;o.dataframeBorderColor=e.stringVerify(),o._dataframeBorderColor=`dataframeBorderColor`;continue;case 20:if(a!==0)break;o.showWidgetBorder=e.bool(),o._showWidgetBorder=`showWidgetBorder`;continue;case 21:if(a!==2)break;o.linkColor=e.stringVerify(),o._linkColor=`linkColor`;continue;case 29:if(a!==0)break;o.linkUnderline=e.bool(),o._linkUnderline=`linkUnderline`;continue;case 22:if(a!==0)break;o.baseFontSize=e.int32(),o._baseFontSize=`baseFontSize`;continue;case 30:if(a!==0)break;o.baseFontWeight=e.int32(),o._baseFontWeight=`baseFontWeight`;continue;case 32:if(a!==0)break;o.codeFontWeight=e.int32(),o._codeFontWeight=`codeFontWeight`;continue;case 28:if(a!==2)break;o.codeFontSize=e.stringVerify(),o._codeFontSize=`codeFontSize`;continue;case 35:if(a!==2)break;o.headingFontSizes&&o.headingFontSizes.length||(o.headingFontSizes=[]),o.headingFontSizes.push(e.stringVerify());continue;case 34:if(a===2){o.headingFontWeights&&o.headingFontWeights.length||(o.headingFontWeights=[]);let t=e.uint32()+e.pos;for(;e.pos<t;)o.headingFontWeights.push(e.int32());continue}if(a!==0)break;o.headingFontWeights&&o.headingFontWeights.length||(o.headingFontWeights=[]),o.headingFontWeights.push(e.int32());continue;case 23:if(a!==0)break;o.showSidebarBorder=e.bool(),o._showSidebarBorder=`showSidebarBorder`;continue;case 59:if(a!==2)break;o.codeTextColor=e.stringVerify(),o._codeTextColor=`codeTextColor`;continue;case 25:if(a!==2)break;
1o.codeBackgroundColor=e.stringVerify(),o._codeBackgroundColor=`codeBackgroundColor`;continue;case 31:if(a!==2)break;o.dataframeHeaderBackgroundColor=e.stringVerify(),o._dataframeHeaderBackgroundColor=`dataframeHeaderBackgroundColor`;continue;case 33:if(a!==2)break;o.chartCategoricalColors&&o.chartCategoricalColors.length||(o.chartCategoricalColors=[]),o.chartCategoricalColors.push(e.stringVerify());continue;case 36:if(a!==2)break;o.chartSequentialColors&&o.chartSequentialColors.length||(o.chartSequentialColors=[]),o.chartSequentialColors.push(e.stringVerify());continue;case 62:if(a!==2)break;o.chartDivergingColors&&o.chartDivergingColors.length||(o.chartDivergingColors=[]),o.chartDivergingColors.push(e.stringVerify());continue;case 38:if(a!==2)break;o.redColor=e.stringVerify(),o._redColor=`redColor`;continue;case 39:if(a!==2)break;o.orangeColor=e.stringVerify(),o._orangeColor=`orangeColor`;continue;case 40:if(a!==2)break;o.yellowColor=e.stringVerify(),o._yellowColor=`yellowColor`;continue;case 41:if(a!==2)break;o.blueColor=e.stringVerify(),o._blueColor=`blueColor`;continue;case 42:if(a!==2)break;o.greenColor=e.stringVerify(),o._greenColor=`greenColor`;continue;case 43:if(a!==2)break;o.violetColor=e.stringVerify(),o._violetColor=`violetColor`;continue;case 44:if(a!==2)break;o.grayColor=e.stringVerify(),o._grayColor=`grayColor`;continue;case 45:if(a!==2)break;o.redBackgroundColor=e.stringVerify(),o._redBackgroundColor=`redBackgroundColor`;continue;case 46:if(a!==2)break;o.orangeBackgroundColor=e.stringVerify(),o._orangeBackgroundColor=`orangeBackgroundColor`;continue;case 47:if(a!==2)break;o.yellowBackgroundColor=e.stringVerify(),o._yellowBackgroundColor=`yellowBackgroundColor`;continue;case 48:if(a!==2)break;o.blueBackgroundColor=e.stringVerify(),o._blueBackgroundColor=`blueBackgroundColor`;continue;case 49:if(a!==2)break;o.greenBackgroundColor=e.stringVerify(),o._greenBackgroundColor=`greenBackgroundColor`;continue;case 50:if(a!==2)break;o.violetBackgroundColor=e.stringVerify(),o._violetBackgroundColor=`violetBackgroundColor`;continue;case 51:if(a!==2)break;o.grayBackgroundColor=e.stringVerify(),o._grayBackgroundColor=`grayBackgroundColor`;continue;case 52:if(a!==2)break;o.redTextColor=e.stringVerify(),o._redTextColor=`redTextColor`;continue;case 53:if(a!==2)break;o.orangeTextColor=e.stringVerify(),o._orangeTextColor=`orangeTextColor`;continue;case 54:if(a!==2)break;o.yellowTextColor=e.stringVerify(),o._yellowTextColor=`yellowTextColor`;continue;case 55:if(a!==2)break;o.blueTextColor=e.stringVerify(),o._blueTextColor=`blueTextColor`;continue;case 56:if(a!==2)break;o.greenTextColor=e.stringVerify(),o._greenTextColor=`greenTextColor`;continue;case 57:if(a!==2)break;o.violetTextColor=e.stringVerify(),o._violetTextColor=`violetTextColor`;continue;case 58:if(a!==2)break;o.grayTextColor=e.stringVerify(),o._grayTextColor=`grayTextColor`;continue;case 64:if(a!==2)break;o.metricValueFontSize=e.stringVerify(),o._metricValueFontSize=`metricValueFontSize`;continue;case 65:if(a!==0)break;o.metricValueFontWeight=e.int32(),o._metricValueFontWeight=`metricValueFontWeight`;continue;case 24:if(a!==2)break;o.sidebar=W.CustomThemeConfig.decode(e,e.uint32(),P,r+1,o.sidebar),o._sidebar=`sidebar`;continue;case 60:if(a!==2)break;o.light=W.CustomThemeConfig.decode(e,e.uint32(),P,r+1,o.light),o._light=`light`;continue;case 61:if(a!==2)break;o.dark=W.CustomThemeConfig.decode(e,e.uint32(),P,r+1,o.dark),o._dark=`dark`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.CustomThemeConfig)return e;if(!M.isObject(e))throw I(`.CustomThemeConfig: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.CustomThemeConfig;if(e.primaryColor!=null&&(typeof e.primaryColor!=`string`||e.primaryColor.length)&&(n.primaryColor=L(e.primaryColor)),e.secondaryBackgroundColor!=null&&(typeof e.secondaryBackgroundColor!=`string`||e.secondaryBackgroundColor.length)&&(n.secondaryBackgroun
1dColor=L(e.secondaryBackgroundColor)),e.backgroundColor!=null&&(typeof e.backgroundColor!=`string`||e.backgroundColor.length)&&(n.backgroundColor=L(e.backgroundColor)),e.textColor!=null&&(typeof e.textColor!=`string`||e.textColor.length)&&(n.textColor=L(e.textColor)),e.base!==0&&(typeof e.base!=`string`||W.CustomThemeConfig.BaseTheme[e.base]!==0))switch(e.base){case`LIGHT`:case 0:n.base=0;break;case`DARK`:case 1:n.base=1;break;default:typeof e.base==`number`&&(e.base|0)===e.base&&(n.base=e.base)}if(e.headingFont!=null&&(typeof e.headingFont!=`string`||e.headingFont.length)&&(n.headingFont=L(e.headingFont)),e.bodyFont!=null&&(typeof e.bodyFont!=`string`||e.bodyFont.length)&&(n.bodyFont=L(e.bodyFont)),e.codeFont!=null&&(typeof e.codeFont!=`string`||e.codeFont.length)&&(n.codeFont=L(e.codeFont)),e.fontFaces){if(!V.isArray(e.fontFaces))throw I(`.CustomThemeConfig.fontFaces: array expected`);n.fontFaces=V(e.fontFaces.length);for(let r=0;r<e.fontFaces.length;++r){if(!M.isObject(e.fontFaces[r]))throw I(`.CustomThemeConfig.fontFaces: object expected`);n.fontFaces[r]=W.FontFace.fromObject(e.fontFaces[r],t+1)}}if(e.fontSources){if(!V.isArray(e.fontSources))throw I(`.CustomThemeConfig.fontSources: array expected`);n.fontSources=V(e.fontSources.length);for(let r=0;r<e.fontSources.length;++r){if(!M.isObject(e.fontSources[r]))throw I(`.CustomThemeConfig.fontSources: object expected`);n.fontSources[r]=W.FontSource.fromObject(e.fontSources[r],t+1)}}if(e.baseRadius!=null&&(n.baseRadius=L(e.baseRadius)),e.buttonRadius!=null&&(n.buttonRadius=L(e.buttonRadius)),e.borderColor!=null&&(n.borderColor=L(e.borderColor)),e.dataframeBorderColor!=null&&(n.dataframeBorderColor=L(e.dataframeBorderColor)),e.showWidgetBorder!=null&&(n.showWidgetBorder=R(e.showWidgetBorder)),e.linkColor!=null&&(n.linkColor=L(e.linkColor)),e.linkUnderline!=null&&(n.linkUnderline=R(e.linkUnderline)),e.baseFontSize!=null&&(n.baseFontSize=e.baseFontSize|0),e.baseFontWeight!=null&&(n.baseFontWeight=e.baseFontWeight|0),e.codeFontWeight!=null&&(n.codeFontWeight=e.codeFontWeight|0),e.codeFontSize!=null&&(n.codeFontSize=L(e.codeFontSize)),e.headingFontSizes){if(!V.isArray(e.headingFontSizes))throw I(`.CustomThemeConfig.headingFontSizes: array expected`);n.headingFontSizes=V(e.headingFontSizes.length);for(let t=0;t<e.headingFontSizes.length;++t)n.headingFontSizes[t]=L(e.headingFontSizes[t])}if(e.headingFontWeights){if(!V.isArray(e.headingFontWeights))throw I(`.CustomThemeConfig.headingFontWeights: array expected`);n.headingFontWeights=V(e.headingFontWeights.length);for(let t=0;t<e.headingFontWeights.length;++t)n.headingFontWeights[t]=e.headingFontWeights[t]|0}if(e.showSidebarBorder!=null&&(n.showSidebarBorder=R(e.showSidebarBorder)),e.codeTextColor!=null&&(n.codeTextColor=L(e.codeTextColor)),e.codeBackgroundColor!=null&&(n.codeBackgroundColor=L(e.codeBackgroundColor)),e.dataframeHeaderBackgroundColor!=null&&(n.dataframeHeaderBackgroundColor=L(e.dataframeHeaderBackgroundColor)),e.chartCategoricalColors){if(!V.isArray(e.chartCategoricalColors))throw I(`.CustomThemeConfig.chartCategoricalColors: array expected`);n.chartCategoricalColors=V(e.chartCategoricalColors.length);for(let t=0;t<e.chartCategoricalColors.length;++t)n.chartCategoricalColors[t]=L(e.chartCategoricalColors[t])}if(e.chartSequentialColors){if(!V.isArray(e.chartSequentialColors))throw I(`.CustomThemeConfig.chartSequentialColors: array expected`);n.chartSequentialColors=V(e.chartSequentialColors.length);for(let t=0;t<e.chartSequentialColors.length;++t)n.chartSequentialColors[t]=L(e.chartSequentialColors[t])}if(e.chartDivergingColors){if(!V.isArray(e.chartDivergingColors))throw I(`.CustomThemeConfig.chartDivergingColors: array expected`);n.chartDivergingColors=V(e.chartDivergingColors.length);for(let t=0;t<e.chartDivergingColors.length;++t)n.chartDivergingColors[t]=L(e.chartDivergingColors[t])}if(e.redColor!=null&&(n.redColor=L(e.redColor)),e.orangeColor!=null&&(n.orangeColor=L(e.orangeColor)),e.yellowColor!=null&&(n.yellowColor=L(e.yellowColor)),e.blueColor!=null&&(n.blueColor=L(e.blueColor)),e.greenColor!=null&&(n.greenColor=L(e.greenColor)),e.violetColor!=null&&(n.violetColor=L(e.violetColor)),e.grayColor!=null&&(n.grayColor=L(e.grayColor)),e.redBackgroun
1dColor!=null&&(n.redBackgroundColor=L(e.redBackgroundColor)),e.orangeBackgroundColor!=null&&(n.orangeBackgroundColor=L(e.orangeBackgroundColor)),e.yellowBackgroundColor!=null&&(n.yellowBackgroundColor=L(e.yellowBackgroundColor)),e.blueBackgroundColor!=null&&(n.blueBackgroundColor=L(e.blueBackgroundColor)),e.greenBackgroundColor!=null&&(n.greenBackgroundColor=L(e.greenBackgroundColor)),e.violetBackgroundColor!=null&&(n.violetBackgroundColor=L(e.violetBackgroundColor)),e.grayBackgroundColor!=null&&(n.grayBackgroundColor=L(e.grayBackgroundColor)),e.redTextColor!=null&&(n.redTextColor=L(e.redTextColor)),e.orangeTextColor!=null&&(n.orangeTextColor=L(e.orangeTextColor)),e.yellowTextColor!=null&&(n.yellowTextColor=L(e.yellowTextColor)),e.blueTextColor!=null&&(n.blueTextColor=L(e.blueTextColor)),e.greenTextColor!=null&&(n.greenTextColor=L(e.greenTextColor)),e.violetTextColor!=null&&(n.violetTextColor=L(e.violetTextColor)),e.grayTextColor!=null&&(n.grayTextColor=L(e.grayTextColor)),e.metricValueFontSize!=null&&(n.metricValueFontSize=L(e.metricValueFontSize)),e.metricValueFontWeight!=null&&(n.metricValueFontWeight=e.metricValueFontWeight|0),e.sidebar!=null){if(!M.isObject(e.sidebar))throw I(`.CustomThemeConfig.sidebar: object expected`);n.sidebar=W.CustomThemeConfig.fromObject(e.sidebar,t+1)}if(e.light!=null){if(!M.isObject(e.light))throw I(`.CustomThemeConfig.light: object expected`);n.light=W.CustomThemeConfig.fromObject(e.light,t+1)}if(e.dark!=null){if(!M.isObject(e.dark))throw I(`.CustomThemeConfig.dark: object expected`);n.dark=W.CustomThemeConfig.fromObject(e.dark,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.fontFaces=[],r.chartCategoricalColors=[],r.headingFontWeights=[],r.headingFontSizes=[],r.chartSequentialColors=[],r.fontSources=[],r.chartDivergingColors=[]),t.defaults&&(r.primaryColor=``,r.secondaryBackgroundColor=``,r.backgroundColor=``,r.textColor=``,r.base=t.enums===L?`LIGHT`:0,r.headingFont=``,r.bodyFont=``,r.codeFont=``),e.primaryColor!=null&&N.hasOwnProperty.call(e,`primaryColor`)&&(r.primaryColor=e.primaryColor),e.secondaryBackgroundColor!=null&&N.hasOwnProperty.call(e,`secondaryBackgroundColor`)&&(r.secondaryBackgroundColor=e.secondaryBackgroundColor),e.backgroundColor!=null&&N.hasOwnProperty.call(e,`backgroundColor`)&&(r.backgroundColor=e.backgroundColor),e.textColor!=null&&N.hasOwnProperty.call(e,`textColor`)&&(r.textColor=e.textColor),e.base!=null&&N.hasOwnProperty.call(e,`base`)&&(r.base=t.enums===L?W.CustomThemeConfig.BaseTheme[e.base]===P?e.base:W.CustomThemeConfig.BaseTheme[e.base]:e.base),e.headingFont!=null&&N.hasOwnProperty.call(e,`headingFont`)&&(r.headingFont=e.headingFont),e.bodyFont!=null&&N.hasOwnProperty.call(e,`bodyFont`)&&(r.bodyFont=e.bodyFont),e.codeFont!=null&&N.hasOwnProperty.call(e,`codeFont`)&&(r.codeFont=e.codeFont),e.fontFaces&&e.fontFaces.length){r.fontFaces=V(e.fontFaces.length);for(let i=0;i<e.fontFaces.length;++i)r.fontFaces[i]=W.FontFace.toObject(e.fontFaces[i],t,n+1)}if(e.baseRadius!=null&&N.hasOwnProperty.call(e,`baseRadius`)&&(r.baseRadius=e.baseRadius),e.borderColor!=null&&N.hasOwnProperty.call(e,`borderColor`)&&(r.borderColor=e.borderColor),e.showWidgetBorder!=null&&N.hasOwnProperty.call(e,`showWidgetBorder`)&&(r.showWidgetBorder=e.showWidgetBorder),e.linkColor!=null&&N.hasOwnProperty.call(e,`linkColor`)&&(r.linkColor=e.linkColor),e.baseFontSize!=null&&N.hasOwnProperty.call(e,`baseFontSize`)&&(r.baseFontSize=e.baseFontSize),e.showSidebarBorder!=null&&N.hasOwnProperty.call(e,`showSidebarBorder`)&&(r.showSidebarBorder=e.showSidebarBorder),e.sidebar!=null&&N.hasOwnProperty.call(e,`sidebar`)&&(r.sidebar=W.CustomThemeConfig.toObject(e.sidebar,t,n+1)),e.codeBackgroundColor!=null&&N.hasOwnProperty.call(e,`codeBackgroundColor`)&&(r.codeBackgroundColor=e.codeBackgroundColor),e.buttonRadius!=null&&N.hasOwnProperty.call(e,`buttonRadius`)&&(r.buttonRadius=e.buttonRadius),e.dataframeBorderColor!=null&&N.hasOwnProperty.call(e,`dataframeBorderColor`)&&(r.dataframeBorderColor=e.dataframeBorderColor),e.codeFontSize!=null&&N.hasOwnProperty.call(e,`codeFontSize`)&&(r.codeFontSize=e.codeFontSize),e.linkUnderline!=null&&N.hasOwnProperty.call(e,`linkUnderline`)&&(r.linkUnderline=e.linkUnderline),e.baseFontWeight!=null&&N.hasOwnProperty.call(e,`baseFontWeight`)&&(r.baseFontWeight=e.baseFontWeight),e.dataframeHeaderBackgroun
1dColor!=null&&N.hasOwnProperty.call(e,`dataframeHeaderBackgroundColor`)&&(r.dataframeHeaderBackgroundColor=e.dataframeHeaderBackgroundColor),e.codeFontWeight!=null&&N.hasOwnProperty.call(e,`codeFontWeight`)&&(r.codeFontWeight=e.codeFontWeight),e.chartCategoricalColors&&e.chartCategoricalColors.length){r.chartCategoricalColors=V(e.chartCategoricalColors.length);for(let t=0;t<e.chartCategoricalColors.length;++t)r.chartCategoricalColors[t]=e.chartCategoricalColors[t]}if(e.headingFontWeights&&e.headingFontWeights.length){r.headingFontWeights=V(e.headingFontWeights.length);for(let t=0;t<e.headingFontWeights.length;++t)r.headingFontWeights[t]=e.headingFontWeights[t]}if(e.headingFontSizes&&e.headingFontSizes.length){r.headingFontSizes=V(e.headingFontSizes.length);for(let t=0;t<e.headingFontSizes.length;++t)r.headingFontSizes[t]=e.headingFontSizes[t]}if(e.chartSequentialColors&&e.chartSequentialColors.length){r.chartSequentialColors=V(e.chartSequentialColors.length);for(let t=0;t<e.chartSequentialColors.length;++t)r.chartSequentialColors[t]=e.chartSequentialColors[t]}if(e.fontSources&&e.fontSources.length){r.fontSources=V(e.fontSources.length);for(let i=0;i<e.fontSources.length;++i)r.fontSources[i]=W.FontSource.toObject(e.fontSources[i],t,n+1)}if(e.redColor!=null&&N.hasOwnProperty.call(e,`redColor`)&&(r.redColor=e.redColor),e.orangeColor!=null&&N.hasOwnProperty.call(e,`orangeColor`)&&(r.orangeColor=e.orangeColor),e.yellowColor!=null&&N.hasOwnProperty.call(e,`yellowColor`)&&(r.yellowColor=e.yellowColor),e.blueColor!=null&&N.hasOwnProperty.call(e,`blueColor`)&&(r.blueColor=e.blueColor),e.greenColor!=null&&N.hasOwnProperty.call(e,`greenColor`)&&(r.greenColor=e.greenColor),e.violetColor!=null&&N.hasOwnProperty.call(e,`violetColor`)&&(r.violetColor=e.violetColor),e.grayColor!=null&&N.hasOwnProperty.call(e,`grayColor`)&&(r.grayColor=e.grayColor),e.redBackgroundColor!=null&&N.hasOwnProperty.call(e,`redBackgroundColor`)&&(r.redBackgroundColor=e.redBackgroundColor),e.orangeBackgroundColor!=null&&N.hasOwnProperty.call(e,`orangeBackgroundColor`)&&(r.orangeBackgroundColor=e.orangeBackgroundColor),e.yellowBackgroundColor!=null&&N.hasOwnProperty.call(e,`yellowBackgroundColor`)&&(r.yellowBackgroundColor=e.yellowBackgroundColor),e.blueBackgroundColor!=null&&N.hasOwnProperty.call(e,`blueBackgroundColor`)&&(r.blueBackgroundColor=e.blueBackgroundColor),e.greenBackgroundColor!=null&&N.hasOwnProperty.call(e,`greenBackgroundColor`)&&(r.greenBackgroundColor=e.greenBackgroundColor),e.violetBackgroundColor!=null&&N.hasOwnProperty.call(e,`violetBackgroundColor`)&&(r.violetBackgroundColor=e.violetBackgroundColor),e.grayBackgroundColor!=null&&N.hasOwnProperty.call(e,`grayBackgroundColor`)&&(r.grayBackgroundColor=e.grayBackgroundColor),e.redTextColor!=null&&N.hasOwnProperty.call(e,`redTextColor`)&&(r.redTextColor=e.redTextColor),e.orangeTextColor!=null&&N.hasOwnProperty.call(e,`orangeTextColor`)&&(r.orangeTextColor=e.orangeTextColor),e.yellowTextColor!=null&&N.hasOwnProperty.call(e,`yellowTextColor`)&&(r.yellowTextColor=e.yellowTextColor),e.blueTextColor!=null&&N.hasOwnProperty.call(e,`blueTextColor`)&&(r.blueTextColor=e.blueTextColor),e.greenTextColor!=null&&N.hasOwnProperty.call(e,`greenTextColor`)&&(r.greenTextColor=e.greenTextColor),e.violetTextColor!=null&&N.hasOwnProperty.call(e,`violetTextColor`)&&(r.violetTextColor=e.violetTextColor),e.grayTextColor!=null&&N.hasOwnProperty.call(e,`grayTextColor`)&&(r.grayTextColor=e.grayTextColor),e.codeTextColor!=null&&N.hasOwnProperty.call(e,`codeTextColor`)&&(r.codeTextColor=e.codeTextColor),e.light!=null&&N.hasOwnProperty.call(e,`light`)&&(r.light=W.CustomThemeConfig.toObject(e.light,t,n+1)),e.dark!=null&&N.hasOwnProperty.call(e,`dark`)&&(r.dark=W.CustomThemeConfig.toObject(e.dark,t,n+1)),e.chartDivergingColors&&e.chartDivergingColors.length){r.chartDivergingColors=V(e.chartDivergingColors.length);for(let t=0;t<e.chartDivergingColors.length;++t)r.chartDivergingColors[t]=e.chartDivergingColors[t]}return e.metricValueFontSize!=null&&N.hasOwnProperty.call(e,`metricValueFontSize`)&&(r.metricValueFontSize=e.metricValueFontSize),e.metricValueFontWeight!=null&&N.hasOwnProperty.call(e,`metricValueFontWeight`)&&(r.metricValueFontWeight=e.metricValueFontWeight),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/CustomThemeConfig`},e.BaseTheme=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`LIGHT`]=0,t[e[1]=`DARK`]=1,t})(),e})();W.FontFace=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.url=``,e.prototype.family=``,e.prototype.weightRange=``,e.prototype.style=``,e.prototype.unicodeRange=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.url!=null&&N.hasOwnProperty.call(e,`url`)&&e.url!==``&&t.uint32(10).string(e.url),e.fam
1ily!=null&&N.hasOwnProperty.call(e,`family`)&&e.family!==``&&t.uint32(18).string(e.family),e.style!=null&&N.hasOwnProperty.call(e,`style`)&&e.style!==``&&t.uint32(34).string(e.style),e.weightRange!=null&&N.hasOwnProperty.call(e,`weightRange`)&&e.weightRange!==``&&t.uint32(42).string(e.weightRange),e.unicodeRange!=null&&N.hasOwnProperty.call(e,`unicodeRange`)&&e.unicodeRange!==``&&t.uint32(50).string(e.unicodeRange),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.FontFace,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.url=s:delete o.url;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.family=s:delete o.family;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.weightRange=s:delete o.weightRange;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.style=s:delete o.style;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.unicodeRange=s:delete o.unicodeRange;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.FontFace)return e;if(!M.isObject(e))throw I(`.FontFace: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.FontFace;return e.url!=null&&(typeof e.url!=`string`||e.url.length)&&(n.url=L(e.url)),e.family!=null&&(typeof e.family!=`string`||e.family.length)&&(n.family=L(e.family)),e.weightRange!=null&&(typeof e.weightRange!=`string`||e.weightRange.length)&&(n.weightRange=L(e.weightRange)),e.style!=null&&(typeof e.style!=`string`||e.style.length)&&(n.style=L(e.style)),e.unicodeRange!=null&&(typeof e.unicodeRange!=`string`||e.unicodeRange.length)&&(n.unicodeRange=L(e.unicodeRange)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.url=``,r.family=``,r.style=``,r.weightRange=``,r.unicodeRange=``),e.url!=null&&N.hasOwnProperty.call(e,`url`)&&(r.url=e.url),e.family!=null&&N.hasOwnProperty.call(e,`family`)&&(r.family=e.family),e.style!=null&&N.hasOwnProperty.call(e,`style`)&&(r.style=e.style),e.weightRange!=null&&N.hasOwnProperty.call(e,`weightRange`)&&(r.weightRange=e.weightRange),e.unicodeRange!=null&&N.hasOwnProperty.call(e,`unicodeRange`)&&(r.unicodeRange=e.unicodeRange),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/FontFace`},e})(),W.FontSource=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.configName=``,e.prototype.sourceUrl=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.configName!=null&&N.hasOwnProperty.call(e,`configName`)&&e.configName!==``&&t.uint32(10).string(e.configName),e.sourceUrl!=null&&N.hasOwnProperty.call(e,`sourceUrl`)&&e.sourceUrl!==``&&t.uint32(18).string(e.sourceUrl),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.FontSource,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.configName=s:delete o.configName;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.sourceUrl=s:delete o.sourceUrl;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.FontSource)return e;if(!M.isObject(e))throw I(`.FontSource: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.FontSource;return e.configName!=null&&(typeof e.configName!=`string`||e.configName.length)&&(n.configName=L(e.configName)),e.sourceUrl!=null&&(typeof e.sourceUrl!=`string`||e.sourceUrl.length)&&(n.sourceUrl=L(e.sourceUrl)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.configName=``,r.sourceUrl=``),e.configName!=null&&N.hasOwnProperty.call(e,`configName`)&&(r.configName=e.configName),e.sourceUrl!=null&&N.hasOwnProperty.call(e,`sourceUrl`)&&(r.sourceUrl=e.sourceUrl),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/FontSource`},e})(),W.UserInfo=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.installationId=``,e.prototype.installationIdV3=``,e.prototype.installationIdV4=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.installationId!=null&&N.hasOwnProperty.call(e,`installationId`)&&e.installationId!==``&&t.uint32(10).string(e.installationId),e.installationIdV3!=null&&N.hasOwnProperty.call(e,`installationIdV3`)&&e.installationIdV3!==``&&t.uint32(42).string(e.installationIdV3),e.installationIdV4!=null&&N.hasOwnProperty.call(e,`installationIdV4`)&&e.installationIdV4!==``&&t.uint32(50).string(e.installationIdV4),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.UserInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.installationId=s:delete o.installationId;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.installationIdV3=s:delete o.installationIdV3;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.installationIdV4=s:delete o.installationIdV4;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.UserInfo)return e;if(!M.isObject(e))throw I(`.UserInfo: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.UserInfo;return e.installationId!=null&&(typeof e.installationId!=`string`||e.installationId.length)&&(n.installationId=L(e.installationId)),e.installationIdV3!=null&&(typeof e.installationIdV3!=`string`||e.installationIdV3.length)&&(n.installationIdV3=L(e.installationIdV3)),e.installationIdV4!=null&&(typeof e.installationIdV4!=`string`||e.installationIdV4.length)&&(n.installationIdV4=L(e.installationIdV4)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.installationId=``,r.installationIdV3=``,r.installationIdV4=``),e.installationId!=null&&N.hasOwnProperty.call(e,`installationId`)&&(r.installationId=e.installationId),e.installationIdV3!=null&&N.hasOwnProperty.call(e,`installationIdV3`)&&(r.installationIdV3=e.installationIdV3),e.installationIdV4!=null&&N.hasOwnProperty.call(e,`installationIdV4`)&&(r.installationIdV4=e.installationIdV4),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/UserInfo`},e})(),W.EnvironmentInfo=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.streamlitVersion=``,e.prototype.pythonVersion=``,e.prototype.serverOs=``,e.prototype.hasDisplay=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.streamlitVersion!=null&&N.hasOwnProperty.call(e,`streamlitVersion`)&&e.streamlitVersion!==``&&t.uint32(10).string(e.streamlitVersion),e.pythonVersion!=null&&N.hasOwnProperty.call(e,`pythonVersion`)&&e.pythonVersion!==``&&t.uint32(18).string(e.pythonVersion),e.serverOs!=null&&N.hasOwnProperty.call(e,`serverOs`)&&e.serverOs!==``&&t.uint32(26).string(e.serverOs),e.hasDisplay!=null&&N.hasOwnProperty.call(e,`hasDisplay`)&&e.hasDisplay!==!1&&t.uint32(32).bool(e.hasDisplay),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.EnvironmentInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.streamlitVersion=s:delete o.streamlitVersion;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.pythonVersion=s:delete o.pythonVersion;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.serverOs=s:delete o.serverOs;continue;case 4:if(a!==0)break;(s=e.bool())?o.hasDisplay=s:delete o.hasDisplay;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.EnvironmentInfo)return e;if(!M.isObject(e))throw I(`.EnvironmentInfo: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.EnvironmentInfo;return e.streamlitVersion!=null&&(typeof e.streamlitVersion!=`string`||e.streamlitVersion.length)&&(n.streamlitVersion=L(e.streamlitVersion)),e.pythonVersion!=null&&(typeof e.pythonVersion!=`string`||e.pythonVersion.length)&&(n.pythonVersion=L(e.pythonVersion)),e.serverOs!=null&&(typeof e.serverOs!=`string`||e.serverOs.length)&&(n.serverOs=L(e.serverOs)),e.hasDisplay!=null&&e.hasDisplay&&(n.hasDisplay=R(e.hasDisplay)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.streamlitVersion=``,r.pythonVersion=``,r.serverOs=``,r.hasDisplay=!1),e.streamlitVersion!=null&&N.hasOwnProperty.call(e,`streamlitVersion`)&&(r.streamlitVersion=e.streamlitVersion),e.pythonVersion!=null&&N.hasOwnProperty.call(e,`pythonVersion`)&&(r.pythonVersion=e.pythonVersion),e.serverOs!=null&&N.hasOwnProperty.call(e,`serverOs`)&&(r.serverOs=e.serverOs),e.hasDisplay!=null&&N.hasOwnProperty.call(e,`hasDisplay`)&&(r.hasDisplay=e.hasDisplay),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/EnvironmentInfo`},e})(),W.SessionStatus=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.runOnSave=!1,e.prototype.scriptIsRunning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.runOnSave!=null&&N.hasOwnProperty.call(e,`runOnSave`)&&e.runOnSave!==!1&&t.uint32(8).bool(e.runOnSave),e.scriptIsRunning!=null&&N.hasOwnProperty.call(e,`scriptIsRunning`)&&e.scriptIsRunning!==!1&&t.uint32(16).bool(e.scriptIsRunning),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.SessionStatus,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.runOnSave=s:delete o.runOnSave;continue;case 2:if(a!==0)break;(s=e.bool())?o.scriptIsRunning=s:delete o.scriptIsRunning;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.SessionStatus)return e;if(!M.isObject(e))throw I(`.SessionStatus: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.SessionStatus;return e.runOnSave!=null&&e.runOnSave&&(n.runOnSave=R(e.runOnSave)),e.scriptIsRunning!=null&&e.scriptIsRunning&&(n.scriptIsRunning=R(e.scriptIsRunning)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.runOnSave=!1,r.scriptIsRunning=!1),e.runOnSave!=null&&N.hasOwnProperty.call(e,`runOnSave`)&&(r.runOnSave=e.runOnSave),e.scriptIsRunning!=null&&N.hasOwnProperty.call(e,`scriptIsRunning`)&&(r.scriptIsRunning=e.scriptIsRunning),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/SessionStatus`},e})();var je=W.PageConfig=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.title=``,e.prototype.favicon=``,e.prototype.layout=0,e.prototype.initialSidebarState=0,e.prototype.menuItems=null,e.prototype.initialSidebarWidth=null;let t;return N.defineProperty(e.prototype,`_initialSidebarWidth`,{get:M.oneOfGetter(t=[`initialSidebarWidth`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.title!=null&&N.hasOwnProperty.call(e,`title`)&&e.title!==``&&t.uint32(10).string(e.title),e.favicon!=null&&N.hasOwnProperty.call(e,`favicon`)&&e.favicon!==``&&t.uint32(18).string(e.favicon),e.layout!=null&&N.hasOwnProperty.call(e,`layout`)&&e.layout!==0&&t.uint32(24).int32(e.layout),e.initialSidebarState!=null&&N.hasOwnProperty.call(e,`initialSidebarState`)&&e.initialSidebarState!==0&&t.uint32(32).int32(e.initialSidebarState),e.menuItems!=null&&N.hasOwnProperty.call(e,`menuItems`)&&W.PageConfig.MenuItems.encode(e.menuItems,t.uint32(42).fork(),n+1).ldelim(),e.initialSidebarWidth!=null&&N.hasOwnProperty.call(e,`initialSidebarWidth`)&&W.PageConfig.SidebarWidthConfig.encode(e.initialSidebarWidth,t.uint32(50).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.PageConfig,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.title=s:delete o.title;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.favicon=s:delete o.favicon;continue;case 3:if(a!==0)break;(s=e.int32())?o.layout=s:delete o.layout;continue;case 4:if(a!==0)break;(s=e.int32())?o.initialSidebarState=s:delete o.initialSidebarState;continue;case 5:if(a!==2)break;o.menuItems=W.PageConfig.MenuItems.decode(e,e.uint32(),P,r+1,o.menuItems);continue;case 6:if(a!==2)break;o.initialSidebarWidth=W.PageConfig.SidebarWidthConfig.decode(e,e.uint32(),P,r+1,o.initialSidebarWidth),o._initialSidebarWidth=`initialSidebarWidth`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.PageConfig)return e;if(!M.isObject(e))throw I(`.PageConfig: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.PageConfig;if(e.title!=null&&(typeof e.title!=`string`||e.title.length)&&(n.title=L(e.title)),e.favicon!=null&&(typeof e.favicon!=`string`||e.favicon.length)&&(n.favicon=L(e.favicon)),e.layout!==0&&(typeof e.layout!=`string`||W.PageConfig.Layout[e.layout]!==0))switch(e.layout){case`CENTERED`:case 0:n.layout=0;break;case`WIDE`:case 1:n.layout=1;break
1;case`LAYOUT_UNSET`:case 2:n.layout=2;break;default:typeof e.layout==`number`&&(e.layout|0)===e.layout&&(n.layout=e.layout)}if(e.initialSidebarState!==0&&(typeof e.initialSidebarState!=`string`||W.PageConfig.SidebarState[e.initialSidebarState]!==0))switch(e.initialSidebarState){case`AUTO`:case 0:n.initialSidebarState=0;break;case`EXPANDED`:case 1:n.initialSidebarState=1;break;case`COLLAPSED`:case 2:n.initialSidebarState=2;break;case`SIDEBAR_UNSET`:case 3:n.initialSidebarState=3;break;case`LOCKED`:case 4:n.initialSidebarState=4;break;default:typeof e.initialSidebarState==`number`&&(e.initialSidebarState|0)===e.initialSidebarState&&(n.initialSidebarState=e.initialSidebarState)}if(e.menuItems!=null){if(!M.isObject(e.menuItems))throw I(`.PageConfig.menuItems: object expected`);n.menuItems=W.PageConfig.MenuItems.fromObject(e.menuItems,t+1)}if(e.initialSidebarWidth!=null){if(!M.isObject(e.initialSidebarWidth))throw I(`.PageConfig.initialSidebarWidth: object expected`);n.initialSidebarWidth=W.PageConfig.SidebarWidthConfig.fromObject(e.initialSidebarWidth,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.title=``,r.favicon=``,r.layout=t.enums===L?`CENTERED`:0,r.initialSidebarState=t.enums===L?`AUTO`:0,r.menuItems=null),e.title!=null&&N.hasOwnProperty.call(e,`title`)&&(r.title=e.title),e.favicon!=null&&N.hasOwnProperty.call(e,`favicon`)&&(r.favicon=e.favicon),e.layout!=null&&N.hasOwnProperty.call(e,`layout`)&&(r.layout=t.enums===L?W.PageConfig.Layout[e.layout]===P?e.layout:W.PageConfig.Layout[e.layout]:e.layout),e.initialSidebarState!=null&&N.hasOwnProperty.call(e,`initialSidebarState`)&&(r.initialSidebarState=t.enums===L?W.PageConfig.SidebarState[e.initialSidebarState]===P?e.initialSidebarState:W.PageConfig.SidebarState[e.initialSidebarState]:e.initialSidebarState),e.menuItems!=null&&N.hasOwnProperty.call(e,`menuItems`)&&(r.menuItems=W.PageConfig.MenuItems.toObject(e.menuItems,t,n+1)),e.initialSidebarWidth!=null&&N.hasOwnProperty.call(e,`initialSidebarWidth`)&&(r.initialSidebarWidth=W.PageConfig.SidebarWidthConfig.toObject(e.initialSidebarWidth,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/PageConfig`},e.MenuItems=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.getHelpUrl=``,e.prototype.hideGetHelp=!1,e.prototype.reportABugUrl=``,e.prototype.hideReportABug=!1,e.prototype.aboutSectionMd=``,e.prototype.clearAboutMd=!1,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.getHelpUrl!=null&&N.hasOwnProperty.call(e,`getHelpUrl`)&&e.getHelpUrl!==``&&t.uint32(10).string(e.getHelpUrl),e.hideGetHelp!=null&&N.hasOwnProperty.call(e,`hideGetHelp`)&&e.hideGetHelp!==!1&&t.uint32(16).bool(e.hideGetHelp),e.reportABugUrl!=null&&N.hasOwnProperty.call(e,`reportABugUrl`)&&e.reportABugUrl!==``&&t.uint32(26).string(e.reportABugUrl),e.hideReportABug!=null&&N.hasOwnProperty.call(e,`hideReportABug`)&&e.hideReportABug!==!1&&t.uint32(32).bool(e.hideReportABug),e.aboutSectionMd!=null&&N.hasOwnProperty.call(e,`aboutSectionMd`)&&e.aboutSectionMd!==``&&t.uint32(42).string(e.aboutSectionMd),e.clearAboutMd!=null&&N.hasOwnProperty.call(e,`clearAboutMd`)&&e.clearAboutMd!==!1&&t.uint32(48).bool(e.clearAboutMd),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.PageConfig.MenuItems,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.getHelpUrl=s:delete o.getHelpUrl;continue;case 2:if(a!==0)break;(s=e.bool())?o.hideGetHelp=s:delete o.hideGetHelp;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.reportABugUrl=s:delete o.reportABugUrl;continue;case 4:if(a!==0)break;(s=e.bool())?o.hideReportABug=s:delete o.hideReportABug;continue;case 5:if(a!==2)break;(s=e.stringVerify()).length?o.aboutSectionMd=s:delete o.aboutSectionMd;continue;case 6:if(a!==0)break;(s=e.bool())?o.clearAboutMd=s:delete o.clearAboutMd;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.PageConfig.MenuItems)return e;if(!M.isObject(e))throw I(`.PageConfig.MenuItems: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.PageConfig.MenuItems;return e.getHelpUrl!=null&&(typeof e.getHelpUrl!=`string`||e.getHelpUrl.length)&&(n.getHelpUrl=L(e.getHelpUrl)),e.hideGetHelp!=null&&e.hideGetHelp&&(n.hideGetHelp=R(e.hideGetHelp)),e.reportABugUrl!=null&&(typeof e.reportABugUrl!=`string`||e.reportABugUrl.length)&&(n.reportABugUrl=L(e.reportABugUrl)),e.hideReportABug!=null&&e.hideReportABug&&(n.hideReportABug=R(e.hideReportABug)),e.aboutSectionMd!=null&&(typeof e.aboutSectionMd!=`string`||e.aboutSectionMd.length)&&(n.aboutSectionMd=L(e.aboutSectionMd)),e.clearAboutMd!=null&&e.clearAboutMd&&(n.clearAboutMd=R(e.clearAboutMd)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.getHelpUrl=``,r.hideGetHelp=!1,r.reportABugUrl=``,r.hideReportABug=!1,r.aboutSectionMd=``,r.clearAboutMd=!1),e.getHelpUrl!=null&&N.hasOwnProperty.call(e,`getHelpUrl`)&&(r.getHelpUrl=e.getHelpUrl),e.hideGetHelp!=null&&N.hasOwnProperty.call(e,`hideGetHelp`)&&(r.hideGetHelp=e.hideGetHelp),e.reportABugUrl!=null&&N.hasOwnProperty.call(e,`reportABugUrl`)&&(r.reportABugUrl=e.reportABugUrl),e.hideReportABug!=null&&N.hasOwnProperty.call(e,`hideReportABug`)&&(r.hideReportABug=e.hideReportABug),e.aboutSectionMd!=null&&N.hasOwnProperty.call(e,`aboutSectionMd`)&&(r.aboutSectionMd=e.aboutSectionMd),e.clearAboutMd!=null&&N.hasOwnProperty.call(e,`clearAboutMd`)&&(r.clearAboutMd=e.clearAboutMd),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/PageConfig.MenuItems`},e})(),e.Layout=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`CENTERED`]=0,t[e[1]=`WIDE`]=1,t[e[2]=`LAYOUT_UNSET`]=2,t})(),e.SidebarState=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`AUTO`]=0,t[e[1]=`EXPANDED`]=1,t[e[2]=`COLLAPSED`]=2,t[e[3]=`SIDEBAR_UNSET`]=3,t[e[4]=`LOCKED`]=4,t})(),e.SidebarWidthConfig=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.pixelWidth=null;let t;return N.defineProperty(e.prototype,`widthSpec`,{get:M.oneOfGetter(t=[`pixelWidth`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.pixelWidth!=null&&N.hasOwnProperty.call(e,`pixelWidth`)&&t.uint32(8).uint32(e.pixelWidth),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.PageConfig.SidebarWidthConfig;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.pixelWidth=e.uint32(),o.widthSpec=`pixelWidth`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.PageConfig.SidebarWidthConfig)return e;if(!M.isObject(e))throw I(`.PageConfig.SidebarWidthConfig: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.PageConfig.SidebarWidthConfig;return e.pixelWidth!=null&&(n.pixelWidth=e.pixelWidth>>>0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.pixelWidth!=null&&N.hasOwnProperty.call(e,`pixelWidth`)&&(r.pixelWidth=e.pixelWidth,t.oneofs&&(r.widthSpec=`pixelWidth`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/PageConfig.SidebarWidthConfig`},e})(),e})();W.PageInfo=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.queryString=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.queryString!=null&&N.hasOwnProperty.call(e,`queryString`)&&e.queryString!==``&&t.uint32(10).string(e.queryString),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.PageInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.queryString=s:delete o.queryString;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.PageInfo)return e;if(!M.isObject(e))throw I(`.PageInfo: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.PageInfo;return e.queryString!=null&&(typeof e.queryString!=`string`||e.queryString.length)&&(n.queryString=L(e.queryString)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.queryString=``),e.queryString!=null&&N.hasOwnProperty.call(e,`queryString`)&&(r.queryString=e.queryString),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/PageInfo`},e})(),W.PageNotFound=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.pageName=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.pageName!=null&&N.hasOwnProperty.call(e,`pageName`)&&e.pageName!==``&&t.uint32(10).string(e.pageName),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.PageNotFound,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.pageName=s:delete o.pageName;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.PageNotFound)return e;if(!M.isObject(e))throw I(`.PageNotFound: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.PageNotFound;return e.pageName!=null&&(typeof e.pageName!=`string`||e.pageName.length)&&(n.pageName=L(e.pageName)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.pageName=``),e.pageName!=null&&N.hasOwnProperty.call(e,`pageName`)&&(r.pageName=e.pageName),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/PageNotFound`},e})();var Me=W.PageProfile=(()=>{let e=function(e){if(this.commands=[],this.config=[],this.attributions=[],this.installedSkills=[],this.installedAgents=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.commands=M.emptyArray,e.prototype.execTime=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.prepTime=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.config=M.emptyArray,e.prototype.uncaughtException=``,e.prototype.attributions=M.emptyArray,e.prototype.os=``,e.prototype.timezone=``,e.prototype.headless=!1,e.prototype.isFragmentRun=!1,e.prototype.serverMode=``,e.prototype.installedSkills=M.emptyArray,e.prototype.installedAgents=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.commands!=null&&e.commands.length)for(let r=0;r<e.commands.length;++r)W.Command.encode(e.commands[r],t.uint32(10).fork(),n+1).ldelim();if(e.execTime!=null&&N.hasOwnProperty.call(e,`execTime`)&&(typeof e.execTime==`object`?e.execTime.low||e.execTime.high:e.execTime!==0)&&t.uint32(16).int64(e.execTime),e.prepTime!=null&&N.hasOwnProperty.call(e,`prepTime`)&&(typeof e.prepTime==`object`?e.prepTime.low||e.prepTime.high:e.prepTime!==0)&&t.uint32(24).int64(e.prepTime),e.config!=null&&e.config.length)for(let n=0;n<e.config.length;++n)t.uint32(42).string(e.config[n]);if(e.uncaughtException!=null&&N.hasOwnProperty.call(e,`uncaughtException`)&&e.uncaughtException!==``&&t.uint32(50).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let n=0;n<e.attributions.length;++n)t.uint32(58).string(e.attributions[n]);if(e.os!=null&&N.hasOwnProperty.call(e,`os`)&&e.os!==``&&t.uint32(66).string(e.os),e.t
1imezone!=null&&N.hasOwnProperty.call(e,`timezone`)&&e.timezone!==``&&t.uint32(74).string(e.timezone),e.headless!=null&&N.hasOwnProperty.call(e,`headless`)&&e.headless!==!1&&t.uint32(80).bool(e.headless),e.isFragmentRun!=null&&N.hasOwnProperty.call(e,`isFragmentRun`)&&e.isFragmentRun!==!1&&t.uint32(88).bool(e.isFragmentRun),e.serverMode!=null&&N.hasOwnProperty.call(e,`serverMode`)&&e.serverMode!==``&&t.uint32(98).string(e.serverMode),e.installedSkills!=null&&e.installedSkills.length)for(let n=0;n<e.installedSkills.length;++n)t.uint32(106).string(e.installedSkills[n]);if(e.installedAgents!=null&&e.installedAgents.length)for(let n=0;n<e.installedAgents.length;++n)t.uint32(114).string(e.installedAgents[n]);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.PageProfile,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.commands&&o.commands.length||(o.commands=[]),o.commands.push(W.Command.decode(e,e.uint32(),P,r+1));continue;case 2:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.execTime=s:delete o.execTime;continue;case 3:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.prepTime=s:delete o.prepTime;continue;case 5:if(a!==2)break;o.config&&o.config.length||(o.config=[]),o.config.push(e.stringVerify());continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.uncaughtException=s:delete o.uncaughtException;continue;case 7:if(a!==2)break;o.attributions&&o.attributions.length||(o.attributions=[]),o.attributions.push(e.stringVerify());continue;case 8:if(a!==2)break;(s=e.stringVerify()).length?o.os=s:delete o.os;continue;case 9:if(a!==2)break;(s=e.stringVerify()).length?o.timezone=s:delete o.timezone;continue;case 10:if(a!==0)break;(s=e.bool())?o.headless=s:delete o.headless;continue;case 11:if(a!==0)break;(s=e.bool())?o.isFragmentRun=s:delete o.isFragmentRun;continue;case 12:if(a!==2)break;(s=e.stringVerify()).length?o.serverMode=s:delete o.serverMode;continue;case 13:if(a!==2)break;o.installedSkills&&o.installedSkills.length||(o.installedSkills=[]),o.installedSkills.push(e.stringVerify());continue;case 14:if(a!==2)break;o.installedAgents&&o.installedAgents.length||(o.installedAgents=[]),o.installedAgents.push(e.stringVerify());continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.PageProfile)return e;if(!M.isObject(e))throw I(`.PageProfile: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.PageProfile;if(e.commands){if(!V.isArray(e.commands))throw I(`.PageProfile.commands: array expected`);n.commands=V(e.commands.length);for(let r=0;r<e.commands.length;++r){if(!M.isObject(e.commands[r]))throw I(`.PageProfile.commands: object expected`);n.commands[r]=W.Command.fromObject(e.commands[r],t+1)}}if(e.execTime!=null&&(typeof e.execTime==`object`?e.execTime.low||e.execTime.high:z(e.execTime)!==0)&&(M.Long?n.execTime=M.Long.fromValue(e.execTime,!1):typeof e.execTime==`string`?n.execTime=H(e.execTime,10):typeof e.execTime==`number`?n.execTime=e.execTime:typeof e.execTime==`object`&&(n.execTime=new M.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),e.prepTime!=null&&(typeof e.prepTime==`object`?e.prepTime.low||e.prepTime.high:z(e.prepTime)!==0)&&(M.Long?n.prepTime=M.Long.fromValue(e.prepTime,!1):typeof e.prepTime==`string`?n.prepTime=H(e.prepTime,10):typeof e.prepTime==`number`?n.prepTime=e.prepTime:typeof e.prepTime==`object`&&(n.prepTime=new M.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!V.isArray(e.config))throw I(`.PageProfile.config: array expected`);n.config=V(e.config.length);for(let t=0;t<e.config.length;++t)n.config[t]=L(e.config[t])}if(e.uncaughtException!=null&&(typeof e.uncaughtException!=`string`||e.uncaughtException.length)&&(n.uncaughtException=L(e.uncaughtException)),e.attributions){if(!V.isArray(e.attributions))throw I(`.PageProfile.attributions: array expected`);n.attributions=V(e.attributions.length);for(let t=0;t<e.attributions.length;++t)n.attributions[t]=L(e.attributions[t])}if(e.os!=null&&(typeof e.os!=`string`||e.os.length)&&(n.os=L(e.os)),e.timezone!=null&&(typeof e.timezone!=`string`||e.timezone.length)&&(n.timezone=L(e.timezone)),e.headless!=null&&e.headless&&(n.headless=R(e.headless)),e.isFragmentRun!=null&&e.isFragmentRun&&(n.isFragmentRun=R(e.isFragmentRun)),e.serverMode!=null&&(typeof e.serverMode!=`string`||e.serverMode.length)&&(n.serverMode=L(e.serverMode)),e.installedSkills){if(!V.isArray(e.installedSkills))throw I(`.PageProfile.installedSkills: array expected`);n.installedSkills=V(e.installedSkills.length);for(let t=0;t<e.installedSkills.length;++t)n.installedSkills[t]=L(e.installedSkills[t])}if(e.installedAgents){if(!V.isArray(e.installedAgents))throw I(`.PageProfile.installedAgents: array expected`);n.installedAgents=V(e.installedAgents.length);for(let t=0;t<e.installedAgents.length;++t)n.installedAgents[t]=L(e.installedAgents[t])}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.commands=[],r.config=[],r.attributions=[],r.installedSkills=[],r.installedAgents=[]),t.defaults){if(M.Long){let e=new M.Long(0,0,!1);r.execTime=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.execTime=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;if(M.Long){let e=new M.Long(0,0,!1);r.prepTime=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.prepTime=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;r.uncaughtException=``,r.os=``,r.timezone=``,r.headless=!1,r.isFragmentRun=!1,r.serverMode=``}if(e.commands&&e.commands.length){r.commands=V(e.commands.length);for(let i=0;i<e.commands.length;++i)r.commands[i]=W.Command.toObject(e.commands[i],t,n+1)}if(e.execTime!=null&&N.hasOwnProperty.call(e,`execTime`)&&(U!==void 0&&t.longs===U?r.execTime=typeof e.execTime==`number`?U(e.execTime):M.Long.fromBits(e.execTime.low>>>0,e.execTime.high>
1>>0,!1).toBigInt():typeof e.execTime==`number`?r.execTime=t.longs===L?L(e.execTime):e.execTime:r.execTime=t.longs===L?M.Long.prototype.toString.call(e.execTime):t.longs===z?new M.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&N.hasOwnProperty.call(e,`prepTime`)&&(U!==void 0&&t.longs===U?r.prepTime=typeof e.prepTime==`number`?U(e.prepTime):M.Long.fromBits(e.prepTime.low>>>0,e.prepTime.high>>>0,!1).toBigInt():typeof e.prepTime==`number`?r.prepTime=t.longs===L?L(e.prepTime):e.prepTime:r.prepTime=t.longs===L?M.Long.prototype.toString.call(e.prepTime):t.longs===z?new M.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){r.config=V(e.config.length);for(let t=0;t<e.config.length;++t)r.config[t]=e.config[t]}if(e.uncaughtException!=null&&N.hasOwnProperty.call(e,`uncaughtException`)&&(r.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){r.attributions=V(e.attributions.length);for(let t=0;t<e.attributions.length;++t)r.attributions[t]=e.attributions[t]}if(e.os!=null&&N.hasOwnProperty.call(e,`os`)&&(r.os=e.os),e.timezone!=null&&N.hasOwnProperty.call(e,`timezone`)&&(r.timezone=e.timezone),e.headless!=null&&N.hasOwnProperty.call(e,`headless`)&&(r.headless=e.headless),e.isFragmentRun!=null&&N.hasOwnProperty.call(e,`isFragmentRun`)&&(r.isFragmentRun=e.isFragmentRun),e.serverMode!=null&&N.hasOwnProperty.call(e,`serverMode`)&&(r.serverMode=e.serverMode),e.installedSkills&&e.installedSkills.length){r.installedSkills=V(e.installedSkills.length);for(let t=0;t<e.installedSkills.length;++t)r.installedSkills[t]=e.installedSkills[t]}if(e.installedAgents&&e.installedAgents.length){r.installedAgents=V(e.installedAgents.length);for(let t=0;t<e.installedAgents.length;++t)r.installedAgents[t]=e.installedAgents[t]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/PageProfile`},e})();W.Argument=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.k=``,e.prototype.t=``,e.prototype.m=``,e.prototype.p=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.k!=null&&N.hasOwnProperty.call(e,`k`)&&e.k!==``&&t.uint32(10).string(e.k),e.t!=null&&N.hasOwnProperty.call(e,`t`)&&e.t!==``&&t.uint32(18).string(e.t),e.m!=null&&N.hasOwnProperty.call(e,`m`)&&e.m!==``&&t.uint32(26).string(e.m),e.p!=null&&N.hasOwnProperty.call(e,`p`)&&e.p!==0&&t.uint32(40).int32(e.p),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Argument,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.k=s:delete o.k;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.t=s:delete o.t;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.m=s:delete o.m;continue;case 5:if(a!==0)break;(s=e.int32())?o.p=s:delete o.p;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Argument)return e;if(!M.isObject(e))throw I(`.Argument: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Argument;return e.k!=null&&(typeof e.k!=`string`||e.k.length)&&(n.k=L(e.k)),e.t!=null&&(typeof e.t!=`string`||e.t.length)&&(n.t=L(e.t)),e.m!=null&&(typeof e.m!=`string`||e.m.length)&&(n.m=L(e.m)),e.p!=null&&z(e.p)!==0&&(n.p=e.p|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.k=``,r.t=``,r.m=``,r.p=0),e.k!=null&&N.hasOwnProperty.call(e,`k`)&&(r.k=e.k),e.t!=null&&N.hasOwnProperty.call(e,`t`)&&(r.t=e.t),e.m!=null&&N.hasOwnProperty.call(e,`m`)&&(r.m=e.m),e.p!=null&&N.hasOwnProperty.call(e,`p`)&&(r.p=e.p),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Argument`},e})(),W.Command=(()=>{let e=function(e){if(this.args=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.name=``,e.prototype.args=M.emptyArray,e.prototype.time=M.Long?M.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(10).string(e.name),e.args!=null&&e.args.length)for(let r=0;r<e.args.length;++r)W.Argument.encode(e.args[r],t.uint32(18).fork(),n+1).ldelim();if(e.time!=null&&N.hasOwnProperty.call(e,`time`)&&(typeof e.time==`object`?e.time.low||e.time.high:e.time!==0)&&t.uint32(32).int64(e.time),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.Command,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 2:if(a!==2)break;o.args&&o.args.length||(o.args=[]),o.args.push(W.Argument.decode(e,e.uint32(),P,r+1));continue;case 4:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.time=s:delete o.time;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.Command)return e;if(!M.isObject(e))throw I(`.Command: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.Command;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.args){if(!V.isArray(e.args))throw I(`.Command.args: array expected`);n.args=V(e.args.length);for(let r=0;r<e.args.length;++r){if(!M.isObject(e.args[r]))throw I(`.Command.args: object expected`);n.args[r]=W.Argument.fromObject(e.args[r],t+1)}}return e.time!=null&&(typeof e.time==`object`?e.time.low||e.time.high:z(e.time)!==0)&&(M.Long?n.time=M.Long.fromValue(e.time,!1):typeof e.time==`string`?n.time=H(e.time,10):typeof e.time==`number`?n.time=e.time:typeof e.time==`object`&&(n.time=new M.LongBits(e.time.low>>>0,e.time.high>
1>>0).toNumber())),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.args=[]),t.defaults)if(r.name=``,M.Long){let e=new M.Long(0,0,!1);r.time=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.time=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;if(e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.args&&e.args.length){r.args=V(e.args.length);for(let i=0;i<e.args.length;++i)r.args[i]=W.Argument.toObject(e.args[i],t,n+1)}return e.time!=null&&N.hasOwnProperty.call(e,`time`)&&(U!==void 0&&t.longs===U?r.time=typeof e.time==`number`?U(e.time):M.Long.fromBits(e.time.low>>>0,e.time.high>>>0,!1).toBigInt():typeof e.time==`number`?r.time=t.longs===L?L(e.time):e.time:r.time=t.longs===L?M.Long.prototype.toString.call(e.time):t.longs===z?new M.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/Command`},e})(),W.ParentMessage=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.message=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.message!=null&&N.hasOwnProperty.call(e,`message`)&&e.message!==``&&t.uint32(10).string(e.message),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.ParentMessage,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.message=s:delete o.message;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.ParentMessage)return e;if(!M.isObject(e))throw I(`.ParentMessage: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.ParentMessage;return e.message!=null&&(typeof e.message!=`string`||e.message.length)&&(n.message=L(e.message)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.message=``),e.message!=null&&N.hasOwnProperty.call(e,`message`)&&(r.message=e.message),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/ParentMessage`},e})(),W.SessionEvent=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.scriptChangedOnDisk=null,e.prototype.scriptWasManuallyStopped=null,e.prototype.scriptCompilationException=null;let t;return N.defineProperty(e.prototype,`type`,{get:M.oneOfGetter(t=[`scriptChangedOnDisk`,`scriptWasManuallyStopped`,`scriptCompilationException`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.scriptChangedOnDisk!=null&&N.hasOwnProperty.call(e,`scriptChangedOnDisk`)&&t.uint32(8).bool(e.scriptChangedOnDisk),e.scriptWasManuallyStopped!=null&&N.hasOwnProperty.call(e,`scriptWasManuallyStopped`)&&t.uint32(16).bool(e.scriptWasManuallyStopped),e.scriptCompilationException!=null&&N.hasOwnProperty.call(e,`scriptCompilationException`)&&W.Exception.encode(e.scriptCompilationException,t.uint32(26).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.SessionEvent;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;o.scriptChangedOnDisk=e.bool(),o.type=`scriptChangedOnDisk`;continue;case 2:if(a!==0)break;o.scriptWasManuallyStopped=e.bool(),o.type=`scriptWasManuallyStopped`;continue;case 3:if(a!==2)break;o.scriptCompilationException=W.Exception.decode(e,e.uint32(),P,r+1,o.scriptCompilationException),o.type=`scriptCompilationException`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.SessionEvent)return e;if(!M.isObject(e))throw I(`.SessionEvent: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.SessionEvent;if(e.scriptChangedOnDisk!=null&&(n.scriptChangedOnDisk=R(e.scriptChangedOnDisk)),e.scriptWasManuallyStopped!=null&&(n.scriptWasManuallyStopped=R(e.scriptWasManuallyStopped)),e.scriptCompilationException!=null){if(!M.isObject(e.scriptCompilationException))throw I(`.SessionEvent.scriptCompilationException: object expected`);n.scriptCompilationException=W.Exception.fromObject(e.scriptCompilationException,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.scriptChangedOnDisk!=null&&N.hasOwnProperty.call(e,`scriptChangedOnDisk`)&&(r.scriptChangedOnDisk=e.scriptChangedOnDisk,t.oneofs&&(r.type=`scriptChangedOnDisk`)),e.scriptWasManuallyStopped!=null&&N.hasOwnProperty.call(e,`scriptWasManuallyStopped`)&&(r.scriptWasManuallyStopped=e.scriptWasManuallyStopped,t.oneofs&&(r.type=`scriptWasManuallyStopped`)),e.scriptCompilationException!=null&&N.hasOwnProperty.call(e,`scriptCompilationException`)&&(r.scriptCompilationException=W.Exception.toObject(e.scriptCompilationException,t,n+1),t.oneofs&&(r.type=`scriptCompilationException`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/SessionEvent`},e})();var Ne=W.MetricsEvent=(()=>{let e=function(e){if(this.commands=[],this.config=[],this.attributions=[],this.installedSkills=[],this.installedAgents=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.event=``,e.prototype.anonymousId=``,e.prototype.machineIdV3=``,e.prototype.machineIdV4=``,e.prototype.reportHash=``,e.prototype.dev=!1,e.prototype.source=``,e.prototype.streamlitVersion=``,e.prototype.isHello=!1,e.prototype.appId=``,e.prototype.sessionId=``,e.prototype.pythonVersion=``,e.prototype.serverOs=``,e.prototype.hasDisplay=!1,e.prototype.isWebdriver=!1,e.prototype.hostedAt=``,e.prototype.owner=``,e.prototype.repo=``,e.prototype.branch=``,e.prototype.mainModule=``,e.prototype.creatorId=``,e.prototype.contextPageUrl=``,e.prototype.contextPageTitle=``,e.prototype.contextPagePath=``,e.prototype.contextPageReferrer=``,e.prototype.contextPageSearch=``,e.prototype.contextLocale=``,e.prototype.contextUserAgent=``,e.prototype.label=``,e.prototype.commands=M.emptyArray,e.prototype.execTime=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.prepTime=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.config=M.emptyArray,e.prototype.uncaughtException=``,e.prototype.attributions=M.emptyArray,e.prototype.os=``,e.prototype.timezone=``,e.prototype.headless=!1,e.prototype.isFragmentRun=!1,e.prototype.numPages=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.pageScriptHash=``,e.prototype.activeTheme=``,e.prototype.totalLoadTime=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.browserInfo=null,e.prototype.serverMode=``,e.prototype.installedSkills=M.emptyArray,e.prototype.installedAgents=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.event!=null&&N.hasOwnProperty.call(e,`event`)&&e.event!==``&&t.uint32(10).string(e.event),e.anonymousId!=null&&N.hasOwnProperty.call(e,`anonymousId`)&&e.anonymousId!==``&&t.uint32(18).string(e.anonymousId),e.machineIdV3!=null&&N.hasOwnProperty.call(e,`machineIdV3`)&&e.machineIdV3!==``&&t.uint32(26).string(e.machineIdV3),e.reportHash!=null&&N.hasOwnProperty.call(e,`reportHash`)&&e.reportHash!==``&&t.uint32(34).string(e.reportHash),e.dev!=null&&N.hasOwnProperty.call(e,`dev`)&&e.dev!==!1&&t.uint32(40).bool(e.dev),e.source!=null&&N.hasOwnProperty.call(e,`source`)&&e.source!==``&&t.uint32(50).string(e.source),e.streamlitVersion!=null&&N.hasOwnProperty.call(e,`streamlitVersion`)&&e.streamlitVersion!==``&&t.uint32(58).string(e.streamlitVersion),e.isHello!=null&&N.hasOwnProperty.call(e,`isHello`)&&e.isHello!==!1&&t.uint32(64).bool(e.isHello),e.hostedAt!=null&&N.hasOwnProperty.call(e,`hostedAt`)&&e.hostedAt!==``&&t.uint32(74).string(e.hostedAt),e.owner!=null&&N.hasOwnProperty.call(e,`owner`)&&e.owner!==``&&t.uint32(82).string(e.owner),e.repo!=null&&N.hasOwnProperty.call(e,`repo`)&&e.repo!==``&&t.uint32(90).string(e.repo),e.branch!=null&&N.hasOwnProperty.call(e,`branch`)&&e.branch!==``&&t.uint32(98).string(e.branch),e.mainModule!=null&&N.hasOwnProperty.call(e,`mainModule`)&&e.mainModule!==``&&t.uint32(106).string(e.mainModule),e.creatorId!=null&&N.hasOwnProperty.call(e,`creatorId`)&&e.creatorId!==``&&t.uint32(114).string(e.creatorId),e.contextPageUrl!=null&&N.hasOwnProperty.call(e,`contextPageUrl`)&&e.contextPageUrl!==``&&t.uint32(122).string(e.contextPageUrl),e.contextPageTitle!=null&&N.hasOwnProperty.call(e,`contextPageTitle`)&&e.contextPageTitle!==``&&t.uint32(130).string(e.contextPageTitle),e.contextPagePath!=null&&N.hasOwnProperty.call(e,`contextPagePath`)&&e.contextPagePath!==``&&t.uint32(138).string(e.contextPagePath),e.contextPageReferrer!=null&&N.hasOwnProperty.call(e,`contextPageReferrer`)&&e.contextPageReferrer!==``&&t.uint32(146).string(e.contextPageReferrer),e.contextPageSearch!=null&&N.hasOwnProperty.call(e,`contextPageSearch`)&&e.contextPageSearch!==``&&t.uint32(154).string(e.contextPageSearch),e.contextLocale!=null&&N.hasOwnProperty.call(e,`contextLocale`)&&e.contextLocale!==``&&t.uint32(162).string(e.contextLocale),e.contextUserAgent!=null&&N.hasOwnProperty.call(e,`contextUserAgent`)&&e.contextUserAgent!==``&&t.uint32(170).string(e.contextUserAgent),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&e.label!==``&&t.uint32(178).string(e.label),e.commands!=null&&e.commands.length)for(let r=0;r<e.commands.length;++r)W.Command.encode(e.commands[r],t.uint32(186).fork(),n+1).ldelim();if(e.execTime!=null&&N.hasOwnProperty.call(e,`execTime`)&&(typeof e.execTime==`object`?e.execTime.low||e.execTime.high:e.execTime!==0)&&t.uint32(192).int64(e.execTime),e.prepTime!=null&&N.hasOwnProperty.call(e,`prepTime`)&&(typeof e.prepTime==`object`?e.prepTime.low||e.prepTime.high:e.prepTime!==0)&&t.uint32(200).int64(e.prepTime),e.config!=null&&e.config.length)for(let n=0;n<e.config.length;++n)t.uint32(210).string(e.config[n]);if(e.uncaughtException!=null&&N.hasOwnProperty.call(e,`uncaughtException`)&&e.uncaughtException!==``&&t.uint32(218).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let n=0;n<e.attributions.length;++n)t.uint32(226).string(e.attributions[n]);if(e.os!=null&&N.hasOwnProperty.call(e,`os`)&&e.os!==``&&t.uint32(234).string(e.os),e.t
1imezone!=null&&N.hasOwnProperty.call(e,`timezone`)&&e.timezone!==``&&t.uint32(242).string(e.timezone),e.headless!=null&&N.hasOwnProperty.call(e,`headless`)&&e.headless!==!1&&t.uint32(248).bool(e.headless),e.isFragmentRun!=null&&N.hasOwnProperty.call(e,`isFragmentRun`)&&e.isFragmentRun!==!1&&t.uint32(256).bool(e.isFragmentRun),e.appId!=null&&N.hasOwnProperty.call(e,`appId`)&&e.appId!==``&&t.uint32(266).string(e.appId),e.numPages!=null&&N.hasOwnProperty.call(e,`numPages`)&&(typeof e.numPages==`object`?e.numPages.low||e.numPages.high:e.numPages!==0)&&t.uint32(272).int64(e.numPages),e.sessionId!=null&&N.hasOwnProperty.call(e,`sessionId`)&&e.sessionId!==``&&t.uint32(282).string(e.sessionId),e.pythonVersion!=null&&N.hasOwnProperty.call(e,`pythonVersion`)&&e.pythonVersion!==``&&t.uint32(290).string(e.pythonVersion),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&e.pageScriptHash!==``&&t.uint32(298).string(e.pageScriptHash),e.activeTheme!=null&&N.hasOwnProperty.call(e,`activeTheme`)&&e.activeTheme!==``&&t.uint32(306).string(e.activeTheme),e.totalLoadTime!=null&&N.hasOwnProperty.call(e,`totalLoadTime`)&&(typeof e.totalLoadTime==`object`?e.totalLoadTime.low||e.totalLoadTime.high:e.totalLoadTime!==0)&&t.uint32(312).int64(e.totalLoadTime),e.browserInfo!=null&&N.hasOwnProperty.call(e,`browserInfo`)&&W.BrowserInfo.encode(e.browserInfo,t.uint32(322).fork(),n+1).ldelim(),e.machineIdV4!=null&&N.hasOwnProperty.call(e,`machineIdV4`)&&e.machineIdV4!==``&&t.uint32(330).string(e.machineIdV4),e.serverOs!=null&&N.hasOwnProperty.call(e,`serverOs`)&&e.serverOs!==``&&t.uint32(338).string(e.serverOs),e.hasDisplay!=null&&N.hasOwnProperty.call(e,`hasDisplay`)&&e.hasDisplay!==!1&&t.uint32(344).bool(e.hasDisplay),e.isWebdriver!=null&&N.hasOwnProperty.call(e,`isWebdriver`)&&e.isWebdriver!==!1&&t.uint32(352).bool(e.isWebdriver),e.serverMode!=null&&N.hasOwnProperty.call(e,`serverMode`)&&e.serverMode!==``&&t.uint32(362).string(e.serverMode),e.installedSkills!=null&&e.installedSkills.length)for(let n=0;n<e.installedSkills.length;++n)t.uint32(370).string(e.installedSkills[n]);if(e.installedAgents!=null&&e.installedAgents.length)for(let n=0;n<e.installedAgents.length;++n)t.uint32(378).string(e.installedAgents[n]);if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.MetricsEvent,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.event=s:delete o.event;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.anonymousId=s:delete o.anonymousId;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.machineIdV3=s:delete o.machineIdV3;continue;case 41:if(a!==2)break;(s=e.stringVerify()).length?o.machineIdV4=s:delete o.machineIdV4;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.reportHash=s:delete o.reportHash;continue;case 5:if(a!==0)break;(s=e.bool())?o.dev=s:delete o.dev;continue;case 6:if(a!==2)break;(s=e.stringVerify()).length?o.source=s:delete o.source;continue;case 7:if(a!==2)break;(s=e.stringVerify()).length?o.streamlitVersion=s:delete o.streamlitVersion;continue;case 8:if(a!==0)break;(s=e.bool())?o.isHello=s:delete o.isHello;continue;case 33:if(a!==2)break;(s=e.stringVerify()).length?o.appId=s:delete o.appId;continue;case 35:if(a!==2)break;(s=e.stringVerify()).length?o.sessionId=s:delete o.sessionId;continue;case 36:if(a!==2)break;(s=e.stringVerify()).length?o.pythonVersion=s:delete o.pythonVersion;continue;case 42:if(a!==2)break;(s=e.stringVerify()).length?o.serverOs=s:delete o.serverOs;continue;case 43:if(a!==0)break;(s=e.bool())?o.hasDisplay=s:delete o.hasDisplay;continue;case 44:if(a!==0)break;(s=e.bool())?o.isWebdriver=s:delete o.isWebdriver;continue;case 9:if(a!==2)break;(s=e.stringVerify()).length?o.hostedAt=s:delete o.hostedAt;continue;case 10:if(a!==2)break;(s=e.stringVerify()).length?o.owner=s:delete o.owner;continue;case 11:if(a!==2)break;(s=e.stringVerify()).length?o.repo=s:delete o.repo;continue;case 12:if(a!==2)break;(s=e.stringVerify()).length?o.branch=s:delete o.branch;continue;case 13:if(a!==2)break;(s=e.stringVerify()).length?o.mainModule=s:delete o.mainModule;continue;case 14:if(a!==2)break;(s=e.stringVerify()).length?o.creatorId=s:delete o.creatorId;continue;case 15:if(a!==2)break;(s=e.stringVerify()).length?o.contextPageUrl=s:delete o.contextPageUrl;continue;case 16:if(a!==2)break;(s=e.stringVerify()).length?o.contextPageTitle=s:delete o.contextPageTitle;continue;case 17:if(a!==2)break;(s=e.stringVerify()).length?o.contextPagePath=s:delete o.contextPagePath;continue;case 18:if(a!==2)break;(s=e.stringVerify()).length?o.contextPageReferrer=s:delete o.contextPageReferrer;continue;case 19:if(a!==2)break;(s=e.stringVerify()).length?o.contextPageSearch=s:delete o.contextPageSearch;continue;case 20:if(a!==2)break;(s=e.stringVerify()).length?o.contextLocale=s:delete o.contextLocale;continue;case 21:if(a!==2)break;(s=e.stringVerify()).length?o.contextUserAgent=s:delete o.contextUserAgent;continue;case 22:if(a!==2)break;(s=e.stringVerify()).length?o.label=s:delete o.label;continue;case 23:if(a!==2)break;o.commands&&o.commands.length||(o.commands=[]),o.commands.push(W.Command.decode(e,e.uint32(),P,r+1));continue;case 24:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.execTime=s:delete o.execTime;continue;case 25:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.prepTime=s:delete o.prepTime;continue;case 26:if(a!==2)break;o.config&&o.config.length||(o.config=[]),o.config.push(e.stringVerify());continue;case 27:if(a!==2)break;(s=e.stringVerify()).length?o.uncaughtException=s:delete o.uncaughtException;continue;case 28:if(a!==2)break;o.attributions&&o.attributions.length||(o.attributions=[]),o.attributions.push(e.stringVerify());continue;case 29:if(a!==2)break;(s=e.stringVerify()).length?o.os=s:delete o.os;continue;case 30:if(a!==2)break;(s=e.stringVerify()).length?o.timezone=s:delete o.timezone;continue;case 31:if(a!==0)break;(s=e.bool())?o.headless=s:delete o.headless;continue;case 32:if(a!==0)break;(s=e.bool())?o.isFragmentRun=s:delete o.isFragmentRun;continue;case 34:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.numPages=s:delete o.numPages;continue;case 37:if(a!==2)break;(s=e.stringVerify()).length?o.pageScriptHash=s:delete o.pageScriptHash;continue;case 38:if(a!==2)break;(s=e.stringVerify()).length?o.activeTheme=s:delete o.activeTheme;continue;case 39:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.totalLoadTime=s:delete o.totalLoadTime;continue;case 40:if(a!==2)break;o.browserInfo=W.BrowserInfo.decode(e,e.uint32(),P,r+1,o.browserInfo);continue;case 45:if(a!==2)break;(s=e.stringVerify()).length?o.serverMode=s:delete o.serverMode;continue;case 46:if(a!==2)break;o.installedSkills&&o.installedSkills.length||(o.installedSkills=[]),o.installedSkills.push(e.stringVerify());continue;case 47:if(a!==2)break;o.installedAgents&&o.installedAgents.length||(o.installedAgents=[]),o.installedAgents.push(e.stringVerify());continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.MetricsEvent)return e;if(!M.isObject(e))throw I(`.MetricsEvent: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.MetricsEvent;if(e.event!=null&&(typeof e.event!=`string`||e.event.length)&&(n.event=L(e.event)),e.anonymousId!=null&&(typeof e.anonymousId!=`string`||e.anonymousId.length)&&(n.anonymousId=L(e.anonymousId)),e.machineIdV3!=null&&(typeof e.machineIdV3!=`string`||e.machineIdV3.length)&&(n.machineIdV3=L(e.machineIdV3)),e.machineIdV4!=null&&(typeof e.machineIdV4!=`string`||e.machineIdV4.length)&&(n.machineIdV4=L(e.machineIdV4)),e.reportHash!=null&&(typeof e.reportHash!=`string`||e.reportHash.length)&&(n.reportHash=L(e.reportHash)),e.dev!=null&&e.dev&&(n.dev=R(e.dev)),e.source!=null&&(typeof e.source!=`string`||e.source.length)&&(n.source=L(e.source)),e.streamlitVersion!=null&&(typeof e.streamlitVersion!=`string`||e.streamlitVersion.length)&&(n.streamlitVersion=L(e.streamlitVersion)),e.isHello!=null&&e.isHello&&(n.isHello=R(e.isHello)),e.appId!=null&&(typeof e.appId!=`string`||e.appId.length)&&(n.appI
1d=L(e.appId)),e.sessionId!=null&&(typeof e.sessionId!=`string`||e.sessionId.length)&&(n.sessionId=L(e.sessionId)),e.pythonVersion!=null&&(typeof e.pythonVersion!=`string`||e.pythonVersion.length)&&(n.pythonVersion=L(e.pythonVersion)),e.serverOs!=null&&(typeof e.serverOs!=`string`||e.serverOs.length)&&(n.serverOs=L(e.serverOs)),e.hasDisplay!=null&&e.hasDisplay&&(n.hasDisplay=R(e.hasDisplay)),e.isWebdriver!=null&&e.isWebdriver&&(n.isWebdriver=R(e.isWebdriver)),e.hostedAt!=null&&(typeof e.hostedAt!=`string`||e.hostedAt.length)&&(n.hostedAt=L(e.hostedAt)),e.owner!=null&&(typeof e.owner!=`string`||e.owner.length)&&(n.owner=L(e.owner)),e.repo!=null&&(typeof e.repo!=`string`||e.repo.length)&&(n.repo=L(e.repo)),e.branch!=null&&(typeof e.branch!=`string`||e.branch.length)&&(n.branch=L(e.branch)),e.mainModule!=null&&(typeof e.mainModule!=`string`||e.mainModule.length)&&(n.mainModule=L(e.mainModule)),e.creatorId!=null&&(typeof e.creatorId!=`string`||e.creatorId.length)&&(n.creatorId=L(e.creatorId)),e.contextPageUrl!=null&&(typeof e.contextPageUrl!=`string`||e.contextPageUrl.length)&&(n.contextPageUrl=L(e.contextPageUrl)),e.contextPageTitle!=null&&(typeof e.contextPageTitle!=`string`||e.contextPageTitle.length)&&(n.contextPageTitle=L(e.contextPageTitle)),e.contextPagePath!=null&&(typeof e.contextPagePath!=`string`||e.contextPagePath.length)&&(n.contextPagePath=L(e.contextPagePath)),e.contextPageReferrer!=null&&(typeof e.contextPageReferrer!=`string`||e.contextPageReferrer.length)&&(n.contextPageReferrer=L(e.contextPageReferrer)),e.contextPageSearch!=null&&(typeof e.contextPageSearch!=`string`||e.contextPageSearch.length)&&(n.contextPageSearch=L(e.contextPageSearch)),e.contextLocale!=null&&(typeof e.contextLocale!=`string`||e.contextLocale.length)&&(n.contextLocale=L(e.contextLocale)),e.contextUserAgent!=null&&(typeof e.contextUserAgent!=`string`||e.contextUserAgent.length)&&(n.contextUserAgent=L(e.contextUserAgent)),e.label!=null&&(typeof e.label!=`string`||e.label.length)&&(n.label=L(e.label)),e.commands){if(!V.isArray(e.commands))throw I(`.MetricsEvent.commands: array expected`);n.commands=V(e.commands.length);for(let r=0;r<e.commands.length;++r){if(!M.isObject(e.commands[r]))throw I(`.MetricsEvent.commands: object expected`);n.commands[r]=W.Command.fromObject(e.commands[r],t+1)}}if(e.execTime!=null&&(typeof e.execTime==`object`?e.execTime.low||e.execTime.high:z(e.execTime)!==0)&&(M.Long?n.execTime=M.Long.fromValue(e.execTime,!1):typeof e.execTime==`string`?n.execTime=H(e.execTime,10):typeof e.execTime==`number`?n.execTime=e.execTime:typeof e.execTime==`object`&&(n.execTime=new M.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),e.prepTime!=null&&(typeof e.prepTime==`object`?e.prepTime.low||e.prepTime.high:z(e.prepTime)!==0)&&(M.Long?n.prepTime=M.Long.fromValue(e.prepTime,!1):typeof e.prepTime==`string`?n.prepTime=H(e.prepTime,10):typeof e.prepTime==`number`?n.prepTime=e.prepTime:typeof e.prepTime==`object`&&(n.prepTime=new M.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!V.isArray(e.config))throw I(`.MetricsEvent.config: array expected`);n.config=V(e.config.length);for(let t=0;t<e.config.length;++t)n.config[t]=L(e.config[t])}if(e.uncaughtException!=null&&(typeof e.uncaughtException!=`string`||e.uncaughtException.length)&&(n.uncaughtException=L(e.uncaughtException)),e.attributions){if(!V.isArray(e.attributions))throw I(`.MetricsEvent.attributions: array expected`);n.attributions=V(e.attributions.length);for(let t=0;t<e.attributions.length;++t)n.attributions[t]=L(e.attributions[t])}if(e.os!=null&&(typeof e.os!=`string`||e.os.length)&&(n.os=L(e.os)),e.timezone!=null&&(typeof e.timezone!=`string`||e.timezone.length)&&(n.timezone=L(e.timezone)),e.headless!=null&&e.headless&&(n.headless=R(e.headless)),e.isFragmentRun!=null&&e.isFragmentRun&&(n.isFragmentRun=R(e.isFragmentRun)),e.numPages!=null&&(typeof e.numPages==`object`?e.numPages.low||e.numPages.high:z(e.numPages)!==0)&&(M.Long?n.numPages=M.Long.fromValue(e.numPages,!1):typeof e.numPages==`string`?n.numPages=H(e.numPages,10):typeof e.numPages==`
1number`?n.numPages=e.numPages:typeof e.numPages==`object`&&(n.numPages=new M.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber())),e.pageScriptHash!=null&&(typeof e.pageScriptHash!=`string`||e.pageScriptHash.length)&&(n.pageScriptHash=L(e.pageScriptHash)),e.activeTheme!=null&&(typeof e.activeTheme!=`string`||e.activeTheme.length)&&(n.activeTheme=L(e.activeTheme)),e.totalLoadTime!=null&&(typeof e.totalLoadTime==`object`?e.totalLoadTime.low||e.totalLoadTime.high:z(e.totalLoadTime)!==0)&&(M.Long?n.totalLoadTime=M.Long.fromValue(e.totalLoadTime,!1):typeof e.totalLoadTime==`string`?n.totalLoadTime=H(e.totalLoadTime,10):typeof e.totalLoadTime==`number`?n.totalLoadTime=e.totalLoadTime:typeof e.totalLoadTime==`object`&&(n.totalLoadTime=new M.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber())),e.browserInfo!=null){if(!M.isObject(e.browserInfo))throw I(`.MetricsEvent.browserInfo: object expected`);n.browserInfo=W.BrowserInfo.fromObject(e.browserInfo,t+1)}if(e.serverMode!=null&&(typeof e.serverMode!=`string`||e.serverMode.length)&&(n.serverMode=L(e.serverMode)),e.installedSkills){if(!V.isArray(e.installedSkills))throw I(`.MetricsEvent.installedSkills: array expected`);n.installedSkills=V(e.installedSkills.length);for(let t=0;t<e.installedSkills.length;++t)n.installedSkills[t]=L(e.installedSkills[t])}if(e.installedAgents){if(!V.isArray(e.installedAgents))throw I(`.MetricsEvent.installedAgents: array expected`);n.installedAgents=V(e.installedAgents.length);for(let t=0;t<e.installedAgents.length;++t)n.installedAgents[t]=L(e.installedAgents[t])}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.commands=[],r.config=[],r.attributions=[],r.installedSkills=[],r.installedAgents=[]),t.defaults){if(r.event=``,r.anonymousId=``,r.machineIdV3=``,r.reportHash=``,r.dev=!1,r.source=``,r.streamlitVersion=``,r.isHello=!1,r.hostedAt=``,r.owner=``,r.repo=``,r.branch=``,r.mainModule=``,r.creatorId=``,r.contextPageUrl=``,r.contextPageTitle=``,r.contextPagePath=``,r.contextPageReferrer=``,r.contextPageSearch=``,r.contextLocale=``,r.contextUserAgent=``,r.label=``,M.Long){let e=new M.Long(0,0,!1);r.execTime=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.execTime=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;if(M.Long){let e=new M.Long(0,0,!1);r.prepTime=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.prepTime=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;if(r.uncaughtException=``,r.os=``,r.timezone=``,r.headless=!1,r.isFragmentRun=!1,r.appId=``,M.Long){let e=new M.Long(0,0,!1);r.numPages=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.numPages=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;if(r.sessionId=``,r.pythonVersion=``,r.pageScriptHash=``,r.activeTheme=``,M.Long){let e=new M.Long(0,0,!1);r.totalLoadTime=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.totalLoadTime=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;r.browserInfo=null,r.machineIdV4=``,r.serverOs=``,r.hasDisplay=!1,r.isWebdriver=!1,r.serverMode=``}if(e.event!=null&&N.hasOwnProperty.call(e,`event`)&&(r.event=e.event),e.anonymousId!=null&&N.hasOwnProperty.call(e,`anonymousId`)&&(r.anonymousId=e.anonymousId),e.machineIdV3!=null&&N.hasOwnProperty.call(e,`machineIdV3`)&&(r.machineIdV3=e.machineIdV3),e.reportHash!=null&&N.hasOwnProperty.call(e,`reportHash`)&&(r.reportHash=e.reportHash),e.dev!=null&&N.hasOwnProperty.call(e,`dev`)&&(r.dev=e.dev),e.source!=null&&N.hasOwnProperty.call(e,`source`)&&(r.source=e.source),e.streamlitVersion!=null&&N.hasOwnProperty.call(e,`streamlitVersion`)&&(r.streamlitVersion=e.streamlitVersion),e.isHello!=null&&N.hasOwnProperty.call(e,`isHello`)&&(r.isHello=e.isHello),e.hostedAt!=null&&N.hasOwnProperty.call(e,`hostedAt`)&&(r.hostedAt=e.hostedAt),e.owner!=null&&N.hasOwnProperty.call(e,`owner`)&&(r.owner=e.owner),e.repo!=null&&N.hasOwnProperty.call(e,`repo`)&&(r.repo=e.repo),e.branch!=null&&N.hasOwnProperty.call(e,`branch`)&&(r.branch=e.branch),e.mainModule!=null&&N.hasOwnProperty.call(e,`mainModule`)&&(r.mainModule=e.mainModule),e.creatorId!=null&&N.hasOwnProperty.call(e,`creatorId`)&&(r.creatorId=e.creatorId),e.contextPageUrl!=null&&N.hasOwnProperty.call(e,`contextPageUrl`)&&(r.contextPageUrl=e.contextPageUrl),e.contextPageTitle!=null&&N.hasOwnProperty.call(e,`contextPageTitle`)&&(r.contextPageTitle=e.contextPageTitle),e.contextPagePath!=null&&N.hasOwnProperty.call(e,`contextPagePath`)&&(r.contextPagePath=e.contextPagePath),e.contextPageReferrer!=null&&N.hasOwnProperty.call(e,`contextPageReferrer`)&&(r.contextPageReferrer=e.contextPageReferrer),e.contextPageSearch!=null&&N.hasOwnProperty.call(e,`contextPageSearch`)&&(r.contextPageSearch=e.contextPageSearch),e.contextLocale!=null&&N.hasOwnProperty.call(e,`contextLocale`)&&(r.contextLocale=e.contextLocale),e.contextUserAgent!=null&&N.hasOwnProperty.call(e,`contextUserAgent`)&&(r.contextUserAgent=e.contextUserAgent),e.label!=null&&N.hasOwnProperty.call(e,`label`)&&(r.label=e.label),e.commands&&e.commands.length){r.commands=V(e.commands.length);for(let i=0;i<e.commands.length;++i)r.commands[i]=W.Command.toObject(e.commands[i],t,n+1)}if(e.execTime!=null&&N.hasOwnProperty.call(e,`execTime`)&&(U!==void 0&&t.longs===U?r.execTime=typeof e.execTime==`number`?U(e.execTime):M.Long.fromBits(e.execTime.low>>>0,e.execTime.high>
1>>0,!1).toBigInt():typeof e.execTime==`number`?r.execTime=t.longs===L?L(e.execTime):e.execTime:r.execTime=t.longs===L?M.Long.prototype.toString.call(e.execTime):t.longs===z?new M.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&N.hasOwnProperty.call(e,`prepTime`)&&(U!==void 0&&t.longs===U?r.prepTime=typeof e.prepTime==`number`?U(e.prepTime):M.Long.fromBits(e.prepTime.low>>>0,e.prepTime.high>>>0,!1).toBigInt():typeof e.prepTime==`number`?r.prepTime=t.longs===L?L(e.prepTime):e.prepTime:r.prepTime=t.longs===L?M.Long.prototype.toString.call(e.prepTime):t.longs===z?new M.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){r.config=V(e.config.length);for(let t=0;t<e.config.length;++t)r.config[t]=e.config[t]}if(e.uncaughtException!=null&&N.hasOwnProperty.call(e,`uncaughtException`)&&(r.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){r.attributions=V(e.attributions.length);for(let t=0;t<e.attributions.length;++t)r.attributions[t]=e.attributions[t]}if(e.os!=null&&N.hasOwnProperty.call(e,`os`)&&(r.os=e.os),e.timezone!=null&&N.hasOwnProperty.call(e,`timezone`)&&(r.timezone=e.timezone),e.headless!=null&&N.hasOwnProperty.call(e,`headless`)&&(r.headless=e.headless),e.isFragmentRun!=null&&N.hasOwnProperty.call(e,`isFragmentRun`)&&(r.isFragmentRun=e.isFragmentRun),e.appId!=null&&N.hasOwnProperty.call(e,`appId`)&&(r.appId=e.appId),e.numPages!=null&&N.hasOwnProperty.call(e,`numPages`)&&(U!==void 0&&t.longs===U?r.numPages=typeof e.numPages==`number`?U(e.numPages):M.Long.fromBits(e.numPages.low>>>0,e.numPages.high>>>0,!1).toBigInt():typeof e.numPages==`number`?r.numPages=t.longs===L?L(e.numPages):e.numPages:r.numPages=t.longs===L?M.Long.prototype.toString.call(e.numPages):t.longs===z?new M.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber():e.numPages),e.sessionId!=null&&N.hasOwnProperty.call(e,`sessionId`)&&(r.sessionId=e.sessionId),e.pythonVersion!=null&&N.hasOwnProperty.call(e,`pythonVersion`)&&(r.pythonVersion=e.pythonVersion),e.pageScriptHash!=null&&N.hasOwnProperty.call(e,`pageScriptHash`)&&(r.pageScriptHash=e.pageScriptHash),e.activeTheme!=null&&N.hasOwnProperty.call(e,`activeTheme`)&&(r.activeTheme=e.activeTheme),e.totalLoadTime!=null&&N.hasOwnProperty.call(e,`totalLoadTime`)&&(U!==void 0&&t.longs===U?r.totalLoadTime=typeof e.totalLoadTime==`number`?U(e.totalLoadTime):M.Long.fromBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0,!1).toBigInt():typeof e.totalLoadTime==`number`?r.totalLoadTime=t.longs===L?L(e.totalLoadTime):e.totalLoadTime:r.totalLoadTime=t.longs===L?M.Long.prototype.toString.call(e.totalLoadTime):t.longs===z?new M.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber():e.totalLoadTime),e.browserInfo!=null&&N.hasOwnProperty.call(e,`browserInfo`)&&(r.browserInfo=W.BrowserInfo.toObject(e.browserInfo,t,n+1)),e.machineIdV4!=null&&N.hasOwnProperty.call(e,`machineIdV4`)&&(r.machineIdV4=e.machineIdV4),e.serverOs!=null&&N.hasOwnProperty.call(e,`serverOs`)&&(r.serverOs=e.serverOs),e.hasDisplay!=null&&N.hasOwnProperty.call(e,`hasDisplay`)&&(r.hasDisplay=e.hasDisplay),e.isWebdriver!=null&&N.hasOwnProperty.call(e,`isWebdriver`)&&(r.isWebdriver=e.isWebdriver),e.serverMode!=null&&N.hasOwnProperty.call(e,`serverMode`)&&(r.serverMode=e.serverMode),e.installedSkills&&e.installedSkills.length){r.installedSkills=V(e.installedSkills.length);for(let t=0;t<e.installedSkills.length;++t)r.installedSkills[t]=e.installedSkills[t]}if(e.installedAgents&&e.installedAgents.length){r.installedAgents=V(e.installedAgents.length);for(let t=0;t<e.installedAgents.length;++t)r.installedAgents[t]=e.installedAgents[t]}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/MetricsEvent`},e})();W.BrowserInfo=(()=>{let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.browserName=``,e.prototype.browserVersion=``,e.prototype.deviceType=``,e.prototype.os=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.browserName!=null&&N.hasOwnProperty.call(e,`browserName`)&&e.browserName!==``&&t.uint32(10).string(e.browserName),e.browserVersion!=null&&N.hasOwnProperty.call(e,`browserVersion`)&&e.browserVersion!==``&&t.uint32(18).string(e.browserVersion),e.deviceType!=null&&N.hasOwnProperty.call(e,`deviceType`)&&e.deviceType!==``&&t.uint32(26).string(e.deviceType),e.os!=null&&N.hasOwnProperty.call(e,`os`)&&e.os!==``&&t.uint32(34).string(e.os),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.BrowserInfo,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.browserName=s:delete o.browserName;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.browserVersion=s:delete o.browserVersion;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.deviceType=s:delete o.deviceType;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.os=s:delete o.os;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.BrowserInfo)return e;if(!M.isObject(e))throw I(`.BrowserInfo: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.BrowserInfo;return e.browserName!=null&&(typeof e.browserName!=`string`||e.browserName.length)&&(n.browserName=L(e.browserName)),e.browserVersion!=null&&(typeof e.browserVersion!=`string`||e.browserVersion.length)&&(n.browserVersion=L(e.browserVersion)),e.deviceType!=null&&(typeof e.deviceType!=`string`||e.deviceType.length)&&(n.deviceType=L(e.deviceType)),e.os!=null&&(typeof e.os!=`string`||e.os.length)&&(n.os=L(e.os)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.browserName=``,r.browserVersion=``,r.deviceType=``,r.os=``),e.browserName!=null&&N.hasOwnProperty.call(e,`browserName`)&&(r.browserName=e.browserName),e.browserVersion!=null&&N.hasOwnProperty.call(e,`browserVersion`)&&(r.browserVersion=e.browserVersion),e.deviceType!=null&&N.hasOwnProperty.call(e,`deviceType`)&&(r.deviceType=e.deviceType),e.os!=null&&N.hasOwnProperty.call(e,`os`)&&(r.os=e.os),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/BrowserInfo`},e})(),W.openmetrics=(()=>{let e={};return e.MetricSet=(function(){let e=function(e){if(this.metricFamilies=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.metricFamilies=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.metricFamilies!=null&&e.metricFamilies.length)for(let r=0;r<e.metricFamilies.length;++r)W.openmetrics.MetricFamily.encode(e.metricFamilies[r],t.uint32(10).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.MetricSet;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.metricFamilies&&o.metricFamilies.length||(o.metricFamilies=[]),o.metricFamilies.push(W.openmetrics.MetricFamily.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.MetricSet)return e;if(!M.isObject(e))throw I(`.openmetrics.MetricSet: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.MetricSet;
1if(e.metricFamilies){if(!V.isArray(e.metricFamilies))throw I(`.openmetrics.MetricSet.metricFamilies: array expected`);n.metricFamilies=V(e.metricFamilies.length);for(let r=0;r<e.metricFamilies.length;++r){if(!M.isObject(e.metricFamilies[r]))throw I(`.openmetrics.MetricSet.metricFamilies: object expected`);n.metricFamilies[r]=W.openmetrics.MetricFamily.fromObject(e.metricFamilies[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.metricFamilies=[]),e.metricFamilies&&e.metricFamilies.length){r.metricFamilies=V(e.metricFamilies.length);for(let i=0;i<e.metricFamilies.length;++i)r.metricFamilies[i]=W.openmetrics.MetricFamily.toObject(e.metricFamilies[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.MetricSet`},e})(),e.MetricFamily=(function(){let e=function(e){if(this.metrics=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.name=``,e.prototype.type=0,e.prototype.unit=``,e.prototype.help=``,e.prototype.metrics=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(10).string(e.name),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&e.type!==0&&t.uint32(16).int32(e.type),e.unit!=null&&N.hasOwnProperty.call(e,`unit`)&&e.unit!==``&&t.uint32(26).string(e.unit),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&e.help!==``&&t.uint32(34).string(e.help),e.metrics!=null&&e.metrics.length)for(let r=0;r<e.metrics.length;++r)W.Metric.encode(e.metrics[r],t.uint32(42).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.MetricFamily,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 2:if(a!==0)break;(s=e.int32())?o.type=s:delete o.type;continue;case 3:if(a!==2)break;(s=e.stringVerify()).length?o.unit=s:delete o.unit;continue;case 4:if(a!==2)break;(s=e.stringVerify()).length?o.help=s:delete o.help;continue;case 5:if(a!==2)break;o.metrics&&o.metrics.length||(o.metrics=[]),o.metrics.push(W.Metric.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.MetricFamily)return e;if(!M.isObject(e))throw I(`.openmetrics.MetricFamily: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.MetricFamily;if(e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.type!==0&&(typeof e.type!=`string`||W.openmetrics.MetricType[e.type]!==0))switch(e.type){case`UNKNOWN`:case 0:n.type=0;break;case`GAUGE`:case 1:n.type=1;break;case`COUNTER`:case 2:n.type=2;break;case`STATE_SET`:case 3:n.type=3;break;case`INFO`:case 4:n.type=4;break;case`HISTOGRAM`:case 5:n.type=5;break;case`GAUGE_HISTOGRAM`:case 6:n.type=6;break;case`SUMMARY`:case 7:n.type=7;break;default:typeof e.type==`number`&&(e.type|0)===e.type&&(n.type=e.type)}if(e.unit!=null&&(typeof e.unit!=`string`||e.unit.length)&&(n.unit=L(e.unit)),e.help!=null&&(typeof e.help!=`string`||e.help.length)&&(n.help=L(e.help)),e.metrics){if(!V.isArray(e.metrics))throw I(`.openmetrics.MetricFamily.metrics: array expected`);n.metrics=V(e.metrics.length);for(let r=0;r<e.metrics.length;++r){if(!M.isObject(e.metrics[r]))throw I(`.openmetrics.MetricFamily.metrics: object expected`);n.metrics[r]=W.Metric.fromObject(e.metrics[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.metrics=[]),t.defaults&&(r.name=``,r.type=t.enums===L?`UNKNOWN`:0,r.unit=``,r.help=``),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.type!=null&&N.hasOwnProperty.call(e,`type`)&&(r.type=t.enums===L?W.openmetrics.MetricType[e.type]===P?e.type:W.openmetrics.MetricType[e.type]:e.type),e.unit!=null&&N.hasOwnProperty.call(e,`unit`)&&(r.unit=e.unit),e.help!=null&&N.hasOwnProperty.call(e,`help`)&&(r.help=e.help),e.metrics&&e.metrics.length){r.metrics=V(e.metrics.length);for(let i=0;i<e.metrics.length;++i)r.metrics[i]=W.Metric.toObject(e.metrics[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.MetricFamily`},e})(),e.MetricType=(function(){let e=N.create(null),t=N.create(e);return t[e[0]=`UNKNOWN`]=0,t[e[1]=`GAUGE`]=1,t[e[2]=`COUNTER`]=2,t[e[3]=`STATE_SET`]=3,t[e[4]=`INFO`]=4,t[e[5]=`HISTOGRAM`]=5,t[e[6]=`GAUGE_HISTOGRAM`]=6,t[e[7]=`SUMMARY`]=7,t})(),e.Metric=(function(){let e=function(e){if(this.labels=[],this.metricPoints=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.labels=M.emptyArray,e.prototype.metricPoints=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.labels!=null&&e.labels.length)for(let r=0;r<e.labels.length;++r)W.openmetrics.Label.encode(e.labels[r],t.uint32(10).fork(),n+1).ldelim();if(e.metricPoints!=null&&e.metricPoints.length)for(let r=0;r<e.metricPoints.length;++r)W.openmetrics.MetricPoint.encode(e.metricPoints[r],t.uint32(18).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.Metric;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.labels&&o.labels.length||(o.labels=[]),o.labels.push(W.openmetrics.Label.decode(e,e.uint32(),P,r+1));continue;case 2:if(a!==2)break;o.metricPoints&&o.metricPoints.length||(o.metricPoints=[]),o.metricPoints.push(W.openmetrics.MetricPoint.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.Metric)return e;if(!M.isObject(e))throw I(`.openmetrics.Metric: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.Metric;if(e.labels){if(!V.isArray(e.labels))throw I(`.openmetrics.Metric.labels: array expected`);n.labels=V(e.labels.length);for(let r=0;r<e.labels.length;++r){if(!M.isObject(e.labels[r]))throw I(`.openmetrics.Metric.labels: object expected`);n.labels[r]=W.openmetrics.Label.fromObject(e.labels[r],t+1)}}if(e.metricPoints){if(!V.isArray(e.metricPoints))throw I(`.openmetrics.Metric.metricPoints: array expected`);n.metricPoints=V(e.metricPoints.length);for(let r=0;r<e.metricPoints.length;++r){if(!M.isObject(e.metricPoints[r]))throw I(`.openmetrics.Metric.metricPoints: object expected`);n.metricPoints[r]=W.openmetrics.MetricPoint.fromObject(e.metricPoints[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.labels=[],r.metricPoints=[]),e.labels&&e.labels.length){r.labels=V(e.labels.length);for(let i=0;i<e.labels.length;++i)r.labels[i]=W.openmetrics.Label.toObject(e.labels[i],t,n+1)}if(e.metricPoints&&e.metricPoints.length){r.metricPoints=V(e.metricPoints.length);for(let i=0;i<e.metricPoints.length;++i)r.metricPoints[i]=W.openmetrics.MetricPoint.toObject(e.metricPoints[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.Metric`},e})(),e.Label=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.name=``,e.prototype.value=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(10).string(e.name),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&e.value!==``&&t.uint32(18).string(e.value),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.Label,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.value=s:delete o.value;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.Label)return e;if(!M.isObject(e))throw I(`.openmetrics.Label: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.Label;return e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),e.value!=null&&(typeof e.value!=`string`||e.value.length)&&(n.value=L(e.value)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.name=``,r.value=``),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=e.value),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.Label`},e})(),e.MetricPoint=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.unknownValue=null,e.prototype.gaugeValue=null,e.prototype.counterValue=null,e.prototype.histogramValue=null,e.prototype.stateSetValue=null,e.prototype.infoValue=null,e.prototype.summaryValue=null,e.prototype.timestamp=null;let t;return N.defineProperty(e.prototype,`value`,{get:M.oneOfGetter(t=[`unknownValue`,`gaugeValue`,`counterValue`,`histogramValue`,`stateSetValue`,`infoValue`,`summaryValue`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.unknownValue!=null&&N.hasOwnProperty.call(e,`unknownValue`)&&W.openmetrics.UnknownValue.encode(e.unknownValue,t.uint32(10).fork(),n+1).ldelim(),e.gauge
1Value!=null&&N.hasOwnProperty.call(e,`gaugeValue`)&&W.openmetrics.GaugeValue.encode(e.gaugeValue,t.uint32(18).fork(),n+1).ldelim(),e.counterValue!=null&&N.hasOwnProperty.call(e,`counterValue`)&&W.openmetrics.CounterValue.encode(e.counterValue,t.uint32(26).fork(),n+1).ldelim(),e.histogramValue!=null&&N.hasOwnProperty.call(e,`histogramValue`)&&W.openmetrics.HistogramValue.encode(e.histogramValue,t.uint32(34).fork(),n+1).ldelim(),e.stateSetValue!=null&&N.hasOwnProperty.call(e,`stateSetValue`)&&W.openmetrics.StateSetValue.encode(e.stateSetValue,t.uint32(42).fork(),n+1).ldelim(),e.infoValue!=null&&N.hasOwnProperty.call(e,`infoValue`)&&W.openmetrics.InfoValue.encode(e.infoValue,t.uint32(50).fork(),n+1).ldelim(),e.summaryValue!=null&&N.hasOwnProperty.call(e,`summaryValue`)&&W.openmetrics.SummaryValue.encode(e.summaryValue,t.uint32(58).fork(),n+1).ldelim(),e.timestamp!=null&&N.hasOwnProperty.call(e,`timestamp`)&&W.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(66).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.MetricPoint;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.unknownValue=W.openmetrics.UnknownValue.decode(e,e.uint32(),P,r+1,o.unknownValue),o.value=`unknownValue`;continue;case 2:if(a!==2)break;o.gaugeValue=W.openmetrics.GaugeValue.decode(e,e.uint32(),P,r+1,o.gaugeValue),o.value=`gaugeValue`;continue;case 3:if(a!==2)break;o.counterValue=W.openmetrics.CounterValue.decode(e,e.uint32(),P,r+1,o.counterValue),o.value=`counterValue`;continue;case 4:if(a!==2)break;o.histogramValue=W.openmetrics.HistogramValue.decode(e,e.uint32(),P,r+1,o.histogramValue),o.value=`histogramValue`;continue;case 5:if(a!==2)break;o.stateSetValue=W.openmetrics.StateSetValue.decode(e,e.uint32(),P,r+1,o.stateSetValue),o.value=`stateSetValue`;continue;case 6:if(a!==2)break;o.infoValue=W.openmetrics.InfoValue.decode(e,e.uint32(),P,r+1,o.infoValue),o.value=`infoValue`;continue;case 7:if(a!==2)break;o.summaryValue=W.openmetrics.SummaryValue.decode(e,e.uint32(),P,r+1,o.summaryValue),o.value=`summaryValue`;continue;case 8:if(a!==2)break;o.timestamp=W.google.protobuf.Timestamp.decode(e,e.uint32(),P,r+1,o.timestamp);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.MetricPoint)return e;if(!M.isObject(e))throw I(`.openmetrics.MetricPoint: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.MetricPoint;if(e.unknownValue!=null){if(!M.isObject(e.unknownValue))throw I(`.openmetrics.MetricPoint.unknownValue: object expected`);n.unknownValue=W.openmetrics.UnknownValue.fromObject(e.unknownValue,t+1)}if(e.gaugeValue!=null){if(!M.isObject(e.gaugeValue))throw I(`.openmetrics.MetricPoint.gaugeValue: object expected`);n.gaugeValue=W.openmetrics.GaugeValue.fromObject(e.gaugeValue,t+1)}if(e.counterValue!=null){if(!M.isObject(e.counterValue))throw I(`.openmetrics.MetricPoint.counterValue: object expected`);n.counterValue=W.openmetrics.CounterValue.fromObject(e.counterValue,t+1)}if(e.histogramValue!=null){if(!M.isObject(e.histogramValue))throw I(`.openmetrics.MetricPoint.histogramValue: object expected`);n.histogramValue=W.openmetrics.HistogramValue.fromObject(e.histogramValue,t+1)}if(e.stateSetValue!=null){if(!M.isObject(e.stateSetValue))throw I(`.openmetrics.MetricPoint.stateSetValue: object expected`);n.stateSetValue=W.openmetrics.StateSetValue.fromObject(e.stateSetValue,t+1)}if(e.infoValue!=null){if(!M.isObject(e.infoValue))throw I(`.openmetrics.MetricPoint.infoValue: object expected`);n.infoValue=W.openmetrics.InfoValue.fromObject(e.infoValue,t+1)}if(e.summaryValue!=null){if(!M.isObject(e.summaryValue))throw I(`.openmetrics.MetricPoint.summaryValue: object expected`);n.summaryValue=W.openmetrics.SummaryValue.fromObject(e.summaryValue,t+1)}if(e.timestamp!=null){if(!M.isObject(e.timestamp))throw I(`.openmetrics.MetricPoint.timestamp: object expected`);n.timestamp=W.google.protobuf.Timestamp.fromObject(e.timestamp,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.timestamp=null),e.unknownValue!=null&&N.hasOwnProperty.call(e,`unknownValue`)&&(r.unknownValue=W.openmetrics.UnknownValue.toObject(e.unknownValue,t,n+1),t.oneofs&&(r.value=`unknownValue`)),e.gauge
1Value!=null&&N.hasOwnProperty.call(e,`gaugeValue`)&&(r.gaugeValue=W.openmetrics.GaugeValue.toObject(e.gaugeValue,t,n+1),t.oneofs&&(r.value=`gaugeValue`)),e.counterValue!=null&&N.hasOwnProperty.call(e,`counterValue`)&&(r.counterValue=W.openmetrics.CounterValue.toObject(e.counterValue,t,n+1),t.oneofs&&(r.value=`counterValue`)),e.histogramValue!=null&&N.hasOwnProperty.call(e,`histogramValue`)&&(r.histogramValue=W.openmetrics.HistogramValue.toObject(e.histogramValue,t,n+1),t.oneofs&&(r.value=`histogramValue`)),e.stateSetValue!=null&&N.hasOwnProperty.call(e,`stateSetValue`)&&(r.stateSetValue=W.openmetrics.StateSetValue.toObject(e.stateSetValue,t,n+1),t.oneofs&&(r.value=`stateSetValue`)),e.infoValue!=null&&N.hasOwnProperty.call(e,`infoValue`)&&(r.infoValue=W.openmetrics.InfoValue.toObject(e.infoValue,t,n+1),t.oneofs&&(r.value=`infoValue`)),e.summaryValue!=null&&N.hasOwnProperty.call(e,`summaryValue`)&&(r.summaryValue=W.openmetrics.SummaryValue.toObject(e.summaryValue,t,n+1),t.oneofs&&(r.value=`summaryValue`)),e.timestamp!=null&&N.hasOwnProperty.call(e,`timestamp`)&&(r.timestamp=W.google.protobuf.Timestamp.toObject(e.timestamp,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.MetricPoint`},e})(),e.UnknownValue=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.doubleValue=null,e.prototype.intValue=null;let t;return N.defineProperty(e.prototype,`value`,{get:M.oneOfGetter(t=[`doubleValue`,`intValue`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).int64(e.intValue),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.UnknownValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.value=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.int64(),o.value=`intValue`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.UnknownValue)return e;if(!M.isObject(e))throw I(`.openmetrics.UnknownValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.UnknownValue;return e.doubleValue!=null&&(n.doubleValue=z(e.doubleValue)),e.intValue!=null&&(M.Long?n.intValue=M.Long.fromValue(e.intValue,!1):typeof e.intValue==`string`?n.intValue=H(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&(r.doubleValue=t.json&&!B(e.doubleValue)?L(e.doubleValue):e.doubleValue,t.oneofs&&(r.value=`doubleValue`)),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&(U!==void 0&&t.longs===U?r.intValue=typeof e.intValue==`number`?U(e.intValue):M.Long.fromBits(e.intValue.low>>>0,e.intValue.high>>>0,!1).toBigInt():typeof e.intValue==`number`?r.intValue=t.longs===L?L(e.intValue):e.intValue:r.intValue=t.longs===L?M.Long.prototype.toString.call(e.intValue):t.longs===z?new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(r.value=`intValue`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.UnknownValue`},e})(),e.GaugeValue=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.doubleValue=null,e.prototype.intValue=null;let t;return N.defineProperty(e.prototype,`value`,{get:M.oneOfGetter(t=[`doubleValue`,`intValue`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).int64(e.intValue),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.GaugeValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.value=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.int64(),o.value=`intValue`;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.GaugeValue)return e;if(!M.isObject(e))throw I(`.openmetrics.GaugeValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.GaugeValue;return e.doubleValue!=null&&(n.doubleValue=z(e.doubleValue)),e.intValue!=null&&(M.Long?n.intValue=M.Long.fromValue(e.intValue,!1):typeof e.intValue==`string`?n.intValue=H(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&(r.doubleValue=t.json&&!B(e.doubleValue)?L(e.doubleValue):e.doubleValue,t.oneofs&&(r.value=`doubleValue`)),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&(U!==void 0&&t.longs===U?r.intValue=typeof e.intValue==`number`?U(e.intValue):M.Long.fromBits(e.intValue.low>>>0,e.intValue.high>>>0,!1).toBigInt():typeof e.intValue==`number`?r.intValue=t.longs===L?L(e.intValue):e.intValue:r.intValue=t.longs===L?M.Long.prototype.toString.call(e.intValue):t.longs===z?new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(r.value=`intValue`)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.GaugeValue`},e})(),e.CounterValue=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.created=null,e.prototype.exemplar=null;let t;return N.defineProperty(e.prototype,`total`,{get:M.oneOfGetter(t=[`doubleValue`,`intValue`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).uint64(e.intValue),e.created!=null&&N.hasOwnProperty.call(e,`created`)&&W.google.protobuf.Timestamp.encode(e.created,t.uint32(26).fork(),n+1).ldelim(),e.exemplar!=null&&N.hasOwnProperty.call(e,`exemplar`)&&W.openmetrics.Exemplar.encode(e.exemplar,t.uint32(34).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.CounterValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.total=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.uint64(),o.total=`intValue`;continue;case 3:if(a!==2)break;o.created=W.google.protobuf.Timestamp.decode(e,e.uint32(),P,r+1,o.created);continue;case 4:if(a!==2)break;o.exemplar=W.openmetrics.Exemplar.decode(e,e.uint32(),P,r+1,o.exemplar);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.CounterValue)return e;if(!M.isObject(e))throw I(`.openmetrics.CounterValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.CounterValue;if(e.doubleValue!=null&&(n.doubleValue=z(e.doubleValue)),e.intValue!=null&&(M.Long?n.intValue=M.Long.fromValue(e.intValue,!0):typeof e.intValue==`string`?n.intValue=H(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0))),e.created!=null){if(!M.isObject(e.created))throw I(`.openmetrics.CounterValue.created: object expected`);n.created=W.google.protobuf.Timestamp.fromObject(e.created,t+1)}if(e.exemplar!=null){if(!M.isObject(e.exemplar))throw I(`.openmetrics.CounterValue.exemplar: object expected`);n.exemplar=W.openmetrics.Exemplar.fromObject(e.exemplar,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.created=null,r.exemplar=null),e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&(r.doubleValue=t.json&&!B(e.doubleValue)?L(e.doubleValue):e.doubleValue,t.oneofs&&(r.total=`doubleValue`)),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&(U!==void 0&&t.longs===U?r.intValue=typeof e.intValue==`number`?U(e.intValue):M.Long.fromBits(e.intValue.low>>>0,e.intValue.high>>>0,!0).toBigInt():typeof e.intValue==`number`?r.intValue=t.longs===L?L(e.intValue):e.intValue:r.intValue=t.longs===L?M.Long.prototype.toString.call(e.intValue):t.longs===z?new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0):e.intValue,t.oneofs&&(r.total=`intValue`)),e.created!=null&&N.hasOwnProperty.call(e,`created`)&&(r.created=W.google.protobuf.Timestamp.toObject(e.created,t,n+1)),e.exemplar!=null&&N.hasOwnProperty.call(e,`exemplar`)&&(r.exemplar=W.openmetrics.Exemplar.toObject(e.exemplar,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.CounterValue`},e})(),e.HistogramValue=(function(){let e=function(e){if(this.buckets=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=M.Long?M.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.buckets=M.emptyArray;let t;return N.defineProperty(e.prototype,`sum`,{get:M.oneOfGetter(t=[`doubleValue`,`intValue`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).int64(e.intValue),e.count!=null&&N.hasOwnProperty.call(e,`count`)&&(typeof e.count==`object`?e.count.low||e.count.high:e.count!==0)&&t.uint32(24).uint64(e.count),e.created!=null&&N.hasOwnProperty.call(e,`created`)&&W.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork(),n+1).ldelim(),e.buckets!=null&&e.buckets.length)for(let r=0;r<e.buckets.length;++r)W.openmetrics.HistogramValue.Bucket.encode(e.buckets[r],t.uint32(42).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.HistogramValue,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.sum=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.int64(),o.sum=`intValue`;continue;case 3:if(a!==0)break;(typeof(s=e.uint64())==`object`?s.low||s.high:s!==0)?o.count=s:delete o.count;continue;case 4:if(a!==2)break;o.created=W.google.protobuf.Timestamp.decode(e,e.uint32(),P,r+1,o.created);continue;case 5:if(a!==2)break;o.buckets&&o.buckets.length||(o.buckets=[]),o.buckets.push(W.openmetrics.HistogramValue.Bucket.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.HistogramValue)return e;if(!M.isObject(e))throw I(`.openmetrics.HistogramValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.HistogramValue;if(e.doubleValue!=null&&(n.doubleValue=z(e.doubleValue)),e.intValue!=null&&(M.Long?n.intValue=M.Long.fromValue(e.intValue,!1):typeof e.intValue==`string`?n.intValue=H(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.count!=null&&(typeof e.count==`object`?e.count.low||e.count.high:z(e.count)!==0)&&(M.Long?n.count=M.Long.fromValue(e.count,!0):typeof e.count==`string`?n.count=H(e.count,10):typeof e.count==`number`?n.count=e.count:typeof e.count==`object`&&(n.count=new M.LongBits(e.count.low>>>0,e.count.high>
1>>0).toNumber(!0))),e.created!=null){if(!M.isObject(e.created))throw I(`.openmetrics.HistogramValue.created: object expected`);n.created=W.google.protobuf.Timestamp.fromObject(e.created,t+1)}if(e.buckets){if(!V.isArray(e.buckets))throw I(`.openmetrics.HistogramValue.buckets: array expected`);n.buckets=V(e.buckets.length);for(let r=0;r<e.buckets.length;++r){if(!M.isObject(e.buckets[r]))throw I(`.openmetrics.HistogramValue.buckets: object expected`);n.buckets[r]=W.openmetrics.HistogramValue.Bucket.fromObject(e.buckets[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.buckets=[]),t.defaults){if(M.Long){let e=new M.Long(0,0,!0);r.count=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.count=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;r.created=null}if(e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&(r.doubleValue=t.json&&!B(e.doubleValue)?L(e.doubleValue):e.doubleValue,t.oneofs&&(r.sum=`doubleValue`)),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&(U!==void 0&&t.longs===U?r.intValue=typeof e.intValue==`number`?U(e.intValue):M.Long.fromBits(e.intValue.low>>>0,e.intValue.high>>>0,!1).toBigInt():typeof e.intValue==`number`?r.intValue=t.longs===L?L(e.intValue):e.intValue:r.intValue=t.longs===L?M.Long.prototype.toString.call(e.intValue):t.longs===z?new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(r.sum=`intValue`)),e.count!=null&&N.hasOwnProperty.call(e,`count`)&&(U!==void 0&&t.longs===U?r.count=typeof e.count==`number`?U(e.count):M.Long.fromBits(e.count.low>>>0,e.count.high>>>0,!0).toBigInt():typeof e.count==`number`?r.count=t.longs===L?L(e.count):e.count:r.count=t.longs===L?M.Long.prototype.toString.call(e.count):t.longs===z?new M.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),e.created!=null&&N.hasOwnProperty.call(e,`created`)&&(r.created=W.google.protobuf.Timestamp.toObject(e.created,t,n+1)),e.buckets&&e.buckets.length){r.buckets=V(e.buckets.length);for(let i=0;i<e.buckets.length;++i)r.buckets[i]=W.openmetrics.HistogramValue.Bucket.toObject(e.buckets[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.HistogramValue`},e.Bucket=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.count=M.Long?M.Long.fromBits(0,0,!0):0,e.prototype.upperBound=0,e.prototype.exemplar=null,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.count!=null&&N.hasOwnProperty.call(e,`count`)&&(typeof e.count==`object`?e.count.low||e.count.high:e.count!==0)&&t.uint32(8).uint64(e.count),e.upperBound!=null&&N.hasOwnProperty.call(e,`upperBound`)&&!N.is(e.upperBound,0)&&t.uint32(17).double(e.upperBound),e.exemplar!=null&&N.hasOwnProperty.call(e,`exemplar`)&&W.openmetrics.Exemplar.encode(e.exemplar,t.uint32(26).fork(),n+1).ldelim(),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.HistogramValue.Bucket,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(typeof(s=e.uint64())==`object`?s.low||s.high:s!==0)?o.count=s:delete o.count;continue;case 2:if(a!==1)break;N.is(s=e.double(),0)?delete o.upperBound:o.upperBound=s;continue;case 3:if(a!==2)break;o.exemplar=W.openmetrics.Exemplar.decode(e,e.uint32(),P,r+1,o.exemplar);continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.HistogramValue.Bucket)return e;if(!M.isObject(e))throw I(`.openmetrics.HistogramValue.Bucket: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.HistogramValue.Bucket;if(e.count!=null&&(typeof e.count==`object`?e.count.low||e.count.high:z(e.count)!==0)&&(M.Long?n.count=M.Long.fromValue(e.count,!0):typeof e.count==`string`?n.count=H(e.count,10):typeof e.count==`number`?n.count=e.count:typeof e.count==`object`&&(n.count=new M.LongBits(e.count.low>>>0,e.count.high>
1>>0).toNumber(!0))),e.upperBound!=null&&(N.is(z(e.upperBound),0)||(n.upperBound=z(e.upperBound))),e.exemplar!=null){if(!M.isObject(e.exemplar))throw I(`.openmetrics.HistogramValue.Bucket.exemplar: object expected`);n.exemplar=W.openmetrics.Exemplar.fromObject(e.exemplar,t+1)}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if(t.defaults){if(M.Long){let e=new M.Long(0,0,!0);r.count=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.count=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;r.upperBound=0,r.exemplar=null}return e.count!=null&&N.hasOwnProperty.call(e,`count`)&&(U!==void 0&&t.longs===U?r.count=typeof e.count==`number`?U(e.count):M.Long.fromBits(e.count.low>>>0,e.count.high>>>0,!0).toBigInt():typeof e.count==`number`?r.count=t.longs===L?L(e.count):e.count:r.count=t.longs===L?M.Long.prototype.toString.call(e.count):t.longs===z?new M.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),e.upperBound!=null&&N.hasOwnProperty.call(e,`upperBound`)&&(r.upperBound=t.json&&!B(e.upperBound)?L(e.upperBound):e.upperBound),e.exemplar!=null&&N.hasOwnProperty.call(e,`exemplar`)&&(r.exemplar=W.openmetrics.Exemplar.toObject(e.exemplar,t,n+1)),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.HistogramValue.Bucket`},e})(),e})(),e.Exemplar=(function(){let e=function(e){if(this.label=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.value=0,e.prototype.timestamp=null,e.prototype.label=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.value!=null&&N.hasOwnProperty.call(e,`value`)&&!N.is(e.value,0)&&t.uint32(9).double(e.value),e.timestamp!=null&&N.hasOwnProperty.call(e,`timestamp`)&&W.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(18).fork(),n+1).ldelim(),e.label!=null&&e.label.length)for(let r=0;r<e.label.length;++r)W.openmetrics.Label.encode(e.label[r],t.uint32(26).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.Exemplar,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;N.is(s=e.double(),0)?delete o.value:o.value=s;continue;case 2:if(a!==2)break;o.timestamp=W.google.protobuf.Timestamp.decode(e,e.uint32(),P,r+1,o.timestamp);continue;case 3:if(a!==2)break;o.label&&o.label.length||(o.label=[]),o.label.push(W.openmetrics.Label.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.Exemplar)return e;if(!M.isObject(e))throw I(`.openmetrics.Exemplar: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.Exemplar;if(e.value!=null&&(N.is(z(e.value),0)||(n.value=z(e.value))),e.timestamp!=null){if(!M.isObject(e.timestamp))throw I(`.openmetrics.Exemplar.timestamp: object expected`);n.timestamp=W.google.protobuf.Timestamp.fromObject(e.timestamp,t+1)}if(e.label){if(!V.isArray(e.label))throw I(`.openmetrics.Exemplar.label: array expected`);n.label=V(e.label.length);for(let r=0;r<e.label.length;++r){if(!M.isObject(e.label[r]))throw I(`.openmetrics.Exemplar.label: object expected`);n.label[r]=W.openmetrics.Label.fromObject(e.label[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.label=[]),t.defaults&&(r.value=0,r.timestamp=null),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=t.json&&!B(e.value)?L(e.value):e.value),e.timestamp!=null&&N.hasOwnProperty.call(e,`timestamp`)&&(r.timestamp=W.google.protobuf.Timestamp.toObject(e.timestamp,t,n+1)),e.label&&e.label.length){r.label=V(e.label.length);for(let i=0;i<e.label.length;++i)r.label[i]=W.openmetrics.Label.toObject(e.label[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.Exemplar`},e})(),e.StateSetValue=(function(){let e=function(e){if(this.states=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.states=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.states!=null&&e.states.length)for(let r=0;r<e.states.length;++r)W.openmetrics.StateSetValue.State.encode(e.states[r],t.uint32(10).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.StateSetValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.states&&o.states.length||(o.states=[]),o.states.push(W.openmetrics.StateSetValue.State.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.StateSetValue)return e;if(!M.isObject(e))throw I(`.openmetrics.StateSetValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.StateSetValue;if(e.states){if(!V.isArray(e.states))throw I(`.openmetrics.StateSetValue.states: array expected`);n.states=V(e.states.length);for(let r=0;r<e.states.length;++r){if(!M.isObject(e.states[r]))throw I(`.openmetrics.StateSetValue.states: object expected`);n.states[r]=W.openmetrics.StateSetValue.State.fromObject(e.states[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.states=[]),e.states&&e.states.length){r.states=V(e.states.length);for(let i=0;i<e.states.length;++i)r.states[i]=W.openmetrics.StateSetValue.State.toObject(e.states[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.StateSetValue`},e.State=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.enabled=!1,e.prototype.name=``,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.enabled!=null&&N.hasOwnProperty.call(e,`enabled`)&&e.enabled!==!1&&t.uint32(8).bool(e.enabled),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&e.name!==``&&t.uint32(18).string(e.name),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.StateSetValue.State,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(s=e.bool())?o.enabled=s:delete o.enabled;continue;case 2:if(a!==2)break;(s=e.stringVerify()).length?o.name=s:delete o.name;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.StateSetValue.State)return e;if(!M.isObject(e))throw I(`.openmetrics.StateSetValue.State: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.StateSetValue.State;return e.enabled!=null&&e.enabled&&(n.enabled=R(e.enabled)),e.name!=null&&(typeof e.name!=`string`||e.name.length)&&(n.name=L(e.name)),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.enabled=!1,r.name=``),e.enabled!=null&&N.hasOwnProperty.call(e,`enabled`)&&(r.enabled=e.enabled),e.name!=null&&N.hasOwnProperty.call(e,`name`)&&(r.name=e.name),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.StateSetValue.State`},e})(),e})(),e.InfoValue=(function(){let e=function(e){if(this.info=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.info=M.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.info!=null&&e.info.length)for(let r=0;r<e.info.length;++r)W.openmetrics.Label.encode(e.info[r],t.uint32(10).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.InfoValue;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==2)break;o.info&&o.info.length||(o.info=[]),o.info.push(W.openmetrics.Label.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.InfoValue)return e;if(!M.isObject(e))throw I(`.openmetrics.InfoValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.InfoValue;if(e.info){if(!V.isArray(e.info))throw I(`.openmetrics.InfoValue.info: array expected`);n.info=V(e.info.length);for(let r=0;r<e.info.length;++r){if(!M.isObject(e.info[r]))throw I(`.openmetrics.InfoValue.info: object expected`);n.info[r]=W.openmetrics.Label.fromObject(e.info[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.info=[]),e.info&&e.info.length){r.info=V(e.info.length);for(let i=0;i<e.info.length;++i)r.info[i]=W.openmetrics.Label.toObject(e.info[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.InfoValue`},e})(),e.SummaryValue=(function(){let e=function(e){if(this.quantile=[],e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=M.Long?M.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.quantile=M.emptyArray;let t;return N.defineProperty(e.prototype,`sum`,{get:M.oneOfGetter(t=[`doubleValue`,`intValue`]),set:M.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(9).double(e.doubleValue),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&t.uint32(16).int64(e.intValue),e.count!=null&&N.hasOwnProperty.call(e,`count`)&&(typeof e.count==`object`?e.count.low||e.count.high:e.count!==0)&&t.uint32(24).uint64(e.count),e.created!=null&&N.hasOwnProperty.call(e,`created`)&&W.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork(),n+1).ldelim(),e.quantile!=null&&e.quantile.length)for(let r=0;r<e.quantile.length;++r)W.openmetrics.SummaryValue.Quantile.encode(e.quantile[r],t.uint32(42).fork(),n+1).ldelim();if(e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.SummaryValue,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;o.doubleValue=e.double(),o.sum=`doubleValue`;continue;case 2:if(a!==0)break;o.intValue=e.int64(),o.sum=`intValue`;continue;case 3:if(a!==0)break;(typeof(s=e.uint64())==`object`?s.low||s.high:s!==0)?o.count=s:delete o.count;continue;case 4:if(a!==2)break;o.created=W.google.protobuf.Timestamp.decode(e,e.uint32(),P,r+1,o.created);continue;case 5:if(a!==2)break;o.quantile&&o.quantile.length||(o.quantile=[]),o.quantile.push(W.openmetrics.SummaryValue.Quantile.decode(e,e.uint32(),P,r+1));continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.SummaryValue)return e;if(!M.isObject(e))throw I(`.openmetrics.SummaryValue: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.SummaryValue;if(e.doubleValue!=null&&(n.doubleValue=z(e.doubleValue)),e.intValue!=null&&(M.Long?n.intValue=M.Long.fromValue(e.intValue,!1):typeof e.intValue==`string`?n.intValue=H(e.intValue,10):typeof e.intValue==`number`?n.intValue=e.intValue:typeof e.intValue==`object`&&(n.intValue=new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.count!=null&&(typeof e.count==`object`?e.count.low||e.count.high:z(e.count)!==0)&&(M.Long?n.count=M.Long.fromValue(e.count,!0):typeof e.count==`string`?n.count=H(e.count,10):typeof e.count==`number`?n.count=e.count:typeof e.count==`object`&&(n.count=new M.LongBits(e.count.low>>>0,e.count.high>
1>>0).toNumber(!0))),e.created!=null){if(!M.isObject(e.created))throw I(`.openmetrics.SummaryValue.created: object expected`);n.created=W.google.protobuf.Timestamp.fromObject(e.created,t+1)}if(e.quantile){if(!V.isArray(e.quantile))throw I(`.openmetrics.SummaryValue.quantile: array expected`);n.quantile=V(e.quantile.length);for(let r=0;r<e.quantile.length;++r){if(!M.isObject(e.quantile[r]))throw I(`.openmetrics.SummaryValue.quantile: object expected`);n.quantile[r]=W.openmetrics.SummaryValue.Quantile.fromObject(e.quantile[r],t+1)}}return n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if((t.arrays||t.defaults)&&(r.quantile=[]),t.defaults){if(M.Long){let e=new M.Long(0,0,!0);r.count=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.count=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;r.created=null}if(e.doubleValue!=null&&N.hasOwnProperty.call(e,`doubleValue`)&&(r.doubleValue=t.json&&!B(e.doubleValue)?L(e.doubleValue):e.doubleValue,t.oneofs&&(r.sum=`doubleValue`)),e.intValue!=null&&N.hasOwnProperty.call(e,`intValue`)&&(U!==void 0&&t.longs===U?r.intValue=typeof e.intValue==`number`?U(e.intValue):M.Long.fromBits(e.intValue.low>>>0,e.intValue.high>>>0,!1).toBigInt():typeof e.intValue==`number`?r.intValue=t.longs===L?L(e.intValue):e.intValue:r.intValue=t.longs===L?M.Long.prototype.toString.call(e.intValue):t.longs===z?new M.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(r.sum=`intValue`)),e.count!=null&&N.hasOwnProperty.call(e,`count`)&&(U!==void 0&&t.longs===U?r.count=typeof e.count==`number`?U(e.count):M.Long.fromBits(e.count.low>>>0,e.count.high>>>0,!0).toBigInt():typeof e.count==`number`?r.count=t.longs===L?L(e.count):e.count:r.count=t.longs===L?M.Long.prototype.toString.call(e.count):t.longs===z?new M.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),e.created!=null&&N.hasOwnProperty.call(e,`created`)&&(r.created=W.google.protobuf.Timestamp.toObject(e.created,t,n+1)),e.quantile&&e.quantile.length){r.quantile=V(e.quantile.length);for(let i=0;i<e.quantile.length;++i)r.quantile[i]=W.openmetrics.SummaryValue.Quantile.toObject(e.quantile[i],t,n+1)}return r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.SummaryValue`},e.Quantile=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.quantile=0,e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.quantile!=null&&N.hasOwnProperty.call(e,`quantile`)&&!N.is(e.quantile,0)&&t.uint32(9).double(e.quantile),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&!N.is(e.value,0)&&t.uint32(17).double(e.value),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.openmetrics.SummaryValue.Quantile,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==1)break;N.is(s=e.double(),0)?delete o.quantile:o.quantile=s;continue;case 2:if(a!==1)break;N.is(s=e.double(),0)?delete o.value:o.value=s;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.openmetrics.SummaryValue.Quantile)return e;if(!M.isObject(e))throw I(`.openmetrics.SummaryValue.Quantile: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.openmetrics.SummaryValue.Quantile;return e.quantile!=null&&(N.is(z(e.quantile),0)||(n.quantile=z(e.quantile))),e.value!=null&&(N.is(z(e.value),0)||(n.value=z(e.value))),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};return t.defaults&&(r.quantile=0,r.value=0),e.quantile!=null&&N.hasOwnProperty.call(e,`quantile`)&&(r.quantile=t.json&&!B(e.quantile)?L(e.quantile):e.quantile),e.value!=null&&N.hasOwnProperty.call(e,`value`)&&(r.value=t.json&&!B(e.value)?L(e.value):e.value),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/openmetrics.SummaryValue.Quantile`},e})(),e})(),e})(),W.google=(()=>{let e={};return e.protobuf=(function(){let e={};return e.Timestamp=(function(){let e=function(e){if(e)for(let t=N.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&t[n]!==`__proto__`&&(this[t[n]]=e[t[n]])};return e.prototype.seconds=M.Long?M.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t,n){if(t||=j.create(),n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);if(e.seconds!=null&&N.hasOwnProperty.call(e,`seconds`)&&(typeof e.seconds==`object`?e.seconds.low||e.seconds.high:e.seconds!==0)&&t.uint32(8).int64(e.seconds),e.nanos!=null&&N.hasOwnProperty.call(e,`nanos`)&&e.nanos!==0&&t.uint32(16).int32(e.nanos),e.$unknowns!=null&&N.hasOwnProperty.call(e,`$unknowns`))for(let n=0;n<e.$unknowns.length;++n)t.raw(e.$unknowns[n]);return t},e.decode=function(e,t,n,r,i){if(e instanceof A||(e=A.create(e)),r===P&&(r=0),r>A.recursionLimit)throw F(`max depth exceeded`);let a=t===P?e.len:e.pos+t,o=i||new W.google.protobuf.Timestamp,s;for(;e.pos<a;){let t=e.pos,i=e.tag();if(i===n){n=P;break}let a=i&7;switch(i>>>=3){case 1:if(a!==0)break;(typeof(s=e.int64())==`object`?s.low||s.high:s!==0)?o.seconds=s:delete o.seconds;continue;case 2:if(a!==0)break;(s=e.int32())?o.nanos=s:delete o.nanos;continue}e.skipType(a,r,i),e.discardUnknown||(M.makeProp(o,`$unknowns`,!1),(o.$unknowns||=[]).push(e.raw(t,e.pos)))}if(n!==P)throw F(`missing end group`);return o},e.fromObject=function(e,t){if(e instanceof W.google.protobuf.Timestamp)return e;if(!M.isObject(e))throw I(`.google.protobuf.Timestamp: object expected`);if(t===P&&(t=0),t>M.recursionLimit)throw F(`max depth exceeded`);let n=new W.google.protobuf.Timestamp;return e.seconds!=null&&(typeof e.seconds==`object`?e.seconds.low||e.seconds.high:z(e.seconds)!==0)&&(M.Long?n.seconds=M.Long.fromValue(e.seconds,!1):typeof e.seconds==`string`?n.seconds=H(e.seconds,10):typeof e.seconds==`number`?n.seconds=e.seconds:typeof e.seconds==`object`&&(n.seconds=new M.LongBits(e.seconds.low>>>0,e.seconds.high>>>
10).toNumber())),e.nanos!=null&&z(e.nanos)!==0&&(n.nanos=e.nanos|0),n},e.toObject=function(e,t,n){if(t||={},n===P&&(n=0),n>M.recursionLimit)throw F(`max depth exceeded`);let r={};if(t.defaults){if(M.Long){let e=new M.Long(0,0,!1);r.seconds=t.longs===L?e.toString():t.longs===z?e.toNumber():U!==void 0&&t.longs===U?e.toBigInt():e}else r.seconds=t.longs===L?`0`:U!==void 0&&t.longs===U?U(`0`):0;r.nanos=0}return e.seconds!=null&&N.hasOwnProperty.call(e,`seconds`)&&(U!==void 0&&t.longs===U?r.seconds=typeof e.seconds==`number`?U(e.seconds):M.Long.fromBits(e.seconds.low>>>0,e.seconds.high>>>0,!1).toBigInt():typeof e.seconds==`number`?r.seconds=t.longs===L?L(e.seconds):e.seconds:r.seconds=t.longs===L?M.Long.prototype.toString.call(e.seconds):t.longs===z?new M.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),e.nanos!=null&&N.hasOwnProperty.call(e,`nanos`)&&(r.nanos=e.nanos),r},e.prototype.toJSON=function(){return e.toObject(this,k.util.toJSONOptions)},e.getTypeUrl=function(e){return e===P&&(e=`type.googleapis.com`),e+`/google.protobuf.Timestamp`},e})(),e})(),e})(),W.RootContainer=(()=>{let e=N.create(null),t=N.create(e);return t[e[0]=`MAIN`]=0,t[e[1]=`SIDEBAR`]=1,t[e[2]=`EVENT`]=2,t[e[3]=`BOTTOM`]=3,t})();export{l as $,Me as A,Ce as B,$ as C,Oe as D,Ne as E,X as F,D as G,J as H,ne as I,x as J,E as K,xe as L,Q as M,ye as N,_e as O,be as P,u as Q,Se as R,G as S,ge as T,te as U,Y as V,O as W,f as X,b as Y,d as Z,ie as _,se as a,Te as b,ae as c,Ae as d,c as et,de as f,me as g,pe as h,q as i,ve as j,je as k,ue as l,Z as m,oe as n,n as nt,ce as o,fe as p,C as q,K as r,r as rt,le as s,ee as t,i as tt,ke as u,we as v,he as w,De as x,Ee as y,re as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.