var Common;!function(e){!function(e){"use strict";class r{static encode(e){if(e<64&&e>=0)return r.EncodedValues.charAt(e);throw TypeError(e+": not a 64 based value")}static decodeChar(e){if(1===e.length)return r.EncodedValues.indexOf(e);throw TypeError("'"+e+"' must have length 1")}}r.EncodedValues="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";class n{static encode(e){if(null===e||typeof e===n.UndefinedType)return null;e<0?e=1+(-e<<1):e<<=1;var t="";do{var a=31&e;(e>>=5)>0&&(a|=32);t+=r.encode(a)}while(e>0);return t}static decode(e,n){for(var t=0,a=!1,o=0,d=n;d<e.length;d++){var c=r.decodeChar(e[d]);if(d===n){if(-1===c)return null;1==(1&c)&&(a=!0);t=c>>1&15}else t|=(31&c)<<o;o+=d===n?4:5;if(32!=(32&c))return{value:a?-t:t,charsRead:d-n+1}}}}n.UndefinedType="undefined";e.Base64VLQFormat=n}(e.FormatService||(e.FormatService={}))}(Common||(Common={}));
