@peculiar/fortify-webcomponents
Version:
Web-components for creating CSR or Certificate and viewing certificates list using Fortify
10 lines • 89.2 kB
JavaScript
/*!
* © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License
*/
import{k as t}from"./p-CDwMJyak.js";var i={exports:{}};
/*!
* protobuf.js v7.5.8 (c) 2016, daniel wirtz
* compiled tue, 12 may 2026 09:39:59 utc
* licensed under the bsd-3-clause license
* see: https://github.com/dcodeio/protobuf.js for details
*/var e;function r(){if(e)return i.exports;e=1;(function(i){(function(e){(function t(e,r,n){function s(t){var i=r[t];if(!i)e[t][0].call(i=r[t]={exports:{}},s,i,i.exports);return i.exports}var f=s(n[0]);f.util.global.protobuf=f;if(i&&i.exports)i.exports=f})({1:[function(t,i,e){i.exports=r;function r(t,i){var e=new Array(arguments.length-1),r=0,n=2,s=true;while(n<arguments.length)e[r++]=arguments[n++];return new Promise((function n(f,u){e[r]=function t(i){if(s){s=false;if(i)u(i);else{var e=new Array(arguments.length-1),r=0;while(r<e.length)e[r++]=arguments[r];f.apply(null,e)}}};try{t.apply(i||null,e)}catch(t){if(s){s=false;u(t)}}}))}},{}],2:[function(t,i,r){var n=r;n.length=function t(i){var e=i.length;if(!e)return 0;var r=0;while(--e%4>1&&i.charAt(e)==="=")++r;return Math.ceil(i.length*3)/4-r};var s=new Array(64);var f=new Array(123);for(var u=0;u<64;)f[s[u]=u<26?u+65:u<52?u+71:u<62?u-4:u-59|43]=u++;n.encode=function t(i,e,r){var n=null,f=[];var u=0,o=0,a;while(e<r){var h=i[e++];switch(o){case 0:f[u++]=s[h>>2];a=(h&3)<<4;o=1;break;case 1:f[u++]=s[a|h>>4];a=(h&15)<<2;o=2;break;case 2:f[u++]=s[a|h>>6];f[u++]=s[h&63];o=0;break}if(u>8191){(n||(n=[])).push(String.fromCharCode.apply(String,f));u=0}}if(o){f[u++]=s[a];f[u++]=61;if(o===1)f[u++]=61}if(n){if(u)n.push(String.fromCharCode.apply(String,f.slice(0,u)));return n.join("")}return String.fromCharCode.apply(String,f.slice(0,u))};var o="invalid encoding";n.decode=function t(i,r,n){var s=n;var u=0,a;for(var h=0;h<i.length;){var c=i.charCodeAt(h++);if(c===61&&u>1)break;if((c=f[c])===e)throw Error(o);switch(u){case 0:a=c;u=1;break;case 1:r[n++]=a<<2|(c&48)>>4;a=c;u=2;break;case 2:r[n++]=(a&15)<<4|(c&60)>>2;a=c;u=3;break;case 3:r[n++]=(a&3)<<6|c;u=0;break}}if(u===1)throw Error(o);return n-s};n.test=function t(i){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(i)}},{}],3:[function(t,i,r){i.exports=s;var n=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function s(t,i){if(typeof t==="string"){i=t;t=e}var r=[];function n(t){if(typeof t!=="string"){var i=u();if(s.verbose)console.log("codegen: "+i);i="return "+i;if(t){var e=Object.keys(t),f=new Array(e.length+1),o=new Array(e.length),a=0;while(a<e.length){f[a]=e[a];o[a]=t[e[a++]]}f[a]=i;return Function.apply(null,f).apply(null,o)}return Function(i)()}var h=new Array(arguments.length-1),c=0;while(c<h.length)h[c]=arguments[++c];c=0;t=t.replace(/%([%dfijs])/g,(function t(i,e){var r=h[c++];switch(e){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}));if(c!==h.length)throw Error("parameter count mismatch");r.push(t);return n}function u(e){return"function "+f(e||i)+"("+(t&&t.join(",")||"")+"){\n "+r.join("\n ")+"\n}"}n.toString=u;return n}s.verbose=false;function f(t){if(!t)return"";t=String(t).replace(/[^\w$]/g,"");if(!t)return"";if(/^\d/.test(t))t="_"+t;return n.test(t)?t+"_":t}},{}],4:[function(t,i,r){i.exports=n;function n(){this._listeners={}}n.prototype.on=function t(i,e,r){(this._listeners[i]||(this._listeners[i]=[])).push({fn:e,ctx:r||this});return this};n.prototype.off=function t(i,r){if(i===e)this._listeners={};else{if(r===e)this._listeners[i]=[];else{var n=this._listeners[i];for(var s=0;s<n.length;)if(n[s].fn===r)n.splice(s,1);else++s}}return this};n.prototype.emit=function t(i){var e=this._listeners[i];if(e){var r=[],n=1;for(;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<e.length;)e[n].fn.apply(e[n++].ctx,r)}return this}},{}],5:[function(t,i,r){i.exports=u;var n=t(1),s=t(7);var f=s("fs");function u(t,i,e){if(typeof i==="function"){e=i;i={}}else if(!i)i={};if(!e)return n(u,this,t,i);if(!i.xhr&&f&&f.readFile)return f.readFile(t,(function r(n,s){return n&&typeof XMLHttpRequest!=="undefined"?u.xhr(t,i,e):n?e(n):e(null,i.binary?s:s.toString("utf8"))}));return u.xhr(t,i,e)}u.xhr=function t(i,r,n){var s=new XMLHttpRequest;s.onreadystatechange=function t(){if(s.readyState!==4)return e;if(s.status!==0&&s.status!==200)return n(Error("status "+s.status));if(r.binary){var i=s.response;if(!i){i=[];for(var f=0;f<s.responseText.length;++f)i.push(s.responseText.charCodeAt(f)&255)}return n(null,typeof Uint8Array!=="undefined"?new Uint8Array(i):i)}return n(null,s.responseText)};if(r.binary){if("overrideMimeType"in s)s.overrideMimeType("text/plain; charset=x-user-defined");s.responseType="arraybuffer"}s.open("GET",i);s.send()}},{1:1,7:7}],6:[function(t,i,e){i.exports=r(r);function r(t){if(typeof Float32Array!=="undefined")(function(){var i=new Float32Array([-0]),e=new Uint8Array(i.buffer),r=e[3]===128;function n(t,r,n){i[0]=t;r[n]=e[0];r[n+1]=e[1];r[n+2]=e[2];r[n+3]=e[3]}function s(t,r,n){i[0]=t;r[n]=e[3];r[n+1]=e[2];r[n+2]=e[1];r[n+3]=e[0]}t.writeFloatLE=r?n:s;t.writeFloatBE=r?s:n;function f(t,r){e[0]=t[r];e[1]=t[r+1];e[2]=t[r+2];e[3]=t[r+3];return i[0]}function u(t,r){e[3]=t[r];e[2]=t[r+1];e[1]=t[r+2];e[0]=t[r+3];return i[0]}t.readFloatLE=r?f:u;t.readFloatBE=r?u:f})();else(function(){function i(t,i,e,r){var n=i<0?1:0;if(n)i=-i;if(i===0)t(1/i>0?0:2147483648,e,r);else if(isNaN(i))t(2143289344,e,r);else if(i>34028234663852886e22)t((n<<31|2139095040)>>>0,e,r);else if(i<11754943508222875e-54)t((n<<31|Math.round(i/1401298464324817e-60))>>>0,e,r);else{var s=Math.floor(Math.log(i)/Math.LN2),f=Math.round(i*Math.pow(2,-s)*8388608)&8388607;t((n<<31|s+127<<23|f)>>>0,e,r)}}t.writeFloatLE=i.bind(null,n);t.writeFloatBE=i.bind(null,s);function e(t,i,e){var r=t(i,e),n=(r>>31)*2+1,s=r>>>23&255,f=r&8388607;return s===255?f?NaN:n*Infinity:s===0?n*1401298464324817e-60*f:n*Math.pow(2,s-150)*(f+8388608)}t.readFloatLE=e.bind(null,f);t.readFloatBE=e.bind(null,u)})();if(typeof Float64Array!=="undefined")(function(){var i=new Float64Array([-0]),e=new Uint8Array(i.buffer),r=e[7]===128;function n(t,r,n){i[0]=t;r[n]=e[0];r[n+1]=e[1];r[n+2]=e[2];r[n+3]=e[3];r[n+4]=e[4];r[n+5]=e[5];r[n+6]=e[6];r[n+7]=e[7]}function s(t,r,n){i[0]=t;r[n]=e[7];r[n+1]=e[6];r[n+2]=e[5];r[n+3]=e[4];r[n+4]=e[3];r[n+5]=e[2];r[n+6]=e[1];r[n+7]=e[0]}t.writeDoubleLE=r?n:s;t.writeDoubleBE=r?s:n;function f(t,r){e[0]=t[r];e[1]=t[r+1];e[2]=t[r+2];e[3]=t[r+3];e[4]=t[r+4];e[5]=t[r+5];e[6]=t[r+6];e[7]=t[r+7];return i[0]}function u(t,r){e[7]=t[r];e[6]=t[r+1];e[5]=t[r+2];e[4]=t[r+3];e[3]=t[r+4];e[2]=t[r+5];e[1]=t[r+6];e[0]=t[r+7];return i[0]}t.readDoubleLE=r?f:u;t.readDoubleBE=r?u:f})();else(function(){function i(t,i,e,r,n,s){var f=r<0?1:0;if(f)r=-r;if(r===0){t(0,n,s+i);t(1/r>0?0:2147483648,n,s+e)}else if(isNaN(r)){t(0,n,s+i);t(2146959360,n,s+e)}else if(r>17976931348623157e292){t(0,n,s+i);t((f<<31|2146435072)>>>0,n,s+e)}else{var u;if(r<22250738585072014e-324){u=r/5e-324;t(u>>>0,n,s+i);t((f<<31|u/4294967296)>>>0,n,s+e)}else{var o=Math.floor(Math.log(r)/Math.LN2);if(o===1024)o=1023;u=r*Math.pow(2,-o);t(u*4503599627370496>>>0,n,s+i);t((f<<31|o+1023<<20|u*1048576&1048575)>>>0,n,s+e)}}}t.writeDoubleLE=i.bind(null,n,0,4);t.writeDoubleBE=i.bind(null,s,4,0);function e(t,i,e,r,n){var s=t(r,n+i),f=t(r,n+e);var u=(f>>31)*2+1,o=f>>>20&2047,a=4294967296*(f&1048575)+s;return o===2047?a?NaN:u*Infinity:o===0?u*5e-324*a:u*Math.pow(2,o-1075)*(a+4503599627370496)}t.readDoubleLE=e.bind(null,f,0,4);t.readDoubleBE=e.bind(null,u,4,0)})();return t}function n(t,i,e){i[e]=t&255;i[e+1]=t>>>8&255;i[e+2]=t>>>16&255;i[e+3]=t>>>24}function s(t,i,e){i[e]=t>>>24;i[e+1]=t>>>16&255;i[e+2]=t>>>8&255;i[e+3]=t&255}function f(t,i){return(t[i]|t[i+1]<<8|t[i+2]<<16|t[i+3]<<24)>>>0}function u(t,i){return(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0}},{}],7:[function(t,i,e){i.exports=r;function r(i){try{if(typeof t!=="function"){return null}var e=t(i);if(e&&(e.length||Object.keys(e).length))return e;return null}catch(t){return null}}},{}],8:[function(t,i,e){var r=e;var n=r.isAbsolute=function t(i){return/^(?:\/|\w+:)/.test(i)};var s=r.normalize=function t(i){i=i.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var e=i.split("/"),r=n(i),s="";if(r)s=e.shift()+"/";for(var f=0;f<e.length;){if(e[f]===".."){if(f>0&&e[f-1]!=="..")e.splice(--f,2);else if(r)e.splice(f,1);else++f}else if(e[f]===".")e.splice(f,1);else++f}return s+e.join("/")};r.resolve=function t(i,e,r){if(!r)e=s(e);if(n(e))return e;if(!r)i=s(i);return(i=i.replace(/(?:\/|^)[^/]+$/,"")).length?s(i+"/"+e):e}},{}],9:[function(t,i,e){i.exports=r;function r(t,i,e){var r=e||8192;var n=r>>>1;var s=null;var f=r;return function e(u){if(u<1||u>n)return t(u);if(f+u>r){s=t(r);f=0}var o=i.call(s,f,f+=u);if(f&7)f=(f|7)+1;return o}}},{}],10:[function(t,i,e){var r=e,n="�";r.length=function t(i){var e=0,r=0;for(var n=0;n<i.length;++n){r=i.charCodeAt(n);if(r<128)e+=1;else if(r<2048)e+=2;else if((r&64512)===55296&&(i.charCodeAt(n+1)&64512)===56320){++n;e+=4}else e+=3}return e};r.read=function t(i,e,r){if(r-e<1){return""}var s="";for(var f=e;f<r;){var u=i[f++];if(u<=127){s+=String.fromCharCode(u)}else if(u>=192&&u<224){var o=(u&31)<<6|i[f++]&63;s+=o>=128?String.fromCharCode(o):n}else if(u>=224&&u<240){var a=(u&15)<<12|(i[f++]&63)<<6|i[f++]&63;s+=a>=2048?String.fromCharCode(a):n}else if(u>=240){var h=(u&7)<<18|(i[f++]&63)<<12|(i[f++]&63)<<6|i[f++]&63;if(h<65536||h>1114111)s+=n;else{h-=65536;s+=String.fromCharCode(55296+(h>>10));s+=String.fromCharCode(56320+(h&1023))}}}return s};r.write=function t(i,e,r){var n=r,s,f;for(var u=0;u<i.length;++u){s=i.charCodeAt(u);if(s<128){e[r++]=s}else if(s<2048){e[r++]=s>>6|192;e[r++]=s&63|128}else if((s&64512)===55296&&((f=i.charCodeAt(u+1))&64512)===56320){s=65536+((s&1023)<<10)+(f&1023);++u;e[r++]=s>>18|240;e[r++]=s>>12&63|128;e[r++]=s>>6&63|128;e[r++]=s&63|128}else{e[r++]=s>>12|224;e[r++]=s>>6&63|128;e[r++]=s&63|128}}return r-n}},{}],11:[function(t,i,e){i.exports=n;var r=/\/|\./;function n(t,i){if(!r.test(t)){t="google/protobuf/"+t+".proto";i={nested:{google:{nested:{protobuf:{nested:i}}}}}}n[t]=i}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var s;n("duration",{Duration:s={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}});n("timestamp",{Timestamp:s});n("empty",{Empty:{fields:{}}});n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}});n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}});n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}});n.get=function t(i){return n[i]||null}},{}],12:[function(t,i,e){var r=e;var n=t(15),s=t(37);function f(t,i,e,r){var s=false;if(i.resolvedType){if(i.resolvedType instanceof n){t("switch(d%s){",r);for(var f=i.resolvedType.values,u=Object.keys(f),o=0;o<u.length;++o){if(f[u[o]]===i.typeDefault&&!s){t("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',r,r,r);if(!i.repeated)t("break");s=true}t("case%j:",u[o])("case %i:",f[u[o]])("m%s=%j",r,f[u[o]])("break")}t("}")}else t('if(typeof d%s!=="object")',r)("throw TypeError(%j)",i.fullName+": object expected")("m%s=types[%i].fromObject(d%s,n+1)",r,e,r)}else{var a=false;switch(i.type){case"double":case"float":t("m%s=Number(d%s)",r,r);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",r,r);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",r,r);break;case"uint64":a=true;case"int64":case"sint64":case"fixed64":case"sfixed64":t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",r,r,a)('else if(typeof d%s==="string")',r)("m%s=parseInt(d%s,10)",r,r)('else if(typeof d%s==="number")',r)("m%s=d%s",r,r)('else if(typeof d%s==="object")',r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",r,r,r,a?"true":"");break;case"bytes":t('if(typeof d%s==="string")',r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",r,r,r)("else if(d%s.length >= 0)",r)("m%s=d%s",r,r);break;case"string":t("m%s=String(d%s)",r,r);break;case"bool":t("m%s=Boolean(d%s)",r,r);break}}return t}r.fromObject=function t(i){var e=i.fieldsArray;var r=s.codegen(["d","n"],i.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!e.length)return r("return new this.ctor");r("var m=new this.ctor");for(var u=0;u<e.length;++u){var o=e[u].resolve(),a=s.safeProp(o.name);if(o.map){r("if(d%s){",a)('if(typeof d%s!=="object")',a)("throw TypeError(%j)",o.fullName+": object expected")("m%s={}",a)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",a);r('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",a);f(r,o,u,a+"[ks[i]]")("}")("}")}else if(o.repeated){r("if(d%s){",a)("if(!Array.isArray(d%s))",a)("throw TypeError(%j)",o.fullName+": array expected")("m%s=[]",a)("for(var i=0;i<d%s.length;++i){",a);f(r,o,u,a+"[i]")("}")("}")}else{if(!(o.resolvedType instanceof n))r("if(d%s!=null){",a);f(r,o,u,a);if(!(o.resolvedType instanceof n))r("}")}}return r("return m")};function u(t,i,e,r){if(i.resolvedType){if(i.resolvedType instanceof n)t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",r,e,r,r,e,r,r);else t("d%s=types[%i].toObject(m%s,o)",r,e,r)}else{var s=false;switch(i.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",r,r,r,r);break;case"uint64":s=true;case"int64":case"sint64":case"fixed64":case"sfixed64":t('if(typeof m%s==="number")',r)("d%s=o.longs===String?String(m%s):m%s",r,r,r)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",r,r,r,r,s?"true":"",r);break;case"bytes":t("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",r,r,r,r,r);break;default:t("d%s=m%s",r,r);break}}return t}r.toObject=function t(i){var e=i.fieldsArray.slice().sort(s.compareFieldsById);if(!e.length)return s.codegen()("return {}");var r=s.codegen(["m","o"],i.name+"$toObject")("if(!o)")("o={}")("var d={}");var f=[],o=[],a=[],h=0;for(;h<e.length;++h)if(!e[h].partOf)(e[h].resolve().repeated?f:e[h].map?o:a).push(e[h]);if(f.length){r("if(o.arrays||o.defaults){");for(h=0;h<f.length;++h)r("d%s=[]",s.safeProp(f[h].name));r("}")}if(o.length){r("if(o.objects||o.defaults){");for(h=0;h<o.length;++h)r("d%s={}",s.safeProp(o[h].name));r("}")}if(a.length){r("if(o.defaults){");for(h=0;h<a.length;++h){var c=a[h],l=s.safeProp(c.name);if(c.resolvedType instanceof n)r("d%s=o.enums===String?%j:%j",l,c.resolvedType.valuesById[c.typeDefault],c.typeDefault);else if(c.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",c.typeDefault.low,c.typeDefault.high,c.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",l)("}else")("d%s=o.longs===String?%j:%i",l,c.typeDefault.toString(),c.typeDefault.toNumber());else if(c.bytes){var v=Array.prototype.slice.call(c.typeDefault);r("if(o.bytes===String)d%s=%j",l,String.fromCharCode.apply(String,c.typeDefault))("else{")("d%s=%j",l,v)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",l,l)("}")}else r("d%s=%j",l,c.typeDefault)}r("}")}var d=false;for(h=0;h<e.length;++h){var c=e[h],p=i._fieldsArray.indexOf(c),l=s.safeProp(c.name);if(c.map){if(!d){d=true;r("var ks2")}r("if(m%s&&(ks2=Object.keys(m%s)).length){",l,l)("d%s={}",l)("for(var j=0;j<ks2.length;++j){");r('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",l);u(r,c,p,l+"[ks2[j]]")("}")}else if(c.repeated){r("if(m%s&&m%s.length){",l,l)("d%s=[]",l)("for(var j=0;j<m%s.length;++j){",l);u(r,c,p,l+"[j]")("}")}else{r("if(m%s!=null&&m.hasOwnProperty(%j)){",l,c.name);u(r,c,p,l);if(c.partOf)r("if(o.oneofs)")("d%s=%j",s.safeProp(c.partOf.name),c.name)}r("}")}return r("return d")}},{15:15,37:37}],13:[function(t,i,r){i.exports=o;var n=t(15),s=t(36),f=t(37);function u(t){return"missing required '"+t.name+"'"}function o(t){var i=f.codegen(["r","l","e","n"],t.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(n===undefined)n=0")("if(n>Reader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(t.fieldsArray.filter((function(t){return t.map})).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){");var r=0;for(;r<t.fieldsArray.length;++r){var o=t._fieldsArray[r].resolve(),a=o.resolvedType instanceof n?"int32":o.type,h="m"+f.safeProp(o.name);i("case %i: {",o.id);if(o.map){i("if(%s===util.emptyObject)",h)("%s={}",h)("var c2 = r.uint32()+r.pos");if(s.defaults[o.keyType]!==e)i("k=%j",s.defaults[o.keyType]);else i("k=null");if(s.defaults[a]!==e)i("value=%j",s.defaults[a]);else i("value=null");i("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",o.keyType)("case 2:");if(s.basic[a]===e)i("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r);else i("value=r.%s()",a);i("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}");if(s.long[o.keyType]!==e)i('%s[typeof k==="object"?util.longToHash(k):k]=value',h);else{if(o.keyType==="string")i('if(k==="__proto__")')("util.makeProp(%s,k)",h);i("%s[k]=value",h)}}else if(o.repeated){i("if(!(%s&&%s.length))",h,h)("%s=[]",h);if(s.packed[a]!==e)i("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",h,a)("}else");if(s.basic[a]===e)i(o.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4),n+1))":"%s.push(types[%i].decode(r,r.uint32(),undefined,n+1))",h,r);else i("%s.push(r.%s())",h,a)}else if(s.basic[a]===e)i(o.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4),n+1)":"%s=types[%i].decode(r,r.uint32(),undefined,n+1)",h,r);else i("%s=r.%s()",h,a);i("break")("}")}i("default:")("r.skipType(t&7,n)")("break")("}")("}");for(r=0;r<t._fieldsArray.length;++r){var c=t._fieldsArray[r];if(c.required)i("if(!m.hasOwnProperty(%j))",c.name)("throw util.ProtocolError(%j,{instance:m})",u(c))}return i("return m")}},{15:15,36:36,37:37}],14:[function(t,i,r){i.exports=o;var n=t(15),s=t(36),f=t(37);function u(t,i,e,r){return i.delimited?t("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",e,r,(i.id<<3|3)>>>0,(i.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",e,r,(i.id<<3|2)>>>0)}function o(t){var i=f.codegen(["m","w"],t.name+"$encode")("if(!w)")("w=Writer.create()");var r,o;var a=t.fieldsArray.slice().sort(f.compareFieldsById);for(var r=0;r<a.length;++r){var h=a[r].resolve(),c=t._fieldsArray.indexOf(h),l=h.resolvedType instanceof n?"int32":h.type,v=s.basic[l];o="m"+f.safeProp(h.name);if(h.map){i("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",o,h.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",o)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(h.id<<3|2)>>>0,8|s.mapKey[h.keyType],h.keyType);if(v===e)i("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c,o);else i(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|v,l,o);i("}")("}")}else if(h.repeated){i("if(%s!=null&&%s.length){",o,o);if(h.packed&&s.packed[l]!==e){i("w.uint32(%i).fork()",(h.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",o)("w.%s(%s[i])",l,o)("w.ldelim()")}else{i("for(var i=0;i<%s.length;++i)",o);if(v===e)u(i,h,c,o+"[i]");else i("w.uint32(%i).%s(%s[i])",(h.id<<3|v)>>>0,l,o)}i("}")}else{if(h.optional)i("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",o,h.name);if(v===e)u(i,h,c,o);else i("w.uint32(%i).%s(%s)",(h.id<<3|v)>>>0,l,o)}}return i("return w")}},{15:15,36:36,37:37}],15:[function(t,i,r){i.exports=u;var n=t(24);((u.prototype=Object.create(n.prototype)).constructor=u).className="Enum";var s=t(23),f=t(37);function u(t,i,r,s,f,u){n.call(this,t,r);if(i&&typeof i!=="object")throw TypeError("values must be an object");this.valuesById={};this.values=Object.create(this.valuesById);this.comment=s;this.comments=f||{};this.valuesOptions=u;this._valuesFeatures={};this.reserved=e;if(i)for(var o=Object.keys(i),a=0;a<o.length;++a)if(o[a]!=="__proto__"&&typeof i[o[a]]==="number")this.valuesById[this.values[o[a]]=i[o[a]]]=o[a]}u.prototype._resolveFeatures=function t(i){i=this._edition||i;n.prototype._resolveFeatures.call(this,i);Object.keys(this.values).forEach((t=>{var i=Object.assign({},this._features);this._valuesFeatures[t]=Object.assign(i,this.valuesOptions&&this.valuesOptions[t]&&this.valuesOptions[t].features)}));return this};u.fromJSON=function t(i,e){var r=new u(i,e.values,e.options,e.comment,e.comments);r.reserved=e.reserved;if(e.edition)r._edition=e.edition;r._defaultEdition="proto3";return r};u.prototype.toJSON=function t(i){var r=i?Boolean(i.keepComments):false;return f.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:e,"comment",r?this.comment:e,"comments",r?this.comments:e])};u.prototype.add=function t(i,r,n,s){if(!f.isString(i))throw TypeError("name must be a string");if(!f.isInteger(r))throw TypeError("id must be an integer");if(i==="__proto__")return this;if(this.values[i]!==e)throw Error("duplicate name '"+i+"' in "+this);if(this.isReservedId(r))throw Error("id "+r+" is reserved in "+this);if(this.isReservedName(i))throw Error("name '"+i+"' is reserved in "+this);if(this.valuesById[r]!==e){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+r+" in "+this);this.values[i]=r}else this.valuesById[this.values[i]=r]=i;if(s){if(this.valuesOptions===e)this.valuesOptions={};this.valuesOptions[i]=s||null}this.comments[i]=n||null;return this};u.prototype.remove=function t(i){if(!f.isString(i))throw TypeError("name must be a string");var e=this.values[i];if(e==null)throw Error("name '"+i+"' does not exist in "+this);delete this.valuesById[e];delete this.values[i];delete this.comments[i];if(this.valuesOptions)delete this.valuesOptions[i];return this};u.prototype.isReservedId=function t(i){return s.isReservedId(this.reserved,i)};u.prototype.isReservedName=function t(i){return s.isReservedName(this.reserved,i)}},{23:23,24:24,37:37}],16:[function(t,i,r){i.exports=h;var n=t(24);((h.prototype=Object.create(n.prototype)).constructor=h).className="Field";var s=t(15),f=t(36),u=t(37);var o;var a=/^required|optional|repeated$/;h.fromJSON=function t(i,e){var r=new h(i,e.id,e.type,e.rule,e.extend,e.options,e.comment);if(e.edition)r._edition=e.edition;r._defaultEdition="proto3";return r};function h(t,i,r,s,o,h,c){if(u.isObject(s)){c=o;h=s;s=o=e}else if(u.isObject(o)){c=h;h=o;o=e}n.call(this,t,h);if(!u.isInteger(i)||i<0)throw TypeError("id must be a non-negative integer");if(!u.isString(r))throw TypeError("type must be a string");if(s!==e&&!a.test(s=s.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(o!==e&&!u.isString(o))throw TypeError("extend must be a string");if(s==="proto3_optional"){s="optional"}this.rule=s&&s!=="optional"?s:e;this.type=r;this.id=i;this.extend=o||e;this.repeated=s==="repeated";this.map=false;this.message=null;this.partOf=null;this.typeDefault=null;this.defaultValue=null;this.long=u.Long?f.long[r]!==e:false;this.bytes=r==="bytes";this.resolvedType=null;this.extensionField=null;this.declaringField=null;this.comment=c}Object.defineProperty(h.prototype,"required",{get:function(){return this._features.field_presence==="LEGACY_REQUIRED"}});Object.defineProperty(h.prototype,"optional",{get:function(){return!this.required}});Object.defineProperty(h.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&this._features.message_encoding==="DELIMITED"}});Object.defineProperty(h.prototype,"packed",{get:function(){return this._features.repeated_field_encoding==="PACKED"}});Object.defineProperty(h.prototype,"hasPresence",{get:function(){if(this.repeated||this.map){return false}return this.partOf||this.declaringField||this.extensionField||this._features.field_presence!=="IMPLICIT"}});h.prototype.setOption=function t(i,e,r){return n.prototype.setOption.call(this,i,e,r)};h.prototype.toJSON=function t(i){var r=i?Boolean(i.keepComments):false;return u.toObject(["edition",this._editionToJSON(),"rule",this.rule!=="optional"&&this.rule||e,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",r?this.comment:e])};h.prototype.resolve=function t(){if(this.resolved)return this;if((this.typeDefault=f.defaults[this.type])===e){this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type);if(this.resolvedType instanceof o)this.typeDefault=null;else this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]}else if(this.options&&this.options.proto3_optional){this.typeDefault=null}if(this.options&&this.options["default"]!=null){this.typeDefault=this.options["default"];if(this.resolvedType instanceof s&&typeof this.typeDefault==="string")this.typeDefault=this.resolvedType.values[this.typeDefault]}if(this.options){if(this.options.packed!==e&&this.resolvedType&&!(this.resolvedType instanceof s))delete this.options.packed;if(!Object.keys(this.options).length)this.options=e}if(this.long){this.typeDefault=u.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u");if(Object.freeze)Object.freeze(this.typeDefault)}else if(this.bytes&&typeof this.typeDefault==="string"){var i;if(u.base64.test(this.typeDefault))u.base64.decode(this.typeDefault,i=u.newBuffer(u.base64.length(this.typeDefault)),0);else u.utf8.write(this.typeDefault,i=u.newBuffer(u.utf8.length(this.typeDefault)),0);this.typeDefault=i}if(this.map)this.defaultValue=u.emptyObject;else if(this.repeated)this.defaultValue=u.emptyArray;else this.defaultValue=this.typeDefault;if(this.parent instanceof o)this.parent.ctor.prototype[this.name]=this.defaultValue;return n.prototype.resolve.call(this)};h.prototype._inferLegacyProtoFeatures=function t(i){if(i!=="proto2"&&i!=="proto3"){return{}}var r={};if(this.rule==="required"){r.field_presence="LEGACY_REQUIRED"}if(this.parent&&f.defaults[this.type]===e){var n=this.parent.get(this.type.split(".").pop());if(n&&n instanceof o&&n.group){r.message_encoding="DELIMITED"}}if(this.getOption("packed")===true){r.repeated_field_encoding="PACKED"}else if(this.getOption("packed")===false){r.repeated_field_encoding="EXPANDED"}return r};h.prototype._resolveFeatures=function t(i){return n.prototype._resolveFeatures.call(this,this._edition||i)};h.d=function t(i,e,r,n){if(typeof e==="function")e=u.decorateType(e).name;else if(e&&typeof e==="object")e=u.decorateEnum(e).name;return function t(s,f){u.decorateType(s.constructor).add(new h(f,i,e,r,{default:n}))}};h._configure=function t(i){o=i}},{15:15,24:24,36:36,37:37}],17:[function(t,i,e){var r=i.exports=t(18);r.build="light";function n(t,i,e){if(typeof i==="function"){e=i;i=new r.Root}else if(!i)i=new r.Root;return i.load(t,e)}r.load=n;function s(t,i){if(!i)i=new r.Root;return i.loadSync(t)}r.loadSync=s;r.encoder=t(14);r.decoder=t(13);r.verifier=t(41);r.converter=t(12);r.ReflectionObject=t(24);r.Namespace=t(23);r.Root=t(29);r.Enum=t(15);r.Type=t(35);r.Field=t(16);r.OneOf=t(25);r.MapField=t(20);r.Service=t(33);r.Method=t(22);r.Message=t(21);r.wrappers=t(42);r.types=t(36);r.util=t(37);r.ReflectionObject._configure(r.Root);r.Namespace._configure(r.Type,r.Service,r.Enum);r.Root._configure(r.Type);r.Field._configure(r.Type)},{12:12,13:13,14:14,15:15,16:16,18:18,20:20,21:21,22:22,23:23,24:24,25:25,29:29,33:33,35:35,36:36,37:37,41:41,42:42}],18:[function(t,i,e){var r=e;r.build="minimal";r.Writer=t(43);r.BufferWriter=t(44);r.Reader=t(27);r.BufferReader=t(28);r.util=t(39);r.rpc=t(31);r.roots=t(30);r.configure=n;function n(){r.util._configure();r.Writer._configure(r.BufferWriter);r.Reader._configure(r.BufferReader)}n()},{27:27,28:28,30:30,31:31,39:39,43:43,44:44}],19:[function(t,i,e){var r=i.exports=t(17);r.build="full";r.tokenize=t(34);r.parse=t(26);r.common=t(11);r.Root._configure(r.Type,r.parse,r.common)},{11:11,17:17,26:26,34:34}],20:[function(t,i,r){i.exports=u;var n=t(16);((u.prototype=Object.create(n.prototype)).constructor=u).className="MapField";var s=t(36),f=t(37);function u(t,i,r,s,u,o){n.call(this,t,i,s,e,e,u,o);if(!f.isString(r))throw TypeError("keyType must be a string");this.keyType=r;this.resolvedKeyType=null;this.map=true}u.fromJSON=function t(i,e){return new u(i,e.id,e.keyType,e.type,e.options,e.comment)};u.prototype.toJSON=function t(i){var r=i?Boolean(i.keepComments):false;return f.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",r?this.comment:e])};u.prototype.resolve=function t(){if(this.resolved)return this;if(s.mapKey[this.keyType]===e)throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)};u.d=function t(i,e,r){if(typeof r==="function")r=f.decorateType(r).name;else if(r&&typeof r==="object")r=f.decorateEnum(r).name;return function t(n,s){f.decorateType(n.constructor).add(new u(s,i,e,r))}}},{16:16,36:36,37:37}],21:[function(t,i,e){i.exports=n;var r=t(39);function n(t){if(t)for(var i=Object.keys(t),e=0;e<i.length;++e){var r=i[e];if(r==="__proto__")continue;this[r]=t[r]}}n.create=function t(i){return this.$type.create(i)};n.encode=function t(i,e){return this.$type.encode(i,e)};n.encodeDelimited=function t(i,e){return this.$type.encodeDelimited(i,e)};n.decode=function t(i){return this.$type.decode(i)};n.decodeDelimited=function t(i){return this.$type.decodeDelimited(i)};n.verify=function t(i){return this.$type.verify(i)};n.fromObject=function t(i){return this.$type.fromObject(i)};n.toObject=function t(i,e){return this.$type.toObject(i,e)};n.prototype.toJSON=function t(){return this.$type.toObject(this,r.toJSONOptions)}},{39:39}],22:[function(t,i,r){i.exports=f;var n=t(24);((f.prototype=Object.create(n.prototype)).constructor=f).className="Method";var s=t(37);function f(t,i,r,f,u,o,a,h,c){if(s.isObject(u)){a=u;u=o=e}else if(s.isObject(o)){a=o;o=e}if(!(i===e||s.isString(i)))throw TypeError("type must be a string");if(!s.isString(r))throw TypeError("requestType must be a string");if(!s.isString(f))throw TypeError("responseType must be a string");n.call(this,t,a);this.type=i||"rpc";this.requestType=r;this.requestStream=u?true:e;this.responseType=f;this.responseStream=o?true:e;this.resolvedRequestType=null;this.resolvedResponseType=null;this.comment=h;this.parsedOptions=c}f.fromJSON=function t(i,e){return new f(i,e.type,e.requestType,e.responseType,e.requestStream,e.responseStream,e.options,e.comment,e.parsedOptions)};f.prototype.toJSON=function t(i){var r=i?Boolean(i.keepComments):false;return s.toObject(["type",this.type!=="rpc"&&this.type||e,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",r?this.comment:e,"parsedOptions",this.parsedOptions])};f.prototype.resolve=function t(){if(this.resolved)return this;this.resolvedRequestType=this.parent.lookupType(this.requestType);this.resolvedResponseType=this.parent.lookupType(this.responseType);return n.prototype.resolve.call(this)}},{24:24,37:37}],23:[function(t,i,r){i.exports=l;var n=t(24);((l.prototype=Object.create(n.prototype)).constructor=l).className="Namespace";var s=t(16),f=t(37),u=t(25);var o,a,h;l.fromJSON=function t(i,e,r){r=f.checkDepth(r);return new l(i,e.options).addJSON(e.nested,r)};function c(t,i){if(!(t&&t.length))return e;var r={};for(var n=0;n<t.length;++n)r[t[n].name]=t[n].toJSON(i);return r}l.arrayToJSON=c;l.isReservedId=function t(i,e){if(i)for(var r=0;r<i.length;++r)if(typeof i[r]!=="string"&&i[r][0]<=e&&i[r][1]>e)return true;return false};l.isReservedName=function t(i,e){if(i)for(var r=0;r<i.length;++r)if(i[r]===e)return true;return false};function l(t,i){n.call(this,t,i);this.nested=e;this._nestedArray=null;this._lookupCache=Object.create(null);this._needsRecursiveFeatureResolution=true;this._needsRecursiveResolve=true}function v(t){t._nestedArray=null;t._lookupCache=Object.create(null);var i=t;while(i=i.parent){i._lookupCache=Object.create(null)}return t}Object.defineProperty(l.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}});l.prototype.toJSON=function t(i){return f.toObject(["options",this.options,"nested",c(this.nestedArray,i)])};l.prototype.addJSON=function t(i,r){r=f.checkDepth(r);var n=this;if(i){for(var u=Object.keys(i),c=0,v;c<u.length;++c){v=i[u[c]];n.add((v.fields!==e?o.fromJSON:v.values!==e?h.fromJSON:v.methods!==e?a.fromJSON:v.id!==e?s.fromJSON:l.fromJSON)(u[c],v,r+1))}}return this};l.prototype.get=function t(i){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,i)?this.nested[i]:null};l.prototype.getEnum=function t(i){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,i)&&this.nested[i]instanceof h)return this.nested[i].values;throw Error("no such enum: "+i)};l.prototype.add=function t(i){if(!(i instanceof s&&i.extend!==e||i instanceof o||i instanceof u||i instanceof h||i instanceof a||i instanceof l))throw TypeError("object must be a valid nested object");if(i.name==="__proto__")return this;if(!this.nested)this.nested={};else{var r=this.get(i.name);if(r){if(r instanceof l&&i instanceof l&&!(r instanceof o||r instanceof a)){var n=r.nestedArray;for(var f=0;f<n.length;++f)i.add(n[f]);this.remove(r);if(!this.nested)this.nested={};i.setOptions(r.options,true)}else throw Error("duplicate name '"+i.name+"' in "+this)}}this.nested[i.name]=i;if(!(this instanceof o||this instanceof a||this instanceof h||this instanceof s)){if(!i._edition){i._edition=i._defaultEdition}}this._needsRecursiveFeatureResolution=true;this._needsRecursiveResolve=true;var c=this;while(c=c.parent){c._needsRecursiveFeatureResolution=true;c._needsRecursiveResolve=true}i.onAdd(this);return v(this)};l.prototype.remove=function t(i){if(!(i instanceof n))throw TypeError("object must be a ReflectionObject");if(i.parent!==this)throw Error(i+" is not a member of "+this);delete this.nested[i.name];if(!Object.keys(this.nested).length)this.nested=e;i.onRemove(this);return v(this)};l.prototype.define=function t(i,e){if(f.isString(i))i=i.split(".");else if(!Array.isArray(i))throw TypeError("illegal path");if(i&&i.length&&i[0]==="")throw Error("path must be relative");var r=this;while(i.length>0){var n=i.shift();if(r.nested&&r.nested[n]){r=r.nested[n];if(!(r instanceof l))throw Error("path conflicts with non-namespace objects")}else r.add(r=new l(n))}if(e)r.addJSON(e);return r};l.prototype.resolveAll=function t(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var i=this.nestedArray,e=0;this.resolve();while(e<i.length)if(i[e]instanceof l)i[e++].resolveAll();else i[e++].resolve();this._needsRecursiveResolve=false;return this};l.prototype._resolveFeaturesRecursive=function t(i){if(!this._needsRecursiveFeatureResolution)return this;this._needsRecursiveFeatureResolution=false;i=this._edition||i;n.prototype._resolveFeaturesRecursive.call(this,i);this.nestedArray.forEach((t=>{t._resolveFeaturesRecursive(i)}));return this};l.prototype.lookup=function t(i,r,n){if(typeof r==="boolean"){n=r;r=e}else if(r&&!Array.isArray(r))r=[r];if(f.isString(i)&&i.length){if(i===".")return this.root;i=i.split(".")}else if(!i.length)return this;var s=i.join(".");if(i[0]==="")return this.root.lookup(i.slice(1),r);var u=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+s];if(u&&(!r||r.indexOf(u.constructor)>-1)){return u}u=this._lookupImpl(i,s);if(u&&(!r||r.indexOf(u.constructor)>-1)){return u}if(n)return null;var o=this;while(o.parent){u=o.parent._lookupImpl(i,s);if(u&&(!r||r.indexOf(u.constructor)>-1)){return u}o=o.parent}return null};l.prototype._lookupImpl=function t(i,e){if(Object.prototype.hasOwnProperty.call(this._lookupCache,e)){return this._lookupCache[e]}var r=this.get(i[0]);var n=null;if(r){if(i.length===1){n=r}else if(r instanceof l){i=i.slice(1);n=r._lookupImpl(i,i.join("."))}}else{for(var s=0;s<this.nestedArray.length;++s)if(this._nestedArray[s]instanceof l&&(r=this._nestedArray[s]._lookupImpl(i,e))){n=r;break}}this._lookupCache[e]=n;return n};l.prototype.lookupType=function t(i){var e=this.lookup(i,[o]);if(!e)throw Error("no such type: "+i);return e};l.prototype.lookupEnum=function t(i){var e=this.lookup(i,[h]);if(!e)throw Error("no such Enum '"+i+"' in "+this);return e};l.prototype.lookupTypeOrEnum=function t(i){var e=this.lookup(i,[o,h]);if(!e)throw Error("no such Type or Enum '"+i+"' in "+this);return e};l.prototype.lookupService=function t(i){var e=this.lookup(i,[a]);if(!e)throw Error("no such Service '"+i+"' in "+this);return e};l._configure=function(t,i,e){o=t;a=i;h=e}},{16:16,24:24,25:25,37:37}],24:[function(t,i,r){i.exports=h;h.className="ReflectionObject";const n=t(25);var s=t(37);var f;var u={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};var o={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"};var a={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function h(t,i){if(!s.isString(t))throw TypeError("name must be a string");if(i&&!s.isObject(i))throw TypeError("options must be an object");this.options=i;this.parsedOptions=null;this.name=t;this._edition=null;this._defaultEdition="proto2";this._features={};this._featuresResolved=false;this.parent=null;this.resolved=false;this.comment=null;this.filename=null}Object.defineProperties(h.prototype,{root:{get:function(){var t=this;while(t.parent!==null)t=t.parent;return t}},fullName:{get:function(){var t=[this.name],i=this.parent;while(i){t.unshift(i.name);i=i.parent}return t.join(".")}}});h.prototype.toJSON=function t(){throw Error()};h.prototype.onAdd=function t(i){if(this.parent&&this.parent!==i)this.parent.remove(this);this.parent=i;this.resolved=false;var e=i.root;if(e instanceof f)e._handleAdd(this)};h.prototype.onRemove=function t(i){var e=i.root;if(e instanceof f)e._handleRemove(this);this.parent=null;this.resolved=false};h.prototype.resolve=function t(){if(this.resolved)return this;if(this.root instanceof f)this.resolved=true;return this};h.prototype._resolveFeaturesRecursive=function t(i){return this._resolveFeatures(this._edition||i)};h.prototype._resolveFeatures=function t(i){if(this._featuresResolved){return}var e={};if(!i){throw new Error("Unknown edition for "+this.fullName)}var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(i));if(this._edition){if(i==="proto2"){e=Object.assign({},o)}else if(i==="proto3"){e=Object.assign({},a)}else if(i==="2023"){e=Object.assign({},u)}else{throw new Error("Unknown edition: "+i)}this._features=Object.assign(e,r||{});this._featuresResolved=true;return}if(this.partOf instanceof n){var s=Object.assign({},this.partOf._features);this._features=Object.assign(s,r||{})}else if(this.declaringField);else if(this.parent){var f=Object.assign({},this.parent._features);this._features=Object.assign(f,r||{})}else{throw new Error("Unable to find a parent for "+this.fullName)}if(this.extensionField){this.extensionField._features=this._features}this._featuresResolved=true};h.prototype._inferLegacyProtoFeatures=function t(){return{}};h.prototype.getOption=function t(i){if(this.options)return this.options[i];return e};h.prototype.setOption=function t(i,r,n){if(i==="__proto__")return this;if(!this.options)this.options={};if(/^features\./.test(i)){s.setProperty(this.options,i,r,n)}else if(!n||this.options[i]===e){if(this.getOption(i)!==r)this.resolved=false;this.options[i]=r}return this};h.prototype.setParsedOption=function t(i,e,r){if(i==="__proto__")return this;if(!this.parsedOptions){this.parsedOptions=[]}var n=this.parsedOptions;if(r){var f=n.find((function(t){return Object.prototype.hasOwnProperty.call(t,i)}));if(f){var u=f[i];s.setProperty(u,r,e)}else{f={};f[i]=s.setProperty({},r,e);n.push(f)}}else{var o={};o[i]=e;n.push(o)}return this};h.prototype.setOptions=function t(i,e){if(i)for(var r=Object.keys(i),n=0;n<r.length;++n)this.setOption(r[n],i[r[n]],e);return this};h.prototype.toString=function t(){var i=this.constructor.className,e=this.fullName;if(e.length)return i+" "+e;return i};h.prototype._editionToJSON=function t(){if(!this._edition||this._edition==="proto3"){return e}return this._edition};h._configure=function(t){f=t}},{25:25,37:37}],25:[function(t,i,r){i.exports=u;var n=t(24);((u.prototype=Object.create(n.prototype)).constructor=u).className="OneOf";var s=t(16),f=t(37);function u(t,i,r,s){if(!Array.isArray(i)){r=i;i=e}n.call(this,t,r);if(!(i===e||Array.isArray(i)))throw TypeError("fieldNames must be an Array");this.oneof=i||[];this.fieldsArray=[];this.comment=s}u.fromJSON=function t(i,e){return new u(i,e.oneof,e.options,e.comment)};u.prototype.toJSON=function t(i){var r=i?Boolean(i.keepComments):false;return f.toObject(["options",this.options,"oneof",this.oneof,"comment",r?this.comment:e])};function o(t){if(t.parent)for(var i=0;i<t.fieldsArray.length;++i)if(!t.fieldsArray[i].parent)t.parent.add(t.fieldsArray[i])}u.prototype.add=function t(i){if(!(i instanceof s))throw TypeError("field must be a Field");if(i.parent&&i.parent!==this.parent)i.parent.remove(i);this.oneof.push(i.name);this.fieldsArray.push(i);i.partOf=this;o(this);return this};u.prototype.remove=function t(i){if(!(i instanceof s))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(i);if(e<0)throw Error(i+" is not a member of "+this);this.fieldsArray.splice(e,1);e=this.oneof.indexOf(i.name);if(e>-1)this.oneof.splice(e,1);i.partOf=null;return this};u.prototype.onAdd=function t(i){n.prototype.onAdd.call(this,i);var e=this;for(var r=0;r<this.oneof.length;++r){var s=i.get(this.oneof[r]);if(s&&!s.partOf){s.partOf=e;e.fieldsArray.push(s)}}o(this)};u.prototype.onRemove=function t(i){for(var e=0,r;e<this.fieldsArray.length;++e)if((r=this.fieldsArray[e]).parent)r.parent.remove(r);n.prototype.onRemove.call(this,i)};Object.defineProperty(u.prototype,"isProto3Optional",{get:function(){if(this.fieldsArray==null||this.fieldsArray.length!==1){return false}var t=this.fieldsArray[0];return t.options!=null&&t.options["proto3_optional"]===true}});u.d=function t(){var i=new Array(arguments.length),e=0;while(e<arguments.length)i[e]=arguments[e++];return function t(e,r){f.decorateType(e.constructor).add(new u(r,i));Object.defineProperty(e,r,{get:f.oneOfGetter(i),set:f.oneOfSetter(i)})}}},{16:16,24:24,37:37}],26:[function(t,i,r){i.exports=_;_.filename=null;_.defaults={keepCase:false};var n=t(34),s=t(29),f=t(35),u=t(16),o=t(20),a=t(25),h=t(15),c=t(33),l=t(22),v=t(24),d=t(36),p=t(37);var w=/^[1-9][0-9]*$/,b=/^-?[1-9][0-9]*$/,y=/^0[x][0-9a-fA-F]+$/,m=/^-?0[x][0-9a-fA-F]+$/,g=/^0[0-7]+$/,j=/^-?0[0-7]+$/,k=p.patterns.numberRe,E=/^[a-zA-Z_][a-zA-Z_0-9]*$/,O=p.patterns.typeRefRe;function _(t,i,r){if(!(i instanceof s)){r=i;i=new s}if(!r)r=_.defaults;var A=r.preferTrailingComment||false;var x=n(t,r.alternateCommentMode||false),T=x.next,S=x.push,I=x.peek,N=x.skip,L=x.cmnt;var V=true,M,$,P,F="proto2";var R=i;var B=[];var U={};var D=r.keepCase?function(t){return t}:p.camelCase;function q(){B.forEach((t=>{t._edition=F;Object.keys(U).forEach((i=>{if(t.getOption(i)!==e)return;t.setOption(i,U[i],true)}))}))}function C(t,i,e){var r=_.filename;if(!e)_.filename=null;return Error("illegal "+(i||"token")+" '"+t+"' ("+(r?r+", ":"")+"line "+x.line+")")}function z(){var t=[],i;do{if((i=T())!=='"'&&i!=="'")throw C(i);t.push(T());N(i);i=I()}while(i==='"'||i==="'");return t.join("")}function X(t){var i=T();switch(i){case"'":case'"':S(i);return z();case"true":case"TRUE":return true;case"false":case"FALSE":return false}try{return G(i,true)}catch(t){if(O.test(i))return i;throw C(i,"value")}}function Z(t,i){var r,n;do{if(i&&((r=I())==='"'||r==="'")){var s=z();t.push(s);if(F>=2023){throw C(s,"id")}}else{try{t.push([n=H(T()),N("to",true)?H(T()):n])}catch(e){if(i&&O.test(r)&&F>=2023){t.push(r)}else{throw e}}}}while(N(",",true));var f={options:e};f.setOption=function(t,i){if(this.options===e)this.options={};this.options[t]=i};tt(f,(function t(i){if(i==="option"){ot(f,i);N(";")}else throw C(i)}),(function t(){lt(f)}))}function G(t,i){var e=1;if(t.charAt(0)==="-"){e=-1;t=t.substring(1)}switch(t){case"inf":case"INF":case"Inf":return e*Infinity;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(w.test(t))return e*parseInt(t,10);if(y.test(t))return e*parseInt(t,16);if(g.test(t))return e*parseInt(t,8);if(k.test(t))return e*parseFloat(t);throw C(t,"number",i)}function H(t,i){switch(t){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!i&&t.charAt(0)==="-")throw C(t,"id");if(b.test(t))return parseInt(t,10);if(m.test(t))return parseInt(t,16);if(j.test(t))return parseInt(t,8);throw C(t,"id")}function W(){if(M!==e)throw C("package");M=T();if(!O.test(M))throw C(M,"name");R=R.define(M);N(";")}function Y(){var t=I();var i;switch(t){case"weak":i=P||(P=[]);T();break;case"public":T();default:i=$||($=[]);break}t=z();N(";");i.push(t)}function J(){N("=");F=z();if(F<2023)throw C(F,"syntax");N(";")}function K(){N("=");F=z();const t=["2023"];if(!t.includes(F))throw C(F,"edition");N(";")}function Q(t,i,e){e=p.checkDepth(e);switch(i){case"option":ot(t,i);N(";");return true;case"message":it(t,i,e+1);return true;case"enum":ft(t,i);return true;case"service":vt(t,i,e+1);return true;case"extend":pt(t,i,e);return true}return false}function tt(t,i,e){var r=x.line;if(t){if(typeof t.comment!=="string"){t.comment=L()}t.filename=_.filename}if(N("{",true)){var n;while((n=T())!=="}")i(n);N(";",true)}else{if(e)e();N(";");if(t&&(typeof t.comment!=="string"||A))t.comment=L(r)||t.comment}}function it(t,i,r){r=p.checkDepth(r);if(!E.test(i=T()))throw C(i,"type name");var n=new f(i);tt(n,(function t(i){if(Q(n,i,r))return;switch(i){case"map":nt(n);break;case"required":if(F!=="proto2")throw C(i);case"repeated":et(n,i,e,r+1);break;case"optional":if(F==="proto3"){et(n,"proto3_optional",e,r+1)}else if(F!=="proto2"){throw C(i)}else{et(n,"optional",e,r+1)}break;case"oneof":st(n,i,r+1);break;case"extensions":Z(n.extensions||(n.extensions=[]));break;case"reserved":Z(n.reserved||(n.reserved=[]),true);break;default:if(F==="proto2"||!O.test(i)){throw C(i)}S(i);et(n,"optional",e,r+1);break}}));t.add(n);if(t===R){B.push(n)}}function et(t,i,e,r){var n=T();if(n==="group"){rt(t,i,r);return}while(n.endsWith(".")||I().startsWith(".")){n+=T()}if(!O.test(n))throw C(n,"type");var s=T();if(!E.test(s))throw C(s,"name");s=D(s);N("=");var f=new u(s,H(T()),n,i,e);tt(f,(function t(i){if(i==="option"){ot(f,i);N(";")}else throw C(i)}),(function t(){lt(f)}));if(i==="proto3_optional"){var o=new a("_"+s);f.setOption("proto3_optional",true);o.add(f);t.add(o)}else{t.add(f)}if(t===R){B.push(f)}}function rt(t,i,r){r=p.checkDepth(r);if(F>=2023){throw C("group")}var n=T();if(!E.test(n))throw C(n,"name");var s=p.lcFirst(n);if(n===s)n=p.ucFirst(n);N("=");var o=H(T());var a=new f(n);a.group=true;var h=new u(s,o,n,i);h.filename=_.filename;tt(a,(function t(i){switch(i){case"option":ot(a,i);N(";");break;case"required":case"repeated":et(a,i,e,r+1);break;case"optional":if(F==="proto3"){et(a,"proto3_optional",e,r+1)}else{et(a,"optional",e,r+1)}break;case"message":it(a,i,r+1);break;case"enum":ft(a,i);break;case"reserved":Z(a.reserved||(a.reserved=[]),true);break;default:throw C(i)}}));t.add(a).add(h)}function nt(t){N("<");var i=T();if(d.mapKey[i]===e)throw C(i,"type");N(",");var r=T();if(!O.test(r))throw C(r,"type");N(">");var n=T();if(!E.test(n))throw C(n,"name");N("=");var s=new o(D(n),H(T()),i,r);tt(s,(function t(i){if(i==="option"){ot(s,i);N(";")}else throw C(i)}),(function t(){lt(s)}));t.add(s)}function st(t,i,r){if(!E.test(i=T()))throw C(i,"name");var n=new a(D(i));tt(n,(function t(i){if(i==="option"){ot(n,i);N(";")}else{S(i);et(n,"optional",e,r)}}));t.add(n)}function ft(t,i){if(!E.test(i=T()))throw C(i,"name");var r=new h(i);tt(r,(function t(i){switch(i){case"option":ot(r,i);N(";");break;case"reserved":Z(r.reserved||(r.reserved=[]),true);if(r.reserved===e)r.reserved=[];break;default:ut(r,i)}}));t.add(r);if(t===R){B.push(r)}}function ut(t,i){if(!E.test(i))throw C(i,"name");N("=");var r=H(T(),true),n={options:e};n.getOption=function(t){return this.options[t]};n.setOption=function(t,i){v.prototype.setOption.call(n,t,i)};n.setParsedOption=function(){return e};tt(n,(function t(i){if(i==="option"){ot(n,i);N(";")}else throw C(i)}),(function t(){lt(n)}));t.add(i,r,n.comment,n.parsedOptions||n.options)}function ot(t,i){var e;var r;var n=true;if(i==="option"){i=T()}while(i!=="="){if(i==="("){var s=T();N(")");i="("+s+")"}if(n){n=false;if(i.includes(".")&&!i.includes("(")){var f=i.split(".");e=f[0]+".";i=f[1];continue}e=i}else{r=r?r+=i:i}i=T()}var u=r?e.concat(r):e;var o=at(t,u);r=r&&r[0]==="."?r.slice(1):r;e=e&&e[e.length-1]==="."?e.slice(0,-1):e;ct(t,e,o,r)}function at(t,i,e){e=p.checkDepth(e);if(